<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>The ICLR Blog Track</title>
 <link href="https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/atom.xml" rel="self"/>
 <link href="https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/"/>
 <updated>2022-01-15T05:39:15-06:00</updated>
 <id>https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748</id>
 <author>
   <name>Mark Otto</name>
   <email>markdotto@gmail.com</email>
 </author>

 
 <entry>
   <title>Sample Submission</title>
   <link href="https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/2021/09/01/sample-submission/"/>
   <updated>2021-09-01T00:00:00-05:00</updated>
   <id>https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/2021/09/01/sample-submission</id>
   <content type="html">&lt;p&gt;This post outlines a few more things you may need to know for creating and configuring your blog posts.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;#configurations&quot;&gt;Configurations&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#creating-posts&quot;&gt;Creating Posts&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#images&quot;&gt;Images&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#interactive-figures&quot;&gt;Interactive Figures&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#latex&quot;&gt;$\LaTeX$&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#references&quot;&gt;References&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;configurations&quot;&gt;Configurations&lt;/h2&gt;

&lt;p&gt;You should &lt;strong&gt;NOT&lt;/strong&gt; modify the default values in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_config.yml&lt;/code&gt;, found in the root directory of this repo.
These must be left as is for the correct export and eventual merging to the master ICLR repo.&lt;/p&gt;

&lt;h2 id=&quot;creating-posts&quot;&gt;Creating Posts&lt;/h2&gt;

&lt;p&gt;To create a new post in the blog, add a new Markdown file to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_posts/&lt;/code&gt; directory, with the name 
following the format &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;2022-05-03-submission-name.md&lt;/code&gt; (note the date is the start of the conference).
Begin the post with the following code (which will be used to automatically generate a BibTeX entry
at the bottom of your post):&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nn&quot;&gt;---&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;layout&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;post&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;SUBMISSION NAME&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;authors&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;AUTHORS&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;tags&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;TAGS&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;nn&quot;&gt;---&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;From there, write your content as you would a normal Markdown file.
For a more high-level and generic overview of how to format Markdown files such as formatting text,
code, headings, etc. check out the &lt;a href=&quot;/2020/04/02/example-content/&quot;&gt;Example Content&lt;/a&gt; post.&lt;/p&gt;

&lt;h2 id=&quot;images&quot;&gt;Images&lt;/h2&gt;

&lt;p&gt;If you include an image hosted elsewhere on the web simply use the standard GitHub-flavoured-MarkDown 
syntax (be wary of copyrights):&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;![Example Image](https://iclr.cc/static/core/img/ICLR-logo.svg)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;https://iclr.cc/static/core/img/ICLR-logo.svg&quot; alt=&quot;Example Image&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Its generally a better idea to avoid linking to images hosted elsewhere - links can break and you
might face losing important information in your blog post. 
To include images in your submission in this way, you must do something like the following:&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;![&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;ICLR LOGO&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;](&lt;/span&gt;&lt;span class=&quot;sx&quot;&gt;{{&lt;/span&gt; site.url }}/public/images/2021-09-01-sample-submission/ICLR-logo.png) 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;which becomes:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/public/images/2021-09-01-sample-submission/ICLR-logo.png&quot; alt=&quot;ICLR LOGO&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;{{ site.url }}&lt;/code&gt; syntax expands the site URL for you.
To ensure that there are no namespace conflicts, you must save your asset to your unique directory
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/public/images/2022-05-03-[SUBMISSION NAME]&lt;/code&gt; within your submission.&lt;/p&gt;

&lt;h2 id=&quot;interactive-figures&quot;&gt;Interactive Figures&lt;/h2&gt;

&lt;p&gt;Here’s how you could embed interactive figures that have been exported as HTML files.
Note that we will be using plotly for this demo, but anything built off of HTML should work
(&lt;strong&gt;no javascript is allowed!&lt;/strong&gt;).
All that’s required is for you to export your figure into HTML format, and make sure that the file 
exists in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_includes/[SUBMISSION NAME]/&lt;/code&gt; directory in this repository’s root directory.
To embed it into any page, simply insert the following code anywhere into your page.&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;{% include [FIGURE_NAME].html %} 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For example, the following code can be used to generate the figure underneath it.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;pandas&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;plotly.express&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'https://raw.githubusercontent.com/plotly/datasets/master/earthquakes-23k.csv'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;density_mapbox&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Latitude'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lon&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Longitude'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;z&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Magnitude'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;radius&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                        &lt;span class=&quot;n&quot;&gt;center&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;dict&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lon&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;180&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;zoom&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                        &lt;span class=&quot;n&quot;&gt;mapbox_style&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;stamen-terrain&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write_html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'./_includes/2021-09-01-sample-submission/plotly_demo_1.html'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And then include it with the following:&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;{% include 2021/2021-09-01-sample-submission/plotly_demo_1.html %} 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Voila!&lt;/p&gt;

&lt;html&gt;
&lt;head&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;                        &lt;script type=&quot;text/javascript&quot;&gt;window.PlotlyConfig = {MathJaxConfig: 'local'};&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;/**
* plotly.js v2.4.2
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if(&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module)module.exports=t();else if(&quot;function&quot;==typeof define&amp;&amp;define.amd)define([],t);else{(&quot;undefined&quot;!=typeof window?window:&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:this).Plotly=t()}}((function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=&quot;function&quot;==typeof require&amp;&amp;require;if(!s&amp;&amp;l)return l(o,!0);if(a)return a(o,!0);var c=new Error(&quot;Cannot find module '&quot;+o+&quot;'&quot;);throw c.code=&quot;MODULE_NOT_FOUND&quot;,c}var u=r[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,r,n)}return r[o].exports}for(var a=&quot;function&quot;==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)i(n[o]);return i}({1:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../src/lib&quot;),i={&quot;X,X div&quot;:'direction:ltr;font-family:&quot;Open Sans&quot;,verdana,arial,sans-serif;margin:0;padding:0;',&quot;X input,X button&quot;:'font-family:&quot;Open Sans&quot;,verdana,arial,sans-serif;',&quot;X input:focus,X button:focus&quot;:&quot;outline:none;&quot;,&quot;X a&quot;:&quot;text-decoration:none;&quot;,&quot;X a:hover&quot;:&quot;text-decoration:none;&quot;,&quot;X .crisp&quot;:&quot;shape-rendering:crispEdges;&quot;,&quot;X .user-select-none&quot;:&quot;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;&quot;,&quot;X svg&quot;:&quot;overflow:hidden;&quot;,&quot;X svg a&quot;:&quot;fill:#447adb;&quot;,&quot;X svg a:hover&quot;:&quot;fill:#3c6dc5;&quot;,&quot;X .main-svg&quot;:&quot;position:absolute;top:0;left:0;pointer-events:none;&quot;,&quot;X .main-svg .draglayer&quot;:&quot;pointer-events:all;&quot;,&quot;X .cursor-default&quot;:&quot;cursor:default;&quot;,&quot;X .cursor-pointer&quot;:&quot;cursor:pointer;&quot;,&quot;X .cursor-crosshair&quot;:&quot;cursor:crosshair;&quot;,&quot;X .cursor-move&quot;:&quot;cursor:move;&quot;,&quot;X .cursor-col-resize&quot;:&quot;cursor:col-resize;&quot;,&quot;X .cursor-row-resize&quot;:&quot;cursor:row-resize;&quot;,&quot;X .cursor-ns-resize&quot;:&quot;cursor:ns-resize;&quot;,&quot;X .cursor-ew-resize&quot;:&quot;cursor:ew-resize;&quot;,&quot;X .cursor-sw-resize&quot;:&quot;cursor:sw-resize;&quot;,&quot;X .cursor-s-resize&quot;:&quot;cursor:s-resize;&quot;,&quot;X .cursor-se-resize&quot;:&quot;cursor:se-resize;&quot;,&quot;X .cursor-w-resize&quot;:&quot;cursor:w-resize;&quot;,&quot;X .cursor-e-resize&quot;:&quot;cursor:e-resize;&quot;,&quot;X .cursor-nw-resize&quot;:&quot;cursor:nw-resize;&quot;,&quot;X .cursor-n-resize&quot;:&quot;cursor:n-resize;&quot;,&quot;X .cursor-ne-resize&quot;:&quot;cursor:ne-resize;&quot;,&quot;X .cursor-grab&quot;:&quot;cursor:-webkit-grab;cursor:grab;&quot;,&quot;X .modebar&quot;:&quot;position:absolute;top:2px;right:2px;&quot;,&quot;X .ease-bg&quot;:&quot;-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;&quot;,&quot;X .modebar--hover&gt;:not(.watermark)&quot;:&quot;opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;&quot;,&quot;X:hover .modebar--hover .modebar-group&quot;:&quot;opacity:1;&quot;,&quot;X .modebar-group&quot;:&quot;float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;&quot;,&quot;X .modebar-btn&quot;:&quot;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;&quot;,&quot;X .modebar-btn svg&quot;:&quot;position:relative;top:2px;&quot;,&quot;X .modebar.vertical&quot;:&quot;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;&quot;,&quot;X .modebar.vertical svg&quot;:&quot;top:-1px;&quot;,&quot;X .modebar.vertical .modebar-group&quot;:&quot;display:block;float:none;padding-left:0px;padding-bottom:8px;&quot;,&quot;X .modebar.vertical .modebar-group .modebar-btn&quot;:&quot;display:block;text-align:center;&quot;,&quot;X [data-title]:before,X [data-title]:after&quot;:&quot;position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;&quot;,&quot;X [data-title]:hover:before,X [data-title]:hover:after&quot;:&quot;display:block;opacity:1;&quot;,&quot;X [data-title]:before&quot;:'content:&quot;&quot;;position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',&quot;X [data-title]:after&quot;:&quot;content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;&quot;,&quot;X .vertical [data-title]:before,X .vertical [data-title]:after&quot;:&quot;top:0%;right:200%;&quot;,&quot;X .vertical [data-title]:before&quot;:&quot;border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;&quot;,&quot;X .select-outline&quot;:&quot;fill:none;stroke-width:1;shape-rendering:crispEdges;&quot;,&quot;X .select-outline-1&quot;:&quot;stroke:#fff;&quot;,&quot;X .select-outline-2&quot;:&quot;stroke:#000;stroke-dasharray:2px 2px;&quot;,Y:'font-family:&quot;Open Sans&quot;,verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',&quot;Y p&quot;:&quot;margin:0;&quot;,&quot;Y .notifier-note&quot;:&quot;min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;&quot;,&quot;Y .notifier-close&quot;:&quot;color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;&quot;,&quot;Y .notifier-close:hover&quot;:&quot;color:#444;text-decoration:none;cursor:pointer;&quot;};for(var a in i){var o=a.replace(/^,/,&quot; ,&quot;).replace(/X/g,&quot;.js-plotly-plot .plotly&quot;).replace(/Y/g,&quot;.plotly-notifier&quot;);n.addStyleRule(o,i[a])}},{&quot;../src/lib&quot;:803}],2:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/aggregate&quot;)},{&quot;../src/transforms/aggregate&quot;:1399}],3:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/bar&quot;)},{&quot;../src/traces/bar&quot;:949}],4:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/barpolar&quot;)},{&quot;../src/traces/barpolar&quot;:962}],5:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/box&quot;)},{&quot;../src/traces/box&quot;:972}],6:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/components/calendars&quot;)},{&quot;../src/components/calendars&quot;:664}],7:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/candlestick&quot;)},{&quot;../src/traces/candlestick&quot;:981}],8:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/carpet&quot;)},{&quot;../src/traces/carpet&quot;:1e3}],9:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choropleth&quot;)},{&quot;../src/traces/choropleth&quot;:1014}],10:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choroplethmapbox&quot;)},{&quot;../src/traces/choroplethmapbox&quot;:1021}],11:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/cone&quot;)},{&quot;../src/traces/cone&quot;:1027}],12:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contour&quot;)},{&quot;../src/traces/contour&quot;:1042}],13:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contourcarpet&quot;)},{&quot;../src/traces/contourcarpet&quot;:1053}],14:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/core&quot;)},{&quot;../src/core&quot;:781}],15:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/densitymapbox&quot;)},{&quot;../src/traces/densitymapbox&quot;:1061}],16:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/filter&quot;)},{&quot;../src/transforms/filter&quot;:1400}],17:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnel&quot;)},{&quot;../src/traces/funnel&quot;:1071}],18:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnelarea&quot;)},{&quot;../src/traces/funnelarea&quot;:1080}],19:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/groupby&quot;)},{&quot;../src/transforms/groupby&quot;:1401}],20:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmap&quot;)},{&quot;../src/traces/heatmap&quot;:1093}],21:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmapgl&quot;)},{&quot;../src/traces/heatmapgl&quot;:1103}],22:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram&quot;)},{&quot;../src/traces/histogram&quot;:1115}],23:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2d&quot;)},{&quot;../src/traces/histogram2d&quot;:1121}],24:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2dcontour&quot;)},{&quot;../src/traces/histogram2dcontour&quot;:1125}],25:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/icicle&quot;)},{&quot;../src/traces/icicle&quot;:1131}],26:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/image&quot;)},{&quot;../src/traces/image&quot;:1144}],27:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./core&quot;);n.register([t(&quot;./bar&quot;),t(&quot;./box&quot;),t(&quot;./heatmap&quot;),t(&quot;./histogram&quot;),t(&quot;./histogram2d&quot;),t(&quot;./histogram2dcontour&quot;),t(&quot;./contour&quot;),t(&quot;./scatterternary&quot;),t(&quot;./violin&quot;),t(&quot;./funnel&quot;),t(&quot;./waterfall&quot;),t(&quot;./image&quot;),t(&quot;./pie&quot;),t(&quot;./sunburst&quot;),t(&quot;./treemap&quot;),t(&quot;./icicle&quot;),t(&quot;./funnelarea&quot;),t(&quot;./scatter3d&quot;),t(&quot;./surface&quot;),t(&quot;./isosurface&quot;),t(&quot;./volume&quot;),t(&quot;./mesh3d&quot;),t(&quot;./cone&quot;),t(&quot;./streamtube&quot;),t(&quot;./scattergeo&quot;),t(&quot;./choropleth&quot;),t(&quot;./scattergl&quot;),t(&quot;./splom&quot;),t(&quot;./pointcloud&quot;),t(&quot;./heatmapgl&quot;),t(&quot;./parcoords&quot;),t(&quot;./parcats&quot;),t(&quot;./scattermapbox&quot;),t(&quot;./choroplethmapbox&quot;),t(&quot;./densitymapbox&quot;),t(&quot;./sankey&quot;),t(&quot;./indicator&quot;),t(&quot;./table&quot;),t(&quot;./carpet&quot;),t(&quot;./scattercarpet&quot;),t(&quot;./contourcarpet&quot;),t(&quot;./ohlc&quot;),t(&quot;./candlestick&quot;),t(&quot;./scatterpolar&quot;),t(&quot;./scatterpolargl&quot;),t(&quot;./barpolar&quot;),t(&quot;./aggregate&quot;),t(&quot;./filter&quot;),t(&quot;./groupby&quot;),t(&quot;./sort&quot;),t(&quot;./calendars&quot;)]),e.exports=n},{&quot;./aggregate&quot;:2,&quot;./bar&quot;:3,&quot;./barpolar&quot;:4,&quot;./box&quot;:5,&quot;./calendars&quot;:6,&quot;./candlestick&quot;:7,&quot;./carpet&quot;:8,&quot;./choropleth&quot;:9,&quot;./choroplethmapbox&quot;:10,&quot;./cone&quot;:11,&quot;./contour&quot;:12,&quot;./contourcarpet&quot;:13,&quot;./core&quot;:14,&quot;./densitymapbox&quot;:15,&quot;./filter&quot;:16,&quot;./funnel&quot;:17,&quot;./funnelarea&quot;:18,&quot;./groupby&quot;:19,&quot;./heatmap&quot;:20,&quot;./heatmapgl&quot;:21,&quot;./histogram&quot;:22,&quot;./histogram2d&quot;:23,&quot;./histogram2dcontour&quot;:24,&quot;./icicle&quot;:25,&quot;./image&quot;:26,&quot;./indicator&quot;:28,&quot;./isosurface&quot;:29,&quot;./mesh3d&quot;:30,&quot;./ohlc&quot;:31,&quot;./parcats&quot;:32,&quot;./parcoords&quot;:33,&quot;./pie&quot;:34,&quot;./pointcloud&quot;:35,&quot;./sankey&quot;:36,&quot;./scatter3d&quot;:37,&quot;./scattercarpet&quot;:38,&quot;./scattergeo&quot;:39,&quot;./scattergl&quot;:40,&quot;./scattermapbox&quot;:41,&quot;./scatterpolar&quot;:42,&quot;./scatterpolargl&quot;:43,&quot;./scatterternary&quot;:44,&quot;./sort&quot;:45,&quot;./splom&quot;:46,&quot;./streamtube&quot;:47,&quot;./sunburst&quot;:48,&quot;./surface&quot;:49,&quot;./table&quot;:50,&quot;./treemap&quot;:51,&quot;./violin&quot;:52,&quot;./volume&quot;:53,&quot;./waterfall&quot;:54}],28:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/indicator&quot;)},{&quot;../src/traces/indicator&quot;:1152}],29:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/isosurface&quot;)},{&quot;../src/traces/isosurface&quot;:1158}],30:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/mesh3d&quot;)},{&quot;../src/traces/mesh3d&quot;:1163}],31:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/ohlc&quot;)},{&quot;../src/traces/ohlc&quot;:1168}],32:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcats&quot;)},{&quot;../src/traces/parcats&quot;:1177}],33:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcoords&quot;)},{&quot;../src/traces/parcoords&quot;:1187}],34:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pie&quot;)},{&quot;../src/traces/pie&quot;:1198}],35:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pointcloud&quot;)},{&quot;../src/traces/pointcloud&quot;:1207}],36:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sankey&quot;)},{&quot;../src/traces/sankey&quot;:1213}],37:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatter3d&quot;)},{&quot;../src/traces/scatter3d&quot;:1251}],38:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattercarpet&quot;)},{&quot;../src/traces/scattercarpet&quot;:1258}],39:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergeo&quot;)},{&quot;../src/traces/scattergeo&quot;:1266}],40:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergl&quot;)},{&quot;../src/traces/scattergl&quot;:1279}],41:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattermapbox&quot;)},{&quot;../src/traces/scattermapbox&quot;:1289}],42:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolar&quot;)},{&quot;../src/traces/scatterpolar&quot;:1297}],43:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolargl&quot;)},{&quot;../src/traces/scatterpolargl&quot;:1304}],44:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterternary&quot;)},{&quot;../src/traces/scatterternary&quot;:1312}],45:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/sort&quot;)},{&quot;../src/transforms/sort&quot;:1403}],46:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/splom&quot;)},{&quot;../src/traces/splom&quot;:1321}],47:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/streamtube&quot;)},{&quot;../src/traces/streamtube&quot;:1329}],48:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sunburst&quot;)},{&quot;../src/traces/sunburst&quot;:1337}],49:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/surface&quot;)},{&quot;../src/traces/surface&quot;:1346}],50:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/table&quot;)},{&quot;../src/traces/table&quot;:1354}],51:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/treemap&quot;)},{&quot;../src/traces/treemap&quot;:1365}],52:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/violin&quot;)},{&quot;../src/traces/violin&quot;:1378}],53:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/volume&quot;)},{&quot;../src/traces/volume&quot;:1386}],54:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/waterfall&quot;)},{&quot;../src/traces/waterfall&quot;:1394}],55:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||&quot;turntable&quot;,u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(&quot;turntable-camera-controller&quot;),i=t(&quot;orbit-camera-controller&quot;),a=t(&quot;matrix-camera-controller&quot;);function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map((function(e){return t[e]})),this._mode=e,this._active=t[e],this._active||(this._mode=&quot;turntable&quot;,this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;[[&quot;flush&quot;,1],[&quot;idle&quot;,1],[&quot;lookAt&quot;,4],[&quot;rotate&quot;,4],[&quot;pan&quot;,4],[&quot;translate&quot;,4],[&quot;setMatrix&quot;,2],[&quot;setDistanceLimits&quot;,2],[&quot;setDistance&quot;,2]].forEach((function(t){for(var e=t[0],r=[],n=0;n&lt;t[1];++n)r.push(&quot;a&quot;+n);var i=&quot;var cc=this._controllerList;for(var i=0;i&lt;cc.length;++i){cc[i].&quot;+t[0]+&quot;(&quot;+r.join()+&quot;)}&quot;;s[e]=Function.apply(null,r.concat(i))})),s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e&lt;0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{&quot;matrix-camera-controller&quot;:468,&quot;orbit-camera-controller&quot;:489,&quot;turntable-camera-controller&quot;:603}],56:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;),t(&quot;elementary-circuits-directed-graph&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&amp;&amp;i.hasOwnProperty(&quot;default&quot;)?i.default:i;var l=&quot;function&quot;==typeof Symbol&amp;&amp;&quot;symbol&quot;==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;&quot;function&quot;==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?&quot;symbol&quot;:typeof t};function c(t,e){return f(t.source,e.source)||t.index-e.index}function u(t,e){return f(t.target,e.target)||t.index-e.index}function f(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:&quot;top&quot;===t.circularLinkType||&quot;bottom&quot;===e.circularLinkType?-1:1}function h(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function g(t){return p(t.target)}function m(t){return t.index}function v(t){return t.nodes}function y(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function b(t,e){return e(t)}function _(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o&lt;t.links.length;o++){var s=t.links[o],l=s.source.index,c=s.target.index;a[l]||(a[l]=[]),a[c]||(a[c]=[]),-1===a[l].indexOf(c)&amp;&amp;a[l].push(c)}var u=i(a);u.sort((function(t,e){return t.length-e.length}));var f={};for(o=0;o&lt;u.length;o++){var h=u[o].slice(-2);f[h[0]]||(f[h[0]]={}),f[h[0]][h[1]]=!0}t.links.forEach((function(t){var e=t.target.index,r=t.source.index;e===r||f[r]&amp;&amp;f[r][e]?(t.circular=!0,t.circularLinkID=n,n+=1):t.circular=!1}))}else t.links.forEach((function(t){t.source[r]&lt;t.target[r]?t.circular=!1:(t.circular=!0,t.circularLinkID=n,n+=1)}))}function w(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&amp;&amp;(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=r&lt;n?&quot;top&quot;:&quot;bottom&quot;,&quot;top&quot;==i.circularLinkType?r+=1:n+=1,t.nodes.forEach((function(t){b(t,e)!=b(i.source,e)&amp;&amp;b(t,e)!=b(i.target,e)||(t.circularLinkType=i.circularLinkType)})))})),t.links.forEach((function(t){t.circular&amp;&amp;(t.source.circularLinkType==t.target.circularLinkType&amp;&amp;(t.circularLinkType=t.source.circularLinkType),H(t,e)&amp;&amp;(t.circularLinkType=t.source.circularLinkType))}))}function T(t){var e=Math.abs(t.y1-t.y0),r=Math.abs(t.target.x0-t.source.x1);return Math.atan(r/e)}function k(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&amp;&amp;!H(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&amp;&amp;!H(t,e)?n+1:n})),r+n}function A(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r&gt;1||i&gt;1)}function M(t,e,r){return t.sort(E),t.forEach((function(n,i){var a,o,s=0;if(H(n,r)&amp;&amp;A(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;l&lt;i;l++)if(a=t[i],o=t[l],!(a.source.column&lt;o.target.column||a.target.column&gt;o.source.column)){var c=t[l].circularPathData.verticalBuffer+t[l].width/2+e;s=c&gt;s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),t}function S(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&amp;&amp;(t.circularPathData={})})),M(t.links.filter((function(t){return&quot;top&quot;==t.circularLinkType})),r,a),M(t.links.filter((function(t){return&quot;bottom&quot;==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+10,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,H(e,a)&amp;&amp;A(e))e.circularPathData.leftSmallArcRadius=10+e.width/2,e.circularPathData.leftLargeArcRadius=10+e.width/2,e.circularPathData.rightSmallArcRadius=10+e.width/2,e.circularPathData.rightLargeArcRadius=10+e.width/2,&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,c=t.links.filter((function(t){return t.source.column==s&amp;&amp;t.circularLinkType==l}));&quot;bottom&quot;==e.circularLinkType?c.sort(C):c.sort(L);var u=0;c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.leftSmallArcRadius=10+e.width/2+u,e.circularPathData.leftLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),s=e.target.column,c=t.links.filter((function(t){return t.target.column==s&amp;&amp;t.circularLinkType==l})),&quot;bottom&quot;==e.circularLinkType?c.sort(I):c.sort(P),u=0,c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.rightSmallArcRadius=10+e.width/2+u,e.circularPathData.rightLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){var e=&quot;&quot;;e=&quot;top&quot;==t.circularLinkType?&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY:&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY;return e}(e);else{var f=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=f(e)}}))}function E(t,e){return O(t)==O(e)?&quot;bottom&quot;==t.circularLinkType?C(t,e):L(t,e):O(e)-O(t)}function L(t,e){return t.y0-e.y0}function C(t,e){return e.y0-t.y0}function P(t,e){return t.y1-e.y1}function I(t,e){return e.y1-t.y1}function O(t){return t.target.column-t.source.column}function z(t){return t.target.x0-t.source.x1}function D(t,e){var r=T(t),n=z(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1+n:t.y1-n}function R(t,e){var r=T(t),n=z(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1-n:t.y1+n}function F(t,e,r,n){t.links.forEach((function(i){if(!i.circular&amp;&amp;i.target.column-i.source.column&gt;1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a&lt;=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),h=3*u*Math.pow(1-u,2),p=3*Math.pow(u,2)*(1-u),d=Math.pow(u,3),g=f*i.y0+h*i.y0+p*i.y1+d*i.y1,m=g-i.width/2,v=g+i.width/2;m&gt;o.y0&amp;&amp;m&lt;o.y1?(c=o.y1-m+10,c=&quot;bottom&quot;==o.circularLinkType?c:-c,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;B(o,t)&amp;&amp;N(t,c,e,r)}))):(v&gt;o.y0&amp;&amp;v&lt;o.y1||m&lt;o.y0&amp;&amp;v&gt;o.y1)&amp;&amp;(c=v-o.y0+10,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;t.y0&lt;o.y1&amp;&amp;t.y1&gt;o.y1&amp;&amp;N(t,c,e,r)})))}}))}}))}function B(t,e){return t.y0&gt;e.y0&amp;&amp;t.y0&lt;e.y1||(t.y1&gt;e.y0&amp;&amp;t.y1&lt;e.y1||t.y0&lt;e.y0&amp;&amp;t.y1&gt;e.y1)}function N(t,e,r,n){return t.y0+e&gt;=r&amp;&amp;t.y1+e&lt;=n&amp;&amp;(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function j(t,e,r,n){t.nodes.forEach((function(i){n&amp;&amp;i.y+(i.y1-i.y0)&gt;e&amp;&amp;(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return b(t.source,r)==b(i,r)})),o=a.length;o&gt;1&amp;&amp;a.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!V(t,e))return t.y1-e.y1;if(t.target.column&gt;e.target.column){var r=R(e,t);return t.y1-r}if(e.target.column&gt;t.target.column)return R(t,e)-e.y1}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if(&quot;bottom&quot;==t.circularLinkType){for(var r=e+1,n=0;r&lt;o;r++)n+=a[r].width;t.y0=i.y1-n-t.width/2}}))}))}function U(t,e,r){t.nodes.forEach((function(e){var n=t.links.filter((function(t){return b(t.target,r)==b(e,r)})),i=n.length;i&gt;1&amp;&amp;n.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!V(t,e))return t.y0-e.y0;if(e.source.column&lt;t.source.column){var r=D(e,t);return t.y0-r}if(t.source.column&lt;e.source.column)return D(t,e)-e.y0}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:t.source.column-e.source.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:e.source.column-t.source.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var a=e.y0;n.forEach((function(t){t.y1=a+t.width/2,a+=t.width})),n.forEach((function(t,r){if(&quot;bottom&quot;==t.circularLinkType){for(var a=r+1,o=0;a&lt;i;a++)o+=n[a].width;t.y1=e.y1-o-t.width/2}}))}))}function V(t,e){return q(t)==q(e)}function q(t){return t.y0-t.y1&gt;0?&quot;up&quot;:&quot;down&quot;}function H(t,e){return b(t.source,e)==b(t.target,e)}function G(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){&quot;top&quot;==t.circularLinkType?o=!0:&quot;bottom&quot;==t.circularLinkType&amp;&amp;(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=function(){var t,n,i=0,a=0,b=1,T=1,A=24,M=m,E=o,L=v,C=y,P=32,I=2,O=null;function z(){var t={nodes:L.apply(null,arguments),links:C.apply(null,arguments)};D(t),_(t,M,O),R(t),B(t),w(t,M),N(t,P,M),V(t);for(var e=4,r=0;r&lt;e;r++)j(t,T,M),U(t,T,M),F(t,a,T,M),j(t,T,M),U(t,T,M);return G(t,a,T),S(t,I,T,M),t}function D(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,M);return t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!==(void 0===n?&quot;undefined&quot;:l(n))&amp;&amp;(n=t.source=x(e,n)),&quot;object&quot;!==(void 0===i?&quot;undefined&quot;:l(i))&amp;&amp;(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),t}function R(t){t.nodes.forEach((function(t){t.partOfCycle=!1,t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h)),t.sourceLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)})),t.targetLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)}))}))}function B(t){var e,r,n;for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.depth=n,t.sourceLinks.forEach((function(t){r.indexOf(t.target)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.target)}))}));for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.height=n,t.targetLinks.forEach((function(t){r.indexOf(t.source)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.source)}))}));t.nodes.forEach((function(t){t.column=Math.floor(E.call(null,t,n))}))}function N(o,s,l){var c=r.nest().key((function(t){return t.column})).sortKeys(e.ascending).entries(o.nodes).map((function(t){return t.values}));!function(r){if(n){var s=1/0;c.forEach((function(t){var e=T*n/(t.length+1);s=e&lt;s?e:s})),t=s}var l=e.min(c,(function(r){return(T-a-(r.length-1)*t)/e.sum(r,h)}));l*=.3,o.links.forEach((function(t){t.width=t.value*l}));var u=function(t){var r=0,n=0,i=0,a=0,o=e.max(t.nodes,(function(t){return t.column}));return t.links.forEach((function(t){t.circular&amp;&amp;(&quot;top&quot;==t.circularLinkType?r+=t.width:n+=t.width,0==t.target.column&amp;&amp;(a+=t.width),t.source.column==o&amp;&amp;(i+=t.width))})),{top:r=r&gt;0?r+25+10:r,bottom:n=n&gt;0?n+25+10:n,left:a=a&gt;0?a+25+10:a,right:i=i&gt;0?i+25+10:i}}(o),f=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),o=b-i,s=T-a,l=o/(o+r.right+r.left),c=s/(s+r.top+r.bottom);return i=i*l+r.left,b=0==r.right?b:b*l,a=a*c+r.top,T*=c,t.nodes.forEach((function(t){t.x0=i+t.column*((b-i-A)/n),t.x1=t.x0+A})),c}(o,u);l*=f,o.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&amp;&amp;1==e||0==t.depth&amp;&amp;1==e?(t.y0=T/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==k(t,r)?(t.y0=T/2+n,t.y1=t.y0+t.value*l):&quot;top&quot;==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=T-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(T-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(T-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}(l),y();for(var u=1,m=s;m&gt;0;--m)v(u*=.99,l),y();function v(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&amp;&amp;k(i,r)&gt;0);else if(0==o&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else if(o==n-1&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else{var l=e.mean(i.sourceLinks,g),c=e.mean(i.targetLinks,d),u=((l&amp;&amp;c?(l+c)/2:l||c)-p(i))*t;i.y0+=u,i.y1+=u}}))}))}function y(){c.forEach((function(e){var r,n,i,o=a,s=e.length;for(e.sort(f),i=0;i&lt;s;++i)(n=o-(r=e[i]).y0)&gt;0&amp;&amp;(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-T)&gt;0)for(o=r.y0-=n,r.y1-=n,i=s-2;i&gt;=0;--i)(n=(r=e[i]).y1+t-o)&gt;0&amp;&amp;(r.y0-=n,r.y1-=n),o=r.y0}))}}function V(t){t.nodes.forEach((function(t){t.sourceLinks.sort(u),t.targetLinks.sort(c)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return z.nodeId=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:s(t),z):M},z.nodeAlign=function(t){return arguments.length?(E=&quot;function&quot;==typeof t?t:s(t),z):E},z.nodeWidth=function(t){return arguments.length?(A=+t,z):A},z.nodePadding=function(e){return arguments.length?(t=+e,z):t},z.nodes=function(t){return arguments.length?(L=&quot;function&quot;==typeof t?t:s(t),z):L},z.links=function(t){return arguments.length?(C=&quot;function&quot;==typeof t?t:s(t),z):C},z.size=function(t){return arguments.length?(i=a=0,b=+t[0],T=+t[1],z):[b-i,T-a]},z.extent=function(t){return arguments.length?(i=+t[0][0],b=+t[1][0],a=+t[0][1],T=+t[1][1],z):[[i,a],[b,T]]},z.iterations=function(t){return arguments.length?(P=+t,z):P},z.circularLinkGap=function(t){return arguments.length?(I=+t,z):I},z.nodePaddingRatio=function(t){return arguments.length?(n=+t,z):n},z.sortNodes=function(t){return arguments.length?(O=t,z):O},z.update=function(t){return w(t,M),V(t),t.links.forEach((function(t){t.circular&amp;&amp;(t.circularLinkType=t.y0+t.y1&lt;T?&quot;top&quot;:&quot;bottom&quot;,t.source.circularLinkType=t.circularLinkType,t.target.circularLinkType=t.circularLinkType)})),j(t,T,M,!1),U(t,T,M),S(t,I,T,M),t},z},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=o,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:162,&quot;d3-collection&quot;:163,&quot;d3-shape&quot;:174,&quot;elementary-circuits-directed-graph&quot;:188}],57:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)}(this,(function(t,e,r,n){&quot;use strict&quot;;function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function o(t){return function(){return t}}function s(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function u(t){return t.value}function f(t){return(t.y0+t.y1)/2}function h(t){return f(t.source)*t.value}function p(t){return f(t.target)*t.value}function d(t){return t.index}function g(t){return t.nodes}function m(t){return t.links}function v(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function y(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}t.sankey=function(){var t=0,n=0,i=1,y=1,x=24,b=8,_=d,w=a,T=g,k=m,A=32;function M(){var t={nodes:T.apply(null,arguments),links:k.apply(null,arguments)};return S(t),E(t),L(t),C(t),P(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,_);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!=typeof n&amp;&amp;(n=t.source=v(e,n)),&quot;object&quot;!=typeof i&amp;&amp;(i=t.target=v(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}function E(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,u),e.sum(t.targetLinks,u))}))}function L(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)&lt;0&amp;&amp;n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)&lt;0&amp;&amp;n.push(t.source)}))}));var o=(i-t-x)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*o)+x}))}function C(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));!function(){var r=e.max(i,(function(t){return t.length})),a=2/3*(y-n)/(r-1);b&gt;a&amp;&amp;(b=a);var o=e.min(i,(function(t){return(y-n-(t.length-1)*b)/e.sum(t,u)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))}(),d();for(var a=1,o=A;o&gt;0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,h)/e.sum(r.targetLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(c),i=0;i&lt;o;++i)(r=a-(e=t[i]).y0)&gt;0&amp;&amp;(e.y0+=r,e.y1+=r),a=e.y1+b;if((r=a-b-y)&gt;0)for(a=e.y0-=r,e.y1-=r,i=o-2;i&gt;=0;--i)(r=(e=t[i]).y1+b-a)&gt;0&amp;&amp;(e.y0-=r,e.y1-=r),a=e.y0}))}}function P(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return M.update=function(t){return P(t),t},M.nodeId=function(t){return arguments.length?(_=&quot;function&quot;==typeof t?t:o(t),M):_},M.nodeAlign=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:o(t),M):w},M.nodeWidth=function(t){return arguments.length?(x=+t,M):x},M.nodePadding=function(t){return arguments.length?(b=+t,M):b},M.nodes=function(t){return arguments.length?(T=&quot;function&quot;==typeof t?t:o(t),M):T},M.links=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:o(t),M):k},M.size=function(e){return arguments.length?(t=n=0,i=+e[0],y=+e[1],M):[i-t,y-n]},M.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],y=+e[1][1],M):[[t,n],[i,y]]},M.iterations=function(t){return arguments.length?(A=+t,M):A},M},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(y).target(x)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:162,&quot;d3-collection&quot;:163,&quot;d3-shape&quot;:174}],58:[function(t,e,r){(function(){var t={version:&quot;3.8.0&quot;},r=[].slice,n=function(t){return r.call(t)},i=self.document;function a(t){return t&amp;&amp;(t.ownerDocument||t.document||t).documentElement}function o(t){return t&amp;&amp;(t.ownerDocument&amp;&amp;t.ownerDocument.defaultView||t.document&amp;&amp;t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(&quot;DIV&quot;).style.setProperty(&quot;opacity&quot;,0,&quot;&quot;)}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+&quot;&quot;)},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+&quot;&quot;)},u.setProperty=function(t,e,r){f.call(this,t,e+&quot;&quot;,r)}}function h(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;r&gt;n&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;r&gt;n&amp;&amp;(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;n&gt;r&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;r&amp;&amp;(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a&lt;o;)if(null!=(n=t[a])&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=t[a])&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}else{for(;++a&lt;o;)if(null!=(n=e.call(t,t[a],a))&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=e.call(t,t[a],a))&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a&lt;i;)d(r=+t[a])&amp;&amp;(n+=r);else for(;++a&lt;i;)d(r=+e.call(t,t[a],a))&amp;&amp;(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a&lt;i;)d(r=p(t[a]))?n+=r:--o;else for(;++a&lt;i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o&lt;a;)d(n=p(e[o]))&amp;&amp;i.push(n);else for(;++o&lt;a;)d(n=p(r.call(e,e[o],o)))&amp;&amp;i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s&lt;i;)d(r=p(t[s]))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s&lt;i;)d(r=p(e.call(t,t[s],s)))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));if(l&gt;1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var m=g(h);function v(t){return t.length}t.bisectLeft=m.left,t.bisect=t.bisectRight=m.right,t.bisector=function(t){return g(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)&lt;3&amp;&amp;(r=t.length,a&lt;2&amp;&amp;(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r&lt;0?0:r);e&lt;r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,v),i=new Array(n);++r&lt;n;)for(var a,o=-1,s=i[r]=new Array(a);++o&lt;a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=1,arguments.length&lt;2&amp;&amp;(e=t,t=0)),(e-t)/r==1/0)throw new Error(&quot;infinite range&quot;);var n,i=[],a=x(y(r)),o=-1;if(t*=a,e*=a,(r*=a)&lt;0)for(;(n=t+r*++o)&gt;e;)i.push(n/a);else for(;(n=t+r*++o)&lt;e;)i.push(n/a);return i},t.map=function(t,e){var r=new _;if(t instanceof _)t.forEach((function(t,e){r.set(t,e)}));else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i&lt;a;)r.set(i,t[i]);else for(;++i&lt;a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};function w(t){return&quot;__proto__&quot;==(t+=&quot;&quot;)||&quot;\0&quot;===t[0]?&quot;\0&quot;+t:t}function T(t){return&quot;\0&quot;===(t+=&quot;&quot;)[0]?t.slice(1):t}function k(t){return w(t)in this._}function A(t){return(t=w(t))in this._&amp;&amp;delete this._[t]}function M(){var t=[];for(var e in this._)t.push(T(e));return t}function S(){var t=0;for(var e in this._)++t;return t}function E(){for(var t in this._)return!1;return!0}function L(){this._=Object.create(null)}function C(t){return t}function P(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function I(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=O.length;r&lt;n;++r){var i=O[r]+e;if(i in t)return i}}b(_,{has:k,get:function(t){return this._[w(t)]},set:function(t,e){return this._[w(t)]=e},remove:A,keys:M,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:T(e),value:this._[e]});return t},size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s&gt;=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],g=new _;++h&lt;p;)(f=g.get(l=d(c=a[h])))?f.push(c):g.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),g.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r&gt;=i.length)return e;var n=[],o=a[r++];return e.forEach((function(e,i){n.push({key:e,values:t(i,r)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new L;if(t)for(var r=0,n=t.length;r&lt;n;++r)e.add(t[r]);return e},b(L,{has:k,add:function(t){return this._[w(t+=&quot;&quot;)]=!0,t},remove:A,values:M,size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n&lt;i;)t[r=arguments[n]]=P(t,e,e[r]);return t};var O=[&quot;webkit&quot;,&quot;ms&quot;,&quot;moz&quot;,&quot;Moz&quot;,&quot;o&quot;,&quot;O&quot;];function z(){}function D(){}function R(t){var e=[],r=new _;function n(){for(var r,n=e,i=-1,a=n.length;++i&lt;a;)(r=n[i].on)&amp;&amp;r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length&lt;2?o&amp;&amp;o.on:(o&amp;&amp;(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&amp;&amp;e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function B(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function N(e){for(var r=new D,n=0,i=arguments.length;++n&lt;i;)r[arguments[n]]=R(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new D,e=-1,r=arguments.length;++e&lt;r;)t[arguments[e]]=R(t);return t},D.prototype.on=function(t,e){var r=t.indexOf(&quot;.&quot;),n=&quot;&quot;;if(r&gt;=0&amp;&amp;(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length&lt;2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&amp;&amp;this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(j,&quot;\\$&amp;&quot;)};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function V(t){return U(t,Y),t}var q=function(t,e){return e.querySelector(t)},H=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var r=t.matches||t[I(t,&quot;matchesSelector&quot;)];return(G=function(t,e){return r.call(t,e)})(t,e)};&quot;function&quot;==typeof Sizzle&amp;&amp;(q=function(t,e){return Sizzle(t,e)[0]||null},H=Sizzle,G=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function W(t){return&quot;function&quot;==typeof t?t:function(){return q(t,this)}}function X(t){return&quot;function&quot;==typeof t?t:function(){return H(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=W(t);for(var o=-1,s=this.length;++o&lt;s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l&lt;c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&amp;&amp;&quot;__data__&quot;in i&amp;&amp;(r.__data__=i.__data__)):e.push(null)}return V(a)},Y.selectAll=function(t){var e,r,i=[];t=X(t);for(var a=-1,o=this.length;++a&lt;o;)for(var s=this[a],l=-1,c=s.length;++l&lt;c;)(r=s[l])&amp;&amp;(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return V(i)};var Z=&quot;http://www.w3.org/1999/xhtml&quot;,J={svg:&quot;http://www.w3.org/2000/svg&quot;,xhtml:Z,xlink:&quot;http://www.w3.org/1999/xlink&quot;,xml:&quot;http://www.w3.org/XML/1998/namespace&quot;,xmlns:&quot;http://www.w3.org/2000/xmlns/&quot;};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:&quot;function&quot;==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\s+/g,&quot; &quot;)}function $(e){return new RegExp(&quot;(?:^|\\s+)&quot;+t.requote(e)+&quot;(?:\\s+|$)&quot;,&quot;g&quot;)}function tt(t){return(t+&quot;&quot;).trim().split(/^|\s+/)}function et(t,e){var r=(t=tt(t).map(rt)).length;return&quot;function&quot;==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n&lt;r;)t[n](this,i)}:function(){for(var n=-1;++n&lt;r;)t[n](this,e)}}function rt(t){var e=$(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(&quot;class&quot;)||&quot;&quot;;n?(e.lastIndex=0,e.test(i)||r.setAttribute(&quot;class&quot;,Q(i+&quot; &quot;+t))):r.setAttribute(&quot;class&quot;,Q(i.replace(e,&quot; &quot;)))}}function nt(t,e,r){return null==e?function(){this.style.removeProperty(t)}:&quot;function&quot;==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function it(t,e){return null==e?function(){delete this[t]}:&quot;function&quot;==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function at(e){return&quot;function&quot;==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Z&amp;&amp;t.documentElement.namespaceURI===Z?t.createElement(e):t.createElementNS(r,e)}}function ot(){var t=this.parentNode;t&amp;&amp;t.removeChild(this)}function st(t){return{__data__:t}}function lt(t){return function(){return G(this,t)}}function ct(t){return arguments.length||(t=h),function(e,r){return e&amp;&amp;r?t(e.__data__,r.__data__):!e-!r}}function ut(t,e){for(var r=0,n=t.length;r&lt;n;r++)for(var i,a=t[r],o=0,s=a.length;o&lt;s;o++)(i=a[o])&amp;&amp;e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(&quot;:&quot;),r=t;return e&gt;=0&amp;&amp;&quot;xmlns&quot;!==(r=t.slice(0,e))&amp;&amp;(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length&lt;2){if(&quot;string&quot;==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t){var r=this.node(),n=(t=tt(t)).length,i=-1;if(e=r.classList){for(;++i&lt;n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(&quot;class&quot;);++i&lt;n;)if(!$(t[i]).test(e))return!1;return!0}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.each(nt(r,t[r],e));return this}if(n&lt;2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=&quot;&quot;}return this.each(nt(t,e,r))},Y.property=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t)return this.node()[t];for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},Y.text=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?&quot;&quot;:e}:null==t?function(){this.textContent=&quot;&quot;}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?&quot;&quot;:e}:null==t?function(){this.innerHTML=&quot;&quot;}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=at(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},Y.insert=function(t,e){return t=at(t),e=W(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},Y.remove=function(){return this.each(ot)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i&lt;a;)(n=r[i])&amp;&amp;(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var g,m=new _,v=new Array(o);for(n=-1;++n&lt;o;)(i=t[n])&amp;&amp;(m.has(g=e.call(i,i.__data__,n))?d[n]=i:m.set(g,i),v[n]=g);for(n=-1;++n&lt;u;)(i=m.get(g=e.call(r,a=r[n],n)))?!0!==i&amp;&amp;(h[n]=i,i.__data__=a):p[n]=st(a),m.set(g,!0);for(n=-1;++n&lt;o;)n in v&amp;&amp;!0!==m.get(v[n])&amp;&amp;(d[n]=t[n])}else{for(n=-1;++n&lt;f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=st(a);for(;n&lt;u;++n)p[n]=st(r[n]);for(;n&lt;o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=V([]),c=V([]);if(&quot;function&quot;==typeof t)for(;++i&lt;a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i&lt;a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(&quot;__data__&quot;,t):this.property(&quot;__data__&quot;)},Y.filter=function(t){var e,r,n,i=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var a=0,o=this.length;a&lt;o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s&lt;l;s++)(n=r[s])&amp;&amp;t.call(n,n.__data__,s,a)&amp;&amp;e.push(n)}return V(i)},Y.order=function(){for(var t=-1,e=this.length;++t&lt;e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i&gt;=0;)(r=n[i])&amp;&amp;(a&amp;&amp;a!==r.nextSibling&amp;&amp;a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=ct.apply(this,arguments);for(var e=-1,r=this.length;++e&lt;r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,(function(e,r,n){t.call(e,e.__data__,r,n)}))},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t&lt;e;t++)for(var r=this[t],n=0,i=r.length;n&lt;i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,(function(){++t})),t};var ht=[];function pt(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&amp;&amp;(r=a,e=0),i&gt;=e&amp;&amp;(e=i+1);!(o=s[e])&amp;&amp;++e&lt;l;);return o}}function dt(e,r,i){var a=&quot;__on&quot;+e,o=e.indexOf(&quot;.&quot;),s=mt;o&gt;0&amp;&amp;(e=e.slice(0,o));var l=gt.get(e);function c(){var t=this[a];t&amp;&amp;(this.removeEventListener(e,t,t.$),delete this[a])}return l&amp;&amp;(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?z:function(){var r,n=new RegExp(&quot;^__on([^.]+)&quot;+t.requote(e)+&quot;$&quot;);for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s&lt;l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c&lt;u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return V(o)},ht.insert=function(t,e){return arguments.length&lt;2&amp;&amp;(e=pt(this)),Y.insert.call(this,t,e)},t.select=function(t){var e;return&quot;string&quot;==typeof t?(e=[q(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),V([e])},t.selectAll=function(t){var e;return&quot;string&quot;==typeof t?(e=n(H(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,V([e])},Y.on=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=!1),t)this.each(dt(r,t[r],e));return this}if(n&lt;2)return(n=this.node()[&quot;__on&quot;+t])&amp;&amp;n._;r=!1}return this.each(dt(t,e,r))};var gt=t.map({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;});function mt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=mt(t,e);return function(t){var e=t.relatedTarget;e&amp;&amp;(e===this||8&amp;e.compareDocumentPosition(this))||r.call(this,t)}}i&amp;&amp;gt.forEach((function(t){&quot;on&quot;+t in i&amp;&amp;gt.remove(t)}));var yt,xt=0;function bt(e){var r=&quot;.dragsuppress-&quot;+ ++xt,n=&quot;click&quot;+r,i=t.select(o(e)).on(&quot;touchmove&quot;+r,F).on(&quot;dragstart&quot;+r,F).on(&quot;selectstart&quot;+r,F);if(null==yt&amp;&amp;(yt=!(&quot;onselectstart&quot;in e)&amp;&amp;I(e.style,&quot;userSelect&quot;)),yt){var s=a(e).style,l=s[yt];s[yt]=&quot;none&quot;}return function(t){if(i.on(r,null),yt&amp;&amp;(s[yt]=l),t){var e=function(){i.on(n,null)};i.on(n,(function(){F(),e()}),!0),setTimeout(e,0)}}}t.mouse=function(t){return wt(t,B())};var _t=this.navigator&amp;&amp;/WebKit/.test(this.navigator.userAgent)?-1:0;function wt(e,r){r.changedTouches&amp;&amp;(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(_t&lt;0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(&quot;body&quot;).append(&quot;svg&quot;).style({position:&quot;absolute&quot;,top:0,left:0,margin:0,padding:0,border:&quot;none&quot;},&quot;important&quot;))[0][0].getScreenCTM();_t=!(s.f||s.e),n.remove()}}return _t?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function Tt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=e,e=B().changedTouches),e)for(var n,i=0,a=e.length;i&lt;a;++i)if((n=e[i]).identifier===r)return wt(t,n)},t.behavior.drag=function(){var e=N(a,&quot;drag&quot;,&quot;dragstart&quot;,&quot;dragend&quot;),r=null,n=s(z,t.mouse,o,&quot;mousemove&quot;,&quot;mouseup&quot;),i=s(Tt,t.touch,C,&quot;touchmove&quot;,&quot;touchend&quot;);function a(){this.on(&quot;mousedown.drag&quot;,n).on(&quot;touchstart.drag&quot;,i)}function s(n,i,a,o,s){return function(){var l,c=this,u=t.event.target.correspondingElement||t.event.target,f=c.parentNode,h=e.of(c,arguments),p=0,d=n(),g=&quot;.drag&quot;+(null==d?&quot;&quot;:&quot;-&quot;+d),m=t.select(a(u)).on(o+g,x).on(s+g,b),v=bt(u),y=i(f,d);function x(){var t,e,r=i(f,d);r&amp;&amp;(t=r[0]-y[0],e=r[1]-y[1],p|=t|e,y=r,h({type:&quot;drag&quot;,x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function b(){i(f,d)&amp;&amp;(m.on(o+g,null).on(s+g,null),v(p),h({type:&quot;dragend&quot;}))}l=r?[(l=r.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],h({type:&quot;dragstart&quot;})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,&quot;on&quot;)},t.touches=function(t,e){return arguments.length&lt;2&amp;&amp;(e=B().touches),e?n(e).map((function(e){var r=wt(t,e);return r.identifier=e.identifier,r})):[]};var kt=1e-6,At=Math.PI,Mt=2*At,St=Mt-kt,Et=At/2,Lt=At/180,Ct=180/At;function Pt(t){return t&gt;1?Et:t&lt;-1?-Et:Math.asin(t)}function It(t){return((t=Math.exp(t))+1/t)/2}var Ot=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/Ot,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Ot*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/Ot,r=function(t){var e,r=t*n,s=It(m),l=o/(2*p)*(s*(e=Ot*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/It(Ot*r+m)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=Rt,g=250,m=0,v=&quot;mousedown.zoom&quot;,y=&quot;mousemove.zoom&quot;,x=&quot;mouseup.zoom&quot;,b=&quot;touchstart.zoom&quot;,_=N(w,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;);function w(t){t.on(v,P).on(Dt+&quot;.zoom&quot;,O).on(&quot;dblclick.zoom&quot;,z).on(b,I)}function T(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(d[0],Math.min(d[1],t))}function A(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function M(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,a)),A(r=n,i),e=t.select(e),g&gt;0&amp;&amp;(e=e.transition().duration(g)),e.call(w.event)}function S(){c&amp;&amp;c.domain(l.range().map((function(t){return(t-h.x)/h.k})).map(l.invert)),f&amp;&amp;f.domain(u.range().map((function(t){return(t-h.y)/h.k})).map(u.invert))}function E(t){m++||t({type:&quot;zoomstart&quot;})}function L(t){S(),t({type:&quot;zoom&quot;,scale:h.k,translate:[h.x,h.y]})}function C(t){--m||(t({type:&quot;zoomend&quot;}),r=null)}function P(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,l).on(x,c),a=T(t.mouse(e)),s=bt(e);function l(){n=1,A(t.mouse(e),a),L(r)}function c(){i.on(y,null).on(x,null),s(n),C(r)}Di.call(e),E(r)}function I(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=&quot;.zoom-&quot;+t.event.changedTouches[0].identifier,l=&quot;touchmove&quot;+o,c=&quot;touchend&quot;+o,u=[],f=t.select(r),p=bt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach((function(t){t.identifier in i&amp;&amp;(i[t.identifier]=T(t))})),n}function g(){var e=t.event.target;t.select(e).on(l,m).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o&lt;f;++o)i[n[o].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-s&lt;500){var v=p[0];M(r,v,i[v.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=g}else if(p.length&gt;1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];a=b*b+_*_}}function m(){var o,l,c,u,f=t.touches(r);Di.call(r);for(var h=0,p=f.length;h&lt;p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,g=a&amp;&amp;Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],k(g*e)}s=null,A(o,l),L(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r&lt;a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(v,P).on(b,I),p(),C(n)}g(),E(n),f.on(v,null).on(b,g)}function O(){var i=_.of(this,arguments);a?clearTimeout(a):(Di.call(this),e=T(r=n||t.mouse(this)),E(i)),a=setTimeout((function(){a=null,C(i)}),50),F(),k(Math.pow(2,.002*zt())*h.k),A(r,e),L(i)}function z(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;M(this,e,T(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return Dt||(Dt=&quot;onwheel&quot;in i?(zt=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},&quot;wheel&quot;):&quot;onmousewheel&quot;in i?(zt=function(){return t.event.wheelDelta},&quot;mousewheel&quot;):(zt=function(){return-t.event.detail},&quot;MozMousePixelScroll&quot;)),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=h;Bi?t.select(this).transition().each(&quot;start.zoom&quot;,(function(){h=this.__chart__||{x:0,y:0,k:1},E(e)})).tween(&quot;zoom:zoom&quot;,(function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},L(e)}})).each(&quot;interrupt.zoom&quot;,(function(){C(e)})).each(&quot;end.zoom&quot;,(function(){C(e)})):(this.__chart__=h,E(e),L(e),C(e))}))},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},k(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?Rt:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&amp;&amp;[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&amp;&amp;[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,&quot;on&quot;)};var zt,Dt,Rt=[0,1/0];function Ft(){}function Bt(t,e,r){return this instanceof Bt?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length&lt;2?t instanceof Bt?new Bt(t.h,t.s,t.l):ne(&quot;&quot;+t,ie,Bt):new Bt(t,e,r)}t.color=Ft,Ft.prototype.toString=function(){return this.rgb()+&quot;&quot;},t.hsl=Bt;var Nt=Bt.prototype=new Ft;function jt(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t&gt;360?t-=360:t&lt;0&amp;&amp;(t+=360),t&lt;60?n+(i-n)*t/60:t&lt;180?i:t&lt;240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)&lt;0?t+360:t,e=isNaN(e)||e&lt;0?0:e&gt;1?1:e,n=2*(r=r&lt;0?0:r&gt;1?1:r)-(i=r&lt;=.5?r*(1+e):r+e-r*e),new Qt(a(t+120),a(t),a(t-120))}function Ut(e,r,n){return this instanceof Ut?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length&lt;2?e instanceof Ut?new Ut(e.h,e.c,e.l):Xt(e instanceof Ht?e.l:(e=ae((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ut(e,r,n)}Nt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Bt(this.h,this.s,this.l/t)},Nt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Bt(this.h,this.s,t*this.l)},Nt.rgb=function(){return jt(this.h,this.s,this.l)},t.hcl=Ut;var Vt=Ut.prototype=new Ft;function qt(t,e,r){return isNaN(t)&amp;&amp;(t=0),isNaN(e)&amp;&amp;(e=0),new Ht(r,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function Ht(t,e,r){return this instanceof Ht?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length&lt;2?t instanceof Ht?new Ht(t.l,t.a,t.b):t instanceof Ut?qt(t.h,t.c,t.l):ae((t=Qt(t)).r,t.g,t.b):new Ht(t,e,r)}Vt.brighter=function(t){return new Ut(this.h,this.c,Math.min(100,this.l+Gt*(arguments.length?t:1)))},Vt.darker=function(t){return new Ut(this.h,this.c,Math.max(0,this.l-Gt*(arguments.length?t:1)))},Vt.rgb=function(){return qt(this.h,this.c,this.l).rgb()},t.lab=Ht;var Gt=18,Yt=Ht.prototype=new Ft;function Wt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new Qt(Kt(3.2404542*(i=.95047*Zt(i))-1.5371385*(n=1*Zt(n))-.4985314*(a=1.08883*Zt(a))),Kt(-.969266*i+1.8760108*n+.041556*a),Kt(.0556434*i-.2040259*n+1.0572252*a))}function Xt(t,e,r){return t&gt;0?new Ut(Math.atan2(r,e)*Ct,Math.sqrt(e*e+r*r),t):new Ut(NaN,NaN,t)}function Zt(t){return t&gt;.206893034?t*t*t:(t-4/29)/7.787037}function Jt(t){return t&gt;.008856?Math.pow(t,1/3):7.787037*t+4/29}function Kt(t){return Math.round(255*(t&lt;=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Qt(t,e,r){return this instanceof Qt?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length&lt;2?t instanceof Qt?new Qt(t.r,t.g,t.b):ne(&quot;&quot;+t,Qt,jt):new Qt(t,e,r)}function $t(t){return new Qt(t&gt;&gt;16,t&gt;&gt;8&amp;255,255&amp;t)}function te(t){return $t(t)+&quot;&quot;}Yt.brighter=function(t){return new Ht(Math.min(100,this.l+Gt*(arguments.length?t:1)),this.a,this.b)},Yt.darker=function(t){return new Ht(Math.max(0,this.l-Gt*(arguments.length?t:1)),this.a,this.b)},Yt.rgb=function(){return Wt(this.l,this.a,this.b)},t.rgb=Qt;var ee=Qt.prototype=new Ft;function re(t){return t&lt;16?&quot;0&quot;+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ne(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(&quot;,&quot;),n[1]){case&quot;hsl&quot;:return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case&quot;rgb&quot;:return e(se(i[0]),se(i[1]),se(i[2]))}return(a=le.get(t))?e(a.r,a.g,a.b):(null==t||&quot;#&quot;!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&amp;a)&gt;&gt;4,o|=o&gt;&gt;4,s=240&amp;a,s|=s&gt;&gt;4,l=15&amp;a,l|=l&lt;&lt;4):7===t.length&amp;&amp;(o=(16711680&amp;a)&gt;&gt;16,s=(65280&amp;a)&gt;&gt;8,l=255&amp;a)),e(o,s,l))}function ie(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l&lt;.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e&lt;r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l&gt;0&amp;&amp;l&lt;1?0:n),new Bt(n,i,l)}function ae(t,e,r){var n=Jt((.4124564*(t=oe(t))+.3575761*(e=oe(e))+.1804375*(r=oe(r)))/.95047),i=Jt((.2126729*t+.7151522*e+.072175*r)/1);return Ht(116*i-16,500*(n-i),200*(i-Jt((.0193339*t+.119192*e+.9503041*r)/1.08883)))}function oe(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function se(t){var e=parseFloat(t);return&quot;%&quot;===t.charAt(t.length-1)?Math.round(2.55*e):e}ee.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&amp;&amp;e&lt;i&amp;&amp;(e=i),r&amp;&amp;r&lt;i&amp;&amp;(r=i),n&amp;&amp;n&lt;i&amp;&amp;(n=i),new Qt(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new Qt(i,i,i)},ee.darker=function(t){return new Qt((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},ee.hsl=function(){return ie(this.r,this.g,this.b)},ee.toString=function(){return&quot;#&quot;+re(this.r)+re(this.g)+re(this.b)};var le=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function ce(t){return&quot;function&quot;==typeof t?t:function(){return t}}function ue(t){return function(e,r,n){return 2===arguments.length&amp;&amp;&quot;function&quot;==typeof r&amp;&amp;(n=r,r=null),fe(e,r,t,n)}}function fe(e,r,i,a){var o={},s=t.dispatch(&quot;beforesend&quot;,&quot;progress&quot;,&quot;load&quot;,&quot;error&quot;),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&amp;&amp;function(t){var e=t.responseType;return e&amp;&amp;&quot;text&quot;!==e?t.response:t.responseText}(c)||e&gt;=200&amp;&amp;e&lt;300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return self.XDomainRequest&amp;&amp;!(&quot;withCredentials&quot;in c)&amp;&amp;/^(http(s)?:)?\/\//.test(e)&amp;&amp;(c=new XDomainRequest),&quot;onload&quot;in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState&gt;3&amp;&amp;f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+&quot;&quot;).toLowerCase(),arguments.length&lt;2?l[t]:(null==e?delete l[t]:l[t]=e+&quot;&quot;,o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+&quot;&quot;,o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[&quot;get&quot;,&quot;post&quot;].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&amp;&amp;&quot;function&quot;==typeof n&amp;&amp;(i=n,n=null),c.open(t,e,!0),null==r||&quot;accept&quot;in l||(l.accept=r+&quot;,*/*&quot;),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&amp;&amp;c.overrideMimeType&amp;&amp;c.overrideMimeType(r),null!=u&amp;&amp;(c.responseType=u),null!=i&amp;&amp;o.on(&quot;error&quot;,i).on(&quot;load&quot;,(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,&quot;on&quot;),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}le.forEach((function(t,e){le.set(t,$t(e))})),t.functor=ce,t.xhr=ue(C),t.dsv=function(t,e){var r=new RegExp('[&quot;'+t+&quot;\n]&quot;),n=t.charCodeAt(0);function i(t,r,n){arguments.length&lt;3&amp;&amp;(n=r,r=null);var i=fe(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'&quot;'+t.replace(/\&quot;/g,'&quot;&quot;')+'&quot;':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=function(e){for(var r={},n=t.length,i=0;i&lt;n;++i)r[t[i]]=e[i];return r};r=e?function(t,r){return e(i(t),r)}:i}))},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c&gt;=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++&lt;l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&amp;&amp;++c):10===s&amp;&amp;(i=!0),t.slice(e+1,r).replace(/&quot;&quot;/g,'&quot;')}for(;c&lt;l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&amp;&amp;(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&amp;&amp;r!==o;)h.push(r),r=f();e&amp;&amp;null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new L,n=[];return e.forEach((function(t){for(var e in t)r.has(e)||n.push(r.add(e))})),[n.map(l).join(t)].concat(e.map((function(e){return n.map((function(t){return l(e[t])})).join(t)}))).join(&quot;\n&quot;)},i.formatRows=function(t){return t.map(s).join(&quot;\n&quot;)},i},t.csv=t.dsv(&quot;,&quot;,&quot;text/csv&quot;),t.tsv=t.dsv(&quot;\t&quot;,&quot;text/tab-separated-values&quot;);var he,pe,de,ge,me=this[I(this,&quot;requestAnimationFrame&quot;)]||function(t){setTimeout(t,17)};function ve(t,e,r){var n=arguments.length;n&lt;2&amp;&amp;(e=0),n&lt;3&amp;&amp;(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return pe?pe.n=a:he=a,pe=a,de||(ge=clearTimeout(ge),de=1,me(ye)),a}function ye(){var t=xe(),e=be()-t;e&gt;24?(isFinite(e)&amp;&amp;(clearTimeout(ge),ge=setTimeout(ye,e)),de=0):(de=1,me(ye))}function xe(){for(var t=Date.now(),e=he;e;)t&gt;=e.t&amp;&amp;e.c(t-e.t)&amp;&amp;(e.c=null),e=e.n;return t}function be(){for(var t,e=he,r=1/0;e;)e.c?(e.t&lt;r&amp;&amp;(r=e.t),e=(t=e).n):e=t?t.n=e.n:he=e.n;return pe=t,r}function _e(t){return t[0]}function we(t){return t[1]}function Te(t){for(var e,r,n,i=t.length,a=[0,1],o=2,s=2;s&lt;i;s++){for(;o&gt;1&amp;&amp;(e=t[a[o-2]],r=t[a[o-1]],n=t[s],(r[0]-e[0])*(n[1]-e[1])-(r[1]-e[1])*(n[0]-e[0])&lt;=0);)--o;a[o++]=s}return a.slice(0,o)}function ke(t,e){return t[0]-e[0]||t[1]-e[1]}t.timer=function(){ve.apply(this,arguments)},t.timer.flush=function(){xe(),be()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)},t.geom={},t.geom.hull=function(t){var e=_e,r=we;if(arguments.length)return n(t);function n(t){if(t.length&lt;3)return[];var n,i=ce(e),a=ce(r),o=t.length,s=[],l=[];for(n=0;n&lt;o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ke),n=0;n&lt;o;n++)l.push([s[n][0],-s[n][1]]);var c=Te(s),u=Te(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n&gt;=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n&lt;u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,Ae),t};var Ae=t.geom.polygon.prototype=[];function Me(t,e,r){return(r[0]-e[0])*(t[1]-e[1])&lt;(r[1]-e[1])*(t[0]-e[0])}function Se(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function Ee(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}Ae.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e&lt;r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},Ae.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n&lt;i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},Ae.clip=function(t){for(var e,r,n,i,a,o,s=Ee(t),l=-1,c=this.length-Ee(this),u=this[c-1];++l&lt;c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r&lt;n;)Me(o=e[r],u,i)?(Me(a,u,i)||t.push(Se(a,o,u,i)),t.push(o)):Me(a,u,i)&amp;&amp;t.push(Se(a,o,u,i)),a=o;s&amp;&amp;t.push(t[0]),u=i}return t};var Le,Ce,Pe,Ie,Oe,ze=[],De=[];function Re(){er(this),this.edge=this.site=this.circle=null}function Fe(t){var e=ze.pop()||new Re;return e.site=t,e}function Be(t){We(t),Pe.remove(t),ze.push(t),er(t)}function Ne(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];Be(t);for(var l=a;l.circle&amp;&amp;y(r-l.circle.x)&lt;kt&amp;&amp;y(n-l.circle.cy)&lt;kt;)a=l.P,s.unshift(l),Be(l),l=a;s.unshift(l),We(l);for(var c=o;c.circle&amp;&amp;y(r-c.circle.x)&lt;kt&amp;&amp;y(n-c.circle.cy)&lt;kt;)o=c.N,s.push(c),Be(c),c=o;s.push(c),We(c);var u,f=s.length;for(u=1;u&lt;f;++u)c=s[u],l=s[u-1],Qe(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Je(l.site,c.site,null,i),Ye(l),Ye(c)}function je(t){for(var e,r,n,i,a=t.x,o=t.y,s=Pe._;s;)if((n=Ue(s,o)-a)&gt;kt)s=s.L;else{if(!((i=a-Ve(s,o))&gt;kt)){n&gt;-kt?(e=s.P,r=s):i&gt;-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=Fe(t);if(Pe.insert(e,l),e||r){if(e===r)return We(e),r=Fe(e.site),Pe.insert(l,r),l.edge=r.edge=Je(e.site,l.site),Ye(e),void Ye(r);if(r){We(e),We(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,g=d.x-u,m=d.y-f,v=2*(h*m-p*g),y=h*h+p*p,x=g*g+m*m,b={x:(m*y-p*x)/v+u,y:(h*x-g*y)/v+f};Qe(r.edge,c,d,b),l.edge=Je(c,t,null,b),r.edge=Je(t,d,null,b),Ye(e),Ye(r)}else l.edge=Je(e.site,l.site)}}function Ue(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function Ve(t,e){var r=t.N;if(r)return Ue(r,e);var n=t.site;return n.y===e?n.x:1/0}function qe(t){this.site=t,this.edges=[]}function He(t,e){return e.angle-t.angle}function Ge(){er(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ye(t){var e=t.P,r=t.N;if(e&amp;&amp;r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(m=a.y-s)-c*u);if(!(f&gt;=-1e-12)){var h=l*l+c*c,p=u*u+m*m,d=(m*h-c*p)/f,g=(l*p-u*h)/f,m=g+s,v=De.pop()||new Ge;v.arc=t,v.site=i,v.x=d+o,v.y=m+Math.sqrt(d*d+g*g),v.cy=m,t.circle=v;for(var y=null,x=Oe._;x;)if(v.y&lt;x.y||v.y===x.y&amp;&amp;v.x&lt;=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}Oe.insert(y,v),y||(Ie=v)}}}}function We(t){var e=t.circle;e&amp;&amp;(e.P||(Ie=e.N),Oe.remove(e),De.push(e),er(e),t.circle=null)}function Xe(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,g=f.y,m=(h+d)/2,v=(p+g)/2;if(g===p){if(m&lt;o||m&gt;=s)return;if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:m,y:l};r={x:m,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:m,y:c};r={x:m,y:l}}}else if(i=v-(n=(h-d)/(g-p))*m,n&lt;-1||n&gt;1)if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p&lt;g){if(a){if(a.x&gt;=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x&lt;o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Ze(t,e){this.l=t,this.r=e,this.a=this.b=null}function Je(t,e,r,n){var i=new Ze(t,e);return Le.push(i),r&amp;&amp;Qe(i,t,e,r),n&amp;&amp;Qe(i,e,t,n),Ce[t.i].edges.push(new $e(i,t,e)),Ce[e.i].edges.push(new $e(i,e,t)),i}function Ke(t,e,r){var n=new Ze(t,null);return n.a=e,n.b=r,Le.push(n),n}function Qe(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function $e(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function tr(){this._=null}function er(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function rr(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&amp;&amp;(r.R.U=r),n.L=r}function nr(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&amp;&amp;(r.L.U=r),n.R=r}function ir(t){for(;t.L;)t=t.L;return t}function ar(t,e){var r,n,i,a=t.sort(or).pop();for(Le=[],Ce=new Array(t.length),Pe=new tr,Oe=new tr;;)if(i=Ie,a&amp;&amp;(!i||a.y&lt;i.y||a.y===i.y&amp;&amp;a.x&lt;i.x))a.x===r&amp;&amp;a.y===n||(Ce[a.i]=new qe(a),je(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;Ne(i.arc)}e&amp;&amp;(function(t){for(var e,r,n,i,a,o=Le,s=(r=t[0][0],n=t[0][1],i=t[1][0],a=t[1][1],function(t){var e,o=t.a,s=t.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(e=r-l,h||!(e&gt;0)){if(e/=h,h&lt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}else if(h&gt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}if(e=i-l,h||!(e&lt;0)){if(e/=h,h&lt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}else if(h&gt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}if(e=n-c,p||!(e&gt;0)){if(e/=p,p&lt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}else if(p&gt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}if(e=a-c,p||!(e&lt;0)){if(e/=p,p&lt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}else if(p&gt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}return u&gt;0&amp;&amp;(t.a={x:l+u*h,y:c+u*p}),f&lt;1&amp;&amp;(t.b={x:l+f*h,y:c+f*p}),t}}}}}),l=o.length;l--;)(!Xe(e=o[l],t)||!s(e)||y(e.a.x-e.b.x)&lt;kt&amp;&amp;y(e.a.y-e.b.y)&lt;kt)&amp;&amp;(e.a=e.b=null,o.splice(l,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=Ce,m=g.length;m--;)if((a=g[m])&amp;&amp;a.prepare())for(l=(s=a.edges).length,o=0;o&lt;l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)&gt;kt||y(i-r)&gt;kt)&amp;&amp;(s.splice(o,0,new $e(Ke(a.site,u,y(n-f)&lt;kt&amp;&amp;d-i&gt;kt?{x:f,y:y(e-f)&lt;kt?r:d}:y(i-d)&lt;kt&amp;&amp;h-n&gt;kt?{x:y(r-d)&lt;kt?e:h,y:d}:y(n-h)&lt;kt&amp;&amp;i-p&gt;kt?{x:h,y:y(e-h)&lt;kt?r:p}:y(i-p)&lt;kt&amp;&amp;n-f&gt;kt?{x:y(r-p)&lt;kt?e:f,y:p}:null),a.site,null)),++l)}(e));var o={cells:Ce,edges:Le};return Pe=Oe=Le=Ce=null,o}function or(t,e){return e.y-t.y||e.x-t.x}qe.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&amp;&amp;t.a||e.splice(r,1);return e.sort(He),e.length},$e.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},tr.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&amp;&amp;(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=ir(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&amp;&amp;r.C;)r===(n=r.U).L?(i=n.R)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&amp;&amp;(rr(this,r),r=(t=r).U),r.C=!1,n.C=!0,nr(this,n)):(i=n.L)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&amp;&amp;(nr(this,r),r=(t=r).U),r.C=!1,n.C=!0,rr(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&amp;&amp;(t.N.P=t.P),t.P&amp;&amp;(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?ir(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&amp;&amp;o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&amp;&amp;(t.U=i),!n)if(t&amp;&amp;t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&amp;&amp;(e.C=!1,i.C=!0,rr(this,i),e=i.R),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.R&amp;&amp;e.R.C||(e.L.C=!1,e.C=!0,nr(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,rr(this,i),t=this._;break}}else if((e=i.L).C&amp;&amp;(e.C=!1,i.C=!0,nr(this,i),e=i.L),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.L&amp;&amp;e.L.C||(e.R.C=!1,e.C=!0,rr(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,nr(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&amp;&amp;(t.C=!1)}}},t.geom.voronoi=function(t){var e=_e,r=we,n=e,i=r,a=sr;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return ar(s(t),a).cells.forEach((function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):c.x&gt;=r&amp;&amp;c.x&lt;=i&amp;&amp;c.y&gt;=n&amp;&amp;c.y&lt;=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return o.links=function(t){return ar(s(t)).edges.filter((function(t){return t.l&amp;&amp;t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return ar(s(t)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(He),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u&lt;f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n&lt;i.i&amp;&amp;n&lt;p.i&amp;&amp;(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)&lt;0)&amp;&amp;e.push([t[n],t[i.i],t[p.i]])})),e},o.x=function(t){return arguments.length?(n=ce(e=t),o):e},o.y=function(t){return arguments.length?(i=ce(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?sr:t,o):a===sr?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&amp;&amp;[[0,0],t]):a===sr?null:a&amp;&amp;a[1]},o};var sr=[[-1e6,-1e6],[1e6,1e6]];function lr(t){return t.x}function cr(t){return t.y}function ur(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&amp;&amp;ur(t,l[0],r,n,o,s),l[1]&amp;&amp;ur(t,l[1],o,n,i,s),l[2]&amp;&amp;ur(t,l[2],r,s,o,a),l[3]&amp;&amp;ur(t,l[3],o,s,i,a)}}function fr(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u&gt;a||f&gt;o||h&lt;n||p&lt;i)){if(d=c.point){var d,g=e-c.x,m=r-c.y,v=g*g+m*m;if(v&lt;l){var y=Math.sqrt(l=v);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r&gt;=_)&lt;&lt;1|e&gt;=b,T=w+4;w&lt;T;++w)if(c=x[3&amp;w])switch(3&amp;w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}function hr(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return&quot;#&quot;+re(Math.round(n+o*t))+re(Math.round(i+s*t))+re(Math.round(a+l*t))}}function pr(t,e){var r,n={},i={};for(r in t)r in e?n[r]=yr(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function dr(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function gr(t,e){var r,n,i,a=mr.lastIndex=vr.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=mr.exec(t))&amp;&amp;(n=vr.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:dr(r,n)})),a=vr.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?(e=l[0].x,function(t){return e(t)+&quot;&quot;}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=_e,s=we;if(a=arguments.length)return o=lr,s=cr,3===a&amp;&amp;(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,g,m,v=ce(o),x=ce(s);if(null!=e)p=e,d=r,g=n,m=i;else if(g=m=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f&lt;h;++f)(l=t[f]).x&lt;p&amp;&amp;(p=l.x),l.y&lt;d&amp;&amp;(d=l.y),l.x&gt;g&amp;&amp;(g=l.x),l.y&gt;m&amp;&amp;(m=l.y),c.push(l.x),u.push(l.y);else for(f=0;f&lt;h;++f){var b=+v(l=t[f],f),_=+x(l,f);b&lt;p&amp;&amp;(p=b),_&lt;d&amp;&amp;(d=_),b&gt;g&amp;&amp;(g=b),_&gt;m&amp;&amp;(m=_),c.push(b),u.push(_)}var w=g-p,T=m-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&amp;&amp;!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)&lt;.01)A(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,A(t,u,l,c,i,a,o,s),A(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else A(t,e,r,n,i,a,o,s)}function A(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r&gt;=l,f=n&gt;=c,h=f&lt;&lt;1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,k(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w&gt;T?m=d+w:g=p+T;var M={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(M,t,+v(t,++f),+x(t,f),p,d,g,m)},visit:function(t){ur(t,M,p,d,g,m)},find:function(t){return fr(M,t[0],t[1],p,d,g,m)}};if(f=-1,null==e){for(;++f&lt;h;)k(M,t[f],c[f],u[f],p,d,g,m);--f}else t.forEach(M.add);return c=u=t=l=null,M}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=hr,t.interpolateObject=pr,t.interpolateNumber=dr,t.interpolateString=gr;var mr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vr=new RegExp(mr.source,&quot;g&quot;);function yr(e,r){for(var n,i=t.interpolators.length;--i&gt;=0&amp;&amp;!(n=t.interpolators[i](e,r)););return n}function xr(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r&lt;s;++r)n.push(yr(t[r],e[r]));for(;r&lt;a;++r)i[r]=t[r];for(;r&lt;o;++r)i[r]=e[r];return function(t){for(r=0;r&lt;s;++r)i[r]=n[r](t);return i}}t.interpolate=yr,t.interpolators=[function(t,e){var r=typeof e;return(&quot;string&quot;===r?le.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?hr:gr:e instanceof Ft?hr:Array.isArray(e)?xr:&quot;object&quot;===r&amp;&amp;isNaN(e)?pr:dr)(t,e)}],t.interpolateArray=xr;var br=function(){return C},_r=t.map({linear:br,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return Mr},cubic:function(){return Sr},sin:function(){return Lr},exp:function(){return Cr},circle:function(){return Pr},elastic:function(t,e){var r;arguments.length&lt;2&amp;&amp;(e=.45);arguments.length?r=e/Mt*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*Mt/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return Ir}}),wr=t.map({in:C,out:kr,&quot;in-out&quot;:Ar,&quot;out-in&quot;:function(t){return Ar(kr(t))}});function Tr(t){return function(e){return e&lt;=0?0:e&gt;=1?1:t(e)}}function kr(t){return function(e){return 1-t(1-e)}}function Ar(t){return function(e){return.5*(e&lt;.5?t(2*e):2-t(2-2*e))}}function Mr(t){return t*t}function Sr(t){return t*t*t}function Er(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}function Lr(t){return 1-Math.cos(t*Et)}function Cr(t){return Math.pow(2,10*(t-1))}function Pr(t){return 1-Math.sqrt(1-t*t)}function Ir(t){return t&lt;1/2.75?7.5625*t*t:t&lt;2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t&lt;2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Or(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function zr(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=Rr(i),s=Dr(i,a),l=Rr(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]&lt;a[0]*i[1]&amp;&amp;(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*Ct,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*Ct:0}function Dr(t,e){return t[0]*e[0]+t[1]*e[1]}function Rr(t){var e=Math.sqrt(Dr(t,t));return e&amp;&amp;(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e=t.indexOf(&quot;-&quot;),n=e&gt;=0?t.slice(0,e):t,i=e&gt;=0?t.slice(e+1):&quot;in&quot;;return n=_r.get(n)||br,Tr((i=wr.get(i)||C)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return qt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return jt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Wt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateRound=Or,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,&quot;g&quot;);return(t.transform=function(t){if(null!=t){r.setAttribute(&quot;transform&quot;,t);var e=r.transform.baseVal.consolidate()}return new zr(e?e.matrix:Fr)})(e)},zr.prototype.toString=function(){return&quot;translate(&quot;+this.translate+&quot;)rotate(&quot;+this.rotate+&quot;)skewX(&quot;+this.skew+&quot;)scale(&quot;+this.scale+&quot;)&quot;};var Fr={a:1,b:0,c:0,d:1,e:0,f:0};function Br(t){return t.length?t.pop()+&quot;,&quot;:&quot;&quot;}function Nr(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(&quot;translate(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:dr(t[0],e[0])},{i:i-2,x:dr(t[1],e[1])})}else(e[0]||e[1])&amp;&amp;r.push(&quot;translate(&quot;+e+&quot;)&quot;)}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),n.push({i:r.push(Br(r)+&quot;rotate(&quot;,null,&quot;)&quot;)-2,x:dr(t,e)})):e&amp;&amp;r.push(Br(r)+&quot;rotate(&quot;+e+&quot;)&quot;)}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(Br(r)+&quot;skewX(&quot;,null,&quot;)&quot;)-2,x:dr(t,e)}):e&amp;&amp;r.push(Br(r)+&quot;skewX(&quot;+e+&quot;)&quot;)}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(Br(r)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:dr(t[0],e[0])},{i:i-2,x:dr(t[1],e[1])})}else 1===e[0]&amp;&amp;1===e[1]||r.push(Br(r)+&quot;scale(&quot;+e+&quot;)&quot;)}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r&lt;a;)n[(e=i[r]).i]=e.x(t);return n.join(&quot;&quot;)}}function jr(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function Ur(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Vr(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=qr(t),n=qr(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function qr(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function Hr(t){t.fixed|=2}function Gr(t){t.fixed&amp;=-7}function Yr(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Wr(t){t.fixed&amp;=-5}t.interpolateTransform=Nr,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r&lt;n;)e.push(Vr(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,g={},m=[],v=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p&lt;i;){for(u=0,d=-1;++d&lt;i;)u+=n[p][d];m.push(u),y.push(t.range(i)),l+=u}for(a&amp;&amp;v.sort((function(t,e){return a(m[t],m[e])})),o&amp;&amp;y.forEach((function(t,e){t.sort((function(t,r){return o(n[e][t],n[e][r])}))})),l=(Mt-c*i)/l,u=0,p=-1;++p&lt;i;){for(h=u,d=-1;++d&lt;i;){var x=v[p],b=y[x][d],_=n[x][b],w=u,T=u+=_*l;g[x+&quot;-&quot;+b]={index:x,subindex:b,startAngle:w,endAngle:T,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:m[x]},u+=c}for(p=-1;++p&lt;i;)for(d=p-1;++d&lt;i;){var k=g[p+&quot;-&quot;+d],A=g[d+&quot;-&quot;+p];(k.value||A.value)&amp;&amp;e.push(k.value&lt;A.value?{source:A,target:k}:{source:k,target:A})}s&amp;&amp;f()}function f(){e.sort((function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(t){return arguments.length?(i=(n=t)&amp;&amp;n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&amp;&amp;f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(&quot;start&quot;,&quot;tick&quot;,&quot;end&quot;),c=[1,1],u=.9,f=Xr,h=Zr,p=-30,d=Jr,g=.1,m=.64,v=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/m&lt;l){if(l&lt;d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&amp;&amp;l&amp;&amp;l&lt;d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)&lt;.005)return e=null,l.end({type:&quot;end&quot;,alpha:n=0}),!0;var r,s,f,h,d,m,b,_,w,T=v.length,k=y.length;for(s=0;s&lt;k;++s)h=(f=y[s]).source,(m=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&amp;&amp;(_*=m=n*a[s]*((m=Math.sqrt(m))-i[s])/m,w*=m,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*g)&amp;&amp;(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s&lt;T;)(f=v[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;if(e.charge=0,!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c&lt;l;)null!=(o=s[c])&amp;&amp;(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge,e.cy=a/e.charge}(r=t.geom.quadtree(v),n,o),s=-1;++s&lt;T;)(f=v[s]).fixed||r.visit(x(f));for(s=-1;++s&lt;T;)(f=v[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:&quot;tick&quot;,alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=&quot;function&quot;==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,n?t&gt;0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:&quot;end&quot;,alpha:n=0})):t&gt;0&amp;&amp;(l.start({type:&quot;start&quot;,alpha:n=t}),e=ve(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],d=c[1];for(t=0;t&lt;n;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t&lt;l;++t)&quot;number&quot;==typeof(r=y[t]).source&amp;&amp;(r.source=v[r.source]),&quot;number&quot;==typeof r.target&amp;&amp;(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t&lt;n;++t)r=v[t],isNaN(r.x)&amp;&amp;(r.x=g(&quot;x&quot;,u)),isNaN(r.y)&amp;&amp;(r.y=g(&quot;y&quot;,d)),isNaN(r.px)&amp;&amp;(r.px=r.x),isNaN(r.py)&amp;&amp;(r.py=r.y);if(i=[],&quot;function&quot;==typeof f)for(t=0;t&lt;l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t&lt;l;++t)i[t]=f;if(a=[],&quot;function&quot;==typeof h)for(t=0;t&lt;l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t&lt;l;++t)a[t]=h;if(o=[],&quot;function&quot;==typeof p)for(t=0;t&lt;n;++t)o[t]=+p.call(this,v[t],t);else for(t=0;t&lt;n;++t)o[t]=p;function g(r,i){if(!e){for(e=new Array(n),c=0;c&lt;n;++c)e[c]=[];for(c=0;c&lt;l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c&lt;u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(C).on(&quot;dragstart.force&quot;,Hr).on(&quot;drag.force&quot;,b).on(&quot;dragend.force&quot;,Gr)),!arguments.length)return r;this.on(&quot;mouseover.force&quot;,Yr).on(&quot;mouseout.force&quot;,Wr).call(r)},t.rebind(s,l,&quot;on&quot;)};var Xr=20,Zr=1,Jr=1/0;function Kr(e,r){return t.rebind(e,r,&quot;sort&quot;,&quot;children&quot;,&quot;value&quot;),e.nodes=e,e.links=nn,e}function Qr(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&amp;&amp;(n=i.length))for(var n,i;--n&gt;=0;)r.push(i[n])}function $r(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&amp;&amp;(i=a.length))for(var i,a,o=-1;++o&lt;i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function tn(t){return t.children}function en(t){return t.value}function rn(t,e){return e.value-t.value}function nn(e){return t.merge(e.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}t.layout.hierarchy=function(){var t=rn,e=tn,r=en;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&amp;&amp;(l=c.length)){for(var l,c,u;--l&gt;=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&amp;&amp;(a.value=0),a.children=c}else r&amp;&amp;(a.value=+r.call(n,a,a.depth)||0),delete a.children;return $r(i,(function(e){var n,i;t&amp;&amp;(n=e.children)&amp;&amp;n.sort(t),r&amp;&amp;(i=e.parent)&amp;&amp;(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&amp;&amp;(Qr(t,(function(t){t.children&amp;&amp;(t.value=0)})),$r(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&amp;&amp;(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&amp;&amp;(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c&lt;o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&amp;&amp;(i=r.length))for(var i,a=-1;++a&lt;i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Kr(n,e)},t.layout.pie=function(){var e=Number,r=an,n=0,i=Mt,a=0;function o(s){var l,c=s.length,u=s.map((function(t,r){return+e.call(o,t,r)})),f=+(&quot;function&quot;==typeof n?n.apply(this,arguments):n),h=(&quot;function&quot;==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(&quot;function&quot;==typeof a?a.apply(this,arguments):a)),d=p*(h&lt;0?-1:1),g=t.sum(u),m=g?(h-c*d)/g:0,v=t.range(c),y=[];return null!=r&amp;&amp;v.sort(r===an?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),v.forEach((function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*m+d,padAngle:p}})),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var an={};function on(t){return t.x}function sn(t){return t.y}function ln(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=C,r=fn,n=hn,i=ln,a=on,o=sn;function s(l,c){if(!(p=l.length))return l;var u=l.map((function(t,r){return e.call(s,t,r)})),f=u.map((function(t){return t.map((function(t,e){return[a.call(s,t,e),o.call(s,t,e)]}))})),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,g,m,v=n.call(s,f,c),y=u[0].length;for(g=0;g&lt;y;++g)for(i.call(s,u[0][g],m=v[g],f[0][g][1]),d=1;d&lt;p;++d)i.call(s,u[d][g],m+=f[d-1][g][1],f[d][g][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:cn.get(t)||fn,s):r},s.offset=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:un.get(t)||hn,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var cn=t.map({&quot;inside-out&quot;:function(e){var r,n,i=e.length,a=e.map(pn),o=e.map(dn),s=t.range(i).sort((function(t,e){return a[t]-a[e]})),l=0,c=0,u=[],f=[];for(r=0;r&lt;i;++r)n=s[r],l&lt;c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:fn}),un=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];n&gt;s&amp;&amp;(s=n),o.push(n)}for(r=0;r&lt;a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r&lt;h;++r){for(e=0,i=0;e&lt;u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e&lt;u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n&lt;e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l&lt;c&amp;&amp;(c=l)}for(r=0;r&lt;h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];if(n)for(e=0;e&lt;i;e++)t[e][r][1]/=n;else for(e=0;e&lt;i;e++)t[e][r][1]=o}for(r=0;r&lt;a;++r)s[r]=0;return s},zero:hn});function fn(e){return t.range(e.length)}function hn(t){for(var e=-1,r=t[0].length,n=[];++e&lt;r;)n[e]=0;return n}function pn(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r&lt;a;++r)(e=t[r][1])&gt;i&amp;&amp;(n=r,i=e);return n}function dn(t){return t.reduce(gn,0)}function gn(t,e){return t+e[1]}function mn(t,e){return vn(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function vn(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r&lt;=e;)a[r]=i*r+n;return a}function yn(e){return[t.min(e),t.max(e)]}function xn(t,e){return t.value-e.value}function bn(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function _n(t,e){t._pack_next=e,e._pack_prev=t}function wn(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i&gt;r*r+n*n}function Tn(t){if((e=t.children)&amp;&amp;(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(kn),(r=e[0]).x=-r.r,r.y=0,x(r),l&gt;1&amp;&amp;((n=e[1]).x=n.r,n.y=0,x(n),l&gt;2))for(Mn(r,n,i=e[2]),x(i),bn(r,i),r._pack_prev=i,bn(i,n),n=r._pack_next,a=3;a&lt;l;a++){Mn(r,n,i=e[a]);var p=0,d=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(wn(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&amp;&amp;!wn(s,i);s=s._pack_prev,g++);p?(d&lt;g||d==g&amp;&amp;n.r&lt;r.r?_n(r,n=o):_n(r=s,n),a--):(bn(r,i),n=i,x(i))}var m=(c+u)/2,v=(f+h)/2,y=0;for(a=0;a&lt;l;a++)(i=e[a]).x-=m,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(An)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function kn(t){t._pack_next=t._pack_prev=t}function An(t){delete t._pack_next,delete t._pack_prev}function Mn(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&amp;&amp;(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function Sn(t,e){return t.parent==e.parent?1:2}function En(t){var e=t.children;return e.length?e[0]:t.t}function Ln(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function Cn(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function Pn(t,e,r){return t.a.parent===e.parent?t.a:r}function In(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function On(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i&lt;0&amp;&amp;(r+=i/2,i=0),a&lt;0&amp;&amp;(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function zn(t){var e=t[0],r=t[t.length-1];return e&lt;r?[e,r]:[r,e]}function Dn(t){return t.rangeExtent?t.rangeExtent():zn(t.range())}function Rn(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function Fn(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o&lt;a&amp;&amp;(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function Bn(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:Nn}t.layout.histogram=function(){var e=!0,r=Number,n=yn,i=mn;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,g=e?1:1/p;++o&lt;d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d&gt;0)for(o=-1;++o&lt;p;)(l=u[o])&gt;=f[0]&amp;&amp;l&lt;=f[1]&amp;&amp;((s=c[t.bisect(h,l,1,d)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=ce(t),a):n},a.bins=function(t){return arguments.length?(i=&quot;number&quot;==typeof t?function(e){return vn(e,t)}:ce(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort(xn),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:&quot;function&quot;==typeof e?e:function(){return e};if(s.x=s.y=0,$r(s,(function(t){t.r=+u(t.value)})),$r(s,Tn),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;$r(s,(function(t){t.r+=f})),$r(s,Tn),$r(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++o&lt;s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||&quot;function&quot;==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Kr(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=Sn,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o&lt;s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&amp;&amp;i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if($r(f,o),f.parent.m=-f.z,Qr(f,s),i)Qr(u,l);else{var h=u,p=u,d=u;Qr(u,(function(t){t.x&lt;h.x&amp;&amp;(h=t),t.x&gt;p.x&amp;&amp;(p=t),t.depth&gt;d.depth&amp;&amp;(d=t)}));var g=r(h,p)/2-h.x,m=n[0]/(p.x+r(p,h)/2+g),v=n[1]/(d.depth||1);Qr(u,(function(t){t.x=(t.x+g)*m,t.y=t.depth*v}))}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&amp;&amp;(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=Ln(s),a=En(a),s&amp;&amp;a;)l=En(l),(o=Ln(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))&gt;0&amp;&amp;(Cn(Pn(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!Ln(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!En(l)&amp;&amp;(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Kr(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=Sn,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;$r(c,(function(e){var n=e.children;n&amp;&amp;n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)}));var f=function t(e){var r=e.children;return r&amp;&amp;r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&amp;&amp;(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return $r(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Kr(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=In,s=!1,l=&quot;squarify&quot;,c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i&lt;a;)n=(r=t[i]).value*(e&lt;0?0:e),r.area=isNaN(n)||n&lt;=0?0:n}function f(t){var e=t.children;if(e&amp;&amp;e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,g=&quot;slice&quot;===l?a.dx:&quot;dice&quot;===l?a.dy:&quot;slice-dice&quot;===l?1&amp;t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)&gt;0;)s.push(r=c[i-1]),s.area+=r.area,&quot;squarify&quot;!==l||(n=p(s,g))&lt;=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&amp;&amp;(d(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&amp;&amp;e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&amp;&amp;(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o&lt;s;)(r=t[o].area)&amp;&amp;(r&lt;a&amp;&amp;(a=r),r&gt;i&amp;&amp;(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u&gt;r.dy)&amp;&amp;(u=r.dy);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u&gt;r.dx)&amp;&amp;(u=r.dx);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&amp;&amp;r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&amp;&amp;(e=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){var r=t.call(g,e,e.depth);return null==r?In(e):On(e,&quot;number&quot;==typeof r?[r,r,r,r]:r)}function r(e){return On(e,t)}var n;return o=null==(a=t)?In:&quot;function&quot;==(n=typeof t)?e:&quot;number&quot;===n?(t=[t,t,t,t],r):r,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+&quot;&quot;,g):l},Kr(g,r)},t.random={normal:function(t,e){var r=arguments.length;return r&lt;2&amp;&amp;(e=1),r&lt;1&amp;&amp;(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i&gt;1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r&lt;t;r++)e+=Math.random();return e}}},t.scale={};var Nn={floor:C,ceil:C};function jn(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]&lt;e[0]&amp;&amp;(e=e.slice().reverse(),r=r.slice().reverse());++s&lt;=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function Un(e,r){return t.rebind(e,r,&quot;range&quot;,&quot;rangeRound&quot;,&quot;interpolate&quot;,&quot;clamp&quot;)}function Vn(t,e){return Fn(t,Bn(qn(t,e)[2])),Fn(t,Bn(qn(t,e)[2])),t}function qn(t,e){null==e&amp;&amp;(e=10);var r=zn(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a&lt;=.15?i*=10:a&lt;=.35?i*=5:a&lt;=.75&amp;&amp;(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function Hn(e,r){return t.range.apply(t,qn(e,r))}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)&gt;2?jn:Rn,s=i?Ur:jr;return a=t(e,r,s,n),o=t(r,e,s,yr),l}function l(t){return a(t)}return l.invert=function(t){return o(t)},l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e},l.range=function(t){return arguments.length?(r=t,s()):r},l.rangeRound=function(t){return l.range(t).interpolate(Or)},l.clamp=function(t){return arguments.length?(i=t,s()):i},l.interpolate=function(t){return arguments.length?(n=t,s()):n},l.ticks=function(t){return Hn(e,t)},l.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},l.nice=function(t){return Vn(e,t),s()},l.copy=function(){return t(e,r,n,i)},s()}([0,1],[0,1],yr,!1)};t.scale.log=function(){return function t(e,r,n,i){function a(t){return(n?Math.log(t&lt;0?0:t):-Math.log(t&gt;0?0:-t))/Math.log(r)}function o(t){return n?Math.pow(r,t):-Math.pow(r,-t)}function s(t){return e(a(t))}return s.invert=function(t){return o(e.invert(t))},s.domain=function(t){return arguments.length?(n=t[0]&gt;=0,e.domain((i=t.map(Number)).map(a)),s):i},s.base=function(t){return arguments.length?(r=+t,e.domain(i.map(a)),s):r},s.nice=function(){var t=Fn(i.map(a),n?Math:Gn);return e.domain(t),i=t.map(o),s},s.ticks=function(){var t=zn(i),e=[],s=t[0],l=t[1],c=Math.floor(a(s)),u=Math.ceil(a(l)),f=r%1?2:r;if(isFinite(u-c)){if(n){for(;c&lt;u;c++)for(var h=1;h&lt;f;h++)e.push(o(c)*h);e.push(o(c))}else for(e.push(o(c));c++&lt;u;)for(h=f-1;h&gt;0;h--)e.push(o(c)*h);for(c=0;e[c]&lt;s;c++);for(u=e.length;e[u-1]&gt;l;u--);e=e.slice(c,u)}return e},s.copy=function(){return t(e.copy(),r,n,i)},Un(s,e)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Gn={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Yn(t){return function(e){return e&lt;0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=Yn(r),a=Yn(1/r);function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n},o.ticks=function(t){return Hn(n,t)},o.tickFormat=function(t,e){return d3_scale_linearTickFormat(n,t,e)},o.nice=function(t){return o.domain(Vn(n,t))},o.exponent=function(t){return arguments.length?(i=Yn(r=t),a=Yn(1/r),e.domain(n.map(i)),o):r},o.copy=function(){return t(e.copy(),r,n)},Un(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(&quot;range&quot;===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map((function(t){return e+n*t}))}return s.domain=function(t){if(!arguments.length)return r;r=[],i=new _;for(var e,a=-1,o=t.length;++a&lt;o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)},s.range=function(t){return arguments.length?(a=t,o=0,n={t:&quot;range&quot;,a:arguments},s):a},s.rangePoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:&quot;rangePoints&quot;,a:arguments},s},s.rangeRoundPoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:&quot;rangeRoundPoints&quot;,a:arguments},s},s.rangeBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&amp;&amp;a.reverse(),o=h*(1-e),n={t:&quot;rangeBands&quot;,a:arguments},s},s.rangeRoundBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&amp;&amp;a.reverse(),o=Math.round(h*(1-e)),n={t:&quot;rangeRoundBands&quot;,a:arguments},s},s.rangeBand=function(){return o},s.rangeExtent=function(){return zn(n.a[0])},s.copy=function(){return e(r,n)},s.domain(r)}([],{t:&quot;range&quot;,a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(Wn)},t.scale.category20=function(){return t.scale.ordinal().range(Xn)},t.scale.category20b=function(){return t.scale.ordinal().range(Zn)},t.scale.category20c=function(){return t.scale.ordinal().range(Jn)};var Wn=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(te),Xn=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(te),Zn=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(te),Jn=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(te);function Kn(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e&lt;a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}return o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r},o.range=function(t){return arguments.length?(n=t,a()):n},o.quantiles=function(){return i},o.invertExtent=function(t){return(t=n.indexOf(t))&lt;0?[NaN,NaN]:[t&gt;0?i[t-1]:r[0],t&lt;i.length?i[t]:r[r.length-1]]},o.copy=function(){return e(r,n)},a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}return o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]},o.range=function(t){return arguments.length?(n=t,s()):n},o.invertExtent=function(t){return[t=(t=n.indexOf(t))&lt;0?NaN:t/i+e,t+1/i]},o.copy=function(){return t(e,r,n)},s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e&lt;=e)return n[t.bisect(r,e)]}return i.domain=function(t){return arguments.length?(r=t,i):r},i.range=function(t){return arguments.length?(n=t,i):n},i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]},i.copy=function(){return e(r,n)},i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e},r.ticks=function(t){return Hn(e,t)},r.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},r.copy=function(){return t(e)},r}([0,1])},t.svg={},t.svg.arc=function(){var t=$n,e=ti,r=Kn,n=Qn,i=ei,a=ri,o=ni;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Et,f=a.apply(this,arguments)-Et,h=Math.abs(f-u),p=u&gt;f?0:1;if(c&lt;s&amp;&amp;(d=c,c=s,s=d),h&gt;=St)return l(c,p)+(s?l(s,1-p):&quot;&quot;)+&quot;Z&quot;;var d,g,m,v,y,x,b,_,w,T,k,A,M=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&amp;&amp;(m=n===Qn?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&amp;&amp;(S=Pt(m/c*Math.sin(v))),s&amp;&amp;(M=Pt(m/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var L=Math.abs(f-u-2*S)&lt;=At?0:1;if(S&amp;&amp;ii(y,x,b,_)===p^L){var C=(u+f)/2;y=c*Math.cos(C),x=c*Math.sin(C),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-M),T=s*Math.sin(f-M),k=s*Math.cos(u+M),A=s*Math.sin(u+M);var P=Math.abs(u-f+2*M)&lt;=At?0:1;if(M&amp;&amp;ii(w,T,k,A)===1-p^P){var I=(u+f)/2;w=s*Math.cos(I),T=s*Math.sin(I),k=A=null}}else w=T=0;if(h&gt;kt&amp;&amp;(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))&gt;.001){g=s&lt;c^p?0:1;var O=d,z=d;if(h&lt;At){var D=null==k?[w,T]:null==b?[y,x]:Se([y,x],[k,A],[b,_],[w,T]),R=y-D[0],F=x-D[1],B=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*B+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(B*B+N*N)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);z=Math.min(d,(s-U)/(j-1)),O=Math.min(d,(c-U)/(j+1))}if(null!=b){var V=ai(null==k?[w,T]:[k,A],[y,x],c,O,p),q=ai([b,_],[w,T],c,O,p);d===O?E.push(&quot;M&quot;,V[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,V[1],&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,1-p^ii(V[1][0],V[1][1],q[1][0],q[1][1]),&quot;,&quot;,p,&quot; &quot;,q[1],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,q[0]):E.push(&quot;M&quot;,V[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 1,&quot;,g,&quot; &quot;,q[0])}else E.push(&quot;M&quot;,y,&quot;,&quot;,x);if(null!=k){var H=ai([y,x],[k,A],s,-z,p),G=ai([w,T],null==b?[y,x]:[b,_],s,-z,p);d===z?E.push(&quot;L&quot;,G[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,G[1],&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,p^ii(G[1][0],G[1][1],H[1][0],H[1][1]),&quot;,&quot;,1-p,&quot; &quot;,H[1],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,H[0]):E.push(&quot;L&quot;,G[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,H[0])}else E.push(&quot;L&quot;,w,&quot;,&quot;,T)}else E.push(&quot;M&quot;,y,&quot;,&quot;,x),null!=b&amp;&amp;E.push(&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,L,&quot;,&quot;,p,&quot; &quot;,b,&quot;,&quot;,_),E.push(&quot;L&quot;,w,&quot;,&quot;,T),null!=k&amp;&amp;E.push(&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,P,&quot;,&quot;,1-p,&quot; &quot;,k,&quot;,&quot;,A);return E.push(&quot;Z&quot;),E.join(&quot;&quot;)}function l(t,e){return&quot;M0,&quot;+t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+-t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+t}return s.innerRadius=function(e){return arguments.length?(t=ce(e),s):t},s.outerRadius=function(t){return arguments.length?(e=ce(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=ce(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Qn?Qn:ce(t),s):n},s.startAngle=function(t){return arguments.length?(i=ce(t),s):i},s.endAngle=function(t){return arguments.length?(a=ce(t),s):a},s.padAngle=function(t){return arguments.length?(o=ce(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Et;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Qn=&quot;auto&quot;;function $n(t){return t.innerRadius}function ti(t){return t.outerRadius}function ei(t){return t.startAngle}function ri(t){return t.endAngle}function ni(t){return t&amp;&amp;t.padAngle}function ii(t,e,r,n){return(t-r)*e-(e-n)*t&gt;0?0:1}function ai(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,g=(f+p)/2,m=h-u,v=p-f,y=m*m+v*v,x=r-n,b=u*p-h*f,_=(v&lt;0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-m*_)/y,T=(-b*m-v*_)/y,k=(b*v+m*_)/y,A=(-b*m+v*_)/y,M=w-d,S=T-g,E=k-d,L=A-g;return M*M+S*S&gt;E*E+L*L&amp;&amp;(w=k,T=A),[[w-l,T-c],[w*r/x,T*r/x]]}function oi(){return!0}function si(t){var e=_e,r=we,n=oi,i=ci,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=ce(e),p=ce(r);function d(){l.push(&quot;M&quot;,i(t(c),o))}for(;++u&lt;f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&amp;&amp;(d(),c=[]);return c.length&amp;&amp;d(),l.length?l.join(&quot;&quot;):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?i=t:(i=li.get(t)||ci).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return si(C)};var li=t.map({linear:ci,&quot;linear-closed&quot;:ui,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];for(;++e&lt;r;)i.push(&quot;H&quot;,(n[0]+(n=t[e])[0])/2,&quot;V&quot;,n[1]);r&gt;1&amp;&amp;i.push(&quot;H&quot;,n[0]);return i.join(&quot;&quot;)},&quot;step-before&quot;:fi,&quot;step-after&quot;:hi,basis:gi,&quot;basis-open&quot;:function(t){if(t.length&lt;4)return ci(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n&lt;3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(mi(xi,a)+&quot;,&quot;+mi(xi,o)),--n;for(;++n&lt;i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),bi(r,a,o);return r.join(&quot;&quot;)},&quot;basis-closed&quot;:function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n&lt;4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[mi(xi,o),&quot;,&quot;,mi(xi,s)],--n;for(;++n&lt;a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),bi(e,o,s);return e.join(&quot;&quot;)},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c&lt;=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return gi(t)},cardinal:function(t,e){return t.length&lt;3?ci(t):t[0]+pi(t,di(t,e))},&quot;cardinal-open&quot;:function(t,e){return t.length&lt;4?ci(t):t[1]+pi(t.slice(1,-1),di(t,e))},&quot;cardinal-closed&quot;:function(t,e){return t.length&lt;3?ui(t):t[0]+pi((t.push(t[0]),t),di([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length&lt;3?ci(t):t[0]+pi(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=_i(i,a);for(;++e&lt;r;)n[e]=(o+(o=_i(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s&lt;l;)e=_i(t[s],t[s+1]),y(e)&lt;kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)&gt;9&amp;&amp;(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s&lt;=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function ci(t){return t.length&gt;1?t.join(&quot;L&quot;):t+&quot;Z&quot;}function ui(t){return t.join(&quot;L&quot;)+&quot;Z&quot;}function fi(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;V&quot;,(n=t[e])[1],&quot;H&quot;,n[0]);return i.join(&quot;&quot;)}function hi(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;H&quot;,(n=t[e])[0],&quot;V&quot;,n[1]);return i.join(&quot;&quot;)}function pi(t,e){if(e.length&lt;1||t.length!=e.length&amp;&amp;t.length!=e.length+2)return ci(t);var r=t.length!=e.length,n=&quot;&quot;,i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&amp;&amp;(n+=&quot;Q&quot;+(a[0]-2*o[0]/3)+&quot;,&quot;+(a[1]-2*o[1]/3)+&quot;,&quot;+a[0]+&quot;,&quot;+a[1],i=t[1],l=2),e.length&gt;1){s=e[1],a=t[l],l++,n+=&quot;C&quot;+(i[0]+o[0])+&quot;,&quot;+(i[1]+o[1])+&quot;,&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1];for(var c=2;c&lt;e.length;c++,l++)a=t[l],s=e[c],n+=&quot;S&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1]}if(r){var u=t[l];n+=&quot;Q&quot;+(a[0]+2*s[0]/3)+&quot;,&quot;+(a[1]+2*s[1]/3)+&quot;,&quot;+u[0]+&quot;,&quot;+u[1]}return n}function di(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s&lt;l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function gi(t){if(t.length&lt;3)return ci(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,&quot;,&quot;,a,&quot;L&quot;,mi(xi,o),&quot;,&quot;,mi(xi,s)];for(t.push(t[r-1]);++e&lt;=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),bi(l,o,s);return t.pop(),l.push(&quot;L&quot;,n),l.join(&quot;&quot;)}function mi(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}li.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var vi=[0,2/3,1/3,0],yi=[0,1/3,2/3,0],xi=[0,1/6,2/3,1/6];function bi(t,e,r){t.push(&quot;C&quot;,mi(vi,e),&quot;,&quot;,mi(vi,r),&quot;,&quot;,mi(yi,e),&quot;,&quot;,mi(yi,r),&quot;,&quot;,mi(xi,e),&quot;,&quot;,mi(xi,r))}function _i(t,e){return(e[1]-t[1])/(e[0]-t[0])}function wi(t){for(var e,r,n,i=-1,a=t.length;++i&lt;a;)r=(e=t[i])[0],n=e[1]-Et,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function Ti(t){var e=_e,r=_e,n=0,i=we,a=oi,o=ci,s=o.key,l=o,c=&quot;L&quot;,u=.7;function f(s){var f,h,p,d=[],g=[],m=[],v=-1,y=s.length,x=ce(e),b=ce(n),_=e===r?function(){return h}:ce(r),w=n===i?function(){return p}:ce(i);function T(){d.push(&quot;M&quot;,o(t(m),u),c,l(t(g.reverse()),u),&quot;Z&quot;)}for(;++v&lt;y;)a.call(this,f=s[v],v)?(g.push([h=+x.call(this,f,v),p=+b.call(this,f,v)]),m.push([+_.call(this,f,v),+w.call(this,f,v)])):g.length&amp;&amp;(T(),g=[],m=[]);return g.length&amp;&amp;T(),d.length?d.join(&quot;&quot;):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?o=t:(o=li.get(t)||ci).key,l=o.reverse||o,c=o.closed?&quot;M&quot;:&quot;L&quot;,f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ki(t){return t.source}function Ai(t){return t.target}function Mi(t){return t.radius}function Si(t){return[t.x,t.y]}function Ei(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Et;return[r*Math.cos(n),r*Math.sin(n)]}}function Li(){return 64}function Ci(){return&quot;circle&quot;}function Pi(t){var e=Math.sqrt(t/At);return&quot;M0,&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+-e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+e+&quot;Z&quot;}t.svg.line.radial=function(){var t=si(wi);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},fi.reverse=hi,hi.reverse=fi,t.svg.area=function(){return Ti(C)},t.svg.area.radial=function(){var t=Ti(wi);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=ki,e=Ai,r=Mi,n=ei,i=ri;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return&quot;M&quot;+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,((i=c).a0==a.a0&amp;&amp;i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+&quot;Z&quot;)}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Et,u=i.call(t,s,o)-Et;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 &quot;+ +(r&gt;At)+&quot;,1 &quot;+e}function l(t,e,r,n){return&quot;Q 0,0 &quot;+n}return a.radius=function(t){return arguments.length?(r=ce(t),a):r},a.source=function(e){return arguments.length?(t=ce(e),a):t},a.target=function(t){return arguments.length?(e=ce(t),a):e},a.startAngle=function(t){return arguments.length?(n=ce(t),a):n},a.endAngle=function(t){return arguments.length?(i=ce(t),a):i},a},t.svg.diagonal=function(){var t=ki,e=Ai,r=Si;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return&quot;M&quot;+(l=l.map(r))[0]+&quot;C&quot;+l[1]+&quot; &quot;+l[2]+&quot; &quot;+l[3]}return n.source=function(e){return arguments.length?(t=ce(e),n):t},n.target=function(t){return arguments.length?(e=ce(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=Si,n=e.projection;return e.projection=function(t){return arguments.length?n(Ei(r=t)):r},e},t.svg.symbol=function(){var t=Ci,e=Li;function r(r,n){return(Ii.get(t.call(this,r,n))||Pi)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=ce(e),r):t},r.size=function(t){return arguments.length?(e=ce(t),r):e},r};var Ii=t.map({circle:Pi,cross:function(t){var e=Math.sqrt(t/5)/2;return&quot;M&quot;+-3*e+&quot;,&quot;+-e+&quot;H&quot;+-e+&quot;V&quot;+-3*e+&quot;H&quot;+e+&quot;V&quot;+-e+&quot;H&quot;+3*e+&quot;V&quot;+e+&quot;H&quot;+e+&quot;V&quot;+3*e+&quot;H&quot;+-e+&quot;V&quot;+e+&quot;H&quot;+-3*e+&quot;Z&quot;},diamond:function(t){var e=Math.sqrt(t/(2*zi)),r=e*zi;return&quot;M0,&quot;+-e+&quot;L&quot;+r+&quot;,0 0,&quot;+e+&quot; &quot;+-r+&quot;,0Z&quot;},square:function(t){var e=Math.sqrt(t)/2;return&quot;M&quot;+-e+&quot;,&quot;+-e+&quot;L&quot;+e+&quot;,&quot;+-e+&quot; &quot;+e+&quot;,&quot;+e+&quot; &quot;+-e+&quot;,&quot;+e+&quot;Z&quot;},&quot;triangle-down&quot;:function(t){var e=Math.sqrt(t/Oi),r=e*Oi/2;return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,&quot;+-r+&quot; &quot;+-e+&quot;,&quot;+-r+&quot;Z&quot;},&quot;triangle-up&quot;:function(t){var e=Math.sqrt(t/Oi),r=e*Oi/2;return&quot;M0,&quot;+-r+&quot;L&quot;+e+&quot;,&quot;+r+&quot; &quot;+-e+&quot;,&quot;+r+&quot;Z&quot;}});t.svg.symbolTypes=Ii.keys();var Oi=Math.sqrt(3),zi=Math.tan(30*Lt);Y.transition=function(t){for(var e,r,n=Bi||++Ui,i=Hi(t),a=[],o=Ni||{time:Date.now(),ease:Er,delay:0,duration:250},s=-1,l=this.length;++s&lt;l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(r=c[u])&amp;&amp;Gi(r,u,i,n,o),e.push(r)}return Fi(a,i,n)},Y.interrupt=function(t){return this.each(null==t?Di:Ri(Hi(t)))};var Di=Ri(Hi());function Ri(t){return function(){var e,r,n;(e=this[t])&amp;&amp;(n=e[r=e.active])&amp;&amp;(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&amp;&amp;n.event.interrupt.call(this,this.__data__,n.index))}}function Fi(t,e,r){return U(t,ji),t.namespace=e,t.id=r,t}var Bi,Ni,ji=[],Ui=0;function Vi(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,&quot;function&quot;==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function qi(t){return null==t&amp;&amp;(t=&quot;&quot;),function(){this.textContent=t}}function Hi(t){return null==t?&quot;__transition__&quot;:&quot;__transition_&quot;+t+&quot;__&quot;}function Gi(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&amp;&amp;(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&amp;&amp;h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d&lt;n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=p,ve((function(){return o.c&amp;&amp;p(r||1)&amp;&amp;(o.c=null,o.t=NaN),1}),0,a),u.active=n,f.event&amp;&amp;f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach((function(r,n){(n=n.call(t,t.__data__,e))&amp;&amp;c.push(n)})),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h&gt;0;)c[--h].call(t,o);if(a&gt;=1)return f.event&amp;&amp;f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=ve((function(t){var e=f.delay;if(o.t=e+a,e&lt;=t)return h(t-e);o.c=h}),0,a),f=u[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}ji.call=Y.call,ji.empty=Y.empty,ji.node=Y.node,ji.size=Y.size,t.transition=function(e,r){return e&amp;&amp;e.transition?Bi?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=ji,ji.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=W(t);for(var s=-1,l=this.length;++s&lt;l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(n=c[u])&amp;&amp;(r=t.call(n,n.__data__,u,s))?(&quot;__data__&quot;in n&amp;&amp;(r.__data__=n.__data__),Gi(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return Fi(o,a,i)},ji.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=X(t);for(var c=-1,u=this.length;++c&lt;u;)for(var f=this[c],h=-1,p=f.length;++h&lt;p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,g=r.length;++d&lt;g;)(i=r[d])&amp;&amp;Gi(i,d,s,o,a),e.push(i)}return Fi(l,s,o)},ji.filter=function(t){var e,r,n=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var i=0,a=this.length;i&lt;a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s&lt;l;s++)(r=o[s])&amp;&amp;t.call(r,r.__data__,s,i)&amp;&amp;e.push(r)}return Fi(n,this.namespace,this.id)},ji.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length&lt;2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},ji.attr=function(e,r){if(arguments.length&lt;2){for(r in e)this.attr(r,e[r]);return this}var n=&quot;transform&quot;==e?Nr:yr,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}function s(t){return null==t?a:(t+=&quot;&quot;,function(){var e,r=this.getAttribute(i);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttribute(i,e(t))})})}function l(t){return null==t?o:(t+=&quot;&quot;,function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}return Vi(this,&quot;attr.&quot;+e,r,i.local?l:s)},ji.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(&quot;attr.&quot;+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&amp;&amp;function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&amp;&amp;function(t){this.setAttribute(n,i(t))}})},ji.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.style(r,t[r],e);return this}r=&quot;&quot;}function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=&quot;&quot;,function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&amp;&amp;(n=yr(i,e),function(e){this.style.setProperty(t,n(e),r)})})}return Vi(this,&quot;style.&quot;+t,e,a)},ji.styleTween=function(t,e,r){function n(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&amp;&amp;function(e){this.style.setProperty(t,a(e),r)}}return arguments.length&lt;3&amp;&amp;(r=&quot;&quot;),this.tween(&quot;style.&quot;+t,n)},ji.text=function(t){return Vi(this,&quot;text&quot;,t,qi)},ji.remove=function(){var t=this.namespace;return this.each(&quot;end.transition&quot;,(function(){var e;this[t].count&lt;2&amp;&amp;(e=this.parentNode)&amp;&amp;e.removeChild(this)}))},ji.ease=function(e){var r=this.id,n=this.namespace;return arguments.length&lt;1?this.node()[n][r].ease:(&quot;function&quot;!=typeof e&amp;&amp;(e=t.ease.apply(t,arguments)),ut(this,(function(t){t[n][r].ease=e})))},ji.delay=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].delay:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},ji.duration=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].duration:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},ji.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length&lt;2){var a=Ni,o=Bi;try{Bi=n,ut(this,(function(t,r,a){Ni=t[i][n],e.call(t,t.__data__,r,a)}))}finally{Ni=a,Bi=o}}else ut(this,(function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(&quot;start&quot;,&quot;end&quot;,&quot;interrupt&quot;))).on(e,r)}));return this},ji.transition=function(){for(var t,e,r,n=this.id,i=++Ui,a=this.namespace,o=[],s=0,l=this.length;s&lt;l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u&lt;f;u++)(e=c[u])&amp;&amp;Gi(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return Fi(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=Yi,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each((function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):C:e,g=u.selectAll(&quot;.tick&quot;).data(p,h),m=g.enter().insert(&quot;g&quot;,&quot;.domain&quot;).attr(&quot;class&quot;,&quot;tick&quot;).style(&quot;opacity&quot;,kt),v=t.transition(g.exit()).style(&quot;opacity&quot;,kt).remove(),y=t.transition(g.order()).style(&quot;opacity&quot;,1),x=Math.max(a,0)+s,b=Dn(h),_=u.selectAll(&quot;.domain&quot;).data([0]),w=(_.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;domain&quot;),t.transition(_));m.append(&quot;line&quot;),m.append(&quot;text&quot;);var T,k,A,M,S=m.select(&quot;line&quot;),E=y.select(&quot;line&quot;),L=g.select(&quot;text&quot;).text(d),P=m.select(&quot;text&quot;),I=y.select(&quot;text&quot;),O=&quot;top&quot;===i||&quot;left&quot;===i?-1:1;if(&quot;bottom&quot;===i||&quot;top&quot;===i?(n=Xi,T=&quot;x&quot;,A=&quot;y&quot;,k=&quot;x2&quot;,M=&quot;y2&quot;,L.attr(&quot;dy&quot;,O&lt;0?&quot;0em&quot;:&quot;.71em&quot;).style(&quot;text-anchor&quot;,&quot;middle&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+b[0]+&quot;,&quot;+O*o+&quot;V0H&quot;+b[1]+&quot;V&quot;+O*o)):(n=Zi,T=&quot;y&quot;,A=&quot;x&quot;,k=&quot;y2&quot;,M=&quot;x2&quot;,L.attr(&quot;dy&quot;,&quot;.32em&quot;).style(&quot;text-anchor&quot;,O&lt;0?&quot;end&quot;:&quot;start&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+O*o+&quot;,&quot;+b[0]+&quot;H0V&quot;+b[1]+&quot;H&quot;+O*o)),S.attr(M,O*a),P.attr(A,O*x),E.attr(k,0).attr(M,O*a),I.attr(T,0).attr(A,O*x),h.rangeBand){var z=h,D=z.rangeBand()/2;f=h=function(t){return z(t)+D}}else f.rangeBand?f=h:v.call(n,h,f);m.call(n,f,h),y.call(n,h,h)}))}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in Wi?t+&quot;&quot;:Yi,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&amp;&amp;u},u};var Yi=&quot;bottom&quot;,Wi={top:1,right:1,bottom:1,left:1};function Xi(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(&quot;+(isFinite(n)?n:r(t))+&quot;,0)&quot;}))}function Zi(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(0,&quot;+(isFinite(n)?n:r(t))+&quot;)&quot;}))}t.svg.brush=function(){var e,r,n=N(h,&quot;brushstart&quot;,&quot;brush&quot;,&quot;brushend&quot;),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=Ki[0];function h(e){e.each((function(){var e=t.select(this).style(&quot;pointer-events&quot;,&quot;all&quot;).style(&quot;-webkit-tap-highlight-color&quot;,&quot;rgba(0,0,0,0)&quot;).on(&quot;mousedown.brush&quot;,m).on(&quot;touchstart.brush&quot;,m),r=e.selectAll(&quot;.background&quot;).data([0]);r.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;background&quot;).style(&quot;visibility&quot;,&quot;hidden&quot;).style(&quot;cursor&quot;,&quot;crosshair&quot;),e.selectAll(&quot;.extent&quot;).data([0]).enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;extent&quot;).style(&quot;cursor&quot;,&quot;move&quot;);var n=e.selectAll(&quot;.resize&quot;).data(f,C);n.exit().remove(),n.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;resize &quot;+t})).style(&quot;cursor&quot;,(function(t){return Ji[t]})).append(&quot;rect&quot;).attr(&quot;x&quot;,(function(t){return/[ew]$/.test(t)?-3:null})).attr(&quot;y&quot;,(function(t){return/^[ns]/.test(t)?-3:null})).attr(&quot;width&quot;,6).attr(&quot;height&quot;,6).style(&quot;visibility&quot;,&quot;hidden&quot;),n.style(&quot;display&quot;,h.empty()?&quot;none&quot;:null);var o,s=t.transition(e),l=t.transition(r);i&amp;&amp;(o=Dn(i),l.attr(&quot;x&quot;,o[0]).attr(&quot;width&quot;,o[1]-o[0]),d(s)),a&amp;&amp;(o=Dn(a),l.attr(&quot;y&quot;,o[0]).attr(&quot;height&quot;,o[1]-o[0]),g(s)),p(s)}))}function p(t){t.selectAll(&quot;.resize&quot;).attr(&quot;transform&quot;,(function(t){return&quot;translate(&quot;+s[+/e$/.test(t)]+&quot;,&quot;+l[+/^s/.test(t)]+&quot;)&quot;}))}function d(t){t.select(&quot;.extent&quot;).attr(&quot;x&quot;,s[0]),t.selectAll(&quot;.extent,.n&gt;rect,.s&gt;rect&quot;).attr(&quot;width&quot;,s[1]-s[0])}function g(t){t.select(&quot;.extent&quot;).attr(&quot;y&quot;,l[0]),t.selectAll(&quot;.extent,.e&gt;rect,.w&gt;rect&quot;).attr(&quot;height&quot;,l[1]-l[0])}function m(){var f,m,v=this,y=t.select(t.event.target),x=n.of(v,arguments),b=t.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&amp;&amp;i,T=!/^(e|w)$/.test(_)&amp;&amp;a,k=y.classed(&quot;extent&quot;),A=bt(v),M=t.mouse(v),S=t.select(o(v)).on(&quot;keydown.brush&quot;,C).on(&quot;keyup.brush&quot;,P);if(t.event.changedTouches?S.on(&quot;touchmove.brush&quot;,I).on(&quot;touchend.brush&quot;,z):S.on(&quot;mousemove.brush&quot;,I).on(&quot;mouseup.brush&quot;,z),b.interrupt().selectAll(&quot;*&quot;).interrupt(),k)M[0]=s[0]-M[0],M[1]=l[0]-M[1];else if(_){var E=+/w$/.test(_),L=+/^n/.test(_);m=[s[1-E]-M[0],l[1-L]-M[1]],M[0]=s[E],M[1]=l[L]}else t.event.altKey&amp;&amp;(f=M.slice());function C(){32==t.event.keyCode&amp;&amp;(k||(f=null,M[0]-=s[1],M[1]-=l[1],k=2),F())}function P(){32==t.event.keyCode&amp;&amp;2==k&amp;&amp;(M[0]+=s[1],M[1]+=l[1],k=0,F())}function I(){var e=t.mouse(v),r=!1;m&amp;&amp;(e[0]+=m[0],e[1]+=m[1]),k||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),M[0]=s[+(e[0]&lt;f[0])],M[1]=l[+(e[1]&lt;f[1])]):f=null),w&amp;&amp;O(e,i,0)&amp;&amp;(d(b),r=!0),T&amp;&amp;O(e,a,1)&amp;&amp;(g(b),r=!0),r&amp;&amp;(p(b),x({type:&quot;brush&quot;,mode:k?&quot;move&quot;:&quot;resize&quot;}))}function O(t,n,i){var a,o,h=Dn(n),p=h[0],d=h[1],g=M[i],m=i?l:s,v=m[1]-m[0];if(k&amp;&amp;(p-=g,d-=v+g),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],k?o=(a+=g)+v:(f&amp;&amp;(g=Math.max(p,Math.min(d,2*f[i]-a))),g&lt;a?(o=a,a=g):o=g),m[0]!=a||m[1]!=o)return i?r=null:e=null,m[0]=a,m[1]=o,!0}function z(){I(),b.style(&quot;pointer-events&quot;,&quot;all&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,h.empty()?&quot;none&quot;:null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,null),S.on(&quot;mousemove.brush&quot;,null).on(&quot;mouseup.brush&quot;,null).on(&quot;touchmove.brush&quot;,null).on(&quot;touchend.brush&quot;,null).on(&quot;keydown.brush&quot;,null).on(&quot;keyup.brush&quot;,null),A(),x({type:&quot;brushend&quot;})}b.style(&quot;pointer-events&quot;,&quot;none&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,y.style(&quot;cursor&quot;)),x({type:&quot;brushstart&quot;}),I()}return h.event=function(i){i.each((function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,Bi?t.select(this).transition().each(&quot;start.brush&quot;,(function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:&quot;brushstart&quot;})})).tween(&quot;brush:brush&quot;,(function(){var t=xr(s,a.x),n=xr(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:&quot;brush&quot;,mode:&quot;resize&quot;})}})).each(&quot;end.brush&quot;,(function(){e=a.i,r=a.j,i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;})})):(i({type:&quot;brushstart&quot;}),i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;}))}))},h.x=function(t){return arguments.length?(f=Ki[!(i=t)&lt;&lt;1|!a],h):i},h.y=function(t){return arguments.length?(f=Ki[!i&lt;&lt;1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&amp;&amp;a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&amp;&amp;(u=!!t),h):i&amp;&amp;a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&amp;&amp;(n=t[0],o=t[1],a&amp;&amp;(n=n[0],o=o[0]),e=[n,o],i.invert&amp;&amp;(n=i(n),o=i(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f),n==s[0]&amp;&amp;o==s[1]||(s=[n,o])),a&amp;&amp;(c=t[0],u=t[1],i&amp;&amp;(c=c[1],u=u[1]),r=[c,u],a.invert&amp;&amp;(c=a(c),u=a(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f),c==l[0]&amp;&amp;u==l[1]||(l=[c,u])),h):(i&amp;&amp;(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&amp;&amp;(n=i.invert(n),o=i.invert(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f))),a&amp;&amp;(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&amp;&amp;(c=a.invert(c),u=a.invert(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f))),i&amp;&amp;a?[[n,c],[o,u]]:i?[n,o]:a&amp;&amp;[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&amp;&amp;s[0]==s[1]||!!a&amp;&amp;l[0]==l[1]},t.rebind(h,n,&quot;on&quot;)};var Ji={n:&quot;ns-resize&quot;,e:&quot;ew-resize&quot;,s:&quot;ns-resize&quot;,w:&quot;ew-resize&quot;,nw:&quot;nwse-resize&quot;,ne:&quot;nesw-resize&quot;,se:&quot;nwse-resize&quot;,sw:&quot;nesw-resize&quot;},Ki=[[&quot;n&quot;,&quot;e&quot;,&quot;s&quot;,&quot;w&quot;,&quot;nw&quot;,&quot;ne&quot;,&quot;se&quot;,&quot;sw&quot;],[&quot;e&quot;,&quot;w&quot;],[&quot;n&quot;,&quot;s&quot;],[]];function Qi(t){return JSON.parse(t.responseText)}function $i(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}t.text=ue((function(t){return t.responseText})),t.json=function(t,e){return fe(t,&quot;application/json&quot;,Qi,e)},t.html=function(t,e){return fe(t,&quot;text/html&quot;,$i,e)},t.xml=ue((function(t){return t.responseXML})),&quot;object&quot;==typeof e&amp;&amp;e.exports?e.exports=t:this.d3=t}).apply(self)},{}],59:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./quad&quot;)},{&quot;./quad&quot;:60}],60:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;clamp&quot;),a=t(&quot;parse-rect&quot;),o=t(&quot;array-bounds&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;defined&quot;),c=t(&quot;flatten-vertex-data&quot;),u=t(&quot;is-obj&quot;),f=t(&quot;dtype&quot;),h=t(&quot;math-log2&quot;);function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l&lt;c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,&quot;float64&quot;),e=s(e,{bounds:&quot;range bounds dataBox databox&quot;,maxDepth:&quot;depth maxDepth maxdepth level maxLevel maxlevel levels&quot;,dtype:&quot;type dtype format out dst output destination&quot;});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&amp;&amp;i[2]++,i[1]===i[3]&amp;&amp;i[3]++;var d,g=p(t,i),m=t.length&gt;&gt;&gt;1;e.dtype||(e.dtype=&quot;array&quot;),&quot;string&quot;==typeof e.dtype?d=new(f(e.dtype))(m):e.dtype&amp;&amp;(d=e.dtype,Array.isArray(d)&amp;&amp;(d.length=m));for(var v=0;v&lt;m;++v)d[v]=v;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]),c=b[o]||(b[o]=[]),u=x[o]||(x[o]=[]),f=l.length;if(++o&gt;r||s&gt;1073741824){for(var h=0;h&lt;a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}if(l.push(a[0]),c.push(s),a.length&lt;=1)return u.push(null,null,null,null),f;for(var p=.5*i,d=e+p,m=n+p,v=[],_=[],w=[],T=[],k=1,A=a.length;k&lt;A;k++){var M=a[k],S=g[2*M],E=g[2*M+1];S&lt;d?E&lt;m?v.push(M):_.push(M):E&lt;m?w.push(M):T.push(M)}return s&lt;&lt;=2,u.push(t(e,n,p,v,o,s),t(e,m,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,m,p,T,o,s+3)),f}(0,0,1,d,0,1);for(var w=0,T=0;T&lt;y.length;T++){var k=y[T];if(d.set)d.set(k,w);else for(var A=0,M=k.length;A&lt;M;A++)d[A+w]=k[A];var S=w+y[T].length;_[T]=[w,S],w=S}return d.range=function(){var e,r=[],n=arguments.length;for(;n--;)r[n]=arguments[n];if(u(r[r.length-1])){var o=r.pop();r.length||null==o.x&amp;&amp;null==o.l&amp;&amp;null==o.left||(r=[o],e={}),e=s(o,{level:&quot;level maxLevel&quot;,d:&quot;d diam diameter r radius px pxSize pixel pixelSize maxD size minSize&quot;,lod:&quot;lod details ranges offsets&quot;})}else e={};r.length||(r=i);var c=a.apply(void 0,r),f=[Math.min(c.x,c.x+c.width),Math.min(c.y,c.y+c.height),Math.max(c.x,c.x+c.width),Math.max(c.y,c.y+c.height)],d=f[0],g=f[1],m=f[2],v=f[3],b=p([d,g,m,v],i),_=b[0],w=b[1],T=b[2],k=b[3],A=l(e.level,y.length);if(null!=e.d){var M;&quot;number&quot;==typeof e.d?M=[e.d,e.d]:e.d.length&amp;&amp;(M=e.d),A=Math.min(Math.max(Math.ceil(-h(Math.abs(M[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(M[1])/(i[3]-i[1])))),A)}if(A=Math.min(A,y.length),e.lod)return E(_,w,T,k,A);var S=[];function L(e,r,n,i,a,o){if(null!==a&amp;&amp;null!==o&amp;&amp;!(_&gt;e+n||w&gt;r+n||T&lt;e||k&lt;r||i&gt;=A||a===o)){var s=y[i];void 0===o&amp;&amp;(o=s.length);for(var l=a;l&lt;o;l++){var c=s[l],u=t[2*c],f=t[2*c+1];u&gt;=d&amp;&amp;u&lt;=m&amp;&amp;f&gt;=g&amp;&amp;f&lt;=v&amp;&amp;S.push(c)}var h=x[i],p=h[4*a+0],b=h[4*a+1],M=h[4*a+2],E=h[4*a+3],P=C(h,a+1),I=.5*n,O=i+1;L(e,r,I,O,p,b||M||E||P),L(e,r+I,I,O,b,M||E||P),L(e+I,r,I,O,M,E||P),L(e+I,r+I,I,O,E,P)}}function C(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n&gt;t.length)return null;return r}return L(0,0,1,0,0,1),S},d;function E(t,e,r,i,a){for(var o=[],s=0;s&lt;a;s++){var l=b[s],c=_[s][0],u=L(t,e,s),f=L(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}function L(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s&lt;r;s++)n&lt;&lt;=2,n+=t&lt;i?e&lt;a?0:1:e&lt;a?2:3,o*=.5,i+=t&lt;i?-o:o,a+=e&lt;a?-o:o;return n}}},{&quot;array-bounds&quot;:76,&quot;binary-search-bounds&quot;:103,clamp:126,defined:179,dtype:184,&quot;flatten-vertex-data&quot;:252,&quot;is-obj&quot;:456,&quot;math-log2&quot;:467,&quot;parse-rect&quot;:492,&quot;pick-by-alias&quot;:498}],61:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=0;if(t&amp;&amp;t.length&gt;0){e+=Math.abs(a(t[0]));for(var r=1;r&lt;t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e,r,n,i,a,s,l=0,c=t.length;if(c&gt;2){for(s=0;s&lt;c;s++)s===c-2?(n=c-2,i=c-1,a=0):s===c-1?(n=c-1,i=0,a=1):(n=s,i=s+1,a=s+2),e=t[n],r=t[i],l+=(o(t[a][0])-o(e[0]))*Math.sin(o(r[1]));l=6378137*l*6378137/2}return l}function o(t){return t*Math.PI/180}r.default=function(t){return n.geomReduce(t,(function(t,e){return t+function(t){var e,r=0;switch(t.type){case&quot;Polygon&quot;:return i(t.coordinates);case&quot;MultiPolygon&quot;:for(e=0;e&lt;t.coordinates.length;e++)r+=i(t.coordinates[e]);return r;case&quot;Point&quot;:case&quot;MultiPoint&quot;:case&quot;LineString&quot;:case&quot;MultiLineString&quot;:return 0}return 0}(e)}),0)}},{&quot;@turf/meta&quot;:63}],62:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){if(void 0===r&amp;&amp;(r={}),!t)throw new Error(&quot;coordinates is required&quot;);if(!Array.isArray(t))throw new Error(&quot;coordinates must be an Array&quot;);if(t.length&lt;2)throw new Error(&quot;coordinates must be at least 2 numbers long&quot;);if(!d(t[0])||!d(t[1]))throw new Error(&quot;coordinates must contain numbers&quot;);return n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:1.0936*r.earthRadius},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1.0936133},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)}},{}],63:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,g=&quot;FeatureCollection&quot;===d,m=&quot;Feature&quot;===d,v=g?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,g=p?t.features.length:1;for(r=0;r&lt;g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:62}],64:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,(function(t){e[0]&gt;t[0]&amp;&amp;(e[0]=t[0]),e[1]&gt;t[1]&amp;&amp;(e[1]=t[1]),e[2]&lt;t[0]&amp;&amp;(e[2]=t[0]),e[3]&lt;t[1]&amp;&amp;(e[3]=t[1])})),e}i.default=i,r.default=i},{&quot;@turf/meta&quot;:66}],65:[function(t,e,r){arguments[4][62][0].apply(r,arguments)},{dup:62}],66:[function(t,e,r){arguments[4][63][0].apply(r,arguments)},{&quot;@turf/helpers&quot;:65,dup:63}],67:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;),i=t(&quot;@turf/helpers&quot;);r.default=function(t,e){void 0===e&amp;&amp;(e={});var r=0,a=0,o=0;return n.coordEach(t,(function(t){r+=t[0],a+=t[1],o++})),i.point([r/o,a/o],e.properties)}},{&quot;@turf/helpers&quot;:68,&quot;@turf/meta&quot;:69}],68:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)&amp;&amp;!/^\s*$/.test(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:r.earthRadius/1.0936},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1/1.0936},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)},r.radians2degrees=function(){throw new Error(&quot;method has been renamed to `radiansToDegrees`&quot;)},r.degrees2radians=function(){throw new Error(&quot;method has been renamed to `degreesToRadians`&quot;)},r.distanceToDegrees=function(){throw new Error(&quot;method has been renamed to `lengthToDegrees`&quot;)},r.distanceToRadians=function(){throw new Error(&quot;method has been renamed to `lengthToRadians`&quot;)},r.radiansToDistance=function(){throw new Error(&quot;method has been renamed to `radiansToLength`&quot;)},r.bearingToAngle=function(){throw new Error(&quot;method has been renamed to `bearingToAzimuth`&quot;)},r.convertDistance=function(){throw new Error(&quot;method has been renamed to `convertLength`&quot;)}},{}],69:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,g=&quot;FeatureCollection&quot;===d,m=&quot;Feature&quot;===d,v=g?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,g=p?t.features.length:1;for(r=0;r&lt;g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:68}],70:[function(t,e,r){&quot;use strict&quot;;var n=&quot;undefined&quot;==typeof WeakMap?t(&quot;weak-map&quot;):WeakMap,i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=new n;e.exports=function(t){var e=o.get(t),r=e&amp;&amp;(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361,&quot;weak-map&quot;:625}],71:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case&quot;a&quot;:t[6]+=n,t[7]+=i;break;case&quot;v&quot;:t[1]+=i;break;case&quot;h&quot;:t[1]+=n;break;default:for(var s=1;s&lt;t.length;)t[s++]+=n,t[s++]+=i}switch(o){case&quot;Z&quot;:n=e,i=r;break;case&quot;H&quot;:n=t[1];break;case&quot;V&quot;:i=t[1];break;case&quot;M&quot;:n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}},{}],72:[function(t,e,r){var n=t(&quot;pad-left&quot;);e.exports=function(t,e,r){e=&quot;number&quot;==typeof e?e:1,r=r||&quot;: &quot;;var i=t.split(/\r?\n/),a=String(i.length+e-1).length;return i.map((function(t,i){var o=i+e,s=String(o).length;return n(o,a-s)+r+t})).join(&quot;\n&quot;)}},{&quot;pad-left&quot;:490}],73:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o&lt;e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(&quot;robust-orientation&quot;);function i(t,e){for(var r=new Array(e+1),i=0;i&lt;t.length;++i)r[i]=t[i];for(i=0;i&lt;=t.length;++i){for(var a=t.length;a&lt;=e;++a){for(var o=new Array(e),s=0;s&lt;e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{&quot;robust-orientation&quot;:548}],74:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return n(e).filter((function(r){for(var n=new Array(r.length),a=0;a&lt;r.length;++a)n[a]=e[r[a]];return i(n)*t&lt;1}))};var n=t(&quot;delaunay-triangulate&quot;),i=t(&quot;circumradius&quot;)},{circumradius:125,&quot;delaunay-triangulate&quot;:180}],75:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(&quot;alpha-complex&quot;),i=t(&quot;simplicial-complex-boundary&quot;)},{&quot;alpha-complex&quot;:74,&quot;simplicial-complex-boundary&quot;:556}],76:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n&lt;e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o&lt;s;o+=e)t[o]&gt;i&amp;&amp;(i=t[o]),t[o]&lt;a&amp;&amp;(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],77:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(&quot;function&quot;==typeof Array.prototype.findIndex)return t.findIndex(e,r);if(&quot;function&quot;!=typeof e)throw new TypeError(&quot;predicate must be a function&quot;);var n=Object(t),i=n.length;if(0===i)return-1;for(var a=0;a&lt;i;a++)if(e.call(r,n[a],a,n))return a;return-1}},{}],78:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;);e.exports=function(t,e,r){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);null==e&amp;&amp;(e=1);null==r&amp;&amp;(r=n(t,e));for(var i=0;i&lt;e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&amp;&amp;o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s&lt;l;s+=e)isNaN(t[s])||(t[s]=0===c?.5:(t[s]-o)/c)}}return t}},{&quot;array-bounds&quot;:76}],79:[function(t,e,r){e.exports=function(t,e){var r=&quot;number&quot;==typeof t,n=&quot;number&quot;==typeof e;r&amp;&amp;!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i&lt;0)throw new Error(&quot;array length must be positive&quot;);for(var a=new Array(i),o=0,s=t;o&lt;i;o++,s++)a[o]=s;return a}},{}],80:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;object-assign&quot;);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;feross@feross.org&gt; &lt;http://feross.org&gt;
 * @license  MIT
 */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i&lt;a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0}function a(t){return r.Buffer&amp;&amp;&quot;function&quot;==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var o=t(&quot;util/&quot;),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c=&quot;foo&quot;===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&amp;&amp;(&quot;function&quot;==typeof r.ArrayBuffer&amp;&amp;(&quot;function&quot;==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&amp;&amp;(t instanceof DataView||!!(t.buffer&amp;&amp;t.buffer instanceof ArrayBuffer))))}var h=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(o.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&amp;&amp;e[1]}}function g(t,e){return&quot;string&quot;==typeof t?t.length&lt;e?t:t.slice(0,e):t}function m(t){if(c||!o.isFunction(t))return o.inspect(t);var e=d(t);return&quot;[Function&quot;+(e?&quot;: &quot;+e:&quot;&quot;)+&quot;]&quot;}function v(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function y(t,e){t||v(t,!0,e,&quot;==&quot;,h.ok)}function x(t,e,r,n){if(t===e)return!0;if(a(t)&amp;&amp;a(e))return 0===i(t,e);if(o.isDate(t)&amp;&amp;o.isDate(e))return t.getTime()===e.getTime();if(o.isRegExp(t)&amp;&amp;o.isRegExp(e))return t.source===e.source&amp;&amp;t.global===e.global&amp;&amp;t.multiline===e.multiline&amp;&amp;t.lastIndex===e.lastIndex&amp;&amp;t.ignoreCase===e.ignoreCase;if(null!==t&amp;&amp;&quot;object&quot;==typeof t||null!==e&amp;&amp;&quot;object&quot;==typeof e){if(f(t)&amp;&amp;f(e)&amp;&amp;u(t)===u(e)&amp;&amp;!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&amp;&amp;s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(o.isPrimitive(t)||o.isPrimitive(e))return t===e;if(r&amp;&amp;Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),a=b(e);if(i&amp;&amp;!a||!i&amp;&amp;a)return!1;if(i)return t=l.call(t),e=l.call(e),x(t,e,r);var s,c,u=T(t),f=T(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c&gt;=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c&gt;=0;c--)if(s=u[c],!x(t[s],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function b(t){return&quot;[object Arguments]&quot;==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if(&quot;[object RegExp]&quot;==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&amp;&amp;!0===e.call({},t)}function w(t,e,r,n){var i;if(&quot;function&quot;!=typeof e)throw new TypeError('&quot;block&quot; argument must be a function');&quot;string&quot;==typeof r&amp;&amp;(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&amp;&amp;r.name?&quot; (&quot;+r.name+&quot;).&quot;:&quot;.&quot;)+(n?&quot; &quot;+n:&quot;.&quot;),t&amp;&amp;!i&amp;&amp;v(i,r,&quot;Missing expected exception&quot;+n);var a=&quot;string&quot;==typeof n,s=!t&amp;&amp;i&amp;&amp;!r;if((!t&amp;&amp;o.isError(i)&amp;&amp;a&amp;&amp;_(i,r)||s)&amp;&amp;v(i,r,&quot;Got unwanted exception&quot;+n),t&amp;&amp;i&amp;&amp;r&amp;&amp;!_(i,r)||!t&amp;&amp;i)throw i}h.AssertionError=function(t){this.name=&quot;AssertionError&quot;,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(m(t.actual),128)+&quot; &quot;+t.operator+&quot; &quot;+g(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf(&quot;\n&quot;+i);if(a&gt;=0){var o=n.indexOf(&quot;\n&quot;,a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(t,e,r){t!=e&amp;&amp;v(t,e,r,&quot;==&quot;,h.equal)},h.notEqual=function(t,e,r){t==e&amp;&amp;v(t,e,r,&quot;!=&quot;,h.notEqual)},h.deepEqual=function(t,e,r){x(t,e,!1)||v(t,e,r,&quot;deepEqual&quot;,h.deepEqual)},h.deepStrictEqual=function(t,e,r){x(t,e,!0)||v(t,e,r,&quot;deepStrictEqual&quot;,h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){x(t,e,!1)&amp;&amp;v(t,e,r,&quot;notDeepEqual&quot;,h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&amp;&amp;v(e,r,n,&quot;notDeepStrictEqual&quot;,t)},h.strictEqual=function(t,e,r){t!==e&amp;&amp;v(t,e,r,&quot;===&quot;,h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&amp;&amp;v(t,e,r,&quot;!==&quot;,h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n((function t(e,r){e||v(e,!0,r,&quot;==&quot;,t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&amp;&amp;e.push(r);return e}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;object-assign&quot;:487,&quot;util/&quot;:83}],81:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],82:[function(t,e,r){e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;function&quot;==typeof t.copy&amp;&amp;&quot;function&quot;==typeof t.fill&amp;&amp;&quot;function&quot;==typeof t.readUInt8}},{}],83:[function(t,e,r){(function(e,n){(function(){var i=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r&lt;arguments.length;r++)e.push(s(arguments[r]));return e.join(&quot; &quot;)}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if(&quot;%%&quot;===t)return&quot;%&quot;;if(r&gt;=a)return t;switch(t){case&quot;%s&quot;:return String(n[r++]);case&quot;%d&quot;:return Number(n[r++]);case&quot;%j&quot;:try{return JSON.stringify(n[r++])}catch(t){return&quot;[Circular]&quot;}default:return t}})),l=n[r];r&lt;a;l=n[++r])g(l)||!b(l)?o+=&quot; &quot;+l:o+=&quot; &quot;+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length&gt;=3&amp;&amp;(n.depth=arguments[2]),arguments.length&gt;=4&amp;&amp;(n.colors=arguments[3]),d(e)?n.showHidden=e:e&amp;&amp;r._extend(n,e),y(n.showHidden)&amp;&amp;(n.showHidden=!1),y(n.depth)&amp;&amp;(n.depth=2),y(n.colors)&amp;&amp;(n.colors=!1),y(n.customInspect)&amp;&amp;(n.customInspect=!0),n.colors&amp;&amp;(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?&quot;\x1b[&quot;+s.colors[r][0]+&quot;m&quot;+t+&quot;\x1b[&quot;+s.colors[r][1]+&quot;m&quot;:t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&amp;&amp;e&amp;&amp;T(e.inspect)&amp;&amp;e.inspect!==r.inspect&amp;&amp;(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(&quot;undefined&quot;,&quot;undefined&quot;);if(v(e)){var r=&quot;'&quot;+JSON.stringify(e).replace(/^&quot;|&quot;$/g,&quot;&quot;).replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;')+&quot;'&quot;;return t.stylize(r,&quot;string&quot;)}if(m(e))return t.stylize(&quot;&quot;+e,&quot;number&quot;);if(d(e))return t.stylize(&quot;&quot;+e,&quot;boolean&quot;);if(g(e))return t.stylize(&quot;null&quot;,&quot;null&quot;)}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&amp;&amp;(o=Object.getOwnPropertyNames(e)),w(e)&amp;&amp;(o.indexOf(&quot;message&quot;)&gt;=0||o.indexOf(&quot;description&quot;)&gt;=0))return f(e);if(0===o.length){if(T(e)){var l=e.name?&quot;: &quot;+e.name:&quot;&quot;;return t.stylize(&quot;[Function&quot;+l+&quot;]&quot;,&quot;special&quot;)}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;);if(_(e))return t.stylize(Date.prototype.toString.call(e),&quot;date&quot;);if(w(e))return f(e)}var c,b=&quot;&quot;,k=!1,A=[&quot;{&quot;,&quot;}&quot;];(p(e)&amp;&amp;(k=!0,A=[&quot;[&quot;,&quot;]&quot;]),T(e))&amp;&amp;(b=&quot; [Function&quot;+(e.name?&quot;: &quot;+e.name:&quot;&quot;)+&quot;]&quot;);return x(e)&amp;&amp;(b=&quot; &quot;+RegExp.prototype.toString.call(e)),_(e)&amp;&amp;(b=&quot; &quot;+Date.prototype.toUTCString.call(e)),w(e)&amp;&amp;(b=&quot; &quot;+f(e)),0!==o.length||k&amp;&amp;0!=e.length?n&lt;0?x(e)?t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;):t.stylize(&quot;[Object]&quot;,&quot;special&quot;):(t.seen.push(e),c=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o&lt;s;++o)E(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(&quot;&quot;);return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(t,e,r,n,i,!0))})),a}(t,e,n,s,o):o.map((function(r){return h(t,e,n,s,r,k)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf(&quot;\n&quot;)&gt;=0&amp;&amp;0,t+e.replace(/\u001b\[\d\d?m/g,&quot;&quot;).length+1}),0)&gt;60)return r[0]+(&quot;&quot;===e?&quot;&quot;:e+&quot;\n &quot;)+&quot; &quot;+t.join(&quot;,\n  &quot;)+&quot; &quot;+r[1];return r[0]+e+&quot; &quot;+t.join(&quot;, &quot;)+&quot; &quot;+r[1]}(c,b,A)):A[0]+b+A[1]}function f(t){return&quot;[&quot;+Error.prototype.toString.call(t)+&quot;]&quot;}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(&quot;[Getter/Setter]&quot;,&quot;special&quot;):t.stylize(&quot;[Getter]&quot;,&quot;special&quot;):l.set&amp;&amp;(s=t.stylize(&quot;[Setter]&quot;,&quot;special&quot;)),E(n,i)||(o=&quot;[&quot;+i+&quot;]&quot;),s||(t.seen.indexOf(l.value)&lt;0?(s=g(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(&quot;\n&quot;)&gt;-1&amp;&amp;(s=a?s.split(&quot;\n&quot;).map((function(t){return&quot;  &quot;+t})).join(&quot;\n&quot;).substr(2):&quot;\n&quot;+s.split(&quot;\n&quot;).map((function(t){return&quot;   &quot;+t})).join(&quot;\n&quot;)):s=t.stylize(&quot;[Circular]&quot;,&quot;special&quot;)),y(o)){if(a&amp;&amp;i.match(/^\d+$/))return s;(o=JSON.stringify(&quot;&quot;+i)).match(/^&quot;([a-zA-Z_][a-zA-Z_0-9]*)&quot;$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,&quot;name&quot;)):(o=o.replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;').replace(/(^&quot;|&quot;$)/g,&quot;'&quot;),o=t.stylize(o,&quot;string&quot;))}return o+&quot;: &quot;+s}function p(t){return Array.isArray(t)}function d(t){return&quot;boolean&quot;==typeof t}function g(t){return null===t}function m(t){return&quot;number&quot;==typeof t}function v(t){return&quot;string&quot;==typeof t}function y(t){return void 0===t}function x(t){return b(t)&amp;&amp;&quot;[object RegExp]&quot;===k(t)}function b(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t}function _(t){return b(t)&amp;&amp;&quot;[object Date]&quot;===k(t)}function w(t){return b(t)&amp;&amp;(&quot;[object Error]&quot;===k(t)||t instanceof Error)}function T(t){return&quot;function&quot;==typeof t}function k(t){return Object.prototype.toString.call(t)}function A(t){return t&lt;10?&quot;0&quot;+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&amp;&amp;(a=e.env.NODE_DEBUG||&quot;&quot;),t=t.toUpperCase(),!o[t])if(new RegExp(&quot;\\b&quot;+t+&quot;\\b&quot;,&quot;i&quot;).test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(&quot;%s %d: %s&quot;,t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:&quot;cyan&quot;,number:&quot;yellow&quot;,boolean:&quot;yellow&quot;,undefined:&quot;grey&quot;,null:&quot;bold&quot;,string:&quot;green&quot;,date:&quot;magenta&quot;,regexp:&quot;red&quot;},r.isArray=p,r.isBoolean=d,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=m,r.isString=v,r.isSymbol=function(t){return&quot;symbol&quot;==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=T,r.isPrimitive=function(t){return null===t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||&quot;symbol&quot;==typeof t||void 0===t},r.isBuffer=t(&quot;./support/isBuffer&quot;);var M=[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;];function S(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(&quot;:&quot;);return[t.getDate(),M[t.getMonth()],e].join(&quot; &quot;)}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){console.log(&quot;%s - %s&quot;,S(),r.format.apply(r,arguments))},r.inherits=t(&quot;inherits&quot;),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./support/isBuffer&quot;:82,_process:528,inherits:81}],84:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],85:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o&lt;r;++o){for(var s=new Array(r+1),l=0;l&lt;=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(o=0;o&lt;=r;++o)a[r][o]=1;var c=new Array(r+1);for(o=0;o&lt;r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&amp;&amp;(f=1);var h=new Array(r+1);for(o=0;o&lt;=r;++o)h[o]=i(u[o])/f;return h};var n=t(&quot;robust-linear-solve&quot;);function i(t){for(var e=0,r=0;r&lt;t.length;++r)e+=t[r];return e}},{&quot;robust-linear-solve&quot;:547}],86:[function(t,e,r){&quot;use strict&quot;;r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s&gt;0?o-4:o;for(r=0;r&lt;f;r+=4)e=i[t.charCodeAt(r)]&lt;&lt;18|i[t.charCodeAt(r+1)]&lt;&lt;12|i[t.charCodeAt(r+2)]&lt;&lt;6|i[t.charCodeAt(r+3)],l[u++]=e&gt;&gt;16&amp;255,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e;2===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;2|i[t.charCodeAt(r+1)]&gt;&gt;4,l[u++]=255&amp;e);1===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;10|i[t.charCodeAt(r+1)]&lt;&lt;4|i[t.charCodeAt(r+2)]&gt;&gt;2,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o&lt;s;o+=16383)a.push(u(t,o,o+16383&gt;s?s:o+16383));1===i?(e=t[r-1],a.push(n[e&gt;&gt;2]+n[e&lt;&lt;4&amp;63]+&quot;==&quot;)):2===i&amp;&amp;(e=(t[r-2]&lt;&lt;8)+t[r-1],a.push(n[e&gt;&gt;10]+n[e&gt;&gt;4&amp;63]+n[e&lt;&lt;2&amp;63]+&quot;=&quot;));return a.join(&quot;&quot;)};for(var n=[],i=[],a=&quot;undefined&quot;!=typeof Uint8Array?Uint8Array:Array,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,s=0,l=o.length;s&lt;l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var r=t.indexOf(&quot;=&quot;);return-1===r&amp;&amp;(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s&lt;r;s+=3)i=(t[s]&lt;&lt;16&amp;16711680)+(t[s+1]&lt;&lt;8&amp;65280)+(255&amp;t[s+2]),o.push(n[(a=i)&gt;&gt;18&amp;63]+n[a&gt;&gt;12&amp;63]+n[a&gt;&gt;6&amp;63]+n[63&amp;a]);return o.join(&quot;&quot;)}i[&quot;-&quot;.charCodeAt(0)]=62,i[&quot;_&quot;.charCodeAt(0)]=63},{}],87:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:97}],88:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],89:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{&quot;./lib/rationalize&quot;:97}],90:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-rat&quot;),i=t(&quot;./lib/is-bn&quot;),a=t(&quot;./lib/num-to-bn&quot;),o=t(&quot;./lib/str-to-bn&quot;),s=t(&quot;./lib/rationalize&quot;),l=t(&quot;./div&quot;);e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c,u,f=0;if(i(e))c=e.clone();else if(&quot;string&quot;==typeof e)c=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))c=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),f-=256;c=a(e)}}if(n(r))c.mul(r[1]),u=r[0].clone();else if(i(r))u=r.clone();else if(&quot;string&quot;==typeof r)u=o(r);else if(r)if(r===Math.floor(r))u=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),f+=256;u=a(r)}else u=a(1);f&gt;0?c=c.ushln(f):f&lt;0&amp;&amp;(u=u.ushln(-f));return s(c,u)}},{&quot;./div&quot;:89,&quot;./is-rat&quot;:91,&quot;./lib/is-bn&quot;:95,&quot;./lib/num-to-bn&quot;:96,&quot;./lib/rationalize&quot;:97,&quot;./lib/str-to-bn&quot;:98}],91:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/is-bn&quot;);e.exports=function(t){return Array.isArray(t)&amp;&amp;2===t.length&amp;&amp;n(t[0])&amp;&amp;n(t[1])}},{&quot;./lib/is-bn&quot;:95}],92:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return t.cmp(new n(0))}},{&quot;bn.js&quot;:106}],93:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./bn-sign&quot;);e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a&lt;e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{&quot;./bn-sign&quot;:92}],94:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=t(&quot;bit-twiddle&quot;).countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e&lt;32)return e;var r=i(n.hi(t));if(r&gt;20)return 52;return r+32}},{&quot;bit-twiddle&quot;:104,&quot;double-bits&quot;:182}],95:[function(t,e,r){&quot;use strict&quot;;t(&quot;bn.js&quot;);e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Boolean(t.words)}},{&quot;bn.js&quot;:106}],96:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;),i=t(&quot;double-bits&quot;);e.exports=function(t){var e=i.exponent(t);return e&lt;52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{&quot;bn.js&quot;:106,&quot;double-bits&quot;:182}],97:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./num-to-bn&quot;),i=t(&quot;./bn-sign&quot;);e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a&lt;0&amp;&amp;(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{&quot;./bn-sign&quot;:92,&quot;./num-to-bn&quot;:96}],98:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return new n(t)}},{&quot;bn.js&quot;:106}],99:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:97}],100:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-sign&quot;);e.exports=function(t){return n(t[0])*n(t[1])}},{&quot;./lib/bn-sign&quot;:92}],101:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:97}],102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-to-num&quot;),i=t(&quot;./lib/ctz&quot;);e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53;f=n(l.ushln(h).divRound(r));return h&lt;1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{&quot;./lib/bn-to-num&quot;:93,&quot;./lib/ctz&quot;:94}],103:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){for(var a=i+1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&gt;=0?(a=o,i=o-1):n=o+1}return a}function i(t,e,r,n,i){for(var a=i+1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&gt;0?(a=o,i=o-1):n=o+1}return a}function a(t,e,r,n,i){for(var a=n-1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&lt;0?(a=o,n=o+1):i=o-1}return a}function o(t,e,r,n,i){for(var a=n-1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&lt;=0?(a=o,n=o+1):i=o-1}return a}function s(t,e,r,n,i){for(;n&lt;=i;){var a=n+i&gt;&gt;&gt;1,o=t[a],s=void 0!==r?r(o,e):o-e;if(0===s)return a;s&lt;=0?n=a+1:i=a-1}return-1}function l(t,e,r,n,i,a){return&quot;function&quot;==typeof r?a(t,e,r,void 0===n?0:0|n,void 0===i?t.length-1:0|i):a(t,e,void 0,void 0===r?0:0|r,void 0===n?t.length-1:0|n)}e.exports={ge:function(t,e,r,i,a){return l(t,e,r,i,a,n)},gt:function(t,e,r,n,a){return l(t,e,r,n,a,i)},lt:function(t,e,r,n,i){return l(t,e,r,n,i,a)},le:function(t,e,r,n,i){return l(t,e,r,n,i,o)},eq:function(t,e,r,n,i){return l(t,e,r,n,i,s)}}},{}],104:[function(t,e,r){&quot;use strict&quot;;function n(t){var e=32;return(t&amp;=-t)&amp;&amp;e--,65535&amp;t&amp;&amp;(e-=16),16711935&amp;t&amp;&amp;(e-=8),252645135&amp;t&amp;&amp;(e-=4),858993459&amp;t&amp;&amp;(e-=2),1431655765&amp;t&amp;&amp;(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1&lt;&lt;31,r.sign=function(t){return(t&gt;0)-(t&lt;0)},r.abs=function(t){var e=t&gt;&gt;31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&amp;-(t&lt;e)},r.max=function(t,e){return t^(t^e)&amp;-(t&lt;e)},r.isPow2=function(t){return!(t&amp;t-1||!t)},r.log2=function(t){var e,r;return e=(t&gt;65535)&lt;&lt;4,e|=r=((t&gt;&gt;&gt;=e)&gt;255)&lt;&lt;3,e|=r=((t&gt;&gt;&gt;=r)&gt;15)&lt;&lt;2,(e|=r=((t&gt;&gt;&gt;=r)&gt;3)&lt;&lt;1)|(t&gt;&gt;&gt;=r)&gt;&gt;1},r.log10=function(t){return t&gt;=1e9?9:t&gt;=1e8?8:t&gt;=1e7?7:t&gt;=1e6?6:t&gt;=1e5?5:t&gt;=1e4?4:t&gt;=1e3?3:t&gt;=100?2:t&gt;=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&amp;(t-=t&gt;&gt;&gt;1&amp;1431655765))+(t&gt;&gt;&gt;2&amp;858993459))+(t&gt;&gt;&gt;4)&amp;252645135)&gt;&gt;&gt;24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)+1},r.prevPow2=function(t){return t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)-(t&gt;&gt;&gt;1)},r.parity=function(t){return t^=t&gt;&gt;&gt;16,t^=t&gt;&gt;&gt;8,t^=t&gt;&gt;&gt;4,27030&gt;&gt;&gt;(t&amp;=15)&amp;1};var i=new Array(256);!function(t){for(var e=0;e&lt;256;++e){var r=e,n=e,i=7;for(r&gt;&gt;&gt;=1;r;r&gt;&gt;&gt;=1)n&lt;&lt;=1,n|=1&amp;r,--i;t[e]=n&lt;&lt;i&amp;255}}(i),r.reverse=function(t){return i[255&amp;t]&lt;&lt;24|i[t&gt;&gt;&gt;8&amp;255]&lt;&lt;16|i[t&gt;&gt;&gt;16&amp;255]&lt;&lt;8|i[t&gt;&gt;&gt;24&amp;255]},r.interleave2=function(t,e){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t&amp;=65535)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e&amp;=65535)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1},r.deinterleave2=function(t,e){return(t=65535&amp;((t=16711935&amp;((t=252645135&amp;((t=858993459&amp;((t=t&gt;&gt;&gt;e&amp;1431655765)|t&gt;&gt;&gt;1))|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;16))&lt;&lt;16&gt;&gt;16},r.interleave3=function(t,e,r){return t=1227133513&amp;((t=3272356035&amp;((t=251719695&amp;((t=4278190335&amp;((t&amp;=1023)|t&lt;&lt;16))|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2),(t|=(e=1227133513&amp;((e=3272356035&amp;((e=251719695&amp;((e=4278190335&amp;((e&amp;=1023)|e&lt;&lt;16))|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))&lt;&lt;1)|(r=1227133513&amp;((r=3272356035&amp;((r=251719695&amp;((r=4278190335&amp;((r&amp;=1023)|r&lt;&lt;16))|r&lt;&lt;8))|r&lt;&lt;4))|r&lt;&lt;2))&lt;&lt;2},r.deinterleave3=function(t,e){return(t=1023&amp;((t=4278190335&amp;((t=251719695&amp;((t=3272356035&amp;((t=t&gt;&gt;&gt;e&amp;1227133513)|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;8))|t&gt;&gt;&gt;16))&lt;&lt;22&gt;&gt;22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&amp;-~e)-1&gt;&gt;&gt;n(t)+1}},{}],105:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,g,m=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(&quot;For raw data width and height should be provided by options&quot;);r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&amp;&amp;t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(&quot;2d&quot;),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&amp;&amp;t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&amp;&amp;t instanceof window.ImageData&amp;&amp;(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&amp;&amp;l instanceof window.Uint8ClampedArray||window.Uint8Array&amp;&amp;l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,g=c.length;d&lt;g;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(&quot;Raw data can have only 1 value per pixel&quot;);var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),T=Array(s+1),k=Array(s);for(d=0,g=r*o;d&lt;g;d++){var A=l[d];x[d]=1===A?0:0===A?i:Math.pow(Math.max(0,.5-A),2),b[d]=1===A?i:0===A?0:Math.pow(Math.max(0,A-.5),2)}a(x,r,o,_,w,k,T),a(b,r,o,_,w,k,T);var M=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,g=r*o;d&lt;g;d++)M[d]=n(1-((x[d]-b[d])/v+m),0,1);return M};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l&lt;e;l++){for(var c=0;c&lt;r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c&lt;r;c++)t[c*e+l]=i[c]}for(c=0;c&lt;r;c++){for(l=0;l&lt;e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l&lt;e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o&lt;a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l&lt;=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o&lt;a;o++){for(;n[s+1]&lt;o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:126}],106:[function(t,e,r){!function(e,r){&quot;use strict&quot;;function n(t,e){if(!t)throw new Error(e||&quot;Assertion failed&quot;)}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&amp;&amp;(&quot;le&quot;!==e&amp;&amp;&quot;be&quot;!==e||(r=e,e=10),this._init(t||0,e||10,r||&quot;be&quot;))}var o;&quot;object&quot;==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=t(&quot;buffer&quot;).Buffer}catch(t){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a&lt;i;a++){var o=t.charCodeAt(a)-48;n&lt;&lt;=4,n|=o&gt;=49&amp;&amp;o&lt;=54?o-49+10:o&gt;=17&amp;&amp;o&lt;=22?o-17+10:15&amp;o}return n}function l(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o&lt;a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s&gt;=49?s-49+10:s&gt;=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)&gt;0?t:e},a.min=function(t,e){return t.cmp(e)&lt;0?t:e},a.prototype._init=function(t,e,r){if(&quot;number&quot;==typeof t)return this._initNumber(t,e,r);if(&quot;object&quot;==typeof t)return this._initArray(t,e,r);&quot;hex&quot;===e&amp;&amp;(e=16),n(e===(0|e)&amp;&amp;e&gt;=2&amp;&amp;e&lt;=36);var i=0;&quot;-&quot;===(t=t.toString().replace(/\s+/g,&quot;&quot;))[0]&amp;&amp;i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),&quot;-&quot;===t[0]&amp;&amp;(this.negative=1),this.strip(),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t&lt;0&amp;&amp;(this.negative=1,t=-t),t&lt;67108864?(this.words=[67108863&amp;t],this.length=1):t&lt;4503599627370496?(this.words=[67108863&amp;t,t/67108864&amp;67108863],this.length=2):(n(t&lt;9007199254740992),this.words=[67108863&amp;t,t/67108864&amp;67108863,1],this.length=3),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(&quot;number&quot;==typeof t.length),t.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i&lt;this.length;i++)this.words[i]=0;var a,o,s=0;if(&quot;be&quot;===r)for(i=t.length-1,a=0;i&gt;=0;i-=3)o=t[i]|t[i-1]&lt;&lt;8|t[i-2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);else if(&quot;le&quot;===r)for(i=0,a=0;i&lt;t.length;i+=3)o=t[i]|t[i+1]&lt;&lt;8|t[i+2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r&lt;this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r&gt;=e;r-=6)i=s(t,r,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303,(a+=24)&gt;=26&amp;&amp;(a-=26,n++);r+6!==e&amp;&amp;(i=s(t,e,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i&lt;=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u&lt;s;u+=n)c=l(t,u,u+n,e),this.imuln(i),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=l(t,u,t.length,e),u=0;u&lt;o;u++)f*=e;this.imuln(f),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e&lt;this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length&lt;t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length&gt;1&amp;&amp;0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&amp;&amp;0===this.words[0]&amp;&amp;(this.negative=0),this},a.prototype.inspect=function(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;};var c=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&amp;o,l=o/67108864|0;r.words[0]=s;for(var c=1;c&lt;n;c++){for(var u=l&gt;&gt;&gt;26,f=67108863&amp;l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p&lt;=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&amp;o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||&quot;hex&quot;===t){r=&quot;&quot;;for(var i=0,a=0,o=0;o&lt;this.length;o++){var s=this.words[o],l=(16777215&amp;(s&lt;&lt;i|a)).toString(16);r=0!==(a=s&gt;&gt;&gt;24-i&amp;16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)&gt;=26&amp;&amp;(i-=26,o--)}for(0!==a&amp;&amp;(r=a.toString(16)+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}if(t===(0|t)&amp;&amp;t&gt;=2&amp;&amp;t&lt;=36){var h=u[t],p=f[t];r=&quot;&quot;;var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?g+r:c[h-g.length]+g+r}for(this.isZero()&amp;&amp;(r=&quot;0&quot;+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}n(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&amp;&amp;1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;n(!1,&quot;Number can only safely store up to 53 bits&quot;),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i&lt;=a,&quot;byte array longer than desired length&quot;),n(a&gt;0,&quot;Requested array length &lt;= 0&quot;),this.strip();var o,s,l=&quot;le&quot;===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s&lt;a;s++)c[s]=0}else{for(s=0;s&lt;a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e&gt;=4096&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),e&gt;=64&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),e&gt;=8&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),e&gt;=2&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&amp;e)&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),0==(127&amp;e)&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),0==(15&amp;e)&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),0==(3&amp;e)&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),0==(1&amp;e)&amp;&amp;r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e&lt;this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length&lt;t.length;)this.words[this.length++]=0;for(var e=0;e&lt;t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length&gt;t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length&gt;t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length&gt;t.length?t:this;for(var r=0;r&lt;e.length;r++)this.words[r]=this.words[r]&amp;t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length&gt;t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length&gt;t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length&gt;t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n&lt;r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n&lt;e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length&gt;t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length&gt;t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r&gt;0&amp;&amp;e--;for(var i=0;i&lt;e;i++)this.words[i]=67108863&amp;~this.words[i];return r&gt;0&amp;&amp;(this.words[i]=~this.words[i]&amp;67108863&gt;&gt;26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1&lt;&lt;i:this.words[r]&amp;~(1&lt;&lt;i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&amp;&amp;0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&amp;&amp;0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length&gt;t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a&lt;n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;for(;0!==i&amp;&amp;a&lt;r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a&lt;r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&amp;&amp;0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&amp;&amp;0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length&gt;t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i&gt;0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o&lt;n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;for(;0!==a&amp;&amp;o&lt;r.length;o++)a=(e=(0|r.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;if(0===a&amp;&amp;o&lt;r.length&amp;&amp;r!==this)for(;o&lt;r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&amp;&amp;(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&amp;u,h=u&gt;&gt;&gt;13,p=0|o[1],d=8191&amp;p,g=p&gt;&gt;&gt;13,m=0|o[2],v=8191&amp;m,y=m&gt;&gt;&gt;13,x=0|o[3],b=8191&amp;x,_=x&gt;&gt;&gt;13,w=0|o[4],T=8191&amp;w,k=w&gt;&gt;&gt;13,A=0|o[5],M=8191&amp;A,S=A&gt;&gt;&gt;13,E=0|o[6],L=8191&amp;E,C=E&gt;&gt;&gt;13,P=0|o[7],I=8191&amp;P,O=P&gt;&gt;&gt;13,z=0|o[8],D=8191&amp;z,R=z&gt;&gt;&gt;13,F=0|o[9],B=8191&amp;F,N=F&gt;&gt;&gt;13,j=0|s[0],U=8191&amp;j,V=j&gt;&gt;&gt;13,q=0|s[1],H=8191&amp;q,G=q&gt;&gt;&gt;13,Y=0|s[2],W=8191&amp;Y,X=Y&gt;&gt;&gt;13,Z=0|s[3],J=8191&amp;Z,K=Z&gt;&gt;&gt;13,Q=0|s[4],$=8191&amp;Q,tt=Q&gt;&gt;&gt;13,et=0|s[5],rt=8191&amp;et,nt=et&gt;&gt;&gt;13,it=0|s[6],at=8191&amp;it,ot=it&gt;&gt;&gt;13,st=0|s[7],lt=8191&amp;st,ct=st&gt;&gt;&gt;13,ut=0|s[8],ft=8191&amp;ut,ht=ut&gt;&gt;&gt;13,pt=0|s[9],dt=8191&amp;pt,gt=pt&gt;&gt;&gt;13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,U))|0)+((8191&amp;(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))&lt;&lt;13)|0;c=((a=Math.imul(h,V))+(i&gt;&gt;&gt;13)|0)+(mt&gt;&gt;&gt;26)|0,mt&amp;=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(g,U)|0,a=Math.imul(g,V);var vt=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,H)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,G)|0)+(i&gt;&gt;&gt;13)|0)+(vt&gt;&gt;&gt;26)|0,vt&amp;=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,W)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,X)|0)+(i&gt;&gt;&gt;13)|0)+(yt&gt;&gt;&gt;26)|0,yt&amp;=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(g,W)|0,a=a+Math.imul(g,X)|0;var xt=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,J)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,K)|0)+(i&gt;&gt;&gt;13)|0)+(xt&gt;&gt;&gt;26)|0,xt&amp;=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,K)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,tt)|0)+(i&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,nt)|0)+(i&gt;&gt;&gt;13)|0)+(_t&gt;&gt;&gt;26)|0,_t&amp;=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,V))+Math.imul(C,U)|0,a=Math.imul(C,V),n=n+Math.imul(M,H)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ot)|0)+(i&gt;&gt;&gt;13)|0)+(wt&gt;&gt;&gt;26)|0,wt&amp;=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,V))+Math.imul(O,U)|0,a=Math.imul(O,V),n=n+Math.imul(L,H)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var Tt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ct)|0)+(i&gt;&gt;&gt;13)|0)+(Tt&gt;&gt;&gt;26)|0,Tt&amp;=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,G)|0,n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var kt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ht)|0)+(i&gt;&gt;&gt;13)|0)+(kt&gt;&gt;&gt;26)|0,kt&amp;=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,K)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,ht)|0;var At=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,gt)|0)+Math.imul(h,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,gt)|0)+(i&gt;&gt;&gt;13)|0)+(At&gt;&gt;&gt;26)|0,At&amp;=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,K)|0,n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(C,$)|0,a=a+Math.imul(C,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var Mt=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(g,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Mt&gt;&gt;&gt;26)|0,Mt&amp;=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,X))+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,tt)|0,n=n+Math.imul(L,rt)|0,i=(i=i+Math.imul(L,nt)|0)+Math.imul(C,rt)|0,a=a+Math.imul(C,nt)|0,n=n+Math.imul(M,at)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(v,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(v,gt)|0)+Math.imul(y,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(y,gt)|0)+(i&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,K))+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(O,rt)|0,a=a+Math.imul(O,nt)|0,n=n+Math.imul(L,at)|0,i=(i=i+Math.imul(L,ot)|0)+Math.imul(C,at)|0,a=a+Math.imul(C,ot)|0,n=n+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(b,gt)|0)+Math.imul(_,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(_,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Et&gt;&gt;&gt;26)|0,Et&amp;=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(I,at)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(O,at)|0,a=a+Math.imul(O,ot)|0,n=n+Math.imul(L,lt)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(C,lt)|0,a=a+Math.imul(C,ct)|0,n=n+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Lt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(T,gt)|0)+Math.imul(k,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(k,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Lt&gt;&gt;&gt;26)|0,Lt&amp;=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(O,lt)|0,a=a+Math.imul(O,ct)|0,n=n+Math.imul(L,ft)|0,i=(i=i+Math.imul(L,ht)|0)+Math.imul(C,ft)|0,a=a+Math.imul(C,ht)|0;var Ct=(c+(n=n+Math.imul(M,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(M,gt)|0)+Math.imul(S,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(S,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Ct&gt;&gt;&gt;26)|0,Ct&amp;=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,ht)|0)+Math.imul(O,ft)|0,a=a+Math.imul(O,ht)|0;var Pt=(c+(n=n+Math.imul(L,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(L,gt)|0)+Math.imul(C,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(C,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Pt&gt;&gt;&gt;26)|0,Pt&amp;=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var It=(c+(n=n+Math.imul(I,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(I,gt)|0)+Math.imul(O,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(O,gt)|0)+(i&gt;&gt;&gt;13)|0)+(It&gt;&gt;&gt;26)|0,It&amp;=67108863,n=Math.imul(B,ft),i=(i=Math.imul(B,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var Ot=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(D,gt)|0)+Math.imul(R,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(R,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Ot&gt;&gt;&gt;26)|0,Ot&amp;=67108863;var zt=(c+(n=Math.imul(B,dt))|0)+((8191&amp;(i=(i=Math.imul(B,gt))+Math.imul(N,dt)|0))&lt;&lt;13)|0;return c=((a=Math.imul(N,gt))+(i&gt;&gt;&gt;13)|0)+(zt&gt;&gt;&gt;26)|0,zt&amp;=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=At,l[10]=Mt,l[11]=St,l[12]=Et,l[13]=Lt,l[14]=Ct,l[15]=Pt,l[16]=It,l[17]=Ot,l[18]=zt,0!==c&amp;&amp;(l[19]=c,r.length++),r};function d(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&amp;&amp;10===t.length?p(this,t,e):r&lt;63?h(this,t,e):r&lt;1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a&lt;r.length-1;a++){var o=i;i=0;for(var s=67108863&amp;n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c&lt;=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&amp;f;s=67108863&amp;(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,o&amp;=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):d(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n&lt;t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i&lt;e;i++)n|=(1&amp;t)&lt;&lt;e-i-1,t&gt;&gt;=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o&lt;a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o&lt;i;o&lt;&lt;=1)for(var s=o&lt;&lt;1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u&lt;i;u+=s)for(var f=l,h=c,p=0;p&lt;o;p++){var d=r[u+p],g=n[u+p],m=r[u+p+o],v=n[u+p+o],y=f*m-h*v;v=f*v+h*m,m=y,r[u+p]=d+m,n[u+p]=g+v,r[u+p+o]=d-m,n[u+p+o]=g-v,p!==s&amp;&amp;(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&amp;r,i=0;for(r=r/2|0;r;r&gt;&gt;&gt;=1)i++;return 1&lt;&lt;i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r&lt;=1))for(var n=0;n&lt;r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n&lt;e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&amp;i,r=i&lt;67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o&lt;e;o++)a+=0|t[o],r[2*o]=8191&amp;a,a&gt;&gt;&gt;=13,r[2*o+1]=8191&amp;a,a&gt;&gt;&gt;=13;for(o=2*e;o&lt;i;++o)r[o]=0;n(0===a),n(0==(-8192&amp;a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p&lt;n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),d(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(&quot;number&quot;==typeof t),n(t&lt;67108864);for(var e=0,r=0;r&lt;this.length;r++){var i=(0|this.words[r])*t,a=(67108863&amp;i)+(67108863&amp;e);e&gt;&gt;=26,e+=i/67108864|0,e+=a&gt;&gt;&gt;26,this.words[r]=67108863&amp;a}return 0!==e&amp;&amp;(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r&lt;e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&amp;1&lt;&lt;i)&gt;&gt;&gt;i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n&lt;e.length&amp;&amp;0===e[n];n++,r=r.sqr());if(++n&lt;e.length)for(var i=r.sqr();n&lt;e.length;n++,i=i.sqr())0!==e[n]&amp;&amp;(r=r.mul(i));return r},a.prototype.iushln=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e,r=t%26,i=(t-r)/26,a=67108863&gt;&gt;&gt;26-r&lt;&lt;26-r;if(0!==r){var o=0;for(e=0;e&lt;this.length;e++){var s=this.words[e]&amp;a,l=(0|this.words[e])-s&lt;&lt;r;this.words[e]=l|o,o=s&gt;&gt;&gt;26-r}o&amp;&amp;(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e&gt;=0;e--)this.words[e+i]=this.words[e];for(e=0;e&lt;i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863&gt;&gt;&gt;a&lt;&lt;a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c&lt;o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length&gt;o)for(this.length-=o,c=0;c&lt;this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c&gt;=0&amp;&amp;(0!==u||c&gt;=i);c--){var f=0|this.words[c];this.words[c]=u&lt;&lt;26-a|f&gt;&gt;&gt;a,u=f&amp;s}return l&amp;&amp;0!==u&amp;&amp;(l.words[l.length++]=u),0===this.length&amp;&amp;(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;return!(this.length&lt;=r)&amp;&amp;!!(this.words[r]&amp;i)},a.prototype.imaskn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=r)return this;if(0!==e&amp;&amp;r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863&gt;&gt;&gt;e&lt;&lt;e;this.words[this.length-1]&amp;=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0?this.isubn(-t):0!==this.negative?1===this.length&amp;&amp;(0|this.words[0])&lt;t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&gt;=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&lt;0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i&lt;t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&amp;l)&gt;&gt;26)-(l/67108864|0),this.words[i+r]=67108863&amp;a}for(;i&lt;this.length-r;i++)s=(a=(0|this.words[i+r])+s)&gt;&gt;26,this.words[i+r]=67108863&amp;a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i&lt;this.length;i++)s=(a=-(0|this.words[i])+s)&gt;&gt;26,this.words[i]=67108863&amp;a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&amp;&amp;(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(&quot;mod&quot;!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c&lt;s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&amp;&amp;(n=u,s&amp;&amp;(s.words[l]=1));for(var f=l-1;f&gt;=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&amp;&amp;(s.words[f]=h)}return s&amp;&amp;s.strip(),n.strip(),&quot;div&quot;!==e&amp;&amp;0!==r&amp;&amp;n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&amp;&amp;0===t.negative?(s=this.neg().divmod(t,e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.iadd(t)),{div:i,mod:o}):0===this.negative&amp;&amp;0!==t.negative?(s=this.divmod(t.neg(),e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&amp;t.negative)?(s=this.neg().divmod(t.neg(),e),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.isub(t)),{div:s.div,mod:o}):t.length&gt;this.length||this.cmp(t)&lt;0?{div:new a(0),mod:this}:1===t.length?&quot;div&quot;===e?{div:this.divn(t.words[0]),mod:null}:&quot;mod&quot;===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,&quot;div&quot;,!1).div},a.prototype.mod=function(t){return this.divmod(t,&quot;mod&quot;,!1).mod},a.prototype.umod=function(t){return this.divmod(t,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a&lt;0||1===i&amp;&amp;0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t&lt;=67108863);for(var e=(1&lt;&lt;26)%t,r=0,i=this.length-1;i&gt;=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t&lt;=67108863);for(var e=0,r=this.length-1;r&gt;=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&amp;&amp;r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&amp;p)&amp;&amp;h&lt;26;++h,p&lt;&lt;=1);if(h&gt;0)for(e.iushrn(h);h-- &gt;0;)(i.isOdd()||o.isOdd())&amp;&amp;(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,g=1;0==(r.words[0]&amp;g)&amp;&amp;d&lt;26;++d,g&lt;&lt;=1);if(d&gt;0)for(r.iushrn(d);d-- &gt;0;)(s.isOdd()||l.isOdd())&amp;&amp;(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)&gt;0&amp;&amp;r.cmpn(1)&gt;0;){for(var c=0,u=1;0==(e.words[0]&amp;u)&amp;&amp;c&lt;26;++c,u&lt;&lt;=1);if(c&gt;0)for(e.iushrn(c);c-- &gt;0;)o.isOdd()&amp;&amp;o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&amp;h)&amp;&amp;f&lt;26;++f,h&lt;&lt;=1);if(f&gt;0)for(r.iushrn(f);f-- &gt;0;)s.isOdd()&amp;&amp;s.iadd(l),s.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)&lt;0&amp;&amp;i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&amp;&amp;r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i&lt;0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&amp;this.words[0])},a.prototype.isOdd=function(){return 1==(1&amp;this.words[0])},a.prototype.andln=function(t){return this.words[0]&amp;t},a.prototype.bincn=function(t){n(&quot;number&quot;==typeof t);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;if(this.length&lt;=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&amp;&amp;o&lt;this.length;o++){var s=0|this.words[o];a=(s+=a)&gt;&gt;&gt;26,s&amp;=67108863,this.words[o]=s}return 0!==a&amp;&amp;(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&amp;&amp;0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t&lt;0;if(0!==this.negative&amp;&amp;!r)return-1;if(0===this.negative&amp;&amp;r)return 1;if(this.strip(),this.length&gt;1)e=1;else{r&amp;&amp;(t=-t),n(t&lt;=67108863,&quot;Number is too big&quot;);var i=0|this.words[0];e=i===t?0:i&lt;t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&amp;&amp;0===t.negative)return-1;if(0===this.negative&amp;&amp;0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length&gt;t.length)return 1;if(this.length&lt;t.length)return-1;for(var e=0,r=this.length-1;r&gt;=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n&lt;i?e=-1:n&gt;i&amp;&amp;(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)&gt;=0},a.prototype.gte=function(t){return this.cmp(t)&gt;=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)&lt;=0},a.prototype.lte=function(t){return this.cmp(t)&lt;=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new w(t)},a.prototype.toRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),n(0===this.negative,&quot;red works only with positives&quot;),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&amp;&amp;!t.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function x(){v.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function b(){v.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function _(){v.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function w(t){if(&quot;string&quot;==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=t,this.prime=null}function T(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e&gt;this.n);var n=e&lt;this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n&gt;0?r.isub(this.p):r.strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(y,v),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n&lt;r;n++)e.words[n]=t.words[n];if(e.length=r,t.length&lt;=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&amp;i,n=10;n&lt;t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&amp;a)&lt;&lt;4|i&gt;&gt;&gt;22,i=a}i&gt;&gt;&gt;=22,t.words[n-10]=i,0===i&amp;&amp;t.length&gt;10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r&lt;t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&amp;e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&amp;&amp;(t.length--,0===t.words[t.length-1]&amp;&amp;t.length--),t},i(x,v),i(b,v),i(_,v),_.prototype.imulK=function(t){for(var e=0,r=0;r&lt;t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&amp;n;n&gt;&gt;&gt;=26,t.words[r]=i,e=n}return 0!==e&amp;&amp;(t.words[t.length++]=e),t},a._prime=function(t){if(m[t])return m[t];var e;if(&quot;k256&quot;===t)e=new y;else if(&quot;p224&quot;===t)e=new x;else if(&quot;p192&quot;===t)e=new b;else{if(&quot;p25519&quot;!==t)throw new Error(&quot;Unknown prime &quot;+t);e=new _}return m[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,&quot;red works only with positives&quot;),n(t.red,&quot;red works only with red numbers&quot;)},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),&quot;red works only with positives&quot;),n(t.red&amp;&amp;t.red===e.red,&quot;red works only with red numbers&quot;)},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r},w.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&amp;&amp;0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var g=p,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m&lt;d);var v=this.pow(f,new a(1).iushln(d-m-1));h=h.redMul(v),f=v.redSqr(),p=p.redMul(f),d=m}return h},w.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n&lt;r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&amp;&amp;(l=26),n=e.length-1;n&gt;=0;n--){for(var c=e.words[n],u=l-1;u&gt;=0;u--){var f=c&gt;&gt;u&amp;1;i!==r[0]&amp;&amp;(i=this.sqr(i)),0!==f||0!==o?(o&lt;&lt;=1,o|=f,(4===++s||0===n&amp;&amp;0===u)&amp;&amp;(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new T(t)},i(T,w),T.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},T.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},T.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)&gt;=0?a=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)&gt;=0?o=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:115}],107:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e&lt;i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e&lt;i;++e){var l=t[e],c=l.length;for(r=0;r&lt;c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n&lt;c;++n)n!==r&amp;&amp;(u[f++]=l[n]);if(1&amp;r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],108:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 1:return f(t);case 2:return&quot;function&quot;==typeof e?c(t,t,e,!0):h(t,e);case 3:return c(t,e,r,!1);default:throw new Error(&quot;box-intersect: Invalid arguments&quot;)}};var n,i=t(&quot;typedarray-pool&quot;),a=t(&quot;./lib/sweep&quot;),o=t(&quot;./lib/intersect&quot;);function s(t,e){for(var r=0;r&lt;t;++r)if(!(e[r]&lt;=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o&lt;l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u&lt;2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s&lt;=0||c&lt;=0)){var u=t[0].length&gt;&gt;&gt;1;if(!(u&lt;=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))&gt;0){if(1===u&amp;&amp;n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,d,g))&gt;0&amp;&amp;(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,g):o(u,r,n,s,h,p,c,d,g),i.free(d),i.free(g))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function h(t,e){return n=[],c(t,e,u,!1),n}},{&quot;./lib/intersect&quot;:110,&quot;./lib/sweep&quot;:114,&quot;typedarray-pool&quot;:617}],109:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;d&quot;,&quot;ax&quot;,&quot;vv&quot;,&quot;rs&quot;,&quot;re&quot;,&quot;rb&quot;,&quot;ri&quot;,&quot;bs&quot;,&quot;be&quot;,&quot;bb&quot;,&quot;bi&quot;];function i(t){var e=&quot;bruteForce&quot;+(t?&quot;Full&quot;:&quot;Partial&quot;),r=[],i=n.slice();t||i.splice(3,0,&quot;fp&quot;);var a=[&quot;function &quot;+e+&quot;(&quot;+i.join()+&quot;){&quot;];function o(e,i){var o=function(t,e,r){var i=&quot;bruteForce&quot;+(t?&quot;Red&quot;:&quot;Blue&quot;)+(e?&quot;Flip&quot;:&quot;&quot;)+(r?&quot;Full&quot;:&quot;&quot;),a=[&quot;function &quot;,i,&quot;(&quot;,n.join(),&quot;){&quot;,&quot;var &quot;,&quot;es&quot;,&quot;=2*&quot;,&quot;d&quot;,&quot;;&quot;],o=&quot;for(var i=rs,rp=es*rs;i&lt;re;++i,rp+=es){var x0=rb[ax+rp],x1=rb[ax+rp+d],xi=ri[i];&quot;,s=&quot;for(var j=bs,bp=es*bs;j&lt;be;++j,bp+=es){var y0=bb[ax+bp],&quot;+(r?&quot;y1=bb[ax+bp+d],&quot;:&quot;&quot;)+&quot;yi=bi[j];&quot;;return t?a.push(o,&quot;Q&quot;,&quot;:&quot;,s):a.push(s,&quot;Q&quot;,&quot;:&quot;,o),r?a.push(&quot;if(y1&lt;x0||x1&lt;y0)continue;&quot;):e?a.push(&quot;if(y0&lt;=x0||x1&lt;y0)continue;&quot;):a.push(&quot;if(y0&lt;x0||x1&lt;y0)continue;&quot;),a.push(&quot;for(var k=ax+1;k&lt;d;++k){var r0=rb[k+rp],r1=rb[k+d+rp],b0=bb[k+bp],b1=bb[k+d+bp];if(r1&lt;b0||b1&lt;r0)continue Q;}var rv=vv(&quot;),e?a.push(&quot;yi,xi&quot;):a.push(&quot;xi,yi&quot;),a.push(&quot;);if(rv!==void 0)return rv;}}}&quot;),{name:i,code:a.join(&quot;&quot;)}}(e,i,t);r.push(o.code),a.push(&quot;return &quot;+o.name+&quot;(&quot;+n.join()+&quot;);&quot;)}a.push(&quot;if(re-rs&gt;be-bs){&quot;),t?(o(!0,!1),a.push(&quot;}else{&quot;),o(!1,!1)):(a.push(&quot;if(fp){&quot;),o(!0,!0),a.push(&quot;}else{&quot;),o(!0,!1),a.push(&quot;}}else{if(fp){&quot;),o(!1,!0),a.push(&quot;}else{&quot;),o(!1,!1),a.push(&quot;}&quot;)),a.push(&quot;}}return &quot;+e);var s=r.join(&quot;&quot;)+a.join(&quot;&quot;);return new Function(s)()}r.partial=i(!1),r.full=i(!0)},{}],110:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,u,w,T,k,A){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(6*r);v.length&lt;a&amp;&amp;(n.free(v),v=n.mallocInt32(a));var o=i.nextPow2(2*r);y.length&lt;o&amp;&amp;(n.free(y),y=n.mallocDouble(o))}(t,a+T);var M,S=0,E=2*t;x(S++,0,0,a,0,T,r?16:0,-1/0,1/0),r||x(S++,0,0,T,0,a,1,-1/0,1/0);for(;S&gt;0;){var L=6*(S-=1),C=v[L],P=v[L+1],I=v[L+2],O=v[L+3],z=v[L+4],D=v[L+5],R=2*S,F=y[R],B=y[R+1],N=1&amp;D,j=!!(16&amp;D),U=u,V=w,q=k,H=A;if(N&amp;&amp;(U=k,V=A,q=u,H=w),!(2&amp;D&amp;&amp;(I=p(t,C,P,I,U,V,B),P&gt;=I)||4&amp;D&amp;&amp;(P=d(t,C,P,I,U,V,F))&gt;=I)){var G=I-P,Y=z-O;if(j){if(t*G*(G+Y)&lt;1&lt;&lt;22){if(void 0!==(M=l.scanComplete(t,C,e,P,I,U,V,O,z,q,H)))return M;continue}}else{if(t*Math.min(G,Y)&lt;128){if(void 0!==(M=o(t,C,e,N,P,I,U,V,O,z,q,H)))return M;continue}if(t*G*Y&lt;1&lt;&lt;22){if(void 0!==(M=l.scanBipartite(t,C,e,N,P,I,U,V,O,z,q,H)))return M;continue}}var W=f(t,C,P,I,U,V,F,B);if(P&lt;W)if(t*(W-P)&lt;128){if(void 0!==(M=s(t,C+1,e,P,W,U,V,O,z,q,H)))return M}else if(C===t-2){if(void 0!==(M=N?l.sweepBipartite(t,e,O,z,q,H,P,W,U,V):l.sweepBipartite(t,e,P,W,U,V,O,z,q,H)))return M}else x(S++,C+1,P,W,O,z,N,-1/0,1/0),x(S++,C+1,O,z,P,W,1^N,-1/0,1/0);if(W&lt;I){var X=c(t,C,O,z,q,H),Z=q[E*X+C],J=h(t,C,X,z,q,H,Z);if(J&lt;z&amp;&amp;x(S++,C,W,I,J,z,(4|N)+(j?16:0),Z,B),O&lt;X&amp;&amp;x(S++,C,W,I,O,X,(2|N)+(j?16:0),F,Z),X+1===J){if(void 0!==(M=j?_(t,C,e,W,I,U,V,X,q,H[X]):b(t,C,e,N,W,I,U,V,X,q,H[X])))return M}else if(X&lt;J){var K;if(j){if(K=g(t,C,W,I,U,V,Z),W&lt;K){var Q=h(t,C,W,K,U,V,Z);if(C===t-2){if(W&lt;Q&amp;&amp;void 0!==(M=l.sweepComplete(t,e,W,Q,U,V,X,J,q,H)))return M;if(Q&lt;K&amp;&amp;void 0!==(M=l.sweepBipartite(t,e,Q,K,U,V,X,J,q,H)))return M}else W&lt;Q&amp;&amp;x(S++,C+1,W,Q,X,J,16,-1/0,1/0),Q&lt;K&amp;&amp;(x(S++,C+1,Q,K,X,J,0,-1/0,1/0),x(S++,C+1,X,J,Q,K,1,-1/0,1/0))}}else K=N?m(t,C,W,I,U,V,Z):g(t,C,W,I,U,V,Z),W&lt;K&amp;&amp;(C===t-2?M=N?l.sweepBipartite(t,e,X,J,q,H,W,K,U,V):l.sweepBipartite(t,e,W,K,U,V,X,J,q,H):(x(S++,C+1,W,K,X,J,N,-1/0,1/0),x(S++,C+1,X,J,W,K,1^N,-1/0,1/0)))}}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./brute&quot;),o=a.partial,s=a.full,l=t(&quot;./sweep&quot;),c=t(&quot;./median&quot;),u=t(&quot;./partition&quot;),f=u(&quot;!(lo&gt;=p0)&amp;&amp;!(p1&gt;=hi)&quot;,[&quot;p0&quot;,&quot;p1&quot;]),h=u(&quot;lo===p0&quot;,[&quot;p0&quot;]),p=u(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]),d=u(&quot;hi&lt;=p0&quot;,[&quot;p0&quot;]),g=u(&quot;lo&lt;=p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),m=u(&quot;lo&lt;p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),v=n.mallocInt32(1024),y=n.mallocDouble(1024);function x(t,e,r,n,i,a,o,s,l){var c=6*t;v[c]=e,v[c+1]=r,v[c+2]=n,v[c+3]=i,v[c+4]=a,v[c+5]=o;var u=2*t;y[u]=s,y[u+1]=l}function b(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,g=i*f;d&lt;a;++d,g+=f){var m=o[g+e],v=o[g+e+t];if(!(p&lt;m||v&lt;p)&amp;&amp;(!n||p!==m)){for(var y,x=s[d],b=e+1;b&lt;t;++b){m=o[g+b],v=o[g+b+t];var _=c[h+b],w=c[h+b+t];if(v&lt;_||w&lt;m)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function _(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p&lt;i;++p,d+=u){var g=o[p];if(g!==c){var m=a[d+e],v=a[d+e+t];if(!(h&lt;m||v&lt;h)){for(var y=e+1;y&lt;t;++y){m=a[d+y],v=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(v&lt;x||b&lt;m)continue t}var _=r(g,c);if(void 0!==_)return _}}}}},{&quot;./brute&quot;:109,&quot;./median&quot;:111,&quot;./partition&quot;:112,&quot;./sweep&quot;:114,&quot;bit-twiddle&quot;:104,&quot;typedarray-pool&quot;:617}],111:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,o,s){if(a&lt;=r+1)return r;var l=r,c=a,u=a+r&gt;&gt;&gt;1,f=2*t,h=u,p=o[f*u+e];for(;l&lt;c;){if(c-l&lt;8){i(t,e,l,c,o,s),p=o[f*u+e];break}var d=c-l,g=Math.random()*d+l|0,m=o[f*g+e],v=Math.random()*d+l|0,y=o[f*v+e],x=Math.random()*d+l|0,b=o[f*x+e];m&lt;=y?b&gt;=y?(h=v,p=y):m&gt;=b?(h=g,p=m):(h=x,p=b):y&gt;=b?(h=v,p=y):b&gt;=m?(h=g,p=m):(h=x,p=b);for(var _=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){var k=o[_];o[_]=o[w],o[w]=k}var A=s[c-1];s[c-1]=s[h],s[h]=A,h=n(t,e,l,c-1,o,s,p);for(_=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){k=o[_];o[_]=o[w],o[w]=k}A=s[c-1];if(s[c-1]=s[h],s[h]=A,u&lt;h){for(c=h-1;l&lt;c&amp;&amp;o[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(h&lt;u))break;for(l=h+1;l&lt;c&amp;&amp;o[f*l+e]===p;)l+=1}}return n(t,e,r,u,o,s,o[f*u+e])};var n=t(&quot;./partition&quot;)(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]);function i(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l&lt;n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u&gt;r&amp;&amp;i[f+e]&gt;c;--u,f-=o){for(var h=f,p=f+o,d=0;d&lt;o;++d,++h,++p){var g=i[h];i[h]=i[p],i[p]=g}var m=a[u];a[u]=a[u-1],a[u-1]=m}}},{&quot;./partition&quot;:112}],112:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=&quot;abcdef&quot;.split(&quot;&quot;).concat(e),n=[];t.indexOf(&quot;lo&quot;)&gt;=0&amp;&amp;n.push(&quot;lo=e[k+n]&quot;);t.indexOf(&quot;hi&quot;)&gt;=0&amp;&amp;n.push(&quot;hi=e[k+o]&quot;);return r.push(&quot;for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d&gt;p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j&gt;s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m&quot;.replace(&quot;_&quot;,n.join()).replace(&quot;$&quot;,t)),Function.apply(void 0,r)}},{}],113:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e&lt;=128?n(0,e-1,t):function t(e,r,u){var f=(r-e+1)/6|0,h=e+f,p=r-f,d=e+r&gt;&gt;1,g=d-f,m=d+f,v=h,y=g,x=d,b=m,_=p,w=e+1,T=r-1,k=0;l(v,y,u)&amp;&amp;(k=v,v=y,y=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);l(v,x,u)&amp;&amp;(k=v,v=x,x=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(v,b,u)&amp;&amp;(k=v,v=b,b=k);l(x,b,u)&amp;&amp;(k=x,x=b,b=k);l(y,_,u)&amp;&amp;(k=y,y=_,_=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);for(var A=u[2*y],M=u[2*y+1],S=u[2*b],E=u[2*b+1],L=2*v,C=2*x,P=2*_,I=2*h,O=2*d,z=2*p,D=0;D&lt;2;++D){var R=u[L+D],F=u[C+D],B=u[P+D];u[I+D]=R,u[O+D]=F,u[z+D]=B}a(g,e,u),a(m,r,u);for(var N=w;N&lt;=T;++N)if(c(N,A,M,u))N!==w&amp;&amp;i(N,w,u),++w;else if(!c(N,S,E,u))for(;;){if(c(T,S,E,u)){c(T,A,M,u)?(o(N,w,T,u),++w,--T):(i(N,T,u),--T);break}if(--T&lt;N)break}s(e,w-1,A,M,u),s(r,T+1,S,E,u),w-2-e&lt;=32?n(e,w-2,u):t(e,w-2,u);r-(T+2)&lt;=32?n(T+2,r,u):t(T+2,r,u);T-w&lt;=32?n(w,T,u):t(w,T,u)}(0,e-1,t)};function n(t,e,r){for(var n=2*(t+1),i=t+1;i&lt;=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- &gt;t;){var c=r[l-2],u=r[l-1];if(c&lt;a)break;if(c===a&amp;&amp;u&lt;o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function i(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function a(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function o(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function s(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function l(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n&lt;i)&amp;&amp;(n!==i||r[t+1]&gt;r[e+1])}function c(t,e,r,n){var i=n[t*=2];return i&lt;e||i===e&amp;&amp;n[t+1]&lt;r}},{}],114:[function(t,e,r){&quot;use strict&quot;;e.exports={init:function(t){var e=i.nextPow2(t);o.length&lt;e&amp;&amp;(n.free(o),o=n.mallocInt32(e));s.length&lt;e&amp;&amp;(n.free(s),s=n.mallocInt32(e));l.length&lt;e&amp;&amp;(n.free(l),l=n.mallocInt32(e));c.length&lt;e&amp;&amp;(n.free(c),c=n.mallocInt32(e));u.length&lt;e&amp;&amp;(n.free(u),u=n.mallocInt32(e));f.length&lt;e&amp;&amp;(n.free(f),f=n.mallocInt32(e));var r=8*e;h.length&lt;r&amp;&amp;(n.free(h),h=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,u,f,g,m,v){for(var y=0,x=2*t,b=t-1,_=x-1,w=r;w&lt;n;++w){var T=u[w],k=x*w;h[y++]=i[k+b],h[y++]=-(T+1),h[y++]=i[k+_],h[y++]=T}for(w=f;w&lt;g;++w){T=v[w]+(1&lt;&lt;28);var A=x*w;h[y++]=m[A+b],h[y++]=-T,h[y++]=m[A+_],h[y++]=T}var M=y&gt;&gt;&gt;1;a(h,M);var S=0,E=0;for(w=0;w&lt;M;++w){var L=0|h[2*w+1];if(L&gt;=1&lt;&lt;28)p(l,c,E--,L=L-(1&lt;&lt;28)|0);else if(L&gt;=0)p(o,s,S--,L);else if(L&lt;=-(1&lt;&lt;28)){L=-L-(1&lt;&lt;28)|0;for(var C=0;C&lt;S;++C){if(void 0!==(P=e(o[C],L)))return P}d(l,c,E++,L)}else{L=-L-1|0;for(C=0;C&lt;E;++C){var P;if(void 0!==(P=e(L,l[C])))return P}d(o,s,S++,L)}}},sweepComplete:function(t,e,r,n,i,g,m,v,y,x){for(var b=0,_=2*t,w=t-1,T=_-1,k=r;k&lt;n;++k){var A=g[k]+1&lt;&lt;1,M=_*k;h[b++]=i[M+w],h[b++]=-A,h[b++]=i[M+T],h[b++]=A}for(k=m;k&lt;v;++k){A=x[k]+1&lt;&lt;1;var S=_*k;h[b++]=y[S+w],h[b++]=1|-A,h[b++]=y[S+T],h[b++]=1|A}var E=b&gt;&gt;&gt;1;a(h,E);var L=0,C=0,P=0;for(k=0;k&lt;E;++k){var I=0|h[2*k+1],O=1&amp;I;if(k&lt;E-1&amp;&amp;I&gt;&gt;1==h[2*k+3]&gt;&gt;1&amp;&amp;(O=2,k+=1),I&lt;0){for(var z=-(I&gt;&gt;1)-1,D=0;D&lt;P;++D){if(void 0!==(R=e(u[D],z)))return R}if(0!==O)for(D=0;D&lt;L;++D){if(void 0!==(R=e(o[D],z)))return R}if(1!==O)for(D=0;D&lt;C;++D){var R;if(void 0!==(R=e(l[D],z)))return R}0===O?d(o,s,L++,z):1===O?d(l,c,C++,z):2===O&amp;&amp;d(u,f,P++,z)}else{z=(I&gt;&gt;1)-1;0===O?p(o,s,L--,z):1===O?p(l,c,C--,z):2===O&amp;&amp;p(u,f,P--,z)}}},scanBipartite:function(t,e,r,n,i,l,c,u,f,g,m,v){var y=0,x=2*t,b=e,_=e+t,w=1,T=1;n?T=1&lt;&lt;28:w=1&lt;&lt;28;for(var k=i;k&lt;l;++k){var A=k+w,M=x*k;h[y++]=c[M+b],h[y++]=-A,h[y++]=c[M+_],h[y++]=A}for(k=f;k&lt;g;++k){A=k+T;var S=x*k;h[y++]=m[S+b],h[y++]=-A}var E=y&gt;&gt;&gt;1;a(h,E);var L=0;for(k=0;k&lt;E;++k){var C=0|h[2*k+1];if(C&lt;0){var P=!1;if((A=-C)&gt;=1&lt;&lt;28?(P=!n,A-=1&lt;&lt;28):(P=!!n,A-=1),P)d(o,s,L++,A);else{var I=v[A],O=x*A,z=m[O+e+1],D=m[O+e+1+t];t:for(var R=0;R&lt;L;++R){var F=o[R],B=x*F;if(!(D&lt;c[B+e+1]||c[B+e+1+t]&lt;z)){for(var N=e+2;N&lt;t;++N)if(m[O+N+t]&lt;c[B+N]||c[B+N+t]&lt;m[O+N])continue t;var j,U=u[F];if(void 0!==(j=n?r(I,U):r(U,I)))return j}}}}else p(o,s,L--,C-w)}},scanComplete:function(t,e,r,n,i,s,l,c,u,f,p){for(var d=0,g=2*t,m=e,v=e+t,y=n;y&lt;i;++y){var x=y+(1&lt;&lt;28),b=g*y;h[d++]=s[b+m],h[d++]=-x,h[d++]=s[b+v],h[d++]=x}for(y=c;y&lt;u;++y){x=y+1;var _=g*y;h[d++]=f[_+m],h[d++]=-x}var w=d&gt;&gt;&gt;1;a(h,w);var T=0;for(y=0;y&lt;w;++y){var k=0|h[2*y+1];if(k&lt;0){if((x=-k)&gt;=1&lt;&lt;28)o[T++]=x-(1&lt;&lt;28);else{var A=p[x-=1],M=g*x,S=f[M+e+1],E=f[M+e+1+t];t:for(var L=0;L&lt;T;++L){var C=o[L],P=l[C];if(P===A)break;var I=g*C;if(!(E&lt;s[I+e+1]||s[I+e+1+t]&lt;S)){for(var O=e+2;O&lt;t;++O)if(f[M+O+t]&lt;s[I+O]||s[I+O+t]&lt;f[M+O])continue t;var z=r(P,A);if(void 0!==z)return z}}}}else{for(x=k-(1&lt;&lt;28),L=T-1;L&gt;=0;--L)if(o[L]===x){for(O=L+1;O&lt;T;++O)o[O-1]=o[O];break}--T}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./sort&quot;),o=n.mallocInt32(1024),s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocDouble(8192);function p(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function d(t,e,r,n){t[r]=n,e[n]=r}},{&quot;./sort&quot;:113,&quot;bit-twiddle&quot;:104,&quot;typedarray-pool&quot;:617}],115:[function(t,e,r){},{}],116:[function(t,e,r){&quot;use strict&quot;;var n,i=&quot;object&quot;==typeof Reflect?Reflect:null,a=i&amp;&amp;&quot;function&quot;==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&amp;&amp;&quot;function&quot;==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(){void 0!==a&amp;&amp;t.removeListener(&quot;error&quot;,a),r([].slice.call(arguments))}var a;&quot;error&quot;!==e&amp;&amp;(a=function(r){t.removeListener(e,i),n(r)},t.once(&quot;error&quot;,a)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){if(&quot;function&quot;!=typeof t)throw new TypeError('The &quot;listener&quot; argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,a,o,s;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&amp;&amp;(t.emit(&quot;newListener&quot;,e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(&quot;function&quot;==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))&gt;0&amp;&amp;o.length&gt;i&amp;&amp;!o.warned){o.warned=!0;var l=new Error(&quot;Possible EventEmitter memory leak detected. &quot;+o.length+&quot; &quot;+String(e)+&quot; listeners added. Use emitter.setMaxListeners() to increase limit&quot;);l.name=&quot;MaxListenersExceededWarning&quot;,l.emitter=t,l.type=e,l.count=o.length,s=l,console&amp;&amp;console.warn&amp;&amp;console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:&quot;function&quot;==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r&lt;e.length;++r)e[r]=t[r].listener||t[r];return e}(i):m(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var r=e[t];if(&quot;function&quot;==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n];return r}Object.defineProperty(s,&quot;defaultMaxListeners&quot;,{enumerable:!0,get:function(){return l},set:function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;defaultMaxListeners&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);l=t}}),s.init=function(){void 0!==this._events&amp;&amp;this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;n&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(t){for(var e=[],r=1;r&lt;arguments.length;r++)e.push(arguments[r]);var n=&quot;error&quot;===t,i=this._events;if(void 0!==i)n=n&amp;&amp;void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length&gt;0&amp;&amp;(o=e[0]),o instanceof Error)throw o;var s=new Error(&quot;Unhandled error.&quot;+(o?&quot; (&quot;+o.message+&quot;)&quot;:&quot;&quot;));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if(&quot;function&quot;==typeof l)a(l,this,e);else{var c=l.length,u=m(l,c);for(r=0;r&lt;c;++r)a(u[r],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,r.listener||e));else if(&quot;function&quot;!=typeof r){for(i=-1,a=r.length-1;a&gt;=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i&lt;0)return this;0===i?r.shift():function(t,e){for(;e+1&lt;t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&amp;&amp;(n[t]=r[0]),void 0!==n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,o||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&amp;&amp;(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n&lt;a.length;++n)&quot;removeListener&quot;!==(i=a[n])&amp;&amp;this.removeAllListeners(i);return this.removeAllListeners(&quot;removeListener&quot;),this._events=Object.create(null),this._eventsCount=0,this}if(&quot;function&quot;==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n&gt;=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return&quot;function&quot;==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount&gt;0?n(this._events):[]}},{}],117:[function(t,e,r){(function(e){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
&quot;use strict&quot;;var e=t(&quot;base64-js&quot;),n=t(&quot;ieee754&quot;);r.Buffer=a,r.SlowBuffer=function(t){+t!=t&amp;&amp;(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t&gt;2147483647)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if(&quot;number&quot;==typeof t){if(&quot;string&quot;==typeof e)throw new TypeError('The &quot;string&quot; argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if(&quot;string&quot;==typeof t)return function(t,e){&quot;string&quot;==typeof e&amp;&amp;&quot;&quot;!==e||(e=&quot;utf8&quot;);if(!a.isEncoding(e))throw new TypeError(&quot;Unknown encoding: &quot;+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&amp;&amp;(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t);if(B(t,ArrayBuffer)||t&amp;&amp;B(t.buffer,ArrayBuffer))return function(t,e,r){if(e&lt;0||t.byteLength&lt;e)throw new RangeError('&quot;offset&quot; is outside of buffer bounds');if(t.byteLength&lt;e+(r||0))throw new RangeError('&quot;length&quot; is outside of buffer bounds');var n;n=void 0===e&amp;&amp;void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=a.prototype,n}(t,e,r);if(&quot;number&quot;==typeof t)throw new TypeError('The &quot;value&quot; argument must not be of type number. Received type number');var n=t.valueOf&amp;&amp;t.valueOf();if(null!=n&amp;&amp;n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|u(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return&quot;number&quot;!=typeof t.length||N(t.length)?i(0):c(t);if(&quot;Buffer&quot;===t.type&amp;&amp;Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.toPrimitive&amp;&amp;&quot;function&quot;==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive](&quot;string&quot;),e,r);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t)}function s(t){if(&quot;number&quot;!=typeof t)throw new TypeError('&quot;size&quot; argument must be of type number');if(t&lt;0)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;')}function l(t){return s(t),i(t&lt;0?0:0|u(t))}function c(t){for(var e=t.length&lt;0?0:0|u(t.length),r=i(e),n=0;n&lt;e;n+=1)r[n]=255&amp;t[n];return r}function u(t){if(t&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x&quot;+2147483647..toString(16)+&quot; bytes&quot;);return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(&quot;string&quot;!=typeof t)throw new TypeError('The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length&gt;2&amp;&amp;!0===arguments[2];if(!n&amp;&amp;0===r)return 0;for(var i=!1;;)switch(e){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return r;case&quot;utf8&quot;:case&quot;utf-8&quot;:return D(t).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*r;case&quot;hex&quot;:return r&gt;&gt;&gt;1;case&quot;base64&quot;:return R(t).length;default:if(i)return n?-1:D(t).length;e=(&quot;&quot;+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e&lt;0)&amp;&amp;(e=0),e&gt;this.length)return&quot;&quot;;if((void 0===r||r&gt;this.length)&amp;&amp;(r=this.length),r&lt;=0)return&quot;&quot;;if((r&gt;&gt;&gt;=0)&lt;=(e&gt;&gt;&gt;=0))return&quot;&quot;;for(t||(t=&quot;utf8&quot;);;)switch(t){case&quot;hex&quot;:return M(this,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return T(this,e,r);case&quot;ascii&quot;:return k(this,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return A(this,e,r);case&quot;base64&quot;:return w(this,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return S(this,e,r);default:if(n)throw new TypeError(&quot;Unknown encoding: &quot;+t);t=(t+&quot;&quot;).toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if(&quot;string&quot;==typeof r?(n=r,r=0):r&gt;2147483647?r=2147483647:r&lt;-2147483648&amp;&amp;(r=-2147483648),N(r=+r)&amp;&amp;(r=i?0:t.length-1),r&lt;0&amp;&amp;(r=t.length+r),r&gt;=t.length){if(i)return-1;r=t.length-1}else if(r&lt;0){if(!i)return-1;r=0}if(&quot;string&quot;==typeof e&amp;&amp;(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(&quot;number&quot;==typeof e)return e&amp;=255,&quot;function&quot;==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function g(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&amp;&amp;(&quot;ucs2&quot;===(n=String(n).toLowerCase())||&quot;ucs-2&quot;===n||&quot;utf16le&quot;===n||&quot;utf-16le&quot;===n)){if(t.length&lt;2||e.length&lt;2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a&lt;s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&amp;&amp;(u=a),a-u+1===l)return u*o}else-1!==u&amp;&amp;(a-=a-u),u=-1}else for(r+l&gt;s&amp;&amp;(r=s-l),a=r;a&gt;=0;a--){for(var f=!0,h=0;h&lt;l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))&gt;i&amp;&amp;(n=i):n=i;var a=e.length;n&gt;a/2&amp;&amp;(n=a/2);for(var o=0;o&lt;n;++o){var s=parseInt(e.substr(2*o,2),16);if(N(s))return o;t[r+o]=s}return o}function v(t,e,r,n){return F(D(e,t.length-r),t,r,n)}function y(t,e,r,n){return F(function(t){for(var e=[],r=0;r&lt;t.length;++r)e.push(255&amp;t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return y(t,e,r,n)}function b(t,e,r,n){return F(R(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,a=[],o=0;o&lt;t.length&amp;&amp;!((e-=2)&lt;0);++o)r=t.charCodeAt(o),n=r&gt;&gt;8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&amp;&amp;n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i&lt;r;){var a,o,s,l,c=t[i],u=null,f=c&gt;239?4:c&gt;223?3:c&gt;191?2:1;if(i+f&lt;=r)switch(f){case 1:c&lt;128&amp;&amp;(u=c);break;case 2:128==(192&amp;(a=t[i+1]))&amp;&amp;(l=(31&amp;c)&lt;&lt;6|63&amp;a)&gt;127&amp;&amp;(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;(l=(15&amp;c)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&gt;2047&amp;&amp;(l&lt;55296||l&gt;57343)&amp;&amp;(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;(l=(15&amp;c)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&gt;65535&amp;&amp;l&lt;1114112&amp;&amp;(u=l)}null===u?(u=65533,f=1):u&gt;65535&amp;&amp;(u-=65536,n.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),n.push(u),i+=f}return function(t){var e=t.length;if(e&lt;=4096)return String.fromCharCode.apply(String,t);var r=&quot;&quot;,n=0;for(;n&lt;e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||&quot;undefined&quot;==typeof console||&quot;function&quot;!=typeof console.error||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.species&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return o(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return s(t),t&lt;=0?i(t):void 0!==e?&quot;string&quot;==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&amp;&amp;!0===t._isBuffer&amp;&amp;t!==a.prototype},a.compare=function(t,e){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&amp;&amp;(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i&lt;o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r&lt;t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r&lt;t.length;++r){var o=t[r];if(B(o,Uint8Array)&amp;&amp;(o=a.from(o)),!a.isBuffer(o))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var e=0;e&lt;t;e+=2)p(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var e=0;e&lt;t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var e=0;e&lt;t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?&quot;&quot;:0===arguments.length?T(this,0,t):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t=&quot;&quot;,e=r.INSPECT_MAX_BYTES;return t=this.toString(&quot;hex&quot;,0,e).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;e&amp;&amp;(t+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+t+&quot;&gt;&quot;},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=t?t.length:0),void 0===n&amp;&amp;(n=0),void 0===i&amp;&amp;(i=this.length),e&lt;0||r&gt;t.length||n&lt;0||i&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(n&gt;=i&amp;&amp;e&gt;=r)return 0;if(n&gt;=i)return-1;if(e&gt;=r)return 1;if(this===t)return 0;for(var o=(i&gt;&gt;&gt;=0)-(n&gt;&gt;&gt;=0),s=(r&gt;&gt;&gt;=0)-(e&gt;&gt;&gt;=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f&lt;l;++f)if(c[f]!==u[f]){o=c[f],s=u[f];break}return o&lt;s?-1:s&lt;o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n=&quot;utf8&quot;,r=this.length,e=0;else if(void 0===r&amp;&amp;&quot;string&quot;==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);e&gt;&gt;&gt;=0,isFinite(r)?(r&gt;&gt;&gt;=0,void 0===n&amp;&amp;(n=&quot;utf8&quot;)):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r&gt;i)&amp;&amp;(r=i),t.length&gt;0&amp;&amp;(r&lt;0||e&lt;0)||e&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);n||(n=&quot;utf8&quot;);for(var a=!1;;)switch(n){case&quot;hex&quot;:return m(this,t,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return v(this,t,e,r);case&quot;ascii&quot;:return y(this,t,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return x(this,t,e,r);case&quot;base64&quot;:return b(this,t,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return _(this,t,e,r);default:if(a)throw new TypeError(&quot;Unknown encoding: &quot;+n);n=(&quot;&quot;+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(127&amp;t[i]);return n}function A(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(t[i]);return n}function M(t,e,r){var n=t.length;(!e||e&lt;0)&amp;&amp;(e=0),(!r||r&lt;0||r&gt;n)&amp;&amp;(r=n);for(var i=&quot;&quot;,a=e;a&lt;r;++a)i+=z(t[a]);return i}function S(t,e,r){for(var n=t.slice(e,r),i=&quot;&quot;,a=0;a&lt;n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function E(t,e,r){if(t%1!=0||t&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if(t+e&gt;r)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function L(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('&quot;buffer&quot; argument must be a Buffer instance');if(e&gt;i||e&lt;o)throw new RangeError('&quot;value&quot; argument is out of bounds');if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;)}function C(t,e,r,n,i,a){if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;);if(r&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function P(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||C(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function I(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||C(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)&lt;0?(t+=r)&lt;0&amp;&amp;(t=0):t&gt;r&amp;&amp;(t=r),(e=void 0===e?r:~~e)&lt;0?(e+=r)&lt;0&amp;&amp;(e=0):e&gt;r&amp;&amp;(e=r),e&lt;t&amp;&amp;(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n},a.prototype.readUIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e&gt;0&amp;&amp;(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]|this[t+1]&lt;&lt;8},a.prototype.readUInt16BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]&lt;&lt;8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),(this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n&gt;=(i*=128)&amp;&amp;(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n&gt;0&amp;&amp;(i*=256);)a+=this[t+--n]*i;return a&gt;=(i*=128)&amp;&amp;(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),128&amp;this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t]|this[t+1]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t+1]|this[t]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16|this[t+3]&lt;&lt;24},a.prototype.readInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]&lt;&lt;24|this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(i*=256);)this[e+a]=t/i&amp;255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&amp;t;--i&gt;=0&amp;&amp;(a*=256);)this[e+i]=t/a&amp;255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,1,255,0),this[e]=255&amp;t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,65535,0),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,65535,0),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,4294967295,0),this[e+3]=t&gt;&gt;&gt;24,this[e+2]=t&gt;&gt;&gt;16,this[e+1]=t&gt;&gt;&gt;8,this[e]=255&amp;t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,4294967295,0),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a-1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&amp;t;--a&gt;=0&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a+1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,1,127,-128),t&lt;0&amp;&amp;(t=255+t+1),this[e]=255&amp;t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,32767,-32768),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,32767,-32768),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,2147483647,-2147483648),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,this[e+2]=t&gt;&gt;&gt;16,this[e+3]=t&gt;&gt;&gt;24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,2147483647,-2147483648),t&lt;0&amp;&amp;(t=4294967295+t+1),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError(&quot;argument should be a Buffer&quot;);if(r||(r=0),n||0===n||(n=this.length),e&gt;=t.length&amp;&amp;(e=t.length),e||(e=0),n&gt;0&amp;&amp;n&lt;r&amp;&amp;(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(r&lt;0||r&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(n&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);n&gt;this.length&amp;&amp;(n=this.length),t.length-e&lt;n-r&amp;&amp;(n=t.length-e+r);var i=n-r;if(this===t&amp;&amp;&quot;function&quot;==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&amp;&amp;r&lt;e&amp;&amp;e&lt;n)for(var o=i-1;o&gt;=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if(&quot;string&quot;==typeof t){if(&quot;string&quot;==typeof e?(n=e,e=0,r=this.length):&quot;string&quot;==typeof r&amp;&amp;(n=r,r=this.length),void 0!==n&amp;&amp;&quot;string&quot;!=typeof n)throw new TypeError(&quot;encoding must be a string&quot;);if(&quot;string&quot;==typeof n&amp;&amp;!a.isEncoding(n))throw new TypeError(&quot;Unknown encoding: &quot;+n);if(1===t.length){var i=t.charCodeAt(0);(&quot;utf8&quot;===n&amp;&amp;i&lt;128||&quot;latin1&quot;===n)&amp;&amp;(t=i)}}else&quot;number&quot;==typeof t&amp;&amp;(t&amp;=255);if(e&lt;0||this.length&lt;e||this.length&lt;r)throw new RangeError(&quot;Out of range index&quot;);if(r&lt;=e)return this;var o;if(e&gt;&gt;&gt;=0,r=void 0===r?this.length:r&gt;&gt;&gt;0,t||(t=0),&quot;number&quot;==typeof t)for(o=e;o&lt;r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;if(0===l)throw new TypeError('The value &quot;'+t+'&quot; is invalid for argument &quot;value&quot;');for(o=0;o&lt;r-e;++o)this[o+e]=s[o%l]}return this};var O=/[^+/0-9A-Za-z-_]/g;function z(t){return t&lt;16?&quot;0&quot;+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o&lt;n;++o){if((r=t.charCodeAt(o))&gt;55295&amp;&amp;r&lt;57344){if(!i){if(r&gt;56319){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}if(o+1===n){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}i=r;continue}if(r&lt;56320){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189),i=r;continue}r=65536+(i-55296&lt;&lt;10|r-56320)}else i&amp;&amp;(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);if(i=null,r&lt;128){if((e-=1)&lt;0)break;a.push(r)}else if(r&lt;2048){if((e-=2)&lt;0)break;a.push(r&gt;&gt;6|192,63&amp;r|128)}else if(r&lt;65536){if((e-=3)&lt;0)break;a.push(r&gt;&gt;12|224,r&gt;&gt;6&amp;63|128,63&amp;r|128)}else{if(!(r&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((e-=4)&lt;0)break;a.push(r&gt;&gt;18|240,r&gt;&gt;12&amp;63|128,r&gt;&gt;6&amp;63|128,63&amp;r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split(&quot;=&quot;)[0]).trim().replace(O,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;t.length%4!=0;)t+=&quot;=&quot;;return t}(t))}function F(t,e,r,n){for(var i=0;i&lt;n&amp;&amp;!(i+r&gt;=e.length||i&gt;=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&amp;&amp;null!=t.constructor&amp;&amp;null!=t.constructor.name&amp;&amp;t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:86,buffer:117,ieee754:445}],118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/monotone&quot;),i=t(&quot;./lib/triangulation&quot;),a=t(&quot;./lib/delaunay&quot;),o=t(&quot;./lib/filter&quot;);function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,&quot;delaunay&quot;,!0),f=!!c(r,&quot;interior&quot;,!0),h=!!c(r,&quot;exterior&quot;,!0),p=!!c(r,&quot;infinity&quot;,!1);if(!f&amp;&amp;!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var g=i(t.length,function(t){return t.map(s).sort(l)}(e)),m=0;m&lt;d.length;++m){var v=d[m];g.addTriangle(v[0],v[1],v[2])}return u&amp;&amp;a(t,g),h?f?p?o(g,0,p):g.cells():o(g,1,p):o(g,-1)}return d}},{&quot;./lib/delaunay&quot;:119,&quot;./lib/filter&quot;:120,&quot;./lib/monotone&quot;:121,&quot;./lib/triangulation&quot;:122}],119:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-in-sphere&quot;)[4];t(&quot;binary-search-bounds&quot;);function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s&lt;0)){if(a&lt;i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])&lt;0&amp;&amp;r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s&lt;a;++s)for(var l=o[s],c=1;c&lt;l.length;c+=2){if(!((p=l[c])&lt;s)&amp;&amp;!e.isConstraint(s,p)){for(var u=l[c-1],f=-1,h=1;h&lt;l.length;h+=2)if(l[h-1]===p){f=l[h];break}f&lt;0||n(t[s],t[p],t[u],t[f])&lt;0&amp;&amp;r.push(s,p)}}for(;r.length&gt;0;){for(var p=r.pop(),d=(s=r.pop(),u=-1,f=-1,l=o[s],1);d&lt;l.length;d+=2){var g=l[d-1],m=l[d];g===p?f=m:m===p&amp;&amp;(u=g)}u&lt;0||f&lt;0||(n(t[s],t[p],t[u],t[f])&gt;=0||(e.flip(s,p),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,p,u),i(t,e,r,p,u,f)))}}},{&quot;binary-search-bounds&quot;:103,&quot;robust-in-sphere&quot;:546}],120:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;binary-search-bounds&quot;);function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i&lt;n;++i){var s=(v=r[i])[0],l=v[1],c=v[2];l&lt;c?l&lt;s&amp;&amp;(v[0]=l,v[1]=c,v[2]=s):c&lt;s&amp;&amp;(v[0]=c,v[1]=s,v[2]=l)}r.sort(o);var u=new Array(n);for(i=0;i&lt;u.length;++i)u[i]=0;var f=[],h=[],p=new Array(3*n),d=new Array(3*n),g=null;e&amp;&amp;(g=[]);var m=new a(r,p,d,u,f,h,g);for(i=0;i&lt;n;++i)for(var v=r[i],y=0;y&lt;3;++y){s=v[y],l=v[(y+1)%3];var x=p[3*i+y]=m.locate(l,s,t.opposite(l,s)),b=d[3*i+y]=t.isConstraint(s,l);x&lt;0&amp;&amp;(b?h.push(i):(f.push(i),u[i]=1),e&amp;&amp;g.push([l,s,-1]))}return m}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length&gt;0||l.length&gt;0;){for(;s.length&gt;0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d&lt;3;++d){var g=h[3*p+d];g&gt;=0&amp;&amp;0===c[g]&amp;&amp;(f[3*p+d]?l.push(g):(s.push(g),c[g]=i))}}}var m=l;l=s,s=m,l.length=0,i=-i}var v=function(t,e,r){for(var n=0,i=0;i&lt;t.length;++i)e[i]===r&amp;&amp;(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return v.concat(n.boundary);return v},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e&lt;r?e&lt;t&amp;&amp;(a=e,s=r,l=t):r&lt;t&amp;&amp;(a=r,s=t,l=e),a&lt;0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{&quot;binary-search-bounds&quot;:103}],121:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;robust-orientation&quot;)[3];function a(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function o(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function s(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(0!==t.type&amp;&amp;(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function l(t,e){return i(t.a,t.b,e)}function c(t,e,r,a,o){for(var s=n.lt(e,a,l),c=n.gt(e,a,l),u=s;u&lt;c;++u){for(var f=e[u],h=f.lowerIds,p=h.length;p&gt;1&amp;&amp;i(r[h[p-2]],r[h[p-1]],a)&gt;0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=f.upperIds;for(p=d.length;p&gt;1&amp;&amp;i(r[d[p-2]],r[d[p-1]],a)&lt;0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function u(t,e){var r;return(r=t.a[0]&lt;e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]&lt;t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function f(t,e,r){var i=n.le(t,r,u),o=t[i],s=o.upperIds,l=s[s.length-1];o.upperIds=[l],t.splice(i+1,0,new a(r.a,r.b,r.idx,[l],s))}function h(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,u),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],l=0;l&lt;r;++l)i.push(new o(t[l],null,0,l));for(l=0;l&lt;n;++l){var u=e[l],p=t[u[0]],d=t[u[1]];p[0]&lt;d[0]?i.push(new o(p,d,2,l),new o(d,p,1,l)):p[0]&gt;d[0]&amp;&amp;i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var g=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),m=[new a([g,1],[g,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l&lt;y;++l){var x=i[l],b=x.type;0===b?c(v,m,t,x.a,x.idx):2===b?f(m,t,x):h(m,t,x)}return v}},{&quot;binary-search-bounds&quot;:103,&quot;robust-orientation&quot;:548}],122:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n&lt;i;n+=2)if(t[n-1]===e&amp;&amp;t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)&gt;=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n&lt;i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2){var s=i[a],l=i[a+1];r&lt;Math.min(s,l)&amp;&amp;e.push([r,s,l])}return e}},{&quot;binary-search-bounds&quot;:103}],123:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1,r=1;r&lt;t.length;++r)for(var n=0;n&lt;r;++n)if(t[r]&lt;t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],124:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;dup&quot;),i=t(&quot;robust-linear-solve&quot;);function a(t,e){for(var r=0,n=t.length,i=0;i&lt;n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s&lt;e;++s){for(var l=0;l&lt;=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s&lt;f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s&lt;e;++s){f=c[s];var p=0;for(l=0;l&lt;f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a&lt;t.length;++a)for(var s=0;s&lt;e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:185,&quot;robust-linear-solve&quot;:547}],125:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i&lt;t.length;++i)for(var a=t[i],o=0;o&lt;e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(&quot;circumcenter&quot;)},{circumcenter:124}],126:[function(t,e,r){e.exports=function(t,e,r){return e&lt;r?t&lt;e?e:t&gt;r?r:t:t&lt;r?r:t&gt;e?e:t}},{}],127:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a&lt;e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return v(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&amp;&amp;s){n.length=0,r.length=0;for(a=0;a&lt;e.length;++a){o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(&quot;union-find&quot;),i=t(&quot;box-intersect&quot;),a=t(&quot;robust-segment-intersect&quot;),o=t(&quot;big-rat&quot;),s=t(&quot;big-rat/cmp&quot;),l=t(&quot;big-rat/to-float&quot;),c=t(&quot;rat-vec&quot;),u=t(&quot;nextafter&quot;),f=t(&quot;./lib/rat-seg-intersect&quot;);function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l&lt;e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,(function(t,e){o.link(t,e)}));var d=!0,g=new Array(a);for(l=0;l&lt;a;++l){(v=o.find(l))!==l&amp;&amp;(d=!1,t[v]=[Math.min(t[l][0],t[v][0]),Math.min(t[l][1],t[v][1])])}if(d)return null;var m=0;for(l=0;l&lt;a;++l){var v;(v=o.find(l))===l?(g[l]=m,t[m++]=t[l]):g[l]=-1}t.length=m;for(l=0;l&lt;a;++l)g[l]&lt;0&amp;&amp;(g[l]=g[o.find(l)]);return g}function g(t,e){return t[0]-e[0]||t[1]-e[1]}function m(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]&lt;e[2]?-1:t[2]&gt;e[2]?1:0)}function v(t,e,r){if(0!==t.length){if(e)for(var n=0;n&lt;t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n&lt;t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(m):t.sort(g);var s=1;for(n=1;n&lt;t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&amp;&amp;c[2]!==l[2])&amp;&amp;(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n&lt;e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,(function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&amp;&amp;o[0]!==s[1]&amp;&amp;o[1]!==s[0]&amp;&amp;o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&amp;&amp;n.push([r,i])}})),n}(t,e,n),g=p(t),m=function(t,e,r,n){var o=[];return i(r,n,(function(r,n){var i=e[r];if(i[0]!==n&amp;&amp;i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&amp;&amp;o.push([r,n])}})),o}(t,e,n,g),y=d(t,function(t,e,r,n,i){var a,u,h=t.map((function(t){return[o(t[0]),o(t[1])]}));for(a=0;a&lt;r.length;++a){var p=r[a];u=p[0];var d=p[1],g=e[u],m=e[d],v=f(c(t[g[0]]),c(t[g[1]]),c(t[m[0]]),c(t[m[1]]));if(v){var y=t.length;t.push([l(v[0]),l(v[1])]),h.push(v),n.push([u,y],[d,y])}}for(n.sort((function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])})),a=n.length-1;a&gt;=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],T=t[_];if((w[0]-T[0]||w[1]-T[1])&lt;0){var k=b;b=_,_=k}x[0]=b;var A,M=x[1]=S[1];for(i&amp;&amp;(A=x[2]);a&gt;0&amp;&amp;n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([M,E,A]):e.push([M,E]),M=E}i?e.push([M,_,A]):e.push([M,_])}return h}(t,e,h,m,r));return v(e,y,r),!!y||(h.length&gt;0||m.length&gt;0)}},{&quot;./lib/rat-seg-intersect&quot;:128,&quot;big-rat&quot;:90,&quot;big-rat/cmp&quot;:88,&quot;big-rat/to-float&quot;:102,&quot;box-intersect&quot;:108,nextafter:484,&quot;rat-vec&quot;:532,&quot;robust-segment-intersect&quot;:551,&quot;union-find&quot;:618}],128:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),g=i(d,h),m=c(a,g);return l(t,m)};var n=t(&quot;big-rat/mul&quot;),i=t(&quot;big-rat/div&quot;),a=t(&quot;big-rat/sub&quot;),o=t(&quot;big-rat/sign&quot;),s=t(&quot;rat-vec/sub&quot;),l=t(&quot;rat-vec/add&quot;),c=t(&quot;rat-vec/muls&quot;);function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{&quot;big-rat/div&quot;:89,&quot;big-rat/mul&quot;:99,&quot;big-rat/sign&quot;:100,&quot;big-rat/sub&quot;:101,&quot;rat-vec/add&quot;:531,&quot;rat-vec/muls&quot;:533,&quot;rat-vec/sub&quot;:534}],129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);function i(t,e){null==e&amp;&amp;(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&amp;&amp;(o=e?1:255),e&amp;&amp;(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&amp;n(r,0,255))+((i=255&amp;n(i,0,255))&lt;&lt;16)+((a=255&amp;n(a,0,255))&lt;&lt;8)+(o=255&amp;n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)&gt;&gt;&gt;24,n=(16711680&amp;t)&gt;&gt;&gt;16,i=(65280&amp;t)&gt;&gt;&gt;8,a=255&amp;t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:126}],130:[function(t,e,r){&quot;use strict&quot;;e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-rgba&quot;),i=t(&quot;clamp&quot;),a=t(&quot;dtype&quot;);e.exports=function(t,e){&quot;float&quot;!==e&amp;&amp;e||(e=&quot;array&quot;),&quot;uint&quot;===e&amp;&amp;(e=&quot;uint8&quot;),&quot;uint_clamped&quot;===e&amp;&amp;(e=&quot;uint8_clamped&quot;);var r=new(a(e))(4),o=&quot;uint8&quot;!==e&amp;&amp;&quot;uint8_clamped&quot;!==e;return t.length&amp;&amp;&quot;string&quot;!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&amp;&amp;(t[0]&gt;1||0===t[0])&amp;&amp;(t[1]&gt;1||0===t[1])&amp;&amp;(t[2]&gt;1||0===t[2])&amp;&amp;(!t[3]||t[3]&gt;1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&amp;&amp;(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:126,&quot;color-rgba&quot;:133,dtype:184}],132:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;color-name&quot;),i=t(&quot;is-plain-obj&quot;),a=t(&quot;defined&quot;);e.exports=function(t){var e,s,l=[],c=1;if(&quot;string&quot;==typeof t)if(n[t])l=n[t].slice(),s=&quot;rgb&quot;;else if(&quot;transparent&quot;===t)c=0,s=&quot;rgb&quot;,l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=(p=t.slice(1)).length;c=1,u&lt;=4?(l=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&amp;&amp;(c=parseInt(p[3]+p[3],16)/255)):(l=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&amp;&amp;(c=parseInt(p[6]+p[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=&quot;rgb&quot;}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],h=&quot;rgb&quot;===f,p=f.replace(/a$/,&quot;&quot;);s=p;u=&quot;cmyk&quot;===p?4:&quot;gray&quot;===p?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===u?parseFloat(t)/100:&quot;rgb&quot;===p?255*parseFloat(t)/100:parseFloat(t);if(&quot;h&quot;===p[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===p&amp;&amp;l.push(1),c=h||void 0===l[u]?1:l[u],l=l.slice(0,u)}else t.length&gt;10&amp;&amp;/[0-9](?:\s|\/)/.test(t)&amp;&amp;(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join(&quot;&quot;).toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=&quot;rgb&quot;,l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=&quot;hsl&quot;,l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&amp;&amp;(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&amp;&amp;ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t))&amp;&amp;(l=[t[0],t[1],t[2]],s=&quot;rgb&quot;,c=4===t.length?t[3]:1);else s=&quot;rgb&quot;,l=[t&gt;&gt;&gt;16,(65280&amp;t)&gt;&gt;&gt;8,255&amp;t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;color-name&quot;:130,defined:179,&quot;is-plain-obj&quot;:457}],133:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-parse&quot;),i=t(&quot;color-space/hsl&quot;),a=t(&quot;clamp&quot;);e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),&quot;h&quot;===r.space[0]&amp;&amp;(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:126,&quot;color-parse&quot;:132,&quot;color-space/hsl&quot;:134}],134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./rgb&quot;);e.exports={name:&quot;hsl&quot;,min:[0,0,0],max:[360,100,100],channel:[&quot;hue&quot;,&quot;saturation&quot;,&quot;lightness&quot;],alias:[&quot;HSL&quot;],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l&lt;.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c&lt;3;c++)(n=o+1/3*-(c-1))&lt;0?n++:n&gt;1&amp;&amp;n--,a=6*n&lt;1?e+6*(r-e)*n:2*n&lt;1?r:3*n&lt;2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&amp;&amp;(e=4+(n-i)/l),(e=Math.min(60*e,360))&lt;0&amp;&amp;(e+=360),r=(o+s)/2,[e,100*(s===o?0:r&lt;=.5?l/(s+o):l/(2-s-o)),100*r]}},{&quot;./rgb&quot;:135}],135:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rgb&quot;,min:[0,0,0],max:[255,255,255],channel:[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;],alias:[&quot;RGB&quot;]}},{}],136:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],&quot;rainbow-soft&quot;:[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],&quot;freesurface-blue&quot;:[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],&quot;freesurface-red&quot;:[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],&quot;velocity-blue&quot;:[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],&quot;velocity-green&quot;:[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],137:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./colorScale&quot;),i=t(&quot;lerp&quot;);function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=&quot;#&quot;,n=0;n&lt;3;++n)r+=(&quot;00&quot;+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return&quot;rgba(&quot;+t.join(&quot;,&quot;)+&quot;)&quot;}e.exports=function(t){var e,r,l,c,u,f,h,p,d,g;t||(t={});p=(t.nshades||72)-1,h=t.format||&quot;hex&quot;,(f=t.colormap)||(f=&quot;jet&quot;);if(&quot;string&quot;==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+&quot; not a supported colorscale&quot;);u=n[f]}else{if(!Array.isArray(f))throw Error(&quot;unsupported colormap option&quot;,f);u=f.slice()}if(u.length&gt;p+1)throw new Error(f+&quot; map requires nshades to be at least size &quot;+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():&quot;number&quot;==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var m=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&amp;&amp;n[3]&gt;=0&amp;&amp;n[3]&lt;=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),v=[];for(g=0;g&lt;e.length-1;++g){c=e[g+1]-e[g],r=m[g],l=m[g+1];for(var y=0;y&lt;c;y++){var x=y/c;v.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}v.push(u[u.length-1].rgb.concat(d[1])),&quot;hex&quot;===h?v=v.map(o):&quot;rgbaString&quot;===h?v=v.map(s):&quot;float&quot;===h&amp;&amp;(v=v.map(a));return v}},{&quot;./colorScale&quot;:136,lerp:460}],138:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s&gt;0||l(t,e,a)?-1:1:0===s?c&gt;0||l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);return h&gt;0?o&gt;0&amp;&amp;n(t,e,a)&gt;0?1:-1:h&lt;0?o&gt;0||n(t,e,a)&gt;0?1:-1:n(t,e,a)&gt;0||l(t,e,r)?1:-1};var n=t(&quot;robust-orientation&quot;),i=t(&quot;signum&quot;),a=t(&quot;two-sum&quot;),o=t(&quot;robust-product&quot;),s=t(&quot;robust-sum&quot;);function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]&gt;=0}},{&quot;robust-orientation&quot;:548,&quot;robust-product&quot;:549,&quot;robust-sum&quot;:553,signum:555,&quot;two-sum&quot;:605}],139:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],g=e[1],m=e[2],v=e[3];return u+f+h+p-(d+g+m+v)||n(u,f,h,p)-n(d,g,m,v,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+g,d+m,d+v,g+m,g+v,m+v)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+g+m,d+g+v,d+m+v,g+m+v);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b&lt;r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],140:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;cell-orientation&quot;);e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{&quot;cell-orientation&quot;:123,&quot;compare-cell&quot;:139}],141:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/ch1d&quot;),i=t(&quot;./lib/ch2d&quot;),a=t(&quot;./lib/chnd&quot;);e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{&quot;./lib/ch1d&quot;:142,&quot;./lib/ch2d&quot;:143,&quot;./lib/chnd&quot;:144}],142:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0,r=0,n=1;n&lt;t.length;++n)t[n][0]&lt;t[e][0]&amp;&amp;(e=n),t[n][0]&gt;t[r][0]&amp;&amp;(r=n);return e&lt;r?[[e],[r]]:e&gt;r?[[r],[e]]:[[e]]}},{}],143:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=n(t),r=e.length;if(r&lt;=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o&lt;r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(&quot;monotone-convex-hull-2d&quot;)},{&quot;monotone-convex-hull-2d&quot;:469}],144:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){try{return n(t,!0)}catch(o){var r=i(t);if(r.length&lt;=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i&lt;e.length;++i)n[i]=t[e[i]];var a=e.length;for(i=0;i&lt;r;++i)e.indexOf(i)&lt;0&amp;&amp;(n[a++]=t[i]);return n}(t,r);return function(t,e){for(var r=t.length,n=e.length,i=0;i&lt;r;++i)for(var a=t[i],o=0;o&lt;a.length;++o){var s=a[o];if(s&lt;n)a[o]=e[s];else{s-=n;for(var l=0;l&lt;n;++l)s&gt;=e[l]&amp;&amp;(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;affine-hull&quot;)},{&quot;affine-hull&quot;:73,&quot;incremental-convex-hull&quot;:446}],145:[function(t,e,r){e.exports={AFG:&quot;afghan&quot;,ALA:&quot;\\b\\wland&quot;,ALB:&quot;albania&quot;,DZA:&quot;algeria&quot;,ASM:&quot;^(?=.*americ).*samoa&quot;,AND:&quot;andorra&quot;,AGO:&quot;angola&quot;,AIA:&quot;anguill?a&quot;,ATA:&quot;antarctica&quot;,ATG:&quot;antigua&quot;,ARG:&quot;argentin&quot;,ARM:&quot;armenia&quot;,ABW:&quot;^(?!.*bonaire).*\\baruba&quot;,AUS:&quot;australia&quot;,AUT:&quot;^(?!.*hungary).*austria|\\baustri.*\\bemp&quot;,AZE:&quot;azerbaijan&quot;,BHS:&quot;bahamas&quot;,BHR:&quot;bahrain&quot;,BGD:&quot;bangladesh|^(?=.*east).*paki?stan&quot;,BRB:&quot;barbados&quot;,BLR:&quot;belarus|byelo&quot;,BEL:&quot;^(?!.*luxem).*belgium&quot;,BLZ:&quot;belize|^(?=.*british).*honduras&quot;,BEN:&quot;benin|dahome&quot;,BMU:&quot;bermuda&quot;,BTN:&quot;bhutan&quot;,BOL:&quot;bolivia&quot;,BES:&quot;^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands&quot;,BIH:&quot;herzegovina|bosnia&quot;,BWA:&quot;botswana|bechuana&quot;,BVT:&quot;bouvet&quot;,BRA:&quot;brazil&quot;,IOT:&quot;british.?indian.?ocean&quot;,BRN:&quot;brunei&quot;,BGR:&quot;bulgaria&quot;,BFA:&quot;burkina|\\bfaso|upper.?volta&quot;,BDI:&quot;burundi&quot;,CPV:&quot;verde&quot;,KHM:&quot;cambodia|kampuchea|khmer&quot;,CMR:&quot;cameroon&quot;,CAN:&quot;canada&quot;,CYM:&quot;cayman&quot;,CAF:&quot;\\bcentral.african.republic&quot;,TCD:&quot;\\bchad&quot;,CHL:&quot;\\bchile&quot;,CHN:&quot;^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china&quot;,CXR:&quot;christmas&quot;,CCK:&quot;\\bcocos|keeling&quot;,COL:&quot;colombia&quot;,COM:&quot;comoro&quot;,COG:&quot;^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo&quot;,COK:&quot;\\bcook&quot;,CRI:&quot;costa.?rica&quot;,CIV:&quot;ivoire|ivory&quot;,HRV:&quot;croatia&quot;,CUB:&quot;\\bcuba&quot;,CUW:&quot;^(?!.*bonaire).*\\bcura(c|\xe7)ao&quot;,CYP:&quot;cyprus&quot;,CSK:&quot;czechoslovakia&quot;,CZE:&quot;^(?=.*rep).*czech|czechia|bohemia&quot;,COD:&quot;\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc&quot;,DNK:&quot;denmark&quot;,DJI:&quot;djibouti&quot;,DMA:&quot;dominica(?!n)&quot;,DOM:&quot;dominican.rep&quot;,ECU:&quot;ecuador&quot;,EGY:&quot;egypt&quot;,SLV:&quot;el.?salvador&quot;,GNQ:&quot;guine.*eq|eq.*guine|^(?=.*span).*guinea&quot;,ERI:&quot;eritrea&quot;,EST:&quot;estonia&quot;,ETH:&quot;ethiopia|abyssinia&quot;,FLK:&quot;falkland|malvinas&quot;,FRO:&quot;faroe|faeroe&quot;,FJI:&quot;fiji&quot;,FIN:&quot;finland&quot;,FRA:&quot;^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul&quot;,GUF:&quot;^(?=.*french).*guiana&quot;,PYF:&quot;french.?polynesia|tahiti&quot;,ATF:&quot;french.?southern&quot;,GAB:&quot;gabon&quot;,GMB:&quot;gambia&quot;,GEO:&quot;^(?!.*south).*georgia&quot;,DDR:&quot;german.?democratic.?republic|democratic.?republic.*germany|east.germany&quot;,DEU:&quot;^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german&quot;,GHA:&quot;ghana|gold.?coast&quot;,GIB:&quot;gibraltar&quot;,GRC:&quot;greece|hellenic|hellas&quot;,GRL:&quot;greenland&quot;,GRD:&quot;grenada&quot;,GLP:&quot;guadeloupe&quot;,GUM:&quot;\\bguam&quot;,GTM:&quot;guatemala&quot;,GGY:&quot;guernsey&quot;,GIN:&quot;^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea&quot;,GNB:&quot;bissau|^(?=.*portu).*guinea&quot;,GUY:&quot;guyana|british.?guiana&quot;,HTI:&quot;haiti&quot;,HMD:&quot;heard.*mcdonald&quot;,VAT:&quot;holy.?see|vatican|papal.?st&quot;,HND:&quot;^(?!.*brit).*honduras&quot;,HKG:&quot;hong.?kong&quot;,HUN:&quot;^(?!.*austr).*hungary&quot;,ISL:&quot;iceland&quot;,IND:&quot;india(?!.*ocea)&quot;,IDN:&quot;indonesia&quot;,IRN:&quot;\\biran|persia&quot;,IRQ:&quot;\\biraq|mesopotamia&quot;,IRL:&quot;(^ireland)|(^republic.*ireland)&quot;,IMN:&quot;^(?=.*isle).*\\bman&quot;,ISR:&quot;israel&quot;,ITA:&quot;italy&quot;,JAM:&quot;jamaica&quot;,JPN:&quot;japan&quot;,JEY:&quot;jersey&quot;,JOR:&quot;jordan&quot;,KAZ:&quot;kazak&quot;,KEN:&quot;kenya|british.?east.?africa|east.?africa.?prot&quot;,KIR:&quot;kiribati&quot;,PRK:&quot;^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)&quot;,KWT:&quot;kuwait&quot;,KGZ:&quot;kyrgyz|kirghiz&quot;,LAO:&quot;\\blaos?\\b&quot;,LVA:&quot;latvia&quot;,LBN:&quot;lebanon&quot;,LSO:&quot;lesotho|basuto&quot;,LBR:&quot;liberia&quot;,LBY:&quot;libya&quot;,LIE:&quot;liechtenstein&quot;,LTU:&quot;lithuania&quot;,LUX:&quot;^(?!.*belg).*luxem&quot;,MAC:&quot;maca(o|u)&quot;,MDG:&quot;madagascar|malagasy&quot;,MWI:&quot;malawi|nyasa&quot;,MYS:&quot;malaysia&quot;,MDV:&quot;maldive&quot;,MLI:&quot;\\bmali\\b&quot;,MLT:&quot;\\bmalta&quot;,MHL:&quot;marshall&quot;,MTQ:&quot;martinique&quot;,MRT:&quot;mauritania&quot;,MUS:&quot;mauritius&quot;,MYT:&quot;\\bmayotte&quot;,MEX:&quot;\\bmexic&quot;,FSM:&quot;fed.*micronesia|micronesia.*fed&quot;,MCO:&quot;monaco&quot;,MNG:&quot;mongolia&quot;,MNE:&quot;^(?!.*serbia).*montenegro&quot;,MSR:&quot;montserrat&quot;,MAR:&quot;morocco|\\bmaroc&quot;,MOZ:&quot;mozambique&quot;,MMR:&quot;myanmar|burma&quot;,NAM:&quot;namibia&quot;,NRU:&quot;nauru&quot;,NPL:&quot;nepal&quot;,NLD:&quot;^(?!.*\\bant)(?!.*\\bcarib).*netherlands&quot;,ANT:&quot;^(?=.*\\bant).*(nether|dutch)&quot;,NCL:&quot;new.?caledonia&quot;,NZL:&quot;new.?zealand&quot;,NIC:&quot;nicaragua&quot;,NER:&quot;\\bniger(?!ia)&quot;,NGA:&quot;nigeria&quot;,NIU:&quot;niue&quot;,NFK:&quot;norfolk&quot;,MNP:&quot;mariana&quot;,NOR:&quot;norway&quot;,OMN:&quot;\\boman|trucial&quot;,PAK:&quot;^(?!.*east).*paki?stan&quot;,PLW:&quot;palau&quot;,PSE:&quot;palestin|\\bgaza|west.?bank&quot;,PAN:&quot;panama&quot;,PNG:&quot;papua|new.?guinea&quot;,PRY:&quot;paraguay&quot;,PER:&quot;peru&quot;,PHL:&quot;philippines&quot;,PCN:&quot;pitcairn&quot;,POL:&quot;poland&quot;,PRT:&quot;portugal&quot;,PRI:&quot;puerto.?rico&quot;,QAT:&quot;qatar&quot;,KOR:&quot;^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)&quot;,MDA:&quot;moldov|b(a|e)ssarabia&quot;,REU:&quot;r(e|\xe9)union&quot;,ROU:&quot;r(o|u|ou)mania&quot;,RUS:&quot;\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics&quot;,RWA:&quot;rwanda&quot;,BLM:&quot;barth(e|\xe9)lemy&quot;,SHN:&quot;helena&quot;,KNA:&quot;kitts|\\bnevis&quot;,LCA:&quot;\\blucia&quot;,MAF:&quot;^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)&quot;,SPM:&quot;miquelon&quot;,VCT:&quot;vincent&quot;,WSM:&quot;^(?!.*amer).*samoa&quot;,SMR:&quot;san.?marino&quot;,STP:&quot;\\bs(a|\xe3)o.?tom(e|\xe9)&quot;,SAU:&quot;\\bsa\\w*.?arabia&quot;,SEN:&quot;senegal&quot;,SRB:&quot;^(?!.*monte).*serbia&quot;,SYC:&quot;seychell&quot;,SLE:&quot;sierra&quot;,SGP:&quot;singapore&quot;,SXM:&quot;^(?!.*martin)(?!.*saba).*maarten&quot;,SVK:&quot;^(?!.*cze).*slovak&quot;,SVN:&quot;slovenia&quot;,SLB:&quot;solomon&quot;,SOM:&quot;somali&quot;,ZAF:&quot;south.africa|s\\\\..?africa&quot;,SGS:&quot;south.?georgia|sandwich&quot;,SSD:&quot;\\bs\\w*.?sudan&quot;,ESP:&quot;spain&quot;,LKA:&quot;sri.?lanka|ceylon&quot;,SDN:&quot;^(?!.*\\bs(?!u)).*sudan&quot;,SUR:&quot;surinam|dutch.?guiana&quot;,SJM:&quot;svalbard&quot;,SWZ:&quot;swaziland&quot;,SWE:&quot;sweden&quot;,CHE:&quot;switz|swiss&quot;,SYR:&quot;syria&quot;,TWN:&quot;taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china&quot;,TJK:&quot;tajik&quot;,THA:&quot;thailand|\\bsiam&quot;,MKD:&quot;macedonia|fyrom&quot;,TLS:&quot;^(?=.*leste).*timor|^(?=.*east).*timor&quot;,TGO:&quot;togo&quot;,TKL:&quot;tokelau&quot;,TON:&quot;tonga&quot;,TTO:&quot;trinidad|tobago&quot;,TUN:&quot;tunisia&quot;,TUR:&quot;turkey&quot;,TKM:&quot;turkmen&quot;,TCA:&quot;turks&quot;,TUV:&quot;tuvalu&quot;,UGA:&quot;uganda&quot;,UKR:&quot;ukrain&quot;,ARE:&quot;emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em&quot;,GBR:&quot;united.?kingdom|britain|^u\\.?k\\.?$&quot;,TZA:&quot;tanzania&quot;,USA:&quot;united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)&quot;,UMI:&quot;minor.?outlying.?is&quot;,URY:&quot;uruguay&quot;,UZB:&quot;uzbek&quot;,VUT:&quot;vanuatu|new.?hebrides&quot;,VEN:&quot;venezuela&quot;,VNM:&quot;^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam&quot;,VGB:&quot;^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin&quot;,VIR:&quot;^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin&quot;,WLF:&quot;futuna|wallis&quot;,ESH:&quot;western.sahara&quot;,YEM:&quot;^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen&quot;,YMD:&quot;^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen&quot;,YUG:&quot;yugoslavia&quot;,ZMB:&quot;zambia|northern.?rhodesia&quot;,EAZ:&quot;zanzibar&quot;,ZWE:&quot;zimbabwe|^(?!.*northern).*rhodesia&quot;}},{}],146:[function(t,e,r){e.exports=[&quot;xx-small&quot;,&quot;x-small&quot;,&quot;small&quot;,&quot;medium&quot;,&quot;large&quot;,&quot;x-large&quot;,&quot;xx-large&quot;,&quot;larger&quot;,&quot;smaller&quot;]},{}],147:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;condensed&quot;,&quot;semi-condensed&quot;,&quot;extra-condensed&quot;,&quot;ultra-condensed&quot;,&quot;expanded&quot;,&quot;semi-expanded&quot;,&quot;extra-expanded&quot;,&quot;ultra-expanded&quot;]},{}],148:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;italic&quot;,&quot;oblique&quot;]},{}],149:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;bold&quot;,&quot;bolder&quot;,&quot;lighter&quot;,&quot;100&quot;,&quot;200&quot;,&quot;300&quot;,&quot;400&quot;,&quot;500&quot;,&quot;600&quot;,&quot;700&quot;,&quot;800&quot;,&quot;900&quot;]},{}],150:[function(t,e,r){&quot;use strict&quot;;e.exports={parse:t(&quot;./parse&quot;),stringify:t(&quot;./stringify&quot;)}},{&quot;./parse&quot;:152,&quot;./stringify&quot;:153}],151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font-size-keywords&quot;);e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf(&quot;/&quot;)||-1!==n.indexOf(t)}}},{&quot;css-font-size-keywords&quot;:146}],152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;unquote&quot;),i=t(&quot;css-global-keywords&quot;),a=t(&quot;css-system-font-keywords&quot;),o=t(&quot;css-font-weight-keywords&quot;),s=t(&quot;css-font-style-keywords&quot;),l=t(&quot;css-font-stretch-keywords&quot;),c=t(&quot;string-split-by&quot;),u=t(&quot;./lib/util&quot;).isSize;e.exports=h;var f=h.cache={};function h(t){if(&quot;string&quot;!=typeof t)throw new Error(&quot;Font argument must be a string.&quot;);if(f[t])return f[t];if(&quot;&quot;===t)throw new Error(&quot;Cannot parse an empty string.&quot;);if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:&quot;normal&quot;,variant:&quot;normal&quot;,weight:&quot;normal&quot;,stretch:&quot;normal&quot;,lineHeight:&quot;normal&quot;,size:&quot;1rem&quot;,family:[&quot;serif&quot;]},h=c(t,/\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[&quot;style&quot;,&quot;variant&quot;,&quot;weight&quot;,&quot;stretch&quot;].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if(&quot;normal&quot;!==e&amp;&amp;&quot;small-caps&quot;!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,&quot;/&quot;);if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):&quot;/&quot;===h[0]&amp;&amp;(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(&quot;Missing required font-family.&quot;);return r.family=c(h.join(&quot; &quot;),/\s*,\s*/).map(n),f[t]=r}throw new Error(&quot;Unknown or unsupported font token: &quot;+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(&quot;Missing required font-size.&quot;)}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{&quot;./lib/util&quot;:151,&quot;css-font-stretch-keywords&quot;:147,&quot;css-font-style-keywords&quot;:148,&quot;css-font-weight-keywords&quot;:149,&quot;css-global-keywords&quot;:154,&quot;css-system-font-keywords&quot;:155,&quot;string-split-by&quot;:589,unquote:620}],153:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;),i=t(&quot;./lib/util&quot;).isSize,a=g(t(&quot;css-global-keywords&quot;)),o=g(t(&quot;css-system-font-keywords&quot;)),s=g(t(&quot;css-font-weight-keywords&quot;)),l=g(t(&quot;css-font-style-keywords&quot;)),c=g(t(&quot;css-font-stretch-keywords&quot;)),u={normal:1,&quot;small-caps&quot;:1},f={serif:1,&quot;sans-serif&quot;:1,monospace:1,cursive:1,fantasy:1,&quot;system-ui&quot;:1},h=&quot;1rem&quot;,p=&quot;serif&quot;;function d(t,e){if(t&amp;&amp;!e[t]&amp;&amp;!a[t])throw Error(&quot;Unknown keyword `&quot;+t+&quot;`&quot;);return t}function g(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:&quot;style fontstyle fontStyle font-style slope distinction&quot;,variant:&quot;variant font-variant fontVariant fontvariant var capitalization&quot;,weight:&quot;weight w font-weight fontWeight fontweight&quot;,stretch:&quot;stretch font-stretch fontStretch fontstretch width&quot;,size:&quot;size s font-size fontSize fontsize height em emSize&quot;,lineHeight:&quot;lh line-height lineHeight lineheight leading&quot;,family:&quot;font family fontFamily font-family fontfamily type typeface face&quot;,system:&quot;system reserved default global&quot;})).system)return t.system&amp;&amp;d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&amp;&amp;(t.size=h),&quot;number&quot;==typeof t.size&amp;&amp;(t.size+=&quot;px&quot;),!i)throw Error(&quot;Bad size value `&quot;+t.size+&quot;`&quot;);t.family||(t.family=p),Array.isArray(t.family)&amp;&amp;(t.family.length||(t.family=[p]),t.family=t.family.map((function(t){return f[t]?t:'&quot;'+t+'&quot;'})).join(&quot;, &quot;));var e=[];return e.push(t.style),t.variant!==t.style&amp;&amp;e.push(t.variant),t.weight!==t.variant&amp;&amp;t.weight!==t.style&amp;&amp;e.push(t.weight),t.stretch!==t.weight&amp;&amp;t.stretch!==t.variant&amp;&amp;t.stretch!==t.style&amp;&amp;e.push(t.stretch),e.push(t.size+(null==t.lineHeight||&quot;normal&quot;===t.lineHeight||t.lineHeight+&quot;&quot;==&quot;1&quot;?&quot;&quot;:&quot;/&quot;+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(&quot; &quot;)}},{&quot;./lib/util&quot;:151,&quot;css-font-stretch-keywords&quot;:147,&quot;css-font-style-keywords&quot;:148,&quot;css-font-weight-keywords&quot;:149,&quot;css-global-keywords&quot;:154,&quot;css-system-font-keywords&quot;:155,&quot;pick-by-alias&quot;:498}],154:[function(t,e,r){e.exports=[&quot;inherit&quot;,&quot;initial&quot;,&quot;unset&quot;]},{}],155:[function(t,e,r){e.exports=[&quot;caption&quot;,&quot;icon&quot;,&quot;menu&quot;,&quot;message-box&quot;,&quot;small-caption&quot;,&quot;status-bar&quot;]},{}],156:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p&gt;=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u&gt;=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],157:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/thunk.js&quot;);function i(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=&quot;&quot;,this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(t){var e=new i;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var a=0;a&lt;r.length;++a){var o=r[a];if(&quot;array&quot;===o||&quot;object&quot;==typeof o&amp;&amp;o.blockIndices){if(e.argTypes[a]=&quot;array&quot;,e.arrayArgs.push(a),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(&quot;array&quot;+a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array args&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array args&quot;)}else if(&quot;scalar&quot;===o)e.scalarArgs.push(a),e.shimArgs.push(&quot;scalar&quot;+a);else if(&quot;index&quot;===o){if(e.indexArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array index&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array index&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array index&quot;)}else if(&quot;shape&quot;===o){if(e.shapeArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].lvalue)throw new Error(&quot;cwise: pre() block may not write to array shape&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array shape&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].lvalue)throw new Error(&quot;cwise: post() block may not write to array shape&quot;)}else{if(&quot;object&quot;!=typeof o||!o.offset)throw new Error(&quot;cwise: Unknown argument type &quot;+r[a]);e.argTypes[a]=&quot;offset&quot;,e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(a)}}if(e.arrayArgs.length&lt;=0)throw new Error(&quot;cwise: No array arguments specified&quot;);if(e.pre.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in pre() block&quot;);if(e.body.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in body() block&quot;);if(e.post.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in post() block&quot;);return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||&quot;cwise&quot;,e.blockSize=t.blockSize||64,n(e)}},{&quot;./lib/thunk.js&quot;:159}],158:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;uniq&quot;);function i(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length&gt;0,l=[],c=[],u=0,f=0;for(n=0;n&lt;a;++n)c.push([&quot;i&quot;,n,&quot;=0&quot;].join(&quot;&quot;));for(i=0;i&lt;o;++i)for(n=0;n&lt;a;++n)f=u,u=t[n],0===n?c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=t&quot;,i,&quot;p&quot;,u].join(&quot;&quot;)):c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=(t&quot;,i,&quot;p&quot;,u,&quot;-s&quot;,f,&quot;*t&quot;,i,&quot;p&quot;,f,&quot;)&quot;].join(&quot;&quot;));for(c.length&gt;0&amp;&amp;l.push(&quot;var &quot;+c.join(&quot;,&quot;)),n=a-1;n&gt;=0;--n)u=t[n],l.push([&quot;for(i&quot;,n,&quot;=0;i&quot;,n,&quot;&lt;s&quot;,u,&quot;;++i&quot;,n,&quot;){&quot;].join(&quot;&quot;));for(l.push(r),n=0;n&lt;a;++n){for(f=u,u=t[n],i=0;i&lt;o;++i)l.push([&quot;p&quot;,i,&quot;+=d&quot;,i,&quot;s&quot;,n].join(&quot;&quot;));s&amp;&amp;(n&gt;0&amp;&amp;l.push([&quot;index[&quot;,f,&quot;]-=s&quot;,f].join(&quot;&quot;)),l.push([&quot;++index[&quot;,u,&quot;]&quot;].join(&quot;&quot;))),l.push(&quot;}&quot;)}return l.join(&quot;\n&quot;)}function a(t,e,r){for(var n=t.body,i=[],a=[],o=0;o&lt;t.args.length;++o){var s=t.args[o];if(!(s.count&lt;=0)){var l=new RegExp(s.name,&quot;g&quot;),c=&quot;&quot;,u=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case&quot;offset&quot;:var f=e.offsetArgIndex.indexOf(o);u=e.offsetArgs[f].array,c=&quot;+q&quot;+f;case&quot;array&quot;:c=&quot;p&quot;+u+c;var h=&quot;l&quot;+o,p=&quot;a&quot;+u;if(0===e.arrayBlockIndices[u])1===s.count?&quot;generic&quot;===r[u]?s.lvalue?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):n=n.replace(l,[p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)):n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)):&quot;generic&quot;===r[u]?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;[&quot;,c,&quot;]=&quot;,h].join(&quot;&quot;)));else{for(var d=[s.name],g=[c],m=0;m&lt;Math.abs(e.arrayBlockIndices[u]);m++)d.push(&quot;\\s*\\[([^\\]]+)\\]&quot;),g.push(&quot;$&quot;+(m+1)+&quot;*t&quot;+u+&quot;b&quot;+m);if(l=new RegExp(d.join(&quot;&quot;),&quot;g&quot;),c=g.join(&quot;+&quot;),&quot;generic&quot;===r[u])throw new Error(&quot;cwise: Generic arrays not supported in combination with blocks!&quot;);n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;))}break;case&quot;scalar&quot;:n=n.replace(l,&quot;Y&quot;+e.scalarArgs.indexOf(o));break;case&quot;index&quot;:n=n.replace(l,&quot;index&quot;);break;case&quot;shape&quot;:n=n.replace(l,&quot;shape&quot;)}}}return[i.join(&quot;\n&quot;),n,a.join(&quot;\n&quot;)].join(&quot;\n&quot;).trim()}function o(t){for(var e=new Array(t.length),r=!0,n=0;n&lt;t.length;++n){var i=t[n],a=i.match(/\d+/);a=a?a[0]:&quot;&quot;,0===i.charAt(0)?e[n]=&quot;u&quot;+i.charAt(1)+a:e[n]=i.charAt(0)+a,n&gt;0&amp;&amp;(r=r&amp;&amp;e[n]===e[n-1])}return r?e[0]:e.join(&quot;&quot;)}e.exports=function(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,s=new Array(t.arrayArgs.length),l=new Array(t.arrayArgs.length),c=0;c&lt;t.arrayArgs.length;++c)l[c]=e[2*c],s[c]=e[2*c+1];var u=[],f=[],h=[],p=[],d=[];for(c=0;c&lt;t.arrayArgs.length;++c){t.arrayBlockIndices[c]&lt;0?(h.push(0),p.push(r),u.push(r),f.push(r+t.arrayBlockIndices[c])):(h.push(t.arrayBlockIndices[c]),p.push(t.arrayBlockIndices[c]+r),u.push(0),f.push(t.arrayBlockIndices[c]));for(var g=[],m=0;m&lt;s[c].length;m++)h[c]&lt;=s[c][m]&amp;&amp;s[c][m]&lt;p[c]&amp;&amp;g.push(s[c][m]-h[c]);d.push(g)}var v=[&quot;SS&quot;],y=[&quot;'use strict'&quot;],x=[];for(m=0;m&lt;r;++m)x.push([&quot;s&quot;,m,&quot;=SS[&quot;,m,&quot;]&quot;].join(&quot;&quot;));for(c=0;c&lt;t.arrayArgs.length;++c){v.push(&quot;a&quot;+c),v.push(&quot;t&quot;+c),v.push(&quot;p&quot;+c);for(m=0;m&lt;r;++m)x.push([&quot;t&quot;,c,&quot;p&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,h[c]+m,&quot;]&quot;].join(&quot;&quot;));for(m=0;m&lt;Math.abs(t.arrayBlockIndices[c]);++m)x.push([&quot;t&quot;,c,&quot;b&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,u[c]+m,&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.scalarArgs.length;++c)v.push(&quot;Y&quot;+c);if(t.shapeArgs.length&gt;0&amp;&amp;x.push(&quot;shape=SS.slice(0)&quot;),t.indexArgs.length&gt;0){var b=new Array(r);for(c=0;c&lt;r;++c)b[c]=&quot;0&quot;;x.push([&quot;index=[&quot;,b.join(&quot;,&quot;),&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.offsetArgs.length;++c){var _=t.offsetArgs[c],w=[];for(m=0;m&lt;_.offset.length;++m)0!==_.offset[m]&amp;&amp;(1===_.offset[m]?w.push([&quot;t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)):w.push([_.offset[m],&quot;*t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)));0===w.length?x.push(&quot;q&quot;+c+&quot;=0&quot;):x.push([&quot;q&quot;,c,&quot;=&quot;,w.join(&quot;+&quot;)].join(&quot;&quot;))}var T=n([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));for((x=x.concat(T)).length&gt;0&amp;&amp;y.push(&quot;var &quot;+x.join(&quot;,&quot;)),c=0;c&lt;t.arrayArgs.length;++c)y.push(&quot;p&quot;+c+&quot;|=0&quot;);t.pre.body.length&gt;3&amp;&amp;y.push(a(t.pre,t,l));var k=a(t.body,t,l),A=function(t){for(var e=0,r=t[0].length;e&lt;r;){for(var n=1;n&lt;t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}(d);A&lt;r?y.push(function(t,e,r,n){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length&gt;0,c=[],u=0;u&lt;o;++u)c.push([&quot;var offset&quot;,u,&quot;=p&quot;,u].join(&quot;&quot;));for(u=t;u&lt;a;++u)c.push([&quot;for(var j&quot;+u+&quot;=SS[&quot;,e[u],&quot;]|0;j&quot;,u,&quot;&gt;0;){&quot;].join(&quot;&quot;)),c.push([&quot;if(j&quot;,u,&quot;&lt;&quot;,s,&quot;){&quot;].join(&quot;&quot;)),c.push([&quot;s&quot;,e[u],&quot;=j&quot;,u].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;=0&quot;].join(&quot;&quot;)),c.push([&quot;}else{s&quot;,e[u],&quot;=&quot;,s].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;-=&quot;,s,&quot;}&quot;].join(&quot;&quot;)),l&amp;&amp;c.push([&quot;index[&quot;,e[u],&quot;]=j&quot;,u].join(&quot;&quot;));for(u=0;u&lt;o;++u){for(var f=[&quot;offset&quot;+u],h=t;h&lt;a;++h)f.push([&quot;j&quot;,h,&quot;*t&quot;,u,&quot;p&quot;,e[h]].join(&quot;&quot;));c.push([&quot;p&quot;,u,&quot;=(&quot;,f.join(&quot;+&quot;),&quot;)&quot;].join(&quot;&quot;))}for(c.push(i(e,r,n)),u=t;u&lt;a;++u)c.push(&quot;}&quot;);return c.join(&quot;\n&quot;)}(A,d[0],t,k)):y.push(i(d[0],t,k)),t.post.body.length&gt;3&amp;&amp;y.push(a(t.post,t,l)),t.debug&amp;&amp;console.log(&quot;-----Generated cwise routine for &quot;,e,&quot;:\n&quot;+y.join(&quot;\n&quot;)+&quot;\n----------&quot;);var M=[t.funcName||&quot;unnamed&quot;,&quot;_cwise_loop_&quot;,s[0].join(&quot;s&quot;),&quot;m&quot;,A,o(l)].join(&quot;&quot;);return new Function([&quot;function &quot;,M,&quot;(&quot;,v.join(&quot;,&quot;),&quot;){&quot;,y.join(&quot;\n&quot;),&quot;} return &quot;,M].join(&quot;&quot;))()}},{uniq:619}],159:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./compile.js&quot;);e.exports=function(t){var e=[&quot;'use strict'&quot;,&quot;var CACHED={}&quot;],r=[],i=t.funcName+&quot;_cwise_thunk&quot;;e.push([&quot;return function &quot;,i,&quot;(&quot;,t.shimArgs.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var a=[],o=[],s=[[&quot;array&quot;,t.arrayArgs[0],&quot;.shape.slice(&quot;,Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]&lt;0?&quot;,&quot;+t.arrayBlockIndices[0]+&quot;)&quot;:&quot;)&quot;].join(&quot;&quot;)],l=[],c=[],u=0;u&lt;t.arrayArgs.length;++u){var f=t.arrayArgs[u];r.push([&quot;t&quot;,f,&quot;=array&quot;,f,&quot;.dtype,&quot;,&quot;r&quot;,f,&quot;=array&quot;,f,&quot;.order&quot;].join(&quot;&quot;)),a.push(&quot;t&quot;+f),a.push(&quot;r&quot;+f),o.push(&quot;t&quot;+f),o.push(&quot;r&quot;+f+&quot;.join()&quot;),s.push(&quot;array&quot;+f+&quot;.data&quot;),s.push(&quot;array&quot;+f+&quot;.stride&quot;),s.push(&quot;array&quot;+f+&quot;.offset|0&quot;),u&gt;0&amp;&amp;(l.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape.length===array&quot;+f+&quot;.shape.length+&quot;+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[u]))),c.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[0])+&quot;]===array&quot;+f+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[u])+&quot;]&quot;))}for(t.arrayArgs.length&gt;1&amp;&amp;(e.push(&quot;if (!(&quot;+l.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same dimensionality!')&quot;),e.push(&quot;for(var shapeIndex=array&quot;+t.arrayArgs[0]+&quot;.shape.length-&quot;+Math.abs(t.arrayBlockIndices[0])+&quot;; shapeIndex--\x3e0;) {&quot;),e.push(&quot;if (!(&quot;+c.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same shape!')&quot;),e.push(&quot;}&quot;)),u=0;u&lt;t.scalarArgs.length;++u)s.push(&quot;scalar&quot;+t.scalarArgs[u]);return r.push([&quot;type=[&quot;,o.join(&quot;,&quot;),&quot;].join()&quot;].join(&quot;&quot;)),r.push(&quot;proc=CACHED[type]&quot;),e.push(&quot;var &quot;+r.join(&quot;,&quot;)),e.push([&quot;if(!proc){&quot;,&quot;CACHED[type]=proc=compile([&quot;,a.join(&quot;,&quot;),&quot;])}&quot;,&quot;return proc(&quot;,s.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),t.debug&amp;&amp;console.log(&quot;-----Generated thunk:\n&quot;+e.join(&quot;\n&quot;)+&quot;\n----------&quot;),new Function(&quot;compile&quot;,e.join(&quot;\n&quot;))(n.bind(void 0,t))}},{&quot;./compile.js&quot;:158}],160:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;type/value/is&quot;),a=t(&quot;type/value/ensure&quot;),o=t(&quot;type/plain-function/ensure&quot;),s=t(&quot;es5-ext/object/copy&quot;),l=t(&quot;es5-ext/object/normalize-options&quot;),c=t(&quot;es5-ext/object/map&quot;),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,i=a(e)&amp;&amp;o(e.value);return delete(n=s(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&amp;&amp;h.call(this,t)?i:(e.value=u.call(i,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=l(arguments[1]);return i(e.resolveContext)&amp;&amp;o(e.resolveContext),c(t,(function(t,r){return n(r,t,e)}))}},{&quot;es5-ext/object/copy&quot;:205,&quot;es5-ext/object/map&quot;:213,&quot;es5-ext/object/normalize-options&quot;:214,&quot;type/plain-function/ensure&quot;:611,&quot;type/value/ensure&quot;:615,&quot;type/value/is&quot;:616}],161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;type/value/is&quot;),i=t(&quot;type/plain-function/is&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/normalize-options&quot;),s=t(&quot;es5-ext/string/#/contains&quot;);(e.exports=function(t,e){var r,i,l,c,u;return arguments.length&lt;2||&quot;string&quot;!=typeof t?(c=e,e=t,t=null):c=arguments[2],n(t)?(r=s.call(t,&quot;c&quot;),i=s.call(t,&quot;e&quot;),l=s.call(t,&quot;w&quot;)):(r=l=!0,i=!1),u={value:e,configurable:r,enumerable:i,writable:l},c?a(o(c),u):u}).gs=function(t,e,r){var l,c,u,f;return&quot;string&quot;!=typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],n(e)?i(e)?n(r)?i(r)||(u=r,r=void 0):r=void 0:(u=e,e=r=void 0):e=void 0,n(t)?(l=s.call(t,&quot;c&quot;),c=s.call(t,&quot;e&quot;)):(l=!0,c=!1),f={get:e,set:r,configurable:l,enumerable:c},u?a(o(u),f):f}},{&quot;es5-ext/object/assign&quot;:202,&quot;es5-ext/object/normalize-options&quot;:214,&quot;es5-ext/string/#/contains&quot;:221,&quot;type/plain-function/is&quot;:612,&quot;type/value/is&quot;:616}],162:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;void 0!==e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function r(t){var r;return 1===t.length&amp;&amp;(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o&lt;i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o&lt;i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a&gt;1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o&lt;a;)if(null!=(r=t[o])&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=t[o])&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r))}else for(;++o&lt;a;)if(null!=(r=e(t[o],o,t))&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=e(t[o],o,t))&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function g(t){return t}function m(t,e,r){t=+t,e=+e,r=(i=arguments.length)&lt;2?(e=t,t=0,1):i&lt;3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n&lt;i;)a[n]=t+n*r;return a}var v=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i&gt;=0?(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a&gt;=v?i*=10:a&gt;=y?i*=5:a&gt;=x&amp;&amp;(i*=2),e&lt;t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function T(t,e,r){if(null==r&amp;&amp;(r=s),n=t.length){if((e=+e)&lt;=0||n&lt;2)return+r(t[0],0,t);if(e&gt;=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;n&gt;r&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;n&gt;r&amp;&amp;(n=r);return n}function A(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,M),n=new Array(r);++e&lt;r;)for(var i,a=-1,o=n[e]=new Array(i);++a&lt;i;)o[a]=t[a][e];return n}function M(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&amp;&amp;(r=o),n=a=0;n&lt;l;++n)for(s=t[n],i=0;i&lt;c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=g,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a&lt;s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=m(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]&lt;=u;)h.shift(),--p;for(;h[p-1]&gt;f;)h.pop(),--p;var d,g=new Array(p+1);for(a=0;a&lt;=p;++a)(d=g[a]=[]).x0=a&gt;0?h[a-1]:u,d.x1=a&lt;p?h[a]:f;for(a=0;a&lt;s;++a)u&lt;=(o=l[a])&amp;&amp;o&lt;=f&amp;&amp;g[i(h,o,0,p)].push(n[a]);return g}return n.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=&quot;function&quot;==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;r&gt;n&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;r&gt;n&amp;&amp;(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a&lt;n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a&lt;n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a&lt;i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a&lt;i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return T(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&amp;&amp;(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=T,t.range=m,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&amp;&amp;(r=e);++a&lt;n;)(r(i=t[a],s)&lt;0||0!==r(s,s))&amp;&amp;(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i&lt;n;)(r=+t[i])&amp;&amp;(a+=r);else for(;++i&lt;n;)(r=+e(t[i],i,t))&amp;&amp;(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)===(e=+e)&amp;&amp;r&gt;0)return[t];if((n=e&lt;t)&amp;&amp;(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o&gt;0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s&lt;i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s&lt;i;)a[s]=(t-s)/o;return n&amp;&amp;a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=A,t.variance=l,t.zip=function(){return A(arguments)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],163:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;void 0!==e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a&lt;o;)n.set(a,t[a]);else for(;++a&lt;o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}e.prototype=r.prototype={constructor:e,has:function(t){return&quot;$&quot;+t in this},get:function(t){return this[&quot;$&quot;+t]},set:function(t,e){return this[&quot;$&quot;+t]=e,this},remove:function(t){var e=&quot;$&quot;+t;return e in this&amp;&amp;delete this[e]},clear:function(){for(var t in this)&quot;$&quot;===t[0]&amp;&amp;delete this[t]},keys:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)&quot;$&quot;===e[0]&amp;&amp;++t;return t},empty:function(){for(var t in this)if(&quot;$&quot;===t[0])return!1;return!0},each:function(t){for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t(this[e],e.slice(1),this)}};var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each((function(t){r.add(t)}));else if(t){var n=-1,i=t.length;if(null==e)for(;++n&lt;i;)r.add(t[n]);else for(;++n&lt;i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[&quot;$&quot;+(t+=&quot;&quot;)]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each},t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i&gt;=l.length)return null!=t&amp;&amp;n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=r(),m=a();++h&lt;p;)(f=g.get(s=d(c=n[h])+&quot;&quot;))?f.push(c):g.set(s,[c]);return g.each((function(t,e){o(m,e,u(t,i,a,o))})),m}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n&gt;l.length)return r;var i,a=c[n-1];return null!=e&amp;&amp;n&gt;=l.length?i=r.entries():(i=[],r.each((function(e,r){i.push({key:r,values:t(e,n)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],164:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=&quot;\\s*([+-]?\\d+)\\s*&quot;,a=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*&quot;,o=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*&quot;,s=/^#([0-9a-f]{3,8})$/,l=new RegExp(&quot;^rgb\\(&quot;+[i,i,i]+&quot;\\)$&quot;),c=new RegExp(&quot;^rgb\\(&quot;+[o,o,o]+&quot;\\)$&quot;),u=new RegExp(&quot;^rgba\\(&quot;+[i,i,i,a]+&quot;\\)$&quot;),f=new RegExp(&quot;^rgba\\(&quot;+[o,o,o,a]+&quot;\\)$&quot;),h=new RegExp(&quot;^hsl\\(&quot;+[a,o,o]+&quot;\\)$&quot;),p=new RegExp(&quot;^hsla\\(&quot;+[a,o,o,a]+&quot;\\)$&quot;),d={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function g(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function v(t){var e,r;return t=(t+&quot;&quot;).trim().toLowerCase(),(e=s.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?y(e):3===r?new w(e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,(15&amp;e)&lt;&lt;4|15&amp;e,1):8===r?x(e&gt;&gt;24&amp;255,e&gt;&gt;16&amp;255,e&gt;&gt;8&amp;255,(255&amp;e)/255):4===r?x(e&gt;&gt;12&amp;15|e&gt;&gt;8&amp;240,e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,((15&amp;e)&lt;&lt;4|15&amp;e)/255):null):(e=l.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?M(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?M(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?y(d[t]):&quot;transparent&quot;===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t&gt;&gt;16&amp;255,t&gt;&gt;8&amp;255,255&amp;t,1)}function x(t,e,r,n){return n&lt;=0&amp;&amp;(t=e=r=NaN),new w(t,e,r,n)}function b(t){return t instanceof n||(t=v(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,r,n){return 1===arguments.length?b(t):new w(t,e,r,null==n?1:n)}function w(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function T(){return&quot;#&quot;+A(this.r)+A(this.g)+A(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;rgb(&quot;:&quot;rgba(&quot;)+Math.max(0,Math.min(255,Math.round(this.r)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.g)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}function A(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))&lt;16?&quot;0&quot;:&quot;&quot;)+t.toString(16)}function M(t,e,r,n){return n&lt;=0?t=e=r=NaN:r&lt;=0||r&gt;=1?t=e=NaN:e&lt;=0&amp;&amp;(t=NaN),new L(t,e,r,n)}function S(t){if(t instanceof L)return new L(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new L;if(t instanceof L)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r&lt;i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c&lt;.5?o+a:2-o-a,s*=60):l=c&gt;0&amp;&amp;c&lt;1?0:s,new L(s,l,c,t.opacity)}function E(t,e,r,n){return 1===arguments.length?S(t):new L(t,e,r,null==n?1:n)}function L(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function C(t,e,r){return 255*(t&lt;60?e+(r-e)*t/60:t&lt;180?r:t&lt;240?e+(r-e)*(240-t)/60:e)}e(n,v,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return S(this).formatHsl()},formatRgb:m,toString:m}),e(w,_,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5&lt;=this.r&amp;&amp;this.r&lt;255.5&amp;&amp;-.5&lt;=this.g&amp;&amp;this.g&lt;255.5&amp;&amp;-.5&lt;=this.b&amp;&amp;this.b&lt;255.5&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},hex:T,formatHex:T,formatRgb:k,toString:k})),e(L,E,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new L(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new L(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h&lt;0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r&lt;.5?r:1-r)*e,i=2*r-n;return new w(C(t&gt;=240?t-240:t+120,i,n),C(t,i,n),C(t&lt;120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0&lt;=this.s&amp;&amp;this.s&lt;=1||isNaN(this.s))&amp;&amp;0&lt;=this.l&amp;&amp;this.l&lt;=1&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;hsl(&quot;:&quot;hsla(&quot;)+(this.h||0)+&quot;, &quot;+100*(this.s||0)+&quot;%, &quot;+100*(this.l||0)+&quot;%&quot;+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}}));var P=Math.PI/180,I=180/Math.PI,O=6/29,z=3*O*O;function D(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof H)return G(t);t instanceof w||(t=b(t));var e,r,n=U(t.r),i=U(t.g),a=U(t.b),o=B((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&amp;&amp;i===a?e=r=o:(e=B((.4360747*n+.3850649*i+.1430804*a)/.96422),r=B((.0139322*n+.0971045*i+.7141733*a)/.82521)),new F(116*o-16,500*(e-o),200*(o-r),t.opacity)}function R(t,e,r,n){return 1===arguments.length?D(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function B(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/z+4/29}function N(t){return t&gt;O?t*t*t:z*(t-4/29)}function j(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof H)return new H(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=D(t)),0===t.a&amp;&amp;0===t.b)return new H(NaN,0&lt;t.l&amp;&amp;t.l&lt;100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*I;return new H(e&lt;0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function q(t,e,r,n){return 1===arguments.length?V(t):new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function G(t){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*P;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(F,R,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new w(j(3.1338561*(e=.96422*N(e))-1.6168667*(t=1*N(t))-.4906146*(r=.82521*N(r))),j(-.9787684*e+1.9161415*t+.033454*r),j(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(H,q,r(n,{brighter:function(t){return new H(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new H(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return G(this).rgb()}}));var Y=-.14861,W=1.78277,X=-.29227,Z=-.90649,J=1.97294,K=J*Z,Q=J*W,$=W*X-Z*Y;function tt(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);t instanceof w||(t=b(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=($*n+K*e-Q*r)/($+K-Q),a=n-i,o=(J*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/(J*i*(1-i)),l=s?Math.atan2(o,a)*I-120:NaN;return new rt(l&lt;0?l+360:l,s,i,t.opacity)}function et(t,e,r,n){return 1===arguments.length?tt(t):new rt(t,e,r,null==n?1:n)}function rt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(rt,et,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*P,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new w(255*(e+r*(Y*n+W*i)),255*(e+r*(X*n+Z*i)),255*(e+r*(J*n)),this.opacity)}})),t.color=v,t.cubehelix=et,t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.hcl=q,t.hsl=E,t.lab=R,t.lch=function(t,e,r,n){return 1===arguments.length?V(t):new H(r,e,t,null==n?1:n)},t.rgb=_,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],165:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e&lt;r;++e){if(!(t=arguments[e]+&quot;&quot;)||t in i||/[\s.]/.test(t))throw new Error(&quot;illegal type: &quot;+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){return t.trim().split(/^|\s+/).map((function(t){var r=&quot;&quot;,n=t.indexOf(&quot;.&quot;);if(n&gt;=0&amp;&amp;(r=t.slice(n+1),t=t.slice(0,n)),t&amp;&amp;!e.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n&lt;i;++n)if((r=t[n]).name===e)return r.value}function o(t,r,n){for(var i=0,a=t.length;i&lt;a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&amp;&amp;t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n=this._,s=i(t+&quot;&quot;,n),l=-1,c=s.length;if(!(arguments.length&lt;2)){if(null!=e&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;invalid callback: &quot;+e);for(;++l&lt;c;)if(r=(t=s[l]).type)n[r]=o(n[r],t.name,e);else if(null==e)for(r in n)n[r]=o(n[r],t.name,null);return this}for(;++l&lt;c;)if((r=(t=s[l]).type)&amp;&amp;(r=a(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)&gt;0)for(var r,n,i=new Array(r),a=0;a&lt;r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(a=0,r=(n=this._[t]).length;a&lt;r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(var n=this._[t],i=0,a=n.length;i&lt;a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],166:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-quadtree&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-dispatch&quot;),t(&quot;d3-timer&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return function(){return t}}function o(){return 1e-6*(Math.random()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function f(t){return t.x}function h(t){return t.y}var p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n&lt;a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n&lt;a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&amp;&amp;(t=0),null==e&amp;&amp;(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,g,m=r.length,v=0;v&lt;c;++v)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t&lt;m;++t)u=r[t],d=n[u.index],g=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e&gt;h+c||n&lt;h-c||r&gt;p+c||a&lt;p-c;if(s.index&gt;u.index){var f=h-s.x-s.vx,m=p-s.y-s.vy,v=f*f+m*m;v&lt;c*c&amp;&amp;(0===f&amp;&amp;(v+=(f=o())*f),0===m&amp;&amp;(v+=(m=o())*m),v=(c-(v=Math.sqrt(v)))/v*i,u.vx+=(f*=v)*(c=(l*=l)/(g+l)),u.vy+=(m*=v)*c,s.vx-=f*(c=1-c),s.vy-=m*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e&lt;4;++e)t[e]&amp;&amp;t[e].r&gt;t.r&amp;&amp;(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e&lt;a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function g(r){for(var i=0,a=t.length;i&lt;d;++i)for(var s,c,u,f,h,p,g,m=0;m&lt;a;++m)c=(s=t[m]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[m])/p*r*e[m],h*=p,u.vx-=f*(g=l[m]),u.vy-=h*g,c.vx+=f*(g=1-g),c.vy+=h*g}function m(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a&lt;h;++a)(o=t[a]).index=a,&quot;object&quot;!=typeof o.source&amp;&amp;(o.source=u(p,o.source)),&quot;object&quot;!=typeof o.target&amp;&amp;(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a&lt;h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),v(),n=new Array(h),y()}}function v(){if(i)for(var r=0,n=t.length;r&lt;n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e&lt;r;++e)n[e]=+p(t[e],e,t)}return null==t&amp;&amp;(t=[]),g.initialize=function(t){i=t,m()},g.links=function(e){return arguments.length?(t=e,m(),g):t},g.id=function(t){return arguments.length?(f=t,g):f},g.iterations=function(t){return arguments.length?(d=+t,g):d},g.strength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:a(+t),v(),g):h},g.distance=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:a(+t),y(),g):p},g},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(g);for(n=i,a=0;a&lt;o;++a)r=t[a],s.visit(m)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e&lt;n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function g(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o&lt;4;++o)(e=t[o])&amp;&amp;(r=Math.abs(e.value))&amp;&amp;(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function m(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u&lt;d)return d&lt;c&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d&gt;=c)){(t.data!==r||t.next)&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)));do{t.data!==r&amp;&amp;(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a&lt;s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e&lt;r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(+t)),null==e&amp;&amp;(e=0),null==r&amp;&amp;(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(d),h=n.dispatch(&quot;tick&quot;,&quot;end&quot;);function d(){g(),h.call(&quot;tick&quot;,e),a&lt;o&amp;&amp;(f.stop(),h.call(&quot;end&quot;,e))}function g(r){var n,i,o=t.length;void 0===r&amp;&amp;(r=1);for(var f=0;f&lt;r;++f)for(a+=(l-a)*s,u.each((function(t){t(a)})),n=0;n&lt;o;++n)null==(i=t[n]).fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return e}function m(){for(var e,r=0,n=t.length;r&lt;n;++r){if((e=t[r]).index=r,null!=e.fx&amp;&amp;(e.x=e.fx),null!=e.fy&amp;&amp;(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(r),a=r*p;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&amp;&amp;(e.vx=e.vy=0)}}function v(e){return e.initialize&amp;&amp;e.initialize(t),e}return null==t&amp;&amp;(t=[]),m(),e={tick:g,restart:function(){return f.restart(d),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,m(),u.each(v),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length&gt;1?(null==r?u.remove(t):u.set(t,v(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c&lt;u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)&lt;n&amp;&amp;(l=s,n=o);return l},on:function(t,r){return arguments.length&gt;1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-collection&quot;:163,&quot;d3-dispatch&quot;:165,&quot;d3-quadtree&quot;:173,&quot;d3-timer&quot;:178}],167:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=&quot;undefined&quot;!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf(&quot;e&quot;))&lt;0)return null;var r,n=t.slice(0,r);return[n.length&gt;1?n[0]+n.slice(2):n,+t.slice(r+1)]}function r(t){return(t=e(Math.abs(t)))?t[1]:NaN}var n,i=/^(?:(.)?([&lt;&gt;=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(t){if(!(e=i.exec(t)))throw new Error(&quot;invalid format: &quot;+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&amp;&amp;e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?&quot; &quot;:t.fill+&quot;&quot;,this.align=void 0===t.align?&quot;&gt;&quot;:t.align+&quot;&quot;,this.sign=void 0===t.sign?&quot;-&quot;:t.sign+&quot;&quot;,this.symbol=void 0===t.symbol?&quot;&quot;:t.symbol+&quot;&quot;,this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?&quot;&quot;:t.type+&quot;&quot;}function s(t,r){var n=e(t,r);if(!n)return t+&quot;&quot;;var i=n[0],a=n[1];return a&lt;0?&quot;0.&quot;+new Array(-a).join(&quot;0&quot;)+i:i.length&gt;a+1?i.slice(0,a+1)+&quot;.&quot;+i.slice(a+1):i+new Array(a-i.length+2).join(&quot;0&quot;)}a.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?&quot;0&quot;:&quot;&quot;)+(void 0===this.width?&quot;&quot;:Math.max(1,0|this.width))+(this.comma?&quot;,&quot;:&quot;&quot;)+(void 0===this.precision?&quot;&quot;:&quot;.&quot;+Math.max(0,0|this.precision))+(this.trim?&quot;~&quot;:&quot;&quot;)+this.type};var l={&quot;%&quot;:function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+&quot;&quot;},d:function(t){return Math.abs(t=Math.round(t))&gt;=1e21?t.toLocaleString(&quot;en&quot;).replace(/,/g,&quot;&quot;):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,r){var i=e(t,r);if(!i)return t+&quot;&quot;;var a=i[0],o=i[1],s=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=a.length;return s===l?a:s&gt;l?a+new Array(s-l+1).join(&quot;0&quot;):s&gt;0?a.slice(0,s)+&quot;.&quot;+a.slice(s):&quot;0.&quot;+new Array(1-s).join(&quot;0&quot;)+e(t,Math.max(0,r+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var u,f=Array.prototype.map,h=[&quot;y&quot;,&quot;z&quot;,&quot;a&quot;,&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\xb5&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;,&quot;E&quot;,&quot;Z&quot;,&quot;Y&quot;];function p(t){var e,i,o=void 0===t.grouping||void 0===t.thousands?c:(e=f.call(t.grouping,Number),i=t.thousands+&quot;&quot;,function(t,r){for(var n=t.length,a=[],o=0,s=e[0],l=0;n&gt;0&amp;&amp;s&gt;0&amp;&amp;(l+s+1&gt;r&amp;&amp;(s=Math.max(1,r-l)),a.push(t.substring(n-=s,n+s)),!((l+=s+1)&gt;r));)s=e[o=(o+1)%e.length];return a.reverse().join(i)}),s=void 0===t.currency?&quot;&quot;:t.currency[0]+&quot;&quot;,u=void 0===t.currency?&quot;&quot;:t.currency[1]+&quot;&quot;,p=void 0===t.decimal?&quot;.&quot;:t.decimal+&quot;&quot;,d=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(f.call(t.numerals,String)),g=void 0===t.percent?&quot;%&quot;:t.percent+&quot;&quot;,m=void 0===t.minus?&quot;-&quot;:t.minus+&quot;&quot;,v=void 0===t.nan?&quot;NaN&quot;:t.nan+&quot;&quot;;function y(t){var e=(t=a(t)).fill,r=t.align,i=t.sign,c=t.symbol,f=t.zero,y=t.width,x=t.comma,b=t.precision,_=t.trim,w=t.type;&quot;n&quot;===w?(x=!0,w=&quot;g&quot;):l[w]||(void 0===b&amp;&amp;(b=12),_=!0,w=&quot;g&quot;),(f||&quot;0&quot;===e&amp;&amp;&quot;=&quot;===r)&amp;&amp;(f=!0,e=&quot;0&quot;,r=&quot;=&quot;);var T=&quot;$&quot;===c?s:&quot;#&quot;===c&amp;&amp;/[boxX]/.test(w)?&quot;0&quot;+w.toLowerCase():&quot;&quot;,k=&quot;$&quot;===c?u:/[%p]/.test(w)?g:&quot;&quot;,A=l[w],M=/[defgprs%]/.test(w);function S(t){var a,s,l,c=T,u=k;if(&quot;c&quot;===w)u=A(t)+u,t=&quot;&quot;;else{var g=(t=+t)&lt;0||1/t&lt;0;if(t=isNaN(t)?v:A(Math.abs(t),b),_&amp;&amp;(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n&lt;r;++n)switch(t[n]){case&quot;.&quot;:i=e=n;break;case&quot;0&quot;:0===i&amp;&amp;(i=n),e=n;break;default:if(!+t[n])break t;i&gt;0&amp;&amp;(i=0)}return i&gt;0?t.slice(0,i)+t.slice(e+1):t}(t)),g&amp;&amp;0==+t&amp;&amp;&quot;+&quot;!==i&amp;&amp;(g=!1),c=(g?&quot;(&quot;===i?i:m:&quot;-&quot;===i||&quot;(&quot;===i?&quot;&quot;:i)+c,u=(&quot;s&quot;===w?h[8+n/3]:&quot;&quot;)+u+(g&amp;&amp;&quot;(&quot;===i?&quot;)&quot;:&quot;&quot;),M)for(a=-1,s=t.length;++a&lt;s;)if(48&gt;(l=t.charCodeAt(a))||l&gt;57){u=(46===l?p+t.slice(a+1):t.slice(a))+u,t=t.slice(0,a);break}}x&amp;&amp;!f&amp;&amp;(t=o(t,1/0));var S=c.length+t.length+u.length,E=S&lt;y?new Array(y-S+1).join(e):&quot;&quot;;switch(x&amp;&amp;f&amp;&amp;(t=o(E+t,E.length?y-u.length:1/0),E=&quot;&quot;),r){case&quot;&lt;&quot;:t=c+t+u+E;break;case&quot;=&quot;:t=c+E+t+u;break;case&quot;^&quot;:t=E.slice(0,S=E.length&gt;&gt;1)+c+t+u+E.slice(S);break;default:t=E+c+t+u}return d(t)}return b=void 0===b?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return t+&quot;&quot;},S}return{format:y,formatPrefix:function(t,e){var n=y(((t=a(t)).type=&quot;f&quot;,t)),i=3*Math.max(-8,Math.min(8,Math.floor(r(e)/3))),o=Math.pow(10,-i),s=h[8+i/3];return function(t){return n(o*t)+s}}}}function d(e){return u=p(e),t.format=u.format,t.formatPrefix=u.formatPrefix,u}d({decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],minus:&quot;-&quot;}),t.FormatSpecifier=o,t.formatDefaultLocale=d,t.formatLocale=p,t.formatSpecifier=a,t.precisionFixed=function(t){return Math.max(0,-r(Math.abs(t)))},t.precisionPrefix=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(e)/3)))-r(Math.abs(t)))},t.precisionRound=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,r(e)-r(t))+1},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],168:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-geo&quot;),t(&quot;d3-array&quot;)):i(n.d3=n.d3||{},n.d3,n.d3)}(this,(function(t,e,r){&quot;use strict&quot;;var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,c=Math.log,u=Math.max,f=Math.min,h=Math.pow,p=Math.round,d=Math.sign||function(t){return t&gt;0?1:t&lt;0?-1:0},g=Math.sin,m=Math.tan,v=1e-6,y=Math.PI,x=y/2,b=y/4,_=Math.SQRT1_2,w=L(2),T=L(y),k=2*y,A=180/y,M=y/180;function S(t){return t&gt;1?x:t&lt;-1?-x:Math.asin(t)}function E(t){return t&gt;1?0:t&lt;-1?y:Math.acos(t)}function L(t){return t&gt;0?Math.sqrt(t):0}function C(t){return(s(t)-s(-t))/2}function P(t){return(s(t)+s(-t))/2}function I(t){var e=m(t/2),r=2*c(o(t/2))/(e*e);function i(t,e){var n=o(t),i=o(e),a=g(e),s=i*n,l=-((1-s?c((1+s)/2)/(1-s):-.5)+r/(1+s));return[l*i*g(t),l*a]}return i.invert=function(e,i){var s,l=L(e*e+i*i),u=-t/2,f=50;if(!l)return[0,0];do{var h=u/2,p=o(h),d=g(h),m=d/p,y=-c(n(p));u-=s=(2/m*y-r*m-l)/(-y/(d*d)+1-r/(2*p*p))*(p&lt;0?.7:1)}while(n(s)&gt;v&amp;&amp;--f&gt;0);var x=g(u);return[a(e*x,l*o(u)),S(i*x/l)]},i}function O(t,e){var r=o(e),n=function(t){return t?t/Math.sin(t):1}(E(r*o(t/=2)));return[2*r*g(t)*n,g(e)*n]}function z(t){var e=g(t),r=o(t),i=t&gt;=0?1:-1,s=m(i*t),l=(1+e-r)/2;function c(t,n){var c=o(n),u=o(t/=2);return[(1+c)*g(t),(i*n&gt;-a(u,s)-.001?0:10*-i)+l+g(n)*r-(1+c)*e*u]}return c.invert=function(t,c){var u=0,f=0,h=50;do{var p=o(u),d=g(u),m=o(f),y=g(f),x=1+m,b=x*d-t,_=l+y*r-x*e*p-c,w=x*p/2,T=-d*y,k=e*x*d/2,A=r*m+e*p*y,M=T*k-A*w,S=(_*T-b*A)/M/2,E=(b*k-_*w)/M;n(E)&gt;2&amp;&amp;(E/=2),u-=S,f-=E}while((n(S)&gt;v||n(E)&gt;v)&amp;&amp;--h&gt;0);return i*f&gt;-a(o(u),s)-.001?[2*u,f]:null},c}function D(t,e){var r=m(e/2),n=L(1-r*r),i=1+n*o(t/=2),a=g(t)*n/i,s=r/i,l=a*a,c=s*s;return[4/3*a*(3+l-3*c),4/3*s*(3+3*l-c)]}O.invert=function(t,e){if(!(t*t+4*e*e&gt;y*y+v)){var r=t,i=e,a=25;do{var s,l=g(r),c=g(r/2),u=o(r/2),f=g(i),h=o(i),p=g(2*i),d=f*f,m=h*h,x=c*c,b=1-m*u*u,_=b?E(h*u)*L(s=1/b):s=0,w=2*_*h*c-t,T=_*f-e,k=s*(m*x+_*h*u*d),A=s*(.5*l*p-2*_*f*c),M=.25*s*(p*c-_*f*m*l),S=s*(d*u+_*x*h),C=A*M-S*k;if(!C)break;var P=(T*A-w*S)/C,I=(w*M-T*k)/C;r-=P,i-=I}while((n(P)&gt;v||n(I)&gt;v)&amp;&amp;--a&gt;0);return[r,i]}},D.invert=function(t,e){if(e*=3/8,!(t*=3/8)&amp;&amp;n(e)&gt;1)return null;var r=1+t*t+e*e,i=L((r-L(r*r-4*e*e))/2),s=S(i)/3,l=i?function(t){return c(t+L(t*t-1))}(n(e/i))/3:function(t){return c(t+L(t*t+1))}(n(t))/3,u=o(s),f=P(l),h=f*f-u*u;return[2*d(t)*a(C(l)*u,.25-h),2*d(e)*a(f*g(s),.25+h)]};var R=L(8),F=c(1+w);function B(t,e){var r=n(e);return r&lt;b?[t,c(m(b+e/2))]:[t*o(r)*(2*w-1/g(r)),d(e)*(2*w*(r-b)-c(m(r/2)))]}function N(t){var r=2*y/t;function s(t,i){var s=e.geoAzimuthalEquidistantRaw(t,i);if(n(t)&gt;x){var l=a(s[1],s[0]),c=L(s[0]*s[0]+s[1]*s[1]),u=r*p((l-x)/r)+x,f=a(g(l-=u),2-o(l));l=u+S(y/c*g(f))-f,s[0]=c*o(l),s[1]=c*g(l)}return s}return s.invert=function(t,n){var s=L(t*t+n*n);if(s&gt;x){var l=a(n,t),c=r*p((l-x)/r)+x,u=l&gt;c?-1:1,f=s*o(c-l),h=1/m(u*E((f-y)/L(y*(y-2*f)+s*s)));l=c+2*i((h+u*L(h*h-3))/3),t=s*o(l),n=s*g(l)}return e.geoAzimuthalEquidistantRaw.invert(t,n)},s}function j(t,r){if(arguments.length&lt;2&amp;&amp;(r=t),1===r)return e.geoAzimuthalEqualAreaRaw;if(r===1/0)return U;function n(n,i){var a=e.geoAzimuthalEqualAreaRaw(n/r,i);return a[0]*=t,a}return n.invert=function(n,i){var a=e.geoAzimuthalEqualAreaRaw.invert(n/t,i);return a[0]*=r,a},n}function U(t,e){return[t*o(e)/o(e/=2),2*g(e)]}function V(t,e,r){var i,a,o,s=100;r=void 0===r?0:+r,e=+e;do{(a=t(r))===(o=t(r+v))&amp;&amp;(o=a+v),r-=i=-1*v*(a-e)/(a-o)}while(s-- &gt;0&amp;&amp;n(i)&gt;v);return s&lt;0?NaN:r}function q(t,e,r){return void 0===e&amp;&amp;(e=40),void 0===r&amp;&amp;(r=1e-12),function(i,a,o,s){var l,c,u;o=void 0===o?0:+o,s=void 0===s?0:+s;for(var f=0;f&lt;e;f++){var h=t(o,s),p=h[0]-i,d=h[1]-a;if(n(p)&lt;r&amp;&amp;n(d)&lt;r)break;var g=p*p+d*d;if(g&gt;l)o-=c/=2,s-=u/=2;else{l=g;var m=(o&gt;0?-1:1)*r,v=(s&gt;0?-1:1)*r,y=t(o+m,s),x=t(o,s+v),b=(y[0]-h[0])/m,_=(y[1]-h[1])/m,w=(x[0]-h[0])/v,T=(x[1]-h[1])/v,k=T*b-_*w,A=(n(k)&lt;.5?.5:1)/k;if(o+=c=(d*w-p*T)*A,s+=u=(p*_-d*b)*A,n(c)&lt;r&amp;&amp;n(u)&lt;r)break}}return[o,s]}}function H(){var t=j(1.68,2);function e(e,r){if(e+r&lt;-1.4){var n=(e-r+1.6)*(e+r+1.4)/8;e+=n,r-=.8*n*g(r+y/2)}var i=t(e,r),a=(1-o(e*r))/12;return i[1]&lt;0&amp;&amp;(i[0]*=1+a),i[1]&gt;0&amp;&amp;(i[1]*=1+a/1.5*i[0]*i[0]),i}return e.invert=q(e),e}function G(t,e){var r,i=t*g(e),a=30;do{e-=r=(e+g(e)-i)/(1+o(e))}while(n(r)&gt;v&amp;&amp;--a&gt;0);return e/2}function Y(t,e,r){function n(n,i){return[t*n*o(i=G(r,i)),e*g(i)]}return n.invert=function(n,i){return i=S(i/e),[n/(t*o(i)),S((2*i+g(2*i))/r)]},n}B.invert=function(t,e){if((a=n(e))&lt;F)return[t,2*i(s(e))-x];var r,a,l=b,u=25;do{var f=o(l/2),h=m(l/2);l-=r=(R*(l-b)-c(h)-a)/(R-f*f/(2*h))}while(n(r)&gt;1e-12&amp;&amp;--u&gt;0);return[t/(o(l)*(R-1/g(l))),d(e)*l]},U.invert=function(t,e){var r=2*S(e/2);return[t*o(r/2)/o(r),r]};var W=Y(w/x,w,y);var X=2.00276,Z=1.11072;function J(t,e){var r=G(y,e);return[X*t/(1/o(e)+Z/o(r)),(e+w*g(r))/X]}function K(t){var r=0,n=e.geoProjectionMutator(t),i=n(r);return i.parallel=function(t){return arguments.length?n(r=t*M):r*A},i}function Q(t,e){return[t*o(e),e]}function $(t){if(!t)return Q;var e=1/m(t);function r(r,n){var i=e+t-n,a=i?r*o(n)/i:i;return[i*g(a),e-i*o(a)]}return r.invert=function(r,n){var i=L(r*r+(n=e-n)*n),s=e+t-i;return[i/o(s)*a(r,n),s]},r}function tt(t){function e(e,r){var n=x-r,i=n?e*t*g(n)/n:n;return[n*g(i)/t,x-n*o(i)]}return e.invert=function(e,r){var n=e*t,i=x-r,o=L(n*n+i*i),s=a(n,i);return[(o?o/g(o):1)*s/t,x-o]},e}J.invert=function(t,e){var r,i,a=X*e,s=e&lt;0?-b:b,l=25;do{i=a-w*g(s),s-=r=(g(2*s)+2*s-y*g(i))/(2*o(2*s)+2+y*o(i)*w*o(s))}while(n(r)&gt;v&amp;&amp;--l&gt;0);return i=a-w*g(s),[t*(1/o(i)+Z/o(s))/X,i]},Q.invert=function(t,e){return[t/o(e),e]};var et=Y(1,4/y,y);function rt(t,e,r,i,s,l){var c,u=o(l);if(n(t)&gt;1||n(l)&gt;1)c=E(r*s+e*i*u);else{var f=g(t/2),h=g(l/2);c=2*S(L(f*f+e*i*h*h))}return n(c)&gt;v?[c,a(i*g(l),e*s-r*i*u)]:[0,0]}function nt(t,e,r){return E((t*t+e*e-r*r)/(2*t*e))}function it(t){return t-2*y*l((t+y)/(2*y))}function at(t,e,r){for(var n,i=[[t[0],t[1],g(t[1]),o(t[1])],[e[0],e[1],g(e[1]),o(e[1])],[r[0],r[1],g(r[1]),o(r[1])]],a=i[2],s=0;s&lt;3;++s,a=n)n=i[s],a.v=rt(n[1]-a[1],a[3],a[2],n[3],n[2],n[0]-a[0]),a.point=[0,0];var l=nt(i[0].v[0],i[2].v[0],i[1].v[0]),c=nt(i[0].v[0],i[1].v[0],i[2].v[0]),u=y-l;i[2].point[1]=0,i[0].point[0]=-(i[1].point[0]=i[0].v[0]/2);var f=[i[2].point[0]=i[0].point[0]+i[2].v[0]*o(l),2*(i[0].point[1]=i[1].point[1]=i[2].v[0]*g(l))];return function(t,e){var r,n=g(e),a=o(e),s=new Array(3);for(r=0;r&lt;3;++r){var l=i[r];if(s[r]=rt(e-l[1],l[3],l[2],a,n,t-l[0]),!s[r][0])return l.point;s[r][1]=it(s[r][1]-l.v[1])}var h=f.slice();for(r=0;r&lt;3;++r){var p=2==r?0:r+1,d=nt(i[r].v[0],s[r][0],s[p][0]);s[r][1]&lt;0&amp;&amp;(d=-d),r?1==r?(d=c-d,h[0]-=s[r][0]*o(d),h[1]-=s[r][0]*g(d)):(d=u-d,h[0]+=s[r][0]*o(d),h[1]+=s[r][0]*g(d)):(h[0]+=s[r][0]*o(d),h[1]-=s[r][0]*g(d))}return h[0]/=3,h[1]/=3,h}}function ot(t){return t[0]*=M,t[1]*=M,t}function st(t,r,n){var i=e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:[t,r,n]}),a=[-i[0],-i[1]],o=e.geoRotation(a),s=at(ot(o(t)),ot(o(r)),ot(o(n)));s.invert=q(s);var l=e.geoProjection(s).rotate(a),c=l.center;return delete l.rotate,l.center=function(t){return arguments.length?c(o(t)):o.invert(c())},l.clipAngle(90)}function lt(t,e){var r=L(1-g(e));return[2/T*t*r,T*(1-r)]}function ct(t){var e=m(t);function r(t,r){return[t,(t?t/g(t):1)*(g(r)*o(t)-e*o(r))]}return r.invert=e?function(t,r){t&amp;&amp;(r*=g(t)/t);var n=o(t);return[t,2*a(L(n*n+e*e-r*r)-n,e-r)]}:function(t,e){return[t,S(t?e*m(t)/t:e)]},r}lt.invert=function(t,e){var r=(r=e/T-1)*r;return[r&gt;0?t*L(y/r)/2:0,S(1-r)]};var ut=L(3);function ft(t,e){return[ut*t*(2*o(2*e/3)-1)/T,ut*T*g(e/3)]}function ht(t){var e=o(t);function r(t,r){return[t*e,g(r)/e]}return r.invert=function(t,r){return[t/e,S(r*e)]},r}function pt(t){var e=o(t);function r(t,r){return[t*e,(1+e)*m(r/2)]}return r.invert=function(t,r){return[t/e,2*i(r/(1+e))]},r}function dt(t,e){var r=L(8/(3*y));return[r*t*(1-n(e)/y),r*e]}function gt(t,e){var r=L(4-3*g(n(e)));return[2/L(6*y)*t*r,d(e)*L(2*y/3)*(2-r)]}function mt(t,e){var r=L(y*(4+y));return[2/r*t*(1+L(1-4*e*e/(y*y))),4/r*e]}function vt(t,e){var r=(2+x)*g(e);e/=2;for(var i=0,a=1/0;i&lt;10&amp;&amp;n(a)&gt;v;i++){var s=o(e);e-=a=(e+g(e)*(s+2)-r)/(2*s*(1+s))}return[2/L(y*(4+y))*t*(1+o(e)),2*L(y/(4+y))*g(e)]}function yt(t,e){return[t*(1+o(e))/L(2+y),2*e/L(2+y)]}function xt(t,e){for(var r=(1+x)*g(e),i=0,a=1/0;i&lt;10&amp;&amp;n(a)&gt;v;i++)e-=a=(e+g(e)-r)/(1+o(e));return r=L(2+y),[t*(1+o(e))/r,2*e/r]}ft.invert=function(t,e){var r=3*S(e/(ut*T));return[T*t/(ut*(2*o(2*r/3)-1)),r]},dt.invert=function(t,e){var r=L(8/(3*y)),i=e/r;return[t/(r*(1-n(i)/y)),i]},gt.invert=function(t,e){var r=2-n(e)/L(2*y/3);return[t*L(6*y)/(2*r),d(e)*S((4-r*r)/3)]},mt.invert=function(t,e){var r=L(y*(4+y))/2;return[t*r/(1+L(1-e*e*(4+y)/(4*y))),e*r/2]},vt.invert=function(t,e){var r=e*L((4+y)/y)/2,n=S(r),i=o(n);return[t/(2/L(y*(4+y))*(1+i)),S((n+r*(i+2))/(2+x))]},yt.invert=function(t,e){var r=L(2+y),n=e*r/2;return[r*t/(1+o(n)),n]},xt.invert=function(t,e){var r=1+x,n=L(r/2);return[2*t*n/(1+o(e*=n)),S((e+g(e))/r)]};var bt=3+2*w;function _t(t,e){var r=g(t/=2),n=o(t),a=L(o(e)),s=o(e/=2),l=g(e)/(s+w*n*a),u=L(2/(1+l*l)),f=L((w*s+(n+r)*a)/(w*s+(n-r)*a));return[bt*(u*(f-1/f)-2*c(f)),bt*(u*l*(f+1/f)-2*i(l))]}_t.invert=function(t,e){if(!(r=D.invert(t/1.2,1.065*e)))return null;var r,a=r[0],s=r[1],l=20;t/=bt,e/=bt;do{var h=a/2,p=s/2,d=g(h),m=o(h),y=g(p),b=o(p),T=o(s),k=L(T),A=y/(b+w*m*k),M=A*A,S=L(2/(1+M)),E=(w*b+(m+d)*k)/(w*b+(m-d)*k),C=L(E),P=C-1/C,I=C+1/C,O=S*P-2*c(C)-t,z=S*A*I-2*i(A)-e,R=y&amp;&amp;_*k*d*M/y,F=(w*m*b+k)/(2*(b+w*m*k)*(b+w*m*k)*k),B=-.5*A*S*S*S,N=B*R,j=B*F,U=(U=2*b+w*k*(m-d))*U*C,V=(w*m*b*k+T)/U,q=-w*d*y/(k*U),H=P*N-2*V/C+S*(V+V/E),G=P*j-2*q/C+S*(q+q/E),Y=A*I*N-2*R/(1+M)+S*I*R+S*A*(V-V/E),W=A*I*j-2*F/(1+M)+S*I*F+S*A*(q-q/E),X=G*Y-W*H;if(!X)break;var Z=(z*G-O*W)/X,J=(O*Y-z*H)/X;a-=Z,s=u(-x,f(x,s-J))}while((n(Z)&gt;v||n(J)&gt;v)&amp;&amp;--l&gt;0);return n(n(s)-x)&lt;v?[0,s]:l&amp;&amp;[a,s]};var wt=o(35*M);function Tt(t,e){var r=m(e/2);return[t*wt*L(1-r*r),(1+wt)*r]}function kt(t,e){var r=e/2,n=o(r);return[2*t/T*o(e)*n*n,T*m(r)]}function At(t){var e=1-t,r=i(y,0)[0]-i(-y,0)[0],n=L(2*(i(0,x)[1]-i(0,-x)[1])/r);function i(r,n){var i=o(n),a=g(n);return[i/(e+t*i)*r,e*n+t*a]}function a(t,e){var r=i(t,e);return[r[0]*n,r[1]/n]}function s(t){return a(0,t)[1]}return a.invert=function(r,i){var a=V(s,i);return[r/n*(t+e/o(a)),a]},a}function Mt(t){return[t[0]/2,S(m(t[1]/2*M))*A]}function St(t){return[2*t[0],2*i(g(t[1]*M))*A]}function Et(t,r){var i=2*y/r,s=t*t;function l(r,l){var c=e.geoAzimuthalEquidistantRaw(r,l),u=c[0],f=c[1],h=u*u+f*f;if(h&gt;s){var d=L(h),m=a(f,u),b=i*p(m/i),_=m-b,w=t*o(_),T=(t*g(_)-_*g(w))/(x-w),k=Lt(_,T),A=(y-t)/Ct(k,w,y);u=d;var M,S=50;do{u-=M=(t+Ct(k,w,u)*A-d)/(k(u)*A)}while(n(M)&gt;v&amp;&amp;--S&gt;0);f=_*g(u),u&lt;x&amp;&amp;(f-=T*(u-x));var E=g(b),C=o(b);c[0]=u*C-f*E,c[1]=u*E+f*C}return c}return l.invert=function(r,l){var c=r*r+l*l;if(c&gt;s){var u=L(c),f=a(l,r),h=i*p(f/i),d=f-h;r=u*o(d),l=u*g(d);for(var m=r-x,v=g(r),b=l/v,_=r&lt;x?1/0:0,w=10;;){var T=t*g(b),k=t*o(b),A=g(k),M=x-k,S=(T-b*A)/M,E=Lt(b,S);if(n(_)&lt;1e-12||!--w)break;b-=_=(b*v-S*m-l)/(v-2*m*(M*(k+b*T*o(k)-A)-T*(T-b*A))/(M*M))}r=(u=t+Ct(E,k,r)*(y-t)/Ct(E,k,y))*o(f=h+b),l=u*g(f)}return e.geoAzimuthalEquidistantRaw.invert(r,l)},l}function Lt(t,e){return function(r){var n=t*o(r);return r&lt;x&amp;&amp;(n-=e),L(1+n*n)}}function Ct(t,e,r){for(var n=(r-e)/50,i=t(e)+t(r),a=1,o=e;a&lt;50;++a)i+=2*t(o+=n);return.5*i*n}function Pt(t,e,r,i,a,s,l,c){function u(n,u){if(!u)return[t*n/y,0];var f=u*u,h=t+f*(e+f*(r+f*i)),p=u*(a-1+f*(s-c+f*l)),d=(h*h+p*p)/(2*p),m=n*S(h/d)/y;return[d*g(m),u*(1+f*c)+d*(1-o(m))]}return arguments.length&lt;8&amp;&amp;(c=0),u.invert=function(u,f){var h,p,d=y*u/t,m=f,x=50;do{var b=m*m,_=t+b*(e+b*(r+b*i)),w=m*(a-1+b*(s-c+b*l)),T=_*_+w*w,k=2*w,A=T/k,M=A*A,E=S(_/A)/y,C=d*E,P=_*_,I=(2*e+b*(4*r+6*b*i))*m,O=a+b*(3*s+5*b*l),z=(2*(_*I+w*(O-1))*k-T*(2*(O-1)))/(k*k),D=o(C),R=g(C),F=A*D,B=A*R,N=d/y*(1/L(1-P/M))*(I*A-_*z)/M,j=B-u,U=m*(1+b*c)+A-F-f,V=z*R+F*N,q=F*E,H=1+z-(z*D-B*N),G=B*E,Y=V*G-H*q;if(!Y)break;d-=h=(U*V-j*H)/Y,m-=p=(j*G-U*q)/Y}while((n(h)&gt;v||n(p)&gt;v)&amp;&amp;--x&gt;0);return[d,m]},u}Tt.invert=function(t,e){var r=e/(1+wt);return[t&amp;&amp;t/(wt*L(1-r*r)),2*i(r)]},kt.invert=function(t,e){var r=i(e/T),n=o(r),a=2*r;return[t*T/2/(o(a)*n*n),a]};var It=Pt(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);var Ot=Pt(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);var zt=Pt(5/6*y,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Dt(t,e){var r=t*t,n=e*e;return[t*(1-.162388*n)*(.87-952426e-9*r*r),e*(1+n/12)]}Dt.invert=function(t,e){var r,i=t,a=e,o=50;do{var s=a*a;a-=r=(a*(1+s/12)-e)/(1+s/4)}while(n(r)&gt;v&amp;&amp;--o&gt;0);o=50,t/=1-.162388*s;do{var l=(l=i*i)*l;i-=r=(i*(.87-952426e-9*l)-t)/(.87-.00476213*l)}while(n(r)&gt;v&amp;&amp;--o&gt;0);return[i,a]};var Rt=Pt(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ft(t){var e=t(x,0)[0]-t(-x,0)[0];function r(r,n){var i=r&gt;0?-.5:.5,a=t(r+i*y,n);return a[0]-=i*e,a}return t.invert&amp;&amp;(r.invert=function(r,n){var i=r&gt;0?-.5:.5,a=t.invert(r+i*e,n),o=a[0]-i*y;return o&lt;-y?o+=2*y:o&gt;y&amp;&amp;(o-=2*y),a[0]=o,a}),r}function Bt(t,e){var r=d(t),i=d(e),s=o(e),l=o(t)*s,c=g(t)*s,u=g(i*e);t=n(a(c,u)),e=S(l),n(t-x)&gt;v&amp;&amp;(t%=x);var f=function(t,e){if(e===x)return[0,0];var r,i,a=g(e),s=a*a,l=s*s,c=1+l,u=1+3*l,f=1-l,h=S(1/L(c)),p=f+s*c*h,d=(1-a)/p,m=L(d),b=d*c,_=L(b),w=m*f;if(0===t)return[0,-(w+s*_)];var T,k=o(e),A=1/k,M=2*a*k,E=(-p*k-(-3*s+h*u)*M*(1-a))/(p*p),C=-A*M,P=-A*(s*c*E+d*u*M),I=-2*A*(f*(.5*E/m)-2*s*m*M),O=4*t/y;if(t&gt;.222*y||e&lt;y/4&amp;&amp;t&gt;.175*y){if(r=(w+s*L(b*(1+l)-w*w))/(1+l),t&gt;y/4)return[r,r];var z=r,D=.5*r;r=.5*(D+z),i=50;do{var R=L(b-r*r),F=r*(I+C*R)+P*S(r/_)-O;if(!F)break;F&lt;0?D=r:z=r,r=.5*(D+z)}while(n(z-D)&gt;v&amp;&amp;--i&gt;0)}else{r=v,i=25;do{var B=r*r,N=L(b-B),j=I+C*N,U=r*j+P*S(r/_)-O,V=j+(P-C*B)/N;r-=T=N?U/V:0}while(n(T)&gt;v&amp;&amp;--i&gt;0)}return[r,-w-s*L(b-r*r)]}(t&gt;y/4?x-t:t,e);return t&gt;y/4&amp;&amp;(u=f[0],f[0]=-f[1],f[1]=-u),f[0]*=r,f[1]*=-i,f}function Nt(t,e){var r,a,l,c,u,f;if(e&lt;v)return[(c=g(t))-(r=e*(t-c*(a=o(t)))/4)*a,a+r*c,1-e*c*c/2,t-r];if(e&gt;=1-v)return r=(1-e)/4,l=1/(a=P(t)),[(c=((f=s(2*(f=t)))-1)/(f+1))+r*((u=a*C(t))-t)/(a*a),l-r*c*l*(u-t),l+r*c*l*(u+t),2*i(s(t))-x+r*(u-t)/a];var h=[1,0,0,0,0,0,0,0,0],p=[L(e),0,0,0,0,0,0,0,0],d=0;for(a=L(1-e),u=1;n(p[d]/h[d])&gt;v&amp;&amp;d&lt;8;)r=h[d++],p[d]=(r-a)/2,h[d]=(r+a)/2,a=L(r*a),u*=2;l=u*h[d]*t;do{l=(S(c=p[d]*g(a=l)/h[d])+l)/2}while(--d);return[g(l),c=o(l),c/o(l-a),l]}function jt(t,e){if(!e)return t;if(1===e)return c(m(t/2+b));for(var r=1,a=L(1-e),o=L(e),s=0;n(o)&gt;v;s++){if(t%y){var l=i(a*m(t)/r);l&lt;0&amp;&amp;(l+=y),t+=l+~~(t/y)*y}else t+=t;o=(r+a)/2,a=L(r*a),o=((r=o)-a)/2}return t/(h(2,s)*r)}function Ut(t,e){var r=(w-1)/(w+1),l=L(1-r*r),u=jt(x,l*l),f=c(m(y/4+n(e)/2)),h=s(-1*f)/L(r),p=function(t,e){var r=t*t,n=e+1,i=1-r-e*e;return[.5*((t&gt;=0?x:-x)-a(i,2*t)),-.25*c(i*i+4*r)+.5*c(n*n+r)]}(h*o(-1*t),h*g(-1*t)),v=function(t,e,r){var a=n(t),o=C(n(e));if(a){var s=1/g(a),l=1/(m(a)*m(a)),c=-(l+r*(o*o*s*s)-1+r),u=(-c+L(c*c-4*((r-1)*l)))/2;return[jt(i(1/L(u)),r)*d(t),jt(i(L((u/l-1)/r)),1-r)*d(e)]}return[0,jt(i(o),1-r)*d(e)]}(p[0],p[1],l*l);return[-v[1],(e&gt;=0?1:-1)*(.5*u-v[0])]}function Vt(t){var e=g(t),r=o(t),i=qt(t);function s(t,a){var s=i(t,a);t=s[0],a=s[1];var l=g(a),c=o(a),u=o(t),f=E(e*l+r*c*u),h=g(f),p=n(h)&gt;v?f/h:1;return[p*r*g(t),(n(t)&gt;x?p:-p)*(e*c-r*l*u)]}return i.invert=qt(-t),s.invert=function(t,r){var n=L(t*t+r*r),s=-g(n),l=o(n),c=n*l,u=-r*s,f=n*e,h=L(c*c+u*u-f*f),p=a(c*f+u*h,u*f-c*h),d=(n&gt;x?-1:1)*a(t*s,n*o(p)*l+r*g(p)*s);return i.invert(d,p)},s}function qt(t){var e=g(t),r=o(t);return function(t,n){var i=o(n),s=o(t)*i,l=g(t)*i,c=g(n);return[a(l,s*r-c*e),S(c*r+s*e)]}}Bt.invert=function(t,e){n(t)&gt;1&amp;&amp;(t=2*d(t)-t),n(e)&gt;1&amp;&amp;(e=2*d(e)-e);var r=d(t),i=d(e),s=-r*t,l=-i*e,c=l/s&lt;1,u=function(t,e){var r=0,i=1,a=.5,s=50;for(;;){var l=a*a,c=L(a),u=S(1/L(1+l)),f=1-l+a*(1+l)*u,h=(1-c)/f,p=L(h),d=h*(1+l),g=p*(1-l),m=L(d-t*t),v=e+g+a*m;if(n(i-r)&lt;1e-12||0==--s||0===v)break;v&gt;0?r=a:i=a,a=.5*(r+i)}if(!s)return null;var x=S(c),b=o(x),_=1/b,w=2*c*b,T=(-f*b-(-3*a+u*(1+3*l))*w*(1-c))/(f*f);return[y/4*(t*(-2*_*(.5*T/p*(1-l)-2*a*p*w)+-_*w*m)+-_*(a*(1+l)*T+h*(1+3*l)*w)*S(t/L(d))),x]}(c?l:s,c?s:l),f=u[0],h=u[1],p=o(h);return c&amp;&amp;(f=-x-f),[r*(a(g(f)*p,-g(h))+y),i*S(o(f)*p)]},Ut.invert=function(t,e){var r,n,o,l,u,f,h=(w-1)/(w+1),p=L(1-h*h),d=jt(x,p*p),g=(n=-t,o=p*p,(r=.5*d-e)?(l=Nt(r,o),n?(f=(u=Nt(n,1-o))[1]*u[1]+o*l[0]*l[0]*u[0]*u[0],[[l[0]*u[2]/f,l[1]*l[2]*u[0]*u[1]/f],[l[1]*u[1]/f,-l[0]*l[2]*u[0]*u[2]/f],[l[2]*u[1]*u[2]/f,-o*l[0]*l[1]*u[0]/f]]):[[l[0],0],[l[1],0],[l[2],0]]):[[0,(u=Nt(n,1-o))[0]/u[1]],[1/u[1],0],[u[2]/u[1],0]]),m=function(t,e){var r=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/r,(t[1]*e[0]-t[0]*e[1])/r]}(g[0],g[1]);return[a(m[1],m[0])/-1,2*i(s(-.5*c(h*m[0]*m[0]+h*m[1]*m[1])))-x]};var Ht=S(1-1/3)*A,Gt=ht(0);function Yt(t){var e=Ht*M,r=lt(y,e)[0]-lt(-y,e)[0],i=Gt(0,e)[1],a=lt(0,e)[1],o=T-a,s=k/t,c=4/k,h=i+o*o*4/k;function p(p,d){var g,m=n(d);if(m&gt;e){var v=f(t-1,u(0,l((p+y)/s)));(g=lt(p+=y*(t-1)/t-v*s,m))[0]=g[0]*k/r-k*(t-1)/(2*t)+v*k/t,g[1]=i+4*(g[1]-a)*o/k,d&lt;0&amp;&amp;(g[1]=-g[1])}else g=Gt(p,d);return g[0]*=c,g[1]/=h,g}return p.invert=function(e,p){e/=c;var d=n(p*=h);if(d&gt;i){var g=f(t-1,u(0,l((e+y)/s)));e=(e+y*(t-1)/t-g*s)*r/k;var m=lt.invert(e,.25*(d-i)*k/o+a);return m[0]-=y*(t-1)/t-g*s,p&lt;0&amp;&amp;(m[1]=-m[1]),m}return Gt.invert(e,p)},p}function Wt(t,e){return[t,1&amp;e?90-v:Ht]}function Xt(t,e){return[t,1&amp;e?-90+v:-Ht]}function Zt(t){return[t[0]*(1-v),t[1]]}function Jt(t){var e,r=1+t,i=S(g(1/r)),s=2*L(y/(e=y+4*i*r)),l=.5*s*(r+L(t*(2+t))),c=t*t,u=r*r;function f(f,h){var p,d,m=1-g(h);if(m&amp;&amp;m&lt;2){var v,b=x-h,_=25;do{var w=g(b),T=o(b),k=i+a(w,r-T),A=1+u-2*r*T;b-=v=(b-c*i-r*w+A*k-.5*m*e)/(2*r*w*k)}while(n(v)&gt;1e-12&amp;&amp;--_&gt;0);p=s*L(A),d=f*k/y}else p=s*(t+m),d=f*i/y;return[p*g(d),l-p*o(d)]}return f.invert=function(t,n){var o=t*t+(n-=l)*n,f=(1+u-o/(s*s))/(2*r),h=E(f),p=g(h),d=i+a(p,r-f);return[S(t/L(o))*y/d,S(1-2*(h-c*i-r*p+(1+u-2*r*f)*d)/e)]},f}function Kt(t,e){return e&gt;-.7109889596207567?((t=W(t,e))[1]+=.0528035274542,t):Q(t,e)}function Qt(t,e){return n(e)&gt;.7109889596207567?((t=W(t,e))[1]-=e&gt;0?.0528035274542:-.0528035274542,t):Q(t,e)}function $t(t,e,r,n){var i=L(4*y/(2*r+(1+t-e/2)*g(2*r)+(t+e)/2*g(4*r)+e/2*g(6*r))),a=L(n*g(r)*L((1+t*o(2*r)+e*o(4*r))/(1+t+e))),s=r*c(1);function l(r){return L(1+t*o(2*r)+e*o(4*r))}function c(n){var i=n*r;return(2*i+(1+t-e/2)*g(2*i)+(t+e)/2*g(4*i)+e/2*g(6*i))/r}function u(t){return l(t)*g(t)}var f=function(t,e){var n=r*V(c,s*g(e)/r,e/y);isNaN(n)&amp;&amp;(n=r*d(e));var u=i*l(n);return[u*a*t/y*o(n),u/a*g(n)]};return f.invert=function(t,e){var n=V(u,e*a/i);return[t*y/(o(n)*i*a*l(n)),S(r*c(n/r)/s)]},0===r&amp;&amp;(i=L(n/y),(f=function(t,e){return[t*i,g(e)/i]}).invert=function(t,e){return[t/i,S(e*i)]}),f}function te(t,e,r,n,i){void 0===n&amp;&amp;(n=1e-8),void 0===i&amp;&amp;(i=20);var a=t(e),o=t(.5*(e+r)),s=t(r);return function t(e,r,n,i,a,o,s,l,c,u,f){if(f.nanEncountered)return NaN;var h,p,d,g,m,v,y,x,b,_;if(p=e(r+.25*(h=n-r)),d=e(n-.25*h),isNaN(p))f.nanEncountered=!0;else{if(!isNaN(d))return _=((v=(g=h*(i+4*p+a)/12)+(m=h*(a+4*d+o)/12))-s)/15,u&gt;c?(f.maxDepthCount++,v+_):Math.abs(_)&lt;l?v+_:(x=t(e,r,y=r+.5*h,i,p,a,g,.5*l,c,u+1,f),isNaN(x)?(f.nanEncountered=!0,NaN):(b=t(e,y,n,a,d,o,m,.5*l,c,u+1,f),isNaN(b)?(f.nanEncountered=!0,NaN):x+b));f.nanEncountered=!0}}(t,e,r,a,o,s,(a+4*o+s)*(r-e)/6,n,i,1,{maxDepthCount:0,nanEncountered:!1})}function ee(t,e,r){function i(r){return t+(1-t)*h(1-h(r,e),1/e)}function a(t){return te(i,0,t,1e-4)}for(var o=1/a(1),s=1e3,l=(1+1e-8)*o,c=[],u=0;u&lt;=s;u++)c.push(a(u/s)*l);function f(t){var e=0,r=s,n=500;do{c[n]&gt;t?r=n:e=n,n=e+r&gt;&gt;1}while(n&gt;e);var i=c[n+1]-c[n];return i&amp;&amp;(i=(t-c[n+1])/i),(n+1+i)/s}var p=2*f(1)/y*o/r,m=function(t,e){var r=f(n(g(e))),a=i(r)*t;return r/=p,[a,e&gt;=0?r:-r]};return m.invert=function(t,e){var r;return n(e*=p)&lt;1&amp;&amp;(r=d(e)*S(a(n(e))*o)),[t/i(n(e)),r]},m}function re(t,e){return n(t[0]-e[0])&lt;v&amp;&amp;n(t[1]-e[1])&lt;v}function ne(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a&lt;o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c&lt;e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function ie(t){var e,n,i,a,o,s,l,c=[],u=t[0].length;for(l=0;l&lt;u;++l)n=(e=t[0][l])[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],c.push(ne([[n+v,i+v],[n+v,a-v],[o-v,a-v],[o-v,s+v]],30));for(l=t[1].length-1;l&gt;=0;--l)n=(e=t[1][l])[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],c.push(ne([[o-v,s-v],[o-v,a+v],[n+v,a+v],[n+v,i-v]],30));return{type:&quot;Polygon&quot;,coordinates:[r.merge(c)]}}function ae(t,r,n){var i,a;function o(e,n){for(var i=n&lt;0?-1:1,a=r[+(n&lt;0)],o=0,s=a.length-1;o&lt;s&amp;&amp;e&gt;a[o][2][0];++o);var l=t(e-a[o][1][0],n);return l[0]+=t(a[o][1][0],i*n&gt;i*a[o][0][1]?a[o][0][1]:n)[0],l}n?o.invert=n(o):t.invert&amp;&amp;(o.invert=function(e,n){for(var i=a[+(n&lt;0)],s=r[+(n&lt;0)],l=0,c=i.length;l&lt;c;++l){var u=i[l];if(u[0][0]&lt;=e&amp;&amp;e&lt;u[1][0]&amp;&amp;u[0][1]&lt;=n&amp;&amp;n&lt;u[1][1]){var f=t.invert(e-t(s[l][1][0],0)[0],n);return f[0]+=s[l][1][0],re(o(f[0],f[1]),[e,n])?f:null}}});var s=e.geoProjection(o),l=s.stream;return s.stream=function(t){var r=s.rotate(),n=l(t),a=(s.rotate([0,0]),l(t));return s.rotate(r),n.sphere=function(){e.geoStream(i,a)},n},s.lobes=function(e){return arguments.length?(i=ie(e),r=e.map((function(t){return t.map((function(t){return[[t[0][0]*M,t[0][1]*M],[t[1][0]*M,t[1][1]*M],[t[2][0]*M,t[2][1]*M]]}))})),a=r.map((function(e){return e.map((function(e){var r,n=t(e[0][0],e[0][1])[0],i=t(e[2][0],e[2][1])[0],a=t(e[1][0],e[0][1])[1],o=t(e[1][0],e[1][1])[1];return a&gt;o&amp;&amp;(r=a,a=o,o=r),[[n,a],[i,o]]}))})),s):r.map((function(t){return t.map((function(t){return[[t[0][0]*A,t[0][1]*A],[t[1][0]*A,t[1][1]*A],[t[2][0]*A,t[2][1]*A]]}))}))},null!=r&amp;&amp;s.lobes(r),s}Kt.invert=function(t,e){return e&gt;-.7109889596207567?W.invert(t,e-.0528035274542):Q.invert(t,e)},Qt.invert=function(t,e){return n(e)&gt;.7109889596207567?W.invert(t,e+(e&gt;0?.0528035274542:-.0528035274542)):Q.invert(t,e)};var oe=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var se=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var le=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var ce=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];var ue=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];var fe=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function he(t,e){return[3/k*t*L(y*y/3-e*e),e]}function pe(t){function e(e,r){if(n(n(r)-x)&lt;v)return[0,r&lt;0?-2:2];var i=g(r),a=h((1+i)/(1-i),t/2),s=.5*(a+1/a)+o(e*=t);return[2*g(e)/s,(a-1/a)/s]}return e.invert=function(e,r){var i=n(r);if(n(i-2)&lt;v)return e?null:[0,d(r)*x];if(i&gt;2)return null;var o=(e/=2)*e,s=(r/=2)*r,l=2*r/(1+o+s);return l=h((1+l)/(1-l),1/t),[a(2*e,1-o-s)/t,S((l-1)/(l+1))]},e}he.invert=function(t,e){return[k/3*t/L(y*y/3-e*e),e]};var de=y/w;function ge(t,e){return[t*(1+L(o(e)))/2,e/(o(e/2)*o(t/6))]}function me(t,e){var r=t*t,n=e*e;return[t*(.975534+n*(-.0143059*r-.119161+-.0547009*n)),e*(1.00384+r*(.0802894+-.02855*n+199025e-9*r)+n*(.0998909+-.0491032*n))]}function ve(t,e){return[g(t)/o(e),m(e)*o(t)]}function ye(t){var e=o(t),r=m(b+t/2);function i(i,a){var o=a-t,s=n(o)&lt;v?i*e:n(s=b+a/2)&lt;v||n(n(s)-x)&lt;v?0:i*o/c(m(s)/r);return[s,o]}return i.invert=function(i,a){var o,s=a+t;return[n(a)&lt;v?i/e:n(o=b+s/2)&lt;v||n(n(o)-x)&lt;v?0:i*c(m(o)/r)/a,s]},i}function xe(t,e){return[t,1.25*c(m(b+.4*e))]}function be(t){var e=t.length-1;function r(r,n){for(var i,a=o(n),s=2/(1+a*o(r)),l=s*a*g(r),c=s*g(n),u=e,f=t[u],h=f[0],p=f[1];--u&gt;=0;)h=(f=t[u])[0]+l*(i=h)-c*p,p=f[1]+l*p+c*i;return[h=l*(i=h)-c*p,p=l*p+c*i]}return r.invert=function(r,s){var l=20,c=r,u=s;do{for(var f,h=e,p=t[h],d=p[0],m=p[1],v=0,y=0;--h&gt;=0;)v=d+c*(f=v)-u*y,y=m+c*y+u*f,d=(p=t[h])[0]+c*(f=d)-u*m,m=p[1]+c*m+u*f;var x,b,_=(v=d+c*(f=v)-u*y)*v+(y=m+c*y+u*f)*y;c-=x=((d=c*(f=d)-u*m-r)*v+(m=c*m+u*f-s)*y)/_,u-=b=(m*v-d*y)/_}while(n(x)+n(b)&gt;1e-12&amp;&amp;--l&gt;0);if(l){var w=L(c*c+u*u),T=2*i(.5*w),k=g(T);return[a(c*k,w*o(T)),w?S(u*k/w):0]}},r}ge.invert=function(t,e){var r=n(t),i=n(e),a=v,s=x;i&lt;de?s*=i/de:a+=6*E(de/i);for(var l=0;l&lt;25;l++){var c=g(s),u=L(o(s)),f=g(s/2),h=o(s/2),p=g(a/6),d=o(a/6),m=.5*a*(1+u)-r,y=s/(h*d)-i,b=u?-.25*a*c/u:0,_=.5*(1+u),w=(1+.5*s*f/h)/(h*d),T=s/h*(p/6)/(d*d),k=b*T-w*_,A=(m*T-y*_)/k,M=(y*b-m*w)/k;if(s-=A,a-=M,n(A)&lt;v&amp;&amp;n(M)&lt;v)break}return[t&lt;0?-a:a,e&lt;0?-s:s]},me.invert=function(t,e){var r=d(t)*y,i=e/2,a=50;do{var o=r*r,s=i*i,l=r*i,c=r*(.975534+s*(-.0143059*o-.119161+-.0547009*s))-t,u=i*(1.00384+o*(.0802894+-.02855*s+199025e-9*o)+s*(.0998909+-.0491032*s))-e,f=.975534-s*(.119161+3*o*.0143059+.0547009*s),h=-l*(.238322+.2188036*s+.0286118*o),p=l*(.1605788+7961e-7*o+-.0571*s),g=1.00384+o*(.0802894+199025e-9*o)+s*(3*(.0998909-.02855*o)-.245516*s),m=h*p-g*f,x=(u*h-c*g)/m,b=(c*p-u*f)/m;r-=x,i-=b}while((n(x)&gt;v||n(b)&gt;v)&amp;&amp;--a&gt;0);return a&amp;&amp;[r,i]},ve.invert=function(t,e){var r=t*t,n=e*e+1,i=r+n,a=t?_*L((i-L(i*i-4*r))/r):1/L(n);return[S(t*a),d(e)*E(a)]},xe.invert=function(t,e){return[t,2.5*i(s(.8*e))-.625*y]};var _e=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],we=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Te=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],ke=[[.9245,0],[0,0],[.01943,0]],Ae=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Me(t,r){var n=e.geoProjection(be(t)).rotate(r).clipAngle(90),i=e.geoRotation(r),a=n.center;return delete n.rotate,n.center=function(t){return arguments.length?a(i(t)):i.invert(a())},n}var Se=L(6),Ee=L(7);function Le(t,e){var r=S(7*g(e)/(3*Se));return[Se*t*(2*o(2*r/3)-1)/Ee,9*g(r/3)/Ee]}function Ce(t,e){for(var r,i=(1+_)*g(e),a=e,s=0;s&lt;25&amp;&amp;(a-=r=(g(a/2)+g(a)-i)/(.5*o(a/2)+o(a)),!(n(r)&lt;v));s++);return[t*(1+2*o(a)/o(a/2))/(3*w),2*L(3)*g(a/2)/L(2+w)]}function Pe(t,e){for(var r,i=L(6/(4+y)),a=(1+y/4)*g(e),s=e/2,l=0;l&lt;25&amp;&amp;(s-=r=(s/2+g(s)-a)/(.5+o(s)),!(n(r)&lt;v));l++);return[i*(.5+o(s))*t/1.5,i*s]}function Ie(t,e){var r=e*e,n=r*r,i=r*n;return[t*(.84719-.13063*r+i*i*(.05494*r-.04515-.02326*n+.00331*i)),e*(1.01183+n*n*(.01926*r-.02625-.00396*n))]}function Oe(t,e){return[t*(1+o(e))/2,2*(e-m(e/2))]}Le.invert=function(t,e){var r=3*S(e*Ee/9);return[t*Ee/(Se*(2*o(2*r/3)-1)),S(3*g(r)*Se/7)]},Ce.invert=function(t,e){var r=e*L(2+w)/(2*L(3)),n=2*S(r);return[3*w*t/(1+2*o(n)/o(n/2)),S((r+g(n))/(1+_))]},Pe.invert=function(t,e){var r=L(6/(4+y)),i=e/r;return n(n(i)-x)&lt;v&amp;&amp;(i=i&lt;0?-x:x),[1.5*t/(r*(.5+o(i))),S((i/2+g(i))/(1+y/4))]},Ie.invert=function(t,e){var r,i,a,o,s=e,l=25;do{s-=r=(s*(1.01183+(a=(i=s*s)*i)*a*(.01926*i-.02625-.00396*a))-e)/(1.01183+a*a*(.21186*i-.23625+-.05148*a))}while(n(r)&gt;1e-12&amp;&amp;--l&gt;0);return[t/(.84719-.13063*(i=s*s)+(o=i*(a=i*i))*o*(.05494*i-.04515-.02326*a+.00331*o)),s]},Oe.invert=function(t,e){for(var r=e/2,i=0,a=1/0;i&lt;10&amp;&amp;n(a)&gt;v;++i){var s=o(e/2);e-=a=(e-m(e/2)-r)/(1-.5/(s*s))}return[2*t/(1+o(e)),e]};var ze=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function De(t,e){var r=g(e),i=o(e),a=d(t);if(0===t||n(e)===x)return[0,e];if(0===e)return[t,0];if(n(t)===x)return[t*i,x*r];var s=y/(2*t)-2*t/y,l=2*e/y,c=(1-l*l)/(r-l),u=s*s,f=c*c,h=1+u/f,p=1+f/u,m=(s*r/c-s/2)/h,v=(f*r/u+c/2)/p,b=v*v-(f*r*r/u+c*r-1)/p;return[x*(m+L(m*m+i*i/h)*a),x*(v+L(b&lt;0?0:b)*d(-e*s)*a)]}De.invert=function(t,e){var r=(t/=x)*t,n=r+(e/=x)*e,i=y*y;return[t?(n-1+L((1-n)*(1-n)+4*r))/(2*t)*x:0,V((function(t){return n*(y*g(t)-2*t)*y+4*t*t*(e-g(t))+2*y*t-i*e}),0)]};function Re(t,e){var r=e*e;return[t,e*(1.0148+r*r*(.23185+r*(.02406*r-.14499)))]}function Fe(t,e){if(n(e)&lt;v)return[t,0];var r=m(e),i=t*g(e);return[g(i)/r,e+(1-o(i))/r]}function Be(t,e){var r=je(t[1],t[0]),n=je(e[1],e[0]),i=function(t,e){return a(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}(r,n),s=Ue(r)/Ue(n);return Ne([1,0,t[0][0],0,1,t[0][1]],Ne([s,0,0,0,s,0],Ne([o(i),g(i),0,-g(i),o(i),0],[1,0,-e[0][0],0,1,-e[0][1]])))}function Ne(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function je(t,e){return[t[0]-e[0],t[1]-e[1]]}function Ue(t){return L(t[0]*t[0]+t[1]*t[1])}function Ve(t,r,i){function a(t,e){var n,i=r(t,e),a=i.project([t*A,e*A]);return(n=i.transform)?[n[0]*a[0]+n[1]*a[1]+n[2],-(n[3]*a[0]+n[4]*a[1]+n[5])]:(a[1]=-a[1],a)}!function t(e,r){if(e.edges=function(t){for(var e=t.length,r=[],n=t[e-1],i=0;i&lt;e;++i)r.push([n,n=t[i]]);return r}(e.face),r.face){var n=e.shared=function(t,e){for(var r,n,i=t.length,a=null,o=0;o&lt;i;++o){r=t[o];for(var s=e.length;--s&gt;=0;)if(n=e[s],r[0]===n[0]&amp;&amp;r[1]===n[1]){if(a)return[a,r];a=r}}}(e.face,r.face),i=Be(n.map(r.project),n.map(e.project));e.transform=r.transform?Ne(r.transform,i):i;for(var a=r.edges,o=0,s=a.length;o&lt;s;++o)qe(n[0],a[o][1])&amp;&amp;qe(n[1],a[o][0])&amp;&amp;(a[o]=e),qe(n[0],a[o][0])&amp;&amp;qe(n[1],a[o][1])&amp;&amp;(a[o]=e);for(a=e.edges,o=0,s=a.length;o&lt;s;++o)qe(n[0],a[o][0])&amp;&amp;qe(n[1],a[o][1])&amp;&amp;(a[o]=r),qe(n[0],a[o][1])&amp;&amp;qe(n[1],a[o][0])&amp;&amp;(a[o]=r)}else e.transform=r.transform;e.children&amp;&amp;e.children.forEach((function(r){t(r,e)}));return e}(t,{transform:null}),He(t)&amp;&amp;(a.invert=function(e,n){var i=function t(e,n){var i=e.project.invert,a=e.transform,o=n;a&amp;&amp;(a=function(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}(a),o=[a[0]*o[0]+a[1]*o[1]+a[2],a[3]*o[0]+a[4]*o[1]+a[5]]);if(i&amp;&amp;e===function(t){return r(t[0]*M,t[1]*M)}(s=i(o)))return s;for(var s,l=e.children,c=0,u=l&amp;&amp;l.length;c&lt;u;++c)if(s=t(l[c],n))return s}(t,[e,-n]);return i&amp;&amp;(i[0]*=M,i[1]*=M,i)});var o=e.geoProjection(a),s=o.stream;return o.stream=function(r){var i=o.rotate(),a=s(r),l=(o.rotate([0,0]),s(r));return o.rotate(i),a.sphere=function(){l.polygonStart(),l.lineStart(),function t(r,i,a){var o,s,l=i.edges,c=l.length,u={type:&quot;MultiPoint&quot;,coordinates:i.face},f=i.face.filter((function(t){return 90!==n(t[1])})),h=e.geoBounds({type:&quot;MultiPoint&quot;,coordinates:f}),p=!1,d=-1,g=h[1][0]-h[0][0],m=180===g||360===g?[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]:e.geoCentroid(u);if(a)for(;++d&lt;c&amp;&amp;l[d]!==a;);++d;for(var y=0;y&lt;c;++y)s=l[(y+d)%c],Array.isArray(s)?(p||(r.point((o=e.geoInterpolate(s[0],m)(v))[0],o[1]),p=!0),r.point((o=e.geoInterpolate(s[1],m)(v))[0],o[1])):(p=!1,s!==a&amp;&amp;t(r,s,i))}(l,t),l.lineEnd(),l.polygonEnd()},a},o.angle(null==i?-30:i*A)}function qe(t,e){return t&amp;&amp;e&amp;&amp;t[0]===e[0]&amp;&amp;t[1]===e[1]}function He(t){return t.project.invert||t.children&amp;&amp;t.children.some(He)}Re.invert=function(t,e){e&gt;1.790857183?e=1.790857183:e&lt;-1.790857183&amp;&amp;(e=-1.790857183);var r,i=e;do{var a=i*i;i-=r=(i*(1.0148+a*a*(.23185+a*(.02406*a-.14499)))-e)/(1.0148+a*a*(5*.23185+a*(.21654*a-1.01493)))}while(n(r)&gt;v);return[t,i]},Fe.invert=function(t,e){if(n(e)&lt;v)return[t,0];var r,i=t*t+e*e,a=.5*e,s=10;do{var l=m(a),c=1/o(a),u=i-2*e*a+a*a;a-=r=(l*u+2*(a-e))/(2+u*c*c+2*(a-e)*l)}while(n(r)&gt;v&amp;&amp;--s&gt;0);return l=m(a),[(n(e)&lt;n(a+1/l)?S(t*l):d(e)*d(t)*(E(n(t*l))+x))/g(a),a]};var Ge=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Ye=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(t){return t.map((function(t){return Ge[t]}))}));var We=2/L(3);function Xe(t,e){var r=lt(t,e);return[r[0]*We,r[1]]}function Ze(t,e){for(var r=0,n=t.length,i=0;r&lt;n;++r)i+=t[r]*e[r];return i}function Je(t){return[a(t[1],t[0])*A,S(u(-1,f(1,t[2])))*A]}function Ke(t){var e=t[0]*M,r=t[1]*M,n=o(r);return[n*o(e),n*g(e),g(r)]}function Qe(){}function $e(t,e){return{type:&quot;FeatureCollection&quot;,features:t.features.map((function(t){return tr(t,e)}))}}function tr(t,e){return{type:&quot;Feature&quot;,id:t.id,properties:t.properties,geometry:er(t.geometry,e)}}function er(t,r){if(!t)return null;if(&quot;GeometryCollection&quot;===t.type)return function(t,e){return{type:&quot;GeometryCollection&quot;,geometries:t.geometries.map((function(t){return er(t,e)}))}}(t,r);var n;switch(t.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:n=ir;break;case&quot;LineString&quot;:case&quot;MultiLineString&quot;:n=ar;break;case&quot;Polygon&quot;:case&quot;MultiPolygon&quot;:case&quot;Sphere&quot;:n=or;break;default:return null}return e.geoStream(t,r(n)),n.result()}Xe.invert=function(t,e){return lt.invert(t/We,e)};var rr=[],nr=[],ir={point:function(t,e){rr.push([t,e])},result:function(){var t=rr.length?rr.length&lt;2?{type:&quot;Point&quot;,coordinates:rr[0]}:{type:&quot;MultiPoint&quot;,coordinates:rr}:null;return rr=[],t}},ar={lineStart:Qe,point:function(t,e){rr.push([t,e])},lineEnd:function(){rr.length&amp;&amp;(nr.push(rr),rr=[])},result:function(){var t=nr.length?nr.length&lt;2?{type:&quot;LineString&quot;,coordinates:nr[0]}:{type:&quot;MultiLineString&quot;,coordinates:nr}:null;return nr=[],t}},or={polygonStart:Qe,lineStart:Qe,point:function(t,e){rr.push([t,e])},lineEnd:function(){var t=rr.length;if(t){do{rr.push(rr[0].slice())}while(++t&lt;4);nr.push(rr),rr=[]}},polygonEnd:Qe,result:function(){if(!nr.length)return null;var t=[],e=[];return nr.forEach((function(r){!function(t){if((e=t.length)&lt;4)return!1;for(var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r&lt;e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n&lt;=0}(r)?e.push(r):t.push([r])})),e.forEach((function(e){var r=e[0];t.some((function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a&lt;o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u&gt;n^p&gt;n&amp;&amp;r&lt;(h-c)*(n-u)/(p-u)+c&amp;&amp;(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),nr=[],t.length?t.length&gt;1?{type:&quot;MultiPolygon&quot;,coordinates:t}:{type:&quot;Polygon&quot;,coordinates:t[0]}:null}};function sr(t){var r=t(x,0)[0]-t(-x,0)[0];function i(e,i){var a=n(e)&lt;x,o=t(a?e:e&gt;0?e-y:e+y,i),s=(o[0]-o[1])*_,l=(o[0]+o[1])*_;if(a)return[s,l];var c=r*_,u=s&gt;0^l&gt;0?-1:1;return[u*s-d(l)*c,u*l-d(s)*c]}return t.invert&amp;&amp;(i.invert=function(e,i){var a=(e+i)*_,o=(i-e)*_,s=n(a)&lt;.5*r&amp;&amp;n(o)&lt;.5*r;if(!s){var l=r*_,c=a&gt;0^o&gt;0?-1:1,u=-c*e+(o&gt;0?1:-1)*l,f=-c*i+(a&gt;0?1:-1)*l;a=(-u-f)*_,o=(u-f)*_}var h=t.invert(a,o);return s||(h[0]+=a&gt;0?y:-y),h}),e.geoProjection(i).rotate([-90,-90,45]).clipAngle(179.999)}function lr(){return sr(Ut).scale(111.48)}function cr(t){var e=g(t);function r(r,n){var a=e?m(r*e/2)/e:r/2;if(!n)return[2*a,-t];var s=2*i(a*g(n)),l=1/m(n);return[g(s)*l,n+(1-o(s))*l-t]}return r.invert=function(r,a){if(n(a+=t)&lt;v)return[e?2*i(e*r/2)/e:r,0];var s,l=r*r+a*a,c=0,u=10;do{var f=m(c),h=1/o(c),p=l-2*a*c+c*c;c-=s=(f*p+2*(c-a))/(2+p*h*h+2*(c-a)*f)}while(n(s)&gt;v&amp;&amp;--u&gt;0);var d=r*(f=m(c)),x=m(n(a)&lt;n(c+1/f)?.5*S(d):.5*E(d)+y/4)/g(c);return[e?2*i(e*x)/e:2*x,c]},r}var ur=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function fr(t,e){var r,i=f(18,36*n(e)/y),a=l(i),o=i-a,s=(r=ur[a])[0],c=r[1],u=(r=ur[++a])[0],h=r[1],p=(r=ur[f(19,++a)])[0],d=r[1];return[t*(u+o*(p-s)/2+o*o*(p-2*u+s)/2),(e&gt;0?x:-x)*(h+o*(d-c)/2+o*o*(d-2*h+c)/2)]}function hr(t,e){var r=function(t){function e(e,r){var n=o(r),i=(t-1)/(t-n*o(e));return[i*n*g(e),i*g(r)]}return e.invert=function(e,r){var n=e*e+r*r,i=L(n),o=(t-L(1-n*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[a(e*o,i*L(1-o*o)),i?S(r*o/i):0]},e}(t);if(!e)return r;var n=o(e),i=g(e);function s(e,a){var o=r(e,a),s=o[1],l=s*i/(t-1)+n;return[o[0]*n/l,s/l]}return s.invert=function(e,a){var o=(t-1)/(t-1-a*i);return r.invert(o*e,o*a*n)},s}ur.forEach((function(t){t[1]*=1.0144})),fr.invert=function(t,e){var r=e/x,i=90*r,a=f(18,n(i/5)),o=u(0,l(a));do{var s=ur[o][1],c=ur[o+1][1],h=ur[f(19,o+2)][1],p=h-s,d=h-2*c+s,g=2*(n(r)-c)/p,m=d/p,v=g*(1-m*g*(1-2*m*g));if(v&gt;=0||1===o){i=(e&gt;=0?5:-5)*(v+a);var y,b=50;do{v=(a=f(18,n(i)/5))-(o=l(a)),s=ur[o][1],c=ur[o+1][1],h=ur[f(19,o+2)][1],i-=(y=(e&gt;=0?x:-x)*(c+v*(h-s)/2+v*v*(h-2*c+s)/2)-e)*A}while(n(y)&gt;1e-12&amp;&amp;--b&gt;0);break}}while(--o&gt;=0);var _=ur[o][0],w=ur[o+1][0],T=ur[f(19,o+2)][0];return[t/(w+v*(T-_)/2+v*v*(T-2*w+_)/2),i*M]};var pr=-179.9999,dr=179.9999,gr=-89.9999;function mr(t){return t.length&gt;0}function vr(t){return-90===t||90===t?[0,t]:[-180,(e=t,Math.floor(1e4*e)/1e4)];var e}function yr(t){var e=t[0],r=t[1],n=!1;return e&lt;=pr?(e=-180,n=!0):e&gt;=dr&amp;&amp;(e=180,n=!0),r&lt;=gr?(r=-90,n=!0):r&gt;=89.9999&amp;&amp;(r=90,n=!0),n?[e,r]:t}function xr(t){return t.map(yr)}function br(t,e,r){for(var n=0,i=t.length;n&lt;i;++n){var a=t[n].slice();r.push({index:-1,polygon:e,ring:a});for(var o=0,s=a.length;o&lt;s;++o){var l=a[o],c=l[0],u=l[1];if(c&lt;=pr||c&gt;=dr||u&lt;=gr||u&gt;=89.9999){a[o]=yr(l);for(var f=o+1;f&lt;s;++f){var h=a[f],p=h[0],d=h[1];if(p&gt;pr&amp;&amp;p&lt;dr&amp;&amp;d&gt;gr&amp;&amp;d&lt;89.9999)break}if(f===o+1)continue;if(o){var g={index:-1,polygon:e,ring:a.slice(0,o+1)};g.ring[g.ring.length-1]=vr(u),r[r.length-1]=g}else r.pop();if(f&gt;=s)break;r.push({index:-1,polygon:e,ring:a=a.slice(f-1)}),a[0]=vr(a[0][1]),o=-1,s=a.length}}}}function _r(t){var e,r,n,i,a,o,s=t.length,l={},c={};for(e=0;e&lt;s;++e)n=(r=t[e]).ring[0],a=r.ring[r.ring.length-1],n[0]!==a[0]||n[1]!==a[1]?(r.index=e,l[n]=c[a]=r):(r.polygon.push(r.ring),t[e]=null);for(e=0;e&lt;s;++e)if(r=t[e]){if(n=r.ring[0],a=r.ring[r.ring.length-1],i=c[n],o=l[a],delete l[n],delete c[a],n[0]===a[0]&amp;&amp;n[1]===a[1]){r.polygon.push(r.ring);continue}i?(delete c[n],delete l[i.ring[0]],i.ring.pop(),t[i.index]=null,r={index:-1,polygon:i.polygon,ring:i.ring.concat(r.ring)},i===o?r.polygon.push(r.ring):(r.index=s++,t.push(l[r.ring[0]]=c[r.ring[r.ring.length-1]]=r))):o?(delete l[a],delete c[o.ring[o.ring.length-1]],r.ring.pop(),r={index:s++,polygon:o.polygon,ring:r.ring.concat(o.ring)},t[o.index]=null,t.push(l[r.ring[0]]=c[r.ring[r.ring.length-1]]=r)):(r.ring.push(r.ring[0]),r.polygon.push(r.ring))}}function wr(t){var e={type:&quot;Feature&quot;,geometry:Tr(t.geometry)};return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}function Tr(t){if(null==t)return t;var e,r,n,i;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(Tr)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:yr(t.coordinates)};break;case&quot;MultiPoint&quot;:case&quot;LineString&quot;:e={type:t.type,coordinates:xr(t.coordinates)};break;case&quot;MultiLineString&quot;:e={type:&quot;MultiLineString&quot;,coordinates:t.coordinates.map(xr)};break;case&quot;Polygon&quot;:var a=[];br(t.coordinates,a,r=[]),_r(r),e={type:&quot;Polygon&quot;,coordinates:a};break;case&quot;MultiPolygon&quot;:r=[],n=-1,i=t.coordinates.length;for(var o=new Array(i);++n&lt;i;)br(t.coordinates[n],o[n]=[],r);_r(r),e={type:&quot;MultiPolygon&quot;,coordinates:o.filter(mr)};break;default:return t}return null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e}function kr(t,e){var r=m(e/2),n=g(b*r);return[t*(.74482-.34588*n*n),1.70711*r]}function Ar(t,r,n){var i=e.geoInterpolate(r,n),a=i(.5),o=e.geoRotation([-a[0],-a[1]])(r),s=i.distance/2,l=-S(g(o[1]*M)/g(s)),c=[-a[0],-a[1],-(o[0]&gt;0?y-l:l)*A],u=e.geoProjection(t(s)).rotate(c),f=e.geoRotation(c),h=u.center;return delete u.rotate,u.center=function(t){return arguments.length?h(f(t)):f.invert(h())},u.clipAngle(90)}function Mr(t){var r=o(t);function n(t,n){var i=e.geoGnomonicRaw(t,n);return i[0]*=r,i}return n.invert=function(t,n){return e.geoGnomonicRaw.invert(t/r,n)},n}function Sr(t,e){return Ar(Mr,t,e)}function Er(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var r=-t/2,n=-r,i=t*t,s=m(n),l=.5/g(n);function c(e,a){var s=E(o(a)*o(e-r)),l=E(o(a)*o(e-n));return[((s*=s)-(l*=l))/(2*t),(a&lt;0?-1:1)*L(4*i*l-(i-s+l)*(i-s+l))/(2*t)]}return c.invert=function(t,e){var i,c,u=e*e,f=o(L(u+(i=t+r)*i)),h=o(L(u+(i=t+n)*i));return[a(c=f-h,i=(f+h)*s),(e&lt;0?-1:1)*E(L(i*i+c*c)*l)]},c}function Lr(t,e){return Ar(Er,t,e)}function Cr(t,e){if(n(e)&lt;v)return[t,0];var r=n(e/x),i=S(r);if(n(t)&lt;v||n(n(e)-x)&lt;v)return[0,d(e)*y*m(i/2)];var a=o(i),s=n(y/t-t/y)/2,l=s*s,c=a/(r+a-1),u=c*(2/r-1),f=u*u,h=f+l,p=c-f,g=l+c;return[d(t)*y*(s*p+L(l*p*p-h*(c*c-f)))/h,d(e)*y*(u*g-s*L((l+1)*h-g*g))/h]}function Pr(t,e){if(n(e)&lt;v)return[t,0];var r=n(e/x),i=S(r);if(n(t)&lt;v||n(n(e)-x)&lt;v)return[0,d(e)*y*m(i/2)];var a=o(i),s=n(y/t-t/y)/2,l=s*s,c=a*(L(1+l)-s*a)/(1+l*r*r);return[d(t)*y*c,d(e)*y*L(1-c*(2*s+c))]}function Ir(t,e){if(n(e)&lt;v)return[t,0];var r=e/x,i=S(r);if(n(t)&lt;v||n(n(e)-x)&lt;v)return[0,y*m(i/2)];var a=(y/t-t/y)/2,s=r/(1+o(i));return[y*(d(t)*L(a*a+1-s*s)-a),y*s]}function Or(t,e){if(!e)return[t,0];var r=n(e);if(!t||r===x)return[0,e];var i=r/x,a=i*i,o=(8*i-a*(a+2)-5)/(2*a*(i-1)),s=o*o,l=i*o,c=a+s+2*l,u=i+3*o,f=t/x,h=f+1/f,p=d(n(t)-x)*L(h*h-4),g=p*p,m=(p*(c+s-1)+2*L(c*(a+s*g-1)+(1-a)*(a*(u*u+4*s)+12*l*s+4*s*s)))/(4*c+g);return[d(t)*x*m,d(e)*x*L(1+p*n(m)-m*m)]}function zr(t,e,r,n){var i=y/3;t=u(t,v),e=u(e,v),t=f(t,x),e=f(e,y-v),r=u(r,0),r=f(r,100-v);var s=(n=u(n,v))/100,l=E((r/100+1)*o(i))/i,c=g(t)/g(l*x),h=e/y,p=L(s*g(t/2)/g(e/2));return function(t,e,r,n,i){function s(a,s){var l=r*g(n*s),c=L(1-l*l),u=L(2/(1+c*o(a*=i)));return[t*c*u*g(a),e*l*u]}return s.invert=function(o,s){var l=o/t,c=s/e,u=L(l*l+c*c),f=2*S(u/2);return[a(o*m(f),t*u)/i,u&amp;&amp;S(s*g(f)/(e*r*u))/n]},s}(p/L(h*c*l),1/(p*L(h*c*l)),c,l,h)}function Dr(){var t=65*M,r=60*M,n=20,i=200,a=e.geoProjectionMutator(zr),o=a(t,r,n,i);return o.poleline=function(e){return arguments.length?a(t=+e*M,r,n,i):t*A},o.parallels=function(e){return arguments.length?a(t,r=+e*M,n,i):r*A},o.inflation=function(e){return arguments.length?a(t,r,n=+e,i):n},o.ratio=function(e){return arguments.length?a(t,r,n,i=+e):i},o.scale(163.775)}kr.invert=function(t,e){var r=e/1.70711,n=g(b*r);return[t/(.74482-.34588*n*n),2*i(r)]},Cr.invert=function(t,e){if(n(e)&lt;v)return[t,0];if(n(t)&lt;v)return[0,x*g(2*i(e/y))];var r=(t/=y)*t,a=(e/=y)*e,s=r+a,l=s*s,c=-n(e)*(1+s),u=c-2*a+r,f=-2*c+1+2*a+l,h=a/f+(2*u*u*u/(f*f*f)-9*c*u/(f*f))/27,p=(c-u*u/(3*f))/f,m=2*L(-p/3),b=E(3*h/(p*m))/3;return[y*(s-1+L(1+2*(r-a)+l))/(2*t),d(e)*y*(-m*o(b+y/3)-u/(3*f))]},Pr.invert=function(t,e){if(!t)return[0,x*g(2*i(e/y))];var r=n(t/y),o=(1-r*r-(e/=y)*e)/(2*r),s=L(o*o+1);return[d(t)*y*(s-o),d(e)*x*g(2*a(L((1-2*o*r)*(o+s)-r),L(s+o+r)))]},Ir.invert=function(t,e){if(!e)return[t,0];var r=e/y,n=(y*y*(1-r*r)-t*t)/(2*y*t);return[t?y*(d(t)*L(n*n+1)-n):0,x*g(2*i(r))]},Or.invert=function(t,e){var r;if(!t||!e)return[t,e];e/=y;var i=d(t)*t/x,a=(i*i-1+4*e*e)/n(i),o=a*a,s=2*e,l=50;do{var c=s*s,u=(8*s-c*(c+2)-5)/(2*c*(s-1)),f=(3*s-c*s-10)/(2*c*s),h=u*u,p=s*u,g=s+u,m=g*g,b=s+3*u,_=-2*g*(4*p*h+(1-4*c+3*c*c)*(1+f)+h*(14*c-6-o+(8*c-8-2*o)*f)+p*(12*c-8+(10*c-10-o)*f)),w=L(m*(c+h*o-1)+(1-c)*(c*(b*b+4*h)+h*(12*p+4*h)));s-=r=(a*(m+h-1)+2*w-i*(4*m+o))/(a*(2*u*f+2*g*(1+f))+_/w-8*g*(a*(-1+h+m)+2*w)*(1+f)/(o+4*m))}while(r&gt;v&amp;&amp;--l&gt;0);return[d(t)*(L(a*a+4)+a)*y/4,x*s]};var Rr=4*y+3*L(3),Fr=2*L(2*y*L(3)/Rr),Br=Y(Fr*L(3)/y,Fr,Rr/6);function Nr(t,e){return[t*L(1-3*e*e/(y*y)),e]}function jr(t,e){var r=o(e),n=o(t)*r,i=1-n,s=o(t=a(g(t)*r,-g(e))),l=g(t);return[l*(r=L(1-n*n))-s*i,-s*r-l*i]}function Ur(t,e){var r=O(t,e);return[(r[0]+t/x)/2,(r[1]+e)/2]}Nr.invert=function(t,e){return[t/L(1-3*e*e/(y*y)),e]},jr.invert=function(t,e){var r=(t*t+e*e)/-2,n=L(-r*(2+r)),i=e*r+t*n,o=t*r-e*n,s=L(o*o+i*i);return[a(n*i,s*(1+r)),s?-S(n*o/s):0]},Ur.invert=function(t,e){var r=t,i=e,a=25;do{var s,l=o(i),c=g(i),u=g(2*i),f=c*c,h=l*l,p=g(r),d=o(r/2),m=g(r/2),y=m*m,b=1-h*d*d,_=b?E(l*d)*L(s=1/b):s=0,w=.5*(2*_*l*m+r/x)-t,T=.5*(_*c+i)-e,k=.5*s*(h*y+_*l*d*f)+.5/x,A=s*(p*u/4-_*c*m),M=.125*s*(u*m-_*c*h*p),S=.5*s*(f*d+_*y*l)+.5,C=A*M-S*k,P=(T*A-w*S)/C,I=(w*M-T*k)/C;r-=P,i-=I}while((n(P)&gt;v||n(I)&gt;v)&amp;&amp;--a&gt;0);return[r,i]},t.geoNaturalEarth=e.geoNaturalEarth1,t.geoNaturalEarthRaw=e.geoNaturalEarth1Raw,t.geoAiry=function(){var t=x,r=e.geoProjectionMutator(I),n=r(t);return n.radius=function(e){return arguments.length?r(t=e*M):t*A},n.scale(179.976).clipAngle(147)},t.geoAiryRaw=I,t.geoAitoff=function(){return e.geoProjection(O).scale(152.63)},t.geoAitoffRaw=O,t.geoArmadillo=function(){var t=20*M,r=t&gt;=0?1:-1,n=m(r*t),i=e.geoProjectionMutator(z),s=i(t),l=s.stream;return s.parallel=function(e){return arguments.length?(n=m((r=(t=e*M)&gt;=0?1:-1)*t),i(t)):t*A},s.stream=function(e){var i=s.rotate(),c=l(e),u=(s.rotate([0,0]),l(e)),f=s.precision();return s.rotate(i),c.sphere=function(){u.polygonStart(),u.lineStart();for(var e=-180*r;r*e&lt;180;e+=90*r)u.point(e,90*r);if(t)for(;r*(e-=3*r*f)&gt;=-180;)u.point(e,r*-a(o(e*M/2),n)*A);u.lineEnd(),u.polygonEnd()},c},s.scale(218.695).center([0,28.0974])},t.geoArmadilloRaw=z,t.geoAugust=function(){return e.geoProjection(D).scale(66.1603)},t.geoAugustRaw=D,t.geoBaker=function(){return e.geoProjection(B).scale(112.314)},t.geoBakerRaw=B,t.geoBerghaus=function(){var t=5,r=e.geoProjectionMutator(N),n=r(t),i=n.stream,s=-o(.01*M),l=g(.01*M);return n.lobes=function(e){return arguments.length?r(t=+e):t},n.stream=function(e){var r=n.rotate(),c=i(e),u=(n.rotate([0,0]),i(e));return n.rotate(r),c.sphere=function(){u.polygonStart(),u.lineStart();for(var e=0,r=360/t,n=2*y/t,i=90-180/t,c=x;e&lt;t;++e,i-=r,c-=n)u.point(a(l*o(c),s)*A,S(l*g(c))*A),i&lt;-90?(u.point(-90,-180-i-.01),u.point(-90,-180-i+.01)):(u.point(90,i+.01),u.point(90,i-.01));u.lineEnd(),u.polygonEnd()},c},n.scale(87.8076).center([0,17.1875]).clipAngle(179.999)},t.geoBerghausRaw=N,t.geoBertin1953=function(){return e.geoProjection(H()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])},t.geoBertin1953Raw=H,t.geoBoggs=function(){return e.geoProjection(J).scale(160.857)},t.geoBoggsRaw=J,t.geoBonne=function(){return K($).scale(123.082).center([0,26.1441]).parallel(45)},t.geoBonneRaw=$,t.geoBottomley=function(){var t=.5,r=e.geoProjectionMutator(tt),n=r(t);return n.fraction=function(e){return arguments.length?r(t=+e):t},n.scale(158.837)},t.geoBottomleyRaw=tt,t.geoBromley=function(){return e.geoProjection(et).scale(152.63)},t.geoBromleyRaw=et,t.geoChamberlin=st,t.geoChamberlinRaw=at,t.geoChamberlinAfrica=function(){return st([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])},t.geoCollignon=function(){return e.geoProjection(lt).scale(95.6464).center([0,30])},t.geoCollignonRaw=lt,t.geoCraig=function(){return K(ct).scale(249.828).clipAngle(90)},t.geoCraigRaw=ct,t.geoCraster=function(){return e.geoProjection(ft).scale(156.19)},t.geoCrasterRaw=ft,t.geoCylindricalEqualArea=function(){return K(ht).parallel(38.58).scale(195.044)},t.geoCylindricalEqualAreaRaw=ht,t.geoCylindricalStereographic=function(){return K(pt).scale(124.75)},t.geoCylindricalStereographicRaw=pt,t.geoEckert1=function(){return e.geoProjection(dt).scale(165.664)},t.geoEckert1Raw=dt,t.geoEckert2=function(){return e.geoProjection(gt).scale(165.664)},t.geoEckert2Raw=gt,t.geoEckert3=function(){return e.geoProjection(mt).scale(180.739)},t.geoEckert3Raw=mt,t.geoEckert4=function(){return e.geoProjection(vt).scale(180.739)},t.geoEckert4Raw=vt,t.geoEckert5=function(){return e.geoProjection(yt).scale(173.044)},t.geoEckert5Raw=yt,t.geoEckert6=function(){return e.geoProjection(xt).scale(173.044)},t.geoEckert6Raw=xt,t.geoEisenlohr=function(){return e.geoProjection(_t).scale(62.5271)},t.geoEisenlohrRaw=_t,t.geoFahey=function(){return e.geoProjection(Tt).scale(137.152)},t.geoFaheyRaw=Tt,t.geoFoucaut=function(){return e.geoProjection(kt).scale(135.264)},t.geoFoucautRaw=kt,t.geoFoucautSinusoidal=function(){var t=.5,r=e.geoProjectionMutator(At),n=r(t);return n.alpha=function(e){return arguments.length?r(t=+e):t},n.scale(168.725)},t.geoFoucautSinusoidalRaw=At,t.geoGilbert=function(t){null==t&amp;&amp;(t=e.geoOrthographic);var r=t(),n=e.geoEquirectangular().scale(A).precision(0).clipAngle(null).translate([0,0]);function i(t){return r(Mt(t))}function a(t){i[t]=function(){return arguments.length?(r[t].apply(r,arguments),i):r[t]()}}return r.invert&amp;&amp;(i.invert=function(t){return St(r.invert(t))}),i.stream=function(t){var e=r.stream(t),i=n.stream({point:function(t,r){e.point(t/2,S(m(-r/2*M))*A)},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}});return i.sphere=e.sphere,i},i.rotate=function(t){return arguments.length?(n.rotate(t),i):n.rotate()},i.center=function(t){return arguments.length?(r.center(Mt(t)),i):St(r.center())},a(&quot;angle&quot;),a(&quot;clipAngle&quot;),a(&quot;clipExtent&quot;),a(&quot;fitExtent&quot;),a(&quot;fitHeight&quot;),a(&quot;fitSize&quot;),a(&quot;fitWidth&quot;),a(&quot;scale&quot;),a(&quot;translate&quot;),a(&quot;precision&quot;),i.scale(249.5)},t.geoGingery=function(){var t=6,r=30*M,n=o(r),i=g(r),s=e.geoProjectionMutator(Et),l=s(r,t),c=l.stream,u=-o(.01*M),f=g(.01*M);return l.radius=function(e){return arguments.length?(n=o(r=e*M),i=g(r),s(r,t)):r*A},l.lobes=function(e){return arguments.length?s(r,t=+e):t},l.stream=function(e){var r=l.rotate(),s=c(e),h=(l.rotate([0,0]),c(e));return l.rotate(r),s.sphere=function(){h.polygonStart(),h.lineStart();for(var e=0,r=2*y/t,s=0;e&lt;t;++e,s-=r)h.point(a(f*o(s),u)*A,S(f*g(s))*A),h.point(a(i*o(s-r/2),n)*A,S(i*g(s-r/2))*A);h.lineEnd(),h.polygonEnd()},s},l.rotate([90,-40]).scale(91.7095).clipAngle(179.999)},t.geoGingeryRaw=Et,t.geoGinzburg4=function(){return e.geoProjection(It).scale(149.995)},t.geoGinzburg4Raw=It,t.geoGinzburg5=function(){return e.geoProjection(Ot).scale(153.93)},t.geoGinzburg5Raw=Ot,t.geoGinzburg6=function(){return e.geoProjection(zt).scale(130.945)},t.geoGinzburg6Raw=zt,t.geoGinzburg8=function(){return e.geoProjection(Dt).scale(131.747)},t.geoGinzburg8Raw=Dt,t.geoGinzburg9=function(){return e.geoProjection(Rt).scale(131.087)},t.geoGinzburg9Raw=Rt,t.geoGringorten=function(){return e.geoProjection(Ft(Bt)).scale(239.75)},t.geoGringortenRaw=Bt,t.geoGuyou=function(){return e.geoProjection(Ft(Ut)).scale(151.496)},t.geoGuyouRaw=Ut,t.geoHammer=function(){var t=2,r=e.geoProjectionMutator(j),n=r(t);return n.coefficient=function(e){return arguments.length?r(t=+e):t},n.scale(169.529)},t.geoHammerRaw=j,t.geoHammerRetroazimuthal=function(){var t=0,r=e.geoProjectionMutator(Vt),n=r(t),i=n.rotate,a=n.stream,o=e.geoCircle();return n.parallel=function(e){if(!arguments.length)return t*A;var i=n.rotate();return r(t=e*M).rotate(i)},n.rotate=function(e){return arguments.length?(i.call(n,[e[0],e[1]-t*A]),o.center([-e[0],-e[1]]),n):((e=i.call(n))[1]+=t*A,e)},n.stream=function(t){return(t=a(t)).sphere=function(){t.polygonStart();var e,r=o.radius(89.99)().coordinates[0],n=r.length-1,i=-1;for(t.lineStart();++i&lt;n;)t.point((e=r[i])[0],e[1]);for(t.lineEnd(),n=(r=o.radius(90.01)().coordinates[0]).length-1,t.lineStart();--i&gt;=0;)t.point((e=r[i])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},n.scale(79.4187).parallel(45).clipAngle(179.999)},t.geoHammerRetroazimuthalRaw=Vt,t.geoHealpix=function(){var t=4,n=e.geoProjectionMutator(Yt),i=n(t),a=i.stream;return i.lobes=function(e){return arguments.length?n(t=+e):t},i.stream=function(n){var o=i.rotate(),s=a(n),l=(i.rotate([0,0]),a(n));return i.rotate(o),s.sphere=function(){var n,i;e.geoStream((n=180/t,i=[].concat(r.range(-180,180+n/2,n).map(Wt),r.range(180,-180-n/2,-n).map(Xt)),{type:&quot;Polygon&quot;,coordinates:[180===n?i.map(Zt):i]}),l)},s},i.scale(239.75)},t.geoHealpixRaw=Yt,t.geoHill=function(){var t=1,r=e.geoProjectionMutator(Jt),n=r(t);return n.ratio=function(e){return arguments.length?r(t=+e):t},n.scale(167.774).center([0,18.67])},t.geoHillRaw=Jt,t.geoHomolosine=function(){return e.geoProjection(Qt).scale(152.63)},t.geoHomolosineRaw=Qt,t.geoHufnagel=function(){var t=1,r=0,n=45*M,i=2,a=e.geoProjectionMutator($t),o=a(t,r,n,i);return o.a=function(e){return arguments.length?a(t=+e,r,n,i):t},o.b=function(e){return arguments.length?a(t,r=+e,n,i):r},o.psiMax=function(e){return arguments.length?a(t,r,n=+e*M,i):n*A},o.ratio=function(e){return arguments.length?a(t,r,n,i=+e):i},o.scale(180.739)},t.geoHufnagelRaw=$t,t.geoHyperelliptical=function(){var t=0,r=2.5,n=1.183136,i=e.geoProjectionMutator(ee),a=i(t,r,n);return a.alpha=function(e){return arguments.length?i(t=+e,r,n):t},a.k=function(e){return arguments.length?i(t,r=+e,n):r},a.gamma=function(e){return arguments.length?i(t,r,n=+e):n},a.scale(152.63)},t.geoHyperellipticalRaw=ee,t.geoInterrupt=ae,t.geoInterruptedBoggs=function(){return ae(J,oe).scale(160.857)},t.geoInterruptedHomolosine=function(){return ae(Qt,se).scale(152.63)},t.geoInterruptedMollweide=function(){return ae(W,le).scale(169.529)},t.geoInterruptedMollweideHemispheres=function(){return ae(W,ce).scale(169.529).rotate([20,0])},t.geoInterruptedSinuMollweide=function(){return ae(Kt,ue,q).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoInterruptedSinusoidal=function(){return ae(Q,fe).scale(152.63).rotate([-20,0])},t.geoKavrayskiy7=function(){return e.geoProjection(he).scale(158.837)},t.geoKavrayskiy7Raw=he,t.geoLagrange=function(){var t=.5,r=e.geoProjectionMutator(pe),n=r(t);return n.spacing=function(e){return arguments.length?r(t=+e):t},n.scale(124.75)},t.geoLagrangeRaw=pe,t.geoLarrivee=function(){return e.geoProjection(ge).scale(97.2672)},t.geoLarriveeRaw=ge,t.geoLaskowski=function(){return e.geoProjection(me).scale(139.98)},t.geoLaskowskiRaw=me,t.geoLittrow=function(){return e.geoProjection(ve).scale(144.049).clipAngle(89.999)},t.geoLittrowRaw=ve,t.geoLoximuthal=function(){return K(ye).parallel(40).scale(158.837)},t.geoLoximuthalRaw=ye,t.geoMiller=function(){return e.geoProjection(xe).scale(108.318)},t.geoMillerRaw=xe,t.geoModifiedStereographic=Me,t.geoModifiedStereographicRaw=be,t.geoModifiedStereographicAlaska=function(){return Me(_e,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)},t.geoModifiedStereographicGs48=function(){return Me(we,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},t.geoModifiedStereographicGs50=function(){return Me(Te,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},t.geoModifiedStereographicMiller=function(){return Me(ke,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},t.geoModifiedStereographicLee=function(){return Me(Ae,[165,10]).scale(250).clipAngle(130).center([-165,-10])},t.geoMollweide=function(){return e.geoProjection(W).scale(169.529)},t.geoMollweideRaw=W,t.geoMtFlatPolarParabolic=function(){return e.geoProjection(Le).scale(164.859)},t.geoMtFlatPolarParabolicRaw=Le,t.geoMtFlatPolarQuartic=function(){return e.geoProjection(Ce).scale(188.209)},t.geoMtFlatPolarQuarticRaw=Ce,t.geoMtFlatPolarSinusoidal=function(){return e.geoProjection(Pe).scale(166.518)},t.geoMtFlatPolarSinusoidalRaw=Pe,t.geoNaturalEarth2=function(){return e.geoProjection(Ie).scale(175.295)},t.geoNaturalEarth2Raw=Ie,t.geoNellHammer=function(){return e.geoProjection(Oe).scale(152.63)},t.geoNellHammerRaw=Oe,t.geoInterruptedQuarticAuthalic=function(){return ae(j(1/0),ze).rotate([20,0]).scale(152.63)},t.geoNicolosi=function(){return e.geoProjection(De).scale(127.267)},t.geoNicolosiRaw=De,t.geoPatterson=function(){return e.geoProjection(Re).scale(139.319)},t.geoPattersonRaw=Re,t.geoPolyconic=function(){return e.geoProjection(Fe).scale(103.74)},t.geoPolyconicRaw=Fe,t.geoPolyhedral=Ve,t.geoPolyhedralButterfly=function(t){t=t||function(t){var r=e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-r[0],-r[1]])};var r=Ye.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&amp;&amp;(n.children||(n.children=[])).push(r[e])})),Ve(r[0],(function(t,e){return r[t&lt;-y/2?e&lt;0?6:4:t&lt;0?e&lt;0?2:0:t&lt;y/2?e&lt;0?3:1:e&lt;0?7:5]})).angle(-30).scale(101.858).center([0,45])},t.geoPolyhedralCollignon=function(t){t=t||function(t){var r=e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:t});return e.geoProjection(Xe).translate([0,0]).scale(1).rotate(r[1]&gt;0?[-r[0],0]:[180-r[0],180])};var r=Ye.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&amp;&amp;(n.children||(n.children=[])).push(r[e])})),Ve(r[0],(function(t,e){return r[t&lt;-y/2?e&lt;0?6:4:t&lt;0?e&lt;0?2:0:t&lt;y/2?e&lt;0?3:1:e&lt;0?7:5]})).angle(-30).scale(121.906).center([0,48.5904])},t.geoPolyhedralWaterman=function(t){t=t||function(t){var r=6===t.length?e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:t}):t[0];return e.geoGnomonic().scale(1).translate([0,0]).rotate([-r[0],-r[1]])};var r=Ye.map((function(t){for(var e,r=t.map(Ke),n=r.length,i=r[n-1],a=[],o=0;o&lt;n;++o)e=r[o],a.push(Je([.9486832980505138*i[0]+.31622776601683794*e[0],.9486832980505138*i[1]+.31622776601683794*e[1],.9486832980505138*i[2]+.31622776601683794*e[2]]),Je([.9486832980505138*e[0]+.31622776601683794*i[0],.9486832980505138*e[1]+.31622776601683794*i[1],.9486832980505138*e[2]+.31622776601683794*i[2]])),i=e;return a})),n=[],i=[-1,0,0,1,0,1,4,5];r.forEach((function(t,e){for(var a,o,s=Ye[e],l=s.length,c=n[e]=[],u=0;u&lt;l;++u)r.push([s[u],t[(2*u+2)%(2*l)],t[(2*u+1)%(2*l)]]),i.push(e),c.push((a=Ke(t[(2*u+2)%(2*l)]),o=Ke(t[(2*u+1)%(2*l)]),[a[1]*o[2]-a[2]*o[1],a[2]*o[0]-a[0]*o[2],a[0]*o[1]-a[1]*o[0]]))}));var a=r.map((function(e){return{project:t(e),face:e}}));return i.forEach((function(t,e){var r=a[t];r&amp;&amp;(r.children||(r.children=[])).push(a[e])})),Ve(a[0],(function(t,e){var r=o(e),i=[r*o(t),r*g(t),g(e)],s=t&lt;-y/2?e&lt;0?6:4:t&lt;0?e&lt;0?2:0:t&lt;y/2?e&lt;0?3:1:e&lt;0?7:5,l=n[s];return a[Ze(l[0],i)&lt;0?8+3*s:Ze(l[1],i)&lt;0?8+3*s+1:Ze(l[2],i)&lt;0?8+3*s+2:s]})).angle(-30).scale(110.625).center([0,45])},t.geoProject=function(t,e){var r,n=e.stream;if(!n)throw new Error(&quot;invalid projection&quot;);switch(t&amp;&amp;t.type){case&quot;Feature&quot;:r=tr;break;case&quot;FeatureCollection&quot;:r=$e;break;default:r=er}return r(t,n)},t.geoGringortenQuincuncial=function(){return sr(Bt).scale(176.423)},t.geoPeirceQuincuncial=lr,t.geoPierceQuincuncial=lr,t.geoQuantize=function(t,e){if(!(0&lt;=(e=+e)&amp;&amp;e&lt;=20))throw new Error(&quot;invalid digits&quot;);function r(t){var r=t.length,n=2,i=new Array(r);for(i[0]=+t[0].toFixed(e),i[1]=+t[1].toFixed(e);n&lt;r;)i[n]=t[n],++n;return i}function n(t){return t.map(r)}function i(t){for(var e=r(t[0]),n=[e],i=1;i&lt;t.length;i++){var a=r(t[i]);(a.length&gt;2||a[0]!=e[0]||a[1]!=e[1])&amp;&amp;(n.push(a),e=a)}return 1===n.length&amp;&amp;t.length&gt;1&amp;&amp;n.push(r(t[t.length-1])),n}function a(t){return t.map(i)}function o(t){if(null==t)return t;var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(o)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:r(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:t.type,coordinates:n(t.coordinates)};break;case&quot;LineString&quot;:e={type:t.type,coordinates:i(t.coordinates)};break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:e={type:t.type,coordinates:a(t.coordinates)};break;case&quot;MultiPolygon&quot;:e={type:&quot;MultiPolygon&quot;,coordinates:t.coordinates.map(a)};break;default:return t}return null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e}function s(t){var e={type:&quot;Feature&quot;,properties:t.properties,geometry:o(t.geometry)};return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case&quot;Feature&quot;:return s(t);case&quot;FeatureCollection&quot;:var l={type:&quot;FeatureCollection&quot;,features:t.features.map(s)};return null!=t.bbox&amp;&amp;(l.bbox=t.bbox),l;default:return o(t)}return t},t.geoQuincuncial=sr,t.geoRectangularPolyconic=function(){return K(cr).scale(131.215)},t.geoRectangularPolyconicRaw=cr,t.geoRobinson=function(){return e.geoProjection(fr).scale(152.63)},t.geoRobinsonRaw=fr,t.geoSatellite=function(){var t=2,r=0,n=e.geoProjectionMutator(hr),i=n(t,r);return i.distance=function(e){return arguments.length?n(t=+e,r):t},i.tilt=function(e){return arguments.length?n(t,r=e*M):r*A},i.scale(432.147).clipAngle(E(1/t)*A-1e-6)},t.geoSatelliteRaw=hr,t.geoSinuMollweide=function(){return e.geoProjection(Kt).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoSinuMollweideRaw=Kt,t.geoSinusoidal=function(){return e.geoProjection(Q).scale(152.63)},t.geoSinusoidalRaw=Q,t.geoStitch=function(t){if(null==t)return t;switch(t.type){case&quot;Feature&quot;:return wr(t);case&quot;FeatureCollection&quot;:var e={type:&quot;FeatureCollection&quot;,features:t.features.map(wr)};return null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e;default:return Tr(t)}},t.geoTimes=function(){return e.geoProjection(kr).scale(146.153)},t.geoTimesRaw=kr,t.geoTwoPointAzimuthal=Sr,t.geoTwoPointAzimuthalRaw=Mr,t.geoTwoPointAzimuthalUsa=function(){return Sr([-158,21.5],[-77,39]).clipAngle(60).scale(400)},t.geoTwoPointEquidistant=Lr,t.geoTwoPointEquidistantRaw=Er,t.geoTwoPointEquidistantUsa=function(){return Lr([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)},t.geoVanDerGrinten=function(){return e.geoProjection(Cr).scale(79.4183)},t.geoVanDerGrintenRaw=Cr,t.geoVanDerGrinten2=function(){return e.geoProjection(Pr).scale(79.4183)},t.geoVanDerGrinten2Raw=Pr,t.geoVanDerGrinten3=function(){return e.geoProjection(Ir).scale(79.4183)},t.geoVanDerGrinten3Raw=Ir,t.geoVanDerGrinten4=function(){return e.geoProjection(Or).scale(127.16)},t.geoVanDerGrinten4Raw=Or,t.geoWagner=Dr,t.geoWagner7=function(){return Dr().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)},t.geoWagnerRaw=zr,t.geoWagner4=function(){return e.geoProjection(Br).scale(176.84)},t.geoWagner4Raw=Br,t.geoWagner6=function(){return e.geoProjection(Nr).scale(152.63)},t.geoWagner6Raw=Nr,t.geoWiechel=function(){return e.geoProjection(jr).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)},t.geoWiechelRaw=jr,t.geoWinkel3=function(){return e.geoProjection(Ur).scale(158.837)},t.geoWinkel3Raw=Ur,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:162,&quot;d3-geo&quot;:169}],169:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-array&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(t){a(i,t,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(t,e,r){var n=t.s=e+r,i=n-e,a=n-i;t.t=e-a+(r-i)}var o=1e-6,s=Math.PI,l=s/2,c=s/4,u=2*s,f=180/s,h=s/180,p=Math.abs,d=Math.atan,g=Math.atan2,m=Math.cos,v=Math.ceil,y=Math.exp,x=Math.log,b=Math.pow,_=Math.sin,w=Math.sign||function(t){return t&gt;0?1:t&lt;0?-1:0},T=Math.sqrt,k=Math.tan;function A(t){return t&gt;1?0:t&lt;-1?s:Math.acos(t)}function M(t){return t&gt;1?l:t&lt;-1?-l:Math.asin(t)}function S(t){return(t=_(t/2))*t}function E(){}function L(t,e){t&amp;&amp;P.hasOwnProperty(t.type)&amp;&amp;P[t.type](t,e)}var C={Feature:function(t,e){L(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)L(r[n].geometry,e)}},P={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){I(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)I(r[n],e,0)},Polygon:function(t,e){O(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)O(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)L(r[n],e)}};function I(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i&lt;a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function O(t,e){var r=-1,n=t.length;for(e.polygonStart();++r&lt;n;)I(t[r],e,1);e.polygonEnd()}function z(t,e){t&amp;&amp;C.hasOwnProperty(t.type)?C[t.type](t,e):L(t,e)}var D,R,F,B,N,j=r(),U=r(),V={point:E,lineStart:E,lineEnd:E,polygonStart:function(){j.reset(),V.lineStart=q,V.lineEnd=H},polygonEnd:function(){var t=+j;U.add(t&lt;0?u+t:t),this.lineStart=this.lineEnd=this.point=E},sphere:function(){U.add(u)}};function q(){V.point=G}function H(){Y(D,R)}function G(t,e){V.point=Y,D=t,R=e,F=t*=h,B=m(e=(e*=h)/2+c),N=_(e)}function Y(t,e){var r=(t*=h)-F,n=r&gt;=0?1:-1,i=n*r,a=m(e=(e*=h)/2+c),o=_(e),s=N*o,l=B*a+s*m(i),u=s*n*_(i);j.add(g(u,l)),F=t,B=a,N=o}function W(t){return[g(t[1],t[0]),M(t[2])]}function X(t){var e=t[0],r=t[1],n=m(r);return[n*m(e),n*_(e),_(r)]}function Z(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function J(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function K(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Q(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function $(t){var e=T(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt,gt,mt,vt,yt,xt,bt,_t,wt,Tt,kt,At,Mt=r(),St={point:Et,lineStart:Ct,lineEnd:Pt,polygonStart:function(){St.point=It,St.lineStart=Ot,St.lineEnd=zt,Mt.reset(),V.polygonStart()},polygonEnd:function(){V.polygonEnd(),St.point=Et,St.lineStart=Ct,St.lineEnd=Pt,j&lt;0?(tt=-(rt=180),et=-(nt=90)):Mt&gt;o?nt=90:Mt&lt;-o&amp;&amp;(et=-90),ct[0]=tt,ct[1]=rt},sphere:function(){tt=-(rt=180),et=-(nt=90)}};function Et(t,e){lt.push(ct=[tt=t,rt=t]),e&lt;et&amp;&amp;(et=e),e&gt;nt&amp;&amp;(nt=e)}function Lt(t,e){var r=X([t*h,e*h]);if(st){var n=J(st,r),i=J([n[1],-n[0],0],n);$(i),i=W(i);var a,o=t-it,s=o&gt;0?1:-1,l=i[0]*f*s,c=p(o)&gt;180;c^(s*it&lt;l&amp;&amp;l&lt;s*t)?(a=i[1]*f)&gt;nt&amp;&amp;(nt=a):c^(s*it&lt;(l=(l+360)%360-180)&amp;&amp;l&lt;s*t)?(a=-i[1]*f)&lt;et&amp;&amp;(et=a):(e&lt;et&amp;&amp;(et=e),e&gt;nt&amp;&amp;(nt=e)),c?t&lt;it?Dt(tt,t)&gt;Dt(tt,rt)&amp;&amp;(rt=t):Dt(t,rt)&gt;Dt(tt,rt)&amp;&amp;(tt=t):rt&gt;=tt?(t&lt;tt&amp;&amp;(tt=t),t&gt;rt&amp;&amp;(rt=t)):t&gt;it?Dt(tt,t)&gt;Dt(tt,rt)&amp;&amp;(rt=t):Dt(t,rt)&gt;Dt(tt,rt)&amp;&amp;(tt=t)}else lt.push(ct=[tt=t,rt=t]);e&lt;et&amp;&amp;(et=e),e&gt;nt&amp;&amp;(nt=e),st=r,it=t}function Ct(){St.point=Lt}function Pt(){ct[0]=tt,ct[1]=rt,St.point=Et,st=null}function It(t,e){if(st){var r=t-it;Mt.add(p(r)&gt;180?r+(r&gt;0?360:-360):r)}else at=t,ot=e;V.point(t,e),Lt(t,e)}function Ot(){V.lineStart()}function zt(){It(at,ot),V.lineEnd(),p(Mt)&gt;o&amp;&amp;(tt=-(rt=180)),ct[0]=tt,ct[1]=rt,st=null}function Dt(t,e){return(e-=t)&lt;0?e+360:e}function Rt(t,e){return t[0]-e[0]}function Ft(t,e){return t[0]&lt;=t[1]?t[0]&lt;=e&amp;&amp;e&lt;=t[1]:e&lt;t[0]||t[1]&lt;e}var Bt={sphere:E,point:Nt,lineStart:Ut,lineEnd:Ht,polygonStart:function(){Bt.lineStart=Gt,Bt.lineEnd=Yt},polygonEnd:function(){Bt.lineStart=Ut,Bt.lineEnd=Ht}};function Nt(t,e){t*=h;var r=m(e*=h);jt(r*m(t),r*_(t),_(e))}function jt(t,e,r){++ut,ht+=(t-ht)/ut,pt+=(e-pt)/ut,dt+=(r-dt)/ut}function Ut(){Bt.point=Vt}function Vt(t,e){t*=h;var r=m(e*=h);Tt=r*m(t),kt=r*_(t),At=_(e),Bt.point=qt,jt(Tt,kt,At)}function qt(t,e){t*=h;var r=m(e*=h),n=r*m(t),i=r*_(t),a=_(e),o=g(T((o=kt*a-At*i)*o+(o=At*n-Tt*a)*o+(o=Tt*i-kt*n)*o),Tt*n+kt*i+At*a);ft+=o,gt+=o*(Tt+(Tt=n)),mt+=o*(kt+(kt=i)),vt+=o*(At+(At=a)),jt(Tt,kt,At)}function Ht(){Bt.point=Nt}function Gt(){Bt.point=Wt}function Yt(){Xt(_t,wt),Bt.point=Nt}function Wt(t,e){_t=t,wt=e,t*=h,e*=h,Bt.point=Xt;var r=m(e);Tt=r*m(t),kt=r*_(t),At=_(e),jt(Tt,kt,At)}function Xt(t,e){t*=h;var r=m(e*=h),n=r*m(t),i=r*_(t),a=_(e),o=kt*a-At*i,s=At*n-Tt*a,l=Tt*i-kt*n,c=T(o*o+s*s+l*l),u=M(c),f=c&amp;&amp;-u/c;yt+=f*o,xt+=f*s,bt+=f*l,ft+=u,gt+=u*(Tt+(Tt=n)),mt+=u*(kt+(kt=i)),vt+=u*(At+(At=a)),jt(Tt,kt,At)}function Zt(t){return function(){return t}}function Jt(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&amp;&amp;e.invert&amp;&amp;(r.invert=function(r,n){return(r=e.invert(r,n))&amp;&amp;t.invert(r[0],r[1])}),r}function Kt(t,e){return[p(t)&gt;s?t+Math.round(-t/u)*u:t,e]}function Qt(t,e,r){return(t%=u)?e||r?Jt(te(t),ee(e,r)):te(t):e||r?ee(e,r):Kt}function $t(t){return function(e,r){return[(e+=t)&gt;s?e-u:e&lt;-s?e+u:e,r]}}function te(t){var e=$t(t);return e.invert=$t(-t),e}function ee(t,e){var r=m(t),n=_(t),i=m(e),a=_(e);function o(t,e){var o=m(e),s=m(t)*o,l=_(t)*o,c=_(e),u=c*r+s*n;return[g(l*i-u*a,s*r-c*n),M(u*i+l*a)]}return o.invert=function(t,e){var o=m(e),s=m(t)*o,l=_(t)*o,c=_(e),u=c*i-l*a;return[g(l*i+c*a,s*r+u*n),M(u*r-s*n)]},o}function re(t){function e(e){return(e=t(e[0]*h,e[1]*h))[0]*=f,e[1]*=f,e}return t=Qt(t[0]*h,t[1]*h,t.length&gt;2?t[2]*h:0),e.invert=function(e){return(e=t.invert(e[0]*h,e[1]*h))[0]*=f,e[1]*=f,e},e}function ne(t,e,r,n,i,a){if(r){var o=m(e),s=_(e),l=n*r;null==i?(i=e+n*u,a=e-l/2):(i=ie(o,i),a=ie(o,a),(n&gt;0?i&lt;a:i&gt;a)&amp;&amp;(i+=n*u));for(var c,f=i;n&gt;0?f&gt;a:f&lt;a;f-=l)c=W([o,-s*m(f),-s*_(f)]),t.point(c[0],c[1])}}function ie(t,e){(e=X(e))[0]-=t,$(e);var r=A(-e[1]);return((-e[2]&lt;0?-r:r)+u-o)%u}function ae(){var t,e=[];return{point:function(e,r,n){t.push([e,r,n])},lineStart:function(){e.push(t=[])},lineEnd:E,rejoin:function(){e.length&gt;1&amp;&amp;e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function oe(t,e){return p(t[0]-e[0])&lt;o&amp;&amp;p(t[1]-e[1])&lt;o}function se(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function le(t,e,r,n,i){var a,s,l=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)&lt;=0)){var e,r,n=t[0],s=t[e];if(oe(n,s)){if(!n[2]&amp;&amp;!s[2]){for(i.lineStart(),a=0;a&lt;e;++a)i.point((n=t[a])[0],n[1]);return void i.lineEnd()}s[0]+=2*o}l.push(r=new se(n,t,null,!0)),c.push(r.o=new se(n,null,r,!1)),l.push(r=new se(s,t,null,!1)),c.push(r.o=new se(s,null,r,!0))}})),l.length){for(c.sort(e),ce(l),ce(c),a=0,s=c.length;a&lt;s;++a)c[a].e=r=!r;for(var u,f,h=l[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(a=0,s=u.length;a&lt;s;++a)i.point((f=u[a])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(u=p.p.z,a=u.length-1;a&gt;=0;--a)i.point((f=u[a])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function ce(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n&lt;e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}Kt.invert=Kt;var ue=r();function fe(t){return p(t[0])&lt;=s?t[0]:w(t[0])*((p(t[0])+s)%u-s)}function he(t,e){var r=fe(e),n=e[1],i=_(n),a=[_(r),-m(r),0],f=0,h=0;ue.reset(),1===i?n=l+o:-1===i&amp;&amp;(n=-l-o);for(var p=0,d=t.length;p&lt;d;++p)if(y=(v=t[p]).length)for(var v,y,x=v[y-1],b=fe(x),w=x[1]/2+c,T=_(w),k=m(w),A=0;A&lt;y;++A,b=E,T=C,k=P,x=S){var S=v[A],E=fe(S),L=S[1]/2+c,C=_(L),P=m(L),I=E-b,O=I&gt;=0?1:-1,z=O*I,D=z&gt;s,R=T*C;if(ue.add(g(R*O*_(z),k*P+R*m(z))),f+=D?I+O*u:I,D^b&gt;=r^E&gt;=r){var F=J(X(x),X(S));$(F);var B=J(a,F);$(B);var N=(D^I&gt;=0?-1:1)*M(B[2]);(n&gt;N||n===N&amp;&amp;(F[0]||F[1]))&amp;&amp;(h+=D^I&gt;=0?1:-1)}}return(f&lt;-o||f&lt;o&amp;&amp;ue&lt;-o)^1&amp;h}function pe(t,r,n,i){return function(a){var o,s,l,c=r(a),u=ae(),f=r(u),h=!1,p={point:d,lineStart:m,lineEnd:v,polygonStart:function(){p.point=y,p.lineStart=x,p.lineEnd=b,s=[],o=[]},polygonEnd:function(){p.point=d,p.lineStart=m,p.lineEnd=v,s=e.merge(s);var t=he(o,i);s.length?(h||(a.polygonStart(),h=!0),le(s,ge,t,n,a)):t&amp;&amp;(h||(a.polygonStart(),h=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),h&amp;&amp;(a.polygonEnd(),h=!1),s=o=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function d(e,r){t(e,r)&amp;&amp;a.point(e,r)}function g(t,e){c.point(t,e)}function m(){p.point=g,c.lineStart()}function v(){p.point=d,c.lineEnd()}function y(t,e){l.push([t,e]),f.point(t,e)}function x(){f.lineStart(),l=[]}function b(){y(l[0][0],l[0][1]),f.lineEnd();var t,e,r,n,i=f.clean(),c=u.result(),p=c.length;if(l.pop(),o.push(l),l=null,p)if(1&amp;i){if((e=(r=c[0]).length-1)&gt;0){for(h||(a.polygonStart(),h=!0),a.lineStart(),t=0;t&lt;e;++t)a.point((n=r[t])[0],n[1]);a.lineEnd()}}else p&gt;1&amp;&amp;2&amp;i&amp;&amp;c.push(c.pop().concat(c.shift())),s.push(c.filter(de))}return p}}function de(t){return t.length&gt;1}function ge(t,e){return((t=t.x)[0]&lt;0?t[1]-l-o:l-t[1])-((e=e.x)[0]&lt;0?e[1]-l-o:l-e[1])}var me=pe((function(){return!0}),(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,c){var u=a&gt;0?s:-s,f=p(a-r);p(f-s)&lt;o?(t.point(r,n=(n+c)/2&gt;0?l:-l),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(u,n),t.point(a,n),e=0):i!==u&amp;&amp;f&gt;=s&amp;&amp;(p(r-i)&lt;o&amp;&amp;(r-=i*o),p(a-u)&lt;o&amp;&amp;(a-=u*o),n=function(t,e,r,n){var i,a,s=_(t-r);return p(s)&gt;o?d((_(e)*(a=m(n))*_(r)-_(n)*(i=m(e))*_(t))/(i*a*s)):(e+n)/2}(r,n,a,c),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(u,n),e=0),t.point(r=a,n=c),i=u},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*l,n.point(-s,i),n.point(0,i),n.point(s,i),n.point(s,0),n.point(s,-i),n.point(0,-i),n.point(-s,-i),n.point(-s,0),n.point(-s,i);else if(p(t[0]-e[0])&gt;o){var a=t[0]&lt;e[0]?s:-s;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}),[-s,-l]);function ve(t){var e=m(t),r=6*h,n=e&gt;0,i=p(e)&gt;o;function a(t,r){return m(t)*m(r)&gt;e}function l(t,r,n){var i=[1,0,0],a=J(X(t),X(r)),l=Z(a,a),c=a[0],u=l-c*c;if(!u)return!n&amp;&amp;t;var f=e*l/u,h=-e*c/u,d=J(i,a),g=Q(i,f);K(g,Q(a,h));var m=d,v=Z(g,m),y=Z(m,m),x=v*v-y*(Z(g,g)-1);if(!(x&lt;0)){var b=T(x),_=Q(m,(-v-b)/y);if(K(_,g),_=W(_),!n)return _;var w,k=t[0],A=r[0],M=t[1],S=r[1];A&lt;k&amp;&amp;(w=k,k=A,A=w);var E=A-k,L=p(E-s)&lt;o;if(!L&amp;&amp;S&lt;M&amp;&amp;(w=M,M=S,S=w),L||E&lt;o?L?M+S&gt;0^_[1]&lt;(p(_[0]-k)&lt;o?M:S):M&lt;=_[1]&amp;&amp;_[1]&lt;=S:E&gt;s^(k&lt;=_[0]&amp;&amp;_[0]&lt;=A)){var C=Q(m,(-v+b)/y);return K(C,g),[_,W(C)]}}}function c(e,r){var i=n?t:s-t,a=0;return e&lt;-i?a|=1:e&gt;i&amp;&amp;(a|=2),r&lt;-i?a|=4:r&gt;i&amp;&amp;(a|=8),a}return pe(a,(function(t){var e,r,o,u,f;return{lineStart:function(){u=o=!1,f=1},point:function(h,p){var d,g=[h,p],m=a(h,p),v=n?m?0:c(h,p):m?c(h+(h&lt;0?s:-s),p):0;if(!e&amp;&amp;(u=o=m)&amp;&amp;t.lineStart(),m!==o&amp;&amp;(!(d=l(e,g))||oe(e,d)||oe(g,d))&amp;&amp;(g[2]=1),m!==o)f=0,m?(t.lineStart(),d=l(g,e),t.point(d[0],d[1])):(d=l(e,g),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&amp;&amp;e&amp;&amp;n^m){var y;v&amp;r||!(y=l(g,e,!0))||(f=0,n?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!m||e&amp;&amp;oe(e,g)||t.point(g[0],g[1]),e=g,o=m,r=v},lineEnd:function(){o&amp;&amp;t.lineEnd(),e=null},clean:function(){return f|(u&amp;&amp;o)&lt;&lt;1}}}),(function(e,n,i,a){ne(a,t,r,i,e,n)}),n?[0,-t]:[-s,t-s])}function ye(t,r,n,i){function a(e,a){return t&lt;=e&amp;&amp;e&lt;=n&amp;&amp;r&lt;=a&amp;&amp;a&lt;=i}function s(e,a,o,s){var c=0,f=0;if(null==e||(c=l(e,o))!==(f=l(a,o))||u(e,a)&lt;0^o&gt;0)do{s.point(0===c||3===c?t:n,c&gt;1?i:r)}while((c=(c+o+4)%4)!==f);else s.point(a[0],a[1])}function l(e,i){return p(e[0]-t)&lt;o?i&gt;0?0:3:p(e[0]-n)&lt;o?i&gt;0?2:1:p(e[1]-r)&lt;o?i&gt;0?1:0:i&gt;0?3:2}function c(t,e){return u(t.x,e.x)}function u(t,e){var r=l(t,1),n=l(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(o){var l,u,f,h,p,d,g,m,v,y,x,b=o,_=ae(),w={point:T,lineStart:function(){w.point=k,u&amp;&amp;u.push(f=[]);y=!0,v=!1,g=m=NaN},lineEnd:function(){l&amp;&amp;(k(h,p),d&amp;&amp;v&amp;&amp;_.rejoin(),l.push(_.result()));w.point=T,v&amp;&amp;b.lineEnd()},polygonStart:function(){b=_,l=[],u=[],x=!0},polygonEnd:function(){var r=function(){for(var e=0,r=0,n=u.length;r&lt;n;++r)for(var a,o,s=u[r],l=1,c=s.length,f=s[0],h=f[0],p=f[1];l&lt;c;++l)a=h,o=p,f=s[l],h=f[0],p=f[1],o&lt;=i?p&gt;i&amp;&amp;(h-a)*(i-o)&gt;(p-o)*(t-a)&amp;&amp;++e:p&lt;=i&amp;&amp;(h-a)*(i-o)&lt;(p-o)*(t-a)&amp;&amp;--e;return e}(),n=x&amp;&amp;r,a=(l=e.merge(l)).length;(n||a)&amp;&amp;(o.polygonStart(),n&amp;&amp;(o.lineStart(),s(null,null,1,o),o.lineEnd()),a&amp;&amp;le(l,c,r,s,o),o.polygonEnd());b=o,l=u=f=null}};function T(t,e){a(t,e)&amp;&amp;b.point(t,e)}function k(e,o){var s=a(e,o);if(u&amp;&amp;f.push([e,o]),y)h=e,p=o,d=s,y=!1,s&amp;&amp;(b.lineStart(),b.point(e,o));else if(s&amp;&amp;v)b.point(e,o);else{var l=[g=Math.max(-1e9,Math.min(1e9,g)),m=Math.max(-1e9,Math.min(1e9,m))],c=[e=Math.max(-1e9,Math.min(1e9,e)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,e,r,n,i,a){var o,s=t[0],l=t[1],c=0,u=1,f=e[0]-s,h=e[1]-l;if(o=r-s,f||!(o&gt;0)){if(o/=f,f&lt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}else if(f&gt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}if(o=i-s,f||!(o&lt;0)){if(o/=f,f&lt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}else if(f&gt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}if(o=n-l,h||!(o&gt;0)){if(o/=h,h&lt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}else if(h&gt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}if(o=a-l,h||!(o&lt;0)){if(o/=h,h&lt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}else if(h&gt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}return c&gt;0&amp;&amp;(t[0]=s+c*f,t[1]=l+c*h),u&lt;1&amp;&amp;(e[0]=s+u*f,e[1]=l+u*h),!0}}}}}(l,c,t,r,n,i)?s&amp;&amp;(b.lineStart(),b.point(e,o),x=!1):(v||(b.lineStart(),b.point(l[0],l[1])),b.point(c[0],c[1]),s||b.lineEnd(),x=!1)}g=e,m=o,v=s}return w}}var xe,be,_e,we=r(),Te={sphere:E,point:E,lineStart:function(){Te.point=Ae,Te.lineEnd=ke},lineEnd:E,polygonStart:E,polygonEnd:E};function ke(){Te.point=Te.lineEnd=E}function Ae(t,e){xe=t*=h,be=_(e*=h),_e=m(e),Te.point=Me}function Me(t,e){t*=h;var r=_(e*=h),n=m(e),i=p(t-xe),a=m(i),o=n*_(i),s=_e*r-be*n*a,l=be*r+_e*n*a;we.add(g(T(o*o+s*s),l)),xe=t,be=r,_e=n}function Se(t){return we.reset(),z(t,Te),+we}var Ee=[null,null],Le={type:&quot;LineString&quot;,coordinates:Ee};function Ce(t,e){return Ee[0]=t,Ee[1]=e,Se(Le)}var Pe={Feature:function(t,e){return Oe(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)if(Oe(r[n].geometry,e))return!0;return!1}},Ie={Sphere:function(){return!0},Point:function(t,e){return ze(t.coordinates,e)},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)if(ze(r[n],e))return!0;return!1},LineString:function(t,e){return De(t.coordinates,e)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)if(De(r[n],e))return!0;return!1},Polygon:function(t,e){return Re(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)if(Re(r[n],e))return!0;return!1},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)if(Oe(r[n],e))return!0;return!1}};function Oe(t,e){return!(!t||!Ie.hasOwnProperty(t.type))&amp;&amp;Ie[t.type](t,e)}function ze(t,e){return 0===Ce(t,e)}function De(t,e){for(var r,n,i,a=0,o=t.length;a&lt;o;a++){if(0===(n=Ce(t[a],e)))return!0;if(a&gt;0&amp;&amp;(i=Ce(t[a],t[a-1]))&gt;0&amp;&amp;r&lt;=i&amp;&amp;n&lt;=i&amp;&amp;(r+n-i)*(1-Math.pow((r-n)/i,2))&lt;1e-12*i)return!0;r=n}return!1}function Re(t,e){return!!he(t.map(Fe),Be(e))}function Fe(t){return(t=t.map(Be)).pop(),t}function Be(t){return[t[0]*h,t[1]*h]}function Ne(t,r,n){var i=e.range(t,r-o,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function je(t,r,n){var i=e.range(t,r-o,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function Ue(){var t,r,n,i,a,s,l,c,u,f,h,d,g=10,m=g,y=90,x=360,b=2.5;function _(){return{type:&quot;MultiLineString&quot;,coordinates:w()}}function w(){return e.range(v(i/y)*y,n,y).map(h).concat(e.range(v(c/x)*x,l,x).map(d)).concat(e.range(v(r/g)*g,t,g).filter((function(t){return p(t%y)&gt;o})).map(u)).concat(e.range(v(s/m)*m,a,m).filter((function(t){return p(t%x)&gt;o})).map(f))}return _.lines=function(){return w().map((function(t){return{type:&quot;LineString&quot;,coordinates:t}}))},_.outline=function(){return{type:&quot;Polygon&quot;,coordinates:[h(i).concat(d(l).slice(1),h(n).reverse().slice(1),d(c).reverse().slice(1))]}},_.extent=function(t){return arguments.length?_.extentMajor(t).extentMinor(t):_.extentMinor()},_.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],c=+t[0][1],l=+t[1][1],i&gt;n&amp;&amp;(t=i,i=n,n=t),c&gt;l&amp;&amp;(t=c,c=l,l=t),_.precision(b)):[[i,c],[n,l]]},_.extentMinor=function(e){return arguments.length?(r=+e[0][0],t=+e[1][0],s=+e[0][1],a=+e[1][1],r&gt;t&amp;&amp;(e=r,r=t,t=e),s&gt;a&amp;&amp;(e=s,s=a,a=e),_.precision(b)):[[r,s],[t,a]]},_.step=function(t){return arguments.length?_.stepMajor(t).stepMinor(t):_.stepMinor()},_.stepMajor=function(t){return arguments.length?(y=+t[0],x=+t[1],_):[y,x]},_.stepMinor=function(t){return arguments.length?(g=+t[0],m=+t[1],_):[g,m]},_.precision=function(e){return arguments.length?(b=+e,u=Ne(s,a,90),f=je(r,t,b),h=Ne(c,l,90),d=je(i,n,b),_):b},_.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ve(t){return t}var qe,He,Ge,Ye,We=r(),Xe=r(),Ze={point:E,lineStart:E,lineEnd:E,polygonStart:function(){Ze.lineStart=Je,Ze.lineEnd=$e},polygonEnd:function(){Ze.lineStart=Ze.lineEnd=Ze.point=E,We.add(p(Xe)),Xe.reset()},result:function(){var t=We/2;return We.reset(),t}};function Je(){Ze.point=Ke}function Ke(t,e){Ze.point=Qe,qe=Ge=t,He=Ye=e}function Qe(t,e){Xe.add(Ye*t-Ge*e),Ge=t,Ye=e}function $e(){Qe(qe,He)}var tr=1/0,er=tr,rr=-tr,nr=rr,ir={point:function(t,e){t&lt;tr&amp;&amp;(tr=t);t&gt;rr&amp;&amp;(rr=t);e&lt;er&amp;&amp;(er=e);e&gt;nr&amp;&amp;(nr=e)},lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E,result:function(){var t=[[tr,er],[rr,nr]];return rr=nr=-(er=tr=1/0),t}};var ar,or,sr,lr,cr=0,ur=0,fr=0,hr=0,pr=0,dr=0,gr=0,mr=0,vr=0,yr={point:xr,lineStart:br,lineEnd:Tr,polygonStart:function(){yr.lineStart=kr,yr.lineEnd=Ar},polygonEnd:function(){yr.point=xr,yr.lineStart=br,yr.lineEnd=Tr},result:function(){var t=vr?[gr/vr,mr/vr]:dr?[hr/dr,pr/dr]:fr?[cr/fr,ur/fr]:[NaN,NaN];return cr=ur=fr=hr=pr=dr=gr=mr=vr=0,t}};function xr(t,e){cr+=t,ur+=e,++fr}function br(){yr.point=_r}function _r(t,e){yr.point=wr,xr(sr=t,lr=e)}function wr(t,e){var r=t-sr,n=e-lr,i=T(r*r+n*n);hr+=i*(sr+t)/2,pr+=i*(lr+e)/2,dr+=i,xr(sr=t,lr=e)}function Tr(){yr.point=xr}function kr(){yr.point=Mr}function Ar(){Sr(ar,or)}function Mr(t,e){yr.point=Sr,xr(ar=sr=t,or=lr=e)}function Sr(t,e){var r=t-sr,n=e-lr,i=T(r*r+n*n);hr+=i*(sr+t)/2,pr+=i*(lr+e)/2,dr+=i,gr+=(i=lr*t-sr*e)*(sr+t),mr+=i*(lr+e),vr+=3*i,xr(sr=t,lr=e)}function Er(t){this._context=t}Er.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&amp;&amp;this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,u)}},result:E};var Lr,Cr,Pr,Ir,Or,zr=r(),Dr={point:E,lineStart:function(){Dr.point=Rr},lineEnd:function(){Lr&amp;&amp;Fr(Cr,Pr),Dr.point=E},polygonStart:function(){Lr=!0},polygonEnd:function(){Lr=null},result:function(){var t=+zr;return zr.reset(),t}};function Rr(t,e){Dr.point=Fr,Cr=Ir=t,Pr=Or=e}function Fr(t,e){Ir-=t,Or-=e,zr.add(T(Ir*Ir+Or*Or)),Ir=t,Or=e}function Br(){this._string=[]}function Nr(t){return&quot;m0,&quot;+t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+-2*t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+2*t+&quot;z&quot;}function jr(t){return function(e){var r=new Ur;for(var n in t)r[n]=t[n];return r.stream=e,r}}function Ur(){}function Vr(t,e,r){var n=t.clipExtent&amp;&amp;t.clipExtent();return t.scale(150).translate([0,0]),null!=n&amp;&amp;t.clipExtent(null),z(r,t.stream(ir)),e(ir.result()),null!=n&amp;&amp;t.clipExtent(n),t}function qr(t,e,r){return Vr(t,(function(r){var n=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(n/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),o=+e[0][0]+(n-a*(r[1][0]+r[0][0]))/2,s=+e[0][1]+(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])}),r)}function Hr(t,e,r){return qr(t,[[0,0],e],r)}function Gr(t,e,r){return Vr(t,(function(r){var n=+e,i=n/(r[1][0]-r[0][0]),a=(n-i*(r[1][0]+r[0][0]))/2,o=-i*r[0][1];t.scale(150*i).translate([a,o])}),r)}function Yr(t,e,r){return Vr(t,(function(r){var n=+e,i=n/(r[1][1]-r[0][1]),a=-i*r[0][0],o=(n-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([a,o])}),r)}Br.prototype={_radius:4.5,_circle:Nr(4.5),pointRadius:function(t){return(t=+t)!==this._radius&amp;&amp;(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&amp;&amp;this._string.push(&quot;Z&quot;),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push(&quot;M&quot;,t,&quot;,&quot;,e),this._point=1;break;case 1:this._string.push(&quot;L&quot;,t,&quot;,&quot;,e);break;default:null==this._circle&amp;&amp;(this._circle=Nr(this._radius)),this._string.push(&quot;M&quot;,t,&quot;,&quot;,e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join(&quot;&quot;);return this._string=[],t}return null}},Ur.prototype={constructor:Ur,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Wr=m(30*h);function Xr(t,e){return+e?function(t,e){function r(n,i,a,s,l,c,u,f,h,d,m,v,y,x){var b=u-n,_=f-i,w=b*b+_*_;if(w&gt;4*e&amp;&amp;y--){var k=s+d,A=l+m,S=c+v,E=T(k*k+A*A+S*S),L=M(S/=E),C=p(p(S)-1)&lt;o||p(a-h)&lt;o?(a+h)/2:g(A,k),P=t(C,L),I=P[0],O=P[1],z=I-n,D=O-i,R=_*z-b*D;(R*R/w&gt;e||p((b*z+_*D)/w-.5)&gt;.3||s*d+l*m+c*v&lt;Wr)&amp;&amp;(r(n,i,a,s,l,c,I,O,C,k/=E,A/=E,S,y,x),x.point(I,O),r(I,O,C,k,A,S,u,f,h,d,m,v,y,x))}}return function(e){var n,i,a,o,s,l,c,u,f,h,p,d,g={point:m,lineStart:v,lineEnd:x,polygonStart:function(){e.polygonStart(),g.lineStart=b},polygonEnd:function(){e.polygonEnd(),g.lineStart=v}};function m(r,n){r=t(r,n),e.point(r[0],r[1])}function v(){u=NaN,g.point=y,e.lineStart()}function y(n,i){var a=X([n,i]),o=t(n,i);r(u,f,c,h,p,d,u=o[0],f=o[1],c=n,h=a[0],p=a[1],d=a[2],16,e),e.point(u,f)}function x(){g.point=m,e.lineEnd()}function b(){v(),g.point=_,g.lineEnd=w}function _(t,e){y(n=t,e),i=u,a=f,o=h,s=p,l=d,g.point=y}function w(){r(u,f,c,h,p,d,i,a,n,o,s,l,16,e),g.lineEnd=x,x()}return g}}(t,e):function(t){return jr({point:function(e,r){e=t(e,r),this.stream.point(e[0],e[1])}})}(t)}var Zr=jr({point:function(t,e){this.stream.point(t*h,e*h)}});function Jr(t,e,r,n,i){function a(a,o){return[e+t*(a*=n),r-t*(o*=i)]}return a.invert=function(a,o){return[(a-e)/t*n,(r-o)/t*i]},a}function Kr(t,e,r,n,i,a){var o=m(a),s=_(a),l=o*t,c=s*t,u=o/t,f=s/t,h=(s*r-o*e)/t,p=(s*e+o*r)/t;function d(t,a){return[l*(t*=n)-c*(a*=i)+e,r-c*t-l*a]}return d.invert=function(t,e){return[n*(u*t-f*e+h),i*(p-f*t-u*e)]},d}function Qr(t){return $r((function(){return t}))()}function $r(t){var e,r,n,i,a,o,s,l,c,u,p=150,d=480,g=250,m=0,v=0,y=0,x=0,b=0,_=0,w=1,k=1,A=null,M=me,S=null,E=Ve,L=.5;function C(t){return l(t[0]*h,t[1]*h)}function P(t){return(t=l.invert(t[0],t[1]))&amp;&amp;[t[0]*f,t[1]*f]}function I(){var t=Kr(p,0,0,w,k,_).apply(null,e(m,v)),n=(_?Kr:Jr)(p,d-t[0],g-t[1],w,k,_);return r=Qt(y,x,b),s=Jt(e,n),l=Jt(r,s),o=Xr(s,L),O()}function O(){return c=u=null,C}return C.stream=function(t){return c&amp;&amp;u===t?c:c=Zr(function(t){return jr({point:function(e,r){var n=t(e,r);return this.stream.point(n[0],n[1])}})}(r)(M(o(E(u=t)))))},C.preclip=function(t){return arguments.length?(M=t,A=void 0,O()):M},C.postclip=function(t){return arguments.length?(E=t,S=n=i=a=null,O()):E},C.clipAngle=function(t){return arguments.length?(M=+t?ve(A=t*h):(A=null,me),O()):A*f},C.clipExtent=function(t){return arguments.length?(E=null==t?(S=n=i=a=null,Ve):ye(S=+t[0][0],n=+t[0][1],i=+t[1][0],a=+t[1][1]),O()):null==S?null:[[S,n],[i,a]]},C.scale=function(t){return arguments.length?(p=+t,I()):p},C.translate=function(t){return arguments.length?(d=+t[0],g=+t[1],I()):[d,g]},C.center=function(t){return arguments.length?(m=t[0]%360*h,v=t[1]%360*h,I()):[m*f,v*f]},C.rotate=function(t){return arguments.length?(y=t[0]%360*h,x=t[1]%360*h,b=t.length&gt;2?t[2]%360*h:0,I()):[y*f,x*f,b*f]},C.angle=function(t){return arguments.length?(_=t%360*h,I()):_*f},C.reflectX=function(t){return arguments.length?(w=t?-1:1,I()):w&lt;0},C.reflectY=function(t){return arguments.length?(k=t?-1:1,I()):k&lt;0},C.precision=function(t){return arguments.length?(o=Xr(s,L=t*t),O()):T(L)},C.fitExtent=function(t,e){return qr(C,t,e)},C.fitSize=function(t,e){return Hr(C,t,e)},C.fitWidth=function(t,e){return Gr(C,t,e)},C.fitHeight=function(t,e){return Yr(C,t,e)},function(){return e=t.apply(this,arguments),C.invert=e.invert&amp;&amp;P,I()}}function tn(t){var e=0,r=s/3,n=$r(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*h,r=t[1]*h):[e*f,r*f]},i}function en(t,e){var r=_(t),n=(r+_(e))/2;if(p(n)&lt;o)return function(t){var e=m(t);function r(t,r){return[t*e,_(r)/e]}return r.invert=function(t,r){return[t/e,M(r*e)]},r}(t);var i=1+r*(2*n-r),a=T(i)/n;function l(t,e){var r=T(i-2*n*_(e))/n;return[r*_(t*=n),a-r*m(t)]}return l.invert=function(t,e){var r=a-e,o=g(t,p(r))*w(r);return r*n&lt;0&amp;&amp;(o-=s*w(t)*w(r)),[o/n,M((i-(t*t+r*r)*n*n)/(2*n))]},l}function rn(){return tn(en).scale(155.424).center([0,33.6442])}function nn(){return rn().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function an(t){return function(e,r){var n=m(e),i=m(r),a=t(n*i);return[a*i*_(e),a*_(r)]}}function on(t){return function(e,r){var n=T(e*e+r*r),i=t(n),a=_(i),o=m(i);return[g(e*a,n*o),M(n&amp;&amp;r*a/n)]}}var sn=an((function(t){return T(2/(1+t))}));sn.invert=on((function(t){return 2*M(t/2)}));var ln=an((function(t){return(t=A(t))&amp;&amp;t/_(t)}));function cn(t,e){return[t,x(k((l+e)/2))]}function un(t){var e,r,n,i=Qr(t),a=i.center,o=i.scale,l=i.translate,c=i.clipExtent,u=null;function f(){var a=s*o(),l=i(re(i.rotate()).invert([0,0]));return c(null==u?[[l[0]-a,l[1]-a],[l[0]+a,l[1]+a]]:t===cn?[[Math.max(l[0]-a,u),e],[Math.min(l[0]+a,r),n]]:[[u,Math.max(l[1]-a,e)],[r,Math.min(l[1]+a,n)]])}return i.scale=function(t){return arguments.length?(o(t),f()):o()},i.translate=function(t){return arguments.length?(l(t),f()):l()},i.center=function(t){return arguments.length?(a(t),f()):a()},i.clipExtent=function(t){return arguments.length?(null==t?u=e=r=n=null:(u=+t[0][0],e=+t[0][1],r=+t[1][0],n=+t[1][1]),f()):null==u?null:[[u,e],[r,n]]},f()}function fn(t){return k((l+t)/2)}function hn(t,e){var r=m(t),n=t===e?_(t):x(r/m(e))/x(fn(e)/fn(t)),i=r*b(fn(t),n)/n;if(!n)return cn;function a(t,e){i&gt;0?e&lt;-l+o&amp;&amp;(e=-l+o):e&gt;l-o&amp;&amp;(e=l-o);var r=i/b(fn(e),n);return[r*_(n*t),i-r*m(n*t)]}return a.invert=function(t,e){var r=i-e,a=w(n)*T(t*t+r*r),o=g(t,p(r))*w(r);return r*n&lt;0&amp;&amp;(o-=s*w(t)*w(r)),[o/n,2*d(b(i/a,1/n))-l]},a}function pn(t,e){return[t,e]}function dn(t,e){var r=m(t),n=t===e?_(t):(r-m(e))/(e-t),i=r/n+t;if(p(n)&lt;o)return pn;function a(t,e){var r=i-e,a=n*t;return[r*_(a),i-r*m(a)]}return a.invert=function(t,e){var r=i-e,a=g(t,p(r))*w(r);return r*n&lt;0&amp;&amp;(a-=s*w(t)*w(r)),[a/n,i-w(n)*T(t*t+r*r)]},a}ln.invert=on((function(t){return t})),cn.invert=function(t,e){return[t,2*d(y(e))-l]},pn.invert=pn;var gn=1.340264,mn=-.081106,vn=893e-6,yn=.003796,xn=T(3)/2;function bn(t,e){var r=M(xn*_(e)),n=r*r,i=n*n*n;return[t*m(r)/(xn*(gn+3*mn*n+i*(7*vn+9*yn*n))),r*(gn+mn*n+i*(vn+yn*n))]}function _n(t,e){var r=m(e),n=m(t)*r;return[r*_(t)/n,_(e)/n]}function wn(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}function Tn(t,e){return[m(e)*_(t),_(e)]}function kn(t,e){var r=m(e),n=1+m(t)*r;return[r*_(t)/n,_(e)/n]}function An(t,e){return[x(k((l+e)/2)),-t]}bn.invert=function(t,e){for(var r,n=e,i=n*n,a=i*i*i,o=0;o&lt;12&amp;&amp;(a=(i=(n-=r=(n*(gn+mn*i+a*(vn+yn*i))-e)/(gn+3*mn*i+a*(7*vn+9*yn*i)))*n)*i*i,!(p(r)&lt;1e-12));++o);return[xn*t*(gn+3*mn*i+a*(7*vn+9*yn*i))/m(n),M(_(n)/xn)]},_n.invert=on(d),wn.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,s=a*a;n-=r=(n*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(p(r)&gt;o&amp;&amp;--i&gt;0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},Tn.invert=on(M),kn.invert=on((function(t){return 2*d(t)})),An.invert=function(t,e){return[-e,2*d(y(t))-l]},t.geoAlbers=nn,t.geoAlbersUsa=function(){var t,e,r,n,i,a,s=nn(),l=rn().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=rn().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){a=[t,e]}};function f(t){var e=t[0],o=t[1];return a=null,r.point(e,o),a||(n.point(e,o),a)||(i.point(e,o),a)}function h(){return t=e=null,f}return f.invert=function(t){var e=s.scale(),r=s.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i&gt;=.12&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.425&amp;&amp;n&lt;-.214?l:i&gt;=.166&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.214&amp;&amp;n&lt;-.115?c:s).invert(t)},f.stream=function(r){return t&amp;&amp;e===r?t:(n=[s.stream(e=r),l.stream(r),c.stream(r)],i=n.length,t={point:function(t,e){for(var r=-1;++r&lt;i;)n[r].point(t,e)},sphere:function(){for(var t=-1;++t&lt;i;)n[t].sphere()},lineStart:function(){for(var t=-1;++t&lt;i;)n[t].lineStart()},lineEnd:function(){for(var t=-1;++t&lt;i;)n[t].lineEnd()},polygonStart:function(){for(var t=-1;++t&lt;i;)n[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t&lt;i;)n[t].polygonEnd()}});var n,i},f.precision=function(t){return arguments.length?(s.precision(t),l.precision(t),c.precision(t),h()):s.precision()},f.scale=function(t){return arguments.length?(s.scale(t),l.scale(.35*t),c.scale(t),f.translate(s.translate())):s.scale()},f.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),a=+t[0],f=+t[1];return r=s.translate(t).clipExtent([[a-.455*e,f-.238*e],[a+.455*e,f+.238*e]]).stream(u),n=l.translate([a-.307*e,f+.201*e]).clipExtent([[a-.425*e+o,f+.12*e+o],[a-.214*e-o,f+.234*e-o]]).stream(u),i=c.translate([a-.205*e,f+.212*e]).clipExtent([[a-.214*e+o,f+.166*e+o],[a-.115*e-o,f+.234*e-o]]).stream(u),h()},f.fitExtent=function(t,e){return qr(f,t,e)},f.fitSize=function(t,e){return Hr(f,t,e)},f.fitWidth=function(t,e){return Gr(f,t,e)},f.fitHeight=function(t,e){return Yr(f,t,e)},f.scale(1070)},t.geoArea=function(t){return U.reset(),z(t,V),2*U},t.geoAzimuthalEqualArea=function(){return Qr(sn).scale(124.75).clipAngle(179.999)},t.geoAzimuthalEqualAreaRaw=sn,t.geoAzimuthalEquidistant=function(){return Qr(ln).scale(79.4188).clipAngle(179.999)},t.geoAzimuthalEquidistantRaw=ln,t.geoBounds=function(t){var e,r,n,i,a,o,s;if(nt=rt=-(tt=et=1/0),lt=[],z(t,St),r=lt.length){for(lt.sort(Rt),e=1,a=[n=lt[0]];e&lt;r;++e)Ft(n,(i=lt[e])[0])||Ft(n,i[1])?(Dt(n[0],i[1])&gt;Dt(n[0],n[1])&amp;&amp;(n[1]=i[1]),Dt(i[0],n[1])&gt;Dt(n[0],n[1])&amp;&amp;(n[0]=i[0])):a.push(n=i);for(o=-1/0,e=0,n=a[r=a.length-1];e&lt;=r;n=i,++e)i=a[e],(s=Dt(n[1],i[0]))&gt;o&amp;&amp;(o=s,tt=i[0],rt=n[1])}return lt=ct=null,tt===1/0||et===1/0?[[NaN,NaN],[NaN,NaN]]:[[tt,et],[rt,nt]]},t.geoCentroid=function(t){ut=ft=ht=pt=dt=gt=mt=vt=yt=xt=bt=0,z(t,Bt);var e=yt,r=xt,n=bt,i=e*e+r*r+n*n;return i&lt;1e-12&amp;&amp;(e=gt,r=mt,n=vt,ft&lt;o&amp;&amp;(e=ht,r=pt,n=dt),(i=e*e+r*r+n*n)&lt;1e-12)?[NaN,NaN]:[g(r,e)*f,M(n/T(i))*f]},t.geoCircle=function(){var t,e,r=Zt([0,0]),n=Zt(90),i=Zt(6),a={point:function(r,n){t.push(r=e(r,n)),r[0]*=f,r[1]*=f}};function o(){var o=r.apply(this,arguments),s=n.apply(this,arguments)*h,l=i.apply(this,arguments)*h;return t=[],e=Qt(-o[0]*h,-o[1]*h,0).invert,ne(a,s,l,1),o={type:&quot;Polygon&quot;,coordinates:[t]},t=e=null,o}return o.center=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Zt([+t[0],+t[1]]),o):r},o.radius=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:Zt(+t),o):n},o.precision=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:Zt(+t),o):i},o},t.geoClipAntimeridian=me,t.geoClipCircle=ve,t.geoClipExtent=function(){var t,e,r,n=0,i=0,a=960,o=500;return r={stream:function(r){return t&amp;&amp;e===r?t:t=ye(n,i,a,o)(e=r)},extent:function(s){return arguments.length?(n=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,r):[[n,i],[a,o]]}}},t.geoClipRectangle=ye,t.geoConicConformal=function(){return tn(hn).scale(109.5).parallels([30,30])},t.geoConicConformalRaw=hn,t.geoConicEqualArea=rn,t.geoConicEqualAreaRaw=en,t.geoConicEquidistant=function(){return tn(dn).scale(131.154).center([0,13.9389])},t.geoConicEquidistantRaw=dn,t.geoContains=function(t,e){return(t&amp;&amp;Pe.hasOwnProperty(t.type)?Pe[t.type]:Oe)(t,e)},t.geoDistance=Ce,t.geoEqualEarth=function(){return Qr(bn).scale(177.158)},t.geoEqualEarthRaw=bn,t.geoEquirectangular=function(){return Qr(pn).scale(152.63)},t.geoEquirectangularRaw=pn,t.geoGnomonic=function(){return Qr(_n).scale(144.049).clipAngle(60)},t.geoGnomonicRaw=_n,t.geoGraticule=Ue,t.geoGraticule10=function(){return Ue()()},t.geoIdentity=function(){var t,e,r,n,i,a,o,s=1,l=0,c=0,u=1,p=1,d=0,g=null,v=1,y=1,x=jr({point:function(t,e){var r=T([t,e]);this.stream.point(r[0],r[1])}}),b=Ve;function w(){return v=s*u,y=s*p,a=o=null,T}function T(r){var n=r[0]*v,i=r[1]*y;if(d){var a=i*t-n*e;n=n*t+i*e,i=a}return[n+l,i+c]}return T.invert=function(r){var n=r[0]-l,i=r[1]-c;if(d){var a=i*t+n*e;n=n*t-i*e,i=a}return[n/v,i/y]},T.stream=function(t){return a&amp;&amp;o===t?a:a=x(b(o=t))},T.postclip=function(t){return arguments.length?(b=t,g=r=n=i=null,w()):b},T.clipExtent=function(t){return arguments.length?(b=null==t?(g=r=n=i=null,Ve):ye(g=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),w()):null==g?null:[[g,r],[n,i]]},T.scale=function(t){return arguments.length?(s=+t,w()):s},T.translate=function(t){return arguments.length?(l=+t[0],c=+t[1],w()):[l,c]},T.angle=function(r){return arguments.length?(e=_(d=r%360*h),t=m(d),w()):d*f},T.reflectX=function(t){return arguments.length?(u=t?-1:1,w()):u&lt;0},T.reflectY=function(t){return arguments.length?(p=t?-1:1,w()):p&lt;0},T.fitExtent=function(t,e){return qr(T,t,e)},T.fitSize=function(t,e){return Hr(T,t,e)},T.fitWidth=function(t,e){return Gr(T,t,e)},T.fitHeight=function(t,e){return Yr(T,t,e)},T},t.geoInterpolate=function(t,e){var r=t[0]*h,n=t[1]*h,i=e[0]*h,a=e[1]*h,o=m(n),s=_(n),l=m(a),c=_(a),u=o*m(r),p=o*_(r),d=l*m(i),v=l*_(i),y=2*M(T(S(a-n)+o*l*S(i-r))),x=_(y),b=y?function(t){var e=_(t*=y)/x,r=_(y-t)/x,n=r*u+e*d,i=r*p+e*v,a=r*s+e*c;return[g(i,n)*f,g(a,T(n*n+i*i))*f]}:function(){return[r*f,n*f]};return b.distance=y,b},t.geoLength=Se,t.geoMercator=function(){return un(cn).scale(961/u)},t.geoMercatorRaw=cn,t.geoNaturalEarth1=function(){return Qr(wn).scale(175.295)},t.geoNaturalEarth1Raw=wn,t.geoOrthographic=function(){return Qr(Tn).scale(249.5).clipAngle(90+o)},t.geoOrthographicRaw=Tn,t.geoPath=function(t,e){var r,n,i=4.5;function a(t){return t&amp;&amp;(&quot;function&quot;==typeof i&amp;&amp;n.pointRadius(+i.apply(this,arguments)),z(t,r(n))),n.result()}return a.area=function(t){return z(t,r(Ze)),Ze.result()},a.measure=function(t){return z(t,r(Dr)),Dr.result()},a.bounds=function(t){return z(t,r(ir)),ir.result()},a.centroid=function(t){return z(t,r(yr)),yr.result()},a.projection=function(e){return arguments.length?(r=null==e?(t=null,Ve):(t=e).stream,a):t},a.context=function(t){return arguments.length?(n=null==t?(e=null,new Br):new Er(e=t),&quot;function&quot;!=typeof i&amp;&amp;n.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:(n.pointRadius(+t),+t),a):i},a.projection(t).context(e)},t.geoProjection=Qr,t.geoProjectionMutator=$r,t.geoRotation=re,t.geoStereographic=function(){return Qr(kn).scale(250).clipAngle(142)},t.geoStereographicRaw=kn,t.geoStream=z,t.geoTransform=function(t){return{stream:jr(t)}},t.geoTransverseMercator=function(){var t=un(An),e=t.center,r=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?r([t[0],t[1],t.length&gt;2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=An,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:162}],170:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&amp;&amp;r.length;if(n)for(;--n&gt;=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,u=new c(t),f=+t.value&amp;&amp;(u.value=t.value),h=[u];for(null==e&amp;&amp;(e=o);r=h.pop();)if(f&amp;&amp;(r.value=+r.data.value),(i=e(r.data))&amp;&amp;(s=i.length))for(r.children=new Array(s),a=s-1;a&gt;=0;--a)h.push(n=r.children[a]=new c(i[a])),n.parent=r,n.depth=r.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&amp;&amp;t.height&lt;++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=a.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n&lt;i;++n)o.push(r[n])}while(o.length);return this},eachAfter:function(t){for(var e,r,n,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(r=0,n=e.length;r&lt;n;++r)a.push(e[r]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,r,n=this,i=[n];n=i.pop();)if(t(n),e=n.children)for(r=e.length-1;r&gt;=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&amp;&amp;n.length;--i&gt;=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&amp;&amp;e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;t=r.pop(),e=n.pop();for(;t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&amp;&amp;e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var u=Array.prototype.slice;function f(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(u.call(t))).length,a=[];n&lt;i;)e=t[n],r&amp;&amp;d(r,e)?++n:(r=m(a=h(a,e)),n=0);return r}function h(t,e){var r,n;if(g(e,t))return[e];for(r=0;r&lt;t.length;++r)if(p(e,t[r])&amp;&amp;g(v(t[r],e),t))return[t[r],e];for(r=0;r&lt;t.length-1;++r)for(n=r+1;n&lt;t.length;++n)if(p(v(t[r],t[n]),e)&amp;&amp;p(v(t[r],e),t[n])&amp;&amp;p(v(t[n],e),t[r])&amp;&amp;g(y(t[r],t[n],e),t))return[t[r],t[n],e];throw new Error}function p(t,e){var r=t.r-e.r,n=e.x-t.x,i=e.y-t.y;return r&lt;0||r*r&lt;n*n+i*i}function d(t,e){var r=t.r-e.r+1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function g(t,e){for(var r=0;r&lt;e.length;++r)if(!d(t,e[r]))return!1;return!0}function m(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return v(t[0],t[1]);case 3:return y(t[0],t[1],t[2])}var e}function v(t,e){var r=t.x,n=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-r,c=o-n,u=s-i,f=Math.sqrt(l*l+c*c);return{x:(r+a+l/f*u)/2,y:(n+o+c/f*u)/2,r:(f+i+s)/2}}function y(t,e,r){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=r.x,u=r.y,f=r.r,h=n-o,p=n-c,d=i-s,g=i-u,m=l-a,v=f-a,y=n*n+i*i-a*a,x=y-o*o-s*s+l*l,b=y-c*c-u*u+f*f,_=p*d-h*g,w=(d*b-g*x)/(2*_)-n,T=(g*m-d*v)/_,k=(p*x-h*b)/(2*_)-i,A=(h*v-p*m)/_,M=T*T+A*A-1,S=2*(a+w*T+k*A),E=w*w+k*k-a*a,L=-(M?(S+Math.sqrt(S*S-4*M*E))/(2*M):E/S);return{x:n+w+T*L,y:i+k+A*L,r:L}}function x(t,e,r){var n,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+r.r,i*=i,o=t.r+r.r,i&gt;(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function b(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function _(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i&gt;1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i&gt;2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;s&lt;i;++s){x(e._,r._,n=t[s]),n=new w(n),l=r.next,c=e.previous,u=r._.r,h=e._.r;do{if(u&lt;=h){if(b(l._,n._)){r=l,e.next=r,r.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(b(c._,n._)){(e=c).next=r,r.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);for(n.previous=e,n.next=r,e.next=r.previous=r=n,a=_(e);(n=n.next)!==r;)(o=_(n))&lt;a&amp;&amp;(e=n,a=o);r=e.next}for(e=[r._],n=r;(n=n.next)!==r;)e.push(n._);for(n=f(e),s=0;s&lt;i;++s)(e=t[s]).x-=n.x,e.y-=n.y;return n.r}function k(t){return null==t?null:A(t)}function A(t){if(&quot;function&quot;!=typeof t)throw new Error;return t}function M(){return 0}function S(t){return function(){return t}}function E(t){return Math.sqrt(t.value)}function L(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function C(t,e){return function(r){if(n=r.children){var n,i,a,o=n.length,s=t(r)*e||0;if(s)for(i=0;i&lt;o;++i)n[i].r+=s;if(a=T(n),s)for(i=0;i&lt;o;++i)n[i].r-=s;r.r=a+s}}}function P(t){return function(e){var r=e.parent;e.r*=t,r&amp;&amp;(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function I(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function O(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(n-e)/t.value;++s&lt;l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}var z={depth:-1},D={};function R(t){return t.id}function F(t){return t.parentId}function B(t,e){return t.parent===e.parent?1:2}function N(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function U(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function V(t,e,r){return t.a.parent===e.parent?t.a:r}function q(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function H(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(i-r)/t.value;++s&lt;l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}q.prototype=Object.create(c.prototype);var G=(1+Math.sqrt(5))/2;function Y(t,e,r,n,i,a){for(var o,s,l,c,u,f,h,p,d,g,m,v=[],y=e.children,x=0,b=0,_=y.length,w=e.value;x&lt;_;){l=i-r,c=a-n;do{u=y[b++].value}while(!u&amp;&amp;b&lt;_);for(f=h=u,m=u*u*(g=Math.max(c/l,l/c)/(w*t)),d=Math.max(h/m,m/f);b&lt;_;++b){if(u+=s=y[b].value,s&lt;f&amp;&amp;(f=s),s&gt;h&amp;&amp;(h=s),m=u*u*g,(p=Math.max(h/m,m/f))&gt;d){u-=s;break}d=p}v.push(o={value:u,dice:l&lt;c,children:y.slice(x,b)}),o.dice?O(o,r,n,i,w?n+=c*u/w:a):H(o,r,n,w?r+=l*u/w:i,a),w-=u,x=b}return v}var W=function t(e){function r(t,r,n,i,a){Y(e,t,r,n,i,a)}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);var X=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&amp;&amp;o.ratio===e)for(var o,s,l,c,u,f=-1,h=o.length,p=t.value;++f&lt;h;){for(l=(s=o[f]).children,c=s.value=0,u=l.length;c&lt;u;++c)s.value+=l[c].value;s.dice?O(s,r,n,i,n+=(a-n)*s.value/p):H(s,r,n,r+=(i-r)*s.value/p,a),p-=s.value}else t._squarify=o=Y(e,t,r,n,i,a),o.ratio=e}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=c.x-t(c,u)/2,h=u.x+t(u,c)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-f)/(h-f)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=M;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(L(t)).eachAfter(C(n,.5)).eachBefore(P(1)):i.eachBefore(L(E)).eachAfter(C(M,1)).eachAfter(C(n,i.r/Math.min(e,r))).eachBefore(P(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=k(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:S(+t),i):n},i},t.packEnclose=f,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&amp;&amp;O(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o&lt;i&amp;&amp;(i=o=(i+o)/2),s&lt;a&amp;&amp;(a=s=(a+s)/2),n.x0=i,n.y0=a,n.x1=o,n.y1=s}}(e,a)),n&amp;&amp;i.eachBefore(I),i}return i.round=function(t){return arguments.length?(n=!!t,i):n},i.size=function(r){return arguments.length?(t=+r[0],e=+r[1],i):[t,e]},i.padding=function(t){return arguments.length?(r=+t,i):r},i},t.stratify=function(){var t=R,e=F;function r(r){var n,i,a,o,s,u,f,h=r.length,p=new Array(h),d={};for(i=0;i&lt;h;++i)n=r[i],s=p[i]=new c(n),null!=(u=t(n,i,r))&amp;&amp;(u+=&quot;&quot;)&amp;&amp;(d[f=&quot;$&quot;+(s.id=u)]=f in d?D:s);for(i=0;i&lt;h;++i)if(s=p[i],null!=(u=e(r[i],i,r))&amp;&amp;(u+=&quot;&quot;)){if(!(o=d[&quot;$&quot;+u]))throw new Error(&quot;missing: &quot;+u);if(o===D)throw new Error(&quot;ambiguous: &quot;+u);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error(&quot;multiple roots&quot;);a=s}if(!a)throw new Error(&quot;no root&quot;);if(a.parent=z,a.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(l),a.parent=null,h&gt;0)throw new Error(&quot;cycle&quot;);return a}return r.id=function(e){return arguments.length?(t=A(e),r):t},r.parentId=function(t){return arguments.length?(e=A(t),r):e},r},t.tree=function(){var t=B,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new q(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i&gt;=0;--i)s.push(r=e.children[i]=new q(n[i],i)),r.parent=e;return(o.parent=new q(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.x&lt;c.x&amp;&amp;(c=t),t.x&gt;u.x&amp;&amp;(u=t),t.depth&gt;f.depth&amp;&amp;(f=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,d=e/(u.x+h+p),g=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&amp;&amp;(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=j(s),a=N(a),s&amp;&amp;a;)l=N(l),(o=j(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))&gt;0&amp;&amp;(U(V(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!j(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!N(l)&amp;&amp;(l.t=a,l.m+=c-h,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=W,e=!1,r=1,n=1,i=[0],a=M,o=M,s=M,l=M,c=M;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&amp;&amp;t.eachBefore(I),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,h=e.y1-r;f&lt;n&amp;&amp;(n=f=(n+f)/2),h&lt;u&amp;&amp;(u=h=(u+h)/2),e.x0=n,e.y0=u,e.x1=f,e.y1=h,e.children&amp;&amp;(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,(f-=s(e)-r)&lt;n&amp;&amp;(n=f=(n+f)/2),(h-=l(e)-r)&lt;u&amp;&amp;(u=h=(u+h)/2),t(e,n,u,f,h))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=A(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:S(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:S(+t),u):o},u.paddingRight=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:S(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l=&quot;function&quot;==typeof t?t:S(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c=&quot;function&quot;==typeof t?t:S(+t),u):c},u},t.treemapBinary=function(t,e,r,n,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a&lt;l;++a)c[a+1]=o+=s[a].value;!function t(e,r,n,i,a,o,l){if(e&gt;=r-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var f=c[e],h=n/2+f,p=e+1,d=r-1;for(;p&lt;d;){var g=p+d&gt;&gt;&gt;1;c[g]&lt;h?p=g+1:d=g}h-c[p-1]&lt;c[p]-h&amp;&amp;e+1&lt;p&amp;&amp;--p;var m=c[p]-f,v=n-m;if(o-i&gt;l-a){var y=(i*v+o*m)/n;t(e,p,m,i,a,y,l),t(p,r,v,y,a,o,l)}else{var x=(a*v+l*m)/n;t(e,p,m,i,a,o,x),t(p,r,v,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=O,t.treemapResquarify=X,t.treemapSlice=H,t.treemapSliceDice=function(t,e,r,n,i){(1&amp;t.depth?H:O)(t,e,r,n,i)},t.treemapSquarify=W,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],171:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-color&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n&lt;=0?n=0:n&gt;=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i&gt;0?t[i-1]:2*a-o,l=i&lt;e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)&lt;0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r&gt;180||r&lt;-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+&quot;&quot;}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n&lt;a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+&quot;&quot;}}}var h=f(n),p=f(i);function d(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r&lt;n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function g(t){return ArrayBuffer.isView(t)&amp;&amp;!(t instanceof DataView)}function m(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r&lt;i;++r)a[r]=T(t[r],e[r]);for(;r&lt;n;++r)o[r]=e[r];return function(t){for(r=0;r&lt;i;++r)o[r]=a[r](t);return o}}function v(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function y(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function x(t,e){var r,n={},i={};for(r in null!==t&amp;&amp;&quot;object&quot;==typeof t||(t={}),null!==e&amp;&amp;&quot;object&quot;==typeof e||(e={}),e)r in t?n[r]=T(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(b.source,&quot;g&quot;);function w(t,e){var r,n,i,a=b.lastIndex=_.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=b.exec(t))&amp;&amp;(n=_.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:y(r,n)})),a=_.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?function(t){return function(e){return t(e)+&quot;&quot;}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}function T(t,r){var n,i=typeof r;return null==r||&quot;boolean&quot;===i?a(r):(&quot;number&quot;===i?y:&quot;string&quot;===i?(n=e.color(r))?(r=n,u):w:r instanceof e.color?u:r instanceof Date?v:g(r)?d:Array.isArray(r)?m:&quot;function&quot;!=typeof r.valueOf&amp;&amp;&quot;function&quot;!=typeof r.toString||isNaN(r)?x:y)(t,r)}var k,A,M,S,E=180/Math.PI,L={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function C(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&amp;&amp;(t/=o,e/=o),(l=t*r+e*n)&amp;&amp;(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&amp;&amp;(r/=s,n/=s,l/=s),t*n&lt;e*r&amp;&amp;(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*E,skewX:Math.atan(l)*E,scaleX:o,scaleY:s}}function P(t,e,r,n){function i(t){return t.length?t.pop()+&quot; &quot;:&quot;&quot;}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(&quot;translate(&quot;,null,e,null,r);s.push({i:l-4,x:y(t,i)},{i:l-2,x:y(n,a)})}else(i||a)&amp;&amp;o.push(&quot;translate(&quot;+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),a.push({i:r.push(i(r)+&quot;rotate(&quot;,null,n)-2,x:y(t,e)})):e&amp;&amp;r.push(i(r)+&quot;rotate(&quot;+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+&quot;skewX(&quot;,null,n)-2,x:y(t,e)}):e&amp;&amp;r.push(i(r)+&quot;skewX(&quot;+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);o.push({i:s-4,x:y(t,r)},{i:s-2,x:y(e,n)})}else 1===r&amp;&amp;1===n||a.push(i(a)+&quot;scale(&quot;+r+&quot;,&quot;+n+&quot;)&quot;)}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r&lt;n;)s[(e=l[r]).i]=e.x(t);return s.join(&quot;&quot;)}}}var I=P((function(t){return&quot;none&quot;===t?L:(k||(k=document.createElement(&quot;DIV&quot;),A=document.documentElement,M=document.defaultView),k.style.transform=t,t=M.getComputedStyle(A.appendChild(k),null).getPropertyValue(&quot;transform&quot;),A.removeChild(k),C(+(t=t.slice(7,-1).split(&quot;,&quot;))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),&quot;px, &quot;,&quot;px)&quot;,&quot;deg)&quot;),O=P((function(t){return null==t?L:(S||(S=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;)),S.setAttribute(&quot;transform&quot;,t),(t=S.transform.baseVal.consolidate())?C((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):L)}),&quot;, &quot;,&quot;)&quot;,&quot;)&quot;),z=Math.SQRT2;function D(t){return((t=Math.exp(t))+1/t)/2}function R(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var F=R(s),B=R(c);function N(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var j=N(s),U=N(c);function V(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+&quot;&quot;}}return n=+n,i.gamma=r,i}(1)}var q=V(s),H=V(c);t.interpolate=T,t.interpolateArray=function(t,e){return(g(e)?d:m)(t,e)},t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateCubehelix=q,t.interpolateCubehelixLong=H,t.interpolateDate=v,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHcl=j,t.interpolateHclLong=U,t.interpolateHsl=F,t.interpolateHslLong=B,t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+&quot;&quot;}},t.interpolateNumber=y,t.interpolateNumberArray=d,t.interpolateObject=x,t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateRound=function(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}},t.interpolateString=w,t.interpolateTransformCss=I,t.interpolateTransformSvg=O,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/z,r=function(t){return[i+t*u,a+t*f,o*Math.exp(z*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/z,r=function(t){var e,r=t*n,s=D(m),l=o/(2*p)*(s*(e=z*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/D(z*r+m)]}}return r.duration=1e3*n,r},t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-color&quot;:164}],172:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=Math.PI,r=2*e,n=r-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=&quot;&quot;}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(t,e){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&amp;&amp;(this._x1=this._x0,this._y1=this._y0,this._+=&quot;Z&quot;)},lineTo:function(t,e){this._+=&quot;L&quot;+(this._x1=+t)+&quot;,&quot;+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+=&quot;Q&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+(this._x1=+r)+&quot;,&quot;+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+=&quot;C&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+ +r+&quot;,&quot;+ +n+&quot;,&quot;+(this._x1=+i)+&quot;,&quot;+(this._y1=+a)},arcTo:function(t,r,n,i,a){t=+t,r=+r,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,h=u*u+f*f;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);if(null===this._x1)this._+=&quot;M&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else if(h&gt;1e-6)if(Math.abs(f*l-c*u)&gt;1e-6&amp;&amp;a){var p=n-o,d=i-s,g=l*l+c*c,m=p*p+d*d,v=Math.sqrt(g),y=Math.sqrt(h),x=a*Math.tan((e-Math.acos((g+h-m)/(2*v*y)))/2),b=x/y,_=x/v;Math.abs(b-1)&gt;1e-6&amp;&amp;(this._+=&quot;L&quot;+(t+b*u)+&quot;,&quot;+(r+b*f)),this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,0,&quot;+ +(f*p&gt;u*d)+&quot;,&quot;+(this._x1=t+_*l)+&quot;,&quot;+(this._y1=r+_*c)}else this._+=&quot;L&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else;},arc:function(t,i,a,o,s,l){t=+t,i=+i,l=!!l;var c=(a=+a)*Math.cos(o),u=a*Math.sin(o),f=t+c,h=i+u,p=1^l,d=l?o-s:s-o;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);null===this._x1?this._+=&quot;M&quot;+f+&quot;,&quot;+h:(Math.abs(this._x1-f)&gt;1e-6||Math.abs(this._y1-h)&gt;1e-6)&amp;&amp;(this._+=&quot;L&quot;+f+&quot;,&quot;+h),a&amp;&amp;(d&lt;0&amp;&amp;(d=d%r+r),d&gt;n?this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(t-c)+&quot;,&quot;+(i-u)+&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(this._x1=f)+&quot;,&quot;+(this._y1=h):d&gt;1e-6&amp;&amp;(this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,&quot;+ +(d&gt;=e)+&quot;,&quot;+p+&quot;,&quot;+(this._x1=t+a*Math.cos(s))+&quot;,&quot;+(this._y1=i+a*Math.sin(s))))},rect:function(t,e,r,n){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)+&quot;h&quot;+ +r+&quot;v&quot;+ +n+&quot;h&quot;+-r+&quot;Z&quot;},toString:function(){return this._}},t.path=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],173:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o,i=p,!(p=p[f=u&lt;&lt;1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&amp;&amp;r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o}while((f=u&lt;&lt;1|c)==(h=(l&gt;=o)&lt;&lt;1|s&gt;=a));return i[h]=p,i[f]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i&lt;4;++i)(e=n.source[i])&amp;&amp;(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n&lt;o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i&lt;c&amp;&amp;(c=i),i&gt;f&amp;&amp;(f=i),a&lt;u&amp;&amp;(u=a),a&gt;h&amp;&amp;(h=a));if(c&gt;f||u&gt;h)return this;for(this.cover(c,u).cover(f,h),n=0;n&lt;o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var o,s,l=i-r,c=this._root;r&gt;t||t&gt;=i||n&gt;e||e&gt;=a;)switch(s=(e&lt;n)&lt;&lt;1|t&lt;r,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=r+l,a=n+l;break;case 1:r=i-l,a=n+l;break;case 2:i=r+l,n=a-l;break;case 3:r=i-l,n=a-l}this._root&amp;&amp;this._root.length&amp;&amp;(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,g=[],m=this._root;for(m&amp;&amp;g.push(new r(m,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=g.pop();)if(!(!(m=c.node)||(a=c.x0)&gt;p||(o=c.y0)&gt;d||(s=c.x1)&lt;f||(l=c.y1)&lt;h))if(m.length){var v=(a+s)/2,y=(o+l)/2;g.push(new r(m[3],v,y,s,l),new r(m[2],a,y,v,l),new r(m[1],v,o,s,y),new r(m[0],a,o,v,y)),(u=(e&gt;=y)&lt;&lt;1|t&gt;=v)&amp;&amp;(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),_=x*x+b*b;if(_&lt;n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=m.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a&gt;=(s=(d+m)/2))?d=s:m=s,(u=o&gt;=(l=(g+v)/2))?g=l:v=l,e=p,!(p=p[f=u&lt;&lt;1|c]))return this;if(!p.length)break;(e[f+1&amp;3]||e[f+2&amp;3]||e[f+3&amp;3])&amp;&amp;(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&amp;&amp;delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&amp;&amp;p===(e[3]||e[2]||e[1]||e[0])&amp;&amp;!p.length&amp;&amp;(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e&lt;r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&amp;&amp;l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&amp;&amp;c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&amp;&amp;l.push(new r(n,u,f,o,s)),(n=c[2])&amp;&amp;l.push(new r(n,i,f,u,s)),(n=c[1])&amp;&amp;l.push(new r(n,u,a,o,f)),(n=c[0])&amp;&amp;l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&amp;&amp;n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&amp;&amp;n.push(new r(o,s,l,f,h)),(o=a[1])&amp;&amp;n.push(new r(o,f,l,c,h)),(o=a[2])&amp;&amp;n.push(new r(o,s,h,f,u)),(o=a[3])&amp;&amp;n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],174:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-path&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=Math.PI,f=u/2,h=2*u;function p(t){return t&gt;1?0:t&lt;-1?u:Math.acos(t)}function d(t){return t&gt;=1?f:t&lt;=-1?-f:Math.asin(t)}function g(t){return t.innerRadius}function m(t){return t.outerRadius}function v(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&amp;&amp;t.padAngle}function b(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,f=s-a,h=f*l-u*c;if(!(h*h&lt;1e-12))return[t+(h=(u*(e-a)-f*(t-i))/h)*l,e+h*c]}function _(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),h=f*u,p=-f*l,d=t+h,g=e+p,m=r+h,v=n+p,y=(d+m)/2,x=(g+v)/2,b=m-d,_=v-g,w=b*b+_*_,T=i-a,k=d*v-m*g,A=(_&lt;0?-1:1)*c(o(0,T*T*w-k*k)),M=(k*_-b*A)/w,S=(-k*b-_*A)/w,E=(k*_+b*A)/w,L=(-k*b+_*A)/w,C=M-y,P=S-x,I=E-y,O=L-x;return C*C+P*P&gt;I*I+O*O&amp;&amp;(M=E,S=L),{cx:M,cy:S,x01:-h,y01:-p,x11:M*(i/T-1),y11:S*(i/T-1)}}function w(t){this._context=t}function T(t){return new w(t)}function k(t){return t[0]}function A(t){return t[1]}function M(){var t=k,n=A,i=r(!0),a=null,o=T,s=null;function l(r){var l,c,u,f=r.length,h=!1;for(null==a&amp;&amp;(s=o(u=e.path())),l=0;l&lt;=f;++l)!(l&lt;f&amp;&amp;i(c=r[l],l,r))===h&amp;&amp;((h=!h)?s.lineStart():s.lineEnd()),h&amp;&amp;s.point(+t(c,l,r),+n(c,l,r));if(u)return s=null,u+&quot;&quot;||null}return l.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),l):t},l.y=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),l):n},l.defined=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&amp;&amp;(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function S(){var t=k,n=null,i=r(0),a=A,o=r(!0),s=null,l=T,c=null;function u(r){var u,f,h,p,d,g=r.length,m=!1,v=new Array(g),y=new Array(g);for(null==s&amp;&amp;(c=l(d=e.path())),u=0;u&lt;=g;++u){if(!(u&lt;g&amp;&amp;o(p=r[u],u,r))===m)if(m=!m)f=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=u-1;h&gt;=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}m&amp;&amp;(v[u]=+t(p,u,r),y[u]=+i(p,u,r),c.point(n?+n(p,u,r):v[u],a?+a(p,u,r):y[u]))}if(d)return c=null,d+&quot;&quot;||null}function f(){return M().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&amp;&amp;(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function E(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN}function L(t){return t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var C=I(T);function P(t){this._curve=t}function I(t){function e(e){return new P(t(e))}return e._curve=t,e}function O(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(I(t)):e()._curve},t}function z(){return O(M().curve(C))}function D(){var t=S().curve(C),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return O(r())},delete t.lineX0,t.lineEndAngle=function(){return O(n())},delete t.lineX1,t.lineInnerRadius=function(){return O(i())},delete t.lineY0,t.lineOuterRadius=function(){return O(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(I(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}P.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var F=Array.prototype.slice;function B(t){return t.source}function N(t){return t.target}function j(t){var n=B,i=N,a=k,o=A,s=null;function l(){var r,l=F.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+&quot;&quot;||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function V(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function q(t,e,r,n,i){var a=R(e,r),o=R(e,r=(r+i)/2),s=R(n,r),l=R(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var H={draw:function(t,e){var r=Math.sqrt(e/u);t.moveTo(r,0),t.arc(0,0,r,0,h)}},G={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Y=Math.sqrt(1/3),W=2*Y,X={draw:function(t,e){var r=Math.sqrt(e/W),n=r*Y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Z=Math.sin(u/10)/Math.sin(7*u/10),J=Math.sin(h/10)*Z,K=-Math.cos(h/10)*Z,Q={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=J*r,i=K*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a&lt;5;++a){var o=h*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},$={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},tt=Math.sqrt(3),et={draw:function(t,e){var r=-Math.sqrt(e/(3*tt));t.moveTo(0,2*r),t.lineTo(-tt*r,-r),t.lineTo(tt*r,-r),t.closePath()}},rt=-.5,nt=Math.sqrt(3)/2,it=1/Math.sqrt(12),at=3*(it/2+1),ot={draw:function(t,e){var r=Math.sqrt(e/at),n=r/2,i=r*it,a=n,o=r*it+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(rt*n-nt*i,nt*n+rt*i),t.lineTo(rt*a-nt*o,nt*a+rt*o),t.lineTo(rt*s-nt*l,nt*s+rt*l),t.lineTo(rt*n+nt*i,rt*i-nt*n),t.lineTo(rt*a+nt*o,rt*o-nt*a),t.lineTo(rt*s+nt*l,rt*l-nt*s),t.closePath()}},st=[H,G,X,$,Q,et,ot];function lt(){}function ct(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ut(t){this._context=t}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t,e){this._basis=new ut(t),this._beta=e}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ct(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},pt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r&gt;0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l&lt;=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function r(t){return 1===e?new ut(t):new pt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function gt(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function mt(t,e){this._context=t,this._k=(1-e)/6}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gt(this,this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new mt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function wt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a&gt;1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a&gt;1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function r(t){return e?new Tt(t,e):new mt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function At(t,e){this._context=t,this._alpha=e}At.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Mt=function t(e){function r(t){return e?new At(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return e?new St(t,e):new bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Lt(t){this._context=t}function Ct(t){return t&lt;0?-1:1}function Pt(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i&lt;0&amp;&amp;-0),o=(r-t._y1)/(i||n&lt;0&amp;&amp;-0),s=(a*i+o*n)/(n+i);return(Ct(a)+Ct(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function It(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Ot(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function zt(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Ft(t){this._context=t}function Bt(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e&lt;n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e&lt;n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e&gt;=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e&lt;n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Nt(t,e){this._context=t,this._t=e}function jt(t,e){if((i=t.length)&gt;1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a&lt;i;++a)for(n=o,o=t[e[a]],r=0;r&lt;s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Ut(t){for(var e=t.length,r=new Array(e);--e&gt;=0;)r[e]=e;return r}function Vt(t,e){return t[e]}function qt(t){var e=t.map(Ht);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Ht(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++r&lt;i;)(e=+t[r][1])&gt;a&amp;&amp;(a=e,n=r);return n}function Gt(t){var e=t.map(Yt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Yt(t){for(var e,r=0,n=-1,i=t.length;++n&lt;i;)(e=+t[n][1])&amp;&amp;(r+=e);return r}Lt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&amp;&amp;this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},zt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ot(this,this._t0,It(this,this._t0))}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ot(this,It(this,r=Pt(this,t,e)),r);break;default:Ot(this,this._t0,r=Pt(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Dt.prototype=Object.create(zt.prototype)).point=function(t,e){zt.prototype.point.call(this,e,t)},Rt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Bt(t),i=Bt(e),a=0,o=1;o&lt;r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&amp;&amp;1===r)&amp;&amp;this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0&lt;this._t&amp;&amp;this._t&lt;1&amp;&amp;2===this._point&amp;&amp;this._context.lineTo(this._x,this._y),(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line&gt;=0&amp;&amp;(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t&lt;=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=g,o=m,w=r(0),T=null,k=v,A=y,M=x,S=null;function E(){var r,g,m=+t.apply(this,arguments),v=+o.apply(this,arguments),y=k.apply(this,arguments)-f,x=A.apply(this,arguments)-f,E=n(x-y),L=x&gt;y;if(S||(S=r=e.path()),v&lt;m&amp;&amp;(g=v,v=m,m=g),v&gt;1e-12)if(E&gt;h-1e-12)S.moveTo(v*a(y),v*l(y)),S.arc(0,0,v,y,x,!L),m&gt;1e-12&amp;&amp;(S.moveTo(m*a(x),m*l(x)),S.arc(0,0,m,x,y,L));else{var C,P,I=y,O=x,z=y,D=x,R=E,F=E,B=M.apply(this,arguments)/2,N=B&gt;1e-12&amp;&amp;(T?+T.apply(this,arguments):c(m*m+v*v)),j=s(n(v-m)/2,+w.apply(this,arguments)),U=j,V=j;if(N&gt;1e-12){var q=d(N/m*l(B)),H=d(N/v*l(B));(R-=2*q)&gt;1e-12?(z+=q*=L?1:-1,D-=q):(R=0,z=D=(y+x)/2),(F-=2*H)&gt;1e-12?(I+=H*=L?1:-1,O-=H):(F=0,I=O=(y+x)/2)}var G=v*a(I),Y=v*l(I),W=m*a(D),X=m*l(D);if(j&gt;1e-12){var Z,J=v*a(O),K=v*l(O),Q=m*a(z),$=m*l(z);if(E&lt;u&amp;&amp;(Z=b(G,Y,Q,$,J,K,W,X))){var tt=G-Z[0],et=Y-Z[1],rt=J-Z[0],nt=K-Z[1],it=1/l(p((tt*rt+et*nt)/(c(tt*tt+et*et)*c(rt*rt+nt*nt)))/2),at=c(Z[0]*Z[0]+Z[1]*Z[1]);U=s(j,(m-at)/(it-1)),V=s(j,(v-at)/(it+1))}}F&gt;1e-12?V&gt;1e-12?(C=_(Q,$,G,Y,v,V,L),P=_(J,K,W,X,v,V,L),S.moveTo(C.cx+C.x01,C.cy+C.y01),V&lt;j?S.arc(C.cx,C.cy,V,i(C.y01,C.x01),i(P.y01,P.x01),!L):(S.arc(C.cx,C.cy,V,i(C.y01,C.x01),i(C.y11,C.x11),!L),S.arc(0,0,v,i(C.cy+C.y11,C.cx+C.x11),i(P.cy+P.y11,P.cx+P.x11),!L),S.arc(P.cx,P.cy,V,i(P.y11,P.x11),i(P.y01,P.x01),!L))):(S.moveTo(G,Y),S.arc(0,0,v,I,O,!L)):S.moveTo(G,Y),m&gt;1e-12&amp;&amp;R&gt;1e-12?U&gt;1e-12?(C=_(W,X,J,K,m,-U,L),P=_(G,Y,Q,$,m,-U,L),S.lineTo(C.cx+C.x01,C.cy+C.y01),U&lt;j?S.arc(C.cx,C.cy,U,i(C.y01,C.x01),i(P.y01,P.x01),!L):(S.arc(C.cx,C.cy,U,i(C.y01,C.x01),i(C.y11,C.x11),!L),S.arc(0,0,m,i(C.cy+C.y11,C.cx+C.x11),i(P.cy+P.y11,P.cx+P.x11),L),S.arc(P.cx,P.cy,U,i(P.y11,P.x11),i(P.y01,P.x01),!L))):S.arc(0,0,m,D,z,L):S.lineTo(W,X)}else S.moveTo(0,0);if(S.closePath(),r)return S=null,r+&quot;&quot;||null}return E.centroid=function(){var e=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,r=(+k.apply(this,arguments)+ +A.apply(this,arguments))/2-u/2;return[a(r)*e,l(r)*e]},E.innerRadius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),E):t},E.outerRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),E):o},E.cornerRadius=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:r(+t),E):w},E.padRadius=function(t){return arguments.length?(T=null==t?null:&quot;function&quot;==typeof t?t:r(+t),E):T},E.startAngle=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:r(+t),E):k},E.endAngle=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:r(+t),E):A},E.padAngle=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:r(+t),E):M},E.context=function(t){return arguments.length?(S=null==t?null:t,E):S},E},t.area=S,t.areaRadial=D,t.curveBasis=function(t){return new ut(t)},t.curveBasisClosed=function(t){return new ft(t)},t.curveBasisOpen=function(t){return new ht(t)},t.curveBundle=dt,t.curveCardinal=vt,t.curveCardinalClosed=xt,t.curveCardinalOpen=_t,t.curveCatmullRom=kt,t.curveCatmullRomClosed=Mt,t.curveCatmullRomOpen=Et,t.curveLinear=T,t.curveLinearClosed=function(t){return new Lt(t)},t.curveMonotoneX=function(t){return new zt(t)},t.curveMonotoneY=function(t){return new Dt(t)},t.curveNatural=function(t){return new Ft(t)},t.curveStep=function(t){return new Nt(t,.5)},t.curveStepAfter=function(t){return new Nt(t,1)},t.curveStepBefore=function(t){return new Nt(t,0)},t.line=M,t.lineRadial=z,t.linkHorizontal=function(){return j(U)},t.linkRadial=function(){var t=j(q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return j(V)},t.pie=function(){var t=L,e=E,n=null,i=r(0),a=r(h),o=r(0);function s(r){var s,l,c,u,f,p=r.length,d=0,g=new Array(p),m=new Array(p),v=+i.apply(this,arguments),y=Math.min(h,Math.max(-h,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/p,o.apply(this,arguments)),b=x*(y&lt;0?-1:1);for(s=0;s&lt;p;++s)(f=m[g[s]=s]=+t(r[s],s,r))&gt;0&amp;&amp;(d+=f);for(null!=e?g.sort((function(t,r){return e(m[t],m[r])})):null!=n&amp;&amp;g.sort((function(t,e){return n(r[t],r[e])})),s=0,c=d?(y-p*b)/d:0;s&lt;p;++s,v=u)l=g[s],u=v+((f=m[l])&gt;0?f*c:0)+b,m[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:x};return m}return s.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),s):o},s},t.pointRadial=R,t.radialArea=D,t.radialLine=z,t.stack=function(){var t=r([]),e=Ut,n=jt,i=Vt;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a&lt;c;++a){for(var f,h=s[a],p=u[a]=new Array(l),d=0;d&lt;l;++d)p[d]=f=[0,+i(r[d],h,d,r)],f.data=r[d];p.key=h}for(a=0,o=e(u);a&lt;c;++a)u[o[a]].index=a;return n(u,o),u}return a.keys=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(F.call(e)),a):t},a.value=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a):i},a.order=function(t){return arguments.length?(e=null==t?Ut:&quot;function&quot;==typeof t?t:r(F.call(t)),a):e},a.offset=function(t){return arguments.length?(n=null==t?jt:t,a):n},a},t.stackOffsetDiverging=function(t,e){if((s=t.length)&gt;0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l&lt;c;++l)for(a=o=0,r=0;r&lt;s;++r)(i=(n=t[e[r]][l])[1]-n[0])&gt;0?(n[0]=a,n[1]=a+=i):i&lt;0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)&gt;0){for(var r,n,i,a=0,o=t[0].length;a&lt;o;++a){for(i=r=0;r&lt;n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r&lt;n;++r)t[r][a][1]/=i}jt(t,e)}},t.stackOffsetNone=jt,t.stackOffsetSilhouette=function(t,e){if((r=t.length)&gt;0){for(var r,n=0,i=t[e[0]],a=i.length;n&lt;a;++n){for(var o=0,s=0;o&lt;r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}jt(t,e)}},t.stackOffsetWiggle=function(t,e){if((i=t.length)&gt;0&amp;&amp;(n=(r=t[e[0]]).length)&gt;0){for(var r,n,i,a=0,o=1;o&lt;n;++o){for(var s=0,l=0,c=0;s&lt;i;++s){for(var u=t[e[s]],f=u[o][1]||0,h=(f-(u[o-1][1]||0))/2,p=0;p&lt;s;++p){var d=t[e[p]];h+=(d[o][1]||0)-(d[o-1][1]||0)}l+=f,c+=h*f}r[o-1][1]+=r[o-1][0]=a,l&amp;&amp;(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,jt(t,e)}},t.stackOrderAppearance=qt,t.stackOrderAscending=Gt,t.stackOrderDescending=function(t){return Gt(t).reverse()},t.stackOrderInsideOut=function(t){var e,r,n=t.length,i=t.map(Yt),a=qt(t),o=0,s=0,l=[],c=[];for(e=0;e&lt;n;++e)r=a[e],o&lt;s?(o+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)},t.stackOrderNone=Ut,t.stackOrderReverse=function(t){return Ut(t).reverse()},t.symbol=function(){var t=r(H),n=r(64),i=null;function a(){var r;if(i||(i=r=e.path()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),r)return i=null,r+&quot;&quot;||null}return a.type=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(e),a):t},a.size=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),a):n},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a},t.symbolCircle=H,t.symbolCross=G,t.symbolDiamond=X,t.symbolSquare=$,t.symbolStar=Q,t.symbolTriangle=et,t.symbolWye=ot,t.symbols=st,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-path&quot;:172}],175:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-time&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,c=t.periods,u=t.days,f=t.shortDays,h=t.months,yt=t.shortMonths,xt=p(c),bt=d(c),_t=p(u),wt=d(u),Tt=p(f),kt=d(f),At=p(h),Mt=d(h),St=p(yt),Et=d(yt),Lt={a:function(t){return f[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return yt[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:D,e:D,f:j,H:R,I:F,j:B,L:N,m:U,M:V,p:function(t){return c[+(t.getHours()&gt;=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:mt,s:vt,S:q,u:H,U:G,V:Y,w:W,W:X,x:null,X:null,y:Z,Y:J,Z:K,&quot;%&quot;:gt},Ct={a:function(t){return f[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return yt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:Q,e:Q,f:nt,H:$,I:tt,j:et,L:rt,m:it,M:at,p:function(t){return c[+(t.getUTCHours()&gt;=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:mt,s:vt,S:ot,u:st,U:lt,V:ct,w:ut,W:ft,x:null,X:null,y:ht,Y:pt,Z:dt,&quot;%&quot;:gt},Pt={a:function(t,e,r){var n=Tt.exec(e.slice(r));return n?(t.w=kt[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=_t.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=At.exec(e.slice(r));return n?(t.m=Mt[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return zt(t,a,e,r)},d:A,e:A,f:P,H:S,I:S,j:M,L:C,m:k,M:E,p:function(t,e,r){var n=xt.exec(e.slice(r));return n?(t.p=bt[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:O,s:z,S:L,u:m,U:v,V:y,w:g,W:x,x:function(t,e,r){return zt(t,o,e,r)},X:function(t,e,r){return zt(t,l,e,r)},y:_,Y:b,Z:w,&quot;%&quot;:I};function It(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l&lt;u;)37===t.charCodeAt(l)&amp;&amp;(o.push(t.slice(c,l)),null!=(i=s[n=t.charAt(++l)])?n=t.charAt(++l):i=&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;,(a=e[n])&amp;&amp;(n=a(r,i)),o.push(n),c=l+1);return o.push(t.slice(c,l)),o.join(&quot;&quot;)}}function Ot(t,a){return function(o){var s,l,c=i(1900,void 0,1);if(zt(c,t,o+=&quot;&quot;,0)!=o.length)return null;if(&quot;Q&quot;in c)return new Date(c.Q);if(&quot;s&quot;in c)return new Date(1e3*c.s+(&quot;L&quot;in c?c.L:0));if(a&amp;&amp;!(&quot;Z&quot;in c)&amp;&amp;(c.Z=0),&quot;p&quot;in c&amp;&amp;(c.H=c.H%12+12*c.p),void 0===c.m&amp;&amp;(c.m=&quot;q&quot;in c?c.q:0),&quot;V&quot;in c){if(c.V&lt;1||c.V&gt;53)return null;&quot;w&quot;in c||(c.w=1),&quot;Z&quot;in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l&gt;4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l&gt;4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else(&quot;W&quot;in c||&quot;U&quot;in c)&amp;&amp;(&quot;w&quot;in c||(c.w=&quot;u&quot;in c?c.u%7:&quot;W&quot;in c?1:0),l=&quot;Z&quot;in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d=&quot;W&quot;in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return&quot;Z&quot;in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function zt(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=Pt[i in s?e.charAt(o++):i])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Lt.x=It(o,Lt),Lt.X=It(l,Lt),Lt.c=It(a,Lt),Ct.x=It(o,Ct),Ct.X=It(l,Ct),Ct.c=It(a,Ct),{format:function(t){var e=It(t+=&quot;&quot;,Lt);return e.toString=function(){return t},e},parse:function(t){var e=Ot(t+=&quot;&quot;,!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=It(t+=&quot;&quot;,Ct);return e.toString=function(){return t},e},utcParse:function(t){var e=Ot(t+=&quot;&quot;,!0);return e.toString=function(){return t},e}}}var o,s={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function h(t){return t.replace(u,&quot;\\$&amp;&quot;)}function p(t){return new RegExp(&quot;^(?:&quot;+t.map(h).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function d(t){for(var e={},r=-1,n=t.length;++r&lt;n;)e[t[r].toLowerCase()]=r;return e}function g(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function m(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function v(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function y(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function x(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function b(t,e,r){var n=l.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]&gt;68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||&quot;00&quot;)),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function P(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function I(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return f(t.getDate(),e,2)}function R(t,e){return f(t.getHours(),e,2)}function F(t,e){return f(t.getHours()%12||12,e,2)}function B(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+&quot;000&quot;}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function q(t,e){return f(t.getSeconds(),e,2)}function H(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Y(t,r){var n=t.getDay();return t=n&gt;=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function W(t){return t.getDay()}function X(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function Z(t,e){return f(t.getFullYear()%100,e,2)}function J(t,e){return f(t.getFullYear()%1e4,e,4)}function K(t){var e=t.getTimezoneOffset();return(e&gt;0?&quot;-&quot;:(e*=-1,&quot;+&quot;))+f(e/60|0,&quot;0&quot;,2)+f(e%60,&quot;0&quot;,2)}function Q(t,e){return f(t.getUTCDate(),e,2)}function $(t,e){return f(t.getUTCHours(),e,2)}function tt(t,e){return f(t.getUTCHours()%12||12,e,2)}function et(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return f(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+&quot;000&quot;}function it(t,e){return f(t.getUTCMonth()+1,e,2)}function at(t,e){return f(t.getUTCMinutes(),e,2)}function ot(t,e){return f(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ct(t,r){var n=t.getUTCDay();return t=n&gt;=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ut(t){return t.getUTCDay()}function ft(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function ht(t,e){return f(t.getUTCFullYear()%100,e,2)}function pt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function dt(){return&quot;+0000&quot;}function gt(){return&quot;%&quot;}function mt(t){return+t}function vt(t){return Math.floor(+t/1e3)}function yt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}yt({dateTime:&quot;%x, %X&quot;,date:&quot;%-m/%-d/%Y&quot;,time:&quot;%-I:%M:%S %p&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});var xt=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);var bt=+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);t.isoFormat=xt,t.isoParse=bt,t.timeFormatDefaultLocale=yt,t.timeFormatLocale=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-time&quot;:176}],176:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e&lt;r-t?e:r},s.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(e,r,n){var a,o=[];if(e=s.ceil(e),n=null==n?1:Math.floor(n),!(e&lt;r&amp;&amp;n&gt;0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a&lt;e&amp;&amp;e&lt;r);return o},s.filter=function(e){return n((function(r){if(r&gt;=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t&gt;=t)if(r&lt;0)for(;++r&lt;=0;)for(;i(t,-1),!e(t););else for(;--r&gt;=0;)for(;i(t,1),!e(t););}))},a&amp;&amp;(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),s=o.range,l=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),c=l.range,u=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),f=u.range,h=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),p=h.range;function d(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var g=d(0),m=d(1),v=d(2),y=d(3),x=d(4),b=d(5),_=d(6),w=g.range,T=m.range,k=v.range,A=y.range,M=x.range,S=b.range,E=_.range,L=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),C=L.range,P=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));P.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var I=P.range,O=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),z=O.range,D=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),R=D.range,F=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),B=F.range;function N(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var j=N(0),U=N(1),V=N(2),q=N(3),H=N(4),G=N(5),Y=N(6),W=j.range,X=U.range,Z=V.range,J=q.range,K=H.range,Q=G.range,$=Y.range,tt=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),et=tt.range,rt=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));rt.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var nt=rt.range;t.timeDay=h,t.timeDays=p,t.timeFriday=b,t.timeFridays=S,t.timeHour=u,t.timeHours=f,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=l,t.timeMinutes=c,t.timeMonday=m,t.timeMondays=T,t.timeMonth=L,t.timeMonths=C,t.timeSaturday=_,t.timeSaturdays=E,t.timeSecond=o,t.timeSeconds=s,t.timeSunday=g,t.timeSundays=w,t.timeThursday=x,t.timeThursdays=M,t.timeTuesday=v,t.timeTuesdays=k,t.timeWednesday=y,t.timeWednesdays=A,t.timeWeek=g,t.timeWeeks=w,t.timeYear=P,t.timeYears=I,t.utcDay=F,t.utcDays=B,t.utcFriday=G,t.utcFridays=Q,t.utcHour=D,t.utcHours=R,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=O,t.utcMinutes=z,t.utcMonday=U,t.utcMondays=X,t.utcMonth=tt,t.utcMonths=et,t.utcSaturday=Y,t.utcSaturdays=$,t.utcSecond=o,t.utcSeconds=s,t.utcSunday=j,t.utcSundays=W,t.utcThursday=H,t.utcThursdays=K,t.utcTuesday=V,t.utcTuesdays=Z,t.utcWednesday=q,t.utcWednesdays=J,t.utcWeek=j,t.utcWeeks=W,t.utcYear=rt,t.utcYears=nt,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],177:[function(t,e,r){arguments[4][176][0].apply(r,arguments)},{dup:176}],178:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e,r,n=0,i=0,a=0,o=0,s=0,l=0,c=&quot;object&quot;==typeof performance&amp;&amp;performance.now?performance:Date,u=&quot;object&quot;==typeof window&amp;&amp;window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return s||(u(h),s=c.now()+l)}function h(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function g(){f(),++n;for(var t,r=e;r;)(t=s-r._time)&gt;=0&amp;&amp;r._call.call(null,t),r=r._next;--n}function m(){s=(o=c.now())+l,n=i=0;try{g()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a&gt;i._time&amp;&amp;(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,y(a)}(),s=0}}function v(){var t=c.now(),e=t-o;e&gt;1e3&amp;&amp;(l-=e,o=t)}function y(t){n||(i&amp;&amp;(i=clearTimeout(i)),t-s&gt;24?(t&lt;1/0&amp;&amp;(i=setTimeout(m,t-c.now()-l)),a&amp;&amp;(a=clearInterval(a))):(a||(o=c.now(),a=setInterval(v,1e3)),n=1,u(m)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if(&quot;function&quot;!=typeof t)throw new TypeError(&quot;callback is not a function&quot;);i=(null==i?f():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,y()},stop:function(){this._call&amp;&amp;(this._call=null,this._time=1/0,y())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?f():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=f,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=g,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],179:[function(t,e,r){e.exports=function(){for(var t=0;t&lt;arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;uniq&quot;);function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a&lt;i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s&lt;1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map((function(t,e){return[t[0],e]}));n.sort((function(t,e){return t[0]-e[0]}));for(var i=new Array(t-1),a=1;a&lt;t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&amp;&amp;i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u&lt;r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d&lt;s;++d){var g=f[d];h[d]=g,p+=g*g}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;var m=new Array(r+s+1),v=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1);for(u=0;u&lt;=s;++u)x[u]=0;x[s]=y,m[0]=x.slice(),v[0]=-1;for(u=0;u&lt;=s;++u){(h=x.slice())[u]=1,m[u+1]=h,v[u+1]=-1}for(u=0;u&lt;r;++u){var b=l[u];m[u+s+1]=b.point,v[u+s+1]=b.index}var _=n(m,!1);_=e?_.filter((function(t){for(var e=0,r=0;r&lt;=s;++r){var n=v[t[r]];if(n&lt;0&amp;&amp;++e&gt;=2)return!1;t[r]=n}return!0})):_.filter((function(t){for(var e=0;e&lt;=s;++e){var r=v[t[e]];if(r&lt;0)return!1;t[e]=r}return!0}));if(1&amp;s)for(u=0;u&lt;_.length;++u){h=(b=_[u])[0];b[0]=b[1],b[1]=h}return _}},{&quot;incremental-convex-hull&quot;:446,uniq:619}],181:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=(a.canvas=document.createElement(&quot;canvas&quot;)).getContext(&quot;2d&quot;),i=o([32,126]);function a(t,e){Array.isArray(t)&amp;&amp;(t=t.join(&quot;, &quot;));var r,a={},s=16,l=.05;e&amp;&amp;(2===e.length&amp;&amp;&quot;number&quot;==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&amp;&amp;(r=e.pairs),e.fontSize&amp;&amp;(s=e.fontSize),null!=e.threshold&amp;&amp;(l=e.threshold))),r||(r=i),n.font=s+&quot;px &quot;+t;for(var c=0;c&lt;r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)&gt;s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r&lt;=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i&lt;t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],182:[function(t,e,r){(function(t){(function(){var r=!1;if(&quot;undefined&quot;!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)&gt;&gt;&gt;31},e.exports.exponent=function(t){return(e.exports.hi(t)&lt;&lt;1&gt;&gt;&gt;21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&amp;n;return 2146435072&amp;n&amp;&amp;(i+=1&lt;&lt;20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&amp;e.exports.hi(t))}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:117}],183:[function(t,e,r){var n=t(&quot;abs-svg-path&quot;),i=t(&quot;normalize-svg-path&quot;),a={M:&quot;moveTo&quot;,C:&quot;bezierCurveTo&quot;};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)})),t.closePath()}},{&quot;abs-svg-path&quot;:71,&quot;normalize-svg-path&quot;:485}],184:[function(t,e,r){e.exports=function(t){switch(t){case&quot;int8&quot;:return Int8Array;case&quot;int16&quot;:return Int16Array;case&quot;int32&quot;:return Int32Array;case&quot;uint8&quot;:return Uint8Array;case&quot;uint16&quot;:return Uint16Array;case&quot;uint32&quot;:return Uint32Array;case&quot;float32&quot;:return Float32Array;case&quot;float64&quot;:return Float64Array;case&quot;array&quot;:return Array;case&quot;uint8_clamped&quot;:return Uint8ClampedArray}}},{}],185:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){switch(void 0===e&amp;&amp;(e=0),typeof t){case&quot;number&quot;:if(t&gt;0)return function(t,e){var r,n;for(r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}(0|t,e);break;case&quot;object&quot;:if(&quot;number&quot;==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i&lt;=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a&lt;i;++a)o[a]=r;else for(a=0;a&lt;i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],186:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){r=r||2;var n,s,l,c,u,p,d,m=e&amp;&amp;e.length,v=m?e[0]*r:t.length,y=i(t,0,v,r,!0),x=[];if(!y||y.next===y.prev)return x;if(m&amp;&amp;(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o&lt;s;o++)l=e[o]*n,c=o&lt;s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&amp;&amp;(u.steiner=!0),p.push(g(u));for(p.sort(f),o=0;o&lt;p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length&gt;80*r){n=l=t[0],s=c=t[1];for(var b=r;b&lt;v;b+=r)(u=t[b])&lt;n&amp;&amp;(n=u),(p=t[b+1])&lt;s&amp;&amp;(s=p),u&gt;l&amp;&amp;(l=u),p&gt;c&amp;&amp;(c=p);d=0!==(d=Math.max(l-n,c-s))?1/d:0}return o(y,x,r,n,s,d),x}function i(t,e,r,n,i){var a,o;if(i===E(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=A(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=A(a,t[a],t[a+1],o);return o&amp;&amp;x(o,o.next)&amp;&amp;(M(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!x(n,n.next)&amp;&amp;0!==y(n.prev,n,n.next))n=n.next;else{if(M(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&amp;&amp;f&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,f);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,f?l(t,n,i,f):s(t))e.push(p.i/r),e.push(t.i/r),e.push(g.i/r),M(t),t=g.next,m=g.next;else if((t=g)===m){h?1===h?o(t=c(a(t),e,r),e,r,n,i,f,2):2===h&amp;&amp;u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;y(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=d(s,l,e,r,n),h=d(c,u,e,r,n),p=t.prevZ,g=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;g&amp;&amp;g.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;g&amp;&amp;g.z&lt;=h;){if(g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!x(i,o)&amp;&amp;b(i,n,n.next,o)&amp;&amp;T(i,o)&amp;&amp;T(o,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),M(n),M(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&amp;&amp;v(l,c)){var u=k(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;m(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),T(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;p(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=k(e,t);a(e,e.next),a(r,r.next)}}function p(t,e){return y(t.prev,t,e.prev)&lt;0&amp;&amp;y(e.next,t,t.next)&lt;0}function d(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function g(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function m(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function v(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(T(t,e)&amp;&amp;T(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(y(t.prev,t,e.prev)||y(t,e.prev,e))||x(t,e)&amp;&amp;y(t.prev,t,t.next)&gt;0&amp;&amp;y(e.prev,e,e.next)&gt;0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function x(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function b(t,e,r,n){var i=w(y(t,e,r)),a=w(y(t,e,n)),o=w(y(r,n,t)),s=w(y(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!_(t,r,e))||(!(0!==a||!_(t,n,e))||(!(0!==o||!_(r,t,n))||!(0!==s||!_(r,e,n)))))}function _(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function w(t){return t&gt;0?1:t&lt;0?-1:0}function T(t,e){return y(t.prev,t,t.next)&lt;0?y(t,e,t.next)&gt;=0&amp;&amp;y(t,t.prev,e)&gt;=0:y(t,e,t.prev)&lt;0||y(t,t.next,e)&lt;0}function k(t,e){var r=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function A(t,e,r,n){var i=new S(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function M(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function S(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(E(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(E(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r}},{}],187:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(&quot;number&quot;!=typeof e){e=0;for(var i=0;i&lt;r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;var o=new Array(e);for(i=0;i&lt;e;++i)o[i]=[];for(i=0;i&lt;r;++i){a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s&lt;e;++s)n(o[s],(function(t,e){return t-e}));return o};var n=t(&quot;uniq&quot;)},{uniq:619}],188:[function(t,e,r){var n=t(&quot;strongly-connected-components&quot;);e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e&lt;l[t].length;e++)(n=l[t][e])===r?(u(r,a),i=!0):o[n]||(i=c(n));if(i)!function t(e){o[e]=!1,s.hasOwnProperty(e)&amp;&amp;Object.keys(s[e]).forEach((function(r){delete s[e][r],o[r]&amp;&amp;t(r)}))}(t);else for(e=0;e&lt;l[t].length;e++){n=l[t][e];var f=s[n];f||(f={},s[n]=f),f[n]=!0}return a.pop(),i}function u(t,r){var n=[].concat(r).concat(t);e?e(c):i.push(n)}function f(e){!function(e){for(var r=0;r&lt;t.length;r++)r&lt;e&amp;&amp;(t[r]=[]),t[r]=t[r].filter((function(t){return t&gt;=e}))}(e);for(var r,i=n(t).components.filter((function(t){return t.length&gt;1})),a=1/0,o=0;o&lt;i.length;o++)for(var s=0;s&lt;i[o].length;s++)i[o][s]&lt;a&amp;&amp;(a=i[o][s],r=o);var l=i[r];return!!l&amp;&amp;{leastVertex:a,adjList:t.map((function(t,e){return-1===l.indexOf(e)?[]:t.filter((function(t){return-1!==l.indexOf(t)}))}))}}r=0;for(var h=t.length;r&lt;h;){var p=f(r);if(r=p.leastVertex,l=p.adjList){for(var d=0;d&lt;l.length;d++)for(var g=0;g&lt;l[d].length;g++){var m=l[d][g];o[+m]=!1,s[m]={}}c(r),r+=1}else r=h}return e?void 0:i}},{&quot;strongly-connected-components&quot;:590}],189:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../object/valid-value&quot;);e.exports=function(){return n(this).length=0,this}},{&quot;../../object/valid-value&quot;:220}],190:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Array.from:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:191,&quot;./shim&quot;:192}],191:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e,r=Array.from;return&quot;function&quot;==typeof r&amp;&amp;(e=r(t=[&quot;raz&quot;,&quot;dwa&quot;]),Boolean(e&amp;&amp;e!==t&amp;&amp;&quot;dwa&quot;===e[1]))}},{}],192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es6-symbol&quot;).iterator,i=t(&quot;../../function/is-arguments&quot;),a=t(&quot;../../function/is-function&quot;),o=t(&quot;../../number/to-pos-integer&quot;),s=t(&quot;../../object/valid-callable&quot;),l=t(&quot;../../object/valid-value&quot;),c=t(&quot;../../object/is-value&quot;),u=t(&quot;../../string/is-string&quot;),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,g,m,v,y,x,b,_,w,T=arguments[1],k=arguments[2];if(t=Object(l(t)),c(T)&amp;&amp;s(T),this&amp;&amp;this!==Array&amp;&amp;a(this))e=this;else{if(!T){if(i(t))return 1!==(v=t.length)?Array.apply(null,t):((m=new Array(1))[0]=t[0],m);if(f(t)){for(m=new Array(v=t.length),r=0;r&lt;v;++r)m[r]=t[r];return m}}m=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&amp;&amp;(m=new e),b=x.next(),r=0;!b.done;)w=T?h.call(T,k,b.value,r):b.value,e?(p.value=w,d(m,r,p)):m[r]=w,b=x.next(),++r;v=r}else if(u(t)){for(v=t.length,e&amp;&amp;(m=new e),r=0,g=0;r&lt;v;++r)w=t[r],r+1&lt;v&amp;&amp;(y=w.charCodeAt(0))&gt;=55296&amp;&amp;y&lt;=56319&amp;&amp;(w+=t[++r]),w=T?h.call(T,k,w,g):w,e?(p.value=w,d(m,g,p)):m[g]=w,++g;v=g}if(void 0===v)for(v=o(t.length),e&amp;&amp;(m=new e(v)),r=0;r&lt;v;++r)w=T?h.call(T,k,t[r],r):t[r],e?(p.value=w,d(m,r,p)):m[r]=w;return e&amp;&amp;(p.value=null,m.length=v),m}},{&quot;../../function/is-arguments&quot;:193,&quot;../../function/is-function&quot;:194,&quot;../../number/to-pos-integer&quot;:200,&quot;../../object/is-value&quot;:209,&quot;../../object/valid-callable&quot;:218,&quot;../../object/valid-value&quot;:220,&quot;../../string/is-string&quot;:224,&quot;es6-symbol&quot;:233}],193:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],194:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return&quot;function&quot;==typeof t&amp;&amp;i(n.call(t))}},{}],195:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],196:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Math.sign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:197,&quot;./shim&quot;:198}],197:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t=Math.sign;return&quot;function&quot;==typeof t&amp;&amp;(1===t(10)&amp;&amp;-1===t(-20))}},{}],198:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t&gt;0?1:-1}},{}],199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../math/sign&quot;),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&amp;&amp;isFinite(t)?n(t)*a(i(t)):t}},{&quot;../math/sign&quot;:196}],200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./to-integer&quot;),i=Math.max;e.exports=function(t){return i(0,n(t))}},{&quot;./to-integer&quot;:199}],201:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./valid-value&quot;),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&amp;&amp;u.sort(&quot;function&quot;==typeof h?a.call(h,r):void 0),&quot;function&quot;!=typeof t&amp;&amp;(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{&quot;./valid-callable&quot;:218,&quot;./valid-value&quot;:220}],202:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.assign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:203,&quot;./shim&quot;:204}],203:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=Object.assign;return&quot;function&quot;==typeof e&amp;&amp;(e(t={foo:&quot;raz&quot;},{bar:&quot;dwa&quot;},{trzy:&quot;trzy&quot;}),t.foo+t.bar+t.trzy===&quot;razdwatrzy&quot;)}},{}],204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../keys&quot;),i=t(&quot;../valid-value&quot;),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o&lt;l;++o)n(e=arguments[o]).forEach(s);if(void 0!==r)throw r;return t}},{&quot;../keys&quot;:210,&quot;../valid-value&quot;:220}],205:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../array/from&quot;),i=t(&quot;./assign&quot;),a=t(&quot;./valid-value&quot;);e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&amp;&amp;!r)return e;var s={};return r?n(r,(function(e){(o.ensure||e in t)&amp;&amp;(s[e]=t[e])})):i(s,t),s}},{&quot;../array/from&quot;:190,&quot;./assign&quot;:202,&quot;./valid-value&quot;:220}],206:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o,s=Object.create;t(&quot;./set-prototype-of/is-implemented&quot;)()||(n=t(&quot;./set-prototype-of/shim&quot;)),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){a[t]=&quot;__proto__&quot;!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(i,a),Object.defineProperty(n,&quot;nullPolyfill&quot;,{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{&quot;./set-prototype-of/is-implemented&quot;:216,&quot;./set-prototype-of/shim&quot;:217}],207:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./_iterate&quot;)(&quot;forEach&quot;)},{&quot;./_iterate&quot;:201}],208:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i={function:!0,object:!0};e.exports=function(t){return n(t)&amp;&amp;i[typeof t]||!1}},{&quot;./is-value&quot;:209}],209:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/noop&quot;)();e.exports=function(t){return t!==n&amp;&amp;null!==t}},{&quot;../function/noop&quot;:195}],210:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.keys:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:211,&quot;./shim&quot;:212}],211:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){try{return Object.keys(&quot;primitive&quot;),!0}catch(t){return!1}}},{}],212:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../is-value&quot;),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{&quot;../is-value&quot;:209}],213:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./for-each&quot;),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,(function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)})),r}},{&quot;./for-each&quot;:207,&quot;./valid-callable&quot;:218}],214:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i=Array.prototype.forEach,a=Object.create,o=function(t,e){var r;for(r in t)e[r]=t[r]};e.exports=function(t){var e=a(null);return i.call(arguments,(function(t){n(t)&amp;&amp;o(Object(t),e)})),e}},{&quot;./is-value&quot;:209}],215:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.setPrototypeOf:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:216,&quot;./shim&quot;:217}],216:[function(t,e,r){&quot;use strict&quot;;var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return&quot;function&quot;==typeof t&amp;&amp;i(t(e(null),a))===a}},{}],217:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../is-object&quot;),a=t(&quot;../valid-value&quot;),o=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(a(t),null===e||i(e))return t;throw new TypeError(&quot;Prototype must be null or an object&quot;)},e.exports=function(t){var e,r;return t?(2===t.level?t.set?(r=t.set,e=function(t,e){return r.call(n(t,e),e),t}):e=function(t,e){return n(t,e).__proto__=e,t}:e=function t(e,r){var i;return n(e,r),(i=o.call(t.nullPolyfill,e))&amp;&amp;delete t.nullPolyfill.__proto__,null===r&amp;&amp;(r=t.nullPolyfill),e.__proto__=r,i&amp;&amp;s(t.nullPolyfill,&quot;__proto__&quot;,l),e},Object.defineProperty(e,&quot;level&quot;,{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,&quot;__proto__&quot;);if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&amp;&amp;{level:1})}()),t(&quot;../create&quot;)},{&quot;../create&quot;:206,&quot;../is-object&quot;:208,&quot;../valid-value&quot;:220}],218:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(&quot;function&quot;!=typeof t)throw new TypeError(t+&quot; is not a function&quot;);return t}},{}],219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-object&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not an Object&quot;);return t}},{&quot;./is-object&quot;:208}],220:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;);e.exports=function(t){if(!n(t))throw new TypeError(&quot;Cannot use null or undefined&quot;);return t}},{&quot;./is-value&quot;:209}],221:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?String.prototype.contains:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:222,&quot;./shim&quot;:223}],222:[function(t,e,r){&quot;use strict&quot;;var n=&quot;razdwatrzy&quot;;e.exports=function(){return&quot;function&quot;==typeof n.contains&amp;&amp;(!0===n.contains(&quot;dwa&quot;)&amp;&amp;!1===n.contains(&quot;foo&quot;))}},{}],223:[function(t,e,r){&quot;use strict&quot;;var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])&gt;-1}},{}],224:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(&quot;&quot;);e.exports=function(t){return&quot;string&quot;==typeof t||t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;(t instanceof String||n.call(t)===i)||!1}},{}],225:[function(t,e,r){&quot;use strict&quot;;var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],226:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;es5-ext/string/#/contains&quot;),o=t(&quot;d&quot;),s=t(&quot;es6-symbol&quot;),l=t(&quot;./&quot;),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);l.call(this,t),e=e?a.call(e,&quot;key+value&quot;)?&quot;key+value&quot;:a.call(e,&quot;key&quot;)?&quot;key&quot;:&quot;value&quot;:&quot;value&quot;,c(this,&quot;__kind__&quot;,o(&quot;&quot;,e))},i&amp;&amp;i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return&quot;value&quot;===this.__kind__?this.__list__[t]:&quot;key+value&quot;===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o(&quot;c&quot;,&quot;Array Iterator&quot;))},{&quot;./&quot;:229,d:161,&quot;es5-ext/object/set-prototype-of&quot;:215,&quot;es5-ext/string/#/contains&quot;:221,&quot;es6-symbol&quot;:233}],227:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/valid-callable&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;./get&quot;),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,g,m,v=arguments[2];if(s(t)||n(t)?r=&quot;array&quot;:a(t)?r=&quot;string&quot;:t=o(t),i(e),f=function(){h=!0},&quot;array&quot;!==r)if(&quot;string&quot;!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p&lt;d&amp;&amp;(g=t[p],p+1&lt;d&amp;&amp;(m=g.charCodeAt(0))&gt;=55296&amp;&amp;m&lt;=56319&amp;&amp;(g+=t[++p]),l.call(e,v,g,f),!h);++p);else c.call(t,(function(t){return l.call(e,v,t,f),h}))}},{&quot;./get&quot;:228,&quot;es5-ext/function/is-arguments&quot;:193,&quot;es5-ext/object/valid-callable&quot;:218,&quot;es5-ext/string/is-string&quot;:224}],228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/string/is-string&quot;),a=t(&quot;./array&quot;),o=t(&quot;./string&quot;),s=t(&quot;./valid-iterable&quot;),l=t(&quot;es6-symbol&quot;).iterator;e.exports=function(t){return&quot;function&quot;==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{&quot;./array&quot;:226,&quot;./string&quot;:231,&quot;./valid-iterable&quot;:232,&quot;es5-ext/function/is-arguments&quot;:193,&quot;es5-ext/string/is-string&quot;:224,&quot;es6-symbol&quot;:233}],229:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/array/#/clear&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/valid-callable&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;d&quot;),c=t(&quot;d/auto-bind&quot;),u=t(&quot;es6-symbol&quot;),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);h(this,{__list__:l(&quot;w&quot;,s(t)),__context__:l(&quot;w&quot;,e),__nextIndex__:l(&quot;w&quot;,0)}),e&amp;&amp;(o(e.on),e.on(&quot;_add&quot;,this._onAdd),e.on(&quot;_delete&quot;,this._onDelete),e.on(&quot;_clear&quot;,this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&amp;&amp;void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__&lt;this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:l((function(){return this._createResult(this._next())})),_createResult:l((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:l((function(t){return this.__list__[t]})),_unBind:l((function(){this.__list__=null,delete this.__redo__,this.__context__&amp;&amp;(this.__context__.off(&quot;_add&quot;,this._onAdd),this.__context__.off(&quot;_delete&quot;,this._onDelete),this.__context__.off(&quot;_clear&quot;,this._onClear),this.__context__=null)})),toString:l((function(){return&quot;[object &quot;+(this[u.toStringTag]||&quot;Object&quot;)+&quot;]&quot;}))},c({_onAdd:l((function(t){t&gt;=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e&gt;=t&amp;&amp;(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,&quot;__redo__&quot;,l(&quot;c&quot;,[t])))})),_onDelete:l((function(t){var e;t&gt;=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&amp;&amp;(-1!==(e=this.__redo__.indexOf(t))&amp;&amp;this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e&gt;t&amp;&amp;(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&amp;&amp;i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:161,&quot;d/auto-bind&quot;:160,&quot;es5-ext/array/#/clear&quot;:189,&quot;es5-ext/object/assign&quot;:202,&quot;es5-ext/object/valid-callable&quot;:218,&quot;es5-ext/object/valid-value&quot;:220,&quot;es6-symbol&quot;:233}],230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;es6-symbol&quot;).iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&amp;&amp;(!!s(t)||(!!a(t)||(!!n(t)||&quot;function&quot;==typeof t[o])))}},{&quot;es5-ext/function/is-arguments&quot;:193,&quot;es5-ext/object/is-value&quot;:209,&quot;es5-ext/string/is-string&quot;:224,&quot;es6-symbol&quot;:233}],231:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;d&quot;),o=t(&quot;es6-symbol&quot;),s=t(&quot;./&quot;),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);t=String(t),s.call(this,t),l(this,&quot;__length__&quot;,a(&quot;&quot;,t.length))},i&amp;&amp;i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__&lt;this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:a((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))&gt;=55296&amp;&amp;e&lt;=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a(&quot;c&quot;,&quot;String Iterator&quot;))},{&quot;./&quot;:229,d:161,&quot;es5-ext/object/set-prototype-of&quot;:215,&quot;es6-symbol&quot;:233}],232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-iterable&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not iterable&quot;);return t}},{&quot;./is-iterable&quot;:230}],233:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?t(&quot;ext/global-this&quot;).Symbol:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:234,&quot;./polyfill&quot;:239,&quot;ext/global-this&quot;:246}],234:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ext/global-this&quot;),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if(&quot;function&quot;!=typeof e)return!1;t=e(&quot;test symbol&quot;);try{String(t)}catch(t){return!1}return!!i[typeof e.iterator]&amp;&amp;(!!i[typeof e.toPrimitive]&amp;&amp;!!i[typeof e.toStringTag])}},{&quot;ext/global-this&quot;:246}],235:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return!!t&amp;&amp;(&quot;symbol&quot;==typeof t||!!t.constructor&amp;&amp;(&quot;Symbol&quot;===t.constructor.name&amp;&amp;&quot;Symbol&quot;===t[t.constructor.toStringTag]))}},{}],236:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||&quot;&quot;)];)++i;return s[t+=i||&quot;&quot;]=!0,a(o,e=&quot;@@&quot;+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:161}],237:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;ext/global-this&quot;).Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n(&quot;&quot;,i&amp;&amp;i.hasInstance||t(&quot;hasInstance&quot;)),isConcatSpreadable:n(&quot;&quot;,i&amp;&amp;i.isConcatSpreadable||t(&quot;isConcatSpreadable&quot;)),iterator:n(&quot;&quot;,i&amp;&amp;i.iterator||t(&quot;iterator&quot;)),match:n(&quot;&quot;,i&amp;&amp;i.match||t(&quot;match&quot;)),replace:n(&quot;&quot;,i&amp;&amp;i.replace||t(&quot;replace&quot;)),search:n(&quot;&quot;,i&amp;&amp;i.search||t(&quot;search&quot;)),species:n(&quot;&quot;,i&amp;&amp;i.species||t(&quot;species&quot;)),split:n(&quot;&quot;,i&amp;&amp;i.split||t(&quot;split&quot;)),toPrimitive:n(&quot;&quot;,i&amp;&amp;i.toPrimitive||t(&quot;toPrimitive&quot;)),toStringTag:n(&quot;&quot;,i&amp;&amp;i.toStringTag||t(&quot;toStringTag&quot;)),unscopables:n(&quot;&quot;,i&amp;&amp;i.unscopables||t(&quot;unscopables&quot;))})}},{d:161,&quot;ext/global-this&quot;:246}],238:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;../../../validate-symbol&quot;),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{&quot;../../../validate-symbol&quot;:240,d:161}],239:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;d&quot;),s=t(&quot;./validate-symbol&quot;),l=t(&quot;ext/global-this&quot;).Symbol,c=t(&quot;./lib/private/generate-name&quot;),u=t(&quot;./lib/private/setup/standard-symbols&quot;),f=t(&quot;./lib/private/setup/symbol-registry&quot;),h=Object.create,p=Object.defineProperties,d=Object.defineProperty;if(&quot;function&quot;==typeof l)try{String(l()),a=!0}catch(t){}else l=null;i=function(t){if(this instanceof i)throw new TypeError(&quot;Symbol is not a constructor&quot;);return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError(&quot;Symbol is not a constructor&quot;);return a?l(e):(r=h(i.prototype),e=void 0===e?&quot;&quot;:String(e),p(r,{__description__:o(&quot;&quot;,e),__name__:o(&quot;&quot;,c(e))}))},u(n),f(n),p(i.prototype,{constructor:o(n),toString:o(&quot;&quot;,(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return&quot;Symbol (&quot;+s(this).__description__+&quot;)&quot;})),valueOf:o((function(){return s(this)}))}),d(n.prototype,n.toPrimitive,o(&quot;&quot;,(function(){var t=s(this);return&quot;symbol&quot;==typeof t?t:t.toString()}))),d(n.prototype,n.toStringTag,o(&quot;c&quot;,&quot;Symbol&quot;)),d(i.prototype,n.toStringTag,o(&quot;c&quot;,n.prototype[n.toStringTag])),d(i.prototype,n.toPrimitive,o(&quot;c&quot;,n.prototype[n.toPrimitive]))},{&quot;./lib/private/generate-name&quot;:236,&quot;./lib/private/setup/standard-symbols&quot;:237,&quot;./lib/private/setup/symbol-registry&quot;:238,&quot;./validate-symbol&quot;:240,d:161,&quot;ext/global-this&quot;:246}],240:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-symbol&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not a symbol&quot;);return t}},{&quot;./is-symbol&quot;:235}],241:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?WeakMap:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:242,&quot;./polyfill&quot;:244}],242:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e;if(&quot;function&quot;!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},&quot;one&quot;],[{},&quot;two&quot;],[{},&quot;three&quot;]])}catch(t){return!1}return&quot;[object WeakMap]&quot;===String(t)&amp;&amp;(&quot;function&quot;==typeof t.set&amp;&amp;(t.set({},1)===t&amp;&amp;(&quot;function&quot;==typeof t.delete&amp;&amp;(&quot;function&quot;==typeof t.has&amp;&amp;&quot;one&quot;===t.get(e)))))}},{}],243:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;function&quot;==typeof WeakMap&amp;&amp;&quot;[object WeakMap]&quot;===Object.prototype.toString.call(new WeakMap)},{}],244:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/object/set-prototype-of&quot;),o=t(&quot;es5-ext/object/valid-object&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;es5-ext/string/random-uniq&quot;),c=t(&quot;d&quot;),u=t(&quot;es6-iterator/get&quot;),f=t(&quot;es6-iterator/for-of&quot;),h=t(&quot;es6-symbol&quot;).toStringTag,p=t(&quot;./is-native-implemented&quot;),d=Array.isArray,g=Object.defineProperty,m=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);return t=p&amp;&amp;a&amp;&amp;WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&amp;&amp;(d(e)||(e=u(e))),g(t,&quot;__weakMapData__&quot;,c(&quot;c&quot;,&quot;$weakMap$&quot;+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},p&amp;&amp;(a&amp;&amp;a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!m.call(o(t),this.__weakMapData__)&amp;&amp;(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(m.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return m.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return g(o(t),this.__weakMapData__,c(&quot;c&quot;,e)),this})),toString:c((function(){return&quot;[object WeakMap]&quot;}))}),g(n.prototype,h,c(&quot;c&quot;,&quot;WeakMap&quot;))},{&quot;./is-native-implemented&quot;:243,d:161,&quot;es5-ext/object/is-value&quot;:209,&quot;es5-ext/object/set-prototype-of&quot;:215,&quot;es5-ext/object/valid-object&quot;:219,&quot;es5-ext/object/valid-value&quot;:220,&quot;es5-ext/string/random-uniq&quot;:225,&quot;es6-iterator/for-of&quot;:227,&quot;es6-iterator/get&quot;:228,&quot;es6-symbol&quot;:233}],245:[function(t,e,r){var n=function(){if(&quot;object&quot;==typeof self&amp;&amp;self)return self;if(&quot;object&quot;==typeof window&amp;&amp;window)return window;throw new Error(&quot;Unable to resolve global `this`&quot;)};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,&quot;__global__&quot;,{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],246:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?globalThis:t(&quot;./implementation&quot;)},{&quot;./implementation&quot;:245,&quot;./is-implemented&quot;:247}],247:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){return&quot;object&quot;==typeof globalThis&amp;&amp;(!!globalThis&amp;&amp;globalThis.Array===Array)}},{}],248:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;);e.exports=function(t){var e=typeof t;if(&quot;string&quot;===e){var r=t;if(0===(t=+t)&amp;&amp;n(r))return!1}else if(&quot;number&quot;!==e)return!1;return t-t&lt;1}},{&quot;is-string-blank&quot;:458}],250:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:return&quot;number&quot;==typeof t?new o(n=l(t),n,0):new o(t,l(t.length),0);case 2:if(&quot;number&quot;==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(&quot;state and velocity lengths must match&quot;);return new o(t,e,r)}};var n=t(&quot;cubic-hermite&quot;),i=t(&quot;binary-search-bounds&quot;);function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n&lt;this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e&lt;=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o&lt;0)for(var h=u-1,p=0;p&lt;u;++p,--h)s[p]=l[h];else if(o&gt;=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p&lt;u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var g=e[o],m=e[o+1]-g||1,v=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p&lt;u;++p,--h)v[p]=l[h],x[p]=c[h]*m,y[p]=l[h+u],b[p]=c[h+u]*m,_=_&amp;&amp;v[p]===y[p]&amp;&amp;x[p]===b[p]&amp;&amp;0===x[p];if(_)for(p=0;p&lt;u;++p)s[p]=v[p];else n(v,x,y,b,(t-g)/m,s)}var w=f[0],T=f[1];for(p=0;p&lt;u;++p)s[p]=a(w[p],T[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a&gt;=r-1)for(var u=s.length-1,f=(e[r-1],0);f&lt;c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],g=this._scratch[2],m=this._scratch[3],v=this._scratch[4],y=!0;for(f=0;f&lt;c;++f,--u)d[f]=s[u],m[f]=l[u]*p,g[f]=s[u+c],v[f]=l[u+c]*p,y=y&amp;&amp;d[f]===g[f]&amp;&amp;m[f]===v[f]&amp;&amp;0===m[f];if(y)for(f=0;f&lt;c;++f)o[f]=0;else{n.derivative(d,m,g,v,(t-h)/p,o);for(f=0;f&lt;c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r&gt;=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u&lt;2;++u)for(var f=0;f&lt;r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f&gt;0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s&gt;1e-6?1/s:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t&lt;this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l&gt;0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u&gt;1e-6?1/u:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t&lt;e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f&gt;=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{&quot;binary-search-bounds&quot;:251,&quot;cubic-hermite&quot;:156}],251:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i,a){var o=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,a?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a&quot;,i?&quot;.get(m)&quot;:&quot;[m]&quot;];return a?e.indexOf(&quot;c&quot;)&lt;0?o.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):o.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):o.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?o.push(&quot;l=m+1}else{h=m-1}&quot;):o.push(&quot;h=m-1}else{l=m+1}&quot;),o.push(&quot;}&quot;),a?o.push(&quot;return -1};&quot;):o.push(&quot;return i};&quot;),o.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!1,i),n(&quot;B&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!0,i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!1,i),n(&quot;Q&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!0,i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],252:[function(t,e,r){var n=t(&quot;dtype&quot;);e.exports=function(t,e,r){if(!t)throw new TypeError(&quot;must specify data as first parameter&quot;);if(r=0|+(r||0),Array.isArray(t)&amp;&amp;t[0]&amp;&amp;&quot;number&quot;==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&amp;&amp;&quot;string&quot;!=typeof e||(e=new(n(e||&quot;float32&quot;))(c+r));var u=e.length-r;if(c!==u)throw new Error(&quot;source length &quot;+c+&quot; (&quot;+l+&quot;x&quot;+t.length+&quot;) does not match destination length &quot;+u);for(i=0,o=r;i&lt;t.length;i++)for(a=0;a&lt;l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&amp;&amp;&quot;string&quot;!=typeof e)e.set(t,r);else{var f=n(e||&quot;float32&quot;);if(Array.isArray(t)||&quot;array&quot;===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o&lt;s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:184}],253:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font/stringify&quot;),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(&quot;canvas&quot;),a=t.font,o=&quot;number&quot;==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&amp;&amp;&quot;string&quot;!=typeof a&amp;&amp;(a=n(a));if(Array.isArray(s)){if(2===s.length&amp;&amp;&quot;number&quot;==typeof s[0]&amp;&amp;&quot;number&quot;==typeof s[1]){for(var l=[],c=s[0],u=0;c&lt;=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(&quot;&quot;);e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(&quot;2d&quot;);f.fillStyle=&quot;#000&quot;,f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=&quot;center&quot;,f.textBaseline=&quot;middle&quot;,f.fillStyle=&quot;#fff&quot;;var h=o[0]/2,p=o[1]/2;for(c=0;c&lt;s.length;c++)f.fillText(s[c],h,p),(h+=o[0])&gt;e[0]-o[0]/2&amp;&amp;(h=o[0]/2,p+=o[1]);return r}},{&quot;css-font/stringify&quot;:153}],254:[function(t,e,r){&quot;use strict&quot;;function n(t,e){e||(e={}),(&quot;string&quot;==typeof t||Array.isArray(t))&amp;&amp;(e.family=t);var r=Array.isArray(e.family)?e.family.join(&quot;, &quot;):e.family;if(!r)throw Error(&quot;`family` must be defined&quot;);var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||&quot;&quot;,c=(t=[e.style||e.fontStyle||&quot;&quot;,l,s].join(&quot; &quot;)+&quot;px &quot;+r,e.origin||&quot;top&quot;);if(n.cache[r]&amp;&amp;s&lt;=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(&quot;2d&quot;),h={upper:void 0!==e.upper?e.upper:&quot;H&quot;,lower:void 0!==e.lower?e.lower:&quot;x&quot;,descent:void 0!==e.descent?e.descent:&quot;p&quot;,ascent:void 0!==e.ascent?e.ascent:&quot;h&quot;,tittle:void 0!==e.tittle?e.tittle:&quot;i&quot;,overshoot:void 0!==e.overshoot?e.overshoot:&quot;O&quot;},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillStyle=&quot;black&quot;,f.fillText(&quot;H&quot;,0,0);var g=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=&quot;bottom&quot;,f.fillText(&quot;H&quot;,0,p);var m=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-m+g,f.clearRect(0,0,p,p),f.textBaseline=&quot;alphabetic&quot;,f.fillText(&quot;H&quot;,0,p);var v=p-a(f.getImageData(0,0,p,p))-1+g;d.baseline=d.alphabetic=v,f.clearRect(0,0,p,p),f.textBaseline=&quot;middle&quot;,f.fillText(&quot;H&quot;,0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;hanging&quot;,f.fillText(&quot;H&quot;,0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;ideographic&quot;,f.fillText(&quot;H&quot;,0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+g,h.upper&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-v}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in&quot;string&quot;==typeof e&amp;&amp;(e=t[e]),t)&quot;em&quot;!==n&amp;&amp;(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n&lt;r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n&gt;0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(&quot;canvas&quot;),n.cache={}},{}],255:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return new s(t||g,null)};function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}var l=s.prototype;function c(t,e){var r;if(e.left&amp;&amp;(r=c(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?c(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)&lt;=0){var i;if(n.left)if(i=u(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return u(t,e,r,n.right)}function f(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o&lt;=0){if(i.left&amp;&amp;(a=f(t,e,r,n,i.left)))return a;if(s&gt;0&amp;&amp;(a=n(i.key,i.value)))return a}if(s&gt;0&amp;&amp;i.right)return f(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(l,&quot;keys&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(l,&quot;values&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(l,&quot;length&quot;,{get:function(){return this.root?this.root._count:0}}),l.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],c=[];i;){var u=r(t,i.key);l.push(i),c.push(u),i=u&lt;=0?i.left:i.right}l.push(new n(0,t,e,null,null,1));for(var f=l.length-2;f&gt;=0;--f){i=l[f];c[f]&lt;=0?l[f]=new n(i._color,i.key,i.value,l[f+1],i.right,i._count+1):l[f]=new n(i._color,i.key,i.value,i.left,l[f+1],i._count+1)}for(f=l.length-1;f&gt;1;--f){var h=l[f-1];i=l[f];if(1===h._color||1===i._color)break;var p=l[f-2];if(p.left===h)if(h.left===i){if(!(d=p.right)||0!==d._color){if(p._color=0,p.left=h.right,h._color=1,h.right=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).left===p?g.left=h:g.right=h;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else{if(!(d=p.right)||0!==d._color){if(h.right=i.left,p._color=0,p.left=i.right,i._color=1,i.left=h,i.right=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).left===p?g.left=i:g.right=i;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else if(h.right===i){if(!(d=p.left)||0!==d._color){if(p._color=0,p.right=h.left,h._color=1,h.left=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).right===p?g.right=h:g.left=h;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}else{var d;if(!(d=p.left)||0!==d._color){var g;if(h.left=i.right,p._color=0,p.right=i.left,i._color=1,i.right=h,i.left=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).right===p?g.right=i:g.left=i;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}}return l[0]._color=1,new s(r,l[0])},l.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return c(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)&gt;=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(l,&quot;begin&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(l,&quot;end&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),l.at=function(t){if(t&lt;0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t&lt;e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t&gt;=e.right._count)break;e=e.right}return new h(this,[])},l.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;=0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;=0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i&lt;=0?r.left:r.right}return new h(this,[])},l.remove=function(t){var e=this.find(t);return e?e.remove():this},l.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n&lt;=0?r.left:r.right}};var p=h.prototype;function d(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function g(t,e){return t&lt;e?-1:t&gt;e?1:0}Object.defineProperty(p,&quot;valid&quot;,{get:function(){return this._stack.length&gt;0}}),Object.defineProperty(p,&quot;node&quot;,{get:function(){return this._stack.length&gt;0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new h(this.tree,this._stack.slice())},p.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var l=t.length-2;l&gt;=0;--l){(r=t[l]).left===t[l+1]?e[l]=new n(r._color,r.key,r.value,e[l+1],r.right,r._count):e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count)}if((r=e[e.length-1]).left&amp;&amp;r.right){var c=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var u=e[c-1];e.push(new n(r._color,u.key,u.value,r.left,r.right,r._count)),e[c-1].key=r.key,e[c-1].value=r.value;for(l=e.length-2;l&gt;=c;--l)r=e[l],e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count);e[c-1].left=e[c]}if(0===(r=e[e.length-1])._color){var f=e[e.length-2];f.left===r?f.left=null:f.right===r&amp;&amp;(f.right=null),e.pop();for(l=0;l&lt;e.length;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?d(r,r.left):r.right&amp;&amp;d(r,r.right),r._color=1;for(l=0;l&lt;e.length-1;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(l=0;l&lt;e.length;++l)e[l]._count--;var h=e[e.length-2];return function(t){for(var e,r,n,s,l=t.length-1;l&gt;=0;--l){if(e=t[l],0===l)return void(e._color=1);if((r=t[l-1]).left===e){if((n=r.right).right&amp;&amp;0===n.right._color){if(s=(n=r.right=i(n)).right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).left===r?c.left=n:c.right=n;return void(t[l-1]=n)}if(n.left&amp;&amp;0===n.left._color){if(s=(n=r.right=i(n)).left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).left===r?c.left=s:c.right=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.right=a(0,n));r.right=a(0,n);continue}n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).left===r?c.left=n:c.right=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}else{if((n=r.left).left&amp;&amp;0===n.left._color){if(s=(n=r.left=i(n)).left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).right===r?c.right=n:c.left=n;return void(t[l-1]=n)}if(n.right&amp;&amp;0===n.right._color){if(s=(n=r.left=i(n)).right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).right===r?c.right=s:c.left=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.left=a(0,n));r.left=a(0,n);continue}var c;n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).right===r?c.right=n:c.left=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}}}(e),h.left===r?h.left=null:h.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(p,&quot;key&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,&quot;value&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,&quot;index&quot;,{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&amp;&amp;(t=e[e.length-1].left._count);for(var n=e.length-2;n&gt;=0;--n)e[n+1]===e[n].right&amp;&amp;(++t,e[n].left&amp;&amp;(t+=e[n].left._count));return t},enumerable:!0}),p.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasNext&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].left===t[e])return!0;return!1}}),p.update=function(t){var e=this._stack;if(0===e.length)throw new Error(&quot;Can't update empty node!&quot;);var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a&gt;=0;--a)(i=e[a]).left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},p.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasPrev&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],256:[function(t,e,r){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],i=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function a(t){if(t&lt;0)return Number(&quot;0/0&quot;);for(var e=i[0],r=i.length-1;r&gt;0;--r)e+=i[r]/(t+r);var n=t+607/128+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}e.exports=function t(e){if(e&lt;.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e&gt;100)return Math.exp(a(e));e-=1;for(var r=n[0],i=1;i&lt;9;i++)r+=n[i]/(e+i);var o=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,e+.5)*Math.exp(-o)*r},e.exports.log=a},{}],257:[function(t,e,r){e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;must specify type string&quot;);if(e=e||{},&quot;undefined&quot;==typeof document&amp;&amp;!e.canvas)return null;var r=e.canvas||document.createElement(&quot;canvas&quot;);&quot;number&quot;==typeof e.width&amp;&amp;(r.width=e.width);&quot;number&quot;==typeof e.height&amp;&amp;(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(&quot;webgl&quot;)&amp;&amp;a.push(&quot;experimental-&quot;+t);for(var o=0;o&lt;a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],258:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(&quot;./lib/text.js&quot;),i=t(&quot;./lib/lines.js&quot;),a=t(&quot;./lib/background.js&quot;),o=t(&quot;./lib/cube.js&quot;),s=t(&quot;./lib/ticks.js&quot;),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=&quot;sans-serif&quot;,this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&amp;&amp;Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s&lt;3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if(&quot;bounds&quot;in t)for(var h=t.bounds,p=0;p&lt;2;++p)for(var d=0;d&lt;3;++d)h[p][d]!==this.bounds[p][d]&amp;&amp;(f=!0),this.bounds[p][d]=h[p][d];if(&quot;ticks&quot;in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p&lt;3;++p)this.tickSpacing[p]=0}else a(&quot;tickSpacing&quot;)&amp;&amp;(this.autoTicks=!0,f=!0);if(this._firstInit&amp;&amp;(&quot;ticks&quot;in t||&quot;tickSpacing&quot;in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&amp;&amp;this.autoTicks&amp;&amp;(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p&lt;3;++p)r[p].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o(&quot;tickEnable&quot;),l(&quot;tickFont&quot;)&amp;&amp;(u=!0),a(&quot;tickSize&quot;),a(&quot;tickAngle&quot;),a(&quot;tickPad&quot;),c(&quot;tickColor&quot;);var g=l(&quot;labels&quot;);l(&quot;labelFont&quot;)&amp;&amp;(g=!0),o(&quot;labelEnable&quot;),a(&quot;labelSize&quot;),a(&quot;labelPad&quot;),c(&quot;labelColor&quot;),o(&quot;lineEnable&quot;),o(&quot;lineMirror&quot;),a(&quot;lineWidth&quot;),c(&quot;lineColor&quot;),o(&quot;lineTickEnable&quot;),o(&quot;lineTickMirror&quot;),a(&quot;lineTickLength&quot;),a(&quot;lineTickWidth&quot;),c(&quot;lineTickColor&quot;),o(&quot;gridEnable&quot;),a(&quot;gridWidth&quot;),c(&quot;gridColor&quot;),o(&quot;zeroEnable&quot;),c(&quot;zeroLineColor&quot;),a(&quot;zeroLineWidth&quot;),o(&quot;backgroundEnable&quot;),c(&quot;backgroundColor&quot;),this._text?this._text&amp;&amp;(g||u)&amp;&amp;this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&amp;&amp;u&amp;&amp;(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u&lt;3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&amp;1&lt;&lt;u&amp;&amp;(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]&gt;0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var g=[0,0,0],m={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||m;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,h=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/e.drawingBufferHeight,A=0;A&lt;3;++A)this.lastCubeProps.cubeEdges[A]=f[A],this.lastCubeProps.axis[A]=h[A];var M=p;for(A=0;A&lt;3;++A)d(p[A],A,this.bounds,f,h);e=this.gl;var S,E=g;for(A=0;A&lt;3;++A)this.backgroundEnable[A]?E[A]=h[A]:E[A]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(A=0;A&lt;3;++A){var L=[0,0,0];h[A]&gt;0?L[A]=a[1][A]:L[A]=a[0][A];for(var C=0;C&lt;2;++C){var P=(A+1+C)%3,I=(A+1+(1^C))%3;this.gridEnable[P]&amp;&amp;this._lines.drawGrid(P,I,this.bounds,L,this.gridColor[P],this.gridWidth[P]*this.pixelRatio)}for(C=0;C&lt;2;++C){P=(A+1+C)%3,I=(A+1+(1^C))%3;this.zeroEnable[I]&amp;&amp;Math.min(a[0][I],a[1][I])&lt;=0&amp;&amp;Math.max(a[0][I],a[1][I])&gt;=0&amp;&amp;this._lines.drawZero(P,I,this.bounds,L,this.zeroLineColor[I],this.zeroLineWidth[I]*this.pixelRatio)}}for(A=0;A&lt;3;++A){this.lineEnable[A]&amp;&amp;this._lines.drawAxisLine(A,this.bounds,M[A].primalOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio),this.lineMirror[A]&amp;&amp;this._lines.drawAxisLine(A,this.bounds,M[A].mirrorOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio);var O=c(v,M[A].primalMinor),z=c(y,M[A].mirrorMinor),D=this.lineTickLength;for(C=0;C&lt;3;++C){var R=k/r[5*C];O[C]*=D[C]*R,z[C]*=D[C]*R}this.lineTickEnable[A]&amp;&amp;this._lines.drawAxisTicks(A,M[A].primalOffset,O,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio),this.lineTickMirror[A]&amp;&amp;this._lines.drawAxisTicks(A,M[A].mirrorOffset,z,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B;function N(t){(B=[0,0,0])[t]=1}function j(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a&gt;0&amp;&amp;l&gt;0||a&gt;0&amp;&amp;l&lt;0||a&lt;0&amp;&amp;l&gt;0||a&lt;0&amp;&amp;l&lt;0?N(n):(o&gt;0&amp;&amp;s&gt;0||o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0||o&lt;0&amp;&amp;s&lt;0)&amp;&amp;N(i)}for(A=0;A&lt;3;++A){var U=M[A].primalMinor,V=M[A].mirrorMinor,q=c(x,M[A].primalOffset);for(C=0;C&lt;3;++C)this.lineTickEnable[A]&amp;&amp;(q[C]+=k*U[C]*Math.max(this.lineTickLength[C],0)/r[5*C]);var H=[0,0,0];if(H[A]=1,this.tickEnable[A]){-3600===this.tickAngle[A]?(this.tickAngle[A]=0,this.tickAlign[A]=&quot;auto&quot;):this.tickAlign[A]=-1,F=1,&quot;auto&quot;===(S=[this.tickAlign[A],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]),B=[0,0,0],j(A,U,V);for(C=0;C&lt;3;++C)q[C]+=k*U[C]*this.tickPad[C]/r[5*C];this._text.drawTicks(A,this.tickSize[A],this.tickAngle[A],q,this.tickColor[A],H,B,S)}if(this.labelEnable[A]){F=0,B=[0,0,0],this.labels[A].length&gt;4&amp;&amp;(N(A),F=1),&quot;auto&quot;===(S=[this.labelAlign[A],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]);for(C=0;C&lt;3;++C)q[C]+=k*U[C]*this.labelPad[C]/r[5*C];q[A]+=.5*(a[0][A]+a[1][A]),this._text.drawLabel(A,this.labelSize[A],this.labelAngle[A],q,this.labelColor[A],[0,0,0],B,S)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{&quot;./lib/background.js&quot;:259,&quot;./lib/cube.js&quot;:260,&quot;./lib/lines.js&quot;:261,&quot;./lib/text.js&quot;:263,&quot;./lib/ticks.js&quot;:264}],259:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=[],r=[],s=0,l=0;l&lt;3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p&lt;=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d&lt;=1;d+=2){f[c]=d;for(var g=-1;g&lt;=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var m=c;c=u,u=m}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,v,x,b)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s&lt;3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:262,&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361}],260:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var y=0,x=0;x&lt;2;++x){u[2]=a[x][2];for(var b=0;b&lt;2;++b){u[1]=a[b][1];for(var _=0;_&lt;2;++_)u[0]=a[_][0],h(l[y],u,s),y+=1}}var w=-1;for(x=0;x&lt;8;++x){for(var T=l[x][3],k=0;k&lt;3;++k)c[x][k]=l[x][k]/T;p&amp;&amp;(c[x][2]*=-1),T&lt;0&amp;&amp;(w&lt;0||c[x][2]&lt;c[w][2])&amp;&amp;(w=x)}if(w&lt;0){w=0;for(var A=0;A&lt;3;++A){for(var M=(A+2)%3,S=(A+1)%3,E=-1,L=-1,C=0;C&lt;2;++C){var P=(O=C&lt;&lt;A)+(C&lt;&lt;M)+(1-C&lt;&lt;S),I=O+(1-C&lt;&lt;M)+(C&lt;&lt;S);o(c[O],c[P],c[I],f)&lt;0||(C?E=1:L=1)}if(E&lt;0||L&lt;0)L&gt;E&amp;&amp;(w|=1&lt;&lt;A);else{for(C=0;C&lt;2;++C){P=(O=C&lt;&lt;A)+(C&lt;&lt;M)+(1-C&lt;&lt;S),I=O+(1-C&lt;&lt;M)+(C&lt;&lt;S);var O,z=d([l[O],l[P],l[I],l[O+(1&lt;&lt;M)+(1&lt;&lt;S)]]);C?E=z:L=z}L&gt;E&amp;&amp;(w|=1&lt;&lt;A)}}}var D=7^w,R=-1;for(x=0;x&lt;8;++x)x!==w&amp;&amp;x!==D&amp;&amp;(R&lt;0||c[R][1]&gt;c[x][1])&amp;&amp;(R=x);var F=-1;for(x=0;x&lt;3;++x){if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D)F&lt;0&amp;&amp;(F=N),(S=c[N])[0]&lt;c[F][0]&amp;&amp;(F=N)}var B=-1;for(x=0;x&lt;3;++x){var N;if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D&amp;&amp;N!==F)B&lt;0&amp;&amp;(B=N),(S=c[N])[0]&gt;c[B][0]&amp;&amp;(B=N)}var j=g;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&amp;F,j[n.log2(R^B)]=R&amp;B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&amp;B):j[n.log2(F^U)]=U&amp;F;var V=m,q=w;for(A=0;A&lt;3;++A)V[A]=q&amp;1&lt;&lt;A?-1:1;return v};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-mat4/multiply&quot;),a=t(&quot;split-polygon&quot;),o=t(&quot;robust-orientation&quot;),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n&lt;4;++n){t[n]=r[12+n];for(var i=0;i&lt;3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t&lt;8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e&lt;p.length;++e)if((t=a.positive(t,p[e])).length&lt;3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1&lt;t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var g=[1,1,1],m=[0,0,0],v={cubeEdges:g,axis:m}},{&quot;bit-twiddle&quot;:104,&quot;gl-mat4/multiply&quot;:301,&quot;robust-orientation&quot;:548,&quot;split-polygon&quot;:567}],261:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f&lt;3;++f){for(var h=o.length/3|0,d=0;d&lt;r[f].length;++d){var g=+r[f][d].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var m=o.length/3|0;s[f]=h,l[f]=m-h;h=o.length/3|0;for(var v=0;v&lt;r[f].length;++v){g=+r[f][v].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}m=o.length/3|0;c[f]=h,u[f]=m-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var g=f(l);g[t]=1,this.shader.uniforms.screenAxis=g,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:262,&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361}],262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n  vec3 major = position.x * majorAxis;\n  vec3 minor = position.y * minorAxis;\n\n  vec3 vPosition = major + minor + offset;\n  vec3 pPosition = project(vPosition);\n  vec3 offset = project(vPosition + screenAxis * position.z);\n\n  vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n  gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.line=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n  vec3 A = project(a);\n  vec3 B = project(b);\n\n  return atan(\n    (B.y - A.y) * resolution.y,\n    (B.x - A.x) * resolution.x\n  );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio =       alignOpt.y;\nbool enableAlign =    (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n  return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n  return mod_angle((a &lt; 0.0) ?\n    a + TWO_PI :\n    a\n  );\n}\n\nfloat look_upwards(float a) {\n  float b = positive_angle(a);\n  return ((b &gt; HALF_PI) &amp;&amp; (b &lt;= ONE_AND_HALF_PI)) ?\n    b - PI :\n    b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n  // ratio controls the ratio between being horizontal to (vertical + horizontal)\n  // if ratio is set to 0.5 then it is 50%, 50%.\n  // when using a higher ratio e.g. 0.75 the result would\n  // likely be more horizontal than vertical.\n\n  float b = positive_angle(a);\n\n  return\n    (b &lt; (      ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n    (b &lt; (2.0 + ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (4.0 - ratio) * HALF_PI) ? HALF_PI :\n                                    0.0;\n}\n\nfloat roundTo(float a, float b) {\n  return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n  float b = positive_angle(a);\n  float div = TWO_PI / float(n);\n  float c = roundTo(b, div);\n  return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n  return\n    (option &gt;  2) ? look_round_n_directions(rawAngle + delta, option) :       // option 3-n: round to n directions\n    (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n    (option == 1) ? rawAngle + delta :       // use free angle, and flip to align with one direction of the axis\n    (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n    (option ==-1) ? 0.0 :                    // useful for backward compatibility, all texts remains horizontal\n                    rawAngle;                // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &amp;&amp;\n                   (axis.y == 0.0) &amp;&amp;\n                   (axis.z == 0.0);\n\nvoid main() {\n  //Compute world offset\n  float axisDistance = position.z;\n  vec3 dataPosition = axisDistance * axis + offset;\n\n  float beta = angle; // i.e. user defined attributes for each tick\n\n  float axisAngle;\n  float clipAngle;\n  float flip;\n\n  if (enableAlign) {\n    axisAngle = (isAxisTitle) ? HALF_PI :\n                      computeViewAngle(dataPosition, dataPosition + axis);\n    clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n    axisAngle += (sin(axisAngle) &lt; 0.0) ? PI : 0.0;\n    clipAngle += (sin(clipAngle) &lt; 0.0) ? PI : 0.0;\n\n    flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n                vec2(sin(clipAngle),-cos(clipAngle))) &gt; 0.0) ? 1.0 : 0.0;\n\n    beta += applyAlignOption(clipAngle, flip * PI);\n  }\n\n  //Compute plane offset\n  vec2 planeCoord = position.xy * pixelScale;\n\n  mat2 planeXform = scale * mat2(\n     cos(beta), sin(beta),\n    -sin(beta), cos(beta)\n  );\n\n  vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n  //Compute clip position\n  vec3 clipPosition = project(dataPosition);\n\n  //Apply text offset in clip coordinates\n  clipPosition += vec3(viewOffset, 0.0);\n\n  //Done\n  gl_Position = vec4(clipPosition, 1.0);\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.text=function(t){return i(t,s,l,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n  vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n  vec3 realNormal = signAxis * normal;\n\n  if(dot(realNormal, enable) &gt; 0.0) {\n    vec3 minRange = min(bounds[0], bounds[1]);\n    vec3 maxRange = max(bounds[0], bounds[1]);\n    vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n    gl_Position = projection * view * model * vec4(nPosition, 1.0);\n  } else {\n    gl_Position = vec4(0,0,0,0);\n  }\n\n  colorChannel = abs(realNormal);\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n  gl_FragColor = colorChannel.x * colors[0] +\n                 colorChannel.y * colors[1] +\n                 colorChannel.z * colors[2];\n}&quot;]);r.bg=function(t){return i(t,c,u,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:339,glslify:265}],263:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;vectorize-text&quot;),o=t(&quot;./shaders&quot;).text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[e];u||(u=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:&quot;'+t+'&quot; error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineSpacing:i,styletags:s}));for(var f=(n||12)/12,h=u.positions,p=u.cells,d=0,g=p.length;d&lt;g;++d)for(var m=p[d],v=2;v&gt;=0;--v){var y=h[m[v]];o.push(f*y[0],-f*y[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d&lt;3;++d){f[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),h[d]=(o.length/3|0)-f[d],c[d]=o.length/3|0;for(var g=0;g&lt;n[d].length;++g)n[d][g].text&amp;&amp;s(n[d][g].x,n[d][g].text,n[d][g].font||i,n[d][g].fontSize||12,1.25,p);u[d]=(o.length/3|0)-c[d]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./shaders&quot;:262,_process:528,&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361,&quot;vectorize-text&quot;:623}],264:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t+&quot;&quot;,n=r.indexOf(&quot;.&quot;),i=0;n&gt;=0&amp;&amp;(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+&quot;&quot;;if(s.indexOf(&quot;e&quot;)&gt;=0)return s;var l=o/a,c=o%a;o&lt;0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=&quot;&quot;+l;if(o&lt;0&amp;&amp;(u=&quot;-&quot;+u),i){for(var f=&quot;&quot;+c;f.length&lt;i;)f=&quot;0&quot;+f;return u+&quot;.&quot;+f}return u}r.create=function(t,e){for(var r=[],i=0;i&lt;3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]&lt;=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(o=-1;o*e[i]&gt;=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r&lt;3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],265:[function(t,e,r){e.exports=function(t){&quot;string&quot;==typeof t&amp;&amp;(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n&lt;t.length-1;n++)r.push(t[n],e[n]||&quot;&quot;);return r.push(t[n]),r.join(&quot;&quot;)}},{}],266:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,v=e.projection||c,y=e._ortho||!1,x=t.bounds,b=(f=f||a(h,p,v,x,y)).axis;o(u,p,h),o(u,v,u);for(var _=g,w=0;w&lt;3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var T=n(s(u,u));s(u,u);for(var k=0;k&lt;3;++k){var A=(k+1)%3,M=(k+2)%3,S=m;t:for(w=0;w&lt;2;++w){var E=[];if(b[k]&lt;0!=!!w){S[k]=x[w][k];for(var L=0;L&lt;2;++L){S[A]=x[L^w][A];for(var C=0;C&lt;2;++C)S[M]=x[C^L^w][M],E.push(S.slice())}var P=y?5:4;for(L=P;L===P;++L){if(0===E.length)continue t;E=i.positive(E,T[L])}for(L=0;L&lt;E.length;++L){M=E[L];var I=d(m,u,M,r,l);for(C=0;C&lt;3;++C)_[C].lo=Math.min(_[C].lo,M[C]),_[C].hi=Math.max(_[C].hi,M[C]),C!==k&amp;&amp;(_[C].pixelsPerDataUnit=Math.min(_[C].pixelsPerDataUnit,Math.abs(I[C])))}}}}return _};var n=t(&quot;extract-frustum-planes&quot;),i=t(&quot;split-polygon&quot;),a=t(&quot;./lib/cube.js&quot;),o=t(&quot;gl-mat4/multiply&quot;),s=t(&quot;gl-mat4/transpose&quot;),l=t(&quot;gl-vec4/transformMat4&quot;),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a&lt;3;++a){for(var o=h,s=p,c=0;c&lt;3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]&lt;0&amp;&amp;(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]&lt;0&amp;&amp;(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var g=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],m=[0,0,0]},{&quot;./lib/cube.js&quot;:260,&quot;extract-frustum-planes&quot;:248,&quot;gl-mat4/multiply&quot;:301,&quot;gl-mat4/transpose&quot;:312,&quot;gl-vec4/transformMat4&quot;:432,&quot;split-polygon&quot;:567}],267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;ndarray&quot;),o=[&quot;uint8&quot;,&quot;uint8_clamped&quot;,&quot;uint16&quot;,&quot;uint32&quot;,&quot;int8&quot;,&quot;int16&quot;,&quot;int32&quot;,&quot;float32&quot;];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a&lt;0)return t.bufferData(e,i,n),o;if(o+a&gt;r)throw new Error(&quot;gl-buffer: If resizing buffer, must not specify offset&quot;);return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a&lt;i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(&quot;number&quot;!=typeof e&amp;&amp;(e=-1),this.bind(),&quot;object&quot;==typeof t&amp;&amp;void 0!==t.shape){var r=t.dtype;if(o.indexOf(r)&lt;0&amp;&amp;(r=&quot;float32&quot;),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(&quot;OES_element_index_uint&quot;)&amp;&amp;&quot;uint16&quot;!==r?&quot;uint32&quot;:&quot;uint16&quot;;if(r===t.dtype&amp;&amp;function(t,e){for(var r=1,n=e.length-1;n&gt;=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&amp;&amp;t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,&quot;uint16&quot;):u(t,&quot;float32&quot;),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?f:f.subarray(0,t.length),e),n.free(f)}else if(&quot;object&quot;==typeof t&amp;&amp;&quot;number&quot;==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(&quot;number&quot;!=typeof t&amp;&amp;void 0!==t)throw new Error(&quot;gl-buffer: Invalid data type&quot;);if(e&gt;=0)throw new Error(&quot;gl-buffer: Cannot specify offset when resizing buffer&quot;);(t|=0)&lt;=0&amp;&amp;(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&amp;&amp;r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(&quot;gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER&quot;);if(n!==t.DYNAMIC_DRAW&amp;&amp;n!==t.STATIC_DRAW&amp;&amp;n!==t.STREAM_DRAW)throw new Error(&quot;gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW&quot;);var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:483,&quot;ndarray-ops&quot;:478,&quot;typedarray-pool&quot;:617}],268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;);e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&amp;&amp;(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=null,d=null,g=[],m=1/0,v=!1,y=0;y&lt;r.length;y++){var x=r[y];s=Math.min(x[0],s),l=Math.max(x[0],l),c=Math.min(x[1],c),u=Math.max(x[1],u),f=Math.min(x[2],f),h=Math.max(x[2],h);var b=i[y];if(n.length(b)&gt;o&amp;&amp;(o=n.length(b)),y){var _=2*n.distance(p,x)/(n.length(d)+n.length(b));_?(m=Math.min(m,_),v=!1):v=!0}v||(p=x,d=b),g.push(b)}var w=[s,c,f],T=[l,u,h];e&amp;&amp;(e[0]=w,e[1]=T),0===o&amp;&amp;(o=1);var k=1/o;isFinite(m)||(m=1),a.vectorScale=m;var A=t.coneSize||.5;t.absoluteConeSize&amp;&amp;(A=t.absoluteConeSize*k),a.coneScale=A;y=0;for(var M=0;y&lt;r.length;y++)for(var S=(x=r[y])[0],E=x[1],L=x[2],C=g[y],P=n.length(C)*k,I=0;I&lt;8;I++){a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vertexIntensity.push(P,P,P),a.vertexIntensity.push(P,P,P);var O=a.positions.length;a.cells.push([O-6,O-5,O-4],[O-3,O-2,O-1])}return a};var i=t(&quot;./lib/shaders&quot;);e.exports.createMesh=t(&quot;./create_mesh&quot;),e.exports.createConeMesh=function(t,r){return e.exports.createMesh(t,r,{shaders:i,traceType:&quot;cone&quot;})}},{&quot;./create_mesh&quot;:269,&quot;./lib/shaders&quot;:270,&quot;gl-vec3&quot;:380}],269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;gl-mat4/invert&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;colormap&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e,r,n,i,a,o,s,l,c,u){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.pickShader=n,this.trianglePositions=i,this.triangleVectors=a,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=o,this.triangleVAO=c,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=f,this._view=f,this._projection=f,this._resolution=[1,1]}var p=h.prototype;function d(t,e){var r=n(t,e.meshShader.vertex,e.meshShader.fragment,null,e.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}function g(t,e){var r=n(t,e.pickShader.vertex,e.pickShader.fragment,null,e.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}p.isOpaque=function(){return this.opacity&gt;=1},p.isTransparent=function(){return this.opacity&lt;1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),void 0!==t.tubeScale&amp;&amp;(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&amp;&amp;(this.vectorScale=t.vectorScale),void 0!==t.coneScale&amp;&amp;(this.coneScale=t.coneScale),void 0!==t.coneOffset&amp;&amp;(this.coneOffset=t.coneOffset),t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=u({colormap:t,nshades:256,format:&quot;rgba&quot;}),r=new Uint8Array(1024),n=0;n&lt;256;++n){for(var i=e[n],a=0;a&lt;3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&amp;&amp;r&amp;&amp;i){var a=[],o=[],s=[],l=[],f=[];this.cells=r,this.positions=n,this.vectors=i;var h=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,g=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],g=+t.vertexIntensityBounds[1];else for(var m=0;m&lt;p.length;++m){var v=p[m];d=Math.min(d,v),g=Math.max(g,v)}else for(m=0;m&lt;n.length;++m){v=n[m][2];d=Math.min(d,v),g=Math.max(g,v)}this.intensity=p||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(m=0;m&lt;n.length;++m)for(var y=n[m],x=0;x&lt;3;++x)!isNaN(y[x])&amp;&amp;isFinite(y[x])&amp;&amp;(this.bounds[0][x]=Math.min(this.bounds[0][x],y[x]),this.bounds[1][x]=Math.max(this.bounds[1][x],y[x]));var b=0;t:for(m=0;m&lt;r.length;++m){var _=r[m];switch(_.length){case 3:for(x=0;x&lt;3;++x){y=n[T=_[x]];for(var w=0;w&lt;3;++w)if(isNaN(y[w])||!isFinite(y[w]))continue t}for(x=0;x&lt;3;++x){var T;y=n[T=_[2-x]];a.push(y[0],y[1],y[2],y[3]);var k=i[T];o.push(k[0],k[1],k[2],k[3]||0);var A,M=h;3===M.length?s.push(M[0],M[1],M[2],1):s.push(M[0],M[1],M[2],M[3]),A=p?[(p[T]-d)/(g-d),0]:[(y[2]-d)/(g-d),0],l.push(A[0],A[1]),f.push(m)}b+=1}}this.triangleCount=b,this.trianglePositions.update(a),this.triangleVectors.update(o),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(f))}},p.drawTransparent=p.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var c={model:r,view:n,projection:i,inverseModel:f.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};c.inverseModel=l(c.inverseModel,c.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(o=0;o&lt;3;++o)c.eyePosition[o]=u[12+o]/u[15];var h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];c.lightPosition[o]=p/h}if(this.triangleCount&gt;0){var g=this.triShader;g.bind(),g.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return&quot;cone&quot;===this.traceType?i.index=Math.floor(r[1]/48):&quot;streamtube&quot;===this.traceType&amp;&amp;(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(t,e,r){var n=r.shaders;1===arguments.length&amp;&amp;(t=(e=t).gl);var s=d(t,n),l=g(t,n),u=o(t,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=t.LINEAR_MIPMAP_LINEAR,u.magFilter=t.LINEAR;var f=i(t),p=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:f,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:t.FLOAT,size:4},{buffer:v,type:t.FLOAT,size:2},{buffer:p,type:t.FLOAT,size:4}]),b=new h(t,u,s,l,f,p,y,m,v,x,r.traceType||&quot;cone&quot;);return b.update(e),b}},{colormap:137,&quot;gl-buffer&quot;:267,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/multiply&quot;:301,&quot;gl-shader&quot;:339,&quot;gl-texture2d&quot;:356,&quot;gl-vao&quot;:361,ndarray:483}],270:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * conePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(conePosition, 1.0);\n  vec4 t_position  = view * conePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = conePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n  gl_Position = projection * view * conePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]}},{glslify:442}],271:[function(t,e,r){e.exports={0:&quot;NONE&quot;,1:&quot;ONE&quot;,2:&quot;LINE_LOOP&quot;,3:&quot;LINE_STRIP&quot;,4:&quot;TRIANGLES&quot;,5:&quot;TRIANGLE_STRIP&quot;,6:&quot;TRIANGLE_FAN&quot;,256:&quot;DEPTH_BUFFER_BIT&quot;,512:&quot;NEVER&quot;,513:&quot;LESS&quot;,514:&quot;EQUAL&quot;,515:&quot;LEQUAL&quot;,516:&quot;GREATER&quot;,517:&quot;NOTEQUAL&quot;,518:&quot;GEQUAL&quot;,519:&quot;ALWAYS&quot;,768:&quot;SRC_COLOR&quot;,769:&quot;ONE_MINUS_SRC_COLOR&quot;,770:&quot;SRC_ALPHA&quot;,771:&quot;ONE_MINUS_SRC_ALPHA&quot;,772:&quot;DST_ALPHA&quot;,773:&quot;ONE_MINUS_DST_ALPHA&quot;,774:&quot;DST_COLOR&quot;,775:&quot;ONE_MINUS_DST_COLOR&quot;,776:&quot;SRC_ALPHA_SATURATE&quot;,1024:&quot;STENCIL_BUFFER_BIT&quot;,1028:&quot;FRONT&quot;,1029:&quot;BACK&quot;,1032:&quot;FRONT_AND_BACK&quot;,1280:&quot;INVALID_ENUM&quot;,1281:&quot;INVALID_VALUE&quot;,1282:&quot;INVALID_OPERATION&quot;,1285:&quot;OUT_OF_MEMORY&quot;,1286:&quot;INVALID_FRAMEBUFFER_OPERATION&quot;,2304:&quot;CW&quot;,2305:&quot;CCW&quot;,2849:&quot;LINE_WIDTH&quot;,2884:&quot;CULL_FACE&quot;,2885:&quot;CULL_FACE_MODE&quot;,2886:&quot;FRONT_FACE&quot;,2928:&quot;DEPTH_RANGE&quot;,2929:&quot;DEPTH_TEST&quot;,2930:&quot;DEPTH_WRITEMASK&quot;,2931:&quot;DEPTH_CLEAR_VALUE&quot;,2932:&quot;DEPTH_FUNC&quot;,2960:&quot;STENCIL_TEST&quot;,2961:&quot;STENCIL_CLEAR_VALUE&quot;,2962:&quot;STENCIL_FUNC&quot;,2963:&quot;STENCIL_VALUE_MASK&quot;,2964:&quot;STENCIL_FAIL&quot;,2965:&quot;STENCIL_PASS_DEPTH_FAIL&quot;,2966:&quot;STENCIL_PASS_DEPTH_PASS&quot;,2967:&quot;STENCIL_REF&quot;,2968:&quot;STENCIL_WRITEMASK&quot;,2978:&quot;VIEWPORT&quot;,3024:&quot;DITHER&quot;,3042:&quot;BLEND&quot;,3088:&quot;SCISSOR_BOX&quot;,3089:&quot;SCISSOR_TEST&quot;,3106:&quot;COLOR_CLEAR_VALUE&quot;,3107:&quot;COLOR_WRITEMASK&quot;,3317:&quot;UNPACK_ALIGNMENT&quot;,3333:&quot;PACK_ALIGNMENT&quot;,3379:&quot;MAX_TEXTURE_SIZE&quot;,3386:&quot;MAX_VIEWPORT_DIMS&quot;,3408:&quot;SUBPIXEL_BITS&quot;,3410:&quot;RED_BITS&quot;,3411:&quot;GREEN_BITS&quot;,3412:&quot;BLUE_BITS&quot;,3413:&quot;ALPHA_BITS&quot;,3414:&quot;DEPTH_BITS&quot;,3415:&quot;STENCIL_BITS&quot;,3553:&quot;TEXTURE_2D&quot;,4352:&quot;DONT_CARE&quot;,4353:&quot;FASTEST&quot;,4354:&quot;NICEST&quot;,5120:&quot;BYTE&quot;,5121:&quot;UNSIGNED_BYTE&quot;,5122:&quot;SHORT&quot;,5123:&quot;UNSIGNED_SHORT&quot;,5124:&quot;INT&quot;,5125:&quot;UNSIGNED_INT&quot;,5126:&quot;FLOAT&quot;,5386:&quot;INVERT&quot;,5890:&quot;TEXTURE&quot;,6401:&quot;STENCIL_INDEX&quot;,6402:&quot;DEPTH_COMPONENT&quot;,6406:&quot;ALPHA&quot;,6407:&quot;RGB&quot;,6408:&quot;RGBA&quot;,6409:&quot;LUMINANCE&quot;,6410:&quot;LUMINANCE_ALPHA&quot;,7680:&quot;KEEP&quot;,7681:&quot;REPLACE&quot;,7682:&quot;INCR&quot;,7683:&quot;DECR&quot;,7936:&quot;VENDOR&quot;,7937:&quot;RENDERER&quot;,7938:&quot;VERSION&quot;,9728:&quot;NEAREST&quot;,9729:&quot;LINEAR&quot;,9984:&quot;NEAREST_MIPMAP_NEAREST&quot;,9985:&quot;LINEAR_MIPMAP_NEAREST&quot;,9986:&quot;NEAREST_MIPMAP_LINEAR&quot;,9987:&quot;LINEAR_MIPMAP_LINEAR&quot;,10240:&quot;TEXTURE_MAG_FILTER&quot;,10241:&quot;TEXTURE_MIN_FILTER&quot;,10242:&quot;TEXTURE_WRAP_S&quot;,10243:&quot;TEXTURE_WRAP_T&quot;,10497:&quot;REPEAT&quot;,10752:&quot;POLYGON_OFFSET_UNITS&quot;,16384:&quot;COLOR_BUFFER_BIT&quot;,32769:&quot;CONSTANT_COLOR&quot;,32770:&quot;ONE_MINUS_CONSTANT_COLOR&quot;,32771:&quot;CONSTANT_ALPHA&quot;,32772:&quot;ONE_MINUS_CONSTANT_ALPHA&quot;,32773:&quot;BLEND_COLOR&quot;,32774:&quot;FUNC_ADD&quot;,32777:&quot;BLEND_EQUATION_RGB&quot;,32778:&quot;FUNC_SUBTRACT&quot;,32779:&quot;FUNC_REVERSE_SUBTRACT&quot;,32819:&quot;UNSIGNED_SHORT_4_4_4_4&quot;,32820:&quot;UNSIGNED_SHORT_5_5_5_1&quot;,32823:&quot;POLYGON_OFFSET_FILL&quot;,32824:&quot;POLYGON_OFFSET_FACTOR&quot;,32854:&quot;RGBA4&quot;,32855:&quot;RGB5_A1&quot;,32873:&quot;TEXTURE_BINDING_2D&quot;,32926:&quot;SAMPLE_ALPHA_TO_COVERAGE&quot;,32928:&quot;SAMPLE_COVERAGE&quot;,32936:&quot;SAMPLE_BUFFERS&quot;,32937:&quot;SAMPLES&quot;,32938:&quot;SAMPLE_COVERAGE_VALUE&quot;,32939:&quot;SAMPLE_COVERAGE_INVERT&quot;,32968:&quot;BLEND_DST_RGB&quot;,32969:&quot;BLEND_SRC_RGB&quot;,32970:&quot;BLEND_DST_ALPHA&quot;,32971:&quot;BLEND_SRC_ALPHA&quot;,33071:&quot;CLAMP_TO_EDGE&quot;,33170:&quot;GENERATE_MIPMAP_HINT&quot;,33189:&quot;DEPTH_COMPONENT16&quot;,33306:&quot;DEPTH_STENCIL_ATTACHMENT&quot;,33635:&quot;UNSIGNED_SHORT_5_6_5&quot;,33648:&quot;MIRRORED_REPEAT&quot;,33901:&quot;ALIASED_POINT_SIZE_RANGE&quot;,33902:&quot;ALIASED_LINE_WIDTH_RANGE&quot;,33984:&quot;TEXTURE0&quot;,33985:&quot;TEXTURE1&quot;,33986:&quot;TEXTURE2&quot;,33987:&quot;TEXTURE3&quot;,33988:&quot;TEXTURE4&quot;,33989:&quot;TEXTURE5&quot;,33990:&quot;TEXTURE6&quot;,33991:&quot;TEXTURE7&quot;,33992:&quot;TEXTURE8&quot;,33993:&quot;TEXTURE9&quot;,33994:&quot;TEXTURE10&quot;,33995:&quot;TEXTURE11&quot;,33996:&quot;TEXTURE12&quot;,33997:&quot;TEXTURE13&quot;,33998:&quot;TEXTURE14&quot;,33999:&quot;TEXTURE15&quot;,34e3:&quot;TEXTURE16&quot;,34001:&quot;TEXTURE17&quot;,34002:&quot;TEXTURE18&quot;,34003:&quot;TEXTURE19&quot;,34004:&quot;TEXTURE20&quot;,34005:&quot;TEXTURE21&quot;,34006:&quot;TEXTURE22&quot;,34007:&quot;TEXTURE23&quot;,34008:&quot;TEXTURE24&quot;,34009:&quot;TEXTURE25&quot;,34010:&quot;TEXTURE26&quot;,34011:&quot;TEXTURE27&quot;,34012:&quot;TEXTURE28&quot;,34013:&quot;TEXTURE29&quot;,34014:&quot;TEXTURE30&quot;,34015:&quot;TEXTURE31&quot;,34016:&quot;ACTIVE_TEXTURE&quot;,34024:&quot;MAX_RENDERBUFFER_SIZE&quot;,34041:&quot;DEPTH_STENCIL&quot;,34055:&quot;INCR_WRAP&quot;,34056:&quot;DECR_WRAP&quot;,34067:&quot;TEXTURE_CUBE_MAP&quot;,34068:&quot;TEXTURE_BINDING_CUBE_MAP&quot;,34069:&quot;TEXTURE_CUBE_MAP_POSITIVE_X&quot;,34070:&quot;TEXTURE_CUBE_MAP_NEGATIVE_X&quot;,34071:&quot;TEXTURE_CUBE_MAP_POSITIVE_Y&quot;,34072:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Y&quot;,34073:&quot;TEXTURE_CUBE_MAP_POSITIVE_Z&quot;,34074:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Z&quot;,34076:&quot;MAX_CUBE_MAP_TEXTURE_SIZE&quot;,34338:&quot;VERTEX_ATTRIB_ARRAY_ENABLED&quot;,34339:&quot;VERTEX_ATTRIB_ARRAY_SIZE&quot;,34340:&quot;VERTEX_ATTRIB_ARRAY_STRIDE&quot;,34341:&quot;VERTEX_ATTRIB_ARRAY_TYPE&quot;,34342:&quot;CURRENT_VERTEX_ATTRIB&quot;,34373:&quot;VERTEX_ATTRIB_ARRAY_POINTER&quot;,34466:&quot;NUM_COMPRESSED_TEXTURE_FORMATS&quot;,34467:&quot;COMPRESSED_TEXTURE_FORMATS&quot;,34660:&quot;BUFFER_SIZE&quot;,34661:&quot;BUFFER_USAGE&quot;,34816:&quot;STENCIL_BACK_FUNC&quot;,34817:&quot;STENCIL_BACK_FAIL&quot;,34818:&quot;STENCIL_BACK_PASS_DEPTH_FAIL&quot;,34819:&quot;STENCIL_BACK_PASS_DEPTH_PASS&quot;,34877:&quot;BLEND_EQUATION_ALPHA&quot;,34921:&quot;MAX_VERTEX_ATTRIBS&quot;,34922:&quot;VERTEX_ATTRIB_ARRAY_NORMALIZED&quot;,34930:&quot;MAX_TEXTURE_IMAGE_UNITS&quot;,34962:&quot;ARRAY_BUFFER&quot;,34963:&quot;ELEMENT_ARRAY_BUFFER&quot;,34964:&quot;ARRAY_BUFFER_BINDING&quot;,34965:&quot;ELEMENT_ARRAY_BUFFER_BINDING&quot;,34975:&quot;VERTEX_ATTRIB_ARRAY_BUFFER_BINDING&quot;,35040:&quot;STREAM_DRAW&quot;,35044:&quot;STATIC_DRAW&quot;,35048:&quot;DYNAMIC_DRAW&quot;,35632:&quot;FRAGMENT_SHADER&quot;,35633:&quot;VERTEX_SHADER&quot;,35660:&quot;MAX_VERTEX_TEXTURE_IMAGE_UNITS&quot;,35661:&quot;MAX_COMBINED_TEXTURE_IMAGE_UNITS&quot;,35663:&quot;SHADER_TYPE&quot;,35664:&quot;FLOAT_VEC2&quot;,35665:&quot;FLOAT_VEC3&quot;,35666:&quot;FLOAT_VEC4&quot;,35667:&quot;INT_VEC2&quot;,35668:&quot;INT_VEC3&quot;,35669:&quot;INT_VEC4&quot;,35670:&quot;BOOL&quot;,35671:&quot;BOOL_VEC2&quot;,35672:&quot;BOOL_VEC3&quot;,35673:&quot;BOOL_VEC4&quot;,35674:&quot;FLOAT_MAT2&quot;,35675:&quot;FLOAT_MAT3&quot;,35676:&quot;FLOAT_MAT4&quot;,35678:&quot;SAMPLER_2D&quot;,35680:&quot;SAMPLER_CUBE&quot;,35712:&quot;DELETE_STATUS&quot;,35713:&quot;COMPILE_STATUS&quot;,35714:&quot;LINK_STATUS&quot;,35715:&quot;VALIDATE_STATUS&quot;,35716:&quot;INFO_LOG_LENGTH&quot;,35717:&quot;ATTACHED_SHADERS&quot;,35718:&quot;ACTIVE_UNIFORMS&quot;,35719:&quot;ACTIVE_UNIFORM_MAX_LENGTH&quot;,35720:&quot;SHADER_SOURCE_LENGTH&quot;,35721:&quot;ACTIVE_ATTRIBUTES&quot;,35722:&quot;ACTIVE_ATTRIBUTE_MAX_LENGTH&quot;,35724:&quot;SHADING_LANGUAGE_VERSION&quot;,35725:&quot;CURRENT_PROGRAM&quot;,36003:&quot;STENCIL_BACK_REF&quot;,36004:&quot;STENCIL_BACK_VALUE_MASK&quot;,36005:&quot;STENCIL_BACK_WRITEMASK&quot;,36006:&quot;FRAMEBUFFER_BINDING&quot;,36007:&quot;RENDERBUFFER_BINDING&quot;,36048:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE&quot;,36049:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_NAME&quot;,36050:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL&quot;,36051:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE&quot;,36053:&quot;FRAMEBUFFER_COMPLETE&quot;,36054:&quot;FRAMEBUFFER_INCOMPLETE_ATTACHMENT&quot;,36055:&quot;FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT&quot;,36057:&quot;FRAMEBUFFER_INCOMPLETE_DIMENSIONS&quot;,36061:&quot;FRAMEBUFFER_UNSUPPORTED&quot;,36064:&quot;COLOR_ATTACHMENT0&quot;,36096:&quot;DEPTH_ATTACHMENT&quot;,36128:&quot;STENCIL_ATTACHMENT&quot;,36160:&quot;FRAMEBUFFER&quot;,36161:&quot;RENDERBUFFER&quot;,36162:&quot;RENDERBUFFER_WIDTH&quot;,36163:&quot;RENDERBUFFER_HEIGHT&quot;,36164:&quot;RENDERBUFFER_INTERNAL_FORMAT&quot;,36168:&quot;STENCIL_INDEX8&quot;,36176:&quot;RENDERBUFFER_RED_SIZE&quot;,36177:&quot;RENDERBUFFER_GREEN_SIZE&quot;,36178:&quot;RENDERBUFFER_BLUE_SIZE&quot;,36179:&quot;RENDERBUFFER_ALPHA_SIZE&quot;,36180:&quot;RENDERBUFFER_DEPTH_SIZE&quot;,36181:&quot;RENDERBUFFER_STENCIL_SIZE&quot;,36194:&quot;RGB565&quot;,36336:&quot;LOW_FLOAT&quot;,36337:&quot;MEDIUM_FLOAT&quot;,36338:&quot;HIGH_FLOAT&quot;,36339:&quot;LOW_INT&quot;,36340:&quot;MEDIUM_INT&quot;,36341:&quot;HIGH_INT&quot;,36346:&quot;SHADER_COMPILER&quot;,36347:&quot;MAX_VERTEX_UNIFORM_VECTORS&quot;,36348:&quot;MAX_VARYING_VECTORS&quot;,36349:&quot;MAX_FRAGMENT_UNIFORM_VECTORS&quot;,37440:&quot;UNPACK_FLIP_Y_WEBGL&quot;,37441:&quot;UNPACK_PREMULTIPLY_ALPHA_WEBGL&quot;,37442:&quot;CONTEXT_LOST_WEBGL&quot;,37443:&quot;UNPACK_COLORSPACE_CONVERSION_WEBGL&quot;,37444:&quot;BROWSER_DEFAULT_WEBGL&quot;}},{}],272:[function(t,e,r){var n=t(&quot;./1.0/numbers&quot;);e.exports=function(t){return n[t]}},{&quot;./1.0/numbers&quot;:271}],273:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r&lt;3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho||!1?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f&lt;3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&amp;&amp;e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e&lt;3;++e){for(var r=[],n=1;n&lt;=2;++n)for(var i=-1;i&lt;=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a&lt;i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){&quot;lineWidth&quot;in(t=t||{})&amp;&amp;(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),&quot;capSize&quot;in t&amp;&amp;(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&amp;&amp;n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s&lt;3;++s){this.lineOffset[s]=o;t:for(var l=0;l&lt;a;++l){for(var u=r[l],h=0;h&lt;3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&amp;&amp;(d=e[l]),3===d.length?d=[d[0],d[1],d[2],1]:4===d.length&amp;&amp;(d=[d[0],d[1],d[2],d[3]],!this.hasAlpha&amp;&amp;d[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),!isNaN(p[0][s])&amp;&amp;!isNaN(p[1][s])){var g;if(p[0][s]&lt;0)(g=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s);if(p[1][s]&gt;0)(g=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{&quot;./shaders/index&quot;:275,&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361}],274:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n  vec4 worldPosition  = model * vec4(position, 1.0);\n  worldPosition       = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n  gl_Position         = projection * view * worldPosition;\n  fragColor           = color;\n  fragPosition        = position;\n}&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  gl_FragColor = opacity * fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;offset&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:339,glslify:274}],276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-texture2d&quot;);e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(&quot;WEBGL_draw_buffers&quot;);!l&amp;&amp;c&amp;&amp;function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n&lt;=r;++n){for(var i=new Array(r),a=0;a&lt;n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(a=n;a&lt;r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&amp;&amp;(n=r,r=0|e[1],e=0|e[0]);if(&quot;number&quot;!=typeof e)throw new Error(&quot;gl-fbo: Missing shape parameter&quot;);var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;u||r&lt;0||r&gt;u)throw new Error(&quot;gl-fbo: Parameters are too large for FBO&quot;);var f=1;if(&quot;color&quot;in(n=n||{})){if((f=Math.max(0|n.color,0))&lt;0)throw new Error(&quot;gl-fbo: Must specify a nonnegative number of colors&quot;);if(f&gt;1){if(!c)throw new Error(&quot;gl-fbo: Multiple draw buffer extension not supported&quot;);if(f&gt;t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(&quot;gl-fbo: Context does not support &quot;+f+&quot; draw buffers&quot;)}}var h=t.UNSIGNED_BYTE,p=t.getExtension(&quot;OES_texture_float&quot;);if(n.float&amp;&amp;f&gt;0){if(!p)throw new Error(&quot;gl-fbo: Context does not support floating point textures&quot;);h=t.FLOAT}else n.preferFloat&amp;&amp;f&gt;0&amp;&amp;p&amp;&amp;(h=t.FLOAT);var g=!0;&quot;depth&quot;in n&amp;&amp;(g=!!n.depth);var m=!1;&quot;stencil&quot;in n&amp;&amp;(m=!!n.stencil);return new d(t,e,r,h,f,g,m,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(&quot;gl-fbo: Framebuffer unsupported&quot;);case a:throw new Error(&quot;gl-fbo: Framebuffer incomplete attachment&quot;);case o:throw new Error(&quot;gl-fbo: Framebuffer incomplete dimensions&quot;);case s:throw new Error(&quot;gl-fbo: Framebuffer incomplete missing attachment&quot;);default:throw new Error(&quot;gl-fbo: Framebuffer failed for unspecified reason&quot;)}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d&lt;i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var g=this,m=[0|e,0|r];Object.defineProperties(m,{0:{get:function(){return g._shape[0]},set:function(t){return g.width=t}},1:{get:function(){return g._shape[1]},set:function(t){return g.height=t}}}),this._shapeVector=m,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,g=t._useDepth,m=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var v=0;v&lt;o;++v)t.color[v]=h(r,i,a,m,r.RGBA,r.COLOR_ATTACHMENT0+v);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&amp;&amp;s.drawBuffersWEBGL(l[0])):o&gt;1&amp;&amp;s.drawBuffersWEBGL(l[o]);var y=r.getExtension(&quot;WEBGL_depth_texture&quot;);y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&amp;&amp;(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&amp;&amp;d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&amp;&amp;(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&amp;&amp;(t.depth.dispose(),t.depth=null),t._depth_rb&amp;&amp;(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(v=0;v&lt;t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&amp;&amp;(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var g=d.prototype;function m(t,e,r){if(t._destroyed)throw new Error(&quot;gl-fbo: Can't resize destroyed FBO&quot;);if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-fbo: Can't resize FBO, invalid dimensions&quot;);t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o&lt;t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&amp;&amp;(t.depth.shape=t._shape),t._depth_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&amp;&amp;t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&amp;&amp;n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&amp;&amp;(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(g,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(&quot;gl-fbo: Shape vector must be length 2&quot;);var e=0|t[0],r=0|t[1];return m(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return m(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,m(this,this._shape[0],t),t},enumerable:!1}}),g.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},g.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&amp;&amp;(this.depth.dispose(),this.depth=null),this._depth_rb&amp;&amp;(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e&lt;this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&amp;&amp;(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{&quot;gl-texture2d&quot;:356}],277:[function(t,e,r){var n=t(&quot;sprintf-js&quot;).sprintf,i=t(&quot;gl-constants/lookup&quot;),a=t(&quot;glsl-shader-name&quot;),o=t(&quot;add-line-numbers&quot;);e.exports=function(t,e,r){&quot;use strict&quot;;var s=a(e)||&quot;of unknown name (see npm glsl-shader-name)&quot;,l=&quot;unknown type&quot;;void 0!==r&amp;&amp;(l=r===i.FRAGMENT_SHADER?&quot;fragment&quot;:&quot;vertex&quot;);for(var c=n(&quot;Error compiling %s shader %s:\n&quot;,l,s),u=n(&quot;%s%s&quot;,c,t),f=t.split(&quot;\n&quot;),h={},p=0;p&lt;f.length;p++){var d=f[p];if(&quot;&quot;!==d&amp;&amp;&quot;\0&quot;!==d){var g=parseInt(d.split(&quot;:&quot;)[2]);if(isNaN(g))throw new Error(n(&quot;Could not parse error: %s&quot;,d));h[g]=d}}var m=o(e).split(&quot;\n&quot;);for(p=0;p&lt;m.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var v=m[p];if(c+=v+&quot;\n&quot;,h[p+1]){var y=h[p+1];y=y.substr(y.split(&quot;:&quot;,3).join(&quot;:&quot;).length+1).trim(),c+=n(&quot;^^^ %s\n\n&quot;,y)}}return{long:c.trim(),short:u.trim()}}},{&quot;add-line-numbers&quot;:72,&quot;gl-constants/lookup&quot;:272,&quot;glsl-shader-name&quot;:434,&quot;sprintf-js&quot;:568}],278:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;iota-array&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;gl-shader&quot;),s=t(&quot;gl-buffer&quot;),l=t(&quot;./lib/shaders&quot;);function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n&lt;=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o&lt;=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p&lt;4;++p)e[p]=r&gt;&gt;8*p&amp;255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,f,p,d=t.colorLevels||[0],g=t.colorValues||[0,0,0,1],m=d.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],p=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,p=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(p-u),b=e[0],_=e[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length&gt;&gt;&gt;1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),A=a.mallocUint8(2*w),M=a.mallocUint32(w),S=0,E=l?b-1:b,L=l?_-1:_,C=0;C&lt;L;++C){var P,I;l?(P=x*(o[C]-u),I=x*(o[C+1]-u)):(P=C&lt;_-1?x*(o[C]-(o[C+1]-o[C])/2-u):x*(o[C]-(o[C]-o[C-1])/2-u),I=C&lt;_-1?x*(o[C]+(o[C+1]-o[C])/2-u):x*(o[C]+(o[C]-o[C-1])/2-u));for(var O=0;O&lt;E;++O){var z,D;l?(z=y*(r[O]-c),D=y*(r[O+1]-c)):(z=O&lt;b-1?y*(r[O]-(r[O+1]-r[O])/2-c):y*(r[O]-(r[O]-r[O-1])/2-c),D=O&lt;b-1?y*(r[O]+(r[O+1]-r[O])/2-c):y*(r[O]+(r[O]-r[O-1])/2-c));for(var R=0;R&lt;h.length;R+=2){var F,B,N,j,U=h[R],V=h[R+1],q=s[l?(C+V)*b+(O+U):C*b+O],H=n.le(d,q);if(H&lt;0)F=g[0],B=g[1],N=g[2],j=g[3];else if(H===m-1)F=g[4*m-4],B=g[4*m-3],N=g[4*m-2],j=g[4*m-1];else{var G=(q-d[H])/(d[H+1]-d[H]),Y=1-G,W=4*H,X=4*(H+1);F=Y*g[W]+G*g[X],B=Y*g[W+1]+G*g[X+1],N=Y*g[W+2]+G*g[X+2],j=Y*g[W+3]+G*g[X+3]}T[4*S]=255*F,T[4*S+1]=255*B,T[4*S+2]=255*N,T[4*S+3]=255*j,k[2*S]=.5*z+.5*D,k[2*S+1]=.5*P+.5*I,A[2*S]=U,A[2*S+1]=V,M[S]=C*b+O,S+=1}}}this.positionBuffer.update(k),this.weightBuffer.update(A),this.colorBuffer.update(T),this.idBuffer.update(M),a.free(k),a.free(T),a.free(A),a.free(M)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{&quot;./lib/shaders&quot;:279,&quot;binary-search-bounds&quot;:103,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339,&quot;iota-array&quot;:451,&quot;typedarray-pool&quot;:617}],279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);e.exports={fragment:n([&quot;precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n  gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n&quot;]),vertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  fragColor = color;\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;]),pickFragment:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n  vec2 d = step(.5, vWeight);\n  vec4 id = fragId + pickOffset;\n  id.x += d.x + d.y*shape.x;\n\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  gl_FragColor = id/255.;\n}\n&quot;]),pickVertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n  vWeight = weight;\n\n  fragId = pickId;\n\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;])}},{glslify:442}],280:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  vec4 startPoint = project(position);\n  vec4 endPoint   = project(nextPosition);\n\n  vec2 A = startPoint.xy / startPoint.w;\n  vec2 B =   endPoint.xy /   endPoint.w;\n\n  float clipAngle = atan(\n    (B.y - A.y) * screenShape.y,\n    (B.x - A.x) * screenShape.x\n  );\n\n  vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n    sin(clipAngle),\n    -cos(clipAngle)\n  ) / screenShape;\n\n  gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n  worldPosition = position;\n  pixelArcLength = arcLength;\n  fragColor = color;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3      clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float     dashScale;\nuniform float     opacity;\n\nvarying vec3    worldPosition;\nvarying float   pixelArcLength;\nvarying vec4    fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n  if(dashWeight &lt; 0.5) {\n    discard;\n  }\n  gl_FragColor = fragColor * opacity;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX  1.70141184e38\n#define FLOAT_MIN  1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n  float av = abs(v);\n\n  //Handle special cases\n  if(av &lt; FLOAT_MIN) {\n    return vec4(0.0, 0.0, 0.0, 0.0);\n  } else if(v &gt; FLOAT_MAX) {\n    return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n  } else if(v &lt; -FLOAT_MAX) {\n    return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n  }\n\n  vec4 c = vec4(0,0,0,0);\n\n  //Compute exponent and mantissa\n  float e = floor(log2(av));\n  float m = av * pow(2.0, -e) - 1.0;\n\n  //Unpack mantissa\n  c[1] = floor(128.0 * m);\n  m -= c[1] / 128.0;\n  c[2] = floor(32768.0 * m);\n  m -= c[2] / 32768.0;\n  c[3] = floor(8388608.0 * m);\n\n  //Unpack exponent\n  float ebias = e + 127.0;\n  c[0] = floor(ebias / 2.0);\n  ebias -= c[0] * 2.0;\n  c[1] += floor(ebias) * 128.0;\n\n  //Unpack sign bit\n  c[0] += 128.0 * step(0.0, -v);\n\n  //Scale back to range\n  return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n  gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}&quot;]),l=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;nextPosition&quot;,type:&quot;vec3&quot;},{name:&quot;arcLength&quot;,type:&quot;float&quot;},{name:&quot;lineWidth&quot;,type:&quot;float&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{&quot;gl-shader&quot;:339,glslify:282}],281:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl||t.scene&amp;&amp;t.scene.gl,r=f(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=h(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),p=0;p&lt;1024;++p)u.data[p]=255;var d=a(e,u);d.wrap=e.REPEAT;var g=new v(e,r,o,s,l,d);return g.update(t),g};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;gl-texture2d&quot;),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=t(&quot;binary-search-bounds&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;./lib/shaders&quot;),f=u.createShader,h=u.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n&lt;3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function g(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r&lt;3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function m(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:g(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:g(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;&quot;dashScale&quot;in t&amp;&amp;(this.dashScale=t.dashScale),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var p=t.color||t.colors||[0,0,0,1],g=t.lineWidth||1,m=!1;t:for(e=1;e&lt;h.length;++e){var v,y,x,b=h[e-1],_=h[e];for(a.push(s),o.push(b.slice()),r=0;r&lt;3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&amp;&amp;i.length&gt;0){for(var w=0;w&lt;24;++w)i.push(i[i.length-12]);u+=2,m=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(p[0])?(v=p.length&gt;e-1?p[e-1]:p.length&gt;0?p[p.length-1]:[0,0,0,1],y=p.length&gt;e?p[e]:p.length&gt;0?p[p.length-1]:[0,0,0,1]):v=y=p,3===v.length&amp;&amp;(v=[v[0],v[1],v[2],1]),3===y.length&amp;&amp;(y=[y[0],y[1],y[2],1]),!this.hasAlpha&amp;&amp;v[3]&lt;1&amp;&amp;(this.hasAlpha=!0),x=Array.isArray(g)?g.length&gt;e-1?g[e-1]:g.length&gt;0?g[g.length-1]:[0,0,0,1]:g;var T=s;if(s+=d(b,_),m){for(r=0;r&lt;2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,m=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,&quot;dashes&quot;in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e&lt;k.length;++e)k[e]=k[e-1]+k[e];var A=c(new Array(1024),[256,1,4]);for(e=0;e&lt;256;++e){for(r=0;r&lt;4;++r)A.set(e,0,r,0);1&amp;l.le(k,k[k.length-1]*e/255)?A.set(e,0,0,0):A.set(e,0,0,255)}this.texture.setPixels(A)}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=function(t,e,r,n){return o[0]=n,o[1]=r,o[2]=e,o[3]=t,s[0]}(t.value[0],t.value[1],t.value[2],0),r=l.le(this.arcLength,e);if(r&lt;0)return null;if(r===this.arcLength.length-1)return new m(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),c=1-a,u=[0,0,0],f=0;f&lt;3;++f)u[f]=c*n[f]+a*i[f];var h=Math.min(a&lt;.5?r:r+1,this.points.length-1);return new m(e,u,h,this.points[h])}},{&quot;./lib/shaders&quot;:280,&quot;binary-search-bounds&quot;:103,&quot;gl-buffer&quot;:267,&quot;gl-texture2d&quot;:356,&quot;gl-vao&quot;:361,ndarray:483}],282:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],283:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(h*v-p*m)-f*(l*v-c*m)+g*(l*p-c*h),t[1]=-(n*(h*v-p*m)-f*(i*v-a*m)+g*(i*p-a*h)),t[2]=n*(l*v-c*m)-s*(i*v-a*m)+g*(i*c-a*l),t[3]=-(n*(l*p-c*h)-s*(i*p-a*h)+f*(i*c-a*l)),t[4]=-(o*(h*v-p*m)-u*(l*v-c*m)+d*(l*p-c*h)),t[5]=r*(h*v-p*m)-u*(i*v-a*m)+d*(i*p-a*h),t[6]=-(r*(l*v-c*m)-o*(i*v-a*m)+d*(i*c-a*l)),t[7]=r*(l*p-c*h)-o*(i*p-a*h)+u*(i*c-a*l),t[8]=o*(f*v-p*g)-u*(s*v-c*g)+d*(s*p-c*f),t[9]=-(r*(f*v-p*g)-u*(n*v-a*g)+d*(n*p-a*f)),t[10]=r*(s*v-c*g)-o*(n*v-a*g)+d*(n*c-a*s),t[11]=-(r*(s*p-c*f)-o*(n*p-a*f)+u*(n*c-a*s)),t[12]=-(o*(f*m-h*g)-u*(s*m-l*g)+d*(s*h-l*f)),t[13]=r*(f*m-h*g)-u*(n*m-i*g)+d*(n*h-i*f),t[14]=-(r*(s*m-l*g)-o*(n*m-i*g)+d*(n*l-i*s)),t[15]=r*(s*h-l*f)-o*(n*h-i*f)+u*(n*l-i*s),t}},{}],284:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],285:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],286:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],287:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],m=t[15];return(e*o-r*a)*(f*m-h*g)-(e*s-n*a)*(u*m-h*d)+(e*l-i*a)*(u*g-f*d)+(r*s-n*o)*(c*m-h*p)-(r*l-i*o)*(c*g-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],288:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,g=a*o,m=a*s,v=a*l;return t[0]=1-f-d,t[1]=u+v,t[2]=h-m,t[3]=0,t[4]=u-v,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=h+m,t[9]=p-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],289:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);if(Math.abs(c)&lt;1e-6)return null;return o*=c=1/c,s*=c,l*=c,n=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],290:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,g=a*c,m=o*s,v=o*l,y=o*c;return t[0]=1-(p+g),t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=d+m,t[7]=0,t[8]=h+v,t[9]=d-m,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],291:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],292:[function(t,e,r){e.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},{}],293:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],294:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],295:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],296:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}},{}],297:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],298:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),copy:t(&quot;./copy&quot;),identity:t(&quot;./identity&quot;),transpose:t(&quot;./transpose&quot;),invert:t(&quot;./invert&quot;),adjoint:t(&quot;./adjoint&quot;),determinant:t(&quot;./determinant&quot;),multiply:t(&quot;./multiply&quot;),translate:t(&quot;./translate&quot;),scale:t(&quot;./scale&quot;),rotate:t(&quot;./rotate&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),fromRotation:t(&quot;./fromRotation&quot;),fromRotationTranslation:t(&quot;./fromRotationTranslation&quot;),fromScaling:t(&quot;./fromScaling&quot;),fromTranslation:t(&quot;./fromTranslation&quot;),fromXRotation:t(&quot;./fromXRotation&quot;),fromYRotation:t(&quot;./fromYRotation&quot;),fromZRotation:t(&quot;./fromZRotation&quot;),fromQuat:t(&quot;./fromQuat&quot;),frustum:t(&quot;./frustum&quot;),perspective:t(&quot;./perspective&quot;),perspectiveFromFieldOfView:t(&quot;./perspectiveFromFieldOfView&quot;),ortho:t(&quot;./ortho&quot;),lookAt:t(&quot;./lookAt&quot;),str:t(&quot;./str&quot;)}},{&quot;./adjoint&quot;:283,&quot;./clone&quot;:284,&quot;./copy&quot;:285,&quot;./create&quot;:286,&quot;./determinant&quot;:287,&quot;./fromQuat&quot;:288,&quot;./fromRotation&quot;:289,&quot;./fromRotationTranslation&quot;:290,&quot;./fromScaling&quot;:291,&quot;./fromTranslation&quot;:292,&quot;./fromXRotation&quot;:293,&quot;./fromYRotation&quot;:294,&quot;./fromZRotation&quot;:295,&quot;./frustum&quot;:296,&quot;./identity&quot;:297,&quot;./invert&quot;:299,&quot;./lookAt&quot;:300,&quot;./multiply&quot;:301,&quot;./ortho&quot;:302,&quot;./perspective&quot;:303,&quot;./perspectiveFromFieldOfView&quot;:304,&quot;./rotate&quot;:305,&quot;./rotateX&quot;:306,&quot;./rotateY&quot;:307,&quot;./rotateZ&quot;:308,&quot;./scale&quot;:309,&quot;./str&quot;:310,&quot;./translate&quot;:311,&quot;./transpose&quot;:312}],299:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,A=u*m-h*d,M=u*v-p*d,S=f*m-h*g,E=f*v-p*g,L=h*v-p*m,C=y*L-x*E+b*S+_*M-w*A+T*k;if(!C)return null;return C=1/C,t[0]=(s*L-l*E+c*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(g*T-m*w+v*_)*C,t[3]=(h*w-f*T-p*_)*C,t[4]=(l*M-o*L-c*A)*C,t[5]=(r*L-i*M+a*A)*C,t[6]=(m*b-d*T-v*x)*C,t[7]=(u*T-h*b+p*x)*C,t[8]=(o*E-s*M+c*k)*C,t[9]=(n*M-r*E-a*k)*C,t[10]=(d*w-g*b+v*y)*C,t[11]=(f*b-u*w-p*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(g*x-d*_-m*y)*C,t[15]=(u*_-f*x+h*y)*C,t}},{}],300:[function(t,e,r){var n=t(&quot;./identity&quot;);e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g=e[0],m=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],T=r[2];if(Math.abs(g-_)&lt;1e-6&amp;&amp;Math.abs(m-w)&lt;1e-6&amp;&amp;Math.abs(v-T)&lt;1e-6)return n(t);f=g-_,h=m-w,p=v-T,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*g+o*m+s*v),t[13]=-(l*g+c*m+u*v),t[14]=-(f*g+h*m+p*v),t[15]=1,t}},{&quot;./identity&quot;:297}],301:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}},{}],302:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}},{}],303:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],304:[function(t,e,r){e.exports=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}},{}],305:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,A,M,S,E=n[0],L=n[1],C=n[2],P=Math.sqrt(E*E+L*L+C*C);if(Math.abs(P)&lt;1e-6)return null;E*=P=1/P,L*=P,C*=P,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],g=e[8],m=e[9],v=e[10],y=e[11],x=E*E*o+a,b=L*E*o+C*i,_=C*E*o-L*i,w=E*L*o-C*i,T=L*L*o+a,k=C*L*o+E*i,A=E*C*o+L*i,M=L*C*o-E*i,S=C*C*o+a,t[0]=s*x+f*b+g*_,t[1]=l*x+h*b+m*_,t[2]=c*x+p*b+v*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*T+g*k,t[5]=l*w+h*T+m*k,t[6]=c*w+p*T+v*k,t[7]=u*w+d*T+y*k,t[8]=s*A+f*M+g*S,t[9]=l*A+h*M+m*S,t[10]=c*A+p*M+v*S,t[11]=u*A+d*M+y*S,e!==t&amp;&amp;(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],306:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],307:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],308:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],309:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],310:[function(t,e,r){e.exports=function(t){return&quot;mat4(&quot;+t[0]+&quot;, &quot;+t[1]+&quot;, &quot;+t[2]+&quot;, &quot;+t[3]+&quot;, &quot;+t[4]+&quot;, &quot;+t[5]+&quot;, &quot;+t[6]+&quot;, &quot;+t[7]+&quot;, &quot;+t[8]+&quot;, &quot;+t[9]+&quot;, &quot;+t[10]+&quot;, &quot;+t[11]+&quot;, &quot;+t[12]+&quot;, &quot;+t[13]+&quot;, &quot;+t[14]+&quot;, &quot;+t[15]+&quot;)&quot;}},{}],311:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]);return t}},{}],312:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],313:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;barycentric&quot;),i=t(&quot;polytope-closest-point/lib/closest_point_2d.js&quot;);function a(t,e){for(var r=[0,0,0,0],n=0;n&lt;4;++n)for(var i=0;i&lt;4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s&lt;3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}function s(t,e){for(var r=[0,0,0],n=0;n&lt;t.length;++n)for(var i=t[n],a=e[n],o=0;o&lt;3;++o)r[o]+=a*i[o];return r}e.exports=function(t,e,r,a,l,c){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),f=0;f&lt;t.length;++f)u[f]=o(t[f],r,a,l,c);var h=0,p=1/0;for(f=0;f&lt;u.length;++f){for(var d=0,g=0;g&lt;2;++g)d+=Math.pow(u[f][g]-e[g],2);d&lt;p&amp;&amp;(p=d,h=f)}var m=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o&lt;2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a&lt;1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(u,e),v=0;for(f=0;f&lt;3;++f){if(m[f]&lt;-.001||m[f]&gt;1.0001)return null;v+=m[f]}if(Math.abs(v-1)&gt;.001)return null;return[h,s(t,m),m]}},{barycentric:85,&quot;polytope-closest-point/lib/closest_point_2d.js&quot;:512}],314:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n           , view\n           , projection\n           , inverseModel;\nuniform vec3 eyePosition\n           , lightPosition;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  gl_Position      = project(position);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * vec4(position , 1.0);\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal  = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  f_color          = color;\n  f_data           = position;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n            , fresnel\n            , kambient\n            , kdiffuse\n            , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (f_color.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], f_data)\n  ) discard;\n\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * f_color.a;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_color = color;\n  f_data  = position;\n  f_uv    = uv;\n}&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n  } else {\n    gl_Position = projection * view * model * vec4(position, 1.0);\n  }\n  gl_PointSize = pointSize;\n  f_color = color;\n  f_uv = uv;\n}&quot;]),c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n  if(dot(pointR, pointR) &gt; 0.25) {\n    discard;\n  }\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_id        = id;\n  f_position  = position;\n}&quot;]),f=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]),h=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3  position;\nattribute float pointSize;\nattribute vec4  id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n  } else {\n    gl_Position  = projection * view * model * vec4(position, 1.0);\n    gl_PointSize = pointSize;\n  }\n  f_id         = id;\n  f_position   = position;\n}&quot;]),p=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n}&quot;]),d=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n  gl_FragColor = vec4(contourColor, 1.0);\n}\n&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;}]}},{glslify:442}],315:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;normals&quot;),l=t(&quot;gl-mat4/multiply&quot;),c=t(&quot;gl-mat4/invert&quot;),u=t(&quot;ndarray&quot;),f=t(&quot;colormap&quot;),h=t(&quot;simplicial-complex-contour&quot;),p=t(&quot;typedarray-pool&quot;),d=t(&quot;./lib/shaders&quot;),g=t(&quot;./lib/closest-point&quot;),m=d.meshShader,v=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,T,k,A,M,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=m,this.edgeUVs=v,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=T,this.pointSizes=k,this.pointIds=b,this.pointVAO=A,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=M,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function A(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function M(t){var e=n(t,m.vertex,m.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function S(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function E(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function L(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function C(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function P(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&amp;&amp;this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l&lt;a;++l)for(var c=r[l],u=0;u&lt;2;++u){var f=c[0];2===c.length&amp;&amp;(f=c[u]);for(var d=n[f][0],g=n[f][1],m=i[f],v=1-m,y=this.positions[d],x=this.positions[g],b=0;b&lt;3;++b)o[s++]=m*y[b]+v*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},k.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;contourEnable&quot;in t&amp;&amp;(this.contourEnable=t.contourEnable),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=t.contourColor),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale,this.hasAlpha=!0),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t,e){for(var r=f({colormap:t,nshades:256,format:&quot;rgba&quot;}),n=new Uint8Array(1024),i=0;i&lt;256;++i){for(var a=r[i],o=0;o&lt;3;++o)n[4*i+o]=a[o];n[4*i+3]=e?255*A(i/255,e):255*a[3]}return u(n,[256,256,4],[4,0,1])}(t.colormap,this.opacityscale)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&amp;&amp;r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],g=[],m=[],v=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,T=t.cellNormals,k=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,M=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&amp;&amp;!T&amp;&amp;(T=s.faceNormals(r,n,M)),T||w||(w=s.vertexNormals(r,n,k));var S=t.vertexColors,E=t.cellColors,L=t.meshColor||[1,1,1,1],C=t.vertexUVs,P=t.vertexIntensity,I=t.cellUVs,O=t.cellIntensity,z=1/0,D=-1/0;if(!C&amp;&amp;!I)if(P)if(t.vertexIntensityBounds)z=+t.vertexIntensityBounds[0],D=+t.vertexIntensityBounds[1];else for(var R=0;R&lt;P.length;++R){var F=P[R];z=Math.min(z,F),D=Math.max(D,F)}else if(O)if(t.cellIntensityBounds)z=+t.cellIntensityBounds[0],D=+t.cellIntensityBounds[1];else for(R=0;R&lt;O.length;++R){F=O[R];z=Math.min(z,F),D=Math.max(D,F)}else for(R=0;R&lt;n.length;++R){F=n[R][2];z=Math.min(z,F),D=Math.max(D,F)}this.intensity=P||(O||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n)),this.pickVertex=!(O||E);var B=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(R=0;R&lt;n.length;++R)for(var j=n[R],U=0;U&lt;3;++U)!isNaN(j[U])&amp;&amp;isFinite(j[U])&amp;&amp;(this.bounds[0][U]=Math.min(this.bounds[0][U],j[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],j[U]));var V=0,q=0,H=0;t:for(R=0;R&lt;r.length;++R){var G=r[R];switch(G.length){case 1:for(j=n[W=G[0]],U=0;U&lt;3;++U)if(isNaN(j[U])||!isFinite(j[U]))continue t;v.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:L,this.opacityscale&amp;&amp;P?a.push(X[0],X[1],X[2],this.opacity*A((P[W]-z)/(D-z),this.opacityscale)):3===X.length?y.push(X[0],X[1],X[2],this.opacity):(y.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=C?C[W]:P?[(P[W]-z)/(D-z),0]:I?I[R]:O?[(O[R]-z)/(D-z),0]:[(j[2]-z)/(D-z),0],x.push(Z[0],Z[1]),B?b.push(B[W]):b.push(N),_.push(R),H+=1;break;case 2:for(U=0;U&lt;2;++U){j=n[W=G[U]];for(var Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t}for(U=0;U&lt;2;++U){j=n[W=G[U]];p.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:L,this.opacityscale&amp;&amp;P?a.push(X[0],X[1],X[2],this.opacity*A((P[W]-z)/(D-z),this.opacityscale)):3===X.length?d.push(X[0],X[1],X[2],this.opacity):(d.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=C?C[W]:P?[(P[W]-z)/(D-z),0]:I?I[R]:O?[(O[R]-z)/(D-z),0]:[(j[2]-z)/(D-z),0],g.push(Z[0],Z[1]),m.push(R)}q+=1;break;case 3:for(U=0;U&lt;3;++U)for(j=n[W=G[U]],Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t;for(U=0;U&lt;3;++U){var W,X,Z,J;j=n[W=G[2-U]];i.push(j[0],j[1],j[2]),(X=S?S[W]:E?E[R]:L)?this.opacityscale&amp;&amp;P?a.push(X[0],X[1],X[2],this.opacity*A((P[W]-z)/(D-z),this.opacityscale)):3===X.length?a.push(X[0],X[1],X[2],this.opacity):(a.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)):a.push(.5,.5,.5,1),Z=C?C[W]:P?[(P[W]-z)/(D-z),0]:I?I[R]:O?[(O[R]-z)/(D-z),0]:[(j[2]-z)/(D-z),0],c.push(Z[0],Z[1]),J=w?w[W]:T[R],l.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=H,this.edgeCount=q,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(g),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},k.drawTransparent=k.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,inverseModel:w.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};s.inverseModel=c(s.inverseModel,s.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o&lt;3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount&gt;0&amp;&amp;((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount&gt;0&amp;&amp;this.lineWidth&gt;0&amp;&amp;((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount&gt;0&amp;&amp;((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&amp;&amp;this.contourCount&gt;0&amp;&amp;this.contourLineWidth&gt;0&amp;&amp;((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount&gt;0&amp;&amp;(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount&gt;0)&amp;&amp;((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a&lt;r.length;++a)i[a]=n[r[a]];var o=t.coord[0],s=t.coord[1];if(!this.pickVertex){var l=this.positions[r[0]],c=this.positions[r[1]],u=this.positions[r[2]],f=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[o,s],index:e,cell:r,cellId:e,intensity:this.intensity[e],dataCoordinate:f}}var h=g(i,[o*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!h)return null;var p=h[2],d=0;for(a=0;a&lt;r.length;++a)d+=p[a]*this.intensity[r[a]];return{position:h[1],index:r[h[0]],cell:r,cellId:e,intensity:d,dataCoordinate:this.positions[r[h[0]]]}},k.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){1===arguments.length&amp;&amp;(t=(e=t).gl);var r=t.getExtension(&quot;OES_standard_derivatives&quot;)||t.getExtension(&quot;MOZ_OES_standard_derivatives&quot;)||t.getExtension(&quot;WEBKIT_OES_standard_derivatives&quot;);if(!r)throw new Error(&quot;derivatives not supported&quot;);var n=M(t),s=S(t),l=E(t),c=L(t),f=C(t),h=P(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),g=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:m,type:t.FLOAT,size:2},{buffer:v,type:t.FLOAT,size:3}]),b=i(t),_=i(t),w=i(t),k=i(t),A=a(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),I=i(t),O=i(t),z=i(t),D=i(t),R=i(t),F=a(t,[{buffer:I,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:O,type:t.FLOAT,size:4},{buffer:z,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),B=i(t),N=a(t,[{buffer:B,type:t.FLOAT,size:3}]),j=new T(t,p,n,s,l,c,f,h,d,y,g,m,v,x,b,k,_,w,A,I,R,O,z,D,F,B,N);return j.update(e),j}},{&quot;./lib/closest-point&quot;:313,&quot;./lib/shaders&quot;:314,colormap:137,&quot;gl-buffer&quot;:267,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/multiply&quot;:301,&quot;gl-shader&quot;:339,&quot;gl-texture2d&quot;:356,&quot;gl-vao&quot;:361,ndarray:483,normals:486,&quot;simplicial-complex-contour&quot;:557,&quot;typedarray-pool&quot;:617}],316:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:319,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339}],317:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;binary-search-bounds&quot;),o=t(&quot;./shaders&quot;);function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,g=0;g&lt;2;++g){var m=a[g],v=a[g+2]-m,y=.5*(o[g+2]+o[g]),x=o[g+2]-o[g];u[g]=2*v/x,c[g]=2*(m-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(g=0;g&lt;2;++g){f[0]=f[1]=0,f[g]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[g]/(s[g+2]-s[g])*d,r.uniforms.color=h[g];var _=6*n[g].length;p[g]&amp;&amp;_&amp;&amp;i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,g=s.viewBox,m=s.pixelRatio,v=s.screenBox,y=v[2]-v[0],x=v[3]-v[1],b=g[2]-g[0],_=g[3]-g[1],w=0;w&lt;2;++w){var T=p[w],k=p[w+2]-T,A=.5*(d[w+2]+d[w]),M=d[w+2]-d[w];e[w]=2*k/M,t[w]=2*(T-A)/M}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,L=s.tickMarkWidth,C=s.tickMarkColor,P=6*f[0].length,I=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),O=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),z=0+6*I,D=6*Math.max(0,O-I),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),F=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),B=P+6*R,N=6*Math.max(0,F-R);i[0]=2*(g[0]-E[1])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[1]*m/y,o[1]=L[1]*m/x,N&amp;&amp;(S.color=C[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[1]-E[0])/x-1,o[0]=L[0]*m/y,o[1]=E[0]*m/x,D&amp;&amp;(S.color=C[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,z,D)),i[0]=2*(g[2]+E[3])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[3]*m/y,o[1]=L[3]*m/x,N&amp;&amp;(S.color=C[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[3]+E[2])/x-1,o[0]=L[2]*m/y,o[1]=E[2]*m/x,D&amp;&amp;(S.color=C[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,z,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o&lt;2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f&lt;l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var g=0;g&lt;6;++g)n[i++]=d,n[i++]=h[g],n[i++]=p[g]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{&quot;./shaders&quot;:319,&quot;binary-search-bounds&quot;:103,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339}],318:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:319,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339}],319:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n&quot;]);e.exports={lineVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n  return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  vec2 delta = normalize(perp(start - end));\n  vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n  gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n&quot;]),lineFrag:i,textVert:n([&quot;#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n  float dataOffset  = textCoordinate.z;\n  vec2 glyphOffset  = textCoordinate.xy;\n  mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n  vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n    glyphMatrix * glyphOffset * textScale + screenOffset;\n  gl_Position = vec4(screenCoordinate, 0, 1);\n}\n&quot;]),textFrag:i,gridVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n  gl_Position = vec4(pos, 0, 1);\n}\n&quot;]),gridFrag:i,boxVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n&quot;]),tickVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n&quot;])}},{glslify:321}],320:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;text-cache&quot;),o=t(&quot;binary-search-bounds&quot;),s=t(&quot;./shaders&quot;);function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,g=l.prototype;g.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,g=e.tickPad,m=e.tickColor,v=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],T=this.labelCount[t],k=o.lt(n,l[t]),A=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var M=2/h[2+(1^t)]-h[1^t];u[1^t]=M*s[1^t]-1,d[t]&amp;&amp;(u[1^t]-=M*p*g[t],k&lt;A&amp;&amp;i[A]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t],r.uniforms.angle=v[t],a.drawArrays(a.TRIANGLES,i[k],i[A]-i[k]))),y[t]&amp;&amp;T&amp;&amp;(u[1^t]-=M*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,T)),u[1^t]=M*s[2+(1^t)]-1,d[t+2]&amp;&amp;(u[1^t]+=M*p*g[t+2],k&lt;A&amp;&amp;i[A]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t+2],r.uniforms.angle=v[t+2],a.drawArrays(a.TRIANGLES,i[k],i[A]-i[k]))),y[t+2]&amp;&amp;T&amp;&amp;(u[1^t]+=M*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,T))}),g.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u&lt;2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),g.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o&lt;2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],g=a[o+2]-f,m=i[o],v=i[o+2]-m;p[o]=2*l/u*g/v,h[o]=2*(s-c)/u*g/v}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),g.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o&lt;2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e&lt;h.length;++e){var p=h[e],d=p.x,g=p.text,m=p.font||&quot;sans-serif&quot;;i=p.fontSize||12;for(var v=1/(c[o+2]-c[o]),y=c[o],x=g.split(&quot;\n&quot;),b=0;b&lt;x.length;b++)for(n=a(m,x[b]).data,r=0;r&lt;n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*v);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o&lt;2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:&quot;center&quot;}).data,i=t.labelSize[o],e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},g.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:319,&quot;binary-search-bounds&quot;:103,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339,&quot;text-cache&quot;:596}],321:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],322:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(&quot;gl-select-static&quot;),i=t(&quot;./lib/grid&quot;),a=t(&quot;./lib/text&quot;),o=t(&quot;./lib/line&quot;),s=t(&quot;./lib/box&quot;);function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r&lt;e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&amp;&amp;(this._pickTimeout&amp;&amp;clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d&lt;2;++d)if(f[d]&amp;&amp;n[d]&lt;=0&amp;&amp;n[d+2]&gt;=0){var g=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(g,e[1],g,e[3],p[d],h[d]):o.drawLine(e[0],g,e[2],g,p[d],h[d])}}for(d=0;d&lt;l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var m=this.borderLineEnable,v=this.borderLineWidth,y=this.borderLineColor;for(m[1]&amp;&amp;o.drawLine(r[0],r[1]-.5*v[1]*i,r[0],r[3]+.5*v[3]*i,v[1],y[1]),m[0]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[1],r[2]+.5*v[2]*i,r[1],v[0],y[0]),m[3]&amp;&amp;o.drawLine(r[2],r[1]-.5*v[1]*i,r[2],r[3]+.5*v[3]*i,v[3],y[3]),m[2]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[3],r[2]+.5*v[2]*i,r[3],v[2],y[2]),s.bind(),d=0;d&lt;2;++d)s.drawTicks(d);this.titleEnable&amp;&amp;s.drawTitle();var x=this.overlays;for(d=0;d&lt;x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl,this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n&lt;r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]&lt;&lt;8)+(s.value[1]&lt;&lt;16)+(s.value[2]&lt;&lt;24),c=this.objects,u=0;u&lt;c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&amp;&amp;(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&amp;&amp;(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(&quot;titleEnable&quot;in t)||!!t.titleEnable,this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s&lt;2;++s){var l=a[s].slice(0);0!==l.length&amp;&amp;(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[&quot;x&quot;,&quot;y&quot;],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[&quot;sans-serif&quot;,&quot;sans-serif&quot;],title:t.title||&quot;&quot;,titleSize:t.titleSize||18,titleFont:t.titleFont||&quot;sans-serif&quot;}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t&gt;=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t&gt;=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)&lt;0&amp;&amp;(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)&lt;0&amp;&amp;(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{&quot;./lib/box&quot;:316,&quot;./lib/grid&quot;:317,&quot;./lib/line&quot;:318,&quot;./lib/text&quot;:320,&quot;gl-select-static&quot;:338}],323:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];&quot;distanceLimits&quot;in e&amp;&amp;(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);&quot;zoomMin&quot;in e&amp;&amp;(r[0]=e.zoomMin);&quot;zoomMax&quot;in e&amp;&amp;(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||&quot;orbit&quot;,distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:&quot;rotate&quot;,enableWheel:!0,view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,_ortho:e._ortho||e.projection&amp;&amp;&quot;orthographic&quot;===e.projection.type||!1,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s&lt;16;++s)a=a&amp;&amp;u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&amp;&amp;t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};return Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),&quot;turntable&quot;===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault(),!1})),d._lastX=-1,d._lastY=-1,d._lastMods={shift:!1,control:!1,alt:!1,meta:!1},d.enableMouseListeners=function(){function e(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=&quot;rotate&quot;===o,l=&quot;pan&quot;===o,u=&quot;zoom&quot;===o,h=!!a.control,p=!!a.alt,g=!!a.shift,m=!!(1&amp;e),v=!!(2&amp;e),y=!!(4&amp;e),x=1/t.clientHeight,b=x*(r-d._lastX),_=x*(i-d._lastY),w=d.flipX?1:-1,T=d.flipY?1:-1,k=Math.PI*d.rotateSpeed,A=n();if(-1!==d._lastX&amp;&amp;-1!==d._lastY&amp;&amp;((s&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||m&amp;&amp;!h&amp;&amp;!p&amp;&amp;g)&amp;&amp;c.rotate(A,w*k*b,-T*k*_,0),(l&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||v||m&amp;&amp;h&amp;&amp;!p&amp;&amp;!g)&amp;&amp;c.pan(A,-d.translateSpeed*b*f,d.translateSpeed*_*f,0),u&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||y||m&amp;&amp;!h&amp;&amp;p&amp;&amp;!g)){var M=-d.zoomSpeed*_/window.innerHeight*(A-c.lastT())*100;c.pan(A,0,0,f*(Math.exp(M)-1))}return d._lastX=r,d._lastY=i,d._lastMods=a,!0}}d.mouseListener=a(t,e),t.addEventListener(&quot;touchstart&quot;,(function(r){var n=s(r.changedTouches[0],t);e(0,n[0],n[1],d._lastMods),e(1,n[0],n[1],d._lastMods)}),!!l&amp;&amp;{passive:!0}),t.addEventListener(&quot;touchmove&quot;,(function(r){var n=s(r.changedTouches[0],t);e(1,n[0],n[1],d._lastMods),r.preventDefault()}),!!l&amp;&amp;{passive:!1}),t.addEventListener(&quot;touchend&quot;,(function(t){e(0,d._lastX,d._lastY,d._lastMods)}),!!l&amp;&amp;{passive:!0}),d.wheelListener=o(t,(function(t,e){if(!1!==d.keyBindingMode&amp;&amp;d.enableWheel){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)&gt;Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=t(&quot;right-now&quot;),i=t(&quot;3d-view&quot;),a=t(&quot;mouse-change&quot;),o=t(&quot;mouse-wheel&quot;),s=t(&quot;mouse-event-offset&quot;),l=t(&quot;has-passive-events&quot;)},{&quot;3d-view&quot;:55,&quot;has-passive-events&quot;:444,&quot;mouse-change&quot;:470,&quot;mouse-event-offset&quot;:471,&quot;mouse-wheel&quot;:473,&quot;right-now&quot;:542}],324:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n  uv = position;\n  gl_Position = vec4(position, 0, 1);\n}&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n  vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n  gl_FragColor = min(vec4(1,1,1,1), accum);\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec2&quot;}])}},{&quot;gl-shader&quot;:339,glslify:325}],325:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],326:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./camera.js&quot;),i=t(&quot;gl-axes3d&quot;),a=t(&quot;gl-axes3d/properties&quot;),o=t(&quot;gl-spikes3d&quot;),s=t(&quot;gl-select-static&quot;),l=t(&quot;gl-fbo&quot;),c=t(&quot;a-big-triangle&quot;),u=t(&quot;mouse-change&quot;),f=t(&quot;gl-mat4/perspective&quot;),h=t(&quot;gl-mat4/ortho&quot;),p=t(&quot;./lib/shader&quot;),d=t(&quot;is-mobile&quot;)({tablet:!0,featureDetect:!0});function g(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function m(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e&lt;0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e&gt;0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return&quot;boolean&quot;!=typeof t||t}e.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;if(!e){if(e=document.createElement(&quot;canvas&quot;),t.container)t.container.appendChild(e);else document.body.appendChild(e)}var r=t.gl;r||(t.glOptions&amp;&amp;(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext(&quot;webgl&quot;,e))||(r=t.getContext(&quot;experimental-webgl&quot;,e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}));if(!r)throw new Error(&quot;webgl not supported&quot;);var y=t.bounds||[[-10,-10,-10],[10,10,10]],x=new g,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),_=p(r),w=t.cameraObject&amp;&amp;!0===t.cameraObject._ortho||t.camera.projection&amp;&amp;&quot;orthographic&quot;===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||&quot;turntable&quot;,_ortho:w},k=t.axes||{},A=i(r,k);A.enable=!k.disable;var M=t.spikes||{},S=o(r,M),E=[],L=[],C=[],P=[],I=!0,O=!0,z=new Array(16),D=new Array(16),R={view:null,projection:z,model:D,_ortho:!1},F=(O=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),B=t.cameraObject||n(e,T),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:B,axes:A,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,O=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},j=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&amp;&amp;N.autoResize){var t=e.parentNode,r=1,n=1;t&amp;&amp;t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||&quot;absolute&quot;,o.left=&quot;0px&quot;,o.top=&quot;0px&quot;,o.width=r+&quot;px&quot;,o.height=n+&quot;px&quot;,I=!0}}}N.autoResize&amp;&amp;U();function V(){for(var t=E.length,e=P.length,n=0;n&lt;e;++n)C[n]=0;t:for(n=0;n&lt;t;++n){var i=E[n],a=i.pickSlots;if(a){for(var o=0;o&lt;e;++o)if(C[o]+a&lt;255){L[n]=o,i.setPickBase(C[o]+1),C[o]+=a;continue t}var l=s(r,F);L[n]=e,P.push(l),C.push(a),i.setPickBase(1),e+=1}else L[n]=-1}for(;e&gt;0&amp;&amp;0===C[e-1];)C.pop(),P.pop().dispose()}function q(){if(N.contextLost)return!0;r.isContextLost()&amp;&amp;(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&amp;&amp;N.oncontextloss())}window.addEventListener(&quot;resize&quot;,U),N.update=function(t){N._stopped||(t=t||{},I=!0,O=!0)},N.add=function(t){N._stopped||(t.axes=A,E.push(t),L.push(-1),I=!0,O=!0,V())},N.remove=function(t){if(!N._stopped){var e=E.indexOf(t);e&lt;0||(E.splice(e,1),L.pop(),I=!0,O=!0,V())}},N.dispose=function(){if(!N._stopped&amp;&amp;(N._stopped=!0,window.removeEventListener(&quot;resize&quot;,U),e.removeEventListener(&quot;webglcontextlost&quot;,q),N.mouseListener.enabled=!1,!N.contextLost)){A.dispose(),S.dispose();for(var t=0;t&lt;E.length;++t)E[t].dispose();b.dispose();for(t=0;t&lt;P.length;++t)P[t].dispose();_.dispose(),r=null,A=null,S=null,E=[]}},N._mouseRotating=!1,N._prevButtons=0,N.enableMouseListeners=function(){N.mouseListener=u(e,(function(t,e,r){if(!N._stopped){var n=P.length,i=E.length,a=x.object;x.distance=1/0,x.mouse[0]=e,x.mouse[1]=r,x.object=null,x.screen=null,x.dataCoordinate=x.dataPosition=null;var o=!1;if(t&amp;&amp;N._prevButtons)N._mouseRotating=!0;else{N._mouseRotating&amp;&amp;(O=!0),N._mouseRotating=!1;for(var s=0;s&lt;n;++s){var l=P[s].query(e,j[1]-r-1,N.pickRadius);if(l){if(l.distance&gt;x.distance)continue;for(var c=0;c&lt;i;++c){var u=E[c];if(L[c]===s){var f=u.pick(l);f&amp;&amp;(x.buttons=t,x.screen=l.coord,x.distance=l.distance,x.object=u,x.index=f.distance,x.dataPosition=f.position,x.dataCoordinate=f.dataCoordinate,x.data=f,o=!0)}}}}}a&amp;&amp;a!==x.object&amp;&amp;(a.highlight&amp;&amp;a.highlight(null),I=!0),x.object&amp;&amp;(x.object.highlight&amp;&amp;x.object.highlight(x.data),I=!0),(o=o||x.object!==a)&amp;&amp;N.onselect&amp;&amp;N.onselect(x),1&amp;t&amp;&amp;!(1&amp;N._prevButtons)&amp;&amp;N.onclick&amp;&amp;N.onclick(x),N._prevButtons=t}}))},e.addEventListener(&quot;webglcontextlost&quot;,q);var H=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],G=[H[0].slice(),H[1].slice()];function Y(){if(!q()){U();var t=N.camera.tick();R.view=N.camera.matrix,I=I||t,O=O||t,A.pixelRatio=N.pixelRatio,S.pixelRatio=N.pixelRatio;var e=E.length,n=H[0],i=H[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o&lt;e;++o){(C=E[o]).pixelRatio=N.pixelRatio,C.axes=N.axes,I=I||!!C.dirty,O=O||!!C.dirty;var s=C.bounds;if(s)for(var l=s[0],u=s[1],p=0;p&lt;3;++p)n[p]=Math.min(n[p],l[p]),i[p]=Math.max(i[p],u[p])}var d=N.bounds;if(N.autoBounds)for(p=0;p&lt;3;++p){if(i[p]&lt;n[p])n[p]=-1,i[p]=1;else{n[p]===i[p]&amp;&amp;(n[p]-=1,i[p]+=1);var g=.05*(i[p]-n[p]);n[p]=n[p]-g,i[p]=i[p]+g}d[0][p]=n[p],d[1][p]=i[p]}var v=!1;for(p=0;p&lt;3;++p)v=v||G[0][p]!==d[0][p]||G[1][p]!==d[1][p],G[0][p]=d[0][p],G[1][p]=d[1][p];if(O=O||v,I=I||v){if(v){var y=[0,0,0];for(o=0;o&lt;3;++o)y[o]=m((d[1][o]-d[0][o])/10);A.autoTicks?A.update({bounds:d,tickSpacing:y}):A.update({bounds:d})}var T=r.drawingBufferWidth,k=r.drawingBufferHeight;F[0]=T,F[1]=k,j[0]=0|Math.max(T/N.pixelRatio,1),j[1]=0|Math.max(k/N.pixelRatio,1),function(t,e){var r=t.bounds,n=t.cameraParams,i=n.projection,a=n.model,o=t.gl.drawingBufferWidth,s=t.gl.drawingBufferHeight,l=t.zNear,c=t.zFar,u=t.fovy,p=o/s;e?(h(i,-p,p,-1,1,l,c),n._ortho=!0):(f(i,u,p,l,c),n._ortho=!1);for(var d=0;d&lt;16;++d)a[d]=0;a[15]=1;var g=0;for(d=0;d&lt;3;++d)g=Math.max(g,r[1][d]-r[0][d]);for(d=0;d&lt;3;++d)t.autoScale?a[5*d]=t.aspect[d]/(r[1][d]-r[0][d]):a[5*d]=1/g,t.autoCenter&amp;&amp;(a[12+d]=.5*-a[5*d]*(r[0][d]+r[1][d]))}(N,w);for(o=0;o&lt;e;++o){(C=E[o]).axesBounds=d,N.clipToBounds&amp;&amp;(C.clipBounds=d)}x.object&amp;&amp;(N.snapToData?S.position=x.dataCoordinate:S.position=x.dataPosition,S.bounds=d),O&amp;&amp;(O=!1,function(){if(!q()){r.colorMask(!0,!0,!0,!0),r.depthMask(!0),r.disable(r.BLEND),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL);for(var t=E.length,e=P.length,n=0;n&lt;e;++n){var i=P[n];i.shape=j,i.begin();for(var a=0;a&lt;t;++a)if(L[a]===n){var o=E[a];o.drawPick&amp;&amp;(o.pixelRatio=1,o.drawPick(R))}i.end()}}}()),N.axesPixels=a(N.axes,R,T,k),N.onrender&amp;&amp;N.onrender(),r.bindFramebuffer(r.FRAMEBUFFER,null),r.viewport(0,0,T,k),N.clearRGBA(),r.depthMask(!0),r.colorMask(!0,!0,!0,!0),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.disable(r.BLEND),r.disable(r.CULL_FACE);var M=!1;A.enable&amp;&amp;(M=M||A.isTransparent(),A.draw(R)),S.axes=A,x.object&amp;&amp;S.draw(R),r.disable(r.CULL_FACE);for(o=0;o&lt;e;++o){(C=E[o]).axes=A,C.pixelRatio=N.pixelRatio,C.isOpaque&amp;&amp;C.isOpaque()&amp;&amp;C.draw(R),C.isTransparent&amp;&amp;C.isTransparent()&amp;&amp;(M=!0)}if(M){b.shape=F,b.bind(),r.clear(r.DEPTH_BUFFER_BIT),r.colorMask(!1,!1,!1,!1),r.depthMask(!0),r.depthFunc(r.LESS),A.enable&amp;&amp;A.isTransparent()&amp;&amp;A.drawTransparent(R);for(o=0;o&lt;e;++o){(C=E[o]).isOpaque&amp;&amp;C.isOpaque()&amp;&amp;C.draw(R)}r.enable(r.BLEND),r.blendEquation(r.FUNC_ADD),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.colorMask(!0,!0,!0,!0),r.depthMask(!1),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),A.isTransparent()&amp;&amp;A.drawTransparent(R);for(o=0;o&lt;e;++o){var C;(C=E[o]).isTransparent&amp;&amp;C.isTransparent()&amp;&amp;C.drawTransparent(R)}r.bindFramebuffer(r.FRAMEBUFFER,null),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),_.bind(),b.color[0].bind(0),_.uniforms.accumBuffer=0,c(r),r.disable(r.BLEND)}I=!1;for(o=0;o&lt;e;++o)E[o].dirty=!1}}}return N.enableMouseListeners(),function t(){if(N._stopped||N.contextLost)return;Y(),requestAnimationFrame(t)}(),N.redraw=function(){N._stopped||(I=!0,Y())},N},createCamera:n}},{&quot;./camera.js&quot;:323,&quot;./lib/shader&quot;:324,&quot;a-big-triangle&quot;:70,&quot;gl-axes3d&quot;:258,&quot;gl-axes3d/properties&quot;:266,&quot;gl-fbo&quot;:276,&quot;gl-mat4/ortho&quot;:302,&quot;gl-mat4/perspective&quot;:303,&quot;gl-select-static&quot;:338,&quot;gl-spikes3d&quot;:349,&quot;is-mobile&quot;:455,&quot;mouse-change&quot;:470}],327:[function(t,e,r){var n=t(&quot;glslify&quot;);r.pointVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n  highp float a = 12.9898;\n  highp float b = 78.233;\n  highp float c = 43758.5453;\n  highp float d = dot(co.xy, vec2(a, b));\n  highp float e = mod(d, 3.14);\n  return fract(sin(e) * c);\n}\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n    // if we don't jitter the point size a bit, overall point cloud\n    // saturation 'jumps' on zooming, which is disturbing and confusing\n  gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    // get the same square surface as circle would be\n    gl_PointSize *= 0.886;\n  }\n}&quot;]),r.pointFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n  float radius;\n  vec4 baseColor;\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    if(centerFraction == 1.0) {\n      gl_FragColor = color;\n    } else {\n      gl_FragColor = mix(borderColor, color, centerFraction);\n    }\n  } else {\n    radius = length(2.0 * gl_PointCoord.xy - 1.0);\n    if(radius &gt; 1.0) {\n      discard;\n    }\n    baseColor = mix(borderColor, color, step(radius, centerFraction));\n    gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n  }\n}\n&quot;]),r.pickVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n  gl_PointSize = pointSize;\n\n  vec4 id = pickId + pickOffset;\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  fragId = id;\n}\n&quot;]),r.pickFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n  float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n  if(radius &gt; 1.0) {\n    discard;\n  }\n  gl_FragColor = fragId / 255.0;\n}\n&quot;])},{glslify:442}],328:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;./lib/shader&quot;);function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(&quot;sizeMin&quot;,.5),this.sizeMax=r(&quot;sizeMax&quot;,20),this.color=r(&quot;color&quot;,[1,0,0,1]).slice(),this.areaRatio=r(&quot;areaRatio&quot;,1),this.borderColor=r(&quot;borderColor&quot;,[0,0,0,1]).slice(),this.blend=r(&quot;blend&quot;,!1);var n=t.positions.length&gt;&gt;&gt;1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&amp;&amp;t.idToIndex.length&gt;=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e&lt;n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length&gt;&gt;&gt;1;for(r=0;r&lt;i;r++){var a=t[2*r],o=t[2*r+1];a&gt;=e[0]&amp;&amp;a&lt;=e[2]&amp;&amp;o&gt;=e[1]&amp;&amp;o&lt;=e[3]&amp;&amp;n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u&lt;5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&amp;&amp;(c[0]=255&amp;t,c[1]=t&gt;&gt;8&amp;255,c[2]=t&gt;&gt;16&amp;255,c[3]=t&gt;&gt;24&amp;255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&amp;&amp;!this.blend&amp;&amp;n.disable(n.BLEND),h&amp;&amp;n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&amp;&amp;!this.blend&amp;&amp;n.enable(n.BLEND),h&amp;&amp;n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{&quot;./lib/shader&quot;:327,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339,&quot;typedarray-pool&quot;:617}],329:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],g=r[2],m=r[3];(a=c*p+u*d+f*g+h*m)&lt;0&amp;&amp;(a=-a,p=-p,d=-d,g=-g,m=-m);1-a&gt;1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*g,t[3]=s*h+l*m,t}},{}],330:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t||0===t?t.toString():&quot;&quot;}},{}],331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;vectorize-text&quot;);e.exports=function(t,e,r){var a=i[e];a||(a=i[e]={});if(t in a)return a[t];var o={textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&amp;&amp;1!==r){for(l=0;l&lt;s.positions.length;++l)for(c=0;c&lt;s.positions[l].length;++c)s.positions[l][c]/=r;for(l=0;l&lt;u.positions.length;++l)for(c=0;c&lt;u.positions[l].length;++c)u.positions[l][c]/=r}var f=[[1/0,1/0],[-1/0,-1/0]],h=u.positions.length;for(l=0;l&lt;h;++l){var p=u.positions[l];for(c=0;c&lt;2;++c)f[0][c]=Math.min(f[0][c],p[c]),f[1][c]=Math.max(f[1][c],p[c])}return a[t]=[s,u,f]};var i={}},{&quot;vectorize-text&quot;:623}],332:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = 1.0;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      scale = highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1);\n    vec4 viewPosition = view * worldPosition;\n    viewPosition = viewPosition / viewPosition.w;\n    vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = pixelRatio;\n    if(distance(highlightId.bgr, id.bgr) &lt; 0.001) {\n      scale *= highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1.0);\n    vec4 viewPosition = view * worldPosition;\n    vec4 clipPosition = projection * viewPosition;\n    clipPosition /= clipPosition.w;\n\n    gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float lscale = pixelRatio * scale;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      lscale *= highlightScale;\n    }\n\n    vec4 clipCenter   = projection * view * model * vec4(position, 1);\n    vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n    vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = dataPosition;\n  }\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (\n    outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n    interpColor.a * opacity == 0.\n  ) discard;\n  gl_FragColor = interpColor * opacity;\n}\n&quot;]),c=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n  gl_FragColor = vec4(pickGroup, pickId.bgr);\n}&quot;]),u=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;glyph&quot;,type:&quot;vec2&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},m={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,h)},r.createProject=function(t){return v(t,p)},r.createPickPerspective=function(t){return v(t,d)},r.createPickOrtho=function(t){return v(t,g)},r.createPickProject=function(t){return v(t,m)}},{&quot;gl-shader&quot;:339,glslify:333}],333:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],334:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;typedarray-pool&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;./lib/shaders&quot;),c=t(&quot;./lib/glyphs&quot;),u=t(&quot;./lib/get-simple-string&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t){return!0===t||t&gt;1?1:t}function m(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),g=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new m(e,r,n,o,f,h,p,d,g,s,c,u);return v.update(t),v};var v=m.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=f.slice(),k=[0,0,0],A=[[0,0,0],[0,0,0]];function M(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function L(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,h=r.projection||f,d=e.axesBounds,g=function(t){for(var e=A,r=0;r&lt;2;++r)for(var n=0;n&lt;3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&amp;&amp;e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=h,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=g,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var m=0;m&lt;3;++m)if(a[m]){l.scale=e.projectScale[m],l.opacity=e.projectOpacity[m];for(var v=T,L=0;L&lt;16;++L)v[L]=0;for(L=0;L&lt;4;++L)v[5*L]=1;v[5*m]=0,i[m]&lt;0?v[12+m]=d[0][m]:v[12+m]=d[1][m],s(v,c,v),l.model=v;var C=(m+1)%3,P=(m+2)%3,I=M(x),O=M(b);I[C]=1,O[P]=1;var z=p(0,0,0,S(_,I)),D=p(0,0,0,S(w,O));if(Math.abs(z[1])&gt;Math.abs(D[1])){var R=z;z=D,D=R,R=I,I=O,O=R;var F=C;C=P,P=F}z[0]&lt;0&amp;&amp;(I[C]=-1),D[1]&gt;0&amp;&amp;(O[P]=-1);var B=0,N=0;for(L=0;L&lt;4;++L)B+=Math.pow(c[4*C+L],2),N+=Math.pow(c[4*P+L],2);I[C]/=Math.sqrt(B),O[P]/=Math.sqrt(N),l.axes[0]=I,l.axes[1]=O,l.fragClipBounds[0]=E(k,g[0],m,-1e8),l.fragClipBounds[1]=E(k,g[1],m,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth&gt;0&amp;&amp;(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var C=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function P(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&amp;&amp;L(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=C,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth&gt;0&amp;&amp;(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function I(t,e,r,i){var a;a=Array.isArray(t)?e&lt;t.length?t[e]:void 0:t,a=u(a);var o=!0;n(a)&amp;&amp;(a=&quot;\u25bc&quot;,o=!1);var s=c(a,r,i);return{mesh:s[0],lines:s[1],bounds:s[2],visible:o}}v.draw=function(t){P(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!1,!1)},v.drawTransparent=function(t){P(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!0,!1)},v.drawPick=function(t){P(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,1,!0,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]&lt;&lt;8)+(t.value[0]&lt;&lt;16);if(e&gt;=this.pointCount||e&lt;0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i&lt;3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&amp;e,n=e&gt;&gt;8&amp;255,i=e&gt;&gt;16&amp;255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(&quot;perspective&quot;in(t=t||{})&amp;&amp;(this.useOrtho=!t.perspective),&quot;orthographic&quot;in t&amp;&amp;(this.useOrtho=!!t.orthographic),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;project&quot;in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(&quot;projectScale&quot;in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,&quot;projectOpacity&quot;in t){if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n&lt;3;++n)this.projectOpacity[n]=g(this.projectOpacity[n]),this.projectOpacity[n]&lt;1&amp;&amp;(this.projectHasAlpha=!0)}this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=g(t.opacity),this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||&quot;normal&quot;,c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n&lt;c.length;++n)i[n]=c[n][0],a[n]=c[n][1]}var u=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0],h=t.glyph,p=t.color,d=t.size,m=t.angle,v=t.lineColor,y=-1,x=0,b=0,_=0;if(s.length){_=s.length;t:for(n=0;n&lt;_;++n){for(var w=s[n],T=0;T&lt;3;++T)if(isNaN(w[T])||!isFinite(w[T]))continue t;var k=(N=I(h,n,l,this.pixelRatio)).mesh,A=N.lines,M=N.bounds;x+=3*k.cells.length,b+=2*A.edges.length}}var S=x+b,E=o.mallocFloat(3*S),L=o.mallocFloat(4*S),C=o.mallocFloat(2*S),P=o.mallocUint32(S);if(S&gt;0){var O=0,z=x,D=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(p)&amp;&amp;Array.isArray(p[0]),B=Array.isArray(v)&amp;&amp;Array.isArray(v[0]);t:for(n=0;n&lt;_;++n){y+=1;for(w=s[n],T=0;T&lt;3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue t;f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=I(h,n,l,this.pixelRatio)).mesh,A=N.lines,M=N.bounds;var N,j=N.visible;if(j)if(Array.isArray(p)){if(3===(U=F?n&lt;p.length?p[n]:[0,0,0,0]:p).length){for(T=0;T&lt;3;++T)D[T]=U[T];D[3]=1}else if(4===U.length){for(T=0;T&lt;4;++T)D[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else D[0]=D[1]=D[2]=0,D[3]=1;else D=[1,1,1,0];if(j)if(Array.isArray(v)){var U;if(3===(U=B?n&lt;v.length?v[n]:[0,0,0,0]:v).length){for(T=0;T&lt;3;++T)R[T]=U[T];R[T]=1}else if(4===U.length){for(T=0;T&lt;4;++T)R[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else R[0]=R[1]=R[2]=0,R[3]=1;else R=[1,1,1,0];var V=.5;j?Array.isArray(d)?V=n&lt;d.length?+d[n]:12:d?V=+d:this.useOrtho&amp;&amp;(V=12):V=0;var q=0;Array.isArray(m)?q=n&lt;m.length?+m[n]:0:m&amp;&amp;(q=+m);var H=Math.cos(q),G=Math.sin(q);for(w=s[n],T=0;T&lt;3;++T)f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T]);var Y=i,W=a;Y=0;Array.isArray(i)?Y=n&lt;i.length?i[n]:0:i&amp;&amp;(Y=i);W=0;Array.isArray(a)?W=n&lt;a.length?a[n]:0:a&amp;&amp;(W=a);var X=[Y*=Y&gt;0?1-M[0][0]:Y&lt;0?1+M[1][0]:1,W*=W&gt;0?1-M[0][1]:W&lt;0?1+M[1][1]:1],Z=k.cells||[],J=k.positions||[];for(T=0;T&lt;Z.length;++T)for(var K=Z[T],Q=0;Q&lt;3;++Q){for(var $=0;$&lt;3;++$)E[3*O+$]=w[$];for($=0;$&lt;4;++$)L[4*O+$]=D[$];P[O]=y;var tt=J[K[Q]];C[2*O]=V*(H*tt[0]-G*tt[1]+X[0]),C[2*O+1]=V*(G*tt[0]+H*tt[1]+X[1]),O+=1}for(Z=A.edges,J=A.positions,T=0;T&lt;Z.length;++T)for(K=Z[T],Q=0;Q&lt;2;++Q){for($=0;$&lt;3;++$)E[3*z+$]=w[$];for($=0;$&lt;4;++$)L[4*z+$]=R[$];P[z]=y;tt=J[K[Q]];C[2*z]=V*(H*tt[0]-G*tt[1]+X[0]),C[2*z+1]=V*(G*tt[0]+H*tt[1]+X[1]),z+=1}}}this.bounds=[u,f],this.points=s,this.pointCount=s.length,this.vertexCount=x,this.lineVertexCount=b,this.pointBuffer.update(E),this.colorBuffer.update(L),this.glyphBuffer.update(C),this.idBuffer.update(P),o.free(E),o.free(L),o.free(C),o.free(P)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{&quot;./lib/get-simple-string&quot;:330,&quot;./lib/glyphs&quot;:331,&quot;./lib/shaders&quot;:332,&quot;gl-buffer&quot;:267,&quot;gl-mat4/multiply&quot;:301,&quot;gl-vao&quot;:361,&quot;is-string-blank&quot;:458,&quot;typedarray-pool&quot;:617}],335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);r.boxVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n  gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n&quot;]),r.boxFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n  gl_FragColor = color;\n}\n&quot;])},{glslify:336}],336:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],337:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;./lib/shaders&quot;);function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p&lt;f||d&lt;h)){o.bind();var g=s[2]-s[0],m=s[3]-s[1];if(this.outerFill&amp;&amp;(o.drawBox(0,0,g,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,g,m,i),o.drawBox(p,h,g,d,i)),this.innerFill&amp;&amp;o.drawBox(f,h,p,d,n),r&gt;0){var v=r*u;o.drawBox(f-v,h-v,p+v,h+v,a),o.drawBox(f-v,d-v,p+v,d+v,a),o.drawBox(f-v,h-v,f+v,d+v,a),o.drawBox(p-v,h-v,p+v,d+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{&quot;./lib/shaders&quot;:335,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339}],338:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=e[0],a=e[1],o=n(t,r,a,{}),s=i.mallocUint8(r*a*4);return new l(t,o,s)};var n=t(&quot;gl-fbo&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray&quot;),o=t(&quot;bit-twiddle&quot;).nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&amp;&amp;(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,&quot;shape&quot;,{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4&gt;this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a&lt;r*e*4;++a)n[a]=255}return t}}}),c.begin=function(){var t=this.gl;this.shape;t&amp;&amp;(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},c.end=function(){var t=this.gl;t&amp;&amp;(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,&quot;number&quot;!=typeof r&amp;&amp;(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),l=0|Math.min(Math.max(e-r,0),n[1]),c=0|Math.min(Math.max(e+r,0),n[1]);if(o&lt;=i||c&lt;=l)return null;var u=[o-i,c-l],f=a(this.buffer,[u[0],u[1],4],[4,4*n[0],1],4*(i+n[0]*l)),h=function(t,e,r){for(var n=1e8,i=-1,a=-1,o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++){var u=t.get(l,c,0),f=t.get(l,c,1),h=t.get(l,c,2),p=t.get(l,c,3);if(u&lt;255||f&lt;255||h&lt;255||p&lt;255){var d=e-l,g=r-c,m=d*d+g*g;m&lt;n&amp;&amp;(n=m,i=l,a=c)}}return[i,a,n]}(f.hi(u[0],u[1],1),r,r),p=h[0],d=h[1];return p&lt;0||Math.pow(this.radius,2)&lt;h[2]?null:new s(p+i|0,d+l|0,f.get(p,d,0),[f.get(p,d,1),f.get(p,d,2),f.get(p,d,3)],Math.sqrt(h[2]))},c.dispose=function(){this.gl&amp;&amp;(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&amp;&amp;clearTimeout(this._readTimeout))}},{&quot;bit-twiddle&quot;:104,&quot;gl-fbo&quot;:276,ndarray:483,&quot;typedarray-pool&quot;:617}],339:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/create-uniforms&quot;),i=t(&quot;./lib/create-attributes&quot;),a=t(&quot;./lib/reflect&quot;),o=t(&quot;./lib/shader-cache&quot;),s=t(&quot;./lib/runtime-reflect&quot;),l=t(&quot;./lib/GLError&quot;);function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name&lt;e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e&gt;r)for(t=r;t&lt;e;t++)this.gl.enableVertexAttribArray(t);else if(r&gt;e)for(t=e;t&lt;r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e&lt;t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&amp;&amp;this._fref.dispose(),this._vref&amp;&amp;this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&amp;&amp;d.dispose(),h.vertShader=h._vref.shader;var g=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),g&amp;&amp;g.dispose(),h.fragShader=h._fref.shader,!r||!c){var m=p.createProgram();if(p.attachShader(m,h.fragShader),p.attachShader(m,h.vertShader),p.linkProgram(m),!p.getProgramParameter(m,p.LINK_STATUS)){var v=p.getProgramInfoLog(m);throw new l(v,&quot;Error linking program:&quot;+v)}r=r||s.uniforms(p,m),c=c||s.attributes(p,m),p.deleteProgram(m)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y&lt;c.length;++y){var w=c[y];if(w.type.indexOf(&quot;mat&quot;)&gt;=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),A=0;A&lt;T;++A)k[A]=_.length,b.push(w.name+&quot;[&quot;+A+&quot;]&quot;),&quot;number&quot;==typeof w.location?_.push(w.location+A):Array.isArray(w.location)&amp;&amp;w.location.length===T&amp;&amp;&quot;number&quot;==typeof w.location[A]?_.push(0|w.location[A]):_.push(-1);x.push({name:w.name,type:w.type,locations:k})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),&quot;number&quot;==typeof w.location?_.push(0|w.location):_.push(-1)}var M=0;for(y=0;y&lt;_.length;++y)if(_[y]&lt;0){for(;_.indexOf(M)&gt;=0;)M+=1;_[y]=M}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t&lt;r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,&quot;uniforms&quot;,n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{&quot;./lib/GLError&quot;:340,&quot;./lib/create-attributes&quot;:341,&quot;./lib/create-uniforms&quot;:342,&quot;./lib/reflect&quot;:343,&quot;./lib/runtime-reflect&quot;:344,&quot;./lib/shader-cache&quot;:345}],340:[function(t,e,r){function n(t,e,r){this.shortMessage=e||&quot;&quot;,this.longMessage=r||&quot;&quot;,this.rawError=t||&quot;&quot;,this.message=&quot;gl-shader: &quot;+(e||t||&quot;&quot;)+(r?&quot;\n&quot;+r:&quot;&quot;),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=&quot;GLError&quot;,n.prototype.constructor=n,e.exports=n},{}],341:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){for(var a={},l=0,c=r.length;l&lt;c;++l){var u=r[l],f=u.name,h=u.type,p=u.locations;switch(h){case&quot;bool&quot;:case&quot;int&quot;:case&quot;float&quot;:o(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(&quot;vec&quot;)&gt;=0){if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);o(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(&quot;mat&quot;)&gt;=0))throw new n(&quot;&quot;,&quot;Unknown data type for attribute &quot;+f+&quot;: &quot;+h);var d;if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);s(t,e,p,i,d,a,f)}}}return a};var n=t(&quot;./GLError&quot;);function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(t,e,r,n,a,o,s){for(var l=[&quot;gl&quot;,&quot;v&quot;],c=[],u=0;u&lt;a;++u)l.push(&quot;x&quot;+u),c.push(&quot;x&quot;+u);l.push(&quot;if(x0.length===void 0){return gl.vertexAttrib&quot;+a+&quot;f(v,&quot;+c.join()+&quot;)}else{return gl.vertexAttrib&quot;+a+&quot;fv(v,x0)}&quot;);var f=Function.apply(null,l),h=new i(t,e,r,n,a,f);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(n[r]),f(t,n[r],e),e},get:function(){return h},enumerable:!0})}function s(t,e,r,n,i,a,s){for(var l=new Array(i),c=new Array(i),u=0;u&lt;i;++u)o(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,&quot;location&quot;,{set:function(t){if(Array.isArray(t))for(var e=0;e&lt;i;++e)c[e].location=t[e];else for(e=0;e&lt;i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e&lt;i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l&lt;i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[&quot;vertexAttrib&quot;+i+&quot;fv&quot;];Object.defineProperty(a,s,{set:function(e){for(var a=0;a&lt;i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s&lt;i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,&quot;location&quot;,{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&amp;&amp;(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{&quot;./GLError&quot;:340}],342:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./reflect&quot;),i=t(&quot;./GLError&quot;);function a(t){return new Function(&quot;y&quot;,&quot;return function(){return y}&quot;)(t)}function o(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(t,e,r){switch(r){case&quot;bool&quot;:case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:return&quot;gl.uniform1i(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;float&quot;:return&quot;gl.uniform1f(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:var n=r.indexOf(&quot;vec&quot;);if(!(0&lt;=n&amp;&amp;n&lt;=1&amp;&amp;r.length===4+n)){if(0===r.indexOf(&quot;mat&quot;)&amp;&amp;4===r.length){var a;if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+r);return&quot;gl.uniformMatrix&quot;+a+&quot;fv(locations[&quot;+e+&quot;],false,obj&quot;+t+&quot;)&quot;}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+r)}if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);switch(r.charAt(0)){case&quot;b&quot;:case&quot;i&quot;:return&quot;gl.uniform&quot;+a+&quot;iv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;v&quot;:return&quot;gl.uniform&quot;+a+&quot;fv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:throw new i(&quot;&quot;,&quot;Unrecognized data type for vector &quot;+name+&quot;: &quot;+r)}}}function c(e){for(var n=[&quot;return function updateProperty(obj){&quot;],i=function t(e,r){if(&quot;object&quot;!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+&quot;&quot;===i?o+=&quot;[&quot;+i+&quot;]&quot;:o+=&quot;.&quot;+i,&quot;object&quot;==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(&quot;&quot;,e),a=0;a&lt;i.length;++a){var o=i[a],c=o[0],u=o[1];s[u]&amp;&amp;n.push(l(c,u,r[u].type))}return n.push(&quot;return obj}&quot;),new Function(&quot;gl&quot;,&quot;locations&quot;,n.join(&quot;\n&quot;))(t,s)}function u(n,l,u){if(&quot;object&quot;==typeof u){var h=f(u);Object.defineProperty(n,l,{get:a(h),set:c(u),enumerable:!0,configurable:!1})}else s[u]?Object.defineProperty(n,l,{get:(p=u,new Function(&quot;gl&quot;,&quot;wrapper&quot;,&quot;locations&quot;,&quot;return function(){return gl.getUniform(wrapper.program,locations[&quot;+p+&quot;])}&quot;)(t,e,s)),set:c(u),enumerable:!0,configurable:!1}):n[l]=function(t){switch(t){case&quot;bool&quot;:return!1;case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:case&quot;float&quot;:return 0;default:var e=t.indexOf(&quot;vec&quot;);if(0&lt;=e&amp;&amp;e&lt;=1&amp;&amp;t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);return&quot;b&quot;===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(&quot;mat&quot;)&amp;&amp;4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+t);return o(r*r,0)}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+t)}}(r[u].type);var p}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r&lt;t.length;++r)u(e,r,t[r])}else for(var n in e={},t)u(e,n,t[n]);return e}var h=n(r,!0);return{get:a(f(h)),set:c(h),enumerable:!0,configurable:!0}}},{&quot;./GLError&quot;:340,&quot;./reflect&quot;:343}],343:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r={},n=0;n&lt;t.length;++n)for(var i=t[n].name.split(&quot;.&quot;),a=r,o=0;o&lt;i.length;++o){var s=i[o].split(&quot;[&quot;);if(s.length&gt;1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l&lt;s.length;++l){var c=parseInt(s[l]);l&lt;s.length-1||o&lt;i.length-1?(c in a||(l&lt;s.length-1?a[c]=[]:a[c]={}),a=a[c]):a[c]=e?n:t[n].type}}else o&lt;i.length-1?(s[0]in a||(a[s[0]]={}),a=a[s[0]]):a[s[0]]=e?n:t[n].type}return r}},{}],344:[function(t,e,r){&quot;use strict&quot;;r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i&lt;r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size&gt;1)for(var l=0;l&lt;o.size;++l)n.push({name:o.name.replace(&quot;[0]&quot;,&quot;[&quot;+l+&quot;]&quot;),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i&lt;r;++i){var o=t.getActiveAttrib(e,i);o&amp;&amp;n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:&quot;float&quot;,FLOAT_VEC2:&quot;vec2&quot;,FLOAT_VEC3:&quot;vec3&quot;,FLOAT_VEC4:&quot;vec4&quot;,INT:&quot;int&quot;,INT_VEC2:&quot;ivec2&quot;,INT_VEC3:&quot;ivec3&quot;,INT_VEC4:&quot;ivec4&quot;,BOOL:&quot;bool&quot;,BOOL_VEC2:&quot;bvec2&quot;,BOOL_VEC3:&quot;bvec3&quot;,BOOL_VEC4:&quot;bvec4&quot;,FLOAT_MAT2:&quot;mat2&quot;,FLOAT_MAT3:&quot;mat3&quot;,FLOAT_MAT4:&quot;mat4&quot;,SAMPLER_2D:&quot;sampler2D&quot;,SAMPLER_CUBE:&quot;samplerCube&quot;},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a&lt;r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],345:[function(t,e,r){&quot;use strict&quot;;r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(&quot;./GLError&quot;),i=t(&quot;gl-format-compiler-error&quot;),a=new(&quot;undefined&quot;==typeof WeakMap?t(&quot;weakmap-shim&quot;):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n&lt;i;++n){var a=t.programs[r[n]];a&amp;&amp;(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&amp;&amp;r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(&quot;Failed to format compiler error: &quot;+t),new n(o,&quot;Error compiling shader:\n&quot;+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(&quot;:&quot;),i.join(&quot;:&quot;)].join(&quot;@&quot;),o=this.programs[a];return o&amp;&amp;this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s&lt;i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,&quot;Error linking program: &quot;+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{&quot;./GLError&quot;:340,&quot;gl-format-compiler-error&quot;:277,&quot;weakmap-shim&quot;:628}],346:[function(t,e,r){&quot;use strict&quot;;function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(t){return t.slice()})),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]&lt;=n[0]&amp;&amp;n[0]&lt;=o[2]&amp;&amp;o[1]&lt;=n[1]&amp;&amp;n[1]&lt;=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&amp;&amp;a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&amp;&amp;a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&amp;&amp;a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&amp;&amp;a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],347:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vertexPosition = mix(coordinates[0],\n    mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n  vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\n  vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\n  vec2 delta = weight * clipOffset * screenShape;\n  vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n  gl_Position   = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n  fragColor     = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n  gl_FragColor = fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec3&quot;},{name:&quot;weight&quot;,type:&quot;float&quot;}])}},{&quot;gl-shader&quot;:339,glslify:347}],349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;);e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&amp;&amp;(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d&lt;3;++d)i&amp;&amp;i[d]&lt;0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d&lt;3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&amp;&amp;(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&amp;&amp;r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&amp;&amp;(&quot;bounds&quot;in t&amp;&amp;(this.bounds=t.bounds),&quot;position&quot;in t&amp;&amp;(this.position=t.position),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;colors&quot;in t&amp;&amp;(this.colors=t.colors),&quot;enabled&quot;in t&amp;&amp;(this.enabled=t.enabled),&quot;drawSides&quot;in t&amp;&amp;(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders/index&quot;:348,&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361}],350:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * tubePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(tubePosition, 1.0);\n  vec4 t_position  = view * tubePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = tubePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  gl_Position = projection * view * tubePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]}},{glslify:351}],351:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;),i=t(&quot;gl-vec4&quot;),a=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;],o=function(t,e,r,a){for(var o=0,s=0;s&lt;t.length;s++)for(var l=t[s].velocities,c=0;c&lt;l.length;c++)o=Math.max(o,n.length(l[c]));var u=t.map((function(t){return function(t,e,r,a){for(var o=t.points,s=t.velocities,l=t.divergences,c=[],u=[],f=[],h=[],p=[],d=[],g=0,m=0,v=i.create(),y=i.create(),x=0;x&lt;o.length;x++){var b=o[x],_=s[x],w=l[x];0===e&amp;&amp;(w=.05*r),m=n.length(_)/a,v=i.create(),n.copy(v,_),v[3]=w;for(var T=0;T&lt;8;T++)p[T]=[b[0],b[1],b[2],T];if(h.length&gt;0)for(T=0;T&lt;8;T++){var k=(T+1)%8;c.push(h[T],p[T],p[k],p[k],h[k],h[T]),f.push(y,v,v,v,y,y),d.push(g,m,m,m,g,g);var A=c.length;u.push([A-6,A-5,A-4],[A-3,A-2,A-1])}var M=h;h=p,p=M;var S=y;y=v,v=S;var E=g;g=m,m=E}return{positions:c,cells:u,vectors:f,vertexIntensity:d}}(t,r,a,o)})),f=[],h=[],p=[],d=[];for(s=0;s&lt;u.length;s++){var g=u[s],m=f.length;f=f.concat(g.positions),p=p.concat(g.vectors),d=d.concat(g.vertexIntensity);for(c=0;c&lt;g.cells.length;c++){var v=g.cells[c],y=[];h.push(y);for(var x=0;x&lt;v.length;x++)y.push(v[x]+m)}}return{positions:f,cells:h,vectors:p,vertexIntensity:d,colormap:e}},s=function(t,e){var r,n=t.length;for(r=0;r&lt;n;r++){var i=t[r];if(i===e)return r;if(i&gt;e)return r-1}return r},l=function(t,e,r){return t&lt;e?e:t&gt;r?r:t},c=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;n&lt;r;n++){var i=Math.abs(t[n]-t[n-1]);i&lt;e&amp;&amp;(e=i)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,u=t.tubeSize||1,f=t.absoluteTubeSize,h=t.gridFill||&quot;+x+y+z&quot;,p={};-1!==h.indexOf(&quot;-x&quot;)&amp;&amp;(p.reversedX=!0),-1!==h.indexOf(&quot;-y&quot;)&amp;&amp;(p.reversedY=!0),-1!==h.indexOf(&quot;-z&quot;)&amp;&amp;(p.reversedZ=!0),p.filled=a.indexOf(h.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;));var d=t.getVelocity||function(e){return function(t,e,r){var i=e.vectors,a=e.meshgrid,o=t[0],c=t[1],u=t[2],f=a[0].length,h=a[1].length,p=a[2].length,d=s(a[0],o),g=s(a[1],c),m=s(a[2],u),v=d+1,y=g+1,x=m+1;if(d=l(d,0,f-1),v=l(v,0,f-1),g=l(g,0,h-1),y=l(y,0,h-1),m=l(m,0,p-1),x=l(x,0,p-1),d&lt;0||g&lt;0||m&lt;0||v&gt;f-1||y&gt;h-1||x&gt;p-1)return n.create();var b,_,w,T,k,A,M=a[0][d],S=a[0][v],E=a[1][g],L=a[1][y],C=a[2][m],P=(o-M)/(S-M),I=(c-E)/(L-E),O=(u-C)/(a[2][x]-C);switch(isFinite(P)||(P=.5),isFinite(I)||(I=.5),isFinite(O)||(O=.5),r.reversedX&amp;&amp;(d=f-1-d,v=f-1-v),r.reversedY&amp;&amp;(g=h-1-g,y=h-1-y),r.reversedZ&amp;&amp;(m=p-1-m,x=p-1-x),r.filled){case 5:k=m,A=x,w=g*p,T=y*p,b=d*p*h,_=v*p*h;break;case 4:k=m,A=x,b=d*p,_=v*p,w=g*p*f,T=y*p*f;break;case 3:w=g,T=y,k=m*h,A=x*h,b=d*h*p,_=v*h*p;break;case 2:w=g,T=y,b=d*h,_=v*h,k=m*h*f,A=x*h*f;break;case 1:b=d,_=v,k=m*f,A=x*f,w=g*f*p,T=y*f*p;break;default:b=d,_=v,w=g*f,T=y*f,k=m*f*h,A=x*f*h}var z=i[b+w+k],D=i[b+w+A],R=i[b+T+k],F=i[b+T+A],B=i[_+w+k],N=i[_+w+A],j=i[_+T+k],U=i[_+T+A],V=n.create(),q=n.create(),H=n.create(),G=n.create();n.lerp(V,z,B,P),n.lerp(q,D,N,P),n.lerp(H,R,j,P),n.lerp(G,F,U,P);var Y=n.create(),W=n.create();n.lerp(Y,V,H,I),n.lerp(W,q,G,I);var X=n.create();return n.lerp(X,Y,W,O),X}(e,t,p)},g=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=d(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=d(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=d(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},m=[],v=e[0][0],y=e[0][1],x=e[0][2],b=e[1][0],_=e[1][1],w=e[1][2],T=function(t){var e=t[0],r=t[1],n=t[2];return!(e&lt;v||e&gt;b||r&lt;y||r&gt;_||n&lt;x||n&gt;w)},k=10*n.distance(e[0],e[1])/i,A=k*k,M=1,S=0,E=r.length;E&gt;1&amp;&amp;(M=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,l=0;l&lt;s;l++){var u=t[l],f=u[0],h=u[1],p=u[2];i[f]||(e.push(f),i[f]=!0),a[h]||(r.push(h),a[h]=!0),o[p]||(n.push(p),o[p]=!0)}var d=c(e),g=c(r),m=c(n),v=Math.min(d,g,m);return isFinite(v)?v:1}(r));for(var L=0;L&lt;E;L++){var C=n.create();n.copy(C,r[L]);var P=[C],I=[],O=d(C),z=C;I.push(O);var D=[],R=g(C,O),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F),m.push({points:P,velocities:I,divergences:D});for(var B=0;B&lt;100*i&amp;&amp;P.length&lt;i&amp;&amp;T(C);){B++;var N=n.clone(O),j=n.squaredLength(N);if(0===j)break;if(j&gt;A&amp;&amp;n.scale(N,N,k/Math.sqrt(j)),n.add(N,N,C),O=d(N),n.squaredDistance(z,N)-A&gt;-1e-4*A){P.push(N),z=N,I.push(O);R=g(N,O),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F)}C=N}}var U=o(m,t.colormap,S,M);return f?U.tubeScale=f:(0===S&amp;&amp;(S=1),U.tubeScale=.5*u*M/S),U};var u=t(&quot;./lib/shaders&quot;),f=t(&quot;gl-cone3d&quot;).createMesh;e.exports.createTubeMesh=function(t,e){return f(t,e,{shaders:u,traceType:&quot;streamtube&quot;})}},{&quot;./lib/shaders&quot;:350,&quot;gl-cone3d&quot;:268,&quot;gl-vec3&quot;:380,&quot;gl-vec4&quot;:416}],353:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 localCoordinate = vec3(uv.zw, f.x);\n  worldCoordinate = objectOffset + localCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n  vec4 clipPosition = projection * view * worldPosition;\n  gl_Position = clipPosition;\n  kill = f.y;\n  value = f.z;\n  planeCoordinate = uv.xy;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * worldPosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  lightDirection = lightPosition - cameraCoordinate.xyz;\n  eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  surfaceNormal  = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness) {\n  return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  if (\n    kill &gt; 0.0 ||\n    vColor.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n  ) discard;\n\n  vec3 N = normalize(surfaceNormal);\n  vec3 V = normalize(eyeDirection);\n  vec3 L = normalize(lightDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  //decide how to interpolate color \u2014 in vertex or in fragment\n  vec4 surfaceColor =\n    step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n    step(.5, vertexColor) * vColor;\n\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n  worldCoordinate = objectOffset + dataCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n  vec4 clipPosition = projection * view * worldPosition;\n  clipPosition.z += zOffset;\n\n  gl_Position = clipPosition;\n  value = f + objectOffset.z;\n  kill = -1.0;\n  planeCoordinate = uv.zw;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Don't do lighting for contours\n  surfaceNormal   = vec3(1,0,0);\n  eyeDirection    = vec3(0,1,0);\n  lightDirection  = vec3(0,0,1);\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n  float vh = 255.0 * v;\n  float upper = floor(vh);\n  float lower = fract(vh);\n  return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n  if ((kill &gt; 0.0) ||\n      (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n  vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n  vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n  gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n&quot;]);r.createShader=function(t){var e=n(t,a,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{&quot;gl-shader&quot;:339,glslify:442}],354:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),g=o(e,1,256,e.RGBA,e.UNSIGNED_BYTE);g.minFilter=e.LINEAR,g.magFilter=e.LINEAR;var m=new M(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,g,s,l,f,h,p,d,[0,0,0]),v={levels:[[],[],[]]};for(var w in t)v[w]=t[w];return v.colormap=v.colormap||&quot;jet&quot;,m.update(v),m};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;typedarray-pool&quot;),l=t(&quot;colormap&quot;),c=t(&quot;ndarray-ops&quot;),u=t(&quot;ndarray-pack&quot;),f=t(&quot;ndarray&quot;),h=t(&quot;surface-nets&quot;),p=t(&quot;gl-mat4/multiply&quot;),d=t(&quot;gl-mat4/invert&quot;),g=t(&quot;binary-search-bounds&quot;),m=t(&quot;ndarray-gradient&quot;),v=t(&quot;./lib/shaders&quot;),y=v.createShader,x=v.createContourShader,b=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function A(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t&lt;3;++t){var e=k[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();function M(t,e,r,n,i,a,o,l,c,u,h,p,d,g,m){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=m,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new A([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=M.prototype;S.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:256,format:&quot;rgba&quot;}).map((function(t,n){var i=e?function(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i&lt;1&amp;&amp;(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},S.isTransparent=function(){return this.opacity&lt;1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(t){this.pickId=t};var E=[0,0,0],L={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function C(t,e){var r,n,i,a=e.axes&amp;&amp;e.axes.lastCubeProps.axis||E,o=e.showSurface,s=e.showContour;for(r=0;r&lt;3;++r)for(o=o||e.surfaceProject[r],n=0;n&lt;3;++n)s=s||e.contourProject[r][n];for(r=0;r&lt;3;++r){var l=L.projections[r];for(n=0;n&lt;16;++n)l[n]=0;for(n=0;n&lt;4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]&gt;0)][r],p(l,t.model,l);var c=L.clipBounds[r];for(i=0;i&lt;2;++i)for(n=0;n&lt;3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return L.showSurface=o,L.showContour=s,L}var P={model:w,view:w,projection:w,inverseModel:w.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},I=w.slice(),O=[1,0,0,0,1,0,0,0,1];function z(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=P;n.model=t.model||w,n.view=t.view||w,n.projection=t.projection||w,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i&lt;2;++i)for(var a=n.clipBounds[i],o=0;o&lt;3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=O,n.vertexColor=this.vertexColor;var s=I;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i&lt;3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i&lt;3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i&lt;3;++i){var c=s[12+i];for(o=0;o&lt;3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=C(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&amp;&amp;this._vertexCount&amp;&amp;this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i&lt;3;++i)this.surfaceProject[i]&amp;&amp;this.vertexCount&amp;&amp;(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i&lt;3;++i)for(f.uniforms.permutation=k[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o&lt;this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&amp;&amp;o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&amp;&amp;(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i&lt;3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o&lt;3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=k[o],r.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var g=0;g&lt;this.contourLevels[o].length;++g)g===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==g&amp;&amp;g-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][g]&amp;&amp;(f.uniforms.height=this.contourLevels[o][g],h.draw(r.LINES,this._contourCounts[o][g],this._contourOffsets[o][g]))}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i&lt;3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=k[i],r.lineWidth(this.dynamicWidth[i]*this.pixelRatio),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o&lt;3;++o)this.contourProject[o][i]&amp;&amp;(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}S.draw=function(t){return z.call(this,t,!1)},S.drawTransparent=function(t){return z.call(this,t,!0)};var D={model:w,view:w,projection:w,inverseModel:w,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function R(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function F(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function B(t){if(Array.isArray(t)){if(Array.isArray(t))return[F(t[0]),F(t[1]),F(t[2])];var e=F(t);return[e.slice(),e.slice(),e.slice()]}}S.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=D;r.model=t.model||w,r.view=t.view||w,r.projection=t.projection||w,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.objectOffset=this.objectOffset,r.permutation=O;for(var n=0;n&lt;2;++n)for(var i=r.clipBounds[n],a=0;a&lt;3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=C(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n&lt;3;++n)this.surfaceProject[n]&amp;&amp;(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a&lt;3;++a)for(e.lineWidth(this.contourWidth[a]*this.pixelRatio),s.uniforms.permutation=k[a],n=0;n&lt;this.contourLevels[a].length;++n)this._contourCounts[a][n]&amp;&amp;(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n&lt;3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a&lt;3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=k[a],e.lineWidth(this.contourWidth[a]*this.pixelRatio);for(var c=0;c&lt;this.contourLevels[a].length;++c)this._contourCounts[a][c]&amp;&amp;(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},S.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]&gt;&gt;4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&amp;t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u&lt;2;++u)for(var f=u?a:1-a,h=0;h&lt;2;++h)for(var p=i+u,d=s+h,m=f*(h?l:1-l),v=0;v&lt;3;++v)c[v]+=this._field[v].get(p,d)*m;for(var y=this._pickResult.level,x=0;x&lt;3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]&lt;0)this.contourLevels[x].length&gt;0&amp;&amp;(y[x]=0);else if(y[x]&lt;this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])&gt;Math.abs(_-c[x])&amp;&amp;(y[x]+=1)}for(r.index[0]=a&lt;.5?i:i+1,r.index[1]=l&lt;.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v&lt;3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},S.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},S.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,&quot;contourWidth&quot;in t&amp;&amp;(this.contourWidth=R(t.contourWidth,Number)),&quot;showContour&quot;in t&amp;&amp;(this.showContour=R(t.showContour,Boolean)),&quot;showSurface&quot;in t&amp;&amp;(this.showSurface=!!t.showSurface),&quot;contourTint&quot;in t&amp;&amp;(this.contourTint=R(t.contourTint,Boolean)),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=B(t.contourColor)),&quot;contourProject&quot;in t&amp;&amp;(this.contourProject=R(t.contourProject,(function(t){return R(t,Boolean)}))),&quot;surfaceProject&quot;in t&amp;&amp;(this.surfaceProject=t.surfaceProject),&quot;dynamicColor&quot;in t&amp;&amp;(this.dynamicColor=B(t.dynamicColor)),&quot;dynamicTint&quot;in t&amp;&amp;(this.dynamicTint=R(t.dynamicTint,Number)),&quot;dynamicWidth&quot;in t&amp;&amp;(this.dynamicWidth=R(t.dynamicWidth,Number)),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale),&quot;colorBounds&quot;in t&amp;&amp;(this.colorBounds=t.colorBounds),&quot;vertexColor&quot;in t&amp;&amp;(this.vertexColor=t.vertexColor?1:0),&quot;colormap&quot;in t&amp;&amp;this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&amp;&amp;t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),&quot;field&quot;in t||&quot;coords&quot;in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i&gt;this._field[2].data.length&amp;&amp;(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o&lt;2;++o)this._field[2].size&gt;this._field[o].data.length&amp;&amp;(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error(&quot;gl-surface: invalid coordinates for x/y&quot;);for(o=0;o&lt;2;++o){var c=l[o];for(v=0;v&lt;2;++v)if(c.shape[v]!==a[v])throw new Error(&quot;gl-surface: coords have incorrect shape&quot;);this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error(&quot;gl-surface: invalid ticks&quot;);for(o=0;o&lt;2;++o){var p=u[o];if((Array.isArray(p)||p.length)&amp;&amp;(p=f(p)),p.shape[0]!==a[o])throw new Error(&quot;gl-surface: invalid tick length&quot;);var d=f(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o&lt;2;++o){var g=[0,0];g[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],g,0)}this._field[0].set(0,0,0);for(var v=0;v&lt;a[0];++v)this._field[0].set(v+1,0,v);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),v=0;v&lt;a[1];++v)this._field[1].set(0,v+1,v);this._field[1].set(0,a[1]+1,a[1]-1)}var y=this._field,x=f(s.mallocFloat(3*y[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o&lt;3;++o)m(x.pick(o),y[o],&quot;mirror&quot;);var b=f(s.mallocFloat(3*y[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o&lt;a[0]+2;++o)for(v=0;v&lt;a[1]+2;++v){var _=x.get(0,o,v,0),w=x.get(0,o,v,1),k=x.get(1,o,v,0),A=x.get(1,o,v,1),M=x.get(2,o,v,0),S=x.get(2,o,v,1),E=k*S-A*M,L=M*w-S*_,C=_*A-w*k,P=Math.sqrt(E*E+L*L+C*C);P&lt;1e-8?(P=Math.max(Math.abs(E),Math.abs(L),Math.abs(C)))&lt;1e-8?(C=1,L=E=0,P=1):P=1/P:P=1/Math.sqrt(P),b.set(o,v,0,E*P),b.set(o,v,1,L*P),b.set(o,v,2,C*P)}s.free(x.data);var I=[1/0,1/0,1/0],O=[-1/0,-1/0,-1/0],z=1/0,D=-1/0,F=(a[0]-1)*(a[1]-1)*6,N=s.mallocFloat(n.nextPow2(10*F)),j=0,U=0;for(o=0;o&lt;a[0]-1;++o)t:for(v=0;v&lt;a[1]-1;++v){for(var V=0;V&lt;2;++V)for(var q=0;q&lt;2;++q)for(var H=0;H&lt;3;++H){var G=this._field[H].get(1+o+V,1+v+q);if(isNaN(G)||!isFinite(G))continue t}for(H=0;H&lt;6;++H){var Y=o+T[H][0],W=v+T[H][1],X=this._field[0].get(Y+1,W+1),Z=this._field[1].get(Y+1,W+1);G=this._field[2].get(Y+1,W+1),E=b.get(Y+1,W+1,0),L=b.get(Y+1,W+1,1),C=b.get(Y+1,W+1,2),t.intensity&amp;&amp;(J=t.intensity.get(Y,W));var J=t.intensity?t.intensity.get(Y,W):G+this.objectOffset[2];N[j++]=Y,N[j++]=W,N[j++]=X,N[j++]=Z,N[j++]=G,N[j++]=0,N[j++]=J,N[j++]=E,N[j++]=L,N[j++]=C,I[0]=Math.min(I[0],X+this.objectOffset[0]),I[1]=Math.min(I[1],Z+this.objectOffset[1]),I[2]=Math.min(I[2],G+this.objectOffset[2]),z=Math.min(z,J),O[0]=Math.max(O[0],X+this.objectOffset[0]),O[1]=Math.max(O[1],Z+this.objectOffset[1]),O[2]=Math.max(O[2],G+this.objectOffset[2]),D=Math.max(D,J),U+=1}}for(t.intensityBounds&amp;&amp;(z=+t.intensityBounds[0],D=+t.intensityBounds[1]),o=6;o&lt;j;o+=10)N[o]=(N[o]-z)/(D-z);this._vertexCount=U,this._coordinateBuffer.update(N.subarray(0,j)),s.freeFloat(N),s.free(b.data),this.bounds=[I,O],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===z&amp;&amp;this.intensityBounds[1]===D||(r=!0),this.intensityBounds=[z,D]}if(&quot;levels&quot;in t){var K=t.levels;for(K=Array.isArray(K[0])?K.slice():[[],[],K],o=0;o&lt;3;++o)K[o]=K[o].slice(),K[o].sort((function(t,e){return t-e}));for(o=0;o&lt;3;++o)for(v=0;v&lt;K[o].length;++v)K[o][v]-=this.objectOffset[o];t:for(o=0;o&lt;3;++o){if(K[o].length!==this.contourLevels[o].length){r=!0;break}for(v=0;v&lt;K[o].length;++v)if(K[o][v]!==this.contourLevels[o][v]){r=!0;break t}}this.contourLevels=K}if(r){y=this._field,a=this.shape;for(var Q=[],$=0;$&lt;3;++$){var tt=this.contourLevels[$],et=[],rt=[],nt=[0,0,0];for(o=0;o&lt;tt.length;++o){var it=h(this._field[$],tt[o]);et.push(Q.length/5|0),U=0;t:for(v=0;v&lt;it.cells.length;++v){var at=it.cells[v];for(H=0;H&lt;2;++H){var ot=it.positions[at[H]],st=ot[0],lt=0|Math.floor(st),ct=st-lt,ut=ot[1],ft=0|Math.floor(ut),ht=ut-ft,pt=!1;e:for(var dt=0;dt&lt;3;++dt){nt[dt]=0;var gt=($+dt+1)%3;for(V=0;V&lt;2;++V){var mt=V?ct:1-ct;for(Y=0|Math.min(Math.max(lt+V,0),a[0]),q=0;q&lt;2;++q){var vt=q?ht:1-ht;if(W=0|Math.min(Math.max(ft+q,0),a[1]),G=dt&lt;2?this._field[gt].get(Y,W):(this.intensity.get(Y,W)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(G)||isNaN(G)){pt=!0;break e}var yt=mt*vt;nt[dt]+=yt*G}}}if(pt){if(H&gt;0){for(var xt=0;xt&lt;5;++xt)Q.pop();U-=1}continue t}Q.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[$]=et,this._contourCounts[$]=rt}var bt=s.mallocFloat(Q.length);for(o=0;o&lt;Q.length;++o)bt[o]=Q[o];this._contourBuffer.update(bt),s.freeFloat(bt)}},S.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t&lt;3;++t)s.freeFloat(this._field[t].data)},S.highlight=function(t){var e,r;if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(e=0;e&lt;3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;for(r=this.snapToData?t.dataCoordinate:t.position,e=0;e&lt;3;++e)r[e]-=this.objectOffset[e];if(this.enableDynamic[0]&amp;&amp;r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&amp;&amp;r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&amp;&amp;r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o&lt;3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=h(u,r[o]),g=d.cells,m=d.positions;for(this._dynamicOffsets[o]=n,e=0;e&lt;g.length;++e)for(var v=g[e],y=0;y&lt;2;++y){var x=m[v[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),T=b-_,k=1-T,A=+x[1],M=0|A,S=0|Math.min(M+1,i[1]),E=A-M,L=1-E,C=k*L,P=k*E,I=T*L,O=T*E,z=C*f.get(_,M)+P*f.get(_,S)+I*f.get(w,M)+O*f.get(w,S),D=C*p.get(_,M)+P*p.get(_,S)+I*p.get(w,M)+O*p.get(w,S);if(isNaN(z)||isNaN(D)){y&amp;&amp;(n-=1);break}a[2*n+0]=z,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{&quot;./lib/shaders&quot;:353,&quot;binary-search-bounds&quot;:103,&quot;bit-twiddle&quot;:104,colormap:137,&quot;gl-buffer&quot;:267,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/multiply&quot;:301,&quot;gl-texture2d&quot;:356,&quot;gl-vao&quot;:361,ndarray:483,&quot;ndarray-gradient&quot;:476,&quot;ndarray-ops&quot;:478,&quot;ndarray-pack&quot;:479,&quot;surface-nets&quot;:591,&quot;typedarray-pool&quot;:617}],355:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;regl&quot;),o=t(&quot;gl-util/context&quot;),s=t(&quot;es6-weak-map&quot;),l=t(&quot;color-normalize&quot;),c=t(&quot;font-atlas&quot;),u=t(&quot;typedarray-pool&quot;),f=t(&quot;parse-rect&quot;),h=t(&quot;is-plain-obj&quot;),p=t(&quot;parse-unit&quot;),d=t(&quot;to-px&quot;),g=t(&quot;detect-kerning&quot;),m=t(&quot;object-assign&quot;),v=t(&quot;font-measure&quot;),y=t(&quot;flatten-vertex-data&quot;),x=t(&quot;bit-twiddle&quot;).nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(&quot;div&quot;));w.style.font=&quot;italic small-caps bold condensed 16px/2 cursive&quot;,getComputedStyle(w).fontStretch&amp;&amp;(_=!0),document.body.removeChild(w)}var T=function(t){!function(t){return&quot;function&quot;==typeof t&amp;&amp;t._gl&amp;&amp;t.prop&amp;&amp;t.texture&amp;&amp;t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer=this.regl.buffer({type:&quot;float&quot;,usage:&quot;stream&quot;}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};T.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},width:{offset:0,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},char:t.this(&quot;charBuffer&quot;),position:t.this(&quot;position&quot;)},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(&quot;color&quot;),opacity:t.prop(&quot;opacity&quot;),viewport:t.this(&quot;viewportArray&quot;),scale:t.this(&quot;scale&quot;),align:t.prop(&quot;align&quot;),baseline:t.prop(&quot;baseline&quot;),translate:t.this(&quot;translate&quot;),positionOffset:t.prop(&quot;positionOffset&quot;)},primitive:&quot;points&quot;,viewport:t.this(&quot;viewport&quot;),vert:&quot;\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\t&quot;+(T.normalViewport?&quot;&quot;:&quot;vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);&quot;)+&quot;\n\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ positionOffset))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\t&quot;+(T.normalViewport?&quot;position.y = 1. - position.y;&quot;:&quot;&quot;)+&quot;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}&quot;,frag:&quot;\n\t\t\tprecision highp float;\n\t\t\tuniform sampler2D atlas;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) &gt; halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) &lt; halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}&quot;});return{regl:t,draw:e,atlas:{}}},T.prototype.update=function(t){var e=this;if(&quot;string&quot;==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:&quot;position positions coord coords coordinates&quot;,font:&quot;font fontFace fontface typeface cssFont css-font family fontFamily&quot;,fontSize:&quot;fontSize fontsize size font-size&quot;,text:&quot;text texts chars characters value values symbols&quot;,align:&quot;align alignment textAlign textbaseline&quot;,baseline:&quot;baseline textBaseline textbaseline&quot;,direction:&quot;dir direction textDirection&quot;,color:&quot;color colour fill fill-color fillColor textColor textcolor&quot;,kerning:&quot;kerning kern&quot;,range:&quot;range dataBox&quot;,viewport:&quot;vp viewport viewBox viewbox viewPort&quot;,opacity:&quot;opacity alpha transparency visible visibility opaque&quot;,offset:&quot;offset positionOffset padding shift indent indentation&quot;},!0)).opacity&amp;&amp;(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&amp;&amp;(this.viewport=f(t.viewport),T.normalViewport&amp;&amp;(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&amp;&amp;(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&amp;&amp;(this.kerning=t.kerning),null!=t.offset&amp;&amp;(&quot;number&quot;==typeof t.offset&amp;&amp;(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&amp;&amp;(this.direction=t.direction),t.range&amp;&amp;(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&amp;&amp;(this.scale=t.scale),t.translate&amp;&amp;(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=T.baseFontSize+&quot;px sans-serif&quot;);var r,a=!1,o=!1;if(t.font&amp;&amp;(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if(&quot;string&quot;==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(T.baseFontSize+&quot;px &quot;+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:T.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&amp;&amp;(o=!0,e.fontSize[r]=l),!(e.font[r]&amp;&amp;i==e.font[r].baseString||(a=!0,e.font[r]=T.fonts[i],e.font[r]))){var c=t.family.join(&quot;, &quot;),u=[t.style];t.style!=t.variant&amp;&amp;u.push(t.variant),t.variant!=t.weight&amp;&amp;u.push(t.weight),_&amp;&amp;t.weight!=t.stretch&amp;&amp;u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:&quot;top&quot;,fontSize:T.baseFontSize,fontStyle:u.join(&quot; &quot;)})},T.fonts[i]=e.font[r]}})),(a||o)&amp;&amp;this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&amp;&amp;(t.text=e.text)})),&quot;string&quot;==typeof t.text&amp;&amp;t.position&amp;&amp;t.position.length&gt;2){for(var s=Array(.5*t.position.length),h=0;h&lt;s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b&lt;t.text.length;b++)this.textOffsets[b]=this.textOffsets[b-1]+t.text[b-1].length,this.count+=t.text[b].length,this.counts.push(t.text[b].length);this.text=t.text.join(&quot;&quot;)}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(t,n){T.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a&lt;e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&amp;&amp;(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&amp;&amp;(t.width[o]=T.atlasContext.measureText(o).width/T.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);m(t.kerning,g(t.family,{pairs:s}))}}}))}if(t.position)if(t.position.length&gt;2){for(var w=!t.position[0].length,k=u.mallocFloat(2*this.count),A=0,M=0;A&lt;this.counts.length;A++){var S=this.counts[A];if(w)for(var E=0;E&lt;S;E++)k[M++]=t.position[2*A],k[M++]=t.position[2*A+1];else for(var L=0;L&lt;S;L++)k[M++]=t.position[A][0],k[M++]=t.position[A][1]}this.position.call?this.position({type:&quot;float&quot;,data:k}):this.position=this.regl.buffer({type:&quot;float&quot;,data:k}),u.freeFloat(k)}else this.position.destroy&amp;&amp;this.position.destroy(),this.position={constant:t.position};if(t.text||a){var C=u.mallocUint8(this.count),P=u.mallocFloat(2*this.count);this.textWidth=[];for(var I=0,O=0;I&lt;this.counts.length;I++){for(var z=this.counts[I],D=this.font[I]||this.font[0],R=this.fontAtlas[I]||this.fontAtlas[0],F=0;F&lt;z;F++){var B=this.text.charAt(O),N=this.text.charAt(O-1);if(C[O]=R.ids[B],P[2*O]=D.width[B],F){var j=P[2*O-2],U=P[2*O],V=P[2*O-1]+.5*j+.5*U;if(this.kerning){var q=D.kerning[N+B];q&amp;&amp;(V+=.001*q)}P[2*O+1]=V}else P[2*O+1]=.5*P[2*O];O++}this.textWidth.push(P.length?.5*P[2*O-2]+P[2*O-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:C,type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer({data:P,type:&quot;float&quot;,usage:&quot;stream&quot;}),u.freeUint8(C),u.freeFloat(P),r.length&amp;&amp;this.font.forEach((function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(T.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&amp;&amp;n.texture({data:c({canvas:T.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})}))}if(t.align&amp;&amp;(this.align=t.align,this.alignOffset=this.textWidth.map((function(t,r){var n=Array.isArray(e.align)?e.align.length&gt;1?e.align[r]:e.align[0]:e.align;if(&quot;number&quot;==typeof n)return n;switch(n){case&quot;right&quot;:case&quot;end&quot;:return-t;case&quot;center&quot;:case&quot;centre&quot;:case&quot;middle&quot;:return.5*-t}return 0}))),null==this.baseline&amp;&amp;null==t.baseline&amp;&amp;(t.baseline=0),null!=t.baseline&amp;&amp;(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=&quot;number&quot;==typeof t?t-n.baseline:-n[t],T.normalViewport||(i*=-1),i}))),null!=t.color)if(t.color||(t.color=&quot;transparent&quot;),&quot;string&quot;!=typeof t.color&amp;&amp;isNaN(t.color)){var H;if(&quot;number&quot;==typeof t.color[0]&amp;&amp;t.color.length&gt;this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var Y=(t.color.subarray||t.color.slice).bind(t.color),W=0;W&lt;G;W+=4)H.set(l(Y(W,W+4),&quot;uint8&quot;),W)}else{var X=t.color.length;H=u.mallocUint8(4*X);for(var Z=0;Z&lt;X;Z++)H.set(l(t.color[Z]||0,&quot;uint8&quot;),4*Z)}this.color=H}else this.color=l(t.color,&quot;uint8&quot;);if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length&gt;4||this.baselineOffset.length&gt;1||this.align&amp;&amp;this.align.length&gt;1||this.fontAtlas.length&gt;1||this.positionOffset.length&gt;2){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var K=0;K&lt;this.batch.length;K++)this.batch[K]={count:this.counts.length&gt;1?this.counts[K]:this.counts[0],offset:this.textOffsets.length&gt;1?this.textOffsets[K]:this.textOffsets[0],color:this.color?this.color.length&lt;=4?this.color:this.color.subarray(4*K,4*K+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[K]:this.opacity,baseline:null!=this.baselineOffset[K]?this.baselineOffset[K]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[K]?this.alignOffset[K]:this.alignOffset[0]:0,atlas:this.fontAtlas[K]||this.fontAtlas[0],positionOffset:this.positionOffset.length&gt;2?this.positionOffset.subarray(2*K,2*K+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text=&quot;&quot;,T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.normalViewport=!1,T.maxAtlasSize=1024,T.atlasCanvas=document.createElement(&quot;canvas&quot;),T.atlasContext=T.atlasCanvas.getContext(&quot;2d&quot;,{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},{&quot;bit-twiddle&quot;:104,&quot;color-normalize&quot;:131,&quot;css-font&quot;:150,&quot;detect-kerning&quot;:181,&quot;es6-weak-map&quot;:241,&quot;flatten-vertex-data&quot;:252,&quot;font-atlas&quot;:253,&quot;font-measure&quot;:254,&quot;gl-util/context&quot;:357,&quot;is-plain-obj&quot;:457,&quot;object-assign&quot;:487,&quot;parse-rect&quot;:492,&quot;parse-unit&quot;:494,&quot;pick-by-alias&quot;:498,regl:540,&quot;to-px&quot;:600,&quot;typedarray-pool&quot;:617}],356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;typedarray-pool&quot;);e.exports=function(t){if(arguments.length&lt;=1)throw new Error(&quot;gl-texture2d: Missing arguments for texture2d constructor&quot;);o||c(t);if(&quot;number&quot;==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(&quot;object&quot;==typeof arguments[1]){var e=arguments[1],r=u(e)?e:e.raw;if(r)return y(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&amp;&amp;e.data&amp;&amp;e.stride)return x(t,e)}throw new Error(&quot;gl-texture2d: Invalid arguments for texture2d constructor&quot;)};var o=null,s=null,l=null;function c(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function u(t){return&quot;undefined&quot;!=typeof HTMLCanvasElement&amp;&amp;t instanceof HTMLCanvasElement||&quot;undefined&quot;!=typeof HTMLImageElement&amp;&amp;t instanceof HTMLImageElement||&quot;undefined&quot;!=typeof HTMLVideoElement&amp;&amp;t instanceof HTMLVideoElement||&quot;undefined&quot;!=typeof ImageData&amp;&amp;t instanceof ImageData}var f=function(t,e){i.muls(t,e,255)};function h(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function p(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var d=p.prototype;function g(t,e){return 3===t.length?1===e[2]&amp;&amp;e[1]===t[0]*t[2]&amp;&amp;e[0]===t[2]:1===e[0]&amp;&amp;e[1]===t[0]}function m(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;a||r&lt;0||r&gt;a)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;);if(i===t.FLOAT&amp;&amp;!t.getExtension(&quot;OES_texture_float&quot;))throw new Error(&quot;gl-texture2d: Floating point textures not supported on this platform&quot;);var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new p(t,o,e,r,n,i)}function y(t,e,r,n,i,a){var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new p(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]&lt;0||o[0]&gt;s||o[1]&lt;0||o[1]&gt;s)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);var l=g(o,e.stride.slice()),c=0;&quot;float32&quot;===r?c=t.FLOAT:&quot;float64&quot;===r?(c=t.FLOAT,l=!1,r=&quot;float32&quot;):&quot;uint8&quot;===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=&quot;uint8&quot;);var u,h,d=0;if(2===o.length)d=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===o[2])d=t.ALPHA;else if(2===o[2])d=t.LUMINANCE_ALPHA;else if(3===o[2])d=t.RGB;else{if(4!==o[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);d=t.RGBA}}c!==t.FLOAT||t.getExtension(&quot;OES_texture_float&quot;)||(c=t.UNSIGNED_BYTE,l=!1);var v=e.size;if(l)u=0===e.offset&amp;&amp;e.data.length===v?e.data:e.data.subarray(e.offset,e.offset+v);else{var y=[o[2],o[2]*o[0],1];h=a.malloc(v,r);var x=n(h,o,y,0);&quot;float32&quot;!==r&amp;&amp;&quot;float64&quot;!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):f(x,e),u=h.subarray(0,v)}var b=m(t);return t.texImage2D(t.TEXTURE_2D,0,d,o[0],o[1],0,d,c,u),l||a.free(h),new p(t,b,o[0],o[1],d,c)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(&quot;EXT_texture_filter_anisotropic&quot;);r&amp;&amp;this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(&quot;gl-texture2d: Must specify wrap mode for rows and columns&quot;);for(var e=0;e&lt;2;++e)if(l.indexOf(t[e])&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;)}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),d.bind=function(t){var e=this.gl;return void 0!==t&amp;&amp;e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t&gt;0;++e,t&gt;&gt;&gt;=1)this._mipLevels.indexOf(e)&lt;0&amp;&amp;this._mipLevels.push(e)},d.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)&lt;0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&amp;&amp;t.stride&amp;&amp;t.data))throw new Error(&quot;gl-texture2d: Unsupported data type&quot;);if(t.shape.length&lt;2||e+t.shape[1]&gt;this._shape[1]&gt;&gt;&gt;o||r+t.shape[0]&gt;this._shape[0]&gt;&gt;&gt;o||e&lt;0||r&lt;0)throw new Error(&quot;gl-texture2d: Texture dimensions are out of bounds&quot;);!function(t,e,r,o,s,l,c,u){var h=u.dtype,p=u.shape.slice();if(p.length&lt;2||p.length&gt;3)throw new Error(&quot;gl-texture2d: Invalid ndarray, must be 2d or 3d&quot;);var d=0,m=0,v=g(p,u.stride.slice());&quot;float32&quot;===h?d=t.FLOAT:&quot;float64&quot;===h?(d=t.FLOAT,v=!1,h=&quot;float32&quot;):&quot;uint8&quot;===h?d=t.UNSIGNED_BYTE:(d=t.UNSIGNED_BYTE,v=!1,h=&quot;uint8&quot;);if(2===p.length)m=t.LUMINANCE,p=[p[0],p[1],1],u=n(u.data,p,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==p.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===p[2])m=t.ALPHA;else if(2===p[2])m=t.LUMINANCE_ALPHA;else if(3===p[2])m=t.RGB;else{if(4!==p[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);m=t.RGBA}p[2]}m!==t.LUMINANCE&amp;&amp;m!==t.ALPHA||s!==t.LUMINANCE&amp;&amp;s!==t.ALPHA||(m=s);if(m!==s)throw new Error(&quot;gl-texture2d: Incompatible texture format for setPixels&quot;);var y=u.size,x=c.indexOf(o)&lt;0;x&amp;&amp;c.push(o);if(d===l&amp;&amp;v)0===u.offset&amp;&amp;u.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);d===t.FLOAT&amp;&amp;l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:483,&quot;ndarray-ops&quot;:478,&quot;typedarray-pool&quot;:617}],357:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return&quot;function&quot;==typeof t.getContext&amp;&amp;&quot;width&quot;in t&amp;&amp;&quot;height&quot;in t}function o(){var t=document.createElement(&quot;canvas&quot;);return t.style.position=&quot;absolute&quot;,t.style.top=0,t.style.left=0,t}e.exports=function(t){var e;if(t?&quot;string&quot;==typeof t&amp;&amp;(t={container:t}):t={},a(t)?t={container:t}:t=&quot;string&quot;==typeof(e=t).nodeName&amp;&amp;&quot;function&quot;==typeof e.appendChild&amp;&amp;&quot;function&quot;==typeof e.getBoundingClientRect?{container:t}:function(t){return&quot;function&quot;==typeof t.drawArrays||&quot;function&quot;==typeof t.drawElements}(t)?{gl:t}:n(t,{container:&quot;container target element el canvas holder parent parentNode wrapper use ref root node&quot;,gl:&quot;gl context webgl glContext&quot;,attrs:&quot;attributes attrs contextAttributes&quot;,pixelRatio:&quot;pixelRatio pxRatio px ratio pxratio pixelratio&quot;,width:&quot;w width&quot;,height:&quot;h height&quot;},!0),t.pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&amp;&amp;(t.container=t.canvas.parentNode),t.container){if(&quot;string&quot;==typeof t.container){var s=document.querySelector(t.container);if(!s)throw Error(&quot;Element &quot;+t.container+&quot; is not found&quot;);t.container=s}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=o(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if(&quot;undefined&quot;==typeof document)throw Error(&quot;Not DOM environment. Use headless-gl.&quot;);t.container=document.body||document.documentElement,t.canvas=o(),t.container.appendChild(t.canvas),i(t)}return t.gl||[&quot;webgl&quot;,&quot;experimental-webgl&quot;,&quot;webgl-experimental&quot;].some((function(e){try{t.gl=t.canvas.getContext(e,t.attrs)}catch(t){}return t.gl})),t.gl}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;pick-by-alias&quot;:498}],358:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length&gt;n)throw new Error(&quot;gl-vao: Too many vertex attributes&quot;);for(var i=0;i&lt;r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(&quot;number&quot;==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(&quot;gl-vao: Invalid vertex attribute&quot;);t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i&lt;n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(i=0;i&lt;n;++i)t.disableVertexAttribArray(i)}}},{}],359:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{&quot;./do-bind.js&quot;:358}],360:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t&lt;this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a&lt;t.length;++a){var o=t[a];&quot;number&quot;==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&amp;&amp;this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{&quot;./do-bind.js&quot;:358}],361:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/vao-native.js&quot;),i=t(&quot;./lib/vao-emulated.js&quot;);function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(&quot;OES_vertex_array_object&quot;);return(s=l?n(t,l):i(t)).update(e,r,o),s}},{&quot;./lib/vao-emulated.js&quot;:359,&quot;./lib/vao-native.js&quot;:360}],362:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],363:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s&gt;1?0:Math.acos(s)};var n=t(&quot;./fromValues&quot;),i=t(&quot;./normalize&quot;),a=t(&quot;./dot&quot;)},{&quot;./dot&quot;:373,&quot;./fromValues&quot;:379,&quot;./normalize&quot;:390}],364:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],365:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],366:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],367:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],368:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],369:[function(t,e,r){e.exports=t(&quot;./distance&quot;)},{&quot;./distance&quot;:370}],370:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],371:[function(t,e,r){e.exports=t(&quot;./divide&quot;)},{&quot;./divide&quot;:372}],372:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],373:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],374:[function(t,e,r){e.exports=1e-6},{}],375:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)&lt;=n*Math.max(1,Math.abs(r),Math.abs(o))&amp;&amp;Math.abs(i-s)&lt;=n*Math.max(1,Math.abs(i),Math.abs(s))&amp;&amp;Math.abs(a-l)&lt;=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(&quot;./epsilon&quot;)},{&quot;./epsilon&quot;:374}],376:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&amp;&amp;t[1]===e[1]&amp;&amp;t[2]===e[2]}},{}],377:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],378:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s&lt;l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(&quot;./create&quot;)()},{&quot;./create&quot;:367}],379:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],380:[function(t,e,r){e.exports={EPSILON:t(&quot;./epsilon&quot;),create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),angle:t(&quot;./angle&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),equals:t(&quot;./equals&quot;),exactEquals:t(&quot;./exactEquals&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),sub:t(&quot;./sub&quot;),multiply:t(&quot;./multiply&quot;),mul:t(&quot;./mul&quot;),divide:t(&quot;./divide&quot;),div:t(&quot;./div&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),floor:t(&quot;./floor&quot;),ceil:t(&quot;./ceil&quot;),round:t(&quot;./round&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),dist:t(&quot;./dist&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),sqrDist:t(&quot;./sqrDist&quot;),length:t(&quot;./length&quot;),len:t(&quot;./len&quot;),squaredLength:t(&quot;./squaredLength&quot;),sqrLen:t(&quot;./sqrLen&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),cross:t(&quot;./cross&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformMat3:t(&quot;./transformMat3&quot;),transformQuat:t(&quot;./transformQuat&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),forEach:t(&quot;./forEach&quot;)}},{&quot;./add&quot;:362,&quot;./angle&quot;:363,&quot;./ceil&quot;:364,&quot;./clone&quot;:365,&quot;./copy&quot;:366,&quot;./create&quot;:367,&quot;./cross&quot;:368,&quot;./dist&quot;:369,&quot;./distance&quot;:370,&quot;./div&quot;:371,&quot;./divide&quot;:372,&quot;./dot&quot;:373,&quot;./epsilon&quot;:374,&quot;./equals&quot;:375,&quot;./exactEquals&quot;:376,&quot;./floor&quot;:377,&quot;./forEach&quot;:378,&quot;./fromValues&quot;:379,&quot;./inverse&quot;:381,&quot;./len&quot;:382,&quot;./length&quot;:383,&quot;./lerp&quot;:384,&quot;./max&quot;:385,&quot;./min&quot;:386,&quot;./mul&quot;:387,&quot;./multiply&quot;:388,&quot;./negate&quot;:389,&quot;./normalize&quot;:390,&quot;./random&quot;:391,&quot;./rotateX&quot;:392,&quot;./rotateY&quot;:393,&quot;./rotateZ&quot;:394,&quot;./round&quot;:395,&quot;./scale&quot;:396,&quot;./scaleAndAdd&quot;:397,&quot;./set&quot;:398,&quot;./sqrDist&quot;:399,&quot;./sqrLen&quot;:400,&quot;./squaredDistance&quot;:401,&quot;./squaredLength&quot;:402,&quot;./sub&quot;:403,&quot;./subtract&quot;:404,&quot;./transformMat3&quot;:405,&quot;./transformMat4&quot;:406,&quot;./transformQuat&quot;:407}],381:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],382:[function(t,e,r){e.exports=t(&quot;./length&quot;)},{&quot;./length&quot;:383}],383:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],384:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],385:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],386:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],387:[function(t,e,r){e.exports=t(&quot;./multiply&quot;)},{&quot;./multiply&quot;:388}],388:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],389:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],390:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a&gt;0&amp;&amp;(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],391:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],392:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],393:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],394:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],395:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],396:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],397:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],398:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],399:[function(t,e,r){e.exports=t(&quot;./squaredDistance&quot;)},{&quot;./squaredDistance&quot;:401}],400:[function(t,e,r){e.exports=t(&quot;./squaredLength&quot;)},{&quot;./squaredLength&quot;:402}],401:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],402:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],403:[function(t,e,r){e.exports=t(&quot;./subtract&quot;)},{&quot;./subtract&quot;:404}],404:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],405:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],406:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],407:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],408:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],409:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],410:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],411:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],412:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],413:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],414:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],415:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],416:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),multiply:t(&quot;./multiply&quot;),divide:t(&quot;./divide&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),length:t(&quot;./length&quot;),squaredLength:t(&quot;./squaredLength&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformQuat:t(&quot;./transformQuat&quot;)}},{&quot;./add&quot;:408,&quot;./clone&quot;:409,&quot;./copy&quot;:410,&quot;./create&quot;:411,&quot;./distance&quot;:412,&quot;./divide&quot;:413,&quot;./dot&quot;:414,&quot;./fromValues&quot;:415,&quot;./inverse&quot;:417,&quot;./length&quot;:418,&quot;./lerp&quot;:419,&quot;./max&quot;:420,&quot;./min&quot;:421,&quot;./multiply&quot;:422,&quot;./negate&quot;:423,&quot;./normalize&quot;:424,&quot;./random&quot;:425,&quot;./scale&quot;:426,&quot;./scaleAndAdd&quot;:427,&quot;./set&quot;:428,&quot;./squaredDistance&quot;:429,&quot;./squaredLength&quot;:430,&quot;./subtract&quot;:431,&quot;./transformMat4&quot;:432,&quot;./transformQuat&quot;:433}],417:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],418:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],419:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],420:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],421:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],422:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],423:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],424:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o&gt;0&amp;&amp;(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],425:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;./scale&quot;);e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{&quot;./normalize&quot;:424,&quot;./scale&quot;:426}],426:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],427:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],428:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],429:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],430:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],431:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],432:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],433:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],434:[function(t,e,r){var n=t(&quot;glsl-tokenizer&quot;),i=t(&quot;atob-lite&quot;);e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r&lt;e.length;r++){var a=e[r];if(&quot;preprocessor&quot;===a.type){var o=a.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(o&amp;&amp;o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{&quot;atob-lite&quot;:84,&quot;glsl-tokenizer&quot;:441}],435:[function(t,e,r){e.exports=function(t){var e,r,c,u=0,f=0,h=999,p=[],d=[],g=1,m=0,v=0,y=!1,x=!1,b=&quot;&quot;,_=a,w=n;&quot;300 es&quot;===(t=t||{}).version&amp;&amp;(_=s,w=o);var T={},k={};for(u=0;u&lt;_.length;u++)T[_[u]]=!0;for(u=0;u&lt;w.length;u++)k[w[u]]=!0;return function(t){return d=[],null!==t?function(t){u=0,t.toString&amp;&amp;(t=t.toString());var r;b+=t.replace(/\r\n/g,&quot;\n&quot;),c=b.length;for(;e=b[u],u&lt;c;){switch(r=u,h){case 0:u=L();break;case 1:case 2:u=E();break;case 3:u=C();break;case 4:u=O();break;case 11:u=I();break;case 5:u=z();break;case 9999:u=D();break;case 9:u=S();break;case 999:u=M()}if(r!==u)switch(b[r]){case&quot;\n&quot;:m=0,++g;break;default:++m}}return f+=u,b=b.slice(u),d}(t):function(t){p.length&amp;&amp;A(p.join(&quot;&quot;));return h=10,A(&quot;(eof)&quot;),d}()};function A(t){t.length&amp;&amp;d.push({type:l[h],data:t,position:v,line:g,column:m})}function M(){return p=p.length?[]:p,&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e?(v=f+u-1,h=0,r=e,u+1):&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e?(v=f+u-1,h=1,r=e,u+1):&quot;#&quot;===e?(h=2,v=f+u,u):/\s/.test(e)?(h=9,v=f+u,u):(y=/\d/.test(e),x=/[^\w_]/.test(e),v=f+u,h=y?4:x?3:9999,u)}function S(){return/[^\s]/g.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function E(){return&quot;\r&quot;!==e&amp;&amp;&quot;\n&quot;!==e||&quot;\\&quot;===r?(p.push(e),r=e,u+1):(A(p.join(&quot;&quot;)),h=999,u)}function L(){return&quot;/&quot;===e&amp;&amp;&quot;*&quot;===r?(p.push(e),A(p.join(&quot;&quot;)),h=999,u+1):(p.push(e),r=e,u+1)}function C(){if(&quot;.&quot;===r&amp;&amp;/\d/.test(e))return h=5,u;if(&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e)return h=0,u;if(&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e)return h=1,u;if(&quot;.&quot;===e&amp;&amp;p.length){for(;P(p););return h=5,u}if(&quot;;&quot;===e||&quot;)&quot;===e||&quot;(&quot;===e){if(p.length)for(;P(p););return A(e),h=999,u+1}var t=2===p.length&amp;&amp;&quot;=&quot;!==e;if(/[\w_\d\s]/.test(e)||t){for(;P(p););return h=999,u}return p.push(e),r=e,u+1}function P(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(&quot;&quot;)),r=i[e],-1===e){if(n--+t.length&gt;0)continue;r=t.slice(0,1).join(&quot;&quot;)}return A(r),v+=r.length,(p=p.slice(r.length)).length}}function I(){return/[^a-fA-F0-9]/.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function O(){return&quot;.&quot;===e||/[eE]/.test(e)?(p.push(e),h=5,r=e,u+1):&quot;x&quot;===e&amp;&amp;1===p.length&amp;&amp;&quot;0&quot;===p[0]?(h=11,p.push(e),r=e,u+1):/[^\d]/.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function z(){return&quot;f&quot;===e&amp;&amp;(p.push(e),r=e,u+=1),/[eE]/.test(e)?(p.push(e),r=e,u+1):(&quot;-&quot;!==e&amp;&amp;&quot;+&quot;!==e||!/[eE]/.test(r))&amp;&amp;/[^\d]/.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function D(){if(/[^\d\w_]/.test(e)){var t=p.join(&quot;&quot;);return h=k[t]?8:T[t]?7:6,A(p.join(&quot;&quot;)),h=999,u}return p.push(e),r=e,u+1}};var n=t(&quot;./lib/literals&quot;),i=t(&quot;./lib/operators&quot;),a=t(&quot;./lib/builtins&quot;),o=t(&quot;./lib/literals-300es&quot;),s=t(&quot;./lib/builtins-300es&quot;),l=[&quot;block-comment&quot;,&quot;line-comment&quot;,&quot;preprocessor&quot;,&quot;operator&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;ident&quot;,&quot;builtin&quot;,&quot;keyword&quot;,&quot;whitespace&quot;,&quot;eof&quot;,&quot;integer&quot;]},{&quot;./lib/builtins&quot;:437,&quot;./lib/builtins-300es&quot;:436,&quot;./lib/literals&quot;:439,&quot;./lib/literals-300es&quot;:438,&quot;./lib/operators&quot;:440}],436:[function(t,e,r){var n=t(&quot;./builtins&quot;);n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat([&quot;gl_VertexID&quot;,&quot;gl_InstanceID&quot;,&quot;gl_Position&quot;,&quot;gl_PointSize&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FragDepth&quot;,&quot;gl_PointCoord&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexUniformVectors&quot;,&quot;gl_MaxVertexOutputVectors&quot;,&quot;gl_MaxFragmentInputVectors&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxFragmentUniformVectors&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MinProgramTexelOffset&quot;,&quot;gl_MaxProgramTexelOffset&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_DepthRange&quot;,&quot;trunc&quot;,&quot;round&quot;,&quot;roundEven&quot;,&quot;isnan&quot;,&quot;isinf&quot;,&quot;floatBitsToInt&quot;,&quot;floatBitsToUint&quot;,&quot;intBitsToFloat&quot;,&quot;uintBitsToFloat&quot;,&quot;packSnorm2x16&quot;,&quot;unpackSnorm2x16&quot;,&quot;packUnorm2x16&quot;,&quot;unpackUnorm2x16&quot;,&quot;packHalf2x16&quot;,&quot;unpackHalf2x16&quot;,&quot;outerProduct&quot;,&quot;transpose&quot;,&quot;determinant&quot;,&quot;inverse&quot;,&quot;texture&quot;,&quot;textureSize&quot;,&quot;textureProj&quot;,&quot;textureLod&quot;,&quot;textureOffset&quot;,&quot;texelFetch&quot;,&quot;texelFetchOffset&quot;,&quot;textureProjOffset&quot;,&quot;textureLodOffset&quot;,&quot;textureProjLod&quot;,&quot;textureProjLodOffset&quot;,&quot;textureGrad&quot;,&quot;textureGradOffset&quot;,&quot;textureProjGrad&quot;,&quot;textureProjGradOffset&quot;])},{&quot;./builtins&quot;:437}],437:[function(t,e,r){e.exports=[&quot;abs&quot;,&quot;acos&quot;,&quot;all&quot;,&quot;any&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;clamp&quot;,&quot;cos&quot;,&quot;cross&quot;,&quot;dFdx&quot;,&quot;dFdy&quot;,&quot;degrees&quot;,&quot;distance&quot;,&quot;dot&quot;,&quot;equal&quot;,&quot;exp&quot;,&quot;exp2&quot;,&quot;faceforward&quot;,&quot;floor&quot;,&quot;fract&quot;,&quot;gl_BackColor&quot;,&quot;gl_BackLightModelProduct&quot;,&quot;gl_BackLightProduct&quot;,&quot;gl_BackMaterial&quot;,&quot;gl_BackSecondaryColor&quot;,&quot;gl_ClipPlane&quot;,&quot;gl_ClipVertex&quot;,&quot;gl_Color&quot;,&quot;gl_DepthRange&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_EyePlaneQ&quot;,&quot;gl_EyePlaneR&quot;,&quot;gl_EyePlaneS&quot;,&quot;gl_EyePlaneT&quot;,&quot;gl_Fog&quot;,&quot;gl_FogCoord&quot;,&quot;gl_FogFragCoord&quot;,&quot;gl_FogParameters&quot;,&quot;gl_FragColor&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FragData&quot;,&quot;gl_FragDepth&quot;,&quot;gl_FragDepthEXT&quot;,&quot;gl_FrontColor&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FrontLightModelProduct&quot;,&quot;gl_FrontLightProduct&quot;,&quot;gl_FrontMaterial&quot;,&quot;gl_FrontSecondaryColor&quot;,&quot;gl_LightModel&quot;,&quot;gl_LightModelParameters&quot;,&quot;gl_LightModelProducts&quot;,&quot;gl_LightProducts&quot;,&quot;gl_LightSource&quot;,&quot;gl_LightSourceParameters&quot;,&quot;gl_MaterialParameters&quot;,&quot;gl_MaxClipPlanes&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MaxFragmentUniformComponents&quot;,&quot;gl_MaxLights&quot;,&quot;gl_MaxTextureCoords&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxTextureUnits&quot;,&quot;gl_MaxVaryingFloats&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxVertexUniformComponents&quot;,&quot;gl_ModelViewMatrix&quot;,&quot;gl_ModelViewMatrixInverse&quot;,&quot;gl_ModelViewMatrixInverseTranspose&quot;,&quot;gl_ModelViewMatrixTranspose&quot;,&quot;gl_ModelViewProjectionMatrix&quot;,&quot;gl_ModelViewProjectionMatrixInverse&quot;,&quot;gl_ModelViewProjectionMatrixInverseTranspose&quot;,&quot;gl_ModelViewProjectionMatrixTranspose&quot;,&quot;gl_MultiTexCoord0&quot;,&quot;gl_MultiTexCoord1&quot;,&quot;gl_MultiTexCoord2&quot;,&quot;gl_MultiTexCoord3&quot;,&quot;gl_MultiTexCoord4&quot;,&quot;gl_MultiTexCoord5&quot;,&quot;gl_MultiTexCoord6&quot;,&quot;gl_MultiTexCoord7&quot;,&quot;gl_Normal&quot;,&quot;gl_NormalMatrix&quot;,&quot;gl_NormalScale&quot;,&quot;gl_ObjectPlaneQ&quot;,&quot;gl_ObjectPlaneR&quot;,&quot;gl_ObjectPlaneS&quot;,&quot;gl_ObjectPlaneT&quot;,&quot;gl_Point&quot;,&quot;gl_PointCoord&quot;,&quot;gl_PointParameters&quot;,&quot;gl_PointSize&quot;,&quot;gl_Position&quot;,&quot;gl_ProjectionMatrix&quot;,&quot;gl_ProjectionMatrixInverse&quot;,&quot;gl_ProjectionMatrixInverseTranspose&quot;,&quot;gl_ProjectionMatrixTranspose&quot;,&quot;gl_SecondaryColor&quot;,&quot;gl_TexCoord&quot;,&quot;gl_TextureEnvColor&quot;,&quot;gl_TextureMatrix&quot;,&quot;gl_TextureMatrixInverse&quot;,&quot;gl_TextureMatrixInverseTranspose&quot;,&quot;gl_TextureMatrixTranspose&quot;,&quot;gl_Vertex&quot;,&quot;greaterThan&quot;,&quot;greaterThanEqual&quot;,&quot;inversesqrt&quot;,&quot;length&quot;,&quot;lessThan&quot;,&quot;lessThanEqual&quot;,&quot;log&quot;,&quot;log2&quot;,&quot;matrixCompMult&quot;,&quot;max&quot;,&quot;min&quot;,&quot;mix&quot;,&quot;mod&quot;,&quot;normalize&quot;,&quot;not&quot;,&quot;notEqual&quot;,&quot;pow&quot;,&quot;radians&quot;,&quot;reflect&quot;,&quot;refract&quot;,&quot;sign&quot;,&quot;sin&quot;,&quot;smoothstep&quot;,&quot;sqrt&quot;,&quot;step&quot;,&quot;tan&quot;,&quot;texture2D&quot;,&quot;texture2DLod&quot;,&quot;texture2DProj&quot;,&quot;texture2DProjLod&quot;,&quot;textureCube&quot;,&quot;textureCubeLod&quot;,&quot;texture2DLodEXT&quot;,&quot;texture2DProjLodEXT&quot;,&quot;textureCubeLodEXT&quot;,&quot;texture2DGradEXT&quot;,&quot;texture2DProjGradEXT&quot;,&quot;textureCubeGradEXT&quot;]},{}],438:[function(t,e,r){var n=t(&quot;./literals&quot;);e.exports=n.slice().concat([&quot;layout&quot;,&quot;centroid&quot;,&quot;smooth&quot;,&quot;case&quot;,&quot;mat2x2&quot;,&quot;mat2x3&quot;,&quot;mat2x4&quot;,&quot;mat3x2&quot;,&quot;mat3x3&quot;,&quot;mat3x4&quot;,&quot;mat4x2&quot;,&quot;mat4x3&quot;,&quot;mat4x4&quot;,&quot;uvec2&quot;,&quot;uvec3&quot;,&quot;uvec4&quot;,&quot;samplerCubeShadow&quot;,&quot;sampler2DArray&quot;,&quot;sampler2DArrayShadow&quot;,&quot;isampler2D&quot;,&quot;isampler3D&quot;,&quot;isamplerCube&quot;,&quot;isampler2DArray&quot;,&quot;usampler2D&quot;,&quot;usampler3D&quot;,&quot;usamplerCube&quot;,&quot;usampler2DArray&quot;,&quot;coherent&quot;,&quot;restrict&quot;,&quot;readonly&quot;,&quot;writeonly&quot;,&quot;resource&quot;,&quot;atomic_uint&quot;,&quot;noperspective&quot;,&quot;patch&quot;,&quot;sample&quot;,&quot;subroutine&quot;,&quot;common&quot;,&quot;partition&quot;,&quot;active&quot;,&quot;filter&quot;,&quot;image1D&quot;,&quot;image2D&quot;,&quot;image3D&quot;,&quot;imageCube&quot;,&quot;iimage1D&quot;,&quot;iimage2D&quot;,&quot;iimage3D&quot;,&quot;iimageCube&quot;,&quot;uimage1D&quot;,&quot;uimage2D&quot;,&quot;uimage3D&quot;,&quot;uimageCube&quot;,&quot;image1DArray&quot;,&quot;image2DArray&quot;,&quot;iimage1DArray&quot;,&quot;iimage2DArray&quot;,&quot;uimage1DArray&quot;,&quot;uimage2DArray&quot;,&quot;image1DShadow&quot;,&quot;image2DShadow&quot;,&quot;image1DArrayShadow&quot;,&quot;image2DArrayShadow&quot;,&quot;imageBuffer&quot;,&quot;iimageBuffer&quot;,&quot;uimageBuffer&quot;,&quot;sampler1DArray&quot;,&quot;sampler1DArrayShadow&quot;,&quot;isampler1D&quot;,&quot;isampler1DArray&quot;,&quot;usampler1D&quot;,&quot;usampler1DArray&quot;,&quot;isampler2DRect&quot;,&quot;usampler2DRect&quot;,&quot;samplerBuffer&quot;,&quot;isamplerBuffer&quot;,&quot;usamplerBuffer&quot;,&quot;sampler2DMS&quot;,&quot;isampler2DMS&quot;,&quot;usampler2DMS&quot;,&quot;sampler2DMSArray&quot;,&quot;isampler2DMSArray&quot;,&quot;usampler2DMSArray&quot;])},{&quot;./literals&quot;:439}],439:[function(t,e,r){e.exports=[&quot;precision&quot;,&quot;highp&quot;,&quot;mediump&quot;,&quot;lowp&quot;,&quot;attribute&quot;,&quot;const&quot;,&quot;uniform&quot;,&quot;varying&quot;,&quot;break&quot;,&quot;continue&quot;,&quot;do&quot;,&quot;for&quot;,&quot;while&quot;,&quot;if&quot;,&quot;else&quot;,&quot;in&quot;,&quot;out&quot;,&quot;inout&quot;,&quot;float&quot;,&quot;int&quot;,&quot;uint&quot;,&quot;void&quot;,&quot;bool&quot;,&quot;true&quot;,&quot;false&quot;,&quot;discard&quot;,&quot;return&quot;,&quot;mat2&quot;,&quot;mat3&quot;,&quot;mat4&quot;,&quot;vec2&quot;,&quot;vec3&quot;,&quot;vec4&quot;,&quot;ivec2&quot;,&quot;ivec3&quot;,&quot;ivec4&quot;,&quot;bvec2&quot;,&quot;bvec3&quot;,&quot;bvec4&quot;,&quot;sampler1D&quot;,&quot;sampler2D&quot;,&quot;sampler3D&quot;,&quot;samplerCube&quot;,&quot;sampler1DShadow&quot;,&quot;sampler2DShadow&quot;,&quot;struct&quot;,&quot;asm&quot;,&quot;class&quot;,&quot;union&quot;,&quot;enum&quot;,&quot;typedef&quot;,&quot;template&quot;,&quot;this&quot;,&quot;packed&quot;,&quot;goto&quot;,&quot;switch&quot;,&quot;default&quot;,&quot;inline&quot;,&quot;noinline&quot;,&quot;volatile&quot;,&quot;public&quot;,&quot;static&quot;,&quot;extern&quot;,&quot;external&quot;,&quot;interface&quot;,&quot;long&quot;,&quot;short&quot;,&quot;double&quot;,&quot;half&quot;,&quot;fixed&quot;,&quot;unsigned&quot;,&quot;input&quot;,&quot;output&quot;,&quot;hvec2&quot;,&quot;hvec3&quot;,&quot;hvec4&quot;,&quot;dvec2&quot;,&quot;dvec3&quot;,&quot;dvec4&quot;,&quot;fvec2&quot;,&quot;fvec3&quot;,&quot;fvec4&quot;,&quot;sampler2DRect&quot;,&quot;sampler3DRect&quot;,&quot;sampler2DRectShadow&quot;,&quot;sizeof&quot;,&quot;cast&quot;,&quot;namespace&quot;,&quot;using&quot;]},{}],440:[function(t,e,r){e.exports=[&quot;&lt;&lt;=&quot;,&quot;&gt;&gt;=&quot;,&quot;++&quot;,&quot;--&quot;,&quot;&lt;&lt;&quot;,&quot;&gt;&gt;&quot;,&quot;&lt;=&quot;,&quot;&gt;=&quot;,&quot;==&quot;,&quot;!=&quot;,&quot;&amp;&amp;&quot;,&quot;||&quot;,&quot;+=&quot;,&quot;-=&quot;,&quot;*=&quot;,&quot;/=&quot;,&quot;%=&quot;,&quot;&amp;=&quot;,&quot;^^&quot;,&quot;^=&quot;,&quot;|=&quot;,&quot;(&quot;,&quot;)&quot;,&quot;[&quot;,&quot;]&quot;,&quot;.&quot;,&quot;!&quot;,&quot;~&quot;,&quot;*&quot;,&quot;/&quot;,&quot;%&quot;,&quot;+&quot;,&quot;-&quot;,&quot;&lt;&quot;,&quot;&gt;&quot;,&quot;&amp;&quot;,&quot;^&quot;,&quot;|&quot;,&quot;?&quot;,&quot;:&quot;,&quot;=&quot;,&quot;,&quot;,&quot;;&quot;,&quot;{&quot;,&quot;}&quot;]},{}],441:[function(t,e,r){var n=t(&quot;./index&quot;);e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{&quot;./index&quot;:435}],442:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],443:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n,i=t(&quot;is-browser&quot;);n=&quot;function&quot;==typeof r.matchMedia?!r.matchMedia(&quot;(hover: none)&quot;).matches:i,e.exports=n}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;is-browser&quot;:452}],444:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-browser&quot;);e.exports=n&amp;&amp;function(){var t=!1;try{var e=Object.defineProperty({},&quot;passive&quot;,{get:function(){t=!0}});window.addEventListener(&quot;test&quot;,null,e),window.removeEventListener(&quot;test&quot;,null,e)}catch(e){t=!1}return t}()},{&quot;is-browser&quot;:452}],445:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},{}],446:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(&quot;Must have at least d+1 points&quot;);var i=t[0].length;if(r&lt;=i)throw new Error(&quot;Must input at least d+1 points&quot;);var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(&quot;Input not in general position&quot;);for(var l=new Array(i+1),u=0;u&lt;=i;++u)l[u]=u;s&lt;0&amp;&amp;(l[0]=1,l[1]=0);var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2);for(u=0;u&lt;=i;++u){for(var d=l.slice(),g=0;g&lt;=i;++g)g===u&amp;&amp;(d[g]=-1);var m=d[0];d[0]=d[1],d[1]=m;var v=new a(d,new Array(i+1),!0);h[u]=v,p[u]=v}p[i+1]=f;for(u=0;u&lt;=i;++u){d=h[u].vertices;var y=h[u].adjacent;for(g=0;g&lt;=i;++g){var x=d[g];if(x&lt;0)y[g]=f;else for(var b=0;b&lt;=i;++b)h[b].vertices.indexOf(x)&lt;0&amp;&amp;(y[g]=h[b])}}var _=new c(i,o,p),w=!!e;for(u=i+1;u&lt;r;++u)_.insert(t[u],w);return _.boundary()};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;).compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter((function(t){return!t.boundary})),this.tuple=new Array(t+1);for(var i=0;i&lt;=t;++i)this.tuple[i]=this.vertices[i];var a=l[t];a||(a=l[t]=function(t){for(var e=[&quot;function orient(){var tuple=this.tuple;return test(&quot;],r=0;r&lt;=t;++r)r&gt;0&amp;&amp;e.push(&quot;,&quot;),e.push(&quot;tuple[&quot;,r,&quot;]&quot;);e.push(&quot;)}return orient&quot;);var i=new Function(&quot;test&quot;,e.join(&quot;&quot;)),a=n[t+1];return a||(a=n),i(a)}(t)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length&gt;0;){(t=o.pop()).vertices;for(var s=t.adjacent,l=0;l&lt;=r;++l){var c=s[l];if(c.boundary&amp;&amp;!(c.lastVisited&lt;=-n)){for(var u=c.vertices,f=0;f&lt;=r;++f){var h=u[f];i[f]=h&lt;0?e:a[h]}var p=this.orient();if(p&gt;0)return c;c.lastVisited=-n,0===p&amp;&amp;o.push(c)}}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u&lt;=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u&lt;=n;++u){var f=c[u];if(!(f.lastVisited&gt;=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p&lt;0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length&gt;0;){var p=(e=f.pop()).vertices,d=e.adjacent,g=p.indexOf(r);if(!(g&lt;0))for(var m=0;m&lt;=n;++m)if(m!==g){var v=d[m];if(v.boundary&amp;&amp;!(v.lastVisited&gt;=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b&lt;=n;++b)y[b]&lt;0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()&gt;0){y[x]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);u.push(k);var A=_.indexOf(e);if(!(A&lt;0)){_[A]=k,T[g]=v,w[m]=-1,T[m]=e,d[m]=k,k.flip();for(b=0;b&lt;=n;++b){var M=w[b];if(!(M&lt;0||M===r)){for(var S=new Array(n-1),E=0,L=0;L&lt;=n;++L){var C=w[L];C&lt;0||L===b||(S[E++]=C)}h.push(new o(S,k,b))}}}}}}h.sort(s);for(m=0;m+1&lt;h.length;m+=2){var P=h[m],I=h[m+1],O=P.index,z=I.index;O&lt;0||z&lt;0||(P.cell.adjacent[P.index]=I.cell,I.cell.adjacent[I.index]=P.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o&lt;=i;++o){var s=n.vertices[o];a[o]=s&lt;0?t:r[s]}var l=this.orient(a);l&lt;0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&amp;&amp;this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i&lt;n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u&lt;=t;++u)s[u]&gt;=0?o[l++]=s[u]:c=1&amp;u;if(c===(1&amp;t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:559}],447:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){e&amp;&amp;(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],448:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new v(null);return new v(m(t))};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=m(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function c(t,e){var r=t.intervals([]),n=r.indexOf(e);return n&lt;0?0:(r.splice(n,1),s(t,r),1)}function u(t,e,r){for(var n=0;n&lt;t.length&amp;&amp;t[n][0]&lt;=e;++n){var i=r(t[n]);if(i)return i}}function f(t,e,r){for(var n=t.length-1;n&gt;=0&amp;&amp;t[n][1]&gt;=e;--n){var i=r(t[n]);if(i)return i}}function h(t,e){for(var r=0;r&lt;t.length;++r){var n=e(t[r]);if(n)return n}}function p(t,e){return t-e}function d(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function g(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function m(t){if(0===t.length)return null;for(var e=[],r=0;r&lt;t.length;++r)e.push(t[r][0],t[r][1]);e.sort(p);var n=e[e.length&gt;&gt;1],a=[],o=[],s=[];for(r=0;r&lt;t.length;++r){var l=t[r];l[1]&lt;n?a.push(l):n&lt;l[0]?o.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(d),u.sort(g),new i(n,m(a),m(o),c,u)}function v(t){this.root=t}a.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&amp;&amp;this.left.intervals(t),this.right&amp;&amp;this.right.intervals(t),t},a.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]&lt;this.mid)this.left?4*(this.left.count+1)&gt;3*(e+1)?l(this,t):this.left.insert(t):this.left=m([t]);else if(t[0]&gt;this.mid)this.right?4*(this.right.count+1)&gt;3*(e+1)?l(this,t):this.right.insert(t):this.right=m([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,g);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]&lt;this.mid)return this.left?4*(this.right?this.right.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(t[0]&gt;this.mid)return this.right?4*(this.left?this.left.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&amp;&amp;this.leftPoints[0]===t){if(this.left&amp;&amp;this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);a&lt;this.leftPoints.length&amp;&amp;this.leftPoints[a][0]===t[0];++a)if(this.leftPoints[a]===t){this.count-=1,this.leftPoints.splice(a,1);for(s=n.ge(this.rightPoints,t,g);s&lt;this.rightPoints.length&amp;&amp;this.rightPoints[s][1]===t[1];++s)if(this.rightPoints[s]===t)return this.rightPoints.splice(s,1),1}return 0},a.queryPoint=function(t,e){if(t&lt;this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return u(this.leftPoints,t,e)}if(t&gt;this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return f(this.rightPoints,t,e)}return h(this.leftPoints,e)},a.queryInterval=function(t,e,r){var n;if(t&lt;this.mid&amp;&amp;this.left&amp;&amp;(n=this.left.queryInterval(t,e,r)))return n;if(e&gt;this.mid&amp;&amp;this.right&amp;&amp;(n=this.right.queryInterval(t,e,r)))return n;return e&lt;this.mid?u(this.leftPoints,e,r):t&gt;this.mid?f(this.rightPoints,t,r):h(this.leftPoints,r)};var y=v.prototype;y.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},y.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&amp;&amp;(this.root=null),0!==e}return!1},y.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},y.queryInterval=function(t,e,r){if(t&lt;=e&amp;&amp;this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(y,&quot;count&quot;,{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,&quot;intervals&quot;,{get:function(){return this.root?this.root.intervals([]):[]}})},{&quot;binary-search-bounds&quot;:449}],449:[function(t,e,r){arguments[4][251][0].apply(r,arguments)},{dup:251}],450:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e=e||new Array(t.length);for(var r=0;r&lt;t.length;++r)e[t[r]]=r;return e}},{}],451:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=r;return e}},{}],452:[function(t,e,r){e.exports=!0},{}],453:[function(t,e,r){function n(t){return!!t.constructor&amp;&amp;&quot;function&quot;==typeof t.constructor.isBuffer&amp;&amp;t.constructor.isBuffer(t)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
e.exports=function(t){return null!=t&amp;&amp;(n(t)||function(t){return&quot;function&quot;==typeof t.readFloatLE&amp;&amp;&quot;function&quot;==typeof t.slice&amp;&amp;n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],454:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],455:[function(t,e,r){&quot;use strict&quot;;e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||&quot;undefined&quot;==typeof navigator||(e=navigator.userAgent),e&amp;&amp;e.headers&amp;&amp;&quot;string&quot;==typeof e.headers[&quot;user-agent&quot;]&amp;&amp;(e=e.headers[&quot;user-agent&quot;]),&quot;string&quot;!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&amp;&amp;t.tablet&amp;&amp;t.featureDetect&amp;&amp;navigator&amp;&amp;navigator.maxTouchPoints&gt;1&amp;&amp;-1!==e.indexOf(&quot;Macintosh&quot;)&amp;&amp;-1!==e.indexOf(&quot;Safari&quot;)&amp;&amp;(r=!0),r}},{}],456:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=typeof t;return null!==t&amp;&amp;(&quot;object&quot;===e||&quot;function&quot;===e)}},{}],457:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString;e.exports=function(t){var e;return&quot;[object Object]&quot;===n.call(t)&amp;&amp;(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],458:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=t.length,n=0;n&lt;r;n++)if(((e=t.charCodeAt(n))&lt;9||e&gt;13)&amp;&amp;32!==e&amp;&amp;133!==e&amp;&amp;160!==e&amp;&amp;5760!==e&amp;&amp;6158!==e&amp;&amp;(e&lt;8192||e&gt;8205)&amp;&amp;8232!==e&amp;&amp;8233!==e&amp;&amp;8239!==e&amp;&amp;8287!==e&amp;&amp;8288!==e&amp;&amp;12288!==e&amp;&amp;65279!==e)return!1;return!0}},{}],459:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&amp;&amp;/[\dz]$/i.test(t)&amp;&amp;t.length&gt;4))}},{}],460:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],461:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?e.exports=n():(t=t||self).mapboxgl=n()}(this,(function(){&quot;use strict&quot;;var t,e,r;function n(n,i){if(t)if(e){var a=&quot;var sharedChunk = {}; (&quot;+t+&quot;)(sharedChunk); (&quot;+e+&quot;)(sharedChunk);&quot;,o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:&quot;text/javascript&quot;}))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&amp;&amp;(e=1e-6),i=t,o=0;o&lt;8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)&lt;e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)&lt;1e-6)break;i-=a/s}if((i=t)&lt;(r=0))return r;if(i&gt;(n=1))return n;for(;r&lt;n;){if(a=this.sampleCurveX(i),Math.abs(a-t)&lt;e)return i;t&gt;a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=a;function a(t,e){this.x=t,this.y=e}function o(t,e,n,i){var a=new r(t,e,n,i);return function(t){return a.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&amp;&amp;this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.x+r*(this.x-e.x)-n*(this.y-e.y),a=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=i,this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var s=o(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function u(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var f=1;function h(){return f++}function p(){return function t(e){return e?(e^16*Math.random()&gt;&gt;e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(t){return!!t&amp;&amp;/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function g(t,e){t.forEach((function(t){e[t]&amp;&amp;(e[t]=e[t].bind(e))}))}function m(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&amp;&amp;(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):&quot;object&quot;==typeof t&amp;&amp;t?v(t,x):t}var b={};function _(t){b[t]||(&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)&gt;(e.y-t.y)*(r.x-t.x)}function T(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r&lt;n;i=r++)a=t[r],e+=((o=t[i]).x-a.x)*(a.y+o.y);return e}function k(){return&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;&quot;undefined&quot;!=typeof self&amp;&amp;self instanceof WorkerGlobalScope}function A(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)|(?:\&quot;((?:[^&quot;\\]|\\.)*)\&quot;)))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),&quot;&quot;})),e[&quot;max-age&quot;]){var r=parseInt(e[&quot;max-age&quot;],10);isNaN(r)?delete e[&quot;max-age&quot;]:e[&quot;max-age&quot;]=r}return e}var M=null;function S(t){if(null==M){var e=t.navigator?t.navigator.userAgent:null;M=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match(&quot;Safari&quot;)&amp;&amp;!e.match(&quot;Chrome&quot;)))}return M}function E(t){try{var e=self[t];return e.setItem(&quot;_mapbox_test_&quot;,1),e.removeItem(&quot;_mapbox_test_&quot;),!0}catch(t){return!1}}var L,C,P,I,O=self.performance&amp;&amp;self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),z=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:O,frame:function(t){var e=z(t);return{cancel:function(){return D(e)}}},getImageData:function(t,e){void 0===e&amp;&amp;(e=0);var r=self.document.createElement(&quot;canvas&quot;),n=r.getContext(&quot;2d&quot;);if(!n)throw new Error(&quot;failed to create canvas 2d context&quot;);return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return L||(L=self.document.createElement(&quot;a&quot;)),L.href=t,L.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&amp;&amp;(null==C&amp;&amp;(C=self.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;)),C.matches)}},F={API_URL:&quot;https://api.mapbox.com&quot;,get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf(&quot;https://api.mapbox.cn&quot;)?&quot;https://events.mapbox.cn/events/v2&quot;:0===this.API_URL.indexOf(&quot;https://api.mapbox.com&quot;)?&quot;https://events.mapbox.com/events/v2&quot;:null:null},FEEDBACK_URL:&quot;https://apps.mapbox.com/feedback&quot;,REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){if(N||!I)return;j?U(t):P=t}},N=!1,j=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,I),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),N=!0}self.document&amp;&amp;((I=self.document.createElement(&quot;img&quot;)).onload=function(){P&amp;&amp;U(P),P=null,j=!0},I.onerror=function(){N=!0,P=null},I.src=&quot;data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=&quot;);var V=&quot;01&quot;;var q=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function H(t){return 0===t.indexOf(&quot;mapbox:&quot;)}q.prototype._createSkuToken=function(){var t=function(){for(var t=&quot;&quot;,e=0;e&lt;10;e++)t+=&quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;[Math.floor(62*Math.random())];return{token:[&quot;1&quot;,V,t].join(&quot;&quot;),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},q.prototype._isSkuTokenExpired=function(){return Date.now()&gt;this._skuTokenExpiresAt},q.prototype.transformRequest=function(t,e){return this._transformRequestFn&amp;&amp;this._transformRequestFn(t,e)||{url:t}},q.prototype.normalizeStyleURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/styles/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeGlyphsURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/fonts/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSourceURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/v4/&quot;+r.authority+&quot;.json&quot;,r.params.push(&quot;secure&quot;),this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSpriteURL=function(t,e,r,n){var i=X(t);return H(t)?(i.path=&quot;/styles/v1&quot;+i.path+&quot;/sprite&quot;+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=&quot;&quot;+e+r,Z(i))},q.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&amp;&amp;this._createSkuToken(),t&amp;&amp;!H(t))return t;var r=X(t),n=R.devicePixelRatio&gt;=2||512===e?&quot;@2x&quot;:&quot;&quot;,i=B.supported?&quot;.webp&quot;:&quot;$1&quot;;r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,&quot;&quot;+n+i),r.path=r.path.replace(/^.+\/v4\//,&quot;/&quot;),r.path=&quot;/v4&quot;+r.path;var a=this._customAccessToken||function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}(r.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&amp;&amp;a&amp;&amp;this._skuToken&amp;&amp;r.params.push(&quot;sku=&quot;+this._skuToken),this._makeAPIURL(r,a)},q.prototype.canonicalizeTileURL=function(t,e){var r=X(t);if(!r.path.match(/(^\/v4\/)/)||!r.path.match(/\.[\w]+$/))return t;var n=&quot;mapbox://tiles/&quot;;n+=r.path.replace(&quot;/v4/&quot;,&quot;&quot;);var i=r.params;return e&amp;&amp;(i=i.filter((function(t){return!t.match(/^access_token=/)}))),i.length&amp;&amp;(n+=&quot;?&quot;+i.join(&quot;&amp;&quot;)),n},q.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&amp;&amp;H(e),n=[],i=0,a=t.tiles||[];i&lt;a.length;i+=1){var o=a[i];Y(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o)}return n},q.prototype._makeAPIURL=function(t,e){var r=&quot;See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;,n=X(F.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,&quot;/&quot;!==n.path&amp;&amp;(t.path=&quot;&quot;+n.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return Z(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error(&quot;An API access token is required to use Mapbox GL. &quot;+r);if(&quot;s&quot;===e[0])throw new Error(&quot;Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). &quot;+r);return t.params=t.params.filter((function(t){return-1===t.indexOf(&quot;access_token&quot;)})),t.params.push(&quot;access_token=&quot;+e),Z(t)};var G=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Y(t){return G.test(t)}var W=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(t){var e=t.match(W);if(!e)throw new Error(&quot;Unable to parse URL object&quot;);return{protocol:e[1],authority:e[2],path:e[3]||&quot;/&quot;,params:e[4]?e[4].split(&quot;&amp;&quot;):[]}}function Z(t){var e=t.params.length?&quot;?&quot;+t.params.join(&quot;&amp;&quot;):&quot;&quot;;return t.protocol+&quot;://&quot;+t.authority+t.path+e}function J(t){if(!t)return null;var e,r=t.split(&quot;.&quot;);if(!r||3!==r.length)return null;try{return JSON.parse((e=r[1],decodeURIComponent(self.atob(e).split(&quot;&quot;).map((function(t){return&quot;%&quot;+(&quot;00&quot;+t.charCodeAt(0).toString(16)).slice(-2)})).join(&quot;&quot;))))}catch(t){return null}}var K=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};K.prototype.getStorageKey=function(t){var e,r=J(F.ACCESS_TOKEN),n=&quot;&quot;;return r&amp;&amp;r.u?(e=r.u,n=self.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number(&quot;0x&quot;+e))})))):n=F.ACCESS_TOKEN||&quot;&quot;,t?&quot;mapbox.eventData.&quot;+t+&quot;:&quot;+n:&quot;mapbox.eventData:&quot;+n},K.prototype.fetchEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{var n=self.localStorage.getItem(e);n&amp;&amp;(this.eventData=JSON.parse(n));var i=self.localStorage.getItem(r);i&amp;&amp;(this.anonId=i)}catch(t){_(&quot;Unable to read from LocalStorage&quot;)}},K.prototype.saveEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length&gt;=1&amp;&amp;self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){_(&quot;Unable to write to LocalStorage&quot;)}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,r,n){var i=this;if(F.EVENTS_URL){var a=X(F.EVENTS_URL);a.params.push(&quot;access_token=&quot;+(n||F.ACCESS_TOKEN||&quot;&quot;));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:&quot;mapbox-gl-js&quot;,sdkVersion:&quot;1.10.1&quot;,skuId:V,userId:this.anonId},s=e?u(o,e):o,l={url:Z(a),headers:{&quot;Content-Type&quot;:&quot;text/plain&quot;},body:JSON.stringify([s])};this.pendingRequest=bt(l,(function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests(n)}))}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Q,$,tt=function(t){function e(){t.call(this,&quot;map.load&quot;),this.success={},this.skuToken=&quot;&quot;}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(F.EVENTS_URL&amp;&amp;n||F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)})))&amp;&amp;this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&amp;&amp;this.success[n]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=p()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&amp;&amp;(e.success[n]=!0)}),t))}},e}(K),et=new(function(t){function e(e){t.call(this,&quot;appUserTurnstile&quot;),this._customAccessToken=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&amp;&amp;F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)}))&amp;&amp;this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){this.anonId&amp;&amp;this.eventData.lastSuccess&amp;&amp;this.eventData.tokenU||this.fetchEventData();var r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,i=n!==this.eventData.tokenU;d(this.anonId)||(this.anonId=p(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l&gt;=1||l&lt;-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{&quot;enabled.telemetry&quot;:!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(K)),rt=et.postTurnstileEvent.bind(et),nt=new tt,it=nt.postMapLoadEvent.bind(nt),at=500,ot=50;function st(){self.caches&amp;&amp;!Q&amp;&amp;(Q=self.caches.open(&quot;mapbox-tiles&quot;))}function lt(t,e,r){if(st(),Q){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=A(e.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);if(!i[&quot;no-store&quot;])i[&quot;max-age&quot;]&amp;&amp;n.headers.set(&quot;Expires&quot;,new Date(r+1e3*i[&quot;max-age&quot;]).toUTCString()),new Date(n.headers.get(&quot;Expires&quot;)).getTime()-r&lt;42e4||function(t,e){if(void 0===$)try{new Response(new ReadableStream),$=!0}catch(t){$=!1}$?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,n);st(),Q&amp;&amp;Q.then((function(e){return e.put(ct(t.url),r)})).catch((function(t){return _(t.message)}))}))}}function ct(t){var e=t.indexOf(&quot;?&quot;);return e&lt;0?t:t.slice(0,e)}function ut(t,e){if(st(),!Q)return e(null);var r=ct(t.url);Q.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get(&quot;Expires&quot;)||0),r=A(t.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);return e&gt;Date.now()&amp;&amp;!r[&quot;no-cache&quot;]}(n);t.delete(r),i&amp;&amp;t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}var ft,ht=1/0;function pt(){return null==ft&amp;&amp;(ft=self.OffscreenCanvas&amp;&amp;new self.OffscreenCanvas(1,1).getContext(&quot;2d&quot;)&amp;&amp;&quot;function&quot;==typeof self.createImageBitmap),ft}var dt={Unknown:&quot;Unknown&quot;,Style:&quot;Style&quot;,Source:&quot;Source&quot;,Tile:&quot;Tile&quot;,Glyphs:&quot;Glyphs&quot;,SpriteImage:&quot;SpriteImage&quot;,SpriteJSON:&quot;SpriteJSON&quot;,Image:&quot;Image&quot;};&quot;function&quot;==typeof Object.freeze&amp;&amp;Object.freeze(dt);var gt=function(t){function e(e,r,n){401===r&amp;&amp;Y(n)&amp;&amp;(e+=&quot;: you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+&quot;: &quot;+this.message+&quot; (&quot;+this.status+&quot;): &quot;+this.url},e}(Error),mt=k()?function(){return self.worker&amp;&amp;self.worker.referrer}:function(){return(&quot;blob:&quot;===self.location.protocol?self.parent:self).location.href};function vt(t,e){var r,n=new self.AbortController,i=new self.Request(t.url,{method:t.method||&quot;GET&quot;,body:t.body,credentials:t.credentials,headers:t.headers,referrer:mt(),signal:n.signal}),a=!1,o=!1,s=(r=i.url).indexOf(&quot;sku=&quot;)&gt;0&amp;&amp;Y(r);&quot;json&quot;===t.type&amp;&amp;i.headers.set(&quot;Accept&quot;,&quot;application/json&quot;);var l=function(r,n,a){if(!o){if(r&amp;&amp;&quot;SecurityError&quot;!==r.message&amp;&amp;_(r),n&amp;&amp;a)return c(n);var l=Date.now();self.fetch(i).then((function(r){if(r.ok){var n=s?r.clone():null;return c(r,n,l)}return e(new gt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&amp;&amp;e(new Error(t.message))}))}},c=function(r,n,s){(&quot;arrayBuffer&quot;===t.type?r.arrayBuffer():&quot;json&quot;===t.type?r.json():r.text()).then((function(t){o||(n&amp;&amp;s&amp;&amp;lt(i,n,s),a=!0,e(null,t,r.headers.get(&quot;Cache-Control&quot;),r.headers.get(&quot;Expires&quot;)))})).catch((function(t){o||e(new Error(t.message))}))};return s?ut(i,l):l(null,null),{cancel:function(){o=!0,a||n.abort()}}}var yt=function(t,e){if(r=t.url,!(/^file:/.test(r)||/^file:/.test(mt())&amp;&amp;!/^\w+:/.test(r))){if(self.fetch&amp;&amp;self.Request&amp;&amp;self.AbortController&amp;&amp;self.Request.prototype.hasOwnProperty(&quot;signal&quot;))return vt(t,e);if(k()&amp;&amp;self.worker&amp;&amp;self.worker.actor){return self.worker.actor.send(&quot;getResource&quot;,t,e,void 0,!0)}}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||&quot;GET&quot;,t.url,!0),&quot;arrayBuffer&quot;===t.type&amp;&amp;(r.responseType=&quot;arraybuffer&quot;),t.headers)r.setRequestHeader(n,t.headers[n]);return&quot;json&quot;===t.type&amp;&amp;(r.responseType=&quot;text&quot;,r.setRequestHeader(&quot;Accept&quot;,&quot;application/json&quot;)),r.withCredentials=&quot;include&quot;===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status&gt;=200&amp;&amp;r.status&lt;300||0===r.status)&amp;&amp;null!==r.response){var n=r.response;if(&quot;json&quot;===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader(&quot;Cache-Control&quot;),r.getResponseHeader(&quot;Expires&quot;))}else e(new gt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},xt=function(t,e){return yt(u(t,{type:&quot;arrayBuffer&quot;}),e)},bt=function(t,e){return yt(u(t,{method:&quot;POST&quot;}),e)};var _t,wt;_t=[],wt=0;var Tt=function(t,e){if(B.supported&amp;&amp;(t.headers||(t.headers={}),t.headers.accept=&quot;image/webp,*/*&quot;),wt&gt;=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return _t.push(r),r}wt++;var n=!1,i=function(){if(!n)for(n=!0,wt--;_t.length&amp;&amp;wt&lt;F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=_t.shift(),e=t.requestParameters,r=t.callback;t.cancelled||(t.cancel=Tt(e,r).cancel)}},a=xt(t,(function(t,r,n,a){i(),t?e(t):r&amp;&amp;(pt()?function(t,e){var r=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});self.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error(&quot;Could not load image because of &quot;+t.message+&quot;. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))}))}(r,e):function(t,e,r,n){var i=new self.Image,a=self.URL;i.onload=function(){e(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return e(new Error(&quot;Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))};var o=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});i.cacheControl=r,i.expires=n,i.src=t.byteLength?a.createObjectURL(o):&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=&quot;}(r,e,n,a))}));return{cancel:function(){a.cancel(),i()}}};function kt(t,e,r){r[t]&amp;&amp;-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function At(t,e,r){if(r&amp;&amp;r[t]){var n=r[t].indexOf(e);-1!==n&amp;&amp;r[t].splice(n,1)}}var Mt=function(t,e){void 0===e&amp;&amp;(e={}),u(this,e),this.type=t},St=function(t){function e(e,r){void 0===r&amp;&amp;(r={}),t.call(this,&quot;error&quot;,u({error:e},r))}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Mt),Et=function(){};Et.prototype.on=function(t,e){return this._listeners=this._listeners||{},kt(t,e,this._listeners),this},Et.prototype.off=function(t,e){return At(t,e,this._listeners),At(t,e,this._oneTimeListeners),this},Et.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},kt(t,e,this._oneTimeListeners),this},Et.prototype.fire=function(t,e){&quot;string&quot;==typeof t&amp;&amp;(t=new Mt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,i=this._listeners&amp;&amp;this._listeners[r]?this._listeners[r].slice():[];n&lt;i.length;n+=1){i[n].call(this,t)}for(var a=0,o=this._oneTimeListeners&amp;&amp;this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];a&lt;o.length;a+=1){var s=o[a];At(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&amp;&amp;(u(t,&quot;function&quot;==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof St&amp;&amp;console.error(t.error);return this},Et.prototype.listens=function(t){return this._listeners&amp;&amp;this._listeners[t]&amp;&amp;this._listeners[t].length&gt;0||this._oneTimeListeners&amp;&amp;this._oneTimeListeners[t]&amp;&amp;this._oneTimeListeners[t].length&gt;0||this._eventedParent&amp;&amp;this._eventedParent.listens(t)},Et.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var Lt={$version:8,$root:{version:{required:!0,type:&quot;enum&quot;,values:[8]},name:{type:&quot;string&quot;},metadata:{type:&quot;*&quot;},center:{type:&quot;array&quot;,value:&quot;number&quot;},zoom:{type:&quot;number&quot;},bearing:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;},pitch:{type:&quot;number&quot;,default:0,units:&quot;degrees&quot;},light:{type:&quot;light&quot;},sources:{required:!0,type:&quot;sources&quot;},sprite:{type:&quot;string&quot;},glyphs:{type:&quot;string&quot;},transition:{type:&quot;transition&quot;},layers:{required:!0,type:&quot;array&quot;,value:&quot;layer&quot;}},sources:{&quot;*&quot;:{type:&quot;source&quot;}},source:[&quot;source_vector&quot;,&quot;source_raster&quot;,&quot;source_raster_dem&quot;,&quot;source_geojson&quot;,&quot;source_video&quot;,&quot;source_image&quot;],source_vector:{type:{required:!0,type:&quot;enum&quot;,values:{vector:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},attribution:{type:&quot;string&quot;},promoteId:{type:&quot;promoteId&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster:{type:{required:!0,type:&quot;enum&quot;,values:{raster:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},attribution:{type:&quot;string&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster_dem:{type:{required:!0,type:&quot;enum&quot;,values:{&quot;raster-dem&quot;:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},attribution:{type:&quot;string&quot;},encoding:{type:&quot;enum&quot;,values:{terrarium:{},mapbox:{}},default:&quot;mapbox&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_geojson:{type:{required:!0,type:&quot;enum&quot;,values:{geojson:{}}},data:{type:&quot;*&quot;},maxzoom:{type:&quot;number&quot;,default:18},attribution:{type:&quot;string&quot;},buffer:{type:&quot;number&quot;,default:128,maximum:512,minimum:0},tolerance:{type:&quot;number&quot;,default:.375},cluster:{type:&quot;boolean&quot;,default:!1},clusterRadius:{type:&quot;number&quot;,default:50,minimum:0},clusterMaxZoom:{type:&quot;number&quot;},clusterProperties:{type:&quot;*&quot;},lineMetrics:{type:&quot;boolean&quot;,default:!1},generateId:{type:&quot;boolean&quot;,default:!1},promoteId:{type:&quot;promoteId&quot;}},source_video:{type:{required:!0,type:&quot;enum&quot;,values:{video:{}}},urls:{required:!0,type:&quot;array&quot;,value:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},source_image:{type:{required:!0,type:&quot;enum&quot;,values:{image:{}}},url:{required:!0,type:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},layer:{id:{type:&quot;string&quot;,required:!0},type:{type:&quot;enum&quot;,values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},&quot;fill-extrusion&quot;:{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:&quot;*&quot;},source:{type:&quot;string&quot;},&quot;source-layer&quot;:{type:&quot;string&quot;},minzoom:{type:&quot;number&quot;,minimum:0,maximum:24},maxzoom:{type:&quot;number&quot;,minimum:0,maximum:24},filter:{type:&quot;filter&quot;},layout:{type:&quot;layout&quot;},paint:{type:&quot;paint&quot;}},layout:[&quot;layout_fill&quot;,&quot;layout_line&quot;,&quot;layout_circle&quot;,&quot;layout_heatmap&quot;,&quot;layout_fill-extrusion&quot;,&quot;layout_symbol&quot;,&quot;layout_raster&quot;,&quot;layout_hillshade&quot;,&quot;layout_background&quot;],layout_background:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_fill:{&quot;fill-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_circle:{&quot;circle-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_heatmap:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},&quot;layout_fill-extrusion&quot;:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_line:{&quot;line-cap&quot;:{type:&quot;enum&quot;,values:{butt:{},round:{},square:{}},default:&quot;butt&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-join&quot;:{type:&quot;enum&quot;,values:{bevel:{},round:{},miter:{}},default:&quot;miter&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-miter-limit&quot;:{type:&quot;number&quot;,default:2,requires:[{&quot;line-join&quot;:&quot;miter&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-round-limit&quot;:{type:&quot;number&quot;,default:1.05,requires:[{&quot;line-join&quot;:&quot;round&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_symbol:{&quot;symbol-placement&quot;:{type:&quot;enum&quot;,values:{point:{},line:{},&quot;line-center&quot;:{}},default:&quot;point&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-spacing&quot;:{type:&quot;number&quot;,default:250,minimum:1,units:&quot;pixels&quot;,requires:[{&quot;symbol-placement&quot;:&quot;line&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-avoid-edges&quot;:{type:&quot;boolean&quot;,default:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;symbol-z-order&quot;:{type:&quot;enum&quot;,values:{auto:{},&quot;viewport-y&quot;:{},source:{}},default:&quot;auto&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-size&quot;:{type:&quot;number&quot;,default:1,minimum:0,units:&quot;factor of the original icon size&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-text-fit&quot;:{type:&quot;enum&quot;,values:{none:{},width:{},height:{},both:{}},default:&quot;none&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-text-fit-padding&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[0,0,0,0],units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;,{&quot;icon-text-fit&quot;:[&quot;both&quot;,&quot;width&quot;,&quot;height&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-image&quot;:{type:&quot;resolvedImage&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-keep-upright&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,{&quot;icon-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-field&quot;:{type:&quot;formatted&quot;,default:&quot;&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-font&quot;:{type:&quot;array&quot;,value:&quot;string&quot;,default:[&quot;Open Sans Regular&quot;,&quot;Arial Unicode MS Regular&quot;],requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-size&quot;:{type:&quot;number&quot;,default:16,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-width&quot;:{type:&quot;number&quot;,default:10,minimum:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-line-height&quot;:{type:&quot;number&quot;,default:1.2,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-letter-spacing&quot;:{type:&quot;number&quot;,default:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-justify&quot;:{type:&quot;enum&quot;,values:{auto:{},left:{},center:{},right:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-radial-offset&quot;:{type:&quot;number&quot;,units:&quot;ems&quot;,default:0,requires:[&quot;text-field&quot;],&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}},&quot;text-variable-anchor&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-variable-anchor&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-angle&quot;:{type:&quot;number&quot;,default:45,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-writing-mode&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{horizontal:{},vertical:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-keep-upright&quot;:{type:&quot;boolean&quot;,default:!0,requires:[&quot;text-field&quot;,{&quot;text-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-transform&quot;:{type:&quot;enum&quot;,values:{none:{},uppercase:{},lowercase:{}},default:&quot;none&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,units:&quot;ems&quot;,length:2,default:[0,0],requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-radial-offset&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;,&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_raster:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_hillshade:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},filter:{type:&quot;array&quot;,value:&quot;*&quot;},filter_operator:{type:&quot;enum&quot;,values:{&quot;==&quot;:{},&quot;!=&quot;:{},&quot;&gt;&quot;:{},&quot;&gt;=&quot;:{},&quot;&lt;&quot;:{},&quot;&lt;=&quot;:{},in:{},&quot;!in&quot;:{},all:{},any:{},none:{},has:{},&quot;!has&quot;:{},within:{}}},geometry_type:{type:&quot;enum&quot;,values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:&quot;expression&quot;},stops:{type:&quot;array&quot;,value:&quot;function_stop&quot;},base:{type:&quot;number&quot;,default:1,minimum:0},property:{type:&quot;string&quot;,default:&quot;$zoom&quot;},type:{type:&quot;enum&quot;,values:{identity:{},exponential:{},interval:{},categorical:{}},default:&quot;exponential&quot;},colorSpace:{type:&quot;enum&quot;,values:{rgb:{},lab:{},hcl:{}},default:&quot;rgb&quot;},default:{type:&quot;*&quot;,required:!1}},function_stop:{type:&quot;array&quot;,minimum:0,maximum:24,value:[&quot;number&quot;,&quot;color&quot;],length:2},expression:{type:&quot;array&quot;,value:&quot;*&quot;,minimum:1},expression_name:{type:&quot;enum&quot;,values:{let:{group:&quot;Variable binding&quot;},var:{group:&quot;Variable binding&quot;},literal:{group:&quot;Types&quot;},array:{group:&quot;Types&quot;},at:{group:&quot;Lookup&quot;},in:{group:&quot;Lookup&quot;},&quot;index-of&quot;:{group:&quot;Lookup&quot;},slice:{group:&quot;Lookup&quot;},case:{group:&quot;Decision&quot;},match:{group:&quot;Decision&quot;},coalesce:{group:&quot;Decision&quot;},step:{group:&quot;Ramps, scales, curves&quot;},interpolate:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-hcl&quot;:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-lab&quot;:{group:&quot;Ramps, scales, curves&quot;},ln2:{group:&quot;Math&quot;},pi:{group:&quot;Math&quot;},e:{group:&quot;Math&quot;},typeof:{group:&quot;Types&quot;},string:{group:&quot;Types&quot;},number:{group:&quot;Types&quot;},boolean:{group:&quot;Types&quot;},object:{group:&quot;Types&quot;},collator:{group:&quot;Types&quot;},format:{group:&quot;Types&quot;},image:{group:&quot;Types&quot;},&quot;number-format&quot;:{group:&quot;Types&quot;},&quot;to-string&quot;:{group:&quot;Types&quot;},&quot;to-number&quot;:{group:&quot;Types&quot;},&quot;to-boolean&quot;:{group:&quot;Types&quot;},&quot;to-rgba&quot;:{group:&quot;Color&quot;},&quot;to-color&quot;:{group:&quot;Types&quot;},rgb:{group:&quot;Color&quot;},rgba:{group:&quot;Color&quot;},get:{group:&quot;Lookup&quot;},has:{group:&quot;Lookup&quot;},length:{group:&quot;Lookup&quot;},properties:{group:&quot;Feature data&quot;},&quot;feature-state&quot;:{group:&quot;Feature data&quot;},&quot;geometry-type&quot;:{group:&quot;Feature data&quot;},id:{group:&quot;Feature data&quot;},zoom:{group:&quot;Zoom&quot;},&quot;heatmap-density&quot;:{group:&quot;Heatmap&quot;},&quot;line-progress&quot;:{group:&quot;Feature data&quot;},accumulated:{group:&quot;Feature data&quot;},&quot;+&quot;:{group:&quot;Math&quot;},&quot;*&quot;:{group:&quot;Math&quot;},&quot;-&quot;:{group:&quot;Math&quot;},&quot;/&quot;:{group:&quot;Math&quot;},&quot;%&quot;:{group:&quot;Math&quot;},&quot;^&quot;:{group:&quot;Math&quot;},sqrt:{group:&quot;Math&quot;},log10:{group:&quot;Math&quot;},ln:{group:&quot;Math&quot;},log2:{group:&quot;Math&quot;},sin:{group:&quot;Math&quot;},cos:{group:&quot;Math&quot;},tan:{group:&quot;Math&quot;},asin:{group:&quot;Math&quot;},acos:{group:&quot;Math&quot;},atan:{group:&quot;Math&quot;},min:{group:&quot;Math&quot;},max:{group:&quot;Math&quot;},round:{group:&quot;Math&quot;},abs:{group:&quot;Math&quot;},ceil:{group:&quot;Math&quot;},floor:{group:&quot;Math&quot;},distance:{group:&quot;Math&quot;},&quot;==&quot;:{group:&quot;Decision&quot;},&quot;!=&quot;:{group:&quot;Decision&quot;},&quot;&gt;&quot;:{group:&quot;Decision&quot;},&quot;&lt;&quot;:{group:&quot;Decision&quot;},&quot;&gt;=&quot;:{group:&quot;Decision&quot;},&quot;&lt;=&quot;:{group:&quot;Decision&quot;},all:{group:&quot;Decision&quot;},any:{group:&quot;Decision&quot;},&quot;!&quot;:{group:&quot;Decision&quot;},within:{group:&quot;Decision&quot;},&quot;is-supported-script&quot;:{group:&quot;String&quot;},upcase:{group:&quot;String&quot;},downcase:{group:&quot;String&quot;},concat:{group:&quot;String&quot;},&quot;resolved-locale&quot;:{group:&quot;String&quot;}}},light:{anchor:{type:&quot;enum&quot;,default:&quot;viewport&quot;,values:{map:{},viewport:{}},&quot;property-type&quot;:&quot;data-constant&quot;,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]}},position:{type:&quot;array&quot;,default:[1.15,210,30],length:3,value:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]}},color:{type:&quot;color&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:&quot;#ffffff&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0},intensity:{type:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0}},paint:[&quot;paint_fill&quot;,&quot;paint_line&quot;,&quot;paint_circle&quot;,&quot;paint_heatmap&quot;,&quot;paint_fill-extrusion&quot;,&quot;paint_symbol&quot;,&quot;paint_raster&quot;,&quot;paint_hillshade&quot;,&quot;paint_background&quot;],paint_fill:{&quot;fill-antialias&quot;:{type:&quot;boolean&quot;,default:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-outline-color&quot;:{type:&quot;color&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;},{&quot;fill-antialias&quot;:!0}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;}},&quot;paint_fill-extrusion&quot;:{&quot;fill-extrusion-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-extrusion-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-extrusion-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;fill-extrusion-height&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-base&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,requires:[&quot;fill-extrusion-height&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-vertical-gradient&quot;:{type:&quot;boolean&quot;,default:!0,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_line:{&quot;line-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;line-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-width&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-gap-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-offset&quot;:{type:&quot;number&quot;,default:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-dasharray&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,minimum:0,transition:!0,units:&quot;line widths&quot;,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;line-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;line-gradient&quot;:{type:&quot;color&quot;,transition:!1,requires:[{&quot;!&quot;:&quot;line-dasharray&quot;},{&quot;!&quot;:&quot;line-pattern&quot;},{source:&quot;geojson&quot;,has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[&quot;line-progress&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;}},paint_circle:{&quot;circle-radius&quot;:{type:&quot;number&quot;,default:5,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-blur&quot;:{type:&quot;number&quot;,default:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;circle-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-scale&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-stroke-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;}},paint_heatmap:{&quot;heatmap-radius&quot;:{type:&quot;number&quot;,default:30,minimum:1,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-weight&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-intensity&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;heatmap-color&quot;:{type:&quot;color&quot;,default:[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,&quot;rgba(0, 0, 255, 0)&quot;,.1,&quot;royalblue&quot;,.3,&quot;cyan&quot;,.5,&quot;lime&quot;,.7,&quot;yellow&quot;,1,&quot;red&quot;],transition:!1,expression:{interpolated:!0,parameters:[&quot;heatmap-density&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;},&quot;heatmap-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_symbol:{&quot;icon-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;icon-image&quot;,&quot;icon-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,overridable:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;text-field&quot;,&quot;text-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_raster:{&quot;raster-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-hue-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,transition:!0,units:&quot;degrees&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-min&quot;:{type:&quot;number&quot;,default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-max&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-saturation&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-contrast&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-resampling&quot;:{type:&quot;enum&quot;,values:{linear:{},nearest:{}},default:&quot;linear&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-fade-duration&quot;:{type:&quot;number&quot;,default:300,minimum:0,transition:!1,units:&quot;milliseconds&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_hillshade:{&quot;hillshade-illumination-direction&quot;:{type:&quot;number&quot;,default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-illumination-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-exaggeration&quot;:{type:&quot;number&quot;,default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-shadow-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-highlight-color&quot;:{type:&quot;color&quot;,default:&quot;#FFFFFF&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-accent-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_background:{&quot;background-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;background-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;background-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;background-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},transition:{duration:{type:&quot;number&quot;,default:300,minimum:0,units:&quot;milliseconds&quot;},delay:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;milliseconds&quot;}},&quot;property-type&quot;:{&quot;data-driven&quot;:{type:&quot;property-type&quot;},&quot;cross-faded&quot;:{type:&quot;property-type&quot;},&quot;cross-faded-data-driven&quot;:{type:&quot;property-type&quot;},&quot;color-ramp&quot;:{type:&quot;property-type&quot;},&quot;data-constant&quot;:{type:&quot;property-type&quot;},constant:{type:&quot;property-type&quot;}},promoteId:{&quot;*&quot;:{type:&quot;string&quot;}}},Ct=function(t,e,r,n){this.message=(t?t+&quot;: &quot;:&quot;&quot;)+r,n&amp;&amp;(this.identifier=n),null!=e&amp;&amp;e.__line__&amp;&amp;(this.line=e.__line__)};function Pt(t){var e=t.key,r=t.value;return r?[new Ct(e,r,&quot;constants have been deprecated as of v8&quot;)]:[]}function It(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function Ot(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function zt(t){if(Array.isArray(t))return t.map(zt);if(t instanceof Object&amp;&amp;!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=zt(t[r]);return e}return Ot(t)}var Dt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Error),Rt=function(t,e){void 0===e&amp;&amp;(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r],a=i[0],o=i[1];this.bindings[a]=o}};Rt.prototype.concat=function(t){return new Rt(this,t)},Rt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+&quot; not found in scope.&quot;)},Rt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&amp;&amp;this.parent.has(t)};var Ft={kind:&quot;null&quot;},Bt={kind:&quot;number&quot;},Nt={kind:&quot;string&quot;},jt={kind:&quot;boolean&quot;},Ut={kind:&quot;color&quot;},Vt={kind:&quot;object&quot;},qt={kind:&quot;value&quot;},Ht={kind:&quot;collator&quot;},Gt={kind:&quot;formatted&quot;},Yt={kind:&quot;resolvedImage&quot;};function Wt(t,e){return{kind:&quot;array&quot;,itemType:t,N:e}}function Xt(t){if(&quot;array&quot;===t.kind){var e=Xt(t.itemType);return&quot;number&quot;==typeof t.N?&quot;array&lt;&quot;+e+&quot;, &quot;+t.N+&quot;&gt;&quot;:&quot;value&quot;===t.itemType.kind?&quot;array&quot;:&quot;array&lt;&quot;+e+&quot;&gt;&quot;}return t.kind}var Zt=[Ft,Bt,Nt,jt,Ut,Gt,Vt,Wt(qt),Yt];function Jt(t,e){if(&quot;error&quot;===e.kind)return null;if(&quot;array&quot;===t.kind){if(&quot;array&quot;===e.kind&amp;&amp;(0===e.N&amp;&amp;&quot;value&quot;===e.itemType.kind||!Jt(t.itemType,e.itemType))&amp;&amp;(&quot;number&quot;!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(&quot;value&quot;===t.kind)for(var r=0,n=Zt;r&lt;n.length;r+=1){if(!Jt(n[r],e))return null}}return&quot;Expected &quot;+Xt(t)+&quot; but found &quot;+Xt(e)+&quot; instead.&quot;}function Kt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Qt(t,e){return e.some((function(e){return&quot;null&quot;===e?null===t:&quot;array&quot;===e?Array.isArray(t):&quot;object&quot;===e?t&amp;&amp;!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t:e===typeof t}))}var $t=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))&lt;0?0:t&gt;255?255:t}function i(t){return t&lt;0?0:t&gt;1?1:t}function a(t){return&quot;%&quot;===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function o(t){return&quot;%&quot;===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,r){return r&lt;0?r+=1:r&gt;1&amp;&amp;(r-=1),6*r&lt;1?t+(e-t)*r*6:2*r&lt;1?e:3*r&lt;2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,i=t.replace(/ /g,&quot;&quot;).toLowerCase();if(i in r)return r[i].slice();if(&quot;#&quot;===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))&gt;=0&amp;&amp;e&lt;=4095?[(3840&amp;e)&gt;&gt;4|(3840&amp;e)&gt;&gt;8,240&amp;e|(240&amp;e)&gt;&gt;4,15&amp;e|(15&amp;e)&lt;&lt;4,1]:null:7===i.length&amp;&amp;(e=parseInt(i.substr(1),16))&gt;=0&amp;&amp;e&lt;=16777215?[(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,1]:null;var l=i.indexOf(&quot;(&quot;),c=i.indexOf(&quot;)&quot;);if(-1!==l&amp;&amp;c+1===i.length){var u=i.substr(0,l),f=i.substr(l+1,c-(l+1)).split(&quot;,&quot;),h=1;switch(u){case&quot;rgba&quot;:if(4!==f.length)return null;h=o(f.pop());case&quot;rgb&quot;:return 3!==f.length?null:[a(f[0]),a(f[1]),a(f[2]),h];case&quot;hsla&quot;:if(4!==f.length)return null;h=o(f.pop());case&quot;hsl&quot;:if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=o(f[1]),g=o(f[2]),m=g&lt;=.5?g*(d+1):g+d-g*d,v=2*g-m;return[n(255*s(v,m,p+1/3)),n(255*s(v,m,p)),n(255*s(v,m,p-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,te=function(t,e,r,n){void 0===n&amp;&amp;(n=1),this.r=t,this.g=e,this.b=r,this.a=n};te.parse=function(t){if(t){if(t instanceof te)return t;if(&quot;string&quot;==typeof t){var e=$t(t);if(e)return new te(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},te.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return&quot;rgba(&quot;+Math.round(e)+&quot;,&quot;+Math.round(r)+&quot;,&quot;+Math.round(n)+&quot;,&quot;+i+&quot;)&quot;},te.prototype.toArray=function(){var t=this.r,e=this.g,r=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*t/n,255*e/n,255*r/n,n]},te.black=new te(0,0,0,1),te.white=new te(1,1,1,1),te.transparent=new te(0,0,0,0),te.red=new te(1,0,0,1);var ee=function(t,e,r){this.sensitivity=t?e?&quot;variant&quot;:&quot;case&quot;:e?&quot;accent&quot;:&quot;base&quot;,this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:&quot;search&quot;})};ee.prototype.compare=function(t,e){return this.collator.compare(t,e)},ee.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var re=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},ne=function(t){this.sections=t};ne.fromString=function(t){return new ne([new re(t,null,null,null,null)])},ne.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&amp;&amp;0!==t.image.name.length}))},ne.factory=function(t){return t instanceof ne?t:ne.fromString(t)},ne.prototype.toString=function(){return 0===this.sections.length?&quot;&quot;:this.sections.map((function(t){return t.text})).join(&quot;&quot;)},ne.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];if(n.image)t.push([&quot;image&quot;,n.image.name]);else{t.push(n.text);var i={};n.fontStack&amp;&amp;(i[&quot;text-font&quot;]=[&quot;literal&quot;,n.fontStack.split(&quot;,&quot;)]),n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=[&quot;rgba&quot;].concat(n.textColor.toArray())),t.push(i)}}return t};var ie=function(t){this.name=t.name,this.available=t.available};function ae(t,e,r,n){return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=255&amp;&amp;&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=255&amp;&amp;&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;r&lt;=255?void 0===n||&quot;number&quot;==typeof n&amp;&amp;n&gt;=0&amp;&amp;n&lt;=1?null:&quot;Invalid rgba value [&quot;+[t,e,r,n].join(&quot;, &quot;)+&quot;]: 'a' must be between 0 and 1.&quot;:&quot;Invalid rgba value [&quot;+(&quot;number&quot;==typeof n?[t,e,r,n]:[t,e,r]).join(&quot;, &quot;)+&quot;]: 'r', 'g', and 'b' must be between 0 and 255.&quot;}function oe(t){if(null===t)return!0;if(&quot;string&quot;==typeof t)return!0;if(&quot;boolean&quot;==typeof t)return!0;if(&quot;number&quot;==typeof t)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(t instanceof ne)return!0;if(t instanceof ie)return!0;if(Array.isArray(t)){for(var e=0,r=t;e&lt;r.length;e+=1){if(!oe(r[e]))return!1}return!0}if(&quot;object&quot;==typeof t){for(var n in t)if(!oe(t[n]))return!1;return!0}return!1}function se(t){if(null===t)return Ft;if(&quot;string&quot;==typeof t)return Nt;if(&quot;boolean&quot;==typeof t)return jt;if(&quot;number&quot;==typeof t)return Bt;if(t instanceof te)return Ut;if(t instanceof ee)return Ht;if(t instanceof ne)return Gt;if(t instanceof ie)return Yt;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n&lt;i.length;n+=1){var a=se(i[n]);if(e){if(e===a)continue;e=qt;break}e=a}return Wt(e||qt,r)}return Vt}function le(t){var e=typeof t;return null===t?&quot;&quot;:&quot;string&quot;===e||&quot;number&quot;===e||&quot;boolean&quot;===e?String(t):t instanceof te||t instanceof ne||t instanceof ie?t.toString():JSON.stringify(t)}ie.prototype.toString=function(){return this.name},ie.fromString=function(t){return t?new ie({name:t,available:!1}):null},ie.prototype.serialize=function(){return[&quot;image&quot;,this.name]};var ce=function(t,e){this.type=t,this.value=e};ce.parse=function(t,e){if(2!==t.length)return e.error(&quot;'literal' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(!oe(t[1]))return e.error(&quot;invalid value&quot;);var r=t[1],n=se(r),i=e.expectedType;return&quot;array&quot;!==n.kind||0!==n.N||!i||&quot;array&quot;!==i.kind||&quot;number&quot;==typeof i.N&amp;&amp;0!==i.N||(n=i),new ce(n,r)},ce.prototype.evaluate=function(){return this.value},ce.prototype.eachChild=function(){},ce.prototype.outputDefined=function(){return!0},ce.prototype.serialize=function(){return&quot;array&quot;===this.type.kind||&quot;object&quot;===this.type.kind?[&quot;literal&quot;,this.value]:this.value instanceof te?[&quot;rgba&quot;].concat(this.value.toArray()):this.value instanceof ne?this.value.serialize():this.value};var ue=function(t){this.name=&quot;ExpressionEvaluationError&quot;,this.message=t};ue.prototype.toJSON=function(){return this.message};var fe={string:Nt,number:Bt,boolean:jt,object:Vt},he=function(t,e){this.type=t,this.args=e};he.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r,n=1,i=t[0];if(&quot;array&quot;===i){var a,o;if(t.length&gt;2){var s=t[1];if(&quot;string&quot;!=typeof s||!(s in fe)||&quot;object&quot;===s)return e.error('The item type argument of &quot;array&quot; must be one of string, number, boolean',1);a=fe[s],n++}else a=qt;if(t.length&gt;3){if(null!==t[2]&amp;&amp;(&quot;number&quot;!=typeof t[2]||t[2]&lt;0||t[2]!==Math.floor(t[2])))return e.error('The length argument to &quot;array&quot; must be a positive integer literal',2);o=t[2],n++}r=Wt(a,o)}else r=fe[i];for(var l=[];n&lt;t.length;n++){var c=e.parse(t[n],n,qt);if(!c)return null;l.push(c)}return new he(r,l)},he.prototype.evaluate=function(t){for(var e=0;e&lt;this.args.length;e++){var r=this.args[e].evaluate(t);if(!Jt(this.type,se(r)))return r;if(e===this.args.length-1)throw new ue(&quot;Expected value to be of type &quot;+Xt(this.type)+&quot;, but found &quot;+Xt(se(r))+&quot; instead.&quot;)}return null},he.prototype.eachChild=function(t){this.args.forEach(t)},he.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},he.prototype.serialize=function(){var t=this.type,e=[t.kind];if(&quot;array&quot;===t.kind){var r=t.itemType;if(&quot;string&quot;===r.kind||&quot;number&quot;===r.kind||&quot;boolean&quot;===r.kind){e.push(r.kind);var n=t.N;(&quot;number&quot;==typeof n||this.args.length&gt;1)&amp;&amp;e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var pe=function(t){this.type=Gt,this.sections=t};pe.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[1];if(!Array.isArray(r)&amp;&amp;&quot;object&quot;==typeof r)return e.error(&quot;First argument must be an image or text section.&quot;);for(var n=[],i=!1,a=1;a&lt;=t.length-1;++a){var o=t[a];if(i&amp;&amp;&quot;object&quot;==typeof o&amp;&amp;!Array.isArray(o)){i=!1;var s=null;if(o[&quot;font-scale&quot;]&amp;&amp;!(s=e.parse(o[&quot;font-scale&quot;],1,Bt)))return null;var l=null;if(o[&quot;text-font&quot;]&amp;&amp;!(l=e.parse(o[&quot;text-font&quot;],1,Wt(Nt))))return null;var c=null;if(o[&quot;text-color&quot;]&amp;&amp;!(c=e.parse(o[&quot;text-color&quot;],1,Ut)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,qt);if(!f)return null;var h=f.type.kind;if(&quot;string&quot;!==h&amp;&amp;&quot;value&quot;!==h&amp;&amp;&quot;null&quot;!==h&amp;&amp;&quot;resolvedImage&quot;!==h)return e.error(&quot;Formatted text type must be 'string', 'value', 'image' or 'null'.&quot;);i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new pe(n)},pe.prototype.evaluate=function(t){return new ne(this.sections.map((function(e){var r=e.content.evaluate(t);return se(r)===Yt?new re(&quot;&quot;,r,null,null,null):new re(le(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(&quot;,&quot;):null,e.textColor?e.textColor.evaluate(t):null)})))},pe.prototype.eachChild=function(t){for(var e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t(n.content),n.scale&amp;&amp;t(n.scale),n.font&amp;&amp;t(n.font),n.textColor&amp;&amp;t(n.textColor)}},pe.prototype.outputDefined=function(){return!1},pe.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale.serialize()),n.font&amp;&amp;(i[&quot;text-font&quot;]=n.font.serialize()),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=n.textColor.serialize()),t.push(i)}return t};var de=function(t){this.type=Yt,this.input=t};de.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Nt);return r?new de(r):e.error(&quot;No image name provided.&quot;)},de.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=ie.fromString(e);return r&amp;&amp;t.availableImages&amp;&amp;(r.available=t.availableImages.indexOf(e)&gt;-1),r},de.prototype.eachChild=function(t){t(this.input)},de.prototype.outputDefined=function(){return!1},de.prototype.serialize=function(){return[&quot;image&quot;,this.input.serialize()]};var ge={&quot;to-boolean&quot;:jt,&quot;to-color&quot;:Ut,&quot;to-number&quot;:Bt,&quot;to-string&quot;:Nt},me=function(t,e){this.type=t,this.args=e};me.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[0];if((&quot;to-boolean&quot;===r||&quot;to-string&quot;===r)&amp;&amp;2!==t.length)return e.error(&quot;Expected one argument.&quot;);for(var n=ge[r],i=[],a=1;a&lt;t.length;a++){var o=e.parse(t[a],a,qt);if(!o)return null;i.push(o)}return new me(n,i)},me.prototype.evaluate=function(t){if(&quot;boolean&quot;===this.type.kind)return Boolean(this.args[0].evaluate(t));if(&quot;color&quot;===this.type.kind){for(var e,r,n=0,i=this.args;n&lt;i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof te)return e;if(&quot;string&quot;==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&amp;&amp;!(r=e.length&lt;3||e.length&gt;4?&quot;Invalid rbga value &quot;+JSON.stringify(e)+&quot;: expected an array containing either three or four numeric values.&quot;:ae(e[0],e[1],e[2],e[3])))return new te(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ue(r||&quot;Could not parse color from value '&quot;+(&quot;string&quot;==typeof e?e:String(JSON.stringify(e)))+&quot;'&quot;)}if(&quot;number&quot;===this.type.kind){for(var o=null,s=0,l=this.args;s&lt;l.length;s+=1){if(null===(o=l[s].evaluate(t)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new ue(&quot;Could not convert &quot;+JSON.stringify(o)+&quot; to number.&quot;)}return&quot;formatted&quot;===this.type.kind?ne.fromString(le(this.args[0].evaluate(t))):&quot;resolvedImage&quot;===this.type.kind?ie.fromString(le(this.args[0].evaluate(t))):le(this.args[0].evaluate(t))},me.prototype.eachChild=function(t){this.args.forEach(t)},me.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},me.prototype.serialize=function(){if(&quot;formatted&quot;===this.type.kind)return new pe([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(&quot;resolvedImage&quot;===this.type.kind)return new de(this.args[0]).serialize();var t=[&quot;to-&quot;+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var ve=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ye=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ye.prototype.id=function(){return this.feature&amp;&amp;&quot;id&quot;in this.feature?this.feature.id:null},ye.prototype.geometryType=function(){return this.feature?&quot;number&quot;==typeof this.feature.type?ve[this.feature.type]:this.feature.type:null},ye.prototype.geometry=function(){return this.feature&amp;&amp;&quot;geometry&quot;in this.feature?this.feature.geometry:null},ye.prototype.canonicalID=function(){return this.canonical},ye.prototype.properties=function(){return this.feature&amp;&amp;this.feature.properties||{}},ye.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=te.parse(t)),e};var xe=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};xe.prototype.evaluate=function(t){return this._evaluate(t,this.args)},xe.prototype.eachChild=function(t){this.args.forEach(t)},xe.prototype.outputDefined=function(){return!1},xe.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},xe.parse=function(t,e){var r,n=t[0],i=xe.definitions[n];if(!i)return e.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0);for(var a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=0,u=s;c&lt;u.length;c+=1){var f=u[c],h=f[0],p=f[1];l=new Ue(e.registry,e.path,null,e.scope);for(var d=[],g=!1,m=1;m&lt;t.length;m++){var v=t[m],y=Array.isArray(h)?h[m-1]:h.type,x=l.parse(v,1+d.length,y);if(!x){g=!0;break}d.push(x)}if(!g)if(Array.isArray(h)&amp;&amp;h.length!==d.length)l.error(&quot;Expected &quot;+h.length+&quot; arguments, but found &quot;+d.length+&quot; instead.&quot;);else{for(var b=0;b&lt;d.length;b++){var _=Array.isArray(h)?h[b]:h.type,w=d[b];l.concat(b+1).checkSubtype(_,w.type)}if(0===l.errors.length)return new xe(n,a,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var T=(s.length?s:o).map((function(t){var e,r=t[0];return e=r,Array.isArray(e)?&quot;(&quot;+e.map(Xt).join(&quot;, &quot;)+&quot;)&quot;:&quot;(&quot;+Xt(e.type)+&quot;...)&quot;})).join(&quot; | &quot;),k=[],A=1;A&lt;t.length;A++){var M=e.parse(t[A],1+k.length);if(!M)return null;k.push(Xt(M.type))}e.error(&quot;Expected arguments of type &quot;+T+&quot;, but found (&quot;+k.join(&quot;, &quot;)+&quot;) instead.&quot;)}return null},xe.register=function(t,e){for(var r in xe.definitions=e,e)t[r]=xe};var be=function(t,e,r){this.type=Ht,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};be.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected one argument.&quot;);var r=t[1];if(&quot;object&quot;!=typeof r||Array.isArray(r))return e.error(&quot;Collator options argument must be an object.&quot;);var n=e.parse(void 0!==r[&quot;case-sensitive&quot;]&amp;&amp;r[&quot;case-sensitive&quot;],1,jt);if(!n)return null;var i=e.parse(void 0!==r[&quot;diacritic-sensitive&quot;]&amp;&amp;r[&quot;diacritic-sensitive&quot;],1,jt);if(!i)return null;var a=null;return r.locale&amp;&amp;!(a=e.parse(r.locale,1,Nt))?null:new be(n,i,a)},be.prototype.evaluate=function(t){return new ee(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},be.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&amp;&amp;t(this.locale)},be.prototype.outputDefined=function(){return!1},be.prototype.serialize=function(){var t={};return t[&quot;case-sensitive&quot;]=this.caseSensitive.serialize(),t[&quot;diacritic-sensitive&quot;]=this.diacriticSensitive.serialize(),this.locale&amp;&amp;(t.locale=this.locale.serialize()),[&quot;collator&quot;,t]};function _e(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function we(t,e){return!(t[0]&lt;=e[0])&amp;&amp;(!(t[2]&gt;=e[2])&amp;&amp;(!(t[1]&lt;=e[1])&amp;&amp;!(t[3]&gt;=e[3])))}function Te(t,e){var r,n=(180+t[0])/360,i=(r=t[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360),a=Math.pow(2,e.z);return[Math.round(n*a*8192),Math.round(i*a*8192)]}function ke(t,e,r){return e[1]&gt;t[1]!=r[1]&gt;t[1]&amp;&amp;t[0]&lt;(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function Ae(t,e){for(var r,n,i,a,o,s,l,c=!1,u=0,f=e.length;u&lt;f;u++)for(var h=e[u],p=0,d=h.length;p&lt;d-1;p++){if(r=t,n=h[p],i=h[p+1],a=void 0,o=void 0,s=void 0,l=void 0,a=r[0]-n[0],o=r[1]-n[1],s=r[0]-i[0],l=r[1]-i[1],a*l-s*o==0&amp;&amp;a*s&lt;=0&amp;&amp;o*l&lt;=0)return!1;ke(t,h[p],h[p+1])&amp;&amp;(c=!c)}return c}function Me(t,e){for(var r=0;r&lt;e.length;r++)if(Ae(t,e[r]))return!0;return!1}function Se(t,e,r,n){var i=t[0]-r[0],a=t[1]-r[1],o=e[0]-r[0],s=e[1]-r[1],l=n[0]-r[0],c=n[1]-r[1],u=i*c-l*a,f=o*c-l*s;return u&gt;0&amp;&amp;f&lt;0||u&lt;0&amp;&amp;f&gt;0}function Ee(t,e,r){for(var n=0,i=r;n&lt;i.length;n+=1)for(var a=i[n],o=0;o&lt;a.length-1;++o)if(s=t,l=e,c=a[o],u=a[o+1],f=void 0,h=void 0,p=void 0,d=void 0,p=[l[0]-s[0],l[1]-s[1]],d=[u[0]-c[0],u[1]-c[1]],0!=(f=d)[0]*(h=p)[1]-f[1]*h[0]&amp;&amp;Se(s,l,c,u)&amp;&amp;Se(c,u,s,l))return!0;var s,l,c,u,f,h,p,d;return!1}function Le(t,e){for(var r=0;r&lt;t.length;++r)if(!Ae(t[r],e))return!1;for(var n=0;n&lt;t.length-1;++n)if(Ee(t[n],t[n+1],e))return!1;return!0}function Ce(t,e){for(var r=0;r&lt;e.length;r++)if(Le(t,e[r]))return!0;return!1}function Pe(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){for(var a=[],o=0;o&lt;t[i].length;o++){var s=Te(t[i][o],r);_e(e,s),a.push(s)}n.push(a)}return n}function Ie(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){var a=Pe(t[i],e,r);n.push(a)}return n}function Oe(t,e,r,n){if(t[0]&lt;r[0]||t[0]&gt;r[2]){var i=.5*n,a=t[0]-r[0]&gt;i?-n:r[0]-t[0]&gt;i?n:0;0===a&amp;&amp;(a=t[0]-r[2]&gt;i?-n:r[2]-t[0]&gt;i?n:0),t[0]+=a}_e(e,t)}function ze(t,e,r,n){for(var i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],o=[],s=0,l=t;s&lt;l.length;s+=1)for(var c=0,u=l[s];c&lt;u.length;c+=1){var f=u[c],h=[f.x+a[0],f.y+a[1]];Oe(h,e,r,i),o.push(h)}return o}function De(t,e,r,n){for(var i,a=8192*Math.pow(2,n.z),o=[8192*n.x,8192*n.y],s=[],l=0,c=t;l&lt;c.length;l+=1){for(var u=[],f=0,h=c[l];f&lt;h.length;f+=1){var p=h[f],d=[p.x+o[0],p.y+o[1]];_e(e,d),u.push(d)}s.push(u)}if(e[2]-e[0]&lt;=a/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var g=0,m=s;g&lt;m.length;g+=1)for(var v=0,y=m[g];v&lt;y.length;v+=1){Oe(y[v],e,r,a)}}return s}var Re=function(t,e){this.type=jt,this.geojson=t,this.geometries=e};function Fe(t){if(t instanceof xe){if(&quot;get&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;feature-state&quot;===t.name)return!1;if(&quot;has&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;properties&quot;===t.name||&quot;geometry-type&quot;===t.name||&quot;id&quot;===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof Re)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Fe(t)&amp;&amp;(e=!1)})),e}function Be(t){if(t instanceof xe&amp;&amp;&quot;feature-state&quot;===t.name)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Be(t)&amp;&amp;(e=!1)})),e}function Ne(t,e){if(t instanceof xe&amp;&amp;e.indexOf(t.name)&gt;=0)return!1;var r=!0;return t.eachChild((function(t){r&amp;&amp;!Ne(t,e)&amp;&amp;(r=!1)})),r}Re.parse=function(t,e){if(2!==t.length)return e.error(&quot;'within' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(oe(t[1])){var r=t[1];if(&quot;FeatureCollection&quot;===r.type)for(var n=0;n&lt;r.features.length;++n){var i=r.features[n].geometry.type;if(&quot;Polygon&quot;===i||&quot;MultiPolygon&quot;===i)return new Re(r,r.features[n].geometry)}else if(&quot;Feature&quot;===r.type){var a=r.geometry.type;if(&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a)return new Re(r,r.geometry)}else if(&quot;Polygon&quot;===r.type||&quot;MultiPolygon&quot;===r.type)return new Re(r,r)}return e.error(&quot;'within' expression requires valid geojson object that contains polygon geometry type.&quot;)},Re.prototype.evaluate=function(t){if(null!=t.geometry()&amp;&amp;null!=t.canonicalID()){if(&quot;Point&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Pe(e.coordinates,n,i),o=ze(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1){if(!Ae(l[s],a))return!1}}if(&quot;MultiPolygon&quot;===e.type){var c=Ie(e.coordinates,n,i),u=ze(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1){if(!Me(h[f],c))return!1}}return!0}(t,this.geometries);if(&quot;LineString&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Pe(e.coordinates,n,i),o=De(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1){if(!Le(l[s],a))return!1}}if(&quot;MultiPolygon&quot;===e.type){var c=Ie(e.coordinates,n,i),u=De(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1){if(!Ce(h[f],c))return!1}}return!0}(t,this.geometries)}return!1},Re.prototype.eachChild=function(){},Re.prototype.outputDefined=function(){return!0},Re.prototype.serialize=function(){return[&quot;within&quot;,this.geojson]};var je=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};je.parse=function(t,e){if(2!==t.length||&quot;string&quot;!=typeof t[1])return e.error(&quot;'var' expression requires exactly one string literal argument.&quot;);var r=t[1];return e.scope.has(r)?new je(r,e.scope.get(r)):e.error('Unknown variable &quot;'+r+'&quot;. Make sure &quot;'+r+'&quot; has been bound in an enclosing &quot;let&quot; expression before using it.',1)},je.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},je.prototype.eachChild=function(){},je.prototype.outputDefined=function(){return!1},je.prototype.serialize=function(){return[&quot;var&quot;,this.name]};var Ue=function(t,e,r,n,i){void 0===e&amp;&amp;(e=[]),void 0===n&amp;&amp;(n=new Rt),void 0===i&amp;&amp;(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;),this.scope=n,this.errors=i,this.expectedType=r};function Ve(t,e){for(var r,n,i=t.length-1,a=0,o=i,s=0;a&lt;=o;)if(r=t[s=Math.floor((a+o)/2)],n=t[s+1],r&lt;=e){if(s===i||e&lt;n)return s;a=s+1}else{if(!(r&gt;e))throw new ue(&quot;Input is not a number.&quot;);o=s-1}return 0}Ue.prototype.parse=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Ue.prototype._parse=function(t,e){function r(t,e,r){return&quot;assert&quot;===r?new he(e,[t]):&quot;coerce&quot;===r?new me(e,[t]):t}if(null!==t&amp;&amp;&quot;string&quot;!=typeof t&amp;&amp;&quot;boolean&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t||(t=[&quot;literal&quot;,t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [&quot;literal&quot;, []].');var n=t[0];if(&quot;string&quot;!=typeof n)return this.error(&quot;Expression name must be a string, but found &quot;+typeof n+' instead. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if(&quot;string&quot;!==o.kind&amp;&amp;&quot;number&quot;!==o.kind&amp;&amp;&quot;boolean&quot;!==o.kind&amp;&amp;&quot;object&quot;!==o.kind&amp;&amp;&quot;array&quot;!==o.kind||&quot;value&quot;!==s.kind)if(&quot;color&quot;!==o.kind&amp;&amp;&quot;formatted&quot;!==o.kind&amp;&amp;&quot;resolvedImage&quot;!==o.kind||&quot;value&quot;!==s.kind&amp;&amp;&quot;string&quot;!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||&quot;coerce&quot;);else a=r(a,o,e.typeAnnotation||&quot;assert&quot;)}if(!(a instanceof ce)&amp;&amp;&quot;resolvedImage&quot;!==a.type.kind&amp;&amp;function t(e){if(e instanceof je)return t(e.boundExpression);if(e instanceof xe&amp;&amp;&quot;error&quot;===e.name)return!1;if(e instanceof be)return!1;if(e instanceof Re)return!1;var r=e instanceof me||e instanceof he,n=!0;if(e.eachChild((function(e){n=r?n&amp;&amp;t(e):n&amp;&amp;e instanceof ce})),!n)return!1;return Fe(e)&amp;&amp;Ne(e,[&quot;zoom&quot;,&quot;heatmap-density&quot;,&quot;line-progress&quot;,&quot;accumulated&quot;,&quot;is-supported-script&quot;])}(a)){var l=new ye;try{a=new ce(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0)}return void 0===t?this.error(&quot;'undefined' value invalid. Use null instead.&quot;):&quot;object&quot;==typeof t?this.error('Bare objects invalid. Use [&quot;literal&quot;, {...}] instead.'):this.error(&quot;Expected an array, but found &quot;+typeof t+&quot; instead.&quot;)},Ue.prototype.concat=function(t,e,r){var n=&quot;number&quot;==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Ue(this.registry,n,e||null,i,this.errors)},Ue.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];var n=&quot;&quot;+this.key+e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;);this.errors.push(new Dt(n,t))},Ue.prototype.checkSubtype=function(t,e){var r=Jt(t,e);return r&amp;&amp;this.error(r),r};var qe=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n&lt;i.length;n+=1){var a=i[n],o=a[0],s=a[1];this.labels.push(o),this.outputs.push(s)}};function He(t,e,r){return t*(1-r)+e*r}qe.parse=function(t,e){if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);var r=e.parse(t[1],1,Bt);if(!r)return null;var n=[],i=null;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(i=e.expectedType);for(var a=1;a&lt;t.length;a+=2){var o=1===a?-1/0:t[a],s=t[a+1],l=a,c=a+1;if(&quot;number&quot;!=typeof o)return e.error('Input/output pairs for &quot;step&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&amp;&amp;n[n.length-1][0]&gt;=o)return e.error('Input/output pairs for &quot;step&quot; expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new qe(i,r,n)},qe.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;return n&gt;=e[i-1]?r[i-1].evaluate(t):r[Ve(e,n)].evaluate(t)},qe.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1){t(r[e])}},qe.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},qe.prototype.serialize=function(){for(var t=[&quot;step&quot;,this.input.serialize()],e=0;e&lt;this.labels.length;e++)e&gt;0&amp;&amp;t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ge=Object.freeze({__proto__:null,number:He,color:function(t,e,r){return new te(He(t.r,e.r,r),He(t.g,e.g,r),He(t.b,e.b,r),He(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return He(t,e[n],r)}))}}),Ye=6/29,We=3*Ye*Ye,Xe=Math.PI/180,Ze=180/Math.PI;function Je(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/We+4/29}function Ke(t){return t&gt;Ye?t*t*t:We*(t-4/29)}function Qe(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $e(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function tr(t){var e=$e(t.r),r=$e(t.g),n=$e(t.b),i=Je((.4124564*e+.3575761*r+.1804375*n)/.95047),a=Je((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-Je((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function er(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*Ke(e),r=.95047*Ke(r),n=1.08883*Ke(n),new te(Qe(3.2404542*r-1.5371385*e-.4985314*n),Qe(-.969266*r+1.8760108*e+.041556*n),Qe(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function rr(t,e,r){var n=e-t;return t+r*(n&gt;180||n&lt;-180?n-360*Math.round(n/360):n)}var nr={forward:tr,reverse:er,interpolate:function(t,e,r){return{l:He(t.l,e.l,r),a:He(t.a,e.a,r),b:He(t.b,e.b,r),alpha:He(t.alpha,e.alpha,r)}}},ir={forward:function(t){var e=tr(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Ze;return{h:a&lt;0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*Xe,r=t.c;return er({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:rr(t.h,e.h,r),c:He(t.c,e.c,r),l:He(t.l,e.l,r),alpha:He(t.alpha,e.alpha,r)}}},ar=Object.freeze({__proto__:null,lab:nr,hcl:ir}),or=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a],l=s[0],c=s[1];this.labels.push(l),this.outputs.push(c)}};function sr(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}or.interpolationFactor=function(t,e,n,i){var a=0;if(&quot;exponential&quot;===t.name)a=sr(e,t.base,n,i);else if(&quot;linear&quot;===t.name)a=sr(e,1,n,i);else if(&quot;cubic-bezier&quot;===t.name){var o=t.controlPoints;a=new r(o[0],o[1],o[2],o[3]).solve(sr(e,1,n,i))}return a},or.parse=function(t,e){var r=t[0],n=t[1],i=t[2],a=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error(&quot;Expected an interpolation type expression.&quot;,1);if(&quot;linear&quot;===n[0])n={name:&quot;linear&quot;};else if(&quot;exponential&quot;===n[0]){var o=n[1];if(&quot;number&quot;!=typeof o)return e.error(&quot;Exponential interpolation requires a numeric base.&quot;,1,1);n={name:&quot;exponential&quot;,base:o}}else{if(&quot;cubic-bezier&quot;!==n[0])return e.error(&quot;Unknown interpolation type &quot;+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return&quot;number&quot;!=typeof t||t&lt;0||t&gt;1})))return e.error(&quot;Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.&quot;,1);n={name:&quot;cubic-bezier&quot;,controlPoints:s}}if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);if(!(i=e.parse(i,2,Bt)))return null;var l=[],c=null;&quot;interpolate-hcl&quot;===r||&quot;interpolate-lab&quot;===r?c=Ut:e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(c=e.expectedType);for(var u=0;u&lt;a.length;u+=2){var f=a[u],h=a[u+1],p=u+3,d=u+4;if(&quot;number&quot;!=typeof f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&amp;&amp;l[l.length-1][0]&gt;=f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(h,d,c);if(!g)return null;c=c||g.type,l.push([f,g])}return&quot;number&quot;===c.kind||&quot;color&quot;===c.kind||&quot;array&quot;===c.kind&amp;&amp;&quot;number&quot;===c.itemType.kind&amp;&amp;&quot;number&quot;==typeof c.N?new or(c,r,n,i,l):e.error(&quot;Type &quot;+Xt(c)+&quot; is not interpolatable.&quot;)},or.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;if(n&gt;=e[i-1])return r[i-1].evaluate(t);var a=Ve(e,n),o=e[a],s=e[a+1],l=or.interpolationFactor(this.interpolation,n,o,s),c=r[a].evaluate(t),u=r[a+1].evaluate(t);return&quot;interpolate&quot;===this.operator?Ge[this.type.kind.toLowerCase()](c,u,l):&quot;interpolate-hcl&quot;===this.operator?ir.reverse(ir.interpolate(ir.forward(c),ir.forward(u),l)):nr.reverse(nr.interpolate(nr.forward(c),nr.forward(u),l))},or.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1){t(r[e])}},or.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},or.prototype.serialize=function(){var t;t=&quot;linear&quot;===this.interpolation.name?[&quot;linear&quot;]:&quot;exponential&quot;===this.interpolation.name?1===this.interpolation.base?[&quot;linear&quot;]:[&quot;exponential&quot;,this.interpolation.base]:[&quot;cubic-bezier&quot;].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r&lt;this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var lr=function(t,e){this.type=t,this.args=e};lr.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expectected at least one argument.&quot;);var r=null,n=e.expectedType;n&amp;&amp;&quot;value&quot;!==n.kind&amp;&amp;(r=n);for(var i=[],a=0,o=t.slice(1);a&lt;o.length;a+=1){var s=o[a],l=e.parse(s,1+i.length,r,void 0,{typeAnnotation:&quot;omit&quot;});if(!l)return null;r=r||l.type,i.push(l)}var c=n&amp;&amp;i.some((function(t){return Jt(n,t.type)}));return new lr(c?qt:r,i)},lr.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,a=this.args;i&lt;a.length;i+=1){if(n++,(r=a[i].evaluate(t))&amp;&amp;r instanceof ie&amp;&amp;!r.available&amp;&amp;(e||(e=r.name),r=null,n===this.args.length&amp;&amp;(r=e)),null!==r)break}return r},lr.prototype.eachChild=function(t){this.args.forEach(t)},lr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},lr.prototype.serialize=function(){var t=[&quot;coalesce&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var cr=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};cr.prototype.evaluate=function(t){return this.result.evaluate(t)},cr.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e&lt;r.length;e+=1){t(r[e][1])}t(this.result)},cr.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);for(var r=[],n=1;n&lt;t.length-1;n+=2){var i=t[n];if(&quot;string&quot;!=typeof i)return e.error(&quot;Expected string, but found &quot;+typeof i+&quot; instead.&quot;,n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(&quot;Variable names must contain only alphanumeric characters or '_'.&quot;,n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new cr(r,o):null},cr.prototype.outputDefined=function(){return this.result.outputDefined()},cr.prototype.serialize=function(){for(var t=[&quot;let&quot;],e=0,r=this.bindings;e&lt;r.length;e+=1){var n=r[e],i=n[0],a=n[1];t.push(i,a.serialize())}return t.push(this.result.serialize()),t};var ur=function(t,e,r){this.type=t,this.index=e,this.input=r};ur.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Bt),n=e.parse(t[2],2,Wt(e.expectedType||qt));if(!r||!n)return null;var i=n.type;return new ur(i.itemType,r,n)},ur.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e&lt;0)throw new ue(&quot;Array index out of bounds: &quot;+e+&quot; &lt; 0.&quot;);if(e&gt;=r.length)throw new ue(&quot;Array index out of bounds: &quot;+e+&quot; &gt; &quot;+(r.length-1)+&quot;.&quot;);if(e!==Math.floor(e))throw new ue(&quot;Array index must be an integer, but found &quot;+e+&quot; instead.&quot;);return r[e]},ur.prototype.eachChild=function(t){t(this.index),t(this.input)},ur.prototype.outputDefined=function(){return!1},ur.prototype.serialize=function(){return[&quot;at&quot;,this.index.serialize(),this.input.serialize()]};var fr=function(t,e){this.type=jt,this.needle=t,this.haystack=e};fr.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,qt),n=e.parse(t[2],2,qt);return r&amp;&amp;n?Kt(r.type,[jt,Nt,Bt,Ft,qt])?new fr(r,n):e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(r.type)+&quot; instead&quot;):null},fr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Qt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new ue(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(se(e))+&quot; instead.&quot;);if(!Qt(r,[&quot;string&quot;,&quot;array&quot;]))throw new ue(&quot;Expected second argument to be of type array or string, but found &quot;+Xt(se(r))+&quot; instead.&quot;);return r.indexOf(e)&gt;=0},fr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},fr.prototype.outputDefined=function(){return!0},fr.prototype.serialize=function(){return[&quot;in&quot;,this.needle.serialize(),this.haystack.serialize()]};var hr=function(t,e,r){this.type=Bt,this.needle=t,this.haystack=e,this.fromIndex=r};hr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,qt),n=e.parse(t[2],2,qt);if(!r||!n)return null;if(!Kt(r.type,[jt,Nt,Bt,Ft,qt]))return e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Bt);return i?new hr(r,n,i):null}return new hr(r,n)},hr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Qt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new ue(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(se(e))+&quot; instead.&quot;);if(!Qt(r,[&quot;string&quot;,&quot;array&quot;]))throw new ue(&quot;Expected second argument to be of type array or string, but found &quot;+Xt(se(r))+&quot; instead.&quot;);if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},hr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&amp;&amp;t(this.fromIndex)},hr.prototype.outputDefined=function(){return!1},hr.prototype.serialize=function(){if(null!=this.fromIndex&amp;&amp;void 0!==this.fromIndex){var t=this.fromIndex.serialize();return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize(),t]}return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize()]};var pr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};pr.parse=function(t,e){if(t.length&lt;5)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=1)return e.error(&quot;Expected an even number of arguments.&quot;);var r,n;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(n=e.expectedType);for(var i={},a=[],o=2;o&lt;t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(&quot;Expected at least one branch label.&quot;);for(var u=0,f=s;u&lt;f.length;u+=1){var h=f[u];if(&quot;number&quot;!=typeof h&amp;&amp;&quot;string&quot;!=typeof h)return c.error(&quot;Branch labels must be numbers or strings.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.abs(h)&gt;Number.MAX_SAFE_INTEGER)return c.error(&quot;Branch labels must be integers no larger than &quot;+Number.MAX_SAFE_INTEGER+&quot;.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.floor(h)!==h)return c.error(&quot;Numeric branch labels must be integer values.&quot;);if(r){if(c.checkSubtype(r,se(h)))return null}else r=se(h);if(void 0!==i[String(h)])return c.error(&quot;Branch labels must be unique.&quot;);i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,qt);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?&quot;value&quot;!==d.type.kind&amp;&amp;e.concat(1).checkSubtype(r,d.type)?null:new pr(r,n,d,i,a,g):null},pr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(se(e)===this.inputType&amp;&amp;this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},pr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},pr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},pr.prototype.serialize=function(){for(var t=this,e=[&quot;match&quot;,this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i&lt;a.length;i+=1){var o=a[i];void 0===(f=n[this.cases[o]])?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[f][1].push(o)}for(var s=function(e){return&quot;number&quot;===t.inputType.kind?Number(e):e},l=0,c=r;l&lt;c.length;l+=1){var u=c[l],f=u[0],h=u[1];1===h.length?e.push(s(h[0])):e.push(h.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var dr=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};dr.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=0)return e.error(&quot;Expected an odd number of arguments.&quot;);var r;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(r=e.expectedType);for(var n=[],i=1;i&lt;t.length-1;i+=2){var a=e.parse(t[i],i,jt);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new dr(r,n,s):null},dr.prototype.evaluate=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[0],a=n[1];if(i.evaluate(t))return a.evaluate(t)}return this.otherwise.evaluate(t)},dr.prototype.eachChild=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[0],a=n[1];t(i),t(a)}t(this.otherwise)},dr.prototype.outputDefined=function(){return this.branches.every((function(t){t[0];return t[1].outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},dr.prototype.serialize=function(){var t=[&quot;case&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var gr=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function mr(t,e){return&quot;==&quot;===t||&quot;!=&quot;===t?&quot;boolean&quot;===e.kind||&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;null&quot;===e.kind||&quot;value&quot;===e.kind:&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;value&quot;===e.kind}function vr(t,e,r,n){return 0===n.compare(e,r)}function yr(t,e,r){var n=&quot;==&quot;!==t&amp;&amp;&quot;!=&quot;!==t;return function(){function i(t,e,r){this.type=jt,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument=&quot;value&quot;===t.type.kind||&quot;value&quot;===e.type.kind}return i.parse=function(t,e){if(3!==t.length&amp;&amp;4!==t.length)return e.error(&quot;Expected two or three arguments.&quot;);var r=t[0],a=e.parse(t[1],1,qt);if(!a)return null;if(!mr(r,a.type))return e.concat(1).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Xt(a.type)+&quot;'.&quot;);var o=e.parse(t[2],2,qt);if(!o)return null;if(!mr(r,o.type))return e.concat(2).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Xt(o.type)+&quot;'.&quot;);if(a.type.kind!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot compare types '&quot;+Xt(a.type)+&quot;' and '&quot;+Xt(o.type)+&quot;'.&quot;);n&amp;&amp;(&quot;value&quot;===a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind?a=new he(o.type,[a]):&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;===o.type.kind&amp;&amp;(o=new he(a.type,[o])));var s=null;if(4===t.length){if(&quot;string&quot;!==a.type.kind&amp;&amp;&quot;string&quot;!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot use collator to compare non-string types.&quot;);if(!(s=e.parse(t[3],3,Ht)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&amp;&amp;this.hasUntypedArgument){var s=se(a),l=se(o);if(s.kind!==l.kind||&quot;string&quot;!==s.kind&amp;&amp;&quot;number&quot;!==s.kind)throw new ue('Expected arguments for &quot;'+t+'&quot; to be (string, string) or (number, number), but found ('+s.kind+&quot;, &quot;+l.kind+&quot;) instead.&quot;)}if(this.collator&amp;&amp;!n&amp;&amp;this.hasUntypedArgument){var c=se(a),u=se(o);if(&quot;string&quot;!==c.kind||&quot;string&quot;!==u.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&amp;&amp;t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}gr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,qt),n=e.parse(t[2],2,Bt);if(!r||!n)return null;if(!Kt(r.type,[Wt(qt),Nt,qt]))return e.error(&quot;Expected first argument to be of type array or string, but found &quot;+Xt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Bt);return i?new gr(r.type,r,n,i):null}return new gr(r.type,r,n)},gr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Qt(e,[&quot;string&quot;,&quot;array&quot;]))throw new ue(&quot;Expected first argument to be of type array or string, but found &quot;+Xt(se(e))+&quot; instead.&quot;);if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},gr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&amp;&amp;t(this.endIndex)},gr.prototype.outputDefined=function(){return!1},gr.prototype.serialize=function(){if(null!=this.endIndex&amp;&amp;void 0!==this.endIndex){var t=this.endIndex.serialize();return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize(),t]}return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize()]};var xr=yr(&quot;==&quot;,(function(t,e,r){return e===r}),vr),br=yr(&quot;!=&quot;,(function(t,e,r){return e!==r}),(function(t,e,r,n){return!vr(0,e,r,n)})),_r=yr(&quot;&lt;&quot;,(function(t,e,r){return e&lt;r}),(function(t,e,r,n){return n.compare(e,r)&lt;0})),wr=yr(&quot;&gt;&quot;,(function(t,e,r){return e&gt;r}),(function(t,e,r,n){return n.compare(e,r)&gt;0})),Tr=yr(&quot;&lt;=&quot;,(function(t,e,r){return e&lt;=r}),(function(t,e,r,n){return n.compare(e,r)&lt;=0})),kr=yr(&quot;&gt;=&quot;,(function(t,e,r){return e&gt;=r}),(function(t,e,r,n){return n.compare(e,r)&gt;=0})),Ar=function(t,e,r,n,i){this.type=Nt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Ar.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Bt);if(!r)return null;var n=t[2];if(&quot;object&quot;!=typeof n||Array.isArray(n))return e.error(&quot;NumberFormat options argument must be an object.&quot;);var i=null;if(n.locale&amp;&amp;!(i=e.parse(n.locale,1,Nt)))return null;var a=null;if(n.currency&amp;&amp;!(a=e.parse(n.currency,1,Nt)))return null;var o=null;if(n[&quot;min-fraction-digits&quot;]&amp;&amp;!(o=e.parse(n[&quot;min-fraction-digits&quot;],1,Bt)))return null;var s=null;return n[&quot;max-fraction-digits&quot;]&amp;&amp;!(s=e.parse(n[&quot;max-fraction-digits&quot;],1,Bt))?null:new Ar(r,i,a,o,s)},Ar.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?&quot;currency&quot;:&quot;decimal&quot;,currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Ar.prototype.eachChild=function(t){t(this.number),this.locale&amp;&amp;t(this.locale),this.currency&amp;&amp;t(this.currency),this.minFractionDigits&amp;&amp;t(this.minFractionDigits),this.maxFractionDigits&amp;&amp;t(this.maxFractionDigits)},Ar.prototype.outputDefined=function(){return!1},Ar.prototype.serialize=function(){var t={};return this.locale&amp;&amp;(t.locale=this.locale.serialize()),this.currency&amp;&amp;(t.currency=this.currency.serialize()),this.minFractionDigits&amp;&amp;(t[&quot;min-fraction-digits&quot;]=this.minFractionDigits.serialize()),this.maxFractionDigits&amp;&amp;(t[&quot;max-fraction-digits&quot;]=this.maxFractionDigits.serialize()),[&quot;number-format&quot;,this.number.serialize(),t]};var Mr=function(t){this.type=Bt,this.input=t};Mr.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected 1 argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1);return r?&quot;array&quot;!==r.type.kind&amp;&amp;&quot;string&quot;!==r.type.kind&amp;&amp;&quot;value&quot;!==r.type.kind?e.error(&quot;Expected argument of type string or array, but found &quot;+Xt(r.type)+&quot; instead.&quot;):new Mr(r):null},Mr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(&quot;string&quot;==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ue(&quot;Expected value to be of type string or array, but found &quot;+Xt(se(e))+&quot; instead.&quot;)},Mr.prototype.eachChild=function(t){t(this.input)},Mr.prototype.outputDefined=function(){return!1},Mr.prototype.serialize=function(){var t=[&quot;length&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var Sr={&quot;==&quot;:xr,&quot;!=&quot;:br,&quot;&gt;&quot;:wr,&quot;&lt;&quot;:_r,&quot;&gt;=&quot;:kr,&quot;&lt;=&quot;:Tr,array:he,at:ur,boolean:he,case:dr,coalesce:lr,collator:be,format:pe,image:de,in:fr,&quot;index-of&quot;:hr,interpolate:or,&quot;interpolate-hcl&quot;:or,&quot;interpolate-lab&quot;:or,length:Mr,let:cr,literal:ce,match:pr,number:he,&quot;number-format&quot;:Ar,object:he,slice:gr,step:qe,string:he,&quot;to-boolean&quot;:me,&quot;to-color&quot;:me,&quot;to-number&quot;:me,&quot;to-string&quot;:me,var:je,within:Re};function Er(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=ae(r,n,i,o);if(s)throw new ue(s);return new te(r/255*o,n/255*o,i/255*o,o)}function Lr(t,e){return t in e}function Cr(t,e){var r=e[t];return void 0===r?null:r}function Pr(t){return{type:t}}function Ir(t){return{result:&quot;success&quot;,value:t}}function Or(t){return{result:&quot;error&quot;,value:t}}function zr(t){return&quot;data-driven&quot;===t[&quot;property-type&quot;]||&quot;cross-faded-data-driven&quot;===t[&quot;property-type&quot;]}function Dr(t){return!!t.expression&amp;&amp;t.expression.parameters.indexOf(&quot;zoom&quot;)&gt;-1}function Rr(t){return!!t.expression&amp;&amp;t.expression.interpolated}function Fr(t){return t instanceof Number?&quot;number&quot;:t instanceof String?&quot;string&quot;:t instanceof Boolean?&quot;boolean&quot;:Array.isArray(t)?&quot;array&quot;:null===t?&quot;null&quot;:typeof t}function Br(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}function Nr(t){return t}function jr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Ur(t,e,r,n,i){return jr(typeof r===i?n[r]:void 0,t.default,e.default)}function Vr(t,e,r){if(&quot;number&quot;!==Fr(r))return jr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[n-1][0])return t.stops[n-1][1];var i=Ve(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function qr(t,e,r){var n=void 0!==t.base?t.base:1;if(&quot;number&quot;!==Fr(r))return jr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[i-1][0])return t.stops[i-1][1];var a=Ve(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Ge[e.type]||Nr;if(t.colorSpace&amp;&amp;&quot;rgb&quot;!==t.colorSpace){var u=ar[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return&quot;function&quot;==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&amp;&amp;void 0!==n)return c(r,n,o)}}:c(s,l,o)}function Hr(t,e,r){return&quot;color&quot;===e.type?r=te.parse(r):&quot;formatted&quot;===e.type?r=ne.fromString(r.toString()):&quot;resolvedImage&quot;===e.type?r=ie.fromString(r.toString()):Fr(r)===e.type||&quot;enum&quot;===e.type&amp;&amp;e.values[r]||(r=void 0),jr(r,t.default,e.default)}xe.register(Sr,{error:[{kind:&quot;error&quot;},[Nt],function(t,e){var r=e[0];throw new ue(r.evaluate(t))}],typeof:[Nt,[qt],function(t,e){return Xt(se(e[0].evaluate(t)))}],&quot;to-rgba&quot;:[Wt(Bt,4),[Ut],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Ut,[Bt,Bt,Bt],Er],rgba:[Ut,[Bt,Bt,Bt,Bt],Er],has:{type:jt,overloads:[[[Nt],function(t,e){return Lr(e[0].evaluate(t),t.properties())}],[[Nt,Vt],function(t,e){var r=e[0],n=e[1];return Lr(r.evaluate(t),n.evaluate(t))}]]},get:{type:qt,overloads:[[[Nt],function(t,e){return Cr(e[0].evaluate(t),t.properties())}],[[Nt,Vt],function(t,e){var r=e[0],n=e[1];return Cr(r.evaluate(t),n.evaluate(t))}]]},&quot;feature-state&quot;:[qt,[Nt],function(t,e){return Cr(e[0].evaluate(t),t.featureState||{})}],properties:[Vt,[],function(t){return t.properties()}],&quot;geometry-type&quot;:[Nt,[],function(t){return t.geometryType()}],id:[qt,[],function(t){return t.id()}],zoom:[Bt,[],function(t){return t.globals.zoom}],&quot;heatmap-density&quot;:[Bt,[],function(t){return t.globals.heatmapDensity||0}],&quot;line-progress&quot;:[Bt,[],function(t){return t.globals.lineProgress||0}],accumulated:[qt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],&quot;+&quot;:[Bt,Pr(Bt),function(t,e){for(var r=0,n=0,i=e;n&lt;i.length;n+=1){r+=i[n].evaluate(t)}return r}],&quot;*&quot;:[Bt,Pr(Bt),function(t,e){for(var r=1,n=0,i=e;n&lt;i.length;n+=1){r*=i[n].evaluate(t)}return r}],&quot;-&quot;:{type:Bt,overloads:[[[Bt,Bt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[Bt],function(t,e){return-e[0].evaluate(t)}]]},&quot;/&quot;:[Bt,[Bt,Bt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],&quot;%&quot;:[Bt,[Bt,Bt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[Bt,[],function(){return Math.LN2}],pi:[Bt,[],function(){return Math.PI}],e:[Bt,[],function(){return Math.E}],&quot;^&quot;:[Bt,[Bt,Bt],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[Bt,[Bt],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[Bt,[Bt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[Bt,[Bt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[Bt,[Bt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[Bt,[Bt],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[Bt,[Bt],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[Bt,[Bt],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[Bt,[Bt],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[Bt,[Bt],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[Bt,[Bt],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[Bt,Pr(Bt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Bt,Pr(Bt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Bt,[Bt],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[Bt,[Bt],function(t,e){var r=e[0].evaluate(t);return r&lt;0?-Math.round(-r):Math.round(r)}],floor:[Bt,[Bt],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[Bt,[Bt],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],&quot;filter-==&quot;:[jt,[Nt,qt],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],&quot;filter-id-==&quot;:[jt,[qt],function(t,e){var r=e[0];return t.id()===r.value}],&quot;filter-type-==&quot;:[jt,[Nt],function(t,e){var r=e[0];return t.geometryType()===r.value}],&quot;filter-&lt;&quot;:[jt,[Nt,qt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;a}],&quot;filter-id-&lt;&quot;:[jt,[qt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;i}],&quot;filter-&gt;&quot;:[jt,[Nt,qt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;a}],&quot;filter-id-&gt;&quot;:[jt,[qt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;i}],&quot;filter-&lt;=&quot;:[jt,[Nt,qt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;=a}],&quot;filter-id-&lt;=&quot;:[jt,[qt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;=i}],&quot;filter-&gt;=&quot;:[jt,[Nt,qt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;=a}],&quot;filter-id-&gt;=&quot;:[jt,[qt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;=i}],&quot;filter-has&quot;:[jt,[qt],function(t,e){return e[0].value in t.properties()}],&quot;filter-has-id&quot;:[jt,[],function(t){return null!==t.id()&amp;&amp;void 0!==t.id()}],&quot;filter-type-in&quot;:[jt,[Wt(Nt)],function(t,e){return e[0].value.indexOf(t.geometryType())&gt;=0}],&quot;filter-id-in&quot;:[jt,[Wt(qt)],function(t,e){return e[0].value.indexOf(t.id())&gt;=0}],&quot;filter-in-small&quot;:[jt,[Nt,Wt(qt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])&gt;=0}],&quot;filter-in-large&quot;:[jt,[Nt,Wt(qt)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r&lt;=n;){var i=r+n&gt;&gt;1;if(e[i]===t)return!0;e[i]&gt;t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:jt,overloads:[[[jt,jt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&amp;&amp;n.evaluate(t)}],[Pr(jt),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1){if(!n[r].evaluate(t))return!1}return!0}]]},any:{type:jt,overloads:[[[jt,jt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Pr(jt),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1){if(n[r].evaluate(t))return!0}return!1}]]},&quot;!&quot;:[jt,[jt],function(t,e){return!e[0].evaluate(t)}],&quot;is-supported-script&quot;:[jt,[Nt],function(t,e){var r=e[0],n=t.globals&amp;&amp;t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[Nt,[Nt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Nt,[Nt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Nt,Pr(qt),function(t,e){return e.map((function(e){return le(e.evaluate(t))})).join(&quot;&quot;)}],&quot;resolved-locale&quot;:[Nt,[Ht],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Gr=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ye,this._defaultValue=e?function(t){return&quot;color&quot;===t.type&amp;&amp;Br(t.default)?new te(0,0,0,0):&quot;color&quot;===t.type?te.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&amp;&amp;&quot;enum&quot;===e.type?e.values:null};function Yr(t){return Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;t[0]in Sr}function Wr(t,e){var r=new Ue(Sr,[],e?function(t){var e={color:Ut,string:Nt,number:Bt,enum:Nt,boolean:jt,formatted:Gt,resolvedImage:Yt};if(&quot;array&quot;===t.type)return Wt(e[t.value]||qt,t.length);return e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&amp;&amp;&quot;string&quot;===e.type?{typeAnnotation:&quot;coerce&quot;}:void 0);return n?Ir(new Gr(n,e)):Or(r.errors)}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},Gr.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||&quot;number&quot;==typeof o&amp;&amp;o!=o)return this._defaultValue;if(this._enumValues&amp;&amp;!(o in this._enumValues))throw new ue(&quot;Expected value to be one of &quot;+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(&quot;, &quot;)+&quot;, but found &quot;+JSON.stringify(o)+&quot; instead.&quot;);return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t.message)),this._defaultValue}};var Xr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent=&quot;constant&quot;!==t&amp;&amp;!Be(e.expression)};Xr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Xr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var Zr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=&quot;camera&quot;!==t&amp;&amp;!Be(e.expression),this.interpolationType=n};function Jr(t,e){if(&quot;error&quot;===(t=Wr(t,e)).result)return t;var r=t.value.expression,n=Fe(r);if(!n&amp;&amp;!zr(e))return Or([new Dt(&quot;&quot;,&quot;data expressions not supported&quot;)]);var i=Ne(r,[&quot;zoom&quot;]);if(!i&amp;&amp;!Dr(e))return Or([new Dt(&quot;&quot;,&quot;zoom expressions not supported&quot;)]);var a=function t(e){var r=null;if(e instanceof cr)r=t(e.result);else if(e instanceof lr)for(var n=0,i=e.args;n&lt;i.length;n+=1){var a=i[n];if(r=t(a))break}else(e instanceof qe||e instanceof or)&amp;&amp;e.input instanceof xe&amp;&amp;&quot;zoom&quot;===e.input.name&amp;&amp;(r=e);if(r instanceof Dt)return r;return e.eachChild((function(e){var n=t(e);n instanceof Dt?r=n:!r&amp;&amp;n?r=new Dt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.'):r&amp;&amp;n&amp;&amp;r!==n&amp;&amp;(r=new Dt(&quot;&quot;,'Only one zoom-based &quot;step&quot; or &quot;interpolate&quot; subexpression may be used in an expression.'))})),r}(r);if(!a&amp;&amp;!i)return Or([new Dt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.')]);if(a instanceof Dt)return Or([a]);if(a instanceof or&amp;&amp;!Rr(e))return Or([new Dt(&quot;&quot;,'&quot;interpolate&quot; expressions cannot be used with this property')]);if(!a)return Ir(new Xr(n?&quot;constant&quot;:&quot;source&quot;,t.value));var o=a instanceof or?a.interpolation:void 0;return Ir(new Zr(n?&quot;camera&quot;:&quot;composite&quot;,t.value,a.labels,o))}Zr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Zr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},Zr.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?or.interpolationFactor(this.interpolationType,t,e,r):0};var Kr=function(t,e){this._parameters=t,this._specification=e,It(this,function t(e,r){var n,i,a,o=&quot;color&quot;===r.type,s=e.stops&amp;&amp;&quot;object&quot;==typeof e.stops[0][0],l=s||void 0!==e.property,c=s||!l,u=e.type||(Rr(r)?&quot;exponential&quot;:&quot;interval&quot;);if(o&amp;&amp;((e=It({},e)).stops&amp;&amp;(e.stops=e.stops.map((function(t){return[t[0],te.parse(t[1])]}))),e.default?e.default=te.parse(e.default):e.default=te.parse(r.default)),e.colorSpace&amp;&amp;&quot;rgb&quot;!==e.colorSpace&amp;&amp;!ar[e.colorSpace])throw new Error(&quot;Unknown color space: &quot;+e.colorSpace);if(&quot;exponential&quot;===u)n=qr;else if(&quot;interval&quot;===u)n=Vr;else if(&quot;categorical&quot;===u){n=Ur,i=Object.create(null);for(var f=0,h=e.stops;f&lt;h.length;f+=1){var p=h[f];i[p[0]]=p[1]}a=typeof e.stops[0][0]}else{if(&quot;identity&quot;!==u)throw new Error('Unknown function type &quot;'+u+'&quot;');n=Hr}if(s){for(var d={},g=[],m=0;m&lt;e.stops.length;m++){var v=e.stops[m],y=v[0].zoom;void 0===d[y]&amp;&amp;(d[y]={zoom:y,type:e.type,property:e.property,default:e.default,stops:[]},g.push(y)),d[y].stops.push([v[0].value,v[1]])}for(var x=[],b=0,_=g;b&lt;_.length;b+=1){var w=_[b];x.push([d[w].zoom,t(d[w],r)])}var T={name:&quot;linear&quot;};return{kind:&quot;composite&quot;,interpolationType:T,interpolationFactor:or.interpolationFactor.bind(void 0,T),zoomStops:x.map((function(t){return t[0]})),evaluate:function(t,n){var i=t.zoom;return qr({stops:x,base:e.base},r,i).evaluate(i,n)}}}if(c){var k=&quot;exponential&quot;===u?{name:&quot;exponential&quot;,base:void 0!==e.base?e.base:1}:null;return{kind:&quot;camera&quot;,interpolationType:k,interpolationFactor:or.interpolationFactor.bind(void 0,k),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){var o=t.zoom;return n(e,r,o,i,a)}}}return{kind:&quot;source&quot;,evaluate:function(t,o){var s=o&amp;&amp;o.properties?o.properties[e.property]:void 0;return void 0===s?jr(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Qr(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=Fr(r);if(&quot;object&quot;!==l)return[new Ct(e,r,&quot;object expected, &quot;+l+&quot; found&quot;)];for(var c in r){var u=c.split(&quot;.&quot;)[0],f=n[u]||n[&quot;*&quot;],h=void 0;if(i[u])h=i[u];else if(n[u])h=kn;else if(i[&quot;*&quot;])h=i[&quot;*&quot;];else{if(!n[&quot;*&quot;]){s.push(new Ct(e,r[c],'unknown property &quot;'+c+'&quot;'));continue}h=kn}s=s.concat(h({key:(e?e+&quot;.&quot;:e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&amp;&amp;void 0===n[p].default&amp;&amp;void 0===r[p]&amp;&amp;s.push(new Ct(e,r,'missing required property &quot;'+p+'&quot;'));return s}function $r(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||kn;if(&quot;array&quot;!==Fr(e))return[new Ct(a,e,&quot;array expected, &quot;+Fr(e)+&quot; found&quot;)];if(r.length&amp;&amp;e.length!==r.length)return[new Ct(a,e,&quot;array length &quot;+r.length+&quot; expected, length &quot;+e.length+&quot; found&quot;)];if(r[&quot;min-length&quot;]&amp;&amp;e.length&lt;r[&quot;min-length&quot;])return[new Ct(a,e,&quot;array length at least &quot;+r[&quot;min-length&quot;]+&quot; expected, length &quot;+e.length+&quot; found&quot;)];var s={type:r.value,values:r.values};i.$version&lt;7&amp;&amp;(s.function=r.function),&quot;object&quot;===Fr(r.value)&amp;&amp;(s=r.value);for(var l=[],c=0;c&lt;e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+&quot;[&quot;+c+&quot;]&quot;}));return l}function tn(t){var e=t.key,r=t.value,n=t.valueSpec,i=Fr(r);return&quot;number&quot;===i&amp;&amp;r!=r&amp;&amp;(i=&quot;NaN&quot;),&quot;number&quot;!==i?[new Ct(e,r,&quot;number expected, &quot;+i+&quot; found&quot;)]:&quot;minimum&quot;in n&amp;&amp;r&lt;n.minimum?[new Ct(e,r,r+&quot; is less than the minimum value &quot;+n.minimum)]:&quot;maximum&quot;in n&amp;&amp;r&gt;n.maximum?[new Ct(e,r,r+&quot; is greater than the maximum value &quot;+n.maximum)]:[]}function en(t){var e,r,n,i=t.valueSpec,a=Ot(t.value.type),o={},s=&quot;categorical&quot;!==a&amp;&amp;void 0===t.value.property,l=!s,c=&quot;array&quot;===Fr(t.value.stops)&amp;&amp;&quot;array&quot;===Fr(t.value.stops[0])&amp;&amp;&quot;object&quot;===Fr(t.value.stops[0][0]),u=Qr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(&quot;identity&quot;===a)return[new Ct(t.key,t.value,'identity function may not have a &quot;stops&quot; property')];var e=[],r=t.value;e=e.concat($r({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),&quot;array&quot;===Fr(r)&amp;&amp;0===r.length&amp;&amp;e.push(new Ct(t.key,r,&quot;array must have at least one stop&quot;));return e},default:function(t){return kn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return&quot;identity&quot;===a&amp;&amp;s&amp;&amp;u.push(new Ct(t.key,t.value,'missing required property &quot;property&quot;')),&quot;identity&quot;===a||t.value.stops||u.push(new Ct(t.key,t.value,'missing required property &quot;stops&quot;')),&quot;exponential&quot;===a&amp;&amp;t.valueSpec.expression&amp;&amp;!Rr(t.valueSpec)&amp;&amp;u.push(new Ct(t.key,t.value,&quot;exponential functions not supported&quot;)),t.styleSpec.$version&gt;=8&amp;&amp;(l&amp;&amp;!zr(t.valueSpec)?u.push(new Ct(t.key,t.value,&quot;property functions not supported&quot;)):s&amp;&amp;!Dr(t.valueSpec)&amp;&amp;u.push(new Ct(t.key,t.value,&quot;zoom functions not supported&quot;))),&quot;categorical&quot;!==a&amp;&amp;!c||void 0!==t.value.property||u.push(new Ct(t.key,t.value,'&quot;property&quot; property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(&quot;array&quot;!==Fr(a))return[new Ct(s,a,&quot;array expected, &quot;+Fr(a)+&quot; found&quot;)];if(2!==a.length)return[new Ct(s,a,&quot;array length 2 expected, length &quot;+a.length+&quot; found&quot;)];if(c){if(&quot;object&quot;!==Fr(a[0]))return[new Ct(s,a,&quot;object expected, &quot;+Fr(a[0])+&quot; found&quot;)];if(void 0===a[0].zoom)return[new Ct(s,a,&quot;object stop key must have zoom&quot;)];if(void 0===a[0].value)return[new Ct(s,a,&quot;object stop key must have value&quot;)];if(n&amp;&amp;n&gt;Ot(a[0].zoom))return[new Ct(s,a[0].zoom,&quot;stop zoom values must appear in ascending order&quot;)];Ot(a[0].zoom)!==n&amp;&amp;(n=Ot(a[0].zoom),r=void 0,o={}),e=e.concat(Qr({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:tn,value:h}}))}else e=e.concat(h({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return Yr(zt(a[1]))?e.concat([new Ct(s+&quot;[1]&quot;,a[1],&quot;expressions are not allowed in function stops.&quot;)]):e.concat(kn({key:s+&quot;[1]&quot;,value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=Fr(t.value),l=Ot(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new Ct(t.key,c,s+&quot; stop domain type must match previous stop domain type &quot;+e)]}else e=s;if(&quot;number&quot;!==s&amp;&amp;&quot;string&quot;!==s&amp;&amp;&quot;boolean&quot;!==s)return[new Ct(t.key,c,&quot;stop domain value must be a number, string, or boolean&quot;)];if(&quot;number&quot;!==s&amp;&amp;&quot;categorical&quot;!==a){var u=&quot;number expected, &quot;+s+&quot; found&quot;;return zr(i)&amp;&amp;void 0===a&amp;&amp;(u+='\nIf you intended to use a categorical function, specify `&quot;type&quot;: &quot;categorical&quot;`.'),[new Ct(t.key,c,u)]}return&quot;categorical&quot;!==a||&quot;number&quot;!==s||isFinite(l)&amp;&amp;Math.floor(l)===l?&quot;categorical&quot;!==a&amp;&amp;&quot;number&quot;===s&amp;&amp;void 0!==r&amp;&amp;l&lt;r?[new Ct(t.key,c,&quot;stop domain values must appear in ascending order&quot;)]:(r=l,&quot;categorical&quot;===a&amp;&amp;l in o?[new Ct(t.key,c,&quot;stop domain values must be unique&quot;)]:(o[l]=!0,[])):[new Ct(t.key,c,&quot;integer expected, found &quot;+l)]}}function rn(t){var e=(&quot;property&quot;===t.expressionContext?Jr:Wr)(zt(t.value),t.valueSpec);if(&quot;error&quot;===e.result)return e.value.map((function(e){return new Ct(&quot;&quot;+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;text-font&quot;===t.propertyKey&amp;&amp;!r.outputDefined())return[new Ct(t.key,t.value,'Invalid data expression for &quot;'+t.propertyKey+'&quot;. Output values must be contained as literals within the expression.')];if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;layout&quot;===t.propertyType&amp;&amp;!Be(r))return[new Ct(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with layout properties.')];if(&quot;filter&quot;===t.expressionContext&amp;&amp;!Be(r))return[new Ct(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with filters.')];if(t.expressionContext&amp;&amp;0===t.expressionContext.indexOf(&quot;cluster&quot;)){if(!Ne(r,[&quot;zoom&quot;,&quot;feature-state&quot;]))return[new Ct(t.key,t.value,'&quot;zoom&quot; and &quot;feature-state&quot; expressions are not supported with cluster properties.')];if(&quot;cluster-initial&quot;===t.expressionContext&amp;&amp;!Fe(r))return[new Ct(t.key,t.value,&quot;Feature data expressions are not supported with initial expression part of cluster properties.&quot;)]}return[]}function nn(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(Ot(r))&amp;&amp;i.push(new Ct(e,r,&quot;expected one of [&quot;+n.values.join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)):-1===Object.keys(n.values).indexOf(Ot(r))&amp;&amp;i.push(new Ct(e,r,&quot;expected one of [&quot;+Object.keys(n.values).join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)),i}function an(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case&quot;has&quot;:return t.length&gt;=2&amp;&amp;&quot;$id&quot;!==t[1]&amp;&amp;&quot;$type&quot;!==t[1];case&quot;in&quot;:return t.length&gt;=3&amp;&amp;(&quot;string&quot;!=typeof t[1]||Array.isArray(t[2]));case&quot;!in&quot;:case&quot;!has&quot;:case&quot;none&quot;:return!1;case&quot;==&quot;:case&quot;!=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:case&quot;&lt;&quot;:case&quot;&lt;=&quot;:return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case&quot;any&quot;:case&quot;all&quot;:for(var e=0,r=t.slice(1);e&lt;r.length;e+=1){var n=r[e];if(!an(n)&amp;&amp;&quot;boolean&quot;!=typeof n)return!1}return!0;default:return!0}}Kr.deserialize=function(t){return new Kr(t._parameters,t._specification)},Kr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var on={type:&quot;boolean&quot;,default:!1,transition:!1,&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}};function sn(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};an(t)||(t=cn(t));var e=Wr(t,on);if(&quot;error&quot;===e.result)throw new Error(e.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if(&quot;within&quot;===e[0])return!0;for(var r=1;r&lt;e.length;r++)if(t(e[r]))return!0;return!1}(t)}}function ln(t,e){return t&lt;e?-1:t&gt;e?1:0}function cn(t){if(!t)return!0;var e,r=t[0];return t.length&lt;=1?&quot;any&quot;!==r:&quot;==&quot;===r?un(t[1],t[2],&quot;==&quot;):&quot;!=&quot;===r?pn(un(t[1],t[2],&quot;==&quot;)):&quot;&lt;&quot;===r||&quot;&gt;&quot;===r||&quot;&lt;=&quot;===r||&quot;&gt;=&quot;===r?un(t[1],t[2],r):&quot;any&quot;===r?(e=t.slice(1),[&quot;any&quot;].concat(e.map(cn))):&quot;all&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(cn)):&quot;none&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(cn).map(pn)):&quot;in&quot;===r?fn(t[1],t.slice(2)):&quot;!in&quot;===r?pn(fn(t[1],t.slice(2))):&quot;has&quot;===r?hn(t[1]):&quot;!has&quot;===r?pn(hn(t[1])):&quot;within&quot;!==r||t}function un(t,e,r){switch(t){case&quot;$type&quot;:return[&quot;filter-type-&quot;+r,e];case&quot;$id&quot;:return[&quot;filter-id-&quot;+r,e];default:return[&quot;filter-&quot;+r,t,e]}}function fn(t,e){if(0===e.length)return!1;switch(t){case&quot;$type&quot;:return[&quot;filter-type-in&quot;,[&quot;literal&quot;,e]];case&quot;$id&quot;:return[&quot;filter-id-in&quot;,[&quot;literal&quot;,e]];default:return e.length&gt;200&amp;&amp;!e.some((function(t){return typeof t!=typeof e[0]}))?[&quot;filter-in-large&quot;,t,[&quot;literal&quot;,e.sort(ln)]]:[&quot;filter-in-small&quot;,t,[&quot;literal&quot;,e]]}}function hn(t){switch(t){case&quot;$type&quot;:return!0;case&quot;$id&quot;:return[&quot;filter-has-id&quot;];default:return[&quot;filter-has&quot;,t]}}function pn(t){return[&quot;!&quot;,t]}function dn(t){return an(zt(t.value))?rn(It({},t,{expressionContext:&quot;filter&quot;,valueSpec:{value:&quot;boolean&quot;}})):function t(e){var r=e.value,n=e.key;if(&quot;array&quot;!==Fr(r))return[new Ct(n,r,&quot;array expected, &quot;+Fr(r)+&quot; found&quot;)];var i,a=e.styleSpec,o=[];if(r.length&lt;1)return[new Ct(n,r,&quot;filter array must have at least 1 element&quot;)];switch(o=o.concat(nn({key:n+&quot;[0]&quot;,value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Ot(r[0])){case&quot;&lt;&quot;:case&quot;&lt;=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:r.length&gt;=2&amp;&amp;&quot;$type&quot;===Ot(r[1])&amp;&amp;o.push(new Ct(n,r,'&quot;$type&quot; cannot be use with operator &quot;'+r[0]+'&quot;'));case&quot;==&quot;:case&quot;!=&quot;:3!==r.length&amp;&amp;o.push(new Ct(n,r,'filter array for operator &quot;'+r[0]+'&quot; must have 3 elements'));case&quot;in&quot;:case&quot;!in&quot;:r.length&gt;=2&amp;&amp;&quot;string&quot;!==(i=Fr(r[1]))&amp;&amp;o.push(new Ct(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));for(var s=2;s&lt;r.length;s++)i=Fr(r[s]),&quot;$type&quot;===Ot(r[1])?o=o.concat(nn({key:n+&quot;[&quot;+s+&quot;]&quot;,value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):&quot;string&quot;!==i&amp;&amp;&quot;number&quot;!==i&amp;&amp;&quot;boolean&quot;!==i&amp;&amp;o.push(new Ct(n+&quot;[&quot;+s+&quot;]&quot;,r[s],&quot;string, number, or boolean expected, &quot;+i+&quot; found&quot;));break;case&quot;any&quot;:case&quot;all&quot;:case&quot;none&quot;:for(var l=1;l&lt;r.length;l++)o=o.concat(t({key:n+&quot;[&quot;+l+&quot;]&quot;,value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case&quot;has&quot;:case&quot;!has&quot;:i=Fr(r[1]),2!==r.length?o.push(new Ct(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;string&quot;!==i&amp;&amp;o.push(new Ct(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));break;case&quot;within&quot;:i=Fr(r[1]),2!==r.length?o.push(new Ct(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;object&quot;!==i&amp;&amp;o.push(new Ct(n+&quot;[1]&quot;,r[1],&quot;object expected, &quot;+i+&quot; found&quot;))}return o}(t)}function gn(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+&quot;_&quot;+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(&quot;paint&quot;===e&amp;&amp;l&amp;&amp;s[l[1]]&amp;&amp;s[l[1]].transition)return kn({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new Ct(r,a,'unknown property &quot;'+o+'&quot;')];if(&quot;string&quot;===Fr(a)&amp;&amp;zr(u)&amp;&amp;!u.tokens&amp;&amp;(c=/^{([^}]+)}$/.exec(a)))return[new Ct(r,a,'&quot;'+o+'&quot; does not support interpolation syntax\nUse an identity property function instead: `{ &quot;type&quot;: &quot;identity&quot;, &quot;property&quot;: '+JSON.stringify(c[1])+&quot; }`.&quot;)];var f=[];return&quot;symbol&quot;===t.layerType&amp;&amp;(&quot;text-field&quot;===o&amp;&amp;n&amp;&amp;!n.glyphs&amp;&amp;f.push(new Ct(r,a,'use of &quot;text-field&quot; requires a style &quot;glyphs&quot; property')),&quot;text-font&quot;===o&amp;&amp;Br(zt(a))&amp;&amp;&quot;identity&quot;===Ot(a.type)&amp;&amp;f.push(new Ct(r,a,'&quot;text-font&quot; does not support identity functions'))),f.concat(kn({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:&quot;property&quot;,propertyType:e,propertyKey:o}))}function mn(t){return gn(t,&quot;paint&quot;)}function vn(t){return gn(t,&quot;layout&quot;)}function yn(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new Ct(n,r,'either &quot;type&quot; or &quot;ref&quot; is required'));var o,s=Ot(r.type),l=Ot(r.ref);if(r.id)for(var c=Ot(r.id),u=0;u&lt;t.arrayIndex;u++){var f=i.layers[u];Ot(f.id)===c&amp;&amp;e.push(new Ct(n,r.id,'duplicate layer id &quot;'+r.id+'&quot;, previously used at line '+f.id.__line__))}if(&quot;ref&quot;in r)[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;filter&quot;,&quot;layout&quot;].forEach((function(t){t in r&amp;&amp;e.push(new Ct(n,r[t],'&quot;'+t+'&quot; is prohibited for ref layers'))})),i.layers.forEach((function(t){Ot(t.id)===l&amp;&amp;(o=t)})),o?o.ref?e.push(new Ct(n,r.ref,&quot;ref cannot reference another ref layer&quot;)):s=Ot(o.type):e.push(new Ct(n,r.ref,'ref layer &quot;'+l+'&quot; not found'));else if(&quot;background&quot;!==s)if(r.source){var h=i.sources&amp;&amp;i.sources[r.source],p=h&amp;&amp;Ot(h.type);h?&quot;vector&quot;===p&amp;&amp;&quot;raster&quot;===s?e.push(new Ct(n,r.source,'layer &quot;'+r.id+'&quot; requires a raster source')):&quot;raster&quot;===p&amp;&amp;&quot;raster&quot;!==s?e.push(new Ct(n,r.source,'layer &quot;'+r.id+'&quot; requires a vector source')):&quot;vector&quot;!==p||r[&quot;source-layer&quot;]?&quot;raster-dem&quot;===p&amp;&amp;&quot;hillshade&quot;!==s?e.push(new Ct(n,r.source,&quot;raster-dem source can only be used with layer type 'hillshade'.&quot;)):&quot;line&quot;!==s||!r.paint||!r.paint[&quot;line-gradient&quot;]||&quot;geojson&quot;===p&amp;&amp;h.lineMetrics||e.push(new Ct(n,r,'layer &quot;'+r.id+'&quot; specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new Ct(n,r,'layer &quot;'+r.id+'&quot; must specify a &quot;source-layer&quot;')):e.push(new Ct(n,r.source,'source &quot;'+r.source+'&quot; not found'))}else e.push(new Ct(n,r,'missing required property &quot;source&quot;'));return e=e.concat(Qr({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(){return[]},type:function(){return kn({key:n+&quot;.type&quot;,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:&quot;type&quot;})},filter:dn,layout:function(t){return Qr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return vn(It({layerType:s},t))}}})},paint:function(t){return Qr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return mn(It({layerType:s},t))}}})}}}))}function xn(t){var e=t.value,r=t.key,n=Fr(e);return&quot;string&quot;!==n?[new Ct(r,e,&quot;string expected, &quot;+n+&quot; found&quot;)]:[]}var bn={promoteId:function(t){var e=t.key,r=t.value;if(&quot;string&quot;===Fr(r))return xn({key:e,value:r});var n=[];for(var i in r)n.push.apply(n,xn({key:e+&quot;.&quot;+i,value:r[i]}));return n}};function _n(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new Ct(r,e,'&quot;type&quot; is required')];var a,o=Ot(e.type);switch(o){case&quot;vector&quot;:case&quot;raster&quot;:case&quot;raster-dem&quot;:return a=Qr({key:r,value:e,valueSpec:n[&quot;source_&quot;+o.replace(&quot;-&quot;,&quot;_&quot;)],style:t.style,styleSpec:n,objectElementValidators:bn});case&quot;geojson&quot;:if(a=Qr({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:bn}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],c=l[0],u=l[1],f=&quot;string&quot;==typeof c?[c,[&quot;accumulated&quot;],[&quot;get&quot;,s]]:c;a.push.apply(a,rn({key:r+&quot;.&quot;+s+&quot;.map&quot;,value:u,expressionContext:&quot;cluster-map&quot;})),a.push.apply(a,rn({key:r+&quot;.&quot;+s+&quot;.reduce&quot;,value:f,expressionContext:&quot;cluster-reduce&quot;}))}return a;case&quot;video&quot;:return Qr({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case&quot;image&quot;:return Qr({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case&quot;canvas&quot;:return[new Ct(r,null,&quot;Please use runtime APIs to add canvas sources, rather than including them in stylesheets.&quot;,&quot;source.canvas&quot;)];default:return nn({key:r+&quot;.type&quot;,value:e.type,valueSpec:{values:[&quot;vector&quot;,&quot;raster&quot;,&quot;raster-dem&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;]},style:i,styleSpec:n})}}function wn(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=Fr(e);if(void 0===e)return a;if(&quot;object&quot;!==o)return a=a.concat([new Ct(&quot;light&quot;,e,&quot;object expected, &quot;+o+&quot; found&quot;)]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=l&amp;&amp;n[l[1]]&amp;&amp;n[l[1]].transition?a.concat(kn({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r})):n[s]?a.concat(kn({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r})):a.concat([new Ct(s,e[s],'unknown property &quot;'+s+'&quot;')])}return a}var Tn={&quot;*&quot;:function(){return[]},array:$r,boolean:function(t){var e=t.value,r=t.key,n=Fr(e);return&quot;boolean&quot;!==n?[new Ct(r,e,&quot;boolean expected, &quot;+n+&quot; found&quot;)]:[]},number:tn,color:function(t){var e=t.key,r=t.value,n=Fr(r);return&quot;string&quot;!==n?[new Ct(e,r,&quot;color expected, &quot;+n+&quot; found&quot;)]:null===$t(r)?[new Ct(e,r,'color expected, &quot;'+r+'&quot; found')]:[]},constants:Pt,enum:nn,filter:dn,function:en,layer:yn,object:Qr,source:_n,light:wn,string:xn,formatted:function(t){return 0===xn(t).length?[]:rn(t)},resolvedImage:function(t){return 0===xn(t).length?[]:rn(t)}};function kn(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&amp;&amp;Br(Ot(e))?en(t):r.expression&amp;&amp;Yr(zt(e))?rn(t):r.type&amp;&amp;Tn[r.type]?Tn[r.type](t):Qr(It({},t,{valueSpec:r.type?n[r.type]:r}))}function An(t){var e=t.value,r=t.key,n=xn(t);return n.length||(-1===e.indexOf(&quot;{fontstack}&quot;)&amp;&amp;n.push(new Ct(r,e,'&quot;glyphs&quot; url must include a &quot;{fontstack}&quot; token')),-1===e.indexOf(&quot;{range}&quot;)&amp;&amp;n.push(new Ct(r,e,'&quot;glyphs&quot; url must include a &quot;{range}&quot; token'))),n}function Mn(t,e){void 0===e&amp;&amp;(e=Lt);var r=[];return r=r.concat(kn({key:&quot;&quot;,value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:An,&quot;*&quot;:function(){return[]}}})),t.constants&amp;&amp;(r=r.concat(Pt({key:&quot;constants&quot;,value:t.constants,style:t,styleSpec:e}))),Sn(r)}function Sn(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function En(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return Sn(t.apply(this,e))}}Mn.source=En(_n),Mn.light=En(wn),Mn.layer=En(yn),Mn.filter=En(dn),Mn.paintProperty=En(mn),Mn.layoutProperty=En(vn);var Ln=Mn,Cn=Ln.light,Pn=Ln.paintProperty,In=Ln.layoutProperty;function On(t,e){var r=!1;if(e&amp;&amp;e.length)for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];t.fire(new St(new Error(a.message))),r=!0}return r}var zn=Dn;function Dn(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],e=i[1],r=i[2],this.d=e+2*r;for(var a=0;a&lt;this.d*this.d;a++){var o=i[3+a],s=i[3+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[3+n.length],c=i[3+n.length+1];this.keys=i.subarray(l,c),this.bboxes=i.subarray(c),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var u=0;u&lt;this.d*this.d;u++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var f=r/e*t;this.min=-f,this.max=t+f}Dn.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Dn.prototype._insertReadonly=function(){throw&quot;Cannot insert into a GridIndex created from an ArrayBuffer.&quot;},Dn.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},Dn.prototype.query=function(t,e,r,n,i){var a=this.min,o=this.max;if(t&lt;=a&amp;&amp;e&lt;=a&amp;&amp;o&lt;=r&amp;&amp;o&lt;=n&amp;&amp;!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},i),s},Dn.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,f=0;f&lt;l.length;f++){var h=l[f];if(void 0===o[h]){var p=4*h;(s?s(u[p+0],u[p+1],u[p+2],u[p+3]):t&lt;=u[p+2]&amp;&amp;e&lt;=u[p+3]&amp;&amp;r&gt;=u[p+0]&amp;&amp;n&gt;=u[p+1])?(o[h]=!0,a.push(c[h])):o[h]=!1}}},Dn.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&amp;&amp;i.call(this,t,e,r,n,d,a,o,s))return}},Dn.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Dn.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Dn.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n&lt;this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o&lt;t.length;o++){var s=t[o];i[3+o]=a,i.set(s,a),a+=s.length}return i[3+t.length]=a,i.set(this.keys,a),a+=this.keys.length,i[3+t.length+1]=a,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var Rn=self.ImageData,Fn=self.ImageBitmap,Bn={};function Nn(t,e,r){void 0===r&amp;&amp;(r={}),Object.defineProperty(e,&quot;_classRegistryKey&quot;,{value:t,writeable:!1}),Bn[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var jn in Nn(&quot;Object&quot;,Object),zn.serialize=function(t,e){var r=t.toArrayBuffer();return e&amp;&amp;e.push(r),{buffer:r}},zn.deserialize=function(t){return new zn(t.buffer)},Nn(&quot;Grid&quot;,zn),Nn(&quot;Color&quot;,te),Nn(&quot;Error&quot;,Error),Nn(&quot;ResolvedImage&quot;,ie),Nn(&quot;StylePropertyFunction&quot;,Kr),Nn(&quot;StyleExpression&quot;,Gr,{omit:[&quot;_evaluator&quot;]}),Nn(&quot;ZoomDependentExpression&quot;,Zr),Nn(&quot;ZoomConstantExpression&quot;,Xr),Nn(&quot;CompoundExpression&quot;,xe,{omit:[&quot;_evaluate&quot;]}),Sr)Sr[jn]._classRegistryKey||Nn(&quot;Expression_&quot;+jn,Sr[jn]);function Un(t){return t&amp;&amp;&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;(t instanceof ArrayBuffer||t.constructor&amp;&amp;&quot;ArrayBuffer&quot;===t.constructor.name)}function Vn(t){return Fn&amp;&amp;t instanceof Fn}function qn(t,e){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Un(t)||Vn(t))return e&amp;&amp;e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&amp;&amp;e.push(r.buffer),r}if(t instanceof Rn)return e&amp;&amp;e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n.push(qn(o,e))}return n}if(&quot;object&quot;==typeof t){var s=t.constructor,l=s._classRegistryKey;if(!l)throw new Error(&quot;can't serialize object of unregistered class&quot;);var c=s.serialize?s.serialize(t,e):{};if(!s.serialize){for(var u in t)if(t.hasOwnProperty(u)&amp;&amp;!(Bn[l].omit.indexOf(u)&gt;=0)){var f=t[u];c[u]=Bn[l].shallow.indexOf(u)&gt;=0?f:qn(f,e)}t instanceof Error&amp;&amp;(c.message=t.message)}if(c.$name)throw new Error(&quot;$name property is reserved for worker serialization logic.&quot;);return&quot;Object&quot;!==l&amp;&amp;(c.$name=l),c}throw new Error(&quot;can't serialize object of type &quot;+typeof t)}function Hn(t){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Un(t)||Vn(t)||ArrayBuffer.isView(t)||t instanceof Rn)return t;if(Array.isArray(t))return t.map(Hn);if(&quot;object&quot;==typeof t){var e=t.$name||&quot;Object&quot;,r=Bn[e].klass;if(!r)throw new Error(&quot;can't deserialize unregistered class &quot;+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i&lt;a.length;i+=1){var o=a[i];if(&quot;$name&quot;!==o){var s=t[o];n[o]=Bn[e].shallow.indexOf(o)&gt;=0?s:Hn(s)}}return n}throw new Error(&quot;can't deserialize object of type &quot;+typeof t)}var Gn=function(){this.first=!0};Gn.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom&gt;r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom&lt;r&amp;&amp;(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&amp;&amp;(this.lastZoom=t,this.lastFloorZoom=r,!0))};var Yn={&quot;Latin-1 Supplement&quot;:function(t){return t&gt;=128&amp;&amp;t&lt;=255},Arabic:function(t){return t&gt;=1536&amp;&amp;t&lt;=1791},&quot;Arabic Supplement&quot;:function(t){return t&gt;=1872&amp;&amp;t&lt;=1919},&quot;Arabic Extended-A&quot;:function(t){return t&gt;=2208&amp;&amp;t&lt;=2303},&quot;Hangul Jamo&quot;:function(t){return t&gt;=4352&amp;&amp;t&lt;=4607},&quot;Unified Canadian Aboriginal Syllabics&quot;:function(t){return t&gt;=5120&amp;&amp;t&lt;=5759},Khmer:function(t){return t&gt;=6016&amp;&amp;t&lt;=6143},&quot;Unified Canadian Aboriginal Syllabics Extended&quot;:function(t){return t&gt;=6320&amp;&amp;t&lt;=6399},&quot;General Punctuation&quot;:function(t){return t&gt;=8192&amp;&amp;t&lt;=8303},&quot;Letterlike Symbols&quot;:function(t){return t&gt;=8448&amp;&amp;t&lt;=8527},&quot;Number Forms&quot;:function(t){return t&gt;=8528&amp;&amp;t&lt;=8591},&quot;Miscellaneous Technical&quot;:function(t){return t&gt;=8960&amp;&amp;t&lt;=9215},&quot;Control Pictures&quot;:function(t){return t&gt;=9216&amp;&amp;t&lt;=9279},&quot;Optical Character Recognition&quot;:function(t){return t&gt;=9280&amp;&amp;t&lt;=9311},&quot;Enclosed Alphanumerics&quot;:function(t){return t&gt;=9312&amp;&amp;t&lt;=9471},&quot;Geometric Shapes&quot;:function(t){return t&gt;=9632&amp;&amp;t&lt;=9727},&quot;Miscellaneous Symbols&quot;:function(t){return t&gt;=9728&amp;&amp;t&lt;=9983},&quot;Miscellaneous Symbols and Arrows&quot;:function(t){return t&gt;=11008&amp;&amp;t&lt;=11263},&quot;CJK Radicals Supplement&quot;:function(t){return t&gt;=11904&amp;&amp;t&lt;=12031},&quot;Kangxi Radicals&quot;:function(t){return t&gt;=12032&amp;&amp;t&lt;=12255},&quot;Ideographic Description Characters&quot;:function(t){return t&gt;=12272&amp;&amp;t&lt;=12287},&quot;CJK Symbols and Punctuation&quot;:function(t){return t&gt;=12288&amp;&amp;t&lt;=12351},Hiragana:function(t){return t&gt;=12352&amp;&amp;t&lt;=12447},Katakana:function(t){return t&gt;=12448&amp;&amp;t&lt;=12543},Bopomofo:function(t){return t&gt;=12544&amp;&amp;t&lt;=12591},&quot;Hangul Compatibility Jamo&quot;:function(t){return t&gt;=12592&amp;&amp;t&lt;=12687},Kanbun:function(t){return t&gt;=12688&amp;&amp;t&lt;=12703},&quot;Bopomofo Extended&quot;:function(t){return t&gt;=12704&amp;&amp;t&lt;=12735},&quot;CJK Strokes&quot;:function(t){return t&gt;=12736&amp;&amp;t&lt;=12783},&quot;Katakana Phonetic Extensions&quot;:function(t){return t&gt;=12784&amp;&amp;t&lt;=12799},&quot;Enclosed CJK Letters and Months&quot;:function(t){return t&gt;=12800&amp;&amp;t&lt;=13055},&quot;CJK Compatibility&quot;:function(t){return t&gt;=13056&amp;&amp;t&lt;=13311},&quot;CJK Unified Ideographs Extension A&quot;:function(t){return t&gt;=13312&amp;&amp;t&lt;=19903},&quot;Yijing Hexagram Symbols&quot;:function(t){return t&gt;=19904&amp;&amp;t&lt;=19967},&quot;CJK Unified Ideographs&quot;:function(t){return t&gt;=19968&amp;&amp;t&lt;=40959},&quot;Yi Syllables&quot;:function(t){return t&gt;=40960&amp;&amp;t&lt;=42127},&quot;Yi Radicals&quot;:function(t){return t&gt;=42128&amp;&amp;t&lt;=42191},&quot;Hangul Jamo Extended-A&quot;:function(t){return t&gt;=43360&amp;&amp;t&lt;=43391},&quot;Hangul Syllables&quot;:function(t){return t&gt;=44032&amp;&amp;t&lt;=55215},&quot;Hangul Jamo Extended-B&quot;:function(t){return t&gt;=55216&amp;&amp;t&lt;=55295},&quot;Private Use Area&quot;:function(t){return t&gt;=57344&amp;&amp;t&lt;=63743},&quot;CJK Compatibility Ideographs&quot;:function(t){return t&gt;=63744&amp;&amp;t&lt;=64255},&quot;Arabic Presentation Forms-A&quot;:function(t){return t&gt;=64336&amp;&amp;t&lt;=65023},&quot;Vertical Forms&quot;:function(t){return t&gt;=65040&amp;&amp;t&lt;=65055},&quot;CJK Compatibility Forms&quot;:function(t){return t&gt;=65072&amp;&amp;t&lt;=65103},&quot;Small Form Variants&quot;:function(t){return t&gt;=65104&amp;&amp;t&lt;=65135},&quot;Arabic Presentation Forms-B&quot;:function(t){return t&gt;=65136&amp;&amp;t&lt;=65279},&quot;Halfwidth and Fullwidth Forms&quot;:function(t){return t&gt;=65280&amp;&amp;t&lt;=65519}};function Wn(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(Zn(r[e].charCodeAt(0)))return!0}return!1}function Xn(t){return!Yn.Arabic(t)&amp;&amp;(!Yn[&quot;Arabic Supplement&quot;](t)&amp;&amp;(!Yn[&quot;Arabic Extended-A&quot;](t)&amp;&amp;(!Yn[&quot;Arabic Presentation Forms-A&quot;](t)&amp;&amp;!Yn[&quot;Arabic Presentation Forms-B&quot;](t))))}function Zn(t){return 746===t||747===t||!(t&lt;4352)&amp;&amp;(!!Yn[&quot;Bopomofo Extended&quot;](t)||(!!Yn.Bopomofo(t)||(!(!Yn[&quot;CJK Compatibility Forms&quot;](t)||t&gt;=65097&amp;&amp;t&lt;=65103)||(!!Yn[&quot;CJK Compatibility Ideographs&quot;](t)||(!!Yn[&quot;CJK Compatibility&quot;](t)||(!!Yn[&quot;CJK Radicals Supplement&quot;](t)||(!!Yn[&quot;CJK Strokes&quot;](t)||(!(!Yn[&quot;CJK Symbols and Punctuation&quot;](t)||t&gt;=12296&amp;&amp;t&lt;=12305||t&gt;=12308&amp;&amp;t&lt;=12319||12336===t)||(!!Yn[&quot;CJK Unified Ideographs Extension A&quot;](t)||(!!Yn[&quot;CJK Unified Ideographs&quot;](t)||(!!Yn[&quot;Enclosed CJK Letters and Months&quot;](t)||(!!Yn[&quot;Hangul Compatibility Jamo&quot;](t)||(!!Yn[&quot;Hangul Jamo Extended-A&quot;](t)||(!!Yn[&quot;Hangul Jamo Extended-B&quot;](t)||(!!Yn[&quot;Hangul Jamo&quot;](t)||(!!Yn[&quot;Hangul Syllables&quot;](t)||(!!Yn.Hiragana(t)||(!!Yn[&quot;Ideographic Description Characters&quot;](t)||(!!Yn.Kanbun(t)||(!!Yn[&quot;Kangxi Radicals&quot;](t)||(!!Yn[&quot;Katakana Phonetic Extensions&quot;](t)||(!(!Yn.Katakana(t)||12540===t)||(!(!Yn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||65288===t||65289===t||65293===t||t&gt;=65306&amp;&amp;t&lt;=65310||65339===t||65341===t||65343===t||t&gt;=65371&amp;&amp;t&lt;=65503||65507===t||t&gt;=65512&amp;&amp;t&lt;=65519)||(!(!Yn[&quot;Small Form Variants&quot;](t)||t&gt;=65112&amp;&amp;t&lt;=65118||t&gt;=65123&amp;&amp;t&lt;=65126)||(!!Yn[&quot;Unified Canadian Aboriginal Syllabics&quot;](t)||(!!Yn[&quot;Unified Canadian Aboriginal Syllabics Extended&quot;](t)||(!!Yn[&quot;Vertical Forms&quot;](t)||(!!Yn[&quot;Yijing Hexagram Symbols&quot;](t)||(!!Yn[&quot;Yi Syllables&quot;](t)||!!Yn[&quot;Yi Radicals&quot;](t))))))))))))))))))))))))))))))}function Jn(t){return!(Zn(t)||function(t){return!(!Yn[&quot;Latin-1 Supplement&quot;](t)||167!==t&amp;&amp;169!==t&amp;&amp;174!==t&amp;&amp;177!==t&amp;&amp;188!==t&amp;&amp;189!==t&amp;&amp;190!==t&amp;&amp;215!==t&amp;&amp;247!==t)||(!(!Yn[&quot;General Punctuation&quot;](t)||8214!==t&amp;&amp;8224!==t&amp;&amp;8225!==t&amp;&amp;8240!==t&amp;&amp;8241!==t&amp;&amp;8251!==t&amp;&amp;8252!==t&amp;&amp;8258!==t&amp;&amp;8263!==t&amp;&amp;8264!==t&amp;&amp;8265!==t&amp;&amp;8273!==t)||(!!Yn[&quot;Letterlike Symbols&quot;](t)||(!!Yn[&quot;Number Forms&quot;](t)||(!(!Yn[&quot;Miscellaneous Technical&quot;](t)||!(t&gt;=8960&amp;&amp;t&lt;=8967||t&gt;=8972&amp;&amp;t&lt;=8991||t&gt;=8996&amp;&amp;t&lt;=9e3||9003===t||t&gt;=9085&amp;&amp;t&lt;=9114||t&gt;=9150&amp;&amp;t&lt;=9165||9167===t||t&gt;=9169&amp;&amp;t&lt;=9179||t&gt;=9186&amp;&amp;t&lt;=9215))||(!(!Yn[&quot;Control Pictures&quot;](t)||9251===t)||(!!Yn[&quot;Optical Character Recognition&quot;](t)||(!!Yn[&quot;Enclosed Alphanumerics&quot;](t)||(!!Yn[&quot;Geometric Shapes&quot;](t)||(!(!Yn[&quot;Miscellaneous Symbols&quot;](t)||t&gt;=9754&amp;&amp;t&lt;=9759)||(!(!Yn[&quot;Miscellaneous Symbols and Arrows&quot;](t)||!(t&gt;=11026&amp;&amp;t&lt;=11055||t&gt;=11088&amp;&amp;t&lt;=11097||t&gt;=11192&amp;&amp;t&lt;=11243))||(!!Yn[&quot;CJK Symbols and Punctuation&quot;](t)||(!!Yn.Katakana(t)||(!!Yn[&quot;Private Use Area&quot;](t)||(!!Yn[&quot;CJK Compatibility Forms&quot;](t)||(!!Yn[&quot;Small Form Variants&quot;](t)||(!!Yn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||(8734===t||8756===t||8757===t||t&gt;=9984&amp;&amp;t&lt;=10087||t&gt;=10102&amp;&amp;t&lt;=10131||65532===t||65533===t)))))))))))))))))}(t))}function Kn(t){return t&gt;=1424&amp;&amp;t&lt;=2303||Yn[&quot;Arabic Presentation Forms-A&quot;](t)||Yn[&quot;Arabic Presentation Forms-B&quot;](t)}function Qn(t,e){return!(!e&amp;&amp;Kn(t))&amp;&amp;!(t&gt;=2304&amp;&amp;t&lt;=3583||t&gt;=3840&amp;&amp;t&lt;=4255||Yn.Khmer(t))}function $n(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(Kn(r[e].charCodeAt(0)))return!0}return!1}var ti=&quot;deferred&quot;,ei=&quot;loading&quot;,ri=&quot;loaded&quot;,ni=&quot;error&quot;,ii=null,ai=&quot;unavailable&quot;,oi=null,si=function(t){t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;t.indexOf(&quot;NetworkError&quot;)&gt;-1&amp;&amp;(ai=ni),ii&amp;&amp;ii(t)};function li(){ci.fire(new Mt(&quot;pluginStateChange&quot;,{pluginStatus:ai,pluginURL:oi}))}var ci=new Et,ui=function(){return ai},fi=function(){if(ai!==ti||!oi)throw new Error(&quot;rtl-text-plugin cannot be downloaded unless a pluginURL is specified&quot;);ai=ei,li(),oi&amp;&amp;xt({url:oi},(function(t){t?si(t):(ai=ri,li())}))},hi={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ai===ri||null!=hi.applyArabicShaping},isLoading:function(){return ai===ei},setState:function(t){ai=t.pluginStatus,oi=t.pluginURL},isParsed:function(){return null!=hi.applyArabicShaping&amp;&amp;null!=hi.processBidirectionalText&amp;&amp;null!=hi.processStyledBidirectionalText},getPluginURL:function(){return oi}},pi=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Gn,this.transition={})};pi.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){if(!Qn(n[r].charCodeAt(0),e))return!1}return!0}(t,hi.isLoaded())},pi.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},pi.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t&gt;this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var di=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Br(t))return new Kr(t,e);if(Yr(t)){var r=Jr(t,e);if(&quot;error&quot;===r.result)throw new Error(r.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return r.value}var n=t;return&quot;string&quot;==typeof t&amp;&amp;&quot;color&quot;===e.type&amp;&amp;(n=te.parse(t)),{kind:&quot;constant&quot;,evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};di.prototype.isDataDriven=function(){return&quot;source&quot;===this.expression.kind||&quot;composite&quot;===this.expression.kind},di.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var gi=function(t){this.property=t,this.value=new di(t,void 0)};gi.prototype.transitioned=function(t,e){return new vi(this.property,this.value,e,u({},t.transition,this.transition),t.now)},gi.prototype.untransitioned=function(){return new vi(this.property,this.value,null,{},0)};var mi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};mi.prototype.getValue=function(t){return x(this._values[t].value.value)},mi.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new gi(this._values[t].property)),this._values[t].value=new di(this._values[t].property,null===e?void 0:x(e))},mi.prototype.getTransition=function(t){return x(this._values[t].transition)},mi.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new gi(this._values[t].property)),this._values[t].transition=x(e)||void 0},mi.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i);var a=this.getTransition(n);void 0!==a&amp;&amp;(t[n+&quot;-transition&quot;]=a)}return t},mi.prototype.transitioned=function(t,e){for(var r=new yi(this._properties),n=0,i=Object.keys(this._values);n&lt;i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},mi.prototype.untransitioned=function(){for(var t=new yi(this._properties),e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var vi=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&amp;&amp;(n.delay||n.duration)&amp;&amp;(this.prior=r)};vi.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n&gt;this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n&lt;this.begin)return a.possiblyEvaluate(t,e,r);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(t,e,r),i,function(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}(o))}return i};var yi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};yi.prototype.possiblyEvaluate=function(t,e,r){for(var n=new _i(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n},yi.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t&lt;e.length;t+=1){var r=e[t];if(this._values[r].prior)return!0}return!1};var xi=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};xi.prototype.getValue=function(t){return x(this._values[t].value)},xi.prototype.setValue=function(t,e){this._values[t]=new di(this._values[t].property,null===e?void 0:x(e))},xi.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i)}return t},xi.prototype.possiblyEvaluate=function(t,e,r){for(var n=new _i(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n};var bi=function(t,e,r){this.property=t,this.value=e,this.parameters=r};bi.prototype.isConstant=function(){return&quot;constant&quot;===this.value.kind},bi.prototype.constantOr=function(t){return&quot;constant&quot;===this.value.kind?this.value.value:t},bi.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var _i=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};_i.prototype.get=function(t){return this._values[t]};var wi=function(t){this.specification=t};wi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},wi.prototype.interpolate=function(t,e,r){var n=Ge[this.specification.type];return n?n(t,e,r):t};var Ti=function(t,e){this.specification=t,this.overrides=e};Ti.prototype.possiblyEvaluate=function(t,e,r,n){return&quot;constant&quot;===t.expression.kind||&quot;camera&quot;===t.expression.kind?new bi(this,{kind:&quot;constant&quot;,value:t.expression.evaluate(e,null,{},r,n)},e):new bi(this,t.expression,e)},Ti.prototype.interpolate=function(t,e,r){if(&quot;constant&quot;!==t.value.kind||&quot;constant&quot;!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new bi(this,{kind:&quot;constant&quot;,value:void 0},t.parameters);var n=Ge[this.specification.type];return n?new bi(this,{kind:&quot;constant&quot;,value:n(t.value.value,e.value.value,r)},t.parameters):t},Ti.prototype.evaluate=function(t,e,r,n,i,a){return&quot;constant&quot;===t.kind?t.value:t.evaluate(e,r,n,i,a)};var ki=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new bi(this,{kind:&quot;constant&quot;,value:void 0},e);if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n),a=&quot;resolvedImage&quot;===t.property.specification.type&amp;&amp;&quot;string&quot;!=typeof i?i.name:i,o=this._calculate(a,a,a,e);return new bi(this,{kind:&quot;constant&quot;,value:o},e)}if(&quot;camera&quot;===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new bi(this,{kind:&quot;constant&quot;,value:s},e)}return new bi(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,i,a){if(&quot;source&quot;===t.kind){var o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return&quot;composite&quot;===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(Ti),Ai=function(t){this.specification=t};Ai.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new pi(Math.floor(e.zoom-1),e)),t.expression.evaluate(new pi(Math.floor(e.zoom),e)),t.expression.evaluate(new pi(Math.floor(e.zoom+1),e)),e)}},Ai.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},Ai.prototype.interpolate=function(t){return t};var Mi=function(t){this.specification=t};Mi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},Mi.prototype.interpolate=function(){return!1};var Si=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&amp;&amp;this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new di(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new gi(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Nn(&quot;DataDrivenProperty&quot;,Ti),Nn(&quot;DataConstantProperty&quot;,wi),Nn(&quot;CrossFadedDataDrivenProperty&quot;,ki),Nn(&quot;CrossFadedProperty&quot;,Ai),Nn(&quot;ColorRampProperty&quot;,Mi);var Ei=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},&quot;custom&quot;!==e.type&amp;&amp;(e=e,this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,&quot;background&quot;!==e.type&amp;&amp;(this.source=e.source,this.sourceLayer=e[&quot;source-layer&quot;],this.filter=e.filter),r.layout&amp;&amp;(this._unevaluatedLayout=new xi(r.layout)),r.paint)){for(var n in this._transitionablePaint=new mi(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new _i(r.paint)}}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return&quot;visibility&quot;===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e){var n=&quot;layers.&quot;+this.id+&quot;.layout.&quot;+t;if(this._validate(In,n,t,e,r))return}&quot;visibility&quot;!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e},e.prototype.getPaintProperty=function(t){return m(t,&quot;-transition&quot;)?this._transitionablePaint.getTransition(t.slice(0,-&quot;-transition&quot;.length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e){var n=&quot;layers.&quot;+this.id+&quot;.paint.&quot;+t;if(this._validate(Pn,n,t,e,r))return!1}if(m(t,&quot;-transition&quot;))return this._transitionablePaint.setTransition(t.slice(0,-&quot;-transition&quot;.length),e||void 0),!1;var i=this._transitionablePaint._values[t],a=&quot;cross-faded-data-driven&quot;===i.property.specification[&quot;property-type&quot;],o=i.value.isDataDriven(),s=i.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var l=this._transitionablePaint._values[t].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(t,s,l)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&amp;&amp;t&lt;this.minzoom)||(!!(this.maxzoom&amp;&amp;t&gt;=this.maxzoom)||&quot;none&quot;===this.visibility)},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&amp;&amp;(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&amp;&amp;(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,&quot;source-layer&quot;:this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&amp;&amp;this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&amp;&amp;this._transitionablePaint.serialize()};return this.visibility&amp;&amp;(t.layout=t.layout||{},t.layout.visibility=this.visibility),y(t,(function(t,e){return!(void 0===t||&quot;layout&quot;===e&amp;&amp;!Object.keys(t).length||&quot;paint&quot;===e&amp;&amp;!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),(!i||!1!==i.validate)&amp;&amp;On(this,t.call(Ln,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:Lt,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof bi&amp;&amp;zr(e.property.specification)&amp;&amp;((&quot;source&quot;===e.value.kind||&quot;composite&quot;===e.value.kind)&amp;&amp;e.value.isStateDependent))return!0}return!1},e}(Et),Li={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ci=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Pi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ii(t,e){void 0===e&amp;&amp;(e=1);var r=0,n=0;return{members:t.map((function(t){var i,a=(i=t.type,Li[i].BYTES_PER_ELEMENT),o=r=Oi(r,Math.max(e,a)),s=t.components||1;return n=Math.max(n,a),r+=a*s,{name:t.name,type:t.type,components:s,offset:o}})),size:Oi(r,Math.max(n,e)),alignment:e}}function Oi(t,e){return Math.ceil(t/e)*e}Pi.serialize=function(t,e){return t._trim(),e&amp;&amp;(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Pi.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Pi.prototype._trim=function(){this.length!==this.capacity&amp;&amp;(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Pi.prototype.clear=function(){this.length=0},Pi.prototype.resize=function(t){this.reserve(t),this.length=t},Pi.prototype.reserve=function(t){if(t&gt;this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&amp;&amp;this.uint8.set(e)}},Pi.prototype._refreshViews=function(){throw new Error(&quot;_refreshViews() must be implemented by each concrete StructArray layout&quot;)};var zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(Pi);zi.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout2i4&quot;,zi);var Di=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(Pi);Di.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout4i8&quot;,Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(Pi);Ri.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout2i4i12&quot;,Ri);var Fi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(Pi);Fi.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout2i4ub8&quot;,Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,h=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[h+16]=c,this.uint8[h+17]=u,t},e}(Pi);Bi.prototype.bytesPerElement=18,Nn(&quot;StructArrayLayout8ui2ub18&quot;,Bi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=f,this.int16[p+11]=h,t},e}(Pi);Ni.prototype.bytesPerElement=24,Nn(&quot;StructArrayLayout4i4ui4i24&quot;,Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(Pi);ji.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout3f12&quot;,ji);var Ui=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint32[r+0]=e,t},e}(Pi);Ui.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout1ul4&quot;,Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(Pi);Vi.prototype.bytesPerElement=20,Nn(&quot;StructArrayLayout6i1ul2ui20&quot;,Vi);var qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(Pi);qi.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout2i2i2i12&quot;,qi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(Pi);Hi.prototype.bytesPerElement=16,Nn(&quot;StructArrayLayout2f1f2i16&quot;,Hi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(Pi);Gi.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout2ub2f12&quot;,Gi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(Pi);Yi.prototype.bytesPerElement=6,Nn(&quot;StructArrayLayout3ui6&quot;,Yi);var Wi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v){var y=24*t,x=12*t,b=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=f,this.float32[x+8]=h,this.uint8[b+36]=p,this.uint8[b+37]=d,this.uint8[b+38]=g,this.uint32[x+10]=m,this.int16[y+22]=v,t},e}(Pi);Wi.prototype.bytesPerElement=48,Nn(&quot;StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48&quot;,Wi);var Xi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,A,M,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,A,M,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,A,M,S,E){var L=34*t,C=17*t;return this.int16[L+0]=e,this.int16[L+1]=r,this.int16[L+2]=n,this.int16[L+3]=i,this.int16[L+4]=a,this.int16[L+5]=o,this.int16[L+6]=s,this.int16[L+7]=l,this.uint16[L+8]=c,this.uint16[L+9]=u,this.uint16[L+10]=f,this.uint16[L+11]=h,this.uint16[L+12]=p,this.uint16[L+13]=d,this.uint16[L+14]=g,this.uint16[L+15]=m,this.uint16[L+16]=v,this.uint16[L+17]=y,this.uint16[L+18]=x,this.uint16[L+19]=b,this.uint16[L+20]=_,this.uint16[L+21]=w,this.uint16[L+22]=T,this.uint32[C+12]=k,this.float32[C+13]=A,this.float32[C+14]=M,this.float32[C+15]=S,this.float32[C+16]=E,t},e}(Pi);Xi.prototype.bytesPerElement=68,Nn(&quot;StructArrayLayout8i15ui1ul4f68&quot;,Xi);var Zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.float32[r+0]=e,t},e}(Pi);Zi.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout1f4&quot;,Zi);var Ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(Pi);Ji.prototype.bytesPerElement=6,Nn(&quot;StructArrayLayout3i6&quot;,Ji);var Ki=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=2*t,a=4*t;return this.uint32[i+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=n,t},e}(Pi);Ki.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout1ul2ui8&quot;,Ki);var Qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(Pi);Qi.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout2ui4&quot;,Qi);var $i=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint16[r+0]=e,t},e}(Pi);$i.prototype.bytesPerElement=2,Nn(&quot;StructArrayLayout1ui2&quot;,$i);var ta=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(Pi);ta.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout2f8&quot;,ta);var ea=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(Pi);ea.prototype.bytesPerElement=16,Nn(&quot;StructArrayLayout4f16&quot;,ea);var ra=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(Ci);ra.prototype.size=20;var na=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ra(this,t)},e}(Vi);Nn(&quot;CollisionBoxArray&quot;,na);var ia=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(Ci);ia.prototype.size=48;var aa=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ia(this,t)},e}(Wi);Nn(&quot;PlacedSymbolArray&quot;,aa);var oa=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(Ci);oa.prototype.size=68;var sa=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new oa(this,t)},e}(Xi);Nn(&quot;SymbolInstanceArray&quot;,sa);var la=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(Zi);Nn(&quot;GlyphOffsetArray&quot;,la);var ca=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Ji);Nn(&quot;SymbolLineVertexArray&quot;,ca);var ua=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(Ci);ua.prototype.size=8;var fa=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ua(this,t)},e}(Ki);Nn(&quot;FeatureIndexArray&quot;,fa);var ha=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,pa=function(t){void 0===t&amp;&amp;(t=[]),this.segments=t};function da(t,e){return 256*(t=l(Math.floor(t),0,255))+(e=l(Math.floor(e),0,255))}pa.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t&gt;pa.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;_(&quot;Max vertices per segment is &quot;+pa.MAX_VERTEX_ARRAY_LENGTH+&quot;: bucket requested &quot;+t),(!i||i.vertexLength+t&gt;pa.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&amp;&amp;(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&amp;&amp;(i.sortKey=n),this.segments.push(i)),i},pa.prototype.get=function(){return this.segments},pa.prototype.destroy=function(){for(var t=0,e=this.segments;t&lt;e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},pa.simpleSegment=function(t,e,r,n){return new pa([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},pa.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Nn(&quot;SegmentVector&quot;,pa);var ga=Ii([{name:&quot;a_pattern_from&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pattern_to&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixel_ratio_from&quot;,components:1,type:&quot;Uint8&quot;},{name:&quot;a_pixel_ratio_to&quot;,components:1,type:&quot;Uint8&quot;}]),ma=e((function(t){t.exports=function(t,e){var r,n,i,a,o,s,l,c;for(r=3&amp;t.length,n=t.length-r,i=e,o=3432918353,s=461845907,c=0;c&lt;n;)l=255&amp;t.charCodeAt(c)|(255&amp;t.charCodeAt(++c))&lt;&lt;8|(255&amp;t.charCodeAt(++c))&lt;&lt;16|(255&amp;t.charCodeAt(++c))&lt;&lt;24,++c,i=27492+(65535&amp;(a=5*(65535&amp;(i=(i^=l=(65535&amp;(l=(l=(65535&amp;l)*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;13|i&gt;&gt;&gt;19))+((5*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295))+((58964+(a&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16);switch(l=0,r){case 3:l^=(255&amp;t.charCodeAt(c+2))&lt;&lt;16;case 2:l^=(255&amp;t.charCodeAt(c+1))&lt;&lt;8;case 1:i^=l=(65535&amp;(l=(l=(65535&amp;(l^=255&amp;t.charCodeAt(c)))*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295}return i^=t.length,i=2246822507*(65535&amp;(i^=i&gt;&gt;&gt;16))+((2246822507*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,i=3266489909*(65535&amp;(i^=i&gt;&gt;&gt;13))+((3266489909*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,(i^=i&gt;&gt;&gt;16)&gt;&gt;&gt;0}})),va=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n&gt;=4;)r=1540483477*(65535&amp;(r=255&amp;t.charCodeAt(a)|(255&amp;t.charCodeAt(++a))&lt;&lt;8|(255&amp;t.charCodeAt(++a))&lt;&lt;16|(255&amp;t.charCodeAt(++a))&lt;&lt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),i=1540483477*(65535&amp;i)+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)^(r=1540483477*(65535&amp;(r^=r&gt;&gt;&gt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)),n-=4,++a;switch(n){case 3:i^=(255&amp;t.charCodeAt(a+2))&lt;&lt;16;case 2:i^=(255&amp;t.charCodeAt(a+1))&lt;&lt;8;case 1:i=1540483477*(65535&amp;(i^=255&amp;t.charCodeAt(a)))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)}return i=1540483477*(65535&amp;(i^=i&gt;&gt;&gt;13))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),(i^=i&gt;&gt;&gt;15)&gt;&gt;&gt;0}})),ya=ma,xa=ma,ba=va;ya.murmur3=xa,ya.murmur2=ba;var _a=function(){this.ids=[],this.positions=[],this.indexed=!1};_a.prototype.add=function(t,e,r,n){this.ids.push(Ta(t)),this.positions.push(e,r,n)},_a.prototype.getPositions=function(t){for(var e=Ta(t),r=0,n=this.ids.length-1;r&lt;n;){var i=r+n&gt;&gt;1;this.ids[i]&gt;=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;){var o=this.positions[3*r],s=this.positions[3*r+1],l=this.positions[3*r+2];a.push({index:o,start:s,end:l}),r++}return a},_a.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,i){for(;n&lt;i;){for(var a=e[n+i&gt;&gt;1],o=n-1,s=i+1;;){do{o++}while(e[o]&lt;a);do{s--}while(e[s]&gt;a);if(o&gt;=s)break;ka(e,o,s),ka(r,3*o,3*s),ka(r,3*o+1,3*s+1),ka(r,3*o+2,3*s+2)}s-n&lt;i-s?(t(e,r,n,s),n=s+1):(t(e,r,s+1,i),i=s)}}(r,n,0,r.length-1),e&amp;&amp;e.push(r.buffer,n.buffer),{ids:r,positions:n}},_a.deserialize=function(t){var e=new _a;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var wa=Math.pow(2,53)-1;function Ta(t){var e=+t;return!isNaN(e)&amp;&amp;e&lt;=wa?e:ya(String(t))}function ka(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Nn(&quot;FeaturePositionMap&quot;,_a);var Aa=function(t,e){this.gl=t.gl,this.location=e},Ma=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1i(this.location,t))},e}(Aa),Sa=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1f(this.location,t))},e}(Aa),Ea=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(Aa),La=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(Aa),Ca=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]&amp;&amp;t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(Aa),Pa=function(t){function e(e,r){t.call(this,e,r),this.current=te.transparent}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t.r===this.current.r&amp;&amp;t.g===this.current.g&amp;&amp;t.b===this.current.b&amp;&amp;t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(Aa),Ia=new Float32Array(16),Oa=function(t){function e(e,r){t.call(this,e,r),this.current=Ia}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e&lt;16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(Aa);function za(t){return[da(255*t.r,255*t.g),da(255*t.b,255*t.a)]}var Da=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.type=r};Da.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},Da.prototype.getBinding=function(t,e,r){return&quot;color&quot;===this.type?new Pa(t,e):new Sa(t,e)};var Ra=function(t,e){this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Ra.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Ra.prototype.setUniform=function(t,e,r,n){var i=&quot;u_pattern_to&quot;===n?this.patternTo:&quot;u_pattern_from&quot;===n?this.patternFrom:&quot;u_pixel_ratio_to&quot;===n?this.pixelRatioTo:&quot;u_pixel_ratio_from&quot;===n?this.pixelRatioFrom:null;i&amp;&amp;t.set(i)},Ra.prototype.getBinding=function(t,e,r){return&quot;u_pattern&quot;===r.substr(0,9)?new Ca(t,e):new Sa(t,e)};var Fa=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?2:1,offset:0}})),this.paintVertexArray=new n};Fa.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.paintVertexArray.length,o=this.expression.evaluate(new pi(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)},Fa.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)},Fa.prototype._setPaintValue=function(t,e,r){if(&quot;color&quot;===this.type)for(var n=za(r),i=t;i&lt;e;i++)this.paintVertexArray.emplace(i,n[0],n[1]);else{for(var a=t;a&lt;e;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Fa.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Fa.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()};var Ba=function(t,e,r,n,i,a){this.expression=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t+&quot;_t&quot;})),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?4:2,offset:0}})),this.paintVertexArray=new a};Ba.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.expression.evaluate(new pi(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new pi(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)},Ba.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)},Ba.prototype._setPaintValue=function(t,e,r,n){if(&quot;color&quot;===this.type)for(var i=za(r),a=za(n),o=t;o&lt;e;o++)this.paintVertexArray.emplace(o,i[0],i[1],a[0],a[1]);else{for(var s=t;s&lt;e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ba.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ba.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Ba.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=l(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ba.prototype.getBinding=function(t,e,r){return new Sa(t,e)};var Na=function(t,e,r,n,i,a){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Na.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&amp;&amp;e.patterns[this.layerId],r)},Na.prototype.updatePaintArray=function(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&amp;&amp;r.patterns[this.layerId],i)},Na.prototype._setPaintValues=function(t,e,r,n){if(n&amp;&amp;r){var i=r.min,a=r.mid,o=r.max,s=n[i],l=n[a],c=n[o];if(s&amp;&amp;l&amp;&amp;c)for(var u=t;u&lt;e;u++)this.zoomInPaintVertexArray.emplace(u,l.tl[0],l.tl[1],l.br[0],l.br[1],s.tl[0],s.tl[1],s.br[0],s.br[1],l.pixelRatio,s.pixelRatio),this.zoomOutPaintVertexArray.emplace(u,l.tl[0],l.tl[1],l.br[0],l.br[1],c.tl[0],c.tl[1],c.br[0],c.br[1],l.pixelRatio,c.pixelRatio)}},Na.prototype.upload=function(t){this.zoomInPaintVertexArray&amp;&amp;this.zoomInPaintVertexArray.arrayBuffer&amp;&amp;this.zoomOutPaintVertexArray&amp;&amp;this.zoomOutPaintVertexArray.arrayBuffer&amp;&amp;(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,ga.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,ga.members,this.expression.isStateDependent))},Na.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&amp;&amp;this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&amp;&amp;this.zoomInPaintVertexBuffer.destroy()};var ja=function(t,e,r,n){this.binders={},this.layoutAttributes=n,this._buffers=[];var i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof bi&amp;&amp;zr(o.property.specification)){var s=Va(a,t.type),l=o.value,c=o.property.specification.type,u=o.property.useIntegerZoom,f=o.property.specification[&quot;property-type&quot;],h=&quot;cross-faded&quot;===f||&quot;cross-faded-data-driven&quot;===f;if(&quot;constant&quot;===l.kind)this.binders[a]=h?new Ra(l.value,s):new Da(l.value,s,c),i.push(&quot;/u_&quot;+a);else if(&quot;source&quot;===l.kind||h){var p=qa(a,c,&quot;source&quot;);this.binders[a]=h?new Na(l,c,u,e,p,t.id):new Fa(l,s,c,p),i.push(&quot;/a_&quot;+a)}else{var d=qa(a,c,&quot;composite&quot;);this.binders[a]=new Ba(l,s,c,u,e,d),i.push(&quot;/z_&quot;+a)}}}this.cacheKey=i.sort().join(&quot;&quot;)};ja.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Fa||e instanceof Ba?e.maxValue:0},ja.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a in this.binders){var o=this.binders[a];(o instanceof Fa||o instanceof Ba||o instanceof Na)&amp;&amp;o.populatePaintArray(t,e,r,n,i)}},ja.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof Ra&amp;&amp;n.setConstantPatternPositions(t,e)}},ja.prototype.updatePaintArrays=function(t,e,r,n,i){var a=!1;for(var o in t)for(var s=0,l=e.getPositions(o);s&lt;l.length;s+=1){var c=l[s],u=r.feature(c.index);for(var f in this.binders){var h=this.binders[f];if((h instanceof Fa||h instanceof Ba||h instanceof Na)&amp;&amp;!0===h.expression.isStateDependent){var p=n.paint.get(f);h.expression=p.value,h.updatePaintArray(c.start,c.end,u,t[o],i),a=!0}}}return a},ja.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof Da||r instanceof Ra)&amp;&amp;t.push.apply(t,r.uniformNames.map((function(t){return&quot;#define HAS_UNIFORM_&quot;+t})))}return t},ja.prototype.getPaintVertexBuffers=function(){return this._buffers},ja.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var i=this.binders[n];if(i instanceof Da||i instanceof Ra||i instanceof Ba)for(var a=0,o=i.uniformNames;a&lt;o.length;a+=1){var s=o[a];if(e[s]){var l=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:l})}}}return r},ja.prototype.setUniforms=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.name,l=o.property,c=o.binding;this.binders[l].setUniform(c,n,r.get(l),s)}},ja.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&amp;&amp;r instanceof Na){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&amp;&amp;this._buffers.push(n)}else(r instanceof Fa||r instanceof Ba)&amp;&amp;r.paintVertexBuffer&amp;&amp;this._buffers.push(r.paintVertexBuffer)}},ja.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Fa||r instanceof Ba||r instanceof Na)&amp;&amp;r.upload(t)}this.updatePaintBuffers()},ja.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Fa||e instanceof Ba||e instanceof Na)&amp;&amp;e.destroy()}};var Ua=function(t,e,r,n){void 0===n&amp;&amp;(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=new ja(o,r,n,t)}this.needsUpload=!1,this._featureMap=new _a,this._bufferOffset=0};function Va(t,e){return{&quot;text-opacity&quot;:[&quot;opacity&quot;],&quot;icon-opacity&quot;:[&quot;opacity&quot;],&quot;text-color&quot;:[&quot;fill_color&quot;],&quot;icon-color&quot;:[&quot;fill_color&quot;],&quot;text-halo-color&quot;:[&quot;halo_color&quot;],&quot;icon-halo-color&quot;:[&quot;halo_color&quot;],&quot;text-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;icon-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;text-halo-width&quot;:[&quot;halo_width&quot;],&quot;icon-halo-width&quot;:[&quot;halo_width&quot;],&quot;line-gap-width&quot;:[&quot;gapwidth&quot;],&quot;line-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-extrusion-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;]}[t]||[t.replace(e+&quot;-&quot;,&quot;&quot;).replace(/-/g,&quot;_&quot;)]}function qa(t,e,r){var n={color:{source:ta,composite:ea},number:{source:Zi,composite:ta}},i=function(t){return{&quot;line-pattern&quot;:{source:Bi,composite:Bi},&quot;fill-pattern&quot;:{source:Bi,composite:Bi},&quot;fill-extrusion-pattern&quot;:{source:Bi,composite:Bi}}[t]}(t);return i&amp;&amp;i[r]||n[e][r]}Ua.prototype.populatePaintArrays=function(t,e,r,n,i,a){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,n,i,a);void 0!==e.id&amp;&amp;this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ua.prototype.updatePaintArrays=function(t,e,r,n){for(var i=0,a=r;i&lt;a.length;i+=1){var o=a[i];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n)||this.needsUpload}},Ua.prototype.get=function(t){return this.programConfigurations[t]},Ua.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ua.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Nn(&quot;ConstantBinder&quot;,Da),Nn(&quot;CrossFadedConstantBinder&quot;,Ra),Nn(&quot;SourceExpressionBinder&quot;,Fa),Nn(&quot;CrossFadedCompositeBinder&quot;,Na),Nn(&quot;CompositeExpressionBinder&quot;,Ba),Nn(&quot;ProgramConfiguration&quot;,ja,{omit:[&quot;_buffers&quot;]}),Nn(&quot;ProgramConfigurationSet&quot;,Ua);var Ha,Ga=(Ha=15,{min:-1*Math.pow(2,Ha-1),max:Math.pow(2,Ha-1)-1});function Ya(t){for(var e=8192/t.extent,r=t.loadGeometry(),n=0;n&lt;r.length;n++)for(var i=r[n],a=0;a&lt;i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x&lt;Ga.min||o.x&gt;Ga.max||o.y&lt;Ga.min||o.y&gt;Ga.max)&amp;&amp;(_(&quot;Geometry exceeds allowed extent, reduce your vector tile buffer size&quot;),o.x=l(o.x,Ga.min,Ga.max),o.y=l(o.y,Ga.min,Ga.max))}return r}function Wa(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Xa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new zi,this.indexArray=new Yi,this.segments=new pa,this.programConfigurations=new Ua(ha,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Za(t,e){for(var r=0;r&lt;t.length;r++)if(io(e,t[r]))return!0;for(var n=0;n&lt;e.length;n++)if(io(t,e[n]))return!0;return!!$a(t,e)}function Ja(t,e,r){return!!io(t,e)||!!eo(e,t,r)}function Ka(t,e){if(1===t.length)return no(e,t[0]);for(var r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++)if(io(t,n[i]))return!0;for(var a=0;a&lt;t.length;a++)if(no(e,t[a]))return!0;for(var o=0;o&lt;e.length;o++)if($a(t,e[o]))return!0;return!1}function Qa(t,e,r){if(t.length&gt;1){if($a(t,e))return!0;for(var n=0;n&lt;e.length;n++)if(eo(e[n],t,r))return!0}for(var i=0;i&lt;t.length;i++)if(eo(t[i],e,r))return!0;return!1}function $a(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r&lt;t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a&lt;e.length-1;a++){if(to(n,i,e[a],e[a+1]))return!0}return!1}function to(t,e,r,n){return w(t,r,n)!==w(e,r,n)&amp;&amp;w(t,e,r)!==w(t,e,n)}function eo(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])&lt;n;for(var i=1;i&lt;e.length;i++){if(ro(t,e[i-1],e[i])&lt;n)return!0}return!1}function ro(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return i&lt;0?t.distSqr(e):i&gt;1?t.distSqr(r):t.distSqr(r.sub(e)._mult(i)._add(e))}function no(t,e){for(var r,n,i,a=!1,o=0;o&lt;t.length;o++)for(var s=0,l=(r=t[o]).length-1;s&lt;r.length;l=s++)n=r[s],i=r[l],n.y&gt;e.y!=i.y&gt;e.y&amp;&amp;e.x&lt;(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&amp;&amp;(a=!a);return a}function io(t,e){for(var r=!1,n=0,i=t.length-1;n&lt;t.length;i=n++){var a=t[n],o=t[i];a.y&gt;e.y!=o.y&gt;e.y&amp;&amp;e.x&lt;(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&amp;&amp;(r=!r)}return r}function ao(t,e,r){var n=r[0],i=r[2];if(t.x&lt;n.x&amp;&amp;e.x&lt;n.x||t.x&gt;i.x&amp;&amp;e.x&gt;i.x||t.y&lt;n.y&amp;&amp;e.y&lt;n.y||t.y&gt;i.y&amp;&amp;e.y&gt;i.y)return!1;var a=w(t,e,r[0]);return a!==w(t,e,r[1])||a!==w(t,e,r[2])||a!==w(t,e,r[3])}function oo(t,e,r){var n=e.paint.get(t).value;return&quot;constant&quot;===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function so(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function lo(t,e,r,n,a){if(!e[0]&amp;&amp;!e[1])return t;var o=i.convert(e)._mult(a);&quot;viewport&quot;===r&amp;&amp;o._rotate(-n);for(var s=[],l=0;l&lt;t.length;l++){var c=t[l];s.push(c.sub(o))}return s}Xa.prototype.populate=function(t,e,r){var n=this.layers[0],i=[],a=null;&quot;circle&quot;===n.type&amp;&amp;(a=n.layout.get(&quot;circle-sort-key&quot;));for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=l.feature,u=l.id,f=l.index,h=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:c.type,id:u,properties:c.properties,geometry:p?Ya(c):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),d,r)){p||(d.geometry=Ya(c));var g=a?a.evaluate(d,{},r):void 0,m={id:u,properties:c.properties,type:c.type,sourceLayerIndex:h,index:f,geometry:d.geometry,patterns:{},sortKey:g};i.push(m)}}a&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var v=0,y=i;v&lt;y.length;v+=1){var x=y[v],b=x,_=b.geometry,w=b.index,T=b.sourceLayerIndex,k=t[w].feature;this.addFeature(x,_,w,r),e.featureIndex.insert(k,_,w,T,this.index)}},Xa.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Xa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Xa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Xa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ha),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Xa.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Xa.prototype.addFeature=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1)for(var o=0,s=a[i];o&lt;s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c&lt;0||c&gt;=8192||u&lt;0||u&gt;=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;Wa(this.layoutVertexArray,c,u,-1,-1),Wa(this.layoutVertexArray,c,u,1,-1),Wa(this.layoutVertexArray,c,u,1,1),Wa(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Nn(&quot;CircleBucket&quot;,Xa,{omit:[&quot;layers&quot;]});var co=new Si({&quot;circle-sort-key&quot;:new Ti(Lt.layout_circle[&quot;circle-sort-key&quot;])}),uo={paint:new Si({&quot;circle-radius&quot;:new Ti(Lt.paint_circle[&quot;circle-radius&quot;]),&quot;circle-color&quot;:new Ti(Lt.paint_circle[&quot;circle-color&quot;]),&quot;circle-blur&quot;:new Ti(Lt.paint_circle[&quot;circle-blur&quot;]),&quot;circle-opacity&quot;:new Ti(Lt.paint_circle[&quot;circle-opacity&quot;]),&quot;circle-translate&quot;:new wi(Lt.paint_circle[&quot;circle-translate&quot;]),&quot;circle-translate-anchor&quot;:new wi(Lt.paint_circle[&quot;circle-translate-anchor&quot;]),&quot;circle-pitch-scale&quot;:new wi(Lt.paint_circle[&quot;circle-pitch-scale&quot;]),&quot;circle-pitch-alignment&quot;:new wi(Lt.paint_circle[&quot;circle-pitch-alignment&quot;]),&quot;circle-stroke-width&quot;:new Ti(Lt.paint_circle[&quot;circle-stroke-width&quot;]),&quot;circle-stroke-color&quot;:new Ti(Lt.paint_circle[&quot;circle-stroke-color&quot;]),&quot;circle-stroke-opacity&quot;:new Ti(Lt.paint_circle[&quot;circle-stroke-opacity&quot;])}),layout:co},fo=&quot;undefined&quot;!=typeof Float32Array?Float32Array:Array;function ho(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function po(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var go=po;var mo,vo,yo=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t};mo=new fo(3),fo!=Float32Array&amp;&amp;(mo[0]=0,mo[1]=0,mo[2]=0),vo=mo;function xo(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}!function(){var t=function(){var t=new fo(4);return fo!=Float32Array&amp;&amp;(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}()}();var bo=function(t){var e=t[0],r=t[1];return e*e+r*r},_o=(function(){var t=function(){var t=new fo(2);return fo!=Float32Array&amp;&amp;(t[0]=0,t[1]=0),t}()}(),function(t){function e(e){t.call(this,e,uo)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Xa(t)},e.prototype.queryRadius=function(t){var e=t;return oo(&quot;circle-radius&quot;,this,e)+oo(&quot;circle-stroke-width&quot;,this,e)+so(this.paint.get(&quot;circle-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=lo(t,this.paint.get(&quot;circle-translate&quot;),this.paint.get(&quot;circle-translate-anchor&quot;),a.angle,o),c=this.paint.get(&quot;circle-radius&quot;).evaluate(e,r)+this.paint.get(&quot;circle-stroke-width&quot;).evaluate(e,r),u=&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;),f=u?l:function(t,e){return t.map((function(t){return wo(t,e)}))}(l,s),h=u?c*o:c,p=0,d=n;p&lt;d.length;p+=1)for(var g=0,m=d[p];g&lt;m.length;g+=1){var v=m[g],y=u?v:wo(v,s),x=h,b=xo([],[v.x,v.y,0,1],s);if(&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)?x*=b[3]/a.cameraToCenterDistance:&quot;map&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)&amp;&amp;(x*=a.cameraToCenterDistance/b[3]),Ja(f,y,x))return!0}return!1},e}(Ei));function wo(t,e){var r=xo([],[t.x,t.y,0,1],e);return new i(r[0]/r[3],r[1]/r[3])}var To=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Xa);function ko(t,e,r,n){var i=e.width,a=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*a*r)throw new RangeError(&quot;mismatched image size&quot;)}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function Ao(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=ko({},{width:n,height:i},r);Mo(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function Mo(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width&gt;t.width||i.height&gt;t.height||r.x&gt;t.width-i.width||r.y&gt;t.height-i.height)throw new RangeError(&quot;out of range source coordinates for image copy&quot;);if(i.width&gt;e.width||i.height&gt;e.height||n.x&gt;e.width-i.width||n.y&gt;e.height-i.height)throw new RangeError(&quot;out of range destination coordinates for image copy&quot;);for(var o=t.data,s=e.data,l=0;l&lt;i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f&lt;i.width*a;f++)s[u+f]=o[c+f];return e}Nn(&quot;HeatmapBucket&quot;,To,{omit:[&quot;layers&quot;]});var So=function(t,e){ko(this,t,1,e)};So.prototype.resize=function(t){Ao(this,t,1)},So.prototype.clone=function(){return new So({width:this.width,height:this.height},new Uint8Array(this.data))},So.copy=function(t,e,r,n,i){Mo(t,e,r,n,i,1)};var Eo=function(t,e){ko(this,t,4,e)};Eo.prototype.resize=function(t){Ao(this,t,4)},Eo.prototype.replace=function(t,e){e?this.data.set(t):t instanceof Uint8ClampedArray?this.data=new Uint8Array(t.buffer):this.data=t},Eo.prototype.clone=function(){return new Eo({width:this.width,height:this.height},new Uint8Array(this.data))},Eo.copy=function(t,e,r,n,i){Mo(t,e,r,n,i,4)},Nn(&quot;AlphaImage&quot;,So),Nn(&quot;RGBAImage&quot;,Eo);var Lo={paint:new Si({&quot;heatmap-radius&quot;:new Ti(Lt.paint_heatmap[&quot;heatmap-radius&quot;]),&quot;heatmap-weight&quot;:new Ti(Lt.paint_heatmap[&quot;heatmap-weight&quot;]),&quot;heatmap-intensity&quot;:new wi(Lt.paint_heatmap[&quot;heatmap-intensity&quot;]),&quot;heatmap-color&quot;:new Mi(Lt.paint_heatmap[&quot;heatmap-color&quot;]),&quot;heatmap-opacity&quot;:new wi(Lt.paint_heatmap[&quot;heatmap-opacity&quot;])})};function Co(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i&lt;256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new Eo({width:256,height:1},r)}var Po=function(t){function e(e){t.call(this,e,Lo),this._updateColorRamp()}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new To(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;heatmap-color&quot;===t&amp;&amp;this._updateColorRamp()},e.prototype._updateColorRamp=function(){var t=this._transitionablePaint._values[&quot;heatmap-color&quot;].value.expression;this.colorRamp=Co(t,&quot;heatmapDensity&quot;),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&amp;&amp;(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;heatmap-opacity&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(Ei),Io={paint:new Si({&quot;hillshade-illumination-direction&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-illumination-direction&quot;]),&quot;hillshade-illumination-anchor&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-illumination-anchor&quot;]),&quot;hillshade-exaggeration&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-exaggeration&quot;]),&quot;hillshade-shadow-color&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-shadow-color&quot;]),&quot;hillshade-highlight-color&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-highlight-color&quot;]),&quot;hillshade-accent-color&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-accent-color&quot;])})},Oo=function(t){function e(e){t.call(this,e,Io)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;hillshade-exaggeration&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(Ei),zo=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,Do=Fo,Ro=Fo;function Fo(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&amp;&amp;e.length,f=u?e[0]*r:t.length,h=Bo(t,0,f,r,!0),p=[];if(!h||h.next===h.prev)return p;if(u&amp;&amp;(h=function(t,e,r,n){var i,a,o,s,l,c=[];for(i=0,a=e.length;i&lt;a;i++)o=e[i]*n,s=i&lt;a-1?e[i+1]*n:t.length,(l=Bo(t,o,s,n,!1))===l.next&amp;&amp;(l.steiner=!0),c.push(Zo(l));for(c.sort(Go),i=0;i&lt;c.length;i++)Yo(c[i],r),r=No(r,r.next);return r}(t,e,h,r)),t.length&gt;80*r){n=a=t[0],i=o=t[1];for(var d=r;d&lt;f;d+=r)(s=t[d])&lt;n&amp;&amp;(n=s),(l=t[d+1])&lt;i&amp;&amp;(i=l),s&gt;a&amp;&amp;(a=s),l&gt;o&amp;&amp;(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return jo(h,p,r,n,i,c),p}function Bo(t,e,r,n,i){var a,o;if(i===ls(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=as(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=as(a,t[a],t[a+1],o);return o&amp;&amp;$o(o,o.next)&amp;&amp;(os(o),o=o.next),o}function No(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!$o(n,n.next)&amp;&amp;0!==Qo(n.prev,n,n.next))n=n.next;else{if(os(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function jo(t,e,r,n,i,a,o){if(t){!o&amp;&amp;a&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=Xo(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Vo(t,n,i,a):Uo(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),os(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?jo(t=qo(No(t),e,r),e,r,n,i,a,2):2===o&amp;&amp;Ho(t,e,r,n,i,a):jo(No(t),e,r,n,i,a,1);break}}}function Uo(t){var e=t.prev,r=t,n=t.next;if(Qo(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Jo(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;Qo(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function Vo(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Qo(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=Xo(s,l,e,r,n),h=Xo(c,u,e,r,n),p=t.prevZ,d=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;d&amp;&amp;d.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;Qo(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,d!==t.prev&amp;&amp;d!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&amp;&amp;Qo(d.prev,d,d.next)&gt;=0)return!1;d=d.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;Qo(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;d&amp;&amp;d.z&lt;=h;){if(d!==t.prev&amp;&amp;d!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&amp;&amp;Qo(d.prev,d,d.next)&gt;=0)return!1;d=d.nextZ}return!0}function qo(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!$o(i,a)&amp;&amp;ts(i,n,n.next,a)&amp;&amp;ns(i,a)&amp;&amp;ns(a,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),os(n),os(n.next),n=t=a),n=n.next}while(n!==t);return No(n)}function Ho(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&amp;&amp;Ko(o,s)){var l=is(o,s);return o=No(o,o.next),l=No(l,l.next),jo(o,e,r,n,i,a),void jo(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Go(t,e){return t.x-e.x}function Yo(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;Jo(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),ns(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;Wo(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=is(e,t);No(e,e.next),No(r,r.next)}}function Wo(t,e){return Qo(t.prev,t,e.prev)&lt;0&amp;&amp;Qo(e.next,t,t.next)&lt;0}function Xo(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function Zo(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function Jo(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function Ko(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;ts(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(ns(t,e)&amp;&amp;ns(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(Qo(t.prev,t,e.prev)||Qo(t,e.prev,e))||$o(t,e)&amp;&amp;Qo(t.prev,t,t.next)&gt;0&amp;&amp;Qo(e.prev,e,e.next)&gt;0)}function Qo(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function $o(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function ts(t,e,r,n){var i=rs(Qo(t,e,r)),a=rs(Qo(t,e,n)),o=rs(Qo(r,n,t)),s=rs(Qo(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!es(t,r,e))||(!(0!==a||!es(t,n,e))||(!(0!==o||!es(r,t,n))||!(0!==s||!es(r,e,n)))))}function es(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function rs(t){return t&gt;0?1:t&lt;0?-1:0}function ns(t,e){return Qo(t.prev,t,t.next)&lt;0?Qo(t,e,t.next)&gt;=0&amp;&amp;Qo(t,t.prev,e)&gt;=0:Qo(t,e,t.prev)&lt;0||Qo(t,t.next,e)&lt;0}function is(t,e){var r=new ss(t.i,t.x,t.y),n=new ss(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function as(t,e,r,n){var i=new ss(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function os(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function ss(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ls(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function cs(t,e,r,n,i){!function t(e,r,n,i,a){for(;i&gt;n;){if(i-n&gt;600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2&lt;0?-1:1),f=Math.max(n,Math.floor(r-s*c/o+u)),h=Math.min(i,Math.floor(r+(o-s)*c/o+u));t(e,r,f,h,a)}var p=e[r],d=n,g=i;for(us(e,n,r),a(e[i],p)&gt;0&amp;&amp;us(e,n,i);d&lt;g;){for(us(e,d,g),d++,g--;a(e[d],p)&lt;0;)d++;for(;a(e[g],p)&gt;0;)g--}0===a(e[n],p)?us(e,n,g):(g++,us(e,g,i)),g&lt;=r&amp;&amp;(n=g+1),r&lt;=g&amp;&amp;(i=g-1)}}(t,e,r||0,n||t.length-1,i||fs)}function us(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function fs(t,e){return t&lt;e?-1:t&gt;e?1:0}function hs(t,e){var r=t.length;if(r&lt;=1)return[t];for(var n,i,a=[],o=0;o&lt;r;o++){var s=T(t[o]);0!==s&amp;&amp;(t[o].area=Math.abs(s),void 0===i&amp;&amp;(i=s&lt;0),i===s&lt;0?(n&amp;&amp;a.push(n),n=[t[o]]):n.push(t[o]))}if(n&amp;&amp;a.push(n),e&gt;1)for(var l=0;l&lt;a.length;l++)a[l].length&lt;=e||(cs(a[l],e,1,a[l].length-1,ps),a[l]=a[l].slice(0,e));return a}function ps(t,e){return e.area-t.area}function ds(t,e,r){for(var n=r.patternDependencies,i=!1,a=0,o=e;a&lt;o.length;a+=1){var s=o[a].paint.get(t+&quot;-pattern&quot;);s.isConstant()||(i=!0);var l=s.constantOr(null);l&amp;&amp;(i=!0,n[l.to]=!0,n[l.from]=!0)}return i}function gs(t,e,r,n,i){for(var a=i.patternDependencies,o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.paint.get(t+&quot;-pattern&quot;).value;if(&quot;constant&quot;!==c.kind){var u=c.evaluate({zoom:n-1},r,{},i.availableImages),f=c.evaluate({zoom:n},r,{},i.availableImages),h=c.evaluate({zoom:n+1},r,{},i.availableImages);u=u&amp;&amp;u.name?u.name:u,f=f&amp;&amp;f.name?f.name:f,h=h&amp;&amp;h.name?h.name:h,a[u]=!0,a[f]=!0,a[h]=!0,r.patterns[l.id]={min:u,mid:f,max:h}}}return r}Fo.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(ls(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(ls(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},Fo.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r},Do.default=Ro;var ms=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new zi,this.indexArray=new Yi,this.indexArray2=new Qi,this.programConfigurations=new Ua(zo,t.layers,t.zoom),this.segments=new pa,this.segments2=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};ms.prototype.populate=function(t,e,r){this.hasPattern=ds(&quot;fill&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;fill-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Ya(l):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),p,r)){h||(p.geometry=Ya(l));var d=n?n.evaluate(p,{},r,e.availableImages):void 0,g={id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d};i.push(g)}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m&lt;v.length;m+=1){var y=v[m],x=y,b=x.geometry,_=x.index,w=x.sourceLayerIndex;if(this.hasPattern){var T=gs(&quot;fill&quot;,this.layers,y,this.zoom,e);this.patternFeatures.push(T)}else this.addFeature(y,b,_,r,{});var k=t[_].feature;e.featureIndex.insert(k,b,_,w,this.index)}},ms.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},ms.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},ms.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},ms.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},ms.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,zo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},ms.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},ms.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=hs(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1){l+=u[c].length}for(var f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),h=f.vertexLength,p=[],d=[],g=0,m=s;g&lt;m.length;g+=1){var v=m[g];if(0!==v.length){v!==s[0]&amp;&amp;d.push(p.length/2);var y=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),x=y.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(x+v.length-1,x),p.push(v[0].x),p.push(v[0].y);for(var b=1;b&lt;v.length;b++)this.layoutVertexArray.emplaceBack(v[b].x,v[b].y),this.indexArray2.emplaceBack(x+b-1,x+b),p.push(v[b].x),p.push(v[b].y);y.vertexLength+=v.length,y.primitiveLength+=v.length}}for(var _=Do(p,d),w=0;w&lt;_.length;w+=3)this.indexArray.emplaceBack(h+_[w],h+_[w+1],h+_[w+2]);f.vertexLength+=l,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Nn(&quot;FillBucket&quot;,ms,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var vs=new Si({&quot;fill-sort-key&quot;:new Ti(Lt.layout_fill[&quot;fill-sort-key&quot;])}),ys={paint:new Si({&quot;fill-antialias&quot;:new wi(Lt.paint_fill[&quot;fill-antialias&quot;]),&quot;fill-opacity&quot;:new Ti(Lt.paint_fill[&quot;fill-opacity&quot;]),&quot;fill-color&quot;:new Ti(Lt.paint_fill[&quot;fill-color&quot;]),&quot;fill-outline-color&quot;:new Ti(Lt.paint_fill[&quot;fill-outline-color&quot;]),&quot;fill-translate&quot;:new wi(Lt.paint_fill[&quot;fill-translate&quot;]),&quot;fill-translate-anchor&quot;:new wi(Lt.paint_fill[&quot;fill-translate-anchor&quot;]),&quot;fill-pattern&quot;:new ki(Lt.paint_fill[&quot;fill-pattern&quot;])}),layout:vs},xs=function(t){function e(e){t.call(this,e,ys)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values[&quot;fill-outline-color&quot;];&quot;constant&quot;===n.value.kind&amp;&amp;void 0===n.value.value&amp;&amp;(this.paint._values[&quot;fill-outline-color&quot;]=this.paint._values[&quot;fill-color&quot;])},e.prototype.createBucket=function(t){return new ms(t)},e.prototype.queryRadius=function(){return so(this.paint.get(&quot;fill-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){return Ka(lo(t,this.paint.get(&quot;fill-translate&quot;),this.paint.get(&quot;fill-translate-anchor&quot;),a.angle,o),n)},e.prototype.isTileClipped=function(){return!0},e}(Ei),bs=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_normal_ed&quot;,components:4,type:&quot;Int16&quot;}],4).members,_s=ws;function ws(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(Ts,this,e)}function Ts(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){var r=t.readVarint()+t.pos;for(;t.pos&lt;r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&amp;&amp;(e._geometry=r.pos)}function ks(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i&lt;a;o=i++)e=t[i],n+=((r=t[o]).x-e.x)*(e.y+r.y);return n}ws.types=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ws.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,a=0,o=0,s=0,l=[];t.pos&lt;r;){if(a&lt;=0){var c=t.readVarint();n=7&amp;c,a=c&gt;&gt;3}if(a--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&amp;&amp;(e&amp;&amp;l.push(e),e=[]),e.push(new i(o,s));else{if(7!==n)throw new Error(&quot;unknown command &quot;+n);e&amp;&amp;e.push(e[0].clone())}}return e&amp;&amp;l.push(e),l},ws.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos&lt;e;){if(n&lt;=0){var u=t.readVarint();r=7&amp;u,n=u&gt;&gt;3}if(n--,1===r||2===r)(i+=t.readSVarint())&lt;o&amp;&amp;(o=i),i&gt;s&amp;&amp;(s=i),(a+=t.readSVarint())&lt;l&amp;&amp;(l=a),a&gt;c&amp;&amp;(c=a);else if(7!==r)throw new Error(&quot;unknown command &quot;+r)}return[o,l,s,c]},ws.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=ws.types[this.type];function u(t){for(var e=0;e&lt;t.length;e++){var r=t[e],n=180-360*(r.y+s)/a;t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n&lt;l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n&lt;l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e&lt;=1)return[t];for(var r,n,i=[],a=0;a&lt;e;a++){var o=ks(t[a]);0!==o&amp;&amp;(void 0===n&amp;&amp;(n=o&lt;0),n===o&lt;0?(r&amp;&amp;i.push(r),r=[t[a]]):r.push(t[a]))}r&amp;&amp;i.push(r);return i}(l),n=0;n&lt;l.length;n++)for(i=0;i&lt;l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=&quot;Multi&quot;+c;var h={type:&quot;Feature&quot;,geometry:{type:c,coordinates:l},properties:this.properties};return&quot;id&quot;in this&amp;&amp;(h.id=this.id),h};var As=Ms;function Ms(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Ss,this,e),this.length=this._features.length}function Ss(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&amp;&amp;e._values.push(function(t){var e=null,r=t.readVarint()+t.pos;for(;t.pos&lt;r;){var n=t.readVarint()&gt;&gt;3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function Es(t,e,r){if(3===t){var n=new As(r,r.readVarint()+r.pos);n.length&amp;&amp;(e[n.name]=n)}}Ms.prototype.feature=function(t){if(t&lt;0||t&gt;=this._features.length)throw new Error(&quot;feature index out of bounds&quot;);this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new _s(this._pbf,e,this.extent,this._keys,this._values)};var Ls={VectorTile:function(t,e){this.layers=t.readFields(Es,{},e)},VectorTileFeature:_s,VectorTileLayer:As},Cs=Ls.VectorTileFeature.types,Ps=Math.pow(2,13);function Is(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*Ps)+o,i*Ps*2,a*Ps*2,Math.round(s))}var Os=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ri,this.indexArray=new Yi,this.programConfigurations=new Ua(bs,t.layers,t.zoom),this.segments=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function zs(t,e){return t.x===e.x&amp;&amp;(t.x&lt;0||t.x&gt;8192)||t.y===e.y&amp;&amp;(t.y&lt;0||t.y&gt;8192)}function Ds(t){return t.every((function(t){return t.x&lt;0}))||t.every((function(t){return t.x&gt;8192}))||t.every((function(t){return t.y&lt;0}))||t.every((function(t){return t.y&gt;8192}))}Os.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=ds(&quot;fill-extrusion&quot;,this.layers,e);for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.feature,s=a.id,l=a.index,c=a.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,f={type:o.type,id:s,properties:o.properties,geometry:u?Ya(o):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),f,r)){var h={id:s,sourceLayerIndex:c,index:l,geometry:u?f.geometry:Ya(o),properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&amp;&amp;(h.id=o.id),this.hasPattern?this.features.push(gs(&quot;fill-extrusion&quot;,this.layers,h,this.zoom,e)):this.addFeature(h,h.geometry,l,r,{}),e.featureIndex.insert(o,h.geometry,l,c,this.index,!0)}}},Os.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.features;n&lt;i.length;n+=1){var a=i[n],o=a.geometry;this.addFeature(a,o,a.index,e,r)}},Os.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Os.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Os.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Os.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,bs),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Os.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Os.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=hs(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1){l+=u[c].length}for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=s;h&lt;p.length;h+=1){var d=p[h];if(0!==d.length&amp;&amp;!Ds(d))for(var g=0,m=0;m&lt;d.length;m++){var v=d[m];if(m&gt;=1){var y=d[m-1];if(!zs(v,y)){f.vertexLength+4&gt;pa.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);g+b&gt;32768&amp;&amp;(g=0),Is(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,g),Is(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,g),g+=b,Is(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,g),Is(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,g);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l&gt;pa.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),&quot;Polygon&quot;===Cs[t.type]){for(var w=[],T=[],k=f.vertexLength,A=0,M=s;A&lt;M.length;A+=1){var S=M[A];if(0!==S.length){S!==s[0]&amp;&amp;T.push(w.length/2);for(var E=0;E&lt;S.length;E++){var L=S[E];Is(this.layoutVertexArray,L.x,L.y,0,0,1,1,0),w.push(L.x),w.push(L.y)}}}for(var C=Do(w,T),P=0;P&lt;C.length;P+=3)this.indexArray.emplaceBack(k+C[P],k+C[P+2],k+C[P+1]);f.primitiveLength+=C.length/3,f.vertexLength+=l}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Nn(&quot;FillExtrusionBucket&quot;,Os,{omit:[&quot;layers&quot;,&quot;features&quot;]});var Rs={paint:new Si({&quot;fill-extrusion-opacity&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-opacity&quot;]),&quot;fill-extrusion-color&quot;:new Ti(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-color&quot;]),&quot;fill-extrusion-translate&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate&quot;]),&quot;fill-extrusion-translate-anchor&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate-anchor&quot;]),&quot;fill-extrusion-pattern&quot;:new ki(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-pattern&quot;]),&quot;fill-extrusion-height&quot;:new Ti(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-height&quot;]),&quot;fill-extrusion-base&quot;:new Ti(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-base&quot;]),&quot;fill-extrusion-vertical-gradient&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-vertical-gradient&quot;])})},Fs=function(t){function e(e){t.call(this,e,Rs)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Os(t)},e.prototype.queryRadius=function(){return so(this.paint.get(&quot;fill-extrusion-translate&quot;))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s,l){var c=lo(t,this.paint.get(&quot;fill-extrusion-translate&quot;),this.paint.get(&quot;fill-extrusion-translate-anchor&quot;),o.angle,s),u=this.paint.get(&quot;fill-extrusion-height&quot;).evaluate(e,r),f=this.paint.get(&quot;fill-extrusion-base&quot;).evaluate(e,r),h=function(t,e,r,n){for(var a=[],o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=[l.x,l.y,n,1];xo(c,c,e),a.push(new i(c[0]/c[3],c[1]/c[3]))}return a}(c,l,0,0),p=function(t,e,r,n){for(var a=[],o=[],s=n[8]*e,l=n[9]*e,c=n[10]*e,u=n[11]*e,f=n[8]*r,h=n[9]*r,p=n[10]*r,d=n[11]*r,g=0,m=t;g&lt;m.length;g+=1){for(var v=m[g],y=[],x=[],b=0,_=v;b&lt;_.length;b+=1){var w=_[b],T=w.x,k=w.y,A=n[0]*T+n[4]*k+n[12],M=n[1]*T+n[5]*k+n[13],S=n[2]*T+n[6]*k+n[14],E=n[3]*T+n[7]*k+n[15],L=S+c,C=E+u,P=A+f,I=M+h,O=S+p,z=E+d,D=new i((A+s)/C,(M+l)/C);D.z=L/C,y.push(D);var R=new i(P/z,I/z);R.z=O/z,x.push(R)}a.push(y),o.push(x)}return[a,o]}(n,f,u,l);return function(t,e,r){var n=1/0;Ka(r,e)&amp;&amp;(n=Ns(r,e[0]));for(var i=0;i&lt;e.length;i++)for(var a=e[i],o=t[i],s=0;s&lt;a.length-1;s++){var l=a[s],c=a[s+1],u=o[s],f=o[s+1],h=[l,c,f,u,l];Za(r,h)&amp;&amp;(n=Math.min(n,Ns(r,h)))}return n!==1/0&amp;&amp;n}(p[0],p[1],h)},e}(Ei);function Bs(t,e){return t.x*e.x+t.y*e.y}function Ns(t,e){if(1===t.length){for(var r,n=0,i=e[n++];!r||i.equals(r);)if(!(r=e[n++]))return 1/0;for(;n&lt;e.length;n++){var a=e[n],o=t[0],s=r.sub(i),l=a.sub(i),c=o.sub(i),u=Bs(s,s),f=Bs(s,l),h=Bs(l,l),p=Bs(c,s),d=Bs(c,l),g=u*h-f*f,m=(h*p-f*d)/g,v=(u*d-f*p)/g,y=1-m-v,x=i.z*y+r.z*m+a.z*v;if(isFinite(x))return x}return 1/0}for(var b=1/0,_=0,w=e;_&lt;w.length;_+=1){var T=w[_];b=Math.min(b,T.z)}return b}var js=Ii([{name:&quot;a_pos_normal&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint8&quot;}],4).members,Us=Ls.VectorTileFeature.types,Vs=Math.cos(Math.PI/180*37.5),qs=Math.pow(2,14)/.5,Hs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Fi,this.indexArray=new Yi,this.programConfigurations=new Ua(js,t.layers,t.zoom),this.segments=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Hs.prototype.populate=function(t,e,r){this.hasPattern=ds(&quot;line&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;line-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Ya(l):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),p,r)){h||(p.geometry=Ya(l));var d=n?n.evaluate(p,{},r):void 0,g={id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d};i.push(g)}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m&lt;v.length;m+=1){var y=v[m],x=y,b=x.geometry,_=x.index,w=x.sourceLayerIndex;if(this.hasPattern){var T=gs(&quot;line&quot;,this.layers,y,this.zoom,e);this.patternFeatures.push(T)}else this.addFeature(y,b,_,r,{});var k=t[_].feature;e.featureIndex.insert(k,b,_,w,this.index)}},Hs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Hs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},Hs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Hs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Hs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,js),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Hs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Hs.prototype.addFeature=function(t,e,r,n,i){for(var a=this.layers[0].layout,o=a.get(&quot;line-join&quot;).evaluate(t,{}),s=a.get(&quot;line-cap&quot;),l=a.get(&quot;line-miter-limit&quot;),c=a.get(&quot;line-round-limit&quot;),u=0,f=e;u&lt;f.length;u+=1){var h=f[u];this.addLine(h,t,o,s,l,c)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Hs.prototype.addLine=function(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_start&quot;)&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_end&quot;)){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var o=0;o&lt;t.length-1;o++)this.totalDistance+=t[o].dist(t[o+1]);this.updateScaledDistance()}for(var s=&quot;Polygon&quot;===Us[e.type],l=t.length;l&gt;=2&amp;&amp;t[l-1].equals(t[l-2]);)l--;for(var c=0;c&lt;l-1&amp;&amp;t[c].equals(t[c+1]);)c++;if(!(l&lt;(s?3:2))){&quot;bevel&quot;===r&amp;&amp;(i=1.05);var u,f=this.overscaling&lt;=16?122880/(512*this.overscaling):0,h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),p=void 0,d=void 0,g=void 0,m=void 0;this.e1=this.e2=-1,s&amp;&amp;(u=t[l-2],m=t[c].sub(u)._unit()._perp());for(var v=c;v&lt;l;v++)if(!(d=v===l-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(d)){m&amp;&amp;(g=m),u&amp;&amp;(p=u),u=t[v],m=d?d.sub(u)._unit()._perp():g;var y=(g=g||m).add(m);0===y.x&amp;&amp;0===y.y||y._unit();var x=g.x*m.x+g.y*m.y,b=y.x*m.x+y.y*m.y,_=0!==b?1/b:1/0,w=2*Math.sqrt(2-2*b),T=b&lt;Vs&amp;&amp;p&amp;&amp;d,k=g.x*m.y-g.y*m.x&gt;0;if(T&amp;&amp;v&gt;c){var A=u.dist(p);if(A&gt;2*f){var M=u.sub(u.sub(p)._mult(f/A)._round());this.updateDistance(p,M),this.addCurrentVertex(M,g,0,0,h),p=M}}var S=p&amp;&amp;d,E=S?r:s?&quot;butt&quot;:n;if(S&amp;&amp;&quot;round&quot;===E&amp;&amp;(_&lt;a?E=&quot;miter&quot;:_&lt;=2&amp;&amp;(E=&quot;fakeround&quot;)),&quot;miter&quot;===E&amp;&amp;_&gt;i&amp;&amp;(E=&quot;bevel&quot;),&quot;bevel&quot;===E&amp;&amp;(_&gt;2&amp;&amp;(E=&quot;flipbevel&quot;),_&lt;i&amp;&amp;(E=&quot;miter&quot;)),p&amp;&amp;this.updateDistance(p,u),&quot;miter&quot;===E)y._mult(_),this.addCurrentVertex(u,y,0,0,h);else if(&quot;flipbevel&quot;===E){if(_&gt;100)y=m.mult(-1);else{var L=_*g.add(m).mag()/g.sub(m).mag();y._perp()._mult(L*(k?-1:1))}this.addCurrentVertex(u,y,0,0,h),this.addCurrentVertex(u,y.mult(-1),0,0,h)}else if(&quot;bevel&quot;===E||&quot;fakeround&quot;===E){var C=-Math.sqrt(_*_-1),P=k?C:0,I=k?0:C;if(p&amp;&amp;this.addCurrentVertex(u,g,P,I,h),&quot;fakeround&quot;===E)for(var O=Math.round(180*w/Math.PI/20),z=1;z&lt;O;z++){var D=z/O;if(.5!==D){var R=D-.5;D+=D*R*(D-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*R*R+(.848013+x*(.215638*x-1.06021)))}var F=m.sub(g)._mult(D)._add(g)._unit()._mult(k?-1:1);this.addHalfVertex(u,F.x,F.y,!1,k,0,h)}d&amp;&amp;this.addCurrentVertex(u,m,-P,-I,h)}else if(&quot;butt&quot;===E)this.addCurrentVertex(u,y,0,0,h);else if(&quot;square&quot;===E){var B=p?1:-1;this.addCurrentVertex(u,y,B,B,h)}else&quot;round&quot;===E&amp;&amp;(p&amp;&amp;(this.addCurrentVertex(u,g,0,0,h),this.addCurrentVertex(u,g,1,1,h,!0)),d&amp;&amp;(this.addCurrentVertex(u,m,-1,-1,h,!0),this.addCurrentVertex(u,m,0,0,h)));if(T&amp;&amp;v&lt;l-1){var N=u.dist(d);if(N&gt;2*f){var j=u.add(d.sub(u)._mult(f/N)._round());this.updateDistance(u,j),this.addCurrentVertex(j,m,0,0,h),u=j}}}}},Hs.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&amp;&amp;(a=!1);var o=e.x+e.y*r,s=e.y-e.x*r,l=-e.x+e.y*n,c=-e.y-e.x*n;this.addHalfVertex(t,o,s,a,!1,r,i),this.addHalfVertex(t,l,c,a,!0,-n,i),this.distance&gt;qs/2&amp;&amp;0===this.totalDistance&amp;&amp;(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},Hs.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=t.x,l=t.y,c=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((s&lt;&lt;1)+(n?1:0),(l&lt;&lt;1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a&lt;0?-1:1)|(63&amp;c)&lt;&lt;2,c&gt;&gt;6);var u=o.vertexLength++;this.e1&gt;=0&amp;&amp;this.e2&gt;=0&amp;&amp;(this.indexArray.emplaceBack(this.e1,this.e2,u),o.primitiveLength++),i?this.e2=u:this.e1=u},Hs.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance&gt;0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(qs-1):this.distance},Hs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Nn(&quot;LineBucket&quot;,Hs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var Gs=new Si({&quot;line-cap&quot;:new wi(Lt.layout_line[&quot;line-cap&quot;]),&quot;line-join&quot;:new Ti(Lt.layout_line[&quot;line-join&quot;]),&quot;line-miter-limit&quot;:new wi(Lt.layout_line[&quot;line-miter-limit&quot;]),&quot;line-round-limit&quot;:new wi(Lt.layout_line[&quot;line-round-limit&quot;]),&quot;line-sort-key&quot;:new Ti(Lt.layout_line[&quot;line-sort-key&quot;])}),Ys={paint:new Si({&quot;line-opacity&quot;:new Ti(Lt.paint_line[&quot;line-opacity&quot;]),&quot;line-color&quot;:new Ti(Lt.paint_line[&quot;line-color&quot;]),&quot;line-translate&quot;:new wi(Lt.paint_line[&quot;line-translate&quot;]),&quot;line-translate-anchor&quot;:new wi(Lt.paint_line[&quot;line-translate-anchor&quot;]),&quot;line-width&quot;:new Ti(Lt.paint_line[&quot;line-width&quot;]),&quot;line-gap-width&quot;:new Ti(Lt.paint_line[&quot;line-gap-width&quot;]),&quot;line-offset&quot;:new Ti(Lt.paint_line[&quot;line-offset&quot;]),&quot;line-blur&quot;:new Ti(Lt.paint_line[&quot;line-blur&quot;]),&quot;line-dasharray&quot;:new Ai(Lt.paint_line[&quot;line-dasharray&quot;]),&quot;line-pattern&quot;:new ki(Lt.paint_line[&quot;line-pattern&quot;]),&quot;line-gradient&quot;:new Mi(Lt.paint_line[&quot;line-gradient&quot;])}),layout:Gs},Ws=new(function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new pi(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=u({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(Ti))(Ys.paint.properties[&quot;line-width&quot;].specification);Ws.useIntegerZoom=!0;var Xs=function(t){function e(e){t.call(this,e,Ys)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;line-gradient&quot;===t&amp;&amp;this._updateGradient()},e.prototype._updateGradient=function(){var t=this._transitionablePaint._values[&quot;line-gradient&quot;].value.expression;this.gradient=Co(t,&quot;lineProgress&quot;),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values[&quot;line-floorwidth&quot;]=Ws.possiblyEvaluate(this._transitioningPaint._values[&quot;line-width&quot;].value,e)},e.prototype.createBucket=function(t){return new Hs(t)},e.prototype.queryRadius=function(t){var e=t,r=Zs(oo(&quot;line-width&quot;,this,e),oo(&quot;line-gap-width&quot;,this,e)),n=oo(&quot;line-offset&quot;,this,e);return r/2+Math.abs(n)+so(this.paint.get(&quot;line-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s){var l=lo(t,this.paint.get(&quot;line-translate&quot;),this.paint.get(&quot;line-translate-anchor&quot;),o.angle,s),c=s/2*Zs(this.paint.get(&quot;line-width&quot;).evaluate(e,r),this.paint.get(&quot;line-gap-width&quot;).evaluate(e,r)),u=this.paint.get(&quot;line-offset&quot;).evaluate(e,r);return u&amp;&amp;(n=function(t,e){for(var r=[],n=new i(0,0),a=0;a&lt;t.length;a++){for(var o=t[a],s=[],l=0;l&lt;o.length;l++){var c=o[l-1],u=o[l],f=o[l+1],h=0===l?n:u.sub(c)._unit()._perp(),p=l===o.length-1?n:f.sub(u)._unit()._perp(),d=h._add(p)._unit(),g=d.x*p.x+d.y*p.y;d._mult(1/g),s.push(d._mult(e)._add(u))}r.push(s)}return r}(n,u*s)),function(t,e,r){for(var n=0;n&lt;e.length;n++){var i=e[n];if(t.length&gt;=3)for(var a=0;a&lt;i.length;a++)if(io(t,i[a]))return!0;if(Qa(t,i,r))return!0}return!1}(l,n,c)},e.prototype.isTileClipped=function(){return!0},e}(Ei);function Zs(t,e){return e&gt;0?e+2*t:t}var Js=Ii([{name:&quot;a_pos_offset&quot;,components:4,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixeloffset&quot;,components:4,type:&quot;Int16&quot;}],4),Ks=Ii([{name:&quot;a_projected_pos&quot;,components:3,type:&quot;Float32&quot;}],4),Qs=(Ii([{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint32&quot;}],4),Ii([{name:&quot;a_placed&quot;,components:2,type:&quot;Uint8&quot;},{name:&quot;a_shift&quot;,components:2,type:&quot;Float32&quot;}])),$s=(Ii([{type:&quot;Int16&quot;,name:&quot;anchorPointX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorPointY&quot;},{type:&quot;Int16&quot;,name:&quot;x1&quot;},{type:&quot;Int16&quot;,name:&quot;y1&quot;},{type:&quot;Int16&quot;,name:&quot;x2&quot;},{type:&quot;Int16&quot;,name:&quot;y2&quot;},{type:&quot;Uint32&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;sourceLayerIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;bucketIndex&quot;}]),Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_anchor_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_extrude&quot;,components:2,type:&quot;Int16&quot;}],4)),tl=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Float32&quot;},{name:&quot;a_radius&quot;,components:1,type:&quot;Float32&quot;},{name:&quot;a_flags&quot;,components:2,type:&quot;Int16&quot;}],4);Ii([{name:&quot;triangle&quot;,components:3,type:&quot;Uint16&quot;}]),Ii([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Uint16&quot;,name:&quot;glyphStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numGlyphs&quot;},{type:&quot;Uint32&quot;,name:&quot;vertexStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineLength&quot;},{type:&quot;Uint16&quot;,name:&quot;segment&quot;},{type:&quot;Uint16&quot;,name:&quot;lowerSize&quot;},{type:&quot;Uint16&quot;,name:&quot;upperSize&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetX&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetY&quot;},{type:&quot;Uint8&quot;,name:&quot;writingMode&quot;},{type:&quot;Uint8&quot;,name:&quot;placedOrientation&quot;},{type:&quot;Uint8&quot;,name:&quot;hidden&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Int16&quot;,name:&quot;associatedIconIndex&quot;}]),Ii([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Int16&quot;,name:&quot;rightJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;centerJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;leftJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;placedIconSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedIconSymbolIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;key&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numHorizontalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;useRuntimeCollisionCircles&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Float32&quot;,name:&quot;textBoxScale&quot;},{type:&quot;Float32&quot;,components:2,name:&quot;textOffset&quot;},{type:&quot;Float32&quot;,name:&quot;collisionCircleDiameter&quot;}]),Ii([{type:&quot;Float32&quot;,name:&quot;offsetX&quot;}]),Ii([{type:&quot;Int16&quot;,name:&quot;x&quot;},{type:&quot;Int16&quot;,name:&quot;y&quot;},{type:&quot;Int16&quot;,name:&quot;tileUnitDistanceFromAnchor&quot;}]);function el(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get(&quot;text-transform&quot;).evaluate(r,{});return&quot;uppercase&quot;===n?t=t.toLocaleUpperCase():&quot;lowercase&quot;===n&amp;&amp;(t=t.toLocaleLowerCase()),hi.applyArabicShaping&amp;&amp;(t=hi.applyArabicShaping(t)),t}(t.text,e,r)})),t}var rl={&quot;!&quot;:&quot;\ufe15&quot;,&quot;#&quot;:&quot;\uff03&quot;,$:&quot;\uff04&quot;,&quot;%&quot;:&quot;\uff05&quot;,&quot;&amp;&quot;:&quot;\uff06&quot;,&quot;(&quot;:&quot;\ufe35&quot;,&quot;)&quot;:&quot;\ufe36&quot;,&quot;*&quot;:&quot;\uff0a&quot;,&quot;+&quot;:&quot;\uff0b&quot;,&quot;,&quot;:&quot;\ufe10&quot;,&quot;-&quot;:&quot;\ufe32&quot;,&quot;.&quot;:&quot;\u30fb&quot;,&quot;/&quot;:&quot;\uff0f&quot;,&quot;:&quot;:&quot;\ufe13&quot;,&quot;;&quot;:&quot;\ufe14&quot;,&quot;&lt;&quot;:&quot;\ufe3f&quot;,&quot;=&quot;:&quot;\uff1d&quot;,&quot;&gt;&quot;:&quot;\ufe40&quot;,&quot;?&quot;:&quot;\ufe16&quot;,&quot;@&quot;:&quot;\uff20&quot;,&quot;[&quot;:&quot;\ufe47&quot;,&quot;\\&quot;:&quot;\uff3c&quot;,&quot;]&quot;:&quot;\ufe48&quot;,&quot;^&quot;:&quot;\uff3e&quot;,_:&quot;\ufe33&quot;,&quot;`&quot;:&quot;\uff40&quot;,&quot;{&quot;:&quot;\ufe37&quot;,&quot;|&quot;:&quot;\u2015&quot;,&quot;}&quot;:&quot;\ufe38&quot;,&quot;~&quot;:&quot;\uff5e&quot;,&quot;\xa2&quot;:&quot;\uffe0&quot;,&quot;\xa3&quot;:&quot;\uffe1&quot;,&quot;\xa5&quot;:&quot;\uffe5&quot;,&quot;\xa6&quot;:&quot;\uffe4&quot;,&quot;\xac&quot;:&quot;\uffe2&quot;,&quot;\xaf&quot;:&quot;\uffe3&quot;,&quot;\u2013&quot;:&quot;\ufe32&quot;,&quot;\u2014&quot;:&quot;\ufe31&quot;,&quot;\u2018&quot;:&quot;\ufe43&quot;,&quot;\u2019&quot;:&quot;\ufe44&quot;,&quot;\u201c&quot;:&quot;\ufe41&quot;,&quot;\u201d&quot;:&quot;\ufe42&quot;,&quot;\u2026&quot;:&quot;\ufe19&quot;,&quot;\u2027&quot;:&quot;\u30fb&quot;,&quot;\u20a9&quot;:&quot;\uffe6&quot;,&quot;\u3001&quot;:&quot;\ufe11&quot;,&quot;\u3002&quot;:&quot;\ufe12&quot;,&quot;\u3008&quot;:&quot;\ufe3f&quot;,&quot;\u3009&quot;:&quot;\ufe40&quot;,&quot;\u300a&quot;:&quot;\ufe3d&quot;,&quot;\u300b&quot;:&quot;\ufe3e&quot;,&quot;\u300c&quot;:&quot;\ufe41&quot;,&quot;\u300d&quot;:&quot;\ufe42&quot;,&quot;\u300e&quot;:&quot;\ufe43&quot;,&quot;\u300f&quot;:&quot;\ufe44&quot;,&quot;\u3010&quot;:&quot;\ufe3b&quot;,&quot;\u3011&quot;:&quot;\ufe3c&quot;,&quot;\u3014&quot;:&quot;\ufe39&quot;,&quot;\u3015&quot;:&quot;\ufe3a&quot;,&quot;\u3016&quot;:&quot;\ufe17&quot;,&quot;\u3017&quot;:&quot;\ufe18&quot;,&quot;\uff01&quot;:&quot;\ufe15&quot;,&quot;\uff08&quot;:&quot;\ufe35&quot;,&quot;\uff09&quot;:&quot;\ufe36&quot;,&quot;\uff0c&quot;:&quot;\ufe10&quot;,&quot;\uff0d&quot;:&quot;\ufe32&quot;,&quot;\uff0e&quot;:&quot;\u30fb&quot;,&quot;\uff1a&quot;:&quot;\ufe13&quot;,&quot;\uff1b&quot;:&quot;\ufe14&quot;,&quot;\uff1c&quot;:&quot;\ufe3f&quot;,&quot;\uff1e&quot;:&quot;\ufe40&quot;,&quot;\uff1f&quot;:&quot;\ufe16&quot;,&quot;\uff3b&quot;:&quot;\ufe47&quot;,&quot;\uff3d&quot;:&quot;\ufe48&quot;,&quot;\uff3f&quot;:&quot;\ufe33&quot;,&quot;\uff5b&quot;:&quot;\ufe37&quot;,&quot;\uff5c&quot;:&quot;\u2015&quot;,&quot;\uff5d&quot;:&quot;\ufe38&quot;,&quot;\uff5f&quot;:&quot;\ufe35&quot;,&quot;\uff60&quot;:&quot;\ufe36&quot;,&quot;\uff61&quot;:&quot;\ufe12&quot;,&quot;\uff62&quot;:&quot;\ufe41&quot;,&quot;\uff63&quot;:&quot;\ufe42&quot;};var nl=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},il=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g},al=ol;function ol(t){this.buf=ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}ol.Varint=0,ol.Fixed64=1,ol.Bytes=2,ol.Fixed32=5;var sl=&quot;undefined&quot;==typeof TextDecoder?null:new TextDecoder(&quot;utf8&quot;);function ll(t){return t.type===ol.Bytes?t.readVarint()+t.pos:t.pos+1}function cl(t,e,r){return r?4294967296*e+(t&gt;&gt;&gt;0):4294967296*(e&gt;&gt;&gt;0)+(t&gt;&gt;&gt;0)}function ul(t,e,r){var n=e&lt;=16383?1:e&lt;=2097151?2:e&lt;=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i&gt;=t;i--)r.buf[i+n]=r.buf[i]}function fl(t,e){for(var r=0;r&lt;t.length;r++)e.writeVarint(t[r])}function hl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSVarint(t[r])}function pl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFloat(t[r])}function dl(t,e){for(var r=0;r&lt;t.length;r++)e.writeDouble(t[r])}function gl(t,e){for(var r=0;r&lt;t.length;r++)e.writeBoolean(t[r])}function ml(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed32(t[r])}function vl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed32(t[r])}function yl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed64(t[r])}function xl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed64(t[r])}function bl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+16777216*t[e+3]}function _l(t,e,r){t[r]=e,t[r+1]=e&gt;&gt;&gt;8,t[r+2]=e&gt;&gt;&gt;16,t[r+3]=e&gt;&gt;&gt;24}function wl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+(t[e+3]&lt;&lt;24)}ol.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos&lt;r;){var n=this.readVarint(),i=n&gt;&gt;3,a=this.pos;this.type=7&amp;n,t(i,e,this),this.pos===a&amp;&amp;this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=bl(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=wl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=bl(this.buf,this.pos)+4294967296*bl(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=bl(this.buf,this.pos)+4294967296*wl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=nl(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=nl(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&amp;(r=n[this.pos++]),r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;7,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;14,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;21,r&lt;128?e:function(t,e,r){var n,i,a=r.buf;if(i=a[r.pos++],n=(112&amp;i)&gt;&gt;4,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;3,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;10,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;17,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;24,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(1&amp;i)&lt;&lt;31,i&lt;128)return cl(t,n,e);throw new Error(&quot;Expected varint not more than 10 bytes&quot;)}(e|=(15&amp;(r=n[this.pos]))&lt;&lt;28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e&gt;=12&amp;&amp;sl?function(t,e,r){return sl.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){var n=&quot;&quot;,i=e;for(;i&lt;r;){var a,o,s,l=t[i],c=null,u=l&gt;239?4:l&gt;223?3:l&gt;191?2:1;if(i+u&gt;r)break;1===u?l&lt;128&amp;&amp;(c=l):2===u?128==(192&amp;(a=t[i+1]))&amp;&amp;(c=(31&amp;l)&lt;&lt;6|63&amp;a)&lt;=127&amp;&amp;(c=null):3===u?(a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;((c=(15&amp;l)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&lt;=2047||c&gt;=55296&amp;&amp;c&lt;=57343)&amp;&amp;(c=null)):4===u&amp;&amp;(a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;((c=(15&amp;l)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&lt;=65535||c&gt;=1114112)&amp;&amp;(c=null)),null===c?(c=65533,u=1):c&gt;65535&amp;&amp;(c-=65536,n+=String.fromCharCode(c&gt;&gt;&gt;10&amp;1023|55296),c=56320|1023&amp;c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==ol.Bytes)return t.push(this.readVarint(e));var r=ll(this);for(t=t||[];this.pos&lt;r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==ol.Bytes)return t.push(this.readSVarint());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==ol.Bytes)return t.push(this.readBoolean());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==ol.Bytes)return t.push(this.readFloat());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==ol.Bytes)return t.push(this.readDouble());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==ol.Bytes)return t.push(this.readFixed32());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==ol.Bytes)return t.push(this.readSFixed32());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==ol.Bytes)return t.push(this.readFixed64());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==ol.Bytes)return t.push(this.readSFixed64());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&amp;t;if(e===ol.Varint)for(;this.buf[this.pos++]&gt;127;);else if(e===ol.Bytes)this.pos=this.readVarint()+this.pos;else if(e===ol.Fixed32)this.pos+=4;else{if(e!==ol.Fixed64)throw new Error(&quot;Unimplemented type: &quot;+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t&lt;&lt;3|e)},realloc:function(t){for(var e=this.length||16;e&lt;this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),_l(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),_l(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),_l(this.buf,-1&amp;t,this.pos),_l(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),_l(this.buf,-1&amp;t,this.pos),_l(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)&gt;268435455||t&lt;0?function(t,e){var r,n;t&gt;=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0));if(t&gt;=0x10000000000000000||t&lt;-0x10000000000000000)throw new Error(&quot;Given varint doesn't fit into 10 bytes&quot;);e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos]=127&amp;t}(r,0,e),function(t,e){var r=(7&amp;t)&lt;&lt;4;if(e.buf[e.pos++]|=r|((t&gt;&gt;&gt;=3)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;e.buf[e.pos++]=127&amp;t}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&amp;t|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=t&gt;&gt;&gt;7&amp;127))))},writeSVarint:function(t){this.writeVarint(t&lt;0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a&lt;e.length;a++){if((n=e.charCodeAt(a))&gt;55295&amp;&amp;n&lt;57344){if(!i){n&gt;56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n&lt;56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296&lt;&lt;10|n-56320|65536,i=null}else i&amp;&amp;(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n&lt;128?t[r++]=n:(n&lt;2048?t[r++]=n&gt;&gt;6|192:(n&lt;65536?t[r++]=n&gt;&gt;12|224:(t[r++]=n&gt;&gt;18|240,t[r++]=n&gt;&gt;12&amp;63|128),t[r++]=n&gt;&gt;6&amp;63|128),t[r++]=63&amp;n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r&gt;=128&amp;&amp;ul(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),il(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),il(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r&lt;e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n&gt;=128&amp;&amp;ul(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,ol.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,fl,e)},writePackedSVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,hl,e)},writePackedBoolean:function(t,e){e.length&amp;&amp;this.writeMessage(t,gl,e)},writePackedFloat:function(t,e){e.length&amp;&amp;this.writeMessage(t,pl,e)},writePackedDouble:function(t,e){e.length&amp;&amp;this.writeMessage(t,dl,e)},writePackedFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,ml,e)},writePackedSFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,vl,e)},writePackedFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,yl,e)},writePackedSFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,xl,e)},writeBytesField:function(t,e){this.writeTag(t,ol.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,ol.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,ol.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,ol.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,ol.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,ol.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,ol.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,ol.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,ol.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,ol.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};function Tl(t,e,r){1===t&amp;&amp;r.readMessage(kl,e)}function kl(t,e,r){if(3===t){var n=r.readMessage(Al,{}),i=n.id,a=n.bitmap,o=n.width,s=n.height,l=n.left,c=n.top,u=n.advance;e.push({id:i,bitmap:new So({width:o+6,height:s+6},a),metrics:{width:o,height:s,left:l,top:c,advance:u}})}}function Al(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&amp;&amp;(e.advance=r.readVarint())}function Ml(t){for(var e=0,r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];e+=a.w*a.h,r=Math.max(r,a.w)}t.sort((function(t,e){return e.h-t.h}));for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,c=0,u=t;c&lt;u.length;c+=1)for(var f=u[c],h=o.length-1;h&gt;=0;h--){var p=o[h];if(!(f.w&gt;p.w||f.h&gt;p.h)){if(f.x=p.x,f.y=p.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===p.w&amp;&amp;f.h===p.h){var d=o.pop();h&lt;o.length&amp;&amp;(o[h]=d)}else f.h===p.h?(p.x+=f.w,p.w-=f.w):f.w===p.w?(p.y+=f.h,p.h-=f.h):(o.push({x:p.x+f.w,y:p.y,w:p.w-f.w,h:f.h}),p.y+=f.h,p.h-=f.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}var Sl=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},El={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};El.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},El.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},El.tlbr.get=function(){return this.tl.concat(this.br)},El.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Sl.prototype,El);var Ll=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=Ml(i),o=a.w,s=a.h,l=new Eo({width:o||1,height:s||1});for(var c in t){var u=t[c],f=r[c].paddedRect;Eo.copy(u.data,l,{x:0,y:0},{x:f.x+1,y:f.y+1},u.data)}for(var h in e){var p=e[h],d=n[h].paddedRect,g=d.x+1,m=d.y+1,v=p.data.width,y=p.data.height;Eo.copy(p.data,l,{x:0,y:0},{x:g,y:m},p.data),Eo.copy(p.data,l,{x:0,y:y-1},{x:g,y:m-1},{width:v,height:1}),Eo.copy(p.data,l,{x:0,y:0},{x:g,y:m+y},{width:v,height:1}),Eo.copy(p.data,l,{x:v-1,y:0},{x:g-1,y:m},{width:1,height:y}),Eo.copy(p.data,l,{x:0,y:0},{x:g+v,y:m},{width:1,height:y})}this.image=l,this.iconPositions=r,this.patternPositions=n};Ll.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(a),e[n]=new Sl(a,i),i.hasRenderCallback&amp;&amp;this.haveRenderCallbacks.push(n)}},Ll.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},Ll.prototype.patchUpdatedImage=function(t,e,r){if(t&amp;&amp;e&amp;&amp;t.version!==e.version){t.version=e.version;var n=t.tl,i=n[0],a=n[1];r.update(e.data,void 0,{x:i,y:a})}},Nn(&quot;ImagePosition&quot;,Sl),Nn(&quot;ImageAtlas&quot;,Ll);var Cl={horizontal:1,vertical:2,horizontalOnly:3};var Pl=function(){this.scale=1,this.fontStack=&quot;&quot;,this.imageName=null};Pl.forText=function(t,e){var r=new Pl;return r.scale=t||1,r.fontStack=e,r},Pl.forImage=function(t){var e=new Pl;return e.imageName=t,e};var Il=function(){this.text=&quot;&quot;,this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Ol(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=Il.fromFeature(t,i);f===Cl.vertical&amp;&amp;v.verticalizePunctuation();var y=hi.processBidirectionalText,x=hi.processStyledBidirectionalText;if(y&amp;&amp;1===v.sections.length){m=[];for(var b=0,_=y(v.toString(),jl(v,c,a,e,n,p,d));b&lt;_.length;b+=1){var w=_[b],T=new Il;T.text=w,T.sections=v.sections;for(var k=0;k&lt;w.length;k++)T.sectionIndex.push(0);m.push(T)}}else if(x){m=[];for(var A=0,M=x(v.text,v.sectionIndex,jl(v,c,a,e,n,p,d));A&lt;M.length;A+=1){var S=M[A],E=new Il;E.text=S[0],E.sectionIndex=S[1],E.sections=v.sections,m.push(E)}}else m=function(t,e){for(var r=[],n=t.text,i=0,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];r.push(t.substring(i,s)),i=s}return i&lt;n.length&amp;&amp;r.push(t.substring(i,n.length)),r}(v,jl(v,c,a,e,n,p,d));var L=[],C={positionedLines:L,text:v.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:f,iconsInText:!1,verticalizable:!1};return function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=0,p=-17,d=0,g=0,m=&quot;right&quot;===s?1:&quot;left&quot;===s?0:.5,v=0,y=0,x=i;y&lt;x.length;y+=1){var b=x[y];b.trim();var _=b.getMaxScale(),w=24*(_-1),T={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=T;var k=T.positionedGlyphs,A=0;if(b.length()){for(var M=0;M&lt;b.length();M++){var S=b.getSection(M),E=b.getSectionIndex(M),L=b.getCharCode(M),C=0,P=null,I=null,O=null,z=24,D=!(l===Cl.horizontal||!u&amp;&amp;!Zn(L)||u&amp;&amp;(zl[L]||(Y=L,Yn.Arabic(Y)||Yn[&quot;Arabic Supplement&quot;](Y)||Yn[&quot;Arabic Extended-A&quot;](Y)||Yn[&quot;Arabic Presentation Forms-A&quot;](Y)||Yn[&quot;Arabic Presentation Forms-B&quot;](Y))));if(S.imageName){var R=n[S.imageName];if(!R)continue;O=S.imageName,t.iconsInText=t.iconsInText||!0,I=R.paddedRect;var F=R.displaySize;S.scale=24*S.scale/f,P={width:F[0],height:F[1],left:1,top:-3,advance:D?F[1]:F[0]};var B=24-F[1]*S.scale;C=w+B,z=P.advance;var N=D?F[0]*S.scale-24*_:F[1]*S.scale-24*_;N&gt;0&amp;&amp;N&gt;A&amp;&amp;(A=N)}else{var j=r[S.fontStack],U=j&amp;&amp;j[L];if(U&amp;&amp;U.rect)I=U.rect,P=U.metrics;else{var V=e[S.fontStack],q=V&amp;&amp;V[L];if(!q)continue;P=q.metrics}C=24*(_-S.scale)}D?(t.verticalizable=!0,k.push({glyph:L,imageName:O,x:h,y:p+C,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:P,rect:I}),h+=z*S.scale+c):(k.push({glyph:L,imageName:O,x:h,y:p+C,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:P,rect:I}),h+=P.advance*S.scale+c)}if(0!==k.length){var H=h-c;d=Math.max(H,d),Vl(k,0,k.length-1,m,A)}h=0;var G=a*_+A;T.lineOffset=Math.max(A,w),p+=G,g=Math.max(G,g),++v}else p+=a,++v}var Y;var W=p- -17,X=Ul(o),Z=X.horizontalAlign,J=X.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var c=(e-r)*i,u=0;u=a!==o?-s*n- -17:(-n*l+.5)*o;for(var f=0,h=t;f&lt;h.length;f+=1)for(var p=h[f],d=0,g=p.positionedGlyphs;d&lt;g.length;d+=1){var m=g[d];m.x+=c,m.y+=u}})(t.positionedLines,m,Z,J,d,g,a,W,i.length),t.top+=-J*W,t.bottom=t.top+W,t.left+=-Z*d,t.right=t.left+d}(C,e,r,n,m,o,s,l,f,c,h,g),!function(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(0!==r[e].positionedGlyphs.length)return!1}return!0}(L)&amp;&amp;C}Il.fromFeature=function(t,e){for(var r=new Il,n=0;n&lt;t.sections.length;n++){var i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e)}return r},Il.prototype.length=function(){return this.text.length},Il.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},Il.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},Il.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},Il.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;(!n||!Jn(n)||rl[t[r+1]])&amp;&amp;(!i||!Jn(i)||rl[t[r-1]])&amp;&amp;rl[t[r]]?e+=rl[t[r]]:e+=t[r]}return e}(this.text)},Il.prototype.trim=function(){for(var t=0,e=0;e&lt;this.text.length&amp;&amp;zl[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n&gt;=0&amp;&amp;n&gt;=t&amp;&amp;zl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},Il.prototype.substring=function(t,e){var r=new Il;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},Il.prototype.toString=function(){return this.text},Il.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},Il.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(Pl.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n&lt;t.text.length;++n)this.sectionIndex.push(r)},Il.prototype.addImageSection=function(t){var e=t.image?t.image.name:&quot;&quot;;if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(Pl.forImage(e)),this.sectionIndex.push(this.sections.length-1)):_(&quot;Reached maximum number of images 6401&quot;)}else _(&quot;Can't add FormattedSection with an empty image.&quot;)},Il.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID&gt;=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var zl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Dl={};function Rl(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*24/a+i:0}var s=r[e.fontStack],l=s&amp;&amp;s[t];return l?l.metrics.advance*e.scale+i:0}function Fl(t,e,r,n){var i=Math.pow(t-e,2);return n?t&lt;e?i/2:2*i:i+Math.abs(r)*r}function Bl(t,e,r){var n=0;return 10===t&amp;&amp;(n-=1e4),r&amp;&amp;(n+=150),40!==t&amp;&amp;65288!==t||(n+=50),41!==e&amp;&amp;65289!==e||(n+=50),n}function Nl(t,e,r,n,i,a){for(var o=null,s=Fl(e,r,i,a),l=0,c=n;l&lt;c.length;l+=1){var u=c[l],f=Fl(e-u.x,r,i,a)+u.badness;f&lt;=s&amp;&amp;(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function jl(t,e,r,n,i,a,o){if(&quot;point&quot;!==a)return[];if(!t)return[];for(var s,l=[],c=function(t,e,r,n,i,a){for(var o=0,s=0;s&lt;t.length();s++){var l=t.getSection(s);o+=Rl(t.getCharCode(s),l,n,i,e,a)}return o/Math.max(1,Math.ceil(o/r))}(t,e,r,n,i,o),u=t.text.indexOf(&quot;\u200b&quot;)&gt;=0,f=0,h=0;h&lt;t.length();h++){var p=t.getSection(h),d=t.getCharCode(h);if(zl[d]||(f+=Rl(d,p,n,i,e,o)),h&lt;t.length()-1){var g=!!(!((s=d)&lt;11904)&amp;&amp;(Yn[&quot;Bopomofo Extended&quot;](s)||Yn.Bopomofo(s)||Yn[&quot;CJK Compatibility Forms&quot;](s)||Yn[&quot;CJK Compatibility Ideographs&quot;](s)||Yn[&quot;CJK Compatibility&quot;](s)||Yn[&quot;CJK Radicals Supplement&quot;](s)||Yn[&quot;CJK Strokes&quot;](s)||Yn[&quot;CJK Symbols and Punctuation&quot;](s)||Yn[&quot;CJK Unified Ideographs Extension A&quot;](s)||Yn[&quot;CJK Unified Ideographs&quot;](s)||Yn[&quot;Enclosed CJK Letters and Months&quot;](s)||Yn[&quot;Halfwidth and Fullwidth Forms&quot;](s)||Yn.Hiragana(s)||Yn[&quot;Ideographic Description Characters&quot;](s)||Yn[&quot;Kangxi Radicals&quot;](s)||Yn[&quot;Katakana Phonetic Extensions&quot;](s)||Yn.Katakana(s)||Yn[&quot;Vertical Forms&quot;](s)||Yn[&quot;Yi Radicals&quot;](s)||Yn[&quot;Yi Syllables&quot;](s)));(Dl[d]||g||p.imageName)&amp;&amp;l.push(Nl(h+1,f,c,l,Bl(d,t.getCharCode(h+1),g&amp;&amp;u),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(Nl(t.length(),f,c,l,0,!0))}function Ul(t){var e=.5,r=.5;switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:e=1;break;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:e=0}switch(t){case&quot;bottom&quot;:case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:r=1;break;case&quot;top&quot;:case&quot;top-right&quot;:case&quot;top-left&quot;:r=0}return{horizontalAlign:e,verticalAlign:r}}function Vl(t,e,r,n,i){if(n||i)for(var a=t[r],o=a.metrics.advance*a.scale,s=(t[r].x+o)*n,l=e;l&lt;=r;l++)t[l].x-=s,t[l].y+=i}function ql(t,e,r,n,i,a){var o,s=t.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,f,h,p,d=e.left*a,g=e.right*a;&quot;width&quot;===r||&quot;both&quot;===r?(p=i[0]+d-n[3],f=i[0]+g+n[1]):f=(p=i[0]+(d+g-s.displaySize[0])/2)+s.displaySize[0];var m=e.top*a,v=e.bottom*a;return&quot;height&quot;===r||&quot;both&quot;===r?(u=i[1]+m-n[0],h=i[1]+v+n[2]):h=(u=i[1]+(m+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:f,bottom:h,left:p,collisionPadding:o}}Dl[10]=!0,Dl[32]=!0,Dl[38]=!0,Dl[40]=!0,Dl[41]=!0,Dl[43]=!0,Dl[45]=!0,Dl[47]=!0,Dl[173]=!0,Dl[183]=!0,Dl[8203]=!0,Dl[8208]=!0,Dl[8211]=!0,Dl[8231]=!0;var Hl=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&amp;&amp;(this.segment=i)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(i);Nn(&quot;Anchor&quot;,Hl);function Gl(t,e){var r=e.expression;if(&quot;constant&quot;===r.kind)return{kind:&quot;constant&quot;,layoutSize:r.evaluate(new pi(t+1))};if(&quot;source&quot;===r.kind)return{kind:&quot;source&quot;};for(var n=r.zoomStops,i=r.interpolationType,a=0;a&lt;n.length&amp;&amp;n[a]&lt;=t;)a++;for(var o=a=Math.max(0,a-1);o&lt;n.length&amp;&amp;n[o]&lt;t+1;)o++;o=Math.min(n.length-1,o);var s=n[a],l=n[o];return&quot;composite&quot;===r.kind?{kind:&quot;composite&quot;,minZoom:s,maxZoom:l,interpolationType:i}:{kind:&quot;camera&quot;,minZoom:s,maxZoom:l,minSize:r.evaluate(new pi(s)),maxSize:r.evaluate(new pi(l)),interpolationType:i}}function Yl(t,e,r){var n=e.uSize,i=e.uSizeT,a=r.lowerSize,o=r.upperSize;return&quot;source&quot;===t.kind?a/128:&quot;composite&quot;===t.kind?He(a/128,o/128,i):n}function Wl(t,e){var r=0,n=0;if(&quot;constant&quot;===t.kind)n=t.layoutSize;else if(&quot;source&quot;!==t.kind){var i=t.interpolationType,a=t.minZoom,o=t.maxZoom,s=i?l(or.interpolationFactor(i,e,a,o),0,1):0;&quot;camera&quot;===t.kind?n=He(t.minSize,t.maxSize,s):r=s}return{uSizeT:r,uSize:n}}var Xl=Object.freeze({__proto__:null,getSizeData:Gl,evaluateSizeForFeature:Yl,evaluateSizeForZoom:Wl,SIZE_PACK_FACTOR:128});function Zl(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s&gt;-r/2;){if(--o&lt;0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s&lt;r/2;){var u=t[o-1],f=t[o],h=t[o+1];if(!h)return!1;var p=u.angleTo(f)-f.angleTo(h);for(p=Math.abs((p+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:p}),c+=p;s-l[0].distance&gt;n;)c-=l.shift().angleDelta;if(c&gt;i)return!1;o++,s+=f.dist(h)}return!0}function Jl(t){for(var e=0,r=0;r&lt;t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Kl(t,e,r){return t?.6*e*r:0}function Ql(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function $l(t,e,r,n,i,a){for(var o=Kl(r,i,a),s=Ql(r,n)*a,l=0,c=Jl(t)/2,u=0;u&lt;t.length-1;u++){var f=t[u],h=t[u+1],p=f.dist(h);if(l+p&gt;c){var d=(c-l)/p,g=He(f.x,h.x,d),m=He(f.y,h.y,d),v=new Hl(g,m,h.angleTo(f),u);return v._round(),!o||Zl(t,v,s,o,e)?v:void 0}l+=p}}function tc(t,e,r,n,i,a,o,s,l){var c=Kl(n,a,o),u=Ql(n,i),f=u*o,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f&lt;e/4&amp;&amp;(e=f+e/4),function t(e,r,n,i,a,o,s,l,c){for(var u=o/2,f=Jl(e),h=0,p=r-n,d=[],g=0;g&lt;e.length-1;g++){for(var m=e[g],v=e[g+1],y=m.dist(v),x=v.angleTo(m);p+n&lt;h+y;){var b=((p+=n)-h)/y,_=He(m.x,v.x,b),w=He(m.y,v.y,b);if(_&gt;=0&amp;&amp;_&lt;c&amp;&amp;w&gt;=0&amp;&amp;w&lt;c&amp;&amp;p-u&gt;=0&amp;&amp;p+u&lt;=f){var T=new Hl(_,w,x,g);T._round(),i&amp;&amp;!Zl(e,T,o,i,a)||d.push(T)}}h+=y}l||d.length||s||(d=t(e,h/2,n,i,a,o,s,!0,c));return d}(t,h?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,h,!1,l)}function ec(t,e,r,n,a){for(var o=[],s=0;s&lt;t.length;s++)for(var l=t[s],c=void 0,u=0;u&lt;l.length-1;u++){var f=l[u],h=l[u+1];f.x&lt;e&amp;&amp;h.x&lt;e||(f.x&lt;e?f=new i(e,f.y+(h.y-f.y)*((e-f.x)/(h.x-f.x)))._round():h.x&lt;e&amp;&amp;(h=new i(e,f.y+(h.y-f.y)*((e-f.x)/(h.x-f.x)))._round()),f.y&lt;r&amp;&amp;h.y&lt;r||(f.y&lt;r?f=new i(f.x+(h.x-f.x)*((r-f.y)/(h.y-f.y)),r)._round():h.y&lt;r&amp;&amp;(h=new i(f.x+(h.x-f.x)*((r-f.y)/(h.y-f.y)),r)._round()),f.x&gt;=n&amp;&amp;h.x&gt;=n||(f.x&gt;=n?f=new i(n,f.y+(h.y-f.y)*((n-f.x)/(h.x-f.x)))._round():h.x&gt;=n&amp;&amp;(h=new i(n,f.y+(h.y-f.y)*((n-f.x)/(h.x-f.x)))._round()),f.y&gt;=a&amp;&amp;h.y&gt;=a||(f.y&gt;=a?f=new i(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round():h.y&gt;=a&amp;&amp;(h=new i(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round()),c&amp;&amp;f.equals(c[c.length-1])||(c=[f],o.push(c)),c.push(h)))))}return o}function rc(t,e,r,n){var a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,f=t.bottom-t.top,h=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},g=h.reduce(d,0),m=p.reduce(d,0),v=l-g,y=c-m,x=0,b=g,_=0,w=m,T=0,k=v,A=0,M=y;if(o.content&amp;&amp;n){var S=o.content;x=nc(h,0,S[0]),_=nc(p,0,S[1]),b=nc(h,S[0],S[2]),w=nc(p,S[1],S[3]),T=S[0]-x,A=S[1]-_,k=S[2]-S[0]-b,M=S[3]-S[1]-w}var E=function(n,a,l,c){var h=ac(n.stretch-x,b,u,t.left),p=oc(n.fixed-T,k,n.stretch,g),d=ac(a.stretch-_,w,f,t.top),v=oc(a.fixed-A,M,a.stretch,m),y=ac(l.stretch-x,b,u,t.left),S=oc(l.fixed-T,k,l.stretch,g),E=ac(c.stretch-_,w,f,t.top),L=oc(c.fixed-A,M,c.stretch,m),C=new i(h,d),P=new i(y,d),I=new i(y,E),O=new i(h,E),z=new i(p/s,v/s),D=new i(S/s,L/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];C._matMult(N),P._matMult(N),O._matMult(N),I._matMult(N)}var j=n.stretch+n.fixed,U=l.stretch+l.fixed,V=a.stretch+a.fixed,q=c.stretch+c.fixed;return{tl:C,tr:P,bl:O,br:I,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+V,w:U-j,h:q-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:z,pixelOffsetBR:D,minFontScaleX:k/s/u,minFontScaleY:M/s/f,isSDF:r}};if(n&amp;&amp;(o.stretchX||o.stretchY))for(var L=ic(h,v,g),C=ic(p,y,m),P=0;P&lt;L.length-1;P++)for(var I=L[P],O=L[P+1],z=0;z&lt;C.length-1;z++){var D=C[z],R=C[z+1];a.push(E(I,D,O,R))}else a.push(E({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function nc(t,e,r){for(var n=0,i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n+=Math.max(e,Math.min(r,o[1]))-Math.max(e,Math.min(r,o[0]))}return n}function ic(t,e,r){for(var n=[{fixed:-1,stretch:0}],i=0,a=t;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return n.push({fixed:e+1,stretch:r}),n}function ac(t,e,r,n){return t/e*r+n}function oc(t,e,r,n){return t-e*r/n}var sc=function(t,e,r,n,a,o,s,l,c,u){if(this.boxStartIndex=t.length,c){var f=o.top,h=o.bottom,p=o.collisionPadding;p&amp;&amp;(f-=p[1],h+=p[3]);var d=h-f;d&gt;0&amp;&amp;(d=Math.max(10,d),this.circleDiameter=d)}else{var g=o.top*s-l,m=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&amp;&amp;(v-=x[0]*s,g-=x[1]*s,y+=x[2]*s,m+=x[3]*s),u){var b=new i(v,g),_=new i(y,g),w=new i(v,m),T=new i(y,m),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),g=Math.min(b.y,_.y,w.y,T.y),m=Math.max(b.y,_.y,w.y,T.y)}t.emplaceBack(e.x,e.y,v,g,y,m,r,n,a)}this.boxEndIndex=t.length},lc=function(t,e){if(void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=cc),this.data=t,this.length=this.data.length,this.compare=e,this.length&gt;0)for(var r=(this.length&gt;&gt;1)-1;r&gt;=0;r--)this._down(r)};function cc(t,e){return t&lt;e?-1:t&gt;e?1:0}function uc(t,e,r){void 0===e&amp;&amp;(e=1),void 0===r&amp;&amp;(r=!1);for(var n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0],c=0;c&lt;l.length;c++){var u=l[c];(!c||u.x&lt;n)&amp;&amp;(n=u.x),(!c||u.y&lt;a)&amp;&amp;(a=u.y),(!c||u.x&gt;o)&amp;&amp;(o=u.x),(!c||u.y&gt;s)&amp;&amp;(s=u.y)}var f=o-n,h=s-a,p=Math.min(f,h),d=p/2,g=new lc([],fc);if(0===p)return new i(n,a);for(var m=n;m&lt;o;m+=p)for(var v=a;v&lt;s;v+=p)g.push(new hc(m+d,v+d,d,t));for(var y=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a&lt;o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new hc(r/e,n/e,0,t)}(t),x=g.length;g.length;){var b=g.pop();(b.d&gt;y.d||!y.d)&amp;&amp;(y=b,r&amp;&amp;console.log(&quot;found best %d after %d probes&quot;,Math.round(1e4*b.d)/1e4,x)),b.max-y.d&lt;=e||(d=b.h/2,g.push(new hc(b.p.x-d,b.p.y-d,d,t)),g.push(new hc(b.p.x+d,b.p.y-d,d,t)),g.push(new hc(b.p.x-d,b.p.y+d,d,t)),g.push(new hc(b.p.x+d,b.p.y+d,d,t)),x+=4)}return r&amp;&amp;(console.log(&quot;num probes: &quot;+x),console.log(&quot;best distance: &quot;+y.d)),y.p}function fc(t,e){return e.max-t.max}function hc(t,e,r,n){this.p=new i(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;i&lt;e.length;i++)for(var a=e[i],o=0,s=a.length,l=s-1;o&lt;s;l=o++){var c=a[o],u=a[l];c.y&gt;t.y!=u.y&gt;t.y&amp;&amp;t.x&lt;(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&amp;&amp;(r=!r),n=Math.min(n,ro(t,c,u))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}lc.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},lc.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length&gt;0&amp;&amp;(this.data[0]=e,this._down(0)),t}},lc.prototype.peek=function(){return this.data[0]},lc.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t&gt;0;){var i=t-1&gt;&gt;1,a=e[i];if(r(n,a)&gt;=0)break;e[t]=a,t=i}e[t]=n},lc.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length&gt;&gt;1,i=e[t];t&lt;n;){var a=1+(t&lt;&lt;1),o=e[a],s=a+1;if(s&lt;this.length&amp;&amp;r(e[s],o)&lt;0&amp;&amp;(a=s,o=e[s]),r(o,i)&gt;=0)break;e[t]=o,t=a}e[t]=i};var pc=Number.POSITIVE_INFINITY;function dc(t,e){return e[1]!==pc?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case&quot;top-right&quot;:case&quot;top-left&quot;:case&quot;top&quot;:i=r-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:case&quot;bottom&quot;:i=7-r}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:case&quot;right&quot;:n=-e;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:case&quot;left&quot;:n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e&lt;0&amp;&amp;(e=0);var i=e/Math.sqrt(2);switch(t){case&quot;top-right&quot;:case&quot;top-left&quot;:n=i-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:n=7-i;break;case&quot;bottom&quot;:n=7-e;break;case&quot;top&quot;:n=e-7}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:r=-i;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:r=i;break;case&quot;left&quot;:r=e;break;case&quot;right&quot;:r=-e}return[r,n]}(t,e[0])}function gc(t){switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:return&quot;right&quot;;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:return&quot;left&quot;}return&quot;center&quot;}function mc(t,e,r,n,a,o,s,l,c,u,f,h,p,d,g){var m=function(t,e,r,n,a,o,s,l){for(var c=n.layout.get(&quot;text-rotate&quot;).evaluate(o,{})*Math.PI/180,u=[],f=0,h=e.positionedLines;f&lt;h.length;f+=1)for(var p=h[f],d=0,g=p.positionedGlyphs;d&lt;g.length;d+=1){var m=g[d];if(m.rect){var v=m.rect||{},y=4,x=!0,b=1,_=0,w=(a||l)&amp;&amp;m.vertical,T=m.metrics.advance*m.scale/2;if(l&amp;&amp;e.verticalizable){var k=24*(m.scale-1),A=(24-m.metrics.width*m.scale)/2;_=p.lineOffset/2-(m.imageName?-A:k)}if(m.imageName){var M=s[m.imageName];x=M.sdf,y=1/(b=M.pixelRatio)}var S=a?[m.x+T,m.y]:[0,0],E=a?[0,0]:[m.x+T+r[0],m.y+r[1]-_],L=[0,0];w&amp;&amp;(L=E,E=[0,0]);var C=(m.metrics.left-y)*m.scale-T+E[0],P=(-m.metrics.top-y)*m.scale+E[1],I=C+v.w*m.scale/b,O=P+v.h*m.scale/b,z=new i(C,P),D=new i(I,P),R=new i(C,O),F=new i(I,O);if(w){var B=new i(-T,T- -17),N=-Math.PI/2,j=12-T,U=m.imageName?j:0,V=new i(22-j,-U),q=new(Function.prototype.bind.apply(i,[null].concat(L)));z._rotateAround(N,B)._add(V)._add(q),D._rotateAround(N,B)._add(V)._add(q),R._rotateAround(N,B)._add(V)._add(q),F._rotateAround(N,B)._add(V)._add(q)}if(c){var H=Math.sin(c),G=Math.cos(c),Y=[G,-H,H,G];z._matMult(Y),D._matMult(Y),R._matMult(Y),F._matMult(Y)}var W=new i(0,0),X=new i(0,0);u.push({tl:z,tr:D,bl:R,br:F,tex:v,writingMode:e.writingMode,glyphOffset:S,sectionIndex:m.sectionIndex,isSDF:x,pixelOffsetTL:W,pixelOffsetBR:X,minFontScaleX:0,minFontScaleY:0})}}return u}(0,r,l,a,o,s,n,t.allowVerticalPlacement),v=t.textSizeData,y=null;&quot;source&quot;===v.kind?(y=[128*a.layout.get(&quot;text-size&quot;).evaluate(s,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'):&quot;composite&quot;===v.kind&amp;&amp;((y=[128*d.compositeTextSizes[0].evaluate(s,{},g),128*d.compositeTextSizes[1].evaluate(s,{},g)])[0]&gt;32640||y[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'),t.addSymbols(t.text,m,y,l,o,s,u,e,c.lineStartIndex,c.lineLength,p,g);for(var x=0,b=f;x&lt;b.length;x+=1){h[b[x]]=t.text.placedSymbolArray.length-1}return 4*m.length}function vc(t){for(var e in t)return t[e];return null}function yc(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o&gt;=0;o--)if(n.dist(a[o])&lt;r)return!0}else i[e]=[];return i[e].push(n),!1}var xc=Ls.VectorTileFeature.types,bc=[{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint8&quot;,offset:0}];function _c(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,(p&lt;&lt;1)+(l?1:0),d,16*c,16*u,256*f,256*h)}function wc(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function Tc(t){for(var e=0,r=t.sections;e&lt;r.length;e+=1){if($n(r[e].text))return!0}return!1}var kc=function(t){this.layoutVertexArray=new Ni,this.indexArray=new Yi,this.programConfigurations=t,this.segments=new pa,this.dynamicLayoutVertexArray=new ji,this.opacityVertexArray=new Ui,this.placedSymbolArray=new aa};kc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&amp;&amp;0===this.indexArray.length&amp;&amp;0===this.dynamicLayoutVertexArray.length&amp;&amp;0===this.opacityVertexArray.length},kc.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&amp;&amp;(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Js.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Ks.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,bc,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&amp;&amp;this.programConfigurations.upload(t))},kc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Nn(&quot;SymbolBuffers&quot;,kc);var Ac=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new pa,this.collisionVertexArray=new Gi};Ac.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Qs.members,!0)},Ac.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Nn(&quot;CollisionBuffers&quot;,Ac);var Mc=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=ho([]),this.placementViewportMatrix=ho([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Gl(this.zoom,e[&quot;text-size&quot;]),this.iconSizeData=Gl(this.zoom,e[&quot;icon-size&quot;]);var r=this.layers[0].layout,n=r.get(&quot;symbol-sort-key&quot;),i=r.get(&quot;symbol-z-order&quot;);this.sortFeaturesByKey=&quot;viewport-y&quot;!==i&amp;&amp;void 0!==n.constantOr(1);var a=&quot;viewport-y&quot;===i||&quot;auto&quot;===i&amp;&amp;!this.sortFeaturesByKey;this.sortFeaturesByY=a&amp;&amp;(r.get(&quot;text-allow-overlap&quot;)||r.get(&quot;icon-allow-overlap&quot;)||r.get(&quot;text-ignore-placement&quot;)||r.get(&quot;icon-ignore-placement&quot;)),&quot;point&quot;===r.get(&quot;symbol-placement&quot;)&amp;&amp;(this.writingModes=r.get(&quot;text-writing-mode&quot;).map((function(t){return Cl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};Mc.prototype.createArrays=function(){this.text=new kc(new Ua(Js.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new kc(new Ua(Js.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new la,this.lineVertexArray=new ca,this.symbolInstances=new sa},Mc.prototype.calculateGlyphDependencies=function(t,e,r,n,i){for(var a=0;a&lt;t.length;a++)if(e[t.charCodeAt(a)]=!0,(r||n)&amp;&amp;i){var o=rl[t.charAt(a)];o&amp;&amp;(e[o.charCodeAt(0)]=!0)}},Mc.prototype.populate=function(t,e,r){var n=this.layers[0],i=n.layout,a=i.get(&quot;text-font&quot;),o=i.get(&quot;text-field&quot;),s=i.get(&quot;icon-image&quot;),l=(&quot;constant&quot;!==o.value.kind||o.value.value instanceof ne&amp;&amp;!o.value.value.isEmpty()||o.value.value.toString().length&gt;0)&amp;&amp;(&quot;constant&quot;!==a.value.kind||a.value.value.length&gt;0),c=&quot;constant&quot;!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length&gt;0,u=i.get(&quot;symbol-sort-key&quot;);if(this.features=[],l||c){for(var f=e.iconDependencies,h=e.glyphDependencies,p=e.availableImages,d=new pi(this.zoom),g=0,m=t;g&lt;m.length;g+=1){var v=m[g],y=v.feature,x=v.id,b=v.index,_=v.sourceLayerIndex,w=n._featureFilter.needGeometry,T={type:y.type,id:x,properties:y.properties,geometry:w?Ya(y):[]};if(n._featureFilter.filter(d,T,r)){w||(T.geometry=Ya(y));var k=void 0;if(l){var A=n.getValueAndResolveTokens(&quot;text-field&quot;,T,r,p),M=ne.factory(A);Tc(M)&amp;&amp;(this.hasRTLText=!0),(!this.hasRTLText||&quot;unavailable&quot;===ui()||this.hasRTLText&amp;&amp;hi.isParsed())&amp;&amp;(k=el(M,n,T))}var S=void 0;if(c){var E=n.getValueAndResolveTokens(&quot;icon-image&quot;,T,r,p);S=E instanceof ie?E:ie.fromString(E)}if(k||S){var L=this.sortFeaturesByKey?u.evaluate(T,{},r):void 0,C={id:x,text:k,icon:S,index:b,sourceLayerIndex:_,geometry:Ya(y),properties:y.properties,type:xc[y.type],sortKey:L};if(this.features.push(C),S&amp;&amp;(f[S.name]=!0),k){var P=a.evaluate(T,{},r).join(&quot;,&quot;),I=&quot;map&quot;===i.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==i.get(&quot;symbol-placement&quot;);this.allowVerticalPlacement=this.writingModes&amp;&amp;this.writingModes.indexOf(Cl.vertical)&gt;=0;for(var O=0,z=k.sections;O&lt;z.length;O+=1){var D=z[O];if(D.image)f[D.image.name]=!0;else{var R=Wn(k.toString()),F=D.fontStack||P,B=h[F]=h[F]||{};this.calculateGlyphDependencies(D.text,B,I,this.allowVerticalPlacement,R)}}}}}}&quot;line&quot;===i.get(&quot;symbol-placement&quot;)&amp;&amp;(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+&quot;:&quot;+n.x+&quot;:&quot;+n.y}for(var c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.text?u.text.toString():null;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&amp;&amp;d in e&amp;&amp;r[p]!==e[d]){var g=s(p,d,f),m=o(p,d,n[g].geometry);delete e[p],delete r[d],r[l(h,n[m].geometry,!0)]=m,n[g].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&amp;&amp;this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},Mc.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},Mc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&amp;&amp;!this.hasRTLText},Mc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},Mc.prototype.upload=function(t){!this.uploaded&amp;&amp;this.hasDebugData()&amp;&amp;(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},Mc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},Mc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&amp;&amp;this.destroyDebugData()},Mc.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o&lt;e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o&lt;e.length-1&amp;&amp;(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s&gt;=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s&gt;0&amp;&amp;(i+=e[s-1].dist(e[s]));for(var l=0;l&lt;e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},Mc.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=t.indexArray,p=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,p,h,a.sortKey),g=this.glyphOffsetArray.length,m=d.vertexLength,v=this.allowVerticalPlacement&amp;&amp;o===Cl.vertical?Math.PI/2:0,y=a.text&amp;&amp;a.text.sections,x=0;x&lt;e.length;x++){var b=e[x],_=b.tl,w=b.tr,T=b.bl,k=b.br,A=b.tex,M=b.pixelOffsetTL,S=b.pixelOffsetBR,E=b.minFontScaleX,L=b.minFontScaleY,C=b.glyphOffset,P=b.isSDF,I=b.sectionIndex,O=d.vertexLength,z=C[1];_c(p,s.x,s.y,_.x,z+_.y,A.x,A.y,r,P,M.x,M.y,E,L),_c(p,s.x,s.y,w.x,z+w.y,A.x+A.w,A.y,r,P,S.x,M.y,E,L),_c(p,s.x,s.y,T.x,z+T.y,A.x,A.y+A.h,r,P,M.x,S.y,E,L),_c(p,s.x,s.y,k.x,z+k.y,A.x+A.w,A.y+A.h,r,P,S.x,S.y,E,L),wc(t.dynamicLayoutVertexArray,s,v),h.emplaceBack(O,O+1,O+2),h.emplaceBack(O+1,O+2,O+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(C[0]),x!==e.length-1&amp;&amp;I===e[x+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,a,a.index,{},f,y&amp;&amp;y[I])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,m,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,0,!1,0,u)},Mc.prototype._addCollisionDebugVertex=function(t,e,r,n,i,a){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(a.x),Math.round(a.y))},Mc.prototype.addCollisionDebugVertices=function(t,e,r,n,a,o,s){var l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,f=a.collisionVertexArray,h=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(u,f,o,h,p,new i(t,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,n)),this._addCollisionDebugVertex(u,f,o,h,p,new i(t,n)),l.vertexLength+=4;var d=a.indexArray;d.emplaceBack(c,c+1),d.emplaceBack(c+1,c+2),d.emplaceBack(c+2,c+3),d.emplaceBack(c+3,c),l.primitiveLength+=4},Mc.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var i=t;i&lt;e;i++){var a=this.collisionBoxArray.get(i),o=a.x1,s=a.y1,l=a.x2,c=a.y2;this.addCollisionDebugVertices(o,s,l,c,n?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,r)}},Mc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&amp;&amp;this.destroyDebugData(),this.textCollisionBox=new Ac(qi,$s.members,Qi),this.iconCollisionBox=new Ac(qi,$s.members,Qi);for(var t=0;t&lt;this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},Mc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,i,a,o,s,l){for(var c={},u=e;u&lt;r;u++){var f=t.get(u);c.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},c.textFeatureIndex=f.featureIndex;break}for(var h=n;h&lt;i;h++){var p=t.get(h);c.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},c.verticalTextFeatureIndex=p.featureIndex;break}for(var d=a;d&lt;o;d++){var g=t.get(d);c.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},c.iconFeatureIndex=g.featureIndex;break}for(var m=s;m&lt;l;m++){var v=t.get(m);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},Mc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e&lt;this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},Mc.prototype.hasTextData=function(){return this.text.segments.get().length&gt;0},Mc.prototype.hasIconData=function(){return this.icon.segments.get().length&gt;0},Mc.prototype.hasDebugData=function(){return this.textCollisionBox&amp;&amp;this.iconCollisionBox},Mc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.textCollisionBox.segments.get().length&gt;0},Mc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.iconCollisionBox.segments.get().length&gt;0},Mc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i&lt;n;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},Mc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&amp;&amp;void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],i=[],a=[],o=0;o&lt;this.symbolInstances.length;++o){a.push(o);var s=this.symbolInstances.get(o);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),i.push(s.featureIndex)}return a.sort((function(t,e){return n[t]-n[e]||i[e]-i[t]})),a},Mc.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&amp;&amp;r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},Mc.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&amp;&amp;this.sortedAngle!==t&amp;&amp;!(this.text.segments.get().length&gt;1||this.icon.segments.get().length&gt;1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r&lt;n.length;r+=1){var i=n[r],a=this.symbolInstances.get(i);this.featureSortOrder.push(a.featureIndex),[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t&gt;=0&amp;&amp;n.indexOf(t)===r&amp;&amp;e.addIndicesForPlacedSymbol(e.text,t)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.text,a.verticalPlacedTextSymbolIndex),a.placedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,a.placedIconSymbolIndex),a.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,a.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&amp;&amp;this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&amp;&amp;this.icon.indexBuffer.updateData(this.icon.indexArray)}},Nn(&quot;SymbolBucket&quot;,Mc,{omit:[&quot;layers&quot;,&quot;collisionBoxArray&quot;,&quot;features&quot;,&quot;compareText&quot;]}),Mc.MAX_GLYPHS=65535,Mc.addDynamicAttributes=wc;var Sc=new Si({&quot;symbol-placement&quot;:new wi(Lt.layout_symbol[&quot;symbol-placement&quot;]),&quot;symbol-spacing&quot;:new wi(Lt.layout_symbol[&quot;symbol-spacing&quot;]),&quot;symbol-avoid-edges&quot;:new wi(Lt.layout_symbol[&quot;symbol-avoid-edges&quot;]),&quot;symbol-sort-key&quot;:new Ti(Lt.layout_symbol[&quot;symbol-sort-key&quot;]),&quot;symbol-z-order&quot;:new wi(Lt.layout_symbol[&quot;symbol-z-order&quot;]),&quot;icon-allow-overlap&quot;:new wi(Lt.layout_symbol[&quot;icon-allow-overlap&quot;]),&quot;icon-ignore-placement&quot;:new wi(Lt.layout_symbol[&quot;icon-ignore-placement&quot;]),&quot;icon-optional&quot;:new wi(Lt.layout_symbol[&quot;icon-optional&quot;]),&quot;icon-rotation-alignment&quot;:new wi(Lt.layout_symbol[&quot;icon-rotation-alignment&quot;]),&quot;icon-size&quot;:new Ti(Lt.layout_symbol[&quot;icon-size&quot;]),&quot;icon-text-fit&quot;:new wi(Lt.layout_symbol[&quot;icon-text-fit&quot;]),&quot;icon-text-fit-padding&quot;:new wi(Lt.layout_symbol[&quot;icon-text-fit-padding&quot;]),&quot;icon-image&quot;:new Ti(Lt.layout_symbol[&quot;icon-image&quot;]),&quot;icon-rotate&quot;:new Ti(Lt.layout_symbol[&quot;icon-rotate&quot;]),&quot;icon-padding&quot;:new wi(Lt.layout_symbol[&quot;icon-padding&quot;]),&quot;icon-keep-upright&quot;:new wi(Lt.layout_symbol[&quot;icon-keep-upright&quot;]),&quot;icon-offset&quot;:new Ti(Lt.layout_symbol[&quot;icon-offset&quot;]),&quot;icon-anchor&quot;:new Ti(Lt.layout_symbol[&quot;icon-anchor&quot;]),&quot;icon-pitch-alignment&quot;:new wi(Lt.layout_symbol[&quot;icon-pitch-alignment&quot;]),&quot;text-pitch-alignment&quot;:new wi(Lt.layout_symbol[&quot;text-pitch-alignment&quot;]),&quot;text-rotation-alignment&quot;:new wi(Lt.layout_symbol[&quot;text-rotation-alignment&quot;]),&quot;text-field&quot;:new Ti(Lt.layout_symbol[&quot;text-field&quot;]),&quot;text-font&quot;:new Ti(Lt.layout_symbol[&quot;text-font&quot;]),&quot;text-size&quot;:new Ti(Lt.layout_symbol[&quot;text-size&quot;]),&quot;text-max-width&quot;:new Ti(Lt.layout_symbol[&quot;text-max-width&quot;]),&quot;text-line-height&quot;:new wi(Lt.layout_symbol[&quot;text-line-height&quot;]),&quot;text-letter-spacing&quot;:new Ti(Lt.layout_symbol[&quot;text-letter-spacing&quot;]),&quot;text-justify&quot;:new Ti(Lt.layout_symbol[&quot;text-justify&quot;]),&quot;text-radial-offset&quot;:new Ti(Lt.layout_symbol[&quot;text-radial-offset&quot;]),&quot;text-variable-anchor&quot;:new wi(Lt.layout_symbol[&quot;text-variable-anchor&quot;]),&quot;text-anchor&quot;:new Ti(Lt.layout_symbol[&quot;text-anchor&quot;]),&quot;text-max-angle&quot;:new wi(Lt.layout_symbol[&quot;text-max-angle&quot;]),&quot;text-writing-mode&quot;:new wi(Lt.layout_symbol[&quot;text-writing-mode&quot;]),&quot;text-rotate&quot;:new Ti(Lt.layout_symbol[&quot;text-rotate&quot;]),&quot;text-padding&quot;:new wi(Lt.layout_symbol[&quot;text-padding&quot;]),&quot;text-keep-upright&quot;:new wi(Lt.layout_symbol[&quot;text-keep-upright&quot;]),&quot;text-transform&quot;:new Ti(Lt.layout_symbol[&quot;text-transform&quot;]),&quot;text-offset&quot;:new Ti(Lt.layout_symbol[&quot;text-offset&quot;]),&quot;text-allow-overlap&quot;:new wi(Lt.layout_symbol[&quot;text-allow-overlap&quot;]),&quot;text-ignore-placement&quot;:new wi(Lt.layout_symbol[&quot;text-ignore-placement&quot;]),&quot;text-optional&quot;:new wi(Lt.layout_symbol[&quot;text-optional&quot;])}),Ec={paint:new Si({&quot;icon-opacity&quot;:new Ti(Lt.paint_symbol[&quot;icon-opacity&quot;]),&quot;icon-color&quot;:new Ti(Lt.paint_symbol[&quot;icon-color&quot;]),&quot;icon-halo-color&quot;:new Ti(Lt.paint_symbol[&quot;icon-halo-color&quot;]),&quot;icon-halo-width&quot;:new Ti(Lt.paint_symbol[&quot;icon-halo-width&quot;]),&quot;icon-halo-blur&quot;:new Ti(Lt.paint_symbol[&quot;icon-halo-blur&quot;]),&quot;icon-translate&quot;:new wi(Lt.paint_symbol[&quot;icon-translate&quot;]),&quot;icon-translate-anchor&quot;:new wi(Lt.paint_symbol[&quot;icon-translate-anchor&quot;]),&quot;text-opacity&quot;:new Ti(Lt.paint_symbol[&quot;text-opacity&quot;]),&quot;text-color&quot;:new Ti(Lt.paint_symbol[&quot;text-color&quot;],{runtimeType:Ut,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),&quot;text-halo-color&quot;:new Ti(Lt.paint_symbol[&quot;text-halo-color&quot;]),&quot;text-halo-width&quot;:new Ti(Lt.paint_symbol[&quot;text-halo-width&quot;]),&quot;text-halo-blur&quot;:new Ti(Lt.paint_symbol[&quot;text-halo-blur&quot;]),&quot;text-translate&quot;:new wi(Lt.paint_symbol[&quot;text-translate&quot;]),&quot;text-translate-anchor&quot;:new wi(Lt.paint_symbol[&quot;text-translate-anchor&quot;])}),layout:Sc},Lc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ft,this.defaultValue=t};Lc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&amp;&amp;e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&amp;&amp;t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},Lc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},Lc.prototype.outputDefined=function(){return!1},Lc.prototype.serialize=function(){return null},Nn(&quot;FormatSectionOverride&quot;,Lc,{omit:[&quot;defaultValue&quot;]});var Cc=function(t){function e(e){t.call(this,e,Ec)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),&quot;auto&quot;===this.layout.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;(&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;map&quot;:this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-rotation-alignment&quot;)&amp;&amp;(&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;map&quot;:this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-pitch-alignment&quot;]=this.layout.get(&quot;text-rotation-alignment&quot;)),&quot;auto&quot;===this.layout.get(&quot;icon-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-pitch-alignment&quot;]=this.layout.get(&quot;icon-rotation-alignment&quot;)),&quot;point&quot;===this.layout.get(&quot;symbol-placement&quot;)){var n=this.layout.get(&quot;text-writing-mode&quot;);if(n){for(var i=[],a=0,o=n;a&lt;o.length;a+=1){var s=o[a];i.indexOf(s)&lt;0&amp;&amp;i.push(s)}this.layout._values[&quot;text-writing-mode&quot;]=i}else this.layout._values[&quot;text-writing-mode&quot;]=[&quot;horizontal&quot;]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||Yr(a.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):&quot;&quot;}))}(e.properties,i)},e.prototype.createBucket=function(t){return new Mc(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=Ec.paint.overridableProperties;t&lt;r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var i=this.paint.get(n),a=new Lc(i),o=new Gr(a,i.property.specification),s=null;s=&quot;constant&quot;===i.value.kind||&quot;source&quot;===i.value.kind?new Xr(&quot;source&quot;,o):new Zr(&quot;composite&quot;,o,i.value.zoomStops,i.value._interpolationType),this.paint._values[n]=new bi(i.property,s,i.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&amp;&amp;e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get(&quot;text-field&quot;),n=Ec.paint.properties[e],i=!1,a=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var a=r[e];if(n.overrides&amp;&amp;n.overrides.hasOverride(a))return void(i=!0)}};if(&quot;constant&quot;===r.value.kind&amp;&amp;r.value.value instanceof ne)a(r.value.value.sections);else if(&quot;source&quot;===r.value.kind){var o=function(t){if(!i)if(t instanceof ce&amp;&amp;se(t.value)===Gt){var e=t.value;a(e.sections)}else t instanceof pe?a(t.sections):t.eachChild(o)},s=r.value;s._styleExpression&amp;&amp;o(s._styleExpression.expression)}return i},e}(Ei),Pc={paint:new Si({&quot;background-color&quot;:new wi(Lt.paint_background[&quot;background-color&quot;]),&quot;background-pattern&quot;:new Ai(Lt.paint_background[&quot;background-pattern&quot;]),&quot;background-opacity&quot;:new wi(Lt.paint_background[&quot;background-opacity&quot;])})},Ic=function(t){function e(e){t.call(this,e,Pc)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Ei),Oc={paint:new Si({&quot;raster-opacity&quot;:new wi(Lt.paint_raster[&quot;raster-opacity&quot;]),&quot;raster-hue-rotate&quot;:new wi(Lt.paint_raster[&quot;raster-hue-rotate&quot;]),&quot;raster-brightness-min&quot;:new wi(Lt.paint_raster[&quot;raster-brightness-min&quot;]),&quot;raster-brightness-max&quot;:new wi(Lt.paint_raster[&quot;raster-brightness-max&quot;]),&quot;raster-saturation&quot;:new wi(Lt.paint_raster[&quot;raster-saturation&quot;]),&quot;raster-contrast&quot;:new wi(Lt.paint_raster[&quot;raster-contrast&quot;]),&quot;raster-resampling&quot;:new wi(Lt.paint_raster[&quot;raster-resampling&quot;]),&quot;raster-fade-duration&quot;:new wi(Lt.paint_raster[&quot;raster-fade-duration&quot;])})},zc=function(t){function e(e){t.call(this,e,Oc)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Ei);var Dc=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.is3D=function(){return&quot;3d&quot;===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&amp;&amp;this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&amp;&amp;this.implementation.onRemove(t,t.painter.context.gl)},e}(Ei),Rc={circle:_o,heatmap:Po,hillshade:Oo,fill:xs,&quot;fill-extrusion&quot;:Fs,line:Xs,symbol:Cc,background:Ic,raster:zc};var Fc=self.HTMLImageElement,Bc=self.HTMLCanvasElement,Nc=self.HTMLVideoElement,jc=self.ImageData,Uc=self.ImageBitmap,Vc=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};Vc.prototype.update=function(t,e,r){var n=t.width,i=t.height,a=!(this.size&amp;&amp;this.size[0]===n&amp;&amp;this.size[1]===i||r),o=this.context,s=o.gl;if(this.useMipmap=Boolean(e&amp;&amp;e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&amp;&amp;(!e||!1!==e.premultiply)),a)this.size=[n,i],t instanceof Fc||t instanceof Bc||t instanceof Nc||t instanceof jc||Uc&amp;&amp;t instanceof Uc?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},c=l.x,u=l.y;t instanceof Fc||t instanceof Bc||t instanceof Nc||t instanceof jc||Uc&amp;&amp;t instanceof Uc?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,u,n,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&amp;&amp;this.isSizePowerOfTwo()&amp;&amp;s.generateMipmap(s.TEXTURE_2D)},Vc.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Vc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&amp;&amp;Math.log(this.size[0])/Math.LN2%1==0},Vc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var qc=function(t){var e=this;this._callback=t,this._triggered=!1,&quot;undefined&quot;!=typeof MessageChannel&amp;&amp;(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};qc.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},qc.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Hc=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g([&quot;receive&quot;,&quot;process&quot;],this),this.invoker=new qc(this.process),this.target.addEventListener(&quot;message&quot;,this.receive,!1),this.globalScope=k()?t:self};function Gc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}Hc.prototype.send=function(t,e,r,n,i){var a=this;void 0===i&amp;&amp;(i=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&amp;&amp;(this.callbacks[o]=r);var s=S(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:qn(e,s)},s),{cancel:function(){r&amp;&amp;delete a.callbacks[o],a.target.postMessage({id:o,type:&quot;&lt;cancel&gt;&quot;,targetMapId:n,sourceMapId:a.mapId})}}},Hc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&amp;&amp;(!e.targetMapId||this.mapId===e.targetMapId))if(&quot;&lt;cancel&gt;&quot;===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&amp;&amp;n()}else k()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},Hc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&amp;&amp;this.invoker.trigger(),e&amp;&amp;this.processTask(t,e)}},Hc.prototype.processTask=function(t,e){var r=this;if(&quot;&lt;response&gt;&quot;===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&amp;&amp;(e.error?n(Hn(e.error)):n(null,Hn(e.data)))}else{var i=!1,a=S(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:&quot;&lt;response&gt;&quot;,sourceMapId:r.mapId,error:e?qn(e):null,data:qn(n,a)},a)}:function(t){i=!0},s=null,l=Hn(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(&quot;.&quot;);s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error(&quot;Could not find function &quot;+e.type));!i&amp;&amp;s&amp;&amp;s.cancel&amp;&amp;(this.cancelCallbacks[t]=s.cancel)}},Hc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener(&quot;message&quot;,this.receive,!1)};var Yc=function(t,e){t&amp;&amp;(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Yc.prototype.setNorthEast=function(t){return this._ne=t instanceof Wc?new Wc(t.lng,t.lat):Wc.convert(t),this},Yc.prototype.setSouthWest=function(t){return this._sw=t instanceof Wc?new Wc(t.lng,t.lat):Wc.convert(t),this},Yc.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Wc)e=t,r=t;else{if(!(t instanceof Yc)){if(Array.isArray(t)){if(4===t.length||t.every(Array.isArray)){var a=t;return this.extend(Yc.convert(a))}var o=t;return this.extend(Wc.convert(o))}return this}if(e=t._sw,r=t._ne,!e||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Wc(e.lng,e.lat),this._ne=new Wc(r.lng,r.lat)),this},Yc.prototype.getCenter=function(){return new Wc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Yc.prototype.getSouthWest=function(){return this._sw},Yc.prototype.getNorthEast=function(){return this._ne},Yc.prototype.getNorthWest=function(){return new Wc(this.getWest(),this.getNorth())},Yc.prototype.getSouthEast=function(){return new Wc(this.getEast(),this.getSouth())},Yc.prototype.getWest=function(){return this._sw.lng},Yc.prototype.getSouth=function(){return this._sw.lat},Yc.prototype.getEast=function(){return this._ne.lng},Yc.prototype.getNorth=function(){return this._ne.lat},Yc.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Yc.prototype.toString=function(){return&quot;LngLatBounds(&quot;+this._sw.toString()+&quot;, &quot;+this._ne.toString()+&quot;)&quot;},Yc.prototype.isEmpty=function(){return!(this._sw&amp;&amp;this._ne)},Yc.prototype.contains=function(t){var e=Wc.convert(t),r=e.lng,n=e.lat,i=this._sw.lat&lt;=n&amp;&amp;n&lt;=this._ne.lat,a=this._sw.lng&lt;=r&amp;&amp;r&lt;=this._ne.lng;return this._sw.lng&gt;this._ne.lng&amp;&amp;(a=this._sw.lng&gt;=r&amp;&amp;r&gt;=this._ne.lng),i&amp;&amp;a},Yc.convert=function(t){return!t||t instanceof Yc?t:new Yc(t)};var Wc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(&quot;Invalid LngLat object: (&quot;+t+&quot;, &quot;+e+&quot;)&quot;);if(this.lng=+t,this.lat=+e,this.lat&gt;90||this.lat&lt;-90)throw new Error(&quot;Invalid LngLat latitude value: must be between -90 and 90&quot;)};Wc.prototype.wrap=function(){return new Wc(c(this.lng,-180,180),this.lat)},Wc.prototype.toArray=function(){return[this.lng,this.lat]},Wc.prototype.toString=function(){return&quot;LngLat(&quot;+this.lng+&quot;, &quot;+this.lat+&quot;)&quot;},Wc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Wc.prototype.toBounds=function(t){void 0===t&amp;&amp;(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Yc(new Wc(this.lng-r,this.lat-e),new Wc(this.lng+r,this.lat+e))},Wc.convert=function(t){if(t instanceof Wc)return t;if(Array.isArray(t)&amp;&amp;(2===t.length||3===t.length))return new Wc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;null!==t)return new Wc(Number(&quot;lng&quot;in t?t.lng:t.lon),Number(t.lat));throw new Error(&quot;`LngLatLike` argument must be specified as a LngLat instance, an object {lng: &lt;lng&gt;, lat: &lt;lat&gt;}, an object {lon: &lt;lng&gt;, lat: &lt;lat&gt;}, or an array of [&lt;lng&gt;, &lt;lat&gt;]&quot;)};var Xc=2*Math.PI*6371008.8;function Zc(t){return Xc*Math.cos(t*Math.PI/180)}function Jc(t){return(180+t)/360}function Kc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Qc(t,e){return t/Zc(e)}function $c(t){var e=180-360*t;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}var tu=function(t,e,r){void 0===r&amp;&amp;(r=0),this.x=+t,this.y=+e,this.z=+r};tu.fromLngLat=function(t,e){void 0===e&amp;&amp;(e=0);var r=Wc.convert(t);return new tu(Jc(r.lng),Kc(r.lat),Qc(e,r.lat))},tu.prototype.toLngLat=function(){return new Wc(360*this.x-180,$c(this.y))},tu.prototype.toAltitude=function(){return t=this.z,e=this.y,t*Zc($c(e));var t,e},tu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Xc*(t=$c(this.y),1/Math.cos(t*Math.PI/180));var t};var eu=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=iu(0,t,t,e,r)};eu.prototype.equals=function(t){return this.z===t.z&amp;&amp;this.x===t.x&amp;&amp;this.y===t.y},eu.prototype.url=function(t,e){var r,n,i,a,o,s=(r=this.x,n=this.y,i=this.z,a=Gc(256*r,256*(n=Math.pow(2,i)-n-1),i),o=Gc(256*(r+1),256*(n+1),i),a[0]+&quot;,&quot;+a[1]+&quot;,&quot;+o[0]+&quot;,&quot;+o[1]),l=function(t,e,r){for(var n,i=&quot;&quot;,a=t;a&gt;0;a--)i+=(e&amp;(n=1&lt;&lt;a-1)?1:0)+(r&amp;n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(&quot;{prefix}&quot;,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(&quot;{z}&quot;,String(this.z)).replace(&quot;{x}&quot;,String(this.x)).replace(&quot;{y}&quot;,String(&quot;tms&quot;===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(&quot;{quadkey}&quot;,l).replace(&quot;{bbox-epsg-3857}&quot;,s)},eu.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new i(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},eu.prototype.toString=function(){return this.z+&quot;/&quot;+this.x+&quot;/&quot;+this.y};var ru=function(t,e){this.wrap=t,this.canonical=e,this.key=iu(t,e.z,e.z,e.x,e.y)},nu=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new eu(r,+n,+i),this.key=iu(e,t,r,n,i)};function iu(t,e,r,n,i){(t*=2)&lt;0&amp;&amp;(t=-1*t-1);var a=1&lt;&lt;r;return(a*a*t+a*i+n).toString(36)+r.toString(36)+e.toString(36)}nu.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&amp;&amp;this.wrap===t.wrap&amp;&amp;this.canonical.equals(t.canonical)},nu.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t&gt;this.canonical.z?new nu(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new nu(t,this.wrap,t,this.canonical.x&gt;&gt;e,this.canonical.y&gt;&gt;e)},nu.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t&gt;this.canonical.z?iu(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):iu(this.wrap*+e,t,t,this.canonical.x&gt;&gt;r,this.canonical.y&gt;&gt;r)},nu.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ&lt;this.overscaledZ&amp;&amp;t.canonical.x===this.canonical.x&gt;&gt;e&amp;&amp;t.canonical.y===this.canonical.y&gt;&gt;e},nu.prototype.children=function(t){if(this.overscaledZ&gt;=t)return[new nu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new nu(e,this.wrap,e,r,n),new nu(e,this.wrap,e,r+1,n),new nu(e,this.wrap,e,r,n+1),new nu(e,this.wrap,e,r+1,n+1)]},nu.prototype.isLessThan=function(t){return this.wrap&lt;t.wrap||!(this.wrap&gt;t.wrap)&amp;&amp;(this.overscaledZ&lt;t.overscaledZ||!(this.overscaledZ&gt;t.overscaledZ)&amp;&amp;(this.canonical.x&lt;t.canonical.x||!(this.canonical.x&gt;t.canonical.x)&amp;&amp;this.canonical.y&lt;t.canonical.y))},nu.prototype.wrapped=function(){return new nu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},nu.prototype.unwrapTo=function(t){return new nu(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},nu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},nu.prototype.toUnwrapped=function(){return new ru(this.wrap,this.canonical)},nu.prototype.toString=function(){return this.overscaledZ+&quot;/&quot;+this.canonical.x+&quot;/&quot;+this.canonical.y},nu.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new tu(t.x-this.wrap,t.y))},Nn(&quot;CanonicalTileID&quot;,eu),Nn(&quot;OverscaledTileID&quot;,nu,{omit:[&quot;posMatrix&quot;]});var au=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError(&quot;DEM tiles must be square&quot;);if(r&amp;&amp;&quot;mapbox&quot;!==r&amp;&amp;&quot;terrarium&quot;!==r)return _('&quot;'+r+'&quot; is not a valid encoding type. Valid types include &quot;mapbox&quot; and &quot;terrarium&quot;.');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||&quot;mapbox&quot;;for(var i=0;i&lt;n;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(n,i)]=this.data[this._idx(n-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,n)]=this.data[this._idx(i,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};au.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return(&quot;terrarium&quot;===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},au.prototype.getUnpackVector=function(){return&quot;terrarium&quot;===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},au.prototype._idx=function(t,e){if(t&lt;-1||t&gt;=this.dim+1||e&lt;-1||e&gt;=this.dim+1)throw new RangeError(&quot;out of range source coordinates for DEM data&quot;);return(e+1)*this.stride+(t+1)},au.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},au.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},au.prototype.getPixels=function(){return new Eo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},au.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error(&quot;dem dimension mismatch&quot;);var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c&lt;o;c++)for(var u=n;u&lt;i;u++)this.data[this._idx(u,c)]=t.data[this._idx(u+s,c+l)]},Nn(&quot;DEMData&quot;,au);var ou=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e&lt;t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};ou.prototype.encode=function(t){return this._stringToNumber[t]},ou.prototype.decode=function(t){return this._numberToString[t]};var su=function(t,e,r,n,i){this.type=&quot;Feature&quot;,this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i},lu={geometry:{configurable:!0}};lu.geometry.get=function(){return void 0===this._geometry&amp;&amp;(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},lu.geometry.set=function(t){this._geometry=t},su.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)&quot;_geometry&quot;!==e&amp;&amp;&quot;_vectorTileFeature&quot;!==e&amp;&amp;(t[e]=this[e]);return t},Object.defineProperties(su.prototype,lu);var cu=function(){this.state={},this.stateChanges={},this.deletedStates={}};cu.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},u(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==n&amp;&amp;(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&amp;&amp;null===this.deletedStates[t][n])for(var a in this.deletedStates[t][n]={},this.state[t][n])r[a]||(this.deletedStates[t][n][a]=null);else for(var o in r){this.deletedStates[t]&amp;&amp;this.deletedStates[t][n]&amp;&amp;null===this.deletedStates[t][n][o]&amp;&amp;delete this.deletedStates[t][n][o]}},cu.prototype.removeFeatureState=function(t,e,r){if(!(null===this.deletedStates[t])){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&amp;&amp;void 0!==e)null!==this.deletedStates[t][n]&amp;&amp;(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e){if(this.stateChanges[t]&amp;&amp;this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null}else this.deletedStates[t]=null}},cu.prototype.getState=function(t,e){var r=String(e),n=this.state[t]||{},i=this.stateChanges[t]||{},a=u({},n[r],i[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var o=this.deletedStates[t][e];if(null===o)return{};for(var s in o)delete a[s]}return a},cu.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},cu.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var i={};for(var a in this.stateChanges[n])this.state[n][a]||(this.state[n][a]={}),u(this.state[n][a],this.stateChanges[n][a]),i[a]=this.state[n][a];r[n]=i}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var f=0,h=Object.keys(this.deletedStates[o][c]);f&lt;h.length;f+=1){var p=h[f];delete this.state[o][c][p]}s[c]=this.state[o][c]}r[o]=r[o]||{},u(r[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var d in t){t[d].setFeatureState(r,e)}};var uu=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new zn(8192,16,0),this.grid3D=new zn(8192,16,0),this.featureIndexArray=new fa,this.promoteId=e};function fu(t,e,r,n,i){return v(t,(function(t,a){var o=e instanceof _i?e.get(a):null;return o&amp;&amp;o.evaluate?o.evaluate(r,n,i):o}))}function hu(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0,o=t;a&lt;o.length;a+=1){var s=o[a];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y)}return{minX:e,minY:r,maxX:n,maxY:i}}function pu(t,e){return e-t}uu.prototype.insert=function(t,e,r,n,i,a){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var s=a?this.grid3D:this.grid,l=0;l&lt;e.length;l++){for(var c=e[l],u=[1/0,1/0,-1/0,-1/0],f=0;f&lt;c.length;f++){var h=c[f];u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y)}u[0]&lt;8192&amp;&amp;u[1]&lt;8192&amp;&amp;u[2]&gt;=0&amp;&amp;u[3]&gt;=0&amp;&amp;s.insert(o,u[0],u[1],u[2],u[3])}},uu.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Ls.VectorTile(new al(this.rawTileData)).layers,this.sourceLayerCoder=new ou(this.vtLayers?Object.keys(this.vtLayers).sort():[&quot;_geojsonTileLayer&quot;])),this.vtLayers},uu.prototype.query=function(t,e,r,n){var a=this;this.loadVTLayers();for(var o=t.params||{},s=8192/t.tileSize/t.scale,l=sn(o.filter),c=t.queryGeometry,u=t.queryPadding*s,f=hu(c),h=this.grid.query(f.minX-u,f.minY-u,f.maxX+u,f.maxY+u),p=hu(t.cameraQueryGeometry),d=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(e,r,n,a){return function(t,e,r,n,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o];if(e&lt;=l.x&amp;&amp;r&lt;=l.y&amp;&amp;n&gt;=l.x&amp;&amp;a&gt;=l.y)return!0}var c=[new i(e,r),new i(e,a),new i(n,a),new i(n,r)];if(t.length&gt;2)for(var u=0,f=c;u&lt;f.length;u+=1){if(io(t,f[u]))return!0}for(var h=0;h&lt;t.length-1;h++){if(ao(t[h],t[h+1],c))return!0}return!1}(t.cameraQueryGeometry,e-u,r-u,n+u,a+u)})),g=0,m=d;g&lt;m.length;g+=1){var v=m[g];h.push(v)}h.sort(pu);for(var y,x={},b=function(i){var u=h[i];if(u!==y){y=u;var f=a.featureIndexArray.get(u),p=null;a.loadMatchingFeature(x,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,l,o.layers,o.availableImages,e,r,n,(function(e,r,n){return p||(p=Ya(e)),r.queryIntersectsFeature(c,e,n,p,a.z,t.transform,s,t.pixelPosMatrix)}))}},_=0;_&lt;h.length;_++)b(_);return x},uu.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r&lt;t.length;r++)if(e.indexOf(t[r])&gt;=0)return!0;return!1}(a,f)){var h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(n);if(i.filter(new pi(this.tileID.overscaledZ),p))for(var d=this.getId(p,h),g=0;g&lt;f.length;g++){var m=f[g];if(!(a&amp;&amp;a.indexOf(m)&lt;0)){var v=s[m];if(v){var y={};void 0!==d&amp;&amp;c&amp;&amp;(y=c.getState(v.sourceLayer||&quot;_geojsonTileLayer&quot;,d));var x=l[m];x.paint=fu(x.paint,v.paint,p,y,o),x.layout=fu(x.layout,v.layout,p,y,o);var b=!u||u(p,v,y);if(b){var _=new su(p,this.z,this.x,this.y,d);_.layer=x;var w=t[m];void 0===w&amp;&amp;(w=t[m]=[]),w.push({featureIndex:n,feature:_,intersectionZ:b})}}}}}},uu.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a,o,s){var l={};this.loadVTLayers();for(var c=sn(i),u=0,f=t;u&lt;f.length;u+=1){var h=f[u];this.loadMatchingFeature(l,r,n,h,c,a,o,s,e)}return l},uu.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e&lt;r.length;e+=1)for(var n=0,i=r[e];n&lt;i.length;n+=1){if(t===i[n])return!0}return!1},uu.prototype.getId=function(t,e){var r=t.id;if(this.promoteId){var n=&quot;string&quot;==typeof this.promoteId?this.promoteId:this.promoteId[e];&quot;boolean&quot;==typeof(r=t.properties[n])&amp;&amp;(r=Number(r))}return r},Nn(&quot;FeatureIndex&quot;,uu,{omit:[&quot;rawTileData&quot;,&quot;sourceLayerCoder&quot;]});var du=function(t,e){this.tileID=t,this.uid=h(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state=&quot;loading&quot;};du.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e&lt;R.now()||this.fadeEndTime&amp;&amp;e&lt;this.fadeEndTime||(this.fadeEndTime=e)},du.prototype.wasRequested=function(){return&quot;errored&quot;===this.state||&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state},du.prototype.loadVectorData=function(t,e,r){if(this.hasData()&amp;&amp;this.unloadVectorData(),this.state=&quot;loaded&quot;,t){for(var n in t.featureIndex&amp;&amp;(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&amp;&amp;(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=function(){var t=a[i],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&amp;&amp;(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var o=0,s=n;o&lt;s.length;o+=1){var l=s[o];r[l.id]=t}}},i=0,a=t;i&lt;a.length;i+=1)n();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[n];if(i instanceof Mc){if(this.hasSymbolBuckets=!0,!r)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var a in this.buckets){var o=this.buckets[a];if(o instanceof Mc&amp;&amp;o.hasRTLText){this.hasRTLText=!0,hi.isLoading()||hi.isLoaded()||&quot;deferred&quot;!==ui()||fi();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&amp;&amp;(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&amp;&amp;(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new na},du.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&amp;&amp;this.imageAtlasTexture.destroy(),this.imageAtlas&amp;&amp;(this.imageAtlas=null),this.glyphAtlasTexture&amp;&amp;this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=&quot;unloaded&quot;},du.prototype.getBucket=function(t){return this.buckets[t.id]},du.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&amp;&amp;r.upload(t)}var n=t.gl;this.imageAtlas&amp;&amp;!this.imageAtlas.uploaded&amp;&amp;(this.imageAtlasTexture=new Vc(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&amp;&amp;(this.glyphAtlasTexture=new Vc(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},du.prototype.prepare=function(t){this.imageAtlas&amp;&amp;this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},du.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o,s,l,c){return this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}},du.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&amp;&amp;r.rawTileData){var n=r.loadVTLayers(),i=e?e.sourceLayer:&quot;&quot;,a=n._geojsonTileLayer||n[i];if(a)for(var o=sn(e&amp;&amp;e.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,f={z:l,x:c,y:u},h=0;h&lt;a.length;h++){var p=a.feature(h);if(o.filter(new pi(this.tileID.overscaledZ),p)){var d=r.getId(p,i),g=new su(p,l,c,u,d);g.tile=f,t.push(g)}}}},du.prototype.hasData=function(){return&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state||&quot;expired&quot;===this.state},du.prototype.patternsLoaded=function(){return this.imageAtlas&amp;&amp;!!Object.keys(this.imageAtlas.patternPositions).length},du.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=A(t.cacheControl);r[&quot;max-age&quot;]&amp;&amp;(this.expirationTime=Date.now()+1e3*r[&quot;max-age&quot;])}else t.expires&amp;&amp;(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),i=!1;if(this.expirationTime&gt;n)i=!1;else if(e)if(this.expirationTime&lt;e)i=!0;else{var a=this.expirationTime-e;a?this.expirationTime=n+Math.max(a,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state=&quot;expired&quot;):this.expiredRequestCount=0}},du.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1&lt;&lt;Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},du.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData&amp;&amp;0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var i=this.buckets[n],a=i.layers[0].sourceLayer||&quot;_geojsonTileLayer&quot;,o=r[a],s=t[a];if(o&amp;&amp;s&amp;&amp;0!==Object.keys(s).length){i.update(s,o,this.imageAtlas&amp;&amp;this.imageAtlas.patternPositions||{});var l=e&amp;&amp;e.style&amp;&amp;e.style.getLayer(n);l&amp;&amp;(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},du.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},du.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil&lt;R.now()},du.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},du.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=R.now()+t},du.prototype.setDependencies=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){r[i[n]]=!0}this.dependencies[t]=r},du.prototype.hasDependency=function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){var i=n[r],a=this.dependencies[i];if(a)for(var o=0,s=e;o&lt;s.length;o+=1){if(a[s[o]])return!0}}return!1};var gu=self.performance,mu=function(t){this._marks={start:[t.url,&quot;start&quot;].join(&quot;#&quot;),end:[t.url,&quot;end&quot;].join(&quot;#&quot;),measure:t.url.toString()},gu.mark(this._marks.start)};mu.prototype.finish=function(){gu.mark(this._marks.end);var t=gu.getEntriesByName(this._marks.measure);return 0===t.length&amp;&amp;(gu.measure(this._marks.measure,this._marks.start,this._marks.end),t=gu.getEntriesByName(this._marks.measure),gu.clearMarks(this._marks.start),gu.clearMarks(this._marks.end),gu.clearMeasures(this._marks.measure)),t},t.Actor=Hc,t.AlphaImage=So,t.CanonicalTileID=eu,t.CollisionBoxArray=na,t.Color=te,t.DEMData=au,t.DataConstantProperty=wi,t.DictionaryCoder=ou,t.EXTENT=8192,t.ErrorEvent=St,t.EvaluationParameters=pi,t.Event=Mt,t.Evented=Et,t.FeatureIndex=uu,t.FillBucket=ms,t.FillExtrusionBucket=Os,t.ImageAtlas=Ll,t.ImagePosition=Sl,t.LineBucket=Hs,t.LngLat=Wc,t.LngLatBounds=Yc,t.MercatorCoordinate=tu,t.ONE_EM=24,t.OverscaledTileID=nu,t.Point=i,t.Point$1=i,t.Properties=Si,t.Protobuf=al,t.RGBAImage=Eo,t.RequestManager=q,t.RequestPerformance=mu,t.ResourceType=dt,t.SegmentVector=pa,t.SourceFeatureState=cu,t.StructArrayLayout1ui2=$i,t.StructArrayLayout2f1f2i16=Hi,t.StructArrayLayout2i4=zi,t.StructArrayLayout3ui6=Yi,t.StructArrayLayout4i8=Di,t.SymbolBucket=Mc,t.Texture=Vc,t.Tile=du,t.Transitionable=mi,t.Uniform1f=Sa,t.Uniform1i=Ma,t.Uniform2f=Ea,t.Uniform3f=La,t.Uniform4f=Ca,t.UniformColor=Pa,t.UniformMatrix4f=Oa,t.UnwrappedTileID=ru,t.ValidationError=Ct,t.WritingMode=Cl,t.ZoomHistory=Gn,t.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},t.addDynamicAttributes=wc,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach((function(t,o){e(t,(function(t,e){t&amp;&amp;(a=t),i[o]=e,0==--n&amp;&amp;r(a,i)}))}))},t.bezier=o,t.bindAll=g,t.browser=R,t.cacheEntryPossiblyAdded=function(t){++ht&gt;ot&amp;&amp;(t.getActor().send(&quot;enforceCacheSizeLimit&quot;,at),ht=0)},t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete(&quot;mapbox-tiles&quot;);t&amp;&amp;e.catch(t).then((function(){return t()}))},t.clipLine=ec,t.clone=function(t){var e=new fo(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new fo(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=tl,t.config=F,t.create=function(){var t=new fo(16);return fo!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new fo(9);return fo!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new fo(4);return fo!=Float32Array&amp;&amp;(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=Wr,t.createLayout=Ii,t.createStyleLayer=function(t){return&quot;custom&quot;===t.type?new Dc(t):new Rc[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n&lt;e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;null!==r){if(&quot;object&quot;!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=s,t.emitValidationErrors=On,t.endsWith=m,t.enforceCacheSizeLimit=function(t){st(),Q&amp;&amp;Q.then((function(e){e.keys().then((function(r){for(var n=0;n&lt;r.length-t;n++)e.delete(r[n])}))}))},t.evaluateSizeForFeature=Yl,t.evaluateSizeForZoom=Wl,t.evaluateVariableOffset=dc,t.evented=ci,t.extend=u,t.featureFilter=sn,t.filterObject=y,t.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Ul,t.getAnchorJustification=gc,t.getArrayBuffer=xt,t.getImage=Tt,t.getJSON=function(t,e){return yt(u(t,{type:&quot;json&quot;}),e)},t.getRTLTextPluginStatus=ui,t.getReferrer=mt,t.getVideo=function(t,e){var r,n,i=self.document.createElement(&quot;video&quot;);i.muted=!0,i.onloadstart=function(){e(null,i)};for(var a=0;a&lt;t.length;a++){var o=self.document.createElement(&quot;source&quot;);r=t[a],n=void 0,(n=self.document.createElement(&quot;a&quot;)).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&amp;&amp;(i.crossOrigin=&quot;Anonymous&quot;),o.src=t[a],i.appendChild(o)}return{cancel:function(){}}},t.identity=ho,t.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,A=u*m-h*d,M=u*v-p*d,S=f*m-h*g,E=f*v-p*g,L=h*v-p*m,C=y*L-x*E+b*S+_*M-w*A+T*k;return C?(C=1/C,t[0]=(s*L-l*E+c*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(g*T-m*w+v*_)*C,t[3]=(h*w-f*T-p*_)*C,t[4]=(l*M-o*L-c*A)*C,t[5]=(r*L-i*M+a*A)*C,t[6]=(m*b-d*T-v*x)*C,t[7]=(u*T-h*b+p*x)*C,t[8]=(o*E-s*M+c*k)*C,t[9]=(n*M-r*E-a*k)*C,t[10]=(d*w-g*b+v*y)*C,t[11]=(f*b-u*w-p*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(g*x-d*_-m*y)*C,t[15]=(u*_-f*x+h*y)*C,t):null},t.isChar=Yn,t.isMapboxURL=H,t.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},t.makeRequest=yt,t.mapObject=v,t.mercatorXfromLng=Jc,t.mercatorYfromLat=Kc,t.mercatorZfromAltitude=Qc,t.mul=go,t.multiply=po,t.mvt=Ls,t.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a&gt;0&amp;&amp;(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=He,t.offscreenCanvasSupported=pt,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new al(t).readFields(Tl,[])},t.pbf=al,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays();var s=512*t.overscaling;t.tilePixelRatio=8192/s,t.compareText={},t.iconsNeedLinear=!1;var l=t.layers[0].layout,c=t.layers[0]._unevaluatedLayout._values,u={};if(&quot;composite&quot;===t.textSizeData.kind){var f=t.textSizeData,h=f.minZoom,p=f.maxZoom;u.compositeTextSizes=[c[&quot;text-size&quot;].possiblyEvaluate(new pi(h),o),c[&quot;text-size&quot;].possiblyEvaluate(new pi(p),o)]}if(&quot;composite&quot;===t.iconSizeData.kind){var d=t.iconSizeData,g=d.minZoom,m=d.maxZoom;u.compositeIconSizes=[c[&quot;icon-size&quot;].possiblyEvaluate(new pi(g),o),c[&quot;icon-size&quot;].possiblyEvaluate(new pi(m),o)]}u.layoutTextSize=c[&quot;text-size&quot;].possiblyEvaluate(new pi(t.zoom+1),o),u.layoutIconSize=c[&quot;icon-size&quot;].possiblyEvaluate(new pi(t.zoom+1),o),u.textMaxSize=c[&quot;text-size&quot;].possiblyEvaluate(new pi(18));for(var v=24*l.get(&quot;text-line-height&quot;),y=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==l.get(&quot;symbol-placement&quot;),x=l.get(&quot;text-keep-upright&quot;),b=l.get(&quot;text-size&quot;),w=function(){var a=k[T],s=l.get(&quot;text-font&quot;).evaluate(a,{},o).join(&quot;,&quot;),c=b.evaluate(a,{},o),f=u.layoutTextSize.evaluate(a,{},o),h=u.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},d=a.text,g=[0,0];if(d){var m=d.toString(),w=24*l.get(&quot;text-letter-spacing&quot;).evaluate(a,{},o),A=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(!Xn(r[e].charCodeAt(0)))return!1}return!0}(m)?w:0,M=l.get(&quot;text-anchor&quot;).evaluate(a,{},o),S=l.get(&quot;text-variable-anchor&quot;);if(!S){var E=l.get(&quot;text-radial-offset&quot;).evaluate(a,{},o);g=E?dc(M,[24*E,pc]):l.get(&quot;text-offset&quot;).evaluate(a,{},o).map((function(t){return 24*t}))}var L=y?&quot;center&quot;:l.get(&quot;text-justify&quot;).evaluate(a,{},o),C=l.get(&quot;symbol-placement&quot;),P=&quot;point&quot;===C?24*l.get(&quot;text-max-width&quot;).evaluate(a,{},o):0,I=function(){t.allowVerticalPlacement&amp;&amp;Wn(m)&amp;&amp;(p.vertical=Ol(d,e,r,i,s,P,v,M,&quot;left&quot;,A,g,Cl.vertical,!0,C,f,c))};if(!y&amp;&amp;S){for(var O=&quot;auto&quot;===L?S.map((function(t){return gc(t)})):[L],z=!1,D=0;D&lt;O.length;D++){var R=O[D];if(!p.horizontal[R])if(z)p.horizontal[R]=p.horizontal[0];else{var F=Ol(d,e,r,i,s,P,v,&quot;center&quot;,R,A,g,Cl.horizontal,!1,C,f,c);F&amp;&amp;(p.horizontal[R]=F,z=1===F.positionedLines.length)}}I()}else{&quot;auto&quot;===L&amp;&amp;(L=gc(M));var B=Ol(d,e,r,i,s,P,v,M,L,A,g,Cl.horizontal,!1,C,f,c);B&amp;&amp;(p.horizontal[L]=B),I(),Wn(m)&amp;&amp;y&amp;&amp;x&amp;&amp;(p.vertical=Ol(d,e,r,i,s,P,v,M,L,A,g,Cl.vertical,!1,C,f,c))}}var N=void 0,j=!1;if(a.icon&amp;&amp;a.icon.name){var U=n[a.icon.name];U&amp;&amp;(N=function(t,e,r){var n=Ul(r),i=n.horizontalAlign,a=n.verticalAlign,o=e[0],s=e[1],l=o-t.displaySize[0]*i,c=l+t.displaySize[0],u=s-t.displaySize[1]*a;return{image:t,top:u,bottom:u+t.displaySize[1],left:l,right:c}}(i[a.icon.name],l.get(&quot;icon-offset&quot;).evaluate(a,{},o),l.get(&quot;icon-anchor&quot;).evaluate(a,{},o)),j=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&amp;&amp;_(&quot;Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer&quot;),(U.pixelRatio!==t.pixelRatio||0!==l.get(&quot;icon-rotate&quot;).constantOr(1))&amp;&amp;(t.iconsNeedLinear=!0))}var V=vc(p.horizontal)||p.vertical;t.iconsInText=!!V&amp;&amp;V.iconsInText,(V||N)&amp;&amp;function(t,e,r,n,i,a,o,s,l,c,u){var f=a.textMaxSize.evaluate(e,{});void 0===f&amp;&amp;(f=o);var h,p=t.layers[0].layout,d=p.get(&quot;icon-offset&quot;).evaluate(e,{},u),g=vc(r.horizontal),m=o/24,v=t.tilePixelRatio*m,y=t.tilePixelRatio*f/24,x=t.tilePixelRatio*s,b=t.tilePixelRatio*p.get(&quot;symbol-spacing&quot;),w=p.get(&quot;text-padding&quot;)*t.tilePixelRatio,T=p.get(&quot;icon-padding&quot;)*t.tilePixelRatio,k=p.get(&quot;text-max-angle&quot;)/180*Math.PI,A=&quot;map&quot;===p.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),M=&quot;map&quot;===p.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),S=p.get(&quot;symbol-placement&quot;),E=b/2,L=p.get(&quot;icon-text-fit&quot;);n&amp;&amp;&quot;none&quot;!==L&amp;&amp;(t.allowVerticalPlacement&amp;&amp;r.vertical&amp;&amp;(h=ql(n,r.vertical,L,p.get(&quot;icon-text-fit-padding&quot;),d,m)),g&amp;&amp;(n=ql(n,g,L,p.get(&quot;icon-text-fit-padding&quot;),d,m)));var C=function(s,f){f.x&lt;0||f.x&gt;=8192||f.y&lt;0||f.y&gt;=8192||function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,w,T,k,A){var M,S,E,L,C,P=t.addToLineVertexArray(e,r),I=0,O=0,z=0,D=0,R=-1,F=-1,B={},N=ya(&quot;&quot;),j=0,U=0;void 0===s._unevaluatedLayout.getValue(&quot;text-radial-offset&quot;)?(M=s.layout.get(&quot;text-offset&quot;).evaluate(b,{},k).map((function(t){return 24*t})),j=M[0],U=M[1]):(j=24*s.layout.get(&quot;text-radial-offset&quot;).evaluate(b,{},k),U=pc);if(t.allowVerticalPlacement&amp;&amp;n.vertical){var V=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k)+90,q=n.vertical;L=new sc(l,e,c,u,f,q,h,p,d,V),o&amp;&amp;(C=new sc(l,e,c,u,f,o,m,v,d,V))}if(i){var H=s.layout.get(&quot;icon-rotate&quot;).evaluate(b,{}),G=&quot;none&quot;!==s.layout.get(&quot;icon-text-fit&quot;),Y=rc(i,H,T,G),W=o?rc(o,H,T,G):void 0;E=new sc(l,e,c,u,f,i,m,v,!1,H),I=4*Y.length;var X=t.iconSizeData,Z=null;&quot;source&quot;===X.kind?(Z=[128*s.layout.get(&quot;icon-size&quot;).evaluate(b,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'):&quot;composite&quot;===X.kind&amp;&amp;((Z=[128*w.compositeIconSizes[0].evaluate(b,{},k),128*w.compositeIconSizes[1].evaluate(b,{},k)])[0]&gt;32640||Z[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'),t.addSymbols(t.icon,Y,Z,x,y,b,!1,e,P.lineStartIndex,P.lineLength,-1,k),R=t.icon.placedSymbolArray.length-1,W&amp;&amp;(O=4*W.length,t.addSymbols(t.icon,W,Z,x,y,b,Cl.vertical,e,P.lineStartIndex,P.lineLength,-1,k),F=t.icon.placedSymbolArray.length-1)}for(var J in n.horizontal){var K=n.horizontal[J];if(!S){N=ya(K.text);var Q=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k);S=new sc(l,e,c,u,f,K,h,p,d,Q)}var $=1===K.positionedLines.length;if(z+=mc(t,e,K,a,s,d,b,g,P,n.vertical?Cl.horizontal:Cl.horizontalOnly,$?Object.keys(n.horizontal):[J],B,R,w,k),$)break}n.vertical&amp;&amp;(D+=mc(t,e,n.vertical,a,s,d,b,g,P,Cl.vertical,[&quot;vertical&quot;],B,F,w,k));var tt=S?S.boxStartIndex:t.collisionBoxArray.length,et=S?S.boxEndIndex:t.collisionBoxArray.length,rt=L?L.boxStartIndex:t.collisionBoxArray.length,nt=L?L.boxEndIndex:t.collisionBoxArray.length,it=E?E.boxStartIndex:t.collisionBoxArray.length,at=E?E.boxEndIndex:t.collisionBoxArray.length,ot=C?C.boxStartIndex:t.collisionBoxArray.length,st=C?C.boxEndIndex:t.collisionBoxArray.length,lt=-1,ct=function(t,e){return t&amp;&amp;t.circleDiameter?Math.max(t.circleDiameter,e):e};lt=ct(S,lt),lt=ct(L,lt),lt=ct(E,lt);var ut=(lt=ct(C,lt))&gt;-1?1:0;ut&amp;&amp;(lt*=A/24);t.glyphOffsetArray.length&gt;=Mc.MAX_GLYPHS&amp;&amp;_(&quot;Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907&quot;);void 0!==b.sortKey&amp;&amp;t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);t.symbolInstances.emplaceBack(e.x,e.y,B.right&gt;=0?B.right:-1,B.center&gt;=0?B.center:-1,B.left&gt;=0?B.left:-1,B.vertical||-1,R,F,N,tt,et,rt,nt,it,at,ot,st,c,z,D,I,O,ut,0,h,j,U,lt)}(t,f,s,r,n,i,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,w,A,l,x,T,M,d,e,a,c,u,o)};if(&quot;line&quot;===S)for(var P=0,I=ec(e.geometry,0,0,8192,8192);P&lt;I.length;P+=1)for(var O=I[P],z=tc(O,b,k,r.vertical||g,n,24,y,t.overscaling,8192),D=0,R=z;D&lt;R.length;D+=1){var F=R[D],B=g;B&amp;&amp;yc(t,B.text,E,F)||C(O,F)}else if(&quot;line-center&quot;===S)for(var N=0,j=e.geometry;N&lt;j.length;N+=1){var U=j[N];if(U.length&gt;1){var V=$l(U,k,r.vertical||g,n,24,y);V&amp;&amp;C(U,V)}}else if(&quot;Polygon&quot;===e.type)for(var q=0,H=hs(e.geometry,0);q&lt;H.length;q+=1){var G=H[q],Y=uc(G,16);C(G[0],new Hl(Y.x,Y.y,0))}else if(&quot;LineString&quot;===e.type)for(var W=0,X=e.geometry;W&lt;X.length;W+=1){var Z=X[W];C(Z,new Hl(Z[0].x,Z[0].y,0))}else if(&quot;Point&quot;===e.type)for(var J=0,K=e.geometry;J&lt;K.length;J+=1)for(var Q=K[J],$=0,tt=Q;$&lt;tt.length;$+=1){var et=tt[$];C([et],new Hl(et.x,et.y,0))}}(t,a,p,N,n,u,f,h,g,j,o)},T=0,k=t.features;T&lt;k.length;T+=1)w();a&amp;&amp;t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&amp;&amp;i!==1/0?(a=1/(n-i),t[10]=(i+n)*a,t[14]=2*i*n*a):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){for(var r={},n=0;n&lt;e.length;n++){var i=e[n];i in t&amp;&amp;(r[i]=t[i])}return r},t.plugin=hi,t.polygonIntersectsPolygon=Za,t.postMapLoadEvent=it,t.postTurnstileEvent=rt,t.potpack=Ml,t.refProperties=[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;filter&quot;,&quot;layout&quot;],t.register=Nn,t.registerForPluginStateChange=function(t){return t({pluginStatus:ai,pluginURL:oi}),ci.on(&quot;pluginStateChange&quot;,t),t},t.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},t.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},t.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.scale$2=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},t.setCacheLimits=function(t,e){at=t,ot=e},t.setRTLTextPlugin=function(t,e,r){if(void 0===r&amp;&amp;(r=!1),ai===ti||ai===ei||ai===ri)throw new Error(&quot;setRTLTextPlugin cannot be called multiple times.&quot;);oi=R.resolveURL(t),ai=ti,ii=e,li(),r||fi()},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},t.sqrLen=bo,t.styleSpec=Lt,t.sub=yo,t.symbolSize=Xl,t.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},t.transformMat4=xo,t.translate=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]),t},t.triggerPluginCompletionEvent=si,t.uniqueId=h,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required property &quot;id&quot;'}),void 0===t.render&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required method &quot;render&quot;'}),t.renderingMode&amp;&amp;&quot;2d&quot;!==t.renderingMode&amp;&amp;&quot;3d&quot;!==t.renderingMode&amp;&amp;e.push({message:&quot;layers.&quot;+r+': property &quot;renderingMode&quot; must be either &quot;2d&quot; or &quot;3d&quot;'}),e},t.validateLight=Cn,t.validateStyle=Ln,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=Ls,t.version=&quot;1.10.1&quot;,t.warnOnce=_,t.webpSupported=B,t.window=self,t.wrap=c})),n(0,(function(t){function e(t){var r=typeof t;if(&quot;number&quot;===r||&quot;boolean&quot;===r||&quot;string&quot;===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=&quot;[&quot;,i=0,a=t;i&lt;a.length;i+=1){n+=e(a[i])+&quot;,&quot;}return n+&quot;]&quot;}for(var o=Object.keys(t).sort(),s=&quot;{&quot;,l=0;l&lt;o.length;l++)s+=JSON.stringify(o[l])+&quot;:&quot;+e(t[o[l]])+&quot;,&quot;;return s+&quot;}&quot;}function r(r){for(var n=&quot;&quot;,i=0,a=t.refProperties;i&lt;a.length;i+=1){n+=&quot;/&quot;+e(r[a[i]])}return n}var n=function(t){this.keyCache={},t&amp;&amp;this.replace(t)};n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&amp;&amp;delete this.keyCache[s.id]}for(var c=0,u=n;c&lt;u.length;c+=1){var f=u[c];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var h=0,p=function(t,e){for(var n={},i=0;i&lt;t.length;i++){var a=e&amp;&amp;e[t[i].id]||r(t[i]);e&amp;&amp;(e[t[i].id]=a);var o=n[a];o||(o=n[a]=[]),o.push(t[i])}var s=[];for(var l in n)s.push(n[l]);return s}(t.values(this._layerConfigs),this.keyCache);h&lt;p.length;h+=1){var d=p[h].map((function(t){return i._layers[t.id]})),g=d[0];if(&quot;none&quot;!==g.visibility){var m=g.source||&quot;&quot;,v=this.familiesBySource[m];v||(v=this.familiesBySource[m]={});var y=g.sourceLayer||&quot;_geojsonTileLayer&quot;,x=v[y];x||(x=v[y]=[]),x.push(d)}}};var i=function(e){var r={},n=[];for(var i in e){var a=e[i],o=r[i]={};for(var s in a){var l=a[+s];if(l&amp;&amp;0!==l.bitmap.width&amp;&amp;0!==l.bitmap.height){var c={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};n.push(c),o[s]={rect:c,metrics:l.metrics}}}}var u=t.potpack(n),f=u.w,h=u.h,p=new t.AlphaImage({width:f||1,height:h||1});for(var d in e){var g=e[d];for(var m in g){var v=g[+m];if(v&amp;&amp;0!==v.bitmap.width&amp;&amp;0!==v.bitmap.height){var y=r[d][m].rect;t.AlphaImage.copy(v.bitmap,p,{x:0,y:0},{x:y.x+1,y:y.y+1},v.bitmap)}}}this.image=p,this.positions=r};t.register(&quot;GlyphAtlas&quot;,i);var a=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function o(e,r,n){for(var i=new t.EvaluationParameters(r),a=0,o=e;a&lt;o.length;a+=1){o[a].recalculate(i,n)}}function s(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,i,a){e?r(e):n&amp;&amp;r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:i,expires:a})}));return function(){n.cancel(),r()}}a.prototype.parse=function(e,r,n,a,s){var l=this;this.status=&quot;parsing&quot;,this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var f,h,p,d,g={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var y in v){var x=e.layers[y];if(x){1===x.version&amp;&amp;t.warnOnce('Vector tile source &quot;'+this.source+'&quot; layer &quot;'+y+'&quot; does not use vector tile spec v2 and therefore may have some rendering errors.');for(var b=c.encode(y),_=[],w=0;w&lt;x.length;w++){var T=x.feature(w),k=u.getId(T,y);_.push({feature:T,id:k,index:w,sourceLayerIndex:b})}for(var A=0,M=v[y];A&lt;M.length;A+=1){var S=M[A],E=S[0];if(!(E.minzoom&amp;&amp;this.zoom&lt;Math.floor(E.minzoom)))if(!(E.maxzoom&amp;&amp;this.zoom&gt;=E.maxzoom))if(&quot;none&quot;!==E.visibility)o(S,this.zoom,n),(g[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,m,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id})))}}}var L=t.mapObject(m.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(L).length?a.send(&quot;getGlyphs&quot;,{uid:this.uid,stacks:L},(function(t,e){f||(f=t,h=e,I.call(l))})):h={};var C=Object.keys(m.iconDependencies);C.length?a.send(&quot;getImages&quot;,{icons:C,source:this.source,tileID:this.tileID,type:&quot;icons&quot;},(function(t,e){f||(f=t,p=e,I.call(l))})):p={};var P=Object.keys(m.patternDependencies);function I(){if(f)return s(f);if(h&amp;&amp;p&amp;&amp;d){var e=new i(h),r=new t.ImageAtlas(p,d);for(var a in g){var l=g[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,h,e.positions,p,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&amp;&amp;(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&amp;&amp;(o(l.layers,this.zoom,n),l.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status=&quot;done&quot;,s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}P.length?a.send(&quot;getImages&quot;,{icons:P,source:this.source,tileID:this.tileID,type:&quot;patterns&quot;},(function(t,e){f||(f=t,d=e,I.call(l))})):d={},I.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&amp;&amp;e.request&amp;&amp;e.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status=&quot;done&quot;,n.loaded[i]=s,r(e);var l=a.rawData,c={};a.expires&amp;&amp;(c.expires=a.expires),a.cacheControl&amp;&amp;(c.cacheControl=a.cacheControl);var u={};if(o){var f=o.finish();f&amp;&amp;(u.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&amp;&amp;n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&amp;&amp;(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};&quot;parsing&quot;===o.status?o.reloadCallback=s:&quot;done&quot;===o.status&amp;&amp;(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&amp;&amp;r[n]&amp;&amp;r[n].abort&amp;&amp;(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&amp;&amp;r[n]&amp;&amp;delete r[n],e()};var c=t.window.ImageBitmap,u=function(){this.loaded={}};u.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=c&amp;&amp;a instanceof c?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},u.prototype.getImageData=function(e){this.offscreenCanvas&amp;&amp;this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext(&quot;2d&quot;)),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},u.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&amp;&amp;e[r]&amp;&amp;delete e[r]};var f=function t(e,r){var n,i=e&amp;&amp;e.type;if(&quot;FeatureCollection&quot;===i)for(n=0;n&lt;e.features.length;n++)t(e.features[n],r);else if(&quot;GeometryCollection&quot;===i)for(n=0;n&lt;e.geometries.length;n++)t(e.geometries[n],r);else if(&quot;Feature&quot;===i)t(e.geometry,r);else if(&quot;Polygon&quot;===i)h(e.coordinates,r);else if(&quot;MultiPolygon&quot;===i)for(n=0;n&lt;e.coordinates.length;n++)h(e.coordinates[n],r);return e};function h(t,e){if(0!==t.length){p(t[0],e);for(var r=1;r&lt;t.length;r++)p(t[r],!e)}}function p(t,e){for(var r=0,n=0,i=t.length,a=i-1;n&lt;i;a=n++)r+=(t[n][0]-t[a][0])*(t[a][1]+t[n][1]);r&gt;=0!=!!e&amp;&amp;t.reverse()}var d=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,g=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,&quot;id&quot;in e&amp;&amp;!isNaN(e.id)&amp;&amp;(this.id=parseInt(e.id,10))};g.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r&lt;n.length;r+=1){var i=n[r];e.push([new t.Point$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o&lt;s.length;o+=1){for(var l=[],c=0,u=s[o];c&lt;u.length;c+=1){var f=u[c];l.push(new t.Point$1(f[0],f[1]))}a.push(l)}return a},g.prototype.toGeoJSON=function(t,e,r){return d.call(this,t,e,r)};var m=function(e){this.layers={_geojsonTileLayer:this},this.name=&quot;_geojsonTileLayer&quot;,this.extent=t.EXTENT,this.length=e.length,this._features=e};m.prototype.feature=function(t){return new g(this._features[t])};var v=t.vectorTile.VectorTileFeature,y=x;function x(t,e){this.options=e||{},this.features=t,this.length=t.length}function b(t,e){this.id=&quot;number&quot;==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}x.prototype.feature=function(t){return new b(this.features[t],this.options.extent)},b.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r&lt;e.length;r++){for(var n=e[r],i=[],a=0;a&lt;n.length;a++)i.push(new t.Point$1(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},b.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a&lt;t.length;a++)for(var o=t[a],s=0;s&lt;o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},b.prototype.toGeoJSON=v.prototype.toGeoJSON;var _=A,w=A,T=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new y(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return A({layers:r})},k=y;function A(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,M,t.layers[r])}(e,r),r.finish()}function M(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||&quot;&quot;),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r&lt;t.length;r++)n.feature=t.feature(r),e.writeMessage(2,S,n);var i=n.keys;for(r=0;r&lt;i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r&lt;a.length;r++)e.writeMessage(4,I,a[r])}function S(t,e){var r=t.feature;void 0!==r.id&amp;&amp;e.writeVarintField(1,r.id),e.writeMessage(2,E,t),e.writeVarintField(3,r.type),e.writeMessage(4,P,r)}function E(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&amp;&amp;(n.push(s),l=n.length-1,a[s]=l),e.writeVarint(l);var c=r.properties[s],u=typeof c;&quot;string&quot;!==u&amp;&amp;&quot;boolean&quot;!==u&amp;&amp;&quot;number&quot;!==u&amp;&amp;(c=JSON.stringify(c));var f=u+&quot;:&quot;+c,h=o[f];void 0===h&amp;&amp;(i.push(c),h=i.length-1,o[f]=h),e.writeVarint(h)}}function L(t,e){return(e&lt;&lt;3)+(7&amp;t)}function C(t){return t&lt;&lt;1^t&gt;&gt;31}function P(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s&lt;o;s++){var l=r[s],c=1;1===n&amp;&amp;(c=l.length),e.writeVarint(L(1,c));for(var u=3===n?l.length-1:l.length,f=0;f&lt;u;f++){1===f&amp;&amp;1!==n&amp;&amp;e.writeVarint(L(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(C(h)),e.writeVarint(C(p)),i+=h,a+=p}3===n&amp;&amp;e.writeVarint(L(7,1))}}function I(t,e){var r=typeof t;&quot;string&quot;===r?e.writeStringField(1,t):&quot;boolean&quot;===r?e.writeBooleanField(7,t):&quot;number&quot;===r&amp;&amp;(t%1!=0?e.writeDoubleField(3,t):t&lt;0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function O(t,e,r,n,i,a){if(!(i-n&lt;=r)){var o=n+i&gt;&gt;1;!function t(e,r,n,i,a,o){for(;a&gt;i;){if(a-i&gt;600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2&lt;0?-1:1),h=Math.max(i,Math.floor(n-l*u/s+f)),p=Math.min(a,Math.floor(n+(s-l)*u/s+f));t(e,r,n,h,p,o)}var d=r[2*n+o],g=i,m=a;for(z(e,r,i,n),r[2*a+o]&gt;d&amp;&amp;z(e,r,i,a);g&lt;m;){for(z(e,r,g,m),g++,m--;r[2*g+o]&lt;d;)g++;for(;r[2*m+o]&gt;d;)m--}r[2*i+o]===d?z(e,r,i,m):(m++,z(e,r,m,a)),m&lt;=n&amp;&amp;(i=m+1),n&lt;=m&amp;&amp;(a=m-1)}}(t,e,o,n,i,a%2),O(t,e,r,n,o-1,a+1),O(t,e,r,o+1,i,a+1)}}function z(t,e,r,n){D(t,r,n),D(e,2*r,2*n),D(e,2*r+1,2*n+1)}function D(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function R(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}_.fromVectorTileJs=w,_.fromGeojsonVt=T,_.GeoJSONWrapper=k;var F=function(t){return t[0]},B=function(t){return t[1]},N=function(t,e,r,n,i){void 0===e&amp;&amp;(e=F),void 0===r&amp;&amp;(r=B),void 0===n&amp;&amp;(n=64),void 0===i&amp;&amp;(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length&lt;65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l&lt;t.length;l++)o[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);O(o,s,n,0,o.length-1,0)};N.prototype.range=function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p&lt;=o)for(var d=p;d&lt;=h;d++)s=e[2*d],l=e[2*d+1],s&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[d]);else{var g=Math.floor((p+h)/2);s=e[2*g],l=e[2*g+1],s&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[g]);var m=(f+1)%2;(0===f?r&lt;=s:n&lt;=l)&amp;&amp;(c.push(p),c.push(g-1),c.push(m)),(0===f?i&gt;=s:a&gt;=l)&amp;&amp;(c.push(g+1),c.push(h),c.push(m))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},N.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f&lt;=a)for(var h=f;h&lt;=u;h++)R(e[2*h],e[2*h+1],r,n)&lt;=l&amp;&amp;s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],g=e[2*p+1];R(d,g,r,n)&lt;=l&amp;&amp;s.push(t[p]);var m=(c+1)%2;(0===c?r-i&lt;=d:n-i&lt;=g)&amp;&amp;(o.push(f),o.push(p-1),o.push(m)),(0===c?r+i&gt;=d:n+i&gt;=g)&amp;&amp;(o.push(p+1),o.push(u),o.push(m))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var j={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},U=function(t){this.options=X(Object.create(j),t),this.trees=new Array(this.options.maxZoom+1)};function V(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function q(t,e){var r=t.geometry.coordinates,n=r[0],i=r[1];return{x:Y(n),y:W(i),zoom:1/0,index:e,parentId:-1}}function H(t){return{type:&quot;Feature&quot;,id:t.id,properties:G(t),geometry:{type:&quot;Point&quot;,coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function G(t){var e=t.numPoints,r=e&gt;=1e4?Math.round(e/1e3)+&quot;k&quot;:e&gt;=1e3?Math.round(e/100)/10+&quot;k&quot;:e;return X(X({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function Y(t){return t/360+.5}function W(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function X(t,e){for(var r in e)t[r]=e[r];return t}function Z(t){return t.x}function J(t){return t.y}function K(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l&gt;1?(r=i,n=a):l&gt;0&amp;&amp;(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function Q(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(&quot;Point&quot;===r||&quot;MultiPoint&quot;===r||&quot;LineString&quot;===r)$(t,e);else if(&quot;Polygon&quot;===r||&quot;MultiLineString&quot;===r)for(var n=0;n&lt;e.length;n++)$(t,e[n]);else if(&quot;MultiPolygon&quot;===r)for(n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)$(t,e[n][i])}(i),i}function $(t,e){for(var r=0;r&lt;e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function tt(t,e,r,n){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,o=Math.pow(r.tolerance/((1&lt;&lt;r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&amp;&amp;(l=n||0),&quot;Point&quot;===a)et(i,s);else if(&quot;MultiPoint&quot;===a)for(var c=0;c&lt;i.length;c++)et(i[c],s);else if(&quot;LineString&quot;===a)rt(i,s,o,!1);else if(&quot;MultiLineString&quot;===a){if(r.lineMetrics){for(c=0;c&lt;i.length;c++)s=[],rt(i[c],s,o,!1),t.push(Q(l,&quot;LineString&quot;,s,e.properties));return}nt(i,s,o,!1)}else if(&quot;Polygon&quot;===a)nt(i,s,o,!0);else{if(&quot;MultiPolygon&quot;!==a){if(&quot;GeometryCollection&quot;===a){for(c=0;c&lt;e.geometry.geometries.length;c++)tt(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error(&quot;Input data is not a valid GeoJSON object.&quot;)}for(c=0;c&lt;i.length;c++){var u=[];nt(i[c],u,o,!0),s.push(u)}}t.push(Q(l,a,s,e.properties))}}function et(t,e){e.push(it(t[0])),e.push(at(t[1])),e.push(0)}function rt(t,e,r,n){for(var i,a,o=0,s=0;s&lt;t.length;s++){var l=it(t[s][0]),c=at(t[s][1]);e.push(l),e.push(c),e.push(0),s&gt;0&amp;&amp;(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=n-r&gt;&gt;1,l=n-r,c=e[r],u=e[r+1],f=e[n],h=e[n+1],p=r+3;p&lt;n;p+=3){var d=K(e[p],e[p+1],c,u,f,h);if(d&gt;o)a=p,o=d;else if(d===o){var g=Math.abs(p-s);g&lt;l&amp;&amp;(a=p,l=g)}}o&gt;i&amp;&amp;(a-r&gt;3&amp;&amp;t(e,r,a,i),e[a+2]=o,n-a&gt;3&amp;&amp;t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function nt(t,e,r,n){for(var i=0;i&lt;t.length;i++){var a=[];rt(t[i],a,r,n),e.push(a)}}function it(t){return t/360+.5}function at(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function ot(t,e,r,n,i,a,o,s){if(n/=e,a&gt;=(r/=e)&amp;&amp;o&lt;n)return t;if(o&lt;r||a&gt;=n)return null;for(var l=[],c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p&gt;=r&amp;&amp;d&lt;n)l.push(u);else if(!(d&lt;r||p&gt;=n)){var g=[];if(&quot;Point&quot;===h||&quot;MultiPoint&quot;===h)st(f,g,r,n,i);else if(&quot;LineString&quot;===h)lt(f,g,r,n,i,!1,s.lineMetrics);else if(&quot;MultiLineString&quot;===h)ut(f,g,r,n,i,!1);else if(&quot;Polygon&quot;===h)ut(f,g,r,n,i,!0);else if(&quot;MultiPolygon&quot;===h)for(var m=0;m&lt;f.length;m++){var v=[];ut(f[m],v,r,n,i,!0),v.length&amp;&amp;g.push(v)}if(g.length){if(s.lineMetrics&amp;&amp;&quot;LineString&quot;===h){for(m=0;m&lt;g.length;m++)l.push(Q(u.id,h,g[m],u.tags));continue}&quot;LineString&quot;!==h&amp;&amp;&quot;MultiLineString&quot;!==h||(1===g.length?(h=&quot;LineString&quot;,g=g[0]):h=&quot;MultiLineString&quot;),&quot;Point&quot;!==h&amp;&amp;&quot;MultiPoint&quot;!==h||(h=3===g.length?&quot;Point&quot;:&quot;MultiPoint&quot;),l.push(Q(u.id,h,g,u.tags))}}}return l.length?l:null}function st(t,e,r,n,i){for(var a=0;a&lt;t.length;a+=3){var o=t[a+i];o&gt;=r&amp;&amp;o&lt;=n&amp;&amp;(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function lt(t,e,r,n,i,a,o){for(var s,l,c=ct(t),u=0===i?ht:pt,f=t.start,h=0;h&lt;t.length-3;h+=3){var p=t[h],d=t[h+1],g=t[h+2],m=t[h+3],v=t[h+4],y=0===i?p:d,x=0===i?m:v,b=!1;o&amp;&amp;(s=Math.sqrt(Math.pow(p-m,2)+Math.pow(d-v,2))),y&lt;r?x&gt;r&amp;&amp;(l=u(c,p,d,m,v,r),o&amp;&amp;(c.start=f+s*l)):y&gt;n?x&lt;n&amp;&amp;(l=u(c,p,d,m,v,n),o&amp;&amp;(c.start=f+s*l)):ft(c,p,d,g),x&lt;r&amp;&amp;y&gt;=r&amp;&amp;(l=u(c,p,d,m,v,r),b=!0),x&gt;n&amp;&amp;y&lt;=n&amp;&amp;(l=u(c,p,d,m,v,n),b=!0),!a&amp;&amp;b&amp;&amp;(o&amp;&amp;(c.end=f+s*l),e.push(c),c=ct(t)),o&amp;&amp;(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],g=t[_+2],(y=0===i?p:d)&gt;=r&amp;&amp;y&lt;=n&amp;&amp;ft(c,p,d,g),_=c.length-3,a&amp;&amp;_&gt;=3&amp;&amp;(c[_]!==c[0]||c[_+1]!==c[1])&amp;&amp;ft(c,c[0],c[1],c[2]),c.length&amp;&amp;e.push(c)}function ct(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function ut(t,e,r,n,i,a){for(var o=0;o&lt;t.length;o++)lt(t[o],e,r,n,i,a,!1)}function ft(t,e,r,n){t.push(e),t.push(r),t.push(n)}function ht(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function pt(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function dt(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i,a=t[n],o=a.type;if(&quot;Point&quot;===o||&quot;MultiPoint&quot;===o||&quot;LineString&quot;===o)i=gt(a.geometry,e);else if(&quot;MultiLineString&quot;===o||&quot;Polygon&quot;===o){i=[];for(var s=0;s&lt;a.geometry.length;s++)i.push(gt(a.geometry[s],e))}else if(&quot;MultiPolygon&quot;===o)for(i=[],s=0;s&lt;a.geometry.length;s++){for(var l=[],c=0;c&lt;a.geometry[s].length;c++)l.push(gt(a.geometry[s][c],e));i.push(l)}r.push(Q(a.id,o,i,a.tags))}return r}function gt(t,e){var r=[];r.size=t.size,void 0!==t.start&amp;&amp;(r.start=t.start,r.end=t.end);for(var n=0;n&lt;t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function mt(t,e){if(t.transformed)return t;var r,n,i,a=1&lt;&lt;t.z,o=t.x,s=t.y;for(r=0;r&lt;t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n&lt;c.length;n+=2)l.geometry.push(vt(c[n],c[n+1],e,a,o,s));else for(n=0;n&lt;c.length;n++){var f=[];for(i=0;i&lt;c[n].length;i+=2)f.push(vt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function vt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function yt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1&lt;&lt;e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s&lt;t.length;s++){o.numFeatures++,xt(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l&lt;o.minX&amp;&amp;(o.minX=l),c&lt;o.minY&amp;&amp;(o.minY=c),u&gt;o.maxX&amp;&amp;(o.maxX=u),f&gt;o.maxY&amp;&amp;(o.maxY=f)}return o}function xt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(&quot;Point&quot;===a||&quot;MultiPoint&quot;===a)for(var s=0;s&lt;i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(&quot;LineString&quot;===a)bt(o,i,t,r,!1,!1);else if(&quot;MultiLineString&quot;===a||&quot;Polygon&quot;===a)for(s=0;s&lt;i.length;s++)bt(o,i[s],t,r,&quot;Polygon&quot;===a,0===s);else if(&quot;MultiPolygon&quot;===a)for(var l=0;l&lt;i.length;l++){var c=i[l];for(s=0;s&lt;c.length;s++)bt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(&quot;LineString&quot;===a&amp;&amp;n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a?3:&quot;LineString&quot;===a||&quot;MultiLineString&quot;===a?2:1,tags:u};null!==e.id&amp;&amp;(h.id=e.id),t.features.push(h)}}function bt(t,e,r,n,i,a){var o=n*n;if(n&gt;0&amp;&amp;e.size&lt;(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l&lt;e.length;l+=3)(0===n||e[l+2]&gt;o)&amp;&amp;(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&amp;&amp;function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n&lt;i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r&gt;0===e)for(n=0,i=t.length;n&lt;i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function _t(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&amp;&amp;console.time(&quot;preprocess data&quot;),e.maxZoom&lt;0||e.maxZoom&gt;24)throw new Error(&quot;maxZoom should be in the 0-24 range&quot;);if(e.promoteId&amp;&amp;e.generateId)throw new Error(&quot;promoteId and generateId cannot be used together.&quot;);var n=function(t,e){var r=[];if(&quot;FeatureCollection&quot;===t.type)for(var n=0;n&lt;t.features.length;n++)tt(r,t.features[n],e,n);else&quot;Feature&quot;===t.type?tt(r,t,e):tt(r,{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&amp;&amp;(console.timeEnd(&quot;preprocess data&quot;),console.log(&quot;index: maxZoom: %d, maxPoints: %d&quot;,e.indexMaxZoom,e.indexMaxPoints),console.time(&quot;generate tiles&quot;),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=ot(t,1,-1-r,r,0,-1,2,e),a=ot(t,1,1-r,2+r,0,-1,2,e);return(i||a)&amp;&amp;(n=ot(t,1,-r,1+r,0,-1,2,e)||[],i&amp;&amp;(n=dt(i,1).concat(n)),a&amp;&amp;(n=n.concat(dt(a,-1)))),n}(n,e)).length&amp;&amp;this.splitTile(n,0,0,0),r&amp;&amp;(n.length&amp;&amp;console.log(&quot;features: %d, points: %d&quot;,this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(&quot;generate tiles&quot;),console.log(&quot;tiles generated:&quot;,this.total,JSON.stringify(this.stats)))}function wt(t,e,r){return 32*((1&lt;&lt;t)*r+e)+t}function Tt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new m(n.features),a=_(i);0===a.byteOffset&amp;&amp;a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}U.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,i=e.maxZoom,a=e.nodeSize;r&amp;&amp;console.time(&quot;total time&quot;);var o=&quot;prepare &quot;+t.length+&quot; points&quot;;r&amp;&amp;console.time(o),this.points=t;for(var s=[],l=0;l&lt;t.length;l++)t[l].geometry&amp;&amp;s.push(q(t[l],l));this.trees[i+1]=new N(s,Z,J,a,Float32Array),r&amp;&amp;console.timeEnd(o);for(var c=i;c&gt;=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new N(s,Z,J,a,Float32Array),r&amp;&amp;console.log(&quot;z%d: %d clusters in %dms&quot;,c,s.length,+Date.now()-u)}return r&amp;&amp;console.timeEnd(&quot;total time&quot;),this},U.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]&gt;=360)r=-180,i=180;else if(r&gt;i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(Y(r),W(a),Y(i),W(n));u&lt;f.length;u+=1){var h=f[u],p=l.points[h];c.push(p.numPoints?H(p):this.points[p.index])}return c},U.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n=&quot;No cluster with the specified id.&quot;,i=this.trees[r];if(!i)throw new Error(n);var a=i.points[e];if(!a)throw new Error(n);for(var o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,c=i.within(a.x,a.y,o);l&lt;c.length;l+=1){var u=c[l],f=i.points[u];f.parentId===t&amp;&amp;s.push(f.numPoints?H(f):this.points[f.index])}if(0===s.length)throw new Error(n);return s},U.prototype.getLeaves=function(t,e,r){e=e||10,r=r||0;var n=[];return this._appendLeaves(n,t,e,r,0),n},U.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options,o=a.extent,s=a.radius/o,l=(r-s)/i,c=(r+1+s)/i,u={features:[]};return this._addTileFeatures(n.range((e-s)/i,l,(e+1+s)/i,c),n.points,e,r,i,u),0===e&amp;&amp;this._addTileFeatures(n.range(1-s/i,l,1,c),n.points,i,r,i,u),e===i-1&amp;&amp;this._addTileFeatures(n.range(0,l,s/i,c),n.points,-1,r,i,u),u.features.length?u:null},U.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e&lt;=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},U.prototype._appendLeaves=function(t,e,r,n,i){for(var a=0,o=this.getChildren(e);a&lt;o.length;a+=1){var s=o[a],l=s.properties;if(l&amp;&amp;l.cluster?i+l.point_count&lt;=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,r,n,i):i&lt;n?i++:t.push(s),t.length===r)break}return i},U.prototype._addTileFeatures=function(t,e,r,n,i,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=e[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-r)),Math.round(this.options.extent*(l.y*i-n))]],tags:c?G(l):this.points[l.index].properties},f=void 0;c?f=l.id:this.options.generateId?f=l.index:this.points[l.index].id&amp;&amp;(f=this.points[l.index].id),void 0!==f&amp;&amp;(u.id=f),a.features.push(u)}},U.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},U.prototype._cluster=function(t,e){for(var r=[],n=this.options,i=n.radius,a=n.extent,o=n.reduce,s=i/(a*Math.pow(2,e)),l=0;l&lt;t.length;l++){var c=t[l];if(!(c.zoom&lt;=e)){c.zoom=e;for(var u=this.trees[e+1],f=u.within(c.x,c.y,s),h=c.numPoints||1,p=c.x*h,d=c.y*h,g=o&amp;&amp;h&gt;1?this._map(c,!0):null,m=(l&lt;&lt;5)+(e+1)+this.points.length,v=0,y=f;v&lt;y.length;v+=1){var x=y[v],b=u.points[x];if(!(b.zoom&lt;=e)){b.zoom=e;var _=b.numPoints||1;p+=b.x*_,d+=b.y*_,h+=_,b.parentId=m,o&amp;&amp;(g||(g=this._map(c,!0)),o(g,this._map(b)))}}1===h?r.push(c):(c.parentId=m,r.push(V(p/h,d/h,m,h,g)))}}return r},U.prototype._getOriginId=function(t){return t-this.points.length&gt;&gt;5},U.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},U.prototype._map=function(t,e){if(t.numPoints)return e?X({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&amp;&amp;n===r?X({},n):n},_t.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},_t.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1&lt;&lt;e,f=wt(e,r,n),h=this.tiles[f];if(!h&amp;&amp;(c&gt;1&amp;&amp;console.time(&quot;creation&quot;),h=this.tiles[f]=yt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c&gt;1&amp;&amp;(console.log(&quot;tile z%d-%d-%d (features: %d, points: %d, simplified: %d)&quot;,e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(&quot;creation&quot;));var p=&quot;z&quot;+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1&lt;&lt;i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints&lt;=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c&gt;1&amp;&amp;console.time(&quot;clipping&quot;);var g,m,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;g=m=v=y=null,x=ot(t,u,r-_,r+T,0,h.minX,h.maxX,l),b=ot(t,u,r+w,r+k,0,h.minX,h.maxX,l),t=null,x&amp;&amp;(g=ot(x,u,n-_,n+T,1,h.minY,h.maxY,l),m=ot(x,u,n+w,n+k,1,h.minY,h.maxY,l),x=null),b&amp;&amp;(v=ot(b,u,n-_,n+T,1,h.minY,h.maxY,l),y=ot(b,u,n+w,n+k,1,h.minY,h.maxY,l),b=null),c&gt;1&amp;&amp;console.timeEnd(&quot;clipping&quot;),s.push(g||[],e+1,2*r,2*n),s.push(m||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},_t.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t&lt;0||t&gt;24)return null;var o=1&lt;&lt;t,s=wt(t,e=(e%o+o)%o,r);if(this.tiles[s])return mt(this.tiles[s],i);a&gt;1&amp;&amp;console.log(&quot;drilling down to z%d-%d-%d&quot;,t,e,r);for(var l,c=t,u=e,f=r;!l&amp;&amp;c&gt;0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[wt(c,u,f)];return l&amp;&amp;l.source?(a&gt;1&amp;&amp;console.log(&quot;found parent tile z%d-%d-%d&quot;,c,u,f),a&gt;1&amp;&amp;console.time(&quot;drilling down&quot;),this.splitTile(l.source,c,u,f,t,e,r),a&gt;1&amp;&amp;console.timeEnd(&quot;drilling down&quot;),this.tiles[s]?mt(this.tiles[s],i):null):null};var kt=function(e){function r(t,r,n,i){e.call(this,t,r,n,Tt),i&amp;&amp;(this.loadGeoJSON=i)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&amp;&amp;&quot;Idle&quot;!==this._state?this._state=&quot;NeedsLoadData&quot;:(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&amp;&amp;this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&amp;&amp;n.request&amp;&amp;n.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if(&quot;object&quot;!=typeof o)return r(new Error(&quot;Input data given to '&quot;+n.source+&quot;' is not a valid GeoJSON object.&quot;));f(o,!0);try{e._geoJSONIndex=n.cluster?new U(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c&lt;u.length;c+=1){var f=u[c],h=n[f],p=h[0],d=h[1],g=t.createExpression(d),m=t.createExpression(&quot;string&quot;==typeof p?[p,[&quot;accumulated&quot;],[&quot;get&quot;,f]]:p);i[f]=g.value,a[f]=m.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=l;r&lt;n.length;r+=1){var a=n[r];e[a]=i[a].evaluate(o,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=l;r&lt;n.length;r+=1){var i=n[r];o.accumulated=t[i],t[i]=a[i].evaluate(o,s)}},r}(n)).load(o.features):function(t,e){return new _t(t,e)}(o,n.geojsonVtOptions)}catch(a){return r(a)}e.loaded={};var s={};if(i){var l=i.finish();l&amp;&amp;(s.resourceTiming={},s.resourceTiming[n.source]=JSON.parse(JSON.stringify(l)))}r(null,s)}))}},r.prototype.coalesce=function(){&quot;Coalescing&quot;===this._state?this._state=&quot;Idle&quot;:&quot;NeedsLoadData&quot;===this._state&amp;&amp;(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded,i=t.uid;return n&amp;&amp;n[i]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(&quot;string&quot;!=typeof e.data)return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},r}(l);var At=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:kt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name &quot;'+t+'&quot; already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error(&quot;RTL text plugin already registered.&quot;);t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return At.prototype.setReferrer=function(t,e){this.referrer=e},At.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][n];for(var a in i)i[a].availableImages=e}r()},At.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},At.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},At.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},At.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},At.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},At.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},At.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},At.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},At.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&amp;&amp;this.workerSources[t][e.type]&amp;&amp;this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},At.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},At.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&amp;&amp;!t.plugin.isParsed()&amp;&amp;null!=i){this.self.importScripts(i);var a=t.plugin.isParsed();n(a?void 0:new Error(&quot;RTL Text Plugin failed to import scripts from &quot;+i),a)}}catch(t){n(t.toString())}},At.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},At.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},At.prototype.getWorkerSource=function(t,e,r){var n=this;if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][r]){var i={send:function(e,r,i){n.actor.send(e,r,i,t)}};this.workerSources[t][e][r]=new this.workerSourceTypes[e](i,this.getLayerIndex(t),this.getAvailableImages(t))}return this.workerSources[t][e][r]},At.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new u),this.demWorkerSources[t][e]},At.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;void 0!==t.window&amp;&amp;t.window instanceof WorkerGlobalScope&amp;&amp;(t.window.worker=new At(t.window)),At})),n(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document?&quot;not a browser&quot;:Array.prototype&amp;&amp;Array.prototype.every&amp;&amp;Array.prototype.filter&amp;&amp;Array.prototype.forEach&amp;&amp;Array.prototype.indexOf&amp;&amp;Array.prototype.lastIndexOf&amp;&amp;Array.prototype.map&amp;&amp;Array.prototype.some&amp;&amp;Array.prototype.reduce&amp;&amp;Array.prototype.reduceRight&amp;&amp;Array.isArray?Function.prototype&amp;&amp;Function.prototype.bind?Object.keys&amp;&amp;Object.create&amp;&amp;Object.getPrototypeOf&amp;&amp;Object.getOwnPropertyNames&amp;&amp;Object.isSealed&amp;&amp;Object.isFrozen&amp;&amp;Object.isExtensible&amp;&amp;Object.getOwnPropertyDescriptor&amp;&amp;Object.defineProperty&amp;&amp;Object.defineProperties&amp;&amp;Object.seal&amp;&amp;Object.freeze&amp;&amp;Object.preventExtensions?&quot;JSON&quot;in window&amp;&amp;&quot;parse&quot;in JSON&amp;&amp;&quot;stringify&quot;in JSON?function(){if(!(&quot;Worker&quot;in window&amp;&amp;&quot;Blob&quot;in window&amp;&amp;&quot;URL&quot;in window))return!1;var t,e,r=new Blob([&quot;&quot;],{type:&quot;text/javascript&quot;}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}e&amp;&amp;e.terminate();return URL.revokeObjectURL(n),t}()?&quot;Uint8ClampedArray&quot;in window?ArrayBuffer.isView?function(){var t=document.createElement(&quot;canvas&quot;);t.width=t.height=1;var e=t.getContext(&quot;2d&quot;);if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&amp;&amp;r.width===t.width}()?function(t){void 0===n[t]&amp;&amp;(n[t]=function(t){var r=function(t){var r=document.createElement(&quot;canvas&quot;),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(&quot;webgl&quot;,n)||r.probablySupportsContext(&quot;experimental-webgl&quot;,n):r.supportsContext?r.supportsContext(&quot;webgl&quot;,n)||r.supportsContext(&quot;experimental-webgl&quot;,n):r.getContext(&quot;webgl&quot;,n)||r.getContext(&quot;experimental-webgl&quot;,n)}(t);if(!r)return!1;var n=r.createShader(r.VERTEX_SHADER);if(!n||r.isContextLost())return!1;return r.shaderSource(n,&quot;void main() {}&quot;),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS)}(t));return n[t]}(t&amp;&amp;t.failIfMajorPerformanceCaveat)?void 0:&quot;insufficient WebGL support&quot;:&quot;insufficient Canvas/getImageData support&quot;:&quot;insufficient ArrayBuffer support&quot;:&quot;insufficient Uint8ClampedArray support&quot;:&quot;insufficient worker support&quot;:&quot;insufficient JSON support&quot;:&quot;insufficient Object support&quot;:&quot;insufficient Function support&quot;:&quot;insufficent Array support&quot;}t.exports?t.exports=e:window&amp;&amp;(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var n={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var i=t.window.document.createElement(e);return void 0!==r&amp;&amp;(i.className=r),n&amp;&amp;n.appendChild(i),i},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document.documentElement.style;function i(t){if(!n)return t[0];for(var e=0;e&lt;t.length;e++)if(t[e]in n)return t[e];return t[0]}var a,o=i([&quot;userSelect&quot;,&quot;MozUserSelect&quot;,&quot;WebkitUserSelect&quot;,&quot;msUserSelect&quot;]);r.disableDrag=function(){n&amp;&amp;o&amp;&amp;(a=n[o],n[o]=&quot;none&quot;)},r.enableDrag=function(){n&amp;&amp;o&amp;&amp;(n[o]=a)};var s=i([&quot;transform&quot;,&quot;WebkitTransform&quot;]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var c=Object.defineProperty({},&quot;passive&quot;,{get:function(){l=!0}});t.window.addEventListener(&quot;test&quot;,c,c),t.window.removeEventListener(&quot;test&quot;,c,c)}catch(t){l=!1}r.addEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),&quot;passive&quot;in n&amp;&amp;l?t.addEventListener(e,r,n):t.addEventListener(e,r,n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),&quot;passive&quot;in n&amp;&amp;l?t.removeEventListener(e,r,n):t.removeEventListener(e,r,n.capture)};var u=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener(&quot;click&quot;,u,!0)};function f(t){var e=t.userImage;if(e&amp;&amp;e.render&amp;&amp;e.render())return t.data.replace(new Uint8Array(e.data.buffer)),!0;return!1}r.suppressClick=function(){t.window.addEventListener(&quot;click&quot;,u,!0),t.window.setTimeout((function(){t.window.removeEventListener(&quot;click&quot;,u,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=0;a&lt;r.length;a++)i.push(new t.Point(r[a].clientX-n.left-e.clientLeft,r[a].clientY-n.top-e.clientTop));return i},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&amp;&amp;2===e.button&amp;&amp;e.ctrlKey&amp;&amp;t.window.navigator.platform.toUpperCase().indexOf(&quot;MAC&quot;)&gt;=0?0:e.button},r.remove=function(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&amp;&amp;(this.loaded=t,t)){for(var e=0,r=this.requestors;e&lt;r.length;e+=1){var n=r[e],i=n.ids,a=n.callback;this._notify(i,a)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&amp;&amp;(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&amp;&amp;r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchX&quot; value'))),n=!1),this._validateStretch(r.stretchY,r.data&amp;&amp;r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchY&quot; value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;content&quot; value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];if(a[0]&lt;r||a[1]&lt;a[0]||e&lt;a[1])return!1;r=a[1]}return!0},r.prototype._validateContent=function(t,e){return!t||4===t.length&amp;&amp;(!(t[0]&lt;0||e.data.width&lt;t[0])&amp;&amp;(!(t[1]&lt;0||e.data.height&lt;t[1])&amp;&amp;(!(t[2]&lt;0||e.data.width&lt;t[2])&amp;&amp;(!(t[3]&lt;0||e.data.height&lt;t[3])&amp;&amp;(!(t[2]&lt;t[0])&amp;&amp;!(t[3]&lt;t[1]))))))},r.prototype.updateImage=function(t,e){var r=this.images[t];e.version=r.version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&amp;&amp;e.userImage.onRemove&amp;&amp;e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n];this.images[a]||(r=!1)}this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.images[o]||this.fire(new t.Event(&quot;styleimagemissing&quot;,{id:o}));var s=this.images[o];s?n[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&amp;&amp;s.userImage.render)}:t.warnOnce('Image &quot;'+o+'&quot; could not be loaded. Please make sure you have added the image with map.addImage() or a &quot;sprite&quot; property in your style. You can provide missing images by listening for the &quot;styleimagemissing&quot; map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&amp;&amp;r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},a=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&amp;&amp;(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),i=n.w,a=n.h,o=this.atlasImage;for(var s in o.resize({width:i||1,height:a||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+1,u=l.y+1,f=this.images[s].data,h=f.width,p=f.height;t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u},{width:h,height:p}),t.RGBAImage.copy(f,o,{x:0,y:p-1},{x:c,y:u-1},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u+p},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:h-1,y:0},{x:c-1,y:u},{width:1,height:p}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c+h,y:u},{width:1,height:p})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var i=this.images[n];f(i)&amp;&amp;this.updateImage(n,i)}}},r}(t.Evented);var p=m,d=m,g=1e20;function m(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||&quot;sans-serif&quot;,this.fontWeight=a||&quot;normal&quot;,this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(&quot;canvas&quot;),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(&quot;2d&quot;),this.ctx.font=this.fontWeight+&quot; &quot;+this.fontSize+&quot;px &quot;+this.fontFamily,this.ctx.textBaseline=&quot;middle&quot;,this.ctx.fillStyle=&quot;black&quot;,this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(&quot;Gecko/&quot;)&gt;=0?1.2:1))}function v(t,e,r,n,i,a,o){for(var s=0;s&lt;e;s++){for(var l=0;l&lt;r;l++)n[l]=t[l*e+s];for(y(n,i,a,o,r),l=0;l&lt;r;l++)t[l*e+s]=i[l]}for(l=0;l&lt;r;l++){for(s=0;s&lt;e;s++)n[s]=t[l*e+s];for(y(n,i,a,o,e),s=0;s&lt;e;s++)t[l*e+s]=Math.sqrt(i[s])}}function y(t,e,r,n,i){r[0]=0,n[0]=-g,n[1]=+g;for(var a=1,o=0;a&lt;i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s&lt;=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+g}for(a=0,o=0;a&lt;i;a++){for(;n[o+1]&lt;a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}m.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n&lt;this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?g:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?g:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(v(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),v(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n&lt;this.size*this.size;n++){var a=this.gridOuter[n]-this.gridInner[n];r[n]=Math.max(0,Math.min(255,Math.round(255-255*(a/this.radius+this.cutoff))))}return r},p.default=d;var x=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};x.prototype.setURL=function(t){this.url=t},x.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o&lt;s.length;o+=1){var l=s[o];i.push({stack:a,id:l})}t.asyncAll(i,(function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{},ranges:{}});var o=a.glyphs[i];if(void 0===o){if(o=n._tinySDF(a,r,i))return a.glyphs[i]=o,void e(null,{stack:r,id:i,glyph:o});var s=Math.floor(i/256);if(256*s&gt;65535)e(new Error(&quot;glyphs &gt; 65535 not supported&quot;));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i&lt;o.length;i+=1){(0,o[i])(t,e)}delete a.requests[s]}))),l.push((function(t,n){t?e(t):n&amp;&amp;e(null,{stack:r,id:i,glyph:n[i]||null})}))}}else e(null,{stack:r,id:i,glyph:o})}),(function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&amp;&amp;{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},x.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&amp;&amp;(t.isChar[&quot;CJK Unified Ideographs&quot;](e)||t.isChar[&quot;Hangul Syllables&quot;](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},x.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&amp;&amp;this._doesCharSupportLocalGlyph(n)){var a=e.tinySDF;if(!a){var o=&quot;400&quot;;/bold/i.test(r)?o=&quot;900&quot;:/medium/i.test(r)?o=&quot;500&quot;:/light/i.test(r)&amp;&amp;(o=&quot;200&quot;),a=e.tinySDF=new x.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},x.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i.transformRequest(i.normalizeGlyphsURL(n).replace(&quot;{fontstack}&quot;,e).replace(&quot;{range}&quot;,o+&quot;-&quot;+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.parseGlyphPBF(r);i&lt;o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}}))},x.TinySDF=p;var b=function(){this.specification=t.styleSpec.light.position};b.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},b.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var _=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new b,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(_),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&amp;&amp;(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var i=e[n];t.endsWith(n,&quot;-transition&quot;)?this._transitionable.setTransition(n.slice(0,-&quot;-transition&quot;.length),i):this._transitionable.setValue(n,i)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&amp;&amp;t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),T=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};T.prototype.getDash=function(t,e){var r=t.join(&quot;,&quot;)+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},T.prototype.getDashRanges=function(t,e,r){var n=[],i=t.length%2==1?-t[t.length-1]*r:0,a=t[0]*r,o=!0;n.push({left:i,right:a,isDash:o,zeroLength:0===t[0]});for(var s=t[0],l=1;l&lt;t.length;l++){o=!o;var c=t[l];i=s*r,a=(s+=c)*r,n.push({left:i,right:a,isDash:o,zeroLength:0===c})}return n},T.prototype.addRoundDash=function(t,e,r){for(var n=e/2,i=-r;i&lt;=r;i++)for(var a=this.nextRow+r+i,o=this.width*a,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f),p=void 0,d=i/r*(n+1);if(l.isDash){var g=n-Math.abs(d);p=Math.sqrt(h*h+g*g)}else p=n-Math.sqrt(h*h+d*d);this.data[o+c]=Math.max(0,Math.min(255,p+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e&gt;=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&amp;&amp;n.isDash===r.isDash&amp;&amp;(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&amp;&amp;(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f),p=l.isDash?h:-h;this.data[o+c]=Math.max(0,Math.min(255,p+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i&gt;this.height)return t.warnOnce(&quot;LineAtlas out of space&quot;),null;for(var a=0,o=0;o&lt;e.length;o++)a+=e[o];if(0!==a){var s=this.width/a,l=this.getDashRanges(e,this.width,s);r?this.addRoundDash(l,s,n):this.addRegularDash(l)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,c},T.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&amp;&amp;(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var k=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a&lt;i.length;a++){var o=i[a],s=new e.Actor(o,n,this.id);s.name=&quot;Worker &quot;+a,this.actors.push(s)}};function A(e,r,n){var i=function(i,a){if(i)return n(i);if(a){var o=t.pick(t.extend(a,e),[&quot;tiles&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;attribution&quot;,&quot;mapbox_logo&quot;,&quot;bounds&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;encoding&quot;]);a.vector_layers&amp;&amp;(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map((function(t){return t.id}))),o.tiles=r.canonicalizeTileset(o,e.url),n(null,o)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}k.prototype.broadcast=function(e,r,n){n=n||function(){},t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n)},k.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},k.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},k.Actor=t.Actor;var M=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};M.prototype.validateBounds=function(t){return Array.isArray(t)&amp;&amp;4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},M.prototype.contains=function(e){var r=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),a=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),o=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x&gt;=n&amp;&amp;e.x&lt;a&amp;&amp;e.y&gt;=i&amp;&amp;e.y&lt;o};var S=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=&quot;vector&quot;,this.minzoom=0,this.maxzoom=22,this.scheme=&quot;xyz&quot;,this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;promoteId&quot;])),this._options=t.extend({type:&quot;vector&quot;},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(&quot;vector tile sources must have a tileSize of 512&quot;);this.setEventedParent(a)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=A(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new M(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(n,i){return delete e.request,e.aborted?r(null):n&amp;&amp;404!==n.status?r(n):(i&amp;&amp;i.resourceTiming&amp;&amp;(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&amp;&amp;i&amp;&amp;e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&amp;&amp;(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&amp;&amp;&quot;expired&quot;!==e.state?&quot;loading&quot;===e.state?e.reloadCallback=r:e.request=e.actor.send(&quot;reloadTile&quot;,i,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send(&quot;loadTile&quot;,i,a.bind(this)))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.actor&amp;&amp;t.actor.send(&quot;abortTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&amp;&amp;t.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),E=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=&quot;raster&quot;,this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=&quot;xyz&quot;,this.tileSize=512,this._loaded=!1,this._options=t.extend({type:&quot;raster&quot;},n),t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;]))}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=A(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new M(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(i)e.state=&quot;errored&quot;,r(i);else if(a){n.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=n.map.painter.context,s=o.gl;e.texture=n.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new t.Texture(o,a,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&amp;&amp;s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state=&quot;loaded&quot;,t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&amp;&amp;(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&amp;&amp;this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),L=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=&quot;raster-dem&quot;,this.maxzoom=22,this._options=t.extend({type:&quot;raster-dem&quot;},n),this.encoding=n.encoding||&quot;mapbox&quot;}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.serialize=function(){return{type:&quot;raster-dem&quot;,url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(t,n){t&amp;&amp;(e.state=&quot;errored&quot;,r(t)),n&amp;&amp;(e.dem=n,e.needsHillshadePrepare=!0,e.state=&quot;loaded&quot;,r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(n)e.state=&quot;errored&quot;,r(n);else if(a){this.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=t.window.ImageBitmap&amp;&amp;a instanceof t.window.ImageBitmap&amp;&amp;t.offscreenCanvasSupported()?a:t.browser.getImageData(a,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&amp;&amp;&quot;expired&quot;!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send(&quot;loadDEMTile&quot;,s,i.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y&gt;0&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1&lt;n&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&amp;&amp;this.map.painter.saveTileTexture(t.demTexture),t.fbo&amp;&amp;(t.fbo.destroy(),delete t.fbo),t.dem&amp;&amp;delete t.dem,delete t.neighboringTiles,t.state=&quot;unloaded&quot;,t.actor&amp;&amp;t.actor.send(&quot;removeDEMTile&quot;,{uid:t.uid,source:this.id})},r}(E),C=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=&quot;geojson&quot;,this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&amp;&amp;(this.maxzoom=n.maxzoom),n.type&amp;&amp;(this.type=n.type),n.attribution&amp;&amp;(this.attribution=n.attribution),this.promoteId=n.promoteId;var o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties},n.workerOptions)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;};e._collectResourceTiming&amp;&amp;e._resourceTiming&amp;&amp;e._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(&quot;data&quot;,n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;};r._collectResourceTiming&amp;&amp;r._resourceTiming&amp;&amp;r._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(&quot;data&quot;,n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send(&quot;geojson.getClusterExpansionZoom&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send(&quot;geojson.getClusterChildren&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send(&quot;geojson.getClusterLeaves&quot;,{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;&quot;string&quot;==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+&quot;.loadData&quot;,n,(function(t,i){r._removed||i&amp;&amp;i.abandoned||(r._loaded=!0,i&amp;&amp;i.resourceTiming&amp;&amp;i.resourceTiming[r.id]&amp;&amp;(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+&quot;.coalesce&quot;,{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?&quot;reloadTile&quot;:&quot;loadTile&quot;;e.actor=this.actor;var a={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};e.request=this.actor.send(i,a,(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,&quot;reloadTile&quot;===i),r(null))}))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send(&quot;removeSource&quot;,{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),P=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2},{name:&quot;a_texture_pos&quot;,type:&quot;Int16&quot;,components:2}]),I=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=&quot;image&quot;,this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&amp;&amp;(n.image=a,e&amp;&amp;(n.coordinates=e),r&amp;&amp;r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&amp;&amp;t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&amp;&amp;(this.setCoordinates(this.coordinates),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;o&lt;s.length;o+=1){var l=s[o];r=Math.min(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y)}var c=i-r,u=a-n,f=Math.max(c,u),h=Math.max(0,Math.floor(-Math.log(f)/Math.LN2)),p=Math.pow(2,h);return new t.CanonicalTileID(h,Math.floor((r+i)/2*p),Math.floor((n+a)/2*p))}(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&amp;&amp;(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&amp;&amp;this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&amp;&amp;this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=&quot;errored&quot;,e(null))},r.prototype.serialize=function(){return{type:&quot;image&quot;,url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented);var O=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=&quot;video&quot;,this.options=r}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,i=r.urls;n&lt;i.length;n+=1){var a=i[n];this.urls.push(this.map._requestManager.transformRequest(a,t.ResourceType.Source).url)}t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(e.video=n,e.video.loop=!0,e.video.addEventListener(&quot;playing&quot;,(function(){e.map.triggerRepaint()})),e.map&amp;&amp;e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&amp;&amp;this.video.pause()},r.prototype.play=function(){this.video&amp;&amp;this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e&lt;r.start(0)||e&gt;r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+this.id,null,&quot;Playback for this video can be set only between the &quot;+r.start(0)+&quot; and &quot;+r.end(0)+&quot;-second mark.&quot;))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&amp;&amp;(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState&lt;2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;video&quot;,urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&amp;&amp;!this.video.paused},r}(I),z=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&amp;&amp;4===n.coordinates.length&amp;&amp;!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return&quot;number&quot;!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;coordinates&quot; property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;coordinates&quot;'))),n.animate&amp;&amp;&quot;boolean&quot;!=typeof n.animate&amp;&amp;this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'optional &quot;animate&quot; property must be a boolean value'))),n.canvas?&quot;string&quot;==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;canvas&quot; must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;canvas&quot;'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(&quot;Canvas dimensions cannot be less than or equal to zero.&quot;))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&amp;&amp;(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&amp;&amp;this.animate&amp;&amp;this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&amp;&amp;(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&amp;&amp;(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&amp;&amp;0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&amp;&amp;this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];&quot;loaded&quot;!==a.state&amp;&amp;(a.state=&quot;loaded&quot;,a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;canvas&quot;,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t&lt;e.length;t+=1){var r=e[t];if(isNaN(r)||r&lt;=0)return!0}return!1},r}(I),D={vector:S,raster:E,&quot;raster-dem&quot;:L,geojson:C,video:O,image:I,canvas:z};function R(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function F(t,e,r,n,i,a){var o=function(t,e,r){if(t)for(var n=0,i=t;n&lt;i.length;n+=1){var a=e[i[n]];if(a&amp;&amp;a.source===r&amp;&amp;&quot;fill-extrusion&quot;===a.type)return!0}else for(var o in e){var s=e[o];if(s.source===r&amp;&amp;&quot;fill-extrusion&quot;===s.type)return!0}return!1}(i&amp;&amp;i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(B);for(var c=[],u=0,f=l;u&lt;f.length;u+=1){var h=f[u];c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,r,t._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,i,a,s,R(t.transform,h.tileID))})}var p=function(t){for(var e={},r={},n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p&lt;d.length;p+=1){var g=d[p];f[g.featureIndex]||(f[g.featureIndex]=!0,h.push(g))}}return e}(c);for(var d in p)p[d].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer[&quot;source-layer&quot;],r.id);r.source=r.layer.source,r.layer[&quot;source-layer&quot;]&amp;&amp;(r.sourceLayer=r.layer[&quot;source-layer&quot;]),r.state=n}));return p}function B(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var N=function(t,e){this.max=t,this.onRemove=e,this.reset()};N.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e&lt;r.length;e+=1){var n=r[e];n.timeout&amp;&amp;clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},N.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&amp;&amp;(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&amp;&amp;(a.timeout=setTimeout((function(){n.remove(t,a)}),r)),this.data[i].push(a),this.order.push(i),this.order.length&gt;this.max){var o=this._getAndRemoveByKey(this.order[0]);o&amp;&amp;this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&amp;&amp;clearTimeout(e.timeout),0===this.data[t].length&amp;&amp;delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&amp;&amp;clearTimeout(i.timeout),0===this.data[r].length&amp;&amp;delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length&gt;this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&amp;&amp;this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n&lt;i.length;n+=1){var a=i[n];t(a.value)||e.push(a)}for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var j=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};j.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},j.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},j.prototype.destroy=function(){var t=this.context.gl;this.buffer&amp;&amp;(t.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:&quot;BYTE&quot;,Uint8:&quot;UNSIGNED_BYTE&quot;,Int16:&quot;SHORT&quot;,Uint16:&quot;UNSIGNED_SHORT&quot;,Int32:&quot;INT&quot;,Uint32:&quot;UNSIGNED_INT&quot;,Float32:&quot;FLOAT&quot;},V=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var r=0;r&lt;this.attributes.length;r++){var n=this.attributes[r],i=e.attributes[n.name];void 0!==i&amp;&amp;t.enableVertexAttribArray(i)}},V.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n&lt;this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&amp;&amp;t.vertexAttribPointer(a,i.components,t[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},V.prototype.destroy=function(){var t=this.context.gl;this.buffer&amp;&amp;(t.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var H=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),G=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),W=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&amp;&amp;(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&amp;&amp;(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),$=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),nt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),it=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),at=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),ot=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),gt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),vt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&amp;&amp;(t!==this.current||this.dirty)&amp;&amp;(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(_t),Tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(_t),kt=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var i=t.gl,a=this.framebuffer=i.createFramebuffer();this.colorAttachment=new wt(t,a),n&amp;&amp;(this.depthAttachment=new Tt(t,a))};kt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&amp;&amp;t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&amp;&amp;t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var At=function(t,e,r){this.func=t,this.mask=e,this.range=r};At.ReadOnly=!1,At.ReadWrite=!0,At.disabled=new At(519,At.ReadOnly,[0,1]);var Mt=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};Mt.disabled=new Mt({func:519,mask:0},0,0,7680,7680,7680);var St=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};St.disabled=new St(St.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),St.unblended=new St(St.Replace,t.Color.transparent,[!0,!0,!0,!0]),St.alphaBlended=new St([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Et=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Et.disabled=new Et(!1,1029,2305),Et.backCCW=new Et(!0,1029,2305);var Lt=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(&quot;OES_vertex_array_object&quot;),this.clearColor=new H(this),this.clearDepth=new G(this),this.clearStencil=new Y(this),this.colorMask=new W(this),this.depthMask=new X(this),this.stencilMask=new Z(this),this.stencilFunc=new J(this),this.stencilOp=new K(this),this.stencilTest=new Q(this),this.depthRange=new $(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new nt(this),this.blendColor=new it(this),this.blendEquation=new at(this),this.cullFace=new ot(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ct(this),this.activeTexture=new ut(this),this.viewport=new ft(this),this.bindFramebuffer=new ht(this),this.bindRenderbuffer=new pt(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new gt(this),this.bindElementBuffer=new mt(this),this.bindVertexArrayOES=this.extVertexArrayObject&amp;&amp;new vt(this),this.pixelStoreUnpack=new yt(this),this.pixelStoreUnpackPremultiplyAlpha=new xt(this),this.pixelStoreUnpackFlipY=new bt(this),this.extTextureFilterAnisotropic=t.getExtension(&quot;EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;MOZ_EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;WEBKIT_EXT_texture_filter_anisotropic&quot;),this.extTextureFilterAnisotropic&amp;&amp;(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(&quot;OES_texture_half_float&quot;),this.extTextureHalfFloat&amp;&amp;(t.getExtension(&quot;OES_texture_half_float_linear&quot;),this.extRenderToTextureHalfFloat=t.getExtension(&quot;EXT_color_buffer_half_float&quot;)),this.extTimerQuery=t.getExtension(&quot;EXT_disjoint_timer_query&quot;)};Lt.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Lt.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&amp;&amp;(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Lt.prototype.createIndexBuffer=function(t,e){return new j(this,t,e)},Lt.prototype.createVertexBuffer=function(t,e,r){return new V(this,t,e,r)},Lt.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Lt.prototype.createFramebuffer=function(t,e,r){return new kt(this,t,e,r)},Lt.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&amp;&amp;(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&amp;&amp;(i|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Lt.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Lt.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Lt.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Lt.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,St.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Lt.prototype.unbindVAO=function(){this.extVertexArrayObject&amp;&amp;this.bindVertexArrayOES.set(null)};var Ct=function(e){function r(r,n,i){var a=this;e.call(this),this.id=r,this.dispatcher=i,this.on(&quot;data&quot;,(function(t){&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType&amp;&amp;(a._sourceLoaded=!0),a._sourceLoaded&amp;&amp;!a._paused&amp;&amp;&quot;source&quot;===t.dataType&amp;&amp;&quot;content&quot;===t.sourceDataType&amp;&amp;(a.reload(),a.transform&amp;&amp;a.update(a.transform))})),this.on(&quot;error&quot;,(function(){a._sourceErrored=!0})),this._source=function(e,r,n,i){var a=new D[r.type](e,r,n,i);if(a.id!==e)throw new Error(&quot;Expected Source id to be &quot;+e+&quot; instead of &quot;+a.id);return t.bindAll([&quot;load&quot;,&quot;abort&quot;,&quot;unload&quot;,&quot;serialize&quot;,&quot;prepare&quot;],a),a}(r,n,i,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&amp;&amp;this._source.onAdd&amp;&amp;this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&amp;&amp;this._source.onRemove&amp;&amp;this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if(&quot;loaded&quot;!==e.state&amp;&amp;&quot;errored&quot;!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&amp;&amp;this.reload(),this.transform&amp;&amp;this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&amp;&amp;this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(Pt).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var i in this._tiles)this._isIdRenderable(i,e)&amp;&amp;n.push(this._tiles[i]);return e?n.sort((function(e,n){var i=e.tileID,a=n.tileID,o=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle),s=new t.Point(a.canonical.x,a.canonical.y)._rotate(r.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(Pt).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&amp;&amp;this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&amp;&amp;this._tiles[t].hasData()&amp;&amp;!this._coveredTiles[t]&amp;&amp;(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)&quot;errored&quot;!==this._tiles[t].state&amp;&amp;this._reloadTile(t,&quot;reloading&quot;)},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&amp;&amp;(&quot;loading&quot;!==r.state&amp;&amp;(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=&quot;errored&quot;,void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),&quot;expired&quot;===n&amp;&amp;(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),&quot;raster-dem&quot;===this.getSource().type&amp;&amp;e.dem&amp;&amp;this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r&lt;e.length;r++){var n=e[r];if(t.neighboringTiles&amp;&amp;t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&amp;&amp;0===n||Math.abs(n)&gt;1||(Math.abs(r)&gt;1&amp;&amp;(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&amp;&amp;(r-=i)),e.dem&amp;&amp;t.dem&amp;&amp;(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&amp;&amp;t.neighboringTiles[a]&amp;&amp;(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ&lt;=e||a.tileID.overscaledZ&gt;r)){for(var o=a.tileID;a&amp;&amp;a.tileID.overscaledZ&gt;e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&amp;&amp;a.hasData()&amp;&amp;(o=s)}for(var l=o;l.overscaledZ&gt;e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&amp;&amp;r.tileID.overscaledZ&gt;=e?r:null}for(var n=t.overscaledZ-1;n&gt;=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&amp;&amp;e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),r=Math.floor(5*e),n=&quot;number&quot;==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(n)},r.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,r=Math.round(e);if(this._prevLng=t,r){var n={};for(var i in this._tiles){var a=this._tiles[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+r),n[a.tileID.key]=a}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&amp;&amp;!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&amp;&amp;(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(It(this._source.type)){for(var c={},u={},f=0,h=Object.keys(l);f&lt;h.length;f+=1){var p=h[f],d=l[p],g=this._tiles[p];if(g&amp;&amp;!(g.fadeEndTime&amp;&amp;g.fadeEndTime&lt;=t.browser.now())){var m=this.findLoadedParent(d,o);m&amp;&amp;(this._addTile(m.tileID),c[m.tileID.key]=m.tileID),u[p]=d}}for(var v in this._retainLoadedChildren(u,a,s,l),c)l[v]||(this._coveredTiles[v]=!0,l[v]=c[v])}for(var y in l)this._tiles[y].clearFadeHold();for(var x=0,b=t.keysDifference(this._tiles,l);x&lt;b.length;x+=1){var _=b[x],w=this._tiles[_];w.hasSymbolBuckets&amp;&amp;!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&amp;&amp;!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&amp;&amp;this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,c=t;l&lt;c.length;l+=1){var u=c[l],f=this._addTile(u);n[u.key]=u,f.hasData()||e&lt;this._source.maxzoom&amp;&amp;(s[u.key]=u)}this._retainLoadedChildren(s,e,o,n);for(var h=0,p=t;h&lt;p.length;h+=1){var d=p[h],g=this._tiles[d.key];if(!g.hasData()){if(e+1&gt;this._source.maxzoom){var m=d.children(this._source.maxzoom)[0],v=this.getTile(m);if(v&amp;&amp;v.hasData()){n[m.key]=m;continue}}else{var y=d.children(this._source.maxzoom);if(n[y[0].key]&amp;&amp;n[y[1].key]&amp;&amp;n[y[2].key]&amp;&amp;n[y[3].key])continue}for(var x=g.wasRequested(),b=d.overscaledZ-1;b&gt;=a;--b){var _=d.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(g=this.getTile(_))&amp;&amp;x&amp;&amp;(g=this._addTile(_)),g&amp;&amp;(n[_.key]=_,x=g.wasRequested(),g.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ&gt;0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._loadedParentTiles[s]=r}}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&amp;&amp;(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&amp;&amp;(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(&quot;dataloading&quot;,{tile:r,coord:r.tileID,dataType:&quot;source&quot;})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&amp;&amp;(this._timers[t]=setTimeout((function(){r._reloadTile(t,&quot;expired&quot;),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&amp;&amp;(e.uses--,delete this._tiles[t],this._timers[t]&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses&gt;0||(e.hasData()&amp;&amp;&quot;reloading&quot;!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,h=1/0,p=-1/0,d=-1/0,g=0,m=c;g&lt;m.length;g+=1){var v=m[g];f=Math.min(f,v.x),h=Math.min(h,v.y),p=Math.max(p,v.x),d=Math.max(d,v.y)}for(var y=function(e){var n=i._tiles[u[e]];if(!n.holdingForFade()){var s=n.tileID,g=Math.pow(2,o.zoom-n.tileID.overscaledZ),m=r*n.queryPadding*t.EXTENT/n.tileSize/g,v=[s.getTilePoint(new t.MercatorCoordinate(f,h)),s.getTilePoint(new t.MercatorCoordinate(p,d))];if(v[0].x-m&lt;t.EXTENT&amp;&amp;v[0].y-m&lt;t.EXTENT&amp;&amp;v[1].x+m&gt;=0&amp;&amp;v[1].y+m&gt;=0){var y=l.map((function(t){return s.getTilePoint(t)})),x=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:g})}}},x=0;x&lt;u.length;x++)y(x);return a},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,i=r;n&lt;i.length;n+=1){var a=i[n];a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(It(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&amp;&amp;r.fadeEndTime&gt;=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){t=t||&quot;_geojsonTileLayer&quot;,this._state.updateState(t,e,r)},r.prototype.removeFeatureState=function(t,e,r){t=t||&quot;_geojsonTileLayer&quot;,this._state.removeFeatureState(t,e,r)},r.prototype.getFeatureState=function(t,e){return t=t||&quot;_geojsonTileLayer&quot;,this._state.getState(t,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&amp;&amp;n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles){this._tiles[r].hasDependency(t,e)&amp;&amp;this._reloadTile(r,&quot;reloading&quot;)}this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function Pt(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap&lt;0),n=Math.abs(2*e.wrap)-+(e.wrap&lt;0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function It(t){return&quot;raster&quot;===t||&quot;image&quot;===t||&quot;video&quot;===t}function Ot(){return new t.window.Worker(Zi.workerUrl)}Ct.maxOverzooming=10,Ct.maxUnderzooming=3;var zt=&quot;mapboxgl_preloaded_worker_pool&quot;,Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length&lt;Dt.workerCount;)this.workers.push(new Ot);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&amp;&amp;(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[zt]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,Ft=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Rt||(Rt=new Dt),Rt}function Nt(e,r){var n={};for(var i in e)&quot;ref&quot;!==i&amp;&amp;(n[i]=e[i]);return t.refProperties.forEach((function(t){t in r&amp;&amp;(n[t]=r[t])})),n}function jt(t){t=t.slice();for(var e=Object.create(null),r=0;r&lt;t.length;r++)e[t[r].id]=t[r];for(var n=0;n&lt;t.length;n++)&quot;ref&quot;in t[n]&amp;&amp;(t[n]=Nt(t[n],e[t[n].ref]));return t}Dt.workerCount=Math.max(Math.min(Ft,6),1);var Ut={setStyle:&quot;setStyle&quot;,addLayer:&quot;addLayer&quot;,removeLayer:&quot;removeLayer&quot;,setPaintProperty:&quot;setPaintProperty&quot;,setLayoutProperty:&quot;setLayoutProperty&quot;,setFilter:&quot;setFilter&quot;,addSource:&quot;addSource&quot;,removeSource:&quot;removeSource&quot;,setGeoJSONSourceData:&quot;setGeoJSONSourceData&quot;,setLayerZoomRange:&quot;setLayerZoomRange&quot;,setLayerProperty:&quot;setLayerProperty&quot;,setCenter:&quot;setCenter&quot;,setZoom:&quot;setZoom&quot;,setBearing:&quot;setBearing&quot;,setPitch:&quot;setPitch&quot;,setSprite:&quot;setSprite&quot;,setGlyphs:&quot;setGlyphs&quot;,setTransition:&quot;setTransition&quot;,setLight:&quot;setLight&quot;};function Vt(t,e,r){r.push({command:Ut.addSource,args:[t,e[t]]})}function qt(t,e,r){e.push({command:Ut.removeSource,args:[t]}),r[t]=!0}function Ht(t,e,r,n){qt(t,r,n),Vt(t,e,r)}function Gt(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;return!0}function Yt(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&amp;&amp;!e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function Wt(t){return t.id}function Xt(t,e){return t[e.id]=e,t}function Zt(e,r){if(!e)return[{command:Ut.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:Ut.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:Ut.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:Ut.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:Ut.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:Ut.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:Ut.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:Ut.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:Ut.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:Ut.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&amp;&amp;(r.hasOwnProperty(a)||qt(a,n,i));for(a in r)r.hasOwnProperty(a)&amp;&amp;(e.hasOwnProperty(a)?t.deepEqual(e[a],r[a])||(&quot;geojson&quot;===e[a].type&amp;&amp;&quot;geojson&quot;===r[a].type&amp;&amp;Gt(e,r,a)?n.push({command:Ut.setGeoJSONSourceData,args:[a,r[a].data]}):Ht(a,r,n,i)):Vt(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&amp;&amp;e.layers.forEach((function(t){i[t.source]?n.push({command:Ut.removeLayer,args:[t.id]}):o.push(t)})),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(Wt),h=r.map(Wt),p=e.reduce(Xt,{}),d=r.reduce(Xt,{}),g=f.slice(),m=Object.create(null);for(i=0,a=0;i&lt;f.length;i++)o=f[i],d.hasOwnProperty(o)?a++:(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i&lt;h.length;i++)o=h[h.length-1-i],g[g.length-1-i]!==o&amp;&amp;(p.hasOwnProperty(o)?(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,c=g[g.length-i],n.push({command:Ut.addLayer,args:[d[o],c]}),g.splice(g.length-i,0,o),m[o]=!0);for(i=0;i&lt;h.length;i++)if(s=p[o=h[i]],l=d[o],!m[o]&amp;&amp;!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&amp;&amp;t.deepEqual(s[&quot;source-layer&quot;],l[&quot;source-layer&quot;])&amp;&amp;t.deepEqual(s.type,l.type)){for(u in Yt(s.layout,l.layout,n,o,null,Ut.setLayoutProperty),Yt(s.paint,l.paint,n,o,null,Ut.setPaintProperty),t.deepEqual(s.filter,l.filter)||n.push({command:Ut.setFilter,args:[o,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&amp;&amp;t.deepEqual(s.maxzoom,l.maxzoom)||n.push({command:Ut.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&amp;&amp;!s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:Ut.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:Ut.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(&quot;Unable to compute style diff:&quot;,t),n=[{command:Ut.setStyle,args:[r]}]}return n}var Jt=function(t,e){this.reset(t,e)};Jt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r&lt;this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Jt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],i=e*this.paddedLength+this.padding;n&lt;i&amp;&amp;r&lt;this._distances.length;)n=this._distances[++r];var a=r-1,o=this._distances[a],s=n-o,l=s&gt;0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Kt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a&lt;this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Qt(e,r,n,i,a){var o=t.create();return r?(t.scale(o,o,[1/a,1/a,1]),n||t.rotateZ(o,o,i.angle)):t.multiply(o,i.labelPlaneMatrix,e),o}function $t(e,r,n,i,a){if(r){var o=t.clone(e);return t.scale(o,o,[a,a,1]),n||t.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function te(e,r){var n=[e.x,e.y,0,1];fe(n,n,r);var i=n[3];return{point:new t.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function ee(t,e){return.5+t/e*.5}function re(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r&gt;=-e[0]&amp;&amp;r&lt;=e[0]&amp;&amp;n&gt;=-e[1]&amp;&amp;n&lt;=e[1]}function ne(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,m=!1,v=0;v&lt;d.length;v++){var y=d.get(v);if(y.hidden||y.writingMode===t.WritingMode.vertical&amp;&amp;!m)ue(y.numGlyphs,h);else{m=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(x,x,r),re(x,f)){var b=x[3],_=ee(n.transform.cameraToCenterDistance,b),w=t.evaluateSizeForFeature(c,u,y),T=s?w/_:w*_,k=new t.Point(y.anchorX,y.anchorY),A=te(k,a).point,M={},S=oe(y,T,!1,l,r,a,o,e.glyphOffsetArray,p,h,A,k,M,g);m=S.useVertical,(S.notEnoughRoom||m||S.needsFlipping&amp;&amp;oe(y,T,!0,l,r,a,o,e.glyphOffsetArray,p,h,A,k,M,g).notEnoughRoom)&amp;&amp;ue(y.numGlyphs,h)}else ue(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ie(t,e,r,n,i,a,o,s,l,c,u){var f=s.glyphStartIndex+s.numGlyphs,h=s.lineStartIndex,p=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),g=e.getoffsetX(f-1),m=le(t*d,r,n,i,a,o,s.segment,h,p,l,c,u);if(!m)return null;var v=le(t*g,r,n,i,a,o,s.segment,h,p,l,c,u);return v?{first:m,last:v}:null}function ae(e,r,n,i){if(e===t.WritingMode.horizontal&amp;&amp;Math.abs(n.y-r.y)&gt;Math.abs(n.x-r.x)*i)return{useVertical:!0};return(e===t.WritingMode.vertical?r.y&lt;n.y:r.x&gt;n.x)?{needsFlipping:!0}:null}function oe(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=r/24,v=e.lineOffsetX*m,y=e.lineOffsetY*m;if(e.numGlyphs&gt;1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ie(m,l,v,y,n,f,h,e,c,o,p);if(!w)return{notEnoughRoom:!0};var T=te(w.first.point,s).point,k=te(w.last.point,s).point;if(i&amp;&amp;!n){var A=ae(e.writingMode,T,k,d);if(A)return A}g=[w.first];for(var M=e.glyphStartIndex+1;M&lt;x-1;M++)g.push(le(m*l.getoffsetX(M),v,y,n,f,h,e.segment,b,_,c,o,p));g.push(w.last)}else{if(i&amp;&amp;!n){var S=te(h,a).point,E=e.lineStartIndex+e.segment+1,L=new t.Point(c.getx(E),c.gety(E)),C=te(L,a),P=C.signedDistanceFromCamera&gt;0?C.point:se(h,L,S,1,a),I=ae(e.writingMode,S,P,d);if(I)return I}var O=le(m*l.getoffsetX(e.glyphStartIndex),v,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p);if(!O)return{notEnoughRoom:!0};g=[O]}for(var z=0,D=g;z&lt;D.length;z+=1){var R=D[z];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function se(t,e,r,n,i){var a=te(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function le(e,r,n,i,a,o,s,l,c,u,f,h){var p=i?e-r:e+r,d=p&gt;0?1:-1,g=0;i&amp;&amp;(d*=-1,g=Math.PI),d&lt;0&amp;&amp;(g+=Math.PI);for(var m=d&gt;0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(p),w=[];x+b&lt;=_;){if((m+=d)&lt;l||m&gt;=c)return null;if(y=v,w.push(v),void 0===(v=h[m])){var T=new t.Point(u.getx(m),u.gety(m)),k=te(T,f);if(k.signedDistanceFromCamera&gt;0)v=h[m]=k.point;else{var A=m-d;v=se(0===x?o:new t.Point(u.getx(A),u.gety(A)),T,y,_-x+1,f)}}x+=b,b=y.dist(v)}var M=(_-x)/b,S=v.sub(y),E=S.mult(M)._add(y);E._add(S._unit()._perp()._mult(n*d));var L=g+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:L,path:w}}Kt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Kt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Kt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Kt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Kt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Kt.prototype._query=function(t,e,r,n,i,a){if(r&lt;0||t&gt;this.width||n&lt;0||e&gt;this.height)return!i&amp;&amp;[];var o=[];if(t&lt;=0&amp;&amp;e&lt;=0&amp;&amp;this.width&lt;=r&amp;&amp;this.height&lt;=n){if(i)return!0;for(var s=0;s&lt;this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l&lt;this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],f=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-f,y1:u-f,x2:c+f,y2:u+f})}return a?o.filter(a):o}var h={hitTest:i,seenUids:{box:{},circle:{}}};return this._forEachCell(t,e,r,n,this._queryCell,o,h,a),i?o.length&gt;0:o},Kt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o&lt;0||a&gt;this.width||l&lt;0||s&gt;this.height)return!n&amp;&amp;[];var c=[],u={hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,c,u,i),n?c.length&gt;0:c},Kt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Kt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Kt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Kt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f&lt;h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(t&lt;=u[d+2]&amp;&amp;e&lt;=u[d+3]&amp;&amp;r&gt;=u[d+0]&amp;&amp;n&gt;=u[d+1]&amp;&amp;(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:u[d],y1:u[d+1],x2:u[d+2],y2:u[d+3]})}}}var g=this.circleCells[i];if(null!==g)for(var m=this.circles,v=0,y=g;v&lt;y.length;v+=1){var x=y[v];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circleAndRectCollide(m[b],m[b+1],m[b+2],t,e,r,n)&amp;&amp;(!s||s(this.circleKeys[x]))){if(o.hitTest)return a.push(!0),!0;var _=m[b],w=m[b+1],T=m[b+2];a.push({key:this.circleKeys[x],x1:_-T,y1:w-T,x2:_+T,y2:w+T})}}}},Kt.prototype._queryCellCircle=function(t,e,r,n,i,a,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[i];if(null!==u)for(var f=this.bboxes,h=0,p=u;h&lt;p.length;h+=1){var d=p[h];if(!c.box[d]){c.box[d]=!0;var g=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,f[g+0],f[g+1],f[g+2],f[g+3])&amp;&amp;(!s||s(this.boxKeys[d])))return a.push(!0),!0}}var m=this.circleCells[i];if(null!==m)for(var v=this.circles,y=0,x=m;y&lt;x.length;y+=1){var b=x[y];if(!c.circle[b]){c.circle[b]=!0;var _=3*b;if(this._circlesCollide(v[_],v[_+1],v[_+2],l.x,l.y,l.radius)&amp;&amp;(!s||s(this.circleKeys[b])))return a.push(!0),!0}}},Kt.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(r),f=this._convertToYCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.xCellCount*p+h;if(i.call(this,t,e,r,n,d,a,o,s))return}},Kt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Kt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Kt.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l&gt;o*o+s*s},Kt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l&gt;s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u&gt;c+r)return!1;if(l&lt;=s||u&lt;=c)return!0;var f=l-s,h=u-c;return f*f+h*h&lt;=r*r};var ce=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ue(t,e){for(var r=0;r&lt;t;r++){var n=e.length;e.resize(n+4),e.float32.set(ce,3*n)}}function fe(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}var he=function(t,e,r){void 0===e&amp;&amp;(e=new Kt(t.width+200,t.height+200,25)),void 0===r&amp;&amp;(r=new Kt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function pe(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}he.prototype.placeCollisionBox=function(t,e,r,n,i){var a=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),o=r*a.perspectiveRatio,s=t.x1*o+a.point.x,l=t.y1*o+a.point.y,c=t.x2*o+a.point.x,u=t.y2*o+a.point.y;return!this.isInsideGrid(s,l,c,u)||!e&amp;&amp;this.grid.hitTest(s,l,c,u,i)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},he.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],g=new t.Point(r.anchorX,r.anchorY),m=te(g,o),v=ee(this.transform.cameraToCenterDistance,m.signedDistanceFromCamera),y=(u?a/v:a*v)/t.ONE_EM,x=te(g,s).point,b=ie(y,i,r.lineOffsetX*y,r.lineOffsetY*y,!1,x,g,r,n,s,{}),_=!1,w=!1,T=!0;if(b){for(var k=.5*h*v+p,A=new t.Point(-100,-100),M=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new Jt,E=b.first,L=b.last,C=[],P=E.path.length-1;P&gt;=1;P--)C.push(E.path[P]);for(var I=1;I&lt;L.path.length;I++)C.push(L.path[I]);var O=2.5*k;if(l){var z=C.map((function(t){return te(t,l)}));C=z.some((function(t){return t.signedDistanceFromCamera&lt;=0}))?[]:z.map((function(t){return t.point}))}var D=[];if(C.length&gt;0){for(var R=C[0].clone(),F=C[0].clone(),B=1;B&lt;C.length;B++)R.x=Math.min(R.x,C[B].x),R.y=Math.min(R.y,C[B].y),F.x=Math.max(F.x,C[B].x),F.y=Math.max(F.y,C[B].y);D=R.x&gt;=A.x&amp;&amp;F.x&lt;=M.x&amp;&amp;R.y&gt;=A.y&amp;&amp;F.y&lt;=M.y?[C]:F.x&lt;A.x||R.x&gt;M.x||F.y&lt;A.y||R.y&gt;M.y?[]:t.clipLine([C],A.x,A.y,M.x,M.y)}for(var N=0,j=D;N&lt;j.length;N+=1){var U=j[N];S.reset(U,.25*k);var V=0;V=S.length&lt;=.5*k?1:Math.ceil(S.paddedLength/O)+1;for(var q=0;q&lt;V;q++){var H=q/Math.max(V-1,1),G=S.lerp(H),Y=G.x+100,W=G.y+100;d.push(Y,W,k,0);var X=Y-k,Z=W-k,J=Y+k,K=W+k;if(T=T&amp;&amp;this.isOffscreen(X,Z,J,K),w=w||this.isInsideGrid(X,Z,J,K),!e&amp;&amp;this.grid.hitTestCircle(Y,W,k,f)&amp;&amp;(_=!0,!c))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!c&amp;&amp;_||!w?[]:d,offscreen:T,collisionDetected:_}},he.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&amp;&amp;0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s&lt;l.length;s+=1){var c=l[s],u=new t.Point(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p&lt;d.length;p+=1){var g=d[p],m=g.key;if(void 0===f[m.bucketInstanceId]&amp;&amp;(f[m.bucketInstanceId]={}),!f[m.bucketInstanceId][m.featureIndex]){var v=[new t.Point(g.x1,g.y1),new t.Point(g.x2,g.y1),new t.Point(g.x2,g.y2),new t.Point(g.x1,g.y2)];t.polygonIntersectsPolygon(r,v)&amp;&amp;(f[m.bucketInstanceId][m.featureIndex]=!0,void 0===h[m.bucketInstanceId]&amp;&amp;(h[m.bucketInstanceId]=[]),h[m.bucketInstanceId].push(m.featureIndex))}}return h},he.prototype.insertCollisionBox=function(t,e,r,n,i){var a={bucketInstanceId:r,featureIndex:n,collisionGroupID:i};(e?this.ignoredGrid:this.grid).insert(a,t[0],t[1],t[2],t[3])},he.prototype.insertCollisionCircles=function(t,e,r,n,i){for(var a=e?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:n,collisionGroupID:i},s=0;s&lt;t.length;s+=4)a.insertCircle(o,t[s],t[s+1],t[s+2])},he.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return fe(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},he.prototype.isOffscreen=function(t,e,r,n){return r&lt;100||t&gt;=this.screenRightBoundary||n&lt;100||e&gt;this.screenBottomBoundary},he.prototype.isInsideGrid=function(t,e,r,n){return r&gt;=0&amp;&amp;t&lt;this.gridRightBoundary&amp;&amp;n&gt;=0&amp;&amp;e&lt;this.gridBottomBoundary},he.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var de=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&amp;&amp;r?1:0,this.placed=r};de.prototype.isHidden=function(){return 0===this.opacity&amp;&amp;!this.placed};var ge=function(t,e,r,n,i){this.text=new de(t?t.text:null,e,r,i),this.icon=new de(t?t.icon:null,e,n,i)};ge.prototype.isHidden=function(){return this.text.isHidden()&amp;&amp;this.icon.isHidden()};var me=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},ve=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ye=function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i},xe=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function be(e,r,n,i,a){var o=t.getAnchorAlignment(e),s=-(o.horizontalAlign-.5)*r,l=-(o.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,i);return new t.Point(s+c[0]*a,l+c[1]*a)}function _e(e,r,n,i,a,o){var s=e.x1,l=e.x2,c=e.y1,u=e.y2,f=e.anchorPointX,h=e.anchorPointY,p=new t.Point(r,n);return i&amp;&amp;p._rotate(a?o:-o),{x1:s+p.x,y1:c+p.y,x2:l+p.x,y2:u+p.y,anchorPointX:f,anchorPointY:h}}xe.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var we=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new he(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new xe(r),this.collisionCircleArrays={},this.prevPlacement=n,n&amp;&amp;(n.prevPlacement=void 0),this.placedOrientations={}};function Te(t,e,r,n,i){t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0)}we.prototype.getBucketParts=function(e,r,n,i){var a=n.getBucket(r),o=n.latestFeatureIndex;if(a&amp;&amp;o&amp;&amp;r.id===a.layerIds[0]){var s=n.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,f=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),h=&quot;map&quot;===l.get(&quot;text-pitch-alignment&quot;),p=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;),d=pe(n,1,this.transform.zoom),g=Qt(f,h,p,this.transform,d),m=null;if(h){var v=$t(f,h,p,this.transform,d);m=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[a.bucketInstanceId]=new ye(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);var y={bucket:a,layout:l,posMatrix:f,textLabelPlaneMatrix:g,labelToScreenMatrix:m,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(var x=0,b=a.sortKeyRanges;x&lt;b.length;x+=1){var _=b[x],w=_.sortKey,T=_.symbolInstanceStart,k=_.symbolInstanceEnd;e.push({sortKey:w,symbolInstanceStart:T,symbolInstanceEnd:k,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}},we.prototype.attemptAnchorPlacement=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=[f.textOffset0,f.textOffset1],v=be(t,r,n,m,i),y=this.collisionIndex.placeCollisionBox(_e(e,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate);if(d&amp;&amp;0===this.collisionIndex.placeCollisionBox(_e(d,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate).box.length)return;if(y.box.length&gt;0)return this.prevPlacement&amp;&amp;this.prevPlacement.variableOffsets[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID].text&amp;&amp;(g=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:m,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(h,t,f,p),h.allowVerticalPlacement&amp;&amp;(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:v,placedGlyphBoxes:y}},we.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,h=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,g=a.collisionGroup,m=s.get(&quot;text-optional&quot;),v=s.get(&quot;icon-optional&quot;),y=s.get(&quot;text-allow-overlap&quot;),x=s.get(&quot;icon-allow-overlap&quot;),b=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;),_=&quot;map&quot;===s.get(&quot;text-pitch-alignment&quot;),w=&quot;none&quot;!==s.get(&quot;icon-text-fit&quot;),T=&quot;viewport-y&quot;===s.get(&quot;symbol-z-order&quot;),k=y&amp;&amp;(x||!o.hasIconData()||v),A=x&amp;&amp;(y||!o.hasTextData()||m);!o.collisionArrays&amp;&amp;p&amp;&amp;o.deserializeCollisionBoxes(p);var M=function(e,a){if(!r[e.crossTileID])if(h)i.placements[e.crossTileID]=new me(!1,!1,!1);else{var p,T=!1,M=!1,S=!0,E=null,L={box:null,offscreen:null},C={box:null,offscreen:null},P=null,I=null,O=0,z=0,D=0;a.textFeatureIndex?O=a.textFeatureIndex:e.useRuntimeCollisionCircles&amp;&amp;(O=e.featureIndex),a.verticalTextFeatureIndex&amp;&amp;(z=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&amp;&amp;!r&amp;&amp;i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&amp;&amp;(i.placedOrientations[e.crossTileID]=a,n=a,i.markUsedOrientation(o,n,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;a.verticalTextBox)for(var i=0,s=o.writingModes;i&lt;s.length;i+=1){if(s[i]===t.WritingMode.vertical?(L=n(),C=L):L=r(),L&amp;&amp;L.box&amp;&amp;L.box.length)break}else L=r()};if(s.get(&quot;text-variable-anchor&quot;)){var N=s.get(&quot;text-variable-anchor&quot;);if(i.prevPlacement&amp;&amp;i.prevPlacement.variableOffsets[e.crossTileID]){var j=i.prevPlacement.variableOffsets[e.crossTileID];N.indexOf(j.anchor)&gt;0&amp;&amp;(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&amp;&amp;!x?r:null,h={box:[],offscreen:!1},p=y?2*N.length:N.length,d=0;d&lt;p;++d){var m=N[d%N.length],v=d&gt;=N.length,k=i.attemptAnchorPlacement(m,t,a,s,c,b,_,f,l,g,v,e,o,n,u);if(k&amp;&amp;(h=k.placedGlyphBoxes)&amp;&amp;h.box&amp;&amp;h.box.length){T=!0,E=k.shift;break}}return h};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox,n=L&amp;&amp;L.box&amp;&amp;L.box.length;return o.allowVerticalPlacement&amp;&amp;!n&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),L&amp;&amp;(T=L.box,S=L.offscreen);var V=F(L&amp;&amp;L.box);if(!T&amp;&amp;i.prevPlacement){var q=i.prevPlacement.variableOffsets[e.crossTileID];q&amp;&amp;(i.variableOffsets[e.crossTileID]=q,i.markUsedJustification(o,q.anchor,e,V))}}else{var H=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,g.predicate);return n&amp;&amp;n.box&amp;&amp;n.box.length&amp;&amp;(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return H(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?H(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(L&amp;&amp;L.box&amp;&amp;L.box.length)}}if(T=(p=L)&amp;&amp;p.box&amp;&amp;p.box.length&gt;0,S=p&amp;&amp;p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get(&quot;text-padding&quot;),X=e.collisionCircleDiameter;P=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,Y,l,c,u,n,_,g.predicate,X,W),T=y||P.circles.length&gt;0&amp;&amp;!P.collisionDetected,S=S&amp;&amp;P.offscreen}if(a.iconFeatureIndex&amp;&amp;(D=a.iconFeatureIndex),a.iconBox){var Z=function(t){var e=w&amp;&amp;E?_e(t,E.x,E.y,b,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,f,l,g.predicate)};M=C&amp;&amp;C.box&amp;&amp;C.box.length&amp;&amp;a.verticalIconBox?(I=Z(a.verticalIconBox)).box.length&gt;0:(I=Z(a.iconBox)).box.length&gt;0,S=S&amp;&amp;I.offscreen}var J=m||0===e.numHorizontalGlyphVertices&amp;&amp;0===e.numVerticalGlyphVertices,K=v||0===e.numIconVertices;if(J||K?K?J||(M=M&amp;&amp;T):T=M&amp;&amp;T:M=T=M&amp;&amp;T,T&amp;&amp;p&amp;&amp;p.box&amp;&amp;(C&amp;&amp;C.box&amp;&amp;z?i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,z,g.ID):i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,O,g.ID)),M&amp;&amp;I&amp;&amp;i.collisionIndex.insertCollisionBox(I.box,s.get(&quot;icon-ignore-placement&quot;),o.bucketInstanceId,D,g.ID),P&amp;&amp;(T&amp;&amp;i.collisionIndex.insertCollisionCircles(P.circles,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,O,g.ID),n)){var Q=o.bucketInstanceId,$=i.collisionCircleArrays[Q];void 0===$&amp;&amp;($=i.collisionCircleArrays[Q]=new ve);for(var tt=0;tt&lt;P.circles.length;tt+=4)$.circles.push(P.circles[tt+0]),$.circles.push(P.circles[tt+1]),$.circles.push(P.circles[tt+2]),$.circles.push(P.collisionDetected?1:0)}i.placements[e.crossTileID]=new me(T||k,M||A,S||o.justReloaded),r[e.crossTileID]=!0}};if(T)for(var S=o.getSortedSymbolIndexes(this.transform.angle),E=S.length-1;E&gt;=0;--E){var L=S[E];M(o.symbolInstances.get(L),o.collisionArrays[L])}else for(var C=e.symbolInstanceStart;C&lt;e.symbolInstanceEnd;C++)M(o.symbolInstances.get(C),o.collisionArrays[C]);if(n&amp;&amp;o.bucketInstanceId in this.collisionCircleArrays){var P=this.collisionCircleArrays[o.bucketInstanceId];t.invert(P.invProjMatrix,l),P.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},we.prototype.markUsedJustification=function(e,r,n,i){var a,o={left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex};a=i===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:o[t.getAnchorJustification(r)];for(var s=0,l=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];s&lt;l.length;s+=1){var c=l[s];c&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(c).crossTileID=a&gt;=0&amp;&amp;c!==a?0:n.crossTileID)}},we.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o&lt;s.length;o+=1){var l=s[o];e.text.placedSymbolArray.get(l).placedOrientation=i}n.verticalPlacedTextSymbolIndex&amp;&amp;(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)},we.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=i[s];c?(this.opacities[s]=new ge(c,n,l.text,l.icon),r=r||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new ge(null,n,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var u in i){var f=i[u];if(!this.opacities[u]){var h=new ge(f,n,!1,!1);h.isHidden()||(this.opacities[u]=h,r=r||f.text.placed||f.icon.placed)}}for(var p in a)this.variableOffsets[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.variableOffsets[p]=a[p]);for(var d in o)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=o[d]);r?this.lastPlacementChangeTime=t:&quot;number&quot;!=typeof this.lastPlacementChangeTime&amp;&amp;(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},we.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){var a=i[n],o=a.getBucket(t);o&amp;&amp;a.latestFeatureIndex&amp;&amp;t.id===o.layerIds[0]&amp;&amp;this.updateBucketOpacities(o,r,a.collisionBoxArray)}},we.prototype.updateBucketOpacities=function(e,r,n){var i=this;e.hasTextData()&amp;&amp;e.text.opacityVertexArray.clear(),e.hasIconData()&amp;&amp;e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexArray.clear();var a=e.layers[0].layout,o=new ge(null,0,!1,!1,!0),s=a.get(&quot;text-allow-overlap&quot;),l=a.get(&quot;icon-allow-overlap&quot;),c=a.get(&quot;text-variable-anchor&quot;),u=&quot;map&quot;===a.get(&quot;text-rotation-alignment&quot;),f=&quot;map&quot;===a.get(&quot;text-pitch-alignment&quot;),h=&quot;none&quot;!==a.get(&quot;icon-text-fit&quot;),p=new ge(null,0,s&amp;&amp;(l||!e.hasIconData()||a.get(&quot;icon-optional&quot;)),l&amp;&amp;(s||!e.hasTextData()||a.get(&quot;text-optional&quot;)),!0);!e.collisionArrays&amp;&amp;n&amp;&amp;(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&amp;&amp;e.deserializeCollisionBoxes(n);for(var d=function(t,e,r){for(var n=0;n&lt;e/4;n++)t.opacityVertexArray.emplaceBack(r)},g=function(n){var a=e.symbolInstances.get(n),s=a.numHorizontalGlyphVertices,l=a.numVerticalGlyphVertices,g=a.crossTileID,m=r[g],v=i.opacities[g];m?v=o:v||(v=p,i.opacities[g]=v),r[g]=!0;var y=s&gt;0||l&gt;0,x=a.numIconVertices&gt;0,b=i.placedOrientations[a.crossTileID],_=b===t.WritingMode.vertical,w=b===t.WritingMode.horizontal||b===t.WritingMode.horizontalOnly;if(y){var T=Pe(v.text),k=_?Ie:T;d(e.text,s,k);var A=w?Ie:T;d(e.text,l,A);var M=v.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(t).hidden=M||_?1:0)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=M||w?1:0);var S=i.variableOffsets[a.crossTileID];S&amp;&amp;i.markUsedJustification(e,S.anchor,a,b);var E=i.placedOrientations[a.crossTileID];E&amp;&amp;(i.markUsedJustification(e,&quot;left&quot;,a,E),i.markUsedOrientation(e,E,a))}if(x){var L=Pe(v.icon),C=!(h&amp;&amp;a.verticalPlacedIconSymbolIndex&amp;&amp;_);if(a.placedIconSymbolIndex&gt;=0){var P=C?L:Ie;d(e.icon,a.numIconVertices,P),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=v.icon.isHidden()}if(a.verticalPlacedIconSymbolIndex&gt;=0){var I=C?Ie:L;d(e.icon,a.numVerticalIconVertices,I),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden()}}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var O=e.collisionArrays[n];if(O){var z=new t.Point(0,0);if(O.textBox||O.verticalTextBox){var D=!0;if(c){var R=i.variableOffsets[g];R?(z=be(R.anchor,R.width,R.height,R.textOffset,R.textBoxScale),u&amp;&amp;z._rotate(f?i.transform.angle:-i.transform.angle)):D=!1}O.textBox&amp;&amp;Te(e.textCollisionBox.collisionVertexArray,v.text.placed,!D||_,z.x,z.y),O.verticalTextBox&amp;&amp;Te(e.textCollisionBox.collisionVertexArray,v.text.placed,!D||w,z.x,z.y)}var F=Boolean(!w&amp;&amp;O.verticalIconBox);O.iconBox&amp;&amp;Te(e.iconCollisionBox.collisionVertexArray,v.icon.placed,F,h?z.x:0,h?z.y:0),O.verticalIconBox&amp;&amp;Te(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!F,h?z.x:0,h?z.y:0)}}},m=0;m&lt;e.symbolInstances.length;m++)g(m);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&amp;&amp;(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&amp;&amp;e.text.opacityVertexBuffer&amp;&amp;e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&amp;&amp;e.icon.opacityVertexBuffer&amp;&amp;e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexBuffer&amp;&amp;e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexBuffer&amp;&amp;e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},we.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},we.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},we.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime&lt;this.fadeDuration},we.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r&gt;t},we.prototype.setStale=function(){this.stale=!0};var ke=Math.pow(2,25),Ae=Math.pow(2,24),Me=Math.pow(2,17),Se=Math.pow(2,16),Ee=Math.pow(2,9),Le=Math.pow(2,8),Ce=Math.pow(2,1);function Pe(t){if(0===t.opacity&amp;&amp;!t.placed)return 0;if(1===t.opacity&amp;&amp;t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*ke+e*Ae+r*Me+e*Se+r*Ee+e*Le+r*Ce+e}var Ie=0,Oe=function(t){this._sortAcrossTiles=&quot;viewport-y&quot;!==t.layout.get(&quot;symbol-z-order&quot;)&amp;&amp;void 0!==t.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Oe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex&lt;t.length;){var o=t[this._currentTileIndex];if(e.getBucketParts(a,n,o,this._sortAcrossTiles),this._currentTileIndex++,i())return!0}for(this._sortAcrossTiles&amp;&amp;(this._sortAcrossTiles=!1,a.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex&lt;a.length;){var s=a[this._currentPartIndex];if(e.placeLayerBucketPart(s,this._seenCrossTileIDs,r),this._currentPartIndex++,i())return!0}return!1};var ze=function(t,e,r,n,i,a,o){this.placement=new we(t,i,a,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};ze.prototype.isDone=function(){return this._done},ze.prototype.continuePlacement=function(e,r,n){for(var i=this,a=t.browser.now(),o=function(){var e=t.browser.now()-a;return!i._forceFullPlacement&amp;&amp;e&gt;2};this._currentPlacementIndex&gt;=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if(&quot;symbol&quot;===s.type&amp;&amp;(!s.minzoom||s.minzoom&lt;=l)&amp;&amp;(!s.maxzoom||s.maxzoom&gt;l)){if(this._inProgressLayer||(this._inProgressLayer=new Oe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ze.prototype.commit=function(t){return this.placement.commit(t),this.placement};var De=512/t.EXTENT/2,Re=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n&lt;e.length;n++){var i=e.get(n),a=i.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};Re.prototype.getScaledCoordinates=function(e,r){var n=r.canonical.z-this.tileID.canonical.z,i=De/Math.pow(2,n);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*i),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*i)}},Re.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z&lt;e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i&lt;t.length;i++){var a=t.get(i);if(!a.crossTileID){var o=this.indexedSymbolInstances[a.key];if(o)for(var s=this.getScaledCoordinates(a,e),l=0,c=o;l&lt;c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)&lt;=n&amp;&amp;Math.abs(u.coord.y-s.y)&lt;=n&amp;&amp;!r[u.crossTileID]){r[u.crossTileID]=!0,a.crossTileID=u.crossTileID;break}}}}};var Fe=function(){this.maxCrossTileID=0};Fe.prototype.generate=function(){return++this.maxCrossTileID};var Be=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Be.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},Be.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&amp;&amp;this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n&lt;e.symbolInstances.length;n++){e.symbolInstances.get(n).crossTileID=0}this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var a in this.indexes){var o=this.indexes[a];if(Number(a)&gt;t.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&amp;&amp;l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&amp;&amp;c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u&lt;e.symbolInstances.length;u++){var f=e.symbolInstances.get(u);f.crossTileID||(f.crossTileID=r.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&amp;&amp;(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Re(t,e.symbolInstances,e.bucketInstanceId),!0},Be.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n&lt;i.length;n+=1){var a=i[n];delete this.usedCrossTileIDs[t][a.crossTileID]}},Be.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Ne=function(){this.layerIndexes={},this.crossTileIDs=new Fe,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Ne.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&amp;&amp;(n=this.layerIndexes[t.id]=new Be);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.getBucket(t);c&amp;&amp;t.id===c.layerIds[0]&amp;&amp;(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&amp;&amp;(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&amp;&amp;(i=!0),i},Ne.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var je=function(e,r){return t.emitValidationErrors(e,r&amp;&amp;r.filter((function(t){return&quot;source.canvas&quot;!==t.identifier})))},Ue=t.pick(Ut,[&quot;addLayer&quot;,&quot;removeLayer&quot;,&quot;setPaintProperty&quot;,&quot;setLayoutProperty&quot;,&quot;setFilter&quot;,&quot;addSource&quot;,&quot;removeSource&quot;,&quot;setLayerZoomRange&quot;,&quot;setLight&quot;,&quot;setTransition&quot;,&quot;setGeoJSONSourceData&quot;]),Ve=t.pick(Ut,[&quot;setCenter&quot;,&quot;setZoom&quot;,&quot;setBearing&quot;,&quot;setPitch&quot;]),qe=function(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var i=t.styleSpec.$root[n];if(i.required){var a=null;null!=(a=&quot;version&quot;===n?r:&quot;array&quot;===i.type?[]:{})&amp;&amp;(e[n]=a)}}return e}(),He=function(e){function r(n,i){var a=this;void 0===i&amp;&amp;(i={}),e.call(this),this.map=n,this.dispatcher=new k(Bt(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new x(n._requestManager,i.localIdeographFontFamily),this.lineAtlas=new T(256,512),this.crossTileSymbolIndex=new Ne,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast(&quot;setReferrer&quot;,t.getReferrer());var o=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){var r={pluginStatus:e.pluginStatus,pluginURL:e.pluginURL};o.dispatcher.broadcast(&quot;syncRTLPluginState&quot;,r,(function(e,r){if((t.triggerPluginCompletionEvent(e),r)&amp;&amp;r.every((function(t){return t})))for(var n in o.sourceCaches)o.sourceCaches[n].reload()}))})),this.on(&quot;data&quot;,(function(t){if(&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&amp;&amp;r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&amp;&amp;a._validateLayer(i)}}}}))}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;}));var i=&quot;boolean&quot;==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&amp;&amp;n._load(r,i)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._load(qe,!1)},r.prototype._load=function(e,r){if(!r||!je(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=jt(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast(&quot;setLayers&quot;,this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;})),this.fire(new t.Event(&quot;style.load&quot;))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=function(e,r,n){var i,a,o,s=t.browser.devicePixelRatio&gt;1?&quot;@2x&quot;:&quot;&quot;,l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.json&quot;),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.png&quot;),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&amp;&amp;a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,h=l.y,p=l.sdf,d=l.pixelRatio,g=l.stretchX,m=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:h},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:d,sdf:p,stretchX:g,stretchY:m,content:v}}n(null,r)}}return{cancel:function(){l&amp;&amp;(l.cancel(),l=null),c&amp;&amp;(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast(&quot;setImages&quot;,r._availableImages),r.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(&quot;geojson&quot;===i.type||i.vectorLayerIds&amp;&amp;-1===i.vectorLayerIds.indexOf(n))&amp;&amp;this.fire(new t.ErrorEvent(new Error('Source layer &quot;'+n+'&quot; does not exist on source &quot;'+i.id+'&quot; as specified by style layer &quot;'+e.id+'&quot;')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r],a=this._layers[i];&quot;custom&quot;!==a.type&amp;&amp;e.push(a.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&amp;&amp;this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(&quot;Style is not done loading&quot;)},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(n.length||i.length)&amp;&amp;this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[a];&quot;reload&quot;===o?this._reloadSource(a):&quot;clear&quot;===o&amp;&amp;this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var c=0,u=this._order;c&lt;u.length;c+=1){var f=u[c],h=this._layers[f];h.recalculate(e,this._availableImages),!h.isHidden(e.zoom)&amp;&amp;h.source&amp;&amp;(this.sourceCaches[h.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&amp;&amp;this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies([&quot;icons&quot;,&quot;patterns&quot;],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(&quot;updateLayers&quot;,{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),je(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=jt(e.layers);var n=Zt(this.serialize(),e).filter((function(t){return!(t.command in Ve)}));if(0===n.length)return!1;var i=n.filter((function(t){return!(t.command in Ue)}));if(i.length&gt;0)throw new Error(&quot;Unimplemented: &quot;+i.map((function(t){return t.command})).join(&quot;, &quot;)+&quot;.&quot;);return n.forEach((function(t){&quot;setTransition&quot;!==t.command&amp;&amp;r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;An image with this name already exists.&quot;)));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;No image with this name exists.&quot;)));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&amp;&amp;(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(&quot;There is already a source with this ID&quot;);if(!r.type)throw new Error(&quot;The type property must be defined, but the only the following properties were given: &quot;+Object.keys(r).join(&quot;, &quot;)+&quot;.&quot;);if(!([&quot;vector&quot;,&quot;raster&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;].indexOf(r.type)&gt;=0)||!this._validate(t.validateStyle.source,&quot;sources.&quot;+e,r,null,n)){this.map&amp;&amp;this.map._collectResourceTiming&amp;&amp;(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Ct(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(&quot;There is no source with this ID&quot;);for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source &quot;'+e+'&quot; cannot be removed while layer &quot;'+r+'&quot; is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(&quot;data&quot;,{sourceDataType:&quot;metadata&quot;,dataType:&quot;source&quot;,sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&amp;&amp;n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&amp;&amp;this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+i+'&quot; already exists on this map')));else{var a;if(&quot;custom&quot;===e.type){if(je(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if(&quot;object&quot;==typeof e.source&amp;&amp;(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,&quot;layers.&quot;+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&amp;&amp;-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&amp;&amp;a.source&amp;&amp;&quot;custom&quot;!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=&quot;clear&quot;:(this._updatedSources[a.source]=&quot;reload&quot;,this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&amp;&amp;a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&amp;&amp;-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be moved.&quot;)))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&amp;&amp;r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be removed.&quot;)))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&amp;&amp;i.maxzoom===n||(null!=r&amp;&amp;(i.minzoom=r),null!=n&amp;&amp;(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot have zoom extent.&quot;)))},r.prototype.setFilter=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,&quot;layers.&quot;+i.id+&quot;.filter&quot;,r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be filtered.&quot;)))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style.&quot;)))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&amp;&amp;this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;&quot;geojson&quot;===o&amp;&amp;i?this.fire(new t.ErrorEvent(new Error(&quot;GeoJSON sources cannot have a sourceLayer parameter.&quot;))):&quot;vector&quot;!==o||i?(void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o=&quot;vector&quot;===a?e.sourceLayer:void 0;&quot;vector&quot;!==a||o?r&amp;&amp;&quot;string&quot;!=typeof e.id&amp;&amp;&quot;number&quot;!=typeof e.id?this.fire(new t.ErrorEvent(new Error(&quot;A feature id is requred to remove its specific state property.&quot;))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if(&quot;vector&quot;!==i.getSource().type||n)return void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+r+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&amp;&amp;this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&amp;&amp;!this._updatedSources[t.source]&amp;&amp;&quot;raster&quot;!==this.sourceCaches[t.source].getSource().type&amp;&amp;(this._updatedSources[t.source]=&quot;reload&quot;,this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return&quot;fill-extrusion&quot;===e._layers[t].type},n={},i=[],a=this._order.length-1;a&gt;=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s&lt;l.length;s+=1){var c=l[s][o];if(c)for(var u=0,f=c;u&lt;f.length;u+=1){var h=f[u];i.push(h)}}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var p=[],d=this._order.length-1;d&gt;=0;d--){var g=this._order[d];if(r(g))for(var m=i.length-1;m&gt;=0;m--){var v=i[m].feature;if(n[v.layer.id]&lt;d)break;p.push(v),i.pop()}else for(var y=0,x=t;y&lt;x.length;y+=1){var b=x[y][g];if(b)for(var _=0,w=b;_&lt;w.length;_+=1){var T=w[_];p.push(T.feature)}}}return p},r.prototype.queryRenderedFeatures=function(e,r,n){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;queryRenderedFeatures.filter&quot;,r.filter,null,r);var i={};if(r&amp;&amp;r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(&quot;parameters.layers must be an Array.&quot;))),[];for(var a=0,o=r.layers;a&lt;o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+s+&quot;' does not exist in the map's style and cannot be queried for features.&quot;))),[];i[l.source]=!0}}var c=[];for(var u in r.availableImages=this._availableImages,this.sourceCaches)r.layers&amp;&amp;!i[u]||c.push(F(this.sourceCaches[u],this._layers,this._serializedLayers,e,r,n));return this.placement&amp;&amp;c.push(function(t,e,r,n,i,a,o){for(var s={},l=a.queryRenderedSymbols(n),c=[],u=0,f=Object.keys(l).map(Number);u&lt;f.length;u+=1){var h=f[u];c.push(o[h])}c.sort(B);for(var p=function(){var r=g[d],n=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var a in n){var o=s[a]=s[a]||[],c=n[a];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var u=0,f=c;u&lt;f.length;u+=1){var h=f[u];o.push(h)}}},d=0,g=c;d&lt;g.length;d+=1)p();var m=function(e){s[e].forEach((function(n){var i=n.feature,a=t[e],o=r[a.source].getFeatureState(i.layer[&quot;source-layer&quot;],i.id);i.source=i.layer.source,i.layer[&quot;source-layer&quot;]&amp;&amp;(i.sourceLayer=i.layer[&quot;source-layer&quot;]),i.state=o}))};for(var v in s)m(v);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;querySourceFeatures.filter&quot;,r.filter,null,r);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],i={},a=0;a&lt;r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called &quot;'+t+'&quot; already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(&quot;loadWorkerSource&quot;,{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&amp;&amp;(r={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var a in e)if(!t.deepEqual(e[a],n[a])){i=!0;break}if(i){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return void 0===a&amp;&amp;(a={}),(!a||!1!==a.validate)&amp;&amp;je(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},i)))},r.prototype._remove=function(){for(var e in this._request&amp;&amp;(this._request.cancel(),this._request=null),this._spriteRequest&amp;&amp;(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off(&quot;pluginStateChange&quot;,this._rtlTextPluginCallback),this._layers){this._layers[e].setEventedParent(null)}for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,i,a){void 0===a&amp;&amp;(a=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c&lt;u.length;c+=1){var f=u[c],h=this._layers[f];if(&quot;symbol&quot;===h.type){if(!l[h.source]){var p=this.sourceCaches[h.source];l[h.source]=p.getRenderableIds(!0).map((function(t){return p.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var d=this.crossTileSymbolIndex.addLayer(h,l[h.source],e.center.lng);o=o||d}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&amp;&amp;!this.placement.stillRecent(t.browser.now(),e.zoom))&amp;&amp;(this.pauseablePlacement=new ze(e,this._order,a,r,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&amp;&amp;(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),o&amp;&amp;this.pauseablePlacement.placement.setStale()),s||o)for(var g=0,m=this._order;g&lt;m.length;g+=1){var v=m[g],y=this._layers[v];&quot;symbol&quot;===y.type&amp;&amp;this.placement.updateLayerOpacities(y,l[y.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&amp;&amp;n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);He.getSourceType=function(t){return D[t]},He.setSourceType=function(t,e){D[t]=e},He.registerForPluginStateChange=t.registerForPluginStateChange;var Ge=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2}]),Ye=yr(&quot;#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif&quot;,&quot;#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}&quot;),We=yr(&quot;uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Xe=yr(&quot;uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}&quot;),Ze=yr(&quot;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width &lt; 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}&quot;),Je=yr(&quot;void main() {gl_FragColor=vec4(1.0);}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Ke=yr(&quot;uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}&quot;),Qe=yr(&quot;uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}&quot;),$e=yr(&quot;varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {gl_FragColor*=.1;}}&quot;,&quot;attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}&quot;),tr=yr(&quot;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}&quot;,&quot;attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx &gt;=2.0)),mix(-1.0,1.0,float(vertexIdx &gt;=1.0 &amp;&amp; vertexIdx &lt;=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}&quot;),er=yr(&quot;uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}&quot;,&quot;attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}&quot;),rr=yr(&quot;#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),nr=yr(&quot;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ir=yr(&quot;uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ar=yr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}&quot;),or=yr(&quot;varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t &gt; 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}&quot;),sr=yr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t &gt; 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 &amp;&amp; normal.y==0.0 &amp;&amp; normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}&quot;),lr=yr(&quot;#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom &lt; 2.0 ? 0.4 : u_zoom &lt; 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}&quot;),cr=yr(&quot;uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y &gt; 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}&quot;),ur=yr(&quot;uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),fr=yr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),hr=yr(&quot;uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}&quot;),pr=yr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}&quot;),dr=yr(&quot;uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a &gt; 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a &gt; 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}&quot;),gr=yr(&quot;uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}&quot;),mr=yr(&quot;#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}&quot;),vr=yr(&quot;#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}&quot;);function yr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifdef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o=&quot;float&quot;===i?&quot;vec2&quot;:&quot;vec4&quot;,s=a.match(/color/)?&quot;color&quot;:o;return n[a]?&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;}))}}var xr=Object.freeze({__proto__:null,prelude:Ye,background:We,backgroundPattern:Xe,circle:Ze,clippingMask:Je,heatmap:Ke,heatmapTexture:Qe,collisionBox:$e,collisionCircle:tr,debug:er,fill:rr,fillOutline:nr,fillOutlinePattern:ir,fillPattern:ar,fillExtrusion:or,fillExtrusionPattern:sr,hillshadePrepare:lr,hillshade:cr,line:ur,lineGradient:fr,linePattern:hr,lineSDF:pr,raster:dr,symbolIcon:gr,symbolSDF:mr,symbolTextAndIcon:vr}),br=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};br.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&amp;&amp;c&lt;n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&amp;&amp;(l=!0);var u=!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==r||l||this.boundIndexBuffer!==i||this.boundVertexOffset!==a||this.boundDynamicVertexBuffer!==o||this.boundDynamicVertexBuffer2!==s;!t.extVertexArrayObject||u?this.freshBind(e,r,n,i,a,o,s):(t.bindVertexArrayOES.set(this.vao),o&amp;&amp;o.bind(),i&amp;&amp;i.dynamicDraw&amp;&amp;i.bind(),s&amp;&amp;s.bind())},br.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&amp;&amp;this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f&lt;s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h&lt;p.length;h+=1){p[h].enableAttributes(u,t)}a&amp;&amp;a.enableAttributes(u,t),o&amp;&amp;o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,g=r;d&lt;g.length;d+=1){var m=g[d];m.bind(),m.setVertexAttribPointers(u,t,i)}a&amp;&amp;(a.bind(),a.setVertexAttribPointers(u,t,i)),n&amp;&amp;n.bind(),o&amp;&amp;(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},br.prototype.destroy=function(){this.vao&amp;&amp;(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var _r=function(t,e,r,n,i){var a=t.gl;this.program=a.createProgram();var o=r?r.defines():[];i&amp;&amp;o.push(&quot;#define OVERDRAW_INSPECTOR;&quot;);var s=o.concat(Ye.fragmentSource,e.fragmentSource).join(&quot;\n&quot;),l=o.concat(Ye.vertexSource,e.vertexSource).join(&quot;\n&quot;),c=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(c,s),a.compileShader(c),a.attachShader(this.program,c);var u=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(u,l),a.compileShader(u),a.attachShader(this.program,u);for(var f=r?r.layoutAttributes:[],h=0;h&lt;f.length;h++)a.bindAttribLocation(this.program,h,f[h].name);a.linkProgram(this.program),a.deleteShader(u),a.deleteShader(c),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var p={},d=0;d&lt;this.numAttributes;d++){var g=a.getActiveAttrib(this.program,d);g&amp;&amp;(this.attributes[g.name]=a.getAttribLocation(this.program,g.name))}for(var m=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),v=0;v&lt;m;v++){var y=a.getActiveUniform(this.program,v);y&amp;&amp;(p[y.name]=a.getUniformLocation(this.program,y.name))}this.fixedUniforms=n(t,p),this.binderUniforms=r?r.getUniforms(t,p):[]}}};function wr(t,e,r){var n=1/pe(r,1,e.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(r.tileID.canonical.x+r.tileID.wrap*i),s=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o&gt;&gt;16,s&gt;&gt;16],u_pixel_coord_lower:[65535&amp;o,65535&amp;s]}}_r.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&amp;&amp;p.setUniforms(t,this.binderUniforms,f,{zoom:h});for(var x=(m={},m[v.LINES]=2,m[v.TRIANGLES]=3,m[v.LINE_STRIP]=1,m)[e],b=0,_=u.get();b&lt;_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new br)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,w.vertexOffset,d,g),v.drawElements(e,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var Tr=function(e,r,n,i){var a=r.style.light,o=a.properties.get(&quot;position&quot;),s=[o.x,o.y,o.z],l=t.create$1();&quot;viewport&quot;===a.properties.get(&quot;anchor&quot;)&amp;&amp;t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get(&quot;color&quot;);return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get(&quot;intensity&quot;),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},kr=function(e,r,n,i,a,o,s){return t.extend(Tr(e,r,n,i),wr(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},Ar=function(t){return{u_matrix:t}},Mr=function(e,r,n,i){return t.extend(Ar(e),wr(n,r,i))},Sr=function(t,e){return{u_matrix:t,u_world:e}},Er=function(e,r,n,i,a){return t.extend(Mr(e,r,n,i),{u_world:a})},Lr=function(e,r,n,i){var a,o,s=e.transform;if(&quot;map&quot;===i.paint.get(&quot;circle-pitch-alignment&quot;)){var l=pe(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+(&quot;map&quot;===i.paint.get(&quot;circle-pitch-scale&quot;)),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get(&quot;circle-translate&quot;),i.paint.get(&quot;circle-translate-anchor&quot;)),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},Cr=function(t,e,r){var n=pe(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},Pr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Ir=function(t,e,r){return void 0===r&amp;&amp;(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Or=function(t){return{u_matrix:t}},zr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:pe(e,1,r),u_intensity:n}};function Dr(e,r){var n=Math.pow(2,r.canonical.z),i=r.canonical.y;return[new t.MercatorCoordinate(0,i/n).toLngLat().lat,new t.MercatorCoordinate(0,(i+1)/n).toLngLat().lat]}var Rr=function(e,r,n){var i=e.transform;return{u_matrix:Ur(e,r,n),u_ratio:1/pe(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Fr=function(e,r,n){return t.extend(Rr(e,r,n),{u_image:0})},Br=function(e,r,n,i){var a=e.transform,o=jr(r,a);return{u_matrix:Ur(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/pe(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Nr=function(e,r,n,i,a){var o=e.transform,s=e.lineAtlas,l=jr(r,o),c=&quot;round&quot;===n.layout.get(&quot;line-cap&quot;),u=s.getDash(i.from,c),f=s.getDash(i.to,c),h=u.width*a.fromScale,p=f.width*a.toScale;return t.extend(Rr(e,r,n),{u_patternscale_a:[l/h,-u.height/2],u_patternscale_b:[l/p,-f.height/2],u_sdfgamma:s.width/(256*Math.min(h,p)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:f.y,u_mix:a.t})};function jr(t,e){return 1/pe(t,1,e.tileZoom)}function Ur(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get(&quot;line-translate&quot;),r.paint.get(&quot;line-translate-anchor&quot;))}var Vr=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get(&quot;raster-opacity&quot;),u_image0:0,u_image1:1,u_brightness_low:i.paint.get(&quot;raster-brightness-min&quot;),u_brightness_high:i.paint.get(&quot;raster-brightness-max&quot;),u_saturation_factor:(o=i.paint.get(&quot;raster-saturation&quot;),o&gt;0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get(&quot;raster-contrast&quot;),a&gt;0?1/(1-a):1+a),u_spin_weights:qr(i.paint.get(&quot;raster-hue-rotate&quot;))};var a,o};function qr(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var Hr,Gr=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+(&quot;constant&quot;===t||&quot;source&quot;===t),u_is_size_feature_constant:+(&quot;constant&quot;===t||&quot;camera&quot;===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Yr=function(e,r,n,i,a,o,s,l,c,u,f){var h=a.transform;return t.extend(Gr(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},Wr=function(e,r,n,i,a,o,s,l,c,u){return t.extend(Yr(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Xr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Zr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/pe(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f&gt;&gt;16,h&gt;&gt;16],u_pixel_coord_lower:[65535&amp;f,65535&amp;h]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},Jr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Kr(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram(&quot;collisionBox&quot;),f=[],h=0,p=0,d=0;d&lt;i.length;d++){var g=i[d],m=r.getTile(g),v=m.getBucket(n);if(v){var y=g.posMatrix;0===a[0]&amp;&amp;0===a[1]||(y=e.translatePosMatrix(g.posMatrix,m,a,o));var x=s?v.textCollisionBox:v.iconCollisionBox,b=v.collisionCircleArray;if(b.length&gt;0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:b,circleOffset:p,transform:w,invTransform:_}),p=h+=b.length/4}x&amp;&amp;u.draw(l,c.LINES,At.disabled,Mt.disabled,e.colorModeForRenderPass(),Et.disabled,Cr(y,e.transform,m),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&amp;&amp;f.length){var T=e.useProgram(&quot;collisionCircle&quot;),k=new t.StructArrayLayout2f1f2i16;k.resize(4*h),k._trim();for(var A=0,M=0,S=f;M&lt;S.length;M+=1)for(var E=S[M],L=0;L&lt;E.circleArray.length/4;L++){var C=4*L,P=E.circleArray[C+0],I=E.circleArray[C+1],O=E.circleArray[C+2],z=E.circleArray[C+3];k.emplace(A++,P,I,O,z,0),k.emplace(A++,P,I,O,z,1),k.emplace(A++,P,I,O,z,2),k.emplace(A++,P,I,O,z,3)}(!Hr||Hr.length&lt;2*h)&amp;&amp;(Hr=function(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var i=0;i&lt;r;i++){var a=6*i;n.uint16[a+0]=4*i+0,n.uint16[a+1]=4*i+1,n.uint16[a+2]=4*i+2,n.uint16[a+3]=4*i+2,n.uint16[a+4]=4*i+3,n.uint16[a+5]=4*i+0}return n}(h));for(var D=l.createIndexBuffer(Hr,!0),R=l.createVertexBuffer(k,t.collisionCircleLayout.members,!0),F=0,B=f;F&lt;B.length;F+=1){var N=B[F],j=Pr(N.transform,N.invTransform,e.transform);T.draw(l,c.TRIANGLES,At.disabled,Mt.disabled,e.colorModeForRenderPass(),Et.disabled,j,n.id,R,D,t.SegmentVector.simpleSegment(0,2*N.circleOffset,N.circleArray.length,N.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),D.destroy()}}var Qr=t.identity(new Float32Array(16));function $r(e,r,n,i,a,o){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,u=t.evaluateVariableOffset(e,i);return new t.Point((l/a+u[0])*o,(c/a+u[1])*o)}function tn(e,r,n,i,a,o,s,l,c,u,f){var h=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,g={};p.clear();for(var m=0;m&lt;h.length;m++){var v=h.get(m),y=e.allowVerticalPlacement&amp;&amp;!v.placedOrientation,x=v.hidden||!v.crossTileID||y?null:i[v.crossTileID];if(x){var b=new t.Point(v.anchorX,v.anchorY),_=te(b,n?l:s),w=ee(o.cameraToCenterDistance,_.signedDistanceFromCamera),T=a.evaluateSizeForFeature(e.textSizeData,u,v)*w/t.ONE_EM;n&amp;&amp;(T*=e.tilePixelRatio/c);for(var k=x.width,A=x.height,M=$r(x.anchor,k,A,x.textOffset,x.textBoxScale,T),S=n?te(b.add(M),s).point:_.point.add(r?M.rotate(-o.angle):M),E=e.allowVerticalPlacement&amp;&amp;v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,L=0;L&lt;v.numGlyphs;L++)t.addDynamicAttributes(p,S,E);f&amp;&amp;v.associatedIconIndex&gt;=0&amp;&amp;(g[v.associatedIconIndex]={shiftedAnchor:S,angle:E})}else ue(v.numGlyphs,p)}if(f){d.clear();for(var C=e.icon.placedSymbolArray,P=0;P&lt;C.length;P++){var I=C.get(P);if(I.hidden)ue(I.numGlyphs,d);else{var O=g[P];if(O)for(var z=0;z&lt;I.numGlyphs;z++)t.addDynamicAttributes(d,O.shiftedAnchor,O.angle);else ue(I.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(p)}function en(t,e,r){return r.iconsInText&amp;&amp;e?&quot;symbolTextAndIcon&quot;:t?&quot;symbolSDF&quot;:&quot;symbolIcon&quot;}function rn(e,r,n,i,a,o,s,l,c,u,f,h){for(var p=e.context,d=p.gl,g=e.transform,m=&quot;map&quot;===l,v=&quot;map&quot;===c,y=m&amp;&amp;&quot;point&quot;!==n.layout.get(&quot;symbol-placement&quot;),x=m&amp;&amp;!v&amp;&amp;!y,b=void 0!==n.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),_=e.depthModeForSublayer(0,At.ReadOnly),w=n.layout.get(&quot;text-variable-anchor&quot;),T=[],k=0,A=i;k&lt;A.length;k+=1){var M=A[k],S=r.getTile(M),E=S.getBucket(n);if(E){var L=a?E.text:E.icon;if(L&amp;&amp;L.segments.get().length){var C=L.programConfigurations.get(n.id),P=a||E.sdfIcons,I=a?E.textSizeData:E.iconSizeData,O=v||0!==g.pitch,z=e.useProgram(en(P,a,E),C),D=t.evaluateSizeForZoom(I,g.zoom),R=void 0,F=[0,0],B=void 0,N=void 0,j=null,U=void 0;if(a){if(B=S.glyphAtlasTexture,N=d.LINEAR,R=S.glyphAtlasTexture.size,E.iconsInText){F=S.imageAtlasTexture.size,j=S.imageAtlasTexture;var V=&quot;composite&quot;===I.kind||&quot;camera&quot;===I.kind;U=O||e.options.rotating||e.options.zooming||V?d.LINEAR:d.NEAREST}}else{var q=1!==n.layout.get(&quot;icon-size&quot;).constantOr(0)||E.iconsNeedLinear;B=S.imageAtlasTexture,N=P||e.options.rotating||e.options.zooming||q||O?d.LINEAR:d.NEAREST,R=S.imageAtlasTexture.size}var H=pe(S,1,e.transform.zoom),G=Qt(M.posMatrix,v,m,e.transform,H),Y=$t(M.posMatrix,v,m,e.transform,H),W=w&amp;&amp;E.hasTextData(),X=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;W&amp;&amp;E.hasIconData();y&amp;&amp;ne(E,M.posMatrix,e,a,G,Y,v,u);var Z=e.translatePosMatrix(M.posMatrix,S,o,s),J=y||a&amp;&amp;w||X?Qr:G,K=e.translatePosMatrix(Y,S,o,s,!0),Q=P&amp;&amp;0!==n.paint.get(a?&quot;text-halo-width&quot;:&quot;icon-halo-width&quot;).constantOr(1),$={program:z,buffers:L,uniformValues:P?E.iconsInText?Wr(I.kind,D,x,v,e,Z,J,K,R,F):Yr(I.kind,D,x,v,e,Z,J,K,a,R,!0):Gr(I.kind,D,x,v,e,Z,J,K,a,R),atlasTexture:B,atlasTextureIcon:j,atlasInterpolation:N,atlasInterpolationIcon:U,isSDF:P,hasHalo:Q};if(b)for(var tt=0,et=L.segments.get();tt&lt;et.length;tt+=1){var rt=et[tt];T.push({segments:new t.SegmentVector([rt]),sortKey:rt.sortKey,state:$})}else T.push({segments:L.segments,sortKey:0,state:$})}}}b&amp;&amp;T.sort((function(t,e){return t.sortKey-e.sortKey}));for(var nt=0,it=T;nt&lt;it.length;nt+=1){var at=it[nt],ot=at.state;if(p.activeTexture.set(d.TEXTURE0),ot.atlasTexture.bind(ot.atlasInterpolation,d.CLAMP_TO_EDGE),ot.atlasTextureIcon&amp;&amp;(p.activeTexture.set(d.TEXTURE1),ot.atlasTextureIcon&amp;&amp;ot.atlasTextureIcon.bind(ot.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),ot.isSDF){var st=ot.uniformValues;ot.hasHalo&amp;&amp;(st.u_is_halo=1,nn(ot.buffers,at.segments,n,e,ot.program,_,f,h,st)),st.u_is_halo=0}nn(ot.buffers,at.segments,n,e,ot.program,_,f,h,ot.uniformValues)}}function nn(t,e,r,n,i,a,o,s,l){var c=n.context,u=c.gl;i.draw(c,u.TRIANGLES,a,o,s,Et.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function an(t,e,r,n,i,a,o){var s,l,c,u,f,h=t.context.gl,p=r.paint.get(&quot;fill-pattern&quot;),d=p&amp;&amp;p.constantOr(1),g=r.getCrossfadeParameters();o?(l=d&amp;&amp;!r.getPaintProperty(&quot;fill-outline-color&quot;)?&quot;fillOutlinePattern&quot;:&quot;fillOutline&quot;,s=h.LINES):(l=d?&quot;fillPattern&quot;:&quot;fill&quot;,s=h.TRIANGLES);for(var m=0,v=n;m&lt;v.length;m+=1){var y=v[m],x=e.getTile(y);if(!d||x.patternsLoaded()){var b=x.getBucket(r);if(b){var _=b.programConfigurations.get(r.id),w=t.useProgram(l,_);d&amp;&amp;(t.context.activeTexture.set(h.TEXTURE0),x.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),_.updatePaintBuffers(g));var T=p.constantOr(null);if(T&amp;&amp;x.imageAtlas){var k=x.imageAtlas,A=k.patternPositions[T.to.toString()],M=k.patternPositions[T.from.toString()];A&amp;&amp;M&amp;&amp;_.setConstantPatternPositions(A,M)}var S=t.translatePosMatrix(y.posMatrix,x,r.paint.get(&quot;fill-translate&quot;),r.paint.get(&quot;fill-translate-anchor&quot;));if(o){u=b.indexBuffer2,f=b.segments2;var E=[h.drawingBufferWidth,h.drawingBufferHeight];c=&quot;fillOutlinePattern&quot;===l&amp;&amp;d?Er(S,t,g,x,E):Sr(S,E)}else u=b.indexBuffer,f=b.segments,c=d?Mr(S,t,g,x):Ar(S);w.draw(t.context,s,i,t.stencilModeForClipping(y),a,Et.disabled,c,r.id,b.layoutVertexBuffer,u,f,r.paint,t.transform.zoom,_)}}}}function on(t,e,r,n,i,a,o){for(var s=t.context,l=s.gl,c=r.paint.get(&quot;fill-extrusion-pattern&quot;),u=c.constantOr(1),f=r.getCrossfadeParameters(),h=r.paint.get(&quot;fill-extrusion-opacity&quot;),p=0,d=n;p&lt;d.length;p+=1){var g=d[p],m=e.getTile(g),v=m.getBucket(r);if(v){var y=v.programConfigurations.get(r.id),x=t.useProgram(u?&quot;fillExtrusionPattern&quot;:&quot;fillExtrusion&quot;,y);u&amp;&amp;(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var b=c.constantOr(null);if(b&amp;&amp;m.imageAtlas){var _=m.imageAtlas,w=_.patternPositions[b.to.toString()],T=_.patternPositions[b.from.toString()];w&amp;&amp;T&amp;&amp;y.setConstantPatternPositions(w,T)}var k=t.translatePosMatrix(g.posMatrix,m,r.paint.get(&quot;fill-extrusion-translate&quot;),r.paint.get(&quot;fill-extrusion-translate-anchor&quot;)),A=r.paint.get(&quot;fill-extrusion-vertical-gradient&quot;),M=u?kr(k,t,A,h,g,f,m):Tr(k,t,A,h);x.draw(s,s.gl.TRIANGLES,i,a,o,Et.backCCW,M,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,y)}}}function sn(t,e,r,n,i,a){var o=t.context,s=o.gl,l=e.fbo;if(l){var c=t.useProgram(&quot;hillshade&quot;);o.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var u=function(t,e,r){var n=r.paint.get(&quot;hillshade-shadow-color&quot;),i=r.paint.get(&quot;hillshade-highlight-color&quot;),a=r.paint.get(&quot;hillshade-accent-color&quot;),o=r.paint.get(&quot;hillshade-illumination-direction&quot;)*(Math.PI/180);&quot;viewport&quot;===r.paint.get(&quot;hillshade-illumination-anchor&quot;)&amp;&amp;(o-=t.transform.angle);var s=!t.options.moving;return{u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped(),s),u_image:0,u_latrange:Dr(t,e.tileID),u_light:[r.paint.get(&quot;hillshade-exaggeration&quot;),o],u_shadow:n,u_highlight:i,u_accent:a}}(t,e,r);c.draw(o,s.TRIANGLES,n,i,a,Et.disabled,u,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function ln(e,r,n,i,a,o,s){var l=e.context,c=l.gl,u=r.dem;if(u&amp;&amp;u.data){var f=u.dim,h=u.stride,p=u.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(h),r.demTexture){var d=r.demTexture;d.update(p,{premultiply:!1}),d.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,p,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);var g=r.fbo;if(!g){var m=new t.Texture(l,{width:f,height:f,data:null},c.RGBA);m.bind(c.LINEAR,c.CLAMP_TO_EDGE),(g=r.fbo=l.createFramebuffer(f,f,!0)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(g.framebuffer),l.viewport.set([0,0,f,f]),e.useProgram(&quot;hillshadePrepare&quot;).draw(l,c.TRIANGLES,a,o,s,Et.disabled,function(e,r,n){var i=r.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}}(r.tileID,u,i),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function cn(e,r,n,i,a){var o=i.paint.get(&quot;raster-fade-duration&quot;);if(o&gt;0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-f)&gt;Math.abs(e.tileID.overscaledZ-f),p=h&amp;&amp;e.refreshedUponExpiration?1:t.clamp(h?l:1-c,0,1);return e.refreshedUponExpiration&amp;&amp;l&gt;=1&amp;&amp;(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var un=new t.Color(1,0,0,1),fn=new t.Color(0,1,0,1),hn=new t.Color(0,0,1,1),pn=new t.Color(1,0,1,1),dn=new t.Color(0,1,1,1);function gn(t){var e=t.transform.padding;mn(t,t.transform.height-(e.top||0),3,un),mn(t,e.bottom||0,3,fn),vn(t,e.left||0,3,hn),vn(t,t.transform.width-(e.right||0),3,pn);var r=t.transform.centerPoint;!function(t,e,r,n){yn(t,e-1,r-10,2,20,n),yn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,dn)}function mn(t,e,r,n){yn(t,0,e+r/2,t.transform.width,r,n)}function vn(t,e,r,n){yn(t,e-r/2,0,r,t.transform.height,n)}function yn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function xn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram(&quot;debug&quot;),l=At.disabled,c=Mt.disabled,u=e.colorModeForRenderPass();i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Et.disabled,Ir(o,t.Color.red),&quot;$debug&quot;,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,h=f&amp;&amp;f.byteLength||0,p=Math.floor(h/1024),d=r.getTile(n).tileSize,g=512/Math.min(d,512)*(n.overscaledZ/e.transform.zoom)*.5,m=n.canonical.toString();n.overscaledZ!==n.canonical.z&amp;&amp;(m+=&quot; =&gt; &quot;+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext(&quot;2d&quot;);i.clearRect(0,0,r.width,r.height),i.shadowColor=&quot;white&quot;,i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle=&quot;white&quot;,i.textBaseline=&quot;top&quot;,i.font=&quot;bold 36px Open Sans, sans-serif&quot;,i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,m+&quot; &quot;+p+&quot;kb&quot;),s.draw(i,a.TRIANGLES,l,c,St.alphaBlended,Et.disabled,Ir(o,t.Color.transparent,g),&quot;$debug&quot;,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var bn={symbol:function(e,r,n,i,a){if(&quot;translucent&quot;===e.renderPass){var o=Mt.disabled,s=e.colorModeForRenderPass();n.layout.get(&quot;text-variable-anchor&quot;)&amp;&amp;function(e,r,n,i,a,o,s){for(var l=r.transform,c=&quot;map&quot;===a,u=&quot;map&quot;===o,f=0,h=e;f&lt;h.length;f+=1){var p=h[f],d=i.getTile(p),g=d.getBucket(n);if(g&amp;&amp;g.text&amp;&amp;g.text.segments.get().length){var m=g.textSizeData,v=t.evaluateSizeForZoom(m,l.zoom),y=pe(d,1,r.transform.zoom),x=Qt(p.posMatrix,u,c,r.transform,y),b=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;g.hasIconData();if(v){var _=Math.pow(2,l.zoom-d.tileID.overscaledZ);tn(g,c,u,s,t.symbolSize,l,x,p.posMatrix,_,v,b)}}}}(i,e,n,r,n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),a),0!==n.paint.get(&quot;icon-opacity&quot;).constantOr(1)&amp;&amp;rn(e,r,n,i,!1,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),n.layout.get(&quot;icon-rotation-alignment&quot;),n.layout.get(&quot;icon-pitch-alignment&quot;),n.layout.get(&quot;icon-keep-upright&quot;),o,s),0!==n.paint.get(&quot;text-opacity&quot;).constantOr(1)&amp;&amp;rn(e,r,n,i,!0,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),n.layout.get(&quot;text-keep-upright&quot;),o,s),r.map.showCollisionBoxes&amp;&amp;(Kr(e,r,n,i,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),!0),Kr(e,r,n,i,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),!1))}},circle:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;circle-opacity&quot;),o=n.paint.get(&quot;circle-stroke-width&quot;),s=n.paint.get(&quot;circle-stroke-opacity&quot;),l=void 0!==n.layout.get(&quot;circle-sort-key&quot;).constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&amp;&amp;0!==s.constantOr(1)){for(var c=e.context,u=c.gl,f=e.depthModeForSublayer(0,At.ReadOnly),h=Mt.disabled,p=e.colorModeForRenderPass(),d=[],g=0;g&lt;i.length;g++){var m=i[g],v=r.getTile(m),y=v.getBucket(n);if(y){var x=y.programConfigurations.get(n.id),b={programConfiguration:x,program:e.useProgram(&quot;circle&quot;,x),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Lr(e,m,v,n)};if(l)for(var _=0,w=y.segments.get();_&lt;w.length;_+=1){var T=w[_];d.push({segments:new t.SegmentVector([T]),sortKey:T.sortKey,state:b})}else d.push({segments:y.segments,sortKey:0,state:b})}}l&amp;&amp;d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var k=0,A=d;k&lt;A.length;k+=1){var M=A[k],S=M.state,E=S.programConfiguration,L=S.program,C=S.layoutVertexBuffer,P=S.indexBuffer,I=S.uniformValues,O=M.segments;L.draw(c,u.TRIANGLES,f,h,p,Et.disabled,I,n.id,C,P,O,n.paint,e.transform.zoom,E)}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(&quot;heatmap-opacity&quot;))if(&quot;offscreen&quot;===e.renderPass){var a=e.context,o=a.gl,s=Mt.disabled,l=new St([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,r,n){var i=t.gl,a=t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,a,null),n.colorAttachment.set(r)}(t,e,a,i)}}(a,e,n),a.clear({color:t.Color.transparent});for(var c=0;c&lt;i.length;c++){var u=i[c];if(!r.hasRenderableParent(u)){var f=r.getTile(u),h=f.getBucket(n);if(h){var p=h.programConfigurations.get(n.id),d=e.useProgram(&quot;heatmap&quot;,p),g=e.transform.zoom;d.draw(a,o.TRIANGLES,At.disabled,s,l,Et.disabled,zr(u.posMatrix,f,g,n.paint.get(&quot;heatmap-intensity&quot;)),n.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,n.paint,e.transform.zoom,p)}}}a.viewport.set([0,0,e.width,e.height])}else&quot;translucent&quot;===e.renderPass&amp;&amp;(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(!a)return;n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new t.Texture(n,r.colorRamp,i.RGBA));o.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram(&quot;heatmapTexture&quot;).draw(n,i.TRIANGLES,At.disabled,Mt.disabled,e.colorModeForRenderPass(),Et.disabled,function(e,r,n,i){var a=t.create();t.ortho(a,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:n,u_color_ramp:i,u_opacity:r.paint.get(&quot;heatmap-opacity&quot;)}}(e,r,0,1),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}(e,n))},line:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;line-opacity&quot;),o=n.paint.get(&quot;line-width&quot;);if(0!==a.constantOr(1)&amp;&amp;0!==o.constantOr(1)){var s=e.depthModeForSublayer(0,At.ReadOnly),l=e.colorModeForRenderPass(),c=n.paint.get(&quot;line-dasharray&quot;),u=n.paint.get(&quot;line-pattern&quot;),f=u.constantOr(1),h=n.paint.get(&quot;line-gradient&quot;),p=n.getCrossfadeParameters(),d=f?&quot;linePattern&quot;:c?&quot;lineSDF&quot;:h?&quot;lineGradient&quot;:&quot;line&quot;,g=e.context,m=g.gl,v=!0;if(h){g.activeTexture.set(m.TEXTURE0);var y=n.gradientTexture;if(!n.gradient)return;y||(y=n.gradientTexture=new t.Texture(g,n.gradient,m.RGBA)),y.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var x=0,b=i;x&lt;b.length;x+=1){var _=b[x],w=r.getTile(_);if(!f||w.patternsLoaded()){var T=w.getBucket(n);if(T){var k=T.programConfigurations.get(n.id),A=e.context.program.get(),M=e.useProgram(d,k),S=v||M.program!==A,E=u.constantOr(null);if(E&amp;&amp;w.imageAtlas){var L=w.imageAtlas,C=L.patternPositions[E.to.toString()],P=L.patternPositions[E.from.toString()];C&amp;&amp;P&amp;&amp;k.setConstantPatternPositions(C,P)}var I=f?Br(e,w,n,p):c?Nr(e,w,n,c,p):h?Fr(e,w,n):Rr(e,w,n);f?(g.activeTexture.set(m.TEXTURE0),w.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),k.updatePaintBuffers(p)):c&amp;&amp;(S||e.lineAtlas.dirty)&amp;&amp;(g.activeTexture.set(m.TEXTURE0),e.lineAtlas.bind(g)),M.draw(g,m.TRIANGLES,s,e.stencilModeForClipping(_),l,Et.disabled,I,n.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,n.paint,e.transform.zoom,k),v=!1}}}}}},fill:function(e,r,n,i){var a=n.paint.get(&quot;fill-color&quot;),o=n.paint.get(&quot;fill-opacity&quot;);if(0!==o.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get(&quot;fill-pattern&quot;),c=e.opaquePassEnabledForLayer()&amp;&amp;!l.constantOr(1)&amp;&amp;1===a.constantOr(t.Color.transparent).a&amp;&amp;1===o.constantOr(0)?&quot;opaque&quot;:&quot;translucent&quot;;if(e.renderPass===c){var u=e.depthModeForSublayer(1,&quot;opaque&quot;===e.renderPass?At.ReadWrite:At.ReadOnly);an(e,r,n,i,u,s,!1)}if(&quot;translucent&quot;===e.renderPass&amp;&amp;n.paint.get(&quot;fill-antialias&quot;)){var f=e.depthModeForSublayer(n.getPaintProperty(&quot;fill-outline-color&quot;)?2:0,At.ReadOnly);an(e,r,n,i,f,s,!0)}}},&quot;fill-extrusion&quot;:function(t,e,r,n){var i=r.paint.get(&quot;fill-extrusion-opacity&quot;);if(0!==i&amp;&amp;&quot;translucent&quot;===t.renderPass){var a=new At(t.context.gl.LEQUAL,At.ReadWrite,t.depthRangeFor3D);if(1!==i||r.paint.get(&quot;fill-extrusion-pattern&quot;).constantOr(1))on(t,e,r,n,a,Mt.disabled,St.disabled),on(t,e,r,n,a,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var o=t.colorModeForRenderPass();on(t,e,r,n,a,Mt.disabled,o)}}},hillshade:function(t,e,r,n){if(&quot;offscreen&quot;===t.renderPass||&quot;translucent&quot;===t.renderPass){for(var i=t.context,a=e.getSource().maxzoom,o=t.depthModeForSublayer(0,At.ReadOnly),s=t.colorModeForRenderPass(),l=&quot;translucent&quot;===t.renderPass?t.stencilConfigForOverlap(n):[{},n],c=l[0],u=0,f=l[1];u&lt;f.length;u+=1){var h=f[u],p=e.getTile(h);p.needsHillshadePrepare&amp;&amp;&quot;offscreen&quot;===t.renderPass?ln(t,p,r,a,o,Mt.disabled,s):&quot;translucent&quot;===t.renderPass&amp;&amp;sn(t,p,r,o,c[h.overscaledZ],s)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(&quot;translucent&quot;===t.renderPass&amp;&amp;0!==r.paint.get(&quot;raster-opacity&quot;)&amp;&amp;n.length)for(var i=t.context,a=i.gl,o=e.getSource(),s=t.useProgram(&quot;raster&quot;),l=t.colorModeForRenderPass(),c=o instanceof I?[{},n]:t.stencilConfigForOverlap(n),u=c[0],f=c[1],h=f[f.length-1].overscaledZ,p=!t.options.moving,d=0,g=f;d&lt;g.length;d+=1){var m=g[d],v=t.depthModeForSublayer(m.overscaledZ-h,1===r.paint.get(&quot;raster-opacity&quot;)?At.ReadWrite:At.ReadOnly,a.LESS),y=e.getTile(m),x=t.transform.calculatePosMatrix(m.toUnwrapped(),p);y.registerFadeDuration(r.paint.get(&quot;raster-fade-duration&quot;));var b=e.findLoadedParent(m,0),_=cn(y,b,e,r,t.transform),w=void 0,T=void 0,k=&quot;nearest&quot;===r.paint.get(&quot;raster-resampling&quot;)?a.NEAREST:a.LINEAR;i.activeTexture.set(a.TEXTURE0),y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(a.TEXTURE1),b?(b.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,b.tileID.overscaledZ-y.tileID.overscaledZ),T=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);var A=Vr(x,T||[0,0],w||1,_,r);o instanceof I?s.draw(i,a.TRIANGLES,v,Mt.disabled,l,Et.disabled,A,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,v,u[m.overscaledZ],l,Et.disabled,A,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var n=r.paint.get(&quot;background-color&quot;),i=r.paint.get(&quot;background-opacity&quot;);if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(&quot;background-pattern&quot;);if(!t.isPatternMissing(c)){var u=!c&amp;&amp;1===n.a&amp;&amp;1===i&amp;&amp;t.opaquePassEnabledForLayer()?&quot;opaque&quot;:&quot;translucent&quot;;if(t.renderPass===u){var f=Mt.disabled,h=t.depthModeForSublayer(0,&quot;opaque&quot;===u?At.ReadWrite:At.ReadOnly),p=t.colorModeForRenderPass(),d=t.useProgram(c?&quot;backgroundPattern&quot;:&quot;background&quot;),g=s.coveringTiles({tileSize:l});c&amp;&amp;(a.activeTexture.set(o.TEXTURE0),t.imageManager.bind(t.context));for(var m=r.getCrossfadeParameters(),v=0,y=g;v&lt;y.length;v+=1){var x=y[v],b=t.transform.calculatePosMatrix(x.toUnwrapped()),_=c?Zr(b,i,t,c,{tileID:x,tileSize:l},m):Xr(b,i,n);d.draw(a,o.TRIANGLES,h,f,p,Et.disabled,_,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var n=0;n&lt;r.length;n++)xn(t,e,r[n])},custom:function(t,e,r){var n=t.context,i=r.implementation;if(&quot;offscreen&quot;===t.renderPass){var a=i.prerender;a&amp;&amp;(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),a.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if(&quot;translucent&quot;===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(Mt.disabled);var o=&quot;3d&quot;===i.renderingMode?new At(t.context.gl.LEQUAL,At.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,At.ReadOnly);n.setDepthMode(o),i.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}},_n=function(t,e){this.context=new Lt(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Ct.maxUnderzooming+Ct.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Ne,this.gpuTimers={}};_n.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n&lt;i.length;n+=1){var a=i[n];this.style._layers[a].resize()}},_n.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,Ge.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,Ge.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,P.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,Ge.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new Mt({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},_n.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram(&quot;clippingMask&quot;).draw(e,r.TRIANGLES,At.disabled,this.stencilClearMode,St.disabled,Et.disabled,Or(n),&quot;$clipping&quot;,this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},_n.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&amp;&amp;t.isTileClipped()&amp;&amp;e&amp;&amp;e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length&gt;256&amp;&amp;this.clearStencil(),r.setColorMode(St.disabled),r.setDepthMode(At.disabled);var i=this.useProgram(&quot;clippingMask&quot;);this._tileClippingMaskIDs={};for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(r,n.TRIANGLES,At.disabled,new Mt({func:n.ALWAYS,mask:0},l,255,n.KEEP,n.KEEP,n.REPLACE),St.disabled,Et.disabled,Or(s.posMatrix),&quot;$clipping&quot;,this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},_n.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1&gt;256&amp;&amp;this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Mt({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},_n.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Mt({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},_n.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a&gt;1){this.currentStencilSource=void 0,this.nextStencilID+a&gt;256&amp;&amp;this.clearStencil();for(var o={},s=0;s&lt;a;s++)o[s+i]=new Mt({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=a,[o,n]}return[(e={},e[i]=Mt.disabled,e),n]},_n.prototype.colorModeForRenderPass=function(){var e=this.context.gl;if(this._showOverdrawInspector){return new St([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0])}return&quot;opaque&quot;===this.renderPass?St.unblended:St.alphaBlended},_n.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return At.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new At(r||this.context.gl.LEQUAL,e,[n,n])},_n.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer&lt;this.opaquePassCutoff},_n.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,a=this.style.sourceCaches;for(var o in a){var s=a[o];s.used&amp;&amp;s.prepare(this.context)}var l,c,u={},f={},h={};for(var p in a){var d=a[p];u[p]=d.getVisibleCoordinates(),f[p]=u[p].slice().reverse(),h[p]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var g=0;g&lt;i.length;g++){var m=i[g];if(this.style._layers[m].is3D()){this.opaquePassCutoff=g;break}}this.renderPass=&quot;offscreen&quot;;for(var v=0,y=i;v&lt;y.length;v+=1){var x=y[v],b=this.style._layers[x];if(b.hasOffscreenPass()&amp;&amp;!b.isHidden(this.transform.zoom)){var _=f[b.source];(&quot;custom&quot;===b.type||_.length)&amp;&amp;this.renderLayer(this,a[b.source],b,_)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass=&quot;opaque&quot;,this.currentLayer=i.length-1;this.currentLayer&gt;=0;this.currentLayer--){var w=this.style._layers[i[this.currentLayer]],T=a[w.source],k=u[w.source];this._renderTileClippingMasks(w,k),this.renderLayer(this,T,w,k)}for(this.renderPass=&quot;translucent&quot;,this.currentLayer=0;this.currentLayer&lt;i.length;this.currentLayer++){var A=this.style._layers[i[this.currentLayer]],M=a[A.source],S=(&quot;symbol&quot;===A.type?h:f)[A.source];this._renderTileClippingMasks(A,u[A.source]),this.renderLayer(this,M,A,S)}this.options.showTileBoundaries&amp;&amp;(t.values(this.style._layers).forEach((function(t){t.source&amp;&amp;!t.isHidden(n.transform.zoom)&amp;&amp;(t.source!==(c&amp;&amp;c.id)&amp;&amp;(c=n.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom&lt;c.getSource().maxzoom)&amp;&amp;(l=c))})),l&amp;&amp;bn.debug(this,l,l.getVisibleCoordinates()));this.options.showPadding&amp;&amp;gn(this),this.context.setDefault()},_n.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(&quot;background&quot;===r.type||&quot;custom&quot;===r.type||n.length)&amp;&amp;(this.id=r.id,this.gpuTimingStart(r),bn[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},_n.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},_n.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},_n.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},_n.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],i=this.context.extTimerQuery,a=i.getQueryObjectEXT(n.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n.query),e[r]=a}return e},_n.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&amp;&amp;!n[1])return e;var o=a?&quot;map&quot;===i?this.transform.angle:0:&quot;viewport&quot;===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:pe(r,n[0],this.transform.zoom),a?n[1]:pe(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.translate(u,e,c),u},_n.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},_n.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&amp;&amp;e.length&gt;0?e.pop():null},_n.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},_n.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=&quot;&quot;+t+(e?e.cacheKey:&quot;&quot;)+(this._showOverdrawInspector?&quot;/overdraw&quot;:&quot;&quot;);return this.cache[r]||(this.cache[r]=new _r(this.context,xr[t],e,Jr[t],this._showOverdrawInspector)),this.cache[r]},_n.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},_n.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},_n.prototype.initDebugOverlayCanvas=function(){if(null==this.debugOverlayCanvas){this.debugOverlayCanvas=t.window.document.createElement(&quot;canvas&quot;),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var e=this.context.gl;this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,e.RGBA)}},_n.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&amp;&amp;this.debugOverlayTexture.destroy()};var wn=function(t,e){this.points=t,this.planes=e};wn.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new wn(a,o)};var Tn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};Tn.prototype.quadrant=function(e){for(var r=[e%2==0,e&lt;2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a&lt;r.length;a++)n[a]=r[a]?this.min[a]:this.center[a],i[a]=r[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new Tn(n,i)},Tn.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},Tn.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},Tn.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i&lt;e.planes.length;i++){for(var a=e.planes[i],o=0,s=0;s&lt;r.length;s++)o+=t.dot$1(a,r[s])&gt;=0;if(0===o)return 0;o!==r.length&amp;&amp;(n=!1)}if(n)return 2;for(var l=0;l&lt;3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;f&lt;e.points.length;f++){var h=e.points[f][l]-this.min[l];c=Math.min(c,h),u=Math.max(u,h)}if(u&lt;0||c&gt;this.max[l]-this.min[l])return 0}return 1};var kn=function(t,e,r,n){if(void 0===t&amp;&amp;(t=0),void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=0),void 0===n&amp;&amp;(n=0),isNaN(t)||t&lt;0||isNaN(e)||e&lt;0||isNaN(r)||r&lt;0||isNaN(n)||n&lt;0)throw new Error(&quot;Invalid value for edge-insets, top, bottom, left and right must all be numbers&quot;);this.top=t,this.bottom=e,this.left=r,this.right=n};kn.prototype.interpolate=function(e,r,n){return null!=r.top&amp;&amp;null!=e.top&amp;&amp;(this.top=t.number(e.top,r.top,n)),null!=r.bottom&amp;&amp;null!=e.bottom&amp;&amp;(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&amp;&amp;null!=e.left&amp;&amp;(this.left=t.number(e.left,r.left,n)),null!=r.right&amp;&amp;null!=e.right&amp;&amp;(this.right=t.number(e.right,r.right,n)),this},kn.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},kn.prototype.equals=function(t){return this.top===t.top&amp;&amp;this.bottom===t.bottom&amp;&amp;this.left===t.left&amp;&amp;this.right===t.right},kn.prototype.clone=function(){return new kn(this.top,this.bottom,this.left,this.right)},kn.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var An=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new kn,this._posMatrixCache={},this._alignedPosMatrixCache={}},Mn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};An.prototype.clone=function(){var t=new An(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Mn.minZoom.get=function(){return this._minZoom},Mn.minZoom.set=function(t){this._minZoom!==t&amp;&amp;(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Mn.maxZoom.get=function(){return this._maxZoom},Mn.maxZoom.set=function(t){this._maxZoom!==t&amp;&amp;(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Mn.minPitch.get=function(){return this._minPitch},Mn.minPitch.set=function(t){this._minPitch!==t&amp;&amp;(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Mn.maxPitch.get=function(){return this._maxPitch},Mn.maxPitch.set=function(t){this._maxPitch!==t&amp;&amp;(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Mn.renderWorldCopies.get=function(){return this._renderWorldCopies},Mn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&amp;&amp;(t=!1),this._renderWorldCopies=t},Mn.worldSize.get=function(){return this.tileSize*this.scale},Mn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Mn.size.get=function(){return new t.Point(this.width,this.height)},Mn.bearing.get=function(){return-this.angle/Math.PI*180},Mn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&amp;&amp;(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Mn.pitch.get=function(){return this._pitch/Math.PI*180},Mn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&amp;&amp;(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Mn.fov.get=function(){return this._fov/Math.PI*180},Mn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&amp;&amp;(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Mn.zoom.get=function(){return this._zoom},Mn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&amp;&amp;(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Mn.center.get=function(){return this._center},Mn.center.set=function(t){t.lat===this._center.lat&amp;&amp;t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Mn.padding.get=function(){return this._edgeInsets.toJSON()},Mn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Mn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},An.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},An.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},An.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},An.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=s-1;c&lt;=l+1;c++)0!==c&amp;&amp;r.push(new t.UnwrappedTileID(c,e));return r},An.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&amp;&amp;r&lt;e.minzoom)return[];void 0!==e.maxzoom&amp;&amp;r&gt;e.maxzoom&amp;&amp;(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=wn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch&lt;=60&amp;&amp;this._edgeInsets.top&lt;.1&amp;&amp;(l=r);var c=function(t){return{aabb:new Tn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],f=[],h=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d&lt;=3;d++)u.push(c(-d)),u.push(c(d));for(u.push(c(0));u.length&gt;0;){var g=u.pop(),m=g.x,v=g.y,y=g.fullyVisible;if(!y){var x=g.aabb.intersects(s);if(0===x)continue;y=2===x}var b=g.aabb.distanceX(o),_=g.aabb.distanceY(o),w=Math.max(Math.abs(b),Math.abs(_)),T=3+(1&lt;&lt;h-g.zoom)-2;if(g.zoom===h||w&gt;T&amp;&amp;g.zoom&gt;=l)f.push({tileID:new t.OverscaledTileID(g.zoom===h?p:g.zoom,g.wrap,g.zoom,m,v),distanceSq:t.sqrLen([o[0]-.5-m,o[1]-.5-v])});else for(var k=0;k&lt;4;k++){var A=(m&lt;&lt;1)+k%2,M=(v&lt;&lt;1)+(k&gt;&gt;1);u.push({aabb:g.aabb.quadrant(k),zoom:g.zoom+1,x:A,y:M,wrap:g.wrap,fullyVisible:y})}}return f.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},An.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Mn.unmodified.get=function(){return this._unmodified},An.prototype.zoomScale=function(t){return Math.pow(2,t)},An.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},An.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},An.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Mn.point.get=function(){return this.project(this.center)},An.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&amp;&amp;(this.center=this.center.wrap())},An.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},An.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},An.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},An.prototype.coordinateLocation=function(t){return t.toLngLat()},An.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[0]/i,s=n[0]/a,l=r[1]/i,c=n[1]/a,u=r[2]/i,f=n[2]/a,h=u===f?0:(0-u)/(f-u);return new t.MercatorCoordinate(t.number(o,s,h)/this.worldSize,t.number(l,c,h)/this.worldSize)},An.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},An.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},An.prototype.getMaxBounds=function(){return this.latRange&amp;&amp;2===this.latRange.length&amp;&amp;this.lngRange&amp;&amp;2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},An.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},An.prototype.calculatePosMatrix=function(e,r){void 0===r&amp;&amp;(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},An.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},An.prototype._constrain=function(){if(this.center&amp;&amp;this.width&amp;&amp;this.height&amp;&amp;!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-a&lt;c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=t.mercatorXfromLng(h[0])*this.worldSize,r=(l=t.mercatorXfromLng(h[1])*this.worldSize)-s&lt;c.x?c.x/(l-s):0}var p=this.point,d=Math.max(r||0,e||0);if(d)return this.center=this.unproject(new t.Point(r?(l+s)/2:p.x,e?(o+a)/2:p.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var g=p.y,m=c.y/2;g-m&lt;a&amp;&amp;(i=a+m),g+m&gt;o&amp;&amp;(i=o-m)}if(this.lngRange){var v=p.x,y=c.x/2;v-y&lt;s&amp;&amp;(n=s+y),v+y&gt;l&amp;&amp;(n=l-y)}void 0===n&amp;&amp;void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},An.prototype._calcMatrices=function(){if(this.height){var e=this._fov/2,r=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(e)*this.height;var n=Math.PI/2+this._pitch,i=this._fov*(.5+r.y/this.height),a=Math.sin(i)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-n-i,.01,Math.PI-.01)),o=this.point,s=o.x,l=o.y,c=1.01*(Math.cos(Math.PI/2-this._pitch)*a+this.cameraToCenterDistance),u=this.height/50,f=new Float64Array(16);t.perspective(f,this._fov,this.width/this.height,u,c),f[8]=2*-r.x/this.width,f[9]=2*r.y/this.height,t.scale(f,f,[1,-1,1]),t.translate(f,f,[0,0,-this.cameraToCenterDistance]),t.rotateX(f,f,this._pitch),t.rotateZ(f,f,this.angle),t.translate(f,f,[-s,-l,0]),this.mercatorMatrix=t.scale([],f,[this.worldSize,this.worldSize,this.worldSize]),t.scale(f,f,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=f,this.invProjMatrix=t.invert([],this.projMatrix);var h=this.width%2/2,p=this.height%2/2,d=Math.cos(this.angle),g=Math.sin(this.angle),m=s-Math.round(s)+d*h+g*p,v=l-Math.round(l)+d*p+g*h,y=new Float64Array(f);if(t.translate(y,y,[m&gt;.5?m-1:m,v&gt;.5?v-1:v,0]),this.alignedProjMatrix=y,f=t.create(),t.scale(f,f,[this.width/2,-this.height/2,1]),t.translate(f,f,[1,-1,0]),this.labelPlaneMatrix=f,f=t.create(),t.scale(f,f,[1,-1,1]),t.translate(f,f,[-1,-1,0]),t.scale(f,f,[2/this.width,2/this.height,1]),this.glCoordMatrix=f,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(f=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(&quot;failed to invert matrix&quot;);this.pixelMatrixInverse=f,this._posMatrixCache={},this._alignedPosMatrixCache={}}},An.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},An.prototype.getCameraPoint=function(){var e=this._pitch,r=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,r))},An.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s&lt;l.length;s+=1){var c=l[s];n=Math.min(n,c.x),i=Math.min(i,c.y),a=Math.max(a,c.x),o=Math.max(o,c.y)}return[new t.Point(n,i),new t.Point(a,i),new t.Point(a,o),new t.Point(n,o),new t.Point(n,i)]},Object.defineProperties(An.prototype,Mn);var Sn=function(e){var r,n,i,a,o;this._hashName=e&amp;&amp;encodeURIComponent(e),t.bindAll([&quot;_getCurrentHash&quot;,&quot;_onHashChange&quot;,&quot;_updateHash&quot;],this),this._updateHash=(r=this._updateHashUnthrottled.bind(this),n=300,i=!1,a=null,o=function(){a=null,i&amp;&amp;(r(),a=setTimeout(o,n),i=!1)},function(){return i=!0,a||o(),a})};Sn.prototype.addTo=function(e){return this._map=e,t.window.addEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.on(&quot;moveend&quot;,this._updateHash),this},Sn.prototype.remove=function(){return t.window.removeEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.off(&quot;moveend&quot;,this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Sn.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(r.lng*a)/a,s=Math.round(r.lat*a)/a,l=this._map.getBearing(),c=this._map.getPitch(),u=&quot;&quot;;if(u+=e?&quot;/&quot;+o+&quot;/&quot;+s+&quot;/&quot;+n:n+&quot;/&quot;+s+&quot;/&quot;+o,(l||c)&amp;&amp;(u+=&quot;/&quot;+Math.round(10*l)/10),c&amp;&amp;(u+=&quot;/&quot;+Math.round(c)),this._hashName){var f=this._hashName,h=!1,p=t.window.location.hash.slice(1).split(&quot;&amp;&quot;).map((function(t){var e=t.split(&quot;=&quot;)[0];return e===f?(h=!0,e+&quot;=&quot;+u):t})).filter((function(t){return t}));return h||p.push(f+&quot;=&quot;+u),&quot;#&quot;+p.join(&quot;&amp;&quot;)}return&quot;#&quot;+u},Sn.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace(&quot;#&quot;,&quot;&quot;);return this._hashName?(n.split(&quot;&amp;&quot;).map((function(t){return t.split(&quot;=&quot;)})).forEach((function(t){t[0]===r._hashName&amp;&amp;(e=t)})),(e&amp;&amp;e[1]||&quot;&quot;).split(&quot;/&quot;)):n.split(&quot;/&quot;)},Sn.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length&gt;=3&amp;&amp;!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&amp;&amp;this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Sn.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,&quot;&quot;,e)}catch(t){}};var En={linearity:.3,easing:t.bezier(0,0,.3,1)},Ln=t.extend({deceleration:2500,maxSpeed:1400},En),Cn=t.extend({deceleration:20,maxSpeed:1400},En),Pn=t.extend({deceleration:1e3,maxSpeed:360},En),In=t.extend({deceleration:1e3,maxSpeed:90},En),On=function(t){this._map=t,this.clear()};function zn(t,e){(!t.duration||t.duration&lt;e.duration)&amp;&amp;(t.duration=e.duration,t.easing=e.easing)}function Dn(e,r,n){var i=n.maxSpeed,a=n.linearity,o=n.deceleration,s=t.clamp(e*a/(r/1e3),-i,i),l=Math.abs(s)/(o*a);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}On.prototype.clear=function(){this._inertiaBuffer=[]},On.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},On.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0].time&gt;160;)e.shift()},On.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length&lt;2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n&lt;i.length;n+=1){var a=i[n].settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&amp;&amp;r.pan._add(a.panDelta),a.around&amp;&amp;(r.around=a.around),a.pinchAround&amp;&amp;(r.pinchAround=a.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=Dn(r.pan.mag(),o,t.extend({},Ln,e||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,zn(s,l)}if(r.zoom){var c=Dn(r.zoom,o,Cn);s.zoom=this._map.transform.zoom+c.amount,zn(s,c)}if(r.bearing){var u=Dn(r.bearing,o,Pn);s.bearing=this._map.transform.bearing+t.clamp(u.amount,-179,179),zn(s,u)}if(r.pitch){var f=Dn(r.pitch,o,In);s.pitch=this._map.transform.pitch+f.amount,zn(s,f)}if(s.zoom||s.bearing){var h=void 0===r.pinchAround?r.around:r.pinchAround;s.around=h?this._map.unproject(h):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var Rn=function(e){function n(n,i,a,o){void 0===o&amp;&amp;(o={});var s=r.mousePos(i.getCanvasContainer(),a),l=i.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:a},o)),this._defaultPrevented=!1,this.target=i}e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Fn=function(e){function n(n,i,a){var o=&quot;touchend&quot;===n?a.changedTouches:a.touches,s=r.touchPos(i.getCanvasContainer(),o),l=s.map((function(t){return i.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),u=i.unproject(c);e.call(this,n,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:a}),this._defaultPrevented=!1}e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Bn=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Nn=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Nn.prototype.reset=function(){delete this._mousedownPos},Nn.prototype.wheel=function(t){return this._firePreventable(new Bn(t.type,this._map,t))},Nn.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new Rn(t.type,this._map,t))},Nn.prototype.mouseup=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.click=function(t,e){this._mousedownPos&amp;&amp;this._mousedownPos.dist(e)&gt;=this._clickTolerance||this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.dblclick=function(t){return this._firePreventable(new Rn(t.type,this._map,t))},Nn.prototype.mouseover=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.mouseout=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.touchstart=function(t){return this._firePreventable(new Fn(t.type,this._map,t))},Nn.prototype.touchmove=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype.touchend=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype.touchcancel=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Nn.prototype.isEnabled=function(){return!0},Nn.prototype.isActive=function(){return!1},Nn.prototype.enable=function(){},Nn.prototype.disable=function(){};var jn=function(t){this._map=t};jn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},jn.prototype.mousemove=function(t){this._map.fire(new Rn(t.type,this._map,t))},jn.prototype.mousedown=function(){this._delayContextMenu=!0},jn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&amp;&amp;(this._map.fire(new Rn(&quot;contextmenu&quot;,this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},jn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Rn(t.type,this._map,t)),this._map.listens(&quot;contextmenu&quot;)&amp;&amp;t.preventDefault()},jn.prototype.isEnabled=function(){return!0},jn.prototype.isActive=function(){return!1},jn.prototype.enable=function(){},jn.prototype.disable=function(){};var Un=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Vn(t,e){for(var r={},n=0;n&lt;t.length;n++)r[t[n].identifier]=e[n];return r}Un.prototype.isEnabled=function(){return!!this._enabled},Un.prototype.isActive=function(){return!!this._active},Un.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Un.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},Un.prototype.mousedown=function(t,e){this.isEnabled()&amp;&amp;t.shiftKey&amp;&amp;0===t.button&amp;&amp;(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Un.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&amp;&amp;n.dist(this._startPos)&lt;this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=r.create(&quot;div&quot;,&quot;mapboxgl-boxzoom&quot;,this._container),this._container.classList.add(&quot;mapboxgl-crosshair&quot;),this._fireEvent(&quot;boxzoomstart&quot;,t));var a=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),l=Math.max(i.y,n.y);r.setTransform(this._box,&quot;translate(&quot;+a+&quot;px,&quot;+s+&quot;px)&quot;),this._box.style.width=o-a+&quot;px&quot;,this._box.style.height=l-s+&quot;px&quot;}}},Un.prototype.mouseupWindow=function(e,n){var i=this;if(this._active&amp;&amp;0===e.button){var a=this._startPos,o=n;if(this.reset(),r.suppressClick(),a.x!==o.x||a.y!==o.y)return this._map.fire(new t.Event(&quot;boxzoomend&quot;,{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(a,o,i._map.getBearing(),{linear:!0})}};this._fireEvent(&quot;boxzoomcancel&quot;,e)}},Un.prototype.keydown=function(t){this._active&amp;&amp;27===t.keyCode&amp;&amp;(this.reset(),this._fireEvent(&quot;boxzoomcancel&quot;,t))},Un.prototype.reset=function(){this._active=!1,this._container.classList.remove(&quot;mapboxgl-crosshair&quot;),this._box&amp;&amp;(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Un.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var qn=function(t){this.reset(),this.numTouches=t.numTouches};qn.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},qn.prototype.touchstart=function(e,r,n){(this.centroid||n.length&gt;this.numTouches)&amp;&amp;(this.aborted=!0),this.aborted||(void 0===this.startTime&amp;&amp;(this.startTime=e.timeStamp),n.length===this.numTouches&amp;&amp;(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n&lt;i.length;n+=1){var a=i[n];r._add(a)}return r.div(e.length)}(r),this.touches=Vn(n,r)))},qn.prototype.touchmove=function(t,e,r){if(!this.aborted&amp;&amp;this.centroid){var n=Vn(r,e);for(var i in this.touches){var a=this.touches[i],o=n[i];(!o||o.dist(a)&gt;30)&amp;&amp;(this.aborted=!0)}}},qn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime&gt;500)&amp;&amp;(this.aborted=!0),0===r.length){var n=!this.aborted&amp;&amp;this.centroid;if(this.reset(),n)return n}};var Hn=function(t){this.singleTap=new qn(t),this.numTaps=t.numTaps,this.reset()};Hn.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Hn.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Hn.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Hn.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime&lt;500,a=!this.lastTap||this.lastTap.dist(n)&lt;30;if(i&amp;&amp;a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Gn=function(){this._zoomIn=new Hn({numTouches:1,numTaps:2}),this._zoomOut=new Hn({numTouches:2,numTaps:1}),this.reset()};Gn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Gn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Gn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Gn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Gn.prototype.touchcancel=function(){this.reset()},Gn.prototype.enable=function(){this._enabled=!0},Gn.prototype.disable=function(){this._enabled=!1,this.reset()},Gn.prototype.isEnabled=function(){return this._enabled},Gn.prototype.isActive=function(){return this._active};var Yn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};Yn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Yn.prototype._correctButton=function(t,e){return!1},Yn.prototype._move=function(t,e){return{}},Yn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&amp;&amp;(this._lastPoint=e,this._eventButton=n)}},Yn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&amp;&amp;(t.preventDefault(),this._moved||!(e.dist(r)&lt;this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(r,e)},Yn.prototype.mouseupWindow=function(t){r.mouseButton(t)===this._eventButton&amp;&amp;(this._moved&amp;&amp;r.suppressClick(),this.reset())},Yn.prototype.enable=function(){this._enabled=!0},Yn.prototype.disable=function(){this._enabled=!1,this.reset()},Yn.prototype.isEnabled=function(){return this._enabled},Yn.prototype.isActive=function(){return this._active};var Wn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&amp;&amp;(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(Yn),Xn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=.8*(e.x-t.x);if(r)return this._active=!0,{bearingDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Yn),Zn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=-.5*(e.y-t.y);if(r)return this._active=!0,{pitchDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Yn),Jn=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Jn.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Jn.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Jn.prototype.touchmove=function(t,e,r){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,r)},Jn.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&amp;&amp;r.length&lt;this._minTouches&amp;&amp;this.reset()},Jn.prototype.touchcancel=function(){this.reset()},Jn.prototype._calculateTransform=function(e,r,n){n.length&gt;0&amp;&amp;(this._active=!0);var i=Vn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&amp;&amp;(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(s&lt;this._minTouches)&amp;&amp;o.mag()){var f=o.div(s);if(this._sum._add(f),!(this._sum.mag()&lt;this._clickTolerance))return{around:a.div(s),panDelta:f}}},Jn.prototype.enable=function(){this._enabled=!0},Jn.prototype.disable=function(){this._enabled=!1,this.reset()},Jn.prototype.isEnabled=function(){return this._enabled},Jn.prototype.isActive=function(){return this._active};var Kn=function(){this.reset()};function Qn(t,e,r){for(var n=0;n&lt;t.length;n++)if(t[n].identifier===r)return e[n]}Kn.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Kn.prototype._start=function(t){},Kn.prototype._move=function(t,e,r){return{}},Kn.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length&lt;2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Kn.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,i=n[0],a=n[1],o=Qn(r,e,i),s=Qn(r,e,a);if(o&amp;&amp;s){var l=this._aroundCenter?null:o.add(s).div(2);return this._move([o,s],l,t)}}},Kn.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,a=i[0],o=i[1],s=Qn(n,e,a),l=Qn(n,e,o);s&amp;&amp;l||(this._active&amp;&amp;r.suppressClick(),this.reset())}},Kn.prototype.touchcancel=function(){this.reset()},Kn.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&amp;&amp;&quot;center&quot;===t.around},Kn.prototype.disable=function(){this._enabled=!1,this.reset()},Kn.prototype.isEnabled=function(){return this._enabled},Kn.prototype.isActive=function(){return this._active};function $n(t,e){return Math.log(t/e)/Math.LN2}var ti=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs($n(this._distance,this._startDistance))&lt;.1))return this._active=!0,{zoomDelta:$n(this._distance,r),pinchAround:e}},e}(Kn);function ei(t,e){return 180*t.angleWith(e)/Math.PI}var ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:ei(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,r=ei(t,this._startVector);return Math.abs(r)&lt;e},e}(Kn);function ni(t){return Math.abs(t.y)&gt;Math.abs(t.x)}var ii=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ni(t[0].sub(t[1]))&amp;&amp;(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid){this._lastPoints=t,this._active=!0;return{pitchDelta:-.5*((n.y+i.y)/2)}}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()&gt;=2,i=e.mag()&gt;=2;if(n||i){if(!n||!i)return void 0===this._firstMove&amp;&amp;(this._firstMove=r),r-this._firstMove&lt;100&amp;&amp;void 0;var a=t.y&gt;0==e.y&gt;0;return ni(t)&amp;&amp;ni(e)&amp;&amp;a}},e}(Kn),ai={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var t=ai;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function si(t){return t*(2-t)}oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:&quot;keyboardHandler&quot;,easing:si,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},oi.prototype.enable=function(){this._enabled=!0},oi.prototype.disable=function(){this._enabled=!1,this.reset()},oi.prototype.isEnabled=function(){return this._enabled},oi.prototype.isActive=function(){return this._active};var li=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll([&quot;_onWheel&quot;,&quot;_onTimeout&quot;,&quot;_onScrollFrame&quot;,&quot;_onScrollFinished&quot;],this)};li.prototype.setZoomRate=function(t){this._defaultZoomRate=t},li.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},li.prototype.isEnabled=function(){return!!this._enabled},li.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},li.prototype.isZooming=function(){return!!this._zooming},li.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&amp;&amp;&quot;center&quot;===t.around)},li.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},li.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&amp;&amp;r%4.000244140625==0?this._type=&quot;wheel&quot;:0!==r&amp;&amp;Math.abs(r)&lt;4?this._type=&quot;trackpad&quot;:i&gt;400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)&lt;200?&quot;trackpad&quot;:&quot;wheel&quot;,this._timeout&amp;&amp;(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&amp;&amp;r&amp;&amp;(r/=4),this._type&amp;&amp;(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},li.prototype._onTimeout=function(t){this._type=&quot;wheel&quot;,this._delta-=this._lastValue,this._active||this._start(t)},li.prototype._start=function(e){if(this._delta){this._frameId&amp;&amp;(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&amp;&amp;(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},li.prototype.renderFrame=function(){return this._onScrollFrame()},li.prototype._onScrollFrame=function(){var e=this;if(this._frameId&amp;&amp;(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n=&quot;wheel&quot;===this._type&amp;&amp;Math.abs(this._delta)&gt;4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta&lt;0&amp;&amp;0!==i&amp;&amp;(i=1/i);var a=&quot;number&quot;==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),&quot;wheel&quot;===this._type&amp;&amp;(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s=&quot;number&quot;==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if(&quot;wheel&quot;===this._type&amp;&amp;l&amp;&amp;c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=c(f);o=t.number(l,s,h),f&lt;1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&amp;&amp;(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},li.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},li.prototype.reset=function(){this._active=!1};var ci=function(t,e){this._clickZoom=t,this._tapZoom=e};ci.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ci.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ci.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&amp;&amp;this._tapZoom.isEnabled()},ci.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ui=function(){this.reset()};ui.prototype.reset=function(){this._active=!1},ui.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},ui.prototype.enable=function(){this._enabled=!0},ui.prototype.disable=function(){this._enabled=!1,this.reset()},ui.prototype.isEnabled=function(){return this._enabled},ui.prototype.isActive=function(){return this._active};var fi=function(){this._tap=new Hn({numTouches:1,numTaps:1}),this.reset()};fi.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},fi.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&amp;&amp;t.timeStamp-this._tapTime&gt;500&amp;&amp;this.reset(),this._tapTime?r.length&gt;0&amp;&amp;(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},fi.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},fi.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&amp;&amp;0===r.length&amp;&amp;this.reset():this._tap.touchend(t,e,r)&amp;&amp;(this._tapTime=t.timeStamp)},fi.prototype.touchcancel=function(){this.reset()},fi.prototype.enable=function(){this._enabled=!0},fi.prototype.disable=function(){this._enabled=!1,this.reset()},fi.prototype.isEnabled=function(){return this._enabled},fi.prototype.isActive=function(){return this._active};var hi=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};hi.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(&quot;mapboxgl-touch-drag-pan&quot;)},hi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(&quot;mapboxgl-touch-drag-pan&quot;)},hi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&amp;&amp;this._touchPan.isEnabled()},hi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var pi=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};pi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&amp;&amp;this._mousePitch.enable()},pi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},pi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&amp;&amp;(!this._pitchWithRotate||this._mousePitch.isEnabled())},pi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(&quot;mapboxgl-touch-zoom-rotate&quot;)},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(&quot;mapboxgl-touch-zoom-rotate&quot;)},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&amp;&amp;(this._rotationDisabled||this._touchRotate.isEnabled())&amp;&amp;this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&amp;&amp;this._touchRotate.enable()};var gi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},mi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(t.Event);function vi(t){return t.panDelta&amp;&amp;t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var yi=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new On(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll([&quot;handleEvent&quot;,&quot;handleWindowEvent&quot;],this);var i=this._el;this._listeners=[[i,&quot;touchstart&quot;,{passive:!1}],[i,&quot;touchmove&quot;,{passive:!1}],[i,&quot;touchend&quot;,void 0],[i,&quot;touchcancel&quot;,void 0],[i,&quot;mousedown&quot;,void 0],[i,&quot;mousemove&quot;,void 0],[i,&quot;mouseup&quot;,void 0],[t.window.document,&quot;mousemove&quot;,{capture:!0}],[t.window.document,&quot;mouseup&quot;,void 0],[i,&quot;mouseover&quot;,void 0],[i,&quot;mouseout&quot;,void 0],[i,&quot;dblclick&quot;,void 0],[i,&quot;click&quot;,void 0],[i,&quot;keydown&quot;,{capture:!1}],[i,&quot;keyup&quot;,void 0],[i,&quot;wheel&quot;,{passive:!1}],[i,&quot;contextmenu&quot;,void 0],[t.window,&quot;blur&quot;,void 0]];for(var a=0,o=this._listeners;a&lt;o.length;a+=1){var s=o[a],l=s[0],c=s[1],u=s[2];r.addEventListener(l,c,l===t.window.document?this.handleWindowEvent:this.handleEvent,u)}};yi.prototype.destroy=function(){for(var e=0,n=this._listeners;e&lt;n.length;e+=1){var i=n[e],a=i[0],o=i[1],s=i[2];r.removeEventListener(a,o,a===t.window.document?this.handleWindowEvent:this.handleEvent,s)}},yi.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add(&quot;mapEvent&quot;,new Nn(e,t));var n=e.boxZoom=new Un(e,t);this._add(&quot;boxZoom&quot;,n);var i=new Gn,a=new ui;e.doubleClickZoom=new ci(a,i),this._add(&quot;tapZoom&quot;,i),this._add(&quot;clickZoom&quot;,a);var o=new fi;this._add(&quot;tapDragZoom&quot;,o);var s=e.touchPitch=new ii;this._add(&quot;touchPitch&quot;,s);var l=new Xn(t),c=new Zn(t);e.dragRotate=new pi(t,l,c),this._add(&quot;mouseRotate&quot;,l,[&quot;mousePitch&quot;]),this._add(&quot;mousePitch&quot;,c,[&quot;mouseRotate&quot;]);var u=new Wn(t),f=new Jn(t);e.dragPan=new hi(r,u,f),this._add(&quot;mousePan&quot;,u),this._add(&quot;touchPan&quot;,f,[&quot;touchZoom&quot;,&quot;touchRotate&quot;]);var h=new ri,p=new ti;e.touchZoomRotate=new di(r,p,h,o),this._add(&quot;touchRotate&quot;,h,[&quot;touchPan&quot;,&quot;touchZoom&quot;]),this._add(&quot;touchZoom&quot;,p,[&quot;touchPan&quot;,&quot;touchRotate&quot;]);var d=e.scrollZoom=new li(e,this);this._add(&quot;scrollZoom&quot;,d,[&quot;mousePan&quot;]);var g=e.keyboard=new oi;this._add(&quot;keyboard&quot;,g),this._add(&quot;blockableMapEvent&quot;,new jn(e));for(var m=0,v=[&quot;boxZoom&quot;,&quot;doubleClickZoom&quot;,&quot;tapDragZoom&quot;,&quot;touchPitch&quot;,&quot;dragRotate&quot;,&quot;dragPan&quot;,&quot;touchZoomRotate&quot;,&quot;scrollZoom&quot;,&quot;keyboard&quot;];m&lt;v.length;m+=1){var y=v[m];t.interactive&amp;&amp;t[y]&amp;&amp;e[y].enable(t[y])}},yi.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},yi.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t&lt;e.length;t+=1){e[t].handler.reset()}this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},yi.prototype.isActive=function(){for(var t=0,e=this._handlers;t&lt;e.length;t+=1){if(e[t].handler.isActive())return!0}return!1},yi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},yi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},yi.prototype.isMoving=function(){return Boolean(gi(this._eventsInProgress))||this.isZooming()},yi.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&amp;&amp;(!e||e.indexOf(n)&lt;0))return!0;return!1},yi.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+&quot;Window&quot;)},yi.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r],a=i.target;this._el.contains(a)&amp;&amp;e.push(i)}return e},yi.prototype.handleEvent=function(t,e){if(&quot;blur&quot;!==t.type){this._updatingCamera=!0;for(var n=&quot;renderFrame&quot;===t.type?void 0:t,i={needsRenderFrame:!1},a={},o={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,u=this._handlers;c&lt;u.length;c+=1){var f=u[c],h=f.handlerName,p=f.handler,d=f.allowed;if(p.isEnabled()){var g=void 0;this._blockedByActive(o,d,h)?p.reset():p[e||t.type]&amp;&amp;(g=p[e||t.type](t,l,s),this.mergeHandlerResult(i,a,g,h,n),g&amp;&amp;g.needsRenderFrame&amp;&amp;this._triggerRenderFrame()),(g||p.isActive())&amp;&amp;(o[h]=p)}}var m={};for(var v in this._previousActiveHandlers)o[v]||(m[v]=n);this._previousActiveHandlers=o,(Object.keys(m).length||vi(i))&amp;&amp;(this._changes.push([i,a,m]),this._triggerRenderFrame()),(Object.keys(o).length||vi(i))&amp;&amp;this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&amp;&amp;(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],y(this._map))}else this.stop()},yi.prototype.mergeHandlerResult=function(e,r,n,i,a){if(n){t.extend(e,n);var o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&amp;&amp;(r.zoom=o),void 0!==n.panDelta&amp;&amp;(r.drag=o),void 0!==n.pitchDelta&amp;&amp;(r.pitch=o),void 0!==n.bearingDelta&amp;&amp;(r.rotate=o)}},yi.prototype._applyChanges=function(){for(var e={},r={},n={},i=0,a=this._changes;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=o[2];s.panDelta&amp;&amp;(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&amp;&amp;(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&amp;&amp;(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&amp;&amp;(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&amp;&amp;(e.around=s.around),void 0!==s.pinchAround&amp;&amp;(e.pinchAround=s.pinchAround),s.noInertia&amp;&amp;(e.noInertia=s.noInertia),t.extend(r,l),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},yi.prototype._updateMapTransform=function(t,e,r){var n=this._map,i=n.transform;if(!vi(t))return this._fireEvents(e,r);var a=t.panDelta,o=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,c=t.around,u=t.pinchAround;void 0!==u&amp;&amp;(c=u),n._stop(!0),c=c||n.transform.centerPoint;var f=i.pointLocation(a?c.sub(a):c);s&amp;&amp;(i.bearing+=s),l&amp;&amp;(i.pitch+=l),o&amp;&amp;(i.zoom+=o),i.setLocationAtPoint(f,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r)},yi.prototype._fireEvents=function(e,r){var n=this,i=gi(this._eventsInProgress),a=gi(e),o={};for(var s in e){var l=e[s].originalEvent;this._eventsInProgress[s]||(o[s+&quot;start&quot;]=l),this._eventsInProgress[s]=e[s]}for(var c in!i&amp;&amp;a&amp;&amp;this._fireEvent(&quot;movestart&quot;,a.originalEvent),o)this._fireEvent(c,o[c]);for(var u in e.rotate&amp;&amp;(this._bearingChanged=!0),a&amp;&amp;this._fireEvent(&quot;move&quot;,a.originalEvent),e){var f=e[u].originalEvent;this._fireEvent(u,f)}var h,p={};for(var d in this._eventsInProgress){var g=this._eventsInProgress[d],m=g.handlerName,v=g.originalEvent;this._handlersById[m].isActive()||(delete this._eventsInProgress[d],h=r[m]||v,p[d+&quot;end&quot;]=h)}for(var y in p)this._fireEvent(y,p[y]);var x=gi(this._eventsInProgress);if((i||a)&amp;&amp;!x){this._updatingCamera=!0;var b=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),_=function(t){return 0!==t&amp;&amp;-n._bearingSnap&lt;t&amp;&amp;t&lt;n._bearingSnap};b?(_(b.bearing||this._map.getBearing())&amp;&amp;(b.bearing=0),this._map.easeTo(b,{originalEvent:h})):(this._map.fire(new t.Event(&quot;moveend&quot;,{originalEvent:h})),_(this._map.getBearing())&amp;&amp;this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},yi.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},yi.prototype._triggerRenderFrame=function(){var t=this;void 0===this._frameId&amp;&amp;(this._frameId=this._map._requestRenderFrame((function(e){delete t._frameId,t.handleEvent(new mi(&quot;renderFrame&quot;,{timeStamp:e})),t._applyChanges()})))};var xi=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([&quot;_renderFrameCallback&quot;],this)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())&lt;this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,i){var a={top:0,bottom:0,right:0,left:0};if(&quot;number&quot;==typeof(i=t.extend({padding:a,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=t.extend(a,i.padding);var s=this.transform,l=s.padding,c=s.project(t.LngLat.convert(e)),u=s.project(t.LngLat.convert(r)),f=c.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),p=new t.Point(Math.max(f.x,h.x),Math.max(f.y,h.y)),d=new t.Point(Math.min(f.x,h.x),Math.min(f.y,h.y)),g=p.sub(d),m=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/g.x,v=(s.height-(l.top+l.bottom+i.padding.top+i.padding.bottom))/g.y;if(!(v&lt;0||m&lt;0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(m,v)),i.maxZoom),x=t.Point.convert(i.offset),b=(i.padding.left-i.padding.right)/2,_=(i.padding.top-i.padding.bottom)/2,w=new t.Point(x.x+b,x.y+_).mult(s.scale/s.zoomScale(y));return{center:s.unproject(c.add(u).div(2).sub(w)),zoom:y,bearing:n}}t.warnOnce(&quot;Map cannot fit within canvas with the given bounds, padding, and/or offset.&quot;)},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,i,a){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,i),i,a)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return&quot;zoom&quot;in e&amp;&amp;n.zoom!==+e.zoom&amp;&amp;(i=!0,n.zoom=+e.zoom),void 0!==e.center&amp;&amp;(n.center=t.LngLat.convert(e.center)),&quot;bearing&quot;in e&amp;&amp;n.bearing!==+e.bearing&amp;&amp;(a=!0,n.bearing=+e.bearing),&quot;pitch&quot;in e&amp;&amp;n.pitch!==+e.pitch&amp;&amp;(o=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event(&quot;movestart&quot;,r)).fire(new t.Event(&quot;move&quot;,r)),i&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,r)).fire(new t.Event(&quot;zoom&quot;,r)).fire(new t.Event(&quot;zoomend&quot;,r)),a&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,r)).fire(new t.Event(&quot;rotate&quot;,r)).fire(new t.Event(&quot;rotateend&quot;,r)),o&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,r)).fire(new t.Event(&quot;pitch&quot;,r)).fire(new t.Event(&quot;pitchend&quot;,r)),this.fire(new t.Event(&quot;moveend&quot;,r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&amp;&amp;t.browser.prefersReducedMotion)&amp;&amp;(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c=&quot;zoom&quot;in e?+e.zoom:a,u=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,o):o,f=&quot;pitch&quot;in e?+e.pitch:s,h=&quot;padding&quot;in e?e.padding:i.padding,p=t.Point.convert(e.offset),d=i.centerPoint.add(p),g=i.pointLocation(d),m=t.LngLat.convert(e.center||g);this._normalizeCenter(m);var v,y,x=i.project(g),b=i.project(m).sub(x),_=i.zoomScale(c-a);e.around&amp;&amp;(v=t.LngLat.convert(e.around),y=i.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==a,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(h),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(n._zooming&amp;&amp;(i.zoom=t.number(a,c,e)),n._rotating&amp;&amp;(i.bearing=t.number(o,u,e)),n._pitching&amp;&amp;(i.pitch=t.number(s,f,e)),n._padding&amp;&amp;(i.interpolatePadding(l,h,e),d=i.centerPoint.add(p)),v)i.setLocationAtPoint(v,y);else{var g=i.zoomScale(i.zoom-a),m=c&gt;a?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-e),T=i.unproject(x.add(b.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&amp;&amp;(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event(&quot;movestart&quot;,e)),this._zooming&amp;&amp;!n.zooming&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,e)),this._rotating&amp;&amp;!n.rotating&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,e)),this._pitching&amp;&amp;!n.pitching&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(&quot;move&quot;,e)),this._zooming&amp;&amp;this.fire(new t.Event(&quot;zoom&quot;,e)),this._rotating&amp;&amp;this.fire(new t.Event(&quot;rotate&quot;,e)),this._pitching&amp;&amp;this.fire(new t.Event(&quot;pitch&quot;,e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&amp;&amp;this.fire(new t.Event(&quot;zoomend&quot;,e)),i&amp;&amp;this.fire(new t.Event(&quot;rotateend&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;pitchend&quot;,e)),this.fire(new t.Event(&quot;moveend&quot;,e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&amp;&amp;t.browser.prefersReducedMotion){var i=t.pick(e,[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;,&quot;around&quot;]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u=&quot;zoom&quot;in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,s):s,h=&quot;pitch&quot;in e?+e.pitch:l,p=&quot;padding&quot;in e?e.padding:a.padding,d=a.zoomScale(u-o),g=t.Point.convert(e.offset),m=a.centerPoint.add(g),v=a.pointLocation(m),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=e.curve,w=Math.max(a.width,a.height),T=w/d,k=b.mag();if(&quot;minZoom&quot;in e){var A=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),M=w/a.zoomScale(A-o);_=Math.sqrt(M/k*2)}var S=_*_;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function L(t){return(Math.exp(t)-Math.exp(-t))/2}function C(t){return(Math.exp(t)+Math.exp(-t))/2}var P=E(0),I=function(t){return C(P)/C(P+_*t)},O=function(t){return w*((C(P)*(L(e=P+_*t)/C(e))-L(P))/S)/k;var e},z=(E(1)-P)/_;if(Math.abs(k)&lt;1e-6||!isFinite(z)){if(Math.abs(w-T)&lt;1e-6)return this.easeTo(e,r);var D=T&lt;w?-1:1;z=Math.abs(Math.log(T/w))/_,O=function(){return 0},I=function(t){return Math.exp(D*_*t)}}if(&quot;duration&quot;in e)e.duration=+e.duration;else{var R=&quot;screenSpeed&quot;in e?+e.screenSpeed/_:+e.speed;e.duration=1e3*z/R}return e.maxDuration&amp;&amp;e.duration&gt;e.maxDuration&amp;&amp;(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=h!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*z,d=1/I(i);a.zoom=1===e?u:o+a.scaleZoom(d),n._rotating&amp;&amp;(a.bearing=t.number(s,f,e)),n._pitching&amp;&amp;(a.pitch=t.number(l,h,e)),n._padding&amp;&amp;(a.interpolatePadding(c,p,e),m=a.centerPoint.add(g));var v=1===e?y:a.unproject(x.add(b.mult(O(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,m),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&amp;&amp;(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&amp;&amp;n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e&lt;1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)&lt;n&amp;&amp;(e-=360),Math.abs(e+360-r)&lt;n&amp;&amp;(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&amp;&amp;!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r&gt;180?-360:r&lt;-180?360:0}},r}(t.Evented),bi=function(e){void 0===e&amp;&amp;(e={}),this.options=e,t.bindAll([&quot;_updateEditLink&quot;,&quot;_updateData&quot;,&quot;_updateCompact&quot;],this)};bi.prototype.getDefaultPosition=function(){return&quot;bottom-right&quot;},bi.prototype.onAdd=function(t){var e=this.options&amp;&amp;this.options.compact;return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-attrib&quot;),this._innerContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-attrib-inner&quot;,this._container),e&amp;&amp;this._container.classList.add(&quot;mapboxgl-compact&quot;),this._updateAttributions(),this._updateEditLink(),this._map.on(&quot;styledata&quot;,this._updateData),this._map.on(&quot;sourcedata&quot;,this._updateData),this._map.on(&quot;moveend&quot;,this._updateEditLink),void 0===e&amp;&amp;(this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact()),this._container},bi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;styledata&quot;,this._updateData),this._map.off(&quot;sourcedata&quot;,this._updateData),this._map.off(&quot;moveend&quot;,this._updateEditLink),this._map.off(&quot;resize&quot;,this._updateCompact),this._map=void 0,this._attribHTML=void 0},bi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(&quot;.mapbox-improve-map&quot;));var r=[{key:&quot;owner&quot;,value:this.styleOwner},{key:&quot;id&quot;,value:this.styleId},{key:&quot;access_token&quot;,value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&amp;&amp;(t+=e.key+&quot;=&quot;+e.value+(n&lt;r.length-1?&quot;&amp;&quot;:&quot;&quot;)),t}),&quot;?&quot;);e.href=t.config.FEEDBACK_URL+&quot;/&quot;+n+(this._map._hash?this._map._hash.getHashString(!0):&quot;&quot;),e.rel=&quot;noopener nofollow&quot;}},bi.prototype._updateData=function(t){!t||&quot;metadata&quot;!==t.sourceDataType&amp;&amp;&quot;style&quot;!==t.dataType||(this._updateAttributions(),this._updateEditLink())},bi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&amp;&amp;(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return&quot;string&quot;!=typeof t?&quot;&quot;:t}))):&quot;string&quot;==typeof this.options.customAttribution&amp;&amp;t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n];if(i.used){var a=i.getSource();a.attribution&amp;&amp;t.indexOf(a.attribution)&lt;0&amp;&amp;t.push(a.attribution)}}t.sort((function(t,e){return t.length-e.length}));var o=(t=t.filter((function(e,r){for(var n=r+1;n&lt;t.length;n++)if(t[n].indexOf(e)&gt;=0)return!1;return!0}))).join(&quot; | &quot;);o!==this._attribHTML&amp;&amp;(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove(&quot;mapboxgl-attrib-empty&quot;)):this._container.classList.add(&quot;mapboxgl-attrib-empty&quot;),this._editLink=null)}},bi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth&lt;=640?this._container.classList.add(&quot;mapboxgl-compact&quot;):this._container.classList.remove(&quot;mapboxgl-compact&quot;)};var _i=function(){t.bindAll([&quot;_updateLogo&quot;],this),t.bindAll([&quot;_updateCompact&quot;],this)};_i.prototype.onAdd=function(t){this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl&quot;);var e=r.create(&quot;a&quot;,&quot;mapboxgl-ctrl-logo&quot;);return e.target=&quot;_blank&quot;,e.rel=&quot;noopener nofollow&quot;,e.href=&quot;https://www.mapbox.com/&quot;,e.setAttribute(&quot;aria-label&quot;,this._map._getUIString(&quot;LogoControl.Title&quot;)),e.setAttribute(&quot;rel&quot;,&quot;noopener nofollow&quot;),this._container.appendChild(e),this._container.style.display=&quot;none&quot;,this._map.on(&quot;sourcedata&quot;,this._updateLogo),this._updateLogo(),this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact(),this._container},_i.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;sourcedata&quot;,this._updateLogo),this._map.off(&quot;resize&quot;,this._updateCompact)},_i.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},_i.prototype._updateLogo=function(t){t&amp;&amp;&quot;metadata&quot;!==t.sourceDataType||(this._container.style.display=this._logoRequired()?&quot;block&quot;:&quot;none&quot;)},_i.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t){if(t[e].getSource().mapbox_logo)return!0}return!1}},_i.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth&lt;250?e.classList.add(&quot;mapboxgl-compact&quot;):e.classList.remove(&quot;mapboxgl-compact&quot;)}};var wi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};wi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},wi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r&lt;n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},wi.prototype.run=function(t){void 0===t&amp;&amp;(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];if(!i.cancelled&amp;&amp;(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},wi.prototype.clear=function(){this._currentlyRunning&amp;&amp;(this._cleared=!0),this._queue=[]};var Ti={&quot;FullscreenControl.Enter&quot;:&quot;Enter fullscreen&quot;,&quot;FullscreenControl.Exit&quot;:&quot;Exit fullscreen&quot;,&quot;GeolocateControl.FindMyLocation&quot;:&quot;Find my location&quot;,&quot;GeolocateControl.LocationNotAvailable&quot;:&quot;Location not available&quot;,&quot;LogoControl.Title&quot;:&quot;Mapbox logo&quot;,&quot;NavigationControl.ResetBearing&quot;:&quot;Reset bearing to north&quot;,&quot;NavigationControl.ZoomIn&quot;:&quot;Zoom in&quot;,&quot;NavigationControl.ZoomOut&quot;:&quot;Zoom out&quot;,&quot;ScaleControl.Feet&quot;:&quot;ft&quot;,&quot;ScaleControl.Meters&quot;:&quot;m&quot;,&quot;ScaleControl.Kilometers&quot;:&quot;km&quot;,&quot;ScaleControl.Miles&quot;:&quot;mi&quot;,&quot;ScaleControl.NauticalMiles&quot;:&quot;nm&quot;},ki=t.window.HTMLImageElement,Ai=t.window.HTMLElement,Mi=t.window.ImageBitmap,Si={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:&quot;sans-serif&quot;,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Ei=function(n){function i(e){var r=this;if(null!=(e=t.extend({},Si,e)).minZoom&amp;&amp;null!=e.maxZoom&amp;&amp;e.minZoom&gt;e.maxZoom)throw new Error(&quot;maxZoom must be greater than or equal to minZoom&quot;);if(null!=e.minPitch&amp;&amp;null!=e.maxPitch&amp;&amp;e.minPitch&gt;e.maxPitch)throw new Error(&quot;maxPitch must be greater than or equal to minPitch&quot;);if(null!=e.minPitch&amp;&amp;e.minPitch&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(null!=e.maxPitch&amp;&amp;e.maxPitch&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);var i=new An(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new wi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},Ti,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),&quot;string&quot;==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(&quot;Container '&quot;+e.container+&quot;' not found.&quot;)}else{if(!(e.container instanceof Ai))throw new Error(&quot;Invalid type: 'container' must be a String or HTMLElement.&quot;);this._container=e.container}if(e.maxBounds&amp;&amp;this.setMaxBounds(e.maxBounds),t.bindAll([&quot;_onWindowOnline&quot;,&quot;_onWindowResize&quot;,&quot;_contextLost&quot;,&quot;_contextRestored&quot;],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error(&quot;Failed to initialize WebGL.&quot;);this.on(&quot;move&quot;,(function(){return r._update(!1)})),this.on(&quot;moveend&quot;,(function(){return r._update(!1)})),this.on(&quot;zoom&quot;,(function(){return r._update(!0)})),void 0!==t.window&amp;&amp;(t.window.addEventListener(&quot;online&quot;,this._onWindowOnline,!1),t.window.addEventListener(&quot;resize&quot;,this._onWindowResize,!1)),this.handlers=new yi(this,e);var a=&quot;string&quot;==typeof e.hash&amp;&amp;e.hash||void 0;this._hash=e.hash&amp;&amp;new Sn(a).addTo(this),this._hash&amp;&amp;this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&amp;&amp;(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&amp;&amp;this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&amp;&amp;this.addControl(new bi({customAttribution:e.customAttribution})),this.addControl(new _i,e.logoPosition),this.on(&quot;style.load&quot;,(function(){r.transform.unmodified&amp;&amp;r.jumpTo(r.style.stylesheet)})),this.on(&quot;data&quot;,(function(e){r._update(&quot;style&quot;===e.dataType),r.fire(new t.Event(e.dataType+&quot;data&quot;,e))})),this.on(&quot;dataloading&quot;,(function(e){r.fire(new t.Event(e.dataType+&quot;dataloading&quot;,e))}))}n&amp;&amp;(i.__proto__=n),i.prototype=Object.create(n&amp;&amp;n.prototype),i.prototype.constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&amp;&amp;e.getDefaultPosition&amp;&amp;(r=e.getDefaultPosition()),void 0===r&amp;&amp;(r=&quot;top-right&quot;),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf(&quot;bottom&quot;)?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var r=this._controls.indexOf(e);return r&gt;-1&amp;&amp;this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&amp;&amp;(this.stop(),this.fire(new t.Event(&quot;movestart&quot;,e)).fire(new t.Event(&quot;move&quot;,e))),this.fire(new t.Event(&quot;resize&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;moveend&quot;,e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)&gt;=-2&amp;&amp;t&lt;=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()&lt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;minZoom must be between -2 and the current maxZoom, inclusive&quot;)},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null==t?22:t)&gt;=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()&gt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;maxZoom must be greater than the current minZoom&quot;)},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(t&gt;=0&amp;&amp;t&lt;=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()&lt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;minPitch must be between 0 and the current maxPitch, inclusive&quot;)},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null==t?60:t)&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);if(t&gt;=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()&gt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;maxPitch must be greater than the current minPitch&quot;)},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if(&quot;mouseenter&quot;===t||&quot;mouseover&quot;===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new Rn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if(&quot;mouseleave&quot;===t||&quot;mouseout&quot;===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&amp;&amp;(o=!1,r.call(i,new Rn(t,i,n.originalEvent)))},mouseout:function(e){o&amp;&amp;(o=!1,r.call(i,new Rn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&amp;&amp;(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;if(void 0===r)return n.prototype.off.call(this,t,e);return this._delegatedListeners&amp;&amp;this._delegatedListeners[t]&amp;&amp;function(n){for(var a=n[t],o=0;o&lt;a.length;o++){var s=a[o];if(s.layer===e&amp;&amp;s.listener===r){for(var l in s.delegates)i.off(l,s.delegates[l]);return a.splice(o,1),i}}}(this._delegatedListeners),this},i.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||&quot;number&quot;==typeof e[0])n=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),a=t.Point.convert(e[1]);n=[i,new t.Point(a.x,i.y),a,new t.Point(i.x,a.y),i]}return this.style.queryRenderedFeatures(n,r,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&amp;&amp;r.localIdeographFontFamily===this._localIdeographFontFamily&amp;&amp;this.style&amp;&amp;e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error(&quot;Missing UI string '&quot;+t+&quot;'&quot;);return e},i.prototype._updateStyle=function(t,e){return this.style&amp;&amp;(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new He(this,e||{}),this.style.setEventedParent(this,{style:this.style}),&quot;string&quot;==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new He(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,r){var n=this;if(&quot;string&quot;==typeof e){var i=this._requestManager.normalizeStyleURL(e),a=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(a,(function(e,i){e?n.fire(new t.ErrorEvent(e)):i&amp;&amp;n._updateDiff(i,r)}))}else&quot;object&quot;==typeof e&amp;&amp;this._updateDiff(e,r)},i.prototype._updateDiff=function(e,r){try{this.style.setState(e)&amp;&amp;this._update(!0)}catch(n){t.warnOnce(&quot;Unable to perform style diff: &quot;+(n.message||n.error||n)+&quot;.  Rebuilding the style from scratch.&quot;),this._updateStyle(e,r)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(&quot;There is no style added to the map.&quot;)},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var r=this.style&amp;&amp;this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(&quot;There is no source with ID '&quot;+e+&quot;'&quot;)))},i.prototype.areTilesLoaded=function(){var t=this.style&amp;&amp;this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(&quot;loaded&quot;!==i.state&amp;&amp;&quot;errored&quot;!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,r,n){void 0===n&amp;&amp;(n={});var i=n.pixelRatio;void 0===i&amp;&amp;(i=1);var a=n.sdf;void 0===a&amp;&amp;(a=!1);var o=n.stretchX,s=n.stretchY,l=n.content;this._lazyInitEmptyStyle();if(r instanceof ki||Mi&amp;&amp;r instanceof Mi){var c=t.browser.getImageData(r),u=c.width,f=c.height,h=c.data;this.style.addImage(e,{data:new t.RGBAImage({width:u,height:f},h),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));var p=r.width,d=r.height,g=r.data,m=r;this.style.addImage(e,{data:new t.RGBAImage({width:p,height:d},new Uint8Array(g)),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0,userImage:m}),m.onAdd&amp;&amp;m.onAdd(this,e)}},i.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error(&quot;The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.&quot;)));var i=r instanceof ki||Mi&amp;&amp;r instanceof Mi?t.browser.getImageData(r):r,a=i.width,o=i.height,s=i.data;if(void 0===a||void 0===o)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));if(a!==n.data.width||o!==n.data.height)return this.fire(new t.ErrorEvent(new Error(&quot;The width and height of the updated image must be that same as the previous version of the image&quot;)));var l=!(r instanceof ki||Mi&amp;&amp;r instanceof Mi);n.data.replace(s,l),this.style.updateImage(e,n)},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(&quot;Missing required image id&quot;))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},i.prototype.setFilter=function(t,e,r){return void 0===r&amp;&amp;(r={}),this.style.setFilter(t,e,r),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&amp;&amp;(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&amp;&amp;(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){&quot;rgb(250, 128, 114)&quot;!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue(&quot;background-color&quot;)&amp;&amp;t.warnOnce(&quot;This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.&quot;)},i.prototype._setupContainer=function(){var t=this._container;t.classList.add(&quot;mapboxgl-map&quot;),(this._missingCSSCanary=r.create(&quot;div&quot;,&quot;mapboxgl-canary&quot;,t)).style.visibility=&quot;hidden&quot;,this._detectMissingCSS();var e=this._canvasContainer=r.create(&quot;div&quot;,&quot;mapboxgl-canvas-container&quot;,t);this._interactive&amp;&amp;e.classList.add(&quot;mapboxgl-interactive&quot;),this._canvas=r.create(&quot;canvas&quot;,&quot;mapboxgl-canvas&quot;,e),this._canvas.addEventListener(&quot;webglcontextlost&quot;,this._contextLost,!1),this._canvas.addEventListener(&quot;webglcontextrestored&quot;,this._contextRestored,!1),this._canvas.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._canvas.setAttribute(&quot;aria-label&quot;,&quot;Map&quot;);var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-control-container&quot;,t),a=this._controlPositions={};[&quot;top-left&quot;,&quot;top-right&quot;,&quot;bottom-left&quot;,&quot;bottom-right&quot;].forEach((function(t){a[t]=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-&quot;+t,i)}))},i.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+&quot;px&quot;,this._canvas.style.height=r+&quot;px&quot;},i.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext(&quot;webgl&quot;,r)||this._canvas.getContext(&quot;experimental-webgl&quot;,r);n?(this.painter=new _n(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error(&quot;Failed to initialize WebGL&quot;)))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this.fire(new t.Event(&quot;webglcontextlost&quot;,{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(&quot;webglcontextrestored&quot;,{originalEvent:e}))},i.prototype.loaded=function(){return!this._styleDirty&amp;&amp;!this._sourcesDirty&amp;&amp;!!this.style&amp;&amp;this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var r,n=this,i=0,a=this.painter.context.extTimerQuery;if(this.listens(&quot;gpu-timing-frame&quot;)&amp;&amp;(r=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,r),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var o=!1;if(this.style&amp;&amp;this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var c=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();1===u&amp;&amp;u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&amp;&amp;this._sourcesDirty&amp;&amp;(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&amp;&amp;this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens(&quot;gpu-timing-layer&quot;)}),this.fire(new t.Event(&quot;render&quot;)),this.loaded()&amp;&amp;!this._loaded&amp;&amp;(this._loaded=!0,this.fire(new t.Event(&quot;load&quot;))),this.style&amp;&amp;(this.style.hasTransitions()||o)&amp;&amp;(this._styleDirty=!0),this.style&amp;&amp;!this._placementDirty&amp;&amp;this.style._releaseSymbolFadeTiles(),this.listens(&quot;gpu-timing-frame&quot;)){var f=t.browser.now()-i;a.endQueryEXT(a.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=a.getQueryObjectEXT(r,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r),n.fire(new t.Event(&quot;gpu-timing-frame&quot;,{cpuTime:f,gpuTime:e}))}),50)}if(this.listens(&quot;gpu-timing-layer&quot;)){var h=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(h);n.fire(new t.Event(&quot;gpu-timing-layer&quot;,{layerTimes:e}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&amp;&amp;this.loaded()&amp;&amp;(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new t.Event(&quot;idle&quot;))),this}},i.prototype.remove=function(){this._hash&amp;&amp;this._hash.remove();for(var e=0,r=this._controls;e&lt;r.length;e+=1){r[e].onRemove(this)}this._controls=[],this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&amp;&amp;(t.window.removeEventListener(&quot;resize&quot;,this._onWindowResize,!1),t.window.removeEventListener(&quot;online&quot;,this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension(&quot;WEBGL_lose_context&quot;);n&amp;&amp;n.loseContext(),Li(this._canvasContainer),Li(this._controlContainer),Li(this._missingCSSCanary),this._container.classList.remove(&quot;mapboxgl-map&quot;),this._removed=!0,this.fire(new t.Event(&quot;remove&quot;))},i.prototype.triggerRepaint=function(){var e=this;this.style&amp;&amp;!this._frame&amp;&amp;(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&amp;&amp;this.resize({originalEvent:t})._update()},a.showTileBoundaries.get=function(){return!!this._showTileBoundaries},a.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&amp;&amp;(this._showTileBoundaries=t,this._update())},a.showPadding.get=function(){return!!this._showPadding},a.showPadding.set=function(t){this._showPadding!==t&amp;&amp;(this._showPadding=t,this._update())},a.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},a.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&amp;&amp;(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},a.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},a.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&amp;&amp;(this._showOverdrawInspector=t,this._update())},a.repaint.get=function(){return!!this._repaint},a.repaint.set=function(t){this._repaint!==t&amp;&amp;(this._repaint=t,this.triggerRepaint())},a.vertices.get=function(){return!!this._vertices},a.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},a.version.get=function(){return t.version},Object.defineProperties(i.prototype,a),i}(xi);function Li(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}var Ci={showCompass:!0,showZoom:!0,visualizePitch:!1},Pi=function(e){var n=this;this.options=t.extend({},Ci,e),this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this.options.showZoom&amp;&amp;(t.bindAll([&quot;_setButtonTitle&quot;,&quot;_updateZoomButtons&quot;],this),this._zoomInButton=this._createButton(&quot;mapboxgl-ctrl-zoom-in&quot;,(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomInButton).setAttribute(&quot;aria-hidden&quot;,!0),this._zoomOutButton=this._createButton(&quot;mapboxgl-ctrl-zoom-out&quot;,(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomOutButton).setAttribute(&quot;aria-hidden&quot;,!0)),this.options.showCompass&amp;&amp;(t.bindAll([&quot;_rotateCompassArrow&quot;],this),this._compass=this._createButton(&quot;mapboxgl-ctrl-compass&quot;,(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._compass),this._compassIcon.setAttribute(&quot;aria-hidden&quot;,!0))};Pi.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Pi.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?&quot;scale(&quot;+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+&quot;) rotateX(&quot;+this._map.transform.pitch+&quot;deg) rotateZ(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;:&quot;rotate(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;;this._compassIcon.style.transform=t},Pi.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&amp;&amp;(this._setButtonTitle(this._zoomInButton,&quot;ZoomIn&quot;),this._setButtonTitle(this._zoomOutButton,&quot;ZoomOut&quot;),this._map.on(&quot;zoom&quot;,this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&amp;&amp;(this._setButtonTitle(this._compass,&quot;ResetBearing&quot;),this.options.visualizePitch&amp;&amp;this._map.on(&quot;pitch&quot;,this._rotateCompassArrow),this._map.on(&quot;rotate&quot;,this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ii(this._map,this._compass,this.options.visualizePitch)),this._container},Pi.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&amp;&amp;this._map.off(&quot;zoom&quot;,this._updateZoomButtons),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.off(&quot;pitch&quot;,this._rotateCompassArrow),this._map.off(&quot;rotate&quot;,this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Pi.prototype._createButton=function(t,e){var n=r.create(&quot;button&quot;,t,this._container);return n.type=&quot;button&quot;,n.addEventListener(&quot;click&quot;,e),n},Pi.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString(&quot;NavigationControl.&quot;+e);t.title=r,t.setAttribute(&quot;aria-label&quot;,r)};var Ii=function(e,n,i){void 0===i&amp;&amp;(i=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Xn({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&amp;&amp;(this.mousePitch=new Zn({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll([&quot;mousedown&quot;,&quot;mousemove&quot;,&quot;mouseup&quot;,&quot;touchstart&quot;,&quot;touchmove&quot;,&quot;touchend&quot;,&quot;reset&quot;],this),r.addEventListener(n,&quot;mousedown&quot;,this.mousedown),r.addEventListener(n,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.addEventListener(n,&quot;touchmove&quot;,this.touchmove),r.addEventListener(n,&quot;touchend&quot;,this.touchend),r.addEventListener(n,&quot;touchcancel&quot;,this.reset)};function Oi(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var i=new t.LngLat(e.lng-360,e.lat),a=new t.LngLat(e.lng+360,e.lat),o=n.locationPoint(e).distSqr(r);n.locationPoint(i).distSqr(r)&lt;o?e=i:n.locationPoint(a).distSqr(r)&lt;o&amp;&amp;(e=a)}for(;Math.abs(e.lng-n.center.lng)&gt;180;){var s=n.locationPoint(e);if(s.x&gt;=0&amp;&amp;s.y&gt;=0&amp;&amp;s.x&lt;=n.width&amp;&amp;s.y&lt;=n.height)break;e.lng&gt;n.center.lng?e.lng-=360:e.lng+=360}return e}Ii.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&amp;&amp;this.mousePitch.mousedown(t,e),r.disableDrag()},Ii.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&amp;&amp;n.bearingDelta&amp;&amp;r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&amp;&amp;i.pitchDelta&amp;&amp;r.setPitch(r.getPitch()+i.pitchDelta)}},Ii.prototype.off=function(){var t=this.element;r.removeEventListener(t,&quot;mousedown&quot;,this.mousedown),r.removeEventListener(t,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.removeEventListener(t,&quot;touchmove&quot;,this.touchmove),r.removeEventListener(t,&quot;touchend&quot;,this.touchend),r.removeEventListener(t,&quot;touchcancel&quot;,this.reset),this.offTemp()},Ii.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.removeEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ii.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.addEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ii.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ii.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&amp;&amp;this.mousePitch.mouseupWindow(t),this.offTemp()},Ii.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:&quot;mousedown&quot;,button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ii.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ii.prototype.touchend=function(t){0===t.targetTouches.length&amp;&amp;this._startPos&amp;&amp;this._lastPos&amp;&amp;this._startPos.dist(this._lastPos)&lt;this._clickTolerance&amp;&amp;this.element.click(),this.reset()},Ii.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&amp;&amp;this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var zi={center:&quot;translate(-50%,-50%)&quot;,top:&quot;translate(-50%,0)&quot;,&quot;top-left&quot;:&quot;translate(0,0)&quot;,&quot;top-right&quot;:&quot;translate(-100%,0)&quot;,bottom:&quot;translate(-50%,-100%)&quot;,&quot;bottom-left&quot;:&quot;translate(0,-100%)&quot;,&quot;bottom-right&quot;:&quot;translate(-100%,-100%)&quot;,left:&quot;translate(0,-50%)&quot;,right:&quot;translate(-100%,-50%)&quot;};function Di(t,e,r){var n=t.classList;for(var i in zi)n.remove(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+i);n.add(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+e)}var Ri,Fi=function(e){function n(n,i){var a=this;if(e.call(this),(n instanceof t.window.HTMLElement||i)&amp;&amp;(n=t.extend({element:n},i)),t.bindAll([&quot;_update&quot;,&quot;_onMove&quot;,&quot;_onUp&quot;,&quot;_addDragHandler&quot;,&quot;_onMapClick&quot;,&quot;_onKeyPress&quot;],this),this._anchor=n&amp;&amp;n.anchor||&quot;center&quot;,this._color=n&amp;&amp;n.color||&quot;#3FB1CE&quot;,this._draggable=n&amp;&amp;n.draggable||!1,this._state=&quot;inactive&quot;,this._rotation=n&amp;&amp;n.rotation||0,this._rotationAlignment=n&amp;&amp;n.rotationAlignment||&quot;auto&quot;,this._pitchAlignment=n&amp;&amp;n.pitchAlignment&amp;&amp;&quot;auto&quot;!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&amp;&amp;n.element)this._element=n.element,this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create(&quot;div&quot;),this._element.setAttribute(&quot;aria-label&quot;,&quot;Map marker&quot;);var o=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);o.setAttributeNS(null,&quot;display&quot;,&quot;block&quot;),o.setAttributeNS(null,&quot;height&quot;,&quot;41px&quot;),o.setAttributeNS(null,&quot;width&quot;,&quot;27px&quot;),o.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 27 41&quot;);var s=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);s.setAttributeNS(null,&quot;stroke&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;stroke-width&quot;,&quot;1&quot;),s.setAttributeNS(null,&quot;fill&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;fill-rule&quot;,&quot;evenodd&quot;);var l=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);l.setAttributeNS(null,&quot;fill-rule&quot;,&quot;nonzero&quot;);var c=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);c.setAttributeNS(null,&quot;transform&quot;,&quot;translate(3.0, 29.0)&quot;),c.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);for(var u=0,f=[{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;9.5&quot;,ry:&quot;4.77275007&quot;},{rx:&quot;8.5&quot;,ry:&quot;4.29549936&quot;},{rx:&quot;7.5&quot;,ry:&quot;3.81822308&quot;},{rx:&quot;6.5&quot;,ry:&quot;3.34094679&quot;},{rx:&quot;5.5&quot;,ry:&quot;2.86367051&quot;},{rx:&quot;4.5&quot;,ry:&quot;2.38636864&quot;}];u&lt;f.length;u+=1){var h=f[u],p=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;ellipse&quot;);p.setAttributeNS(null,&quot;opacity&quot;,&quot;0.04&quot;),p.setAttributeNS(null,&quot;cx&quot;,&quot;10.5&quot;),p.setAttributeNS(null,&quot;cy&quot;,&quot;5.80029008&quot;),p.setAttributeNS(null,&quot;rx&quot;,h.rx),p.setAttributeNS(null,&quot;ry&quot;,h.ry),c.appendChild(p)}var d=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);d.setAttributeNS(null,&quot;fill&quot;,this._color);var g=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);g.setAttributeNS(null,&quot;d&quot;,&quot;M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z&quot;),d.appendChild(g);var m=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);m.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),m.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);var v=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);v.setAttributeNS(null,&quot;d&quot;,&quot;M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z&quot;),m.appendChild(v);var y=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);y.setAttributeNS(null,&quot;transform&quot;,&quot;translate(6.0, 7.0)&quot;),y.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;);var x=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);x.setAttributeNS(null,&quot;transform&quot;,&quot;translate(8.0, 8.0)&quot;);var b=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);b.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;),b.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),b.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;);var _=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);_.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;),_.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;),x.appendChild(b),x.appendChild(_),l.appendChild(c),l.appendChild(d),l.appendChild(m),l.appendChild(y),l.appendChild(x),o.appendChild(l),this._element.appendChild(o),this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,-14])}this._element.classList.add(&quot;mapboxgl-marker&quot;),this._element.addEventListener(&quot;dragstart&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;mousedown&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;focus&quot;,(function(){var t=a._map.getContainer();t.scrollTop=0,t.scrollLeft=0})),Di(this._element,this._anchor,&quot;marker&quot;),this._popup=null}return e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(&quot;move&quot;,this._update),t.on(&quot;moveend&quot;,this._update),this.setDraggable(this._draggable),this._update(),this._map.on(&quot;click&quot;,this._onMapClick),this},n.prototype.remove=function(){return this._map&amp;&amp;(this._map.off(&quot;click&quot;,this._onMapClick),this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;moveend&quot;,this._update),this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler),this._map.off(&quot;mouseup&quot;,this._onUp),this._map.off(&quot;touchend&quot;,this._onUp),this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),delete this._map),r.remove(this._element),this._popup&amp;&amp;this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&amp;&amp;this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&amp;&amp;(this._popup.remove(),this._popup=null,this._element.removeEventListener(&quot;keypress&quot;,this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(&quot;tabindex&quot;)),t){if(!(&quot;offset&quot;in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],&quot;top-left&quot;:[0,0],&quot;top-right&quot;:[0,0],bottom:[0,-38.1],&quot;bottom-left&quot;:[e,-1*(24.6+e)],&quot;bottom-right&quot;:[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&amp;&amp;this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute(&quot;tabindex&quot;),this._originalTabIndex||this._element.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._element.addEventListener(&quot;keypress&quot;,this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;&quot;Space&quot;!==e&amp;&amp;&quot;Enter&quot;!==e&amp;&amp;32!==r&amp;&amp;13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&amp;&amp;(e===r||r.contains(e))&amp;&amp;this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&amp;&amp;(this._lngLat=Oi(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e=&quot;&quot;;&quot;viewport&quot;===this._rotationAlignment||&quot;auto&quot;===this._rotationAlignment?e=&quot;rotateZ(&quot;+this._rotation+&quot;deg)&quot;:&quot;map&quot;===this._rotationAlignment&amp;&amp;(e=&quot;rotateZ(&quot;+(this._rotation-this._map.getBearing())+&quot;deg)&quot;);var n=&quot;&quot;;&quot;viewport&quot;===this._pitchAlignment||&quot;auto&quot;===this._pitchAlignment?n=&quot;rotateX(0deg)&quot;:&quot;map&quot;===this._pitchAlignment&amp;&amp;(n=&quot;rotateX(&quot;+this._map.getPitch()+&quot;deg)&quot;),t&amp;&amp;&quot;moveend&quot;!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,zi[this._anchor]+&quot; translate(&quot;+this._pos.x+&quot;px, &quot;+this._pos.y+&quot;px) &quot;+n+&quot; &quot;+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=&quot;none&quot;,&quot;pending&quot;===this._state&amp;&amp;(this._state=&quot;active&quot;,this.fire(new t.Event(&quot;dragstart&quot;))),this.fire(new t.Event(&quot;drag&quot;))},n.prototype._onUp=function(){this._element.style.pointerEvents=&quot;auto&quot;,this._positionDelta=null,this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),&quot;active&quot;===this._state&amp;&amp;this.fire(new t.Event(&quot;dragend&quot;)),this._state=&quot;inactive&quot;},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&amp;&amp;(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state=&quot;pending&quot;,this._map.on(&quot;mousemove&quot;,this._onMove),this._map.on(&quot;touchmove&quot;,this._onMove),this._map.once(&quot;mouseup&quot;,this._onUp),this._map.once(&quot;touchend&quot;,this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&amp;&amp;(t?(this._map.on(&quot;mousedown&quot;,this._addDragHandler),this._map.on(&quot;touchstart&quot;,this._addDragHandler)):(this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||&quot;auto&quot;,this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&amp;&amp;&quot;auto&quot;!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Bi={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};var Ni=0,ji=!1,Ui=function(e){function n(r){e.call(this),this.options=t.extend({},Bi,r),t.bindAll([&quot;_onSuccess&quot;,&quot;_onError&quot;,&quot;_onZoom&quot;,&quot;_finish&quot;,&quot;_setupUI&quot;,&quot;_updateCamera&quot;,&quot;_updateMarker&quot;],this)}return e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),n=this._setupUI,void 0!==Ri?n(Ri):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:&quot;geolocation&quot;}).then((function(t){Ri=&quot;denied&quot;!==t.state,n(Ri)})):(Ri=!!t.window.navigator.geolocation,n(Ri)),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&amp;&amp;(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&amp;&amp;this._userLocationDotMarker&amp;&amp;this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&amp;&amp;this._accuracyCircleMarker&amp;&amp;this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off(&quot;zoom&quot;,this._onZoom),this._map=void 0,Ni=0,ji=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&amp;&amp;(r.longitude&lt;e.getWest()||r.longitude&gt;e.getEast()||r.latitude&lt;e.getSouth()||r.latitude&gt;e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;);break;case&quot;BACKGROUND&quot;:this._watchState=&quot;BACKGROUND_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;)}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event(&quot;outofmaxbounds&quot;,e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;BACKGROUND&quot;:case&quot;BACKGROUND_ERROR&quot;:this._watchState=&quot;BACKGROUND&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;)}this.options.showUserLocation&amp;&amp;&quot;OFF&quot;!==this._watchState&amp;&amp;this._updateMarker(e),this.options.trackUserLocation&amp;&amp;&quot;ACTIVE_LOCK&quot;!==this._watchState||this._updateCamera(e),this.options.showUserLocation&amp;&amp;this._dotElement.classList.remove(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;geolocate&quot;,e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+&quot;px&quot;,this._circleElement.style.height=i+&quot;px&quot;},n.prototype._onZoom=function(){this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.disabled=!0;var r=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.title=r,this._geolocateButton.setAttribute(&quot;aria-label&quot;,r),void 0!==this._geolocationWatchID&amp;&amp;this._clearWatch()}else{if(3===e.code&amp;&amp;ji)return;this._setErrorState()}&quot;OFF&quot;!==this._watchState&amp;&amp;this.options.showUserLocation&amp;&amp;this._dotElement.classList.add(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;error&quot;,e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&amp;&amp;clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this._geolocateButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-geolocate&quot;,this._container),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._geolocateButton).setAttribute(&quot;aria-hidden&quot;,!0),this._geolocateButton.type=&quot;button&quot;,!1===e){t.warnOnce(&quot;Geolocation support is not available so the GeolocateControl will be disabled.&quot;);var i=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute(&quot;aria-label&quot;,i)}else{var a=this._map._getUIString(&quot;GeolocateControl.FindMyLocation&quot;);this._geolocateButton.title=a,this._geolocateButton.setAttribute(&quot;aria-label&quot;,a)}this.options.trackUserLocation&amp;&amp;(this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this._watchState=&quot;OFF&quot;),this.options.showUserLocation&amp;&amp;(this._dotElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-dot&quot;),this._userLocationDotMarker=new Fi(this._dotElement),this._circleElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-accuracy-circle&quot;),this._accuracyCircleMarker=new Fi({element:this._circleElement,pitchAlignment:&quot;map&quot;}),this.options.trackUserLocation&amp;&amp;(this._watchState=&quot;OFF&quot;),this._map.on(&quot;zoom&quot;,this._onZoom)),this._geolocateButton.addEventListener(&quot;click&quot;,this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&amp;&amp;this._map.on(&quot;movestart&quot;,(function(e){var r=e.originalEvent&amp;&amp;&quot;resize&quot;===e.originalEvent.type;e.geolocateSource||&quot;ACTIVE_LOCK&quot;!==n._watchState||r||(n._watchState=&quot;BACKGROUND&quot;,n._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;),n._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),n.fire(new t.Event(&quot;trackuserlocationend&quot;)))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce(&quot;Geolocate control triggered before added to a map&quot;),!1;if(this.options.trackUserLocation){switch(this._watchState){case&quot;OFF&quot;:this._watchState=&quot;WAITING_ACTIVE&quot;,this.fire(new t.Event(&quot;trackuserlocationstart&quot;));break;case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:case&quot;BACKGROUND_ERROR&quot;:Ni--,ji=!1,this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this.fire(new t.Event(&quot;trackuserlocationend&quot;));break;case&quot;BACKGROUND&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._lastKnownPosition&amp;&amp;this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(&quot;trackuserlocationstart&quot;))}switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;BACKGROUND&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;);break;case&quot;BACKGROUND_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;)}if(&quot;OFF&quot;===this._watchState&amp;&amp;void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;true&quot;),++Ni&gt;1?(e={maximumAge:6e5,timeout:0},ji=!0):(e=this.options.positionOptions,ji=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this.options.showUserLocation&amp;&amp;this._updateMarker(null)},n}(t.Evented),Vi={maxWidth:100,unit:&quot;metric&quot;},qi=function(e){this.options=t.extend({},Vi,e),t.bindAll([&quot;_onMove&quot;,&quot;setUnit&quot;],this)};function Hi(t,e,r){var n=r&amp;&amp;r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&amp;&amp;&quot;imperial&quot;===r.unit){var l=3.2808*s;if(l&gt;5280)Gi(e,n,l/5280,t._getUIString(&quot;ScaleControl.Miles&quot;));else Gi(e,n,l,t._getUIString(&quot;ScaleControl.Feet&quot;))}else if(r&amp;&amp;&quot;nautical&quot;===r.unit){Gi(e,n,s/1852,t._getUIString(&quot;ScaleControl.NauticalMiles&quot;))}else s&gt;=1e3?Gi(e,n,s/1e3,t._getUIString(&quot;ScaleControl.Kilometers&quot;)):Gi(e,n,s,t._getUIString(&quot;ScaleControl.Meters&quot;))}function Gi(t,e,r,n){var i,a,o,s=(i=r,a=Math.pow(10,(&quot;&quot;+Math.floor(i)).length-1),o=(o=i/a)&gt;=10?10:o&gt;=5?5:o&gt;=3?3:o&gt;=2?2:o&gt;=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(o),a*o),l=s/r;t.style.width=e*l+&quot;px&quot;,t.innerHTML=s+&quot;&amp;nbsp;&quot;+n}qi.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},qi.prototype._onMove=function(){Hi(this._map,this._container,this.options)},qi.prototype.onAdd=function(t){return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-scale&quot;,t.getContainer()),this._map.on(&quot;move&quot;,this._onMove),this._onMove(),this._container},qi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;move&quot;,this._onMove),this._map=void 0},qi.prototype.setUnit=function(t){this.options.unit=t,Hi(this._map,this._container,this.options)};var Yi=function(e){this._fullscreen=!1,e&amp;&amp;e.container&amp;&amp;(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce(&quot;Full screen control 'container' must be a DOM element.&quot;)),t.bindAll([&quot;_onClickFullscreen&quot;,&quot;_changeIcon&quot;],this),&quot;onfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;fullscreenchange&quot;:&quot;onmozfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;mozfullscreenchange&quot;:&quot;onwebkitfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;webkitfullscreenchange&quot;:&quot;onmsfullscreenchange&quot;in t.window.document&amp;&amp;(this._fullscreenchange=&quot;MSFullscreenChange&quot;)};Yi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display=&quot;none&quot;,t.warnOnce(&quot;This device does not support fullscreen mode.&quot;)),this._controlContainer},Yi.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Yi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Yi.prototype._setupUI=function(){var e=this._fullscreenButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-fullscreen&quot;,this._controlContainer);r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,e).setAttribute(&quot;aria-hidden&quot;,!0),e.type=&quot;button&quot;,this._updateTitle(),this._fullscreenButton.addEventListener(&quot;click&quot;,this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Yi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute(&quot;aria-label&quot;,t),this._fullscreenButton.title=t},Yi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?&quot;FullscreenControl.Exit&quot;:&quot;FullscreenControl.Enter&quot;)},Yi.prototype._isFullscreen=function(){return this._fullscreen},Yi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&amp;&amp;(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-shrink&quot;),this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-fullscreen&quot;),this._updateTitle())},Yi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&amp;&amp;t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&amp;&amp;this._container.webkitRequestFullscreen()};var Wi={closeButton:!0,closeOnClick:!0,className:&quot;&quot;,maxWidth:&quot;240px&quot;},Xi=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Wi),r),t.bindAll([&quot;_update&quot;,&quot;_onClose&quot;,&quot;remove&quot;,&quot;_onMouseMove&quot;,&quot;_onMouseUp&quot;,&quot;_onDrag&quot;],this)}return e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(e){return this._map&amp;&amp;this.remove(),this._map=e,this.options.closeOnClick&amp;&amp;this._map.on(&quot;click&quot;,this._onClose),this.options.closeOnMove&amp;&amp;this._map.on(&quot;move&quot;,this._onClose),this._map.on(&quot;remove&quot;,this.remove),this._update(),this._trackPointer?(this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;mouseup&quot;,this._onMouseUp),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)):this._map.on(&quot;move&quot;,this._update),this.fire(new t.Event(&quot;open&quot;)),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&amp;&amp;r.remove(this._content),this._container&amp;&amp;(r.remove(this._container),delete this._container),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;move&quot;,this._onClose),this._map.off(&quot;click&quot;,this._onClose),this._map.off(&quot;remove&quot;,this.remove),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._map.off(&quot;mouseup&quot;,this._onMouseUp),this._map.off(&quot;drag&quot;,this._onDrag),delete this._map),this.fire(new t.Event(&quot;close&quot;)),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&amp;&amp;(this._map.on(&quot;move&quot;,this._update),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._container&amp;&amp;this._container.classList.remove(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.remove(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;drag&quot;,this._onDrag),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement(&quot;body&quot;);for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&amp;&amp;this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&amp;&amp;this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&amp;&amp;this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&amp;&amp;r.remove(this._content),this._content=r.create(&quot;div&quot;,&quot;mapboxgl-popup-content&quot;,this._container),this.options.closeButton&amp;&amp;(this._closeButton=r.create(&quot;button&quot;,&quot;mapboxgl-popup-close-button&quot;,this._content),this._closeButton.type=&quot;button&quot;,this._closeButton.setAttribute(&quot;aria-label&quot;,&quot;Close popup&quot;),this._closeButton.innerHTML=&quot;&amp;#215;&quot;,this._closeButton.addEventListener(&quot;click&quot;,this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this,i=this._lngLat||this._trackPointer;if(this._map&amp;&amp;i&amp;&amp;this._content&amp;&amp;(this._container||(this._container=r.create(&quot;div&quot;,&quot;mapboxgl-popup&quot;,this._map.getContainer()),this._tip=r.create(&quot;div&quot;,&quot;mapboxgl-popup-tip&quot;,this._container),this._container.appendChild(this._content),this.options.className&amp;&amp;this.options.className.split(&quot; &quot;).forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;)),this.options.maxWidth&amp;&amp;this._container.style.maxWidth!==this.options.maxWidth&amp;&amp;(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&amp;&amp;!this._trackPointer&amp;&amp;(this._lngLat=Oi(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var a=this._pos=this._trackPointer&amp;&amp;e?e:this._map.project(this._lngLat),o=this.options.anchor,s=function e(r){if(r){if(&quot;number&quot;==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),&quot;top-left&quot;:new t.Point(n,n),&quot;top-right&quot;:new t.Point(-n,n),bottom:new t.Point(0,-r),&quot;bottom-left&quot;:new t.Point(n,-n),&quot;bottom-right&quot;:new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var i=t.Point.convert(r);return{center:i,top:i,&quot;top-left&quot;:i,&quot;top-right&quot;:i,bottom:i,&quot;bottom-left&quot;:i,&quot;bottom-right&quot;:i,left:i,right:i}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),&quot;top-left&quot;:t.Point.convert(r[&quot;top-left&quot;]||[0,0]),&quot;top-right&quot;:t.Point.convert(r[&quot;top-right&quot;]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),&quot;bottom-left&quot;:t.Point.convert(r[&quot;bottom-left&quot;]||[0,0]),&quot;bottom-right&quot;:t.Point.convert(r[&quot;bottom-right&quot;]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!o){var l,c=this._container.offsetWidth,u=this._container.offsetHeight;l=a.y+s.bottom.y&lt;u?[&quot;top&quot;]:a.y&gt;this._map.transform.height-u?[&quot;bottom&quot;]:[],a.x&lt;c/2?l.push(&quot;left&quot;):a.x&gt;this._map.transform.width-c/2&amp;&amp;l.push(&quot;right&quot;),o=0===l.length?&quot;bottom&quot;:l.join(&quot;-&quot;)}var f=a.add(s[o]).round();r.setTransform(this._container,zi[o]+&quot; translate(&quot;+f.x+&quot;px,&quot;+f.y+&quot;px)&quot;),Di(this._container,o,&quot;popup&quot;)}},n.prototype._onClose=function(){this.remove()},n}(t.Evented);var Zi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Ei,NavigationControl:Pi,GeolocateControl:Ui,AttributionControl:bi,ScaleControl:qi,FullscreenControl:Yi,Popup:Xi,Marker:Fi,Style:He,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(zt)},clearPrewarmedResources:function(){var t=Rt;t&amp;&amp;(t.isPreloaded()&amp;&amp;1===t.numActive()?(t.release(zt),Rt=null):console.warn(&quot;Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()&quot;))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:&quot;&quot;};return Zi})),r}))},{}],462:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1&lt;&lt;t+1,r=new Array(e),n=0;n&lt;e;++n)r[n]=a(t,n);return r};var n=t(&quot;convex-hull&quot;);function i(t,e,r){for(var n=new Array(t),i=0;i&lt;t;++i)n[i]=0,i===e&amp;&amp;(n[i]+=.5),i===r&amp;&amp;(n[i]+=.5);return n}function a(t,e){if(0===e||e===(1&lt;&lt;t+1)-1)return[];for(var r=[],a=[],o=0;o&lt;=t;++o)if(e&amp;1&lt;&lt;o){r.push(i(t,o-1,o-1)),a.push(null);for(var s=0;s&lt;=t;++s)~e&amp;1&lt;&lt;s&amp;&amp;(r.push(i(t,o-1,s-1)),a.push([o,s]))}var l=n(r),c=[];t:for(o=0;o&lt;l.length;++o){var u=l[o],f=[];for(s=0;s&lt;u.length;++s){if(!a[u[s]])continue t;f.push(a[u[s]].slice())}c.push(f)}return c}},{&quot;convex-hull&quot;:141}],463:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;gl-mat4/create&quot;),a=t(&quot;gl-mat4/clone&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;gl-mat4/invert&quot;),l=t(&quot;gl-mat4/transpose&quot;),c={length:t(&quot;gl-vec3/length&quot;),normalize:t(&quot;gl-vec3/normalize&quot;),dot:t(&quot;gl-vec3/dot&quot;),cross:t(&quot;gl-vec3/cross&quot;)},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function g(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,m,v){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),m||(m=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)&lt;1e-8))return!1;var y,x,b,_,w,T,k,A=u[3],M=u[7],S=u[11],E=u[12],L=u[13],C=u[14],P=u[15];if(0!==A||0!==M||0!==S){if(h[0]=A,h[1]=M,h[2]=S,h[3]=P,!s(f,f))return!1;l(f,f),y=m,b=f,_=(x=h)[0],w=x[1],T=x[2],k=x[3],y[0]=b[0]*_+b[4]*w+b[8]*T+b[12]*k,y[1]=b[1]*_+b[5]*w+b[9]*T+b[13]*k,y[2]=b[2]*_+b[6]*w+b[10]*T+b[14]*k,y[3]=b[3]*_+b[7]*w+b[11]*T+b[15]*k}else m[0]=m[1]=m[2]=0,m[3]=1;if(e[0]=E,e[1]=L,e[2]=C,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),g(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),g(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),g(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)&lt;0)for(var I=0;I&lt;3;I++)r[I]*=-1,p[I][0]*=-1,p[I][1]*=-1,p[I][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]&gt;p[1][2]&amp;&amp;(v[0]=-v[0]),p[0][2]&gt;p[2][0]&amp;&amp;(v[1]=-v[1]),p[1][0]&gt;p[0][1]&amp;&amp;(v[2]=-v[2]),!0}},{&quot;./normalize&quot;:464,&quot;gl-mat4/clone&quot;:284,&quot;gl-mat4/create&quot;:286,&quot;gl-mat4/determinant&quot;:287,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/transpose&quot;:312,&quot;gl-vec3/cross&quot;:368,&quot;gl-vec3/dot&quot;:373,&quot;gl-vec3/length&quot;:383,&quot;gl-vec3/normalize&quot;:390}],464:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i&lt;16;i++)t[i]=e[i]*n;return!0}},{}],465:[function(t,e,r){var n=t(&quot;gl-vec3/lerp&quot;),i=t(&quot;mat4-recompose&quot;),a=t(&quot;mat4-decompose&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;quat-slerp&quot;),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p)&amp;&amp;(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},{&quot;gl-mat4/determinant&quot;:287,&quot;gl-vec3/lerp&quot;:384,&quot;mat4-decompose&quot;:463,&quot;mat4-recompose&quot;:466,&quot;quat-slerp&quot;:529}],466:[function(t,e,r){var n={identity:t(&quot;gl-mat4/identity&quot;),translate:t(&quot;gl-mat4/translate&quot;),multiply:t(&quot;gl-mat4/multiply&quot;),create:t(&quot;gl-mat4/create&quot;),scale:t(&quot;gl-mat4/scale&quot;),fromRotationTranslation:t(&quot;gl-mat4/fromRotationTranslation&quot;)},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&amp;&amp;(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&amp;&amp;(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&amp;&amp;(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{&quot;gl-mat4/create&quot;:286,&quot;gl-mat4/fromRotationTranslation&quot;:290,&quot;gl-mat4/identity&quot;:297,&quot;gl-mat4/multiply&quot;:301,&quot;gl-mat4/scale&quot;:309,&quot;gl-mat4/translate&quot;:311}],467:[function(t,e,r){&quot;use strict&quot;;e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],468:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;mat4-interpolate&quot;),a=t(&quot;gl-mat4/invert&quot;),o=t(&quot;gl-mat4/rotateX&quot;),s=t(&quot;gl-mat4/rotateY&quot;),l=t(&quot;gl-mat4/rotateZ&quot;),c=t(&quot;gl-mat4/lookAt&quot;),u=t(&quot;gl-mat4/translate&quot;),f=(t(&quot;gl-mat4/scale&quot;),t(&quot;gl-vec3/normalize&quot;)),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r&lt;0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c&lt;16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c&lt;16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c&lt;16;++c)d[c]=s[l++],p=p&amp;&amp;h[c]===d[c];if(u&lt;1e-6||p)for(c=0;c&lt;16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var m=this.computedInverse;a(m,o);var v=this.computedEye,y=m[15];v[0]=m[12]/y,v[1]=m[13]/y,v[2]=m[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c&lt;3;++c)x[c]=v[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t&lt;this.lastT())){for(var e=this._components,r=e.length-16,n=0;n&lt;16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e&lt;0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a&lt;3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&amp;&amp;s(i,i,e),r&amp;&amp;o(i,i,r),n&amp;&amp;l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var g=[0,0,0];d.pan=function(t,e,r,n){g[0]=-(e||0),g[1]=-(r||0),g[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,g),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){g[0]=e||0,g[1]=r||0,g[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,g),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t&lt;this.lastT())){this._time.push(t);for(var r=0;r&lt;16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{&quot;binary-search-bounds&quot;:103,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/lookAt&quot;:300,&quot;gl-mat4/rotateX&quot;:306,&quot;gl-mat4/rotateY&quot;:307,&quot;gl-mat4/rotateZ&quot;:308,&quot;gl-mat4/scale&quot;:309,&quot;gl-mat4/translate&quot;:311,&quot;gl-vec3/normalize&quot;:390,&quot;mat4-interpolate&quot;:465}],469:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;3){for(var r=new Array(e),i=0;i&lt;e;++i)r[i]=i;return 2===e&amp;&amp;t[0][0]===t[1][0]&amp;&amp;t[0][1]===t[1][1]?[0]:r}var a=new Array(e);for(i=0;i&lt;e;++i)a[i]=i;a.sort((function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]}));var o=[a[0],a[1]],s=[a[0],a[1]];for(i=2;i&lt;e;++i){for(var l=a[i],c=t[l],u=o.length;u&gt;1&amp;&amp;n(t[o[u-2]],t[o[u-1]],c)&lt;=0;)u-=1,o.pop();for(o.push(l),u=s.length;u&gt;1&amp;&amp;n(t[s[u-2]],t[s[u-1]],c)&gt;=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,h=(i=0,o.length);i&lt;h;++i)r[f++]=o[i];for(var p=s.length-2;p&gt;0;--p)r[f++]=s[p];return r};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],470:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return&quot;altKey&quot;in t&amp;&amp;(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),&quot;shiftKey&quot;in t&amp;&amp;(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),&quot;ctrlKey&quot;in t&amp;&amp;(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),&quot;metaKey&quot;in t&amp;&amp;(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);&quot;buttons&quot;in s&amp;&amp;(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&amp;&amp;(r=0|t,i=c||0,a=u||0,e&amp;&amp;e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&amp;&amp;(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&amp;&amp;e(0,0,0,o))}function h(t){l(t)&amp;&amp;e&amp;&amp;e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function g(t){c(r&amp;~n.buttons(t),t)}function m(){s||(s=!0,t.addEventListener(&quot;mousemove&quot;,p),t.addEventListener(&quot;mousedown&quot;,d),t.addEventListener(&quot;mouseup&quot;,g),t.addEventListener(&quot;mouseleave&quot;,u),t.addEventListener(&quot;mouseenter&quot;,u),t.addEventListener(&quot;mouseout&quot;,u),t.addEventListener(&quot;mouseover&quot;,u),t.addEventListener(&quot;blur&quot;,f),t.addEventListener(&quot;keyup&quot;,h),t.addEventListener(&quot;keydown&quot;,h),t.addEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.addEventListener(&quot;blur&quot;,f),window.addEventListener(&quot;keyup&quot;,h),window.addEventListener(&quot;keydown&quot;,h),window.addEventListener(&quot;keypress&quot;,h)))}m();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?m():function(){if(!s)return;s=!1,t.removeEventListener(&quot;mousemove&quot;,p),t.removeEventListener(&quot;mousedown&quot;,d),t.removeEventListener(&quot;mouseup&quot;,g),t.removeEventListener(&quot;mouseleave&quot;,u),t.removeEventListener(&quot;mouseenter&quot;,u),t.removeEventListener(&quot;mouseout&quot;,u),t.removeEventListener(&quot;mouseover&quot;,u),t.removeEventListener(&quot;blur&quot;,f),t.removeEventListener(&quot;keyup&quot;,h),t.removeEventListener(&quot;keydown&quot;,h),t.removeEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.removeEventListener(&quot;blur&quot;,f),window.removeEventListener(&quot;keyup&quot;,h),window.removeEventListener(&quot;keydown&quot;,h),window.removeEventListener(&quot;keypress&quot;,h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t(&quot;mouse-event&quot;)},{&quot;mouse-event&quot;:472}],471:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],472:[function(t,e,r){&quot;use strict&quot;;function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(&quot;object&quot;==typeof t){if(&quot;buttons&quot;in t)return t.buttons;if(&quot;which&quot;in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e&gt;0)return 1&lt;&lt;e-1}else if(&quot;button&quot;in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e&gt;=0)return 1&lt;&lt;e}}return 0},r.element=n,r.x=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetX&quot;in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetY&quot;in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],473:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;to-px&quot;);e.exports=function(t,e,r){&quot;function&quot;==typeof t&amp;&amp;(r=!!e,e=t,t=window);var i=n(&quot;ex&quot;,t),a=function(t){r&amp;&amp;t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener(&quot;wheel&quot;,a),a}},{&quot;to-px&quot;:600}],474:[function(t,e,r){(function(t,r){(function(){
/*! Native Promise Only
    v0.8.1 (c) Kyle Simpson
    MIT License: http://getify.mit-license.org
*/
!function(t,r,n){r[t]=r[t]||n(),void 0!==e&amp;&amp;e.exports&amp;&amp;(e.exports=r[t])}(&quot;Promise&quot;,void 0!==t?t:this,(function(){&quot;use strict&quot;;var t,e,n,i=Object.prototype.toString,a=void 0!==r?function(t){return r(t)}:setTimeout;try{Object.defineProperty({},&quot;x&quot;,{}),t=function(t,e,r,n){return Object.defineProperty(t,e,{value:r,writable:!0,configurable:!1!==n})}}catch(e){t=function(t,e,r){return t[e]=r,t}}function o(t,r){n.add(t,r),e||(e=a(n.drain))}function s(t){var e,r=typeof t;return null==t||&quot;object&quot;!=r&amp;&amp;&quot;function&quot;!=r||(e=t.then),&quot;function&quot;==typeof e&amp;&amp;e}function l(){for(var t=0;t&lt;this.chain.length;t++)c(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function c(t,e,r){var n,i;try{!1===e?r.reject(t.msg):(n=!0===e?t.msg:e.call(void 0,t.msg))===r.promise?r.reject(TypeError(&quot;Promise-chain cycle&quot;)):(i=s(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(t){r.reject(t)}}function u(t){var e,r=this;if(!r.triggered){r.triggered=!0,r.def&amp;&amp;(r=r.def);try{(e=s(t))?o((function(){var n=new p(r);try{e.call(t,(function(){u.apply(n,arguments)}),(function(){f.apply(n,arguments)}))}catch(t){f.call(n,t)}})):(r.msg=t,r.state=1,r.chain.length&gt;0&amp;&amp;o(l,r))}catch(t){f.call(new p(r),t)}}}function f(t){var e=this;e.triggered||(e.triggered=!0,e.def&amp;&amp;(e=e.def),e.msg=t,e.state=2,e.chain.length&gt;0&amp;&amp;o(l,e))}function h(t,e,r,n){for(var i=0;i&lt;e.length;i++)!function(i){t.resolve(e[i]).then((function(t){r(i,t)}),n)}(i)}function p(t){this.def=t,this.triggered=!1}function d(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(t){if(&quot;function&quot;!=typeof t)throw TypeError(&quot;Not a function&quot;);if(0!==this.__NPO__)throw TypeError(&quot;Not a promise&quot;);this.__NPO__=1;var e=new d(this);this.then=function(t,r){var n={success:&quot;function&quot;!=typeof t||t,failure:&quot;function&quot;==typeof r&amp;&amp;r};return n.promise=new this.constructor((function(t,e){if(&quot;function&quot;!=typeof t||&quot;function&quot;!=typeof e)throw TypeError(&quot;Not a function&quot;);n.resolve=t,n.reject=e})),e.chain.push(n),0!==e.state&amp;&amp;o(l,e),n.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,(function(t){u.call(e,t)}),(function(t){f.call(e,t)}))}catch(t){f.call(e,t)}}n=function(){var t,r,n;function i(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,a){n=new i(e,a),r?r.next=n:t=n,r=n,n=void 0},drain:function(){var n=t;for(t=r=e=void 0;n;)n.fn.call(n.self),n=n.next}}}();var m=t({},&quot;constructor&quot;,g,!1);return g.prototype=m,t(m,&quot;__NPO__&quot;,0,!1),t(g,&quot;resolve&quot;,(function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;1===t.__NPO__?t:new this((function(e,r){if(&quot;function&quot;!=typeof e||&quot;function&quot;!=typeof r)throw TypeError(&quot;Not a function&quot;);e(t)}))})),t(g,&quot;reject&quot;,(function(t){return new this((function(e,r){if(&quot;function&quot;!=typeof e||&quot;function&quot;!=typeof r)throw TypeError(&quot;Not a function&quot;);r(t)}))})),t(g,&quot;all&quot;,(function(t){var e=this;return&quot;[object Array]&quot;!=i.call(t)?e.reject(TypeError(&quot;Not an array&quot;)):0===t.length?e.resolve([]):new e((function(r,n){if(&quot;function&quot;!=typeof r||&quot;function&quot;!=typeof n)throw TypeError(&quot;Not a function&quot;);var i=t.length,a=Array(i),o=0;h(e,t,(function(t,e){a[t]=e,++o===i&amp;&amp;r(a)}),n)}))})),t(g,&quot;race&quot;,(function(t){var e=this;return&quot;[object Array]&quot;!=i.call(t)?e.reject(TypeError(&quot;Not an array&quot;)):new e((function(r,n){if(&quot;function&quot;!=typeof r||&quot;function&quot;!=typeof n)throw TypeError(&quot;Not a function&quot;);h(e,t,(function(t,e){r(e)}),n)}))})),g}))}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{},t(&quot;timers&quot;).setImmediate)},{timers:597}],475:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;);function i(t){return&quot;a&quot;+t}function a(t){return&quot;d&quot;+t}function o(t,e){return&quot;c&quot;+t+&quot;_&quot;+e}function s(t){return&quot;s&quot;+t}function l(t,e){return&quot;t&quot;+t+&quot;_&quot;+e}function c(t){return&quot;o&quot;+t}function u(t){return&quot;x&quot;+t}function f(t){return&quot;p&quot;+t}function h(t,e){return&quot;d&quot;+t+&quot;_&quot;+e}function p(t){return&quot;i&quot;+t}function d(t,e){return&quot;u&quot;+t+&quot;_&quot;+e}function g(t){return&quot;b&quot;+t}function m(t){return&quot;y&quot;+t}function v(t){return&quot;e&quot;+t}function y(t){return&quot;v&quot;+t}e.exports=function(t){function e(t){throw new Error(&quot;ndarray-extract-contour: &quot;+t)}&quot;object&quot;!=typeof t&amp;&amp;e(&quot;Must specify arguments&quot;);var r=t.order;Array.isArray(r)||e(&quot;Must specify order&quot;);var b=t.arrayArguments||1;b&lt;1&amp;&amp;e(&quot;Must have at least one array argument&quot;);var _=t.scalarArguments||0;_&lt;0&amp;&amp;e(&quot;Scalar arg count must be &gt; 0&quot;);&quot;function&quot;!=typeof t.vertex&amp;&amp;e(&quot;Must specify vertex creation function&quot;);&quot;function&quot;!=typeof t.cell&amp;&amp;e(&quot;Must specify cell creation function&quot;);&quot;function&quot;!=typeof t.phase&amp;&amp;e(&quot;Must specify phase function&quot;);for(var w=t.getters||[],T=new Array(b),k=0;k&lt;b;++k)w.indexOf(k)&gt;=0?T[k]=!0:T[k]=!1;return function(t,e,r,b,_,w){var T=w.length,k=_.length;if(k&lt;2)throw new Error(&quot;ndarray-extract-contour: Dimension must be at least 2&quot;);for(var A=&quot;extractContour&quot;+_.join(&quot;_&quot;),M=[],S=[],E=[],L=0;L&lt;T;++L)E.push(i(L));for(L=0;L&lt;b;++L)E.push(u(L));for(L=0;L&lt;k;++L)S.push(s(L)+&quot;=&quot;+i(0)+&quot;.shape[&quot;+L+&quot;]|0&quot;);for(L=0;L&lt;T;++L){S.push(a(L)+&quot;=&quot;+i(L)+&quot;.data&quot;,c(L)+&quot;=&quot;+i(L)+&quot;.offset|0&quot;);for(var C=0;C&lt;k;++C)S.push(l(L,C)+&quot;=&quot;+i(L)+&quot;.stride[&quot;+C+&quot;]|0&quot;)}for(L=0;L&lt;T;++L){S.push(f(L)+&quot;=&quot;+c(L)),S.push(o(L,0));for(C=1;C&lt;1&lt;&lt;k;++C){for(var P=[],I=0;I&lt;k;++I)C&amp;1&lt;&lt;I&amp;&amp;P.push(&quot;-&quot;+l(L,I));S.push(h(L,C)+&quot;=(&quot;+P.join(&quot;&quot;)+&quot;)|0&quot;),S.push(o(L,C)+&quot;=0&quot;)}}for(L=0;L&lt;T;++L)for(C=0;C&lt;k;++C){var O=[l(L,_[C])];C&gt;0&amp;&amp;O.push(l(L,_[C-1])+&quot;*&quot;+s(_[C-1])),S.push(d(L,_[C])+&quot;=(&quot;+O.join(&quot;-&quot;)+&quot;)|0&quot;)}for(L=0;L&lt;k;++L)S.push(p(L)+&quot;=0&quot;);S.push(&quot;N=0&quot;);var z=[&quot;2&quot;];for(L=k-2;L&gt;=0;--L)z.push(s(_[L]));S.push(&quot;Q=(&quot;+z.join(&quot;*&quot;)+&quot;)|0&quot;,&quot;P=mallocUint32(Q)&quot;,&quot;V=mallocUint32(Q)&quot;,&quot;X=0&quot;),S.push(g(0)+&quot;=0&quot;);for(C=1;C&lt;1&lt;&lt;k;++C){var D=[],R=[];for(I=0;I&lt;k;++I)C&amp;1&lt;&lt;I&amp;&amp;(0===R.length?D.push(&quot;1&quot;):D.unshift(R.join(&quot;*&quot;))),R.push(s(_[I]));var F=&quot;&quot;;D[0].indexOf(s(_[k-2]))&lt;0&amp;&amp;(F=&quot;-&quot;);var B=x(k,C,_);S.push(v(B)+&quot;=(-&quot;+D.join(&quot;-&quot;)+&quot;)|0&quot;,m(B)+&quot;=(&quot;+F+D.join(&quot;-&quot;)+&quot;)|0&quot;,g(B)+&quot;=0&quot;)}function N(t,e){M.push(&quot;for(&quot;,p(_[t]),&quot;=&quot;,e,&quot;;&quot;,p(_[t]),&quot;&lt;&quot;,s(_[t]),&quot;;&quot;,&quot;++&quot;,p(_[t]),&quot;){&quot;)}function j(t){for(var e=0;e&lt;T;++e)M.push(f(e),&quot;+=&quot;,d(e,_[t]),&quot;;&quot;);M.push(&quot;}&quot;)}function U(){for(var t=1;t&lt;1&lt;&lt;k;++t)M.push(&quot;T&quot;,&quot;=&quot;,v(t),&quot;;&quot;,v(t),&quot;=&quot;,m(t),&quot;;&quot;,m(t),&quot;=&quot;,&quot;T&quot;,&quot;;&quot;)}S.push(y(0)+&quot;=0&quot;,&quot;T=0&quot;),function t(e,r){if(e&lt;0)!function(t){for(var e=0;e&lt;T;++e)w[e]?M.push(o(e,0),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;);&quot;):M.push(o(e,0),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;];&quot;);var r=[];for(e=0;e&lt;T;++e)r.push(o(e,0));for(e=0;e&lt;b;++e)r.push(u(e));M.push(g(0),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=phase(&quot;,r.join(),&quot;);&quot;);for(var n=1;n&lt;1&lt;&lt;k;++n)M.push(g(n),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;+&quot;,v(n),&quot;];&quot;);var i=[];for(n=1;n&lt;1&lt;&lt;k;++n)i.push(&quot;(&quot;+g(0)+&quot;!==&quot;+g(n)+&quot;)&quot;);M.push(&quot;if(&quot;,i.join(&quot;||&quot;),&quot;){&quot;);var s=[];for(e=0;e&lt;k;++e)s.push(p(e));for(e=0;e&lt;T;++e){s.push(o(e,0));for(n=1;n&lt;1&lt;&lt;k;++n)w[e]?M.push(o(e,n),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;+&quot;,h(e,n),&quot;);&quot;):M.push(o(e,n),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;+&quot;,h(e,n),&quot;];&quot;),s.push(o(e,n))}for(e=0;e&lt;1&lt;&lt;k;++e)s.push(g(e));for(e=0;e&lt;b;++e)s.push(u(e));M.push(&quot;vertex(&quot;,s.join(),&quot;);&quot;,y(0),&quot;=&quot;,&quot;V&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=&quot;,&quot;N&quot;,&quot;++;&quot;);var l=(1&lt;&lt;k)-1,c=g(l);for(n=0;n&lt;k;++n)if(0==(t&amp;~(1&lt;&lt;n))){for(var d=l^1&lt;&lt;n,m=g(d),x=[],_=d;_&gt;0;_=_-1&amp;d)x.push(&quot;V[X+&quot;+v(_)+&quot;]&quot;);x.push(y(0));for(_=0;_&lt;T;++_)1&amp;n?x.push(o(_,l),o(_,d)):x.push(o(_,d),o(_,l));1&amp;n?x.push(c,m):x.push(m,c);for(_=0;_&lt;b;++_)x.push(u(_));M.push(&quot;if(&quot;,c,&quot;!==&quot;,m,&quot;){&quot;,&quot;face(&quot;,x.join(),&quot;)}&quot;)}M.push(&quot;}&quot;,&quot;X&quot;,&quot;+=1;&quot;)}(r);else{!function(t){for(var e=t-1;e&gt;=0;--e)N(e,0);var r=[];for(e=0;e&lt;T;++e)w[e]?r.push(a(e)+&quot;.get(&quot;+f(e)+&quot;)&quot;):r.push(a(e)+&quot;[&quot;+f(e)+&quot;]&quot;);for(e=0;e&lt;b;++e)r.push(u(e));for(M.push(&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;++]=phase(&quot;,r.join(),&quot;);&quot;),e=0;e&lt;t;++e)j(e);for(var n=0;n&lt;T;++n)M.push(f(n),&quot;+=&quot;,d(n,_[t]),&quot;;&quot;)}(e),M.push(&quot;if(&quot;,s(_[e]),&quot;&gt;0){&quot;,p(_[e]),&quot;=1;&quot;),t(e-1,r|1&lt;&lt;_[e]);for(var n=0;n&lt;T;++n)M.push(f(n),&quot;+=&quot;,d(n,_[e]),&quot;;&quot;);e===k-1&amp;&amp;(M.push(&quot;X&quot;,&quot;=0;&quot;),U()),N(e,2),t(e-1,r),e===k-1&amp;&amp;(M.push(&quot;if(&quot;,p(_[k-1]),&quot;&amp;1){&quot;,&quot;X&quot;,&quot;=0;}&quot;),U()),j(e),M.push(&quot;}&quot;)}}(k-1,0),M.push(&quot;freeUint32(&quot;,&quot;V&quot;,&quot;);freeUint32(&quot;,&quot;P&quot;,&quot;);&quot;);var V=[&quot;'use strict';&quot;,&quot;function &quot;,A,&quot;(&quot;,E.join(),&quot;){&quot;,&quot;var &quot;,S.join(),&quot;;&quot;,M.join(&quot;&quot;),&quot;}&quot;,&quot;return &quot;,A].join(&quot;&quot;);return new Function(&quot;vertex&quot;,&quot;face&quot;,&quot;phase&quot;,&quot;mallocUint32&quot;,&quot;freeUint32&quot;,V)(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,_,r,T)};function x(t,e,r){for(var n=0,i=0;i&lt;t;++i)e&amp;1&lt;&lt;i&amp;&amp;(n|=1&lt;&lt;r[i]);return n}},{&quot;typedarray-pool&quot;:617}],476:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(&quot;ndarray-gradient: invalid boundary conditions&quot;)}else r=n(e.dimension,&quot;string&quot;==typeof r?r:&quot;clamp&quot;);if(t.dimension!==e.dimension+1)throw new Error(&quot;ndarray-gradient: output dimension must be +1 input dimension&quot;);if(t.shape[e.dimension]!==e.dimension)throw new Error(&quot;ndarray-gradient: output shape must match input shape&quot;);for(var i=0;i&lt;e.dimension;++i)if(t.shape[i]!==e.shape[i])throw new Error(&quot;ndarray-gradient: shape mismatch&quot;);if(0===e.size)return t;if(e.dimension&lt;=0)return t.set(0),t;return function(t){var e=t.join();if(v=o[e])return v;var r=t.length,n=[&quot;function gradient(dst,src){var s=src.shape.slice();&quot;];function i(e){for(var i=r-e.length,a=[],o=[],s=[],l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0?s.push(&quot;0&quot;):e.indexOf(-(l+1))&gt;=0?s.push(&quot;s[&quot;+l+&quot;]-1&quot;):(s.push(&quot;-1&quot;),a.push(&quot;1&quot;),o.push(&quot;s[&quot;+l+&quot;]-2&quot;));var c=&quot;.lo(&quot;+a.join()+&quot;).hi(&quot;+o.join()+&quot;)&quot;;if(0===a.length&amp;&amp;(c=&quot;&quot;),i&gt;0){n.push(&quot;if(1&quot;);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;&amp;&amp;s[&quot;,l,&quot;]&gt;2&quot;);n.push(&quot;){grad&quot;,i,&quot;(src.pick(&quot;,s.join(),&quot;)&quot;,c);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;,dst.pick(&quot;,s.join(),&quot;,&quot;,l,&quot;)&quot;,c);n.push(&quot;);&quot;)}for(l=0;l&lt;e.length;++l){var u=Math.abs(e[l])-1,f=&quot;dst.pick(&quot;+s.join()+&quot;,&quot;+u+&quot;)&quot;+c;switch(t[u]){case&quot;clamp&quot;:var h=s.slice(),p=s.slice();e[l]&lt;0?h[u]=&quot;s[&quot;+u+&quot;]-2&quot;:p[u]=&quot;1&quot;,0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,h.join(),&quot;)-src.get(&quot;,p.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){diff(&quot;,f,&quot;,src.pick(&quot;,h.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,p.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;case&quot;mirror&quot;:0===i?n.push(&quot;dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0);&quot;):n.push(&quot;zero(&quot;,f,&quot;);&quot;);break;case&quot;wrap&quot;:var d=s.slice(),g=s.slice();e[l]&lt;0?(d[u]=&quot;s[&quot;+u+&quot;]-2&quot;,g[u]=&quot;0&quot;):(d[u]=&quot;s[&quot;+u+&quot;]-1&quot;,g[u]=&quot;1&quot;),0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,d.join(),&quot;)-src.get(&quot;,g.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){diff(&quot;,f,&quot;,src.pick(&quot;,d.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,g.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;default:throw new Error(&quot;ndarray-gradient: Invalid boundary condition&quot;)}}i&gt;0&amp;&amp;n.push(&quot;};&quot;)}for(var s=0;s&lt;1&lt;&lt;r;++s){for(var f=[],h=0;h&lt;r;++h)s&amp;1&lt;&lt;h&amp;&amp;f.push(h+1);for(var p=0;p&lt;1&lt;&lt;f.length;++p){var d=f.slice();for(h=0;h&lt;f.length;++h)p&amp;1&lt;&lt;h&amp;&amp;(d[h]=-d[h]);i(d)}}n.push(&quot;return dst;};return gradient&quot;);var g=[&quot;diff&quot;,&quot;zero&quot;],m=[l,c];for(s=1;s&lt;=r;++s)g.push(&quot;grad&quot;+s),m.push(u(s));g.push(n.join(&quot;&quot;));var v=Function.apply(void 0,g).apply(void 0,m);return a[e]=v,v}(r)(t,e)};var n=t(&quot;dup&quot;),i=t(&quot;cwise-compiler&quot;),a={},o={},s={body:&quot;&quot;,args:[],thisVars:[],localVars:[]},l=i({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;left&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;right&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;out=0.5*(left-right)&quot;,thisVars:[],localVars:[]},funcName:&quot;cdiff&quot;}),c=i({args:[&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1}],body:&quot;out=0&quot;,thisVars:[],localVars:[]},funcName:&quot;zero&quot;});function u(t){if(t in a)return a[t];for(var e=[],r=0;r&lt;t;++r)e.push(&quot;out&quot;,r,&quot;s=0.5*(inp&quot;,r,&quot;l-inp&quot;,r,&quot;r);&quot;);var o=[&quot;array&quot;],l=[&quot;junk&quot;];for(r=0;r&lt;t;++r){o.push(&quot;array&quot;),l.push(&quot;out&quot;+r+&quot;s&quot;);var c=n(t);c[r]=-1,o.push({array:0,offset:c.slice()}),c[r]=1,o.push({array:0,offset:c.slice()}),l.push(&quot;inp&quot;+r+&quot;l&quot;,&quot;inp&quot;+r+&quot;r&quot;)}return a[t]=i({args:o,pre:s,post:s,body:{body:e.join(&quot;&quot;),args:l.map((function(t){return{name:t,lvalue:0===t.indexOf(&quot;out&quot;),rvalue:0===t.indexOf(&quot;inp&quot;),count:&quot;junk&quot;!==t|0}})),thisVars:[],localVars:[]},funcName:&quot;fdTemplate&quot;+t})}},{&quot;cwise-compiler&quot;:157,dup:185}],477:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Math.floor(e),n=e-r,i=0&lt;=r&amp;&amp;r&lt;t.shape[0],a=0&lt;=r+1&amp;&amp;r+1&lt;t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0&lt;=n&amp;&amp;n&lt;t.shape[0],o=0&lt;=n+1&amp;&amp;n+1&lt;t.shape[0],s=Math.floor(r),l=r-s,c=0&lt;=s&amp;&amp;s&lt;t.shape[1],u=0&lt;=s+1&amp;&amp;s+1&lt;t.shape[1],f=a&amp;&amp;c?t.get(n,s):0,h=a&amp;&amp;u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&amp;&amp;c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&amp;&amp;u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0&lt;=i&amp;&amp;i&lt;t.shape[0],s=0&lt;=i+1&amp;&amp;i+1&lt;t.shape[0],l=Math.floor(r),c=r-l,u=0&lt;=l&amp;&amp;l&lt;t.shape[1],f=0&lt;=l+1&amp;&amp;l+1&lt;t.shape[1],h=Math.floor(n),p=n-h,d=0&lt;=h&amp;&amp;h&lt;t.shape[2],g=0&lt;=h+1&amp;&amp;h+1&lt;t.shape[2],m=o&amp;&amp;u&amp;&amp;d?t.get(i,l,h):0,v=o&amp;&amp;f&amp;&amp;d?t.get(i,l+1,h):0,y=s&amp;&amp;u&amp;&amp;d?t.get(i+1,l,h):0,x=s&amp;&amp;f&amp;&amp;d?t.get(i+1,l+1,h):0,b=o&amp;&amp;u&amp;&amp;g?t.get(i,l,h+1):0,_=o&amp;&amp;f&amp;&amp;g?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*m+a*y)+c*((1-a)*v+a*x))+p*((1-c)*((1-a)*b+a*(s&amp;&amp;u&amp;&amp;g?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&amp;&amp;f&amp;&amp;g?t.get(i+1,l+1,h+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e&lt;n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0&lt;=i[e]&amp;&amp;i[e]&lt;t.shape[e],s[e]=0&lt;=i[e]+1&amp;&amp;i[e]+1&lt;t.shape[e];var l,c,u,f=0;t:for(e=0;e&lt;1&lt;&lt;n;++e){for(c=1,u=t.offset,l=0;l&lt;n;++l)if(e&amp;1&lt;&lt;l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}e.exports=function(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],478:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;cwise-compiler&quot;),i={body:&quot;&quot;,args:[],thisVars:[],localVars:[]};function a(t){if(!t)return i;for(var e=0;e&lt;t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){for(var e=[],r=0;r&lt;t.args.length;++r)e.push(&quot;a&quot;+r);return new Function(&quot;P&quot;,[&quot;return function &quot;,t.funcName,&quot;_ndarrayops(&quot;,e.join(&quot;,&quot;),&quot;) {P(&quot;,e.join(&quot;,&quot;),&quot;);return a0}&quot;].join(&quot;&quot;))(function(t){return n({args:t.args,pre:a(t.pre),body:a(t.body),post:a(t.proc),funcName:t.funcName})}(t))}var s={add:&quot;+&quot;,sub:&quot;-&quot;,mul:&quot;*&quot;,div:&quot;/&quot;,mod:&quot;%&quot;,band:&quot;&amp;&quot;,bor:&quot;|&quot;,bxor:&quot;^&quot;,lshift:&quot;&lt;&lt;&quot;,rshift:&quot;&gt;&gt;&quot;,rrshift:&quot;&gt;&gt;&gt;&quot;};!function(){for(var t in s){var e=s[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a&quot;+e+&quot;=b&quot;},rvalue:!0,funcName:t+&quot;eq&quot;}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a&quot;+e+&quot;=s&quot;},rvalue:!0,funcName:t+&quot;seq&quot;})}}();var l={not:&quot;!&quot;,bnot:&quot;~&quot;,neg:&quot;-&quot;,recip:&quot;1.0/&quot;};!function(){for(var t in l){var e=l[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=&quot;+e+&quot;b&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;],body:{args:[&quot;a&quot;],body:&quot;a=&quot;+e+&quot;a&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;})}}();var c={and:&quot;&amp;&amp;&quot;,or:&quot;||&quot;,eq:&quot;===&quot;,neq:&quot;!==&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,leq:&quot;&lt;=&quot;,geq:&quot;&gt;=&quot;};!function(){for(var t in c){var e=c[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=a&quot;+e+&quot;b&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a=a&quot;+e+&quot;s&quot;},rvalue:!0,count:2,funcName:t+&quot;seq&quot;})}}();var u=[&quot;abs&quot;,&quot;acos&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;cos&quot;,&quot;exp&quot;,&quot;floor&quot;,&quot;log&quot;,&quot;round&quot;,&quot;sin&quot;,&quot;sqrt&quot;,&quot;tan&quot;];!function(){for(var t=0;t&lt;u.length;++t){var e=u[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f(a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;})}}();var f=[&quot;max&quot;,&quot;min&quot;,&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;f.length;++t){var e=f[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;s&quot;}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;}),r[e+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;seq&quot;})}}();var h=[&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;h.length;++t){var e=h[t];r[e+&quot;op&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;op&quot;}),r[e+&quot;ops&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;ops&quot;}),r[e+&quot;opeq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opeq&quot;}),r[e+&quot;opseq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opseq&quot;})}}(),r.any=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(a){return true}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return false&quot;},funcName:&quot;any&quot;}),r.all=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(!x){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;all&quot;}),r.sum=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s+=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;sum&quot;}),r.prod=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=1&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s*=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;prod&quot;}),r.norm2squared=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm2squared&quot;}),r.norm2=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return Math.sqrt(this_s)&quot;},funcName:&quot;norm2&quot;}),r.norminf=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:4}],body:&quot;if(-a&gt;this_s){this_s=-a}else if(a&gt;this_s){this_s=a}&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norminf&quot;}),r.norm1=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:3}],body:&quot;this_s+=a&lt;0?-a:a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm1&quot;}),r.sup=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=-Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&gt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.inf=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&lt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.argmin=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&lt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.argmax=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&gt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.random=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.random&quot;,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f()&quot;,thisVars:[&quot;this_f&quot;]},funcName:&quot;random&quot;}),r.assign=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assign&quot;}),r.assigns=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assigns&quot;}),r.equals=n({args:[&quot;array&quot;,&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;y&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(x!==y){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;equals&quot;})},{&quot;cwise-compiler&quot;:157}],479:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;./doConvert.js&quot;);e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{&quot;./doConvert.js&quot;:480,ndarray:483}],480:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i&lt;_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[&quot;_inline_1_i&quot;,&quot;_inline_1_v&quot;]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},funcName:&quot;convert&quot;,blockSize:64})},{&quot;cwise-compiler&quot;:157}],481:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=32;function a(t){switch(t){case&quot;uint8&quot;:return[n.mallocUint8,n.freeUint8];case&quot;uint16&quot;:return[n.mallocUint16,n.freeUint16];case&quot;uint32&quot;:return[n.mallocUint32,n.freeUint32];case&quot;int8&quot;:return[n.mallocInt8,n.freeInt8];case&quot;int16&quot;:return[n.mallocInt16,n.freeInt16];case&quot;int32&quot;:return[n.mallocInt32,n.freeInt32];case&quot;float32&quot;:return[n.mallocFloat,n.freeFloat];case&quot;float64&quot;:return[n.mallocDouble,n.freeDouble];default:return null}}function o(t){for(var e=[],r=0;r&lt;t;++r)e.push(&quot;s&quot;+r);for(r=0;r&lt;t;++r)e.push(&quot;n&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;d&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;e&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;f&quot;+r);return e}e.exports=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarraySortWrapper&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;);r.push([&quot;function &quot;,n,&quot;(&quot;,[&quot;array&quot;].join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var s=[&quot;data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride&quot;],l=0;l&lt;t.length;++l)s.push([&quot;s&quot;,l,&quot;=stride[&quot;,l,&quot;]|0,n&quot;,l,&quot;=shape[&quot;,l,&quot;]|0&quot;].join(&quot;&quot;));var c=new Array(t.length),u=[];for(l=0;l&lt;t.length;++l){0!==(p=t[l])&amp;&amp;(0===u.length?c[p]=&quot;1&quot;:c[p]=u.join(&quot;*&quot;),u.push(&quot;n&quot;+p))}var f=-1,h=-1;for(l=0;l&lt;t.length;++l){var p,d=t[l];0!==d&amp;&amp;(f&gt;0?s.push([&quot;d&quot;,d,&quot;=s&quot;,d,&quot;-d&quot;,f,&quot;*n&quot;,f].join(&quot;&quot;)):s.push([&quot;d&quot;,d,&quot;=s&quot;,d].join(&quot;&quot;)),f=d),0!==(p=t.length-1-l)&amp;&amp;(h&gt;0?s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;-e&quot;,h,&quot;*n&quot;,h,&quot;,f&quot;,p,&quot;=&quot;,c[p],&quot;-f&quot;,h,&quot;*n&quot;,h].join(&quot;&quot;)):s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;,f&quot;,p,&quot;=&quot;,c[p]].join(&quot;&quot;)),h=p)}r.push(&quot;var &quot;+s.join(&quot;,&quot;));var g=[&quot;0&quot;,&quot;n0-1&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length));r.push([&quot;if(n0&lt;=&quot;,i,&quot;){&quot;,&quot;insertionSort(&quot;,g.join(&quot;,&quot;),&quot;)}else{&quot;,&quot;quickSort(&quot;,g.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),r.push(&quot;}return &quot;+n);var m=new Function(&quot;insertionSort&quot;,&quot;quickSort&quot;,r.join(&quot;\n&quot;)),v=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarrayInsertionSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),i=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),s=a(e),l=[&quot;i,j,cptr,ptr=left*s0+offset&quot;];if(t.length&gt;1){for(var c=[],u=1;u&lt;t.length;++u)l.push(&quot;i&quot;+u),c.push(&quot;n&quot;+u);s?l.push(&quot;scratch=malloc(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;):l.push(&quot;scratch=new Array(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;),l.push(&quot;dptr&quot;,&quot;sptr&quot;,&quot;a&quot;,&quot;b&quot;)}else l.push(&quot;scratch&quot;);function f(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function h(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}if(r.push([&quot;function &quot;,n,&quot;(&quot;,i.join(&quot;,&quot;),&quot;){var &quot;,l.join(&quot;,&quot;)].join(&quot;&quot;),&quot;for(i=left+1;i&lt;=right;++i){&quot;,&quot;j=i;ptr+=s0&quot;,&quot;cptr=ptr&quot;),t.length&gt;1){r.push(&quot;dptr=0;sptr=ptr&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(&quot;scratch[dptr++]=&quot;,f(&quot;sptr&quot;));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push(&quot;sptr+=d&quot;+p,&quot;}&quot;)}r.push(&quot;__g:while(j--\x3eleft){&quot;,&quot;dptr=0&quot;,&quot;sptr=cptr-s0&quot;);for(u=1;u&lt;t.length;++u)1===u&amp;&amp;r.push(&quot;__l:&quot;),r.push([&quot;for(i&quot;,u,&quot;=0;i&quot;,u,&quot;&lt;n&quot;,u,&quot;;++i&quot;,u,&quot;){&quot;].join(&quot;&quot;));r.push([&quot;a=&quot;,f(&quot;sptr&quot;),&quot;\nb=scratch[dptr]\nif(a&lt;b){break __g}\nif(a&gt;b){break __l}&quot;].join(&quot;&quot;));for(u=t.length-1;u&gt;=1;--u)r.push(&quot;sptr+=e&quot;+u,&quot;dptr+=f&quot;+u,&quot;}&quot;);r.push(&quot;dptr=cptr;sptr=cptr-s0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,f(&quot;sptr&quot;)));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push([&quot;dptr+=d&quot;,p,&quot;;sptr+=d&quot;,p].join(&quot;&quot;),&quot;}&quot;)}r.push(&quot;cptr-=s0\n}&quot;),r.push(&quot;dptr=cptr;sptr=0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,&quot;scratch[sptr++]&quot;));for(u=0;u&lt;t.length;++u){var p;0!==(p=t[u])&amp;&amp;r.push(&quot;dptr+=d&quot;+p,&quot;}&quot;)}}else r.push(&quot;scratch=&quot;+f(&quot;ptr&quot;),&quot;while((j--\x3eleft)&amp;&amp;(&quot;+f(&quot;cptr-s0&quot;)+&quot;&gt;scratch)){&quot;,h(&quot;cptr&quot;,f(&quot;cptr-s0&quot;)),&quot;cptr-=s0&quot;,&quot;}&quot;,h(&quot;cptr&quot;,&quot;scratch&quot;));return r.push(&quot;}&quot;),t.length&gt;1&amp;&amp;s&amp;&amp;r.push(&quot;free(scratch)&quot;),r.push(&quot;} return &quot;+n),s?new Function(&quot;malloc&quot;,&quot;free&quot;,r.join(&quot;\n&quot;))(s[0],s[1]):new Function(r.join(&quot;\n&quot;))()}(t,e),y=function(t,e,r){var n=[&quot;'use strict'&quot;],s=[&quot;ndarrayQuickSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),l=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),c=a(e),u=0;n.push([&quot;function &quot;,s,&quot;(&quot;,l.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));var f=[&quot;sixth=((right-left+1)/6)|0&quot;,&quot;index1=left+sixth&quot;,&quot;index5=right-sixth&quot;,&quot;index3=(left+right)&gt;&gt;1&quot;,&quot;index2=index3-sixth&quot;,&quot;index4=index3+sixth&quot;,&quot;el1=index1&quot;,&quot;el2=index2&quot;,&quot;el3=index3&quot;,&quot;el4=index4&quot;,&quot;el5=index5&quot;,&quot;less=left+1&quot;,&quot;great=right-1&quot;,&quot;pivots_are_equal=true&quot;,&quot;tmp&quot;,&quot;tmp0&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;k&quot;,&quot;ptr0&quot;,&quot;ptr1&quot;,&quot;ptr2&quot;,&quot;comp_pivot1=0&quot;,&quot;comp_pivot2=0&quot;,&quot;comp=0&quot;];if(t.length&gt;1){for(var h=[],p=1;p&lt;t.length;++p)h.push(&quot;n&quot;+p),f.push(&quot;i&quot;+p);for(p=0;p&lt;8;++p)f.push(&quot;b_ptr&quot;+p);f.push(&quot;ptr3&quot;,&quot;ptr4&quot;,&quot;ptr5&quot;,&quot;ptr6&quot;,&quot;ptr7&quot;,&quot;pivot_ptr&quot;,&quot;ptr_shift&quot;,&quot;elementSize=&quot;+h.join(&quot;*&quot;)),c?f.push(&quot;pivot1=malloc(elementSize)&quot;,&quot;pivot2=malloc(elementSize)&quot;):f.push(&quot;pivot1=new Array(elementSize),pivot2=new Array(elementSize)&quot;)}else f.push(&quot;pivot1&quot;,&quot;pivot2&quot;);function d(t){return[&quot;(offset+&quot;,t,&quot;*s0)&quot;].join(&quot;&quot;)}function g(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function m(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}function v(e,r,i){if(1===e.length)n.push(&quot;ptr0=&quot;+d(e[0]));else for(var a=0;a&lt;e.length;++a)n.push([&quot;b_ptr&quot;,a,&quot;=s0*&quot;,e[a]].join(&quot;&quot;));r&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),n.push(&quot;ptr_shift=offset&quot;);for(a=t.length-1;a&gt;=0;--a){0!==(o=t[a])&amp;&amp;n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;))}if(e.length&gt;1)for(a=0;a&lt;e.length;++a)n.push([&quot;ptr&quot;,a,&quot;=b_ptr&quot;,a,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(i),r&amp;&amp;n.push(&quot;++pivot_ptr&quot;);for(a=0;a&lt;t.length;++a){var o;0!==(o=t[a])&amp;&amp;(e.length&gt;1?n.push(&quot;ptr_shift+=d&quot;+o):n.push(&quot;ptr0+=d&quot;+o),n.push(&quot;}&quot;))}}function y(e,r,i,a){if(1===r.length)n.push(&quot;ptr0=&quot;+d(r[0]));else{for(var o=0;o&lt;r.length;++o)n.push([&quot;b_ptr&quot;,o,&quot;=s0*&quot;,r[o]].join(&quot;&quot;));n.push(&quot;ptr_shift=offset&quot;)}i&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),e&amp;&amp;n.push(e+&quot;:&quot;);for(o=1;o&lt;t.length;++o)n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;));if(r.length&gt;1)for(o=0;o&lt;r.length;++o)n.push([&quot;ptr&quot;,o,&quot;=b_ptr&quot;,o,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(a);for(o=t.length-1;o&gt;=1;--o)i&amp;&amp;n.push(&quot;pivot_ptr+=f&quot;+o),r.length&gt;1?n.push(&quot;ptr_shift+=e&quot;+o):n.push(&quot;ptr0+=e&quot;+o),n.push(&quot;}&quot;)}function x(){t.length&gt;1&amp;&amp;c&amp;&amp;n.push(&quot;free(pivot1)&quot;,&quot;free(pivot2)&quot;)}function b(e,r){var i=&quot;el&quot;+e,a=&quot;el&quot;+r;if(t.length&gt;1){var o=&quot;__l&quot;+ ++u;y(o,[i,a],!1,[&quot;comp=&quot;,g(&quot;ptr0&quot;),&quot;-&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;if(comp&gt;0){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0;break &quot;,o,&quot;}\n&quot;,&quot;if(comp&lt;0){break &quot;,o,&quot;}&quot;].join(&quot;&quot;))}else n.push([&quot;if(&quot;,g(d(i)),&quot;&gt;&quot;,g(d(a)),&quot;){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0}&quot;].join(&quot;&quot;))}function _(e,r){t.length&gt;1?v([e,r],!1,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;))):n.push(m(d(e),g(d(r))))}function w(e,r,i){if(t.length&gt;1){var a=&quot;__l&quot;+ ++u;y(a,[r],!0,[e,&quot;=&quot;,g(&quot;ptr0&quot;),&quot;-pivot&quot;,i,&quot;[pivot_ptr]\n&quot;,&quot;if(&quot;,e,&quot;!==0){break &quot;,a,&quot;}&quot;].join(&quot;&quot;))}else n.push([e,&quot;=&quot;,g(d(r)),&quot;-pivot&quot;,i].join(&quot;&quot;))}function T(e,r){t.length&gt;1?v([e,r],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function k(e,r,i){t.length&gt;1?(v([e,r,i],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;)),n.push(&quot;++&quot;+r,&quot;--&quot;+i)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;ptr2=&quot;,d(i),&quot;\n&quot;,&quot;++&quot;,r,&quot;\n&quot;,&quot;--&quot;,i,&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function A(t,e){T(t,e),n.push(&quot;--&quot;+e)}function M(e,r,i){t.length&gt;1?v([e,r],!0,[m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,[&quot;pivot&quot;,i,&quot;[pivot_ptr]&quot;].join(&quot;&quot;))].join(&quot;&quot;)):n.push(m(d(e),g(d(r))),m(d(r),&quot;pivot&quot;+i))}function S(e,r){n.push([&quot;if((&quot;,r,&quot;-&quot;,e,&quot;)&lt;=&quot;,i,&quot;){\n&quot;,&quot;insertionSort(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}else{\n&quot;,s,&quot;(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}&quot;].join(&quot;&quot;))}function E(e,r,i){t.length&gt;1?(n.push([&quot;__l&quot;,++u,&quot;:while(true){&quot;].join(&quot;&quot;)),v([e],!0,[&quot;if(&quot;,g(&quot;ptr0&quot;),&quot;!==pivot&quot;,r,&quot;[pivot_ptr]){break __l&quot;,u,&quot;}&quot;].join(&quot;&quot;)),n.push(i,&quot;}&quot;)):n.push([&quot;while(&quot;,g(d(e)),&quot;===pivot&quot;,r,&quot;){&quot;,i,&quot;}&quot;].join(&quot;&quot;))}return n.push(&quot;var &quot;+f.join(&quot;,&quot;)),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),t.length&gt;1?v([&quot;el1&quot;,&quot;el2&quot;,&quot;el3&quot;,&quot;el4&quot;,&quot;el5&quot;,&quot;index1&quot;,&quot;index3&quot;,&quot;index5&quot;],!0,[&quot;pivot1[pivot_ptr]=&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;pivot2[pivot_ptr]=&quot;,g(&quot;ptr3&quot;),&quot;\n&quot;,&quot;pivots_are_equal=pivots_are_equal&amp;&amp;(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n&quot;,&quot;x=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,&quot;y=&quot;,g(&quot;ptr2&quot;),&quot;\n&quot;,&quot;z=&quot;,g(&quot;ptr4&quot;),&quot;\n&quot;,m(&quot;ptr5&quot;,&quot;x&quot;),&quot;\n&quot;,m(&quot;ptr6&quot;,&quot;y&quot;),&quot;\n&quot;,m(&quot;ptr7&quot;,&quot;z&quot;)].join(&quot;&quot;)):n.push([&quot;pivot1=&quot;,g(d(&quot;el2&quot;)),&quot;\n&quot;,&quot;pivot2=&quot;,g(d(&quot;el4&quot;)),&quot;\n&quot;,&quot;pivots_are_equal=pivot1===pivot2\n&quot;,&quot;x=&quot;,g(d(&quot;el1&quot;)),&quot;\n&quot;,&quot;y=&quot;,g(d(&quot;el3&quot;)),&quot;\n&quot;,&quot;z=&quot;,g(d(&quot;el5&quot;)),&quot;\n&quot;,m(d(&quot;index1&quot;),&quot;x&quot;),&quot;\n&quot;,m(d(&quot;index3&quot;),&quot;y&quot;),&quot;\n&quot;,m(d(&quot;index5&quot;),&quot;z&quot;)].join(&quot;&quot;)),_(&quot;index2&quot;,&quot;left&quot;),_(&quot;index4&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp&quot;,&quot;k&quot;,1),n.push(&quot;if(comp===0){continue}&quot;),n.push(&quot;if(comp&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;great--&quot;),n.push(&quot;}else if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}else{&quot;),A(&quot;k&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}else{&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2&gt;0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),A(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),M(&quot;left&quot;,&quot;(less-1)&quot;,1),M(&quot;right&quot;,&quot;(great+1)&quot;,2),S(&quot;left&quot;,&quot;(less-2)&quot;),S(&quot;(great+2)&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),x(),n.push(&quot;return&quot;),n.push(&quot;}&quot;),n.push(&quot;if(less&lt;index1&amp;&amp;great&gt;index5){&quot;),E(&quot;less&quot;,1,&quot;++less&quot;),E(&quot;great&quot;,2,&quot;--great&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1===0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2===0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp===0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),A(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),x(),S(&quot;less&quot;,&quot;great&quot;),n.push(&quot;}return &quot;+s),t.length&gt;1&amp;&amp;c?new Function(&quot;insertionSort&quot;,&quot;malloc&quot;,&quot;free&quot;,n.join(&quot;\n&quot;))(r,c[0],c[1]):new Function(&quot;insertionSort&quot;,n.join(&quot;\n&quot;))(r)}(t,e,v);return m(v,y)}},{&quot;typedarray-pool&quot;:617}],482:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/compile_sort.js&quot;),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(&quot;:&quot;),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{&quot;./lib/compile_sort.js&quot;:481}],483:[function(t,e,r){var n=t(&quot;iota-array&quot;),i=t(&quot;is-buffer&quot;),a=&quot;undefined&quot;!=typeof Float64Array;function o(t,e){return t[0]-e[0]}function s(){var t,e=this.stride,r=new Array(e.length);for(t=0;t&lt;r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(o);var n=new Array(r.length);for(t=0;t&lt;n.length;++t)n[t]=r[t][1];return n}function l(t,e){var r=[&quot;View&quot;,e,&quot;d&quot;,t].join(&quot;&quot;);e&lt;0&amp;&amp;(r=&quot;View_Nil&quot;+t);var i=&quot;generic&quot;===t;if(-1===e){var a=&quot;function &quot;+r+&quot;(a){this.data=a;};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new &quot;+r+&quot;(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_&quot;+r+&quot;(a){return new &quot;+r+&quot;(a);}&quot;;return new Function(a)()}if(0===e){a=&quot;function &quot;+r+&quot;(a,d) {this.data = a;this.offset = d};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function &quot;+r+&quot;_copy() {return new &quot;+r+&quot;(this.data,this.offset)};proto.pick=function &quot;+r+&quot;_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function &quot;+r+&quot;_get(){return &quot;+(i?&quot;this.data.get(this.offset)&quot;:&quot;this.data[this.offset]&quot;)+&quot;};proto.set=function &quot;+r+&quot;_set(v){return &quot;+(i?&quot;this.data.set(this.offset,v)&quot;:&quot;this.data[this.offset]=v&quot;)+&quot;};return function construct_&quot;+r+&quot;(a,b,c,d){return new &quot;+r+&quot;(a,d)}&quot;;return new Function(&quot;TrivialArray&quot;,a)(c[t][0])}a=[&quot;'use strict'&quot;];var o=n(e),l=o.map((function(t){return&quot;i&quot;+t})),u=&quot;this.offset+&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]*i&quot;+t})).join(&quot;+&quot;),f=o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;),h=o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;);a.push(&quot;function &quot;+r+&quot;(a,&quot;+f+&quot;,&quot;+h+&quot;,d){this.data=a&quot;,&quot;this.shape=[&quot;+f+&quot;]&quot;,&quot;this.stride=[&quot;+h+&quot;]&quot;,&quot;this.offset=d|0}&quot;,&quot;var proto=&quot;+r+&quot;.prototype&quot;,&quot;proto.dtype='&quot;+t+&quot;'&quot;,&quot;proto.dimension=&quot;+e),a.push(&quot;Object.defineProperty(proto,'size',{get:function &quot;+r+&quot;_size(){return &quot;+o.map((function(t){return&quot;this.shape[&quot;+t+&quot;]&quot;})).join(&quot;*&quot;),&quot;}})&quot;),1===e?a.push(&quot;proto.order=[0]&quot;):(a.push(&quot;Object.defineProperty(proto,'order',{get:&quot;),e&lt;4?(a.push(&quot;function &quot;+r+&quot;_order(){&quot;),2===e?a.push(&quot;return (Math.abs(this.stride[0])&gt;Math.abs(this.stride[1]))?[1,0]:[0,1]}})&quot;):3===e&amp;&amp;a.push(&quot;var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0&gt;s1){if(s1&gt;s2){return [2,1,0];}else if(s0&gt;s2){return [1,2,0];}else{return [1,0,2];}}else if(s0&gt;s2){return [2,0,1];}else if(s2&gt;s1){return [0,1,2];}else{return [0,2,1];}}})&quot;)):a.push(&quot;ORDER})&quot;)),a.push(&quot;proto.set=function &quot;+r+&quot;_set(&quot;+l.join(&quot;,&quot;)+&quot;,v){&quot;),i?a.push(&quot;return this.data.set(&quot;+u+&quot;,v)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]=v}&quot;),a.push(&quot;proto.get=function &quot;+r+&quot;_get(&quot;+l.join(&quot;,&quot;)+&quot;){&quot;),i?a.push(&quot;return this.data.get(&quot;+u+&quot;)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]}&quot;),a.push(&quot;proto.index=function &quot;+r+&quot;_index(&quot;,l.join(),&quot;){return &quot;+u+&quot;}&quot;),a.push(&quot;proto.hi=function &quot;+r+&quot;_hi(&quot;+l.join(&quot;,&quot;)+&quot;){return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return[&quot;(typeof i&quot;,t,&quot;!=='number'||i&quot;,t,&quot;&lt;0)?this.shape[&quot;,t,&quot;]:i&quot;,t,&quot;|0&quot;].join(&quot;&quot;)})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,this.offset)}&quot;);var p=o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})),d=o.map((function(t){return&quot;c&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;}));a.push(&quot;proto.lo=function &quot;+r+&quot;_lo(&quot;+l.join(&quot;,&quot;)+&quot;){var b=this.offset,d=0,&quot;+p.join(&quot;,&quot;)+&quot;,&quot;+d.join(&quot;,&quot;));for(var g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){d=i&quot;+g+&quot;|0;b+=c&quot;+g+&quot;*d;a&quot;+g+&quot;-=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;)+&quot;,b)}&quot;),a.push(&quot;proto.step=function &quot;+r+&quot;_step(&quot;+l.join(&quot;,&quot;)+&quot;){var &quot;+o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,c=this.offset,d=0,ceil=Math.ceil&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'){d=i&quot;+g+&quot;|0;if(d&lt;0){c+=b&quot;+g+&quot;*(a&quot;+g+&quot;-1);a&quot;+g+&quot;=ceil(-a&quot;+g+&quot;/d)}else{a&quot;+g+&quot;=ceil(a&quot;+g+&quot;/d)}b&quot;+g+&quot;*=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;)+&quot;,c)}&quot;);var m=new Array(e),v=new Array(e);for(g=0;g&lt;e;++g)m[g]=&quot;a[i&quot;+g+&quot;]&quot;,v[g]=&quot;b[i&quot;+g+&quot;]&quot;;a.push(&quot;proto.transpose=function &quot;+r+&quot;_transpose(&quot;+l+&quot;){&quot;+l.map((function(t,e){return t+&quot;=(&quot;+t+&quot;===undefined?&quot;+e+&quot;:&quot;+t+&quot;|0)&quot;})).join(&quot;;&quot;),&quot;var a=this.shape,b=this.stride;return new &quot;+r+&quot;(this.data,&quot;+m.join(&quot;,&quot;)+&quot;,&quot;+v.join(&quot;,&quot;)+&quot;,this.offset)}&quot;),a.push(&quot;proto.pick=function &quot;+r+&quot;_pick(&quot;+l+&quot;){var a=[],b=[],c=this.offset&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){c=(c+this.stride[&quot;+g+&quot;]*i&quot;+g+&quot;)|0}else{a.push(this.shape[&quot;+g+&quot;]);b.push(this.stride[&quot;+g+&quot;])}&quot;);return a.push(&quot;var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}&quot;),a.push(&quot;return function construct_&quot;+r+&quot;(data,shape,stride,offset){return new &quot;+r+&quot;(data,&quot;+o.map((function(t){return&quot;shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,offset)}&quot;),new Function(&quot;CTOR_LIST&quot;,&quot;ORDER&quot;,a.join(&quot;\n&quot;))(c[t],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(t,e,r,n){if(void 0===t)return(0,c.array[0])([]);&quot;number&quot;==typeof t&amp;&amp;(t=[t]),void 0===e&amp;&amp;(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s&gt;=0;--s)r[s]=u,u*=e[s]}if(void 0===n){n=0;for(s=0;s&lt;o;++s)r[s]&lt;0&amp;&amp;(n-=(e[s]-1)*r[s])}for(var f=function(t){if(i(t))return&quot;buffer&quot;;if(a)switch(Object.prototype.toString.call(t)){case&quot;[object Float64Array]&quot;:return&quot;float64&quot;;case&quot;[object Float32Array]&quot;:return&quot;float32&quot;;case&quot;[object Int8Array]&quot;:return&quot;int8&quot;;case&quot;[object Int16Array]&quot;:return&quot;int16&quot;;case&quot;[object Int32Array]&quot;:return&quot;int32&quot;;case&quot;[object Uint8Array]&quot;:return&quot;uint8&quot;;case&quot;[object Uint16Array]&quot;:return&quot;uint16&quot;;case&quot;[object Uint32Array]&quot;:return&quot;uint32&quot;;case&quot;[object Uint8ClampedArray]&quot;:return&quot;uint8_clamped&quot;;case&quot;[object BigInt64Array]&quot;:return&quot;bigint64&quot;;case&quot;[object BigUint64Array]&quot;:return&quot;biguint64&quot;}return Array.isArray(t)?&quot;array&quot;:&quot;generic&quot;}(t),h=c[f];h.length&lt;=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,n)}},{&quot;iota-array&quot;:451,&quot;is-buffer&quot;:453}],484:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=Math.pow(2,-1074);e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e&lt;0?-i:i;var r=n.hi(t),a=n.lo(t);e&gt;t==t&gt;0?a===-1&gt;&gt;&gt;0?(r+=1,a=0):a+=1:0===a?(a=-1&gt;&gt;&gt;0,r-=1):a-=1;return n.pack(a,r)}},{&quot;double-bits&quot;:182}],485:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)T=p[0],k=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var g=(t-(f=(d=l(f,h,-o)).x))/2,m=(e-(h=d.y))/2,v=g*g/(r*r)+m*m/(a*a);v&gt;1&amp;&amp;(r*=v=Math.sqrt(v),a*=v);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*m*m-x*g*g)/(y*m*m+x*g*g)));b==1/0&amp;&amp;(b=1);var _=b*r*m/a+(t+f)/2,w=b*-a*g/r+(e+h)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((h-w)/a).toFixed(9));(T=t&lt;_?n-T:T)&lt;0&amp;&amp;(T=2*n+T),(k=f&lt;_?n-k:k)&lt;0&amp;&amp;(k=2*n+k),u&amp;&amp;T&gt;k&amp;&amp;(T-=2*n),!u&amp;&amp;k&gt;T&amp;&amp;(k-=2*n)}if(Math.abs(k-T)&gt;i){var A=k,M=f,S=h;k=T+i*(u&amp;&amp;k&gt;T?1:-1);var E=s(f=_+r*Math.cos(k),h=w+a*Math.sin(k),r,a,o,0,u,M,S,[k,A,_,w])}var L=Math.tan((k-T)/4),C=4/3*r*L,P=4/3*a*L,I=[2*t-(t+C*Math.sin(T)),2*e-(e-P*Math.cos(T)),f+C*Math.sin(k),h-P*Math.cos(k),f,h];if(p)return I;E&amp;&amp;(I=I.concat(E));for(var O=0;O&lt;I.length;){var z=l(I[O],I[O+1],o);I[O++]=z.x,I[O++]=z.y}return I}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,g=0,m=t.length;g&lt;m;g++){var v=t[g],y=v[0];switch(y){case&quot;M&quot;:l=v[1],u=v[2];break;case&quot;A&quot;:(v=s(p,d,v[1],v[2],c(v[3]),v[4],v[5],v[6],v[7])).unshift(&quot;C&quot;),v.length&gt;7&amp;&amp;(r.push(v.splice(0,7)),v.unshift(&quot;C&quot;));break;case&quot;S&quot;:var x=p,b=d;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(x+=x-n,b+=b-i),v=[&quot;C&quot;,x,b,v[1],v[2],v[3],v[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(f=2*p-f,h=2*d-h):(f=p,h=d),v=o(p,d,f,h,v[1],v[2]);break;case&quot;Q&quot;:f=v[1],h=v[2],v=o(p,d,v[1],v[2],v[3],v[4]);break;case&quot;L&quot;:v=a(p,d,v[1],v[2]);break;case&quot;H&quot;:v=a(p,d,v[1],d);break;case&quot;V&quot;:v=a(p,d,p,v[1]);break;case&quot;Z&quot;:v=a(p,d,l,u)}e=y,p=v[v.length-2],d=v[v.length-1],v.length&gt;4?(n=v[v.length-4],i=v[v.length-3]):(n=p,i=d),r.push(v)}return r}},{}],486:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o)i[o]=[0,0,0];for(o=0;o&lt;t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f&lt;s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],g=new Array(3),m=0,v=new Array(3),y=0,x=0;x&lt;3;++x)g[x]=h[x]-p[x],m+=g[x]*g[x],v[x]=d[x]-p[x],y+=v[x]*v[x];if(m*y&gt;a){var b=i[c],_=1/Math.sqrt(m*y);for(x=0;x&lt;3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*g[T]-v[T]*g[w])}}}for(o=0;o&lt;n;++o){b=i[o];var k=0;for(x=0;x&lt;3;++x)k+=b[x]*b[x];if(k&gt;a)for(_=1/Math.sqrt(k),x=0;x&lt;3;++x)b[x]*=_;else for(x=0;x&lt;3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o){for(var s=t[o],l=new Array(3),c=0;c&lt;3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c&lt;3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c&lt;3;++c){var d=(c+1)%3,g=(c+2)%3;h[c]=u[d]*f[g]-u[g]*f[d],p+=h[c]*h[c]}p=p&gt;a?1/Math.sqrt(p):0;for(c=0;c&lt;3;++c)h[c]*=p;i[o]=h}return i}},{}],487:[function(t,e,r){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
&quot;use strict&quot;;var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError(&quot;Object.assign cannot be called with null or undefined&quot;);return Object(t)}e.exports=function(){try{if(!Object.assign)return!1;var t=new String(&quot;abc&quot;);if(t[5]=&quot;de&quot;,&quot;5&quot;===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r&lt;10;r++)e[&quot;_&quot;+String.fromCharCode(r)]=r;if(&quot;0123456789&quot;!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(&quot;&quot;))return!1;var n={};return&quot;abcdefghijklmnopqrst&quot;.split(&quot;&quot;).forEach((function(t){n[t]=t})),&quot;abcdefghijklmnopqrst&quot;===Object.keys(Object.assign({},n)).join(&quot;&quot;)}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c&lt;arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&amp;&amp;(l[u]=r[u]);if(n){s=n(r);for(var f=0;f&lt;s.length;f++)a.call(r,s[f])&amp;&amp;(l[s[f]]=r[s[f]])}}return l}},{}],488:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f&gt;0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c);f=Math.sqrt(2*h-u+1);e&gt;=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a&gt;=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],489:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(&quot;eye&quot;in t||&quot;up&quot;in t)&amp;&amp;i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/lookAt&quot;),a=t(&quot;gl-mat4/fromQuat&quot;),o=t(&quot;gl-mat4/invert&quot;),s=t(&quot;./lib/quatFromFrame&quot;);function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o&gt;1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l&lt;3;++l){for(var c=0,f=0;f&lt;3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var g=i[2],m=i[6],v=i[10],y=g*a+m*o+v*s,x=g*u+m*f+v*h,b=l(g-=y*a+x*u,m-=y*o+x*f,v-=y*s+x*h);g/=b,m/=b,v/=b;var _=u*e+a*r,w=f*e+o*r,T=h*e+s*r;this.center.move(t,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],g=i[10],m=e*a+r*u,v=e*o+r*f,y=e*s+r*h,x=-(d*y-g*v),b=-(g*m-p*y),_=-(p*v-d*m),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T&gt;1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,A=k[0],M=k[1],S=k[2],E=k[3],L=A*w+E*x+M*_-S*b,C=M*w+E*b+S*x-A*_,P=S*w+E*_+A*b-M*x,I=E*w-A*x-M*b-S*_;if(n){x=p,b=d,_=g;var O=Math.sin(n)/l(x,b,_);x*=O,b*=O,_*=O,I=I*(w=Math.cos(e))-(L=L*w+I*x+C*_-P*b)*x-(C=C*w+I*b+P*x-L*_)*b-(P=P*w+I*_+L*b-C*x)*_}var z=c(L,C,P,I);z&gt;1e-6?(L/=z,C/=z,P/=z,I/=z):(L=C=P=0,I=1),this.rotation.set(t,L,C,P,I)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c&lt;3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)&gt;1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&amp;&amp;this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&amp;&amp;this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&amp;&amp;i&gt;0&amp;&amp;this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{&quot;./lib/quatFromFrame&quot;:488,&quot;filtered-vector&quot;:250,&quot;gl-mat4/fromQuat&quot;:288,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/lookAt&quot;:300}],490:[function(t,e,r){
/*!
 * pad-left &lt;https://github.com/jonschlinkert/pad-left&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT license.
 */
&quot;use strict&quot;;var n=t(&quot;repeat-string&quot;);e.exports=function(t,e,r){return n(r=void 0!==r?r+&quot;&quot;:&quot; &quot;,e)+t}},{&quot;repeat-string&quot;:541}],491:[function(t,e,r){&quot;use strict&quot;;function n(t,e){if(&quot;string&quot;!=typeof t)return[t];var r=[t];&quot;string&quot;==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[&quot;{}&quot;,&quot;[]&quot;,&quot;()&quot;],i=e.escape||&quot;___&quot;,a=!!e.flat;n.forEach((function(t){var e=new RegExp([&quot;\\&quot;,t[0],&quot;[^\\&quot;,t[0],&quot;\\&quot;,t[1],&quot;]*\\&quot;,t[1]].join(&quot;&quot;)),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++&gt;1e4)throw Error(&quot;References have circular dependency. Please, check them.&quot;);r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp(&quot;(\\&quot;+i+r+&quot;\\&quot;+i+&quot;)&quot;,&quot;g&quot;),t[0]+&quot;$1&quot;+t[1])})),e}))}));var o=new RegExp(&quot;\\&quot;+i+&quot;([0-9]+)\\&quot;+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++&gt;1e4)throw Error(&quot;Circular references in parenthesis&quot;);a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&amp;&amp;e.flat){var r,n=e&amp;&amp;e.escape||&quot;___&quot;,i=t[0];if(!i)return&quot;&quot;;for(var a=new RegExp(&quot;\\&quot;+n+&quot;([0-9]+)\\&quot;+n),o=0;i!=r;){if(o++&gt;1e4)throw Error(&quot;Circular references in &quot;+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&amp;&amp;(r=r.reduce(t,&quot;&quot;)),e+r}),&quot;&quot;);function s(e,r){if(null==t[r])throw Error(&quot;Reference &quot;+r+&quot;is undefined&quot;);return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],492:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);e.exports=function(t){var e;arguments.length&gt;1&amp;&amp;(t=arguments);&quot;string&quot;==typeof t?t=t.split(/\s/).map(parseFloat):&quot;number&quot;==typeof t&amp;&amp;(t=[t]);t.length&amp;&amp;&quot;number&quot;==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&amp;&amp;(t=n(t,{left:&quot;x l left Left&quot;,top:&quot;y t top Top&quot;,width:&quot;w width W Width&quot;,height:&quot;h height W Width&quot;,bottom:&quot;b bottom Bottom&quot;,right:&quot;r right Right&quot;}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{&quot;pick-by-alias&quot;:498}],493:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,(function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),&quot;m&quot;==o&amp;&amp;i.length&gt;2&amp;&amp;(e.push([r].concat(i.splice(0,2))),o=&quot;l&quot;,r=&quot;m&quot;==r?&quot;l&quot;:&quot;L&quot;);;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length&lt;n[o])throw new Error(&quot;malformed path data&quot;);e.push([r].concat(i.splice(0,n[o])))}})),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],494:[function(t,e,r){e.exports=function(t,e){e||(e=[0,&quot;&quot;]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||&quot;&quot;,e}},{}],495:[function(t,e,r){(function(t){(function(){(function(){var r,n,i,a,o,s;&quot;undefined&quot;!=typeof performance&amp;&amp;null!==performance&amp;&amp;performance.now?e.exports=function(){return performance.now()}:null!=t&amp;&amp;t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:528}],496:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;32){for(var r=1,i=0;i&lt;e;++i)for(var a=0;a&lt;i;++a)if(t[i]&lt;t[a])r=-r;else if(t[i]===t[a])return 0;return r}var o=n.mallocUint8(e);for(i=0;i&lt;e;++i)o[i]=0;for(r=1,i=0;i&lt;e;++i)if(!o[i]){var s=1;o[i]=1;for(a=t[i];a!==i;a=t[a]){if(o[a])return n.freeUint8(o),0;s+=1,o[a]=1}1&amp;s||(r=-r)}return n.freeUint8(o),r};var n=t(&quot;typedarray-pool&quot;)},{&quot;typedarray-pool&quot;:617}],497:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;invert-permutation&quot;);r.rank=function(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,a,o,s=n.mallocUint32(e),l=n.mallocUint32(e),c=0;for(i(t,l),o=0;o&lt;e;++o)s[o]=t[o];for(o=e-1;o&gt;0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},r.unrank=function(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(t))[0]=0,a=1;a&lt;t;++a)r[a]=a,o=o*a|0;for(a=t-1;a&gt;0;--a)e=e-(n=e/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},{&quot;invert-permutation&quot;:450,&quot;typedarray-pool&quot;:617}],498:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n,a,o={};if(&quot;string&quot;==typeof e&amp;&amp;(e=i(e)),Array.isArray(e)){var s={};for(a=0;a&lt;e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a&lt;c.length;a++){var u=c[a];if(r&amp;&amp;(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f&lt;c.length;f++)l[c[f]]=!0;break}}else n in t&amp;&amp;(e[n]&amp;&amp;(o[n]=t[n]),r&amp;&amp;(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(&quot;string&quot;==typeof t&amp;&amp;(t=n[t]=t.split(/\s*,\s*|\s+/)),t)}},{}],499:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o&lt;r;++o)a[0][o]=[],a[1][o]=[];for(o=0;o&lt;i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}var l=[];for(o=0;o&lt;r;++o)a[0][o].length+a[1][o].length===0&amp;&amp;l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u&lt;2;++u)if(a[u][r].length&gt;0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f&lt;2;++f)for(var h=a[f][r],p=0;p&lt;h.length;++p){var d=h[p],g=d[1^f];n(e[t],e[r],e[s],e[g])&gt;0&amp;&amp;(o=d,s=g,l=f)}return i||o&amp;&amp;c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])&lt;0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(o=0;o&lt;r;++o)for(var p=0;p&lt;2;++p){for(var d=[];a[p][o].length&gt;0;){a[0][o].length;var g=f(o,p);h(0,g)?d.push.apply(d,g):(d.length&gt;0&amp;&amp;l.push(d),d=g)}d.length&gt;0&amp;&amp;l.push(d)}return l};var n=t(&quot;compare-angle&quot;)},{&quot;compare-angle&quot;:138}],500:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s&lt;e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l&lt;=1&amp;&amp;o.push(s)}for(;o.length&gt;0;){var c=o.pop();i[c]=!1;var u=r[c];for(s=0;s&lt;u.length;++s){var f=u[s];0==--a[f]&amp;&amp;o.push(f)}}var h=new Array(e.length),p=[];for(s=0;s&lt;e.length;++s)if(i[s]){c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;var d=[];for(s=0;s&lt;t.length;++s){var g=t[s];i[g[0]]&amp;&amp;i[g[1]]&amp;&amp;d.push([h[g[0]],h[g[1]]])}return[d,p]};var n=t(&quot;edges-to-adjacency-list&quot;)},{&quot;edges-to-adjacency-list&quot;:187}],501:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p&lt;f;++p)if(h[p].length%2==1)throw new Error(&quot;planar-graph-to-polyline: graph must be manifold&quot;);var d=i(t,e);var g=(d=d.filter((function(t){for(var r=t.length,n=[0],i=0;i&lt;r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]&gt;0}))).length,m=new Array(g),v=new Array(g);for(p=0;p&lt;g;++p){m[p]=p;var y=new Array(g),x=d[p].map((function(t){return e[t]})),b=a([x]),_=0;t:for(var w=0;w&lt;g;++w)if(y[w]=0,p!==w){for(var T=(q=d[w]).length,k=0;k&lt;T;++k){var A=b(e[q[k]]);if(0!==A){A&lt;0&amp;&amp;(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}v[p]=[_,p,y]}v.sort((function(t,e){return e[0]-t[0]}));for(p=0;p&lt;g;++p){var M=(y=v[p])[1],S=y[2];for(w=0;w&lt;g;++w)S[w]&amp;&amp;(m[w]=M)}var E=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=[];return e}(g);for(p=0;p&lt;g;++p)E[p].push(m[p]),E[m[p]].push(p);var L={},C=u(f,!1);for(p=0;p&lt;g;++p)for(T=(q=d[p]).length,w=0;w&lt;T;++w){var P=q[w],I=q[(w+1)%T],O=Math.min(P,I)+&quot;:&quot;+Math.max(P,I);if(O in L){var z=L[O];E[z].push(p),E[p].push(z),C[P]=C[I]=!0}else L[O]=p}function D(t){for(var e=t.length,r=0;r&lt;e;++r)if(!C[t[r]])return!1;return!0}var R=[],F=u(g,-1);for(p=0;p&lt;g;++p)m[p]!==p||D(d[p])?F[p]=-1:(R.push(p),F[p]=0);r=[];for(;R.length&gt;0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];if(0===V){var q=d[B];j=[q]}for(p=0;p&lt;U;++p){var H=N[p];if(!(F[H]&gt;=0))if(F[H]=1^V,R.push(H),0===V)D(q=d[H])||(q.reverse(),j.push(q))}0===V&amp;&amp;r.push(j)}return r};var n=t(&quot;edges-to-adjacency-list&quot;),i=t(&quot;planar-dual&quot;),a=t(&quot;point-in-big-polygon&quot;),o=t(&quot;two-product&quot;),s=t(&quot;robust-sum&quot;),l=t(&quot;uniq&quot;),c=t(&quot;./lib/trim-leaves&quot;);function u(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}},{&quot;./lib/trim-leaves&quot;:500,&quot;edges-to-adjacency-list&quot;:187,&quot;planar-dual&quot;:499,&quot;point-in-big-polygon&quot;:503,&quot;robust-sum&quot;:553,&quot;two-product&quot;:604,uniq:619}],502:[function(t,e,r){arguments[4][251][0].apply(r,arguments)},{dup:251}],503:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s&lt;e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p&lt;f;h=p++){var d=u[h],g=u[p];d[0]===g[0]?a.push([d,g]):r.push([d,g])}if(0===r.length)return 0===a.length?c:(m=l(a),function(t){return m(t[0],t[1])?0:1});var m;var v=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i&lt;0)return 1;var a=t[i];if(!a){if(!(i&gt;0&amp;&amp;e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]&lt;l[1][0])if(c&lt;0)a=a.left;else{if(!(c&gt;0))return 0;s=-1,a=a.right}else if(c&gt;0)a=a.left;else{if(!(c&lt;0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(&quot;robust-orientation&quot;)[3],i=t(&quot;slab-decomposition&quot;),a=t(&quot;interval-tree-1d&quot;),o=t(&quot;binary-search-bounds&quot;);function s(){return!0}function l(t){for(var e={},r=0;r&lt;t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r&lt;f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&amp;&amp;!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{&quot;binary-search-bounds&quot;:502,&quot;interval-tree-1d&quot;:448,&quot;robust-orientation&quot;:548,&quot;slab-decomposition&quot;:566}],504:[function(t,e,r){
/*
 * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
 * @license MIT
 * @preserve Project Home: https://github.com/voidqk/polybooljs
 */
var n,i=t(&quot;./lib/build-log&quot;),a=t(&quot;./lib/epsilon&quot;),o=t(&quot;./lib/intersecter&quot;),s=t(&quot;./lib/segment-chainer&quot;),l=t(&quot;./lib/segment-selector&quot;),c=t(&quot;./lib/geojson&quot;),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&amp;&amp;(u=!1),!1!==u&amp;&amp;u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&amp;&amp;t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&amp;&amp;!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&amp;&amp;t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},&quot;object&quot;==typeof window&amp;&amp;(window.PolyBool=n),e.exports=n},{&quot;./lib/build-log&quot;:505,&quot;./lib/epsilon&quot;:506,&quot;./lib/geojson&quot;:507,&quot;./lib/intersecter&quot;:508,&quot;./lib/segment-chainer&quot;:510,&quot;./lib/segment-selector&quot;:511}],505:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(&quot;check&quot;,{seg1:t,seg2:e})},segmentChop:function(t,e){return n(&quot;div_seg&quot;,{seg:t,pt:e}),n(&quot;chop&quot;,{seg:t,pt:e})},statusRemove:function(t){return n(&quot;pop_seg&quot;,{seg:t})},segmentUpdate:function(t){return n(&quot;seg_update&quot;,{seg:t})},segmentNew:function(t,e){return n(&quot;new_seg&quot;,{seg:t,primary:e})},segmentRemove:function(t){return n(&quot;rem_seg&quot;,{seg:t})},tempStatus:function(t,e,r){return n(&quot;temp_status&quot;,{seg:t,above:e,below:r})},rewind:function(t){return n(&quot;rewind&quot;,{seg:t})},status:function(t,e,r){return n(&quot;status&quot;,{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(&quot;vert&quot;,{x:e}))},log:function(t){return&quot;string&quot;!=typeof t&amp;&amp;(t=JSON.stringify(t,!1,&quot;  &quot;)),n(&quot;log&quot;,{txt:t})},reset:function(){return n(&quot;reset&quot;)},selected:function(t){return n(&quot;selected&quot;,{segs:t})},chainStart:function(t){return n(&quot;chain_start&quot;,{seg:t})},chainRemoveHead:function(t,e){return n(&quot;chain_rem_head&quot;,{index:t,pt:e})},chainRemoveTail:function(t,e){return n(&quot;chain_rem_tail&quot;,{index:t,pt:e})},chainNew:function(t,e){return n(&quot;chain_new&quot;,{pt1:t,pt2:e})},chainMatch:function(t){return n(&quot;chain_match&quot;,{index:t})},chainClose:function(t){return n(&quot;chain_close&quot;,{index:t})},chainAddHead:function(t,e){return n(&quot;chain_add_head&quot;,{index:t,pt:e})},chainAddTail:function(t,e){return n(&quot;chain_add_tail&quot;,{index:t,pt:e})},chainConnect:function(t,e){return n(&quot;chain_con&quot;,{index1:t,index2:e})},chainReverse:function(t){return n(&quot;chain_rev&quot;,{index:t})},chainJoin:function(t,e){return n(&quot;chain_join&quot;,{index1:t,index2:e})},done:function(){return n(&quot;done&quot;)}}}},{}],506:[function(t,e,r){e.exports=function(t){&quot;number&quot;!=typeof t&amp;&amp;(t=1e-10);var e={epsilon:function(e){return&quot;number&quot;==typeof e&amp;&amp;(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)&gt;=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l&lt;t)&amp;&amp;!(l-(a*a+s*s)&gt;-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])&lt;t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])&lt;t},pointsSame:function(t,r){return e.pointsSameX(t,r)&amp;&amp;e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]&lt;r[1]?-1:1:t[0]&lt;r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)&lt;t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)&lt;t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h&lt;=-t?-2:h&lt;t?-1:h-1&lt;=-t?0:h-1&lt;t?1:2,d.alongB=p&lt;=-t?-2:p&lt;t?-1:p-1&lt;=-t?0:p-1&lt;t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l&lt;r.length;l++){var c=r[l][0],u=r[l][1];u-i&gt;t!=o-i&gt;t&amp;&amp;(a-c)*(i-u)/(o-u)+c-n&gt;t&amp;&amp;(s=!s),a=c,o=u}return s}};return e}},{}],507:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length&lt;=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i&lt;e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(&quot;Polygon&quot;===e.type)return t.polygon(r(e.coordinates));if(&quot;MultiPolygon&quot;===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i&lt;e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(&quot;PolyBool: Cannot convert GeoJSON object to PolyBool polygon&quot;)},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r&lt;t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r&lt;t.children.length;r++){var s;n((s=t.children[r]).region,e)&amp;&amp;(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s&lt;r.regions.length;s++){var l=r.regions[s];l.length&lt;3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o&lt;t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r&lt;0!==e&amp;&amp;a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r&lt;t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e&lt;t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s&lt;a.children.length;s++)f(a.children[s]);return u.length&lt;=0?{type:&quot;Polygon&quot;,coordinates:[]}:1==u.length?{type:&quot;Polygon&quot;,coordinates:u[0]}:{type:&quot;MultiPolygon&quot;,coordinates:u}}};e.exports=n},{}],508:[function(t,e,r){var n=t(&quot;./linked-list&quot;);e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,(function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)&lt;0}))}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&amp;&amp;r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition((function(r){var n,i,a,o,s,l;return(n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)||e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)&gt;0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&amp;&amp;r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&amp;&amp;p)return n;var d=!h&amp;&amp;e.pointBetween(o,c,u),g=!p&amp;&amp;e.pointBetween(s,c,u);if(h)return g?l(n,s):l(t,u),n;d&amp;&amp;(p||(g?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&amp;&amp;(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&amp;&amp;l(t,u)),0===f.alongB&amp;&amp;(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&amp;&amp;l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&amp;&amp;r.vert(h.pt[0]),h.isStart){r&amp;&amp;r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function m(){if(d){var t=u(h,d);if(t)return t}return!!g&amp;&amp;u(h,g)}r&amp;&amp;r.tempStatus(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg);var v,y=m();if(y){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&amp;&amp;(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;r&amp;&amp;r.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){r&amp;&amp;r.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:i,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)v=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:v,below:v};r&amp;&amp;r.status(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(&quot;PolyBool: Zero-length segment detected; your epsilon is probably too small or too large&quot;);if(s.exists(b.prev)&amp;&amp;s.exists(b.next)&amp;&amp;u(b.prev.ev,b.next.ev),r&amp;&amp;r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&amp;&amp;r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l&lt;t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&amp;&amp;s((i=c&lt;0?n:o,a=c&lt;0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach((function(t){s(i(t.start,t.end,t),!0)})),r.forEach((function(t){s(i(t.start,t.end,t),!1)})),c(e,n)}}}},{&quot;./linked-list&quot;:509}],509:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&amp;&amp;e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&amp;&amp;!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&amp;&amp;(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&amp;&amp;(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],510:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(&quot;PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large&quot;);else{r&amp;&amp;r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u&lt;n.length;u++){var f=(m=n[u])[0],h=(m[1],m[m.length-1]);m[m.length-2];if(e.pointsSame(f,a)){if(k(u,!0,!0))break}else if(e.pointsSame(f,o)){if(k(u,!0,!1))break}else if(e.pointsSame(h,a)){if(k(u,!1,!0))break}else if(e.pointsSame(h,o)&amp;&amp;k(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&amp;&amp;r.chainNew(a,o));if(c===l){r&amp;&amp;r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,g=s.matches_head,m=n[p],v=g?m[0]:m[m.length-1],y=g?m[1]:m[m.length-2],x=g?m[m.length-1]:m[0],b=g?m[m.length-2]:m[1];return e.pointsCollinear(y,v,d)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveHead(s.index,d),m.shift()):(r&amp;&amp;r.chainRemoveTail(s.index,d),m.pop()),v=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,v)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveTail(s.index,v),m.pop()):(r&amp;&amp;r.chainRemoveHead(s.index,v),m.shift())),r&amp;&amp;r.chainClose(s.index),void i.push(m)):void(g?(r&amp;&amp;r.chainAddHead(s.index,d),m.unshift(d)):(r&amp;&amp;r.chainAddTail(s.index,d),m.push(d)))}var _=s.index,w=l.index;r&amp;&amp;r.chainConnect(_,w);var T=n[_].length&lt;n[w].length;s.matches_head?l.matches_head?T?(A(_),M(_,w)):(A(w),M(w,_)):M(w,_):l.matches_head?M(_,w):T?(A(_),M(w,_)):(A(w),M(_,w))}function k(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function A(t){r&amp;&amp;r.chainReverse(t),n[t].reverse()}function M(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&amp;&amp;(r&amp;&amp;r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&amp;&amp;(r&amp;&amp;r.chainRemoveHead(i,c),o.shift()),r&amp;&amp;r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}})),i}},{}],511:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&amp;&amp;t.otherFill.above?2:0)+(t.otherFill&amp;&amp;t.otherFill.below?1:0);0!==e[i]&amp;&amp;n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&amp;&amp;r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],512:[function(t,e,r){&quot;use strict&quot;;var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length&lt;o.length&amp;&amp;(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l&lt;o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l&lt;o.length;++l){var g=i[l],m=a[l],v=n[l];c+=g*g,u+=g*m,f+=m*m,h+=v*g,p+=v*m,d+=v*v}var y,x,b,_,w,T=Math.abs(c*f-u*u),k=u*p-f*h,A=u*h-c*p;if(k+A&lt;=T)if(k&lt;0)A&lt;0&amp;&amp;h&lt;0?(A=0,-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d):(k=0,p&gt;=0?(A=0,y=d):-p&gt;=f?(A=1,y=f+2*p+d):y=p*(A=-p/f)+d);else if(A&lt;0)A=0,h&gt;=0?(k=0,y=d):-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d;else{var M=1/T;y=(k*=M)*(c*k+u*(A*=M)+2*h)+A*(u*k+f*A+2*p)+d}else k&lt;0?(b=f+p)&gt;(x=u+h)?(_=b-x)&gt;=(w=c-2*u+f)?(k=1,A=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(A=1-k)+2*h)+A*(u*k+f*A+2*p)+d:(k=0,b&lt;=0?(A=1,y=f+2*p+d):p&gt;=0?(A=0,y=d):y=p*(A=-p/f)+d):A&lt;0?(b=c+h)&gt;(x=u+p)?(_=b-x)&gt;=(w=c-2*u+f)?(A=1,k=0,y=f+2*p+d):y=(k=1-(A=_/w))*(c*k+u*A+2*h)+A*(u*k+f*A+2*p)+d:(A=0,b&lt;=0?(k=1,y=c+2*h+d):h&gt;=0?(k=0,y=d):y=h*(k=-h/c)+d):(_=f+p-u-h)&lt;=0?(k=0,A=1,y=f+2*p+d):_&gt;=(w=c-2*u+f)?(k=1,A=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(A=1-k)+2*h)+A*(u*k+f*A+2*p)+d;var S=1-k-A;for(l=0;l&lt;o.length;++l)s[l]=S*t[l]+k*e[l]+A*r[l];return y&lt;0?0:y}},{}],513:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;stream&quot;).Transform,i=t(&quot;stream-parser&quot;);function a(){n.call(this,{readableObjectMode:!0})}function o(t,e,r){Error.call(this),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=t,e&amp;&amp;(this.code=e),r&amp;&amp;(this.statusCode=r)}a.prototype=Object.create(n.prototype),a.prototype.constructor=a,i(a.prototype),r.ParserStream=a,r.sliceEq=function(t,e,r){for(var n=e,i=0;i&lt;r.length;)if(t[n++]!==r[i++])return!1;return!0},r.str2arr=function(t,e){var r=[],n=0;if(e&amp;&amp;&quot;hex&quot;===e)for(;n&lt;t.length;)r.push(parseInt(t.slice(n,n+2),16)),n+=2;else for(;n&lt;t.length;n++)r.push(255&amp;t.charCodeAt(n));return r},r.readUInt16LE=function(t,e){return t[e]|t[e+1]&lt;&lt;8},r.readUInt16BE=function(t,e){return t[e+1]|t[e]&lt;&lt;8},r.readUInt32LE=function(t,e){return t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16|16777216*t[e+3]},r.readUInt32BE=function(t,e){return t[e+3]|t[e+2]&lt;&lt;8|t[e+1]&lt;&lt;16|16777216*t[e]},o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,r.ProbeError=o},{stream:569,&quot;stream-parser&quot;:585}],514:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=new Error(t);return r.code=e,r}function i(t){try{return decodeURIComponent(escape(t))}catch(e){return t}}function a(t,e,r){this.input=t.subarray(e,r),this.start=e;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if(&quot;II*\0&quot;!==i&amp;&amp;&quot;MM\0*&quot;!==i)throw n(&quot;invalid TIFF signature&quot;,&quot;EBADDATA&quot;);this.big_endian=&quot;M&quot;===i[0]}a.prototype.each=function(t){this.aborted=!1;var e=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:e}];this.ifds_to_read.length&gt;0&amp;&amp;!this.aborted;){var r=this.ifds_to_read.shift();r.offset&amp;&amp;this.scan_ifd(r.id,r.offset,t)}},a.prototype.read_uint16=function(t){var e=this.input;if(t+2&gt;e.length)throw n(&quot;unexpected EOF&quot;,&quot;EBADDATA&quot;);return this.big_endian?256*e[t]+e[t+1]:e[t]+256*e[t+1]},a.prototype.read_uint32=function(t){var e=this.input;if(t+4&gt;e.length)throw n(&quot;unexpected EOF&quot;,&quot;EBADDATA&quot;);return this.big_endian?16777216*e[t]+65536*e[t+1]+256*e[t+2]+e[t+3]:e[t]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3]},a.prototype.is_subifd_link=function(t,e){return 0===t&amp;&amp;34665===e||0===t&amp;&amp;34853===e||34665===t&amp;&amp;40965===e},a.prototype.exif_format_length=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},a.prototype.exif_format_read=function(t,e){var r;switch(t){case 1:case 2:return r=this.input[e];case 6:return(r=this.input[e])|33554430*(128&amp;r);case 3:return r=this.read_uint16(e);case 8:return(r=this.read_uint16(e))|131070*(32768&amp;r);case 4:return r=this.read_uint32(e);case 9:return 0|(r=this.read_uint32(e));case 5:case 10:case 11:case 12:case 7:default:return null}},a.prototype.scan_ifd=function(t,e,r){var a=this.read_uint16(e);e+=2;for(var o=0;o&lt;a;o++){var s=this.read_uint16(e),l=this.read_uint16(e+2),c=this.read_uint32(e+4),u=this.exif_format_length(l),f=c*u,h=f&lt;=4?e+8:this.read_uint32(e+8),p=!1;if(h+f&gt;this.input.length)throw n(&quot;unexpected EOF&quot;,&quot;EBADDATA&quot;);for(var d=[],g=h,m=0;m&lt;c;m++,g+=u){var v=this.exif_format_read(l,g);if(null===v){d=null;break}d.push(v)}if(Array.isArray(d)&amp;&amp;2===l&amp;&amp;(d=i(String.fromCharCode.apply(null,d)))&amp;&amp;&quot;\0&quot;===d[d.length-1]&amp;&amp;(d=d.slice(0,-1)),this.is_subifd_link(t,s)&amp;&amp;Array.isArray(d)&amp;&amp;Number.isInteger(d[0])&amp;&amp;d[0]&gt;0&amp;&amp;(this.ifds_to_read.push({id:s,offset:d[0]}),p=!0),!1===r({is_big_endian:this.big_endian,ifd:t,tag:s,format:l,count:c,entry_offset:e+this.start,data_length:f,data_offset:h+this.start,value:d,is_subifd_link:p}))return void(this.aborted=!0);e+=12}0===t&amp;&amp;this.ifds_to_read.push({id:1,offset:this.read_uint32(e)})},e.exports.ExifParser=a,e.exports.get_orientation=function(t){var e=0;try{return new a(t,0,t.length).each((function(t){if(0===t.ifd&amp;&amp;274===t.tag&amp;&amp;Array.isArray(t.value))return e=t.value[0],!1})),e}catch(t){return-1}}},{}],515:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./common&quot;).readUInt16BE,i=t(&quot;./common&quot;).readUInt32BE;function a(t,e){if(t.length&lt;4+e)return null;var r=i(t,e);return t.length&lt;r+e||r&lt;8?null:{boxtype:String.fromCharCode.apply(null,t.slice(e+4,e+8)),data:t.slice(e+8,e+r),end:e+r}}function o(t,e){for(var r=0;;){var n=a(t,r);if(!n)break;switch(n.boxtype){case&quot;ispe&quot;:e.sizes.push({width:i(n.data,4),height:i(n.data,8)});break;case&quot;irot&quot;:e.transforms.push({type:&quot;irot&quot;,value:3&amp;n.data[0]});break;case&quot;imir&quot;:e.transforms.push({type:&quot;imir&quot;,value:1&amp;n.data[0]})}r=n.end}}function s(t,e,r){for(var n=0,i=0;i&lt;r;i++)n=256*n+(t[e+i]||0);return n}function l(t,e){for(var r=t[4]&gt;&gt;4&amp;15,i=15&amp;t[4],a=t[5]&gt;&gt;4&amp;15,o=n(t,6),l=8,c=0;c&lt;o;c++){var u=n(t,l),f=n(t,l+=2),h=s(t,l+=2,a),p=n(t,l+=a);if(l+=2,0===f&amp;&amp;1===p){var d=s(t,l,r),g=s(t,l+r,i);e.item_loc[u]={length:g,offset:d+h}}l+=p*(r+i)}}function c(t,e){for(var r=n(t,4),i=6,o=0;o&lt;r;o++){var s=a(t,i);if(!s)break;if(&quot;infe&quot;===s.boxtype){for(var l=n(s.data,4),c=&quot;&quot;,u=8;u&lt;s.data.length&amp;&amp;s.data[u];u++)c+=String.fromCharCode(s.data[u]);e.item_inf[c]=l}i=s.end}}function u(t,e){for(var r=0;;){var n=a(t,r);if(!n)break;&quot;ipco&quot;===n.boxtype&amp;&amp;o(n.data,e),r=n.end}}e.exports.unbox=a,e.exports.readSizeFromMeta=function(t){var e={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(function(t,e){for(var r=4;;){var n=a(t,r);if(!n)break;&quot;iprp&quot;===n.boxtype&amp;&amp;u(n.data,e),&quot;iloc&quot;===n.boxtype&amp;&amp;l(n.data,e),&quot;iinf&quot;===n.boxtype&amp;&amp;c(n.data,e),r=n.end}}(t,e),e.sizes.length){var r,n,i,o=(r=e.sizes,n=r.reduce((function(t,e){return t.width&gt;e.width||t.width===e.width&amp;&amp;t.height&gt;e.height?t:e})),i=r.reduce((function(t,e){return t.height&gt;e.height||t.height===e.height&amp;&amp;t.width&gt;e.width?t:e})),n.width&gt;i.height||n.width===i.height&amp;&amp;n.height&gt;i.width?n:i),s=1;e.transforms.forEach((function(t){var e={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},r={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(&quot;imir&quot;===t.type&amp;&amp;(s=0===t.value?r[s]:e[s=e[s=r[s]]]),&quot;irot&quot;===t.type)for(var n=0;n&lt;t.value;n++)s=e[s]}));var f=null;return e.item_inf.Exif&amp;&amp;(f=e.item_loc[e.item_inf.Exif]),{width:o.width,height:o.height,orientation:e.transforms.length?s:null,variants:e.sizes,exif_location:f}}},e.exports.getMimeType=function(t){var e=String.fromCharCode.apply(null,t.slice(0,4)),r={};r[e]=!0;for(var n=8;n&lt;t.length;n+=4)r[String.fromCharCode.apply(null,t.slice(n,n+4))]=!0;if(r.mif1||r.msf1||r.miaf)return&quot;avif&quot;===e||&quot;avis&quot;===e||&quot;avio&quot;===e?{type:&quot;avif&quot;,mime:&quot;image/avif&quot;}:&quot;heic&quot;===e||&quot;heix&quot;===e?{type:&quot;heic&quot;,mime:&quot;image/heic&quot;}:&quot;hevc&quot;===e||&quot;hevx&quot;===e?{type:&quot;heic&quot;,mime:&quot;image/heic-sequence&quot;}:r.avif||r.avis?{type:&quot;avif&quot;,mime:&quot;image/avif&quot;}:r.heic||r.heix||r.hevc||r.hevx||r.heis?r.msf1?{type:&quot;heif&quot;,mime:&quot;image/heif-sequence&quot;}:{type:&quot;heif&quot;,mime:&quot;image/heif&quot;}:{type:&quot;avif&quot;,mime:&quot;image/avif&quot;}}},{&quot;./common&quot;:513}],516:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt32BE,o=t(&quot;../miaf_utils&quot;),s=t(&quot;../exif_utils&quot;),l=n(&quot;ftyp&quot;);e.exports=function(t){if(i(t,4,l)){var e=o.unbox(t,0);if(e){var r=o.getMimeType(e.data);if(r){for(var n,c=e.end;;){var u=o.unbox(t,c);if(!u)break;if(c=u.end,&quot;mdat&quot;===u.boxtype)return;if(&quot;meta&quot;===u.boxtype){n=u.data;break}}if(n){var f=o.readSizeFromMeta(n);if(f){var h={width:f.width,height:f.height,type:r.type,mime:r.mime,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;};if(f.variants.length&gt;1&amp;&amp;(h.variants=f.variants),f.orientation&amp;&amp;(h.orientation=f.orientation),f.exif_location&amp;&amp;f.exif_location.offset+f.exif_location.length&lt;=t.length){var p=a(t,f.exif_location.offset),d=t.slice(f.exif_location.offset+p+4,f.exif_location.offset+f.exif_location.length),g=s.get_orientation(d);g&gt;0&amp;&amp;(h.orientation=g)}return h}}}}}}},{&quot;../common&quot;:513,&quot;../exif_utils&quot;:514,&quot;../miaf_utils&quot;:515}],517:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=n(&quot;BM&quot;);e.exports=function(t){if(!(t.length&lt;26)&amp;&amp;i(t,0,o))return{width:a(t,18),height:a(t,22),type:&quot;bmp&quot;,mime:&quot;image/bmp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:513}],518:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=n(&quot;GIF87a&quot;),s=n(&quot;GIF89a&quot;);e.exports=function(t){if(!(t.length&lt;10)&amp;&amp;(i(t,0,o)||i(t,0,s)))return{width:a(t,6),height:a(t,8),type:&quot;gif&quot;,mime:&quot;image/gif&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:513}],519:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).readUInt16LE;e.exports=function(t){var e=n(t,0),r=n(t,2),i=n(t,4);if(0===e&amp;&amp;1===r&amp;&amp;i){for(var a=[],o={width:0,height:0},s=0;s&lt;i;s++){var l=t[6+16*s]||256,c=t[6+16*s+1]||256,u={width:l,height:c};a.push(u),(l&gt;o.width||c&gt;o.height)&amp;&amp;(o=u)}return{width:o.width,height:o.height,variants:a,type:&quot;ico&quot;,mime:&quot;image/x-icon&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}}},{&quot;../common&quot;:513}],520:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).readUInt16BE,i=t(&quot;../common&quot;).str2arr,a=t(&quot;../common&quot;).sliceEq,o=t(&quot;../exif_utils&quot;),s=i(&quot;Exif\0\0&quot;);e.exports=function(t){if(!(t.length&lt;2)&amp;&amp;255===t[0]&amp;&amp;216===t[1])for(var e=2;;){if(t.length-e&lt;2)return;if(255!==t[e++])return;for(var r,i,l=t[e++];255===l;)l=t[e++];if(208&lt;=l&amp;&amp;l&lt;=217||1===l)r=0;else{if(!(192&lt;=l&amp;&amp;l&lt;=254))return;if(t.length-e&lt;2)return;r=n(t,e)-2,e+=2}if(217===l||218===l)return;if(225===l&amp;&amp;r&gt;=10&amp;&amp;a(t,e,s)&amp;&amp;(i=o.get_orientation(t.slice(e+6,e+r))),r&gt;=5&amp;&amp;192&lt;=l&amp;&amp;l&lt;=207&amp;&amp;196!==l&amp;&amp;200!==l&amp;&amp;204!==l){if(t.length-e&lt;r)return;var c={width:n(t,e+3),height:n(t,e+1),type:&quot;jpg&quot;,mime:&quot;image/jpeg&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;};return i&gt;0&amp;&amp;(c.orientation=i),c}e+=r}}},{&quot;../common&quot;:513,&quot;../exif_utils&quot;:514}],521:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt32BE,o=n(&quot;\x89PNG\r\n\x1a\n&quot;),s=n(&quot;IHDR&quot;);e.exports=function(t){if(!(t.length&lt;24)&amp;&amp;i(t,0,o)&amp;&amp;i(t,12,s))return{width:a(t,16),height:a(t,20),type:&quot;png&quot;,mime:&quot;image/png&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:513}],522:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt32BE,o=n(&quot;8BPS\0\x01&quot;);e.exports=function(t){if(!(t.length&lt;22)&amp;&amp;i(t,0,o))return{width:a(t,18),height:a(t,14),type:&quot;psd&quot;,mime:&quot;image/vnd.adobe.photoshop&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:513}],523:[function(t,e,r){&quot;use strict&quot;;function n(t){return&quot;number&quot;==typeof t&amp;&amp;isFinite(t)&amp;&amp;t&gt;0}var i=/&lt;[-_.:a-zA-Z0-9][^&gt;]*&gt;/,a=/^&lt;([-_.:a-zA-Z0-9]+:)?svg\s/,o=/[^-]\bwidth=&quot;([^%]+?)&quot;|[^-]\bwidth='([^%]+?)'/,s=/\bheight=&quot;([^%]+?)&quot;|\bheight='([^%]+?)'/,l=/\bview[bB]ox=&quot;(.+?)&quot;|\bview[bB]ox='(.+?)'/,c=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function u(t){return c.test(t)?t.match(c)[0]:&quot;px&quot;}e.exports=function(t){if(function(t){var e,r=0,n=t.length;for(239===t[0]&amp;&amp;187===t[1]&amp;&amp;191===t[2]&amp;&amp;(r=3);r&lt;n&amp;&amp;(32===(e=t[r])||9===e||13===e||10===e);)r++;return r!==n&amp;&amp;60===t[r]}(t)){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++)e+=String.fromCharCode(t[r]);var c=(e.match(i)||[&quot;&quot;])[0];if(a.test(c)){var f=function(t){var e=t.match(o),r=t.match(s),n=t.match(l);return{width:e&amp;&amp;(e[1]||e[2]),height:r&amp;&amp;(r[1]||r[2]),viewbox:n&amp;&amp;(n[1]||n[2])}}(c),h=parseFloat(f.width),p=parseFloat(f.height);if(f.width&amp;&amp;f.height){if(!n(h)||!n(p))return;return{width:h,height:p,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(f.width),hUnits:u(f.height)}}var d=(f.viewbox||&quot;&quot;).split(&quot; &quot;),g={width:d[2],height:d[3]},m=parseFloat(g.width),v=parseFloat(g.height);if(n(m)&amp;&amp;n(v)&amp;&amp;u(g.width)===u(g.height)){var y=m/v;if(f.width){if(!n(h))return;return{width:h,height:h/y,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(f.width),hUnits:u(f.width)}}if(f.height){if(!n(p))return;return{width:p*y,height:p,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(f.height),hUnits:u(f.height)}}return{width:m,height:v,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(g.width),hUnits:u(g.height)}}}}}},{}],524:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=t(&quot;../common&quot;).readUInt16BE,s=t(&quot;../common&quot;).readUInt32LE,l=t(&quot;../common&quot;).readUInt32BE,c=n(&quot;II*\0&quot;),u=n(&quot;MM\0*&quot;);function f(t,e,r){return r?o(t,e):a(t,e)}function h(t,e,r){return r?l(t,e):s(t,e)}function p(t,e,r){var n=f(t,e+2,r);return 1!==h(t,e+4,r)||3!==n&amp;&amp;4!==n?null:3===n?f(t,e+8,r):h(t,e+8,r)}e.exports=function(t){if(!(t.length&lt;8)&amp;&amp;(i(t,0,c)||i(t,0,u))){var e=77===t[0],r=h(t,4,e)-8;if(!(r&lt;0)){var n=r+8;if(!(t.length-n&lt;2)){var a=12*f(t,n+0,e);if(!(a&lt;=0||(n+=2,t.length-n&lt;a))){var o,s,l,d;for(o=0;o&lt;a;o+=12)256===(d=f(t,n+o,e))?s=p(t,n+o,e):257===d&amp;&amp;(l=p(t,n+o,e));return s&amp;&amp;l?{width:s,height:l,type:&quot;tiff&quot;,mime:&quot;image/tiff&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}:void 0}}}}}},{&quot;../common&quot;:513}],525:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=t(&quot;../common&quot;).readUInt32LE,s=t(&quot;../exif_utils&quot;),l=n(&quot;RIFF&quot;),c=n(&quot;WEBP&quot;);function u(t,e){if(157===t[e+3]&amp;&amp;1===t[e+4]&amp;&amp;42===t[e+5])return{width:16383&amp;a(t,e+6),height:16383&amp;a(t,e+8),type:&quot;webp&quot;,mime:&quot;image/webp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}function f(t,e){if(47===t[e]){var r=o(t,e+1);return{width:1+(16383&amp;r),height:1+(r&gt;&gt;14&amp;16383),type:&quot;webp&quot;,mime:&quot;image/webp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}}function h(t,e){return{width:1+(t[e+6]&lt;&lt;16|t[e+5]&lt;&lt;8|t[e+4]),height:1+(t[e+9]&lt;&lt;e|t[e+8]&lt;&lt;8|t[e+7]),type:&quot;webp&quot;,mime:&quot;image/webp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}e.exports=function(t){if(!(t.length&lt;16)&amp;&amp;(i(t,0,l)||i(t,8,c))){var e=12,r=null,n=0,a=o(t,4)+8;if(!(a&gt;t.length)){for(;e+8&lt;a;)if(0!==t[e]){var p=String.fromCharCode.apply(null,t.slice(e,e+4)),d=o(t,e+4);&quot;VP8 &quot;===p&amp;&amp;d&gt;=10?r=r||u(t,e+8):&quot;VP8L&quot;===p&amp;&amp;d&gt;=9?r=r||f(t,e+8):&quot;VP8X&quot;===p&amp;&amp;d&gt;=10?r=r||h(t,e+8):&quot;EXIF&quot;===p&amp;&amp;(n=s.get_orientation(t.slice(e+8,e+8+d)),e=1/0),e+=8+d}else e++;if(r)return n&gt;0&amp;&amp;(r.orientation=n),r}}}},{&quot;../common&quot;:513,&quot;../exif_utils&quot;:514}],526:[function(t,e,r){&quot;use strict&quot;;e.exports={avif:t(&quot;./parse_sync/avif&quot;),bmp:t(&quot;./parse_sync/bmp&quot;),gif:t(&quot;./parse_sync/gif&quot;),ico:t(&quot;./parse_sync/ico&quot;),jpeg:t(&quot;./parse_sync/jpeg&quot;),png:t(&quot;./parse_sync/png&quot;),psd:t(&quot;./parse_sync/psd&quot;),svg:t(&quot;./parse_sync/svg&quot;),tiff:t(&quot;./parse_sync/tiff&quot;),webp:t(&quot;./parse_sync/webp&quot;)}},{&quot;./parse_sync/avif&quot;:516,&quot;./parse_sync/bmp&quot;:517,&quot;./parse_sync/gif&quot;:518,&quot;./parse_sync/ico&quot;:519,&quot;./parse_sync/jpeg&quot;:520,&quot;./parse_sync/png&quot;:521,&quot;./parse_sync/psd&quot;:522,&quot;./parse_sync/svg&quot;:523,&quot;./parse_sync/tiff&quot;:524,&quot;./parse_sync/webp&quot;:525}],527:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/parsers_sync&quot;);e.exports=function(t){return function(t){for(var e=Object.keys(n),r=0;r&lt;e.length;r++){var i=n[e[r]](t);if(i)return i}return null}(t)},e.exports.parsers=n},{&quot;./lib/parsers_sync&quot;:526}],528:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(&quot;setTimeout has not been defined&quot;)}function s(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&amp;&amp;setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=&quot;function&quot;==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=&quot;function&quot;==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&amp;&amp;c&amp;&amp;(f=!1,c.length?u=c.concat(u):h=-1,u.length&amp;&amp;d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h&lt;e;)c&amp;&amp;c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&amp;&amp;clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length&gt;1)for(var r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];u.push(new g(t,e)),1!==u.length||f||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title=&quot;browser&quot;,a.browser=!0,a.env={},a.argv=[],a.version=&quot;&quot;,a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(&quot;process.binding is not supported&quot;)},a.cwd=function(){return&quot;/&quot;},a.chdir=function(t){throw new Error(&quot;process.chdir is not supported&quot;)},a.umask=function(){return 0}},{}],529:[function(t,e,r){e.exports=t(&quot;gl-quat/slerp&quot;)},{&quot;gl-quat/slerp&quot;:329}],530:[function(t,e,r){(function(r){(function(){for(var n=t(&quot;performance-now&quot;),i=&quot;undefined&quot;==typeof window?r:window,a=[&quot;moz&quot;,&quot;webkit&quot;],o=&quot;AnimationFrame&quot;,s=i[&quot;request&quot;+o],l=i[&quot;cancel&quot;+o]||i[&quot;cancelRequest&quot;+o],c=0;!s&amp;&amp;c&lt;a.length;c++)s=i[a[c]+&quot;Request&quot;+o],l=i[a[c]+&quot;Cancel&quot;+o]||i[a[c]+&quot;CancelRequest&quot;+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e&lt;t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e&lt;h.length;e++)h[e].handle===t&amp;&amp;(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;performance-now&quot;:495}],531:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/add&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/add&quot;:87}],532:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r)e[r]=n(t[r]);return e};var n=t(&quot;big-rat&quot;)},{&quot;big-rat&quot;:90}],533:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat&quot;),i=t(&quot;big-rat/mul&quot;);e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s&lt;a;++s)o[s]=i(t[s],r);return o}},{&quot;big-rat&quot;:90,&quot;big-rat/mul&quot;:99}],534:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/sub&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/sub&quot;:101}],535:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;compare-oriented-cell&quot;),a=t(&quot;cell-orientation&quot;);e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o&lt;e;++o){var s=t[o],l=a(s);if(0!==l){if(r&gt;0){var c=t[r-1];if(0===n(s,c)&amp;&amp;a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{&quot;cell-orientation&quot;:123,&quot;compare-cell&quot;:139,&quot;compare-oriented-cell&quot;:140}],536:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;),i=t(&quot;color-normalize&quot;),a=t(&quot;update-diff&quot;),o=t(&quot;pick-by-alias&quot;),s=t(&quot;object-assign&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;to-float32&quot;),u=c.float32,f=c.fract32;e.exports=function(t,e){&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t;e.length&amp;&amp;(e.positions=e);if(!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);var r,c,p,d,g,m,v=t._gl,y={color:&quot;black&quot;,capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array(0)}),c=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),p=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),g=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),m=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:h}),T(e),r=t({vert:&quot;\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t&quot;,frag:&quot;\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t&quot;,uniforms:{range:t.prop(&quot;range&quot;),lineWidth:t.prop(&quot;lineWidth&quot;),capSize:t.prop(&quot;capSize&quot;),opacity:t.prop(&quot;opacity&quot;),scale:t.prop(&quot;scale&quot;),translate:t.prop(&quot;translate&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:&quot;triangles&quot;,blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:!1,instances:t.prop(&quot;count&quot;),count:h.length}),s(b,{update:T,draw:_,destroy:k,regl:t,gl:v,canvas:v.canvas,groups:x}),b;function b(t){t?T(t):null===t&amp;&amp;k(),_()}function _(e){if(&quot;number&quot;==typeof e)return w(e);e&amp;&amp;!Array.isArray(e)&amp;&amp;(e=[e]),t._refresh(),x.forEach((function(t,r){t&amp;&amp;(e&amp;&amp;(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)}))}function w(t){&quot;number&quot;==typeof t&amp;&amp;(t=x[t]),null!=t&amp;&amp;t&amp;&amp;t.count&amp;&amp;t.color&amp;&amp;t.opacity&amp;&amp;t.positions&amp;&amp;t.positions.length&gt;1&amp;&amp;(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&amp;&amp;t.after(t))}function T(t){if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map((function(t,c){var u=x[c];return t?(&quot;function&quot;==typeof t?t={after:t}:&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=o(t,{color:&quot;color colors fill&quot;,capSize:&quot;capSize cap capsize cap-size&quot;,lineWidth:&quot;lineWidth line-width width line thickness&quot;,opacity:&quot;opacity alpha&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,errors:&quot;errors error&quot;,positions:&quot;positions position data points&quot;}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,&quot;float64&quot;),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=&quot;transparent&quot;),!Array.isArray(t)||&quot;number&quot;==typeof t[0]){var n=t;t=Array(r);for(var a=0;a&lt;r;a++)t[a]=n}if(t.length&lt;r)throw Error(&quot;Not enough colors&quot;);for(var o=new Uint8Array(4*r),s=0;s&lt;r;s++){var l=i(t[s],&quot;uint8&quot;);o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},e}}]),u):u})),e||r){var h=x.reduce((function(t,e,r){return t+(e?e.count:0)}),0),m=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach((function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&amp;&amp;(_.set(a,4*i),w.set(o,4*i),m.set(r,2*i))}}));var T=u(m);c(T);var k=f(m,T);p(k),d(_),g(w)}}}function k(){c.destroy(),p.destroy(),d.destroy(),g.destroy(),m.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{&quot;array-bounds&quot;:76,&quot;color-normalize&quot;:131,&quot;flatten-vertex-data&quot;:252,&quot;object-assign&quot;:487,&quot;pick-by-alias&quot;:498,&quot;to-float32&quot;:599,&quot;update-diff&quot;:621}],537:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;),i=t(&quot;array-bounds&quot;),a=t(&quot;object-assign&quot;),o=t(&quot;glslify&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;earcut&quot;),u=t(&quot;array-normalize&quot;),f=t(&quot;to-float32&quot;),h=f.float32,p=f.fract32,d=t(&quot;es6-weak-map&quot;),g=t(&quot;parse-rect&quot;),m=t(&quot;array-find-index&quot;);function v(t,e){if(!(this instanceof v))return new v(t,e);if(&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t,e.length&amp;&amp;(e.positions=e),!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=v.shaders.has(t)?v.shaders.get(t):v.shaders.set(t,v.createShaders(t)).get(t),this.update(e)}e.exports=v,v.dashMult=2,v.maxPatternLength=256,v.precisionThreshold=3e6,v.maxPoints=1e4,v.maxLines=2048,v.shaders=new d,v.createShaders=function(t){var e,r=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:[0,1,0,0,1,1,1,0]}),n={primitive:&quot;triangle strip&quot;,instances:t.prop(&quot;count&quot;),count:4,offset:0,uniforms:{miterMode:function(t,e){return&quot;round&quot;===e.join?2:1},miterLimit:t.prop(&quot;miterLimit&quot;),scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),thickness:t.prop(&quot;thickness&quot;),dashPattern:t.prop(&quot;dashTexture&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),dashSize:t.prop(&quot;dashLength&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(&quot;depth&quot;)},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;)},i=t(a({vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\n\nuniform float dashSize, pixelRatio, thickness, opacity, id;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:16,divisor:1},color:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:&quot;back&quot;},vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n  return ( val &lt; 0.0 || 0.0 &lt; val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n  vec2 adjustedScale;\n  adjustedScale.x = (abs(scale.x) &lt; MIN_DIFF) ? MIN_DIFF : scale.x;\n  adjustedScale.y = (abs(scale.y) &lt; MIN_DIFF) ? MIN_DIFF : scale.y;\n\n  vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) &lt; MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) &lt; MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse &amp;&amp; baClipping &gt; 0. &amp;&amp; baClipping &lt; length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse &amp;&amp; abClipping &gt; 0. &amp;&amp; abClipping &lt; length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position  * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:&quot;triangle&quot;,elements:function(t,e){return e.triangles},offset:0,vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n&quot;]),uniforms:{scale:t.prop(&quot;scale&quot;),color:t.prop(&quot;fill&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8},positionFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},v.defaults={dashes:null,join:&quot;miter&quot;,miterLimit:1,thickness:10,cap:&quot;square&quot;,color:&quot;black&quot;,opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},v.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&amp;&amp;(t=this).update.apply(t,e),this.draw()},v.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&amp;&amp;Array.isArray(e))return(n=t).draw.apply(n,e);&quot;number&quot;==typeof e&amp;&amp;(e=t.passes[e]),e&amp;&amp;e.count&gt;1&amp;&amp;e.opacity&amp;&amp;(t.regl._refresh(),e.fill&amp;&amp;e.triangles&amp;&amp;e.triangles.length&gt;2&amp;&amp;t.shaders.fill(e),e.thickness&amp;&amp;(e.scale[0]*e.viewport.width&gt;v.precisionThreshold||e.scale[1]*e.viewport.height&gt;v.precisionThreshold||&quot;rect&quot;===e.join||!e.join&amp;&amp;(e.thickness&lt;=2||e.count&gt;=v.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},v.prototype.update=function(t){var e=this;if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach((function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=s(t,{positions:&quot;positions points data coords&quot;,thickness:&quot;thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth&quot;,join:&quot;lineJoin linejoin join type mode&quot;,miterLimit:&quot;miterlimit miterLimit&quot;,dashes:&quot;dash dashes dasharray dash-array dashArray&quot;,color:&quot;color colour stroke colors colours stroke-color strokeColor&quot;,fill:&quot;fill fill-color fillColor&quot;,opacity:&quot;alpha opacity&quot;,overlay:&quot;overlay crease overlap intersect&quot;,close:&quot;closed close closed-path closePath&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,hole:&quot;holes hole hollow&quot;,splitNull:&quot;splitNull&quot;}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;}),colorBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array}),positionBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),positionFractBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array})},t=a({},v.defaults,t)),null!=t.thickness&amp;&amp;(d.thickness=parseFloat(t.thickness)),null!=t.opacity&amp;&amp;(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&amp;&amp;(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&amp;&amp;(d.overlay=!!t.overlay,f&lt;v.maxLines&amp;&amp;(d.depth=2*(v.maxLines-1-f%v.maxLines)/v.maxLines-1)),null!=t.join&amp;&amp;(d.join=t.join),null!=t.hole&amp;&amp;(d.hole=t.hole),null!=t.fill&amp;&amp;(d.fill=t.fill?n(t.fill,&quot;uint8&quot;):null),null!=t.viewport&amp;&amp;(d.viewport=g(t.viewport)),d.viewport||(d.viewport=g([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&amp;&amp;(d.close=t.close),null===t.positions&amp;&amp;(t.positions=[]),t.positions){var y,x;if(t.positions.x&amp;&amp;t.positions.y){var b=t.positions.x,_=t.positions.y;x=d.count=Math.max(b.length,_.length),y=new Float64Array(2*x);for(var w=0;w&lt;x;w++)y[2*w]=b[w],y[2*w+1]=_[w]}else y=l(t.positions,&quot;float64&quot;),x=d.count=Math.floor(y.length/2);var T=d.bounds=i(y,2);if(d.fill){for(var k=[],A={},M=0,S=0,E=0,L=d.count;S&lt;L;S++){var C=y[2*S],P=y[2*S+1];isNaN(C)||isNaN(P)||null==C||null==P?(C=y[2*M],P=y[2*M+1],A[S]=M):M=S,k[E++]=C,k[E++]=P}if(t.splitNull){d.count-1 in A||(A[d.count]=d.count-1);var I=Object.keys(A).map(Number).sort((function(t,e){return t-e})),O=[],z=0,D=null!=d.hole?d.hole[0]:null;if(null!=D){var R=m(I,(function(t){return t&gt;=D}));(I=I.slice(0,R)).push(D)}for(var F=function(t){var e=k.slice(2*z,2*I[t]).concat(D?k.slice(2*D):[]),r=(d.hole||[]).map((function(e){return e-D+(I[t]-z)})),n=c(e,r);n=n.map((function(e){return e+z+(e+z&lt;I[t]?0:D-I[t])})),O.push.apply(O,n),z=I[t]+1},B=0;B&lt;I.length;B++)F(B);for(var N=0,j=O.length;N&lt;j;N++)null!=A[O[N]]&amp;&amp;(O[N]=A[O[N]]);d.triangles=O}else{for(var U=c(k,d.hole||[]),V=0,q=U.length;V&lt;q;V++)null!=A[U[V]]&amp;&amp;(U[V]=A[U[V]]);d.triangles=U}}var H=new Float64Array(y);u(H,2,T);var G=new Float64Array(2*x+6);d.close?y[0]===y[2*x-2]&amp;&amp;y[1]===y[2*x-1]?(G[0]=H[2*x-4],G[1]=H[2*x-3]):(G[0]=H[2*x-2],G[1]=H[2*x-1]):(G[0]=H[0],G[1]=H[1]),G.set(H,2),d.close?y[0]===y[2*x-2]&amp;&amp;y[1]===y[2*x-1]?(G[2*x+2]=H[2],G[2*x+3]=H[3],d.count-=1):(G[2*x+2]=H[0],G[2*x+3]=H[1],G[2*x+4]=H[2],G[2*x+5]=H[3]):(G[2*x+2]=H[2*x-2],G[2*x+3]=H[2*x-1],G[2*x+4]=H[2*x-2],G[2*x+5]=H[2*x-1]);var Y=h(G);d.positionBuffer(Y);var W=p(G,Y);d.positionFractBuffer(W)}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&amp;&amp;d.count){var X=d.bounds,Z=X[2]-X[0],J=X[3]-X[1],K=d.range[2]-d.range[0],Q=d.range[3]-d.range[1];d.scale=[Z/K,J/Q],d.translate=[-d.range[0]/K+X[0]/K||0,-d.range[1]/Q+X[1]/Q||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var $,tt=0;if(!t.dashes||t.dashes.length&lt;2)tt=1,$=new Uint8Array([255,255,255,255,255,255,255,255]);else{tt=0;for(var et=0;et&lt;t.dashes.length;++et)tt+=t.dashes[et];$=new Uint8Array(tt*v.dashMult);for(var rt=0,nt=255,it=0;it&lt;2;it++)for(var at=0;at&lt;t.dashes.length;++at){for(var ot=0,st=t.dashes[at]*v.dashMult*.5;ot&lt;st;++ot)$[rt++]=nt;nt^=255}}d.dashLength=tt,d.dashTexture({channels:1,data:$,width:$.length,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;},0,0)}if(t.color){var lt=d.count,ct=t.color;ct||(ct=&quot;transparent&quot;);var ut=new Uint8Array(4*lt+4);if(Array.isArray(ct)&amp;&amp;&quot;number&quot;!=typeof ct[0]){for(var ft=0;ft&lt;lt;ft++){var ht=n(ct[ft],&quot;uint8&quot;);ut.set(ht,4*ft)}ut.set(n(ct[0],&quot;uint8&quot;),4*lt)}else for(var pt=n(ct,&quot;uint8&quot;),dt=0;dt&lt;lt+1;dt++)ut.set(pt,4*dt);d.colorBuffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:ut})}}else e.passes[f]=null})),t.length&lt;this.passes.length){for(var f=t.length;f&lt;this.passes.length;f++){var d=this.passes[f];d&amp;&amp;(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var y=[],x=0;x&lt;this.passes.length;x++)null!==this.passes[x]&amp;&amp;y.push(this.passes[x]);return this.passes=y,this}},v.prototype.destroy=function(){return this.passes.forEach((function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}},{&quot;array-bounds&quot;:76,&quot;array-find-index&quot;:77,&quot;array-normalize&quot;:78,&quot;color-normalize&quot;:131,earcut:186,&quot;es6-weak-map&quot;:241,&quot;flatten-vertex-data&quot;:252,glslify:442,&quot;object-assign&quot;:487,&quot;parse-rect&quot;:492,&quot;pick-by-alias&quot;:498,&quot;to-float32&quot;:599}],538:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:&quot;undefined&quot;!=typeof Symbol&amp;&amp;t[Symbol.iterator]||t[&quot;@@iterator&quot;];if(null==r)return;var n,i,a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&amp;&amp;(a.push(n.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}(t,e)||a(t,e)||function(){throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=t[Symbol.iterator]||null!=t[&quot;@@iterator&quot;])return Array.from(t)}(t)||a(t)||function(){throw new TypeError(&quot;Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function a(t,e){if(t){if(&quot;string&quot;==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return&quot;Object&quot;===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),&quot;Map&quot;===r||&quot;Set&quot;===r?Array.from(t):&quot;Arguments&quot;===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var s=t(&quot;color-normalize&quot;),l=t(&quot;array-bounds&quot;),c=t(&quot;color-id&quot;),u=t(&quot;@plotly/point-cluster&quot;),f=t(&quot;object-assign&quot;),h=t(&quot;glslify&quot;),p=t(&quot;pick-by-alias&quot;),d=t(&quot;update-diff&quot;),g=t(&quot;flatten-vertex-data&quot;),m=t(&quot;is-iexplorer&quot;),v=t(&quot;to-float32&quot;),y=t(&quot;parse-rect&quot;),x=b;function b(t,e){var r=this;if(!(this instanceof b))return new b(t,e);&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&amp;&amp;e.length&amp;&amp;(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=m,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:&quot;uint8&quot;,format:&quot;rgba&quot;,wrapS:&quot;clamp&quot;,wrapT:&quot;clamp&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;}),f(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{constPointSize:!!e.constPointSize,pixelRatio:t.context(&quot;pixelRatio&quot;),palette:n,paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translate:t.prop(&quot;translate&quot;),translateFract:t.prop(&quot;translateFract&quot;),opacity:t.prop(&quot;opacity&quot;),marker:t.prop(&quot;markerTexture&quot;)},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(&quot;elements&quot;),count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),primitive:&quot;points&quot;},s=f({},o);s.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nuniform sampler2D marker;\nuniform float opacity;\n\nfloat smoothStep(float x, float y) {\n  return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n  float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\n\n  // max-distance alpha\n  if (dist &lt; 0.003) discard;\n\n  // null-border case\n  if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n    float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n    gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n  }\n  else {\n    float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n    float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n    vec4 color = fragBorderColor;\n    color.a *= borderColorAmt;\n    color = mix(color, fragColor, colorAmt);\n    color.a *= opacity;\n\n    gl_FragColor = color;\n  }\n\n}\n&quot;]),s.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = 2. * size * pointSizeScale;\n  fragPointSize = size * pixelRatio;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragColor = color;\n  fragBorderColor = borderColor;\n  fragWidth = 1. / gl_PointSize;\n\n  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}&quot;]),this.drawMarker=t(s);var l=f({},o);l.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\n\nuniform float opacity;\nvarying float fragBorderRadius, fragWidth;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius &gt; 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n&quot;]),l.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\nuniform vec2 paletteSize;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = (size + borderSize) * pointSizeScale;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n  fragColor = color;\n  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n  fragWidth = 1. / gl_PointSize;\n}\n&quot;]),m&amp;&amp;(l.frag=l.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;),s.frag=s.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;)),this.drawCircle=t(l)}b.defaults={color:&quot;black&quot;,borderColor:&quot;transparent&quot;,borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&amp;&amp;this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];var i=this.groups;if(1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(null===r[0][0]||Array.isArray(r[0][0]))&amp;&amp;(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a&lt;r.length;a++)this.drawItem(a,r[a]);else i.forEach((function(e,r){t.drawItem(r)}));return this},b.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(&quot;number&quot;==typeof e&amp;&amp;(t=e,n=r[e],e=null),n&amp;&amp;n.count&amp;&amp;n.opacity){n.activation[0]&amp;&amp;this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var a=[],o=1;o&lt;n.activation.length;o++)n.activation[o]&amp;&amp;(!0===n.activation[o]||n.activation[o].data.length)&amp;&amp;a.push.apply(a,i(this.getMarkerDrawOptions(o,n,e)));a.length&amp;&amp;this.drawMarker(a)}},b.prototype.getMarkerDrawOptions=function(t,e,r){var i=e.range,a=e.tree,o=e.viewport,s=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!a)return r?[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],count:r.length,elements:r,offset:0})]:[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],offset:0})];var u=[],h=a.range(i,{lod:!0,px:[(i[2]-i[0])/o.width,(i[3]-i[1])/o.height]});if(r){for(var p=s[t].data,d=new Uint8Array(c),g=0;g&lt;r.length;g++){var m=r[g];d[m]=p?p[m]:1}l.subdata(d)}for(var v=h.length;v--;){var y=n(h[v],2),x=y[0],b=y[1];u.push(f({},e,{markerTexture:this.markerTextures[t],activation:r?l:s[t],offset:x,count:b-x}))}return u},b.prototype.update=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];if(r.length){1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,s=this.maxSize,c=this.maxColors,h=this.palette;this.groups=i=r.map((function(e,r){var n=i[r];if(void 0===e)return n;null===e?e={positions:null}:&quot;function&quot;==typeof e?e={ondraw:e}:&quot;number&quot;==typeof e[0]&amp;&amp;(e={positions:e}),null===(e=p(e,{positions:&quot;positions data points&quot;,snap:&quot;snap cluster lod tree&quot;,size:&quot;sizes size radius&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,color:&quot;colors color fill fill-color fillColor&quot;,borderColor:&quot;borderColors borderColor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range dataBox databox&quot;,viewport:&quot;viewport viewPort viewBox viewbox&quot;,opacity:&quot;opacity alpha transparency&quot;,bounds:&quot;bound bounds boundaries limits&quot;,tooManyColors:&quot;tooManyColors palette paletteMode optimizePalette enablePalette&quot;})).positions&amp;&amp;(e.positions=[]),null!=e.tooManyColors&amp;&amp;(t.tooManyColors=e.tooManyColors),n||(i[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;stream&quot;,type:&quot;uint8&quot;}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;})},e=f({},b.defaults,e)),e.positions&amp;&amp;!(&quot;marker&quot;in e)&amp;&amp;(e.marker=n.marker,delete n.marker),e.marker&amp;&amp;!(&quot;positions&quot;in e)&amp;&amp;(e.positions=n.positions,delete n.positions);var m=0,x=0;if(d(n,e,[{snap:!0,size:function(t,e){return null==t&amp;&amp;(t=b.defaults.size),m+=t&amp;&amp;t.length?1:0,t},borderSize:function(t,e){return null==t&amp;&amp;(t=b.defaults.borderSize),m+=t&amp;&amp;t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&amp;&amp;(e=b.defaults.color),e=t.updateColor(e),x++,e},borderColor:function(e,r){return null==e&amp;&amp;(e=b.defaults.borderColor),e=t.updateColor(e),x++,e},bounds:function(t,e,r){return&quot;range&quot;in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,i=e.positionBuffer,a=e.positionFractBuffer,s=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:o.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:o.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=g(t,&quot;float64&quot;);var c=e.count=Math.floor(t.length/2),f=e.bounds=c?l(t,2):null;if(r.range||e.range||(delete e.range,r.range=f),r.marker||e.marker||(delete e.marker,r.marker=null),n&amp;&amp;(!0===n||c&gt;n)?e.tree=u(t,{bounds:f}):n&amp;&amp;n.length&amp;&amp;(e.tree=n),e.tree){var h={primitive:&quot;points&quot;,usage:&quot;static&quot;,data:e.tree,type:&quot;uint32&quot;};e.elements?e.elements(h):e.elements=o.elements(h)}var p=v.float32(t);return i({data:p,usage:&quot;dynamic&quot;}),a({data:v.fract32(t,p),usage:&quot;dynamic&quot;}),s({data:new Uint8Array(c),type:&quot;uint8&quot;,usage:&quot;stream&quot;}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),i.length=0,e&amp;&amp;&quot;number&quot;!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s&lt;l;s++){var c=t.addMarker(e[s]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][s]=1}for(var u=0;u&lt;a.length;u++)if(a[u]){var f={data:a[u],type:&quot;uint8&quot;,usage:&quot;static&quot;};i[u]?i[u](f):i[u]=o.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=v.fract(e.scale),e.translateFract=v.fract(e.translate),t},viewport:function(t){return y(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),m){var _=n,w=_.count,T=_.size,k=_.borderSize,A=_.sizeBuffer,M=new Uint8Array(2*w);if(T.length||k.length)for(var S=0;S&lt;w;S++)M[2*S]=Math.round(255*(null==T[S]?T:T[S])/s),M[2*S+1]=Math.round(255*(null==k[S]?k:k[S])/s);A({data:M,usage:&quot;dynamic&quot;})}if(x){var E,L=n,C=L.count,P=L.color,I=L.borderColor,O=L.colorBuffer;if(t.tooManyColors){if(P.length||I.length){E=new Uint8Array(8*C);for(var z=0;z&lt;C;z++){var D=P[z];E[8*z]=h[4*D],E[8*z+1]=h[4*D+1],E[8*z+2]=h[4*D+2],E[8*z+3]=h[4*D+3];var R=I[z];E[8*z+4]=h[4*R],E[8*z+5]=h[4*R+1],E[8*z+6]=h[4*R+2],E[8*z+7]=h[4*R+3]}}}else if(P.length||I.length){E=new Uint8Array(4*C+2);for(var F=0;F&lt;C;F++)null!=P[F]&amp;&amp;(E[4*F]=P[F]%c,E[4*F+1]=Math.floor(P[F]/c)),null!=I[F]&amp;&amp;(E[4*F+2]=I[F]%c,E[4*F+3]=Math.floor(I[F]/c))}O({data:E||new Uint8Array(0),type:&quot;uint8&quot;,usage:&quot;dynamic&quot;})}return n}))}},b.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a&gt;=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o&lt;s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:&quot;linear&quot;,min:&quot;linear&quot;})),a},b.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(t)||(t=[t]);var i=[];if(&quot;number&quot;==typeof t[0]){var a=[];if(Array.isArray(t))for(var o=0;o&lt;t.length;o+=4)a.push(t.slice(o,o+4));else for(var l=0;l&lt;t.length;l+=4)a.push(t.subarray(l,l+4));t=a}for(var u=0;u&lt;t.length;u++){var f=t[u];f=s(f,&quot;uint8&quot;);var h=c(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}i[u]=e[h]}return!this.tooManyColors&amp;&amp;r.length&gt;4*n&amp;&amp;(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n&gt;1)for(var i=.25*(t=t.slice()).length%e;i&lt;n*e;i++)t.push(0,0,0,0);r.height&lt;n&amp;&amp;r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},b.prototype.destroy=function(){return this.groups.forEach((function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),t.selectionBuffer.destroy(),t.elements&amp;&amp;t.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),this};var _=t(&quot;object-assign&quot;);e.exports=function(t,e){var r=new x(t,e),n=r.render.bind(r);return _(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n}},{&quot;@plotly/point-cluster&quot;:59,&quot;array-bounds&quot;:76,&quot;color-id&quot;:129,&quot;color-normalize&quot;:131,&quot;flatten-vertex-data&quot;:252,glslify:442,&quot;is-iexplorer&quot;:454,&quot;object-assign&quot;:487,&quot;parse-rect&quot;:492,&quot;pick-by-alias&quot;:498,&quot;to-float32&quot;:599,&quot;update-diff&quot;:621}],539:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;array-bounds&quot;),o=t(&quot;raf&quot;),s=t(&quot;array-range&quot;),l=t(&quot;parse-rect&quot;),c=t(&quot;flatten-vertex-data&quot;);function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)&lt;&lt;16|(255&amp;e)&lt;&lt;8|255&amp;r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length&gt;2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length&gt;2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(&quot;number&quot;==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&amp;&amp;(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&amp;&amp;(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n&lt;e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o&lt;this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c&lt;l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:&quot;data items columns rows values dimensions samples x&quot;,snap:&quot;snap cluster&quot;,size:&quot;sizes size radius&quot;,color:&quot;colors color fill fill-color fillColor&quot;,opacity:&quot;opacity alpha transparency opaque&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,borderColor:&quot;borderColors borderColor bordercolor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range ranges databox dataBox&quot;,viewport:&quot;viewport viewBox viewbox&quot;,domain:&quot;domain domains area areas&quot;,padding:&quot;pad padding paddings pads margin margins&quot;,transpose:&quot;transpose transposed&quot;,diagonal:&quot;diagonal diag showDiagonal&quot;,upper:&quot;upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf&quot;,lower:&quot;lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower&quot;}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),color:&quot;black&quot;,marker:null,size:12,borderColor:&quot;transparent&quot;,borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&amp;&amp;(s.color=o.color),null!=o.size&amp;&amp;(s.size=o.size),null!=o.marker&amp;&amp;(s.marker=o.marker),null!=o.borderColor&amp;&amp;(s.borderColor=o.borderColor),null!=o.borderSize&amp;&amp;(s.borderSize=o.borderSize),null!=o.opacity&amp;&amp;(s.opacity=o.opacity),o.viewport&amp;&amp;(s.viewport=l(o.viewport)),null!=o.diagonal&amp;&amp;(s.diagonal=o.diagonal),null!=o.upper&amp;&amp;(s.upper=o.upper),null!=o.lower&amp;&amp;(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u&lt;s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&amp;&amp;(s.range=o.range,n=s.range&amp;&amp;&quot;number&quot;!=typeof s.range[0]),o.domain&amp;&amp;(s.domain=o.domain);var d=!1;null!=o.padding&amp;&amp;(Array.isArray(o.padding)&amp;&amp;o.padding.length===s.columns&amp;&amp;&quot;number&quot;==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var g=s.columns,m=s.count,v=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=v/g,w=y/g;s.passes=[];for(var T=0;T&lt;g;T++)for(var k=0;k&lt;g;k++)if((s.diagonal||k!==T)&amp;&amp;(s.upper||!(T&gt;k))&amp;&amp;(s.lower||!(T&lt;k))){var A=f(s.id,T,k),M=this.passes[A]||(this.passes[A]={});if(o.data&amp;&amp;(o.transpose?M.positions={x:{buffer:s.buffer,offset:k,count:m,stride:g},y:{buffer:s.buffer,offset:T,count:m,stride:g}}:M.positions={x:{buffer:s.buffer,offset:k*m,count:m},y:{buffer:s.buffer,offset:T*m,count:m}},M.bounds=h(s.bounds,T,k)),o.domain||o.viewport||o.data){var S=d?h(s.padding,T,k):s.padding;if(s.domain){var E=h(s.domain,T,k),L=E[0],C=E[1],P=E[2],I=E[3];M.viewport=[x+L*v+S[0],b+C*y+S[1],x+P*v-S[2],b+I*y-S[3]]}else M.viewport=[x+k*_+_*S[0],b+T*w+w*S[1],x+(k+1)*_-_*S[2],b+(T+1)*w-w*S[3]]}o.color&amp;&amp;(M.color=s.color),o.size&amp;&amp;(M.size=s.size),o.marker&amp;&amp;(M.marker=s.marker),o.borderSize&amp;&amp;(M.borderSize=s.borderSize),o.borderColor&amp;&amp;(M.borderColor=s.borderColor),o.opacity&amp;&amp;(M.opacity=s.opacity),o.range&amp;&amp;(M.range=n?h(s.range,T,k):s.range||M.bounds),s.passes.push(A)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i&lt;e.length;i++)if(&quot;number&quot;==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map((function(t,e){n[h+e]=c}))}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((function(t){t.buffer&amp;&amp;t.buffer.destroy&amp;&amp;t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{&quot;array-bounds&quot;:76,&quot;array-range&quot;:79,&quot;flatten-vertex-data&quot;:252,&quot;parse-rect&quot;:492,&quot;pick-by-alias&quot;:498,raf:530,&quot;regl-scatter2d&quot;:538}],540:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?e.exports=n():t.createREGL=n()}(this,(function(){function t(t,e){this.id=U++,this.type=t,this.data=e}function e(t){return&quot;[&quot;+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1&lt;e.length&amp;&amp;r===n&amp;&amp;('&quot;'===r||&quot;'&quot;===r))return['&quot;'+e.substr(1,e.length-2).replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];if(r=/\[(false|true|null|\d+|'[^']*'|&quot;[^&quot;]*&quot;)\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(&quot;.&quot;)).length)return['&quot;'+e.replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];for(e=[],n=0;n&lt;r.length;++n)e=e.concat(t(r[n]));return e}(t).join(&quot;][&quot;)+&quot;]&quot;}function r(t){return&quot;string&quot;==typeof t?t.split():t}function n(t){return&quot;string&quot;==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=&quot;undefined&quot;==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(&quot;string&quot;==typeof s?e=document.querySelector(s):&quot;object&quot;==typeof s&amp;&amp;(&quot;string&quot;==typeof s.nodeName&amp;&amp;&quot;function&quot;==typeof s.appendChild&amp;&amp;&quot;function&quot;==typeof s.getBoundingClientRect?e=s:&quot;function&quot;==typeof s.drawArrays||&quot;function&quot;==typeof s.drawElements?a=(o=s).canvas:(&quot;gl&quot;in s?o=s.gl:&quot;canvas&quot;in s?a=n(s.canvas):&quot;container&quot;in s&amp;&amp;(i=n(s.container)),&quot;attributes&quot;in s&amp;&amp;(t=s.attributes),&quot;extensions&quot;in s&amp;&amp;(l=r(s.extensions)),&quot;optionalExtensions&quot;in s&amp;&amp;(c=r(s.optionalExtensions)),&quot;onDone&quot;in s&amp;&amp;(h=s.onDone),&quot;profile&quot;in s&amp;&amp;(f=!!s.profile),&quot;pixelRatio&quot;in s&amp;&amp;(u=+s.pixelRatio))),e&amp;&amp;(&quot;canvas&quot;===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&amp;&amp;(e=(n=a.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),a.width=r*e,a.height=r*n}var i,a=document.createElement(&quot;canvas&quot;);return j(a.style,{border:0,margin:0,padding:0,top:0,left:0,width:&quot;100%&quot;,height:&quot;100%&quot;}),t.appendChild(a),t===document.body&amp;&amp;(a.style.position=&quot;absolute&quot;,j(t.style,{margin:0,padding:0})),t!==document.body&amp;&amp;&quot;function&quot;==typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(n)}))).observe(t):window.addEventListener(&quot;resize&quot;,n,!1),n(),{canvas:a,onDestroy:function(){i?i.disconnect():window.removeEventListener(&quot;resize&quot;,n),t.removeChild(a)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}void 0===t.premultipliedAlpha&amp;&amp;(t.premultipliedAlpha=!0),o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(&quot;webgl&quot;)||r(&quot;experimental-webgl&quot;)||r(&quot;webgl-experimental&quot;)}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(&quot;webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org&quot;),null)}function a(t,e){for(var r=Array(t),n=0;n&lt;t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535&lt;t)&lt;&lt;4,e|=r=(255&lt;(t&gt;&gt;&gt;=e))&lt;&lt;3,(e|=r=(15&lt;(t&gt;&gt;&gt;=r))&lt;&lt;2)|(r=(3&lt;(t&gt;&gt;&gt;=r))&lt;&lt;1)|t&gt;&gt;&gt;r&gt;&gt;1}function s(){function t(t){t:{for(var e=16;268435456&gt;=e;e*=16)if(t&lt;=e){t=e;break t}t=0}return 0&lt;(e=r[o(t)&gt;&gt;2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)&gt;&gt;2].push(t)}var r=a(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Array.isArray(t.shape)&amp;&amp;Array.isArray(t.stride)&amp;&amp;&quot;number&quot;==typeof t.offset&amp;&amp;t.shape.length===t.stride.length&amp;&amp;(Array.isArray(t.data)||W(t.data))}function c(t,e,r,n,i,a){for(var o=0;o&lt;e;++o)for(var s=t[o],l=0;l&lt;r;++l)for(var c=s[l],u=0;u&lt;n;++u)i[a++]=c[u]}function u(t){return 0|J[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r&lt;e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l&lt;r;++l)for(var c=0;c&lt;n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&amp;&amp;(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0&lt;e.length)if(Array.isArray(e[0])){i=tt(e);for(var s=n=1;s&lt;i.length;++s)n*=i[s];t.dimension=n,a(t,e=$(e,i,t.dtype),r),o?t.persistentData=e:G.freeType(e)}else&quot;number&quot;==typeof e[0]?(t.dimension=i,f(i=G.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:G.freeType(i)):W(e[0])&amp;&amp;(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=$(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:G.freeType(e))}else if(W(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,g=0,m=0;1===i.length?(p=i[0],d=1,g=c[0],m=0):2===i.length&amp;&amp;(p=i[0],d=i[1],g=c[0],m=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=G.allocType(t.dtype,p*d),e.data,p,d,g,m,s),a(t,i,r),o?t.persistentData=i:G.freeType(i)}else e instanceof ArrayBuffer&amp;&amp;(t.dtype=5121,t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e))))}function s(r){e.bufferCount--,n(r),t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&amp;&amp;(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach((function(e){t+=p[e].stats.size})),t}),{create:function(n,a,c,d){function g(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||W(e)||l(e)||e instanceof ArrayBuffer?i=e:&quot;number&quot;==typeof e?a=0|e:e&amp;&amp;(&quot;data&quot;in e&amp;&amp;(i=e.data),&quot;usage&quot;in e&amp;&amp;(n=Q[e.usage]),&quot;type&quot;in e&amp;&amp;(s=K[e.type]),&quot;dimension&quot;in e&amp;&amp;(c=0|e.dimension),&quot;length&quot;in e&amp;&amp;(a=0|e.length)),m.bind(),i?o(m,i,n,s,c,d):(a&amp;&amp;t.bufferData(m.type,a,n),m.dtype=s||5121,m.usage=n,m.dimension=c,m.byteLength=a),r.profile&amp;&amp;(m.stats.size=m.byteLength*et[m.dtype]),g}e.bufferCount++;var m=new i(a);return p[m.id]=m,c||g(n),g._reglType=&quot;buffer&quot;,g._buffer=m,g.subdata=function(e,r){var n,i=0|(r||0);if(m.bind(),W(e)||e instanceof ArrayBuffer)t.bufferSubData(m.type,i,e);else if(Array.isArray(e)){if(0&lt;e.length)if(&quot;number&quot;==typeof e[0]){var a=G.allocType(m.dtype,e.length);f(a,e),t.bufferSubData(m.type,i,a),G.freeType(a)}else(Array.isArray(e[0])||W(e[0]))&amp;&amp;(n=tt(e),a=$(e,n,m.dtype),t.bufferSubData(m.type,i,a),G.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&amp;&amp;(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?m.dtype:u(e.data),h(n=G.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(m.type,i,n),G.freeType(n)}return g},r.profile&amp;&amp;(g.stats=m.stats),g.destroy=function(){s(m)},g},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){X(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&amp;&amp;t._buffer instanceof i?t._buffer:null},restore:function(){X(p).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){var f;if(n.buffer.bind(),i?((f=u)||W(i)&amp;&amp;(!l(i)||W(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)):(t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c),f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0&gt;(i=s)&amp;&amp;(i=n.buffer.byteLength,5123===f?i&gt;&gt;=1:5125===f&amp;&amp;(i&gt;&gt;=2)),n.vertCount=i,i=o,0&gt;o&amp;&amp;(i=4,1===(o=n.buffer.dimension)&amp;&amp;(i=0),2===o&amp;&amp;(i=1),3===o&amp;&amp;(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&amp;&amp;(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(&quot;number&quot;==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||W(t)||l(t)?e=t:(&quot;data&quot;in t&amp;&amp;(e=t.data),&quot;usage&quot;in t&amp;&amp;(r=Q[t.usage]),&quot;primitive&quot;in t&amp;&amp;(n=rt[t.primitive]),&quot;count&quot;in t&amp;&amp;(i=0|t.count),&quot;type&quot;in t&amp;&amp;(h=u[t.type]),&quot;length&quot;in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&amp;&amp;5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=&quot;elements&quot;,s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._elements instanceof i?t._elements:null},clear:function(){X(s).forEach(o)}}}function g(t){for(var e=G.allocType(5123,t.length),r=0;r&lt;t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{nt[0]=t[r];var n=(a=it[0])&gt;&gt;&gt;31&lt;&lt;15,i=(a&lt;&lt;1&gt;&gt;&gt;24)-127,a=a&gt;&gt;13&amp;1023;e[r]=-24&gt;i?n:-14&gt;i?n+(a+1024&gt;&gt;-14-i):15&lt;i?n+31744:n+(i+15&lt;&lt;10)+a}return e}function m(t){return Array.isArray(t)||W(t)}function v(t){return&quot;[object &quot;+t+&quot;]&quot;}function y(t){return Array.isArray(t)&amp;&amp;(0===t.length||&quot;number&quot;==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!m(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0&lt;=dt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=g(e),G.freeType(e)):t.data=e}function T(t,e,r,n,i,a){if(t=void 0!==mt[t]?mt[t]:st[t]*gt[e],a&amp;&amp;(t*=6),i){for(n=0;1&lt;=r;)n+=t*r*r,r/=2;return n}return t*r*n}function k(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(&quot;object&quot;==typeof e&amp;&amp;e){&quot;premultiplyAlpha&quot;in e&amp;&amp;(t.premultiplyAlpha=e.premultiplyAlpha),&quot;flipY&quot;in e&amp;&amp;(t.flipY=e.flipY),&quot;alignment&quot;in e&amp;&amp;(t.unpackAlignment=e.alignment),&quot;colorSpace&quot;in e&amp;&amp;(t.colorSpace=q[e.colorSpace]),&quot;type&quot;in e&amp;&amp;(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;&quot;shape&quot;in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&amp;&amp;(i=e.shape[2],a=!0)):(&quot;radius&quot;in e&amp;&amp;(r=n=e.radius),&quot;width&quot;in e&amp;&amp;(r=e.width),&quot;height&quot;in e&amp;&amp;(n=e.height),&quot;channels&quot;in e&amp;&amp;(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,&quot;format&quot;in e&amp;&amp;(r=e.format,n=t.internalformat=Y[r],t.format=dt[n],r in H&amp;&amp;!(&quot;type&quot;in e)&amp;&amp;(t.type=H[r]),r in K&amp;&amp;(t.compressed=!0),r=!0),!a&amp;&amp;r?t.channels=st[t.format]:a&amp;&amp;!r&amp;&amp;t.channels!==ot[t.format]&amp;&amp;(t.format=t.internalformat=ot[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&amp;&amp;(u(t,e),&quot;x&quot;in e&amp;&amp;(t.xOffset=0|e.x),&quot;y&quot;in e&amp;&amp;(t.yOffset=0|e.y),_(e.data)&amp;&amp;(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(W(r))t.channels=t.channels||4,t.data=r,&quot;type&quot;in e||5121!==t.type||(t.type=0|J[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=G.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=g(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|J[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=ot[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=G.allocType(36193===t.type?5126:t.type,c*f*s),d=0,v=0;v&lt;f;++v)for(var T=0;T&lt;c;++T)for(var k=0;k&lt;s;++k)p[d++]=n[a*T+h*v+o*k+r];w(t,p)}else if(b(r)===lt||b(r)===ct||b(r)===ut)b(r)===lt||b(r)===ct?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ft)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===pt)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=m(r[0][0])?h||r[0][0].length:h||1,o=Z.shape(r),c=1,f=0;f&lt;o.length;++f)c*=o[f];c=G.allocType(36193===t.type?5126:t.type,c),Z.flatten(r,o,&quot;&quot;,c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=ot[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function v(){return gt.pop()||new h}function k(t){t.needsFree&amp;&amp;G.freeType(t.data),h.call(t),gt.push(t)}function A(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function M(t,e,r){var n=t.images[0]=v();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i&lt;n.length;++i)c(r=t.images[i]=v(),t),r.width&gt;&gt;=i,r.height&gt;&gt;=i,p(r,n[i]),t.mipmask|=1&lt;&lt;i;else c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a&lt;i.length&amp;&amp;i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,g=o.width,m=o.height;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,g,m,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,g,m,0)):t.texImage2D(s,l,p,g,m,0,p,d,u||null)}}function L(){var t=mt.pop()||new A;s.call(t);for(var e=t.mipmask=0;16&gt;e;++e)t.images[e]=null;return t}function C(t){for(var e=t.images,r=0;r&lt;e.length;++r)e[r]&amp;&amp;k(e[r]),e[r]=null;mt.push(t)}function P(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function I(t,e){&quot;min&quot;in e&amp;&amp;(t.minFilter=V[e.min],0&lt;=at.indexOf(t.minFilter)&amp;&amp;!(&quot;faces&quot;in e)&amp;&amp;(t.genMipmaps=!0)),&quot;mag&quot;in e&amp;&amp;(t.magFilter=U[e.mag]);var r=t.wrapS,n=t.wrapT;if(&quot;wrap&quot;in e){var i=e.wrap;&quot;string&quot;==typeof i?r=n=N[i]:Array.isArray(i)&amp;&amp;(r=N[i[0]],n=N[i[1]])}else&quot;wrapS&quot;in e&amp;&amp;(r=N[e.wrapS]),&quot;wrapT&quot;in e&amp;&amp;(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,&quot;anisotropic&quot;in e&amp;&amp;(t.anisotropic=e.anisotropic),&quot;mipmap&quot;in e){switch(r=!1,typeof e.mipmap){case&quot;string&quot;:t.mipmapHint=B[e.mipmap],r=t.genMipmaps=!0;break;case&quot;boolean&quot;:r=t.genMipmaps=e.mipmap;break;case&quot;object&quot;:t.genMipmaps=!1,r=!0}!r||&quot;min&quot;in e||(t.minFilter=9984)}}function O(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&amp;&amp;t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&amp;&amp;(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function z(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new P,o.profile&amp;&amp;(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=bt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function F(e){var r=e.texture,n=e.unit,i=e.target;0&lt;=n&amp;&amp;(t.activeTexture(33984+n),t.bindTexture(i,null),bt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete yt[e.id],a.textureCount--}var B={&quot;don't care&quot;:4352,&quot;dont care&quot;:4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},U={nearest:9728,linear:9729},V=j({mipmap:9987,&quot;nearest mipmap nearest&quot;:9984,&quot;linear mipmap nearest&quot;:9985,&quot;nearest mipmap linear&quot;:9986,&quot;linear mipmap linear&quot;:9987},U),q={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,&quot;rgb5 a1&quot;:32820},Y={alpha:6406,luminance:6409,&quot;luminance alpha&quot;:6410,rgb:6407,rgba:6408,rgba4:32854,&quot;rgb5 a1&quot;:32855,rgb565:36194},K={};e.ext_srgb&amp;&amp;(Y.srgb=35904,Y.srgba=35906),e.oes_texture_float&amp;&amp;(H.float32=H.float=5126),e.oes_texture_half_float&amp;&amp;(H.float16=H[&quot;half float&quot;]=36193),e.webgl_depth_texture&amp;&amp;(j(Y,{depth:6402,&quot;depth stencil&quot;:34041}),j(H,{uint16:5123,uint32:5125,&quot;depth stencil&quot;:34042})),e.webgl_compressed_texture_s3tc&amp;&amp;j(K,{&quot;rgb s3tc dxt1&quot;:33776,&quot;rgba s3tc dxt1&quot;:33777,&quot;rgba s3tc dxt3&quot;:33778,&quot;rgba s3tc dxt5&quot;:33779}),e.webgl_compressed_texture_atc&amp;&amp;j(K,{&quot;rgb atc&quot;:35986,&quot;rgba atc explicit alpha&quot;:35987,&quot;rgba atc interpolated alpha&quot;:34798}),e.webgl_compressed_texture_pvrtc&amp;&amp;j(K,{&quot;rgb pvrtc 4bppv1&quot;:35840,&quot;rgb pvrtc 2bppv1&quot;:35841,&quot;rgba pvrtc 4bppv1&quot;:35842,&quot;rgba pvrtc 2bppv1&quot;:35843}),e.webgl_compressed_texture_etc1&amp;&amp;(K[&quot;rgb etc1&quot;]=36196);var Q=Array.prototype.slice.call(t.getParameter(34467));Object.keys(K).forEach((function(t){var e=K[t];0&lt;=Q.indexOf(e)&amp;&amp;(Y[t]=e)}));var $=Object.keys(Y);r.textureFormats=$;var tt=[];Object.keys(Y).forEach((function(t){tt[Y[t]]=t}));var et=[];Object.keys(H).forEach((function(t){et[H[t]]=t}));var rt=[];Object.keys(U).forEach((function(t){rt[U[t]]=t}));var nt=[];Object.keys(V).forEach((function(t){nt[V[t]]=t}));var it=[];Object.keys(N).forEach((function(t){it[N[t]]=t}));var dt=$.reduce((function(t,r){var n=Y[r];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||e.ext_srgb&amp;&amp;(35904===n||35906===n)?t[n]=n:32855===n||0&lt;=r.indexOf(&quot;rgba&quot;)?t[n]=6408:t[n]=6407,t}),{}),gt=[],mt=[],vt=0,yt={},xt=r.maxTextureUnits,bt=Array(xt).map((function(){return null}));return j(z.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0&gt;e){for(var r=0;r&lt;xt;++r){var n=bt[r];if(n){if(0&lt;n.bindCount)continue;n.unit=-1}bt[r]=this,e=r;break}o.profile&amp;&amp;a.maxTextureUnits&lt;e+1&amp;&amp;(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0&gt;=--this.refCount&amp;&amp;F(this)}}),o.profile&amp;&amp;(a.getTotalTextureSize=function(){var t=0;return Object.keys(yt).forEach((function(e){t+=yt[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;P.call(r);var a=L();return&quot;number&quot;==typeof t?M(a,0|t,&quot;number&quot;==typeof e?0|e:0|t):t?(I(r,t),S(a,t)):M(a,1,1),r.genMipmaps&amp;&amp;(a.mipmask=(a.width&lt;&lt;1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),O(r,3553),R(),C(a),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new z(3553);return yt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width&gt;&gt;a)-e,o.height=o.height||(i.height&gt;&gt;a)-r,D(i),d(o,3553,e,r,a),R(),k(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&amp;&amp;s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l=0;i.mipmask&gt;&gt;l;++l){var c=a&gt;&gt;l,u=s&gt;&gt;l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return R(),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=&quot;texture2d&quot;,n._texture=i,o.profile&amp;&amp;(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(P.call(l),s=0;6&gt;s;++s)g[s]=L();if(&quot;number&quot;!=typeof t&amp;&amp;t){if(&quot;object&quot;==typeof t)if(e)S(g[0],t),S(g[1],e),S(g[2],r),S(g[3],n),S(g[4],i),S(g[5],a);else if(I(l,t),u(h,t),&quot;faces&quot;in t)for(t=t.faces,s=0;6&gt;s;++s)c(g[s],h),S(g[s],t[s]);else for(s=0;6&gt;s;++s)S(g[s],t)}else for(t=0|t||1,s=0;6&gt;s;++s)M(g[s],t,t);for(c(h,g[0]),h.mipmask=l.genMipmaps?(g[0].width&lt;&lt;1)-1:g[0].mipmask,h.internalformat=g[0].internalformat,f.width=g[0].width,f.height=g[0].height,D(h),s=0;6&gt;s;++s)E(g[s],34069+s);for(O(l,34067),R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6&gt;s;++s)C(g[s]);return f}var h=new z(34067);yt[h.id]=h,a.cubeCount++;var g=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width&gt;&gt;i)-r,a.height=a.height||(h.height&gt;&gt;i)-n,D(h),d(a,34069+t,r,n,i),R(),k(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6&gt;r;++r)for(var n=0;h.mipmask&gt;&gt;n;++n)t.texImage2D(34069+r,n,h.format,e&gt;&gt;n,e&gt;&gt;n,0,h.format,h.type,null);return R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=&quot;textureCube&quot;,f._texture=h,o.profile&amp;&amp;(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e&lt;xt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),bt[e]=null;X(yt).forEach(F),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null)}X(yt).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32&gt;r;++r)if(0!=(e.mipmask&amp;1&lt;&lt;r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);else for(var n=0;6&gt;n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);O(e.texInfo,e.target)}))},refresh:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null),t.activeTexture(33984+e),t.bindTexture(3553,null),t.bindTexture(34067,null)}}}}function A(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&amp;&amp;(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&amp;&amp;(t.texture&amp;&amp;t.texture._texture.decRef(),t.renderbuffer&amp;&amp;t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&amp;&amp;(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&amp;&amp;(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return&quot;object&quot;==typeof t&amp;&amp;(i=t.data,&quot;target&quot;in t&amp;&amp;(e=0|t.target)),&quot;texture2d&quot;===(t=i._reglType)||&quot;textureCube&quot;===t?r=i:&quot;renderbuffer&quot;===t&amp;&amp;(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&amp;&amp;(t.texture||t.renderbuffer)}function p(t,e,r){t&amp;&amp;(t.texture?t.texture.resize(e,r):t.renderbuffer&amp;&amp;t.renderbuffer.resize(e,r),t.width=e,t.height=r)}function d(){this.id=T++,k[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function m(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete k[e.id]}function v(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n&lt;i.length;++n)c(36064+n,i[n]);for(n=i.length;n&lt;r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.isContextLost(),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=&quot;rgba&quot;,m=&quot;uint8&quot;,y=1,x=null,w=null,T=null,k=!1;&quot;number&quot;==typeof t?(a=0|t,o=0|e||a):t?(&quot;shape&quot;in t?(a=(o=t.shape)[0],o=o[1]):(&quot;radius&quot;in t&amp;&amp;(a=o=t.radius),&quot;width&quot;in t&amp;&amp;(a=t.width),&quot;height&quot;in t&amp;&amp;(o=t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(i=t.color||t.colors,Array.isArray(i)),i||(&quot;colorCount&quot;in t&amp;&amp;(y=0|t.colorCount),&quot;colorTexture&quot;in t&amp;&amp;(p=!!t.colorTexture,d=&quot;rgba4&quot;),&quot;colorType&quot;in t&amp;&amp;(m=t.colorType,!p)&amp;&amp;(&quot;half float&quot;===m||&quot;float16&quot;===m?d=&quot;rgba16f&quot;:&quot;float&quot;!==m&amp;&amp;&quot;float32&quot;!==m||(d=&quot;rgba32f&quot;)),&quot;colorFormat&quot;in t&amp;&amp;(d=t.colorFormat,0&lt;=b.indexOf(d)?p=!0:0&lt;=_.indexOf(d)&amp;&amp;(p=!1))),(&quot;depthTexture&quot;in t||&quot;depthStencilTexture&quot;in t)&amp;&amp;(k=!(!t.depthTexture&amp;&amp;!t.depthStencilTexture)),&quot;depth&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),&quot;stencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),&quot;depthStencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depthStencil?s=c=t.depthStencil:(T=t.depthStencil,c=s=!1))):a=o=1;var A=null,M=null,S=null,E=null;if(Array.isArray(i))A=i.map(u);else if(i)A=[u(i)];else for(A=Array(y),i=0;i&lt;y;++i)A[i]=f(a,o,p,d,m);for(a=a||A[0].width,o=o||A[0].height,x?M=u(x):s&amp;&amp;!c&amp;&amp;(M=f(a,o,k,&quot;depth&quot;,&quot;uint32&quot;)),w?S=u(w):c&amp;&amp;!s&amp;&amp;(S=f(a,o,!1,&quot;stencil&quot;,&quot;uint8&quot;)),T?E=u(T):!x&amp;&amp;!w&amp;&amp;c&amp;&amp;s&amp;&amp;(E=f(a,o,k,&quot;depth stencil&quot;,&quot;depth stencil&quot;)),s=null,i=0;i&lt;A.length;++i)l(A[i]),A[i]&amp;&amp;A[i].texture&amp;&amp;(c=xt[A[i].texture._texture.format]*bt[A[i].texture._texture.type],null===s&amp;&amp;(s=c));return l(M),l(S),l(E),g(n),n.width=a,n.height=o,n.colorAttachments=A,n.depthAttachment=M,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=A.map(h),r.depth=h(M),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,v(n),r}var n=new d;return a.framebufferCount++,r(t,e),j(r,{resize:function(t,e){var i=Math.max(0|t,1),a=Math.max(0|e||i,1);if(i===n.width&amp;&amp;a===n.height)return r;for(var o=n.colorAttachments,s=0;s&lt;o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,v(n),r},_reglType:&quot;framebuffer&quot;,_framebuffer:n,destroy:function(){m(n),g(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[&quot;rgba&quot;],_=[&quot;rgba4&quot;,&quot;rgb565&quot;,&quot;rgb5 a1&quot;];e.ext_srgb&amp;&amp;_.push(&quot;srgba&quot;),e.ext_color_buffer_half_float&amp;&amp;_.push(&quot;rgba16f&quot;,&quot;rgb16f&quot;),e.webgl_color_buffer_float&amp;&amp;_.push(&quot;rgba32f&quot;);var w=[&quot;uint8&quot;];e.oes_texture_half_float&amp;&amp;w.push(&quot;half float&quot;,&quot;float16&quot;),e.oes_texture_float&amp;&amp;w.push(&quot;float&quot;,&quot;float32&quot;);var T=0,k={};return j(x,{getFramebuffer:function(t){return&quot;function&quot;==typeof t&amp;&amp;&quot;framebuffer&quot;===t._reglType&amp;&amp;(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=&quot;rgba&quot;;var l=&quot;uint8&quot;,c=1;if(&quot;number&quot;==typeof t?o=0|t:t?(&quot;shape&quot;in t?o=t.shape[0]:(&quot;radius&quot;in t&amp;&amp;(o=0|t.radius),&quot;width&quot;in t?o=0|t.width:&quot;height&quot;in t&amp;&amp;(o=0|t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(s=t.color||t.colors,Array.isArray(s)),s||(&quot;colorCount&quot;in t&amp;&amp;(c=0|t.colorCount),&quot;colorType&quot;in t&amp;&amp;(l=t.colorType),&quot;colorFormat&quot;in t&amp;&amp;(i=t.colorFormat)),&quot;depth&quot;in t&amp;&amp;(a.depth=t.depth),&quot;stencil&quot;in t&amp;&amp;(a.stencil=t.stencil),&quot;depthStencil&quot;in t&amp;&amp;(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i&lt;s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i&lt;c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i&lt;t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6&gt;i;++i){for(c=0;c&lt;t.length;++c)a.color[c].target=34069+i;0&lt;i&amp;&amp;(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return j(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),j(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t&lt;i.length;++t)i[t].resize(n);for(t=0;6&gt;t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:&quot;framebufferCube&quot;,destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){X(k).forEach(m)},restore:function(){x.cur=null,x.next=null,x.dirty=!0,X(k).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function M(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n,i,a,o){function s(){this.id=++f,this.attributes=[],this.elements=null,this.ownsElements=!1,this.offset=this.count=0,this.instances=-1,this.primitive=4;var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,h[this.id]=this,this.buffers=[]}var c=r.maxAttributes,u=Array(c);for(r=0;r&lt;c;++r)u[r]=new M;var f=0,h={},p={Record:M,scope:{},state:u,currentVAO:null,targetVAO:null,restore:e.oes_vertex_array_object?function(){e.oes_vertex_array_object&amp;&amp;X(h).forEach((function(t){t.refresh()}))}:function(){},createVAO:function(t){function e(t){var n;Array.isArray(t)?(n=t,r.elements&amp;&amp;r.ownsElements&amp;&amp;r.elements.destroy(),r.elements=null,r.ownsElements=!1,r.offset=0,r.count=0,r.instances=-1,r.primitive=4):(t.elements?(n=t.elements,r.ownsElements?(&quot;function&quot;==typeof n&amp;&amp;&quot;elements&quot;===n._reglType?r.elements.destroy():r.elements(n),r.ownsElements=!1):a.getElements(t.elements)?(r.elements=t.elements,r.ownsElements=!1):(r.elements=a.create(t.elements),r.ownsElements=!0)):(r.elements=null,r.ownsElements=!1),n=t.attributes,r.offset=0,r.count=-1,r.instances=-1,r.primitive=4,r.elements&amp;&amp;(r.count=r.elements._elements.vertCount,r.primitive=r.elements._elements.primType),&quot;offset&quot;in t&amp;&amp;(r.offset=0|t.offset),&quot;count&quot;in t&amp;&amp;(r.count=0|t.count),&quot;instances&quot;in t&amp;&amp;(r.instances=0|t.instances),&quot;primitive&quot;in t&amp;&amp;(r.primitive=rt[t.primitive])),t={};var o=r.attributes;o.length=n.length;for(var s=0;s&lt;n.length;++s){var c,u=n[s],f=o[s]=new M,h=u.data||u;if(Array.isArray(h)||W(h)||l(h))r.buffers[s]&amp;&amp;(c=r.buffers[s],W(h)&amp;&amp;c._buffer.byteLength&gt;=h.byteLength?c.subdata(h):(c.destroy(),r.buffers[s]=null)),r.buffers[s]||(c=r.buffers[s]=i.create(u,34962,!1,!0)),f.buffer=i.getBuffer(c),f.size=0|f.buffer.dimension,f.normalized=!1,f.type=f.buffer.dtype,f.offset=0,f.stride=0,f.divisor=0,f.state=1,t[s]=1;else i.getBuffer(u)?(f.buffer=i.getBuffer(u),f.size=0|f.buffer.dimension,f.normalized=!1,f.type=f.buffer.dtype,f.offset=0,f.stride=0,f.divisor=0,f.state=1):i.getBuffer(u.buffer)?(f.buffer=i.getBuffer(u.buffer),f.size=0|(+u.size||f.buffer.dimension),f.normalized=!!u.normalized||!1,f.type=&quot;type&quot;in u?K[u.type]:f.buffer.dtype,f.offset=0|(u.offset||0),f.stride=0|(u.stride||0),f.divisor=0|(u.divisor||0),f.state=1):&quot;x&quot;in u&amp;&amp;(f.x=+u.x||0,f.y=+u.y||0,f.z=+u.z||0,f.w=+u.w||0,f.state=2)}for(c=0;c&lt;r.buffers.length;++c)!t[c]&amp;&amp;r.buffers[c]&amp;&amp;(r.buffers[c].destroy(),r.buffers[c]=null);return r.refresh(),e}var r=new s;return n.vaoCount+=1,e.destroy=function(){for(var t=0;t&lt;r.buffers.length;++t)r.buffers[t]&amp;&amp;r.buffers[t].destroy();r.buffers.length=0,r.ownsElements&amp;&amp;(r.elements.destroy(),r.elements=null,r.ownsElements=!1),r.destroy()},e._vao=r,e._reglType=&quot;vao&quot;,e(t)},getVAO:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._vao?t._vao:null},destroyBuffer:function(e){for(var r=0;r&lt;u.length;++r){var n=u[r];n.buffer===e&amp;&amp;(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:e.oes_vertex_array_object?function(t){if(t!==p.currentVAO){var r=e.oes_vertex_array_object;t?r.bindVertexArrayOES(t.vao):r.bindVertexArrayOES(null),p.currentVAO=t}}:function(r){if(r!==p.currentVAO){if(r)r.bindAttrs();else{for(var n=e.angle_instanced_arrays,i=0;i&lt;u.length;++i){var a=u[i];a.buffer?(t.enableVertexAttribArray(i),a.buffer.bind(),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offfset),n&amp;&amp;a.divisor&amp;&amp;n.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}o.elements?t.bindBuffer(34963,o.elements.buffer.buffer):t.bindBuffer(34963,null)}p.currentVAO=r}},clear:e.oes_vertex_array_object?function(){X(h).forEach((function(t){t.destroy()}))}:function(){}};return s.prototype.bindAttrs=function(){for(var r=e.angle_instanced_arrays,n=this.attributes,i=0;i&lt;n.length;++i){var o=n[i];o.buffer?(t.enableVertexAttribArray(i),t.bindBuffer(34962,o.buffer.buffer),t.vertexAttribPointer(i,o.size,o.type,o.normalized,o.stride,o.offset),r&amp;&amp;o.divisor&amp;&amp;r.vertexAttribDivisorANGLE(i,o.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,o.x,o.y,o.z,o.w))}for(r=n.length;r&lt;c;++r)t.disableVertexAttribArray(r);(r=a.getElements(this.elements))?t.bindBuffer(34963,r.buffer.buffer):t.bindBuffer(34963,null)},s.prototype.refresh=function(){var t=e.oes_vertex_array_object;t&amp;&amp;(t.bindVertexArrayOES(this.vao),this.bindAttrs(),p.currentVAO=null,t.bindVertexArrayOES(null))},s.prototype.destroy=function(){if(this.vao){var t=e.oes_vertex_array_object;this===p.currentVAO&amp;&amp;(p.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&amp;&amp;(this.elements.destroy(),this.elements=null,this.ownsElements=!1),h[this.id]&amp;&amp;(delete h[this.id],--n.vaoCount)},p}function E(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r&lt;t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,n.profile&amp;&amp;(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s,l){var c;c=o(35632,r.fragId);var u=o(35633,r.vertId);if(s=r.program=t.createProgram(),t.attachShader(s,c),t.attachShader(s,u),l)for(c=0;c&lt;l.length;++c)u=l[c],t.bindAttribLocation(s,u[0],u[1]);t.linkProgram(s),u=t.getProgramParameter(s,35718),n.profile&amp;&amp;(r.stats.uniformsCount=u);var f=r.uniforms;for(c=0;c&lt;u;++c)if(l=t.getActiveUniform(s,c)){if(1&lt;l.size)for(var h=0;h&lt;l.size;++h){var p=l.name.replace(&quot;[0]&quot;,&quot;[&quot;+h+&quot;]&quot;);a(f,new i(p,e.id(p),t.getUniformLocation(s,p),l))}h=l.name,1&lt;l.size&amp;&amp;(h=h.replace(&quot;[0]&quot;,&quot;&quot;)),a(f,new i(h,e.id(h),t.getUniformLocation(s,h),l))}for(u=t.getProgramParameter(s,35721),n.profile&amp;&amp;(r.stats.attributesCount=u),r=r.attributes,c=0;c&lt;u;++c)(l=t.getActiveAttrib(s,c))&amp;&amp;a(r,new i(l.name,e.id(l.name),t.getAttribLocation(s,l.name),l))}var c={},u={},f={},h=[],p=0;return n.profile&amp;&amp;(r.getMaxUniformsCount=function(){var t=0;return h.forEach((function(e){e.stats.uniformsCount&gt;t&amp;&amp;(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount&gt;t&amp;&amp;(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);X(c).forEach(e),c={},X(u).forEach(e),u={},h.forEach((function(e){t.deleteProgram(e.program)})),h.length=0,f={},r.shaderCount=0},program:function(e,n,i,a){var o=f[n];o||(o=f[n]={});var p=o[e];if(p&amp;&amp;(p.refCount++,!a))return p;var d=new s(n,e);return r.shaderCount++,l(d,i,a),p||(o[e]=d),h.push(d),j(d,{destroy:function(){if(d.refCount--,0&gt;=d.refCount){t.deleteProgram(d.program);var e=h.indexOf(d);h.splice(e,1),r.shaderCount--}0&gt;=o[d.vertId].refCount&amp;&amp;(t.deleteShader(u[d.vertId]),delete u[d.vertId],delete f[d.fragId][d.vertId]),Object.keys(f[d.fragId]).length||(t.deleteShader(c[d.fragId]),delete c[d.fragId],delete f[d.fragId])}})},restore:function(){c={},u={};for(var t=0;t&lt;h.length;++t)l(h[t],null,h[t].attributes.map((function(t){return[t.location,t.name]})))},shader:o,frag:-1,vert:-1}}function L(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return W(i)?u=i:i&amp;&amp;(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&amp;&amp;(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&amp;&amp;&quot;framebuffer&quot;in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},(function(){r=s(t)})),r}(t):s(t)}}function C(t){return Array.prototype.slice.call(t)}function P(t){return C(t).join(&quot;&quot;)}function I(t){return Array.isArray(t)||W(t)||l(t)}function O(t){return t.sort((function(t,e){return&quot;viewport&quot;===t?-1:&quot;viewport&quot;===e?1:t&lt;e?-1:1}))}function z(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function D(t){return t&amp;&amp;!(t.thisDep||t.contextDep||t.propDep)}function R(t){return new z(!1,!1,!1,t)}function F(t,e){var r=t.type;if(0===r)return new z(!0,1&lt;=(r=t.data.length),2&lt;=r,e);if(4===r)return new z((r=t.data).thisDep,r.contextDep,r.propDep,e);if(5===r)return new z(!1,!1,!1,e);if(6===r){for(var n=r=!1,i=!1,a=0;a&lt;t.data.length;++a){var o=t.data[a];1===o.type?i=!0:2===o.type?n=!0:3===o.type?r=!0:0===o.type?(r=!0,1&lt;=(o=o.data)&amp;&amp;(n=!0),2&lt;=o&amp;&amp;(i=!0)):4===o.type&amp;&amp;(r=r||o.data.thisDep,n=n||o.data.contextDep,i=i||o.data.propDep)}return new z(r,n,i,e)}return new z(3===r,2===r,1===r,e)}function B(t,e,r,n,i,o,s,l,c,u,f,h,p,d,g){function v(t){return t.replace(&quot;.&quot;,&quot;_&quot;)}function y(t,e,r){var n=v(t);ot.push(t),at[n]=it[n]=!!r,st[n]=e}function x(t,e,r){var n=v(t);ot.push(t),Array.isArray(r)?(it[n]=r.slice(),at[n]=r.slice()):it[n]=at[n]=r,lt[n]=e}function b(){var t=function(){function t(){var t=[],e=[];return j((function(){t.push.apply(t,C(arguments))}),{def:function(){var n=&quot;v&quot;+r++;return e.push(n),0&lt;arguments.length&amp;&amp;(t.push(n,&quot;=&quot;),t.push.apply(t,C(arguments)),t.push(&quot;;&quot;)),n},toString:function(){return P([0&lt;e.length?&quot;var &quot;+e.join(&quot;,&quot;)+&quot;;&quot;:&quot;&quot;,P(t)])}})}function e(){function e(t,e){n(t,e,&quot;=&quot;,r.def(t,e),&quot;;&quot;)}var r=t(),n=t(),i=r.toString,a=n.toString;return j((function(){r.apply(r,C(arguments))}),{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,&quot;=&quot;,i,&quot;;&quot;)},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e&lt;i.length;++e)if(i[e]===t)return n[e];return e=&quot;g&quot;+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=&quot;a&quot;+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a&lt;r;++a)n();var s=(a=e()).toString;return o[t]=j(a,{arg:n,toString:function(){return P([&quot;function(&quot;,i.join(),&quot;){&quot;,s(),&quot;}&quot;])}})},scope:e,cond:function(){var t=P(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return j(r,{then:function(){return r.apply(r,C(arguments)),this},else:function(){return n.apply(n,C(arguments)),this},toString:function(){var e=a();return e&amp;&amp;(e=&quot;else{&quot;+e+&quot;}&quot;),P([&quot;if(&quot;,t,&quot;){&quot;,i(),&quot;}&quot;,e])}})},compile:function(){var t=['&quot;use strict&quot;;',a,&quot;return {&quot;];Object.keys(o).forEach((function(e){t.push('&quot;',e,'&quot;:',o[e].toString(),&quot;,&quot;)})),t.push(&quot;}&quot;);var e=P(t).replace(/;/g,&quot;;\n&quot;).replace(/}/g,&quot;}\n&quot;).replace(/{/g,&quot;{\n&quot;);return Function.apply(null,n.concat(e)).apply(null,i)}}}(),r=t.link,n=t.global;t.id=ft++,t.batchId=&quot;0&quot;;var i=r(ct),a=t.shared={props:&quot;a0&quot;};Object.keys(ct).forEach((function(t){a[t]=n.def(i,&quot;.&quot;,t)}));var o=t.next={},s=t.current={};Object.keys(lt).forEach((function(t){Array.isArray(it[t])&amp;&amp;(o[t]=n.def(a.next,&quot;.&quot;,t),s[t]=n.def(a.current,&quot;.&quot;,t))}));var l=t.constants={};Object.keys(ut).forEach((function(t){l[t]=n.def(JSON.stringify(ut[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=[&quot;this&quot;,a.context,a.props,t.batchId];return e.def(r(n.data),&quot;.call(&quot;,i.slice(0,Math.max(n.data.length+1,4)),&quot;)&quot;);case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(&quot;this&quot;,n.data);case 4:return n.data.append(t,e),n.data.ref;case 5:return n.data.toString();case 6:return n.data.map((function(r){return t.invoke(e,r)}))}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Q),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(&quot;framebuffer&quot;in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),R((function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;.width&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;.height&quot;),r}))):R((function(t,e){var r=t.shared;return e.set(r.framebuffer,&quot;.next&quot;,&quot;null&quot;),r=r.context,e.set(r,&quot;.framebufferWidth&quot;,r+&quot;.drawingBufferWidth&quot;),e.set(r,&quot;.framebufferHeight&quot;,r+&quot;.drawingBufferHeight&quot;),&quot;null&quot;}))}if(&quot;framebuffer&quot;in n){var a=n.framebuffer;return F(a,(function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,&quot;.getFramebuffer(&quot;,r,&quot;)&quot;);return e.set(i,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;?&quot;+r+&quot;.width:&quot;+n+&quot;.drawingBufferWidth&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;?&quot;+r+&quot;.height:&quot;+n+&quot;.drawingBufferHeight&quot;),r}))}return null}function w(t,r,n){function i(t){if(t in a){var r=e.id(a[t]);return(t=R((function(){return r}))).id=r,t}if(t in o){var n=o[t];return F(n,(function(t,e){var r=t.invoke(e,n);return e.def(t.shared.strings,&quot;.id(&quot;,r,&quot;)&quot;)}))}return null}var a=t.static,o=t.dynamic,s=i(&quot;frag&quot;),l=i(&quot;vert&quot;),c=null;return D(s)&amp;&amp;D(l)?(c=f.program(l.id,s.id,null,n),t=R((function(t,e){return t.link(c)}))):t=new z(s&amp;&amp;s.thisDep||l&amp;&amp;l.thisDep,s&amp;&amp;s.contextDep||l&amp;&amp;l.contextDep,s&amp;&amp;s.propDep||l&amp;&amp;l.propDep,(function(t,e){var r,n,i=t.shared.shader;return r=s?s.append(t,e):e.def(i,&quot;.&quot;,&quot;frag&quot;),n=l?l.append(t,e):e.def(i,&quot;.&quot;,&quot;vert&quot;),e.def(i+&quot;.program(&quot;+n+&quot;,&quot;+r+&quot;)&quot;)})),{frag:s,vert:l,progVar:t,program:c}}function T(t,e){function r(t,e){if(t in n){var r=0|n[t];return e?a.offset=r:a.instances=r,R((function(t,n){return e&amp;&amp;(t.OFFSET=r),r}))}if(t in i){var o=i[t];return F(o,(function(t,r){var n=t.invoke(r,o);return e&amp;&amp;(t.OFFSET=n),n}))}if(e){if(c)return R((function(t,e){return t.OFFSET=0}));if(s)return new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.vao+&quot;.currentVAO.offset:0&quot;)}))}else if(s)return new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.vao+&quot;.currentVAO.instances:-1&quot;)}));return null}var n=t.static,i=t.dynamic,a={},s=!1,l=function(){if(&quot;vao&quot;in n){var t=n.vao;return null!==t&amp;&amp;null===u.getVAO(t)&amp;&amp;(t=u.createVAO(t)),s=!0,a.vao=t,R((function(e){var r=u.getVAO(t);return r?e.link(r):&quot;null&quot;}))}if(&quot;vao&quot;in i){s=!0;var e=i.vao;return F(e,(function(t,r){var n=t.invoke(r,e);return r.def(t.shared.vao+&quot;.getVAO(&quot;+n+&quot;)&quot;)}))}return null}(),c=!1,f=function(){if(&quot;elements&quot;in n){var t=n.elements;if(a.elements=t,I(t)){var e=a.elements=o.create(t,!0);t=o.getElements(e);c=!0}else t&amp;&amp;(t=o.getElements(t),c=!0);return(e=R((function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null}))).value=t,e}if(&quot;elements&quot;in i){c=!0;var r=i.elements;return F(r,(function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(&quot;null&quot;);n=e.def(n,&quot;(&quot;,a,&quot;)&quot;),a=t.cond(n).then(o,&quot;=&quot;,i,&quot;.createStream(&quot;,a,&quot;);&quot;).else(o,&quot;=&quot;,i,&quot;.getElements(&quot;,a,&quot;);&quot;);return e.entry(a),e.exit(t.cond(n).then(i,&quot;.destroyStream(&quot;,o,&quot;);&quot;)),t.ELEMENTS=o}))}return s?new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.elements+&quot;.getElements(&quot;+t.shared.vao+&quot;.currentVAO.elements):null&quot;)})):null}(),h=r(&quot;offset&quot;,!0),p=function(){if(&quot;primitive&quot;in n){var t=n.primitive;return a.primitive=t,R((function(e,r){return rt[t]}))}if(&quot;primitive&quot;in i){var e=i.primitive;return F(e,(function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,&quot;[&quot;,i,&quot;]&quot;)}))}return c?D(f)?f.value?R((function(t,e){return e.def(t.ELEMENTS,&quot;.primType&quot;)})):R((function(){return 4})):new z(f.thisDep,f.contextDep,f.propDep,(function(t,e){var r=t.ELEMENTS;return e.def(r,&quot;?&quot;,r,&quot;.primType:&quot;,4)})):s?new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.vao+&quot;.currentVAO.primitive:4&quot;)})):null}(),d=function(){if(&quot;count&quot;in n){var t=0|n.count;return a.count=t,R((function(){return t}))}if(&quot;count&quot;in i){var e=i.count;return F(e,(function(t,r){return t.invoke(r,e)}))}return c?D(f)?f?h?new z(h.thisDep,h.contextDep,h.propDep,(function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount-&quot;,t.OFFSET)})):R((function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount&quot;)})):R((function(){return-1})):new z(f.thisDep||h.thisDep,f.contextDep||h.contextDep,f.propDep||h.propDep,(function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,&quot;?&quot;,r,&quot;.vertCount-&quot;,t.OFFSET,&quot;:-1&quot;):e.def(r,&quot;?&quot;,r,&quot;.vertCount:-1&quot;)})):s?new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao,&quot;.currentVAO?&quot;,t.shared.vao,&quot;.currentVAO.count:-1&quot;)})):null}(),g=r(&quot;instances&quot;,!1);return{elements:f,primitive:p,count:d,instances:g,offset:h,vao:l,vaoActive:s,elementsActive:c,static:a}}function k(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach((function(t){var r=n[t],a=e.id(t),s=new Q;if(I(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(&quot;constant&quot;in r){var l=r.constant;s.buffer=&quot;null&quot;,s.state=2,&quot;number&quot;==typeof l?s.x=l:_t.forEach((function(t,e){e&lt;l.length&amp;&amp;(s[t]=l[e])}))}else{var c=I(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;&quot;type&quot;in r&amp;&amp;(d=K[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=R((function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach((function(t){n[t]=s[t]})),s.buffer&amp;&amp;(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+&quot;.dtype&quot;),r[a]=n}))})),Object.keys(a).forEach((function(t){var e=a[t];o[t]=F(e,(function(t,r){function n(t){r(l[t],&quot;=&quot;,i,&quot;.&quot;,t,&quot;|0;&quot;)}var i=t.invoke(r,e),a=t.shared,o=t.constants,s=a.isBufferArgs,l=(a=a.buffer,{isStream:r.def(!1)}),c=new Q;c.state=1,Object.keys(c).forEach((function(t){l[t]=r.def(&quot;&quot;+c[t])}));var u=l.buffer,f=l.type;return r(&quot;if(&quot;,s,&quot;(&quot;,i,&quot;)){&quot;,l.isStream,&quot;=true;&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;);&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;);&quot;,&quot;if(&quot;,u,&quot;){&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,'}else if(&quot;constant&quot; in ',i,&quot;){&quot;,l.state,&quot;=&quot;,2,&quot;;&quot;,&quot;if(typeof &quot;+i+'.constant === &quot;number&quot;){',l[_t[0]],&quot;=&quot;,i,&quot;.constant;&quot;,_t.slice(1).map((function(t){return l[t]})).join(&quot;=&quot;),&quot;=0;&quot;,&quot;}else{&quot;,_t.map((function(t,e){return l[t]+&quot;=&quot;+i+&quot;.constant.length&gt;&quot;+e+&quot;?&quot;+i+&quot;.constant[&quot;+e+&quot;]:0;&quot;})).join(&quot;&quot;),&quot;}}else{&quot;,&quot;if(&quot;,s,&quot;(&quot;,i,&quot;.buffer)){&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;.buffer);&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;.buffer);&quot;,&quot;}&quot;,f,'=&quot;type&quot; in ',i,&quot;?&quot;,o.glTypes,&quot;[&quot;,i,&quot;.type]:&quot;,u,&quot;.dtype;&quot;,l.normalized,&quot;=!!&quot;,i,&quot;.normalized;&quot;),n(&quot;size&quot;),n(&quot;offset&quot;),n(&quot;stride&quot;),n(&quot;divisor&quot;),r(&quot;}}&quot;),r.exit(&quot;if(&quot;,l.isStream,&quot;){&quot;,a,&quot;.destroyStream(&quot;,u,&quot;);&quot;,&quot;}&quot;),l}))})),o}function A(t,e,n,i,o){function s(t){var e=c[t];e&amp;&amp;(h[t]=e)}var l=function(t,e){if(&quot;string&quot;==typeof(r=t.static).frag&amp;&amp;&quot;string&quot;==typeof r.vert){if(0&lt;Object.keys(e.dynamic).length)return null;var r=e.static,n=Object.keys(r);if(0&lt;n.length&amp;&amp;&quot;number&quot;==typeof r[n[0]]){for(var i=[],a=0;a&lt;n.length;++a)i.push([0|r[n[a]],n[a]]);return i}}return null}(t,e),c=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return&quot;width&quot;in r?n=0|r.width:t=!1,&quot;height&quot;in r?o=0|r.height:t=!1,new z(!t&amp;&amp;e&amp;&amp;e.thisDep,!t&amp;&amp;e&amp;&amp;e.contextDep,!t&amp;&amp;e&amp;&amp;e.propDep,(function(t,e){var i=t.shared.context,a=n;&quot;width&quot;in r||(a=e.def(i,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,s));var c=o;return&quot;height&quot;in r||(c=e.def(i,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,l)),[s,l,a,c]}))}if(t in a){var c=a[t];return t=F(c,(function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,&quot;.x|0&quot;),a=e.def(r,&quot;.y|0&quot;);return[i,a,e.def('&quot;width&quot; in ',r,&quot;?&quot;,r,&quot;.width|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,i,&quot;)&quot;),r=e.def('&quot;height&quot; in ',r,&quot;?&quot;,r,&quot;.height|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,a,&quot;)&quot;)]})),e&amp;&amp;(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new z(e.thisDep,e.contextDep,e.propDep,(function(t,e){var r=t.shared.context;return[0,0,e.def(r,&quot;.&quot;,&quot;framebufferWidth&quot;),e.def(r,&quot;.&quot;,&quot;framebufferHeight&quot;)]})):null}var i=t.static,a=t.dynamic;if(t=n(&quot;viewport&quot;)){var o=t;t=new z(t.thisDep,t.contextDep,t.propDep,(function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,&quot;.viewportWidth&quot;,r[2]),e.set(n,&quot;.viewportHeight&quot;,r[3]),r}))}return{viewport:t,scissor_box:n(&quot;scissor.box&quot;)}}(t,d=_(t)),f=T(t),h=function(t,e){var r=t.static,n=t.dynamic,i={};return ot.forEach((function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=R((function(){return s}))}else if(t in n){var l=n[t];i[o]=F(l,(function(t,e){return a(t,e,t.invoke(e,l))}))}}var o=v(t);switch(t){case&quot;cull.enable&quot;:case&quot;blend.enable&quot;:case&quot;dither&quot;:case&quot;stencil.enable&quot;:case&quot;depth.enable&quot;:case&quot;scissor.enable&quot;:case&quot;polygonOffset.enable&quot;:case&quot;sample.alpha&quot;:case&quot;sample.enable&quot;:case&quot;depth.mask&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;depth.func&quot;:return e((function(t){return kt[t]}),(function(t,e,r){return e.def(t.constants.compareFuncs,&quot;[&quot;,r,&quot;]&quot;)}));case&quot;depth.range&quot;:return e((function(t){return t}),(function(t,e,r){return[e.def(&quot;+&quot;,r,&quot;[0]&quot;),e=e.def(&quot;+&quot;,r,&quot;[1]&quot;)]}));case&quot;blend.func&quot;:return e((function(t){return[Tt[&quot;srcRGB&quot;in t?t.srcRGB:t.src],Tt[&quot;dstRGB&quot;in t?t.dstRGB:t.dst],Tt[&quot;srcAlpha&quot;in t?t.srcAlpha:t.src],Tt[&quot;dstAlpha&quot;in t?t.dstAlpha:t.dst]]}),(function(t,e,r){function n(t,n){return e.def('&quot;',t,n,'&quot; in ',r,&quot;?&quot;,r,&quot;.&quot;,t,n,&quot;:&quot;,r,&quot;.&quot;,t)}t=t.constants.blendFuncs;var i=n(&quot;src&quot;,&quot;RGB&quot;),a=n(&quot;dst&quot;,&quot;RGB&quot;),o=(i=e.def(t,&quot;[&quot;,i,&quot;]&quot;),e.def(t,&quot;[&quot;,n(&quot;src&quot;,&quot;Alpha&quot;),&quot;]&quot;));return[i,a=e.def(t,&quot;[&quot;,a,&quot;]&quot;),o,t=e.def(t,&quot;[&quot;,n(&quot;dst&quot;,&quot;Alpha&quot;),&quot;]&quot;)]}));case&quot;blend.equation&quot;:return e((function(t){return&quot;string&quot;==typeof t?[$[t],$[t]]:&quot;object&quot;==typeof t?[$[t.rgb],$[t.alpha]]:void 0}),(function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(&quot;typeof &quot;,r,'===&quot;string&quot;')).then(i,&quot;=&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;];&quot;),t.else(i,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.rgb];&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.alpha];&quot;),e(t),[i,a]}));case&quot;blend.color&quot;:return e((function(t){return a(4,(function(e){return+t[e]}))}),(function(t,e,r){return a(4,(function(t){return e.def(&quot;+&quot;,r,&quot;[&quot;,t,&quot;]&quot;)}))}));case&quot;stencil.mask&quot;:return e((function(t){return 0|t}),(function(t,e,r){return e.def(r,&quot;|0&quot;)}));case&quot;stencil.func&quot;:return e((function(t){return[kt[t.cmp||&quot;keep&quot;],t.ref||0,&quot;mask&quot;in t?t.mask:-1]}),(function(t,e,r){return[t=e.def('&quot;cmp&quot; in ',r,&quot;?&quot;,t.constants.compareFuncs,&quot;[&quot;,r,&quot;.cmp]&quot;,&quot;:&quot;,7680),e.def(r,&quot;.ref|0&quot;),e=e.def('&quot;mask&quot; in ',r,&quot;?&quot;,r,&quot;.mask|0:-1&quot;)]}));case&quot;stencil.opFront&quot;:case&quot;stencil.opBack&quot;:return e((function(e){return[&quot;stencil.opBack&quot;===t?1029:1028,At[e.fail||&quot;keep&quot;],At[e.zfail||&quot;keep&quot;],At[e.zpass||&quot;keep&quot;]]}),(function(e,r,n){function i(t){return r.def('&quot;',t,'&quot; in ',n,&quot;?&quot;,a,&quot;[&quot;,n,&quot;.&quot;,t,&quot;]:&quot;,7680)}var a=e.constants.stencilOps;return[&quot;stencil.opBack&quot;===t?1029:1028,i(&quot;fail&quot;),i(&quot;zfail&quot;),i(&quot;zpass&quot;)]}));case&quot;polygonOffset.offset&quot;:return e((function(t){return[0|t.factor,0|t.units]}),(function(t,e,r){return[e.def(r,&quot;.factor|0&quot;),e=e.def(r,&quot;.units|0&quot;)]}));case&quot;cull.face&quot;:return e((function(t){var e=0;return&quot;front&quot;===t?e=1028:&quot;back&quot;===t&amp;&amp;(e=1029),e}),(function(t,e,r){return e.def(r,'===&quot;front&quot;?',1028,&quot;:&quot;,1029)}));case&quot;lineWidth&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;frontFace&quot;:return e((function(t){return Mt[t]}),(function(t,e,r){return e.def(r+'===&quot;cw&quot;?2304:2305')}));case&quot;colorMask&quot;:return e((function(t){return t.map((function(t){return!!t}))}),(function(t,e,r){return a(4,(function(t){return&quot;!!&quot;+r+&quot;[&quot;+t+&quot;]&quot;}))}));case&quot;sample.coverage&quot;:return e((function(t){return[&quot;value&quot;in t?t.value:1,!!t.invert]}),(function(t,e,r){return[e.def('&quot;value&quot; in ',r,&quot;?+&quot;,r,&quot;.value:1&quot;),e=e.def(&quot;!!&quot;,r,&quot;.invert&quot;)]}))}})),i}(t),p=w(t,0,l);s(&quot;viewport&quot;),s(v(&quot;scissor.box&quot;));var d,g=0&lt;Object.keys(h).length;if((d={framebuffer:d,draw:f,shader:p,state:h,dirty:g,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}}).profile=function(t){var e,r=t.static;if(t=t.dynamic,&quot;profile&quot;in r){var n=!!r.profile;(e=R((function(t,e){return n}))).enable=n}else if(&quot;profile&quot;in t){var i=t.profile;e=F(i,(function(t,e){return t.invoke(e,i)}))}return e}(t),d.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach((function(t){var e,n=r[t];if(&quot;number&quot;==typeof n||&quot;boolean&quot;==typeof n)e=R((function(){return n}));else if(&quot;function&quot;==typeof n){var o=n._reglType;&quot;texture2d&quot;===o||&quot;textureCube&quot;===o?e=R((function(t){return t.link(n)})):&quot;framebuffer&quot;!==o&amp;&amp;&quot;framebufferCube&quot;!==o||(e=R((function(t){return t.link(n.color[0])})))}else m(n)&amp;&amp;(e=R((function(t){return t.global.def(&quot;[&quot;,a(n.length,(function(t){return n[t]})),&quot;]&quot;)})));e.value=n,i[t]=e})),Object.keys(n).forEach((function(t){var e=n[t];i[t]=F(e,(function(t,r){return t.invoke(r,e)}))})),i}(n),d.drawVAO=d.scopeVAO=f.vao,!d.drawVAO&amp;&amp;p.program&amp;&amp;!l&amp;&amp;r.angle_instanced_arrays&amp;&amp;f.static.elements){var y=!0;if(t=p.program.attributes.map((function(t){return t=e.static[t],y=y&amp;&amp;!!t,t})),y&amp;&amp;0&lt;t.length){var x=u.getVAO(u.createVAO({attributes:t,elements:f.static.elements}));d.drawVAO=new z(null,null,null,(function(t,e){return t.link(x)})),d.useVAO=!0}}return l?d.useVAO=!0:d.attributes=k(e),d.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=R((function(t,e){return&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?&quot;&quot;+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=F(e,(function(t,r){return t.invoke(r,e)}))})),n}(i),d}function M(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach((function(a){e.save(n,&quot;.&quot;+a);var o=r[a].append(t,e);Array.isArray(o)?i(n,&quot;.&quot;,a,&quot;=[&quot;,o.join(),&quot;];&quot;):i(n,&quot;.&quot;,a,&quot;=&quot;,o,&quot;;&quot;)})),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;et&amp;&amp;(i=e.def(s.extensions,&quot;.webgl_draw_buffers&quot;));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,&quot;.next&quot;),n||e(&quot;if(&quot;,t,&quot;!==&quot;,o,&quot;.cur){&quot;),e(&quot;if(&quot;,t,&quot;){&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,&quot;,t,&quot;.framebuffer);&quot;),et&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,s,&quot;[&quot;,t,&quot;.colorAttachments.length]);&quot;),e(&quot;}else{&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,null);&quot;),et&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,l,&quot;);&quot;),e(&quot;}&quot;,o,&quot;.cur=&quot;,t,&quot;;&quot;),n||e(&quot;}&quot;)}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,&quot;.dirty&quot;);ot.forEach((function(e){var n,f;if(!((e=v(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(it[e].length,(function(t){return u.def(n,&quot;[&quot;,t,&quot;]&quot;)}));u(t.cond(h.map((function(t,e){return t+&quot;!==&quot;+f+&quot;[&quot;+e+&quot;]&quot;})).join(&quot;||&quot;)).then(i,&quot;.&quot;,lt[e],&quot;(&quot;,h,&quot;);&quot;,h.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;))}else n=u.def(c,&quot;.&quot;,e),h=t.cond(n,&quot;!==&quot;,l,&quot;.&quot;,e),u(h),e in st?h(t.cond(n).then(i,&quot;.enable(&quot;,st[e],&quot;);&quot;).else(i,&quot;.disable(&quot;,st[e],&quot;);&quot;),l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;):h(i,&quot;.&quot;,lt[e],&quot;(&quot;,n,&quot;);&quot;,l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;)})),0===Object.keys(r.state).length&amp;&amp;u(l,&quot;.dirty=false;&quot;),e(u)}function L(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;O(Object.keys(r)).forEach((function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(st[i]){var u=st[i];D(l)?e(s,c?&quot;.enable(&quot;:&quot;.disable(&quot;,u,&quot;);&quot;):e(t.cond(c).then(s,&quot;.enable(&quot;,u,&quot;);&quot;).else(s,&quot;.disable(&quot;,u,&quot;);&quot;)),e(o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}else if(m(c)){var f=a[i];e(s,&quot;.&quot;,lt[i],&quot;(&quot;,c,&quot;);&quot;,c.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;)}else e(s,&quot;.&quot;,lt[i],&quot;(&quot;,c,&quot;);&quot;,o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}}))}function B(t,e){tt&amp;&amp;(t.instancing=e.def(t.shared.extensions,&quot;.angle_instanced_arrays&quot;))}function N(t,e,r,n,i){function a(){return&quot;undefined&quot;==typeof performance?&quot;Date.now()&quot;:&quot;performance.now()&quot;}function o(t){t(c=e.def(),&quot;=&quot;,a(),&quot;;&quot;),&quot;string&quot;==typeof i?t(h,&quot;.count+=&quot;,i,&quot;;&quot;):t(h,&quot;.count++;&quot;),d&amp;&amp;(n?t(u=e.def(),&quot;=&quot;,g,&quot;.getNumPendingQueries();&quot;):t(g,&quot;.beginQuery(&quot;,h,&quot;);&quot;))}function s(t){t(h,&quot;.cpuTime+=&quot;,a(),&quot;-&quot;,c,&quot;;&quot;),d&amp;&amp;(n?t(g,&quot;.pushScopeStats(&quot;,u,&quot;,&quot;,g,&quot;.getNumPendingQueries(),&quot;,h,&quot;);&quot;):t(g,&quot;.endQuery();&quot;))}function l(t){var r=e.def(p,&quot;.profile&quot;);e(p,&quot;.profile=&quot;,t,&quot;;&quot;),e.exit(p,&quot;.profile=&quot;,r,&quot;;&quot;)}var c,u,f=t.shared,h=t.stats,p=f.current,g=f.timer;if(r=r.profile){if(D(r))return void(r.enable?(o(e),s(e.exit),l(&quot;true&quot;)):l(&quot;false&quot;));l(r=r.append(t,e))}else r=e.def(p,&quot;.profile&quot;);o(f=t.block()),e(&quot;if(&quot;,r,&quot;){&quot;,f,&quot;}&quot;),s(t=t.block()),e.exit(&quot;if(&quot;,r,&quot;){&quot;,t,&quot;}&quot;)}function U(t,e,r,n,i){function a(r,n,i){function a(){e(&quot;if(!&quot;,u,&quot;.buffer){&quot;,l,&quot;.enableVertexAttribArray(&quot;,c,&quot;);}&quot;);var r,a=i.type;r=i.size?e.def(i.size,&quot;||&quot;,n):n,e(&quot;if(&quot;,u,&quot;.type!==&quot;,a,&quot;||&quot;,u,&quot;.size!==&quot;,r,&quot;||&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;!==&quot;+i[t]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,f,&quot;.buffer);&quot;,l,&quot;.vertexAttribPointer(&quot;,[c,r,a,i.normalized,i.stride,i.offset],&quot;);&quot;,u,&quot;.type=&quot;,a,&quot;;&quot;,u,&quot;.size=&quot;,r,&quot;;&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;=&quot;+i[t]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;),tt&amp;&amp;(a=i.divisor,e(&quot;if(&quot;,u,&quot;.divisor!==&quot;,a,&quot;){&quot;,t.instancing,&quot;.vertexAttribDivisorANGLE(&quot;,[c,a],&quot;);&quot;,u,&quot;.divisor=&quot;,a,&quot;;}&quot;))}function s(){e(&quot;if(&quot;,u,&quot;.buffer){&quot;,l,&quot;.disableVertexAttribArray(&quot;,c,&quot;);&quot;,u,&quot;.buffer=null;&quot;,&quot;}if(&quot;,_t.map((function(t,e){return u+&quot;.&quot;+t+&quot;!==&quot;+h[e]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.vertexAttrib4f(&quot;,c,&quot;,&quot;,h,&quot;);&quot;,_t.map((function(t,e){return u+&quot;.&quot;+t+&quot;=&quot;+h[e]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;)}var l=o.gl,c=e.def(r,&quot;.location&quot;),u=e.def(o.attributes,&quot;[&quot;,c,&quot;]&quot;);r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[&quot;buffer&quot;,&quot;normalized&quot;,&quot;offset&quot;,&quot;stride&quot;];1===r?a():2===r?s():(e(&quot;if(&quot;,r,&quot;===&quot;,1,&quot;){&quot;),a(),e(&quot;}else{&quot;),s(),e(&quot;}&quot;))}var o=t.shared;n.forEach((function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(St))return;var c=t.scopeAttrib(s);o={},Object.keys(new Q).forEach((function(t){o[t]=e.def(c,&quot;.&quot;,t)}))}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)}))}function q(t,r,n,i,o,s){for(var l,c=t.shared,u=c.gl,f={},h=0;h&lt;i.length;++h){var p=(b=i[h]).name,d=b.info.type,g=b.info.size,v=n.uniforms[p];if(1&lt;g){if(!v)continue;var y=p.replace(&quot;[0]&quot;,&quot;&quot;);if(f[y])continue;f[y]=1}var x,b=t.link(b)+&quot;.location&quot;;if(v){if(!o(v))continue;if(D(v)){if(p=v.value,35678===d||35680===d)r(u,&quot;.uniform1i(&quot;,b,&quot;,&quot;,(d=t.link(p._texture||p.color[0]._texture))+&quot;.bind());&quot;),r.exit(d,&quot;.unbind();&quot;);else if(35674===d||35675===d||35676===d)g=t.global.def(&quot;new Float32Array([&quot;+Array.prototype.slice.call(p)+&quot;])&quot;),p=2,35675===d?p=3:35676===d&amp;&amp;(p=4),r(u,&quot;.uniformMatrix&quot;,p,&quot;fv(&quot;,b,&quot;,false,&quot;,g,&quot;);&quot;);else{switch(d){case 5126:l=&quot;1f&quot;;break;case 35664:l=&quot;2f&quot;;break;case 35665:l=&quot;3f&quot;;break;case 35666:l=&quot;4f&quot;;break;case 35670:case 5124:l=&quot;1i&quot;;break;case 35671:case 35667:l=&quot;2i&quot;;break;case 35672:case 35668:l=&quot;3i&quot;;break;case 35673:l=&quot;4i&quot;;break;case 35669:l=&quot;4i&quot;}1&lt;g?(l+=&quot;v&quot;,p=t.global.def(&quot;[&quot;+Array.prototype.slice.call(p)+&quot;]&quot;)):p=m(p)?Array.prototype.slice.call(p):p,r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;,p,&quot;);&quot;)}continue}x=v.append(t,r)}else{if(!o(St))continue;x=r.def(c.uniforms,&quot;[&quot;,e.id(p),&quot;]&quot;)}switch(35678===d?r(&quot;if(&quot;,x,&quot;&amp;&amp;&quot;,x,'._reglType===&quot;framebuffer&quot;){',x,&quot;=&quot;,x,&quot;.color[0];&quot;,&quot;}&quot;):35680===d&amp;&amp;r(&quot;if(&quot;,x,&quot;&amp;&amp;&quot;,x,'._reglType===&quot;framebufferCube&quot;){',x,&quot;=&quot;,x,&quot;.color[0];&quot;,&quot;}&quot;),p=1,d){case 35678:case 35680:d=r.def(x,&quot;._texture&quot;),r(u,&quot;.uniform1i(&quot;,b,&quot;,&quot;,d,&quot;.bind());&quot;),r.exit(d,&quot;.unbind();&quot;);continue;case 5124:case 35670:l=&quot;1i&quot;;break;case 35667:case 35671:l=&quot;2i&quot;,p=2;break;case 35668:case 35672:l=&quot;3i&quot;,p=3;break;case 35669:case 35673:l=&quot;4i&quot;,p=4;break;case 5126:l=&quot;1f&quot;;break;case 35664:l=&quot;2f&quot;,p=2;break;case 35665:l=&quot;3f&quot;,p=3;break;case 35666:l=&quot;4f&quot;,p=4;break;case 35674:l=&quot;Matrix2fv&quot;;break;case 35675:l=&quot;Matrix3fv&quot;;break;case 35676:l=&quot;Matrix4fv&quot;}if(-1===l.indexOf(&quot;Matrix&quot;)&amp;&amp;1&lt;g&amp;&amp;(l+=&quot;v&quot;,p=1),&quot;M&quot;===l.charAt(0)){r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;);b=Math.pow(d-35674+2,2);var _=t.global.def(&quot;new Float32Array(&quot;,b,&quot;)&quot;);Array.isArray(x)?r(&quot;false,(&quot;,a(b,(function(t){return _+&quot;[&quot;+t+&quot;]=&quot;+x[t]})),&quot;,&quot;,_,&quot;)&quot;):r(&quot;false,(Array.isArray(&quot;,x,&quot;)||&quot;,x,&quot; instanceof Float32Array)?&quot;,x,&quot;:(&quot;,a(b,(function(t){return _+&quot;[&quot;+t+&quot;]=&quot;+x+&quot;[&quot;+t+&quot;]&quot;})),&quot;,&quot;,_,&quot;)&quot;),r(&quot;);&quot;)}else{if(1&lt;p){d=[];var w=[];for(g=0;g&lt;p;++g)Array.isArray(x)?w.push(x[g]):w.push(r.def(x+&quot;[&quot;+g+&quot;]&quot;)),s&amp;&amp;d.push(r.def());s&amp;&amp;r(&quot;if(!&quot;,t.batchId,&quot;||&quot;,d.map((function(t,e){return t+&quot;!==&quot;+w[e]})).join(&quot;||&quot;),&quot;){&quot;,d.map((function(t,e){return t+&quot;=&quot;+w[e]+&quot;;&quot;})).join(&quot;&quot;)),r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;,w.join(&quot;,&quot;),&quot;);&quot;)}else s&amp;&amp;(d=r.def(),r(&quot;if(!&quot;,t.batchId,&quot;||&quot;,d,&quot;!==&quot;,x,&quot;){&quot;,d,&quot;=&quot;,x,&quot;;&quot;)),r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;,x,&quot;);&quot;);s&amp;&amp;r(&quot;}&quot;)}}}function H(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&amp;&amp;n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,&quot;.&quot;,i)}function a(){function t(){r(l,&quot;.drawElementsInstancedANGLE(&quot;,[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;,s],&quot;);&quot;)}function e(){r(l,&quot;.drawArraysInstancedANGLE(&quot;,[d,g,m,s],&quot;);&quot;)}p&amp;&amp;&quot;null&quot;!==p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}function o(){function t(){r(u+&quot;.drawElements(&quot;+[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;]+&quot;);&quot;)}function e(){r(u+&quot;.drawArrays(&quot;+[d,g,m]+&quot;);&quot;)}p&amp;&amp;&quot;null&quot;!==p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a),h.elementsActive&amp;&amp;a(&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;)):(i=a.def(),a(i,&quot;=&quot;,f,&quot;.&quot;,&quot;elements&quot;,&quot;;&quot;,&quot;if(&quot;,i,&quot;){&quot;,u,&quot;.bindBuffer(&quot;,34963,&quot;,&quot;,i,&quot;.buffer.buffer);}&quot;,&quot;else if(&quot;,c.vao,&quot;.currentVAO){&quot;,i,&quot;=&quot;,t.shared.elements+&quot;.getElements(&quot;+c.vao,&quot;.currentVAO.elements);&quot;,nt?&quot;&quot;:&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;,&quot;}&quot;)),i}(),d=i(&quot;primitive&quot;),g=i(&quot;offset&quot;),m=function(){var i=h.count,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;count&quot;),i}();if(&quot;number&quot;==typeof m){if(0===m)return}else r(&quot;if(&quot;,m,&quot;){&quot;),r.exit(&quot;}&quot;);tt&amp;&amp;(s=i(&quot;instances&quot;),l=t.instancing);var v=p+&quot;.type&quot;,y=h.elements&amp;&amp;D(h.elements)&amp;&amp;!h.vaoActive;tt&amp;&amp;(&quot;number&quot;!=typeof s||0&lt;=s)?&quot;string&quot;==typeof s?(r(&quot;if(&quot;,s,&quot;&gt;0){&quot;),a(),r(&quot;}else if(&quot;,s,&quot;&lt;0){&quot;),o(),r(&quot;}&quot;)):a():o()}function G(t,e,r,n,i){return i=(e=b()).proc(&quot;body&quot;,i),tt&amp;&amp;(e.instancing=i.def(e.shared.extensions,&quot;.angle_instanced_arrays&quot;)),t(e,i,r,n),e.compile().body}function Y(t,e,r,n){B(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,e),&quot;);&quot;):e(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(e(t.shared.vao,&quot;.setVAO(null);&quot;),U(t,e,r,n.attributes,(function(){return!0}))),q(t,e,r,n.uniforms,(function(){return!0}),!1),H(t,e,e,r)}function W(t,e,r,n){function i(){return!0}t.batchId=&quot;a1&quot;,B(t,e),U(t,e,r,n.attributes,i),q(t,e,r,n.uniforms,i,!1),H(t,e,e,r)}function X(t,e,r,n){function i(t){return t.contextDep&amp;&amp;o||t.propDep}function a(t){return!i(t)}B(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,&quot;for(&quot;,s,&quot;=0;&quot;,s,&quot;&lt;&quot;,&quot;a1&quot;,&quot;;++&quot;,s,&quot;){&quot;,l,&quot;=&quot;,&quot;a0&quot;,&quot;[&quot;,s,&quot;];&quot;,u,&quot;}&quot;,c.exit),r.needsContext&amp;&amp;M(t,u,r.context),r.needsFramebuffer&amp;&amp;S(t,u,r.framebuffer),L(t,u,r.state,i),r.profile&amp;&amp;i(r.profile)&amp;&amp;N(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,u),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,c),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(c(t.shared.vao,&quot;.setVAO(null);&quot;),U(t,c,r,n.attributes,a),U(t,u,r,n.attributes,i)),q(t,c,r,n.uniforms,a,!1),q(t,u,r,n.uniforms,i,!0),H(t,c,u,r)):(e=t.global.def(&quot;{}&quot;),n=r.shader.progVar.append(t,u),l=u.def(n,&quot;.id&quot;),c=u.def(e,&quot;[&quot;,l,&quot;]&quot;),u(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;,&quot;if(!&quot;,c,&quot;){&quot;,c,&quot;=&quot;,e,&quot;[&quot;,l,&quot;]=&quot;,t.link((function(e){return G(W,t,r,e,2)})),&quot;(&quot;,n,&quot;);}&quot;,c,&quot;.call(this,a0[&quot;,s,&quot;],&quot;,s,&quot;);&quot;))}function Z(t,r){function n(e){var n=r.shader[e];n&amp;&amp;i.set(a.shader,&quot;.&quot;+e,n.append(t,i))}var i=t.proc(&quot;scope&quot;,3);t.batchId=&quot;a2&quot;;var a=t.shared,o=a.current;M(t,i,r.context),r.framebuffer&amp;&amp;r.framebuffer.append(t,i),O(Object.keys(r.state)).forEach((function(e){var n=r.state[e].append(t,i);m(n)?n.forEach((function(r,n){i.set(t.next[e],&quot;[&quot;+n+&quot;]&quot;,r)})):i.set(a.next,&quot;.&quot;+e,n)})),N(t,i,r,!0,!0),[&quot;elements&quot;,&quot;offset&quot;,&quot;count&quot;,&quot;instances&quot;,&quot;primitive&quot;].forEach((function(e){var n=r.draw[e];n&amp;&amp;i.set(a.draw,&quot;.&quot;+e,&quot;&quot;+n.append(t,i))})),Object.keys(r.uniforms).forEach((function(n){var o=r.uniforms[n].append(t,i);Array.isArray(o)&amp;&amp;(o=&quot;[&quot;+o.join()+&quot;]&quot;),i.set(a.uniforms,&quot;[&quot;+e.id(n)+&quot;]&quot;,o)})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Q).forEach((function(t){i.set(a,&quot;.&quot;+t,n[t])}))})),r.scopeVAO&amp;&amp;i.set(a.vao,&quot;.targetVAO&quot;,r.scopeVAO.append(t,i)),n(&quot;vert&quot;),n(&quot;frag&quot;),0&lt;Object.keys(r.state).length&amp;&amp;(i(o,&quot;.dirty=true;&quot;),i.exit(o,&quot;.dirty=true;&quot;)),i(&quot;a1(&quot;,t.shared.context,&quot;,a0,&quot;,t.batchId,&quot;);&quot;)}function J(t,e,r){var n=e.static[r];if(n&amp;&amp;function(t){if(&quot;object&quot;==typeof t&amp;&amp;!m(t)){for(var e=Object.keys(t),r=0;r&lt;e.length;++r)if(V.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(&quot;{}&quot;);a.forEach((function(e){var r=n[e];if(V.isDynamic(r))&quot;function&quot;==typeof r&amp;&amp;(r=n[e]=V.unbox(r)),e=F(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,&quot;.&quot;,e,&quot;=&quot;),typeof r){case&quot;number&quot;:i(r);break;case&quot;string&quot;:i('&quot;',r,'&quot;');break;case&quot;object&quot;:Array.isArray(r)&amp;&amp;i(&quot;[&quot;,r.join(),&quot;]&quot;);break;default:i(t.link(r))}i(&quot;;&quot;)}})),e.dynamic[r]=new V.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach((function(r){var i=n[r];V.isDynamic(i)&amp;&amp;(i=t.invoke(e,i),e(c,&quot;.&quot;,r,&quot;=&quot;,i,&quot;;&quot;))}))}}),delete e.static[r]}}var Q=u.Record,$={add:32774,subtract:32778,&quot;reverse subtract&quot;:32779};r.ext_blend_minmax&amp;&amp;($.min=32775,$.max=32776);var tt=r.angle_instanced_arrays,et=r.webgl_draw_buffers,nt=r.oes_vertex_array_object,it={dirty:!0,profile:g.profile},at={},ot=[],st={},lt={};y(&quot;dither&quot;,3024),y(&quot;blend.enable&quot;,3042),x(&quot;blend.color&quot;,&quot;blendColor&quot;,[0,0,0,0]),x(&quot;blend.equation&quot;,&quot;blendEquationSeparate&quot;,[32774,32774]),x(&quot;blend.func&quot;,&quot;blendFuncSeparate&quot;,[1,0,1,0]),y(&quot;depth.enable&quot;,2929,!0),x(&quot;depth.func&quot;,&quot;depthFunc&quot;,513),x(&quot;depth.range&quot;,&quot;depthRange&quot;,[0,1]),x(&quot;depth.mask&quot;,&quot;depthMask&quot;,!0),x(&quot;colorMask&quot;,&quot;colorMask&quot;,[!0,!0,!0,!0]),y(&quot;cull.enable&quot;,2884),x(&quot;cull.face&quot;,&quot;cullFace&quot;,1029),x(&quot;frontFace&quot;,&quot;frontFace&quot;,2305),x(&quot;lineWidth&quot;,&quot;lineWidth&quot;,1),y(&quot;polygonOffset.enable&quot;,32823),x(&quot;polygonOffset.offset&quot;,&quot;polygonOffset&quot;,[0,0]),y(&quot;sample.alpha&quot;,32926),y(&quot;sample.enable&quot;,32928),x(&quot;sample.coverage&quot;,&quot;sampleCoverage&quot;,[1,!1]),y(&quot;stencil.enable&quot;,2960),x(&quot;stencil.mask&quot;,&quot;stencilMask&quot;,-1),x(&quot;stencil.func&quot;,&quot;stencilFunc&quot;,[519,0,-1]),x(&quot;stencil.opFront&quot;,&quot;stencilOpSeparate&quot;,[1028,7680,7680,7680]),x(&quot;stencil.opBack&quot;,&quot;stencilOpSeparate&quot;,[1029,7680,7680,7680]),y(&quot;scissor.enable&quot;,3089),x(&quot;scissor.box&quot;,&quot;scissor&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(&quot;viewport&quot;,&quot;viewport&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ct={gl:t,context:p,strings:e,next:at,current:it,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:I},ut={primTypes:rt,compareFuncs:kt,blendFuncs:Tt,blendEquations:$,stencilOps:At,glTypes:K,orientationType:Mt};et&amp;&amp;(ut.backBuffer=[1029],ut.drawBuffer=a(n.maxDrawbuffers,(function(t){return 0===t?[0]:a(t,(function(t){return 36064+t}))})));var ft=0;return{next:at,current:it,procs:function(){var t=b(),e=t.proc(&quot;poll&quot;),i=t.proc(&quot;refresh&quot;),o=t.block();e(o),i(o);var s,l=t.shared,c=l.gl,u=l.next,f=l.current;o(f,&quot;.dirty=false;&quot;),S(t,e),S(t,i,null,!0),tt&amp;&amp;(s=t.link(tt)),r.oes_vertex_array_object&amp;&amp;i(t.link(r.oes_vertex_array_object),&quot;.bindVertexArrayOES(null);&quot;);for(var h=0;h&lt;n.maxAttributes;++h){var p=i.def(l.attributes,&quot;[&quot;,h,&quot;]&quot;),d=t.cond(p,&quot;.buffer&quot;);d.then(c,&quot;.enableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,p,&quot;.buffer.buffer);&quot;,c,&quot;.vertexAttribPointer(&quot;,h,&quot;,&quot;,p,&quot;.size,&quot;,p,&quot;.type,&quot;,p,&quot;.normalized,&quot;,p,&quot;.stride,&quot;,p,&quot;.offset);&quot;).else(c,&quot;.disableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.vertexAttrib4f(&quot;,h,&quot;,&quot;,p,&quot;.x,&quot;,p,&quot;.y,&quot;,p,&quot;.z,&quot;,p,&quot;.w);&quot;,p,&quot;.buffer=null;&quot;),i(d),tt&amp;&amp;i(s,&quot;.vertexAttribDivisorANGLE(&quot;,h,&quot;,&quot;,p,&quot;.divisor);&quot;)}return i(t.shared.vao,&quot;.currentVAO=null;&quot;,t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;),Object.keys(st).forEach((function(r){var n=st[r],a=o.def(u,&quot;.&quot;,r),s=t.block();s(&quot;if(&quot;,a,&quot;){&quot;,c,&quot;.enable(&quot;,n,&quot;)}else{&quot;,c,&quot;.disable(&quot;,n,&quot;)}&quot;,f,&quot;.&quot;,r,&quot;=&quot;,a,&quot;;&quot;),i(s),e(&quot;if(&quot;,a,&quot;!==&quot;,f,&quot;.&quot;,r,&quot;){&quot;,s,&quot;}&quot;)})),Object.keys(lt).forEach((function(r){var n,s,l=lt[r],h=it[r],p=t.block();p(c,&quot;.&quot;,l,&quot;(&quot;),m(h)?(l=h.length,n=t.global.def(u,&quot;.&quot;,r),s=t.global.def(f,&quot;.&quot;,r),p(a(l,(function(t){return n+&quot;[&quot;+t+&quot;]&quot;})),&quot;);&quot;,a(l,(function(t){return s+&quot;[&quot;+t+&quot;]=&quot;+n+&quot;[&quot;+t+&quot;];&quot;})).join(&quot;&quot;)),e(&quot;if(&quot;,a(l,(function(t){return n+&quot;[&quot;+t+&quot;]!==&quot;+s+&quot;[&quot;+t+&quot;]&quot;})).join(&quot;||&quot;),&quot;){&quot;,p,&quot;}&quot;)):(n=o.def(u,&quot;.&quot;,r),s=o.def(f,&quot;.&quot;,r),p(n,&quot;);&quot;,f,&quot;.&quot;,r,&quot;=&quot;,n,&quot;;&quot;),e(&quot;if(&quot;,n,&quot;!==&quot;,s,&quot;){&quot;,p,&quot;}&quot;)),i(p)})),t.compile()}(),compile:function(t,e,r,n,i){var a=b();a.stats=a.link(i),Object.keys(e.static).forEach((function(t){J(a,e,t)})),wt.forEach((function(e){J(a,t,e)}));var o=A(t,e,r,n);return function(t,e){var r=t.proc(&quot;draw&quot;,1);B(t,r),M(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),L(t,r,e.state),N(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;),e.shader.program)Y(t,r,e,e.shader.program);else{r(t.shared.vao,&quot;.setVAO(null);&quot;);var i=t.global.def(&quot;{}&quot;),a=r.def(n,&quot;.id&quot;),o=r.def(i,&quot;[&quot;,a,&quot;]&quot;);r(t.cond(o).then(o,&quot;.call(this,a0);&quot;).else(o,&quot;=&quot;,i,&quot;[&quot;,a,&quot;]=&quot;,t.link((function(r){return G(Y,t,e,r,1)})),&quot;(&quot;,n,&quot;);&quot;,o,&quot;.call(this,a0);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;r(t.shared.current,&quot;.dirty=true;&quot;),t.shared.vao&amp;&amp;r(t.shared.vao,&quot;.setVAO(null);&quot;)}(a,o),Z(a,o),function(t,e){function r(t){return t.contextDep&amp;&amp;i||t.propDep}var n=t.proc(&quot;batch&quot;,2);t.batchId=&quot;0&quot;,B(t,n);var i=!1,a=!0;Object.keys(e.context).forEach((function(t){i=i||e.context[t].propDep})),i||(M(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&amp;&amp;i&amp;&amp;(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&amp;&amp;e.state.viewport.propDep&amp;&amp;(i=!0),E(t,n,e),L(t,n,e.state,(function(t){return!r(t)})),e.profile&amp;&amp;r(e.profile)||N(t,n,e,!1,&quot;a1&quot;),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&amp;&amp;i||a.propDep)X(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,&quot;.useProgram(&quot;,a,&quot;.program);&quot;),e.shader.program)X(t,n,e,e.shader.program);else{n(t.shared.vao,&quot;.setVAO(null);&quot;);var s=t.global.def(&quot;{}&quot;),l=(o=n.def(a,&quot;.id&quot;),n.def(s,&quot;[&quot;,o,&quot;]&quot;));n(t.cond(l).then(l,&quot;.call(this,a0,a1);&quot;).else(l,&quot;=&quot;,s,&quot;[&quot;,o,&quot;]=&quot;,t.link((function(r){return G(X,t,e,r,2)})),&quot;(&quot;,a,&quot;);&quot;,l,&quot;.call(this,a0,a1);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;n(t.shared.current,&quot;.dirty=true;&quot;),t.shared.vao&amp;&amp;n(t.shared.vao,&quot;.setVAO(null);&quot;)}(a,o),j(a.compile(),{destroy:function(){o.shader.program.destroy()}})}}}function N(t,e){for(var r=0;r&lt;t.length;++r)if(t[r]===e)return r;return-1}var j=function(t,e){for(var r=Object.keys(e),n=0;n&lt;r.length;++n)t[r[n]]=e[r[n]];return t},U=0,V={DynamicVariable:t,define:function(r,n){return new t(r,e(n+&quot;&quot;))},isDynamic:function(e){return&quot;function&quot;==typeof e&amp;&amp;!e._reglType||e instanceof t},unbox:function e(r,n){return&quot;function&quot;==typeof r?new t(0,r):&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?new t(5,r):Array.isArray(r)?new t(6,r.map((function(t,r){return e(t,n+&quot;[&quot;+r+&quot;]&quot;)}))):r instanceof t?r:void 0},accessor:e},q={next:&quot;function&quot;==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:&quot;function&quot;==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},H=&quot;undefined&quot;!=typeof performance&amp;&amp;performance.now?function(){return performance.now()}:function(){return+new Date},G=s();G.zero=s();var Y=function(t,e){var r=1;e.ext_texture_filter_anisotropic&amp;&amp;(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&amp;&amp;(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=G.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),G.freeType(s)}}return s=!0,&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(s=t.createTexture(),o=G.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),G.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError()),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},W=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},X=function(t){return Object.keys(t).map((function(e){return t[e]}))},Z={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a&lt;e.length;++a)i*=e[a];else i=0;switch(r=n||G.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e&lt;n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a&lt;n;++a)for(var o=t[a],s=0;s&lt;e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s&lt;r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s&lt;l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s&lt;l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},J={&quot;[object Int8Array]&quot;:5120,&quot;[object Int16Array]&quot;:5122,&quot;[object Int32Array]&quot;:5124,&quot;[object Uint8Array]&quot;:5121,&quot;[object Uint8ClampedArray]&quot;:5121,&quot;[object Uint16Array]&quot;:5123,&quot;[object Uint32Array]&quot;:5125,&quot;[object Float32Array]&quot;:5126,&quot;[object Float64Array]&quot;:5121,&quot;[object ArrayBuffer]&quot;:5121},K={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Q={dynamic:35048,stream:35040,static:35044},$=Z.flatten,tt=Z.shape,et=[];et[5120]=1,et[5122]=2,et[5124]=4,et[5121]=1,et[5123]=2,et[5125]=4,et[5126]=4;var rt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,&quot;line loop&quot;:2,&quot;line strip&quot;:3,&quot;triangle strip&quot;:5,&quot;triangle fan&quot;:6},nt=new Float32Array(1),it=new Uint32Array(nt.buffer),at=[9984,9986,9985,9987],ot=[0,6409,6410,6407,6408],st={};st[6409]=st[6406]=st[6402]=1,st[34041]=st[6410]=2,st[6407]=st[35904]=3,st[6408]=st[35906]=4;var lt=v(&quot;HTMLCanvasElement&quot;),ct=v(&quot;OffscreenCanvas&quot;),ut=v(&quot;CanvasRenderingContext2D&quot;),ft=v(&quot;ImageBitmap&quot;),ht=v(&quot;HTMLImageElement&quot;),pt=v(&quot;HTMLVideoElement&quot;),dt=Object.keys(J).concat([lt,ct,ut,ft,ht,pt]),gt=[];gt[5121]=1,gt[5126]=4,gt[36193]=2,gt[5123]=2,gt[5125]=4;var mt=[];mt[32854]=2,mt[32855]=2,mt[36194]=2,mt[34041]=4,mt[33776]=.5,mt[33777]=.5,mt[33778]=1,mt[33779]=1,mt[35986]=.5,mt[35987]=1,mt[34798]=1,mt[35840]=.5,mt[35841]=.25,mt[35842]=.5,mt[35843]=.25,mt[36196]=.5;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[33189]=2,vt[36168]=1,vt[34041]=4,vt[35907]=4,vt[34836]=16,vt[34842]=8,vt[34843]=6;var yt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&amp;&amp;(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,&quot;rgb5 a1&quot;:32855,depth:33189,stencil:36168,&quot;depth stencil&quot;:34041};e.ext_srgb&amp;&amp;(s.srgba=35907),e.ext_color_buffer_half_float&amp;&amp;(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&amp;&amp;(s.rgba32f=34836);var l=[];Object.keys(s).forEach((function(t){l[s[t]]=t}));var c=0,u={};return a.prototype.decRef=function(){0&gt;=--this.refCount&amp;&amp;o(this)},i.profile&amp;&amp;(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(&quot;object&quot;==typeof e&amp;&amp;e?(&quot;shape&quot;in e?(n=0|(a=e.shape)[0],a=0|a[1]):(&quot;radius&quot;in e&amp;&amp;(n=a=0|e.radius),&quot;width&quot;in e&amp;&amp;(n=0|e.width),&quot;height&quot;in e&amp;&amp;(a=0|e.height)),&quot;format&quot;in e&amp;&amp;(u=s[e.format])):&quot;number&quot;==typeof e?(n=0|e,a=&quot;number&quot;==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&amp;&amp;(c.stats.size=vt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&amp;&amp;a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&amp;&amp;(c.stats.size=vt[c.format]*c.width*c.height)),o},o._reglType=&quot;renderbuffer&quot;,o._renderbuffer=c,i.profile&amp;&amp;(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){X(u).forEach(o)},restore:function(){X(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},xt=[];xt[6408]=4,xt[6407]=3;var bt=[];bt[5121]=1,bt[5126]=4,bt[36193]=2;var _t=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;w&quot;],wt=&quot;blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset&quot;.split(&quot; &quot;),Tt={0:0,1:1,zero:0,one:1,&quot;src color&quot;:768,&quot;one minus src color&quot;:769,&quot;src alpha&quot;:770,&quot;one minus src alpha&quot;:771,&quot;dst color&quot;:774,&quot;one minus dst color&quot;:775,&quot;dst alpha&quot;:772,&quot;one minus dst alpha&quot;:773,&quot;constant color&quot;:32769,&quot;one minus constant color&quot;:32770,&quot;constant alpha&quot;:32771,&quot;one minus constant alpha&quot;:32772,&quot;src alpha saturate&quot;:776},kt={never:512,less:513,&quot;&lt;&quot;:513,equal:514,&quot;=&quot;:514,&quot;==&quot;:514,&quot;===&quot;:514,lequal:515,&quot;&lt;=&quot;:515,greater:516,&quot;&gt;&quot;:516,notequal:517,&quot;!=&quot;:517,&quot;!==&quot;:517,gequal:518,&quot;&gt;=&quot;:518,always:519},At={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,&quot;increment wrap&quot;:34055,&quot;decrement wrap&quot;:34056,invert:5386},Mt={cw:2304,ccw:2305},St=new z(!1,!1,!1,(function(){}));return function(t){function e(){if(0===J.length)w&amp;&amp;w.update(),tt=null;else{tt=q.next(e),f();for(var t=J.length-1;0&lt;=t;--t){var r=J[t];r&amp;&amp;r(P,null,0)}m.flush(),w&amp;&amp;w.update()}}function r(){!tt&amp;&amp;0&lt;J.length&amp;&amp;(tt=q.next(e))}function n(){tt&amp;&amp;(q.cancel(e),tt=null)}function a(t){t.preventDefault(),n(),K.forEach((function(t){t()}))}function o(t){m.getError(),y.restore(),R.restore(),O.restore(),F.restore(),U.restore(),G.restore(),D.restore(),w&amp;&amp;w.restore(),W.procs.refresh(),r(),Q.forEach((function(t){t()}))}function s(t){function e(t,e){var r={},n={};return Object.keys(t).forEach((function(i){var a=t[i];if(V.isDynamic(a))n[i]=V.unbox(a,i);else{if(e&amp;&amp;Array.isArray(a))for(var o=0;o&lt;a.length;++o)if(V.isDynamic(a[o]))return void(n[i]=V.unbox(a,i));r[i]=a}})),{dynamic:n,static:r}}var r=e(t.context||{},!0),n=e(t.uniforms||{},!0),i=e(t.attributes||{},!1);t=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach((function(n){r[t+&quot;.&quot;+n]=e[n]}))}}var r=j({},t);return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,&quot;stencil&quot;in r&amp;&amp;r.stencil.op&amp;&amp;(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(&quot;blend&quot;),e(&quot;depth&quot;),e(&quot;cull&quot;),e(&quot;stencil&quot;),e(&quot;polygonOffset&quot;),e(&quot;scissor&quot;),e(&quot;sample&quot;),&quot;vao&quot;in t&amp;&amp;(r.vao=t.vao),r}(t),!1);var a={gpuTime:0,cpuTime:0,count:0},o=W.compile(t,i,n,r,a),s=o.draw,l=o.batch,c=o.scope,u=[];return j((function(t,e){var r;if(&quot;function&quot;==typeof t)return c.call(this,null,t,0);if(&quot;function&quot;==typeof e)if(&quot;number&quot;==typeof t)for(r=0;r&lt;t;++r)c.call(this,null,e,r);else{if(!Array.isArray(t))return c.call(this,t,e,0);for(r=0;r&lt;t.length;++r)c.call(this,t[r],e,r)}else if(&quot;number&quot;==typeof t){if(0&lt;t)return l.call(this,function(t){for(;u.length&lt;t;)u.push(null);return u}(0|t),0|t)}else{if(!Array.isArray(t))return s.call(this,t);if(t.length)return l.call(this,t,t.length)}}),{stats:a,destroy:function(){o.destroy()}})}function l(t,e){var r=0;W.procs.poll();var n=e.color;n&amp;&amp;(m.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),&quot;depth&quot;in e&amp;&amp;(m.clearDepth(+e.depth),r|=256),&quot;stencil&quot;in e&amp;&amp;(m.clearStencil(0|e.stencil),r|=1024),m.clear(r)}function c(t){return J.push(t),r(),{cancel:function(){var e=N(J,t);J[e]=function t(){var e=N(J,t);J[e]=J[J.length-1],--J.length,0&gt;=J.length&amp;&amp;n()}}}}function u(){var t=X.viewport,e=X.scissor_box;t[0]=t[1]=e[0]=e[1]=0,P.viewportWidth=P.framebufferWidth=P.drawingBufferWidth=t[2]=e[2]=m.drawingBufferWidth,P.viewportHeight=P.framebufferHeight=P.drawingBufferHeight=t[3]=e[3]=m.drawingBufferHeight}function f(){P.tick+=1,P.time=g(),u(),W.procs.poll()}function h(){F.refresh(),u(),W.procs.refresh(),w&amp;&amp;w.update()}function g(){return(H()-T)/1e3}if(!(t=i(t)))return null;var m=t.gl,v=m.getContextAttributes();m.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i&lt;e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('&quot;'+a+'&quot; extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&amp;&amp;!r(t))throw Error(&quot;(regl): error restoring extension &quot;+t)}))}}}(m,t);if(!y)return null;var x=function(){var t={&quot;&quot;:0},e=[&quot;&quot;];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=o.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,s.push(i)}if(!e.ext_disjoint_timer_query)return null;var i=[],a=[],o=[],s=[],l=[],c=[];return{beginQuery:function(t){var r=i.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),n(a.length-1,a.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,r;if(0!==(t=a.length)){c.length=Math.max(c.length,t+1),l.length=Math.max(l.length,t+1),l[0]=0;var n=c[0]=0;for(r=t=0;r&lt;a.length;++r){var u=a[r];e.ext_disjoint_timer_query.getQueryObjectEXT(u,34919)?(n+=e.ext_disjoint_timer_query.getQueryObjectEXT(u,34918),i.push(u)):a[t++]=u,l[r+1]=n,c[r+1]=t}for(a.length=t,r=t=0;r&lt;s.length;++r){var f=(n=s[r]).startQueryIndex;u=n.endQueryIndex;n.sum+=l[u]-l[f],f=c[f],(u=c[u])===f?(n.stats.gpuTime+=n.sum/1e6,o.push(n)):(n.startQueryIndex=f,n.endQueryIndex=u,s[t++]=n)}s.length=t}},getNumPendingQueries:function(){return a.length},clear:function(){i.push.apply(i,a);for(var t=0;t&lt;i.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(i[t]);a.length=0,i.length=0},restore:function(){a.length=0,i.length=0}}}(0,_),T=H(),M=m.drawingBufferWidth,C=m.drawingBufferHeight,P={tick:0,time:0,viewportWidth:M,viewportHeight:C,framebufferWidth:M,framebufferHeight:C,drawingBufferWidth:M,drawingBufferHeight:C,pixelRatio:t.pixelRatio},I=(M={elements:null,primitive:4,count:-1,offset:0,instances:-1},Y(m,_)),O=p(m,b,t,(function(t){return D.destroyBuffer(t)})),z=d(m,_,O,b),D=S(m,_,I,b,O,z,M),R=E(m,x,b,t),F=k(m,_,I,(function(){W.procs.poll()}),P,b,t),U=yt(m,_,0,b,t),G=A(m,_,I,F,U,b),W=B(m,x,_,I,O,z,0,G,{},D,R,M,P,w,t),X=(x=L(m,G,W.procs.poll,P),W.next),Z=m.canvas,J=[],K=[],Q=[],$=[t.onDestroy],tt=null;Z&amp;&amp;(Z.addEventListener(&quot;webglcontextlost&quot;,a,!1),Z.addEventListener(&quot;webglcontextrestored&quot;,o,!1));var et=G.setFBO=s({framebuffer:V.define.call(null,1,&quot;framebuffer&quot;)});return h(),v=j(s,{clear:function(t){if(&quot;framebuffer&quot;in t)if(t.framebuffer&amp;&amp;&quot;framebufferCube&quot;===t.framebuffer_reglType)for(var e=0;6&gt;e;++e)et(j({framebuffer:t.framebuffer.faces[e]},t),l);else et(t,l);else l(0,t)},prop:V.define.bind(null,1),context:V.define.bind(null,2),this:V.define.bind(null,3),draw:s({}),buffer:function(t){return O.create(t,34962,!1,!1)},elements:function(t){return z.create(t,!1)},texture:F.create2D,cube:F.createCube,renderbuffer:U.create,framebuffer:G.create,framebufferCube:G.createCube,vao:D.createVAO,attributes:v,frame:c,on:function(t,e){var r;switch(t){case&quot;frame&quot;:return c(e);case&quot;lost&quot;:r=K;break;case&quot;restore&quot;:r=Q;break;case&quot;destroy&quot;:r=$}return r.push(e),{cancel:function(){for(var t=0;t&lt;r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:I,hasExtension:function(t){return 0&lt;=I.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){J.length=0,n(),Z&amp;&amp;(Z.removeEventListener(&quot;webglcontextlost&quot;,a),Z.removeEventListener(&quot;webglcontextrestored&quot;,o)),R.clear(),G.clear(),U.clear(),D.clear(),F.clear(),z.clear(),O.clear(),w&amp;&amp;w.clear(),$.forEach((function(t){t()}))},_gl:m,_refresh:h,poll:function(){f(),w&amp;&amp;w.update()},now:g,stats:b}),t.onDone(null,v),v}}))},{}],541:[function(t,e,r){
/*!
 * repeat-string &lt;https://github.com/jonschlinkert/repeat-string&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
&quot;use strict&quot;;var n,i=&quot;&quot;;e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;expected a string&quot;);if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||void 0===n)n=t,i=&quot;&quot;;else if(i.length&gt;=r)return i.substr(0,r);for(;r&gt;i.length&amp;&amp;e&gt;1;)1&amp;e&amp;&amp;(i+=t),e&gt;&gt;=1,t+=t;return i=(i+=t).substr(0,r)}},{}],542:[function(t,e,r){(function(t){(function(){e.exports=t.performance&amp;&amp;t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],543:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i&gt;=0;--i){var a=r,o=t[i];(l=o-((r=a+o)-a))&amp;&amp;(t[--n]=r,r=l)}var s=0;for(i=n;i&lt;e;++i){var l;a=t[i];(l=(o=r)-((r=a+o)-a))&amp;&amp;(t[s++]=l)}return t[s++]=r,t.length=s,t}},{}],544:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-compress&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m[&quot;,r,&quot;][&quot;,n,&quot;]&quot;].join(&quot;&quot;)}return e}function c(t){if(2===t.length)return[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;);for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,c(s(t,r)),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return function t(e){if(1===e.length)return e[0];if(2===e.length)return[&quot;sum(&quot;,e[0],&quot;,&quot;,e[1],&quot;)&quot;].join(&quot;&quot;);var r=e.length&gt;&gt;1;return[&quot;sum(&quot;,t(e.slice(0,r)),&quot;,&quot;,t(e.slice(r)),&quot;)&quot;].join(&quot;&quot;)}(e);var n}function u(t){return new Function(&quot;sum&quot;,&quot;scale&quot;,&quot;prod&quot;,&quot;compress&quot;,[&quot;function robustDeterminant&quot;,t,&quot;(m){return compress(&quot;,c(l(t)),&quot;)};return robustDeterminant&quot;,t].join(&quot;&quot;))(i,a,n,o)}var f=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;f.length&lt;6;)f.push(u(f.length));for(var t=[],r=[&quot;function robustDeterminant(m){switch(m.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;det&quot;+n),r.push(&quot;case &quot;,n,&quot;:return det&quot;,n,&quot;(m);&quot;);r.push(&quot;}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant&quot;),t.push(&quot;CACHE&quot;,&quot;gen&quot;,r.join(&quot;&quot;));var i=Function.apply(void 0,t);for(e.exports=i.apply(void 0,f.concat([f,u])),n=0;n&lt;f.length;++n)e.exports[n]=f[n]}()},{&quot;robust-compress&quot;:543,&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553,&quot;two-product&quot;:604}],545:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;);e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a&lt;t.length;++a)r=i(r,n(t[a],e[a]));return r}},{&quot;robust-sum&quot;:553,&quot;two-product&quot;:604}],546:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-subtract&quot;),o=t(&quot;robust-scale&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t,e){if(&quot;m&quot;===t.charAt(0)){if(&quot;w&quot;===e.charAt(0)){var r=t.split(&quot;[&quot;);return[&quot;w&quot;,e.substr(1),&quot;m&quot;,r[0].substr(1)].join(&quot;&quot;)}return[&quot;prod(&quot;,t,&quot;,&quot;,e,&quot;)&quot;].join(&quot;&quot;)}return c(e,t)}function u(t){if(2===t.length)return[[&quot;diff(&quot;,c(t[0][0],t[1][1]),&quot;,&quot;,c(t[1][0],t[0][1]),&quot;)&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(u(s(t,r))),&quot;,&quot;,(n=r,!0&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function f(t,e){for(var r=[],n=0;n&lt;e-2;++n)r.push([&quot;prod(m&quot;,t,&quot;[&quot;,n,&quot;],m&quot;,t,&quot;[&quot;,n,&quot;])&quot;].join(&quot;&quot;));return l(r)}function h(t){for(var e=[],r=[],c=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-2,&quot;]&quot;].join(&quot;&quot;)}return e}(t),h=0;h&lt;t;++h)c[0][h]=&quot;1&quot;,c[t-1][h]=&quot;w&quot;+h;for(h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,u(s(c,h))):r.push.apply(r,u(s(c,h)));var p=l(e),d=l(r),g=&quot;exactInSphere&quot;+t,m=[];for(h=0;h&lt;t;++h)m.push(&quot;m&quot;+h);var v=[&quot;function &quot;,g,&quot;(&quot;,m.join(),&quot;){&quot;];for(h=0;h&lt;t;++h){v.push(&quot;var w&quot;,h,&quot;=&quot;,f(h,t),&quot;;&quot;);for(var y=0;y&lt;t;++y)y!==h&amp;&amp;v.push(&quot;var w&quot;,h,&quot;m&quot;,y,&quot;=scale(w&quot;,h,&quot;,m&quot;,y,&quot;[0]);&quot;)}return v.push(&quot;var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=diff(p,n);return d[d.length-1];}return &quot;,g),new Function(&quot;sum&quot;,&quot;diff&quot;,&quot;prod&quot;,&quot;scale&quot;,v.join(&quot;&quot;))(i,a,n,o)}var p=[function(){return 0},function(){return 0},function(){return 0}];function d(t){var e=p[t.length];return e||(e=p[t.length]=h(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=6;)p.push(h(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=6;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function testInSphere(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=6;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=6;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:604}],547:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-determinant&quot;);function i(t){for(var e=&quot;robustLinearSolve&quot;+t+&quot;d&quot;,r=[&quot;function &quot;,e,&quot;(A,b){return [&quot;],i=0;i&lt;t;++i){r.push(&quot;det([&quot;);for(var a=0;a&lt;t;++a){a&gt;0&amp;&amp;r.push(&quot;,&quot;),r.push(&quot;[&quot;);for(var o=0;o&lt;t;++o)o&gt;0&amp;&amp;r.push(&quot;,&quot;),o===i?r.push(&quot;+b[&quot;,a,&quot;]&quot;):r.push(&quot;+A[&quot;,a,&quot;][&quot;,o,&quot;]&quot;);r.push(&quot;]&quot;)}r.push(&quot;]),&quot;)}r.push(&quot;det(A)]}return &quot;,e);var s=new Function(&quot;det&quot;,r.join(&quot;&quot;));return s(t&lt;6?n[t]:n)}var a=[function(){return[0]},function(t,e){return[[e[0]],[t[0][0]]]}];!function(){for(;a.length&lt;6;)a.push(i(a.length));for(var t=[],r=[&quot;function dispatchLinearSolve(A,b){switch(A.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;s&quot;+n),r.push(&quot;case &quot;,n,&quot;:return s&quot;,n,&quot;(A,b);&quot;);r.push(&quot;}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve&quot;),t.push(&quot;CACHE&quot;,&quot;g&quot;,r.join(&quot;&quot;));var o=Function.apply(void 0,t);for(e.exports=o.apply(void 0,a.concat([a,i])),n=0;n&lt;6;++n)e.exports[n]=a[n]}()},{&quot;robust-determinant&quot;:544}],548:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-subtract&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t){if(2===t.length)return[[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(c(s(t,r))),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function u(t){for(var e=[],r=[],u=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-1,&quot;]&quot;].join(&quot;&quot;)}return e}(t),f=[],h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,c(s(u,h))):r.push.apply(r,c(s(u,h))),f.push(&quot;m&quot;+h);var p=l(e),d=l(r),g=&quot;orientation&quot;+t+&quot;Exact&quot;,m=[&quot;function &quot;,g,&quot;(&quot;,f.join(),&quot;){var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=sub(p,n);return d[d.length-1];};return &quot;,g].join(&quot;&quot;);return new Function(&quot;sum&quot;,&quot;prod&quot;,&quot;scale&quot;,&quot;sub&quot;,m)(i,n,a,o)}var f=u(3),h=u(4),p=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i&gt;0){if(a&lt;=0)return o;n=i+a}else{if(!(i&lt;0))return o;if(a&gt;=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o&gt;=s||o&lt;=-s?o:f(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,g=o*l,m=o*s,v=i*c,y=i*l,x=a*s,b=u*(d-g)+f*(m-v)+p*(y-x),_=7771561172376103e-31*((Math.abs(d)+Math.abs(g))*Math.abs(u)+(Math.abs(m)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(p));return b&gt;_||-b&gt;_?b:h(t,e,r,n)}];function d(t){var e=p[t.length];return e||(e=p[t.length]=u(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=5;)p.push(u(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=5;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function getOrientation(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=5;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=5;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:604}],549:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-sum&quot;),i=t(&quot;robust-scale&quot;);e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length&lt;e.length)for(var a=0;a&lt;t.length;++a)r=n(r,i(e,t[a]));else for(a=0;a&lt;e.length;++a)r=n(r,i(t,e[a]));return r}},{&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553}],550:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;two-sum&quot;);e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&amp;&amp;(o[c++]=s[0]);for(var u=1;u&lt;r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&amp;&amp;(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,g=p-(d-h);s[1]=d,g&amp;&amp;(o[c++]=g)}s[1]&amp;&amp;(o[c++]=s[1]);0===c&amp;&amp;(o[c++]=0);return o.length=c,o}},{&quot;two-product&quot;:604,&quot;two-sum&quot;:605}],551:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a&gt;0&amp;&amp;o&gt;0||a&lt;0&amp;&amp;o&lt;0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s&gt;0&amp;&amp;l&gt;0||s&lt;0&amp;&amp;l&lt;0)return!1;if(0===a&amp;&amp;0===o&amp;&amp;0===s&amp;&amp;0===l)return function(t,e,r,n){for(var i=0;i&lt;2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u);if(Math.max(c,u)&lt;s||l&lt;f)return!1}return!0}(t,e,r,i);return!0};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],552:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=-e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],553:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],554:[function(t,e,r){var n=t(&quot;buffer&quot;),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&amp;&amp;i.alloc&amp;&amp;i.allocUnsafe&amp;&amp;i.allocUnsafeSlow?e.exports=n:(a(n,r),r.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(t,e,r){if(&quot;number&quot;==typeof t)throw new TypeError(&quot;Argument must not be a number&quot;);return i(t,e,r)},o.alloc=function(t,e,r){if(&quot;number&quot;!=typeof t)throw new TypeError(&quot;Argument must be a number&quot;);var n=i(t);return void 0!==e?&quot;string&quot;==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if(&quot;number&quot;!=typeof t)throw new TypeError(&quot;Argument must be a number&quot;);return i(t)},o.allocUnsafeSlow=function(t){if(&quot;number&quot;!=typeof t)throw new TypeError(&quot;Argument must be a number&quot;);return n.SlowBuffer(t)}},{buffer:117}],555:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t&lt;0?-1:t&gt;0?1:0}},{}],556:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return i(n(t))};var n=t(&quot;boundary-cells&quot;),i=t(&quot;reduce-simplicial-complex&quot;)},{&quot;boundary-cells&quot;:107,&quot;reduce-simplicial-complex&quot;:535}],557:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,s){r=r||0,void 0===s&amp;&amp;(s=function(t){for(var e=t.length,r=0,n=0;n&lt;e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s&lt;1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a&lt;r;++a)n[a]=t[a]&lt;e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c&lt;r;++c)for(var u=t[c],f=(e=u.length,0);f&lt;e;++f)for(var h=0;h&lt;f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));var g=2;for(c=2;c&lt;l;c+=2)s[c-2]===s[c]&amp;&amp;s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return n(s,[g/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u&lt;s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s&lt;n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o&lt;l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o&lt;e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i&lt;e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(&quot;ndarray&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray-sort&quot;),o=t(&quot;./lib/codegen&quot;)},{&quot;./lib/codegen&quot;:558,ndarray:483,&quot;ndarray-sort&quot;:482,&quot;typedarray-pool&quot;:617}],558:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=a[t];e||(e=a[t]=function(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var a=1;a&lt;=t;++a)for(var o=r[a]=i(a),s=0;s&lt;o.length;++s)e=Math.max(e,o[a].length);var l=[&quot;function B(C,E,i,j){&quot;,&quot;var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];&quot;,&quot;while(l&lt;h){&quot;,&quot;var m=(l+h)&gt;&gt;1,v=E[2*m+1];&quot;,&quot;if(v===b){return m}&quot;,&quot;if(b&lt;v){h=m}else{l=m+1}&quot;,&quot;}&quot;,&quot;return l;&quot;,&quot;};&quot;,&quot;function getContour&quot;,t,&quot;d(F,E,C,S){&quot;,&quot;var n=F.length,R=[];&quot;,&quot;for(var i=0;i&lt;n;++i){var c=F[i],l=c.length;&quot;];function c(t){if(!(t.length&lt;=0)){l.push(&quot;R.push(&quot;);for(var e=0;e&lt;t.length;++e){var r=t[e];e&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;[&quot;);for(var n=0;n&lt;r.length;++n){var i=r[n];n&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;B(C,E,c[&quot;,i[0],&quot;],c[&quot;,i[1],&quot;])&quot;)}l.push(&quot;]&quot;)}l.push(&quot;);&quot;)}}for(a=t+1;a&gt;1;--a){a&lt;t+1&amp;&amp;l.push(&quot;else &quot;),l.push(&quot;if(l===&quot;,a,&quot;){&quot;);var u=[];for(s=0;s&lt;a;++s)u.push(&quot;(S[c[&quot;+s+&quot;]]&lt;&lt;&quot;+s+&quot;)&quot;);l.push(&quot;var M=&quot;,u.join(&quot;+&quot;),&quot;;if(M===0||M===&quot;,(1&lt;&lt;a)-1,&quot;){continue}switch(M){&quot;);for(o=r[a-1],s=0;s&lt;o.length;++s)l.push(&quot;case &quot;,s,&quot;:&quot;),c(o[s]),l.push(&quot;break;&quot;);l.push(&quot;}}&quot;)}return l.push(&quot;}return R;};return getContour&quot;,t,&quot;d&quot;),new Function(&quot;pool&quot;,l.join(&quot;&quot;))(n)}(t));return e};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;marching-simplex-table&quot;),a={}},{&quot;marching-simplex-table&quot;:462,&quot;typedarray-pool&quot;:617}],559:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;union-find&quot;);function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h&lt;r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i&lt;r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i&lt;r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n&lt;r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r&lt;=n;){var o=r+n&gt;&gt;1,s=a(t[o],e);s&lt;=0?(0===s&amp;&amp;(i=o),r=o+1):s&gt;0&amp;&amp;(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i&lt;o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i&lt;l;++i)for(var u=e[i],f=u.length,h=1,p=1&lt;&lt;f;h&lt;p;++h){s.length=n.popCount(h);for(var d=0,g=0;g&lt;f;++g)h&amp;1&lt;&lt;g&amp;&amp;(s[d++]=u[g]);var m=c(t,s);if(!(m&lt;0))for(;r[m++].push(i),!(m&gt;=t.length||0!==a(t[m],s)););}return r}function f(t,e){if(e&lt;0)return[];for(var r=[],i=(1&lt;&lt;e+1)-1,a=0;a&lt;t.length;++a)for(var o=t[a],l=i;l&lt;1&lt;&lt;o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f&lt;o.length;++f)l&amp;1&lt;&lt;f&amp;&amp;(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n&lt;i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r&lt;n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=[];n=0;for(var i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0|i.length,o=1,l=1&lt;&lt;a;o&lt;l;++o){for(var c=[],u=0;u&lt;a;++u)o&gt;&gt;&gt;u&amp;1&amp;&amp;c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;++a){for(var l=new Array(i.length-1),c=0,u=0;c&lt;o;++c)c!==a&amp;&amp;(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var s=o+1;s&lt;a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n&lt;c.length;++n)c[n]=-1;for(n=0;n&lt;t.length;++n){var u=r.find(t[n][0]);c[u]&lt;0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h&lt;a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n&lt;d.length;++n)d[n]=-1;for(n=0;n&lt;t.length;++n){var g=r.find(c(e,[t[n][0]]));d[g]&lt;0?(d[g]=p.length,p.push([t[n].slice(0)])):p[d[g]].push(t[n].slice(0))}return p}(t)}},{&quot;bit-twiddle&quot;:104,&quot;union-find&quot;:618}],560:[function(t,e,r){arguments[4][104][0].apply(r,arguments)},{dup:104}],561:[function(t,e,r){arguments[4][559][0].apply(r,arguments)},{&quot;bit-twiddle&quot;:560,dup:559,&quot;union-find&quot;:562}],562:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],563:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f&lt;a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(f=0;f&lt;o;++f){var h=t[f];if(2!==h.length)throw new Error(&quot;Input must be a graph&quot;);var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function g(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f&lt;0||h&lt;0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function m(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,A[r]=e,A[n]=t}function v(t){return c[k[t]]}function y(t){return 1&amp;t?t-1&gt;&gt;1:(t&gt;&gt;1)-1}function x(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n&lt;M){var o=v(n);o&lt;r&amp;&amp;(a=n,r=o)}if(i&lt;M)v(i)&lt;r&amp;&amp;(a=i);if(a===t)return t;m(t,a),t=a}}function b(t){for(var e=v(t);t&gt;0;){var r=y(t);if(r&gt;=0)if(e&lt;v(r)){m(t,r),t=r;continue}return t}}function _(){if(M&gt;0){var t=k[0];return m(0,M-1),M-=1,x(0),t}return-1}function w(t,e){var r=k[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((M+=1)-1))}function T(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]&gt;=0&amp;&amp;(s[r]=e),l[e]&gt;=0&amp;&amp;(l[e]=r),A[e]&gt;=0&amp;&amp;w(A[e],g(e)),A[r]&gt;=0&amp;&amp;w(A[r],g(r))}}var k=[],A=new Array(a);for(f=0;f&lt;a;++f){(c[f]=g(f))&lt;1/0?(A[f]=k.length,k.push(f)):A[f]=-1}var M=k.length;for(f=M&gt;&gt;1;f&gt;=0;--f)x(f);for(;;){var S=_();if(S&lt;0||c[S]&gt;r)break;T(S)}var E=[];for(f=0;f&lt;a;++f)u[f]||(A[f]=E.length,E.push(e[f].slice()));E.length;function L(t,e){if(t[e]&lt;0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i&lt;0||i===n)break;if(i=t[n=i],!u[n]||i&lt;0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var C=[];return t.forEach((function(t){var e=L(s,t[0]),r=L(l,t[1]);if(e&gt;=0&amp;&amp;r&gt;=0&amp;&amp;e!==r){var n=A[e],i=A[r];n!==i&amp;&amp;C.push([n,i])}})),i.unique(i.normalize(C)),{positions:E,edges:C}};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;)},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:561}],564:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,a,o,s;if(e[0][0]&lt;e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]&gt;e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]&lt;t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]&gt;t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(&quot;robust-orientation&quot;);function i(t,e){var r,i,a,o;if(e[0][0]&lt;e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]&gt;e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l&lt;c?l-c:s&gt;u?s-u:l-u}r=e[1],i=e[0]}t[0][1]&lt;t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{&quot;robust-orientation&quot;:548}],565:[function(t,e,r){arguments[4][251][0].apply(r,arguments)},{dup:251}],566:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a&lt;e;++a){var l=t[a],c=l[0][0]&lt;l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort((function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))}));var h=i(o),p=[],d=[],g=[];for(a=0;a&lt;r;){for(var m=n[a].x,v=[];a&lt;r;){var y=n[a];if(y.x!==m)break;a+=1,y.segment[0][0]===y.x&amp;&amp;y.segment[1][0]===y.x?y.create&amp;&amp;(y.segment[0][1]&lt;y.segment[1][1]?(v.push(new u(y.segment[0][1],y.index,!0,!0)),v.push(new u(y.segment[1][1],y.index,!1,!1))):(v.push(new u(y.segment[1][1],y.index,!0,!1)),v.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(m),g.push(v)}return new s(p,d,g)};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;functional-red-black-tree&quot;),a=t(&quot;robust-orientation&quot;),o=t(&quot;./lib/order-segments&quot;);function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]&lt;o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s&lt;0)t=t.left;else if(s&gt;0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e&lt;0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&amp;&amp;(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&amp;&amp;(s=r.key),e&gt;0){var u=c(this.slabs[e-1],t);u&amp;&amp;(s?o(u.key,s)&gt;0&amp;&amp;(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length&gt;0){var h=n.ge(f,t[1],l);if(h&lt;f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h&lt;f.length-1&amp;&amp;f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&amp;&amp;!p.start){if((h+=1)&gt;=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]&gt;s[1][0]&amp;&amp;(d=-d),d&gt;0&amp;&amp;(i=p.index)}else i=p.index;else p.y!==t[1]&amp;&amp;(i=p.index)}}}return i}},{&quot;./lib/order-segments&quot;:564,&quot;binary-search-bounds&quot;:565,&quot;functional-red-black-tree&quot;:255,&quot;robust-orientation&quot;:548}],567:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-dot-product&quot;),i=t(&quot;robust-sum&quot;);function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i&lt;0?i=0:i&gt;1&amp;&amp;(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l&lt;o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c&lt;t.length;++c,s=l){var u=a(l=t[c],e);if(i&lt;0&amp;&amp;u&gt;0||i&gt;0&amp;&amp;u&lt;0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u&lt;0?n.push(l.slice()):u&gt;0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&gt;=0&amp;&amp;r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&lt;=0&amp;&amp;r.push(s.slice()),n=c}return r}},{&quot;robust-dot-product&quot;:545,&quot;robust-sum&quot;:553}],568:[function(t,e,r){!function(){&quot;use strict&quot;;var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(t){return i(o(t),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}function i(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,g=&quot;&quot;;for(a=0;a&lt;d;a++)if(&quot;string&quot;==typeof r[a])g+=r[a];else if(&quot;object&quot;==typeof r[a]){if((s=r[a]).keys)for(i=n[p],o=0;o&lt;s.keys.length;o++){if(null==i)throw new Error(e('[sprintf] Cannot access property &quot;%s&quot; of undefined value &quot;%s&quot;',s.keys[o],s.keys[o-1]));i=i[s.keys[o]]}else i=s.param_no?n[s.param_no]:n[p++];if(t.not_type.test(s.type)&amp;&amp;t.not_primitive.test(s.type)&amp;&amp;i instanceof Function&amp;&amp;(i=i()),t.numeric_arg.test(s.type)&amp;&amp;&quot;number&quot;!=typeof i&amp;&amp;isNaN(i))throw new TypeError(e(&quot;[sprintf] expecting number but found %T&quot;,i));switch(t.number.test(s.type)&amp;&amp;(f=i&gt;=0),s.type){case&quot;b&quot;:i=parseInt(i,10).toString(2);break;case&quot;c&quot;:i=String.fromCharCode(parseInt(i,10));break;case&quot;d&quot;:case&quot;i&quot;:i=parseInt(i,10);break;case&quot;j&quot;:i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case&quot;e&quot;:i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case&quot;f&quot;:i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case&quot;g&quot;:i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case&quot;o&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(8);break;case&quot;s&quot;:i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;t&quot;:i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;T&quot;:i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;u&quot;:i=parseInt(i,10)&gt;&gt;&gt;0;break;case&quot;v&quot;:i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;x&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16);break;case&quot;X&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16).toUpperCase()}t.json.test(s.type)?g+=i:(!t.number.test(s.type)||f&amp;&amp;!s.sign?h=&quot;&quot;:(h=f?&quot;+&quot;:&quot;-&quot;,i=i.toString().replace(t.sign,&quot;&quot;)),c=s.pad_char?&quot;0&quot;===s.pad_char?&quot;0&quot;:s.pad_char.charAt(1):&quot; &quot;,u=s.width-(h+i).length,l=s.width&amp;&amp;u&gt;0?c.repeat(u):&quot;&quot;,g+=s.align?h+i+l:&quot;0&quot;===c?h+l+i:l+h+i)}return g}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var r,n=e,i=[],o=0;n;){if(null!==(r=t.text.exec(n)))i.push(r[0]);else if(null!==(r=t.modulo.exec(n)))i.push(&quot;%&quot;);else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(&quot;[sprintf] unexpected placeholder&quot;);if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);for(s.push(c[1]);&quot;&quot;!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(&quot;[sprintf] mixing positional and named placeholders is not (yet) supported&quot;);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return a[e]=i}void 0!==r&amp;&amp;(r.sprintf=e,r.vsprintf=n),&quot;undefined&quot;!=typeof window&amp;&amp;(window.sprintf=e,window.vsprintf=n)}()},{}],569:[function(t,e,r){e.exports=i;var n=t(&quot;events&quot;).EventEmitter;function i(){n.call(this)}t(&quot;inherits&quot;)(i,n),i.Readable=t(&quot;readable-stream/lib/_stream_readable.js&quot;),i.Writable=t(&quot;readable-stream/lib/_stream_writable.js&quot;),i.Duplex=t(&quot;readable-stream/lib/_stream_duplex.js&quot;),i.Transform=t(&quot;readable-stream/lib/_stream_transform.js&quot;),i.PassThrough=t(&quot;readable-stream/lib/_stream_passthrough.js&quot;),i.finished=t(&quot;readable-stream/lib/internal/streams/end-of-stream.js&quot;),i.pipeline=t(&quot;readable-stream/lib/internal/streams/pipeline.js&quot;),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&amp;&amp;!1===t.write(e)&amp;&amp;r.pause&amp;&amp;r.pause()}function a(){r.readable&amp;&amp;r.resume&amp;&amp;r.resume()}r.on(&quot;data&quot;,i),t.on(&quot;drain&quot;,a),t._isStdio||e&amp;&amp;!1===e.end||(r.on(&quot;end&quot;,s),r.on(&quot;close&quot;,l));var o=!1;function s(){o||(o=!0,t.end())}function l(){o||(o=!0,&quot;function&quot;==typeof t.destroy&amp;&amp;t.destroy())}function c(t){if(u(),0===n.listenerCount(this,&quot;error&quot;))throw t}function u(){r.removeListener(&quot;data&quot;,i),t.removeListener(&quot;drain&quot;,a),r.removeListener(&quot;end&quot;,s),r.removeListener(&quot;close&quot;,l),r.removeListener(&quot;error&quot;,c),t.removeListener(&quot;error&quot;,c),r.removeListener(&quot;end&quot;,u),r.removeListener(&quot;close&quot;,u),t.removeListener(&quot;close&quot;,u)}return r.on(&quot;error&quot;,c),t.on(&quot;error&quot;,c),r.on(&quot;end&quot;,u),r.on(&quot;close&quot;,u),t.on(&quot;close&quot;,u),t.emit(&quot;pipe&quot;,r),t}},{events:116,inherits:447,&quot;readable-stream/lib/_stream_duplex.js&quot;:571,&quot;readable-stream/lib/_stream_passthrough.js&quot;:572,&quot;readable-stream/lib/_stream_readable.js&quot;:573,&quot;readable-stream/lib/_stream_transform.js&quot;:574,&quot;readable-stream/lib/_stream_writable.js&quot;:575,&quot;readable-stream/lib/internal/streams/end-of-stream.js&quot;:579,&quot;readable-stream/lib/internal/streams/pipeline.js&quot;:581}],570:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t,e,r){r||(r=Error);var i=function(t){var r,n;function i(r,n,i){return t.call(this,function(t,r,n){return&quot;string&quot;==typeof e?e:e(t,r,n)}(r,n,i))||this}return n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=t,n[t]=i}function a(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r&gt;2?&quot;one of &quot;.concat(e,&quot; &quot;).concat(t.slice(0,r-1).join(&quot;, &quot;),&quot;, or &quot;)+t[r-1]:2===r?&quot;one of &quot;.concat(e,&quot; &quot;).concat(t[0],&quot; or &quot;).concat(t[1]):&quot;of &quot;.concat(e,&quot; &quot;).concat(t[0])}return&quot;of &quot;.concat(e,&quot; &quot;).concat(String(t))}i(&quot;ERR_INVALID_OPT_VALUE&quot;,(function(t,e){return'The value &quot;'+e+'&quot; is invalid for option &quot;'+t+'&quot;'}),TypeError),i(&quot;ERR_INVALID_ARG_TYPE&quot;,(function(t,e,r){var n,i,o,s;if(&quot;string&quot;==typeof e&amp;&amp;(i=&quot;not &quot;,e.substr(!o||o&lt;0?0:+o,i.length)===i)?(n=&quot;must not be&quot;,e=e.replace(/^not /,&quot;&quot;)):n=&quot;must be&quot;,function(t,e,r){return(void 0===r||r&gt;t.length)&amp;&amp;(r=t.length),t.substring(r-e.length,r)===e}(t,&quot; argument&quot;))s=&quot;The &quot;.concat(t,&quot; &quot;).concat(n,&quot; &quot;).concat(a(e,&quot;type&quot;));else{var l=function(t,e,r){return&quot;number&quot;!=typeof r&amp;&amp;(r=0),!(r+e.length&gt;t.length)&amp;&amp;-1!==t.indexOf(e,r)}(t,&quot;.&quot;)?&quot;property&quot;:&quot;argument&quot;;s='The &quot;'.concat(t,'&quot; ').concat(l,&quot; &quot;).concat(n,&quot; &quot;).concat(a(e,&quot;type&quot;))}return s+=&quot;. Received type &quot;.concat(typeof r)}),TypeError),i(&quot;ERR_STREAM_PUSH_AFTER_EOF&quot;,&quot;stream.push() after EOF&quot;),i(&quot;ERR_METHOD_NOT_IMPLEMENTED&quot;,(function(t){return&quot;The &quot;+t+&quot; method is not implemented&quot;})),i(&quot;ERR_STREAM_PREMATURE_CLOSE&quot;,&quot;Premature close&quot;),i(&quot;ERR_STREAM_DESTROYED&quot;,(function(t){return&quot;Cannot call &quot;+t+&quot; after a stream was destroyed&quot;})),i(&quot;ERR_MULTIPLE_CALLBACK&quot;,&quot;Callback called multiple times&quot;),i(&quot;ERR_STREAM_CANNOT_PIPE&quot;,&quot;Cannot pipe, not readable&quot;),i(&quot;ERR_STREAM_WRITE_AFTER_END&quot;,&quot;write after end&quot;),i(&quot;ERR_STREAM_NULL_VALUES&quot;,&quot;May not write null values to stream&quot;,TypeError),i(&quot;ERR_UNKNOWN_ENCODING&quot;,(function(t){return&quot;Unknown encoding: &quot;+t}),TypeError),i(&quot;ERR_STREAM_UNSHIFT_AFTER_END_EVENT&quot;,&quot;stream.unshift() after end event&quot;),e.exports.codes=n},{}],571:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=c;var i=t(&quot;./_stream_readable&quot;),a=t(&quot;./_stream_writable&quot;);t(&quot;inherits&quot;)(c,i);for(var o=n(a.prototype),s=0;s&lt;o.length;s++){var l=o[s];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&amp;&amp;(!1===t.readable&amp;&amp;(this.readable=!1),!1===t.writable&amp;&amp;(this.writable=!1),!1===t.allowHalfOpen&amp;&amp;(this.allowHalfOpen=!1,this.once(&quot;end&quot;,u)))}function u(){this._writableState.ended||r.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,&quot;writableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,&quot;writableBuffer&quot;,{enumerable:!1,get:function(){return this._writableState&amp;&amp;this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,&quot;writableLength&quot;,{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return void 0!==this._readableState&amp;&amp;void 0!==this._writableState&amp;&amp;(this._readableState.destroyed&amp;&amp;this._writableState.destroyed)},set:function(t){void 0!==this._readableState&amp;&amp;void 0!==this._writableState&amp;&amp;(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./_stream_readable&quot;:573,&quot;./_stream_writable&quot;:575,_process:528,inherits:447}],572:[function(t,e,r){&quot;use strict&quot;;e.exports=i;var n=t(&quot;./_stream_transform&quot;);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}t(&quot;inherits&quot;)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},{&quot;./_stream_transform&quot;:574,inherits:447}],573:[function(t,e,r){(function(r,n){(function(){&quot;use strict&quot;;var i;e.exports=A,A.ReadableState=k;t(&quot;events&quot;).EventEmitter;var a=function(t,e){return t.listeners(e).length},o=t(&quot;./internal/streams/stream&quot;),s=t(&quot;buffer&quot;).Buffer,l=n.Uint8Array||function(){};var c,u=t(&quot;util&quot;);c=u&amp;&amp;u.debuglog?u.debuglog(&quot;stream&quot;):function(){};var f,h,p,d=t(&quot;./internal/streams/buffer_list&quot;),g=t(&quot;./internal/streams/destroy&quot;),m=t(&quot;./internal/streams/state&quot;).getHighWaterMark,v=t(&quot;../errors&quot;).codes,y=v.ERR_INVALID_ARG_TYPE,x=v.ERR_STREAM_PUSH_AFTER_EOF,b=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t(&quot;inherits&quot;)(A,o);var w=g.errorOrDestroy,T=[&quot;error&quot;,&quot;close&quot;,&quot;destroy&quot;,&quot;pause&quot;,&quot;resume&quot;];function k(e,r,n){i=i||t(&quot;./_stream_duplex&quot;),e=e||{},&quot;boolean&quot;!=typeof n&amp;&amp;(n=r instanceof i),this.objectMode=!!e.objectMode,n&amp;&amp;(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,&quot;readableHighWaterMark&quot;,n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||&quot;utf8&quot;,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&amp;&amp;(f||(f=t(&quot;string_decoder/&quot;).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function A(e){if(i=i||t(&quot;./_stream_duplex&quot;),!(this instanceof A))return new A(e);var r=this instanceof i;this._readableState=new k(e,this,r),this.readable=!0,e&amp;&amp;(&quot;function&quot;==typeof e.read&amp;&amp;(this._read=e.read),&quot;function&quot;==typeof e.destroy&amp;&amp;(this._destroy=e.destroy)),o.call(this)}function M(t,e,r,n,i){c(&quot;readableAddChunk&quot;,e);var a,o=t._readableState;if(null===e)o.reading=!1,function(t,e){if(c(&quot;onEofChunk&quot;),e.ended)return;if(e.decoder){var r=e.decoder.end();r&amp;&amp;r.length&amp;&amp;(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?L(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,C(t)))}(t,o);else if(i||(a=function(t,e){var r;n=e,s.isBuffer(n)||n instanceof l||&quot;string&quot;==typeof e||void 0===e||t.objectMode||(r=new y(&quot;chunk&quot;,[&quot;string&quot;,&quot;Buffer&quot;,&quot;Uint8Array&quot;],e));var n;return r}(o,e)),a)w(t,a);else if(o.objectMode||e&amp;&amp;e.length&gt;0)if(&quot;string&quot;==typeof e||o.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)o.endEmitted?w(t,new _):S(t,o,e,!0);else if(o.ended)w(t,new x);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&amp;&amp;!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?S(t,o,e,!1):P(t,o)):S(t,o,e,!1)}else n||(o.reading=!1,P(t,o));return!o.ended&amp;&amp;(o.length&lt;o.highWaterMark||0===o.length)}function S(t,e,r,n){e.flowing&amp;&amp;0===e.length&amp;&amp;!e.sync?(e.awaitDrain=0,t.emit(&quot;data&quot;,r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&amp;&amp;L(t)),P(t,e)}Object.defineProperty(A.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return void 0!==this._readableState&amp;&amp;this._readableState.destroyed},set:function(t){this._readableState&amp;&amp;(this._readableState.destroyed=t)}}),A.prototype.destroy=g.destroy,A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(t,e){e(t)},A.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:&quot;string&quot;==typeof t&amp;&amp;((e=e||n.defaultEncoding)!==n.encoding&amp;&amp;(t=s.from(t,e),e=&quot;&quot;),r=!0),M(this,t,e,!1,r)},A.prototype.unshift=function(t){return M(this,t,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){f||(f=t(&quot;string_decoder/&quot;).StringDecoder);var r=new f(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i=&quot;&quot;;null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),&quot;&quot;!==i&amp;&amp;this._readableState.buffer.push(i),this._readableState.length=i.length,this};function E(t,e){return t&lt;=0||0===e.length&amp;&amp;e.ended?0:e.objectMode?1:t!=t?e.flowing&amp;&amp;e.length?e.buffer.head.data.length:e.length:(t&gt;e.highWaterMark&amp;&amp;(e.highWaterMark=function(t){return t&gt;=1073741824?t=1073741824:(t--,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,t|=t&gt;&gt;&gt;16,t++),t}(t)),t&lt;=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function L(t){var e=t._readableState;c(&quot;emitReadable&quot;,e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c(&quot;emitReadable&quot;,e.flowing),e.emittedReadable=!0,r.nextTick(C,t))}function C(t){var e=t._readableState;c(&quot;emitReadable_&quot;,e.destroyed,e.length,e.ended),e.destroyed||!e.length&amp;&amp;!e.ended||(t.emit(&quot;readable&quot;),e.emittedReadable=!1),e.needReadable=!e.flowing&amp;&amp;!e.ended&amp;&amp;e.length&lt;=e.highWaterMark,R(t)}function P(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(I,t,e))}function I(t,e){for(;!e.reading&amp;&amp;!e.ended&amp;&amp;(e.length&lt;e.highWaterMark||e.flowing&amp;&amp;0===e.length);){var r=e.length;if(c(&quot;maybeReadMore read 0&quot;),t.read(0),r===e.length)break}e.readingMore=!1}function O(t){var e=t._readableState;e.readableListening=t.listenerCount(&quot;readable&quot;)&gt;0,e.resumeScheduled&amp;&amp;!e.paused?e.flowing=!0:t.listenerCount(&quot;data&quot;)&gt;0&amp;&amp;t.resume()}function z(t){c(&quot;readable nexttick read 0&quot;),t.read(0)}function D(t,e){c(&quot;resume&quot;,e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit(&quot;resume&quot;),R(t),e.flowing&amp;&amp;!e.reading&amp;&amp;t.read(0)}function R(t){var e=t._readableState;for(c(&quot;flow&quot;,e.flowing);e.flowing&amp;&amp;null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t&gt;=e.length?(r=e.decoder?e.buffer.join(&quot;&quot;):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function B(t){var e=t._readableState;c(&quot;endReadable&quot;,e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(N,e,t))}function N(t,e){if(c(&quot;endReadableNT&quot;,t.endEmitted,t.length),!t.endEmitted&amp;&amp;0===t.length&amp;&amp;(t.endEmitted=!0,e.readable=!1,e.emit(&quot;end&quot;),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&amp;&amp;r.finished)&amp;&amp;e.destroy()}}function j(t,e){for(var r=0,n=t.length;r&lt;n;r++)if(t[r]===e)return r;return-1}A.prototype.read=function(t){c(&quot;read&quot;,t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&amp;&amp;(e.emittedReadable=!1),0===t&amp;&amp;e.needReadable&amp;&amp;((0!==e.highWaterMark?e.length&gt;=e.highWaterMark:e.length&gt;0)||e.ended))return c(&quot;read: emitReadable&quot;,e.length,e.ended),0===e.length&amp;&amp;e.ended?B(this):L(this),null;if(0===(t=E(t,e))&amp;&amp;e.ended)return 0===e.length&amp;&amp;B(this),null;var n,i=e.needReadable;return c(&quot;need readable&quot;,i),(0===e.length||e.length-t&lt;e.highWaterMark)&amp;&amp;c(&quot;length less than watermark&quot;,i=!0),e.ended||e.reading?c(&quot;reading or ended&quot;,i=!1):i&amp;&amp;(c(&quot;do read&quot;),e.reading=!0,e.sync=!0,0===e.length&amp;&amp;(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(r,e))),null===(n=t&gt;0?F(t,e):null)?(e.needReadable=e.length&lt;=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&amp;&amp;(e.ended||(e.needReadable=!0),r!==t&amp;&amp;e.ended&amp;&amp;B(this)),null!==n&amp;&amp;this.emit(&quot;data&quot;,n),n},A.prototype._read=function(t){w(this,new b(&quot;_read()&quot;))},A.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,c(&quot;pipe count=%d opts=%j&quot;,i.pipesCount,e);var o=(!e||!1!==e.end)&amp;&amp;t!==r.stdout&amp;&amp;t!==r.stderr?l:m;function s(e,r){c(&quot;onunpipe&quot;),e===n&amp;&amp;r&amp;&amp;!1===r.hasUnpiped&amp;&amp;(r.hasUnpiped=!0,c(&quot;cleanup&quot;),t.removeListener(&quot;close&quot;,d),t.removeListener(&quot;finish&quot;,g),t.removeListener(&quot;drain&quot;,u),t.removeListener(&quot;error&quot;,p),t.removeListener(&quot;unpipe&quot;,s),n.removeListener(&quot;end&quot;,l),n.removeListener(&quot;end&quot;,m),n.removeListener(&quot;data&quot;,h),f=!0,!i.awaitDrain||t._writableState&amp;&amp;!t._writableState.needDrain||u())}function l(){c(&quot;onend&quot;),t.end()}i.endEmitted?r.nextTick(o):n.once(&quot;end&quot;,o),t.on(&quot;unpipe&quot;,s);var u=function(t){return function(){var e=t._readableState;c(&quot;pipeOnDrain&quot;,e.awaitDrain),e.awaitDrain&amp;&amp;e.awaitDrain--,0===e.awaitDrain&amp;&amp;a(t,&quot;data&quot;)&amp;&amp;(e.flowing=!0,R(t))}}(n);t.on(&quot;drain&quot;,u);var f=!1;function h(e){c(&quot;ondata&quot;);var r=t.write(e);c(&quot;dest.write&quot;,r),!1===r&amp;&amp;((1===i.pipesCount&amp;&amp;i.pipes===t||i.pipesCount&gt;1&amp;&amp;-1!==j(i.pipes,t))&amp;&amp;!f&amp;&amp;(c(&quot;false write response, pause&quot;,i.awaitDrain),i.awaitDrain++),n.pause())}function p(e){c(&quot;onerror&quot;,e),m(),t.removeListener(&quot;error&quot;,p),0===a(t,&quot;error&quot;)&amp;&amp;w(t,e)}function d(){t.removeListener(&quot;finish&quot;,g),m()}function g(){c(&quot;onfinish&quot;),t.removeListener(&quot;close&quot;,d),m()}function m(){c(&quot;unpipe&quot;),n.unpipe(t)}return n.on(&quot;data&quot;,h),function(t,e,r){if(&quot;function&quot;==typeof t.prependListener)return t.prependListener(e,r);t._events&amp;&amp;t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,&quot;error&quot;,p),t.once(&quot;close&quot;,d),t.once(&quot;finish&quot;,g),t.emit(&quot;pipe&quot;,n),i.flowing||(c(&quot;pipe resume&quot;),n.resume()),t},A.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&amp;&amp;t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&amp;&amp;t.emit(&quot;unpipe&quot;,this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a&lt;i;a++)n[a].emit(&quot;unpipe&quot;,this,{hasUnpiped:!1});return this}var o=j(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&amp;&amp;(e.pipes=e.pipes[0]),t.emit(&quot;unpipe&quot;,this,r)),this},A.prototype.on=function(t,e){var n=o.prototype.on.call(this,t,e),i=this._readableState;return&quot;data&quot;===t?(i.readableListening=this.listenerCount(&quot;readable&quot;)&gt;0,!1!==i.flowing&amp;&amp;this.resume()):&quot;readable&quot;===t&amp;&amp;(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c(&quot;on readable&quot;,i.length,i.reading),i.length?L(this):i.reading||r.nextTick(z,this))),n},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(t,e){var n=o.prototype.removeListener.call(this,t,e);return&quot;readable&quot;===t&amp;&amp;r.nextTick(O,this),n},A.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return&quot;readable&quot;!==t&amp;&amp;void 0!==t||r.nextTick(O,this),e},A.prototype.resume=function(){var t=this._readableState;return t.flowing||(c(&quot;resume&quot;),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(D,t,e))}(this,t)),t.paused=!1,this},A.prototype.pause=function(){return c(&quot;call pause flowing=%j&quot;,this._readableState.flowing),!1!==this._readableState.flowing&amp;&amp;(c(&quot;pause&quot;),this._readableState.flowing=!1,this.emit(&quot;pause&quot;)),this._readableState.paused=!0,this},A.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on(&quot;end&quot;,(function(){if(c(&quot;wrapped end&quot;),r.decoder&amp;&amp;!r.ended){var t=r.decoder.end();t&amp;&amp;t.length&amp;&amp;e.push(t)}e.push(null)})),t.on(&quot;data&quot;,(function(i){(c(&quot;wrapped data&quot;),r.decoder&amp;&amp;(i=r.decoder.write(i)),r.objectMode&amp;&amp;null==i)||(r.objectMode||i&amp;&amp;i.length)&amp;&amp;(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&amp;&amp;&quot;function&quot;==typeof t[i]&amp;&amp;(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a&lt;T.length;a++)t.on(T[a],this.emit.bind(this,T[a]));return this._read=function(e){c(&quot;wrapped _read&quot;,e),n&amp;&amp;(n=!1,t.resume())},this},&quot;function&quot;==typeof Symbol&amp;&amp;(A.prototype[Symbol.asyncIterator]=function(){return void 0===h&amp;&amp;(h=t(&quot;./internal/streams/async_iterator&quot;)),h(this)}),Object.defineProperty(A.prototype,&quot;readableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,&quot;readableBuffer&quot;,{enumerable:!1,get:function(){return this._readableState&amp;&amp;this._readableState.buffer}}),Object.defineProperty(A.prototype,&quot;readableFlowing&quot;,{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&amp;&amp;(this._readableState.flowing=t)}}),A._fromList=F,Object.defineProperty(A.prototype,&quot;readableLength&quot;,{enumerable:!1,get:function(){return this._readableState.length}}),&quot;function&quot;==typeof Symbol&amp;&amp;(A.from=function(e,r){return void 0===p&amp;&amp;(p=t(&quot;./internal/streams/from&quot;)),p(A,e,r)})}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;../errors&quot;:570,&quot;./_stream_duplex&quot;:571,&quot;./internal/streams/async_iterator&quot;:576,&quot;./internal/streams/buffer_list&quot;:577,&quot;./internal/streams/destroy&quot;:578,&quot;./internal/streams/from&quot;:580,&quot;./internal/streams/state&quot;:582,&quot;./internal/streams/stream&quot;:583,_process:528,buffer:117,events:116,inherits:447,&quot;string_decoder/&quot;:584,util:115}],574:[function(t,e,r){&quot;use strict&quot;;e.exports=u;var n=t(&quot;../errors&quot;).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=t(&quot;./_stream_duplex&quot;);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit(&quot;error&quot;,new a);r.writechunk=null,r.writecb=null,null!=e&amp;&amp;this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length&lt;i.highWaterMark)&amp;&amp;this._read(i.highWaterMark)}function u(t){if(!(this instanceof u))return new u(t);l.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&amp;&amp;(&quot;function&quot;==typeof t.transform&amp;&amp;(this._transform=t.transform),&quot;function&quot;==typeof t.flush&amp;&amp;(this._flush=t.flush)),this.on(&quot;prefinish&quot;,f)}function f(){var t=this;&quot;function&quot;!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(e,r){h(t,e,r)}))}function h(t,e,r){if(e)return t.emit(&quot;error&quot;,e);if(null!=r&amp;&amp;t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new o;return t.push(null)}t(&quot;inherits&quot;)(u,l),u.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},u.prototype._transform=function(t,e,r){r(new i(&quot;_transform()&quot;))},u.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length&lt;i.highWaterMark)&amp;&amp;this._read(i.highWaterMark)}},u.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},u.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},{&quot;../errors&quot;:570,&quot;./_stream_duplex&quot;:571,inherits:447}],575:[function(t,e,r){(function(r,n){(function(){&quot;use strict&quot;;function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var a;e.exports=A,A.WritableState=k;var o={deprecate:t(&quot;util-deprecate&quot;)},s=t(&quot;./internal/streams/stream&quot;),l=t(&quot;buffer&quot;).Buffer,c=n.Uint8Array||function(){};var u,f=t(&quot;./internal/streams/destroy&quot;),h=t(&quot;./internal/streams/state&quot;).getHighWaterMark,p=t(&quot;../errors&quot;).codes,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,m=p.ERR_MULTIPLE_CALLBACK,v=p.ERR_STREAM_CANNOT_PIPE,y=p.ERR_STREAM_DESTROYED,x=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,w=f.errorOrDestroy;function T(){}function k(e,n,o){a=a||t(&quot;./_stream_duplex&quot;),e=e||{},&quot;boolean&quot;!=typeof o&amp;&amp;(o=n instanceof a),this.objectMode=!!e.objectMode,o&amp;&amp;(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,&quot;writableHighWaterMark&quot;,o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||&quot;utf8&quot;,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(&quot;function&quot;!=typeof a)throw new m;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,a){--e.pendingcb,n?(r.nextTick(a,i),r.nextTick(P,t,e),t._writableState.errorEmitted=!0,w(t,i)):(a(i),t._writableState.errorEmitted=!0,w(t,i),P(t,e))}(t,n,i,e,a);else{var o=L(n)||t.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||E(t,n),i?r.nextTick(S,t,n,o,a):S(t,n,o,a)}}(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function A(e){var r=this instanceof(a=a||t(&quot;./_stream_duplex&quot;));if(!r&amp;&amp;!u.call(A,this))return new A(e);this._writableState=new k(e,this,r),this.writable=!0,e&amp;&amp;(&quot;function&quot;==typeof e.write&amp;&amp;(this._write=e.write),&quot;function&quot;==typeof e.writev&amp;&amp;(this._writev=e.writev),&quot;function&quot;==typeof e.destroy&amp;&amp;(this._destroy=e.destroy),&quot;function&quot;==typeof e.final&amp;&amp;(this._final=e.final)),s.call(this)}function M(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y(&quot;write&quot;)):r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function S(t,e,r,n){r||function(t,e){0===e.length&amp;&amp;e.needDrain&amp;&amp;(e.needDrain=!1,t.emit(&quot;drain&quot;))}(t,e),e.pendingcb--,n(),P(t,e)}function E(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&amp;&amp;r&amp;&amp;r.next){var n=e.bufferedRequestCount,a=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,l=!0;r;)a[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;a.allBuffers=l,M(t,e,!0,e.length,a,&quot;&quot;,o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,f=r.callback;if(M(t,e,!1,e.objectMode?1:c.length,c,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&amp;&amp;(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function L(t){return t.ending&amp;&amp;0===t.length&amp;&amp;null===t.bufferedRequest&amp;&amp;!t.finished&amp;&amp;!t.writing}function C(t,e){t._final((function(r){e.pendingcb--,r&amp;&amp;w(t,r),e.prefinished=!0,t.emit(&quot;prefinish&quot;),P(t,e)}))}function P(t,e){var n=L(e);if(n&amp;&amp;(function(t,e){e.prefinished||e.finalCalled||(&quot;function&quot;!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit(&quot;prefinish&quot;)):(e.pendingcb++,e.finalCalled=!0,r.nextTick(C,t,e)))}(t,e),0===e.pendingcb&amp;&amp;(e.finished=!0,t.emit(&quot;finish&quot;),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&amp;&amp;i.endEmitted)&amp;&amp;t.destroy()}return n}t(&quot;inherits&quot;)(A,s),k.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(k.prototype,&quot;buffer&quot;,{get:o.deprecate((function(){return this.getBuffer()}),&quot;_writableState.buffer is deprecated. Use _writableState.getBuffer instead.&quot;,&quot;DEP0003&quot;)})}catch(t){}}(),&quot;function&quot;==typeof Symbol&amp;&amp;Symbol.hasInstance&amp;&amp;&quot;function&quot;==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(t){return!!u.call(this,t)||this===A&amp;&amp;(t&amp;&amp;t._writableState instanceof k)}})):u=function(t){return t instanceof this},A.prototype.pipe=function(){w(this,new v)},A.prototype.write=function(t,e,n){var i,a=this._writableState,o=!1,s=!a.objectMode&amp;&amp;(i=t,l.isBuffer(i)||i instanceof c);return s&amp;&amp;!l.isBuffer(t)&amp;&amp;(t=function(t){return l.from(t)}(t)),&quot;function&quot;==typeof e&amp;&amp;(n=e,e=null),s?e=&quot;buffer&quot;:e||(e=a.defaultEncoding),&quot;function&quot;!=typeof n&amp;&amp;(n=T),a.ending?function(t,e){var n=new b;w(t,n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var a;return null===n?a=new x:&quot;string&quot;==typeof n||e.objectMode||(a=new d(&quot;chunk&quot;,[&quot;string&quot;,&quot;Buffer&quot;],n)),!a||(w(t,a),r.nextTick(i,a),!1)}(this,a,t,n))&amp;&amp;(a.pendingcb++,o=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||&quot;string&quot;!=typeof e||(e=l.from(e,r));return e}(e,n,i);n!==o&amp;&amp;(r=!0,i=&quot;buffer&quot;,n=o)}var s=e.objectMode?1:n.length;e.length+=s;var c=e.length&lt;e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else M(t,e,!1,s,n,i,a);return c}(this,a,s,t,e,n)),o},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var t=this._writableState;t.corked&amp;&amp;(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||E(this,t))},A.prototype.setDefaultEncoding=function(t){if(&quot;string&quot;==typeof t&amp;&amp;(t=t.toLowerCase()),!([&quot;hex&quot;,&quot;utf8&quot;,&quot;utf-8&quot;,&quot;ascii&quot;,&quot;binary&quot;,&quot;base64&quot;,&quot;ucs2&quot;,&quot;ucs-2&quot;,&quot;utf16le&quot;,&quot;utf-16le&quot;,&quot;raw&quot;].indexOf((t+&quot;&quot;).toLowerCase())&gt;-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,&quot;writableBuffer&quot;,{enumerable:!1,get:function(){return this._writableState&amp;&amp;this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,&quot;writableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,r){r(new g(&quot;_write()&quot;))},A.prototype._writev=null,A.prototype.end=function(t,e,n){var i=this._writableState;return&quot;function&quot;==typeof t?(n=t,t=null,e=null):&quot;function&quot;==typeof e&amp;&amp;(n=e,e=null),null!=t&amp;&amp;this.write(t,e),i.corked&amp;&amp;(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,P(t,e),n&amp;&amp;(e.finished?r.nextTick(n):t.once(&quot;finish&quot;,n));e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(A.prototype,&quot;writableLength&quot;,{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return void 0!==this._writableState&amp;&amp;this._writableState.destroyed},set:function(t){this._writableState&amp;&amp;(this._writableState.destroyed=t)}}),A.prototype.destroy=f.destroy,A.prototype._undestroy=f.undestroy,A.prototype._destroy=function(t,e){e(t)}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;../errors&quot;:570,&quot;./_stream_duplex&quot;:571,&quot;./internal/streams/destroy&quot;:578,&quot;./internal/streams/state&quot;:582,&quot;./internal/streams/stream&quot;:583,_process:528,buffer:117,inherits:447,&quot;util-deprecate&quot;:622}],576:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=t(&quot;./end-of-stream&quot;),o=Symbol(&quot;lastResolve&quot;),s=Symbol(&quot;lastReject&quot;),l=Symbol(&quot;error&quot;),c=Symbol(&quot;ended&quot;),u=Symbol(&quot;lastPromise&quot;),f=Symbol(&quot;handlePromise&quot;),h=Symbol(&quot;stream&quot;);function p(t,e){return{value:t,done:e}}function d(t){var e=t[o];if(null!==e){var r=t[h].read();null!==r&amp;&amp;(t[u]=null,t[o]=null,t[s]=null,e(p(r,!1)))}}function g(t){r.nextTick(d,t)}var m=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(e,n){r.nextTick((function(){t[l]?n(t[l]):e(p(void 0,!0))}))}));var n,i=this[u];if(i)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(p(void 0,!0)):e[f](r,n)}),n)}}(i,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(p(a,!1));n=new Promise(this[f])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,&quot;return&quot;,(function(){var t=this;return new Promise((function(e,r){t[h].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),n),m);e.exports=function(t){var e,r=Object.create(v,(i(e={},h,{value:t,writable:!0}),i(e,o,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var n=r[h].read();n?(r[u]=null,r[o]=null,r[s]=null,t(p(n,!1))):(r[o]=t,r[s]=e)},writable:!0}),e));return r[u]=null,a(t,(function(t){if(t&amp;&amp;&quot;ERR_STREAM_PREMATURE_CLOSE&quot;!==t.code){var e=r[s];return null!==e&amp;&amp;(r[u]=null,r[o]=null,r[s]=null,e(t)),void(r[l]=t)}var n=r[o];null!==n&amp;&amp;(r[u]=null,r[o]=null,r[s]=null,n(p(void 0,!0))),r[c]=!0})),t.on(&quot;readable&quot;,g.bind(null,r)),r}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./end-of-stream&quot;:579,_process:528}],577:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&amp;&amp;(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,&quot;value&quot;in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=t(&quot;buffer&quot;).Buffer,s=t(&quot;util&quot;).inspect,l=s&amp;&amp;s.custom||&quot;inspect&quot;;e.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(&quot;Cannot call a class as a function&quot;)}(this,t),this.head=null,this.tail=null,this.length=0}var e,r,c;return e=t,(r=[{key:&quot;push&quot;,value:function(t){var e={data:t,next:null};this.length&gt;0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:&quot;unshift&quot;,value:function(t){var e={data:t,next:this.head};0===this.length&amp;&amp;(this.tail=e),this.head=e,++this.length}},{key:&quot;shift&quot;,value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:&quot;clear&quot;,value:function(){this.head=this.tail=null,this.length=0}},{key:&quot;join&quot;,value:function(t){if(0===this.length)return&quot;&quot;;for(var e=this.head,r=&quot;&quot;+e.data;e=e.next;)r+=t+e.data;return r}},{key:&quot;concat&quot;,value:function(t){if(0===this.length)return o.alloc(0);for(var e,r,n,i=o.allocUnsafe(t&gt;&gt;&gt;0),a=this.head,s=0;a;)e=a.data,r=i,n=s,o.prototype.copy.call(e,r,n),s+=a.data.length,a=a.next;return i}},{key:&quot;consume&quot;,value:function(t,e){var r;return t&lt;this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:&quot;first&quot;,value:function(){return this.head.data}},{key:&quot;_getString&quot;,value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,a=t&gt;i.length?i.length:t;if(a===i.length?n+=i:n+=i.slice(0,t),0==(t-=a)){a===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(a));break}++r}return this.length-=r,n}},{key:&quot;_getBuffer&quot;,value:function(t){var e=o.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,a=t&gt;i.length?i.length:t;if(i.copy(e,e.length-t,0,a),0==(t-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return s(this,function(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&amp;&amp;a(e.prototype,r),c&amp;&amp;a(e,c),t}()},{buffer:117,util:115}],578:[function(t,e,r){(function(t){(function(){&quot;use strict&quot;;function r(t,e){i(t,e),n(t)}function n(t){t._writableState&amp;&amp;!t._writableState.emitClose||t._readableState&amp;&amp;!t._readableState.emitClose||t.emit(&quot;close&quot;)}function i(t,e){t.emit(&quot;error&quot;,e)}e.exports={destroy:function(e,a){var o=this,s=this._readableState&amp;&amp;this._readableState.destroyed,l=this._writableState&amp;&amp;this._writableState.destroyed;return s||l?(a?a(e):e&amp;&amp;(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&amp;&amp;(this._readableState.destroyed=!0),this._writableState&amp;&amp;(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!a&amp;&amp;e?o._writableState?o._writableState.errorEmitted?t.nextTick(n,o):(o._writableState.errorEmitted=!0,t.nextTick(r,o,e)):t.nextTick(r,o,e):a?(t.nextTick(n,o),a(e)):t.nextTick(n,o)})),this)},undestroy:function(){this._readableState&amp;&amp;(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&amp;&amp;(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&amp;&amp;r.autoDestroy||n&amp;&amp;n.autoDestroy?t.destroy(e):t.emit(&quot;error&quot;,e)}}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:528}],579:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../errors&quot;).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function t(e,r,a){if(&quot;function&quot;==typeof r)return t(e,null,r);r||(r={}),a=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i&lt;r;i++)n[i]=arguments[i];t.apply(this,n)}}}(a||i);var o=r.readable||!1!==r.readable&amp;&amp;e.readable,s=r.writable||!1!==r.writable&amp;&amp;e.writable,l=function(){e.writable||u()},c=e._writableState&amp;&amp;e._writableState.finished,u=function(){s=!1,c=!0,o||a.call(e)},f=e._readableState&amp;&amp;e._readableState.endEmitted,h=function(){o=!1,f=!0,s||a.call(e)},p=function(t){a.call(e,t)},d=function(){var t;return o&amp;&amp;!f?(e._readableState&amp;&amp;e._readableState.ended||(t=new n),a.call(e,t)):s&amp;&amp;!c?(e._writableState&amp;&amp;e._writableState.ended||(t=new n),a.call(e,t)):void 0},g=function(){e.req.on(&quot;finish&quot;,u)};return!function(t){return t.setHeader&amp;&amp;&quot;function&quot;==typeof t.abort}(e)?s&amp;&amp;!e._writableState&amp;&amp;(e.on(&quot;end&quot;,l),e.on(&quot;close&quot;,l)):(e.on(&quot;complete&quot;,u),e.on(&quot;abort&quot;,d),e.req?g():e.on(&quot;request&quot;,g)),e.on(&quot;end&quot;,h),e.on(&quot;finish&quot;,u),!1!==r.error&amp;&amp;e.on(&quot;error&quot;,p),e.on(&quot;close&quot;,d),function(){e.removeListener(&quot;complete&quot;,u),e.removeListener(&quot;abort&quot;,d),e.removeListener(&quot;request&quot;,g),e.req&amp;&amp;e.req.removeListener(&quot;finish&quot;,u),e.removeListener(&quot;end&quot;,l),e.removeListener(&quot;close&quot;,l),e.removeListener(&quot;finish&quot;,u),e.removeListener(&quot;end&quot;,h),e.removeListener(&quot;error&quot;,p),e.removeListener(&quot;close&quot;,d)}}},{&quot;../../../errors&quot;:570}],580:[function(t,e,r){e.exports=function(){throw new Error(&quot;Readable.from is not available in the browser&quot;)}},{}],581:[function(t,e,r){&quot;use strict&quot;;var n;var i=t(&quot;../../../errors&quot;).codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function l(e,r,i,a){a=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(a);var s=!1;e.on(&quot;close&quot;,(function(){s=!0})),void 0===n&amp;&amp;(n=t(&quot;./end-of-stream&quot;)),n(e,{readable:r,writable:i},(function(t){if(t)return a(t);s=!0,a()}));var l=!1;return function(t){if(!s&amp;&amp;!l)return l=!0,function(t){return t.setHeader&amp;&amp;&quot;function&quot;==typeof t.abort}(e)?e.abort():&quot;function&quot;==typeof e.destroy?e.destroy():void a(t||new o(&quot;pipe&quot;))}}function c(t){t()}function u(t,e){return t.pipe(e)}function f(t){return t.length?&quot;function&quot;!=typeof t[t.length-1]?s:t.pop():s}e.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r&lt;t;r++)e[r]=arguments[r];var n,i=f(e);if(Array.isArray(e[0])&amp;&amp;(e=e[0]),e.length&lt;2)throw new a(&quot;streams&quot;);var o=e.map((function(t,r){var a=r&lt;e.length-1;return l(t,a,r&gt;0,(function(t){n||(n=t),t&amp;&amp;o.forEach(c),a||(o.forEach(c),i(n))}))}));return e.reduce(u)}},{&quot;../../../errors&quot;:570,&quot;./end-of-stream&quot;:579}],582:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../errors&quot;).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(t,e,r,i){var a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a&lt;0)throw new n(i?r:&quot;highWaterMark&quot;,a);return Math.floor(a)}return t.objectMode?16:16384}}},{&quot;../../../errors&quot;:570}],583:[function(t,e,r){e.exports=t(&quot;events&quot;).EventEmitter},{events:116}],584:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;safe-buffer&quot;).Buffer,i=n.isEncoding||function(t){switch((t=&quot;&quot;+t)&amp;&amp;t.toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:case&quot;raw&quot;:return!0;default:return!1}};function a(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return&quot;utf8&quot;;for(var e;;)switch(t){case&quot;utf8&quot;:case&quot;utf-8&quot;:return&quot;utf8&quot;;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return&quot;utf16le&quot;;case&quot;latin1&quot;:case&quot;binary&quot;:return&quot;latin1&quot;;case&quot;base64&quot;:case&quot;ascii&quot;:case&quot;hex&quot;:return t;default:if(e)return;t=(&quot;&quot;+t).toLowerCase(),e=!0}}(t);if(&quot;string&quot;!=typeof e&amp;&amp;(n.isEncoding===i||!i(t)))throw new Error(&quot;Unknown encoding: &quot;+t);return e||t}(t),this.encoding){case&quot;utf16le&quot;:this.text=l,this.end=c,e=4;break;case&quot;utf8&quot;:this.fillLast=s,e=4;break;case&quot;base64&quot;:this.text=u,this.end=f,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t&lt;=127?0:t&gt;&gt;5==6?2:t&gt;&gt;4==14?3:t&gt;&gt;3==30?4:t&gt;&gt;6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&amp;e[0]))return t.lastNeed=0,&quot;\ufffd&quot;;if(t.lastNeed&gt;1&amp;&amp;e.length&gt;1){if(128!=(192&amp;e[1]))return t.lastNeed=1,&quot;\ufffd&quot;;if(t.lastNeed&gt;2&amp;&amp;e.length&gt;2&amp;&amp;128!=(192&amp;e[2]))return t.lastNeed=2,&quot;\ufffd&quot;}}(this,t);return void 0!==r?r:this.lastNeed&lt;=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString(&quot;utf16le&quot;,e);if(r){var n=r.charCodeAt(r.length-1);if(n&gt;=55296&amp;&amp;n&lt;=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(&quot;utf16le&quot;,e,t.length-1)}function c(t){var e=t&amp;&amp;t.length?this.write(t):&quot;&quot;;if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(&quot;utf16le&quot;,0,r)}return e}function u(t,e){var r=(t.length-e)%3;return 0===r?t.toString(&quot;base64&quot;,e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(&quot;base64&quot;,e,t.length-r))}function f(t){var e=t&amp;&amp;t.length?this.write(t):&quot;&quot;;return this.lastNeed?e+this.lastChar.toString(&quot;base64&quot;,0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&amp;&amp;t.length?this.write(t):&quot;&quot;}r.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return&quot;&quot;;var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return&quot;&quot;;r=this.lastNeed,this.lastNeed=0}else r=0;return r&lt;t.length?e?e+this.text(t,r):this.text(t,r):e||&quot;&quot;},a.prototype.end=function(t){var e=t&amp;&amp;t.length?this.write(t):&quot;&quot;;return this.lastNeed?e+&quot;\ufffd&quot;:e},a.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n&lt;r)return 0;var i=o(e[n]);if(i&gt;=0)return i&gt;0&amp;&amp;(t.lastNeed=i-1),i;if(--n&lt;r||-2===i)return 0;if((i=o(e[n]))&gt;=0)return i&gt;0&amp;&amp;(t.lastNeed=i-2),i;if(--n&lt;r||-2===i)return 0;if((i=o(e[n]))&gt;=0)return i&gt;0&amp;&amp;(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString(&quot;utf8&quot;,e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString(&quot;utf8&quot;,e,n)},a.prototype.fillLast=function(t){if(this.lastNeed&lt;=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{&quot;safe-buffer&quot;:554}],585:[function(t,e,r){(function(r,n){(function(){var r=t(&quot;assert&quot;),i=t(&quot;debug&quot;)(&quot;stream-parser&quot;);e.exports=function(t){var e=t&amp;&amp;&quot;function&quot;==typeof t._transform,r=t&amp;&amp;&quot;function&quot;==typeof t._write;if(!e&amp;&amp;!r)throw new Error(&quot;must pass a Writable or Transform stream in&quot;);i(&quot;extending Parser into stream&quot;),t._bytes=o,t._skipBytes=s,e&amp;&amp;(t._passthrough=l);e?t._transform=u:t._write=c};function a(t){i(&quot;initializing parser stream&quot;),t._parserBytesLeft=0,t._parserBuffers=[],t._parserBuffered=0,t._parserState=-1,t._parserCallback=null,&quot;function&quot;==typeof t.push&amp;&amp;(t._parserOutput=t.push.bind(t)),t._parserInit=!0}function o(t,e){r(!this._parserCallback,'there is already a &quot;callback&quot; set!'),r(isFinite(t)&amp;&amp;t&gt;0,'can only buffer a finite number of bytes &gt; 0, got &quot;'+t+'&quot;'),this._parserInit||a(this),i(&quot;buffering %o bytes&quot;,t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=0}function s(t,e){r(!this._parserCallback,'there is already a &quot;callback&quot; set!'),r(t&gt;0,'can only skip &gt; 0 bytes, got &quot;'+t+'&quot;'),this._parserInit||a(this),i(&quot;skipping %o bytes&quot;,t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=1}function l(t,e){r(!this._parserCallback,'There is already a &quot;callback&quot; set!'),r(t&gt;0,'can only pass through &gt; 0 bytes, got &quot;'+t+'&quot;'),this._parserInit||a(this),i(&quot;passing through %o bytes&quot;,t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=2}function c(t,e,r){this._parserInit||a(this),i(&quot;write(%o bytes)&quot;,t.length),&quot;function&quot;==typeof e&amp;&amp;(r=e),h(this,t,null,r)}function u(t,e,r){this._parserInit||a(this),i(&quot;transform(%o bytes)&quot;,t.length),&quot;function&quot;!=typeof e&amp;&amp;(e=this._parserOutput),h(this,t,e,r)}function f(t,e,r,a){if(t._parserBytesLeft-=e.length,i(&quot;%o bytes left for stream piece&quot;,t._parserBytesLeft),0===t._parserState?(t._parserBuffers.push(e),t._parserBuffered+=e.length):2===t._parserState&amp;&amp;r(e),0!==t._parserBytesLeft)return a;var o=t._parserCallback;if(o&amp;&amp;0===t._parserState&amp;&amp;t._parserBuffers.length&gt;1&amp;&amp;(e=n.concat(t._parserBuffers,t._parserBuffered)),0!==t._parserState&amp;&amp;(e=null),t._parserCallback=null,t._parserBuffered=0,t._parserState=-1,t._parserBuffers.splice(0),o){var s=[];e&amp;&amp;s.push(e),r&amp;&amp;s.push(r);var l=o.length&gt;s.length;l&amp;&amp;s.push(p(a));var c=o.apply(t,s);if(!l||a===c)return a}}var h=p((function t(e,r,n,i){return e._parserBytesLeft&lt;=0?i(new Error(&quot;got data but not currently parsing anything&quot;)):r.length&lt;=e._parserBytesLeft?function(){return f(e,r,n,i)}:function(){var a=r.slice(0,e._parserBytesLeft);return f(e,a,n,(function(o){return o?i(o):r.length&gt;a.length?function(){return t(e,r.slice(a.length),n,i)}:void 0}))}}));function p(t){return function(){for(var e=t.apply(this,arguments);&quot;function&quot;==typeof e;)e=e();return e}}}).call(this)}).call(this,t(&quot;_process&quot;),t(&quot;buffer&quot;).Buffer)},{_process:528,assert:80,buffer:117,debug:586}],586:[function(t,e,r){(function(n){(function(){function i(){var t;try{t=r.storage.debug}catch(t){}return!t&amp;&amp;void 0!==n&amp;&amp;&quot;env&quot;in n&amp;&amp;(t=n.env.DEBUG),t}(r=e.exports=t(&quot;./debug&quot;)).log=function(){return&quot;object&quot;==typeof console&amp;&amp;console.log&amp;&amp;Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(t){var e=this.useColors;if(t[0]=(e?&quot;%c&quot;:&quot;&quot;)+this.namespace+(e?&quot; %c&quot;:&quot; &quot;)+t[0]+(e?&quot;%c &quot;:&quot; &quot;)+&quot;+&quot;+r.humanize(this.diff),!e)return;var n=&quot;color: &quot;+this.color;t.splice(1,0,n,&quot;color: inherit&quot;);var i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){&quot;%%&quot;!==t&amp;&amp;(i++,&quot;%c&quot;===t&amp;&amp;(a=i))})),t.splice(a,0,n)},r.save=function(t){try{null==t?r.storage.removeItem(&quot;debug&quot;):r.storage.debug=t}catch(t){}},r.load=i,r.useColors=function(){if(&quot;undefined&quot;!=typeof window&amp;&amp;window.process&amp;&amp;&quot;renderer&quot;===window.process.type)return!0;return&quot;undefined&quot;!=typeof document&amp;&amp;document.documentElement&amp;&amp;document.documentElement.style&amp;&amp;document.documentElement.style.WebkitAppearance||&quot;undefined&quot;!=typeof window&amp;&amp;window.console&amp;&amp;(window.console.firebug||window.console.exception&amp;&amp;window.console.table)||&quot;undefined&quot;!=typeof navigator&amp;&amp;navigator.userAgent&amp;&amp;navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&amp;&amp;parseInt(RegExp.$1,10)&gt;=31||&quot;undefined&quot;!=typeof navigator&amp;&amp;navigator.userAgent&amp;&amp;navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage=&quot;undefined&quot;!=typeof chrome&amp;&amp;void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),r.colors=[&quot;lightseagreen&quot;,&quot;forestgreen&quot;,&quot;goldenrod&quot;,&quot;dodgerblue&quot;,&quot;darkorchid&quot;,&quot;crimson&quot;],r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return&quot;[UnexpectedJSONParseError]: &quot;+t.message}},r.enable(i())}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./debug&quot;:587,_process:528}],587:[function(t,e,r){var n;function i(t){function e(){if(e.enabled){var t=e,i=+new Date,a=i-(n||i);t.diff=a,t.prev=n,t.curr=i,n=i;for(var o=new Array(arguments.length),s=0;s&lt;o.length;s++)o[s]=arguments[s];o[0]=r.coerce(o[0]),&quot;string&quot;!=typeof o[0]&amp;&amp;o.unshift(&quot;%O&quot;);var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(e,n){if(&quot;%%&quot;===e)return e;l++;var i=r.formatters[n];if(&quot;function&quot;==typeof i){var a=o[l];e=i.call(t,a),o.splice(l,1),l--}return e})),r.formatArgs.call(t,o);var c=e.log||r.log||console.log.bind(console);c.apply(t,o)}}return e.namespace=t,e.enabled=r.enabled(t),e.useColors=r.useColors(),e.color=function(t){var e,n=0;for(e in t)n=(n&lt;&lt;5)-n+t.charCodeAt(e),n|=0;return r.colors[Math.abs(n)%r.colors.length]}(t),&quot;function&quot;==typeof r.init&amp;&amp;r.init(e),e}(r=e.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},r.disable=function(){r.enable(&quot;&quot;)},r.enable=function(t){r.save(t),r.names=[],r.skips=[];for(var e=(&quot;string&quot;==typeof t?t:&quot;&quot;).split(/[\s,]+/),n=e.length,i=0;i&lt;n;i++)e[i]&amp;&amp;(&quot;-&quot;===(t=e[i].replace(/\*/g,&quot;.*?&quot;))[0]?r.skips.push(new RegExp(&quot;^&quot;+t.substr(1)+&quot;$&quot;)):r.names.push(new RegExp(&quot;^&quot;+t+&quot;$&quot;)))},r.enabled=function(t){var e,n;for(e=0,n=r.skips.length;e&lt;n;e++)if(r.skips[e].test(t))return!1;for(e=0,n=r.names.length;e&lt;n;e++)if(r.names[e].test(t))return!0;return!1},r.humanize=t(&quot;ms&quot;),r.names=[],r.skips=[],r.formatters={}},{ms:588}],588:[function(t,e,r){var n=1e3,i=6e4,a=60*i,o=24*a;function s(t,e,r){if(!(t&lt;e))return t&lt;1.5*e?Math.floor(t/e)+&quot; &quot;+r:Math.ceil(t/e)+&quot; &quot;+r+&quot;s&quot;}e.exports=function(t,e){e=e||{};var r,l=typeof t;if(&quot;string&quot;===l&amp;&amp;t.length&gt;0)return function(t){if((t=String(t)).length&gt;100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var r=parseFloat(e[1]);switch((e[2]||&quot;ms&quot;).toLowerCase()){case&quot;years&quot;:case&quot;year&quot;:case&quot;yrs&quot;:case&quot;yr&quot;:case&quot;y&quot;:return 315576e5*r;case&quot;days&quot;:case&quot;day&quot;:case&quot;d&quot;:return r*o;case&quot;hours&quot;:case&quot;hour&quot;:case&quot;hrs&quot;:case&quot;hr&quot;:case&quot;h&quot;:return r*a;case&quot;minutes&quot;:case&quot;minute&quot;:case&quot;mins&quot;:case&quot;min&quot;:case&quot;m&quot;:return r*i;case&quot;seconds&quot;:case&quot;second&quot;:case&quot;secs&quot;:case&quot;sec&quot;:case&quot;s&quot;:return r*n;case&quot;milliseconds&quot;:case&quot;millisecond&quot;:case&quot;msecs&quot;:case&quot;msec&quot;:case&quot;ms&quot;:return r;default:return}}(t);if(&quot;number&quot;===l&amp;&amp;!1===isNaN(t))return e.long?s(r=t,o,&quot;day&quot;)||s(r,a,&quot;hour&quot;)||s(r,i,&quot;minute&quot;)||s(r,n,&quot;second&quot;)||r+&quot; ms&quot;:function(t){if(t&gt;=o)return Math.round(t/o)+&quot;d&quot;;if(t&gt;=a)return Math.round(t/a)+&quot;h&quot;;if(t&gt;=i)return Math.round(t/i)+&quot;m&quot;;if(t&gt;=n)return Math.round(t/n)+&quot;s&quot;;return t+&quot;ms&quot;}(t);throw new Error(&quot;val is not a non-empty string or a valid number. val=&quot;+JSON.stringify(t))}},{}],589:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parenthesis&quot;);e.exports=function(t,e,r){if(null==t)throw Error(&quot;First argument should be a string&quot;);if(null==e)throw Error(&quot;Separator should be a string or a RegExp&quot;);r?(&quot;string&quot;==typeof r||Array.isArray(r))&amp;&amp;(r={ignore:r}):r={},null==r.escape&amp;&amp;(r.escape=!0),null==r.ignore?r.ignore=[&quot;[]&quot;,&quot;()&quot;,&quot;{}&quot;,&quot;&lt;&gt;&quot;,'&quot;&quot;',&quot;''&quot;,&quot;``&quot;,&quot;\u201c\u201d&quot;,&quot;\xab\xbb&quot;]:(&quot;string&quot;==typeof r.ignore&amp;&amp;(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&amp;&amp;(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s&lt;a.length;s++){var l=a[s],c=a[s+1];&quot;\\&quot;===l[l.length-1]&amp;&amp;&quot;\\&quot;!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s&lt;a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:491}],590:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l&lt;e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length&gt;0;){e=c[c.length-1];var p=t[e];if(a[e]&lt;p.length){for(var d=a[e];d&lt;p.length;++d){var g=p[d];if(r[g]&lt;0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&amp;&amp;(n[e]=0|Math.min(n[e],n[g])),o[g]&gt;=0&amp;&amp;s[e].push(o[g])}a[e]=d}else{if(n[e]===r[e]){var m=[],v=[],y=0;for(d=l.length-1;d&gt;=0;--d){var x=l[d];if(i[x]=!1,m.push(x),v.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(m);var b=new Array(y);for(d=0;d&lt;v.length;d++)for(var _=0;_&lt;v[d].length;_++)b[--y]=v[d][_];h.push(b)}c.pop()}}}for(l=0;l&lt;e;++l)r[l]&lt;0&amp;&amp;p(l);for(l=0;l&lt;h.length;l++){var d=h[l];if(0!==d.length){d.sort((function(t,e){return t-e})),c=[d[0]];for(var g=1;g&lt;d.length;g++)d[g]!==d[g-1]&amp;&amp;c.push(d[g]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],591:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(t.dimension&lt;=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=a(t,e),n=r.length,i=new Array(n),o=new Array(n),s=0;s&lt;n;++s)i[s]=[r[s]],o[s]=[s];return{positions:i,cells:o}}(t,e);var r=t.order.join()+&quot;-&quot;+t.dtype,s=o[r];e=+e||0;s||(s=o[r]=function(t,e){var r=t.length,a=[&quot;'use strict';&quot;],o=&quot;surfaceNets&quot;+t.join(&quot;_&quot;)+&quot;d&quot;+e;a.push(&quot;var contour=genContour({&quot;,&quot;order:[&quot;,t.join(),&quot;],&quot;,&quot;scalarArguments: 3,&quot;,&quot;phase:function phaseFunc(p,a,b,c) { return (p &gt; c)|0 },&quot;),&quot;generic&quot;===e&amp;&amp;a.push(&quot;getters:[0],&quot;);for(var s=[],l=[],c=0;c&lt;r;++c)s.push(&quot;d&quot;+c),l.push(&quot;d&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;v&quot;+c),l.push(&quot;v&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;p&quot;+c),l.push(&quot;p&quot;+c);s.push(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),l.push(&quot;a&quot;,&quot;c&quot;),a.push(&quot;vertex:function vertexFunc(&quot;,s.join(),&quot;){&quot;);var u=[];for(c=0;c&lt;1&lt;&lt;r;++c)u.push(&quot;(p&quot;+c+&quot;&lt;&lt;&quot;+c+&quot;)&quot;);a.push(&quot;var m=(&quot;,u.join(&quot;+&quot;),&quot;)|0;if(m===0||m===&quot;,(1&lt;&lt;(1&lt;&lt;r))-1,&quot;){return}&quot;);var f=[],h=[];1&lt;&lt;(1&lt;&lt;r)&lt;=128?(a.push(&quot;switch(m){&quot;),h=a):a.push(&quot;switch(m&gt;&gt;&gt;7){&quot;);for(c=0;c&lt;1&lt;&lt;(1&lt;&lt;r);++c){if(1&lt;&lt;(1&lt;&lt;r)&gt;128&amp;&amp;c%128==0){f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var p=&quot;vExtra&quot;+f.length;a.push(&quot;case &quot;,c&gt;&gt;&gt;7,&quot;:&quot;,p,&quot;(m&amp;0x7f,&quot;,l.join(),&quot;);break;&quot;),h=[&quot;function &quot;,p,&quot;(m,&quot;,l.join(),&quot;){switch(m){&quot;],f.push(h)}h.push(&quot;case &quot;,127&amp;c,&quot;:&quot;);for(var d=new Array(r),g=new Array(r),m=new Array(r),v=new Array(r),y=0,x=0;x&lt;r;++x)d[x]=[],g[x]=[],m[x]=0,v[x]=0;for(x=0;x&lt;1&lt;&lt;r;++x)for(var b=0;b&lt;r;++b){var _=x^1&lt;&lt;b;if(!(_&gt;x)&amp;&amp;!(c&amp;1&lt;&lt;_)!=!(c&amp;1&lt;&lt;x)){var w=1;c&amp;1&lt;&lt;_?g[b].push(&quot;v&quot;+_+&quot;-v&quot;+x):(g[b].push(&quot;v&quot;+x+&quot;-v&quot;+_),w=-w),w&lt;0?(d[b].push(&quot;-v&quot;+x+&quot;-v&quot;+_),m[b]+=2):(d[b].push(&quot;v&quot;+x+&quot;+v&quot;+_),m[b]-=2),y+=1;for(var T=0;T&lt;r;++T)T!==b&amp;&amp;(_&amp;1&lt;&lt;T?v[T]+=1:v[T]-=1)}}var k=[];for(b=0;b&lt;r;++b)if(0===d[b].length)k.push(&quot;d&quot;+b+&quot;-0.5&quot;);else{var A=&quot;&quot;;m[b]&lt;0?A=m[b]+&quot;*c&quot;:m[b]&gt;0&amp;&amp;(A=&quot;+&quot;+m[b]+&quot;*c&quot;);var M=d[b].length/y*.5,S=.5+v[b]/y*.5;k.push(&quot;d&quot;+b+&quot;-&quot;+S+&quot;-&quot;+M+&quot;*(&quot;+d[b].join(&quot;+&quot;)+A+&quot;)/(&quot;+g[b].join(&quot;+&quot;)+&quot;)&quot;)}h.push(&quot;a.push([&quot;,k.join(),&quot;]);&quot;,&quot;break;&quot;)}a.push(&quot;}},&quot;),f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var E=[];for(c=0;c&lt;1&lt;&lt;r-1;++c)E.push(&quot;v&quot;+c);E.push(&quot;c0&quot;,&quot;c1&quot;,&quot;p0&quot;,&quot;p1&quot;,&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),a.push(&quot;cell:function cellFunc(&quot;,E.join(),&quot;){&quot;);var L=i(r-1);a.push(&quot;if(p0){b.push(&quot;,L.map((function(t){return&quot;[&quot;+t.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}else{b.push(&quot;,L.map((function(t){var e=t.slice();return e.reverse(),&quot;[&quot;+e.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}}});function &quot;,o,&quot;(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return &quot;,o,&quot;;&quot;);for(c=0;c&lt;f.length;++c)a.push(f[c].join(&quot;&quot;));return new Function(&quot;genContour&quot;,a.join(&quot;&quot;))(n)}(t.order,t.dtype));return s(t,e)};var n=t(&quot;ndarray-extract-contour&quot;),i=t(&quot;triangulate-hypercube&quot;),a=t(&quot;zero-crossings&quot;);var o={}},{&quot;ndarray-extract-contour&quot;:475,&quot;triangulate-hypercube&quot;:602,&quot;zero-crossings&quot;:647}],592:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&amp;&amp;s.return&amp;&amp;s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance&quot;)},i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*r+e*n;return i&gt;1&amp;&amp;(i=1),i&lt;-1&amp;&amp;(i=-1),(t*n-e*r&lt;0?-1:1)*Math.acos(i)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,g=void 0===d?0:d,m=t.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&amp;&amp;0===w)return[];u=Math.abs(u),f=Math.abs(f);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);T&gt;1&amp;&amp;(u*=Math.sqrt(T),f*=Math.sqrt(T));var k=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),g=Math.pow(o,2),m=Math.pow(h,2),v=Math.pow(p,2),y=d*g-d*v-g*m;y&lt;0&amp;&amp;(y=0),y/=d*v+g*m;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,T=(h-x)/a,k=(p-b)/o,A=(-h-x)/a,M=(-p-b)/o,S=s(1,0,T,k),E=s(T,k,A,M);return 0===c&amp;&amp;E&gt;0&amp;&amp;(E-=i),1===c&amp;&amp;E&lt;0&amp;&amp;(E+=i),[_,w,S,E]}(e,r,l,c,u,f,g,v,x,b,_,w),A=n(k,4),M=A[0],S=A[1],E=A[2],L=A[3],C=Math.abs(L)/(i/4);Math.abs(1-C)&lt;1e-7&amp;&amp;(C=1);var P=Math.max(Math.ceil(C),1);L/=P;for(var I=0;I&lt;P;I++)y.push(o(E,L)),E+=L;return y.map((function(t){var e=a(t[0],u,f,b,x,M,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,M,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,M,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}}))},e.exports=r.default},{}],593:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;abs-svg-path&quot;),a=t(&quot;normalize-svg-path&quot;),o=t(&quot;is-svg-path&quot;),s=t(&quot;assert&quot;);e.exports=function(t){Array.isArray(t)&amp;&amp;1===t.length&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;(t=t[0]);&quot;string&quot;==typeof t&amp;&amp;(s(o(t),&quot;String is not an SVG path.&quot;),t=n(t));if(s(Array.isArray(t),&quot;Argument should be a string or an array of path segments.&quot;),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r&lt;l;r++)for(var c=t[r].slice(1),u=0;u&lt;c.length;u+=2)c[u+0]&lt;e[0]&amp;&amp;(e[0]=c[u+0]),c[u+1]&lt;e[1]&amp;&amp;(e[1]=c[u+1]),c[u+0]&gt;e[2]&amp;&amp;(e[2]=c[u+0]),c[u+1]&gt;e[3]&amp;&amp;(e[3]=c[u+1]);return e}},{&quot;abs-svg-path&quot;:71,assert:80,&quot;is-svg-path&quot;:459,&quot;normalize-svg-path&quot;:594,&quot;parse-svg-path&quot;:493}],594:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,g=t.length;d&lt;g;d++){var m=t[d],v=m[0];switch(v){case&quot;M&quot;:l=m[1],c=m[2];break;case&quot;A&quot;:var y=n({px:h,py:p,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!y.length)continue;for(var x,b=0;b&lt;y.length;b++)x=y[b],m=[&quot;C&quot;,x.x1,x.y1,x.x2,x.y2,x.x,x.y],b&lt;y.length-1&amp;&amp;r.push(m);break;case&quot;S&quot;:var _=h,w=p;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(_+=_-o,w+=w-s),m=[&quot;C&quot;,_,w,m[1],m[2],m[3],m[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(u=2*h-u,f=2*p-f):(u=h,f=p),m=a(h,p,u,f,m[1],m[2]);break;case&quot;Q&quot;:u=m[1],f=m[2],m=a(h,p,m[1],m[2],m[3],m[4]);break;case&quot;L&quot;:m=i(h,p,m[1],m[2]);break;case&quot;H&quot;:m=i(h,p,m[1],p);break;case&quot;V&quot;:m=i(h,p,h,m[1]);break;case&quot;Z&quot;:m=i(h,p,l,c)}e=v,h=m[m.length-2],p=m[m.length-1],m.length&gt;4?(o=m[m.length-4],s=m[m.length-3]):(o=h,s=p),r.push(m)}return r};var n=t(&quot;svg-arc-to-cubic-bezier&quot;);function i(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{&quot;svg-arc-to-cubic-bezier&quot;:592}],595:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;svg-path-bounds&quot;),a=t(&quot;parse-svg-path&quot;),o=t(&quot;draw-svg-path&quot;),s=t(&quot;is-svg-path&quot;),l=t(&quot;bitmap-sdf&quot;),c=document.createElement(&quot;canvas&quot;),u=c.getContext(&quot;2d&quot;);e.exports=function(t,e){if(!s(t))throw Error(&quot;Argument should be valid svg path string&quot;);e||(e={});var r,f;e.shape?(r=e.shape[0],f=e.shape[1]):(r=c.width=e.w||e.width||200,f=c.height=e.h||e.height||200);var h=Math.min(r,f),p=e.stroke||0,d=e.viewbox||e.viewBox||i(t),g=[r/(d[2]-d[0]),f/(d[3]-d[1])],m=Math.min(g[0]||0,g[1]||0)/2;u.fillStyle=&quot;black&quot;,u.fillRect(0,0,r,f),u.fillStyle=&quot;white&quot;,p&amp;&amp;(&quot;number&quot;!=typeof p&amp;&amp;(p=1),u.strokeStyle=p&gt;0?&quot;white&quot;:&quot;black&quot;,u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(m,m),function(){if(null!=n)return n;var t=document.createElement(&quot;canvas&quot;).getContext(&quot;2d&quot;);if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D(&quot;M0,0h1v1h-1v-1Z&quot;);t.fillStyle=&quot;black&quot;,t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&amp;&amp;r.data&amp;&amp;255===r.data[3]}()){var v=new Path2D(t);u.fill(v),p&amp;&amp;u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),p&amp;&amp;u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*h})}},{&quot;bitmap-sdf&quot;:105,&quot;draw-svg-path&quot;:183,&quot;is-svg-path&quot;:459,&quot;parse-svg-path&quot;:493,&quot;svg-path-bounds&quot;:593}],596:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function t(e,r,i){i=i||{};var o=a[e];o||(o=a[e]={&quot; &quot;:{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length&lt;=1||!/\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o&lt;e.length;++o)for(var s=e[o],l=0;l&lt;3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||&quot;left&quot;,textBaseline:&quot;alphabetic&quot;,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var l=r.split(/(\d|\s)/),c=new Array(l.length),u=0,f=0,h=0;h&lt;l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h&gt;0&amp;&amp;(f+=.02);var p=new Float32Array(u),d=0,g=-.5*f;for(h=0;h&lt;c.length;++h){for(var m=c[h].data,v=0;v&lt;m.length;v+=2)p[d++]=m[v]+g,p[d++]=m[v+1];g+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(&quot;vectorize-text&quot;),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:528,&quot;vectorize-text&quot;:623}],597:[function(t,e,r){(function(e,n){(function(){var i=t(&quot;process/browser.js&quot;).nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},l=0;function c(t,e){this._id=t,this._clearFn=e}r.setTimeout=function(){return new c(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},r.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},r._unrefActive=r.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e&gt;=0&amp;&amp;(t._idleTimeoutId=setTimeout((function(){t._onTimeout&amp;&amp;t._onTimeout()}),e))},r.setImmediate=&quot;function&quot;==typeof e?e:function(t){var e=l++,n=!(arguments.length&lt;2)&amp;&amp;o.call(arguments,1);return s[e]=!0,i((function(){s[e]&amp;&amp;(n?t.apply(null,n):t.call(null),r.clearImmediate(e))})),e},r.clearImmediate=&quot;function&quot;==typeof n?n:function(t){delete s[t]}}).call(this)}).call(this,t(&quot;timers&quot;).setImmediate,t(&quot;timers&quot;).clearImmediate)},{&quot;process/browser.js&quot;:528,timers:597}],598:[function(t,e,r){!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||&quot;&quot;)instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;&quot;string&quot;==typeof e&amp;&amp;(e=function(t){t=t.replace(r,&quot;&quot;).replace(n,&quot;&quot;).toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(&quot;transparent&quot;==t)return{r:0,g:0,b:0,a:0,format:&quot;name&quot;};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:I(e[1]),g:I(e[2]),b:I(e[3]),a:R(e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex6.exec(t))return{r:I(e[1]),g:I(e[2]),b:I(e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};if(e=j.hex4.exec(t))return{r:I(e[1]+&quot;&quot;+e[1]),g:I(e[2]+&quot;&quot;+e[2]),b:I(e[3]+&quot;&quot;+e[3]),a:R(e[4]+&quot;&quot;+e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex3.exec(t))return{r:I(e[1]+&quot;&quot;+e[1]),g:I(e[2]+&quot;&quot;+e[2]),b:I(e[3]+&quot;&quot;+e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};return!1}(e));&quot;object&quot;==typeof e&amp;&amp;(U(e.r)&amp;&amp;U(e.g)&amp;&amp;U(e.b)?(p=e.r,d=e.g,g=e.b,i={r:255*C(p,255),g:255*C(d,255),b:255*C(g,255)},f=!0,h=&quot;%&quot;===String(e.r).substr(-1)?&quot;prgb&quot;:&quot;rgb&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.v)?(l=z(e.s),c=z(e.v),i=function(e,r,n){e=6*C(e,360),r=C(r,100),n=C(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=&quot;hsv&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.l)&amp;&amp;(l=z(e.s),u=z(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r&lt;0&amp;&amp;(r+=1),r&gt;1&amp;&amp;(r-=1),r&lt;1/6?t+6*(e-t)*r:r&lt;.5?e:r&lt;2/3?t+(e-t)*(2/3-r)*6:t}if(t=C(t,360),e=C(e,100),r=C(r,100),0===e)n=i=a=r;else{var s=r&lt;.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=&quot;hsl&quot;),e.hasOwnProperty(&quot;a&quot;)&amp;&amp;(a=e.a));var p,d,g;return a=L(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r&lt;1&amp;&amp;(this._r=a(this._r)),this._g&lt;1&amp;&amp;(this._g=a(this._g)),this._b&lt;1&amp;&amp;(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c&gt;.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[O(a(t).toString(16)),O(a(e).toString(16)),O(a(r).toString(16))];return n&amp;&amp;i[0].charAt(0)==i[0].charAt(1)&amp;&amp;i[1].charAt(0)==i[1].charAt(1)&amp;&amp;i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(&quot;&quot;)}function p(t,e,r,n){return[O(D(n)),O(a(t).toString(16)),O(a(e).toString(16)),O(a(r).toString(16))].join(&quot;&quot;)}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=P(r.s),c(r)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=P(r.s),c(r)}function m(t){return c(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=P(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=P(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n&lt;0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function T(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function A(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e&gt;&gt;1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function M(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()&lt;128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e&lt;=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r&lt;=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n&lt;=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=L(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?&quot;hsv(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsva(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?&quot;hsl(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsla(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return&quot;#&quot;+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[O(a(t).toString(16)),O(a(e).toString(16)),O(a(r).toString(16)),O(D(n))];if(i&amp;&amp;o[0].charAt(0)==o[0].charAt(1)&amp;&amp;o[1].charAt(0)==o[1].charAt(1)&amp;&amp;o[2].charAt(0)==o[2].charAt(1)&amp;&amp;o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(&quot;&quot;)}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return&quot;#&quot;+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;)&quot;:&quot;rgba(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;, &quot;+this._roundA+&quot;)&quot;},toPercentageRgb:function(){return{r:a(100*C(this._r,255))+&quot;%&quot;,g:a(100*C(this._g,255))+&quot;%&quot;,b:a(100*C(this._b,255))+&quot;%&quot;,a:this._a}},toPercentageRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(100*C(this._r,255))+&quot;%, &quot;+a(100*C(this._g,255))+&quot;%, &quot;+a(100*C(this._b,255))+&quot;%)&quot;:&quot;rgba(&quot;+a(100*C(this._r,255))+&quot;%, &quot;+a(100*C(this._g,255))+&quot;%, &quot;+a(100*C(this._b,255))+&quot;%, &quot;+this._roundA+&quot;)&quot;},toName:function(){return 0===this._a?&quot;transparent&quot;:!(this._a&lt;1)&amp;&amp;(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=&quot;#&quot;+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?&quot;GradientType = 1, &quot;:&quot;&quot;;if(t){var i=c(t);r=&quot;#&quot;+p(i._r,i._g,i._b,i._a)}return&quot;progid:DXImageTransform.Microsoft.gradient(&quot;+n+&quot;startColorstr=&quot;+e+&quot;,endColorstr=&quot;+r+&quot;)&quot;},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a&lt;1&amp;&amp;this._a&gt;=0;return e||!n||&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t&amp;&amp;&quot;hex3&quot;!==t&amp;&amp;&quot;hex4&quot;!==t&amp;&amp;&quot;hex8&quot;!==t&amp;&amp;&quot;name&quot;!==t?(&quot;rgb&quot;===t&amp;&amp;(r=this.toRgbString()),&quot;prgb&quot;===t&amp;&amp;(r=this.toPercentageRgbString()),&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t||(r=this.toHexString()),&quot;hex3&quot;===t&amp;&amp;(r=this.toHexString(!0)),&quot;hex4&quot;===t&amp;&amp;(r=this.toHex8String(!0)),&quot;hex8&quot;===t&amp;&amp;(r=this.toHex8String()),&quot;name&quot;===t&amp;&amp;(r=this.toName()),&quot;hsl&quot;===t&amp;&amp;(r=this.toHslString()),&quot;hsv&quot;===t&amp;&amp;(r=this.toHsvString()),r||this.toHexString()):&quot;name&quot;===t&amp;&amp;0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(t,e){if(&quot;object&quot;==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&amp;&amp;(r[n]=&quot;a&quot;===n?t[n]:z(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&amp;&amp;c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:&quot;AA&quot;,size:&quot;small&quot;}).level||&quot;AA&quot;).toUpperCase(),r=(t.size||&quot;small&quot;).toLowerCase(),&quot;AA&quot;!==e&amp;&amp;&quot;AAA&quot;!==e&amp;&amp;(e=&quot;AA&quot;);&quot;small&quot;!==r&amp;&amp;&quot;large&quot;!==r&amp;&amp;(r=&quot;small&quot;);return{level:e,size:r}}(r)).level+n.size){case&quot;AAsmall&quot;:case&quot;AAAlarge&quot;:i=a&gt;=4.5;break;case&quot;AAlarge&quot;:i=a&gt;=3;break;case&quot;AAAsmall&quot;:i=a&gt;=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u&lt;e.length;u++)(n=c.readability(t,e[u]))&gt;l&amp;&amp;(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[&quot;#fff&quot;,&quot;#000&quot;],r))};var S=c.names={aliceblue:&quot;f0f8ff&quot;,antiquewhite:&quot;faebd7&quot;,aqua:&quot;0ff&quot;,aquamarine:&quot;7fffd4&quot;,azure:&quot;f0ffff&quot;,beige:&quot;f5f5dc&quot;,bisque:&quot;ffe4c4&quot;,black:&quot;000&quot;,blanchedalmond:&quot;ffebcd&quot;,blue:&quot;00f&quot;,blueviolet:&quot;8a2be2&quot;,brown:&quot;a52a2a&quot;,burlywood:&quot;deb887&quot;,burntsienna:&quot;ea7e5d&quot;,cadetblue:&quot;5f9ea0&quot;,chartreuse:&quot;7fff00&quot;,chocolate:&quot;d2691e&quot;,coral:&quot;ff7f50&quot;,cornflowerblue:&quot;6495ed&quot;,cornsilk:&quot;fff8dc&quot;,crimson:&quot;dc143c&quot;,cyan:&quot;0ff&quot;,darkblue:&quot;00008b&quot;,darkcyan:&quot;008b8b&quot;,darkgoldenrod:&quot;b8860b&quot;,darkgray:&quot;a9a9a9&quot;,darkgreen:&quot;006400&quot;,darkgrey:&quot;a9a9a9&quot;,darkkhaki:&quot;bdb76b&quot;,darkmagenta:&quot;8b008b&quot;,darkolivegreen:&quot;556b2f&quot;,darkorange:&quot;ff8c00&quot;,darkorchid:&quot;9932cc&quot;,darkred:&quot;8b0000&quot;,darksalmon:&quot;e9967a&quot;,darkseagreen:&quot;8fbc8f&quot;,darkslateblue:&quot;483d8b&quot;,darkslategray:&quot;2f4f4f&quot;,darkslategrey:&quot;2f4f4f&quot;,darkturquoise:&quot;00ced1&quot;,darkviolet:&quot;9400d3&quot;,deeppink:&quot;ff1493&quot;,deepskyblue:&quot;00bfff&quot;,dimgray:&quot;696969&quot;,dimgrey:&quot;696969&quot;,dodgerblue:&quot;1e90ff&quot;,firebrick:&quot;b22222&quot;,floralwhite:&quot;fffaf0&quot;,forestgreen:&quot;228b22&quot;,fuchsia:&quot;f0f&quot;,gainsboro:&quot;dcdcdc&quot;,ghostwhite:&quot;f8f8ff&quot;,gold:&quot;ffd700&quot;,goldenrod:&quot;daa520&quot;,gray:&quot;808080&quot;,green:&quot;008000&quot;,greenyellow:&quot;adff2f&quot;,grey:&quot;808080&quot;,honeydew:&quot;f0fff0&quot;,hotpink:&quot;ff69b4&quot;,indianred:&quot;cd5c5c&quot;,indigo:&quot;4b0082&quot;,ivory:&quot;fffff0&quot;,khaki:&quot;f0e68c&quot;,lavender:&quot;e6e6fa&quot;,lavenderblush:&quot;fff0f5&quot;,lawngreen:&quot;7cfc00&quot;,lemonchiffon:&quot;fffacd&quot;,lightblue:&quot;add8e6&quot;,lightcoral:&quot;f08080&quot;,lightcyan:&quot;e0ffff&quot;,lightgoldenrodyellow:&quot;fafad2&quot;,lightgray:&quot;d3d3d3&quot;,lightgreen:&quot;90ee90&quot;,lightgrey:&quot;d3d3d3&quot;,lightpink:&quot;ffb6c1&quot;,lightsalmon:&quot;ffa07a&quot;,lightseagreen:&quot;20b2aa&quot;,lightskyblue:&quot;87cefa&quot;,lightslategray:&quot;789&quot;,lightslategrey:&quot;789&quot;,lightsteelblue:&quot;b0c4de&quot;,lightyellow:&quot;ffffe0&quot;,lime:&quot;0f0&quot;,limegreen:&quot;32cd32&quot;,linen:&quot;faf0e6&quot;,magenta:&quot;f0f&quot;,maroon:&quot;800000&quot;,mediumaquamarine:&quot;66cdaa&quot;,mediumblue:&quot;0000cd&quot;,mediumorchid:&quot;ba55d3&quot;,mediumpurple:&quot;9370db&quot;,mediumseagreen:&quot;3cb371&quot;,mediumslateblue:&quot;7b68ee&quot;,mediumspringgreen:&quot;00fa9a&quot;,mediumturquoise:&quot;48d1cc&quot;,mediumvioletred:&quot;c71585&quot;,midnightblue:&quot;191970&quot;,mintcream:&quot;f5fffa&quot;,mistyrose:&quot;ffe4e1&quot;,moccasin:&quot;ffe4b5&quot;,navajowhite:&quot;ffdead&quot;,navy:&quot;000080&quot;,oldlace:&quot;fdf5e6&quot;,olive:&quot;808000&quot;,olivedrab:&quot;6b8e23&quot;,orange:&quot;ffa500&quot;,orangered:&quot;ff4500&quot;,orchid:&quot;da70d6&quot;,palegoldenrod:&quot;eee8aa&quot;,palegreen:&quot;98fb98&quot;,paleturquoise:&quot;afeeee&quot;,palevioletred:&quot;db7093&quot;,papayawhip:&quot;ffefd5&quot;,peachpuff:&quot;ffdab9&quot;,peru:&quot;cd853f&quot;,pink:&quot;ffc0cb&quot;,plum:&quot;dda0dd&quot;,powderblue:&quot;b0e0e6&quot;,purple:&quot;800080&quot;,rebeccapurple:&quot;663399&quot;,red:&quot;f00&quot;,rosybrown:&quot;bc8f8f&quot;,royalblue:&quot;4169e1&quot;,saddlebrown:&quot;8b4513&quot;,salmon:&quot;fa8072&quot;,sandybrown:&quot;f4a460&quot;,seagreen:&quot;2e8b57&quot;,seashell:&quot;fff5ee&quot;,sienna:&quot;a0522d&quot;,silver:&quot;c0c0c0&quot;,skyblue:&quot;87ceeb&quot;,slateblue:&quot;6a5acd&quot;,slategray:&quot;708090&quot;,slategrey:&quot;708090&quot;,snow:&quot;fffafa&quot;,springgreen:&quot;00ff7f&quot;,steelblue:&quot;4682b4&quot;,tan:&quot;d2b48c&quot;,teal:&quot;008080&quot;,thistle:&quot;d8bfd8&quot;,tomato:&quot;ff6347&quot;,turquoise:&quot;40e0d0&quot;,violet:&quot;ee82ee&quot;,wheat:&quot;f5deb3&quot;,white:&quot;fff&quot;,whitesmoke:&quot;f5f5f5&quot;,yellow:&quot;ff0&quot;,yellowgreen:&quot;9acd32&quot;},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&amp;&amp;(e[t[r]]=r);return e}(S);function L(t){return t=parseFloat(t),(isNaN(t)||t&lt;0||t&gt;1)&amp;&amp;(t=1),t}function C(e,r){(function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;.&quot;)&amp;&amp;1===parseFloat(t)})(e)&amp;&amp;(e=&quot;100%&quot;);var n=function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;%&quot;)}(e);return e=o(r,s(0,parseFloat(e))),n&amp;&amp;(e=parseInt(e*r,10)/100),t.abs(e-r)&lt;1e-6?1:e%r/parseFloat(r)}function P(t){return o(1,s(0,t))}function I(t){return parseInt(t,16)}function O(t){return 1==t.length?&quot;0&quot;+t:&quot;&quot;+t}function z(t){return t&lt;=1&amp;&amp;(t=100*t+&quot;%&quot;),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return I(t)/255}var F,B,N,j=(B=&quot;[\\s|\\(]+(&quot;+(F=&quot;(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)&quot;)+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,N=&quot;[\\s|\\(]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,{CSS_UNIT:new RegExp(F),rgb:new RegExp(&quot;rgb&quot;+B),rgba:new RegExp(&quot;rgba&quot;+N),hsl:new RegExp(&quot;hsl&quot;+B),hsla:new RegExp(&quot;hsla&quot;+N),hsv:new RegExp(&quot;hsv&quot;+B),hsva:new RegExp(&quot;hsva&quot;+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}void 0!==e&amp;&amp;e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],599:[function(t,e,r){&quot;use strict&quot;;e.exports=i,e.exports.float32=e.exports.float=i,e.exports.fract32=e.exports.fract=function(t,e){if(t.length){if(t instanceof Float32Array)return new Float32Array(t.length);e instanceof Float32Array||(e=i(t));for(var r=0,n=e.length;r&lt;n;r++)e[r]=t[r]-e[r];return e}return i(t-i(t))};var n=new Float32Array(1);function i(t){return t.length?t instanceof Float32Array?t:new Float32Array(t):(n[0]=t,n[0])}},{}],600:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-unit&quot;);e.exports=a;function i(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function a(t,e){switch(e=e||document.body,t=(t||&quot;px&quot;).trim().toLowerCase(),e!==window&amp;&amp;e!==document||(e=document.body),t){case&quot;%&quot;:return e.clientHeight/100;case&quot;ch&quot;:case&quot;ex&quot;:return function(t,e){var r=document.createElement(&quot;div&quot;);r.style[&quot;font-size&quot;]=&quot;128&quot;+t,e.appendChild(r);var n=i(r,&quot;font-size&quot;)/128;return e.removeChild(r),n}(t,e);case&quot;em&quot;:return i(e,&quot;font-size&quot;);case&quot;rem&quot;:return i(document.body,&quot;font-size&quot;);case&quot;vw&quot;:return window.innerWidth/100;case&quot;vh&quot;:return window.innerHeight/100;case&quot;vmin&quot;:return Math.min(window.innerWidth,window.innerHeight)/100;case&quot;vmax&quot;:return Math.max(window.innerWidth,window.innerHeight)/100;case&quot;in&quot;:return 96;case&quot;cm&quot;:return 96/2.54;case&quot;mm&quot;:return 96/25.4;case&quot;pt&quot;:return 96/72;case&quot;pc&quot;:return 16}return 1}},{&quot;parse-unit&quot;:494}],601:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).topojson=t.topojson||{})}(this,(function(t){&quot;use strict&quot;;function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c);for(u[0]=(r+=t[0])*i+o,u[1]=(n+=t[1])*a+s;l&lt;c;)u[l]=t[l],++l;return u}}function n(t){var e,n=r(t.transform),i=1/0,a=i,o=-i,s=-i;function l(t){(t=n(t))[0]&lt;i&amp;&amp;(i=t[0]),t[0]&gt;o&amp;&amp;(o=t[0]),t[1]&lt;a&amp;&amp;(a=t[1]),t[1]&gt;s&amp;&amp;(s=t[1])}function c(t){switch(t.type){case&quot;GeometryCollection&quot;:t.geometries.forEach(c);break;case&quot;Point&quot;:l(t.coordinates);break;case&quot;MultiPoint&quot;:t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++r&lt;l;)(e=n(t[r],r))[0]&lt;i&amp;&amp;(i=e[0]),e[0]&gt;o&amp;&amp;(o=e[0]),e[1]&lt;a&amp;&amp;(a=e[1]),e[1]&gt;s&amp;&amp;(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&amp;&amp;null==n?{type:&quot;Feature&quot;,properties:i,geometry:o}:null==n?{type:&quot;Feature&quot;,id:r,properties:i,geometry:o}:{type:&quot;Feature&quot;,id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&amp;&amp;e.pop();for(var r=i[t&lt;0?~t:t],a=0,o=r.length;a&lt;o;++a)e.push(n(r[a],a));t&lt;0&amp;&amp;function(t,e){for(var r,n=t.length,i=n-e;i&lt;--n;)r=t[i],t[i++]=t[n],t[n]=r}(e,o)}function o(t){return n(t)}function s(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)a(t[r],e);return e.length&lt;2&amp;&amp;e.push(e[0]),e}function l(t){for(var e=s(t);e.length&lt;4;)e.push(e[0]);return e}function c(t){return t.map(l)}return function t(e){var r,n=e.type;switch(n){case&quot;GeometryCollection&quot;:return{type:n,geometries:e.geometries.map(t)};case&quot;Point&quot;:r=o(e.coordinates);break;case&quot;MultiPoint&quot;:r=e.coordinates.map(o);break;case&quot;LineString&quot;:r=s(e.arcs);break;case&quot;MultiLineString&quot;:r=e.arcs.map(s);break;case&quot;Polygon&quot;:r=c(e.arcs);break;case&quot;MultiPolygon&quot;:r=e.arcs.map(c);break;default:return null}return{type:n,coordinates:r}}(e)}function o(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){r[t&lt;0?~t:t]=1})),a.push(i)}}return e.forEach((function(r,n){var i,a=t.arcs[r&lt;0?~r:r];a.length&lt;3&amp;&amp;!a[1][0]&amp;&amp;!a[1][1]&amp;&amp;(i=e[++o],e[o]=r,e[n]=i)})),e.forEach((function(e){var r,a,o=function(e){var r,n=t.arcs[e&lt;0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach((function(t){r[0]+=t[0],r[1]+=t[1]}))):r=n[n.length-1];return e&lt;0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r})),s(i,n),s(n,i),e.forEach((function(t){r[t&lt;0?~t:t]||a.push([t])})),a}function s(t,e,r){var n,i,a;if(arguments.length&gt;1)n=l(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i&lt;a;++i)n[i]=i;return{type:&quot;MultiLineString&quot;,arcs:o(t,n)}}function l(t,e,r){var n,i=[],a=[];function o(t){var e=t&lt;0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;LineString&quot;:s(e.arcs);break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:l(e.arcs);break;case&quot;MultiPolygon&quot;:!function(t){t.forEach(l)}(e.arcs)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&amp;&amp;i.push(t[0].i)}),i}function c(t,e){var r={},n=[],i=[];function s(t){t.forEach((function(e){e.forEach((function(e){(r[e=e&lt;0?~e:e]||(r[e]=[])).push(t)}))})),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r&lt;n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(a(t,{type:&quot;Polygon&quot;,arcs:[e]}).coordinates[0])}return e.forEach((function t(e){switch(e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;Polygon&quot;:s(e.arcs);break;case&quot;MultiPolygon&quot;:e.arcs.forEach(s)}})),n.forEach((function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].forEach((function(t){t._||(t._=1,n.push(t))}))}))}))}})),n.forEach((function(t){delete t._})),{type:&quot;MultiPolygon&quot;,arcs:i.map((function(e){var n,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].length&lt;2&amp;&amp;i.push(t)}))}))})),(n=(i=o(t,i)).length)&gt;1)for(var a,s,c=1,u=l(i[0]);c&lt;n;++c)(a=l(i[c]))&gt;u&amp;&amp;(s=i[0],i[0]=i[c],i[c]=s,u=a);return i})).filter((function(t){return t.length&gt;0}))}}function u(t,e){for(var r=0,n=t.length;r&lt;n;){var i=r+n&gt;&gt;&gt;1;t[i]&lt;e?r=i+1:n=i}return r}function f(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c),f=Math.round((t[0]-o)/i),h=Math.round((t[1]-s)/a);for(u[0]=f-r,r=f,u[1]=h-n,n=h;l&lt;c;)u[l]=t[l],++l;return u}}t.bbox=n,t.feature=function(t,e){return&quot;string&quot;==typeof e&amp;&amp;(e=t.objects[e]),&quot;GeometryCollection&quot;===e.type?{type:&quot;FeatureCollection&quot;,features:e.geometries.map((function(e){return i(t,e)}))}:i(t,e)},t.merge=function(t){return a(t,c.apply(this,arguments))},t.mergeArcs=c,t.mesh=function(t){return a(t,s.apply(this,arguments))},t.meshArcs=s,t.neighbors=function(t){var e={},r=t.map((function(){return[]}));function n(t,r){t.forEach((function(t){t&lt;0&amp;&amp;(t=~t);var n=e[t];n?n.push(r):e[t]=[r]}))}function i(t,e){t.forEach((function(t){n(t,e)}))}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var o in t.forEach((function t(e,r){&quot;GeometryCollection&quot;===e.type?e.geometries.forEach((function(e){t(e,r)})):e.type in a&amp;&amp;a[e.type](e.arcs,r)})),e)for(var s=e[o],l=s.length,c=0;c&lt;l;++c)for(var f=c+1;f&lt;l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&amp;&amp;h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&amp;&amp;h.splice(o,0,p)}return r},t.quantize=function(t,e){if(t.transform)throw new Error(&quot;already quantized&quot;);if(e&amp;&amp;e.scale)l=t.bbox;else{if(!((r=Math.floor(e))&gt;=2))throw new Error(&quot;n must be \u22652&quot;);var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=f(e),h=t.objects,p={};function d(t){return u(t)}function g(t){var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(g)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:d(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:&quot;MultiPoint&quot;,coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}for(c in h)p[c]=g(h[c]);return{type:&quot;Topology&quot;,bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r&lt;i;)((e=u(t[r],r))[0]||e[1])&amp;&amp;(a[n++]=e);return 1===n&amp;&amp;(a[n++]=[0,0]),a.length=n,a}))}},t.transform=r,t.untransform=f,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],602:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(t&lt;0)return[];if(0===t)return[[0]];for(var e=0|Math.round(a(t+1)),r=[],o=0;o&lt;e;++o){for(var s=n.unrank(t,o),l=[0],c=0,u=0;u&lt;s.length;++u)c+=1&lt;&lt;s[u],l.push(c);i(s)&lt;1&amp;&amp;(l[0]=c,l[t]=0),r.push(l)}return r};var n=t(&quot;permutation-rank&quot;),i=t(&quot;permutation-parity&quot;),a=t(&quot;gamma&quot;)},{gamma:256,&quot;permutation-parity&quot;:496,&quot;permutation-rank&quot;:497}],603:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),&quot;eye&quot;in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])&lt;1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var g=l(r,d)/i,m=l(n,d)/i;u=Math.acos(g),a=Math.acos(m)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/invert&quot;),a=t(&quot;gl-mat4/rotate&quot;),o=t(&quot;gl-vec3/cross&quot;),s=t(&quot;gl-vec3/normalize&quot;),l=t(&quot;gl-vec3/dot&quot;);function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e&gt;Math.max(r,n)?i[2]=1:r&gt;Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l&lt;3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l&lt;3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c&lt;16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a&lt;3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a&lt;3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a&lt;3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],g=this.computedAngle[1],m=Math.cos(d),v=Math.sin(d),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=m*y,w=v*y,T=x,k=-m*x,A=-v*x,M=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a&lt;3;++a){var L=_*r[a]+w*h[a]+T*e[a];E[4*a+1]=k*r[a]+A*h[a]+M*e[a],E[4*a+2]=L,E[4*a+3]=0}var C=E[1],P=E[5],I=E[9],O=E[2],z=E[6],D=E[10],R=P*D-I*z,F=I*O-C*D,B=C*z-P*O,N=c(R,F,B);R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B;for(a=0;a&lt;3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a&lt;3;++a){u=0;for(var j=0;j&lt;3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c&lt;3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c&lt;3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),g=(u/=d)*e+a*r,m=(f/=d)*e+o*r,v=(h/=d)*e+s*r;this.center.move(t,g,m,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;&quot;number&quot;==typeof r&amp;&amp;(a=0|r),(a&lt;0||a&gt;3)&amp;&amp;(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),g=Math.max(h,p,d);h===g?(s=s&lt;0?-1:1,l=f=0):d===g?(f=f&lt;0?-1:1,s=l=0):(l=l&lt;0?-1:1,s=f=0)}else{var m=c(s,l,f);s/=m,l/=m,f/=m}var v,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,T=c(x-=s*w,b-=l*w,_-=f*w),k=l*(_/=T)-f*(b/=T),A=f*(x/=T)-s*_,M=s*b-l*x,S=c(k,A,M);if(k/=S,A/=S,M/=S,this.center.jump(t,H,G,Y),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],L=e[5],C=e[9],P=E*x+L*b+C*_,I=E*k+L*A+C*M;v=R&lt;0?-Math.PI/2:Math.PI/2,y=Math.atan2(I,P)}else{var O=e[2],z=e[6],D=e[10],R=O*s+z*l+D*f,F=O*x+z*b+D*_,B=O*k+z*A+D*M;v=Math.asin(u(R)),y=Math.atan2(B,F)}this.angle.jump(t,y,v),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var q=V[15],H=V[12]/q,G=V[13]/q,Y=V[14]/q,W=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*W,G-j*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s&lt;1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p&lt;1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,g=d[0],m=d[1],v=d[2],y=i*g+a*m+o*v,x=c(g-=y*i,m-=y*a,v-=y*o);if(!(x&lt;.01&amp;&amp;(x=c(g=a*h-o*f,m=o*l-i*h,v=i*f-a*l))&lt;1e-6)){g/=x,m/=x,v/=x,this.up.set(t,i,a,o),this.right.set(t,g,m,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*v-o*m,_=o*g-i*v,w=i*m-a*g,T=c(b,_,w),k=i*l+a*f+o*h,A=g*l+m*f+v*h,M=(b/=T)*l+(_/=T)*f+(w/=T)*h,S=Math.asin(u(k)),E=Math.atan2(M,A),L=this.angle._state,C=L[L.length-1],P=L[L.length-2];C%=2*Math.PI;var I=Math.abs(C+2*Math.PI-E),O=Math.abs(C-E),z=Math.abs(C-2*Math.PI-E);I&lt;O&amp;&amp;(C+=2*Math.PI),z&lt;O&amp;&amp;(C-=2*Math.PI),this.angle.jump(this.angle.lastT(),C,P),this.angle.set(t,E,S)}}}}},{&quot;filtered-vector&quot;:250,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/rotate&quot;:305,&quot;gl-vec3/cross&quot;:368,&quot;gl-vec3/dot&quot;:373,&quot;gl-vec3/normalize&quot;:390}],604:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],605:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],606:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../prototype/is&quot;);e.exports=function(t){if(&quot;function&quot;!=typeof t)return!1;if(!hasOwnProperty.call(t,&quot;length&quot;))return!1;try{if(&quot;number&quot;!=typeof t.length)return!1;if(&quot;function&quot;!=typeof t.call)return!1;if(&quot;function&quot;!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},{&quot;../prototype/is&quot;:613}],607:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=t(&quot;../string/coerce&quot;),o=t(&quot;./to-short-string&quot;),s=function(t,e){return t.replace(&quot;%v&quot;,o(e))};e.exports=function(t,e,r){if(!i(r))throw new TypeError(s(e,t));if(!n(t)){if(&quot;default&quot;in r)return r.default;if(r.isOptional)return null}var o=a(r.errorMessage);throw n(o)||(o=e),new TypeError(s(o,t))}},{&quot;../object/is&quot;:610,&quot;../string/coerce&quot;:614,&quot;../value/is&quot;:616,&quot;./to-short-string&quot;:609}],608:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}},{}],609:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./safe-to-string&quot;),i=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=n(t);return null===e?&quot;&lt;Non-coercible to string value&gt;&quot;:(e.length&gt;100&amp;&amp;(e=e.slice(0,99)+&quot;\u2026&quot;),e=e.replace(i,(function(t){switch(t){case&quot;\n&quot;:return&quot;\\n&quot;;case&quot;\r&quot;:return&quot;\\r&quot;;case&quot;\u2028&quot;:return&quot;\\u2028&quot;;case&quot;\u2029&quot;:return&quot;\\u2029&quot;;default:throw new Error(&quot;Unexpected character&quot;)}})))}},{&quot;./safe-to-string&quot;:608}],610:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&amp;&amp;hasOwnProperty.call(i,typeof t)}},{&quot;../value/is&quot;:616}],611:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;%v is not a plain function&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:607,&quot;./is&quot;:612}],612:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/is&quot;),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&amp;&amp;!i.test(a.call(t))}},{&quot;../function/is&quot;:606}],613:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../object/is&quot;);e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&amp;&amp;t.constructor.prototype===t}catch(t){return!1}}},{&quot;../object/is&quot;:610}],614:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if(&quot;function&quot;!=typeof e)return null;if(e===a)return null}try{return&quot;&quot;+t}catch(t){return null}}},{&quot;../object/is&quot;:610,&quot;../value/is&quot;:616}],615:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;Cannot use %v&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:607,&quot;./is&quot;:616}],616:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return null!=t}},{}],617:[function(t,e,r){(function(e){(function(){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;dup&quot;),a=t(&quot;buffer&quot;).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o=&quot;undefined&quot;!=typeof Uint8ClampedArray,s=&quot;undefined&quot;!=typeof BigUint64Array,l=&quot;undefined&quot;!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length&gt;0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function g(t){return new Uint16Array(p(2*t),0,t)}function m(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function A(t){return new DataView(p(t),0,t)}function M(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length&gt;0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if(&quot;[object ArrayBuffer]&quot;!==Object.prototype.toString.call(t)&amp;&amp;(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||&quot;arraybuffer&quot;===e)return p(t);switch(e){case&quot;uint8&quot;:return d(t);case&quot;uint16&quot;:return g(t);case&quot;uint32&quot;:return m(t);case&quot;int8&quot;:return v(t);case&quot;int16&quot;:return y(t);case&quot;int32&quot;:return x(t);case&quot;float&quot;:case&quot;float32&quot;:return b(t);case&quot;double&quot;:case&quot;float64&quot;:return _(t);case&quot;uint8_clamped&quot;:return w(t);case&quot;bigint64&quot;:return k(t);case&quot;biguint64&quot;:return T(t);case&quot;buffer&quot;:return M(t);case&quot;data&quot;:case&quot;dataview&quot;:return A(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=g,r.mallocUint32=m,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=A,r.mallocBuffer=M,r.clearCache=function(){for(var t=0;t&lt;32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;bit-twiddle&quot;:104,buffer:117,dup:185}],618:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,&quot;length&quot;,{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],619:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o&lt;n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a&lt;r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],620:[function(t,e,r){var n=/[\'\&quot;]/;e.exports=function(t){return t?(n.test(t.charAt(0))&amp;&amp;(t=t.substr(1)),n.test(t.charAt(t.length-1))&amp;&amp;(t=t.substr(0,t.length-1)),t):&quot;&quot;}},{}],621:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n&lt;i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&amp;&amp;o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(&quot;function&quot;==typeof a[o]&amp;&amp;void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],622:[function(t,e,r){(function(t){(function(){function r(e){try{if(!t.localStorage)return!1}catch(t){return!1}var r=t.localStorage[e];return null!=r&amp;&amp;&quot;true&quot;===String(r).toLowerCase()}e.exports=function(t,e){if(r(&quot;noDeprecation&quot;))return t;var n=!1;return function(){if(!n){if(r(&quot;throwDeprecation&quot;))throw new Error(e);r(&quot;traceDeprecation&quot;)?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],623:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){&quot;object&quot;==typeof e&amp;&amp;null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(&quot;./lib/vtext&quot;),i=null,a=null;&quot;undefined&quot;!=typeof document&amp;&amp;((i=document.createElement(&quot;canvas&quot;)).width=8192,i.height=1024,a=i.getContext(&quot;2d&quot;))},{&quot;./lib/vtext&quot;:624}],624:[function(t,e,r){e.exports=function(t,e,r,n){var a=64,o=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};n&amp;&amp;(n.size&amp;&amp;n.size&gt;0&amp;&amp;(a=n.size),n.lineSpacing&amp;&amp;n.lineSpacing&gt;0&amp;&amp;(o=n.lineSpacing),n.styletags&amp;&amp;n.styletags.breaklines&amp;&amp;(s.breaklines=!!n.styletags.breaklines),n.styletags&amp;&amp;n.styletags.bolds&amp;&amp;(s.bolds=!!n.styletags.bolds),n.styletags&amp;&amp;n.styletags.italics&amp;&amp;(s.italics=!!n.styletags.italics),n.styletags&amp;&amp;n.styletags.subscripts&amp;&amp;(s.subscripts=!!n.styletags.subscripts),n.styletags&amp;&amp;n.styletags.superscripts&amp;&amp;(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+&quot;px&quot;,n.font].filter((function(t){return t})).join(&quot; &quot;),r.textAlign=&quot;start&quot;,r.textBaseline=&quot;alphabetic&quot;,r.direction=&quot;ltr&quot;,h(function(t,e,r,n,a,o){r=r.replace(/\n/g,&quot;&quot;),r=!0===o.breaklines?r.replace(/\&lt;br\&gt;/g,&quot;\n&quot;):r.replace(/\&lt;br\&gt;/g,&quot; &quot;);var s=&quot;&quot;,l=[];for(p=0;p&lt;r.length;++p)l[p]=s;!0===o.bolds&amp;&amp;(l=c(&quot;b&quot;,&quot;b|&quot;,r,l));!0===o.italics&amp;&amp;(l=c(&quot;i&quot;,&quot;i|&quot;,r,l));!0===o.superscripts&amp;&amp;(l=c(&quot;sup&quot;,&quot;+1&quot;,r,l));!0===o.subscripts&amp;&amp;(l=c(&quot;sub&quot;,&quot;-1&quot;,r,l));var u=[],f=&quot;&quot;;for(p=0;p&lt;r.length;++p)null!==l[p]&amp;&amp;(f+=r[p],u.push(l[p]));var h,p,d,g,m,v=f.split(&quot;\n&quot;),y=v.length,x=Math.round(a*n),b=n,_=2*n,w=0,T=y*x+_;t.height&lt;T&amp;&amp;(t.height=T);e.fillStyle=&quot;#000&quot;,e.fillRect(0,0,t.width,t.height),e.fillStyle=&quot;#fff&quot;;var k=0,A=&quot;&quot;;function M(){if(&quot;&quot;!==A){var t=e.measureText(A).width;e.fillText(A,b+d,_+g),d+=t}}function S(){return Math.round(m)+&quot;px &quot;}function E(t,r){var n=&quot;&quot;+e.font;if(!0===o.subscripts){var i=t.indexOf(&quot;-&quot;),a=r.indexOf(&quot;-&quot;),s=i&gt;-1?parseInt(t[1+i]):0,l=a&gt;-1?parseInt(r[1+a]):0;s!==l&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,l-s),n=n.replace(&quot;?px &quot;,S())),g+=.25*x*(l-s)}if(!0===o.superscripts){var c=t.indexOf(&quot;+&quot;),u=r.indexOf(&quot;+&quot;),f=c&gt;-1?parseInt(t[1+c]):0,h=u&gt;-1?parseInt(r[1+u]):0;f!==h&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,h-f),n=n.replace(&quot;?px &quot;,S())),g-=.25*x*(h-f)}if(!0===o.bolds){var p=t.indexOf(&quot;b|&quot;)&gt;-1,d=r.indexOf(&quot;b|&quot;)&gt;-1;!p&amp;&amp;d&amp;&amp;(n=v?n.replace(&quot;italic &quot;,&quot;italic bold &quot;):&quot;bold &quot;+n),p&amp;&amp;!d&amp;&amp;(n=n.replace(&quot;bold &quot;,&quot;&quot;))}if(!0===o.italics){var v=t.indexOf(&quot;i|&quot;)&gt;-1,y=r.indexOf(&quot;i|&quot;)&gt;-1;!v&amp;&amp;y&amp;&amp;(n=&quot;italic &quot;+n),v&amp;&amp;!y&amp;&amp;(n=n.replace(&quot;italic &quot;,&quot;&quot;))}e.font=n}for(h=0;h&lt;y;++h){var L=v[h]+&quot;\n&quot;;for(d=0,g=h*x,m=n,A=&quot;&quot;,p=0;p&lt;L.length;++p){var C=p+k&lt;u.length?u[p+k]:u[u.length-1];s===C?A+=L[p]:(M(),A=L[p],void 0!==C&amp;&amp;(E(s,C),s=C))}M(),k+=L.length;var P=0|Math.round(d+2*b);w&lt;P&amp;&amp;(w=P)}var I=w,O=_+x*y;return i(e.getImageData(0,0,I,O).data,[O,I,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a,o,s),n,a)},e.exports.processPixels=h;var n=t(&quot;surface-nets&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;simplify-planar-graph&quot;),o=t(&quot;clean-pslg&quot;),s=t(&quot;cdt2d&quot;),l=t(&quot;planar-graph-to-polyline&quot;);function c(t,e,r,n){for(var i=&quot;&lt;&quot;+t+&quot;&gt;&quot;,a=&quot;&lt;/&quot;+t+&quot;&gt;&quot;,o=i.length,s=a.length,l=&quot;+&quot;===e[0]||&quot;-&quot;===e[0],c=0,u=-s;c&gt;-1&amp;&amp;-1!==(c=r.indexOf(i,c))&amp;&amp;-1!==(u=r.indexOf(a,c+o))&amp;&amp;!(u&lt;=c);){for(var f=c;f&lt;u+s;++f)if(f&lt;c+o||f&gt;=u)n[f]=null,r=r.substr(0,f)+&quot; &quot;+r.substr(f+1);else if(null!==n[f]){var h=n[f].indexOf(e[0]);-1===h?n[f]+=e:l&amp;&amp;(n[f]=n[f].substr(0,h+1)+(1+parseInt(n[f][h+1]))+n[f].substr(h+2))}var p=c+o,d=r.substr(p,u-p).indexOf(i);c=-1!==d?d:u+s}return n}function u(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function f(t,e,r,n){var i=u(t,n),a=function(t,e,r){for(var n=e.textAlign||&quot;start&quot;,i=e.textBaseline||&quot;alphabetic&quot;,a=[1&lt;&lt;30,1&lt;&lt;30],o=[0,0],s=t.length,l=0;l&lt;s;++l)for(var c=t[l],u=0;u&lt;2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case&quot;center&quot;:f=-.5*(a[0]+o[0]);break;case&quot;right&quot;:case&quot;end&quot;:f=-o[0];break;case&quot;left&quot;:case&quot;start&quot;:f=-a[0];break;default:throw new Error(&quot;vectorize-text: Unrecognized textAlign: '&quot;+n+&quot;'&quot;)}var h=0;switch(i){case&quot;hanging&quot;:case&quot;top&quot;:h=-a[1];break;case&quot;middle&quot;:h=-.5*(a[1]+o[1]);break;case&quot;alphabetic&quot;:case&quot;ideographic&quot;:h=-3*r;break;case&quot;bottom&quot;:h=-o[1];break;default:throw new Error(&quot;vectorize-text: Unrecoginized textBaseline: '&quot;+i+&quot;'&quot;)}var p=1/r;return&quot;lineHeight&quot;in e?p*=+e.lineHeight:&quot;width&quot;in e?p=e.width/(o[0]-a[0]):&quot;height&quot;in e&amp;&amp;(p=e.height/(o[1]-a[1])),t.map((function(t){return[p*(t[0]+f),p*(t[1]+h)]}))}(i.positions,e,r),c=i.edges,f=&quot;ccw&quot;===e.orientation;if(o(a,c),e.polygons||e.polygon||e.polyline){for(var h=l(c,a),p=new Array(h.length),d=0;d&lt;h.length;++d){for(var g=h[d],m=new Array(g.length),v=0;v&lt;g.length;++v){for(var y=g[v],x=new Array(y.length),b=0;b&lt;y.length;++b)x[b]=a[y[b]].slice();f&amp;&amp;x.reverse(),m[v]=x}p[d]=m}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,c,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:c,positions:a}}function h(t,e,r){try{return f(t,e,r,!0)}catch(t){}try{return f(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:118,&quot;clean-pslg&quot;:127,ndarray:483,&quot;planar-graph-to-polyline&quot;:501,&quot;simplify-planar-graph&quot;:563,&quot;surface-nets&quot;:591}],625:[function(t,e,r){!function(){&quot;use strict&quot;;if(&quot;undefined&quot;==typeof ses||!ses.ok||ses.ok()){&quot;undefined&quot;!=typeof ses&amp;&amp;(ses.weakMapPermitHostObjects=g);var t=!1;if(&quot;function&quot;==typeof WeakMap){var r=WeakMap;if(&quot;undefined&quot;!=typeof navigator&amp;&amp;/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=&quot;weakmap:ident:&quot;+Math.random()+&quot;___&quot;;if(&quot;undefined&quot;!=typeof crypto&amp;&amp;&quot;function&quot;==typeof crypto.getRandomValues&amp;&amp;&quot;function&quot;==typeof ArrayBuffer&amp;&amp;&quot;function&quot;==typeof Uint8Array){var c=new ArrayBuffer(25),u=new Uint8Array(c);crypto.getRandomValues(u),l=&quot;weakmap:rand:&quot;+Array.prototype.map.call(u,(function(t){return(t%36).toString(36)})).join(&quot;&quot;)+&quot;___&quot;}if(o(Object,&quot;getOwnPropertyNames&quot;,{value:function(t){return a(t).filter(m)}}),&quot;getPropertyNames&quot;in Object){var f=Object.getPropertyNames;o(Object,&quot;getPropertyNames&quot;,{value:function(t){return f(t).filter(m)}})}!function(){var t=Object.freeze;o(Object,&quot;freeze&quot;,{value:function(e){return v(e),t(e)}});var e=Object.seal;o(Object,&quot;seal&quot;,{value:function(t){return v(t),e(t)}});var r=Object.preventExtensions;o(Object,&quot;preventExtensions&quot;,{value:function(t){return v(t),r(t)}})}();var h=!1,p=0,d=function(){this instanceof d||x();var t=[],e=[],r=p++;return Object.create(d.prototype,{get___:{value:y((function(n,i){var a,o=v(n);return o?r in o?o[r]:i:(a=t.indexOf(n))&gt;=0?e[a]:i}))},has___:{value:y((function(e){var n=v(e);return n?r in n:t.indexOf(e)&gt;=0}))},set___:{value:y((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))&gt;=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:y((function(n){var i,a,o=v(n);return o?r in o&amp;&amp;delete o[r]:!((i=t.indexOf(n))&lt;0)&amp;&amp;(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,!0)}))}})};d.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),&quot;function&quot;==typeof r?function(){function n(){this instanceof d||x();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new d),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new d),i.set___(t,e)}else n.set(t,e);return this},Object.create(d.prototype,{get___:{value:y((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:y((function(t){return n.has(t)||!!i&amp;&amp;i.has___(t)}))},set___:{value:y(e)},delete___:{value:y((function(t){var e=!!n.delete(t);return i&amp;&amp;i.delete___(t)||e}))},permitHostObjects___:{value:y((function(t){if(t!==g)throw new Error(&quot;bogus call to permitHostObjects___&quot;);a=!0}))}})}t&amp;&amp;&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),n.prototype=d.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,&quot;constructor&quot;,{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),e.exports=d)}function g(t){t.permitHostObjects___&amp;&amp;t.permitHostObjects___(g)}function m(t){return!(&quot;weakmap:&quot;==t.substr(0,&quot;weakmap:&quot;.length)&amp;&amp;&quot;___&quot;===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError(&quot;Not an object: &quot;+t);var e=t[l];if(e&amp;&amp;e.key===t)return e;if(s(t)){e={key:t};try{return o(t,l,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function y(t){return t.prototype=null,Object.freeze(t)}function x(){h||&quot;undefined&quot;==typeof console||(h=!0,console.warn(&quot;WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.&quot;))}}()},{}],626:[function(t,e,r){var n=t(&quot;./hidden-store.js&quot;);e.exports=function(){var t={};return function(e){if((&quot;object&quot;!=typeof e||null===e)&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;Weakmap-shim: Key must be object&quot;);var r=e.valueOf(t);return r&amp;&amp;r.identity===t?r:n(e,t)}}},{&quot;./hidden-store.js&quot;:627}],627:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,&quot;valueOf&quot;,{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],628:[function(t,e,r){var n=t(&quot;./create-store.js&quot;);e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(&quot;value&quot;)?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return&quot;value&quot;in t(e)},delete:function(e){return delete t(e).value}}}},{&quot;./create-store.js&quot;:626}],629:[function(t,e,r){var n=t(&quot;get-canvas-context&quot;);e.exports=function(t){return n(&quot;webgl&quot;,t)}},{&quot;get-canvas-context&quot;:257}],630:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Chinese&quot;,jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Chinese&quot;,epochs:[&quot;BEC&quot;,&quot;EC&quot;],monthNumbers:function(t,e){if(&quot;string&quot;==typeof t){var r=t.match(l);return r?r[0]:&quot;&quot;}var n=this._validateYear(t),i=t.month(),a=&quot;&quot;+this.toChineseMonth(n,i);return e&amp;&amp;a.length&lt;2&amp;&amp;(a=&quot;0&quot;+a),this.isIntercalaryMonth(n,i)&amp;&amp;(a+=&quot;i&quot;),a},monthNames:function(t){if(&quot;string&quot;==typeof t){var e=t.match(c);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00\u6708&quot;,&quot;\u4e8c\u6708&quot;,&quot;\u4e09\u6708&quot;,&quot;\u56db\u6708&quot;,&quot;\u4e94\u6708&quot;,&quot;\u516d\u6708&quot;,&quot;\u4e03\u6708&quot;,&quot;\u516b\u6708&quot;,&quot;\u4e5d\u6708&quot;,&quot;\u5341\u6708&quot;,&quot;\u5341\u4e00\u6708&quot;,&quot;\u5341\u4e8c\u6708&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},monthNamesShort:function(t){if(&quot;string&quot;==typeof t){var e=t.match(u);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))&quot;\u95f0&quot;===e[0]&amp;&amp;(r=!0,e=e.substring(1)),&quot;\u6708&quot;===e[e.length-1]&amp;&amp;(e=e.substring(0,e.length-1)),n=1+[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;].indexOf(e);else{var i=e[e.length-1];r=&quot;i&quot;===i||&quot;I&quot;===i}return this.toMonthIndex(t,n,r)},dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&amp;&amp;(t=t.year()),&quot;number&quot;!=typeof t||t&lt;1888||t&gt;2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&amp;&amp;e!==i||e&lt;1||e&gt;12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&amp;&amp;e&lt;=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e&lt;0||e&gt;(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e&lt;r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]&gt;&gt;13},isIntercalaryMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&amp;&amp;r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s&gt;&gt;9&amp;4095,c=s&gt;&gt;5&amp;15,u=31&amp;s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),&quot;d&quot;);var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&amp;&amp;(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e&gt;(r&gt;&gt;13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&amp;1&lt;&lt;12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(&quot;object&quot;==typeof t)o=t,a=e||{};else{var l;if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Lunar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Lunar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=30))throw new Error(&quot;Lunar day outside range 1 - 30&quot;);&quot;object&quot;==typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],p=u&gt;&gt;13;c=p&amp;&amp;(o.month&gt;p||o.isIntercalary)?o.month:o.month-1;for(var d=0;d&lt;c;d++){s+=u&amp;1&lt;&lt;12-d?30:29}var g=h[o.year-h[0]],m=new Date(g&gt;&gt;9&amp;4095,(g&gt;&gt;5&amp;15)-1,(31&amp;g)+s);return a.year=m.getFullYear(),a.month=1+m.getMonth(),a.day=m.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(&quot;object&quot;==typeof t)i=t,a=e||{};else{if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Solar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Solar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=31))throw new Error(&quot;Solar day outside range 1 - 31&quot;);i={year:t,month:e,day:r},a=n||{}}var o=h[i.year-h[0]],s=i.year&lt;&lt;9|i.month&lt;&lt;5|i.day;a.year=s&gt;=o?i.year:i.year-1,o=h[a.year-h[0]];var l,c=new Date(o&gt;&gt;9&amp;4095,(o&gt;&gt;5&amp;15)-1,31&amp;o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var p,d=f[a.year-f[0]];for(p=0;p&lt;13;p++){var g=d&amp;1&lt;&lt;12-p?30:29;if(l&lt;g)break;l-=g}var m=d&gt;&gt;13;!m||p&lt;m?(a.isIntercalary=!1,a.month=1+p):p===m?(a.isIntercalary=!0,a.month=p):(a.isIntercalary=!1,a.month=p);return a.day=1+l,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(&quot;y&quot;===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&amp;&amp;f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&amp;&amp;l.month(h)}return l}});var s=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,l=/^\d?\d[iI]?/m,c=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?\u6708/m,u=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],631:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Coptic&quot;,jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Coptic&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Thout&quot;,&quot;Paopi&quot;,&quot;Hathor&quot;,&quot;Koiak&quot;,&quot;Tobi&quot;,&quot;Meshir&quot;,&quot;Paremhat&quot;,&quot;Paremoude&quot;,&quot;Pashons&quot;,&quot;Paoni&quot;,&quot;Epip&quot;,&quot;Mesori&quot;,&quot;Pi Kogi Enavot&quot;],monthNamesShort:[&quot;Tho&quot;,&quot;Pao&quot;,&quot;Hath&quot;,&quot;Koi&quot;,&quot;Tob&quot;,&quot;Mesh&quot;,&quot;Pat&quot;,&quot;Pad&quot;,&quot;Pash&quot;,&quot;Pao&quot;,&quot;Epi&quot;,&quot;Meso&quot;,&quot;PiK&quot;],dayNames:[&quot;Tkyriaka&quot;,&quot;Pesnau&quot;,&quot;Pshoment&quot;,&quot;Peftoou&quot;,&quot;Ptiou&quot;,&quot;Psoou&quot;,&quot;Psabbaton&quot;],dayNamesShort:[&quot;Tky&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pti&quot;,&quot;Pso&quot;,&quot;Psa&quot;],dayNamesMin:[&quot;Tk&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pt&quot;,&quot;Pso&quot;,&quot;Psa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],632:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Discworld&quot;,jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Discworld&quot;,epochs:[&quot;BUC&quot;,&quot;UC&quot;],monthNames:[&quot;Ick&quot;,&quot;Offle&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;Grune&quot;,&quot;August&quot;,&quot;Spune&quot;,&quot;Sektober&quot;,&quot;Ember&quot;,&quot;December&quot;],monthNamesShort:[&quot;Ick&quot;,&quot;Off&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Gru&quot;,&quot;Aug&quot;,&quot;Spu&quot;,&quot;Sek&quot;,&quot;Emb&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Octeday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Oct&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Oc&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n&gt;=2&amp;&amp;n&lt;=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||&quot;&quot;}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()&lt;0?1:0),e=i.month(),(r=i.day())+(e&gt;1?16:0)+(e&gt;2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t&gt;15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e&lt;=0?e-1:e,r,n)}});var o={20:&quot;Fruitbat&quot;,21:&quot;Anchovy&quot;};n.calendars.discworld=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],633:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Ethiopian&quot;,jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Ethiopian&quot;,epochs:[&quot;BEE&quot;,&quot;EE&quot;],monthNames:[&quot;Meskerem&quot;,&quot;Tikemet&quot;,&quot;Hidar&quot;,&quot;Tahesas&quot;,&quot;Tir&quot;,&quot;Yekatit&quot;,&quot;Megabit&quot;,&quot;Miazia&quot;,&quot;Genbot&quot;,&quot;Sene&quot;,&quot;Hamle&quot;,&quot;Nehase&quot;,&quot;Pagume&quot;],monthNamesShort:[&quot;Mes&quot;,&quot;Tik&quot;,&quot;Hid&quot;,&quot;Tah&quot;,&quot;Tir&quot;,&quot;Yek&quot;,&quot;Meg&quot;,&quot;Mia&quot;,&quot;Gen&quot;,&quot;Sen&quot;,&quot;Ham&quot;,&quot;Neh&quot;,&quot;Pag&quot;],dayNames:[&quot;Ehud&quot;,&quot;Segno&quot;,&quot;Maksegno&quot;,&quot;Irob&quot;,&quot;Hamus&quot;,&quot;Arb&quot;,&quot;Kidame&quot;],dayNamesShort:[&quot;Ehu&quot;,&quot;Seg&quot;,&quot;Mak&quot;,&quot;Iro&quot;,&quot;Ham&quot;,&quot;Arb&quot;,&quot;Kid&quot;],dayNamesMin:[&quot;Eh&quot;,&quot;Se&quot;,&quot;Ma&quot;,&quot;Ir&quot;,&quot;Ha&quot;,&quot;Ar&quot;,&quot;Ki&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],634:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Hebrew&quot;,jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Hebrew&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Nisan&quot;,&quot;Iyar&quot;,&quot;Sivan&quot;,&quot;Tammuz&quot;,&quot;Av&quot;,&quot;Elul&quot;,&quot;Tishrei&quot;,&quot;Cheshvan&quot;,&quot;Kislev&quot;,&quot;Tevet&quot;,&quot;Shevat&quot;,&quot;Adar&quot;,&quot;Adar II&quot;],monthNamesShort:[&quot;Nis&quot;,&quot;Iya&quot;,&quot;Siv&quot;,&quot;Tam&quot;,&quot;Av&quot;,&quot;Elu&quot;,&quot;Tis&quot;,&quot;Che&quot;,&quot;Kis&quot;,&quot;Tev&quot;,&quot;She&quot;,&quot;Ada&quot;,&quot;Ad2&quot;],dayNames:[&quot;Yom Rishon&quot;,&quot;Yom Sheni&quot;,&quot;Yom Shlishi&quot;,&quot;Yom Revi'i&quot;,&quot;Yom Chamishi&quot;,&quot;Yom Shishi&quot;,&quot;Yom Shabbat&quot;],dayNamesShort:[&quot;Ris&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Rev&quot;,&quot;Cha&quot;,&quot;Shi&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ri&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Re&quot;,&quot;Ch&quot;,&quot;Shi&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t&lt;0?t+1:t)+1,19)&lt;7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&amp;&amp;this.leapYear(t)||8===e&amp;&amp;5===o(this.daysInYear(t),10)?30:9===e&amp;&amp;3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?&quot;embolismic&quot;:&quot;common&quot;)+&quot; &quot;+[&quot;deficient&quot;,&quot;regular&quot;,&quot;complete&quot;][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t&lt;=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e&lt;7){for(var s=7;s&lt;=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s&lt;e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s&lt;e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)&lt;3&amp;&amp;n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t&gt;=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t&lt;this.toJD(e,1,1)?7:1;t&gt;this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],635:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Islamic&quot;,jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Islamic&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' al-thani&quot;,&quot;Jumada al-awwal&quot;,&quot;Jumada al-thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-ahad&quot;,&quot;Yawm al-ithnayn&quot;,&quot;Yawm ath-thulaathaa'&quot;,&quot;Yawm al-arbi'aa'&quot;,&quot;Yawm al-kham\u012bs&quot;,&quot;Yawm al-jum'a&quot;,&quot;Yawm as-sabt&quot;],dayNamesShort:[&quot;Aha&quot;,&quot;Ith&quot;,&quot;Thu&quot;,&quot;Arb&quot;,&quot;Kha&quot;,&quot;Jum&quot;,&quot;Sab&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;It&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30&lt;11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t&lt;=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e&lt;=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],636:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Julian&quot;,jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Julian&quot;,epochs:[&quot;BC&quot;,&quot;AD&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()&lt;0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t&lt;0&amp;&amp;t++,e&lt;=2&amp;&amp;(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i&lt;14?1:13),o=r-Math.floor(a&gt;2?4716:4715),s=e-n-Math.floor(30.6001*i);return o&lt;=0&amp;&amp;o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],637:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Mayan&quot;,jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{&quot;&quot;:{name:&quot;Mayan&quot;,epochs:[&quot;&quot;,&quot;&quot;],monthNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],monthNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],dayNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesMin:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],digits:null,dateFormat:&quot;YYYY.m.d&quot;,firstDay:0,isRTL:!1,haabMonths:[&quot;Pop&quot;,&quot;Uo&quot;,&quot;Zip&quot;,&quot;Zotz&quot;,&quot;Tzec&quot;,&quot;Xul&quot;,&quot;Yaxkin&quot;,&quot;Mol&quot;,&quot;Chen&quot;,&quot;Yax&quot;,&quot;Zac&quot;,&quot;Ceh&quot;,&quot;Mac&quot;,&quot;Kankin&quot;,&quot;Muan&quot;,&quot;Pax&quot;,&quot;Kayab&quot;,&quot;Cumku&quot;,&quot;Uayeb&quot;],tzolkinMonths:[&quot;Imix&quot;,&quot;Ik&quot;,&quot;Akbal&quot;,&quot;Kan&quot;,&quot;Chicchan&quot;,&quot;Cimi&quot;,&quot;Manik&quot;,&quot;Lamat&quot;,&quot;Muluc&quot;,&quot;Oc&quot;,&quot;Chuen&quot;,&quot;Eb&quot;,&quot;Ben&quot;,&quot;Ix&quot;,&quot;Men&quot;,&quot;Cib&quot;,&quot;Caban&quot;,&quot;Etznab&quot;,&quot;Cauac&quot;,&quot;Ahau&quot;]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t&lt;0?400:0,e+&quot;.&quot;+Math.floor(t/20)+&quot;.&quot;+t%20},forYear:function(t){if((t=t.split(&quot;.&quot;)).length&lt;3)throw&quot;Invalid Mayan year&quot;;for(var e=0,r=0;r&lt;t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)&gt;19||r&gt;0&amp;&amp;n&lt;0)throw&quot;Invalid Mayan year&quot;;e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t&lt;0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],638:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar;var o=n.instance(&quot;gregorian&quot;);i(a.prototype,{name:&quot;Nanakshahi&quot;,jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Nanakshahi&quot;,epochs:[&quot;BN&quot;,&quot;AN&quot;],monthNames:[&quot;Chet&quot;,&quot;Vaisakh&quot;,&quot;Jeth&quot;,&quot;Harh&quot;,&quot;Sawan&quot;,&quot;Bhadon&quot;,&quot;Assu&quot;,&quot;Katak&quot;,&quot;Maghar&quot;,&quot;Poh&quot;,&quot;Magh&quot;,&quot;Phagun&quot;],monthNamesShort:[&quot;Che&quot;,&quot;Vai&quot;,&quot;Jet&quot;,&quot;Har&quot;,&quot;Saw&quot;,&quot;Bha&quot;,&quot;Ass&quot;,&quot;Kat&quot;,&quot;Mgr&quot;,&quot;Poh&quot;,&quot;Mgh&quot;,&quot;Pha&quot;],dayNames:[&quot;Somvaar&quot;,&quot;Mangalvar&quot;,&quot;Budhvaar&quot;,&quot;Veervaar&quot;,&quot;Shukarvaar&quot;,&quot;Sanicharvaar&quot;,&quot;Etvaar&quot;],dayNamesShort:[&quot;Som&quot;,&quot;Mangal&quot;,&quot;Budh&quot;,&quot;Veer&quot;,&quot;Shukar&quot;,&quot;Sanichar&quot;,&quot;Et&quot;],dayNamesMin:[&quot;So&quot;,&quot;Ma&quot;,&quot;Bu&quot;,&quot;Ve&quot;,&quot;Sh&quot;,&quot;Sa&quot;,&quot;Et&quot;],digits:null,dateFormat:&quot;dd-mm-yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear);return o.leapYear(e.year()+(e.year()&lt;1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())&lt;0&amp;&amp;t++;for(var a=i.day(),s=1;s&lt;i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t&gt;=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r&gt;this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],639:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Nepali&quot;,jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{&quot;&quot;:{name:&quot;Nepali&quot;,epochs:[&quot;BBS&quot;,&quot;ABS&quot;],monthNames:[&quot;Baisakh&quot;,&quot;Jestha&quot;,&quot;Ashadh&quot;,&quot;Shrawan&quot;,&quot;Bhadra&quot;,&quot;Ashwin&quot;,&quot;Kartik&quot;,&quot;Mangsir&quot;,&quot;Paush&quot;,&quot;Mangh&quot;,&quot;Falgun&quot;,&quot;Chaitra&quot;],monthNamesShort:[&quot;Bai&quot;,&quot;Je&quot;,&quot;As&quot;,&quot;Shra&quot;,&quot;Bha&quot;,&quot;Ash&quot;,&quot;Kar&quot;,&quot;Mang&quot;,&quot;Pau&quot;,&quot;Ma&quot;,&quot;Fal&quot;,&quot;Chai&quot;],dayNames:[&quot;Aaitabaar&quot;,&quot;Sombaar&quot;,&quot;Manglbaar&quot;,&quot;Budhabaar&quot;,&quot;Bihibaar&quot;,&quot;Shukrabaar&quot;,&quot;Shanibaar&quot;],dayNamesShort:[&quot;Aaita&quot;,&quot;Som&quot;,&quot;Mangl&quot;,&quot;Budha&quot;,&quot;Bihi&quot;,&quot;Shukra&quot;,&quot;Shani&quot;],dayNamesMin:[&quot;Aai&quot;,&quot;So&quot;,&quot;Man&quot;,&quot;Bu&quot;,&quot;Bi&quot;,&quot;Shu&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r&lt;=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s&gt;9||9===s&amp;&amp;r&gt;=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&amp;&amp;(o=r,s--);9!==s;)s&lt;=0&amp;&amp;(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])&lt;0&amp;&amp;(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,&quot;d&quot;).toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i&gt;l;)++o&gt;12&amp;&amp;(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r&lt;t+2;r++)void 0===this.NEPALI_CALENDAR_DATA[r]&amp;&amp;(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],640:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Persian&quot;,jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Persian&quot;,epochs:[&quot;BP&quot;,&quot;AP&quot;],monthNames:[&quot;Farvardin&quot;,&quot;Ordibehesht&quot;,&quot;Khordad&quot;,&quot;Tir&quot;,&quot;Mordad&quot;,&quot;Shahrivar&quot;,&quot;Mehr&quot;,&quot;Aban&quot;,&quot;Azar&quot;,&quot;Day&quot;,&quot;Bahman&quot;,&quot;Esfand&quot;],monthNamesShort:[&quot;Far&quot;,&quot;Ord&quot;,&quot;Kho&quot;,&quot;Tir&quot;,&quot;Mor&quot;,&quot;Sha&quot;,&quot;Meh&quot;,&quot;Aba&quot;,&quot;Aza&quot;,&quot;Day&quot;,&quot;Bah&quot;,&quot;Esf&quot;],dayNames:[&quot;Yekshambe&quot;,&quot;Doshambe&quot;,&quot;Seshambe&quot;,&quot;Ch\xe6harshambe&quot;,&quot;Panjshambe&quot;,&quot;Jom'e&quot;,&quot;Shambe&quot;],dayNamesShort:[&quot;Yek&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch\xe6&quot;,&quot;Panj&quot;,&quot;Jom&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ye&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch&quot;,&quot;Pa&quot;,&quot;Jo&quot;,&quot;Sh&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()&gt;0?474:473))%2820+474+38)%2816&lt;682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t&gt;=0?474:473),s=474+o(a,2820);return r+(e&lt;=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l&lt;=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c&lt;=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],641:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Taiwan&quot;,jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Taiwan&quot;,epochs:[&quot;BROC&quot;,&quot;ROC&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],642:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Thai&quot;,jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Thai&quot;,epochs:[&quot;BBE&quot;,&quot;BE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)}}),n.calendars.thai=o},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],643:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;UmmAlQura&quot;,hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Umm al-Qura&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Al-Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' Al-Thani&quot;,&quot;Jumada Al-Awwal&quot;,&quot;Jumada Al-Thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-Ahad&quot;,&quot;Yawm al-Ithnain&quot;,&quot;Yawm al-Thal\u0101th\u0101\u2019&quot;,&quot;Yawm al-Arba\u2018\u0101\u2019&quot;,&quot;Yawm al-Kham\u012bs&quot;,&quot;Yawm al-Jum\u2018a&quot;,&quot;Yawm al-Sabt&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;Ith&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r&lt;=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a&lt;o.length;a++){if(o[a]&gt;r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n&lt;o.length&amp;&amp;!(o[n]&gt;e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&amp;&amp;(i=(t=null!=t.year?t.year:t)&gt;=1276&amp;&amp;t&lt;=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year&lt;1276||a.year&gt;1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],644:[function(t,e,r){var n=t(&quot;object-assign&quot;);function i(){this.regionalOptions=[],this.regionalOptions[&quot;&quot;]={invalidCalendar:&quot;Calendar {0} not found&quot;,invalidDate:&quot;Invalid {0} date&quot;,invalidMonth:&quot;Invalid {0} month&quot;,invalidYear:&quot;Invalid {0} year&quot;,differentCalendars:&quot;Cannot mix {0} and {1} dates&quot;},this.local=this.regionalOptions[&quot;&quot;],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&amp;&amp;!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return&quot;000000&quot;.substring(0,e-(t=&quot;&quot;+t).length)+t}function s(){this.shortYearCutoff=&quot;+10&quot;}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[&quot;&quot;]}n(i.prototype,{instance:function(t,e){t=(t||&quot;gregorian&quot;).toLowerCase(),e=e||&quot;&quot;;var r=this._localCals[t+&quot;-&quot;+e];if(!r&amp;&amp;this.calendars[t]&amp;&amp;(r=new this.calendars[t](e),this._localCals[t+&quot;-&quot;+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[&quot;&quot;].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&amp;&amp;t.year?t.calendar():&quot;string&quot;==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+&quot;&quot;).replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n=&quot;&quot;,i=0;r&gt;0;){var a=r%10;n=(0===a?&quot;&quot;:t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&amp;&amp;(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,&quot;y&quot;)},month:function(t){return 0===arguments.length?this._month:this.set(t,&quot;m&quot;)},day:function(t){return 0===arguments.length?this._day:this.set(t,&quot;d&quot;)},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e&lt;0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(this.year()),4)+&quot;-&quot;+o(this.month(),2)+&quot;-&quot;+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&amp;&amp;(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear).year()&lt;0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(e.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,&quot;d&quot;===r||&quot;w&quot;===r){var n=t.toJD()+e*(&quot;w&quot;===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(&quot;y&quot;===r?e:0),o=t.monthOfYear()+(&quot;m&quot;===r?e:0);i=t.day();&quot;y&quot;===r?(t.month()!==this.fromMonthOfYear(a,o)&amp;&amp;(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):&quot;m&quot;===r&amp;&amp;(!function(t){for(;o&lt;t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o&gt;e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||&quot;y&quot;!==n&amp;&amp;&quot;m&quot;!==n||0!==e[0]&amp;&amp;t.year()&gt;0==e[0]&gt;0)){var i={y:[1,1,&quot;y&quot;],m:[1,this.monthsInYear(-1),&quot;m&quot;],w:[this.daysInWeek(),this.daysInYear(-1),&quot;d&quot;],d:[1,this.daysInYear(-1),&quot;d&quot;]}[n],a=r&lt;0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);var n=&quot;y&quot;===r?e:t.year(),i=&quot;m&quot;===r?e:t.month(),a=&quot;d&quot;===r?e:t.day();return&quot;y&quot;!==r&amp;&amp;&quot;m&quot;!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e&gt;=this.minMonth&amp;&amp;e-this.minMonth&lt;this.monthsInYear(i)&amp;&amp;r&gt;=this.minDay&amp;&amp;r-this.minDay&lt;this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&amp;&amp;this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&amp;&amp;!this.isValid(t,e,r))throw n.replace(/\{0\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:&quot;Gregorian&quot;,jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Gregorian&quot;,epochs:[&quot;BCE&quot;,&quot;CE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==0&amp;&amp;(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);t=n.year(),e=n.month(),r=n.day(),t&lt;0&amp;&amp;t++,e&lt;3&amp;&amp;(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o&gt;13.5?13:1),c=i-(l&gt;2.5?4716:4715);return c&lt;=0&amp;&amp;c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()&gt;12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{&quot;object-assign&quot;:487}],645:[function(t,e,r){var n=t(&quot;object-assign&quot;),i=t(&quot;./main&quot;);n(i.regionalOptions[&quot;&quot;],{invalidArguments:&quot;Invalid arguments&quot;,invalidFormat:&quot;Cannot format a date from another calendar&quot;,missingNumberAt:&quot;Missing number at position {0}&quot;,unknownNameAt:&quot;Unknown name at position {0}&quot;,unexpectedLiteralAt:&quot;Unexpected literal at position {0}&quot;,unexpectedText:&quot;Additional text found at end&quot;}),i.local=i.regionalOptions[&quot;&quot;],n(i.cdate.prototype,{formatDate:function(t,e){return&quot;string&quot;!=typeof t&amp;&amp;(e=t,t=&quot;&quot;),this._calendar.formatDate(t||&quot;&quot;,this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:&quot;yyyy-mm-dd&quot;,COOKIE:&quot;D, dd M yyyy&quot;,FULL:&quot;DD, MM d, yyyy&quot;,ISO_8601:&quot;yyyy-mm-dd&quot;,JULIAN:&quot;J&quot;,RFC_822:&quot;D, d M yy&quot;,RFC_850:&quot;DD, dd-M-yy&quot;,RFC_1036:&quot;D, d M yy&quot;,RFC_1123:&quot;D, d M yyyy&quot;,RFC_2822:&quot;D, d M yyyy&quot;,RSS:&quot;D, d M yy&quot;,TICKS:&quot;!&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yyyy-mm-dd&quot;,formatDate:function(t,e,r){if(&quot;string&quot;!=typeof t&amp;&amp;(r=e,e=t,t=&quot;&quot;),!e)return&quot;&quot;;if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[&quot;&quot;].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n&lt;t.length&amp;&amp;t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))&gt;1}),d=function(t,e,r,n){var i=&quot;&quot;+e;if(p(t,n))for(;i.length&lt;r;)i=&quot;0&quot;+i;return i},g=this,m=function(t){return&quot;function&quot;==typeof u?u.call(g,t,p(&quot;m&quot;)):x(d(&quot;m&quot;,t.month(),2))},v=function(t,e){return e?&quot;function&quot;==typeof h?h.call(g,t):h[t.month()-g.minMonth]:&quot;function&quot;==typeof f?f.call(g,t):f[t.month()-g.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&amp;&amp;y?y(t):t},b=&quot;&quot;,_=!1,w=0;w&lt;t.length;w++)if(_)&quot;'&quot;!==t.charAt(w)||p(&quot;'&quot;)?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case&quot;d&quot;:b+=x(d(&quot;d&quot;,e.day(),2));break;case&quot;D&quot;:b+=(n=&quot;D&quot;,a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case&quot;o&quot;:b+=d(&quot;o&quot;,e.dayOfYear(),3);break;case&quot;w&quot;:b+=d(&quot;w&quot;,e.weekOfYear(),2);break;case&quot;m&quot;:b+=m(e);break;case&quot;M&quot;:b+=v(e,p(&quot;M&quot;));break;case&quot;y&quot;:b+=p(&quot;y&quot;,2)?e.year():(e.year()%100&lt;10?&quot;0&quot;:&quot;&quot;)+e.year()%100;break;case&quot;Y&quot;:p(&quot;Y&quot;,2),b+=e.formatYear();break;case&quot;J&quot;:b+=e.toJD();break;case&quot;@&quot;:b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case&quot;!&quot;:b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case&quot;'&quot;:p(&quot;'&quot;)?b+=&quot;'&quot;:_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[&quot;&quot;].invalidArguments;if(&quot;&quot;===(e=&quot;object&quot;==typeof e?e.toString():e+&quot;&quot;))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=&quot;string&quot;!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,g=-1,m=!1,v=!1,y=function(e,r){for(var n=1;M+n&lt;t.length&amp;&amp;t.charAt(M+n)===e;)n++;return M+=n-1,Math.floor(n/(r||1))&gt;1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][&quot;oyYJ@!&quot;.indexOf(t)+1],o=new RegExp(&quot;^-?\\d{1,&quot;+a+&quot;}&quot;),s=e.substring(A).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[&quot;&quot;].missingNumberAt).replace(/\{0\}/,A);return A+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(&quot;function&quot;==typeof l){y(&quot;m&quot;);var t=l.call(b,e.substring(A));return A+=t.length,t}return x(&quot;m&quot;)},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s&lt;o.length;s++)if(e.substr(A,o[s].length).toLowerCase()===o[s].toLowerCase())return A+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[&quot;&quot;].unknownNameAt).replace(/\{0\}/,A)},T=function(){if(&quot;function&quot;==typeof u){var t=y(&quot;M&quot;)?u.call(b,e.substring(A)):c.call(b,e.substring(A));return A+=t.length,t}return w(&quot;M&quot;,c,u)},k=function(){if(e.charAt(A)!==t.charAt(M))throw(i.local.unexpectedLiteralAt||i.regionalOptions[&quot;&quot;].unexpectedLiteralAt).replace(/\{0\}/,A);A++},A=0,M=0;M&lt;t.length;M++)if(v)&quot;'&quot;!==t.charAt(M)||y(&quot;'&quot;)?k():v=!1;else switch(t.charAt(M)){case&quot;d&quot;:d=x(&quot;d&quot;);break;case&quot;D&quot;:w(&quot;D&quot;,a,o);break;case&quot;o&quot;:g=x(&quot;o&quot;);break;case&quot;w&quot;:x(&quot;w&quot;);break;case&quot;m&quot;:p=_();break;case&quot;M&quot;:p=T();break;case&quot;y&quot;:var S=M;m=!y(&quot;y&quot;,2),M=S,h=x(&quot;y&quot;,2);break;case&quot;Y&quot;:h=x(&quot;Y&quot;,2);break;case&quot;J&quot;:f=x(&quot;J&quot;)+.5,&quot;.&quot;===e.charAt(A)&amp;&amp;(A++,x(&quot;J&quot;));break;case&quot;@&quot;:f=x(&quot;@&quot;)/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case&quot;!&quot;:f=x(&quot;!&quot;)/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case&quot;*&quot;:A=e.length;break;case&quot;'&quot;:y(&quot;'&quot;)?k():v=!0;break;default:k()}if(A&lt;e.length)throw i.local.unexpectedText||i.regionalOptions[&quot;&quot;].unexpectedText;if(-1===h?h=this.today().year():h&lt;100&amp;&amp;m&amp;&amp;(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h&lt;=n?0:100)),&quot;string&quot;==typeof p&amp;&amp;(p=s.call(this,h,p)),g&gt;-1){p=1,d=g;for(var E=this.daysInMonth(h,p);d&gt;E;E=this.daysInMonth(h,p))p++,d-=E}return f&gt;-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&amp;&amp;&quot;object&quot;!=typeof r&amp;&amp;(i=n,n=r,r=null),&quot;string&quot;!=typeof n&amp;&amp;(i=n,n=&quot;&quot;);var a=this;return e=e?e.newDate():null,t=null==t?e:&quot;string&quot;==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&amp;&amp;r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||&quot;d&quot;),s=o.exec(t);return e}(t):&quot;number&quot;==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,&quot;d&quot;):a.newDate(t)}})},{&quot;./main&quot;:644,&quot;object-assign&quot;:487}],646:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,{offset:[1],array:0},&quot;scalar&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\n        var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\n        var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\n        if((_inline_1_da &gt;= 0) !== (_inline_1_db &gt;= 0)) {\n          _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n        }\n      }&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg3_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg4_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[&quot;_inline_1_da&quot;,&quot;_inline_1_db&quot;]},funcName:&quot;zeroCrossings&quot;})},{&quot;cwise-compiler&quot;:157}],647:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(&quot;./lib/zc-core&quot;)},{&quot;./lib/zc-core&quot;:646}],648:[function(t,e,r){&quot;use strict&quot;;e.exports=[{path:&quot;&quot;,backoff:0},{path:&quot;M-2.4,-3V3L0.6,0Z&quot;,backoff:.6},{path:&quot;M-3.7,-2.5V2.5L1.3,0Z&quot;,backoff:1.3},{path:&quot;M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z&quot;,backoff:1.55},{path:&quot;M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z&quot;,backoff:1.6},{path:&quot;M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z&quot;,backoff:2},{path:&quot;M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z&quot;,backoff:0,noRotate:!0},{path:&quot;M2,2V-2H-2V2Z&quot;,backoff:0,noRotate:!0}]},{}],649:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./arrow_paths&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../plots/cartesian/constants&quot;),o=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=o(&quot;annotation&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},text:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},textangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},font:i({editType:&quot;calc+arraydraw&quot;,colorEditType:&quot;arraydraw&quot;}),width:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},height:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;center&quot;,editType:&quot;arraydraw&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;arraydraw&quot;},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},borderpad:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},showarrow:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},arrowcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},arrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},startarrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},arrowside:{valType:&quot;flaglist&quot;,flags:[&quot;end&quot;,&quot;start&quot;],extras:[&quot;none&quot;],dflt:&quot;end&quot;,editType:&quot;arraydraw&quot;},arrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},startarrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},arrowwidth:{valType:&quot;number&quot;,min:.1,editType:&quot;calc+arraydraw&quot;},standoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},startstandoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},ax:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},ay:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},axref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},ayref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},x:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},xshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},y:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},yshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},clicktoshow:{valType:&quot;enumerated&quot;,values:[!1,&quot;onoff&quot;,&quot;onout&quot;],dflt:!1,editType:&quot;arraydraw&quot;},xclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},yclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},hovertext:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},font:i({editType:&quot;arraydraw&quot;}),editType:&quot;arraydraw&quot;},captureevents:{valType:&quot;boolean&quot;,editType:&quot;arraydraw&quot;},editType:&quot;calc&quot;,_deprecated:{ref:{valType:&quot;string&quot;,editType:&quot;calc&quot;}}})},{&quot;../../constants/axis_placeable_objects&quot;:772,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/constants&quot;:861,&quot;../../plots/font_attributes&quot;:883,&quot;./arrow_paths&quot;:648}],650:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./draw&quot;).draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},&quot;range&quot;===a&amp;&amp;s(e,r),&quot;range&quot;===o&amp;&amp;s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[&quot;a&quot;+a],l=t[a+&quot;ref&quot;],c=t[&quot;a&quot;+a+&quot;ref&quot;],u=t[&quot;_&quot;+a+&quot;padplus&quot;],f=t[&quot;_&quot;+a+&quot;padminus&quot;],h={x:1,y:-1}[a]*t[a+&quot;shift&quot;],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,g=p-h,m=3*t.startarrowsize*t.arrowwidth||0,v=m+h,y=m-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:g}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,v),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&amp;&amp;t._fullData.length)return n.syncOrAsync([a,o],t)}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;./draw&quot;:655}],651:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plot_api/plot_template&quot;).arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r&lt;u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n&lt;d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&amp;&amp;c._id===i.yref&amp;&amp;l.d2r(o.x)===s(i._xclick,l)&amp;&amp;c.d2r(o.y)===s(i._yclick,c)){(i.visible?&quot;onout&quot;===a?h:p:f).push(r);break}n===d&amp;&amp;i.visible&amp;&amp;&quot;onout&quot;===a&amp;&amp;h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return&quot;log&quot;===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length&gt;0||r.explicitOff.length&gt;0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&amp;&amp;!u.length)return;for(r=0;r&lt;c.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[c[r]])).modifyItem(&quot;visible&quot;,!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r&lt;u.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[u[r]])).modifyItem(&quot;visible&quot;,!1),n.extendFlat(f,s.getUpdateObj());return i.call(&quot;update&quot;,t,{},f)}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../registry&quot;:931}],652:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;);e.exports=function(t,e,r,a){a(&quot;opacity&quot;);var o=a(&quot;bgcolor&quot;),s=a(&quot;bordercolor&quot;),l=i.opacity(s);a(&quot;borderpad&quot;);var c=a(&quot;borderwidth&quot;),u=a(&quot;showarrow&quot;);if(a(&quot;text&quot;,u?&quot; &quot;:r._dfltTitle.annotation),a(&quot;textangle&quot;),n.coerceFont(a,&quot;font&quot;,r.font),a(&quot;width&quot;),a(&quot;align&quot;),a(&quot;height&quot;)&amp;&amp;a(&quot;valign&quot;),u){var f,h,p=a(&quot;arrowside&quot;);-1!==p.indexOf(&quot;end&quot;)&amp;&amp;(f=a(&quot;arrowhead&quot;),h=a(&quot;arrowsize&quot;)),-1!==p.indexOf(&quot;start&quot;)&amp;&amp;(a(&quot;startarrowhead&quot;,f),a(&quot;startarrowsize&quot;,h)),a(&quot;arrowcolor&quot;,l?e.bordercolor:i.defaultLine),a(&quot;arrowwidth&quot;,2*(l&amp;&amp;c||1)),a(&quot;standoff&quot;),a(&quot;startstandoff&quot;)}var d=a(&quot;hovertext&quot;),g=r.hoverlabel||{};if(d){var m=a(&quot;hoverlabel.bgcolor&quot;,g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),v=a(&quot;hoverlabel.bordercolor&quot;,g.bordercolor||i.contrast(m));n.coerceFont(a,&quot;hoverlabel.font&quot;,{family:g.font.family,size:g.font.size,color:g.font.color||v})}a(&quot;captureevents&quot;,!!d)}},{&quot;../../lib&quot;:803,&quot;../color&quot;:666}],653:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h&lt;u.length;h++)l=u[h],c=&quot;annotations[&quot;+h+&quot;].&quot;,l[f+&quot;ref&quot;]===e._id&amp;&amp;p(f),l[&quot;a&quot;+f+&quot;ref&quot;]===e._id&amp;&amp;p(&quot;a&quot;+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{&quot;../../lib/to_log_range&quot;:831,&quot;fast-isnumeric&quot;:249}],654:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(&quot;visible&quot;),c=a(&quot;clicktoshow&quot;);if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[&quot;x&quot;,&quot;y&quot;],h=[-10,-30],p={_fullLayout:r},d=0;d&lt;2;d++){var g=f[d],m=i.coerceRef(t,e,p,g,&quot;&quot;,&quot;paper&quot;);if(&quot;paper&quot;!==m)i.getFromId(p,m)._annIndices.push(e._index);if(i.coercePosition(e,p,a,m,g,.5),u){var v=&quot;a&quot;+g,y=i.coerceRef(t,e,p,v,&quot;pixel&quot;,[&quot;pixel&quot;,&quot;paper&quot;]);&quot;pixel&quot;!==y&amp;&amp;y!==m&amp;&amp;(y=e[v]=&quot;pixel&quot;);var x=&quot;pixel&quot;===y?h[d]:.4;i.coercePosition(e,p,a,y,v,x)}a(g+&quot;anchor&quot;),a(g+&quot;shift&quot;)}if(n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),u&amp;&amp;n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;]),c){var b=a(&quot;xclick&quot;),_=a(&quot;yclick&quot;);e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/axes&quot;:854,&quot;./attributes&quot;:649,&quot;./common_defaults&quot;:652}],655:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../fx&quot;),h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,m=t(&quot;./draw_arrow_head&quot;);function v(t,e){var r=t._fullLayout.annotations[e]||{},n=l.getFromId(t,r.xref),i=l.getFromId(t,r.yref);n&amp;&amp;n.setScale(),i&amp;&amp;i.setScale(),x(t,r,e,!1,n,i)}function y(t,e,r,n,i){var a=i[r],o=i[r+&quot;ref&quot;],s=-1!==r.indexOf(&quot;y&quot;),c=&quot;domain&quot;===l.getRefType(o),u=s?n.h:n.w;return t?c?a+(s?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(s?-e:e)/u}function x(t,e,r,a,v,x){var b,_,w=t._fullLayout,T=t._fullLayout._size,k=t._context.edits;a?(b=&quot;annotation-&quot;+a,_=a+&quot;.annotations&quot;):(b=&quot;annotation&quot;,_=&quot;annotations&quot;);var A=g(t.layout,_,e),M=A.modifyBase,S=A.modifyItem,E=A.getUpdateObj;w._infolayer.selectAll(&quot;.&quot;+b+'[data-index=&quot;'+r+'&quot;]').remove();var L=&quot;clip&quot;+w._uid+&quot;_ann&quot;+r;if(e._input&amp;&amp;!1!==e.visible){var C={x:{},y:{}},P=+e.textangle||0,I=w._infolayer.append(&quot;g&quot;).classed(b,!0).attr(&quot;data-index&quot;,String(r)).style(&quot;opacity&quot;,e.opacity),O=I.append(&quot;g&quot;).classed(&quot;annotation-text-g&quot;,!0),z=k[e.showarrow?&quot;annotationTail&quot;:&quot;annotationPosition&quot;],D=e.captureevents||k.annotationText||z,R=O.append(&quot;g&quot;).style(&quot;pointer-events&quot;,D?&quot;all&quot;:null).call(p,&quot;pointer&quot;).on(&quot;click&quot;,(function(){t._dragging=!1,t.emit(&quot;plotly_clickannotation&quot;,Y(n.event))}));e.hovertext&amp;&amp;R.on(&quot;mouseover&quot;,(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();f.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on(&quot;mouseout&quot;,(function(){f.loneUnhover(w._hoverlayer.node())}));var F=e.borderwidth,B=e.borderpad,N=F+B,j=R.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bg&quot;).style(&quot;stroke-width&quot;,F+&quot;px&quot;).call(c.stroke,e.bordercolor).call(c.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll(&quot;#&quot;+L).data(U?[0]:[]);V.enter().append(&quot;clipPath&quot;).classed(&quot;annclip&quot;,!0).attr(&quot;id&quot;,L).append(&quot;rect&quot;),V.exit().remove();var q=e.font,H=w._meta?o.templateString(e.text,w._meta):e.text,G=R.append(&quot;text&quot;).classed(&quot;annotation-text&quot;,!0).text(H);k.annotationText?G.call(h.makeEditable,{delegate:R,gd:t}).call(W).on(&quot;edit&quot;,(function(r){e.text=r,this.call(W),S(&quot;text&quot;,r),v&amp;&amp;v.autorange&amp;&amp;M(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;M(x._name+&quot;.autorange&quot;,!0),i.call(&quot;_guiRelayout&quot;,t,E())})):G.call(W)}else n.selectAll(&quot;#&quot;+L).remove();function Y(t){var n={index:r,annotation:e._input,fullAnnotation:e,event:t};return a&amp;&amp;(n.subplotId=a),n}function W(r){return r.call(u.font,q).attr({&quot;text-anchor&quot;:{left:&quot;start&quot;,right:&quot;end&quot;}[e.align]||&quot;middle&quot;}),h.convertToTspans(r,t,X),r}function X(){var r=G.selectAll(&quot;a&quot;);1===r.size()&amp;&amp;r.text()===G.text()&amp;&amp;R.insert(&quot;a&quot;,&quot;:first-child&quot;).attr({&quot;xlink:xlink:href&quot;:r.attr(&quot;xlink:href&quot;),&quot;xlink:xlink:show&quot;:r.attr(&quot;xlink:show&quot;)}).style({cursor:&quot;pointer&quot;}).node().appendChild(j.node());var n=R.select(&quot;.annotation-text-math-group&quot;),f=!n.empty(),g=u.bBox((f?n:G).node()),b=g.width,_=g.height,A=e.width||b,D=e.height||_,B=Math.round(A+2*N),q=Math.round(D+2*N);function H(t,e){return&quot;auto&quot;===e&amp;&amp;(e=t&lt;1/3?&quot;left&quot;:t&gt;2/3?&quot;right&quot;:&quot;center&quot;),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,X=[&quot;x&quot;,&quot;y&quot;],Z=0;Z&lt;X.length;Z++){var J,K,Q,$,tt,et=X[Z],rt=e[et+&quot;ref&quot;]||et,nt=e[&quot;a&quot;+et+&quot;ref&quot;],it={x:v,y:x}[et],at=(P+(&quot;x&quot;===et?0:-90))*Math.PI/180,ot=B*Math.cos(at),st=q*Math.sin(at),lt=Math.abs(ot)+Math.abs(st),ct=e[et+&quot;anchor&quot;],ut=e[et+&quot;shift&quot;]*(&quot;x&quot;===et?1:-1),ft=C[et],ht=l.getRefType(rt);if(it&amp;&amp;&quot;domain&quot;!==ht){var pt=it.r2fraction(e[et]);(pt&lt;0||pt&gt;1)&amp;&amp;(nt===rt?((pt=it.r2fraction(e[&quot;a&quot;+et]))&lt;0||pt&gt;1)&amp;&amp;(W=!0):W=!0),J=it._offset+it.r2p(e[et]),$=.5}else{var dt=&quot;domain&quot;===ht;&quot;x&quot;===et?(Q=e[et],J=dt?it._offset+it._length*Q:J=T.l+T.w*Q):(Q=1-e[et],J=dt?it._offset+it._length*Q:J=T.t+T.h*Q),$=e.showarrow?.5:Q}if(e.showarrow){ft.head=J;var gt=e[&quot;a&quot;+et];if(tt=ot*H(.5,e.xanchor)-st*H(.5,e.yanchor),nt===rt){var mt=l.getRefType(nt);&quot;domain&quot;===mt?(&quot;y&quot;===et&amp;&amp;(gt=1-gt),ft.tail=it._offset+it._length*gt):&quot;paper&quot;===mt?&quot;y&quot;===et?(gt=1-gt,ft.tail=T.t+T.h*gt):ft.tail=T.l+T.w*gt:ft.tail=it._offset+it.r2p(gt),K=tt}else ft.tail=J+gt,K=tt+gt;ft.text=ft.tail+tt;var vt=w[&quot;x&quot;===et?&quot;width&quot;:&quot;height&quot;];if(&quot;paper&quot;===rt&amp;&amp;(ft.head=o.constrain(ft.head,1,vt-1)),&quot;pixel&quot;===nt){var yt=-Math.max(ft.tail-3,ft.text),xt=Math.min(ft.tail+3,ft.text)-vt;yt&gt;0?(ft.tail+=yt,ft.text+=yt):xt&gt;0&amp;&amp;(ft.tail-=xt,ft.text-=xt)}ft.tail+=ut,ft.head+=ut}else K=tt=lt*H($,ct),ft.text=J+tt;ft.text+=ut,tt+=ut,K+=ut,e[&quot;_&quot;+et+&quot;padplus&quot;]=lt/2+K,e[&quot;_&quot;+et+&quot;padminus&quot;]=lt/2-K,e[&quot;_&quot;+et+&quot;size&quot;]=lt,e[&quot;_&quot;+et+&quot;shift&quot;]=tt}if(W)R.remove();else{var bt=0,_t=0;if(&quot;left&quot;!==e.align&amp;&amp;(bt=(A-b)*(&quot;center&quot;===e.align?.5:1)),&quot;top&quot;!==e.valign&amp;&amp;(_t=(D-_)*(&quot;middle&quot;===e.valign?.5:1)),f)n.select(&quot;svg&quot;).attr({x:N+bt-1,y:N+_t}).call(u.setClipUrl,U?L:null,t);else{var wt=N+_t-g.top,Tt=N+bt-g.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?L:null,t)}V.select(&quot;rect&quot;).call(u.setRect,N,N,A,D),j.call(u.setRect,F/2,F/2,B-F,q-F),R.call(u.setTranslate,Math.round(C.x.text-B/2),Math.round(C.y.text-q/2)),O.attr({transform:&quot;rotate(&quot;+P+&quot;,&quot;+C.x.text+&quot;,&quot;+C.y.text+&quot;)&quot;});var kt,At=function(r,n){I.selectAll(&quot;.annotation-arrow-g&quot;).remove();var l=C.x.head,f=C.y.head,h=C.x.tail+r,p=C.y.tail+n,g=C.x.text+r,b=C.y.text+n,_=o.rotationXYMatrix(P,g,b),w=o.apply2DTransform(_),A=o.apply2DTransform2(_),L=+j.attr(&quot;width&quot;),z=+j.attr(&quot;height&quot;),D=g-.5*L,F=D+L,B=b-.5*z,N=B+z,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(A);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(h,p,l,f,t[0],t[1],t[2],t[3]);e&amp;&amp;(h=e.x,p=e.y)}));var V=e.arrowwidth,q=e.arrowcolor,H=e.arrowside,G=I.append(&quot;g&quot;).style({opacity:c.opacity(q)}).classed(&quot;annotation-arrow-g&quot;,!0),Y=G.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M&quot;+h+&quot;,&quot;+p+&quot;L&quot;+l+&quot;,&quot;+f).style(&quot;stroke-width&quot;,V+&quot;px&quot;).call(c.stroke,c.rgb(q));if(m(Y,H,e),k.annotationPosition&amp;&amp;Y.node().parentNode&amp;&amp;!a){var W=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-h,2)+Math.pow(f-p,2));W+=e.standoff*(h-l)/Z,X+=e.standoff*(p-f)/Z}var J,K,Q=G.append(&quot;path&quot;).classed(&quot;annotation-arrow&quot;,!0).classed(&quot;anndrag&quot;,!0).classed(&quot;cursor-move&quot;,!0).attr({d:&quot;M3,3H-3V-3H3ZM0,0L&quot;+(h-W)+&quot;,&quot;+(p-X),transform:s(W,X)}).style(&quot;stroke-width&quot;,V+6+&quot;px&quot;).call(c.stroke,&quot;rgba(0,0,0,0)&quot;).call(c.fill,&quot;rgba(0,0,0,0)&quot;);d.init({element:Q.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);J=t.x,K=t.y,v&amp;&amp;v.autorange&amp;&amp;M(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;M(x._name+&quot;.autorange&quot;,!0)},moveFn:function(t,r){var n=w(J,K),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S(&quot;x&quot;,y(v,t,&quot;x&quot;,T,e)),S(&quot;y&quot;,y(x,r,&quot;y&quot;,T,e)),e.axref===e.xref&amp;&amp;S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)),e.ayref===e.yref&amp;&amp;S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T,e)),G.attr(&quot;transform&quot;,s(t,r)),O.attr({transform:&quot;rotate(&quot;+P+&quot;,&quot;+i+&quot;,&quot;+a+&quot;)&quot;})},doneFn:function(){i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}};if(e.showarrow&amp;&amp;At(0,0),z)d.init({element:R.node(),gd:t,prepFn:function(){kt=O.attr(&quot;transform&quot;)},moveFn:function(t,r){var n=&quot;pointer&quot;;if(e.showarrow)e.axref===e.xref?S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)):S(&quot;ax&quot;,e.ax+t),e.ayref===e.yref?S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T.w,e)):S(&quot;ay&quot;,e.ay+r),At(t,r);else{if(a)return;var i,o;if(v)i=y(v,t,&quot;x&quot;,T,e);else{var l=e._xsize/T.w,c=e.x+(e._xshift-e.xshift)/T.w-l/2;i=d.align(c+t/T.w,l,0,1,e.xanchor)}if(x)o=y(x,r,&quot;y&quot;,T,e);else{var u=e._ysize/T.h,f=e.y-(e._yshift+e.yshift)/T.h-u/2;o=d.align(f-r/T.h,u,0,1,e.yanchor)}S(&quot;x&quot;,i),S(&quot;y&quot;,o),v&amp;&amp;x||(n=d.getCursor(v?.5:i,x?.5:o,e.xanchor,e.yanchor))}O.attr({transform:s(t,r)+kt}),p(R,n)},clickFn:function(r,n){e.captureevents&amp;&amp;t.emit(&quot;plotly_clickannotation&quot;,Y(n))},doneFn:function(){p(R),i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(&quot;.annotation&quot;).remove();for(var r=0;r&lt;e.annotations.length;r++)e.annotations[r].visible&amp;&amp;v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:x}},{&quot;../../lib&quot;:803,&quot;../../lib/setcursor&quot;:824,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;../fx&quot;:706,&quot;./draw_arrow_head&quot;:656,&quot;@plotly/d3&quot;:58}],656:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;./arrow_paths&quot;),o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strRotate,c=o.strTranslate;e.exports=function(t,e,r){var o,u,f,h,p=t.node(),d=a[r.arrowhead||0],g=a[r.startarrowhead||0],m=(r.arrowwidth||1)*(r.arrowsize||1),v=(r.arrowwidth||1)*(r.startarrowsize||1),y=e.indexOf(&quot;start&quot;)&gt;=0,x=e.indexOf(&quot;end&quot;)&gt;=0,b=d.backoff*m+r.standoff,_=g.backoff*v+r.startstandoff;if(&quot;line&quot;===p.nodeName){o={x:+t.attr(&quot;x1&quot;),y:+t.attr(&quot;y1&quot;)},u={x:+t.attr(&quot;x2&quot;),y:+t.attr(&quot;y2&quot;)};var w=o.x-u.x,T=o.y-u.y;if(h=(f=Math.atan2(T,w))+Math.PI,b&amp;&amp;_&amp;&amp;b+_&gt;Math.sqrt(w*w+T*T))return void z();if(b){if(b*b&gt;w*w+T*T)return void z();var k=b*Math.cos(f),A=b*Math.sin(f);u.x+=k,u.y+=A,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_&gt;w*w+T*T)return void z();var M=_*Math.cos(f),S=_*Math.sin(f);o.x-=M,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if(&quot;path&quot;===p.nodeName){var E=p.getTotalLength(),L=&quot;&quot;;if(E&lt;b+_)return void z();var C=p.getPointAtLength(0),P=p.getPointAtLength(.1);f=Math.atan2(C.y-P.y,C.x-P.x),o=p.getPointAtLength(Math.min(_,E)),L=&quot;0px,&quot;+_+&quot;px,&quot;;var I=p.getPointAtLength(E),O=p.getPointAtLength(E-.1);h=Math.atan2(I.y-O.y,I.x-O.x),u=p.getPointAtLength(Math.max(0,E-b)),L+=E-(L?_+b:b)+&quot;px,&quot;+E+&quot;px&quot;,t.style(&quot;stroke-dasharray&quot;,L)}function z(){t.style(&quot;stroke-dasharray&quot;,&quot;0px,100px&quot;)}function D(e,a,o,u){e.path&amp;&amp;(e.noRotate&amp;&amp;(o=0),n.select(p.parentNode).append(&quot;path&quot;).attr({class:t.attr(&quot;class&quot;),d:e.path,transform:c(a.x,a.y)+l(180*o/Math.PI)+s(u)}).style({fill:i.rgb(r.arrowcolor),&quot;stroke-width&quot;:0}))}y&amp;&amp;D(g,o,f,v),x&amp;&amp;D(d,u,h,m)}},{&quot;../../lib&quot;:803,&quot;../color&quot;:666,&quot;./arrow_paths&quot;:648,&quot;@plotly/d3&quot;:58}],657:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./click&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;annotations&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:867,&quot;./attributes&quot;:649,&quot;./calc_autorange&quot;:650,&quot;./click&quot;:651,&quot;./convert_coords&quot;:653,&quot;./defaults&quot;:654,&quot;./draw&quot;:655}],658:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports=i(a(&quot;annotation&quot;,{visible:n.visible,x:{valType:&quot;any&quot;},y:{valType:&quot;any&quot;},z:{valType:&quot;any&quot;},ax:{valType:&quot;number&quot;},ay:{valType:&quot;number&quot;},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),&quot;calc&quot;,&quot;from-root&quot;)},{&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../annotations/attributes&quot;:649}],659:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:&quot;linear&quot;,autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r&lt;e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(&quot;.annotation-&quot;+t.id).remove()}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],660:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;../annotations/common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+&quot;axis&quot;,a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(&quot;visible&quot;)&amp;&amp;(o(t,e,a.fullLayout,l),c(&quot;x&quot;),c(&quot;y&quot;),c(&quot;z&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]),e.xref=&quot;x&quot;,e.yref=&quot;y&quot;,e.zref=&quot;z&quot;,l(&quot;xanchor&quot;),l(&quot;yanchor&quot;),l(&quot;xshift&quot;),l(&quot;yshift&quot;),e.showarrow&amp;&amp;(e.axref=&quot;pixel&quot;,e.ayref=&quot;pixel&quot;,l(&quot;ax&quot;,-10),l(&quot;ay&quot;,-30),n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;])))}e.exports=function(t,e,r){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l,fullLayout:r.fullLayout})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/axes&quot;:854,&quot;../annotations/common_defaults&quot;:652,&quot;./attributes&quot;:658}],661:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/draw&quot;).drawRaw,i=t(&quot;../../plots/gl3d/project&quot;),a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s&lt;o.length;s++){for(var l=o[s],c=!1,u=0;u&lt;3;u++){var f=a[u],h=l[f],p=e[f+&quot;axis&quot;].r2fraction(h);if(p&lt;0||p&gt;1){c=!0;break}}c?t.fullLayout._infolayer.select(&quot;.annotation-&quot;+t.id+'[data-index=&quot;'+s+'&quot;]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{&quot;../../plots/gl3d/project&quot;:905,&quot;../annotations/draw&quot;:655}],662:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations3d&quot;,schema:{subplots:{scene:{annotations:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s&lt;o.length;s++){var l=o[s];a.test(l)&amp;&amp;(t[l].annotations||[]).length&amp;&amp;(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(&quot;./convert&quot;),draw:t(&quot;./draw&quot;)}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:658,&quot;./convert&quot;:659,&quot;./defaults&quot;:660,&quot;./draw&quot;:661}],663:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;world-calendars/dist/main&quot;),t(&quot;world-calendars/dist/plus&quot;),t(&quot;world-calendars/dist/calendars/chinese&quot;),t(&quot;world-calendars/dist/calendars/coptic&quot;),t(&quot;world-calendars/dist/calendars/discworld&quot;),t(&quot;world-calendars/dist/calendars/ethiopian&quot;),t(&quot;world-calendars/dist/calendars/hebrew&quot;),t(&quot;world-calendars/dist/calendars/islamic&quot;),t(&quot;world-calendars/dist/calendars/julian&quot;),t(&quot;world-calendars/dist/calendars/mayan&quot;),t(&quot;world-calendars/dist/calendars/nanakshahi&quot;),t(&quot;world-calendars/dist/calendars/nepali&quot;),t(&quot;world-calendars/dist/calendars/persian&quot;),t(&quot;world-calendars/dist/calendars/taiwan&quot;),t(&quot;world-calendars/dist/calendars/thai&quot;),t(&quot;world-calendars/dist/calendars/ummalqura&quot;)},{&quot;world-calendars/dist/calendars/chinese&quot;:630,&quot;world-calendars/dist/calendars/coptic&quot;:631,&quot;world-calendars/dist/calendars/discworld&quot;:632,&quot;world-calendars/dist/calendars/ethiopian&quot;:633,&quot;world-calendars/dist/calendars/hebrew&quot;:634,&quot;world-calendars/dist/calendars/islamic&quot;:635,&quot;world-calendars/dist/calendars/julian&quot;:636,&quot;world-calendars/dist/calendars/mayan&quot;:637,&quot;world-calendars/dist/calendars/nanakshahi&quot;:638,&quot;world-calendars/dist/calendars/nepali&quot;:639,&quot;world-calendars/dist/calendars/persian&quot;:640,&quot;world-calendars/dist/calendars/taiwan&quot;:641,&quot;world-calendars/dist/calendars/thai&quot;:642,&quot;world-calendars/dist/calendars/ummalqura&quot;:643,&quot;world-calendars/dist/main&quot;:644,&quot;world-calendars/dist/plus&quot;:645}],664:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calendars&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.EPOCHJD,s=a.ONEDAY,l={valType:&quot;enumerated&quot;,values:i.sortObjectKeys(n.calendars),editType:&quot;calc&quot;,dflt:&quot;gregorian&quot;},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u={d:{0:&quot;dd&quot;,&quot;-&quot;:&quot;d&quot;},e:{0:&quot;d&quot;,&quot;-&quot;:&quot;d&quot;},a:{0:&quot;D&quot;,&quot;-&quot;:&quot;D&quot;},A:{0:&quot;DD&quot;,&quot;-&quot;:&quot;DD&quot;},j:{0:&quot;oo&quot;,&quot;-&quot;:&quot;o&quot;},W:{0:&quot;ww&quot;,&quot;-&quot;:&quot;w&quot;},m:{0:&quot;mm&quot;,&quot;-&quot;:&quot;m&quot;},b:{0:&quot;M&quot;,&quot;-&quot;:&quot;M&quot;},B:{0:&quot;MM&quot;,&quot;-&quot;:&quot;MM&quot;},y:{0:&quot;yy&quot;,&quot;-&quot;:&quot;yy&quot;},Y:{0:&quot;yyyy&quot;,&quot;-&quot;:&quot;yyyy&quot;},U:&quot;##&quot;,w:&quot;##&quot;,c:{0:&quot;D M d %X yyyy&quot;,&quot;-&quot;:&quot;D M d %X yyyy&quot;},x:{0:&quot;mm/dd/yyyy&quot;,&quot;-&quot;:&quot;mm/dd/yyyy&quot;}};var f={};function h(t){var e=f[t];return e||(e=f[t]=n.instance(t))}function p(t){return i.extendFlat({},l,{description:t})}function d(t){return&quot;Sets the calendar system to use with `&quot;+t+&quot;` date data.&quot;}var g={xcalendar:p(d(&quot;x&quot;))},m=i.extendFlat({},g,{ycalendar:p(d(&quot;y&quot;))}),v=i.extendFlat({},m,{zcalendar:p(d(&quot;z&quot;))}),y=p([&quot;Sets the calendar system to use for `range` and `tick0`&quot;,&quot;if this is a date axis. This does not set the calendar for&quot;,&quot;interpreting data on this axis, that's specified in the trace&quot;,&quot;or via the global `layout.calendar`&quot;].join(&quot; &quot;));e.exports={moduleType:&quot;component&quot;,name:&quot;calendars&quot;,schema:{traces:{scatter:m,bar:m,box:m,heatmap:m,contour:m,histogram:m,histogram2d:m,histogram2dcontour:m,scatter3d:v,surface:v,mesh3d:v,scattergl:m,ohlc:g,candlestick:g},layout:{calendar:p([&quot;Sets the default calendar system to use for interpreting and&quot;,&quot;displaying dates throughout the plot.&quot;].join(&quot; &quot;))},subplots:{xaxis:{calendar:y},yaxis:{calendar:y},scene:{xaxis:{calendar:y},yaxis:{calendar:y},zaxis:{calendar:y}},polar:{radialaxis:{calendar:y}}},transforms:{filter:{valuecalendar:p([&quot;WARNING: All transforms are deprecated and may be removed from the API in next major version.&quot;,&quot;Sets the calendar system to use for `value`, if it is a date.&quot;].join(&quot; &quot;)),targetcalendar:p([&quot;WARNING: All transforms are deprecated and may be removed from the API in next major version.&quot;,&quot;Sets the calendar system to use for `target`, if it is an&quot;,&quot;array of dates. If `target` is a string (eg *x*) we use the&quot;,&quot;corresponding trace attribute (eg `xcalendar`) if it exists,&quot;,&quot;even if `targetcalendar` is provided.&quot;].join(&quot; &quot;))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i&lt;r.length;i++)c(t,e,r[i]+&quot;calendar&quot;,n.calendar)},CANONICAL_SUNDAY:{chinese:&quot;2000-01-02&quot;,coptic:&quot;2000-01-03&quot;,discworld:&quot;2000-01-03&quot;,ethiopian:&quot;2000-01-05&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-02&quot;,julian:&quot;2000-01-03&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-05&quot;,nepali:&quot;2000-01-05&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-04&quot;,thai:&quot;2000-01-04&quot;,ummalqura:&quot;1400-01-06&quot;},CANONICAL_TICK:{chinese:&quot;2000-01-01&quot;,coptic:&quot;2000-01-01&quot;,discworld:&quot;2000-01-01&quot;,ethiopian:&quot;2000-01-01&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-01&quot;,julian:&quot;2000-01-01&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-01&quot;,nepali:&quot;2000-01-01&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-01&quot;,thai:&quot;2000-01-01&quot;,ummalqura:&quot;1400-01-01&quot;},DFLTRANGE:{chinese:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],coptic:[&quot;1700-01-01&quot;,&quot;1701-01-01&quot;],discworld:[&quot;1800-01-01&quot;,&quot;1801-01-01&quot;],ethiopian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],hebrew:[&quot;5700-01-01&quot;,&quot;5701-01-01&quot;],islamic:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],julian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],mayan:[&quot;5200-01-01&quot;,&quot;5201-01-01&quot;],nanakshahi:[&quot;0500-01-01&quot;,&quot;0501-01-01&quot;],nepali:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],persian:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],jalali:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],taiwan:[&quot;0100-01-01&quot;,&quot;0101-01-01&quot;],thai:[&quot;2500-01-01&quot;,&quot;2501-01-01&quot;],ummalqura:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;]},getCal:h,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,f=Math.floor((e+.05)/s)+o,p=h(r).fromJD(f),d=0;-1!==(d=t.indexOf(&quot;%&quot;,d));)&quot;0&quot;===(n=t.charAt(d+1))||&quot;-&quot;===n||&quot;_&quot;===n?(a=3,i=t.charAt(d+2),&quot;_&quot;===n&amp;&amp;(n=&quot;-&quot;)):(i=n,n=&quot;0&quot;,a=2),(l=u[i])?(c=&quot;##&quot;===l?&quot;##&quot;:p.formatDate(l[n]),t=t.substr(0,d)+c+t.substr(d+a),d+=c.length):d+=a;return t}}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;./calendars&quot;:663}],665:[function(t,e,r){&quot;use strict&quot;;r.defaults=[&quot;#1f77b4&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#d62728&quot;,&quot;#9467bd&quot;,&quot;#8c564b&quot;,&quot;#e377c2&quot;,&quot;#7f7f7f&quot;,&quot;#bcbd22&quot;,&quot;#17becf&quot;],r.defaultLine=&quot;#444&quot;,r.lightLine=&quot;#eee&quot;,r.background=&quot;#fff&quot;,r.borderLine=&quot;#BEC8D9&quot;,r.lightFraction=1e3/11},{}],666:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib/array&quot;).isTypedArray,o=e.exports={},s=t(&quot;./attributes&quot;);o.defaults=s.defaults;var l=o.defaultLine=s.defaultLine;o.lightLine=s.lightLine;var c=o.background=s.background;function u(t){if(i(t)||&quot;string&quot;!=typeof t)return t;var e=t.trim();if(&quot;rgb&quot;!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var n=r[1].trim().split(/\s*[\s,]\s*/),a=&quot;a&quot;===e.charAt(3)&amp;&amp;4===n.length;if(!a&amp;&amp;3!==n.length)return t;for(var o=0;o&lt;n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]&gt;=0))return t;if(3===o)n[o]&gt;1&amp;&amp;(n[o]=1);else if(n[o]&gt;=1)return t}var s=Math.round(255*n[0])+&quot;, &quot;+Math.round(255*n[1])+&quot;, &quot;+Math.round(255*n[2]);return a?&quot;rgba(&quot;+s+&quot;, &quot;+n[3]+&quot;)&quot;:&quot;rgb(&quot;+s+&quot;)&quot;}o.tinyRGB=function(t){var e=t.toRgb();return&quot;rgb(&quot;+Math.round(e.r)+&quot;, &quot;+Math.round(e.g)+&quot;, &quot;+Math.round(e.b)+&quot;)&quot;},o.rgb=function(t){return o.tinyRGB(n(t))},o.opacity=function(t){return t?n(t).getAlpha():0},o.addOpacity=function(t,e){var r=n(t).toRgb();return&quot;rgba(&quot;+Math.round(r.r)+&quot;, &quot;+Math.round(r.g)+&quot;, &quot;+Math.round(r.b)+&quot;, &quot;+e+&quot;)&quot;},o.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||c).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&amp;&amp;(i=n(o.combine(t,c))),(i.isDark()?e?i.lighten(e):c:r?i.darken(r):l).toString()},o.stroke=function(t,e){var r=n(e);t.style({stroke:o.tinyRGB(r),&quot;stroke-opacity&quot;:r.getAlpha()})},o.fill=function(t,e){var r=n(e);t.style({fill:o.tinyRGB(r),&quot;fill-opacity&quot;:r.getAlpha()})},o.clean=function(t){if(t&amp;&amp;&quot;object&quot;==typeof t){var e,r,n,i,s=Object.keys(t);for(e=0;e&lt;s.length;e++)if(i=t[n=s[e]],&quot;color&quot;===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r&lt;i.length;r++)i[r]=u(i[r]);else t[n]=u(i);else if(&quot;colorscale&quot;===n.substr(n.length-10)&amp;&amp;Array.isArray(i))for(r=0;r&lt;i.length;r++)Array.isArray(i[r])&amp;&amp;(i[r][1]=u(i[r][1]));else if(Array.isArray(i)){var l=i[0];if(!Array.isArray(l)&amp;&amp;l&amp;&amp;&quot;object&quot;==typeof l)for(r=0;r&lt;i.length;r++)o.clean(i[r])}else i&amp;&amp;&quot;object&quot;==typeof i&amp;&amp;!a(i)&amp;&amp;o.clean(i)}}},{&quot;../../lib/array&quot;:785,&quot;./attributes&quot;:665,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],667:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/layout_attributes&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports=o({thicknessmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;pixels&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:30},lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,dflt:1.02,min:-2,max:3},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},xpad:{valType:&quot;number&quot;,min:0,dflt:10},y:{valType:&quot;number&quot;,dflt:.5,min:-2,max:3},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;},ypad:{valType:&quot;number&quot;,min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:&quot;number&quot;,min:0,dflt:0},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:&quot;&quot;}),ticklabeloverflow:a({},n.ticklabeloverflow,{}),ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:&quot;string&quot;},font:i({}),side:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}},_deprecated:{title:{valType:&quot;string&quot;},titlefont:i({}),titleside:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}}},&quot;colorbars&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/font_attributes&quot;:883}],668:[function(t,e,r){&quot;use strict&quot;;e.exports={cn:{colorbar:&quot;colorbar&quot;,cbbg:&quot;cbbg&quot;,cbfill:&quot;cbfill&quot;,cbfills:&quot;cbfills&quot;,cbline:&quot;cbline&quot;,cblines:&quot;cblines&quot;,cbaxis:&quot;cbaxis&quot;,cbtitleunshift:&quot;cbtitleunshift&quot;,cbtitle:&quot;cbtitle&quot;,cboutline:&quot;cboutline&quot;,crisp:&quot;crisp&quot;,jsPlaceholder:&quot;js-placeholder&quot;}}},{}],669:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),o=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),s=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var c=i.newContainer(e,&quot;colorbar&quot;),u=t.colorbar||{};function f(t,e){return n.coerce(u,c,l,t,e)}var h=f(&quot;thicknessmode&quot;);f(&quot;thickness&quot;,&quot;fraction&quot;===h?30/(r.width-r.margin.l-r.margin.r):30);var p=f(&quot;lenmode&quot;);f(&quot;len&quot;,&quot;fraction&quot;===p?1:r.height-r.margin.t-r.margin.b),f(&quot;x&quot;),f(&quot;xanchor&quot;),f(&quot;xpad&quot;),f(&quot;y&quot;),f(&quot;yanchor&quot;),f(&quot;ypad&quot;),n.noneOrAll(u,c,[&quot;x&quot;,&quot;y&quot;]),f(&quot;outlinecolor&quot;),f(&quot;outlinewidth&quot;),f(&quot;bordercolor&quot;),f(&quot;borderwidth&quot;),f(&quot;bgcolor&quot;);var d=f(&quot;ticklabelposition&quot;);f(&quot;ticklabeloverflow&quot;,-1!==d.indexOf(&quot;inside&quot;)?&quot;hide past domain&quot;:&quot;hide past div&quot;),a(u,c,f,&quot;linear&quot;);var g=r.font,m={outerTicks:!1,font:g};-1!==d.indexOf(&quot;inside&quot;)&amp;&amp;(m.bgColor=&quot;black&quot;),s(u,c,f,&quot;linear&quot;,m),o(u,c,f,&quot;linear&quot;,m),f(&quot;title.text&quot;,r._dfltTitle.colorbar);var v=c.tickfont,y=n.extendFlat({},v,{color:g.color,size:n.bigFont(v.size)});n.coerceFont(f,&quot;title.font&quot;,y),f(&quot;title.side&quot;)}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/tick_label_defaults&quot;:876,&quot;../../plots/cartesian/tick_mark_defaults&quot;:877,&quot;../../plots/cartesian/tick_value_defaults&quot;:878,&quot;./attributes&quot;:667}],670:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../lib/setcursor&quot;),p=t(&quot;../drawing&quot;),d=t(&quot;../color&quot;),g=t(&quot;../titles&quot;),m=t(&quot;../../lib/svg_text_utils&quot;),v=t(&quot;../colorscale/helpers&quot;).flipScale,y=t(&quot;../../plots/cartesian/axis_defaults&quot;),x=t(&quot;../../plots/cartesian/position_defaults&quot;),b=t(&quot;../../plots/cartesian/layout_attributes&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.LINE_SPACING,T=_.FROM_TL,k=_.FROM_BR,A=t(&quot;./constants&quot;).cn;e.exports={draw:function(t){var e=t._fullLayout._infolayer.selectAll(&quot;g.&quot;+A.colorbar).data(function(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return f(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){&quot;function&quot;==typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var u=0;u&lt;o.length;u++){var h=o[u],p=(n=h[0].trace)._module.colorbar;if(!0===n.visible&amp;&amp;p)for(var d=Array.isArray(p),g=d?p:[p],m=0;m&lt;g.length;m++){var y=(i=g[m]).container;(r=y?n[y]:n)&amp;&amp;r.showscale&amp;&amp;((e=l(r.colorbar))._id=&quot;cb&quot;+n.uid+(d&amp;&amp;y?&quot;-&quot;+y:&quot;&quot;),e._traceIndex=n.index,e._propPrefix=(y?y+&quot;.&quot;:&quot;&quot;)+&quot;colorbar.&quot;,e._meta=n._meta,c(),s.push(e))}}for(var x in a._colorAxes)if((r=a[x]).showscale){var b=a._colorAxes[x];(e=l(r.colorbar))._id=&quot;cb&quot;+x,e._propPrefix=x+&quot;.colorbar.&quot;,e._meta=a._meta,i={min:&quot;cmin&quot;,max:&quot;cmax&quot;},&quot;heatmap&quot;!==b[0]&amp;&amp;(n=b[1],i.calc=n._module.colorbar.calc),c(),s.push(e)}return s}(t),(function(t){return t._id}));e.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t._id})).classed(A.colorbar,!0),e.each((function(e){var r=n.select(this);c.ensureSingle(r,&quot;rect&quot;,A.cbbg),c.ensureSingle(r,&quot;g&quot;,A.cbfills),c.ensureSingle(r,&quot;g&quot;,A.cblines),c.ensureSingle(r,&quot;g&quot;,A.cbaxis,(function(t){t.classed(A.crisp,!0)})),c.ensureSingle(r,&quot;g&quot;,A.cbtitleunshift,(function(t){t.append(&quot;g&quot;).classed(A.cbtitle,!0)})),c.ensureSingle(r,&quot;rect&quot;,A.cboutline);var v=function(t,e,r){var o=r._fullLayout,l=o._size,h=e._fillcolor,v=e._line,_=e.title,M=_.side,S=e._zrange||n.extent((&quot;function&quot;==typeof h?h:v.color).domain()),E=&quot;function&quot;==typeof v.color?v.color:function(){return v.color},L=&quot;function&quot;==typeof h?h:function(){return h},C=e._levels,P=function(t,e,r){var n,i,a=e._levels,o=[],s=[],l=a.end+a.size/100,c=a.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(i=0;i&lt;1e5&amp;&amp;(n=a.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;u&amp;&amp;n&lt;f&amp;&amp;o.push(n);if(e._fillgradient)s=[0];else if(&quot;function&quot;==typeof e._fillcolor){var h=e._filllevels;if(h)for(l=h.end+h.size/100,c=h.size,i=0;i&lt;1e5&amp;&amp;(n=h.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;r[0]&amp;&amp;n&lt;r[1]&amp;&amp;s.push(n);else(s=o.map((function(t){return t-a.size/2}))).push(s[s.length-1]+a.size)}else e._fillcolor&amp;&amp;&quot;string&quot;==typeof e._fillcolor&amp;&amp;(s=[0]);a.size&lt;0&amp;&amp;(o.reverse(),s.reverse());return{line:o,fill:s}}(0,e,S),I=P.fill,O=P.line,z=Math.round(e.thickness*(&quot;fraction&quot;===e.thicknessmode?l.w:1)),D=z/l.w,R=Math.round(e.len*(&quot;fraction&quot;===e.lenmode?l.h:1)),F=R/l.h,B=e.xpad/l.w,N=(e.borderwidth+e.outlinewidth)/2,j=e.ypad/l.h,U=Math.round(e.x*l.w+e.xpad),V=e.x-D*({middle:.5,right:1}[e.xanchor]||0),q=e.y+F*(({top:-.5,bottom:.5}[e.yanchor]||0)-.5),H=Math.round(l.h*(1-q)),G=H-R;e._lenFrac=F,e._thickFrac=D,e._xLeftFrac=V,e._yBottomFrac=q;var Y=e._axis=function(t,e,r){var n=t._fullLayout,i={type:&quot;linear&quot;,range:r,tickmode:e.tickmode,nticks:e.nticks,tick0:e.tick0,dtick:e.dtick,tickvals:e.tickvals,ticktext:e.ticktext,ticks:e.ticks,ticklen:e.ticklen,tickwidth:e.tickwidth,tickcolor:e.tickcolor,showticklabels:e.showticklabels,ticklabelposition:e.ticklabelposition,ticklabeloverflow:e.ticklabeloverflow,tickfont:e.tickfont,tickangle:e.tickangle,tickformat:e.tickformat,exponentformat:e.exponentformat,minexponent:e.minexponent,separatethousands:e.separatethousands,showexponent:e.showexponent,showtickprefix:e.showtickprefix,tickprefix:e.tickprefix,showticksuffix:e.showticksuffix,ticksuffix:e.ticksuffix,title:e.title,showline:!0,anchor:&quot;free&quot;,side:&quot;right&quot;,position:1},a={type:&quot;linear&quot;,_id:&quot;y&quot;+e._id},o={letter:&quot;y&quot;,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function s(t,e){return c.coerce(i,a,b,t,e)}return y(i,a,s,o,n),x(i,a,s,o),a}(r,e,S);Y.position=e.x+B+D,-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(M)&amp;&amp;(Y.title.side=M,Y.titlex=e.x+B,Y.titley=q+(&quot;top&quot;===_.side?F-j:j));if(v.color&amp;&amp;&quot;auto&quot;===e.tickmode){Y.tickmode=&quot;linear&quot;,Y.tick0=C.start;var W=C.size,X=c.constrain((H-G)/50,4,15)+1,Z=(S[1]-S[0])/((e.nticks||X)*W);if(Z&gt;1){var J=Math.pow(10,Math.floor(Math.log(Z)/Math.LN10));W*=J*c.roundUp(Z/J,[2,5,10]),(Math.abs(C.start)/C.size+1e-6)%1&lt;2e-6&amp;&amp;(Y.tick0=0)}Y.dtick=W}Y.domain=[q+j,q+F-j],Y.setScale(),t.attr(&quot;transform&quot;,u(Math.round(l.l),Math.round(l.t)));var K,Q=t.select(&quot;.&quot;+A.cbtitleunshift).attr(&quot;transform&quot;,u(-Math.round(l.l),-Math.round(l.t))),$=t.select(&quot;.&quot;+A.cbaxis),tt=0;function et(n,i){var a={propContainer:Y,propName:e._propPrefix+&quot;title&quot;,traceIndex:e._traceIndex,_meta:e._meta,placeholder:o._dfltTitle.colorbar,containerGroup:t.select(&quot;.&quot;+A.cbtitle)},s=&quot;h&quot;===n.charAt(0)?n.substr(1):&quot;h&quot;+n;t.selectAll(&quot;.&quot;+s+&quot;,.&quot;+s+&quot;-math-group&quot;).remove(),g.draw(r,n,f(a,i||{}))}return c.syncOrAsync([a.previousPromises,function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(M)){var t,r=l.l+(e.x+B)*l.w,n=Y.title.font.size;t=&quot;top&quot;===M?(1-(q+F-j))*l.h+l.t+3+.75*n:(1-(q+j))*l.h+l.t-3-.25*n,et(Y._id+&quot;title&quot;,{attributes:{x:r,y:t,&quot;text-anchor&quot;:&quot;start&quot;}})}},function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(M)){var a=t.select(&quot;.&quot;+A.cbtitle),o=a.select(&quot;text&quot;),f=[-e.outlinewidth/2,e.outlinewidth/2],h=a.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node(),d=15.6;if(o.node()&amp;&amp;(d=parseInt(o.node().style.fontSize,10)*w),h?(tt=p.bBox(h).height)&gt;d&amp;&amp;(f[1]-=(tt-d)/2):o.node()&amp;&amp;!o.classed(A.jsPlaceholder)&amp;&amp;(tt=p.bBox(o.node()).height),tt){if(tt+=5,&quot;top&quot;===M)Y.domain[1]-=tt/l.h,f[1]*=-1;else{Y.domain[0]+=tt/l.h;var g=m.lineCount(o);f[1]+=(1-g)*d}a.attr(&quot;transform&quot;,u(f[0],f[1])),Y.setScale()}}t.selectAll(&quot;.&quot;+A.cbfills+&quot;,.&quot;+A.cblines).attr(&quot;transform&quot;,u(0,Math.round(l.h*(1-Y.domain[1])))),$.attr(&quot;transform&quot;,u(0,Math.round(-l.t)));var y=t.select(&quot;.&quot;+A.cbfills).selectAll(&quot;rect.&quot;+A.cbfill).attr(&quot;style&quot;,&quot;&quot;).data(I);y.enter().append(&quot;rect&quot;).classed(A.cbfill,!0).style(&quot;stroke&quot;,&quot;none&quot;),y.exit().remove();var x=S.map(Y.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var o=[0===a?S[0]:(I[a]+I[a-1])/2,a===I.length-1?S[1]:(I[a]+I[a+1])/2].map(Y.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]&gt;o[0])?1:-1,x[0],x[1]);var s=n.select(this).attr({x:U,width:Math.max(z,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(e._fillgradient)p.gradient(s,r,e._id,&quot;vertical&quot;,e._fillgradient,&quot;fill&quot;);else{var l=L(t).replace(&quot;e-&quot;,&quot;&quot;);s.attr(&quot;fill&quot;,i(l).toHexString())}}));var b=t.select(&quot;.&quot;+A.cblines).selectAll(&quot;path.&quot;+A.cbline).data(v.color&amp;&amp;v.width?O:[]);b.enter().append(&quot;path&quot;).classed(A.cbline,!0),b.exit().remove(),b.each((function(t){n.select(this).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;,&quot;+(Math.round(Y.c2p(t))+v.width/2%1)+&quot;h&quot;+z).call(p.lineGroupStyle,v.width,E(t),v.dash)})),$.selectAll(&quot;g.&quot;+Y._id+&quot;tick,path&quot;).remove();var _=U+z+(e.outlinewidth||0)/2-(&quot;outside&quot;===e.ticks?1:0),T=s.calcTicks(Y),k=s.getTickSigns(Y)[2];return s.drawTicks(r,Y,{vals:&quot;inside&quot;===Y.ticks?s.clipEnds(Y,T):T,layer:$,path:s.makeTickPath(Y,_,k),transFn:s.makeTransTickFn(Y)}),s.drawLabels(r,Y,{vals:T,layer:$,transFn:s.makeTransTickLabelFn(Y),labelFns:s.makeLabelFns(Y,_)})},function(){if(-1===[&quot;top&quot;,&quot;bottom&quot;].indexOf(M)){var t=Y.title.font.size,e=Y._offset+Y._length/2,i=l.l+(Y.position||0)*l.w+(&quot;right&quot;===Y.side?10+t*(Y.showticklabels?1:.5):-10-t*(Y.showticklabels?.5:0));et(&quot;h&quot;+Y._id+&quot;title&quot;,{avoid:{selection:n.select(r).selectAll(&quot;g.&quot;+Y._id+&quot;tick&quot;),side:M,offsetLeft:l.l,offsetTop:0,maxShift:o.width},attributes:{x:i,y:e,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:&quot;-90&quot;,offset:0}})}},a.previousPromises,function(){var n=z+e.outlinewidth/2;if(-1===Y.ticklabelposition.indexOf(&quot;inside&quot;)&amp;&amp;(n+=p.bBox($.node()).width),(K=Q.select(&quot;text&quot;)).node()&amp;&amp;!K.classed(A.jsPlaceholder)){var i,o=Q.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node();i=o&amp;&amp;-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(M)?p.bBox(o).width:p.bBox(Q.node()).right-U-l.l,n=Math.max(n,i)}var s=2*e.xpad+n+e.borderwidth+e.outlinewidth/2,c=H-G;t.select(&quot;.&quot;+A.cbbg).attr({x:U-e.xpad-(e.borderwidth+e.outlinewidth)/2,y:G-N,width:Math.max(s,2),height:Math.max(c+2*N,2)}).call(d.fill,e.bgcolor).call(d.stroke,e.bordercolor).style(&quot;stroke-width&quot;,e.borderwidth),t.selectAll(&quot;.&quot;+A.cboutline).attr({x:U,y:G+e.ypad+(&quot;top&quot;===M?tt:0),width:Math.max(z,2),height:Math.max(c-2*e.ypad-tt,2)}).call(d.stroke,e.outlinecolor).style({fill:&quot;none&quot;,&quot;stroke-width&quot;:e.outlinewidth});var f=({center:.5,right:1}[e.xanchor]||0)*s;t.attr(&quot;transform&quot;,u(l.l-f,l.t));var h={},g=T[e.yanchor],m=k[e.yanchor];&quot;pixels&quot;===e.lenmode?(h.y=e.y,h.t=c*g,h.b=c*m):(h.t=h.b=0,h.yt=e.y+e.len*g,h.yb=e.y-e.len*m);var v=T[e.xanchor],y=k[e.xanchor];if(&quot;pixels&quot;===e.thicknessmode)h.x=e.x,h.l=s*v,h.r=s*y;else{var x=s-z;h.l=x*v,h.r=x*y,h.xl=e.x-e.thickness*v,h.xr=e.x+e.thickness*y}a.autoMargin(r,e._id,h)}],r)}(r,e,t);v&amp;&amp;v.then&amp;&amp;(t._promises||[]).push(v),t._context.edits.colorbarPosition&amp;&amp;function(t,e,r){var n,i,a,s=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr(&quot;transform&quot;),h(t)},moveFn:function(r,o){t.attr(&quot;transform&quot;,n+u(r,o)),i=l.align(e._xLeftFrac+r/s.w,e._thickFrac,0,1,e.xanchor),a=l.align(e._yBottomFrac-o/s.h,e._lenFrac,0,1,e.yanchor);var c=l.getCursor(i,a,e.xanchor,e.yanchor);h(t,c)},doneFn:function(){if(h(t),void 0!==i&amp;&amp;void 0!==a){var n={};n[e._propPrefix+&quot;x&quot;]=i,n[e._propPrefix+&quot;y&quot;]=a,void 0!==e._traceIndex?o.call(&quot;_guiRestyle&quot;,r,n,e._traceIndex):o.call(&quot;_guiRelayout&quot;,r,n)}}})}(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/extend&quot;:793,&quot;../../lib/setcursor&quot;:824,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/axis_defaults&quot;:856,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/cartesian/position_defaults&quot;:872,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../colorscale/helpers&quot;:677,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;../titles&quot;:764,&quot;./constants&quot;:668,&quot;@plotly/d3&quot;:58,tinycolor2:598}],671:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t){return n.isPlainObject(t.colorbar)}},{&quot;../../lib&quot;:803}],672:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;colorbar&quot;,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;).draw,hasColorbar:t(&quot;./has_colorbar&quot;)}},{&quot;./attributes&quot;:667,&quot;./defaults&quot;:669,&quot;./draw&quot;:670,&quot;./has_colorbar&quot;:671}],673:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../colorbar/attributes&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../lib/sort_object_keys&quot;),o=t(&quot;./scales.js&quot;).scales;a(o);function s(t){return&quot;`&quot;+t+&quot;`&quot;}e.exports=function(t,e){t=t||&quot;&quot;;var r,a=(e=e||{}).cLetter||&quot;c&quot;,l=(&quot;onlyIfNumerical&quot;in e?e.onlyIfNumerical:Boolean(t),&quot;noScale&quot;in e?e.noScale:&quot;marker.line&quot;===t),c=&quot;showScaleDflt&quot;in e?e.showScaleDflt:&quot;z&quot;===a,u=&quot;string&quot;==typeof e.colorscaleDflt?o[e.colorscaleDflt]:null,f=e.editTypeOverride||&quot;&quot;,h=t?t+&quot;.&quot;:&quot;&quot;;&quot;colorAttr&quot;in e?(r=e.colorAttr,e.colorAttr):s(h+(r={z:&quot;z&quot;,c:&quot;color&quot;}[a]));var p=a+&quot;auto&quot;,d=a+&quot;min&quot;,g=a+&quot;max&quot;,m=a+&quot;mid&quot;,v=(s(h+p),s(h+d),s(h+g),{});v[d]=v[g]=void 0;var y={};y[p]=!1;var x={};return&quot;color&quot;===r&amp;&amp;(x.color={valType:&quot;color&quot;,arrayOk:!0,editType:f||&quot;style&quot;},e.anim&amp;&amp;(x.color.anim=!0)),x[p]={valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:v},x[d]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[g]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[m]={valType:&quot;number&quot;,dflt:null,editType:&quot;calc&quot;,impliedEdits:v},x.colorscale={valType:&quot;colorscale&quot;,editType:&quot;calc&quot;,dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:&quot;boolean&quot;,dflt:!1!==e.autoColorDflt,editType:&quot;calc&quot;,impliedEdits:{colorscale:void 0}},x.reversescale={valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},l||(x.showscale={valType:&quot;boolean&quot;,dflt:c,editType:&quot;calc&quot;},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:&quot;subplotid&quot;,regex:i(&quot;coloraxis&quot;),dflt:null,editType:&quot;calc&quot;}),x}},{&quot;../../lib/regex&quot;:820,&quot;../../lib/sort_object_keys&quot;:826,&quot;../colorbar/attributes&quot;:667,&quot;./scales.js&quot;:681}],674:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),h=!1!==f.auto,p=f.min,d=f.max,g=f.mid,m=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===p?p=m():h&amp;&amp;(p=u._colorAx&amp;&amp;n(p)?Math.min(p,m()):m()),void 0===d?d=v():h&amp;&amp;(d=u._colorAx&amp;&amp;n(d)?Math.max(d,v()):v()),h&amp;&amp;void 0!==g&amp;&amp;(d-g&gt;g-p?p=g-(d-g):d-g&lt;g-p&amp;&amp;(d=g+(g-p))),p===d&amp;&amp;(p-=.5,d+=.5),f._sync(&quot;min&quot;,p),f._sync(&quot;max&quot;,d),f.autocolorscale)&amp;&amp;(o=p*d&lt;0?s.colorscale.diverging:p&gt;=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync(&quot;colorscale&quot;,o))}},{&quot;../../lib&quot;:803,&quot;./helpers&quot;:677,&quot;fast-isnumeric&quot;:249}],675:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).hasColorscale,a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e){function r(t,e){var r=t[&quot;_&quot;+e];void 0!==r&amp;&amp;(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&amp;&amp;r(o,i.min),(l||void 0===s.max)&amp;&amp;r(o,i.max),s.autocolorscale&amp;&amp;r(o,&quot;colorscale&quot;)}}for(var s=0;s&lt;t.length;s++){var l=t[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u&lt;c.length;u++)o(l,c[u]);else o(l,c);i(l,&quot;marker.line&quot;)&amp;&amp;o(l,{container:&quot;marker.line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;})}for(var f in e._colorAxes)o(e[f],{min:&quot;cmin&quot;,max:&quot;cmax&quot;})}},{&quot;../../lib&quot;:803,&quot;./helpers&quot;:677}],676:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../colorbar/has_colorbar&quot;),o=t(&quot;../colorbar/defaults&quot;),s=t(&quot;./scales&quot;).isValid,l=t(&quot;../../registry&quot;).traceIs;function c(t,e){var r=e.slice(0,e.length-1);return e?i.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,r,u,f,h){var p=h.prefix,d=h.cLetter,g=&quot;_module&quot;in r,m=c(e,p),v=c(r,p),y=c(r._template||{},p)||{},x=function(){return delete e.coloraxis,delete r.coloraxis,t(e,r,u,f,h)};if(g){var b=u._colorAxes||{},_=f(p+&quot;coloraxis&quot;);if(_){var w=l(r,&quot;contour&quot;)&amp;&amp;i.nestedProperty(r,&quot;contours.coloring&quot;).get()||&quot;heatmap&quot;,T=b[_];return void(T?(T[2].push(x),T[0]!==w&amp;&amp;(T[0]=!1,i.warn([&quot;Ignoring coloraxis:&quot;,_,&quot;setting&quot;,&quot;as it is linked to incompatible colorscales.&quot;].join(&quot; &quot;)))):b[_]=[w,r,[x]])}}var k=m[d+&quot;min&quot;],A=m[d+&quot;max&quot;],M=n(k)&amp;&amp;n(A)&amp;&amp;k&lt;A;f(p+d+&quot;auto&quot;,!M)?f(p+d+&quot;mid&quot;):(f(p+d+&quot;min&quot;),f(p+d+&quot;max&quot;));var S,E,L=m.colorscale,C=y.colorscale;(void 0!==L&amp;&amp;(S=!s(L)),void 0!==C&amp;&amp;(S=!s(C)),f(p+&quot;autocolorscale&quot;,S),f(p+&quot;colorscale&quot;),f(p+&quot;reversescale&quot;),&quot;marker.line.&quot;!==p)&amp;&amp;(p&amp;&amp;g&amp;&amp;(E=a(m)),f(p+&quot;showscale&quot;,E)&amp;&amp;(p&amp;&amp;y&amp;&amp;(v._template=y),o(m,v,u)))}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../colorbar/defaults&quot;:669,&quot;../colorbar/has_colorbar&quot;:671,&quot;./scales&quot;:681,&quot;fast-isnumeric&quot;:249}],677:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../color&quot;),l=t(&quot;./scales&quot;).isValid;var c=[&quot;showscale&quot;,&quot;autocolorscale&quot;,&quot;colorscale&quot;,&quot;reversescale&quot;,&quot;colorbar&quot;],u=[&quot;min&quot;,&quot;max&quot;,&quot;mid&quot;,&quot;auto&quot;];function f(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r&lt;c.length;r++)o[n=c[r]]=a[n];if(i)for(e=&quot;c&quot;,r=0;r&lt;u.length;r++)o[n=u[r]]=a[&quot;c&quot;+n];else{var s;for(r=0;r&lt;u.length;r++)((s=&quot;c&quot;+(n=u[r]))in a||(s=&quot;z&quot;+n)in a)&amp;&amp;(o[n]=a[s]);e=s.charAt(0)}return o._sync=function(t,r){var n=-1!==u.indexOf(t)?e+t:t;a[n]=a[&quot;_&quot;+n]=r},o}function h(t){for(var e=f(t),r=e.min,n=e.max,i=e.reversescale?p(e.colorscale):e.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l&lt;a;l++){var c=i[l];o[l]=r+c[0]*(n-r),s[l]=c[1]}return{domain:o,range:s}}function p(t){for(var e=t.length,r=new Array(e),n=e-1,i=0;n&gt;=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function d(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u&lt;l;u++){var f=i(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var h,p=n.scale.linear().domain(r).range(c).clamp(!0),d=e.noNumericCheck,m=e.returnArray;return(h=d&amp;&amp;m?p:d?function(t){return g(p(t))}:m?function(t){return a(t)?p(t):i(t).isValid()?t:s.defaultLine}:function(t){return a(t)?g(p(t)):i(t).isValid()?t:s.defaultLine}).domain=p.domain,h.range=function(){return o},h}function g(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports={hasColorscale:function(t,e,r){var n=e?o.nestedProperty(t,e).get()||{}:t,i=n[r||&quot;color&quot;],s=!1;if(o.isArrayOrTypedArray(i))for(var c=0;c&lt;i.length;c++)if(a(i[c])){s=!0;break}return o.isPlainObject(n)&amp;&amp;(s||!0===n.showscale||a(n.cmin)&amp;&amp;a(n.cmax)||l(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:h,flipScale:p,makeColorScaleFunc:d,makeColorScaleFuncFromTrace:function(t,e){return d(h(t),e)}}},{&quot;../../lib&quot;:803,&quot;../color&quot;:666,&quot;./scales&quot;:681,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],678:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./scales&quot;),i=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;colorscale&quot;,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),handleDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},{&quot;./attributes&quot;:673,&quot;./calc&quot;:674,&quot;./cross_trace_defaults&quot;:675,&quot;./defaults&quot;:676,&quot;./helpers&quot;:677,&quot;./layout_attributes&quot;:679,&quot;./layout_defaults&quot;:680,&quot;./scales&quot;:681}],679:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;./attributes&quot;),a=t(&quot;./scales&quot;).scales;e.exports={editType:&quot;calc&quot;,colorscale:{editType:&quot;calc&quot;,sequential:{valType:&quot;colorscale&quot;,dflt:a.Reds,editType:&quot;calc&quot;},sequentialminus:{valType:&quot;colorscale&quot;,dflt:a.Blues,editType:&quot;calc&quot;},diverging:{valType:&quot;colorscale&quot;,dflt:a.RdBu,editType:&quot;calc&quot;}},coloraxis:n({_isSubplotObj:!0,editType:&quot;calc&quot;},i(&quot;&quot;,{colorAttr:&quot;corresponding trace color array(s)&quot;,noColorAxis:!0,showScaleDflt:!0}))}},{&quot;../../lib/extend&quot;:793,&quot;./attributes&quot;:673,&quot;./scales&quot;:681}],680:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;./layout_attributes&quot;),o=t(&quot;./defaults&quot;);e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}r(&quot;colorscale.sequential&quot;),r(&quot;colorscale.sequentialminus&quot;),r(&quot;colorscale.diverging&quot;);var s,l,c=e._colorAxes;function u(t,e){return n.coerce(s,l,a.coloraxis,t,e)}for(var f in c){var h=c[f];if(h[0])s=t[f]||{},(l=i.newContainer(e,f,&quot;coloraxis&quot;))._name=f,o(s,l,e,u,{prefix:&quot;&quot;,cLetter:&quot;c&quot;});else{for(var p=0;p&lt;h[2].length;p++)h[2][p]();delete e._colorAxes[f]}}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;./defaults&quot;:676,&quot;./layout_attributes&quot;:679}],681:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i={Greys:[[0,&quot;rgb(0,0,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],YlGnBu:[[0,&quot;rgb(8,29,88)&quot;],[.125,&quot;rgb(37,52,148)&quot;],[.25,&quot;rgb(34,94,168)&quot;],[.375,&quot;rgb(29,145,192)&quot;],[.5,&quot;rgb(65,182,196)&quot;],[.625,&quot;rgb(127,205,187)&quot;],[.75,&quot;rgb(199,233,180)&quot;],[.875,&quot;rgb(237,248,217)&quot;],[1,&quot;rgb(255,255,217)&quot;]],Greens:[[0,&quot;rgb(0,68,27)&quot;],[.125,&quot;rgb(0,109,44)&quot;],[.25,&quot;rgb(35,139,69)&quot;],[.375,&quot;rgb(65,171,93)&quot;],[.5,&quot;rgb(116,196,118)&quot;],[.625,&quot;rgb(161,217,155)&quot;],[.75,&quot;rgb(199,233,192)&quot;],[.875,&quot;rgb(229,245,224)&quot;],[1,&quot;rgb(247,252,245)&quot;]],YlOrRd:[[0,&quot;rgb(128,0,38)&quot;],[.125,&quot;rgb(189,0,38)&quot;],[.25,&quot;rgb(227,26,28)&quot;],[.375,&quot;rgb(252,78,42)&quot;],[.5,&quot;rgb(253,141,60)&quot;],[.625,&quot;rgb(254,178,76)&quot;],[.75,&quot;rgb(254,217,118)&quot;],[.875,&quot;rgb(255,237,160)&quot;],[1,&quot;rgb(255,255,204)&quot;]],Bluered:[[0,&quot;rgb(0,0,255)&quot;],[1,&quot;rgb(255,0,0)&quot;]],RdBu:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(106,137,247)&quot;],[.5,&quot;rgb(190,190,190)&quot;],[.6,&quot;rgb(220,170,132)&quot;],[.7,&quot;rgb(230,145,90)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Reds:[[0,&quot;rgb(220,220,220)&quot;],[.2,&quot;rgb(245,195,157)&quot;],[.4,&quot;rgb(245,160,105)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Blues:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(40,60,190)&quot;],[.5,&quot;rgb(70,100,245)&quot;],[.6,&quot;rgb(90,120,245)&quot;],[.7,&quot;rgb(106,137,247)&quot;],[1,&quot;rgb(220,220,220)&quot;]],Picnic:[[0,&quot;rgb(0,0,255)&quot;],[.1,&quot;rgb(51,153,255)&quot;],[.2,&quot;rgb(102,204,255)&quot;],[.3,&quot;rgb(153,204,255)&quot;],[.4,&quot;rgb(204,204,255)&quot;],[.5,&quot;rgb(255,255,255)&quot;],[.6,&quot;rgb(255,204,255)&quot;],[.7,&quot;rgb(255,153,255)&quot;],[.8,&quot;rgb(255,102,204)&quot;],[.9,&quot;rgb(255,102,102)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Rainbow:[[0,&quot;rgb(150,0,90)&quot;],[.125,&quot;rgb(0,0,200)&quot;],[.25,&quot;rgb(0,25,255)&quot;],[.375,&quot;rgb(0,152,255)&quot;],[.5,&quot;rgb(44,255,150)&quot;],[.625,&quot;rgb(151,255,0)&quot;],[.75,&quot;rgb(255,234,0)&quot;],[.875,&quot;rgb(255,111,0)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Portland:[[0,&quot;rgb(12,51,131)&quot;],[.25,&quot;rgb(10,136,186)&quot;],[.5,&quot;rgb(242,211,56)&quot;],[.75,&quot;rgb(242,143,56)&quot;],[1,&quot;rgb(217,30,30)&quot;]],Jet:[[0,&quot;rgb(0,0,131)&quot;],[.125,&quot;rgb(0,60,170)&quot;],[.375,&quot;rgb(5,255,255)&quot;],[.625,&quot;rgb(255,255,0)&quot;],[.875,&quot;rgb(250,0,0)&quot;],[1,&quot;rgb(128,0,0)&quot;]],Hot:[[0,&quot;rgb(0,0,0)&quot;],[.3,&quot;rgb(230,0,0)&quot;],[.6,&quot;rgb(255,210,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Blackbody:[[0,&quot;rgb(0,0,0)&quot;],[.2,&quot;rgb(230,0,0)&quot;],[.4,&quot;rgb(230,210,0)&quot;],[.7,&quot;rgb(255,255,255)&quot;],[1,&quot;rgb(160,200,255)&quot;]],Earth:[[0,&quot;rgb(0,0,130)&quot;],[.1,&quot;rgb(0,180,180)&quot;],[.2,&quot;rgb(40,210,40)&quot;],[.4,&quot;rgb(230,230,50)&quot;],[.6,&quot;rgb(120,70,20)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Electric:[[0,&quot;rgb(0,0,0)&quot;],[.15,&quot;rgb(30,0,100)&quot;],[.4,&quot;rgb(120,0,100)&quot;],[.6,&quot;rgb(160,90,0)&quot;],[.8,&quot;rgb(230,200,0)&quot;],[1,&quot;rgb(255,250,220)&quot;]],Viridis:[[0,&quot;#440154&quot;],[.06274509803921569,&quot;#48186a&quot;],[.12549019607843137,&quot;#472d7b&quot;],[.18823529411764706,&quot;#424086&quot;],[.25098039215686274,&quot;#3b528b&quot;],[.3137254901960784,&quot;#33638d&quot;],[.3764705882352941,&quot;#2c728e&quot;],[.4392156862745098,&quot;#26828e&quot;],[.5019607843137255,&quot;#21918c&quot;],[.5647058823529412,&quot;#1fa088&quot;],[.6274509803921569,&quot;#28ae80&quot;],[.6901960784313725,&quot;#3fbc73&quot;],[.7529411764705882,&quot;#5ec962&quot;],[.8156862745098039,&quot;#84d44b&quot;],[.8784313725490196,&quot;#addc30&quot;],[.9411764705882353,&quot;#d8e219&quot;],[1,&quot;#fde725&quot;]],Cividis:[[0,&quot;rgb(0,32,76)&quot;],[.058824,&quot;rgb(0,42,102)&quot;],[.117647,&quot;rgb(0,52,110)&quot;],[.176471,&quot;rgb(39,63,108)&quot;],[.235294,&quot;rgb(60,74,107)&quot;],[.294118,&quot;rgb(76,85,107)&quot;],[.352941,&quot;rgb(91,95,109)&quot;],[.411765,&quot;rgb(104,106,112)&quot;],[.470588,&quot;rgb(117,117,117)&quot;],[.529412,&quot;rgb(131,129,120)&quot;],[.588235,&quot;rgb(146,140,120)&quot;],[.647059,&quot;rgb(161,152,118)&quot;],[.705882,&quot;rgb(176,165,114)&quot;],[.764706,&quot;rgb(192,177,109)&quot;],[.823529,&quot;rgb(209,191,102)&quot;],[.882353,&quot;rgb(225,204,92)&quot;],[.941176,&quot;rgb(243,219,79)&quot;],[1,&quot;rgb(255,233,69)&quot;]]},a=i.RdBu;function o(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var i=t[r];if(2!==i.length||+i[0]&lt;e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}e.exports={scales:i,defaultScale:a,get:function(t,e){if(e||(e=a),!t)return e;function r(){try{t=i[t]||JSON.parse(t)}catch(r){t=e}}return&quot;string&quot;==typeof t&amp;&amp;(r(),&quot;string&quot;==typeof t&amp;&amp;r()),o(t)?t:e},isValid:function(t){return void 0!==i[t]||o(t)}}},{tinycolor2:598}],682:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return&quot;left&quot;===i||&quot;bottom&quot;===i?a:&quot;center&quot;===i||&quot;middle&quot;===i?s:&quot;right&quot;===i||&quot;top&quot;===i?o:a&lt;2/3-s?a:o&gt;4/3-s?o:s}},{}],683:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[&quot;sw-resize&quot;,&quot;s-resize&quot;,&quot;se-resize&quot;],[&quot;w-resize&quot;,&quot;move&quot;,&quot;e-resize&quot;],[&quot;nw-resize&quot;,&quot;n-resize&quot;,&quot;ne-resize&quot;]];e.exports=function(t,e,r,a){return t=&quot;left&quot;===r?0:&quot;center&quot;===r?1:&quot;right&quot;===r?2:n.constrain(Math.floor(3*t),0,2),e=&quot;bottom&quot;===a?0:&quot;middle&quot;===a?1:&quot;top&quot;===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{&quot;../../lib&quot;:803}],684:[function(t,e,r){&quot;use strict&quot;;r.selectMode=function(t){return&quot;lasso&quot;===t||&quot;select&quot;===t},r.drawMode=function(t){return&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.openMode=function(t){return&quot;drawline&quot;===t||&quot;drawopenpath&quot;===t},r.rectMode=function(t){return&quot;select&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.freeMode=function(t){return&quot;lasso&quot;===t||&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],685:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-event-offset&quot;),i=t(&quot;has-hover&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../lib&quot;).removeElement,s=t(&quot;../../plots/cartesian/constants&quot;),l=e.exports={};l.align=t(&quot;./align&quot;),l.getCursor=t(&quot;./cursor&quot;);var c=t(&quot;./unhover&quot;);function u(){var t=document.createElement(&quot;div&quot;);t.className=&quot;dragcover&quot;;var e=t.style;return e.position=&quot;fixed&quot;,e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=&quot;none&quot;,document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,h,p,d,g,m=t.gd,v=1,y=m._context.doubleClickDelay,x=t.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents=&quot;all&quot;,x.onmousedown=_,a?(x._ontouchstart&amp;&amp;x.removeEventListener(&quot;touchstart&quot;,x._ontouchstart),x._ontouchstart=_,x.addEventListener(&quot;touchstart&quot;,_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)&lt;r&amp;&amp;(t=0),Math.abs(e)&lt;r&amp;&amp;(e=0),[t,e]};function _(a){m._dragged=!1,m._dragging=!0;var o=f(a);e=o[0],r=o[1],d=a.target,p=a,g=2===a.buttons||a.ctrlKey,void 0===a.clientX&amp;&amp;void 0===a.clientY&amp;&amp;(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-m._mouseDownTime&lt;y?v+=1:(v=1,m._mouseDownTime=n),t.prepFn&amp;&amp;t.prepFn(a,e,r),i&amp;&amp;!g?(h=u()).style.cursor=window.getComputedStyle(x).cursor:i||(h=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener(&quot;mouseup&quot;,T),document.addEventListener(&quot;touchend&quot;,T),!1!==t.dragmode&amp;&amp;(a.preventDefault(),document.addEventListener(&quot;mousemove&quot;,w),document.addEventListener(&quot;touchmove&quot;,w,{passive:!1}))}function w(n){n.preventDefault();var i=f(n),a=t.minDrag||s.MINDRAG,o=b(i[0]-e,i[1]-r,a),c=o[0],u=o[1];(c||u)&amp;&amp;(m._dragged=!0,l.unhover(m,n)),m._dragged&amp;&amp;t.moveFn&amp;&amp;!g&amp;&amp;(m._dragdata={element:x,dx:c,dy:u},t.moveFn(c,u))}function T(e){if(delete m._dragdata,!1!==t.dragmode&amp;&amp;(e.preventDefault(),document.removeEventListener(&quot;mousemove&quot;,w),document.removeEventListener(&quot;touchmove&quot;,w)),document.removeEventListener(&quot;mouseup&quot;,T),document.removeEventListener(&quot;touchend&quot;,T),i?o(h):c&amp;&amp;(h.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime&gt;y&amp;&amp;(v=Math.max(v-1,1)),m._dragged)t.doneFn&amp;&amp;t.doneFn();else if(t.clickFn&amp;&amp;t.clickFn(v,p),!g){var r;try{r=new MouseEvent(&quot;click&quot;,e)}catch(t){var n=f(e);(r=document.createEvent(&quot;MouseEvents&quot;)).initMouseEvent(&quot;click&quot;,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}d.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=u},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/constants&quot;:861,&quot;./align&quot;:682,&quot;./cursor&quot;:683,&quot;./unhover&quot;:686,&quot;has-hover&quot;:443,&quot;has-passive-events&quot;:444,&quot;mouse-event-offset&quot;:471}],686:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/events&quot;),i=t(&quot;../../lib/throttle&quot;),a=t(&quot;../../lib/dom&quot;).getGraphDiv,o=t(&quot;../fx/constants&quot;),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&amp;&amp;i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&amp;&amp;!t._dragged&amp;&amp;!1===n.triggerHandler(t,&quot;plotly_beforehover&quot;,e)||(r._hoverlayer.selectAll(&quot;g&quot;).remove(),r._hoverlayer.selectAll(&quot;line&quot;).remove(),r._hoverlayer.selectAll(&quot;circle&quot;).remove(),t._hoverdata=void 0,e.target&amp;&amp;i&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:i}))}},{&quot;../../lib/dom&quot;:791,&quot;../../lib/events&quot;:792,&quot;../../lib/throttle&quot;:830,&quot;../fx/constants&quot;:700}],687:[function(t,e,r){&quot;use strict&quot;;r.dash={valType:&quot;string&quot;,values:[&quot;solid&quot;,&quot;dot&quot;,&quot;dash&quot;,&quot;longdash&quot;,&quot;dashdot&quot;,&quot;longdashdot&quot;],dflt:&quot;solid&quot;,editType:&quot;style&quot;},r.pattern={shape:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;/&quot;,&quot;\\&quot;,&quot;x&quot;,&quot;-&quot;,&quot;|&quot;,&quot;+&quot;,&quot;.&quot;],dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},fillmode:{valType:&quot;enumerated&quot;,values:[&quot;replace&quot;,&quot;overlay&quot;],dflt:&quot;replace&quot;,editType:&quot;style&quot;},bgcolor:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;style&quot;},fgcolor:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;style&quot;},fgopacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},size:{valType:&quot;number&quot;,min:0,dflt:8,arrayOk:!0,editType:&quot;style&quot;},solidity:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;style&quot;}},{}],688:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;tinycolor2&quot;),l=t(&quot;../../registry&quot;),c=t(&quot;../color&quot;),u=t(&quot;../colorscale&quot;),f=i.strTranslate,h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../constants/xmlns_namespaces&quot;),d=t(&quot;../../constants/alignment&quot;).LINE_SPACING,g=t(&quot;../../constants/interactions&quot;).DESELECTDIM,m=t(&quot;../../traces/scatter/subtypes&quot;),v=t(&quot;../../traces/scatter/make_bubble_size_func&quot;),y=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,x=e.exports={};x.font=function(t,e,r,n){i.isPlainObject(e)&amp;&amp;(n=e.color,r=e.size,e=e.family),e&amp;&amp;t.style(&quot;font-family&quot;,e),r+1&amp;&amp;t.style(&quot;font-size&quot;,r+&quot;px&quot;),n&amp;&amp;t.call(c.fill,n)},x.setPosition=function(t,e,r){t.attr(&quot;x&quot;,e).attr(&quot;y&quot;,r)},x.setSize=function(t,e,r){t.attr(&quot;width&quot;,e).attr(&quot;height&quot;,r)},x.setRect=function(t,e,r,n,i){t.call(x.setPosition,e,r).call(x.setSize,n,i)},x.translatePoint=function(t,e,r,n){var i=r.c2p(t.x),a=n.c2p(t.y);return!!(o(i)&amp;&amp;o(a)&amp;&amp;e.node())&amp;&amp;(&quot;text&quot;===e.node().nodeName?e.attr(&quot;x&quot;,i).attr(&quot;y&quot;,a):e.attr(&quot;transform&quot;,f(i,a)),!0)},x.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);x.translatePoint(t,i,e,r)}))},x.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(&quot;display&quot;,r.isPtWithinRange(t,i)&amp;&amp;n.isPtWithinRange(t,a)?null:&quot;none&quot;)},x.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,o=a.xcalendar,s=a.ycalendar,c=l.traceIs(a,&quot;bar-like&quot;)?&quot;.bartext&quot;:&quot;.point,.textpoint&quot;;t.selectAll(c).each((function(t){x.hideOutsideRangePoint(t,n.select(this),r,i,o,s)}))}))}},x.crispRound=function(t,e,r){return e&amp;&amp;o(e)?t._context.staticPlot?e:e&lt;1?1:Math.round(e):r||0},x.singleLineStyle=function(t,e,r,n,i){e.style(&quot;fill&quot;,&quot;none&quot;);var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||&quot;&quot;;c.stroke(e,n||a.color),x.dashLine(e,s,o)},x.lineGroupStyle=function(t,e,r,i){t.style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,s=i||a.dash||&quot;&quot;;n.select(this).call(c.stroke,r||a.color).call(x.dashLine,s,o)}))},x.dashLine=function(t,e,r){r=+r||0,e=x.dashStyle(e,r),t.style({&quot;stroke-dasharray&quot;:e,&quot;stroke-width&quot;:r+&quot;px&quot;})},x.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return&quot;solid&quot;===t?t=&quot;&quot;:&quot;dot&quot;===t?t=r+&quot;px,&quot;+r+&quot;px&quot;:&quot;dash&quot;===t?t=3*r+&quot;px,&quot;+3*r+&quot;px&quot;:&quot;longdash&quot;===t?t=5*r+&quot;px,&quot;+5*r+&quot;px&quot;:&quot;dashdot&quot;===t?t=3*r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px&quot;:&quot;longdashdot&quot;===t&amp;&amp;(t=5*r+&quot;px,&quot;+2*r+&quot;px,&quot;+r+&quot;px,&quot;+2*r+&quot;px&quot;),t},x.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&amp;&amp;t.call(c.fill,e)},x.fillGroupStyle=function(t){t.style(&quot;stroke-width&quot;,0).each((function(t){var e=n.select(this);t[0].trace&amp;&amp;e.call(c.fill,t[0].trace.fillcolor)}))};var b=t(&quot;./symbol_defs&quot;);x.symbolNames=[],x.symbolFuncs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(b).forEach((function(t){var e=b[t],r=e.n;x.symbolList.push(r,String(r),t,r+100,String(r+100),t+&quot;-open&quot;),x.symbolNames[r]=t,x.symbolFuncs[r]=e.f,e.needLine&amp;&amp;(x.symbolNeedLines[r]=!0),e.noDot?x.symbolNoDot[r]=!0:x.symbolList.push(r+200,String(r+200),t+&quot;-dot&quot;,r+300,String(r+300),t+&quot;-open-dot&quot;),e.noFill&amp;&amp;(x.symbolNoFill[r]=!0)}));var _=x.symbolNames.length;function w(t,e){var r=t%100;return x.symbolFuncs[r](e)+(t&gt;=200?&quot;M0,0.5L0.5,0L0,-0.5L-0.5,0Z&quot;:&quot;&quot;)}x.symbolNumber=function(t){if(o(t))t=+t;else if(&quot;string&quot;==typeof t){var e=0;t.indexOf(&quot;-open&quot;)&gt;0&amp;&amp;(e=100,t=t.replace(&quot;-open&quot;,&quot;&quot;)),t.indexOf(&quot;-dot&quot;)&gt;0&amp;&amp;(e+=200,t=t.replace(&quot;-dot&quot;,&quot;&quot;)),(t=x.symbolNames.indexOf(t))&gt;=0&amp;&amp;(t+=e)}return t%100&gt;=_||t&gt;=400?0:Math.floor(Math.max(t,0))};var T={x1:1,x2:0,y1:0,y2:0},k={x1:0,x2:0,y1:1,y2:0},A=a(&quot;~f&quot;),M={radial:{node:&quot;radialGradient&quot;},radialreversed:{node:&quot;radialGradient&quot;,reversed:!0},horizontal:{node:&quot;linearGradient&quot;,attrs:T},horizontalreversed:{node:&quot;linearGradient&quot;,attrs:T,reversed:!0},vertical:{node:&quot;linearGradient&quot;,attrs:k},verticalreversed:{node:&quot;linearGradient&quot;,attrs:k,reversed:!0}};x.gradient=function(t,e,r,a,o,l){for(var u=o.length,f=M[a],h=new Array(u),p=0;p&lt;u;p++)f.reversed?h[u-1-p]=[A(100*(1-o[p][0])),o[p][1]]:h[p]=[A(100*o[p][0]),o[p][1]];var d=e._fullLayout,g=&quot;g&quot;+d._uid+&quot;-&quot;+r,m=d._defs.select(&quot;.gradients&quot;).selectAll(&quot;#&quot;+g).data([a+h.join(&quot;;&quot;)],i.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var t=n.select(this);f.attrs&amp;&amp;t.attr(f.attrs),t.attr(&quot;id&quot;,g);var e=t.selectAll(&quot;stop&quot;).data(h);e.exit().remove(),e.enter().append(&quot;stop&quot;),e.each((function(t){var e=s(t[1]);n.select(this).attr({offset:t[0]+&quot;%&quot;,&quot;stop-color&quot;:c.tinyRGB(e),&quot;stop-opacity&quot;:e.getAlpha()})}))})),t.style(l,D(g,e)).style(l+&quot;-opacity&quot;,null);var v=function(t){return&quot;.&quot;+t.attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)},y=v(n.select(t.node().parentNode))+&quot;&gt;&quot;+v(t);d._gradientUrlQueryParts[y]=1},x.pattern=function(t,e,r,a,o,s,l,u,f,h,p,d){var g=&quot;legend&quot;===e;u&amp;&amp;(&quot;overlay&quot;===f?(h=u,p=c.contrast(h)):(h=void 0,p=u));var m,v,y,x,b,_,w,T,k,A,M,S=r._fullLayout,E=&quot;p&quot;+S._uid+&quot;-&quot;+a,L={};switch(o){case&quot;/&quot;:m=s*Math.sqrt(2),v=s*Math.sqrt(2),_=&quot;path&quot;,L={d:y=&quot;M-&quot;+m/4+&quot;,&quot;+v/4+&quot;l&quot;+m/2+&quot;,-&quot;+v/2+&quot;M0,&quot;+v+&quot;L&quot;+m+&quot;,0M&quot;+m/4*3+&quot;,&quot;+v/4*5+&quot;l&quot;+m/2+&quot;,-&quot;+v/2,opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;\\&quot;:m=s*Math.sqrt(2),v=s*Math.sqrt(2),_=&quot;path&quot;,L={d:y=&quot;M&quot;+m/4*3+&quot;,-&quot;+v/4+&quot;l&quot;+m/2+&quot;,&quot;+v/2+&quot;M0,0L&quot;+m+&quot;,&quot;+v+&quot;M-&quot;+m/4+&quot;,&quot;+v/4*3+&quot;l&quot;+m/2+&quot;,&quot;+v/2,opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;x&quot;:m=s*Math.sqrt(2),v=s*Math.sqrt(2),y=&quot;M-&quot;+m/4+&quot;,&quot;+v/4+&quot;l&quot;+m/2+&quot;,-&quot;+v/2+&quot;M0,&quot;+v+&quot;L&quot;+m+&quot;,0M&quot;+m/4*3+&quot;,&quot;+v/4*5+&quot;l&quot;+m/2+&quot;,-&quot;+v/2+&quot;M&quot;+m/4*3+&quot;,-&quot;+v/4+&quot;l&quot;+m/2+&quot;,&quot;+v/2+&quot;M0,0L&quot;+m+&quot;,&quot;+v+&quot;M-&quot;+m/4+&quot;,&quot;+v/4*3+&quot;l&quot;+m/2+&quot;,&quot;+v/2,x=s-s*Math.sqrt(1-l),_=&quot;path&quot;,L={d:y,opacity:d,stroke:p,&quot;stroke-width&quot;:x+&quot;px&quot;};break;case&quot;|&quot;:_=&quot;path&quot;,_=&quot;path&quot;,L={d:y=&quot;M&quot;+(m=s)/2+&quot;,0L&quot;+m/2+&quot;,&quot;+(v=s),opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;-&quot;:_=&quot;path&quot;,_=&quot;path&quot;,L={d:y=&quot;M0,&quot;+(v=s)/2+&quot;L&quot;+(m=s)+&quot;,&quot;+v/2,opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;+&quot;:_=&quot;path&quot;,y=&quot;M&quot;+(m=s)/2+&quot;,0L&quot;+m/2+&quot;,&quot;+(v=s)+&quot;M0,&quot;+v/2+&quot;L&quot;+m+&quot;,&quot;+v/2,x=s-s*Math.sqrt(1-l),_=&quot;path&quot;,L={d:y,opacity:d,stroke:p,&quot;stroke-width&quot;:x+&quot;px&quot;};break;case&quot;.&quot;:m=s,v=s,l&lt;Math.PI/4?b=Math.sqrt(l*s*s/Math.PI):(w=l,T=Math.PI/4,k=1,A=s/2,M=s/Math.sqrt(2),b=A+(M-A)*(w-T)/(k-T)),_=&quot;circle&quot;,L={cx:m/2,cy:v/2,r:b,opacity:d,fill:p}}var C=[o||&quot;noSh&quot;,h||&quot;noBg&quot;,p||&quot;noFg&quot;,s,l].join(&quot;;&quot;),P=S._defs.select(&quot;.patterns&quot;).selectAll(&quot;#&quot;+E).data([C],i.identity);P.exit().remove(),P.enter().append(&quot;pattern&quot;).each((function(){var t=n.select(this);if(t.attr({id:E,width:m+&quot;px&quot;,height:v+&quot;px&quot;,patternUnits:&quot;userSpaceOnUse&quot;,patternTransform:g?&quot;scale(0.8)&quot;:&quot;&quot;}),h){var e=t.selectAll(&quot;rect&quot;).data([0]);e.exit().remove(),e.enter().append(&quot;rect&quot;).attr({width:m+&quot;px&quot;,height:v+&quot;px&quot;,fill:h})}var r=t.selectAll(_).data([0]);r.exit().remove(),r.enter().append(_).attr(L)})),t.style(&quot;fill&quot;,D(E,r)).style(&quot;fill-opacity&quot;,null),t.classed(&quot;pattern_filled&quot;,!0);var I=&quot;.&quot;+n.select(t.node().parentNode).attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)+&quot;&gt;.pattern_filled&quot;;S._patternUrlQueryParts[I]=1},x.initGradients=function(t){var e=t._fullLayout;i.ensureSingle(e._defs,&quot;g&quot;,&quot;gradients&quot;).selectAll(&quot;linearGradient,radialGradient&quot;).remove(),e._gradientUrlQueryParts={}},x.initPatterns=function(t){var e=t._fullLayout;i.ensureSingle(e._defs,&quot;g&quot;,&quot;patterns&quot;).selectAll(&quot;pattern&quot;).remove(),e._patternUrlQueryParts={}},x.getPatternAttr=function(t,e,r){return t&amp;&amp;i.isArrayOrTypedArray(t)?e&lt;t.length?t[e]:r:t},x.pointStyle=function(t,e,r){if(t.size()){var i=x.makePointStyleFns(e);t.each((function(t){x.singlePointStyle(t,n.select(this),e,i,r)}))}},x.singlePointStyle=function(t,e,r,n,a){var o=r.marker,s=o.line;if(e.style(&quot;opacity&quot;,n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?o.opacity:t.mo),n.ms2mrc){var l;l=&quot;various&quot;===t.ms||&quot;various&quot;===o.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&amp;&amp;(l=t.mrc=n.selectedSizeFn(t));var u=x.symbolNumber(t.mx||o.symbol)||0;t.om=u%200&gt;=100,e.attr(&quot;d&quot;,w(u,l))}var f,h,p,d=!1;if(t.so)p=s.outlierwidth,h=s.outliercolor,f=o.outliercolor;else{var g=(s||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=&quot;mlc&quot;in t?t.mlcc=n.lineScale(t.mlc):i.isArrayOrTypedArray(s.color)?c.defaultLine:s.color,i.isArrayOrTypedArray(o.color)&amp;&amp;(f=c.defaultLine,d=!0),f=&quot;mc&quot;in t?t.mcc=n.markerScale(t.mc):o.color||&quot;rgba(0,0,0,0)&quot;,n.selectedColorFn&amp;&amp;(f=n.selectedColorFn(t))}if(t.om)e.call(c.stroke,f).style({&quot;stroke-width&quot;:(p||1)+&quot;px&quot;,fill:&quot;none&quot;});else{e.style(&quot;stroke-width&quot;,(t.isBlank?0:p)+&quot;px&quot;);var m=o.gradient,v=t.mgt;v?d=!0:v=m&amp;&amp;m.type,i.isArrayOrTypedArray(v)&amp;&amp;(v=v[0],M[v]||(v=0));var y=o.pattern,b=y&amp;&amp;x.getPatternAttr(y.shape,t.i,&quot;&quot;);if(v&amp;&amp;&quot;none&quot;!==v){var _=t.mgc;_?d=!0:_=m.color;var T=r.uid;d&amp;&amp;(T+=&quot;-&quot;+t.i),x.gradient(e,a,T,v,[[0,_],[1,f]],&quot;fill&quot;)}else if(b){var k=x.getPatternAttr(y.bgcolor,t.i,null),A=x.getPatternAttr(y.fgcolor,t.i,null),S=y.fgopacity,E=x.getPatternAttr(y.size,t.i,8),L=x.getPatternAttr(y.solidity,t.i,.3),C=t.mcc||i.isArrayOrTypedArray(y.shape)||i.isArrayOrTypedArray(y.bgcolor)||i.isArrayOrTypedArray(y.size)||i.isArrayOrTypedArray(y.solidity),P=r.uid;C&amp;&amp;(P+=&quot;-&quot;+t.i),x.pattern(e,&quot;point&quot;,a,P,b,E,L,t.mcc,y.fillmode,k,A,S)}else c.fill(e,f);p&amp;&amp;c.stroke(e,h)}},x.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=x.tryColorscale(r,&quot;&quot;),e.lineScale=x.tryColorscale(r,&quot;line&quot;),l.traceIs(t,&quot;symbols&quot;)&amp;&amp;(e.ms2mrc=m.isBubble(t)?v(t):function(){return(r.size||6)/2}),t.selectedpoints&amp;&amp;i.extendFlat(e,x.makeSelectedPointStyleFns(t)),e},x.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},a=t.marker||{},o=r.marker||{},s=n.marker||{},c=a.opacity,u=o.opacity,f=s.opacity,h=void 0!==u,p=void 0!==f;(i.isArrayOrTypedArray(c)||h||p)&amp;&amp;(e.selectedOpacityFn=function(t){var e=void 0===t.mo?a.opacity:t.mo;return t.selected?h?u:e:p?f:g*e});var d=a.color,m=o.color,v=s.color;(m||v)&amp;&amp;(e.selectedColorFn=function(t){var e=t.mcc||d;return t.selected?m||e:v||e});var y=a.size,x=o.size,b=s.size,_=void 0!==x,w=void 0!==b;return l.traceIs(t,&quot;symbols&quot;)&amp;&amp;(_||w)&amp;&amp;(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},x.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||s;return t.selected?l||e:u||(l?e:c.addOpacity(e,g))},e},x.selectedPointStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=x.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&amp;&amp;a.push((function(t,e){t.style(&quot;opacity&quot;,r.selectedOpacityFn(e))})),r.selectedColorFn&amp;&amp;a.push((function(t,e){c.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&amp;&amp;a.push((function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(&quot;d&quot;,w(x.symbolNumber(n),a)),e.mrc2=a})),a.length&amp;&amp;t.each((function(t){for(var e=n.select(this),r=0;r&lt;a.length;r++)a[r](e,t)}))}},x.tryColorscale=function(t,e){var r=e?i.nestedProperty(t,e).get():t;if(r){var n=r.color;if((r.colorscale||r._colorAx)&amp;&amp;i.isArrayOrTypedArray(n))return u.makeColorScaleFuncFromTrace(r)}return i.identity};var S={start:1,end:-1,middle:0,bottom:1,top:-1};function E(t,e,r,i){var a=n.select(t.node().parentNode),o=-1!==e.indexOf(&quot;top&quot;)?&quot;top&quot;:-1!==e.indexOf(&quot;bottom&quot;)?&quot;bottom&quot;:&quot;middle&quot;,s=-1!==e.indexOf(&quot;left&quot;)?&quot;end&quot;:-1!==e.indexOf(&quot;right&quot;)?&quot;start&quot;:&quot;middle&quot;,l=i?i/.8+1:0,c=(h.lineCount(t)-1)*d+1,u=S[s]*l,p=.75*r+S[o]*l+(S[o]-1)*c*r/2;t.attr(&quot;text-anchor&quot;,s),a.attr(&quot;transform&quot;,f(u,p))}function L(t,e){var r=t.ts||e.textfont.size;return o(r)&amp;&amp;r&gt;0?r:0}x.textPointStyle=function(t,e,r){if(t.size()){var a;if(e.selectedpoints){var o=x.makeSelectedTextStyleFns(e);a=o.selectedTextColorFn}var s=e.texttemplate,l=r._fullLayout;t.each((function(t){var o=n.select(this),c=s?i.extractOption(t,e,&quot;txt&quot;,&quot;texttemplate&quot;):i.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);if(c||0===c){if(s){var u=e._module.formatLabels,f=u?u(t,e,l):{},p={};y(p,e,t.i);var d=e._meta||{};c=i.texttemplateString(c,f,l._d3locale,p,t,d)}var g=t.tp||e.textposition,m=L(t,e),v=a?a(t):t.tc||e.textfont.color;o.call(x.font,t.tf||e.textfont.family,m,v).text(c).call(h.convertToTspans,r).call(E,g,m,t.mrc)}else o.remove()}))}},x.selectedTextStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=x.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,s=L(t,e);c.fill(i,a),E(i,o,s,t.mrc2||t.mrc)}))}};function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&amp;&amp;f/p),2),n.round(e[1]+(p&amp;&amp;h/p),2)],[n.round(e[0]-(d&amp;&amp;f/d),2),n.round(e[1]-(d&amp;&amp;h/d),2)]]}x.smoothopen=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;);var r,n=&quot;M&quot;+t[0],i=[];for(r=1;r&lt;t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=&quot;Q&quot;+i[0][0]+&quot; &quot;+t[1],r=2;r&lt;t.length-1;r++)n+=&quot;C&quot;+i[r-2][1]+&quot; &quot;+i[r-1][0]+&quot; &quot;+t[r];return n+=&quot;Q&quot;+i[t.length-3][1]+&quot; &quot;+t[t.length-1]},x.smoothclosed=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;)+&quot;Z&quot;;var r,n=&quot;M&quot;+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r&lt;i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r&lt;=i;r++)n+=&quot;C&quot;+a[r-1][1]+&quot; &quot;+a[r][0]+&quot; &quot;+t[r];return n+=&quot;C&quot;+a[i][1]+&quot; &quot;+a[0][0]+&quot; &quot;+t[0]+&quot;Z&quot;};var P={hv:function(t,e){return&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)},vh:function(t,e){return&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},hvh:function(t,e){return&quot;H&quot;+n.round((t[0]+e[0])/2,2)+&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},vhv:function(t,e){return&quot;V&quot;+n.round((t[1]+e[1])/2,2)+&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)}},I=function(t,e){return&quot;L&quot;+n.round(e[0],2)+&quot;,&quot;+n.round(e[1],2)};x.steps=function(t){var e=P[t]||I;return function(t){for(var r=&quot;M&quot;+n.round(t[0][0],2)+&quot;,&quot;+n.round(t[0][1],2),i=1;i&lt;t.length;i++)r+=e(t[i-1],t[i]);return r}},x.makeTester=function(){var t=i.ensureSingleById(n.select(&quot;body&quot;),&quot;svg&quot;,&quot;js-plotly-tester&quot;,(function(t){t.attr(p.svgAttrs).style({position:&quot;absolute&quot;,left:&quot;-10000px&quot;,top:&quot;-10000px&quot;,width:&quot;9000px&quot;,height:&quot;9000px&quot;,&quot;z-index&quot;:&quot;1&quot;})})),e=i.ensureSingle(t,&quot;path&quot;,&quot;js-reference-point&quot;,(function(t){t.attr(&quot;d&quot;,&quot;M0,0H1V1H0Z&quot;).style({&quot;stroke-width&quot;:0,fill:&quot;black&quot;})}));x.tester=t,x.testref=e},x.savedBBoxes={};var O=0;function z(t){var e=t.getAttribute(&quot;data-unformatted&quot;);if(null!==e)return e+t.getAttribute(&quot;data-math&quot;)+t.getAttribute(&quot;text-anchor&quot;)+t.getAttribute(&quot;style&quot;)}function D(t,e){if(!t)return null;var r=e._context,n=r._exportedPlot?&quot;&quot;:r._baseUrl||&quot;&quot;;return n?&quot;url('&quot;+n+&quot;#&quot;+t+&quot;')&quot;:&quot;url(#&quot;+t+&quot;)&quot;}x.bBox=function(t,e,r){var a,o,s;if(r||(r=z(t)),r){if(a=x.savedBBoxes[r])return i.extendFlat({},a)}else if(1===t.childNodes.length){var l=t.childNodes[0];if(r=z(l)){var c=+l.getAttribute(&quot;x&quot;)||0,u=+l.getAttribute(&quot;y&quot;)||0,f=l.getAttribute(&quot;transform&quot;);if(!f){var p=x.bBox(l,!1,r);return c&amp;&amp;(p.left+=c,p.right+=c),u&amp;&amp;(p.top+=u,p.bottom+=u),p}if(r+=&quot;~&quot;+c+&quot;~&quot;+u+&quot;~&quot;+f,a=x.savedBBoxes[r])return i.extendFlat({},a)}}e?o=t:(s=x.tester.node(),o=t.cloneNode(!0),s.appendChild(o)),n.select(o).attr(&quot;transform&quot;,null).call(h.positionText,0,0);var d=o.getBoundingClientRect(),g=x.testref.node().getBoundingClientRect();e||s.removeChild(o);var m={height:d.height,width:d.width,left:d.left-g.left,top:d.top-g.top,right:d.right-g.left,bottom:d.bottom-g.top};return O&gt;=1e4&amp;&amp;(x.savedBBoxes={},O=0),r&amp;&amp;(x.savedBBoxes[r]=m),O++,i.extendFlat({},m)},x.setClipUrl=function(t,e,r){t.attr(&quot;clip-path&quot;,D(e,r))},x.getTranslate=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||0,y:+e[1]||0}},x.setTranslate=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=f(e,r)).trim(),t[i](&quot;transform&quot;,a),a},x.getScale=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||1,y:+e[1]||1}},x.setScale=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;).trim(),t[i](&quot;transform&quot;,a),a};var R=/\s*sc.*/;x.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&amp;&amp;1===r?&quot;&quot;:&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;;t.each((function(){var t=(this.getAttribute(&quot;transform&quot;)||&quot;&quot;).replace(R,&quot;&quot;);t=(t+=n).trim(),this.setAttribute(&quot;transform&quot;,t)}))}};var F=/translate\([^)]*\)\s*$/;x.setTextPointsScale=function(t,e,r){t&amp;&amp;t.each((function(){var t,i=n.select(this),a=i.select(&quot;text&quot;);if(a.node()){var o=parseFloat(a.attr(&quot;x&quot;)||0),s=parseFloat(a.attr(&quot;y&quot;)||0),l=(i.attr(&quot;transform&quot;)||&quot;&quot;).match(F);t=1===e&amp;&amp;1===r?[]:[f(o,s),&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;,f(-o,-s)],l&amp;&amp;t.push(l),i.attr(&quot;transform&quot;,t.join(&quot;&quot;))}}))}},{&quot;../../components/fx/helpers&quot;:702,&quot;../../constants/alignment&quot;:771,&quot;../../constants/interactions&quot;:778,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../registry&quot;:931,&quot;../../traces/scatter/make_bubble_size_func&quot;:1235,&quot;../../traces/scatter/subtypes&quot;:1243,&quot;../color&quot;:666,&quot;../colorscale&quot;:678,&quot;./symbol_defs&quot;:689,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],689:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;}},square:{n:1,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;Z&quot;}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;H-&quot;+e+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;V-&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;H&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=&quot;l&quot;+e+&quot;,&quot;+e,i=&quot;l&quot;+e+&quot;,-&quot;+e,a=&quot;l-&quot;+e+&quot;,-&quot;+e,o=&quot;l-&quot;+e+&quot;,&quot;+e;return&quot;M0,&quot;+e+r+i+a+i+a+o+a+o+r+o+r+&quot;Z&quot;}},&quot;triangle-up&quot;:{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,-&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-down&quot;:{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,-&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-left&quot;:{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L-&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-right&quot;:{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-ne&quot;:{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;Z&quot;}},&quot;triangle-se&quot;:{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;Z&quot;}},&quot;triangle-sw&quot;:{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;Z&quot;}},&quot;triangle-nw&quot;:{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return&quot;M&quot;+e+&quot;,&quot;+a+&quot;L&quot;+r+&quot;,&quot;+n.round(.809*t,2)+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+a+&quot;L0,&quot;+i+&quot;Z&quot;}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M&quot;+i+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L0,&quot;+e+&quot;L-&quot;+i+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;L0,-&quot;+e+&quot;Z&quot;}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M-&quot;+r+&quot;,&quot;+i+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,0L&quot;+r+&quot;,-&quot;+i+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;Z&quot;}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return&quot;M&quot;+r+&quot;,&quot;+l+&quot;H&quot;+i+&quot;L&quot;+a+&quot;,&quot;+c+&quot;L&quot;+o+&quot;,&quot;+u+&quot;L0,&quot;+n.round(.382*e,2)+&quot;L-&quot;+o+&quot;,&quot;+u+&quot;L-&quot;+a+&quot;,&quot;+c+&quot;L-&quot;+i+&quot;,&quot;+l+&quot;H-&quot;+r+&quot;L0,&quot;+s+&quot;Z&quot;}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return&quot;M-&quot;+i+&quot;,0l-&quot;+r+&quot;,-&quot;+e+&quot;h&quot;+i+&quot;l&quot;+r+&quot;,-&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h-&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l-&quot;+r+&quot;,-&quot;+e+&quot;h-&quot;+i+&quot;Z&quot;}},&quot;star-triangle-up&quot;:{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,&quot;+r+o+e+&quot;,&quot;+r+o+&quot;0,-&quot;+i+o+&quot;-&quot;+e+&quot;,&quot;+r+&quot;Z&quot;}},&quot;star-triangle-down&quot;:{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M&quot;+e+&quot;,-&quot;+r+o+&quot;-&quot;+e+&quot;,-&quot;+r+o+&quot;0,&quot;+i+o+e+&quot;,-&quot;+r+&quot;Z&quot;}},&quot;star-square&quot;:{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,&quot;+e+i+e+&quot;,&quot;+e+i+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,-&quot;+e+&quot;Z&quot;}},&quot;star-diamond&quot;:{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,0&quot;+i+&quot;0,&quot;+e+i+e+&quot;,0&quot;+i+&quot;0,-&quot;+e+i+&quot;-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-tall&quot;:{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-wide&quot;:{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;L&quot;+e+&quot;,-&quot;+e+&quot;H-&quot;+e+&quot;Z&quot;},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;Z&quot;},noDot:!0},&quot;circle-cross&quot;:{n:27,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;circle-x&quot;:{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;square-cross&quot;:{n:29,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;square-x&quot;:{n:30,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;diamond-cross&quot;:{n:31,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM0,-&quot;+e+&quot;V&quot;+e+&quot;M-&quot;+e+&quot;,0H&quot;+e},needLine:!0,noDot:!0},&quot;diamond-x&quot;:{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM-&quot;+r+&quot;,-&quot;+r+&quot;L&quot;+r+&quot;,&quot;+r+&quot;M-&quot;+r+&quot;,&quot;+r+&quot;L&quot;+r+&quot;,-&quot;+r},needLine:!0,noDot:!0},&quot;cross-thin&quot;:{n:33,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;x-thin&quot;:{n:34,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;m-&quot;+r+&quot;,0V&quot;+r+&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;m0,-&quot;+r+&quot;H&quot;+r},needLine:!0,noFill:!0},&quot;y-up&quot;:{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,&quot;+i+&quot;L0,0M&quot;+e+&quot;,&quot;+i+&quot;L0,0M0,-&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-down&quot;:{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,-&quot;+i+&quot;L0,0M&quot;+e+&quot;,-&quot;+i+&quot;L0,0M0,&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-left&quot;:{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M&quot;+i+&quot;,&quot;+e+&quot;L0,0M&quot;+i+&quot;,-&quot;+e+&quot;L0,0M-&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-right&quot;:{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+i+&quot;,&quot;+e+&quot;L0,0M-&quot;+i+&quot;,-&quot;+e+&quot;L0,0M&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;line-ew&quot;:{n:41,f:function(t){var e=n.round(1.4*t,2);return&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ns&quot;:{n:42,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ne&quot;:{n:43,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-nw&quot;:{n:44,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;arrow-up&quot;:{n:45,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-down&quot;:{n:46,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-left&quot;:{n:47,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-right&quot;:{n:48,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-bar-up&quot;:{n:49,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-down&quot;:{n:50,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-left&quot;:{n:51,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-right&quot;:{n:52,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0}}},{&quot;@plotly/d3&quot;:58}],690:[function(t,e,r){&quot;use strict&quot;;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;percent&quot;,&quot;constant&quot;,&quot;sqrt&quot;,&quot;data&quot;],editType:&quot;calc&quot;},symmetric:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},array:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},arrayminus:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},value:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},valueminus:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},traceref:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},tracerefminus:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},copy_ystyle:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},copy_zstyle:{valType:&quot;boolean&quot;,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;,_deprecated:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;}}}},{}],691:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;./compute_error&quot;);function l(t,e,r,i){var l=e[&quot;error_&quot;+i]||{},c=[];if(l.visible&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)){for(var u=s(l),f=0;f&lt;t.length;f++){var h=t[f],p=h.i;if(void 0===p)p=f;else if(null===p)continue;var d=h[i];if(n(r.c2l(d))){var g=u(d,p);if(n(g[0])&amp;&amp;n(g[1])){var m=h[i+&quot;s&quot;]=d-g[0],v=h[i+&quot;h&quot;]=d+g[1];c.push(m,v)}}}var y=r._id,x=e._extremes[y],b=a.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r&lt;e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&amp;&amp;i.traceIs(o,&quot;errorBarsOK&quot;)){var s=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);l(n,o,s,&quot;x&quot;),l(n,o,c,&quot;y&quot;)}}}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;./compute_error&quot;:692,&quot;fast-isnumeric&quot;:249}],692:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return&quot;percent&quot;===t?function(t){return Math.abs(t*e/100)}:&quot;constant&quot;===t?function(){return Math.abs(e)}:&quot;sqrt&quot;===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(&quot;data&quot;===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&amp;&amp;isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],693:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){var c=&quot;error_&quot;+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(&quot;visible&quot;,void 0!==f.array||void 0!==f.value||&quot;sqrt&quot;===f.type)){var p=h(&quot;type&quot;,&quot;array&quot;in f?&quot;data&quot;:&quot;percent&quot;),d=!0;&quot;sqrt&quot;!==p&amp;&amp;(d=h(&quot;symmetric&quot;,!((&quot;data&quot;===p?&quot;arrayminus&quot;:&quot;valueminus&quot;)in f))),&quot;data&quot;===p?(h(&quot;array&quot;),h(&quot;traceref&quot;),d||(h(&quot;arrayminus&quot;),h(&quot;tracerefminus&quot;))):&quot;percent&quot;!==p&amp;&amp;&quot;constant&quot;!==p||(h(&quot;value&quot;),d||h(&quot;valueminus&quot;));var g=&quot;copy_&quot;+l.inherit+&quot;style&quot;;if(l.inherit)(e[&quot;error_&quot;+l.inherit]||{}).visible&amp;&amp;h(g,!(f.color||n(f.thickness)||n(f.width)));l.inherit&amp;&amp;u[g]||(h(&quot;color&quot;,r),h(&quot;thickness&quot;),h(&quot;width&quot;,i.traceIs(e,&quot;gl3d&quot;)?0:4))}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../registry&quot;:931,&quot;./attributes&quot;:690,&quot;fast-isnumeric&quot;:249}],694:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;./attributes&quot;),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:&quot;component&quot;,name:&quot;errorbars&quot;,schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,&quot;calc&quot;,&quot;nested&quot;),scattergl:i(o,&quot;calc&quot;,&quot;nested&quot;)}},supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),makeComputeError:t(&quot;./compute_error&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverInfo:function(t,e,r){(e.error_y||{}).visible&amp;&amp;(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&amp;&amp;(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/edit_types&quot;:836,&quot;./attributes&quot;:690,&quot;./calc&quot;:691,&quot;./compute_error&quot;:692,&quot;./defaults&quot;:693,&quot;./plot&quot;:695,&quot;./style&quot;:696}],695:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../traces/scatter/subtypes&quot;);e.exports=function(t,e,r,s){var l=r.xaxis,c=r.yaxis,u=s&amp;&amp;s.duration&gt;0;e.each((function(e){var f,h=e[0].trace,p=h.error_x||{},d=h.error_y||{};h.ids&amp;&amp;(f=function(t){return t.id});var g=o.hasMarkers(h)&amp;&amp;h.marker.maxdisplayed&gt;0;d.visible||p.visible||(e=[]);var m=n.select(this).selectAll(&quot;g.errorbar&quot;).data(e,f);if(m.exit().remove(),e.length){p.visible||m.selectAll(&quot;path.xerror&quot;).remove(),d.visible||m.selectAll(&quot;path.yerror&quot;).remove(),m.style(&quot;opacity&quot;,1);var v=m.enter().append(&quot;g&quot;).classed(&quot;errorbar&quot;,!0);u&amp;&amp;v.style(&quot;opacity&quot;,0).transition().duration(s.duration).style(&quot;opacity&quot;,1),a.setClipUrl(m,r.layerClipId,t),m.each((function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&amp;&amp;(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&amp;&amp;(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,l,c);if(!g||t.vis){var a,o=e.select(&quot;path.yerror&quot;);if(d.visible&amp;&amp;i(r.x)&amp;&amp;i(r.yh)&amp;&amp;i(r.ys)){var f=d.width;a=&quot;M&quot;+(r.x-f)+&quot;,&quot;+r.yh+&quot;h&quot;+2*f+&quot;m-&quot;+f+&quot;,0V&quot;+r.ys,r.noYS||(a+=&quot;m-&quot;+f+&quot;,0h&quot;+2*f),!o.size()?o=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;yerror&quot;,!0):u&amp;&amp;(o=o.transition().duration(s.duration).ease(s.easing)),o.attr(&quot;d&quot;,a)}else o.remove();var h=e.select(&quot;path.xerror&quot;);if(p.visible&amp;&amp;i(r.y)&amp;&amp;i(r.xh)&amp;&amp;i(r.xs)){var m=(p.copy_ystyle?d:p).width;a=&quot;M&quot;+r.xh+&quot;,&quot;+(r.y-m)+&quot;v&quot;+2*m+&quot;m0,-&quot;+m+&quot;H&quot;+r.xs,r.noXS||(a+=&quot;m0,-&quot;+m+&quot;v&quot;+2*m),!h.size()?h=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;xerror&quot;,!0):u&amp;&amp;(h=h.transition().duration(s.duration).ease(s.easing)),h.attr(&quot;d&quot;,a)}else h.remove()}}))}}))}},{&quot;../../traces/scatter/subtypes&quot;:1243,&quot;../drawing&quot;:688,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],696:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../color&quot;);e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(&quot;path.yerror&quot;).style(&quot;stroke-width&quot;,r.thickness+&quot;px&quot;).call(i.stroke,r.color),a.copy_ystyle&amp;&amp;(a=r),o.selectAll(&quot;path.xerror&quot;).style(&quot;stroke-width&quot;,a.thickness+&quot;px&quot;).call(i.stroke,a.color)}))}},{&quot;../color&quot;:666,&quot;@plotly/d3&quot;:58}],697:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./layout_attributes&quot;).hoverlabel,a=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:&quot;none&quot;}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:&quot;none&quot;}}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/font_attributes&quot;:883,&quot;./layout_attributes&quot;:707}],698:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&amp;&amp;(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s&lt;e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,&quot;pie-like&quot;)){var u=i.traceIs(c,&quot;2dMap&quot;)?a:n.fillArray;u(c.hoverinfo,l,&quot;hi&quot;,o(c)),c.hovertemplate&amp;&amp;u(c.hovertemplate,l,&quot;ht&quot;),c.hoverlabel&amp;&amp;(u(c.hoverlabel.bgcolor,l,&quot;hbg&quot;),u(c.hoverlabel.bordercolor,l,&quot;hbc&quot;),u(c.hoverlabel.font.size,l,&quot;hts&quot;),u(c.hoverlabel.font.color,l,&quot;htc&quot;),u(c.hoverlabel.font.family,l,&quot;htf&quot;),u(c.hoverlabel.namelength,l,&quot;hnl&quot;),u(c.hoverlabel.align,l,&quot;hta&quot;))}}}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],699:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./hover&quot;).hover;e.exports=function(t,e,r){var a=n.getComponentMethod(&quot;annotations&quot;,&quot;onClick&quot;)(t,t._hoverdata);function o(){t.emit(&quot;plotly_click&quot;,{points:t._hoverdata,event:e})}void 0!==r&amp;&amp;i(t,e,r,!0),t._hoverdata&amp;&amp;e&amp;&amp;e.target&amp;&amp;(a&amp;&amp;a.then?a.then(o):o(),e.stopImmediatePropagation&amp;&amp;e.stopImmediatePropagation())}},{&quot;../../registry&quot;:931,&quot;./hover&quot;:703}],700:[function(t,e,r){&quot;use strict&quot;;e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:&quot;Arial, sans-serif&quot;,HOVERMINTIME:50,HOVERID:&quot;-hover&quot;}},{}],701:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r,o){var s=n.extendFlat({},o.hoverlabel);e.hovertemplate&amp;&amp;(s.namelength=-1),a(t,e,(function(r,a){return n.coerce(t,e,i,r,a)}),s)}},{&quot;../../lib&quot;:803,&quot;./attributes&quot;:697,&quot;./hoverlabel_defaults&quot;:704}],702:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(&quot;splom&quot;===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a&lt;n.length;a++)for(var o=0;o&lt;i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return&quot;closest&quot;===t?i||r.quadrature(e,n):&quot;x&quot;===t.charAt(0)?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index&gt;=0&amp;&amp;r.index&lt;t.length?r.distance=0:r.index=!1;else for(var n=0;n&lt;t.length;n++){var i=e(t[n]);i&lt;=r.distance&amp;&amp;(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e&lt;0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=&quot;index&quot;in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(&quot;xVal&quot;in t?a.x=t.xVal:&quot;x&quot;in t&amp;&amp;(a.x=t.x),&quot;yVal&quot;in t?a.y=t.yVal:&quot;y&quot;in t&amp;&amp;(a.y=t.y),t.xa&amp;&amp;(a.xaxis=t.xa),t.ya&amp;&amp;(a.yaxis=t.ya),void 0!==t.zLabelVal&amp;&amp;(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&amp;&amp;(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h&lt;r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:&quot;id&quot;,locations:&quot;location&quot;,labels:&quot;label&quot;,values:&quot;value&quot;,&quot;marker.colors&quot;:&quot;color&quot;,parents:&quot;parent&quot;};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&amp;&amp;Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}var s={x:!0,y:!0},l={&quot;x unified&quot;:!0,&quot;y unified&quot;:!0};r.isUnifiedHover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!l[t]},r.isXYhover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!s[t]}},{&quot;../../lib&quot;:803}],703:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o.strRotate,c=t(&quot;../../lib/events&quot;),u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../lib/override_cursor&quot;),h=t(&quot;../drawing&quot;),p=t(&quot;../color&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plots/cartesian/axes&quot;),m=t(&quot;../../registry&quot;),v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../legend/defaults&quot;),b=t(&quot;../legend/draw&quot;),_=y.YANGLE,w=Math.PI*_/180,T=1/Math.sin(w),k=Math.cos(w),A=Math.sin(w),M=y.HOVERARROWSIZE,S=y.HOVERTEXTPAD,E={box:!0,ohlc:!0,violin:!0,candlestick:!0},L={scatter:!0,scattergl:!0,splom:!0};function C(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa?t.xa._id:&quot;&quot;,t.ya?t.ya._id:&quot;&quot;].join(&quot;,&quot;)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t),o.throttle(t._fullLayout._uid+y.HOVERID,y.HOVERMINTIME,(function(){!function(t,e,r,a){r||(r=&quot;xy&quot;);var s=Array.isArray(r)?r:[r],l=t._fullLayout,u=l._plots||[],h=u[r],g=l._has(&quot;cartesian&quot;);if(h){var y=h.overlays.map((function(t){return t.id}));s=s.concat(y)}for(var x=s.length,b=new Array(x),_=new Array(x),w=!1,k=0;k&lt;x;k++){var A=s[k];if(u[A])w=!0,b[k]=u[A].xaxis,_[k]=u[A].yaxis;else{if(!l[A]||!l[A]._subplot)return void o.warn(&quot;Unrecognized subplot: &quot;+A);var M=l[A]._subplot;b[k]=M.xaxis,_[k]=M.yaxis}}var S=e.hovermode||l.hovermode;S&amp;&amp;!w&amp;&amp;(S=&quot;closest&quot;);if(-1===[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,&quot;x unified&quot;,&quot;y unified&quot;].indexOf(S)||!t.calcdata||t.querySelector(&quot;.zoombox&quot;)||t._dragging)return d.unhoverRaw(t,e);var P=l.hoverdistance;-1===P&amp;&amp;(P=1/0);var O=l.spikedistance;-1===O&amp;&amp;(O=1/0);var B,V,q,H,G,Y,W,X,Z,J,K,Q,$,tt=[],et=[],rt={hLinePoint:null,vLinePoint:null},nt=!1;if(Array.isArray(e))for(S=&quot;array&quot;,q=0;q&lt;e.length;q++)(G=t.calcdata[e[q].curveNumber||0])&amp;&amp;(Y=G[0].trace,&quot;skip&quot;!==G[0].trace.hoverinfo&amp;&amp;(et.push(G),&quot;h&quot;===Y.orientation&amp;&amp;(nt=!0)));else{for(H=0;H&lt;t.calcdata.length;H++)G=t.calcdata[H],&quot;skip&quot;!==(Y=G[0].trace).hoverinfo&amp;&amp;v.isTraceInSubplots(Y,s)&amp;&amp;(et.push(G),&quot;h&quot;===Y.orientation&amp;&amp;(nt=!0));var it,at;if(!e.target)it=&quot;xpx&quot;in e?e.xpx:b[0]._length/2,at=&quot;ypx&quot;in e?e.ypx:_[0]._length/2;else{if(!1===c.triggerHandler(t,&quot;plotly_beforehover&quot;,e))return;var ot=e.composedPath&amp;&amp;e.composedPath()[0];ot||(ot=e.target);var st=ot.getBoundingClientRect();it=e.clientX-st.left,at=e.clientY-st.top,l._calcInverseTransform(t);var lt=o.apply3DTransform(l._invTransform)(it,at);if(it=lt[0],at=lt[1],it&lt;0||it&gt;b[0]._length||at&lt;0||at&gt;_[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=it+b[0]._offset,e.pointerY=at+_[0]._offset,B=&quot;xval&quot;in e?v.flat(s,e.xval):v.p2c(b,it),V=&quot;yval&quot;in e?v.flat(s,e.yval):v.p2c(_,at),!i(B[0])||!i(V[0]))return o.warn(&quot;Fx.hover failed&quot;,e,t),d.unhoverRaw(t,e)}var ct=1/0;function ut(t,r){for(H=0;H&lt;et.length;H++)if((G=et[H])&amp;&amp;G[0]&amp;&amp;G[0].trace&amp;&amp;!0===(Y=G[0].trace).visible&amp;&amp;0!==Y._length&amp;&amp;-1===[&quot;carpet&quot;,&quot;contourcarpet&quot;].indexOf(Y._module.name)){if(&quot;splom&quot;===Y.type?W=s[X=0]:(W=v.getSubplot(Y),X=s.indexOf(W)),Z=S,v.isUnifiedHover(Z)&amp;&amp;(Z=Z.charAt(0)),Q={cd:G,trace:Y,xa:b[X],ya:_[X],maxHoverDistance:P,maxSpikeDistance:O,index:!1,distance:Math.min(ct,P),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:Y.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[W]&amp;&amp;(Q.subplot=l[W]._subplot),l._splomScenes&amp;&amp;l._splomScenes[Y.uid]&amp;&amp;(Q.scene=l._splomScenes[Y.uid]),$=tt.length,&quot;array&quot;===Z){var n=e[H];&quot;pointNumber&quot;in n?(Q.index=n.pointNumber,Z=&quot;closest&quot;):(Z=&quot;&quot;,&quot;xval&quot;in n&amp;&amp;(J=n.xval,Z=&quot;x&quot;),&quot;yval&quot;in n&amp;&amp;(K=n.yval,Z=Z?&quot;closest&quot;:&quot;y&quot;))}else void 0!==t&amp;&amp;void 0!==r?(J=t,K=r):(J=B[X],K=V[X]);if(0!==P)if(Y._module&amp;&amp;Y._module.hoverPoints){var a=Y._module.hoverPoints(Q,J,K,Z,{finiteRange:!0,hoverLayer:l._hoverlayer});if(a)for(var c,u=0;u&lt;a.length;u++)c=a[u],i(c.x0)&amp;&amp;i(c.y0)&amp;&amp;tt.push(D(c,S))}else o.log(&quot;Unrecognized trace type in hover:&quot;,Y);if(&quot;closest&quot;===S&amp;&amp;tt.length&gt;$&amp;&amp;(tt.splice(0,$),ct=tt[0].distance),g&amp;&amp;0!==O&amp;&amp;0===tt.length){Q.distance=O,Q.index=!1;var f=Y._module.hoverPoints(Q,J,K,&quot;closest&quot;,{hoverLayer:l._hoverlayer});if(f&amp;&amp;(f=f.filter((function(t){return t.spikeDistance&lt;=O}))),f&amp;&amp;f.length){var h,d=f.filter((function(t){return t.xa.showspikes&amp;&amp;&quot;hovered data&quot;!==t.xa.spikesnap}));if(d.length){var m=d[0];i(m.x0)&amp;&amp;i(m.y0)&amp;&amp;(h=ht(m),(!rt.vLinePoint||rt.vLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(rt.vLinePoint=h))}var y=f.filter((function(t){return t.ya.showspikes&amp;&amp;&quot;hovered data&quot;!==t.ya.spikesnap}));if(y.length){var x=y[0];i(x.x0)&amp;&amp;i(x.y0)&amp;&amp;(h=ht(x),(!rt.hLinePoint||rt.hLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(rt.hLinePoint=h))}}}}}function ft(t,e,r){for(var n,i=null,a=1/0,o=0;o&lt;t.length;o++)n=t[o].spikeDistance,r&amp;&amp;0===o&amp;&amp;(n=-1/0),n&lt;=a&amp;&amp;n&lt;=e&amp;&amp;(i=t[o],a=n);return i}function ht(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}ut();var pt={fullLayout:l,container:l._hoverlayer,event:e},dt=t._spikepoints,gt={vLinePoint:rt.vLinePoint,hLinePoint:rt.hLinePoint};t._spikepoints=gt;var mt=function(){tt.sort((function(t,e){return t.distance-e.distance})),tt=function(t,e){for(var r=e.charAt(0),n=[],i=[],a=[],o=0;o&lt;t.length;o++){var s=t[o];m.traceIs(s.trace,&quot;bar-like&quot;)||m.traceIs(s.trace,&quot;box-violin&quot;)?a.push(s):s.trace[r+&quot;period&quot;]?i.push(s):n.push(s)}return n.concat(i).concat(a)}(tt,S)};mt();var vt=S.charAt(0),yt=(&quot;x&quot;===vt||&quot;y&quot;===vt)&amp;&amp;tt[0]&amp;&amp;L[tt[0].trace.type];if(g&amp;&amp;0!==O&amp;&amp;0!==tt.length){var xt=ft(tt.filter((function(t){return t.ya.showspikes})),O,yt);rt.hLinePoint=ht(xt);var bt=ft(tt.filter((function(t){return t.xa.showspikes})),O,yt);rt.vLinePoint=ht(bt)}if(0===tt.length){var _t=d.unhoverRaw(t,e);return!g||null===rt.hLinePoint&amp;&amp;null===rt.vLinePoint||F(dt)&amp;&amp;R(t,rt,pt),_t}g&amp;&amp;F(dt)&amp;&amp;R(t,rt,pt);if(v.isXYhover(Z)&amp;&amp;0!==tt[0].length&amp;&amp;&quot;splom&quot;!==tt[0].trace.type){var wt=tt[0],Tt=(tt=E[wt.trace.type]?tt.filter((function(t){return t.trace.index===wt.trace.index})):[wt]).length,kt=N(&quot;x&quot;,wt,l),At=N(&quot;y&quot;,wt,l);ut(kt,At);var Mt,St=[],Et={},Lt=0,Ct=function(t){var e=E[t.trace.type]?C(t):t.trace.index;if(Et[e]){var r=Et[e]-1,n=St[r];r&gt;0&amp;&amp;Math.abs(t.distance)&lt;Math.abs(n.distance)&amp;&amp;(St[r]=t)}else Lt++,Et[e]=Lt,St.push(t)};for(Mt=0;Mt&lt;Tt;Mt++)Ct(tt[Mt]);for(Mt=tt.length-1;Mt&gt;Tt-1;Mt--)Ct(tt[Mt]);tt=St,mt()}var Pt=t._hoverdata,It=[],Ot=j(t),zt=U(t);for(q=0;q&lt;tt.length;q++){var Dt=tt[q],Rt=v.makeEventData(Dt,Dt.trace,Dt.cd);if(!1!==Dt.hovertemplate){var Ft=!1;Dt.cd[Dt.index]&amp;&amp;Dt.cd[Dt.index].ht&amp;&amp;(Ft=Dt.cd[Dt.index].ht),Dt.hovertemplate=Ft||Dt.trace.hovertemplate||!1}if(Dt.xa&amp;&amp;Dt.ya){var Bt=Dt.x0+Dt.xa._offset,Nt=Dt.x1+Dt.xa._offset,jt=Dt.y0+Dt.ya._offset,Ut=Dt.y1+Dt.ya._offset,Vt=Math.min(Bt,Nt),qt=Math.max(Bt,Nt),Ht=Math.min(jt,Ut),Gt=Math.max(jt,Ut);Rt.bbox={x0:Vt+zt,x1:qt+zt,y0:Ht+Ot,y1:Gt+Ot}}Dt.eventData=[Rt],It.push(Rt)}t._hoverdata=It;var Yt=&quot;y&quot;===S&amp;&amp;(et.length&gt;1||tt.length&gt;1)||&quot;closest&quot;===S&amp;&amp;nt&amp;&amp;tt.length&gt;1,Wt=p.combine(l.plot_bgcolor||p.background,l.paper_bgcolor),Xt=I(tt,{gd:t,hovermode:S,rotateLabels:Yt,bgColor:Wt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance});v.isUnifiedHover(S)||(!function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.size(),p=new Array(h),d=0;function g(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i&gt;.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp+=i;n=!1}if(!(a&lt;.01)){if(i&lt;-.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o&lt;t.length;o++)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;c++;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos&gt;e.pmax-1&amp;&amp;(l.del=!0,c--);for(o=0;o&lt;t.length&amp;&amp;!(c&lt;=0);o++)if((l=t[o]).pos&lt;e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s&gt;=0;s--)t[s].dp-=a;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;(l.del=!0,c--)}}}t.each((function(t){var n=t[e],i=&quot;x&quot;===n._id.charAt(0),a=n.range;0===d&amp;&amp;a&amp;&amp;a[0]&gt;a[1]!==i&amp;&amp;(f=-1),p[d++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),p.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));for(;!n&amp;&amp;u&lt;=h;){for(u++,n=!0,o=0;o&lt;p.length-1;){var m=p[o],v=p[o+1],y=m[m.length-1],x=v[0];if((i=y.pos+y.dp+y.size-x.pos-x.dp+x.size)&gt;.01&amp;&amp;y.pmin===x.pmin&amp;&amp;y.pmax===x.pmax){for(s=v.length-1;s&gt;=0;s--)v[s].dp+=i;for(m.push.apply(m,v),p.splice(o+1,1),c=0,s=m.length-1;s&gt;=0;s--)c+=m[s].dp;for(a=c/m.length,s=m.length-1;s&gt;=0;s--)m[s].dp-=a;n=!1}else o++}p.forEach(g)}for(o=p.length-1;o&gt;=0;o--){var b=p[o];for(s=b.length-1;s&gt;=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Xt,Yt?&quot;xa&quot;:&quot;ya&quot;,l),z(Xt,Yt,l._invScaleX,l._invScaleY));if(e.target&amp;&amp;e.target.tagName){var Zt=m.getComponentMethod(&quot;annotations&quot;,&quot;hasClickToShow&quot;)(t,It);f(n.select(e.target),Zt?&quot;pointer&quot;:&quot;&quot;)}if(!e.target||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n&gt;=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,Pt))return;Pt&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:Pt});t.emit(&quot;plotly_hover&quot;,{event:e,points:t._hoverdata,xaxes:b,yaxes:_,xvals:B,yvals:V})}(t,e,r,a)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=e.gd,a=j(i),o=U(i),s=I(t.map((function(t){var r=t._x0||t.x0||t.x||0,n=t._x1||t.x1||t.x||0,s=t._y0||t.y0||t.y||0,l=t._y1||t.y1||t.y||0,c=t.eventData;if(c){var u=Math.min(r,n),f=Math.max(r,n),h=Math.min(s,l),d=Math.max(s,l),g=t.trace;if(m.traceIs(g,&quot;gl3d&quot;)){var v=i._fullLayout[g.scene]._scene.container,y=v.offsetLeft,x=v.offsetTop;u+=y,f+=y,h+=x,d+=x}c.bbox={x0:u+o,x1:f+o,y0:h+a,y1:d+a},e.inOut_bbox&amp;&amp;e.inOut_bbox.push(c.bbox)}else c=!1;return{color:t.color||p.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:&quot;&quot;},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,hovertemplateLabels:t.hovertemplateLabels||!1,eventData:c}})),{gd:i,hovermode:&quot;closest&quot;,rotateLabels:!1,bgColor:e.bgColor||p.background,container:n.select(e.container),outerContainer:e.outerContainer||e.container}),l=0,c=0;return s.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-5&lt;l?l-n+5:0,l=n+t.by+t.offset,r===e.anchorIndex&amp;&amp;(c=t.offset)})).each((function(t){t.offset-=c})),z(s,!1,i._fullLayout._invScaleX,i._fullLayout._invScaleY),r?s:s.node()};var P=/&lt;extra&gt;([\s\S]*)&lt;\/extra&gt;/;function I(t,e){var r=e.gd,i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,d=e.container,g=e.outerContainer,w=e.commonLabelOpts||{},T=e.fontFamily||y.HOVERFONT,k=e.fontSize||y.HOVERFONTSIZE,A=t[0],E=A.xa,L=A.ya,P=a.charAt(0),I=A[P+&quot;Label&quot;],z=g.getBoundingClientRect(),D=z.top,R=z.width,F=z.height,B=void 0!==I&amp;&amp;A.distance&lt;=e.hoverdistance&amp;&amp;(&quot;x&quot;===a||&quot;y&quot;===a);if(B){var N,j,U=!0;for(N=0;N&lt;t.length;N++)if(U&amp;&amp;void 0===t[N].zLabel&amp;&amp;(U=!1),j=t[N].hoverinfo||t[N].trace.hoverinfo){var V=Array.isArray(j)?j:j.split(&quot;+&quot;);if(-1===V.indexOf(&quot;all&quot;)&amp;&amp;-1===V.indexOf(a)){B=!1;break}}U&amp;&amp;(B=!1)}var q=d.selectAll(&quot;g.axistext&quot;).data(B?[0]:[]);if(q.enter().append(&quot;g&quot;).classed(&quot;axistext&quot;,!0),q.exit().remove(),q.each((function(){var t=n.select(this),e=o.ensureSingle(t,&quot;path&quot;,&quot;&quot;,(function(t){t.style({&quot;stroke-width&quot;:&quot;1px&quot;})})),l=o.ensureSingle(t,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=w.bgcolor||p.defaultLine,f=w.bordercolor||p.contrast(c),d=p.contrast(c),g={family:w.font.family||T,size:w.font.size||k,color:w.font.color||d};e.style({fill:c,stroke:f}),l.text(I).call(h.font,g).call(u.positionText,0,0).call(u.convertToTspans,r),t.attr(&quot;transform&quot;,&quot;&quot;);var m,v,y=l.node().getBoundingClientRect();if(&quot;x&quot;===a){var x=&quot;top&quot;===E.side?&quot;-&quot;:&quot;&quot;;l.attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(u.positionText,0,&quot;top&quot;===E.side?D-y.bottom-M-S:D-y.top+M+S),m=E._offset+(A.x0+A.x1)/2,v=L._offset+(&quot;top&quot;===E.side?0:L._length);var b=y.width/2+S;m&lt;b?(m=b,e.attr(&quot;d&quot;,&quot;M-&quot;+(b-M)+&quot;,0L-&quot;+(b-2*M)+&quot;,&quot;+x+M+&quot;H&quot;+(S+y.width/2)+&quot;v&quot;+x+(2*S+y.height)+&quot;H-&quot;+b+&quot;V&quot;+x+M+&quot;Z&quot;)):m&gt;i.width-b?(m=i.width-b,e.attr(&quot;d&quot;,&quot;M&quot;+(b-M)+&quot;,0L&quot;+b+&quot;,&quot;+x+M+&quot;v&quot;+x+(2*S+y.height)+&quot;H-&quot;+b+&quot;V&quot;+x+M+&quot;H&quot;+(b-2*M)+&quot;Z&quot;)):e.attr(&quot;d&quot;,&quot;M0,0L&quot;+M+&quot;,&quot;+x+M+&quot;H&quot;+(S+y.width/2)+&quot;v&quot;+x+(2*S+y.height)+&quot;H-&quot;+(S+y.width/2)+&quot;V&quot;+x+M+&quot;H-&quot;+M+&quot;Z&quot;)}else{var _,C,P;&quot;right&quot;===L.side?(_=&quot;start&quot;,C=1,P=&quot;&quot;,m=E._offset+E._length):(_=&quot;end&quot;,C=-1,P=&quot;-&quot;,m=E._offset),v=L._offset+(A.y0+A.y1)/2,l.attr(&quot;text-anchor&quot;,_),e.attr(&quot;d&quot;,&quot;M0,0L&quot;+P+M+&quot;,&quot;+M+&quot;V&quot;+(S+y.height/2)+&quot;h&quot;+P+(2*S+y.width)+&quot;V-&quot;+(S+y.height/2)+&quot;H&quot;+P+M+&quot;V-&quot;+M+&quot;Z&quot;);var O,z=y.height/2,R=D-y.top-z,F=&quot;clip&quot;+i._uid+&quot;commonlabel&quot;+L._id;if(m&lt;y.width+2*S+M){O=&quot;M-&quot;+(M+S)+&quot;-&quot;+z+&quot;h-&quot;+(y.width-S)+&quot;V&quot;+z+&quot;h&quot;+(y.width-S)+&quot;Z&quot;;var B=y.width-m+S;u.positionText(l,B,R),&quot;end&quot;===_&amp;&amp;l.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this),e=h.tester.append(&quot;text&quot;).text(t.text()).call(h.font,g),r=e.node().getBoundingClientRect();Math.round(r.width)&lt;Math.round(y.width)&amp;&amp;t.attr(&quot;x&quot;,B-r.width),e.remove()}))}else u.positionText(l,C*(S+M),R),O=null;var N=i._topclips.selectAll(&quot;#&quot;+F).data(O?[0]:[]);N.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,F).append(&quot;path&quot;),N.exit().remove(),N.select(&quot;path&quot;).attr(&quot;d&quot;,O),h.setClipUrl(l,O?F:null,r)}t.attr(&quot;transform&quot;,s(m,v))})),v.isUnifiedHover(a)){if(d.selectAll(&quot;g.hovertext&quot;).remove(),0===t.length)return;var H=i.hoverlabel,G=H.font,Y={showlegend:!0,legend:{title:{text:I,font:G},font:G,bgcolor:H.bgcolor,bordercolor:H.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:&quot;v&quot;}},W={};x(Y,W,r._fullData);var X=W.legend;X.entries=[];for(var Z=0;Z&lt;t.length;Z++){var J=O(t[Z],!0,a,i,I),K=J[0],Q=J[1],$=t[Z];$.name=Q,$.text=&quot;&quot;!==Q?Q+&quot; : &quot;+K:K;var tt=$.cd[$.index];tt&amp;&amp;(tt.mc&amp;&amp;($.mc=tt.mc),tt.mcc&amp;&amp;($.mc=tt.mcc),tt.mlc&amp;&amp;($.mlc=tt.mlc),tt.mlcc&amp;&amp;($.mlc=tt.mlcc),tt.mlw&amp;&amp;($.mlw=tt.mlw),tt.mrc&amp;&amp;($.mrc=tt.mrc),tt.dir&amp;&amp;($.dir=tt.dir)),$._distinct=!0,X.entries.push([$])}X.entries.sort((function(t,e){return t[0].trace.index-e[0].trace.index})),X.layer=d,X._inHover=!0,X._groupTitleFont=G,b(r,X);var et,rt,nt,it,at=d.select(&quot;g.legend&quot;),ot=at.node().getBoundingClientRect(),st=ot.width+2*S,lt=ot.height+2*S,ct=t[0],ut=(ct.x0+ct.x1)/2,ft=(ct.y0+ct.y1)/2,ht=!(m.traceIs(ct.trace,&quot;bar-like&quot;)||m.traceIs(ct.trace,&quot;box-violin&quot;));&quot;y&quot;===P?ht?(rt=ft-S,et=ft+S):(rt=Math.min.apply(null,t.map((function(t){return Math.min(t.y0,t.y1)}))),et=Math.max.apply(null,t.map((function(t){return Math.max(t.y0,t.y1)})))):rt=et=o.mean(t.map((function(t){return(t.y0+t.y1)/2})))-lt/2,&quot;x&quot;===P?ht?(nt=ut+S,it=ut-S):(nt=Math.max.apply(null,t.map((function(t){return Math.max(t.x0,t.x1)}))),it=Math.min.apply(null,t.map((function(t){return Math.min(t.x0,t.x1)})))):nt=it=o.mean(t.map((function(t){return(t.x0+t.x1)/2})))-st/2;var pt,dt,gt=E._offset,mt=L._offset;return it+=gt-st,rt+=mt-lt,pt=(nt+=gt)+st&lt;R&amp;&amp;nt&gt;=0?nt:it+st&lt;R&amp;&amp;it&gt;=0?it:gt+st&lt;R?gt:nt-ut&lt;ut-it+st?R-st:0,pt+=S,dt=(et+=mt)+lt&lt;F&amp;&amp;et&gt;=0?et:rt+lt&lt;F&amp;&amp;rt&gt;=0?rt:mt+lt&lt;F?mt:et-ft&lt;ft-rt+lt?F-lt:0,dt+=S,at.attr(&quot;transform&quot;,s(pt-1,dt-1)),at}var vt=d.selectAll(&quot;g.hovertext&quot;).data(t,(function(t){return C(t)}));return vt.enter().append(&quot;g&quot;).classed(&quot;hovertext&quot;,!0).each((function(){var t=n.select(this);t.append(&quot;rect&quot;).call(p.fill,p.addOpacity(f,.8)),t.append(&quot;text&quot;).classed(&quot;name&quot;,!0),t.append(&quot;path&quot;).style(&quot;stroke-width&quot;,&quot;1px&quot;),t.append(&quot;text&quot;).classed(&quot;nums&quot;,!0).call(h.font,T,k)})),vt.exit().remove(),vt.each((function(t){var e=n.select(this).attr(&quot;transform&quot;,&quot;&quot;),o=t.color;Array.isArray(o)&amp;&amp;(o=o[t.eventData[0].pointNumber]);var d=t.bgcolor||o,g=p.combine(p.opacity(d)?d:p.defaultLine,f),m=p.combine(p.opacity(o)?o:p.defaultLine,f),v=t.borderColor||p.contrast(g),y=O(t,B,a,i,I,e),x=y[0],b=y[1],w=e.select(&quot;text.nums&quot;).call(h.font,t.fontFamily||T,t.fontSize||k,t.fontColor||v).text(x).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r),A=e.select(&quot;text.name&quot;),E=0,L=0;if(b&amp;&amp;b!==x){A.call(h.font,t.fontFamily||T,t.fontSize||k,m).text(b).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r);var C=A.node().getBoundingClientRect();E=C.width+2*S,L=C.height+2*S}else A.remove(),e.select(&quot;rect&quot;).remove();e.select(&quot;path&quot;).style({fill:g,stroke:v});var P,z,N=w.node().getBoundingClientRect(),j=t.xa._offset+(t.x0+t.x1)/2,U=t.ya._offset+(t.y0+t.y1)/2,V=Math.abs(t.x1-t.x0),q=Math.abs(t.y1-t.y0),H=N.width+M+S+E;if(t.ty0=D-N.top,t.bx=N.width+2*S,t.by=Math.max(N.height+2*S,L),t.anchor=&quot;start&quot;,t.txwidth=N.width,t.tx2width=E,t.offset=0,c)t.pos=j,P=U+q/2+H&lt;=F,z=U-q/2-H&gt;=0,&quot;top&quot;!==t.idealAlign&amp;&amp;P||!z?P?(U+=q/2,t.anchor=&quot;start&quot;):t.anchor=&quot;middle&quot;:(U-=q/2,t.anchor=&quot;end&quot;);else if(t.pos=U,P=j+V/2+H&lt;=R,z=j-V/2-H&gt;=0,&quot;left&quot;!==t.idealAlign&amp;&amp;P||!z)if(P)j+=V/2,t.anchor=&quot;start&quot;;else{t.anchor=&quot;middle&quot;;var G=H/2,Y=j+G-R,W=j-G;Y&gt;0&amp;&amp;(j-=Y),W&lt;0&amp;&amp;(j+=-W)}else j-=V/2,t.anchor=&quot;end&quot;;w.attr(&quot;text-anchor&quot;,t.anchor),E&amp;&amp;A.attr(&quot;text-anchor&quot;,t.anchor),e.attr(&quot;transform&quot;,s(j,U)+(c?l(_):&quot;&quot;))})),vt}function O(t,e,r,n,i,a){var s=&quot;&quot;,l=&quot;&quot;;void 0!==t.nameOverride&amp;&amp;(t.name=t.nameOverride),t.name&amp;&amp;(t.trace._meta&amp;&amp;(t.name=o.templateString(t.name,t.trace._meta)),s=B(t.name,t.nameLength));var c=r.charAt(0),u=&quot;x&quot;===c?&quot;y&quot;:&quot;x&quot;;void 0!==t.zLabel?(void 0!==t.xLabel&amp;&amp;(l+=&quot;x: &quot;+t.xLabel+&quot;&lt;br&gt;&quot;),void 0!==t.yLabel&amp;&amp;(l+=&quot;y: &quot;+t.yLabel+&quot;&lt;br&gt;&quot;),&quot;choropleth&quot;!==t.trace.type&amp;&amp;&quot;choroplethmapbox&quot;!==t.trace.type&amp;&amp;(l+=(l?&quot;z: &quot;:&quot;&quot;)+t.zLabel)):e&amp;&amp;t[c+&quot;Label&quot;]===i?l=t[u+&quot;Label&quot;]||&quot;&quot;:void 0===t.xLabel?void 0!==t.yLabel&amp;&amp;&quot;scattercarpet&quot;!==t.trace.type&amp;&amp;(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:&quot;(&quot;+t.xLabel+&quot;, &quot;+t.yLabel+&quot;)&quot;,!t.text&amp;&amp;0!==t.text||Array.isArray(t.text)||(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.text),void 0!==t.extraText&amp;&amp;(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.extraText),a&amp;&amp;&quot;&quot;===l&amp;&amp;!t.hovertemplate&amp;&amp;(&quot;&quot;===s&amp;&amp;a.remove(),l=s);var f=t.hovertemplate||!1;if(f){var h=t.hovertemplateLabels||t;t[c+&quot;Label&quot;]!==i&amp;&amp;(h[c+&quot;other&quot;]=h[c+&quot;Val&quot;],h[c+&quot;otherLabel&quot;]=h[c+&quot;Label&quot;]),l=(l=o.hovertemplateString(f,h,n._d3locale,t.eventData[0]||{},t.trace._meta)).replace(P,(function(e,r){return s=B(r,t.nameLength),&quot;&quot;}))}return[l,s]}function z(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select(&quot;text.nums&quot;),s=t.anchor,l=&quot;end&quot;===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(M+S),p=f+c*(t.txwidth+S),d=0,g=t.offset,m=&quot;middle&quot;===s;m&amp;&amp;(f-=t.tx2width/2,p+=t.txwidth/2+S),e&amp;&amp;(g*=-A,d=t.offset*k),r.select(&quot;path&quot;).attr(&quot;d&quot;,m?&quot;M-&quot;+a(t.bx/2+t.tx2width/2)+&quot;,&quot;+o(g-t.by/2)+&quot;h&quot;+a(t.bx)+&quot;v&quot;+o(t.by)+&quot;h-&quot;+a(t.bx)+&quot;Z&quot;:&quot;M0,0L&quot;+a(l*M+d)+&quot;,&quot;+o(M+g)+&quot;v&quot;+o(t.by/2-M)+&quot;h&quot;+a(l*t.bx)+&quot;v-&quot;+o(t.by)+&quot;H&quot;+a(l*M+d)+&quot;V&quot;+o(g-M)+&quot;Z&quot;);var v=d+f,y=g+t.ty0-t.by/2+S,x=t.textAlign||&quot;auto&quot;;&quot;auto&quot;!==x&amp;&amp;(&quot;left&quot;===x&amp;&amp;&quot;start&quot;!==s?(i.attr(&quot;text-anchor&quot;,&quot;start&quot;),v=m?-t.bx/2-t.tx2width/2+S:-t.bx-S):&quot;right&quot;===x&amp;&amp;&quot;end&quot;!==s&amp;&amp;(i.attr(&quot;text-anchor&quot;,&quot;end&quot;),v=m?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&amp;&amp;(r.select(&quot;text.name&quot;).call(u.positionText,a(p+c*S+d),o(g+t.ty0-t.by/2+S)),r.select(&quot;rect&quot;).call(h.setRect,a(p+(c-1)*t.tx2width/2+d),o(g-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function D(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&amp;&amp;0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,&quot;&quot;,e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&amp;&amp;(t[e]=i)}if(u(&quot;hoverinfo&quot;,&quot;hi&quot;,&quot;hoverinfo&quot;),u(&quot;bgcolor&quot;,&quot;hbg&quot;,&quot;hoverlabel.bgcolor&quot;),u(&quot;borderColor&quot;,&quot;hbc&quot;,&quot;hoverlabel.bordercolor&quot;),u(&quot;fontFamily&quot;,&quot;htf&quot;,&quot;hoverlabel.font.family&quot;),u(&quot;fontSize&quot;,&quot;hts&quot;,&quot;hoverlabel.font.size&quot;),u(&quot;fontColor&quot;,&quot;htc&quot;,&quot;hoverlabel.font.color&quot;),u(&quot;nameLength&quot;,&quot;hnl&quot;,&quot;hoverlabel.namelength&quot;),u(&quot;textAlign&quot;,&quot;hta&quot;,&quot;hoverlabel.align&quot;),t.posref=&quot;y&quot;===e||&quot;closest&quot;===e&amp;&amp;&quot;h&quot;===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&amp;&amp;(t.xLabel=&quot;xLabel&quot;in t?t.xLabel:g.hoverLabelText(t.xa,t.xLabelVal,n.xhoverformat),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&amp;&amp;(t.yLabel=&quot;yLabel&quot;in t?t.yLabel:g.hoverLabelText(t.ya,t.yLabelVal,n.yhoverformat),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&amp;&amp;void 0===t.zLabel&amp;&amp;(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||&quot;log&quot;===t.xa.type&amp;&amp;t.xerr&lt;=0)){var f=g.tickText(t.xa,t.xa.c2l(t.xerr),&quot;hover&quot;).text;void 0!==t.xerrneg?t.xLabel+=&quot; +&quot;+f+&quot; / -&quot;+g.tickText(t.xa,t.xa.c2l(t.xerrneg),&quot;hover&quot;).text:t.xLabel+=&quot; \xb1 &quot;+f,&quot;x&quot;===e&amp;&amp;(t.distance+=1)}if(!(isNaN(t.yerr)||&quot;log&quot;===t.ya.type&amp;&amp;t.yerr&lt;=0)){var h=g.tickText(t.ya,t.ya.c2l(t.yerr),&quot;hover&quot;).text;void 0!==t.yerrneg?t.yLabel+=&quot; +&quot;+h+&quot; / -&quot;+g.tickText(t.ya,t.ya.c2l(t.yerrneg),&quot;hover&quot;).text:t.yLabel+=&quot; \xb1 &quot;+h,&quot;y&quot;===e&amp;&amp;(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&amp;&amp;&quot;all&quot;!==p&amp;&amp;(-1===(p=Array.isArray(p)?p:p.split(&quot;+&quot;)).indexOf(&quot;x&quot;)&amp;&amp;(t.xLabel=void 0),-1===p.indexOf(&quot;y&quot;)&amp;&amp;(t.yLabel=void 0),-1===p.indexOf(&quot;z&quot;)&amp;&amp;(t.zLabel=void 0),-1===p.indexOf(&quot;text&quot;)&amp;&amp;(t.text=void 0),-1===p.indexOf(&quot;name&quot;)&amp;&amp;(t.name=void 0)),t}function R(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(&quot;.spikeline&quot;).remove(),f||u){var d=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=e.hLinePoint;n=y&amp;&amp;y.xa,&quot;cursor&quot;===(i=y&amp;&amp;y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,d)&lt;1.5?p.contrast(d):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,A=g.getPxPosition(t,i);if(-1!==w.indexOf(&quot;toaxis&quot;)||-1!==w.indexOf(&quot;across&quot;)){if(-1!==w.indexOf(&quot;toaxis&quot;)&amp;&amp;(x=A,b=m),-1!==w.indexOf(&quot;across&quot;)){var M=i._counterDomainMin,S=i._counterDomainMax;&quot;free&quot;===i.anchor&amp;&amp;(M=Math.min(M,i.position),S=Math.max(S,i.position)),x=l.l+M*l.w,b=l.l+S*l.w}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T,stroke:k,&quot;stroke-dasharray&quot;:h.dashStyle(i.spikedash,T)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==w.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:A+(&quot;right&quot;!==i.side?T:-T),cy:v,r:T,fill:k}).classed(&quot;spikeline&quot;,!0)}if(f){var E,L,C=e.vLinePoint;n=C&amp;&amp;C.xa,i=C&amp;&amp;C.ya,&quot;cursor&quot;===n.spikesnap?(E=c.pointerX,L=c.pointerY):(E=n._offset+C.x,L=i._offset+C.y);var P,I,O=a.readability(C.color,d)&lt;1.5?p.contrast(d):C.color,z=n.spikemode,D=n.spikethickness,R=n.spikecolor||O,F=g.getPxPosition(t,n);if(-1!==z.indexOf(&quot;toaxis&quot;)||-1!==z.indexOf(&quot;across&quot;)){if(-1!==z.indexOf(&quot;toaxis&quot;)&amp;&amp;(P=F,I=L),-1!==z.indexOf(&quot;across&quot;)){var B=n._counterDomainMin,N=n._counterDomainMax;&quot;free&quot;===n.anchor&amp;&amp;(B=Math.min(B,n.position),N=Math.max(N,n.position)),P=l.t+(1-N)*l.h,I=l.t+(1-B)*l.h}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:P,y2:I,&quot;stroke-width&quot;:D,stroke:R,&quot;stroke-dasharray&quot;:h.dashStyle(n.spikedash,D)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:P,y2:I,&quot;stroke-width&quot;:D+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==z.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:E,cy:F-(&quot;top&quot;!==n.side?D:-D),r:D,fill:R}).classed(&quot;spikeline&quot;,!0)}}}function F(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function B(t,e){return u.plainText(t||&quot;&quot;,{len:e,allowedTags:[&quot;br&quot;,&quot;sub&quot;,&quot;sup&quot;,&quot;b&quot;,&quot;i&quot;,&quot;em&quot;]})}function N(t,e,r){var n=e[t+&quot;a&quot;],i=e[t+&quot;Val&quot;],a=e.cd[0];if(&quot;category&quot;===n.type)i=n._categoriesMap[i];else if(&quot;date&quot;===n.type){var o=e.trace[t+&quot;periodalignment&quot;];if(o){var s=e.cd[e.index],l=s[t+&quot;Start&quot;];void 0===l&amp;&amp;(l=s[t]);var c=s[t+&quot;End&quot;];void 0===c&amp;&amp;(c=s[t]);var u=c-l;&quot;end&quot;===o?i+=u:&quot;middle&quot;===o&amp;&amp;(i+=u/2)}i=n.d2c(i)}return a&amp;&amp;a.t&amp;&amp;a.t.posLetter===n._id&amp;&amp;(&quot;group&quot;!==r.boxmode&amp;&amp;&quot;group&quot;!==r.violinmode||(i+=a.t.dPos)),i}function j(t){return t.offsetTop+t.clientTop}function U(t){return t.offsetLeft+t.clientLeft}},{&quot;../../lib&quot;:803,&quot;../../lib/events&quot;:792,&quot;../../lib/override_cursor&quot;:814,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;../legend/defaults&quot;:718,&quot;../legend/draw&quot;:719,&quot;./constants&quot;:700,&quot;./helpers&quot;:702,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],704:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;./helpers&quot;).isUnifiedHover;e.exports=function(t,e,r,o){function s(t){o.font[t]||(o.font[t]=e.legend?e.legend.font[t]:e.font[t])}o=o||{},e&amp;&amp;a(e.hovermode)&amp;&amp;(o.font||(o.font={}),s(&quot;size&quot;),s(&quot;family&quot;),s(&quot;color&quot;),e.legend?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r(&quot;hoverlabel.bgcolor&quot;,o.bgcolor),r(&quot;hoverlabel.bordercolor&quot;,o.bordercolor),r(&quot;hoverlabel.namelength&quot;,o.namelength),n.coerceFont(r,&quot;hoverlabel.font&quot;,o.font),r(&quot;hoverlabel.align&quot;,o.align)}},{&quot;../../lib&quot;:803,&quot;../color&quot;:666,&quot;./helpers&quot;:702}],705:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}return r(&quot;clickmode&quot;),r(&quot;hovermode&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:707}],706:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../dragelement&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./hover&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;fx&quot;,constants:t(&quot;./constants&quot;),schema:{layout:s},attributes:t(&quot;./attributes&quot;),layoutAttributes:s,supplyLayoutGlobalDefaults:t(&quot;./layout_global_defaults&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,&quot;hoverlabel.&quot;+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,&quot;hoverinfo&quot;,(function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(&quot;g.hovertext&quot;).remove(),e.selectAll(&quot;.spikeline&quot;).remove()},click:t(&quot;./click&quot;)}},{&quot;../../lib&quot;:803,&quot;../dragelement&quot;:685,&quot;./attributes&quot;:697,&quot;./calc&quot;:698,&quot;./click&quot;:699,&quot;./constants&quot;:700,&quot;./defaults&quot;:701,&quot;./helpers&quot;:702,&quot;./hover&quot;:703,&quot;./layout_attributes&quot;:707,&quot;./layout_defaults&quot;:708,&quot;./layout_global_defaults&quot;:709,&quot;@plotly/d3&quot;:58}],707:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../plots/font_attributes&quot;)({editType:&quot;none&quot;});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:&quot;flaglist&quot;,flags:[&quot;event&quot;,&quot;select&quot;],dflt:&quot;event&quot;,editType:&quot;plot&quot;,extras:[&quot;none&quot;]},dragmode:{valType:&quot;enumerated&quot;,values:[&quot;zoom&quot;,&quot;pan&quot;,&quot;select&quot;,&quot;lasso&quot;,&quot;drawclosedpath&quot;,&quot;drawopenpath&quot;,&quot;drawline&quot;,&quot;drawrect&quot;,&quot;drawcircle&quot;,&quot;orbit&quot;,&quot;turntable&quot;,!1],dflt:&quot;zoom&quot;,editType:&quot;modebar&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,!1,&quot;x unified&quot;,&quot;y unified&quot;],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},hoverdistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},spikedistance:{valType:&quot;integer&quot;,min:-1,dflt:-1,editType:&quot;none&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},font:i,align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;none&quot;},namelength:{valType:&quot;integer&quot;,min:-1,dflt:15,editType:&quot;none&quot;},editType:&quot;none&quot;},selectdirection:{valType:&quot;enumerated&quot;,values:[&quot;h&quot;,&quot;v&quot;,&quot;d&quot;,&quot;any&quot;],dflt:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../../plots/font_attributes&quot;:883,&quot;./constants&quot;:700}],708:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;./hovermode_defaults&quot;),o=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}a(t,e)&amp;&amp;(r(&quot;hoverdistance&quot;),r(&quot;spikedistance&quot;)),&quot;select&quot;===r(&quot;dragmode&quot;)&amp;&amp;r(&quot;selectdirection&quot;);var s=e._has(&quot;mapbox&quot;),l=e._has(&quot;geo&quot;),c=e._basePlotModules.length;&quot;zoom&quot;===e.dragmode&amp;&amp;((s||l)&amp;&amp;1===c||s&amp;&amp;l&amp;&amp;2===c)&amp;&amp;(e.dragmode=&quot;pan&quot;),o(t,e,r)}},{&quot;../../lib&quot;:803,&quot;./hoverlabel_defaults&quot;:704,&quot;./hovermode_defaults&quot;:705,&quot;./layout_attributes&quot;:707}],709:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./hoverlabel_defaults&quot;),a=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){i(t,e,(function(r,i){return n.coerce(t,e,a,r,i)}))}},{&quot;../../lib&quot;:803,&quot;./hoverlabel_defaults&quot;:704,&quot;./layout_attributes&quot;:707}],710:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/cartesian/constants&quot;).idRegex,s=t(&quot;../../plot_api/plot_template&quot;),l={rows:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},roworder:{valType:&quot;enumerated&quot;,values:[&quot;top to bottom&quot;,&quot;bottom to top&quot;],dflt:&quot;top to bottom&quot;,editType:&quot;plot&quot;},columns:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},subplots:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:2,items:{valType:&quot;enumerated&quot;,values:[i(&quot;xy&quot;).toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},xaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.x.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},yaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.y.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},pattern:{valType:&quot;enumerated&quot;,values:[&quot;independent&quot;,&quot;coupled&quot;],dflt:&quot;coupled&quot;,editType:&quot;plot&quot;},xgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},domain:a({name:&quot;grid&quot;,editType:&quot;plot&quot;,noGridCell:!0},{}),xside:{valType:&quot;enumerated&quot;,values:[&quot;bottom&quot;,&quot;bottom plot&quot;,&quot;top plot&quot;,&quot;top&quot;],dflt:&quot;bottom plot&quot;,editType:&quot;plot&quot;},yside:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;left plot&quot;,&quot;right plot&quot;,&quot;right&quot;],dflt:&quot;left plot&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;};function c(t,e,r){var n=e[r+&quot;axes&quot;],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+&quot;gap&quot;,r),s=e(&quot;domain.&quot;+t);e(t+&quot;side&quot;,n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h&lt;i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&amp;&amp;void 0===n[r]?(o[t]=r,n[r]=t):o[t]=&quot;&quot;}if(Array.isArray(t))for(a=0;a&lt;r;a++)s(a,t[a]);else for(s(0,i),a=1;a&lt;r;a++)s(a,i+(a+1));return o}e.exports={moduleType:&quot;component&quot;,name:&quot;grid&quot;,schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,&quot;x&quot;),a=c(e,r,&quot;y&quot;);if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&amp;&amp;Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),g=p&amp;&amp;i!==r.xaxes&amp;&amp;d&amp;&amp;a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&amp;&amp;(o=a.length),p&amp;&amp;(f=i.length));var m=s.newContainer(e,&quot;grid&quot;),v=k(&quot;rows&quot;,o),y=k(&quot;columns&quot;,f);if(v*y&gt;1){if(!h&amp;&amp;!p&amp;&amp;!d)&quot;independent&quot;===k(&quot;pattern&quot;)&amp;&amp;(h=!0);m._hasSubplotGrid=h;var x,b,_=&quot;top to bottom&quot;===k(&quot;roworder&quot;),w=h?.2:.1,T=h?.3:.1;g&amp;&amp;e._splomGridDflt&amp;&amp;(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),m._domains={x:u(&quot;x&quot;,k,w,x,y),y:u(&quot;y&quot;,k,T,b,v,_)}}else delete e.grid}function k(t,e){return n.coerce(r,m,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&amp;&amp;r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,g=r.rows,m=r.columns,v=&quot;independent&quot;===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;n&lt;g;n++){var _=l[n]=new Array(m),w=x[n]||[];for(i=0;i&lt;m;i++)if(v?(s=1===b?&quot;xy&quot;:&quot;x&quot;+b+&quot;y&quot;+b,b++):s=w[i],_[i]=&quot;&quot;,-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(&quot;y&quot;),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&amp;&amp;y[a]!==i||void 0!==y[o]&amp;&amp;y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var T=c(e,h,&quot;x&quot;),k=c(e,h,&quot;y&quot;);r.xaxes=f(T,p.xaxis,m,y,&quot;x&quot;),r.yaxes=f(k,p.yaxis,g,y,&quot;y&quot;)}var A=r._anchors={},M=&quot;top to bottom&quot;===r.roworder;for(var S in y){var E,L,C,P=S.charAt(0),I=r[P+&quot;side&quot;];if(I.length&lt;8)A[S]=&quot;free&quot;;else if(&quot;x&quot;===P){if(&quot;t&quot;===I.charAt(0)===M?(E=0,L=1,C=g):(E=g-1,L=-1,C=-1),d){var O=y[S];for(n=E;n!==C;n+=L)if((s=l[n][O])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(0,u)===S)){A[S]=s.slice(u);break}}else for(n=E;n!==C;n+=L)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){A[S]=o;break}}else if(&quot;l&quot;===I.charAt(0)?(E=0,L=1,C=m):(E=m-1,L=-1,C=-1),d){var z=y[S];for(n=E;n!==C;n+=L)if((s=l[z][n])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(u)===S)){A[S]=s.slice(0,u);break}}else for(n=E;n!==C;n+=L)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){A[S]=a;break}}}}}},{&quot;../../lib&quot;:803,&quot;../../lib/regex&quot;:820,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/constants&quot;:861,&quot;../../plots/domain&quot;:882}],711:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/constants&quot;),i=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=i(&quot;image&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;arraydraw&quot;},source:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},sizex:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizey:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizing:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;contain&quot;,&quot;stretch&quot;],dflt:&quot;contain&quot;,editType:&quot;arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},x:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},y:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;arraydraw&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.x.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.y.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:772,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/constants&quot;:861}],712:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h&lt;u.length;h++)if(c=&quot;images[&quot;+h+&quot;].&quot;,(l=u[h])[f+&quot;ref&quot;]===e._id){var p=l[f],d=l[&quot;size&quot;+f],g=null,m=null;if(o){g=i(p,e.range);var v=d/Math.pow(10,g)/2;m=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=(g=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(g)?n(m)||(m=null):(g=null,m=null),a(c+f,g),a(c+&quot;size&quot;+f,m)}}},{&quot;../../lib/to_log_range&quot;:831,&quot;fast-isnumeric&quot;:249}],713:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(&quot;source&quot;);if(!a(&quot;visible&quot;,!!s))return e;a(&quot;layer&quot;),a(&quot;xanchor&quot;),a(&quot;yanchor&quot;),a(&quot;sizex&quot;),a(&quot;sizey&quot;),a(&quot;sizing&quot;),a(&quot;opacity&quot;);for(var l={_fullLayout:r},c=[&quot;x&quot;,&quot;y&quot;],u=0;u&lt;2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,&quot;paper&quot;,void 0);if(&quot;paper&quot;!==h)i.getFromId(l,h)._imgIndices.push(e._index);i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:&quot;images&quot;,handleItemDefaults:s})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/axes&quot;:854,&quot;./attributes&quot;:711}],714:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../drawing&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/axis_ids&quot;),s=t(&quot;../../constants/xmlns_namespaces&quot;);e.exports=function(t){var e,r,l=t._fullLayout,c=[],u={},f=[];for(r=0;r&lt;l.images.length;r++){var h=l.images[r];if(h.visible)if(&quot;below&quot;===h.layer&amp;&amp;&quot;paper&quot;!==h.xref&amp;&amp;&quot;paper&quot;!==h.yref){e=o.ref2id(h.xref)+o.ref2id(h.yref);var p=l._plots[e];if(!p){f.push(h);continue}p.mainplot&amp;&amp;(e=p.mainplot.id),u[e]||(u[e]=[]),u[e].push(h)}else&quot;above&quot;===h.layer?c.push(h):f.push(h)}var d={left:{sizing:&quot;xMin&quot;,offset:0},center:{sizing:&quot;xMid&quot;,offset:-.5},right:{sizing:&quot;xMax&quot;,offset:-1}},g={top:{sizing:&quot;YMin&quot;,offset:0},middle:{sizing:&quot;YMid&quot;,offset:-.5},bottom:{sizing:&quot;YMax&quot;,offset:-1}};function m(e){var r=n.select(this);if(this._imgSrc!==e.source)if(r.attr(&quot;xmlns&quot;,s.svg),e.source&amp;&amp;&quot;data:&quot;===e.source.slice(0,5))r.attr(&quot;xlink:href&quot;,e.source),this._imgSrc=e.source;else{var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(&quot;crossOrigin&quot;,&quot;anonymous&quot;),n.onerror=i,n.onload=function(){var e=document.createElement(&quot;canvas&quot;);e.width=this.width,e.height=this.height,e.getContext(&quot;2d&quot;).drawImage(this,0,0);var n=e.toDataURL(&quot;image/png&quot;);r.attr(&quot;xlink:href&quot;,n),t()},r.on(&quot;error&quot;,i),n.src=e.source,this._imgSrc=e.source}.bind(this));t._promises.push(i)}}function v(e){var r,o,s=n.select(this),c=a.getFromId(t,e.xref),u=a.getFromId(t,e.yref),f=&quot;domain&quot;===a.getRefType(e.xref),h=&quot;domain&quot;===a.getRefType(e.yref),p=l._size;r=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.sizex:Math.abs(c.l2p(e.sizex)-c.l2p(0)):e.sizex*p.w,o=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*e.sizey:Math.abs(u.l2p(e.sizey)-u.l2p(0)):e.sizey*p.h;var m,v,y=r*d[e.xanchor].offset,x=o*g[e.yanchor].offset,b=d[e.xanchor].sizing+g[e.yanchor].sizing;switch(m=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.x+c._offset:c.r2p(e.x)+c._offset:e.x*p.w+p.l,m+=y,v=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*(1-e.y)+u._offset:u.r2p(e.y)+u._offset:p.h-e.y*p.h+p.t,v+=x,e.sizing){case&quot;fill&quot;:b+=&quot; slice&quot;;break;case&quot;stretch&quot;:b=&quot;none&quot;}s.attr({x:m,y:v,width:r,height:o,preserveAspectRatio:b,opacity:e.opacity});var _=(c&amp;&amp;&quot;domain&quot;!==a.getRefType(e.xref)?c._id:&quot;&quot;)+(u&amp;&amp;&quot;domain&quot;!==a.getRefType(e.yref)?u._id:&quot;&quot;);i.setClipUrl(s,_?&quot;clip&quot;+l._uid+_:null,t)}var y=l._imageLowerLayer.selectAll(&quot;image&quot;).data(f),x=l._imageUpperLayer.selectAll(&quot;image&quot;).data(c);y.enter().append(&quot;image&quot;),x.enter().append(&quot;image&quot;),y.exit().remove(),x.exit().remove(),y.each((function(t){m.bind(this)(t),v.bind(this)(t)})),x.each((function(t){m.bind(this)(t),v.bind(this)(t)}));var b=Object.keys(l._plots);for(r=0;r&lt;b.length;r++){e=b[r];var _=l._plots[e];if(_.imagelayer){var w=_.imagelayer.selectAll(&quot;image&quot;).data(u[e]||[]);w.enter().append(&quot;image&quot;),w.exit().remove(),w.each((function(t){m.bind(this)(t),v.bind(this)(t)}))}}}},{&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../drawing&quot;:688,&quot;@plotly/d3&quot;:58}],715:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;images&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;images&quot;),draw:t(&quot;./draw&quot;),convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:867,&quot;./attributes&quot;:711,&quot;./convert_coords&quot;:712,&quot;./defaults&quot;:713,&quot;./draw&quot;:714}],716:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,editType:&quot;legend&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;legend&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;v&quot;,editType:&quot;legend&quot;},traceorder:{valType:&quot;flaglist&quot;,flags:[&quot;reversed&quot;,&quot;grouped&quot;],extras:[&quot;normal&quot;],editType:&quot;legend&quot;},tracegroupgap:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;legend&quot;},itemsizing:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;constant&quot;],dflt:&quot;trace&quot;,editType:&quot;legend&quot;},itemwidth:{valType:&quot;number&quot;,min:30,dflt:30,editType:&quot;legend&quot;},itemclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggle&quot;,editType:&quot;legend&quot;},itemdoubleclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggleothers&quot;,editType:&quot;legend&quot;},groupclick:{valType:&quot;enumerated&quot;,values:[&quot;toggleitem&quot;,&quot;togglegroup&quot;],dflt:&quot;togglegroup&quot;,editType:&quot;legend&quot;},x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;legend&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;legend&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;legend&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;left&quot;,&quot;top left&quot;],editType:&quot;legend&quot;},editType:&quot;legend&quot;},editType:&quot;legend&quot;}},{&quot;../../plots/font_attributes&quot;:883,&quot;../color/attributes&quot;:665}],717:[function(t,e,r){&quot;use strict&quot;;e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:&quot;#808BA4&quot;,scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],718:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../plots/layout_attributes&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r){for(var c=t.legend||{},u=0,f=!1,h=&quot;normal&quot;,p=0;p&lt;r.length;p++){var d=r[p];d.visible&amp;&amp;((d.showlegend||d._dfltShowLegend&amp;&amp;!(d._module&amp;&amp;d._module.attributes&amp;&amp;d._module.attributes.showlegend&amp;&amp;!1===d._module.attributes.showlegend.dflt))&amp;&amp;(u++,d.showlegend&amp;&amp;(f=!0,(n.traceIs(d,&quot;pie-like&quot;)||!0===d._input.showlegend)&amp;&amp;u++)),(n.traceIs(d,&quot;bar&quot;)&amp;&amp;&quot;stack&quot;===e.barmode||-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;].indexOf(d.fill))&amp;&amp;(h=l.isGrouped({traceorder:h})?&quot;grouped+reversed&quot;:&quot;reversed&quot;),void 0!==d.legendgroup&amp;&amp;&quot;&quot;!==d.legendgroup&amp;&amp;(h=l.isReversed({traceorder:h})?&quot;reversed+grouped&quot;:&quot;grouped&quot;))}var g=i.coerce(t,e,s,&quot;showlegend&quot;,f&amp;&amp;u&gt;1);if(!1!==g||c.uirevision){var m=a.newContainer(e,&quot;legend&quot;);if(T(&quot;uirevision&quot;,e.uirevision),!1!==g){T(&quot;bgcolor&quot;,e.paper_bgcolor),T(&quot;bordercolor&quot;),T(&quot;borderwidth&quot;);var v,y,x,b=i.coerceFont(T,&quot;font&quot;,e.font),_=&quot;h&quot;===T(&quot;orientation&quot;);if(_?(v=0,n.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(t.xaxis)?(y=1.1,x=&quot;bottom&quot;):(y=-.1,x=&quot;top&quot;)):(v=1.02,y=1,x=&quot;auto&quot;),T(&quot;traceorder&quot;,h),l.isGrouped(e.legend)&amp;&amp;T(&quot;tracegroupgap&quot;),T(&quot;itemsizing&quot;),T(&quot;itemwidth&quot;),T(&quot;itemclick&quot;),T(&quot;itemdoubleclick&quot;),T(&quot;groupclick&quot;),T(&quot;x&quot;,v),T(&quot;xanchor&quot;),T(&quot;y&quot;,y),T(&quot;yanchor&quot;,x),T(&quot;valign&quot;),i.noneOrAll(c,m,[&quot;x&quot;,&quot;y&quot;]),T(&quot;title.text&quot;)){T(&quot;title.side&quot;,_?&quot;left&quot;:&quot;top&quot;);var w=i.extendFlat({},b,{size:i.bigFont(b.size)});i.coerceFont(T,&quot;title.font&quot;,w)}}}function T(t,e){return i.coerce(c,m,o,t,e)}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/layout_attributes&quot;:908,&quot;../../registry&quot;:931,&quot;./attributes&quot;:716,&quot;./helpers&quot;:722}],719:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib/events&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./handle_click&quot;),p=t(&quot;./constants&quot;),d=t(&quot;../../constants/alignment&quot;),g=d.LINE_SPACING,m=d.FROM_TL,v=d.FROM_BR,y=t(&quot;./get_legend_data&quot;),x=t(&quot;./style&quot;),b=t(&quot;./helpers&quot;);function _(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&amp;&amp;(l.group=a._group),o.traceIs(a,&quot;pie-like&quot;)&amp;&amp;(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,&quot;plotly_legendclick&quot;,l))if(1===n)e._clickTimeout=setTimeout((function(){t._fullLayout&amp;&amp;h(r,t,n)}),t._context.doubleClickDelay);else if(2===n){e._clickTimeout&amp;&amp;clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,&quot;plotly_legenddoubleclick&quot;,l)&amp;&amp;h(r,t,n)}}function w(t,e,r){var n,a,s=t.data()[0][0],l=s.trace,u=o.traceIs(l,&quot;pie-like&quot;),h=!r._inHover&amp;&amp;e._context.edits.legendText&amp;&amp;!u,d=r._maxNameLength;s.groupTitle?(n=s.groupTitle.text,a=s.groupTitle.font):(a=r.font,r.entries?n=s.text:(n=u?s.label:l.name,l._meta&amp;&amp;(n=i.templateString(n,l._meta))));var g=i.ensureSingle(t,&quot;text&quot;,&quot;legendtext&quot;);g.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,a).text(h?T(n,d):n);var m=r.itemwidth+2*p.itemGap;f.positionText(g,m,0),h?g.call(f.makeEditable,{gd:e,text:n}).call(A,t,e,r).on(&quot;edit&quot;,(function(n){this.text(T(n,d)).call(A,t,e,r);var a=s.trace._fullInput||{},c={};if(o.hasTransform(a,&quot;groupby&quot;)){var u=o.getTransformIndices(a,&quot;groupby&quot;),f=u[u.length-1],h=i.keyedContainer(a,&quot;transforms[&quot;+f+&quot;].styles&quot;,&quot;target&quot;,&quot;value.name&quot;);h.set(s.trace._group,n),c=h.constructUpdate()}else c.name=n;return o.call(&quot;_guiRestyle&quot;,e,c,l.index)})):A(g,t,e,r)}function T(t,e){var r=Math.max(4,e);if(t&amp;&amp;t.trim().length&gt;=r/2)return t;for(var n=r-(t=t||&quot;&quot;).length;n&gt;0;n--)t+=&quot; &quot;;return t}function k(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,&quot;rect&quot;,&quot;legendtoggle&quot;,(function(t){e._context.staticPlot||t.style(&quot;cursor&quot;,&quot;pointer&quot;).attr(&quot;pointer-events&quot;,&quot;all&quot;),t.call(u.fill,&quot;rgba(0,0,0,0)&quot;)}));e._context.staticPlot||(s.on(&quot;mousedown&quot;,(function(){(r=(new Date).getTime())-e._legendMouseDownTime&lt;a?o+=1:(o=1,e._legendMouseDownTime=r)})),s.on(&quot;mouseup&quot;,(function(){if(!e._dragged&amp;&amp;!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime&gt;a&amp;&amp;(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})))}function A(t,e,r,n,i){n._inHover&amp;&amp;t.attr(&quot;data-notex&quot;,!0),f.convertToTspans(t,r,(function(){!function(t,e,r,n){var i=t.data()[0][0];if(!r._inHover&amp;&amp;i&amp;&amp;!i.trace.showlegend)return void t.remove();var a=t.select(&quot;g[class*=math-group]&quot;),o=a.node();r||(r=e._fullLayout.legend);var s,l=r.borderwidth;s=1===n?r.title.font:i.groupTitle?i.groupTitle.font:r.font;var u,h,d=s.size*g;if(o){var m=c.bBox(o);u=m.height,h=m.width,1===n?c.setTranslate(a,l,l+.75*u):c.setTranslate(a,0,.25*u)}else{var v=t.select(1===n?&quot;.legendtitletext&quot;:&quot;.legendtext&quot;),y=f.lineCount(v),x=v.node();if(u=d*y,h=x?c.bBox(x).width:0,1===n)&quot;left&quot;===r.title.side&amp;&amp;(h+=2*p.itemGap),f.positionText(v,l+p.titlePad,l+d);else{var b=2*p.itemGap+r.itemwidth;i.groupTitle&amp;&amp;(b=p.itemGap,h-=r.itemwidth),f.positionText(v,b,-d*((y-1)/2-.3))}}1===n?(r._titleWidth=h,r._titleHeight=u):(i.lineHeight=d,i.height=Math.max(u,16)+3,i.width=h)}(e,r,n,i)}))}function M(t){return i.isRightAnchor(t)?&quot;right&quot;:i.isCenterAnchor(t)?&quot;center&quot;:&quot;left&quot;}function S(t){return i.isBottomAnchor(t)?&quot;bottom&quot;:i.isMiddleAnchor(t)?&quot;middle&quot;:&quot;top&quot;}e.exports=function(t,e){return e||(e=t._fullLayout.legend||{}),function(t,e){var r,s,f=t._fullLayout,h=&quot;legend&quot;+f._uid,d=e._inHover;d?(r=e.layer,h+=&quot;-hover&quot;):r=f._infolayer;if(!r)return;t._legendMouseDownTime||(t._legendMouseDownTime=0);if(d){if(!e.entries)return;s=y(e.entries,e)}else{if(!t.calcdata)return;s=f.showlegend&amp;&amp;y(t.calcdata,e)}var g=f.hiddenlabels||[];if(!(d||f.showlegend&amp;&amp;s.length))return r.selectAll(&quot;.legend&quot;).remove(),f._topdefs.select(&quot;#&quot;+h).remove(),a.autoMargin(t,&quot;legend&quot;);var T=i.ensureSingle(r,&quot;g&quot;,&quot;legend&quot;,(function(t){d||t.attr(&quot;pointer-events&quot;,&quot;all&quot;)})),E=i.ensureSingleById(f._topdefs,&quot;clipPath&quot;,h,(function(t){t.append(&quot;rect&quot;)})),L=i.ensureSingle(T,&quot;rect&quot;,&quot;bg&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));L.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;);var C=i.ensureSingle(T,&quot;g&quot;,&quot;scrollbox&quot;),P=e.title;if(e._titleWidth=0,e._titleHeight=0,P.text){var I=i.ensureSingle(C,&quot;text&quot;,&quot;legendtitletext&quot;);I.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,P.font).text(P.text),A(I,C,t,e,1)}else C.selectAll(&quot;.legendtitletext&quot;).remove();var O=i.ensureSingle(T,&quot;rect&quot;,&quot;scrollbar&quot;,(function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll(&quot;g.groups&quot;).data(s);z.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;groups&quot;),z.exit().remove();var D=z.selectAll(&quot;g.traces&quot;).data(i.identity);D.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;traces&quot;),D.exit().remove(),D.style(&quot;opacity&quot;,(function(t){var e=t[0].trace;return o.traceIs(e,&quot;pie-like&quot;)?-1!==g.indexOf(t[0].label)?.5:1:&quot;legendonly&quot;===e.visible?.5:1})).each((function(){n.select(this).call(w,t,e)})).call(x,t,e).each((function(){d||n.select(this).call(k,t)})),i.syncOrAsync([a.previousPromises,function(){return function(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,f=2*u,h=p.itemGap,d=i.itemwidth+2*h,g=2*(u+h),m=S(i),v=i.y&lt;0||0===i.y&amp;&amp;&quot;top&quot;===m,y=i.y&gt;1||1===i.y&amp;&amp;&quot;bottom&quot;===m,x=i.tracegroupgap;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var _=0;i._width=0,i._height=0;var w=function(t){var e=0,r=0,n=t.title.side;n&amp;&amp;(-1!==n.indexOf(&quot;left&quot;)&amp;&amp;(e=t._titleWidth),-1!==n.indexOf(&quot;top&quot;)&amp;&amp;(r=t._titleHeight));return[e,r]}(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,u+w[0],u+w[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),_=d+i._width,i._width+=h+d+f,i._height+=g,l&amp;&amp;(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var T=M(i),k=i.x&lt;0||0===i.x&amp;&amp;&quot;right&quot;===T,A=i.x&gt;1||1===i.x&amp;&amp;&quot;left&quot;===T,E=y||v,L=a.width/2;i._maxWidth=Math.max(k?E&amp;&amp;&quot;left&quot;===T?o.l+o.w:L:A?E&amp;&amp;&quot;right&quot;===T?o.r+o.w:L:o.w,2*d);var C=0,P=0;r.each((function(t){var e=t[0].width+d;C=Math.max(C,e),P+=e})),_=null;var I=0;if(l){var O=0,z=0,D=0;e.each((function(){var t=0,e=0;n.select(this).selectAll(&quot;g.traces&quot;).each((function(r){var n=r[0].height;c.setTranslate(this,w[0],w[1]+u+h+n/2+e),e+=n,t=Math.max(t,d+r[0].width)})),O=Math.max(O,e);var r=t+h;r+u+z&gt;i._maxWidth&amp;&amp;(I=Math.max(I,z),z=0,D+=O+x,O=e),c.setTranslate(this,z,D),z+=r})),i._width=Math.max(I,z)+u,i._height=D+O+g}else{var R=r.size(),F=P+f+(R-1)*h&lt;i._maxWidth,B=0,N=0,j=0,U=0;r.each((function(t){var e=t[0].height,r=d+t[0].width,n=(F?r:C)+h;n+u+N-h&gt;=i._maxWidth&amp;&amp;(I=Math.max(I,U),N=0,j+=B,i._height+=B,B=0),c.setTranslate(this,w[0]+u+N,w[1]+u+j+e/2+h),U=N+r+h,N+=n,B=Math.max(B,e)})),F?(i._width=N+f,i._height=B+g):(i._width=Math.max(I,U)+f,i._height+=B+g)}}i._width=Math.ceil(Math.max(i._width+w[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+w[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var V=t._context.edits,q=V.legendText||V.legendPosition;r.each((function(t){var e=n.select(this).select(&quot;.legendtoggle&quot;),r=t[0].height,i=q?d:_||d+t[0].width;s||(i+=h/2),c.setRect(e,0,-r/2,i,r)}))}(t,z,D,e)},function(){if(d||!function(t){var e=t._fullLayout.legend,r=M(e),n=S(e);return a.autoMargin(t,&quot;legend&quot;,{x:e.x,y:e.y,l:e._width*m[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*m[n]})}(t)){var s,u,g,y,x=f._size,b=e.borderwidth,w=x.l+x.w*e.x-m[M(e)]*e._width,k=x.t+x.h*(1-e.y)-m[S(e)]*e._effHeight;if(!d&amp;&amp;f.margin.autoexpand){var A=w,P=k;w=i.constrain(w,0,f.width-e._width),k=i.constrain(k,0,f.height-e._effHeight),w!==A&amp;&amp;i.log(&quot;Constrain legend.x to make legend fit inside graph&quot;),k!==P&amp;&amp;i.log(&quot;Constrain legend.y to make legend fit inside graph&quot;)}if(d||c.setTranslate(T,w,k),O.on(&quot;.drag&quot;,null),T.on(&quot;wheel&quot;,null),d||e._height&lt;=e._maxHeight||t._context.staticPlot){var I=e._effHeight;d&amp;&amp;(I=e._height),L.attr({width:e._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),E.select(&quot;rect&quot;).attr({width:e._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(C,h,t),c.setRect(O,0,0,0,0),delete e._scrollY}else{var z,D,R,F=Math.max(p.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),B=e._effHeight-F-2*p.scrollBarMargin,N=e._height-e._effHeight,j=B/N,U=Math.min(e._scrollY||0,N);L.attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),E.select(&quot;rect&quot;).attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+U}),c.setClipUrl(C,h,t),H(U,F,j),T.on(&quot;wheel&quot;,(function(){H(U=i.constrain(e._scrollY+n.event.deltaY/B*N,0,N),F,j),0!==U&amp;&amp;U!==N&amp;&amp;n.event.preventDefault()}));var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;z=&quot;touchstart&quot;===t.type?t.changedTouches[0].clientY:t.clientY,R=U})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(D=&quot;touchmove&quot;===t.type?t.changedTouches[0].clientY:t.clientY,H(U=function(t,e,r){var n=(r-e)/j+t;return i.constrain(n,0,N)}(R,z,D),F,j))}));O.call(V);var q=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;&quot;touchstart&quot;===t.type&amp;&amp;(z=t.changedTouches[0].clientY,R=U)})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;&quot;touchmove&quot;===t.type&amp;&amp;(D=t.changedTouches[0].clientY,H(U=function(t,e,r){var n=(e-r)/j+t;return i.constrain(n,0,N)}(R,z,D),F,j))}));C.call(q)}if(t._context.edits.legendPosition)T.classed(&quot;cursor-move&quot;,!0),l.init({element:T.node(),gd:t,prepFn:function(){var t=c.getTranslate(T);g=t.x,y=t.y},moveFn:function(t,r){var n=g+t,i=y+r;c.setTranslate(T,n,i),s=l.align(n,0,x.l,x.l+x.w,e.xanchor),u=l.align(i,0,x.t+x.h,x.t,e.yanchor)},doneFn:function(){void 0!==s&amp;&amp;void 0!==u&amp;&amp;o.call(&quot;_guiRelayout&quot;,t,{&quot;legend.x&quot;:s,&quot;legend.y&quot;:u})},clickFn:function(e,n){var i=r.selectAll(&quot;g.traces&quot;).filter((function(){var t=this.getBoundingClientRect();return n.clientX&gt;=t.left&amp;&amp;n.clientX&lt;=t.right&amp;&amp;n.clientY&gt;=t.top&amp;&amp;n.clientY&lt;=t.bottom}));i.size()&gt;0&amp;&amp;_(t,T,i,e,n)}})}function H(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(O,e._width,p.scrollBarMargin+r*i,p.scrollBarWidth,n),E.select(&quot;rect&quot;).attr(&quot;y&quot;,b+r)}}],t)}(t,e)}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/events&quot;:792,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;./constants&quot;:717,&quot;./get_legend_data&quot;:720,&quot;./handle_click&quot;:721,&quot;./helpers&quot;:722,&quot;./style&quot;:724,&quot;@plotly/d3&quot;:58}],720:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e){var r,a,o=e._inHover,s=i.isGrouped(e),l=i.isReversed(e),c={},u=[],f=!1,h={},p=0,d=0;function g(t,r){if(&quot;&quot;!==t&amp;&amp;i.isGrouped(e))-1===u.indexOf(t)?(u.push(t),f=!0,c[t]=[r]):c[t].push(r);else{var n=&quot;~~i&quot;+p;u.push(n),c[n]=[r],p++}}for(r=0;r&lt;t.length;r++){var m=t[r],v=m[0],y=v.trace,x=y.legendgroup;if(o||y.visible&amp;&amp;y.showlegend)if(n.traceIs(y,&quot;pie-like&quot;))for(h[x]||(h[x]={}),a=0;a&lt;m.length;a++){var b=m[a].label;h[x][b]||(g(x,{label:b,color:m[a].color,i:m[a].i,trace:y,pts:m[a].pts}),h[x][b]=!0,d=Math.max(d,(b||&quot;&quot;).length))}else g(x,v),d=Math.max(d,(y.name||&quot;&quot;).length)}if(!u.length)return[];var _=!f||!s,w=[];for(r=0;r&lt;u.length;r++){var T=c[u[r]];_?w.push(T[0]):w.push(T)}for(_&amp;&amp;(w=[w]),r=0;r&lt;w.length;r++){var k=1/0;for(a=0;a&lt;w[r].length;a++){var A=w[r][a].trace.legendrank;k&gt;A&amp;&amp;(k=A)}w[r][0]._groupMinRank=k,w[r][0]._preGroupSort=r}var M=function(t,e){return t.trace.legendrank-e.trace.legendrank||t._preSort-e._preSort};for(w.forEach((function(t,e){t[0]._preGroupSort=e})),w.sort((function(t,e){return t[0]._groupMinRank-e[0]._groupMinRank||t[0]._preGroupSort-e[0]._preGroupSort})),r=0;r&lt;w.length;r++){w[r].forEach((function(t,e){t._preSort=e})),w[r].sort(M);var S=w[r][0].trace,E=null;for(a=0;a&lt;w[r].length;a++){var L=w[r][a].trace.legendgrouptitle;if(L&amp;&amp;L.text){E=L,o&amp;&amp;(L.font=e._groupTitleFont);break}}if(l&amp;&amp;w[r].reverse(),E){var C=!1;for(a=0;a&lt;w[r].length;a++)if(n.traceIs(w[r][a].trace,&quot;pie-like&quot;)){C=!0;break}w[r].unshift({i:-1,groupTitle:E,noClick:C,trace:{showlegend:S.showlegend,legendgroup:S.legendgroup,visible:&quot;toggleitem&quot;===e.groupclick||S.visible}})}for(a=0;a&lt;w[r].length;a++)w[r][a]=[w[r][a]]}return e._lgroupsLength=w.length,e._maxNameLength=d,w}},{&quot;../../registry&quot;:931,&quot;./helpers&quot;:722}],721:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=!0;e.exports=function(t,e,r){var o=e._fullLayout;if(!e._dragged&amp;&amp;!e._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick,u=o.legend.groupclick;if(1===r&amp;&amp;&quot;toggle&quot;===l&amp;&amp;&quot;toggleothers&quot;===c&amp;&amp;a&amp;&amp;e.data&amp;&amp;e._context.showTips?(n.notifier(n._(e,&quot;Double-click on legend to isolate one trace&quot;),&quot;long&quot;),a=!1):a=!1,1===r?s=l:2===r&amp;&amp;(s=c),s){var f=&quot;togglegroup&quot;===u,h=o.hiddenlabels?o.hiddenlabels.slice():[],p=t.data()[0][0];if(!p.groupTitle||!p.noClick){var d,g,m,v,y,x=e._fullData,b=p.trace,_=b.legendgroup,w={},T=[],k=[],A=[];if(i.traceIs(b,&quot;pie-like&quot;)){var M=p.label,S=h.indexOf(M);&quot;toggle&quot;===s?-1===S?h.push(M):h.splice(S,1):&quot;toggleothers&quot;===s&amp;&amp;(h=[],e.calcdata[0].forEach((function(t){M!==t.label&amp;&amp;h.push(t.label)})),e._fullLayout.hiddenlabels&amp;&amp;e._fullLayout.hiddenlabels.length===h.length&amp;&amp;-1===S&amp;&amp;(h=[])),i.call(&quot;_guiRelayout&quot;,e,&quot;hiddenlabels&quot;,h)}else{var E,L=_&amp;&amp;_.length,C=[];if(L)for(d=0;d&lt;x.length;d++)(E=x[d]).visible&amp;&amp;E.legendgroup===_&amp;&amp;C.push(d);if(&quot;toggle&quot;===s){var P;switch(b.visible){case!0:P=&quot;legendonly&quot;;break;case!1:P=!1;break;case&quot;legendonly&quot;:P=!0}if(L)if(f)for(d=0;d&lt;x.length;d++)!1!==x[d].visible&amp;&amp;x[d].legendgroup===_&amp;&amp;j(x[d],P);else j(b,P);else j(b,P)}else if(&quot;toggleothers&quot;===s){var I,O,z,D,R=!0;for(d=0;d&lt;x.length;d++)if(I=x[d]===b,z=!0!==x[d].showlegend,!(I||z||(O=L&amp;&amp;x[d].legendgroup===_)||!0!==x[d].visible||i.traceIs(x[d],&quot;notLegendIsolatable&quot;))){R=!1;break}for(d=0;d&lt;x.length;d++)if(!1!==x[d].visible&amp;&amp;!i.traceIs(x[d],&quot;notLegendIsolatable&quot;))switch(b.visible){case&quot;legendonly&quot;:j(x[d],!0);break;case!0:D=!!R||&quot;legendonly&quot;,I=x[d]===b,z=!0!==x[d].showlegend&amp;&amp;!x[d].legendgroup,O=I||L&amp;&amp;x[d].legendgroup===_,j(x[d],!(!O&amp;&amp;!z)||D)}}for(d=0;d&lt;k.length;d++)if(m=k[d]){var F=m.constructUpdate(),B=Object.keys(F);for(g=0;g&lt;B.length;g++)v=B[g],(w[v]=w[v]||[])[A[d]]=F[v]}for(y=Object.keys(w),d=0;d&lt;y.length;d++)for(v=y[d],g=0;g&lt;T.length;g++)w[v].hasOwnProperty(g)||(w[v][g]=void 0);i.call(&quot;_guiRestyle&quot;,e,w,T)}}}}function N(t,e,r){var n=T.indexOf(t),i=w[e];return i||(i=w[e]=[]),-1===T.indexOf(t)&amp;&amp;(T.push(t),n=T.length-1),i[n]=r,n}function j(t,e){if(!p.groupTitle||f){var r=t._fullInput;if(i.hasTransform(r,&quot;groupby&quot;)){var a=k[r.index];if(!a){var o=i.getTransformIndices(r,&quot;groupby&quot;),s=o[o.length-1];a=n.keyedContainer(r,&quot;transforms[&quot;+s+&quot;].styles&quot;,&quot;target&quot;,&quot;value.visible&quot;),k[r.index]=a}var l=a.get(t._group);void 0===l&amp;&amp;(l=!0),!1!==l&amp;&amp;a.set(t._group,e),A[r.index]=N(r.index,&quot;visible&quot;,!1!==r.visible)}else{var c=!1!==r.visible&amp;&amp;e;N(r.index,&quot;visible&quot;,c)}}}}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],722:[function(t,e,r){&quot;use strict&quot;;r.isGrouped=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;grouped&quot;)},r.isVertical=function(t){return&quot;h&quot;!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;reversed&quot;)}},{}],723:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;legend&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;),style:t(&quot;./style&quot;)}},{&quot;./attributes&quot;:716,&quot;./defaults&quot;:718,&quot;./draw&quot;:719,&quot;./style&quot;:724}],724:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../drawing&quot;),l=t(&quot;../color&quot;),c=t(&quot;../colorscale/helpers&quot;).extractOpts,u=t(&quot;../../traces/scatter/subtypes&quot;),f=t(&quot;../../traces/pie/style_one&quot;),h=t(&quot;../../traces/pie/helpers&quot;).castOption,p=t(&quot;./constants&quot;);function d(t,e){return(e?&quot;radial&quot;:&quot;horizontal&quot;)+(t?&quot;&quot;:&quot;reversed&quot;)}function g(t){var e=t[0].trace,r=e.contours,n=u.hasLines(e),i=u.hasMarkers(e),a=e.visible&amp;&amp;e.fill&amp;&amp;&quot;none&quot;!==e.fill,o=!1,s=!1;if(r){var l=r.coloring;&quot;lines&quot;===l?o=!0:n=&quot;none&quot;===l||&quot;heatmap&quot;===l||r.showlines,&quot;constraint&quot;===r.type?a=&quot;=&quot;!==r._operation:&quot;fill&quot;!==l&amp;&amp;&quot;heatmap&quot;!==l||(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function m(t,e,r){return t&amp;&amp;a.isArrayOrTypedArray(t)?e:t&gt;r?r:t}e.exports=function(t,e,r){var v=e._fullLayout;r||(r=v.legend);var y=&quot;constant&quot;===r.itemsizing,x=r.itemwidth,b=(x+2*p.itemGap)/2,_=o(b,0),w=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&amp;&amp;e.width&gt;0))return 0;i=e.width}return y?n:Math.min(i,r)};function T(t,a,o){var u=t[0].trace,f=u.marker||{},h=f.line||{},p=o?u.visible&amp;&amp;u.type===o:i.traceIs(u,&quot;bar&quot;),d=n.select(a).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+o).data(p?[t]:[]);d.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+o,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,_),d.exit().remove(),d.each((function(t){var i=n.select(this),a=t[0],o=w(a.mlw,f.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;);var p=a.mcc;if(!r._inHover&amp;&amp;&quot;mc&quot;in a){var d=c(f),g=d.mid;void 0===g&amp;&amp;(g=(d.max+d.min)/2),p=s.tryColorscale(f,&quot;&quot;)(g)}var v=p||a.mc||f.color,y=f.pattern,x=y&amp;&amp;s.getPatternAttr(y.shape,0,&quot;&quot;);if(x){var b=s.getPatternAttr(y.bgcolor,0,null),_=s.getPatternAttr(y.fgcolor,0,null),T=y.fgopacity,k=m(y.size,8,10),A=m(y.solidity,.5,1),M=&quot;legend-&quot;+u.uid;i.call(s.pattern,&quot;legend&quot;,e,M,x,k,A,p,y.fillmode,b,_,T)}else i.call(l.fill,v);o&amp;&amp;l.stroke(i,a.mlc||h.color)}))}function k(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&amp;&amp;s.type===r:i.traceIs(s,r),c=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(l?[t]:[]);if(c.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,_),c.exit().remove(),c.size()){var u=(s.marker||{}).line,p=w(h(u.width,o.pts),u,5,2),d=a.minExtend(s,{marker:{line:{width:p}}});d.marker.line.color=u.color;var g=a.minExtend(o,{trace:d});f(c,g,d)}}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,&quot;g&quot;,&quot;layers&quot;);i.style(&quot;opacity&quot;,t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if(&quot;middle&quot;!==s&amp;&amp;l&amp;&amp;c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr(&quot;transform&quot;,o(0,u))}else i.attr(&quot;transform&quot;,null);i.selectAll(&quot;g.legendfill&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendfill&quot;,!0),i.selectAll(&quot;g.legendlines&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendlines&quot;,!0);var f=i.selectAll(&quot;g.legendsymbols&quot;).data([t]);f.enter().append(&quot;g&quot;).classed(&quot;legendsymbols&quot;,!0),f.selectAll(&quot;g.legendpoints&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendpoints&quot;,!0)})).each((function(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case&quot;histogram2d&quot;:case&quot;heatmap&quot;:o=[[&quot;M-15,-2V4H15V-2Z&quot;]],r=!0;break;case&quot;choropleth&quot;:case&quot;choroplethmapbox&quot;:o=[[&quot;M-6,-6V6H6V-6Z&quot;]],r=!0;break;case&quot;densitymapbox&quot;:o=[[&quot;M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0&quot;]],r=&quot;radial&quot;;break;case&quot;cone&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 L6,0Z&quot;]],r=!1;break;case&quot;streamtube&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z&quot;]],r=!1;break;case&quot;surface&quot;:o=[[&quot;M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z&quot;],[&quot;M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z&quot;]],r=!0;break;case&quot;mesh3d&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!1;break;case&quot;volume&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!0;break;case&quot;isosurface&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6 A12,24 0 0,0 6,-6 L0,6Z&quot;]],r=!1}var u=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend3dandfriends&quot;).data(o);u.enter().append(&quot;path&quot;).classed(&quot;legend3dandfriends&quot;,!0).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),h=c(i),p=h.colorscale,g=h.reversescale;if(p){if(!r){var m=p.length;u=0===o?p[g?m-1:0][1]:1===o?p[g?0:m-1][1]:p[Math.floor((m-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr(&quot;d&quot;,t[0]),u?f.call(l.fill,u):f.call((function(t){if(t.size()){var n=&quot;legendfill-&quot;+i.uid;s.gradient(t,e,n,d(g,&quot;radial&quot;===r),p,&quot;fill&quot;)}}))}))})).each((function(t){var e=t[0].trace,r=&quot;waterfall&quot;===e.type;if(t[0]._distinct&amp;&amp;r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,T(t,this,&quot;waterfall&quot;)}var a=[];e.visible&amp;&amp;r&amp;&amp;(a=t[0].hasTotals?[[&quot;increasing&quot;,&quot;M-6,-6V6H0Z&quot;],[&quot;totals&quot;,&quot;M6,6H0L-6,-6H-0Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H0Z&quot;]]:[[&quot;increasing&quot;,&quot;M-6,-6V6H6Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H-6Z&quot;]]);var o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendwaterfall&quot;).data(a);o.enter().append(&quot;path&quot;).classed(&quot;legendwaterfall&quot;,!0).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=w(void 0,i.line,5,2);r.attr(&quot;d&quot;,t[1]).style(&quot;stroke-width&quot;,a+&quot;px&quot;).call(l.fill,i.color),a&amp;&amp;r.call(l.stroke,i.line.color)}))})).each((function(t){T(t,this,&quot;funnel&quot;)})).each((function(t){T(t,this)})).each((function(t){var r=t[0].trace,o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendbox&quot;).data(r.visible&amp;&amp;i.traceIs(r,&quot;box-violin&quot;)?[t]:[]);o.enter().append(&quot;path&quot;).classed(&quot;legendbox&quot;,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,_),o.exit().remove(),o.each((function(){var t=n.select(this);if(&quot;all&quot;!==r.boxpoints&amp;&amp;&quot;all&quot;!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=w(void 0,r.line,5,2);t.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.fillcolor),i&amp;&amp;l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:y?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;}});o.call(s.pointStyle,c,e)}}))})).each((function(t){k(t,this,&quot;funnelarea&quot;)})).each((function(t){k(t,this,&quot;pie&quot;)})).each((function(t){var r,i,o=g(t),l=o.showFill,f=o.showLine,h=o.showGradientLine,p=o.showGradientFill,m=o.anyFill,v=o.anyLine,y=t[0],b=y.trace,_=c(b),T=_.colorscale,k=_.reversescale,A=u.hasMarkers(b)||!m?&quot;M5,0&quot;:v?&quot;M5,-2&quot;:&quot;M5,-3&quot;,M=n.select(this),S=M.select(&quot;.legendfill&quot;).selectAll(&quot;path&quot;).data(l||p?[t]:[]);if(S.enter().append(&quot;path&quot;).classed(&quot;js-fill&quot;,!0),S.exit().remove(),S.attr(&quot;d&quot;,A+&quot;h&quot;+x+&quot;v6h-&quot;+x+&quot;z&quot;).call(l?s.fillGroupStyle:function(t){if(t.size()){var r=&quot;legendfill-&quot;+b.uid;s.gradient(t,e,r,d(k),T,&quot;fill&quot;)}}),f||h){var E=w(void 0,b.line,10,5);i=a.minExtend(b,{line:{width:E}}),r=[a.minExtend(y,{trace:i})]}var L=M.select(&quot;.legendlines&quot;).selectAll(&quot;path&quot;).data(f||h?[r]:[]);L.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0),L.exit().remove(),L.attr(&quot;d&quot;,A+(h?&quot;l&quot;+x+&quot;,0.0001&quot;:&quot;h&quot;+x)).call(f?s.lineGroupStyle:function(t){if(t.size()){var r=&quot;legendline-&quot;+b.uid;s.lineGroupStyle(t),s.gradient(t,e,r,d(k),T,&quot;stroke&quot;)}})})).each((function(t){var r,i,o=g(t),l=o.anyFill,c=o.anyLine,f=o.showLine,h=o.showMarker,p=t[0],d=p.trace,m=!h&amp;&amp;!c&amp;&amp;!l&amp;&amp;u.hasText(d);function v(t,e,r,n){var i=a.nestedProperty(d,t).get(),o=a.isArrayOrTypedArray(i)&amp;&amp;e?e(i):i;if(y&amp;&amp;o&amp;&amp;void 0!==n&amp;&amp;(o=n),r){if(o&lt;r[0])return r[0];if(o&gt;r[1])return r[1]}return o}function x(t){return p._distinct&amp;&amp;p.index&amp;&amp;t[p.index]?t[p.index]:t[0]}if(h||m||f){var b={},w={};if(h){b.mc=v(&quot;marker.color&quot;,x),b.mx=v(&quot;marker.symbol&quot;,x),b.mo=v(&quot;marker.opacity&quot;,a.mean,[.2,1]),b.mlc=v(&quot;marker.line.color&quot;,x),b.mlw=v(&quot;marker.line.width&quot;,a.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;};var T=v(&quot;marker.size&quot;,a.mean,[2,16],12);b.ms=T,w.marker.size=T}f&amp;&amp;(w.line={width:v(&quot;line.width&quot;,x,[0,10],5)}),m&amp;&amp;(b.tx=&quot;Aa&quot;,b.tp=v(&quot;textposition&quot;,x),b.ts=10,b.tc=v(&quot;textfont.color&quot;,x),b.tf=v(&quot;textfont.family&quot;,x)),r=[a.minExtend(p,b)],(i=a.minExtend(d,w)).selectedpoints=null,i.texttemplate=null}var k=n.select(this).select(&quot;g.legendpoints&quot;),A=k.selectAll(&quot;path.scatterpts&quot;).data(h?r:[]);A.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(&quot;scatterpts&quot;,!0).attr(&quot;transform&quot;,_),A.exit().remove(),A.call(s.pointStyle,i,e),h&amp;&amp;(r[0].mrc=3);var M=k.selectAll(&quot;g.pointtext&quot;).data(m?r:[]);M.enter().append(&quot;g&quot;).classed(&quot;pointtext&quot;,!0).append(&quot;text&quot;).attr(&quot;transform&quot;,_),M.exit().remove(),M.selectAll(&quot;text&quot;).call(s.textPointStyle,i,e)})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendcandle&quot;).data(e.visible&amp;&amp;&quot;candlestick&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendcandle&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H-8M-8,6V-6H8Z&quot;:&quot;M15,0H8M8,-6V6H-8Z&quot;})).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=w(void 0,a.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;).call(l.fill,a.fillcolor),o&amp;&amp;l.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendohlc&quot;).data(e.visible&amp;&amp;&quot;ohlc&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendohlc&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H0M-8,-6V0&quot;:&quot;M15,0H0M8,6V0&quot;})).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=w(void 0,a.line,5,2);i.style(&quot;fill&quot;,&quot;none&quot;).call(s.dashLine,a.line.dash,o),o&amp;&amp;l.stroke(i,a.line.color)}))}))}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../../traces/pie/helpers&quot;:1197,&quot;../../traces/pie/style_one&quot;:1203,&quot;../../traces/scatter/subtypes&quot;:1243,&quot;../color&quot;:666,&quot;../colorscale/helpers&quot;:677,&quot;../drawing&quot;:688,&quot;./constants&quot;:717,&quot;@plotly/d3&quot;:58}],725:[function(t,e,r){&quot;use strict&quot;;t(&quot;./constants&quot;);e.exports={editType:&quot;modebar&quot;,orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;modebar&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},color:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},add:{valType:&quot;string&quot;,arrayOk:!0,dflt:&quot;&quot;,editType:&quot;modebar&quot;},remove:{valType:&quot;string&quot;,arrayOk:!0,dflt:&quot;&quot;,editType:&quot;modebar&quot;}}},{&quot;./constants&quot;:727}],726:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=t(&quot;../shapes/draw&quot;).eraseActiveShape,l=t(&quot;../../lib&quot;),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(&quot;data-attr&quot;),l=o.getAttribute(&quot;data-val&quot;)||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=c._cartesianSpikesEnabled;if(&quot;zoom&quot;===s){var p,d=&quot;in&quot;===l?.5:2,g=(1+d)/2,m=(1-d)/2;for(i=0;i&lt;f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,&quot;auto&quot;===l)u[p+&quot;.autorange&quot;]=!0;else if(&quot;reset&quot;===l){if(void 0===r._rangeInitial)u[p+&quot;.autorange&quot;]=!0;else{var v=r._rangeInitial.slice();u[p+&quot;.range[0]&quot;]=v[0],u[p+&quot;.range[1]&quot;]=v[1]}void 0!==r._showSpikeInitial&amp;&amp;(u[p+&quot;.showspikes&quot;]=r._showSpikeInitial,&quot;on&quot;!==h||r._showSpikeInitial||(h=&quot;off&quot;))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*y[0]+m*y[1],g*y[1]+m*y[0]];u[p+&quot;.range[0]&quot;]=r.l2r(x[0]),u[p+&quot;.range[1]&quot;]=r.l2r(x[1])}}else&quot;hovermode&quot;!==s||&quot;x&quot;!==l&amp;&amp;&quot;y&quot;!==l||(l=c._isHoriz?&quot;y&quot;:&quot;x&quot;,o.setAttribute(&quot;data-val&quot;,l)),u[s]=l;c._cartesianSpikesEnabled=h,n.call(&quot;_guiRelayout&quot;,t,u)}function h(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout._subplots.gl3d||[],s={},l=i.split(&quot;.&quot;),c=0;c&lt;o.length;c++)s[o[c]+&quot;.&quot;+l[1]]=a;var u=&quot;pan&quot;===a?a:&quot;zoom&quot;;s.dragmode=u,n.call(&quot;_guiRelayout&quot;,t,s)}function p(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-attr&quot;),i=&quot;resetLastSave&quot;===r,a=&quot;resetDefault&quot;===r,o=t._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c&lt;s.length;c++){var u,f=s[c],h=f+&quot;.camera&quot;,p=f+&quot;.aspectratio&quot;,d=f+&quot;.aspectmode&quot;,g=o[f]._scene;i?(l[h+&quot;.up&quot;]=g.viewInitial.up,l[h+&quot;.eye&quot;]=g.viewInitial.eye,l[h+&quot;.center&quot;]=g.viewInitial.center,u=!0):a&amp;&amp;(l[h+&quot;.up&quot;]=null,l[h+&quot;.eye&quot;]=null,l[h+&quot;.center&quot;]=null,u=!0),u&amp;&amp;(l[p+&quot;.x&quot;]=g.viewInitial.aspectratio.x,l[p+&quot;.y&quot;]=g.viewInitial.aspectratio.y,l[p+&quot;.z&quot;]=g.viewInitial.aspectratio.z,l[d]=g.viewInitial.aspectmode)}n.call(&quot;_guiRelayout&quot;,t,l)}function d(t,e){var r=e.currentTarget,n=r._previousVal,i=t._fullLayout,a=i._subplots.gl3d||[],o=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],s={},l={};if(n)l=n,r._previousVal=null;else{for(var c=0;c&lt;a.length;c++){var u=a[c],f=i[u],h=u+&quot;.hovermode&quot;;s[h]=f.hovermode,l[h]=!1;for(var p=0;p&lt;3;p++){var d=o[p],g=u+&quot;.&quot;+d+&quot;.showspikes&quot;;l[g]=!1,s[g]=f[d].showspikes}}r._previousVal=s}return l}function g(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout,s=o._subplots.geo||[],l=0;l&lt;s.length;l++){var c=s[l],u=o[c];if(&quot;zoom&quot;===i){var f=u.projection.scale,h=&quot;in&quot;===a?2*f:.5*f;n.call(&quot;_guiRelayout&quot;,t,c+&quot;.projection.scale&quot;,h)}}&quot;reset&quot;===i&amp;&amp;x(t,&quot;geo&quot;)}function m(t){var e=t._fullLayout;return!e.hovermode&amp;&amp;(e._has(&quot;cartesian&quot;)?e._isHoriz?&quot;y&quot;:&quot;x&quot;:&quot;closest&quot;)}function v(t){var e=m(t);n.call(&quot;_guiRelayout&quot;,t,&quot;hovermode&quot;,e)}function y(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-val&quot;),i=t._fullLayout,a=i._subplots.mapbox||[],o={},s=0;s&lt;a.length;s++){var l=a[s],c=i[l].zoom,u=&quot;in&quot;===r?1.05*c:c/1.05;o[l+&quot;.zoom&quot;]=u}n.call(&quot;_guiRelayout&quot;,t,o)}function x(t,e){for(var r=t._fullLayout,i=r._subplots[e]||[],a={},o=0;o&lt;i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u&lt;c.length;u++){var f=c[u];a[s+&quot;.&quot;+f]=l[f]}n.call(&quot;_guiRelayout&quot;,t,a)}u.toImage={name:&quot;toImage&quot;,title:function(t){var e=(t._context.toImageButtonOptions||{}).format||&quot;png&quot;;return c(t,&quot;png&quot;===e?&quot;Download plot as a png&quot;:&quot;Download plot&quot;)},icon:o.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||&quot;png&quot;};l.notifier(c(t,&quot;Taking snapshot - this may take a few seconds&quot;),&quot;long&quot;),&quot;svg&quot;!==r.format&amp;&amp;l.isIE()&amp;&amp;(l.notifier(c(t,&quot;IE only supports svg.  Changing format to svg.&quot;),&quot;long&quot;),r.format=&quot;svg&quot;),[&quot;filename&quot;,&quot;width&quot;,&quot;height&quot;,&quot;scale&quot;].forEach((function(t){t in e&amp;&amp;(r[t]=e[t])})),n.call(&quot;downloadImage&quot;,t,r).then((function(e){l.notifier(c(t,&quot;Snapshot succeeded&quot;)+&quot; - &quot;+e,&quot;long&quot;)})).catch((function(){l.notifier(c(t,&quot;Sorry, there was a problem downloading your snapshot!&quot;),&quot;long&quot;)}))}},u.sendDataToCloud={name:&quot;sendDataToCloud&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.disk,click:function(t){i.sendDataToCloud(t)}},u.editInChartStudio={name:&quot;editInChartStudio&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.pencil,click:function(t){i.sendDataToCloud(t)}},u.zoom2d={name:&quot;zoom2d&quot;,_cat:&quot;zoom&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:f},u.pan2d={name:&quot;pan2d&quot;,_cat:&quot;pan&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:f},u.select2d={name:&quot;select2d&quot;,_cat:&quot;select&quot;,title:function(t){return c(t,&quot;Box Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;select&quot;,icon:o.selectbox,click:f},u.lasso2d={name:&quot;lasso2d&quot;,_cat:&quot;lasso&quot;,title:function(t){return c(t,&quot;Lasso Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;lasso&quot;,icon:o.lasso,click:f},u.drawclosedpath={name:&quot;drawclosedpath&quot;,title:function(t){return c(t,&quot;Draw closed freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawclosedpath&quot;,icon:o.drawclosedpath,click:f},u.drawopenpath={name:&quot;drawopenpath&quot;,title:function(t){return c(t,&quot;Draw open freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawopenpath&quot;,icon:o.drawopenpath,click:f},u.drawline={name:&quot;drawline&quot;,title:function(t){return c(t,&quot;Draw line&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawline&quot;,icon:o.drawline,click:f},u.drawrect={name:&quot;drawrect&quot;,title:function(t){return c(t,&quot;Draw rectangle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawrect&quot;,icon:o.drawrect,click:f},u.drawcircle={name:&quot;drawcircle&quot;,title:function(t){return c(t,&quot;Draw circle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawcircle&quot;,icon:o.drawcircle,click:f},u.eraseshape={name:&quot;eraseshape&quot;,title:function(t){return c(t,&quot;Erase active shape&quot;)},icon:o.eraseshape,click:s},u.zoomIn2d={name:&quot;zoomIn2d&quot;,_cat:&quot;zoomin&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:f},u.zoomOut2d={name:&quot;zoomOut2d&quot;,_cat:&quot;zoomout&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:f},u.autoScale2d={name:&quot;autoScale2d&quot;,_cat:&quot;autoscale&quot;,title:function(t){return c(t,&quot;Autoscale&quot;)},attr:&quot;zoom&quot;,val:&quot;auto&quot;,icon:o.autoscale,click:f},u.resetScale2d={name:&quot;resetScale2d&quot;,_cat:&quot;resetscale&quot;,title:function(t){return c(t,&quot;Reset axes&quot;)},attr:&quot;zoom&quot;,val:&quot;reset&quot;,icon:o.home,click:f},u.hoverClosestCartesian={name:&quot;hoverClosestCartesian&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:f},u.hoverCompareCartesian={name:&quot;hoverCompareCartesian&quot;,_cat:&quot;hoverCompare&quot;,title:function(t){return c(t,&quot;Compare data on hover&quot;)},attr:&quot;hovermode&quot;,val:function(t){return t._fullLayout._isHoriz?&quot;y&quot;:&quot;x&quot;},icon:o.tooltip_compare,gravity:&quot;ne&quot;,click:f},u.zoom3d={name:&quot;zoom3d&quot;,_cat:&quot;zoom&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:h},u.pan3d={name:&quot;pan3d&quot;,_cat:&quot;pan&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:h},u.orbitRotation={name:&quot;orbitRotation&quot;,title:function(t){return c(t,&quot;Orbital rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;orbit&quot;,icon:o[&quot;3d_rotate&quot;],click:h},u.tableRotation={name:&quot;tableRotation&quot;,title:function(t){return c(t,&quot;Turntable rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;turntable&quot;,icon:o[&quot;z-axis&quot;],click:h},u.resetCameraDefault3d={name:&quot;resetCameraDefault3d&quot;,_cat:&quot;resetCameraDefault&quot;,title:function(t){return c(t,&quot;Reset camera to default&quot;)},attr:&quot;resetDefault&quot;,icon:o.home,click:p},u.resetCameraLastSave3d={name:&quot;resetCameraLastSave3d&quot;,_cat:&quot;resetCameraLastSave&quot;,title:function(t){return c(t,&quot;Reset camera to last save&quot;)},attr:&quot;resetLastSave&quot;,icon:o.movie,click:p},u.hoverClosest3d={name:&quot;hoverClosest3d&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);n.call(&quot;_guiRelayout&quot;,t,r)}},u.zoomInGeo={name:&quot;zoomInGeo&quot;,_cat:&quot;zoomin&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:g},u.zoomOutGeo={name:&quot;zoomOutGeo&quot;,_cat:&quot;zoomout&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:g},u.resetGeo={name:&quot;resetGeo&quot;,_cat:&quot;reset&quot;,title:function(t){return c(t,&quot;Reset&quot;)},attr:&quot;reset&quot;,val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:&quot;hoverClosestGeo&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestGl2d={name:&quot;hoverClosestGl2d&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestPie={name:&quot;hoverClosestPie&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.resetViewSankey={name:&quot;resetSankeyGroup&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},icon:o.home,click:function(t){for(var e={&quot;node.groups&quot;:[],&quot;node.x&quot;:[],&quot;node.y&quot;:[]},r=0;r&lt;t._fullData.length;r++){var i=t._fullData[r]._viewInitial;e[&quot;node.groups&quot;].push(i.node.groups.slice()),e[&quot;node.x&quot;].push(i.node.x.slice()),e[&quot;node.y&quot;].push(i.node.y.slice())}n.call(&quot;restyle&quot;,t,e)}},u.toggleHover={name:&quot;toggleHover&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);r.hovermode=m(t),n.call(&quot;_guiRelayout&quot;,t,r)}},u.resetViews={name:&quot;resetViews&quot;,title:function(t){return c(t,&quot;Reset views&quot;)},icon:o.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(&quot;data-attr&quot;,&quot;zoom&quot;),r.setAttribute(&quot;data-val&quot;,&quot;reset&quot;),f(t,e),r.setAttribute(&quot;data-attr&quot;,&quot;resetLastSave&quot;),p(t,e),x(t,&quot;geo&quot;),x(t,&quot;mapbox&quot;)}},u.toggleSpikelines={name:&quot;toggleSpikelines&quot;,title:function(t){return c(t,&quot;Toggle Spike Lines&quot;)},icon:o.spikeline,attr:&quot;_cartesianSpikesEnabled&quot;,val:&quot;on&quot;,click:function(t){var e=t._fullLayout,r=e._cartesianSpikesEnabled;e._cartesianSpikesEnabled=&quot;on&quot;===r?&quot;off&quot;:&quot;on&quot;,n.call(&quot;_guiRelayout&quot;,t,function(t){for(var e=&quot;on&quot;===t._fullLayout._cartesianSpikesEnabled,r=a.list(t,null,!0),n={},i=0;i&lt;r.length;i++){var o=r[i];n[o._name+&quot;.showspikes&quot;]=!!e||o._showSpikeInitial}return n}(t))}},u.resetViewMapbox={name:&quot;resetViewMapbox&quot;,_cat:&quot;resetView&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},attr:&quot;reset&quot;,icon:o.home,click:function(t){x(t,&quot;mapbox&quot;)}},u.zoomInMapbox={name:&quot;zoomInMapbox&quot;,_cat:&quot;zoomin&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:&quot;zoomOutMapbox&quot;,_cat:&quot;zoomout&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:y}},{&quot;../../fonts/ploticon&quot;:782,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../shapes/draw&quot;:750}],727:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./buttons&quot;),i=Object.keys(n),a=[&quot;drawline&quot;,&quot;drawopenpath&quot;,&quot;drawclosedpath&quot;,&quot;drawcircle&quot;,&quot;drawrect&quot;,&quot;eraseshape&quot;],o=[&quot;v1hovermode&quot;,&quot;hoverclosest&quot;,&quot;hovercompare&quot;,&quot;togglehover&quot;,&quot;togglespikelines&quot;].concat(a),s=[];i.forEach((function(t){!function(t){if(-1===o.indexOf(t._cat||t.name)){var e=t.name,r=(t._cat||t.name).toLowerCase();-1===s.indexOf(e)&amp;&amp;s.push(e),-1===s.indexOf(r)&amp;&amp;s.push(r)}}(n[t])})),s.sort(),e.exports={DRAW_MODES:a,backButtons:o,foreButtons:s}},{&quot;./buttons&quot;:726}],728:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e){var r=t.modebar||{},s=a.newContainer(e,&quot;modebar&quot;);function l(t,e){return n.coerce(r,s,o,t,e)}l(&quot;orientation&quot;),l(&quot;bgcolor&quot;,i.addOpacity(e.paper_bgcolor,.5));var c=i.contrast(i.rgb(e.modebar.bgcolor));l(&quot;color&quot;,i.addOpacity(c,.3)),l(&quot;activecolor&quot;,i.addOpacity(c,.7)),l(&quot;uirevision&quot;,e.uirevision),l(&quot;add&quot;),l(&quot;remove&quot;)}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../color&quot;:666,&quot;./attributes&quot;:725}],729:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;modebar&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),manage:t(&quot;./manage&quot;)}},{&quot;./attributes&quot;:725,&quot;./defaults&quot;:728,&quot;./manage&quot;:730}],730:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../traces/scatter/subtypes&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../fx/helpers&quot;).isUnifiedHover,s=t(&quot;./modebar&quot;),l=t(&quot;./buttons&quot;),c=t(&quot;./constants&quot;).DRAW_MODES;e.exports=function(t){var e=t._fullLayout,r=t._context,u=e._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([&quot;*modeBarButtonsToRemove* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([&quot;*modeBarButtonsToAdd* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));var f,h=r.modeBarButtons;f=Array.isArray(h)&amp;&amp;h.length?function(t){for(var e=0;e&lt;t.length;e++)for(var r=t[e],n=0;n&lt;r.length;n++){var i=r[n];if(&quot;string&quot;==typeof i){if(void 0===l[i])throw new Error([&quot;*modeBarButtons* configuration options&quot;,&quot;invalid button name&quot;].join(&quot; &quot;));t[e][n]=l[i]}}return t}(h):!r.displayModeBar&amp;&amp;r.watermark?[]:function(t){var e=t._fullLayout,r=t._fullData,s=t._context;function u(t,e){if(&quot;string&quot;==typeof e){if(e.toLowerCase()===t.toLowerCase())return!0}else{var r=e.name,n=e._cat||e.name;if(r===t||n===t.toLowerCase())return!0}return!1}var f=e.modebar.add;&quot;string&quot;==typeof f&amp;&amp;(f=[f]);var h=e.modebar.remove;&quot;string&quot;==typeof h&amp;&amp;(h=[h]);var p=s.modeBarButtonsToAdd.concat(f.filter((function(t){for(var e=0;e&lt;s.modeBarButtonsToRemove.length;e++)if(u(t,s.modeBarButtonsToRemove[e]))return!1;return!0}))),d=s.modeBarButtonsToRemove.concat(h.filter((function(t){for(var e=0;e&lt;s.modeBarButtonsToAdd.length;e++)if(u(t,s.modeBarButtonsToAdd[e]))return!1;return!0}))),g=e._has(&quot;cartesian&quot;),m=e._has(&quot;gl3d&quot;),v=e._has(&quot;geo&quot;),y=e._has(&quot;pie&quot;),x=e._has(&quot;funnelarea&quot;),b=e._has(&quot;gl2d&quot;),_=e._has(&quot;ternary&quot;),w=e._has(&quot;mapbox&quot;),T=e._has(&quot;polar&quot;),k=e._has(&quot;sankey&quot;),A=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r&lt;e.length;r++)if(!e[r].fixedrange)return!1;return!0}(e),M=o(e.hovermode),S=[];function E(t){if(t.length){for(var e=[],r=0;r&lt;t.length;r++){for(var n=t[r],i=l[n],a=i.name.toLowerCase(),o=(i._cat||i.name).toLowerCase(),s=!1,c=0;c&lt;d.length;c++){var u=d[c].toLowerCase();if(u===a||u===o){s=!0;break}}s||e.push(l[n])}S.push(e)}}var L=[&quot;toImage&quot;];s.showEditInChartStudio?L.push(&quot;editInChartStudio&quot;):s.showSendToCloud&amp;&amp;L.push(&quot;sendDataToCloud&quot;);E(L);var C=[],P=[],I=[],O=[];(g||b||y||x||_)+v+m+w+T&gt;1?(P=[&quot;toggleHover&quot;],I=[&quot;resetViews&quot;]):v?(C=[&quot;zoomInGeo&quot;,&quot;zoomOutGeo&quot;],P=[&quot;hoverClosestGeo&quot;],I=[&quot;resetGeo&quot;]):m?(P=[&quot;hoverClosest3d&quot;],I=[&quot;resetCameraDefault3d&quot;,&quot;resetCameraLastSave3d&quot;]):w?(C=[&quot;zoomInMapbox&quot;,&quot;zoomOutMapbox&quot;],P=[&quot;toggleHover&quot;],I=[&quot;resetViewMapbox&quot;]):b?P=[&quot;hoverClosestGl2d&quot;]:y?P=[&quot;hoverClosestPie&quot;]:k?(P=[&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;],I=[&quot;resetViewSankey&quot;]):P=[&quot;toggleHover&quot;];g&amp;&amp;(P=[&quot;toggleSpikelines&quot;,&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;]);(function(t){for(var e=0;e&lt;t.length;e++)if(!a.traceIs(t[e],&quot;noHover&quot;))return!1;return!0}(r)||M)&amp;&amp;(P=[]);!g&amp;&amp;!b||A||(C=[&quot;zoomIn2d&quot;,&quot;zoomOut2d&quot;,&quot;autoScale2d&quot;],&quot;resetViews&quot;!==I[0]&amp;&amp;(I=[&quot;resetScale2d&quot;]));m?O=[&quot;zoom3d&quot;,&quot;pan3d&quot;,&quot;orbitRotation&quot;,&quot;tableRotation&quot;]:(g||b)&amp;&amp;!A||_?O=[&quot;zoom2d&quot;,&quot;pan2d&quot;]:w||v?O=[&quot;pan2d&quot;]:T&amp;&amp;(O=[&quot;zoom2d&quot;]);(function(t){for(var e=!1,r=0;r&lt;t.length&amp;&amp;!e;r++){var n=t[r];n._module&amp;&amp;n._module.selectPoints&amp;&amp;(a.traceIs(n,&quot;scatter-like&quot;)?(i.hasMarkers(n)||i.hasText(n))&amp;&amp;(e=!0):a.traceIs(n,&quot;box-violin&quot;)&amp;&amp;&quot;all&quot;!==n.boxpoints&amp;&amp;&quot;all&quot;!==n.points||(e=!0))}return e})(r)&amp;&amp;O.push(&quot;select2d&quot;,&quot;lasso2d&quot;);var z=[],D=function(t){-1===z.indexOf(t)&amp;&amp;-1!==P.indexOf(t)&amp;&amp;z.push(t)};if(Array.isArray(p)){for(var R=[],F=0;F&lt;p.length;F++){var B=p[F];&quot;string&quot;==typeof B?(B=B.toLowerCase(),-1!==c.indexOf(B)?(e._has(&quot;mapbox&quot;)||e._has(&quot;cartesian&quot;))&amp;&amp;O.push(B):&quot;togglespikelines&quot;===B?D(&quot;toggleSpikelines&quot;):&quot;togglehover&quot;===B?D(&quot;toggleHover&quot;):&quot;hovercompare&quot;===B?D(&quot;hoverCompareCartesian&quot;):&quot;hoverclosest&quot;===B?(D(&quot;hoverClosestCartesian&quot;),D(&quot;hoverClosestGeo&quot;),D(&quot;hoverClosest3d&quot;),D(&quot;hoverClosestGl2d&quot;),D(&quot;hoverClosestPie&quot;)):&quot;v1hovermode&quot;===B&amp;&amp;(D(&quot;toggleHover&quot;),D(&quot;hoverClosestCartesian&quot;),D(&quot;hoverCompareCartesian&quot;),D(&quot;hoverClosestGeo&quot;),D(&quot;hoverClosest3d&quot;),D(&quot;hoverClosestGl2d&quot;),D(&quot;hoverClosestPie&quot;))):R.push(B)}p=R}return E(O),E(C.concat(I)),E(z),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r&lt;e.length;r++)t.push(e[r]);else t.push(e);return t}(S,p)}(t),u?u.update(t,f):e._modeBar=s(t,f)}else u&amp;&amp;(u.destroy(),delete e._modeBar)}},{&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../registry&quot;:931,&quot;../../traces/scatter/subtypes&quot;:1243,&quot;../fx/helpers&quot;:702,&quot;./buttons&quot;:726,&quot;./constants&quot;:727,&quot;./modebar&quot;:731}],731:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(&quot;div&quot;),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=&quot;modebar-&quot;+n._uid;this.element.setAttribute(&quot;id&quot;,i),this._uid=i,this.element.className=&quot;modebar&quot;,&quot;hover&quot;===r.displayModeBar&amp;&amp;(this.element.className+=&quot; modebar--hover ease-bg&quot;),&quot;v&quot;===n.modebar.orientation&amp;&amp;(this.element.className+=&quot; vertical&quot;,e=e.reverse());var o=n.modebar,s=&quot;hover&quot;===r.displayModeBar?&quot;.js-plotly-plot .plotly:hover &quot;:&quot;&quot;;a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,s+&quot;#&quot;+i+&quot; .modebar-group&quot;,&quot;background-color: &quot;+o.bgcolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn .icon path&quot;,&quot;fill: &quot;+o.color),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn:hover .icon path&quot;,&quot;fill: &quot;+o.activecolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn.active .icon path&quot;,&quot;fill: &quot;+o.activecolor);var l=!this.hasButtons(e),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(l||c||u)&amp;&amp;(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&amp;&amp;(f.className=f.className+&quot; watermark&quot;),&quot;v&quot;===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error(&quot;must provide button 'name' in button config&quot;);if(-1!==e.buttonsNames.indexOf(n))throw new Error(&quot;button name '&quot;+n+&quot;' is taken&quot;);e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},c.createGroup=function(){var t=document.createElement(&quot;div&quot;);return t.className=&quot;modebar-group&quot;,t},c.createButton=function(t){var e=this,r=document.createElement(&quot;a&quot;);r.setAttribute(&quot;rel&quot;,&quot;tooltip&quot;),r.className=&quot;modebar-btn&quot;;var i=t.title;void 0===i?i=t.name:&quot;function&quot;==typeof i&amp;&amp;(i=i(this.graphInfo)),(i||0===i)&amp;&amp;r.setAttribute(&quot;data-title&quot;,i),void 0!==t.attr&amp;&amp;r.setAttribute(&quot;data-attr&quot;,t.attr);var a=t.val;if(void 0!==a&amp;&amp;(&quot;function&quot;==typeof a&amp;&amp;(a=a(this.graphInfo)),r.setAttribute(&quot;data-val&quot;,a)),&quot;function&quot;!=typeof t.click)throw new Error(&quot;must provide button 'click' function in button config&quot;);r.addEventListener(&quot;click&quot;,(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),r.setAttribute(&quot;data-toggle&quot;,t.toggle||!1),t.toggle&amp;&amp;n.select(r).classed(&quot;active&quot;,!0);var s=t.icon;return&quot;function&quot;==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(&quot;data-gravity&quot;,t.gravity||&quot;n&quot;),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=&quot;http://www.w3.org/2000/svg&quot;;if(t.path){(e=document.createElementNS(n,&quot;svg&quot;)).setAttribute(&quot;viewBox&quot;,[0,0,t.width,r].join(&quot; &quot;)),e.setAttribute(&quot;class&quot;,&quot;icon&quot;);var a=document.createElementNS(n,&quot;path&quot;);a.setAttribute(&quot;d&quot;,t.path),t.transform?a.setAttribute(&quot;transform&quot;,t.transform):void 0!==t.ascent&amp;&amp;a.setAttribute(&quot;transform&quot;,&quot;matrix(1 0 0 -1 0 &quot;+t.ascent+&quot;)&quot;),e.appendChild(a)}t.svg&amp;&amp;(e=s.parseFromString(t.svg,&quot;application/xml&quot;).childNodes[0]);return e.setAttribute(&quot;height&quot;,&quot;1em&quot;),e.setAttribute(&quot;width&quot;,&quot;1em&quot;),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(&quot;data-attr&quot;):null;this.buttonElements.forEach((function(t){var i=t.getAttribute(&quot;data-val&quot;)||!0,o=t.getAttribute(&quot;data-attr&quot;),s=&quot;true&quot;===t.getAttribute(&quot;data-toggle&quot;),l=n.select(t);if(s)o===r&amp;&amp;l.classed(&quot;active&quot;,!l.classed(&quot;active&quot;));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(&quot;active&quot;,c===i)}}))},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r&lt;t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(&quot;a&quot;);return e.href=&quot;https://plotly.com/&quot;,e.target=&quot;_blank&quot;,e.setAttribute(&quot;data-title&quot;,a._(this.graphInfo,&quot;Produced with Plotly&quot;)),e.className=&quot;modebar-btn plotlyjsicon modebar-btn--logo&quot;,e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(&quot;.modebar&quot;)),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._modebardiv.node(),buttons:e});return r._privateplot&amp;&amp;n.select(i.element).append(&quot;span&quot;).classed(&quot;badge-private float--left&quot;,!0).text(&quot;PRIVATE&quot;),i}},{&quot;../../fonts/ploticon&quot;:782,&quot;../../lib&quot;:803,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],732:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=(0,t(&quot;../../plot_api/plot_template&quot;).templatedArray)(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},step:{valType:&quot;enumerated&quot;,values:[&quot;month&quot;,&quot;year&quot;,&quot;day&quot;,&quot;hour&quot;,&quot;minute&quot;,&quot;second&quot;,&quot;all&quot;],dflt:&quot;month&quot;,editType:&quot;plot&quot;},stepmode:{valType:&quot;enumerated&quot;,values:[&quot;backward&quot;,&quot;todate&quot;],dflt:&quot;backward&quot;,editType:&quot;plot&quot;},count:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;});e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},buttons:a,x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;plot&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},font:n({editType:&quot;plot&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;plot&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;}},{&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/font_attributes&quot;:883,&quot;../color/attributes&quot;:665}],733:[function(t,e,r){&quot;use strict&quot;;e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],734:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../../plots/array_container_defaults&quot;),s=t(&quot;./attributes&quot;),l=t(&quot;./constants&quot;);function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(&quot;visible&quot;)){var l=o(&quot;step&quot;);&quot;all&quot;!==l&amp;&amp;(!a||&quot;gregorian&quot;===a||&quot;month&quot;!==l&amp;&amp;&quot;year&quot;!==l?o(&quot;stepmode&quot;):e.stepmode=&quot;backward&quot;,o(&quot;count&quot;)),o(&quot;label&quot;)}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,&quot;rangeselector&quot;);function d(t,e){return n.coerce(h,p,s,t,e)}if(d(&quot;visible&quot;,o(h,p,{name:&quot;buttons&quot;,handleItemDefaults:c,calendar:f}).length&gt;0)){var g=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a&lt;n.length;a++){var o=e[n[a]].domain;o&amp;&amp;(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(&quot;x&quot;,g[0]),d(&quot;y&quot;,g[1]),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),d(&quot;xanchor&quot;),d(&quot;yanchor&quot;),n.coerceFont(d,&quot;font&quot;,r.font);var m=d(&quot;bgcolor&quot;);d(&quot;activecolor&quot;,i.contrast(m,l.lightAmount,l.darkAmount)),d(&quot;bordercolor&quot;),d(&quot;borderwidth&quot;)}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/array_container_defaults&quot;:849,&quot;../color&quot;:666,&quot;./attributes&quot;:732,&quot;./constants&quot;:733}],735:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../color&quot;),s=t(&quot;../drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../plots/cartesian/axis_ids&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR,m=t(&quot;./constants&quot;),v=t(&quot;./get_update_object&quot;);function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,&quot;rect&quot;,&quot;selector-rect&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));n.attr({rx:m.rx,ry:m.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){l.ensureSingle(t,&quot;text&quot;,&quot;selector-text&quot;,(function(t){t.attr(&quot;text-anchor&quot;,&quot;middle&quot;)})).call(s.font,e.font).text(function(t,e){if(t.label)return e?l.templateString(t.label,e):t.label;return&quot;all&quot;===t.step?&quot;all&quot;:t.count+t.step.charAt(0)}(r,n._fullLayout._meta)).call((function(t){u.convertToTspans(t,n)}))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(&quot;.rangeselector&quot;).data(function(t){for(var e=f.list(t,&quot;x&quot;,!0),r=[],n=0;n&lt;e.length;n++){var i=e[n];i.rangeselector&amp;&amp;i.rangeselector.visible&amp;&amp;r.push(i)}return r}(t),y);e.enter().append(&quot;g&quot;).classed(&quot;rangeselector&quot;,!0),e.exit().remove(),e.style({cursor:&quot;pointer&quot;,&quot;pointer-events&quot;:&quot;all&quot;}),e.each((function(e){var r=n.select(this),o=e,f=o.rangeselector,h=r.selectAll(&quot;g.button&quot;).data(l.filterVisible(f.buttons));h.enter().append(&quot;g&quot;).classed(&quot;button&quot;,!0),h.exit().remove(),h.each((function(e){var r=n.select(this),a=v(o,e);e._isActive=function(t,e,r){if(&quot;all&quot;===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&amp;&amp;t.range[1]===r[n[1]]}(o,e,a),r.call(x,f,e),r.call(b,f,e,t),r.on(&quot;click&quot;,(function(){t._dragged||i.call(&quot;_guiRelayout&quot;,t,a)})),r.on(&quot;mouseover&quot;,(function(){e._isHovered=!0,r.call(x,f,e)})),r.on(&quot;mouseout&quot;,(function(){e._isHovered=!1,r.call(x,f,e)}))})),function(t,e,r,i,o){var f=0,h=0,v=r.borderwidth;e.each((function(){var t=n.select(this).select(&quot;.selector-text&quot;),e=r.font.size*p,i=Math.max(e*u.lineCount(t),16)+3;h=Math.max(h,i)})),e.each((function(){var t=n.select(this),e=t.select(&quot;.selector-rect&quot;),i=t.select(&quot;.selector-text&quot;),a=i.node()&amp;&amp;s.bBox(i.node()).width,o=r.font.size*p,l=u.lineCount(i),d=Math.max(a+10,m.minButtonWidth);t.attr(&quot;transform&quot;,c(v+f,v)),e.attr({x:0,y:0,width:d,height:h}),u.positionText(i,d/2,h/2-(l-1)*o/2+3),f+=d+5}));var y=t._fullLayout._size,x=y.l+y.w*r.x,b=y.t+y.h*(1-r.y),_=&quot;left&quot;;l.isRightAnchor(r)&amp;&amp;(x-=f,_=&quot;right&quot;);l.isCenterAnchor(r)&amp;&amp;(x-=f/2,_=&quot;center&quot;);var w=&quot;top&quot;;l.isBottomAnchor(r)&amp;&amp;(b-=h,w=&quot;bottom&quot;);l.isMiddleAnchor(r)&amp;&amp;(b-=h/2,w=&quot;middle&quot;);f=Math.ceil(f),h=Math.ceil(h),x=Math.round(x),b=Math.round(b),a.autoMargin(t,i+&quot;-range-selector&quot;,{x:r.x,y:r.y,l:f*d[_],r:f*g[_],b:h*g[w],t:h*d[w]}),o.attr(&quot;transform&quot;,c(x,b))}(t,h,f,o._name,r)}))}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../drawing&quot;:688,&quot;./constants&quot;:733,&quot;./get_update_object&quot;:736,&quot;@plotly/d3&quot;:58}],736:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-time&quot;),i=t(&quot;../../lib&quot;).titleCase;e.exports=function(t,e){var r=t._name,a={};if(&quot;all&quot;===e.step)a[r+&quot;.autorange&quot;]=!0;else{var o=function(t,e){var r,a=t.range,o=new Date(t.r2l(a[1])),s=e.step,l=n[&quot;utc&quot;+i(s)],c=e.count;switch(e.stepmode){case&quot;backward&quot;:r=t.l2r(+l.offset(o,-c));break;case&quot;todate&quot;:var u=l.offset(o,-c);r=t.l2r(+l.ceil(u))}var f=a[1];return[r,f]}(t,e);a[r+&quot;.range[0]&quot;]=o[0],a[r+&quot;.range[1]&quot;]=o[1]}return a}},{&quot;../../lib&quot;:803,&quot;d3-time&quot;:177}],737:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;rangeselector&quot;,schema:{subplots:{xaxis:{rangeselector:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:732,&quot;./defaults&quot;:734,&quot;./draw&quot;:735}],738:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,dflt:n.background,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:n.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;integer&quot;,dflt:0,min:0,editType:&quot;plot&quot;},autorange:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;calc&quot;,impliedEdits:{autorange:!1}},thickness:{valType:&quot;number&quot;,dflt:.15,min:0,max:1,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;}},{&quot;../color/attributes&quot;:665}],739:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;).list,i=t(&quot;../../plots/cartesian/autorange&quot;).getAutoRange,a=t(&quot;./constants&quot;);e.exports=function(t){for(var e=n(t,&quot;x&quot;,!0),r=0;r&lt;e.length;r++){var o=e[r],s=o[a.name];s&amp;&amp;s.visible&amp;&amp;s.autorange&amp;&amp;(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{&quot;../../plots/cartesian/autorange&quot;:853,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;./constants&quot;:740}],740:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rangeslider&quot;,containerClassName:&quot;rangeslider-container&quot;,bgClassName:&quot;rangeslider-bg&quot;,rangePlotClassName:&quot;rangeslider-rangeplot&quot;,maskMinClassName:&quot;rangeslider-mask-min&quot;,maskMaxClassName:&quot;rangeslider-mask-max&quot;,slideBoxClassName:&quot;rangeslider-slidebox&quot;,grabberMinClassName:&quot;rangeslider-grabber-min&quot;,grabAreaMinClassName:&quot;rangeslider-grabarea-min&quot;,handleMinClassName:&quot;rangeslider-handle-min&quot;,grabberMaxClassName:&quot;rangeslider-grabber-max&quot;,grabAreaMaxClassName:&quot;rangeslider-grabarea-max&quot;,handleMaxClassName:&quot;rangeslider-handle-max&quot;,maskMinOppAxisClassName:&quot;rangeslider-mask-min-opp-axis&quot;,maskMaxOppAxisClassName:&quot;rangeslider-mask-max-opp-axis&quot;,maskColor:&quot;rgba(0,0,0,0.4)&quot;,maskOppAxisColor:&quot;rgba(0,0,0,0.2)&quot;,slideBoxFill:&quot;transparent&quot;,slideBoxCursor:&quot;ew-resize&quot;,grabAreaFill:&quot;transparent&quot;,grabAreaCursor:&quot;col-resize&quot;,grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],741:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./oppaxis_attributes&quot;);e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,&quot;rangeslider&quot;);if(_(&quot;visible&quot;)){_(&quot;bgcolor&quot;,e.plot_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),_(&quot;thickness&quot;),_(&quot;autorange&quot;,!c.isValidRange(h.range)),_(&quot;range&quot;);var d=e._subplots;if(d)for(var g=d.cartesian.filter((function(t){return t.substr(0,t.indexOf(&quot;y&quot;))===a.name2id(r)})).map((function(t){return t.substr(t.indexOf(&quot;y&quot;),t.length)})),m=n.simpleMap(g,a.id2name),v=0;v&lt;m.length;v++){var y=m[v];u=h[y]||{},f=i.newContainer(p,y,&quot;yaxis&quot;);var x,b=e[y];u.range&amp;&amp;b.isValidRange(u.range)&amp;&amp;(x=&quot;fixed&quot;),&quot;match&quot;!==w(&quot;rangemode&quot;,x)&amp;&amp;w(&quot;range&quot;,b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;./attributes&quot;:738,&quot;./oppaxis_attributes&quot;:745}],742:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../drawing&quot;),c=t(&quot;../color&quot;),u=t(&quot;../titles&quot;),f=t(&quot;../../plots/cartesian&quot;),h=t(&quot;../../plots/cartesian/axis_ids&quot;),p=t(&quot;../dragelement&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;./constants&quot;);function m(t,e,r,n){var i=o.ensureSingle(t,&quot;rect&quot;,g.bgClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=l.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(c,c),fill:n.bgcolor,stroke:n.bordercolor,&quot;stroke-width&quot;:u})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,&quot;clipPath&quot;,n._clipId,(function(t){t.append(&quot;rect&quot;).attr({x:0,y:0})})).select(&quot;rect&quot;).attr({width:n._width,height:n._height})}function y(t,e,r,i){var s,c=e.calcdata,u=t.selectAll(&quot;g.&quot;+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return g.rangePlotClassName+&quot; &quot;+t})).call(l.setClipUrl,i._clipId,e),u.order(),u.exit().remove(),u.each((function(t,o){var l=n.select(this),u=0===o,p=h.getFromId(e,t,&quot;y&quot;),d=p._name,g=i[d],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};r.rangebreaks&amp;&amp;(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[d]={type:p.type,domain:[0,1],range:&quot;match&quot;!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&amp;&amp;(m.layout[d].rangebreaks=p.rangebreaks),a.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[d];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:t,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=x:(x.mainplot=&quot;xy&quot;,x.mainplotinfo=s),f.rangePlot(e,x,function(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&amp;&amp;r.push(i)}return r}(c,t))}))}function x(t,e,r,n,i){(o.ensureSingle(t,&quot;rect&quot;,g.maskMinClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),&quot;match&quot;!==i.rangemode)&amp;&amp;(o.ensureSingle(t,&quot;rect&quot;,g.maskMinOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).style(&quot;border-top&quot;,g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function b(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,&quot;rect&quot;,g.slideBoxClassName,(function(t){t.attr({y:0,cursor:g.slideBoxCursor,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr({height:n._height,fill:g.slideBoxFill})}function _(t,e,r,n){var i=o.ensureSingle(t,&quot;g&quot;,g.grabberMinClassName),a=o.ensureSingle(t,&quot;g&quot;,g.grabberMaxClassName),s={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:g.handleStrokeWidth,&quot;shape-rendering&quot;:&quot;crispEdges&quot;},l={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(i,&quot;rect&quot;,g.handleMinClassName,(function(t){t.attr(s)})).attr(l),o.ensureSingle(a,&quot;rect&quot;,g.handleMaxClassName,(function(t){t.attr(s)})).attr(l);var u={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:e._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(i,&quot;rect&quot;,g.grabAreaMinClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height),o.ensureSingle(a,&quot;rect&quot;,g.grabAreaMaxClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height)}e.exports=function(t){for(var e=t._fullLayout,r=e._rangeSliderData,a=0;a&lt;r.length;a++){var l=r[a][g.name];l._clipId=l._id+&quot;-&quot;+e._uid}var c=e._infolayer.selectAll(&quot;g.&quot;+g.containerClassName).data(r,(function(t){return t._name}));c.exit().each((function(t){var r=t[g.name];e._topdefs.select(&quot;#&quot;+r._clipId).remove()})).remove(),0!==r.length&amp;&amp;(c.enter().append(&quot;g&quot;).classed(g.containerClassName,!0).attr(&quot;pointer-events&quot;,&quot;all&quot;),c.each((function(r){var a=n.select(this),l=r[g.name],c=e[h.id2name(r.anchor)],f=l[h.id2name(r.anchor)];if(l.range){var w,T=o.simpleMap(l.range,r.r2l),k=o.simpleMap(r.range,r.r2l);w=k[0]&lt;k[1]?[Math.min(T[0],k[0]),Math.max(T[1],k[1])]:[Math.max(T[0],k[0]),Math.min(T[1],k[1])],l.range=l._input.range=o.simpleMap(w,r.l2r)}r.cleanRange(&quot;rangeslider.range&quot;);var A=e._size,M=r.domain;l._width=A.w*(M[1]-M[0]);var S=Math.round(A.l+A.w*M[0]),E=Math.round(A.t+A.h*(1-r._counterDomainMin)+(&quot;bottom&quot;===r.side?r._depth:0)+l._offsetShift+g.extraPad);a.attr(&quot;transform&quot;,s(S,E)),l._rl=o.simpleMap(l.range,r.r2l);var L=l._rl[0],C=l._rl[1],P=C-L;if(l.p2d=function(t){return t/l._width*P+L},l.d2p=function(t){return(t-L)/P*l._width},r.rangebreaks){var I=r.locateBreaks(L,C);if(I.length){var O,z,D=0;for(O=0;O&lt;I.length;O++)D+=(z=I[O]).max-z.min;var R=l._width/(C-L-D),F=[-R*L];for(O=0;O&lt;I.length;O++)z=I[O],F.push(F[F.length-1]-R*(z.max-z.min));for(l.d2p=function(t){for(var e=F[0],r=0;r&lt;I.length;r++){var n=I[r];if(t&gt;=n.max)e=F[r+1];else if(t&lt;n.min)break}return e+R*t},O=0;O&lt;I.length;O++)(z=I[O]).pmin=l.d2p(z.min),z.pmax=l.d2p(z.max);l.p2d=function(t){for(var e=F[0],r=0;r&lt;I.length;r++){var n=I[r];if(t&gt;=n.pmax)e=F[r+1];else if(t&lt;n.pmin)break}return(t-e)/R}}}if(&quot;match&quot;!==f.rangemode){var B=c.r2l(f.range[0]),N=c.r2l(f.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/N*l._height}}a.call(m,t,r,l).call(v,t,r,l).call(y,t,r,l).call(x,t,r,l,f).call(b,t,r,l).call(_,t,r,l),function(t,e,r,a){if(e._context.staticPlot)return;var s=t.select(&quot;rect.&quot;+g.slideBoxClassName).node(),l=t.select(&quot;rect.&quot;+g.grabAreaMinClassName).node(),c=t.select(&quot;rect.&quot;+g.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,h=u.clientX||u.touches[0].clientX,g=h-t.node().getBoundingClientRect().left,m=a.d2p(r._rl[0]),v=a.d2p(r._rl[1]),y=p.coverSlip();function x(t){var u,p,x,b=+(t.clientX||t.touches[0].clientX)-h;switch(f){case s:x=&quot;ew-resize&quot;,u=m+b,p=v+b;break;case l:x=&quot;col-resize&quot;,u=m+b,p=v;break;case c:x=&quot;col-resize&quot;,u=m,p=v+b;break;default:x=&quot;ew-resize&quot;,u=g,p=g+b}if(p&lt;u){var _=p;p=u,u=_}a._pixelMin=u,a._pixelMax=p,d(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){i.call(&quot;_guiRelayout&quot;,e,r._name+&quot;.range&quot;,[s,l])}))}(0,e,r,a)}function b(){y.removeEventListener(&quot;mousemove&quot;,x),y.removeEventListener(&quot;mouseup&quot;,b),this.removeEventListener(&quot;touchmove&quot;,x),this.removeEventListener(&quot;touchend&quot;,b),o.removeElement(y)}this.addEventListener(&quot;touchmove&quot;,x),this.addEventListener(&quot;touchend&quot;,b),y.addEventListener(&quot;mousemove&quot;,x),y.addEventListener(&quot;mouseup&quot;,b)}t.on(&quot;mousedown&quot;,u),t.on(&quot;touchstart&quot;,u)}(a,t,r,l),function(t,e,r,n,i,a){var l=g.handleWidth/2;function c(t){return o.constrain(t,0,n._width)}function u(t){return o.constrain(t,0,n._height)}function f(t){return o.constrain(t,-l,n._width+l)}var h=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;x&quot;,h).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMinClassName).attr(&quot;width&quot;,h),t.select(&quot;rect.&quot;+g.maskMaxClassName).attr(&quot;x&quot;,p).attr(&quot;width&quot;,n._width-p),&quot;match&quot;!==a.rangemode){var d=n._height-u(n.d2pOppAxis(i._rl[1])),m=n._height-u(n.d2pOppAxis(i._rl[0]));t.select(&quot;rect.&quot;+g.maskMinOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;height&quot;,d).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMaxOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;y&quot;,m).attr(&quot;height&quot;,n._height-m).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;y&quot;,d).attr(&quot;height&quot;,m-d)}var v=Math.round(f(h-l))-.5,y=Math.round(f(p-l))+.5;t.select(&quot;g.&quot;+g.grabberMinClassName).attr(&quot;transform&quot;,s(v,.5)),t.select(&quot;g.&quot;+g.grabberMaxClassName).attr(&quot;transform&quot;,s(y,.5))}(a,0,r,l,c,f),&quot;bottom&quot;===r.side&amp;&amp;u.draw(t,r._id+&quot;title&quot;,{propContainer:r,propName:r._name+&quot;.title&quot;,placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:E+l._height+l._offsetShift+10+1.5*r.title.font.size,&quot;text-anchor&quot;:&quot;middle&quot;}})})))}},{&quot;../../lib&quot;:803,&quot;../../lib/setcursor&quot;:824,&quot;../../plots/cartesian&quot;:868,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;../titles&quot;:764,&quot;./constants&quot;:740,&quot;@plotly/d3&quot;:58}],743:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../lib/svg_text_utils&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../constants/alignment&quot;).LINE_SPACING,s=a.name;function l(t){var e=t&amp;&amp;t[s];return e&amp;&amp;e.visible}r.isVisible=l,r.makeData=function(t){var e=n.list({_fullLayout:t},&quot;x&quot;,!0),r=t.margin,i=[];if(!t._has(&quot;gl2d&quot;))for(var a=0;a&lt;e.length;a++){var o=e[a];if(l(o)){i.push(o);var c=o[s];c._id=s+o._id,c._height=(t.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}t._rangeSliderData=i},r.autoMarginOpts=function(t,e){var r=t._fullLayout,n=e[s],l=e._id.charAt(0),c=0,u=0;&quot;bottom&quot;===e.side&amp;&amp;(c=e._depth,e.title.text!==r._dfltTitle[l]&amp;&amp;(u=1.5*e.title.font.size+10+n._offsetShift,u+=(e.title.text.match(i.BR_TAG_ALL)||[]).length*e.title.font.size*o));return{x:0,y:e._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:a.extraPad+2*n._offsetShift}}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;./constants&quot;:740}],744:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./oppaxis_attributes&quot;),o=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;rangeslider&quot;,schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:t(&quot;./draw&quot;),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{&quot;../../lib&quot;:803,&quot;./attributes&quot;:738,&quot;./calc_autorange&quot;:739,&quot;./defaults&quot;:741,&quot;./draw&quot;:742,&quot;./helpers&quot;:743,&quot;./oppaxis_attributes&quot;:745}],745:[function(t,e,r){&quot;use strict&quot;;e.exports={_isSubplotObj:!0,rangemode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;fixed&quot;,&quot;match&quot;],dflt:&quot;match&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},editType:&quot;calc&quot;}},{}],746:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../traces/scatter/attributes&quot;).line,a=t(&quot;../drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=s(&quot;shape&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;rect&quot;,&quot;path&quot;,&quot;line&quot;],editType:&quot;calc+arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},xref:o({},n.xref,{}),xsizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yref:o({},n.yref,{}),ysizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},path:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},line:{color:o({},i.color,{editType:&quot;arraydraw&quot;}),width:o({},i.width,{editType:&quot;calc+arraydraw&quot;}),dash:o({},a,{editType:&quot;arraydraw&quot;}),editType:&quot;calc+arraydraw&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;arraydraw&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc+arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:772,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/plot_template&quot;:843,&quot;../../traces/scatter/attributes&quot;:1218,&quot;../annotations/attributes&quot;:649,&quot;../drawing/attributes&quot;:687}],747:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;./helpers&quot;);function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(&quot;pixel&quot;===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p&lt;0?Math.abs(p)+c:c,g=h&gt;0?h+c:c;return{ppad:c,ppadplus:u?d:g,ppadminus:u?g:d}}return{ppad:c}}function u(t,e,r,n,i){var s=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(&quot;date&quot;===t.type&amp;&amp;(s=o.decodeDate(s)),l=0;l&lt;d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&amp;&amp;(!(u=d[l].substr(1).match(a.paramRE))||u.length&lt;c||((f=s(u[c]))&lt;h&amp;&amp;(h=f),f&gt;p&amp;&amp;(p=f)));return p&gt;=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&amp;&amp;t._fullData.length)for(var o=0;o&lt;r.length;o++){var c,f,h=r[o];h._extremes={};var p=i.getRefType(h.xref),d=i.getRefType(h.yref);if(&quot;paper&quot;!==h.xref&amp;&amp;&quot;domain&quot;!==p){var g=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x0,m=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),g,m,h.path,a.paramIsX))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(&quot;paper&quot;!==h.yref&amp;&amp;&quot;domain&quot;!==d){var v=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y0,y=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),v,y,h.path,a.paramIsY))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;./constants&quot;:748,&quot;./helpers&quot;:757}],748:[function(t,e,r){&quot;use strict&quot;;e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],749:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./helpers&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(&quot;visible&quot;)){var l=a(&quot;path&quot;),c=a(&quot;type&quot;,l?&quot;path&quot;:&quot;rect&quot;);&quot;path&quot;!==e.type&amp;&amp;delete e.path,a(&quot;editable&quot;),a(&quot;layer&quot;),a(&quot;opacity&quot;),a(&quot;fillcolor&quot;),a(&quot;fillrule&quot;),a(&quot;line.width&quot;)&amp;&amp;(a(&quot;line.color&quot;),a(&quot;line.dash&quot;));for(var u=a(&quot;xsizemode&quot;),f=a(&quot;ysizemode&quot;),h=[&quot;x&quot;,&quot;y&quot;],p=0;p&lt;2;p++){var d,g,m,v=h[p],y=v+&quot;anchor&quot;,x=&quot;x&quot;===v?u:f,b={_fullLayout:r},_=i.coerceRef(t,e,b,v,void 0,&quot;paper&quot;);if(&quot;range&quot;===i.getRefType(_)?((d=i.getFromId(b,_))._shapeIndices.push(e._index),m=s.rangeToShapePosition(d),g=s.shapePositionToRange(d)):g=m=n.identity,&quot;path&quot;!==c){var w=v+&quot;0&quot;,T=v+&quot;1&quot;,k=t[w],A=t[T];t[w]=g(t[w],!0),t[T]=g(t[T],!0),&quot;pixel&quot;===x?(a(w,0),a(T,10)):(i.coercePosition(e,b,a,_,w,.25),i.coercePosition(e,b,a,_,T,.75)),e[w]=m(e[w]),e[T]=m(e[T]),t[w]=k,t[T]=A}if(&quot;pixel&quot;===x){var M=t[y];t[y]=g(t[y],!0),i.coercePosition(e,b,a,_,y,.25),e[y]=m(e[y]),t[y]=M}}&quot;path&quot;===c?a(&quot;path&quot;):n.noneOrAll(t,e,[&quot;x0&quot;,&quot;x1&quot;,&quot;y0&quot;,&quot;y1&quot;])}}e.exports=function(t,e){a(t,e,{name:&quot;shapes&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/axes&quot;:854,&quot;./attributes&quot;:746,&quot;./helpers&quot;:757}],750:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;./draw_newshape/helpers&quot;).readPaths,s=t(&quot;./draw_newshape/display_outlines&quot;),l=t(&quot;../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,h=t(&quot;../dragelement&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;./constants&quot;),g=t(&quot;./helpers&quot;);function m(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(&quot;path&quot;).remove(),e._shapeLowerLayer.selectAll(&quot;path&quot;).remove(),e._plots){var n=e._plots[r].shapelayer;n&amp;&amp;n.selectAll(&quot;path&quot;).remove()}for(var i=0;i&lt;e.shapes.length;i++)e.shapes[i].visible&amp;&amp;x(t,i)}function v(t){return!!t._fullLayout._drawing}function y(t){return!t._context.edits.shapePosition}function x(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=&quot;'+e+'&quot;]').remove();var r=g.makeOptionsAndPlotinfo(t,e),l=r.options,x=r.plotinfo;if(l._input&amp;&amp;!1!==l.visible)if(&quot;below&quot;!==l.layer)k(t._fullLayout._shapeUpperLayer);else if(&quot;paper&quot;===l.xref||&quot;paper&quot;===l.yref)k(t._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)k((x.mainplotinfo||x).shapelayer);else k(t._fullLayout._shapeLowerLayer)}function k(r){var k=_(t,l),A={&quot;data-index&quot;:e,&quot;fill-rule&quot;:l.fillrule,d:k},M=l.opacity,S=l.fillcolor,E=l.line.width?l.line.color:&quot;rgba(0,0,0,0)&quot;,L=l.line.width,C=l.line.dash;L||!0!==l.editable||(L=5,C=&quot;solid&quot;);var P=&quot;Z&quot;!==k[k.length-1],I=y(t)&amp;&amp;l.editable&amp;&amp;t._fullLayout._activeShapeIndex===e;I&amp;&amp;(S=P?&quot;rgba(0,0,0,0)&quot;:t._fullLayout.activeshape.fillcolor,M=t._fullLayout.activeshape.opacity);var O,z=r.append(&quot;path&quot;).attr(A).style(&quot;opacity&quot;,M).call(c.stroke,E).call(c.fill,S).call(u.dashLine,C,L);if(b(z,t,l),(I||t._context.edits.shapePosition)&amp;&amp;(O=f(t.layout,&quot;shapes&quot;,l)),I){z.style({cursor:&quot;move&quot;});var D={element:z.node(),plotinfo:x,gd:t,editHelpers:O,isActiveShape:!0},R=o(k,t);s(R,z,D)}else t._context.edits.shapePosition?function(t,e,r,o,s,l){var c,f,m,y,x,T,k,A,M,S,E,L,C,P,I,O,z=&quot;pixel&quot;===r.xsizemode,D=&quot;pixel&quot;===r.ysizemode,R=&quot;line&quot;===r.type,F=&quot;path&quot;===r.type,B=l.modifyItem,N=a.getFromId(t,r.xref),j=a.getRefType(r.xref),U=a.getFromId(t,r.yref),V=a.getRefType(r.yref),q=g.getDataToPixel(t,N,!1,j),H=g.getDataToPixel(t,U,!0,V),G=g.getPixelToData(t,N,!1,j),Y=g.getPixelToData(t,U,!0,V),W=R?function(){var t=Math.max(r.line.width,10),n=s.append(&quot;g&quot;).attr(&quot;data-index&quot;,o);n.append(&quot;path&quot;).attr(&quot;d&quot;,e.attr(&quot;d&quot;)).style({cursor:&quot;move&quot;,&quot;stroke-width&quot;:t,&quot;stroke-opacity&quot;:&quot;0&quot;});var i={&quot;fill-opacity&quot;:&quot;0&quot;},a=Math.max(t/2,10);return n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;start-point&quot;,cx:z?q(r.xanchor)+r.x0:q(r.x0),cy:D?H(r.yanchor)-r.y0:H(r.y0),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;end-point&quot;,cx:z?q(r.xanchor)+r.x1:q(r.x1),cy:D?H(r.yanchor)-r.y1:H(r.y1),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n}():e,X={element:W.node(),gd:t,prepFn:function(n){if(v(t))return;z&amp;&amp;(x=q(r.xanchor));D&amp;&amp;(T=H(r.yanchor));&quot;path&quot;===r.type?I=r.path:(c=z?r.x0:q(r.x0),f=D?r.y0:H(r.y0),m=z?r.x1:q(r.x1),y=D?r.y1:H(r.y1));c&lt;m?(M=c,C=&quot;x0&quot;,S=m,P=&quot;x1&quot;):(M=m,C=&quot;x1&quot;,S=c,P=&quot;x0&quot;);!D&amp;&amp;f&lt;y||D&amp;&amp;f&gt;y?(k=f,E=&quot;y0&quot;,A=y,L=&quot;y1&quot;):(k=y,E=&quot;y1&quot;,A=f,L=&quot;y0&quot;);Z(n),Q(s,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l=&quot;&quot;;&quot;paper&quot;===n||o.autorange||(l+=n);&quot;paper&quot;===i||s.autorange||(l+=i);u.setClipUrl(t,l?&quot;clip&quot;+r._fullLayout._uid+l:null,r)}(e,r,t),X.moveFn=&quot;move&quot;===O?J:K,X.altKey=n.altKey},doneFn:function(){if(v(t))return;p(e),$(s),b(e,t,r),n.call(&quot;_guiRelayout&quot;,t,l.getUpdateObj())},clickFn:function(){if(v(t))return;$(s)}};function Z(r){if(v(t))O=null;else if(R)O=&quot;path&quot;===r.target.tagName?&quot;move&quot;:&quot;start-point&quot;===r.target.attributes[&quot;data-line-point&quot;].value?&quot;resize-over-start-point&quot;:&quot;resize-over-end-point&quot;;else{var n=X.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!F&amp;&amp;i&gt;10&amp;&amp;a&gt;10&amp;&amp;!r.shiftKey?h.getCursor(o/i,1-s/a):&quot;move&quot;;p(e,l),O=l.split(&quot;-&quot;)[0]}}function J(n,i){if(&quot;path&quot;===r.type){var a=function(t){return t},o=a,l=a;z?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(I,o,l))}else z?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(B(&quot;x0&quot;,r.x0=G(c+n)),B(&quot;x1&quot;,r.x1=G(m+n))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(B(&quot;y0&quot;,r.y0=Y(f+i)),B(&quot;y1&quot;,r.y1=Y(y+i)));e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function K(n,i){if(F){var a=function(t){return t},o=a,l=a;z?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(I,o,l))}else if(R){if(&quot;resize-over-start-point&quot;===O){var u=c+n,h=D?f-i:f+i;B(&quot;x0&quot;,r.x0=z?u:G(u)),B(&quot;y0&quot;,r.y0=D?h:Y(h))}else if(&quot;resize-over-end-point&quot;===O){var p=m+n,d=D?y-i:y+i;B(&quot;x1&quot;,r.x1=z?p:G(p)),B(&quot;y1&quot;,r.y1=D?d:Y(d))}}else{var v=function(t){return-1!==O.indexOf(t)},b=v(&quot;n&quot;),j=v(&quot;s&quot;),V=v(&quot;w&quot;),W=v(&quot;e&quot;),X=b?k+i:k,Z=j?A+i:A,J=V?M+n:M,K=W?S+n:S;D&amp;&amp;(b&amp;&amp;(X=k-i),j&amp;&amp;(Z=A-i)),(!D&amp;&amp;Z-X&gt;10||D&amp;&amp;X-Z&gt;10)&amp;&amp;(B(E,r[E]=D?X:Y(X)),B(L,r[L]=D?Z:Y(Z))),K-J&gt;10&amp;&amp;(B(C,r[C]=z?J:G(J)),B(P,r[P]=z?K:G(K)))}e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function Q(t,e){(z||D)&amp;&amp;function(){var r=&quot;path&quot;!==e.type,n=t.selectAll(&quot;.visual-cue&quot;).data([0]);n.enter().append(&quot;path&quot;).attr({fill:&quot;#fff&quot;,&quot;fill-rule&quot;:&quot;evenodd&quot;,stroke:&quot;#000&quot;,&quot;stroke-width&quot;:1}).classed(&quot;visual-cue&quot;,!0);var a=q(z?e.xanchor:i.midRange(r?[e.x0,e.x1]:g.extractPathCoords(e.path,d.paramIsX))),o=H(D?e.yanchor:i.midRange(r?[e.y0,e.y1]:g.extractPathCoords(e.path,d.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,1),o=g.roundPositionForSharpStrokeRendering(o,1),z&amp;&amp;D){var s=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-1-1)+&quot;h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z&quot;;n.attr(&quot;d&quot;,s)}else if(z){var l=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-9-1)+&quot;v18 h2 v-18 Z&quot;;n.attr(&quot;d&quot;,l)}else{var c=&quot;M&quot;+(a-9-1)+&quot;,&quot;+(o-1-1)+&quot;h18 v2 h-18 Z&quot;;n.attr(&quot;d&quot;,c)}}()}function $(t){t.selectAll(&quot;.visual-cue&quot;).remove()}h.init(X),W.node().onmousemove=Z}(t,z,l,e,r,O):!0===l.editable&amp;&amp;z.style(&quot;pointer-events&quot;,P||c.opacity(S)*M&lt;=.5?&quot;stroke&quot;:&quot;all&quot;);z.node().addEventListener(&quot;click&quot;,(function(){return function(t,e){if(!y(t))return;var r=+e.node().getAttribute(&quot;data-index&quot;);if(r&gt;=0){if(r===t._fullLayout._activeShapeIndex)return void T(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=T,m(t)}}(t,z)}))}}function b(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,&quot;&quot;).replace(/[xyz][1-9]* *domain/g,&quot;&quot;);u.setClipUrl(t,n?&quot;clip&quot;+e._fullLayout._uid+n:null,e)}function _(t,e){var r,n,o,s,l,c,u,f,h=e.type,p=a.getRefType(e.xref),m=a.getRefType(e.yref),v=a.getFromId(t,e.xref),y=a.getFromId(t,e.yref),x=t._fullLayout._size;if(v?&quot;domain&quot;===p?n=function(t){return v._offset+v._length*t}:(r=g.shapePositionToRange(v),n=function(t){return v._offset+v.r2p(r(t,!0))}):n=function(t){return x.l+x.w*t},y?&quot;domain&quot;===m?s=function(t){return y._offset+y._length*(1-t)}:(o=g.shapePositionToRange(y),s=function(t){return y._offset+y.r2p(o(t,!0))}):s=function(t){return x.t+x.h*(1-t)},&quot;path&quot;===h)return v&amp;&amp;&quot;date&quot;===v.type&amp;&amp;(n=g.decodeDate(n)),y&amp;&amp;&quot;date&quot;===y.type&amp;&amp;(s=g.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(d.segmentRE,(function(t){var n=0,c=t.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=t.substr(1).replace(d.paramRE,(function(t){return u[n]?t=&quot;pixel&quot;===a?e(s)+Number(t):e(t):f[n]&amp;&amp;(t=&quot;pixel&quot;===o?r(l)-Number(t):r(t)),++n&gt;h&amp;&amp;(t=&quot;X&quot;),t}));return n&gt;h&amp;&amp;(p=p.replace(/[\s,]*X.*/,&quot;&quot;),i.log(&quot;Ignoring extra params in segment &quot;+t)),c+p}))}(e,n,s);if(&quot;pixel&quot;===e.xsizemode){var b=n(e.xanchor);l=b+e.x0,c=b+e.x1}else l=n(e.x0),c=n(e.x1);if(&quot;pixel&quot;===e.ysizemode){var _=s(e.yanchor);u=_-e.y0,f=_-e.y1}else u=s(e.y0),f=s(e.y1);if(&quot;line&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;L&quot;+c+&quot;,&quot;+f;if(&quot;rect&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;H&quot;+c+&quot;V&quot;+f+&quot;H&quot;+l+&quot;Z&quot;;var w=(l+c)/2,T=(u+f)/2,k=Math.abs(w-l),A=Math.abs(T-u),M=&quot;A&quot;+k+&quot;,&quot;+A,S=w+k+&quot;,&quot;+T;return&quot;M&quot;+S+M+&quot; 0 1,1 &quot;+(w+&quot;,&quot;+(T-A))+M+&quot; 0 0,1 &quot;+S+&quot;Z&quot;}function w(t,e,r){return t.replace(d.segmentRE,(function(t){var n=0,i=t.charAt(0),a=d.paramIsX[i],o=d.paramIsY[i],s=d.numParams[i];return i+t.substr(1).replace(d.paramRE,(function(t){return n&gt;=s||(a[n]?t=e(t):o[n]&amp;&amp;(t=r(t)),n++),t}))}))}function T(t){y(t)&amp;&amp;(t._fullLayout._activeShapeIndex&gt;=0&amp;&amp;(l(t),delete t._fullLayout._activeShapeIndex,m(t)))}e.exports={draw:m,drawOne:x,eraseActiveShape:function(t){if(!y(t))return;l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e&lt;r.length){for(var i=[],a=0;a&lt;r.length;a++)a!==e&amp;&amp;i.push(r[a]);delete t._fullLayout._activeShapeIndex,n.call(&quot;_guiRelayout&quot;,t,{shapes:i})}}}},{&quot;../../lib&quot;:803,&quot;../../lib/setcursor&quot;:824,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/handle_outline&quot;:865,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;./constants&quot;:748,&quot;./draw_newshape/display_outlines&quot;:754,&quot;./draw_newshape/helpers&quot;:755,&quot;./helpers&quot;:757}],751:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../drawing/attributes&quot;).dash,i=t(&quot;../../../lib/extend&quot;).extendFlat;e.exports={newshape:{line:{color:{valType:&quot;color&quot;,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:0,dflt:4,editType:&quot;none&quot;},dash:i({},n,{dflt:&quot;solid&quot;,editType:&quot;none&quot;}),editType:&quot;none&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;none&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;none&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;none&quot;},drawdirection:{valType:&quot;enumerated&quot;,values:[&quot;ortho&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;diagonal&quot;],dflt:&quot;diagonal&quot;,editType:&quot;none&quot;},editType:&quot;none&quot;},activeshape:{fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgb(255,0,255)&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;none&quot;},editType:&quot;none&quot;}}},{&quot;../../../lib/extend&quot;:793,&quot;../../drawing/attributes&quot;:687}],752:[function(t,e,r){&quot;use strict&quot;;e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],753:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../color&quot;);e.exports=function(t,e,r){if(r(&quot;newshape.drawdirection&quot;),r(&quot;newshape.layer&quot;),r(&quot;newshape.fillcolor&quot;),r(&quot;newshape.fillrule&quot;),r(&quot;newshape.opacity&quot;),r(&quot;newshape.line.width&quot;)){var i=(t||{}).plot_bgcolor||&quot;#FFF&quot;;r(&quot;newshape.line.color&quot;,n.contrast(i)),r(&quot;newshape.line.dash&quot;)}r(&quot;activeshape.fillcolor&quot;),r(&quot;activeshape.opacity&quot;)}},{&quot;../../color&quot;:666}],754:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement&quot;),i=t(&quot;../../dragelement/helpers&quot;).drawMode,a=t(&quot;../../../registry&quot;),o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,h=t(&quot;./helpers&quot;),p=h.pointsShapeRectangle,d=h.pointsShapeEllipse,g=h.writePaths,m=t(&quot;./newshapes&quot;);e.exports=function t(e,r,o,h){h||(h=0);var v=o.gd;function y(){t(e,r,o,h++),d(e[0])&amp;&amp;x({redrawing:!0})}function x(t){o.isActiveShape=!1;var e=m(r,o);Object.keys(e).length&amp;&amp;a.call((t||{}).redrawing?&quot;relayout&quot;:&quot;_guiRelayout&quot;,v,e)}var b,_,w,T,k,A=o.isActiveShape,M=v._fullLayout._zoomlayer,S=o.dragmode;(i(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex&gt;=0&amp;&amp;f(v),r.attr(&quot;d&quot;,g(e)),A&amp;&amp;!h)&amp;&amp;(k=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];t[r]=[];for(var i=0;i&lt;n.length;i++){t[r][i]=[];for(var a=0;a&lt;n[i].length;a++)t[r][i][a]=n[i][a]}}return t}([],e),function(t){b=[];for(var r=0;r&lt;e.length;r++){var i=e[r],a=!p(i)&amp;&amp;d(i);b[r]=[];for(var o=0;o&lt;i.length;o++)if(&quot;Z&quot;!==i[o][0]&amp;&amp;(!a||o===s||o===l||o===c||o===u)){var f=i[o][1],h=i[o][2],g=t.append(&quot;circle&quot;).classed(&quot;cursor-grab&quot;,!0).attr(&quot;data-i&quot;,r).attr(&quot;data-j&quot;,o).attr(&quot;cx&quot;,f).attr(&quot;cy&quot;,h).attr(&quot;r&quot;,4).style({&quot;mix-blend-mode&quot;:&quot;luminosity&quot;,fill:&quot;black&quot;,stroke:&quot;white&quot;,&quot;stroke-width&quot;:1});b[r][o]={element:g.node(),gd:v,prepFn:E,doneFn:C,clickFn:P},n.init(b[r][o])}}}(M.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;outline-controllers&quot;)),function(){if(_=[],!e.length)return;_[0]={element:r[0][0],gd:v,prepFn:O,doneFn:z},n.init(_[0])}());function E(t){w=+t.srcElement.getAttribute(&quot;data-i&quot;),T=+t.srcElement.getAttribute(&quot;data-j&quot;),b[w][T].moveFn=L}function L(t,r){if(e.length){var n=k[w][T][1],i=k[w][T][2],a=e[w],o=a.length;if(p(a)){for(var s=0;s&lt;o;s++)if(s!==T){var l=a[s];l[1]===a[T][1]&amp;&amp;(l[1]=n+t),l[2]===a[T][2]&amp;&amp;(l[2]=i+r)}if(a[T][1]=n+t,a[T][2]=i+r,!p(a))for(var c=0;c&lt;o;c++)for(var u=0;u&lt;a[c].length;u++)a[c][u]=k[w][c][u]}else a[T][1]=n+t,a[T][2]=i+r;y()}}function C(){x()}function P(t,r){if(2===t){w=+r.srcElement.getAttribute(&quot;data-i&quot;),T=+r.srcElement.getAttribute(&quot;data-j&quot;);var n=e[w];p(n)||d(n)||function(){if(e.length&amp;&amp;e[w]&amp;&amp;e[w].length){for(var t=[],r=0;r&lt;e[w].length;r++)r!==T&amp;&amp;t.push(e[w][r]);t.length&gt;1&amp;&amp;(2!==t.length||&quot;Z&quot;!==t[1][0])&amp;&amp;(0===T&amp;&amp;(t[0][0]=&quot;M&quot;),e[w]=t,y(),x())}}()}}function I(t,r){!function(t,r){if(e.length)for(var n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)for(var a=0;a+2&lt;e[n][i].length;a+=2)e[n][i][a+1]=k[n][i][a+1]+t,e[n][i][a+2]=k[n][i][a+2]+r}(t,r),y()}function O(t){(w=+t.srcElement.getAttribute(&quot;data-i&quot;))||(w=0),_[w].moveFn=I}function z(){x()}}},{&quot;../../../plots/cartesian/handle_outline&quot;:865,&quot;../../../registry&quot;:931,&quot;../../dragelement&quot;:685,&quot;../../dragelement/helpers&quot;:684,&quot;./constants&quot;:752,&quot;./helpers&quot;:755,&quot;./newshapes&quot;:756}],755:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;./constants&quot;),a=i.CIRCLE_SIDES,o=i.SQRT2,s=t(&quot;../../../plots/cartesian/helpers&quot;),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function h(t,e){return Math.abs(t-e)&lt;=1e-6}function p(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(t){var e=t.length;if(!e)return&quot;M0,0Z&quot;;for(var r=&quot;&quot;,n=0;n&lt;e;n++)for(var i=t[n].length,a=0;a&lt;i;a++){var o=t[n][a][0];if(&quot;Z&quot;===o)r+=&quot;Z&quot;;else for(var s=t[n][a].length,l=0;l&lt;s;l++){var c=l;&quot;Q&quot;===o||&quot;S&quot;===o?c=f[l]:&quot;C&quot;===o&amp;&amp;(c=u[l]),r+=t[n][a][c],l&gt;0&amp;&amp;l&lt;s-1&amp;&amp;(r+=&quot;,&quot;)}}return r},r.readPaths=function(t,e,r,i){var o,s,u,f=n(t),h=[],p=-1,d=0,g=0,m=function(){s=d,u=g};m();for(var v=0;v&lt;f.length;v++){var y,x,b,_,w=[],T=f[v][0],k=T;switch(T){case&quot;M&quot;:p++,h[p]=[],d=+f[v][1],g=+f[v][2],w.push([k,d,g]),m();break;case&quot;Q&quot;:case&quot;S&quot;:y=+f[v][1],b=+f[v][2],d=+f[v][3],g=+f[v][4],w.push([k,d,g,y,b]);break;case&quot;C&quot;:y=+f[v][1],b=+f[v][2],x=+f[v][3],_=+f[v][4],d=+f[v][5],g=+f[v][6],w.push([k,d,g,y,b,x,_]);break;case&quot;T&quot;:case&quot;L&quot;:d=+f[v][1],g=+f[v][2],w.push([k,d,g]);break;case&quot;H&quot;:k=&quot;L&quot;,d=+f[v][1],w.push([k,d,g]);break;case&quot;V&quot;:k=&quot;L&quot;,g=+f[v][1],w.push([k,d,g]);break;case&quot;A&quot;:k=&quot;L&quot;;var A=+f[v][1],M=+f[v][2];+f[v][4]||(A=-A,M=-M);var S=d-A,E=g;for(o=1;o&lt;=a/2;o++){var L=2*Math.PI*o/a;w.push([k,S+A*Math.cos(L),E+M*Math.sin(L)])}break;case&quot;Z&quot;:d===s&amp;&amp;g===u||(d=s,g=u,w.push([k,d,g]))}for(var C=(r||{}).domain,P=e._fullLayout._size,I=r&amp;&amp;&quot;pixel&quot;===r.xsizemode,O=r&amp;&amp;&quot;pixel&quot;===r.ysizemode,z=!1===i,D=0;D&lt;w.length;D++){for(o=0;o+2&lt;7;o+=2){var R=w[D][o+1],F=w[D][o+2];void 0!==R&amp;&amp;void 0!==F&amp;&amp;(d=R,g=F,r&amp;&amp;(r.xaxis&amp;&amp;r.xaxis.p2r?(z&amp;&amp;(R-=r.xaxis._offset),R=I?c(r.xaxis,r.xanchor)+R:l(r.xaxis,R)):(z&amp;&amp;(R-=P.l),C?R=C.x[0]+R/P.w:R/=P.w),r.yaxis&amp;&amp;r.yaxis.p2r?(z&amp;&amp;(F-=r.yaxis._offset),F=O?c(r.yaxis,r.yanchor)-F:l(r.yaxis,F)):(z&amp;&amp;(F-=P.t),F=C?C.y[1]-F/P.h:1-F/P.h)),w[D][o+1]=R,w[D][o+2]=F)}h[p].push(w[D].slice())}}return h},r.pointsShapeRectangle=function(t){if(5!==t.length)return!1;for(var e=1;e&lt;3;e++){if(!h(t[0][e]-t[1][e],t[3][e]-t[2][e]))return!1;if(!h(t[0][e]-t[3][e],t[1][e]-t[2][e]))return!1}return!(!h(t[0][1],t[1][1])&amp;&amp;!h(t[0][1],t[3][1]))&amp;&amp;!!(p(t[0],t[1])*p(t[0],t[3]))},r.pointsShapeEllipse=function(t){var e=t.length;if(e!==a+1)return!1;e=a;for(var r=0;r&lt;e;r++){var n=(2*e-r)%e,i=(e/2+n)%e,o=(e/2+r)%e;if(!h(p(t[r],t[o]),p(t[n],t[i])))return!1}return!0},r.handleEllipse=function(t,e,n){if(!t)return[e,n];var i=r.ellipseOver({x0:e[0],y0:e[1],x1:n[0],y1:n[1]}),s=(i.x1+i.x0)/2,l=(i.y1+i.y0)/2,c=(i.x1-i.x0)/2,u=(i.y1-i.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],h=0;h&lt;a;h++){var p=2*h*Math.PI/a;f.push([s+c*Math.cos(p),l+u*Math.sin(p)])}return f},r.ellipseOver=function(t){var e=t.x0,r=t.y0,n=t.x1,i=t.y1,a=n-e,s=i-r,l=((e-=a)+n)/2,c=((r-=s)+i)/2;return{x0:l-(a*=o),y0:c-(s*=o),x1:l+a,y1:c+s}}},{&quot;../../../plots/cartesian/helpers&quot;:866,&quot;./constants&quot;:752,&quot;parse-svg-path&quot;:493}],756:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement/helpers&quot;),i=n.drawMode,a=n.openMode,o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=o.cos45,h=o.sin45,p=t(&quot;../../../plots/cartesian/helpers&quot;),d=p.p2r,g=p.r2p,m=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearSelect,v=t(&quot;./helpers&quot;),y=v.readPaths,x=v.writePaths,b=v.ellipseOver;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var n=r.getAttribute(&quot;d&quot;),o=e.gd,p=o._fullLayout.newshape,v=e.plotinfo,_=v.xaxis,w=v.yaxis,T=!!v.domain||!v.xaxis,k=!!v.domain||!v.yaxis,A=e.isActiveShape,M=e.dragmode,S=(o.layout||{}).shapes||[];if(!i(M)&amp;&amp;void 0!==A){var E=o._fullLayout._activeShapeIndex;if(E&lt;S.length)switch(o._fullLayout.shapes[E].type){case&quot;rect&quot;:M=&quot;drawrect&quot;;break;case&quot;circle&quot;:M=&quot;drawcircle&quot;;break;case&quot;line&quot;:M=&quot;drawline&quot;;break;case&quot;path&quot;:var L=S[E].path||&quot;&quot;;M=&quot;Z&quot;===L[L.length-1]?&quot;drawclosedpath&quot;:&quot;drawopenpath&quot;}}var C,P=a(M),I=y(n,o,v,A),O={editable:!0,xref:T?&quot;paper&quot;:_._id,yref:k?&quot;paper&quot;:w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(P||(O.fillcolor=p.fillcolor,O.fillrule=p.fillrule),1===I.length&amp;&amp;(C=I[0]),C&amp;&amp;&quot;drawrect&quot;===M)O.type=&quot;rect&quot;,O.x0=C[0][1],O.y0=C[0][2],O.x1=C[2][1],O.y1=C[2][2];else if(C&amp;&amp;&quot;drawline&quot;===M)O.type=&quot;line&quot;,O.x0=C[0][1],O.y0=C[0][2],O.x1=C[1][1],O.y1=C[1][2];else if(C&amp;&amp;&quot;drawcircle&quot;===M){O.type=&quot;circle&quot;;var z=C[s][1],D=C[l][1],R=C[c][1],F=C[u][1],B=C[s][2],N=C[l][2],j=C[c][2],U=C[u][2],V=v.xaxis&amp;&amp;(&quot;date&quot;===v.xaxis.type||&quot;log&quot;===v.xaxis.type),q=v.yaxis&amp;&amp;(&quot;date&quot;===v.yaxis.type||&quot;log&quot;===v.yaxis.type);V&amp;&amp;(z=g(v.xaxis,z),D=g(v.xaxis,D),R=g(v.xaxis,R),F=g(v.xaxis,F)),q&amp;&amp;(B=g(v.yaxis,B),N=g(v.yaxis,N),j=g(v.yaxis,j),U=g(v.yaxis,U));var H=(D+F)/2,G=(B+j)/2,Y=b({x0:H,y0:G,x1:H+(F-D+R-z)/2*f,y1:G+(U-N+j-B)/2*h});V&amp;&amp;(Y.x0=d(v.xaxis,Y.x0),Y.x1=d(v.xaxis,Y.x1)),q&amp;&amp;(Y.y0=d(v.yaxis,Y.y0),Y.y1=d(v.yaxis,Y.y1)),O.x0=Y.x0,O.y0=Y.y0,O.x1=Y.x1,O.y1=Y.y1}else O.type=&quot;path&quot;,_&amp;&amp;w&amp;&amp;function(t,e,r){var n=&quot;date&quot;===e.type,i=&quot;date&quot;===r.type;if(!n&amp;&amp;!i)return t;for(var a=0;a&lt;t.length;a++)for(var o=0;o&lt;t[a].length;o++)for(var s=0;s+2&lt;t[a][o].length;s+=2)n&amp;&amp;(t[a][o][s+1]=t[a][o][s+1].replace(&quot; &quot;,&quot;_&quot;)),i&amp;&amp;(t[a][o][s+2]=t[a][o][s+2].replace(&quot; &quot;,&quot;_&quot;))}(I,_,w),O.path=x(I),C=null;m(o);for(var W=e.editHelpers,X=(W||{}).modifyItem,Z=[],J=0;J&lt;S.length;J++){var K=o._fullLayout.shapes[J];if(Z[J]=K._input,void 0!==A&amp;&amp;J===o._fullLayout._activeShapeIndex){var Q=O;switch(K.type){case&quot;line&quot;:case&quot;rect&quot;:case&quot;circle&quot;:X(&quot;x0&quot;,Q.x0),X(&quot;x1&quot;,Q.x1),X(&quot;y0&quot;,Q.y0),X(&quot;y1&quot;,Q.y1);break;case&quot;path&quot;:X(&quot;path&quot;,Q.path)}}}return void 0===A?(Z.push(O),Z):W?W.getUpdateObj():{}}}}},{&quot;../../../plots/cartesian/handle_outline&quot;:865,&quot;../../../plots/cartesian/helpers&quot;:866,&quot;../../dragelement/helpers&quot;:684,&quot;./constants&quot;:752,&quot;./helpers&quot;:755}],757:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib&quot;);r.rangeToShapePosition=function(t){return&quot;log&quot;===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return&quot;log&quot;===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&amp;&amp;(e=e.replace(&quot;_&quot;,&quot; &quot;)),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(&quot; &quot;,&quot;_&quot;)}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach((function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length&lt;a||r.push(i.cleanNumber(o[a]))}})),r},r.getDataToPixel=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){return e._length*(n?1-t:t)+e._offset};else{var s=r.shapePositionToRange(e);a=function(t){return e._offset+e.r2p(s(t,!0))},&quot;date&quot;===e.type&amp;&amp;(a=r.decodeDate(a))}else a=n?function(t){return o.t+o.h*(1-t)}:function(t){return o.l+o.w*t};return a},r.getPixelToData=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){var r=(t-e._offset)/e._length;return n?1-r:r};else{var s=r.rangeToShapePosition(e);a=function(t){return s(e.p2r(t-e._offset))}}else a=n?function(t){return 1-(t-o.t)/o.h}:function(t){return(t-o.l)/o.w};return a},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n},r.makeOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.shapes[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&amp;&amp;&quot;paper&quot;!==r.xref&amp;&amp;(n.xaxis=t._fullLayout[r.xref+&quot;axis&quot;]),r.yref&amp;&amp;&quot;paper&quot;!==r.yref&amp;&amp;(n.yaxis=t._fullLayout[r.yref+&quot;axis&quot;])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},{&quot;../../lib&quot;:803,&quot;./constants&quot;:748}],758:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;shapes&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),supplyDrawNewShapeDefaults:t(&quot;./draw_newshape/defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;shapes&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne}},{&quot;../../plots/cartesian/include_components&quot;:867,&quot;./attributes&quot;:746,&quot;./calc_autorange&quot;:747,&quot;./defaults&quot;:749,&quot;./draw&quot;:750,&quot;./draw_newshape/defaults&quot;:753}],759:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/pad_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendDeepAll,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/animation_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;./constants&quot;),u=l(&quot;step&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;},value:{valType:&quot;string&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;slider&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},active:{valType:&quot;number&quot;,min:0,dflt:0},steps:u,lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},pad:a(i({editType:&quot;arraydraw&quot;}),{},{t:{dflt:20}}),xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:150},easing:{valType:&quot;enumerated&quot;,values:s.transition.easing.values,dflt:&quot;cubic-in-out&quot;}},currentvalue:{visible:{valType:&quot;boolean&quot;,dflt:!0},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},offset:{valType:&quot;number&quot;,dflt:10},prefix:{valType:&quot;string&quot;},suffix:{valType:&quot;string&quot;},font:n({})},font:n({}),activebgcolor:{valType:&quot;color&quot;,dflt:c.gripBgActiveColor},bgcolor:{valType:&quot;color&quot;,dflt:c.railBgColor},bordercolor:{valType:&quot;color&quot;,dflt:c.railBorderColor},borderwidth:{valType:&quot;number&quot;,min:0,dflt:c.railBorderWidth},ticklen:{valType:&quot;number&quot;,min:0,dflt:c.tickLength},tickcolor:{valType:&quot;color&quot;,dflt:c.tickColor},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1},minorticklen:{valType:&quot;number&quot;,min:0,dflt:c.minorTickLength}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/animation_attributes&quot;:848,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/pad_attributes&quot;:916,&quot;./constants&quot;:760}],760:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;sliders&quot;,containerClassName:&quot;slider-container&quot;,groupClassName:&quot;slider-group&quot;,inputAreaClass:&quot;slider-input-area&quot;,railRectClass:&quot;slider-rail-rect&quot;,railTouchRectClass:&quot;slider-rail-touch-rect&quot;,gripRectClass:&quot;slider-grip-rect&quot;,tickRectClass:&quot;slider-tick-rect&quot;,inputProxyClass:&quot;slider-input-proxy&quot;,labelsClass:&quot;slider-labels&quot;,labelGroupClass:&quot;slider-label-group&quot;,labelClass:&quot;slider-label&quot;,currentValueClass:&quot;slider-current-value&quot;,railHeight:5,menuIndexAttrName:&quot;slider-active-index&quot;,autoMarginIdRoot:&quot;slider-&quot;,minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:&quot;#bec8d9&quot;,railBgColor:&quot;#f8fafc&quot;,railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:&quot;#bec8d9&quot;,gripBgColor:&quot;#f6f8fa&quot;,gripBgActiveColor:&quot;#dbdde0&quot;,labelPadding:8,labelOffset:0,tickWidth:1,tickColor:&quot;#333&quot;,tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:&quot;#333&quot;,minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],761:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:&quot;steps&quot;,handleItemDefaults:c}),l=0,u=0;u&lt;s.length;u++)s[u].visible&amp;&amp;l++;if(l&lt;2?e.visible=!1:o(&quot;visible&quot;)){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(&quot;active&quot;)]||{}).visible||(e.active=f[0]._index),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;len&quot;),o(&quot;lenmode&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;currentvalue.visible&quot;)&amp;&amp;(o(&quot;currentvalue.xanchor&quot;),o(&quot;currentvalue.prefix&quot;),o(&quot;currentvalue.suffix&quot;),o(&quot;currentvalue.offset&quot;),n.coerceFont(o,&quot;currentvalue.font&quot;,e.font)),o(&quot;transition.duration&quot;),o(&quot;transition.easing&quot;),o(&quot;bgcolor&quot;),o(&quot;activebgcolor&quot;),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;),o(&quot;ticklen&quot;),o(&quot;tickwidth&quot;),o(&quot;tickcolor&quot;),o(&quot;minorticklen&quot;)}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(&quot;skip&quot;===t.method||Array.isArray(t.args)?r(&quot;visible&quot;):e.visible=!1){r(&quot;method&quot;),r(&quot;args&quot;);var i=r(&quot;label&quot;,&quot;step-&quot;+e._index);r(&quot;value&quot;,i),r(&quot;execute&quot;)}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;./attributes&quot;:759,&quot;./constants&quot;:760}],762:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,f=t(&quot;./constants&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR;function m(t){return f.autoMarginIdRoot+t._index}function v(t){return t._index}function y(t,e){var r=o.tester.selectAll(&quot;g.&quot;+f.labelGroupClass).data(e._visibleSteps);r.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0);var a=0,l=0;r.each((function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);l=Math.max(l,i.height),a=Math.max(a,i.width)}})),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),&quot;fraction&quot;===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),v=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/p)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(&quot;g&quot;);r.each((function(t){var r=x(y,e,t.label),n=r.node()&amp;&amp;o.bBox(r.node())||{width:0,height:0},i=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)})),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(u.lx-=u.outerLength,b=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(u.lx-=u.outerLength/2,b=&quot;center&quot;);var w=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(u.ly-=u.height,w=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(u.ly-=u.height/2,w=&quot;middle&quot;),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var T={y:e.y,b:u.height*g[w],t:u.height*d[w]};&quot;fraction&quot;===e.lenmode?(T.l=0,T.xl=e.x-e.len*d[b],T.r=0,T.xr=e.x+e.len*g[b]):(T.x=e.x,T.l=u.outerLength*d[b],T.r=u.outerLength*g[b]),i.autoMargin(t,m(e),T)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case&quot;right&quot;:n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=&quot;left&quot;;break;case&quot;center&quot;:n=.5*a.inputAreaLength,i=&quot;middle&quot;;break;default:n=f.currentValueInset,i=&quot;left&quot;}var l=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:i,&quot;data-notex&quot;:1})})),u=e.currentvalue.prefix?e.currentvalue.prefix:&quot;&quot;;if(&quot;string&quot;==typeof r)u+=r;else{var h=e.steps[e.active].label,d=e._gd._fullLayout._meta;d&amp;&amp;(h=s.templateString(h,d)),u+=h}e.currentvalue.suffix&amp;&amp;(u+=e.currentvalue.suffix),l.call(o.font,e.currentvalue.font).text(u).call(c.convertToTspans,e._gd);var g=c.lineCount(l),m=(a.currentValueMaxLines+1-g)*e.currentvalue.font.size*p;return c.positionText(l,n,m),l}}function b(t,e,r){s.ensureSingle(t,&quot;rect&quot;,f.gripRectClass,(function(n){n.call(A,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(&quot;stroke-width&quot;,r.borderwidth+&quot;px&quot;)}function _(t,e,r){var n=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1})})),i=e.step.label,a=r._gd._fullLayout._meta;return a&amp;&amp;(i=s.templateString(i,a)),n.call(o.font,r.font).text(i).call(c.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,&quot;g&quot;,f.labelsClass),i=e._dims,a=r.selectAll(&quot;g.&quot;+f.labelGroupClass).data(i.labelSteps);a.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0),a.exit().remove(),a.each((function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)}))}function T(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&amp;&amp;k(t,e,r,o,!0,i)}function k(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(&quot;active&quot;,n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(&quot;plotly_sliderchange&quot;,{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&amp;&amp;l.method&amp;&amp;a&amp;&amp;(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&amp;&amp;(r.execute&amp;&amp;i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function A(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}function l(){var t=s();e.emit(&quot;plotly_sliderstart&quot;,{slider:t});var l=r.select(&quot;.&quot;+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=L(t,n.mouse(i)[0]);function u(){var t=s(),a=L(t,n.mouse(i)[0]);T(e,r,t,a,!1)}function h(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(&quot;mouseup&quot;,null),o.on(&quot;mousemove&quot;,null),o.on(&quot;touchend&quot;,null),o.on(&quot;touchmove&quot;,null),e.emit(&quot;plotly_sliderend&quot;,{slider:t,step:t.steps[t.active]})}T(e,r,t,c,!0),t._dragging=!0,o.on(&quot;mousemove&quot;,u),o.on(&quot;touchmove&quot;,u),o.on(&quot;mouseup&quot;,h),o.on(&quot;touchend&quot;,h)}t.on(&quot;mousedown&quot;,l),t.on(&quot;touchstart&quot;,l)}function M(t,e){var r=t.selectAll(&quot;rect.&quot;+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(&quot;rect&quot;).classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+&quot;px&quot;,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}),r.each((function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)}))}function S(t,e,r){for(var n=t.select(&quot;rect.&quot;+f.gripRectClass),i=0,a=0;a&lt;e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&amp;&amp;e.transition.duration&gt;0&amp;&amp;(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(&quot;transform&quot;,l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function L(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function C(t,e,r){var n=r._dims,i=s.ensureSingle(t,&quot;rect&quot;,f.railTouchRectClass,(function(n){n.call(A,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(&quot;opacity&quot;,0),o.setTranslate(i,0,n.currentValueTotalHeight)}function P(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,&quot;rect&quot;,f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i&lt;r.length;i++){var a=r[i];a.visible&amp;&amp;(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);function s(e){e._commandObserver&amp;&amp;(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,m(e))}if(a.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;ew-resize&quot;),a.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll(&quot;g.&quot;+f.groupClassName).data(r,v);l.enter().append(&quot;g&quot;).classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c&lt;r.length;c++){var u=r[c];y(t,u)}l.each((function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n&lt;r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,(function(e){var n=r.data()[0];n.active!==e.index&amp;&amp;(n._dragging||k(t,r,n,e.index,!1,!0))})),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(P,r).call(w,r).call(M,r).call(C,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)}))}}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/plots&quot;:917,&quot;../color&quot;:666,&quot;../drawing&quot;:688,&quot;./constants&quot;:760,&quot;@plotly/d3&quot;:58}],763:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);e.exports={moduleType:&quot;component&quot;,name:n.name,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:759,&quot;./constants&quot;:760,&quot;./defaults&quot;:761,&quot;./draw&quot;:762}],764:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/interactions&quot;),p=t(&quot;../../constants/alignment&quot;).OPPOSITE_SIDE,d=/ [XY][0-9]* /;e.exports={draw:function(t,e,r){var g,m=r.propContainer,v=r.propName,y=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,T=r.containerGroup,k=t._fullLayout,A=1,M=!1,S=m.title,E=(S&amp;&amp;S.text?S.text:&quot;&quot;).trim(),L=S&amp;&amp;S.font?S.font:{},C=L.family,P=L.size,I=L.color;&quot;title.text&quot;===v?g=&quot;titleText&quot;:-1!==v.indexOf(&quot;axis&quot;)?g=&quot;axisTitleText&quot;:v.indexOf(!0)&amp;&amp;(g=&quot;colorbarTitleText&quot;);var O=t._context.edits[g];&quot;&quot;===E?A=0:E.replace(d,&quot; % &quot;)===y.replace(d,&quot; % &quot;)&amp;&amp;(A=.2,M=!0,O||(E=&quot;&quot;)),r._meta?E=s.templateString(E,r._meta):k._meta&amp;&amp;(E=s.templateString(E,k._meta));var z=E||O;T||(T=s.ensureSingle(k._infolayer,&quot;g&quot;,&quot;g-&quot;+e));var D=T.selectAll(&quot;text&quot;).data(z?[0]:[]);if(D.enter().append(&quot;text&quot;),D.text(E).attr(&quot;class&quot;,e),D.exit().remove(),!z)return T;function R(t){s.syncOrAsync([F,B],t)}function F(e){var r;return w?(r=&quot;&quot;,w.rotate&amp;&amp;(r+=&quot;rotate(&quot;+[w.rotate,_.x,_.y]+&quot;)&quot;),w.offset&amp;&amp;(r+=l(0,w.offset))):r=null,e.attr(&quot;transform&quot;,r),e.style({&quot;font-family&quot;:C,&quot;font-size&quot;:n.round(P,2)+&quot;px&quot;,fill:u.rgb(I),opacity:A*u.opacity(I),&quot;font-weight&quot;:a.fontWeight}).attr(_).call(f.convertToTspans,t),a.previousPromises(t)}function B(t){var e=n.select(t.node().parentNode);if(b&amp;&amp;b.selection&amp;&amp;b.side&amp;&amp;E){e.attr(&quot;transform&quot;,null);var r=p[b.side],a=&quot;left&quot;===b.side||&quot;top&quot;===b.side?-1:1,o=i(b.pad)?b.pad:2,u=c.bBox(e.node()),f={left:0,top:0,right:k.width,bottom:k.height},h=b.maxShift||a*(f[b.side]-u[b.side]),d=0;if(h&lt;0)d=h;else{var g=b.offsetLeft||0,m=b.offsetTop||0;u.left-=g,u.right-=g,u.top-=m,u.bottom-=m,b.selection.each((function(){var t=c.bBox(this);s.bBoxIntersect(u,t,o)&amp;&amp;(d=Math.max(d,a*(t[b.side]-u[r])+o))})),d=Math.min(h,d)}if(d&gt;0||h&lt;0){var v={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];e.attr(&quot;transform&quot;,l(v[0],v[1]))}}}return D.call(R),O&amp;&amp;(E?D.on(&quot;.opacity&quot;,null):(A=0,M=!0,D.text(y).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(&quot;opacity&quot;,0)}))),D.call(f.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){void 0!==x?o.call(&quot;_guiRestyle&quot;,t,v,e,x):o.call(&quot;_guiRelayout&quot;,t,v,e)})).on(&quot;cancel&quot;,(function(){this.text(this.attr(&quot;data-unformatted&quot;)).call(R)})).on(&quot;input&quot;,(function(t){this.text(t||&quot; &quot;).call(f.positionText,_.x,_.y)}))),D.classed(&quot;js-placeholder&quot;,M),T}}},{&quot;../../constants/alignment&quot;:771,&quot;../../constants/interactions&quot;:778,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../drawing&quot;:688,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],765:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/pad_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=l(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},args2:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;,dflt:&quot;&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;updatemenu&quot;,{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:&quot;boolean&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;dropdown&quot;,&quot;buttons&quot;],dflt:&quot;dropdown&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;up&quot;,&quot;down&quot;],dflt:&quot;down&quot;},active:{valType:&quot;integer&quot;,min:-1,dflt:0},showactive:{valType:&quot;boolean&quot;,dflt:!0},buttons:c,x:{valType:&quot;number&quot;,min:-2,max:3,dflt:-.05},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;right&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:1},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},pad:a(s({editType:&quot;arraydraw&quot;}),{}),font:n({}),bgcolor:{valType:&quot;color&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.borderLine},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;arraydraw&quot;}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/pad_attributes&quot;:916,&quot;../color/attributes&quot;:665}],766:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;updatemenus&quot;,containerClassName:&quot;updatemenu-container&quot;,headerGroupClassName:&quot;updatemenu-header-group&quot;,headerClassName:&quot;updatemenu-header&quot;,headerArrowClassName:&quot;updatemenu-header-arrow&quot;,dropdownButtonGroupClassName:&quot;updatemenu-dropdown-button-group&quot;,dropdownButtonClassName:&quot;updatemenu-dropdown-button&quot;,buttonClassName:&quot;updatemenu-button&quot;,itemRectClassName:&quot;updatemenu-item-rect&quot;,itemTextClassName:&quot;updatemenu-item-text&quot;,menuIndexAttrName:&quot;updatemenu-active-index&quot;,autoMarginIdRoot:&quot;updatemenu-&quot;,blankHeaderOpts:{label:&quot;  &quot;},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:&quot;#F4FAFF&quot;,hoverColor:&quot;#F4FAFF&quot;,arrowSymbol:{left:&quot;\u25c4&quot;,right:&quot;\u25ba&quot;,up:&quot;\u25b2&quot;,down:&quot;\u25bc&quot;}}},{}],767:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(&quot;visible&quot;,i(t,e,{name:&quot;buttons&quot;,handleItemDefaults:c}).length&gt;0)&amp;&amp;(o(&quot;active&quot;),o(&quot;direction&quot;),o(&quot;type&quot;),o(&quot;showactive&quot;),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;bgcolor&quot;,r.paper_bgcolor),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(&quot;visible&quot;,&quot;skip&quot;===t.method||Array.isArray(t.args))&amp;&amp;(r(&quot;method&quot;),r(&quot;args&quot;),r(&quot;args2&quot;),r(&quot;label&quot;),r(&quot;execute&quot;))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;./attributes&quot;:765,&quot;./constants&quot;:766}],768:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,u=t(&quot;../../constants/alignment&quot;).LINE_SPACING,f=t(&quot;./constants&quot;),h=t(&quot;./scrollbox&quot;);function p(t){return t._index}function d(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function g(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate(&quot;active&quot;,o),&quot;buttons&quot;===e.type?v(t,n,null,null,e):&quot;dropdown&quot;===e.type&amp;&amp;(i.attr(f.menuIndexAttrName,&quot;-1&quot;),m(t,n,i,a,e),s||v(t,n,i,a,e))}function m(t,e,r,n,i){var a=s.ensureSingle(e,&quot;g&quot;,f.headerClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,h={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,t).call(M,i,h,p),s.ensureSingle(e,&quot;text&quot;,f.headerArrowClassName,(function(t){t.attr(&quot;text-anchor&quot;,&quot;end&quot;).call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on(&quot;click&quot;,(function(){r.call(S,String(d(r,i)?-1:i._index)),v(t,e,r,n,i)})),a.on(&quot;mouseover&quot;,(function(){a.call(w)})),a.on(&quot;mouseout&quot;,(function(){a.call(T,i)})),o.setTranslate(e,l.lx,l.ly)}function v(t,e,r,a,o){r||(r=e).attr(&quot;pointer-events&quot;,&quot;all&quot;);var l=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&amp;&amp;&quot;buttons&quot;!==o.type?[]:o.buttons,c=&quot;dropdown&quot;===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll(&quot;g.&quot;+c).data(s.filterVisible(l)),h=u.enter().append(&quot;g&quot;).classed(c,!0),p=u.exit();&quot;dropdown&quot;===o.type?(h.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;),p.transition().attr(&quot;opacity&quot;,&quot;0&quot;).remove()):p.remove();var d=0,m=0,v=o._dims,x=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(o.direction);&quot;dropdown&quot;===o.type&amp;&amp;(x?m=v.headerHeight+f.gapButtonHeader:d=v.headerWidth+f.gapButtonHeader),&quot;dropdown&quot;===o.type&amp;&amp;&quot;up&quot;===o.direction&amp;&amp;(m=-f.gapButtonHeader+f.gapButton-v.openHeight),&quot;dropdown&quot;===o.type&amp;&amp;&quot;left&quot;===o.direction&amp;&amp;(d=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+d+o.pad.l,y:v.ly+m+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,t).call(M,o,b),c.on(&quot;click&quot;,(function(){n.event.defaultPrevented||(s.execute&amp;&amp;(s.args2&amp;&amp;o.active===l?(g(t,o,0,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(g(t,o,0,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit(&quot;plotly_buttonclicked&quot;,{menu:o,button:s,active:o.active}))})),c.on(&quot;mouseover&quot;,(function(){c.call(w)})),c.on(&quot;mouseout&quot;,(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&amp;&amp;(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=&quot;up&quot;===c||&quot;down&quot;===c,h=i._dims,p=i.active;if(u)for(s=0,l=0;l&lt;p;l++)s+=h.heights[l]+f.gapButton;else for(o=0,l=0;l&lt;p;l++)o+=h.widths[l]+f.gapButton;n.enable(a,o,s),n.hbar&amp;&amp;n.hbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;);n.vbar&amp;&amp;n.vbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;)}(0,0,0,a,o,k):function(t){var e=!!t.hbar,r=!!t.vbar;e&amp;&amp;t.hbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){e=!1,r||t.disable()}));r&amp;&amp;t.vbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){r=!1,e||t.disable()}))}(a))}function y(t,e,r,n){t.call(x,e).call(b,e,r,n)}function x(t,e){s.ensureSingle(t,&quot;rect&quot;,f.itemRectClassName,(function(t){t.attr({rx:f.rx,ry:f.ry,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){var i=s.ensureSingle(t,&quot;text&quot;,f.itemTextClassName,(function(t){t.attr({&quot;text-anchor&quot;:&quot;start&quot;,&quot;data-notex&quot;:1})})),a=r.label,c=n._fullLayout._meta;c&amp;&amp;(a=s.templateString(a,c)),i.call(o.font,e.font).text(a).call(l.convertToTspans,n)}function _(t,e){var r=e.active;t.each((function(t,i){var o=n.select(this);i===r&amp;&amp;e.showactive&amp;&amp;o.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.activeColor)}))}function w(t){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.hoverColor)}function T(t,e){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,e.bgcolor)}function k(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(&quot;g.&quot;+f.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(&quot;g&quot;).classed(f.dropdownButtonClassName,!0);var c=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction);a.each((function(i,a){var s=n.select(this);s.call(y,e,i,t);var h=s.select(&quot;.&quot;+f.itemTextClassName),p=h.node()&amp;&amp;o.bBox(h.node()).width,d=Math.max(p+f.textPadX,f.minWidth),g=e.font.size*u,m=l.lineCount(h),v=Math.max(g*m,f.minHeight)+f.textOffsetY;v=Math.ceil(v),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=v,r.height1=Math.max(r.height1,v),r.width1=Math.max(r.width1,d),c?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=v+f.gapButton,r.openHeight+=v+f.gapButton):(r.totalWidth+=d+f.gapButton,r.openWidth+=d+f.gapButton,r.totalHeight=Math.max(r.totalHeight,v),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,&quot;dropdown&quot;===e.type&amp;&amp;(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),a.remove();var h=r.totalWidth+e.pad.l+e.pad.r,p=r.totalHeight+e.pad.t+e.pad.b,d=t._fullLayout._size;r.lx=d.l+d.w*e.x,r.ly=d.t+d.h*(1-e.y);var g=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(r.lx-=h,g=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(r.lx-=h/2,g=&quot;center&quot;);var m=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(r.ly-=p,m=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(r.ly-=p/2,m=&quot;middle&quot;),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,A(e),{x:e.x,y:e.y,l:h*({right:1,center:.5}[g]||0),r:h*({left:1,center:.5}[g]||0),b:p*({top:1,middle:.5}[m]||0),t:p*({bottom:1,middle:.5}[m]||0)})}function A(t){return f.autoMarginIdRoot+t._index}function M(t,e,r,n){n=n||{};var i=t.select(&quot;.&quot;+f.itemRectClassName),a=t.select(&quot;.&quot;+f.itemTextClassName),s=e.borderwidth,c=r.index,h=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction),d=n.height||(p?h.heights[c]:h.height1);i.attr({x:0,y:0,width:n.width||(p?h.width1:h.widths[c]),height:d});var g=e.font.size*u,m=(l.lineCount(a)-1)*g/2;l.positionText(a,f.textOffsetX,d/2-m+f.textOffsetY),p?r.y+=h.heights[c]+r.yPad:r.x+=h.widths[c]+r.xPad,r.index++}function S(t,e){t.attr(f.menuIndexAttrName,e||&quot;-1&quot;).selectAll(&quot;g.&quot;+f.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[f.name]);function a(e){i.autoMargin(t,A(e))}var o=e._menulayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);if(o.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;pointer&quot;),o.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll(&quot;g.&quot;+f.headerGroupClassName).data(r,p);l.enter().append(&quot;g&quot;).classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,&quot;g&quot;,f.dropdownButtonGroupClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),u=0;u&lt;r.length;u++){var y=r[u];k(t,y)}var x=&quot;updatemenus&quot;+e._uid,b=new h(t,c,x);l.enter().size()&amp;&amp;(c.node().parentNode.appendChild(c.node()),c.call(S)),l.exit().each((function(t){c.call(S),a(t)})).remove(),l.each((function(e){var r=n.select(this),a=&quot;dropdown&quot;===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,(function(n){g(t,e,e.buttons[n.index],r,a,b,n.index,!0)})),&quot;dropdown&quot;===e.type?(m(t,r,c,b,e),d(c,e)&amp;&amp;v(t,r,c,b,e)):v(t,r,null,null,e)}))}}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/plots&quot;:917,&quot;../color&quot;:666,&quot;../drawing&quot;:688,&quot;./constants&quot;:766,&quot;./scrollbox&quot;:770,&quot;@plotly/d3&quot;:58}],769:[function(t,e,r){arguments[4][763][0].apply(r,arguments)},{&quot;./attributes&quot;:765,&quot;./constants&quot;:766,&quot;./defaults&quot;:767,&quot;./draw&quot;:768,dup:763}],770:[function(t,e,r){&quot;use strict&quot;;e.exports=s;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../lib&quot;);function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(&quot;rect.scrollbox-bg&quot;).data([0]),this.bg.exit().on(&quot;.drag&quot;,null).on(&quot;wheel&quot;,null).remove(),this.bg.enter().append(&quot;rect&quot;).classed(&quot;scrollbox-bg&quot;,!0).style(&quot;pointer-events&quot;,&quot;all&quot;).attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=&quot;#808BA4&quot;,s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,g=this.position.w,m=this.position.t,v=this.position.h,y=this.position.direction,x=&quot;down&quot;===y,b=&quot;left&quot;===y,_=&quot;up&quot;===y,w=g,T=v;x||b||&quot;right&quot;===y||_||(this.position.direction=&quot;down&quot;,x=!0),x||_?(f=(u=d)+w,x?(h=m,T=(p=Math.min(h+T,c))-h):T=(p=m+T)-(h=Math.max(p-T,0))):(p=(h=m)+T,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:T};var k=g&gt;w,A=s.barLength+2*s.barPad,M=s.barWidth+2*s.barPad,S=d,E=m+v;E+M&gt;c&amp;&amp;(E=c-M);var L=this.container.selectAll(&quot;rect.scrollbar-horizontal&quot;).data(k?[0]:[]);L.exit().on(&quot;.drag&quot;,null).remove(),L.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-horizontal&quot;,!0).call(i.fill,s.barColor),k?(this.hbar=L.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:A,height:M}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var C=v&gt;T,P=s.barWidth+2*s.barPad,I=s.barLength+2*s.barPad,O=d+g,z=m;O+P&gt;l&amp;&amp;(O=l-P);var D=this.container.selectAll(&quot;rect.scrollbar-vertical&quot;).data(C?[0]:[]);D.exit().on(&quot;.drag&quot;,null).remove(),D.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-vertical&quot;,!0).call(i.fill,s.barColor),C?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:O,y:z,width:P,height:I}),this._vbarYMin=z+I/2,this._vbarTranslateMax=T-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,B=C?f+P+.5:f+.5,N=h-.5,j=k?p+M+.5:p+.5,U=o._topdefs.selectAll(&quot;#&quot;+R).data(k||C?[0]:[]);if(U.exit().remove(),U.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,R).append(&quot;rect&quot;),k||C?(this._clipRect=U.select(&quot;rect&quot;).attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:d,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),k||C){var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault()})).on(&quot;drag&quot;,this._onBoxDrag.bind(this));this.container.on(&quot;wheel&quot;,null).on(&quot;wheel&quot;,this._onBoxWheel.bind(this)).on(&quot;.drag&quot;,null).call(V);var q=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on(&quot;drag&quot;,this._onBarDrag.bind(this));k&amp;&amp;this.hbar.on(&quot;.drag&quot;,null).call(q),C&amp;&amp;this.vbar.on(&quot;.drag&quot;,null).call(q)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&amp;&amp;(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&amp;&amp;(this.hbar.on(&quot;.drag&quot;,null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&amp;&amp;(this.vbar.on(&quot;.drag&quot;,null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t-=n.event.dx),this.vbar&amp;&amp;(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t+=n.event.deltaY),this.vbar&amp;&amp;(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&amp;&amp;this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{&quot;../../lib&quot;:803,&quot;../color&quot;:666,&quot;../drawing&quot;:688,&quot;@plotly/d3&quot;:58}],771:[function(t,e,r){&quot;use strict&quot;;e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:&quot;right&quot;,right:&quot;left&quot;,top:&quot;bottom&quot;,bottom:&quot;top&quot;}}},{}],772:[function(t,e,r){&quot;use strict&quot;;e.exports={axisRefDescription:function(t,e,r){return[&quot;If set to a&quot;,t,&quot;axis id (e.g. *&quot;+t+&quot;* or&quot;,&quot;*&quot;+t+&quot;2*), the `&quot;+t+&quot;` position refers to a&quot;,t,&quot;coordinate. If set to *paper*, the `&quot;+t+&quot;`&quot;,&quot;position refers to the distance from the&quot;,e,&quot;of the plotting&quot;,&quot;area in normalized coordinates where *0* (*1*) corresponds to the&quot;,e,&quot;(&quot;+r+&quot;). If set to a&quot;,t,&quot;axis ID followed by&quot;,&quot;*domain* (separated by a space), the position behaves like for&quot;,&quot;*paper*, but refers to the distance in fractions of the domain&quot;,&quot;length from the&quot;,e,&quot;of the domain of that axis: e.g.,&quot;,&quot;*&quot;+t+&quot;2 domain* refers to the domain of the second&quot;,t,&quot; axis and a&quot;,t,&quot;position of 0.5 refers to the&quot;,&quot;point between the&quot;,e,&quot;and the&quot;,r,&quot;of the domain of the&quot;,&quot;second&quot;,t,&quot;axis.&quot;].join(&quot; &quot;)}}},{}],773:[function(t,e,r){&quot;use strict&quot;;e.exports={INCREASING:{COLOR:&quot;#3D9970&quot;,SYMBOL:&quot;\u25b2&quot;},DECREASING:{COLOR:&quot;#FF4136&quot;,SYMBOL:&quot;\u25bc&quot;}}},{}],774:[function(t,e,r){&quot;use strict&quot;;e.exports={FORMAT_LINK:&quot;https://github.com/d3/d3-format/tree/v1.4.5#d3-format&quot;,DATE_FORMAT_LINK:&quot;https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format&quot;}},{}],775:[function(t,e,r){&quot;use strict&quot;;e.exports={COMPARISON_OPS:[&quot;=&quot;,&quot;!=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],COMPARISON_OPS2:[&quot;=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],INTERVAL_OPS:[&quot;[]&quot;,&quot;()&quot;,&quot;[)&quot;,&quot;(]&quot;,&quot;][&quot;,&quot;)(&quot;,&quot;](&quot;,&quot;)[&quot;],SET_OPS:[&quot;{}&quot;,&quot;}{&quot;],CONSTRAINT_REDUCTION:{&quot;=&quot;:&quot;=&quot;,&quot;&lt;&quot;:&quot;&lt;&quot;,&quot;&lt;=&quot;:&quot;&lt;&quot;,&quot;&gt;&quot;:&quot;&gt;&quot;,&quot;&gt;=&quot;:&quot;&gt;&quot;,&quot;[]&quot;:&quot;[]&quot;,&quot;()&quot;:&quot;[]&quot;,&quot;[)&quot;:&quot;[]&quot;,&quot;(]&quot;:&quot;[]&quot;,&quot;][&quot;:&quot;][&quot;,&quot;)(&quot;:&quot;][&quot;,&quot;](&quot;:&quot;][&quot;,&quot;)[&quot;:&quot;][&quot;}}},{}],776:[function(t,e,r){&quot;use strict&quot;;e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],777:[function(t,e,r){&quot;use strict&quot;;e.exports={circle:&quot;\u25cf&quot;,&quot;circle-open&quot;:&quot;\u25cb&quot;,square:&quot;\u25a0&quot;,&quot;square-open&quot;:&quot;\u25a1&quot;,diamond:&quot;\u25c6&quot;,&quot;diamond-open&quot;:&quot;\u25c7&quot;,cross:&quot;+&quot;,x:&quot;\u274c&quot;}},{}],778:[function(t,e,r){&quot;use strict&quot;;e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],779:[function(t,e,r){&quot;use strict&quot;;e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:&quot;\u2212&quot;}},{}],780:[function(t,e,r){&quot;use strict&quot;;r.xmlns=&quot;http://www.w3.org/2000/xmlns/&quot;,r.svg=&quot;http://www.w3.org/2000/svg&quot;,r.xlink=&quot;http://www.w3.org/1999/xlink&quot;,r.svgAttrs={xmlns:r.svg,&quot;xmlns:xlink&quot;:r.xlink}},{}],781:[function(t,e,r){&quot;use strict&quot;;r.version=t(&quot;./version&quot;).version,t(&quot;native-promise-only&quot;),t(&quot;../build/plotcss&quot;);for(var n=t(&quot;./registry&quot;),i=r.register=n.register,a=t(&quot;./plot_api&quot;),o=Object.keys(a),s=0;s&lt;o.length;s++){var l=o[s];&quot;_&quot;!==l.charAt(0)&amp;&amp;(r[l]=a[l]),i({moduleType:&quot;apiMethod&quot;,name:l,fn:a[l]})}i(t(&quot;./traces/scatter&quot;)),i([t(&quot;./components/legend&quot;),t(&quot;./components/fx&quot;),t(&quot;./components/annotations&quot;),t(&quot;./components/annotations3d&quot;),t(&quot;./components/shapes&quot;),t(&quot;./components/images&quot;),t(&quot;./components/updatemenus&quot;),t(&quot;./components/sliders&quot;),t(&quot;./components/rangeslider&quot;),t(&quot;./components/rangeselector&quot;),t(&quot;./components/grid&quot;),t(&quot;./components/errorbars&quot;),t(&quot;./components/colorscale&quot;),t(&quot;./components/colorbar&quot;),t(&quot;./components/modebar&quot;)]),i([t(&quot;./locale-en&quot;),t(&quot;./locale-en-us&quot;)]),window.PlotlyLocales&amp;&amp;Array.isArray(window.PlotlyLocales)&amp;&amp;(i(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=t(&quot;./fonts/ploticon&quot;);var c=t(&quot;./components/fx&quot;),u=t(&quot;./plots/plots&quot;);r.Plots={resize:u.resize,graphJson:u.graphJson,sendDataToCloud:u.sendDataToCloud},r.Fx={hover:c.hover,unhover:c.unhover,loneHover:c.loneHover,loneUnhover:c.loneUnhover},r.Snapshot=t(&quot;./snapshot&quot;),r.PlotSchema=t(&quot;./plot_api/plot_schema&quot;)},{&quot;../build/plotcss&quot;:1,&quot;./components/annotations&quot;:657,&quot;./components/annotations3d&quot;:662,&quot;./components/colorbar&quot;:672,&quot;./components/colorscale&quot;:678,&quot;./components/errorbars&quot;:694,&quot;./components/fx&quot;:706,&quot;./components/grid&quot;:710,&quot;./components/images&quot;:715,&quot;./components/legend&quot;:723,&quot;./components/modebar&quot;:729,&quot;./components/rangeselector&quot;:737,&quot;./components/rangeslider&quot;:744,&quot;./components/shapes&quot;:758,&quot;./components/sliders&quot;:763,&quot;./components/updatemenus&quot;:769,&quot;./fonts/ploticon&quot;:782,&quot;./locale-en&quot;:834,&quot;./locale-en-us&quot;:833,&quot;./plot_api&quot;:838,&quot;./plot_api/plot_schema&quot;:842,&quot;./plots/plots&quot;:917,&quot;./registry&quot;:931,&quot;./snapshot&quot;:936,&quot;./traces/scatter&quot;:1230,&quot;./version&quot;:1404,&quot;native-promise-only&quot;:474}],782:[function(t,e,r){&quot;use strict&quot;;e.exports={undo:{width:857.1,height:1e3,path:&quot;m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},home:{width:928.6,height:1e3,path:&quot;m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;camera-retro&quot;:{width:1e3,height:1e3,path:&quot;m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoombox:{width:1e3,height:1e3,path:&quot;m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},pan:{width:1e3,height:1e3,path:&quot;m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_plus:{width:875,height:1e3,path:&quot;m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_minus:{width:875,height:1e3,path:&quot;m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},autoscale:{width:1e3,height:1e3,path:&quot;m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_basic:{width:1500,height:1e3,path:&quot;m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_compare:{width:1125,height:1e3,path:&quot;m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},plotlylogo:{width:1542,height:1e3,path:&quot;m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;z-axis&quot;:{width:1e3,height:1e3,path:&quot;m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;3d_rotate&quot;:{width:1e3,height:1e3,path:&quot;m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},camera:{width:1e3,height:1e3,path:&quot;m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},movie:{width:1e3,height:1e3,path:&quot;m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},question:{width:857.1,height:1e3,path:&quot;m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},disk:{width:857.1,height:1e3,path:&quot;m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawopenpath:{width:70,height:70,path:&quot;M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawclosedpath:{width:90,height:90,path:&quot;M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z&quot;,transform:&quot;matrix(1 0 0 1 -5 -5)&quot;},lasso:{width:1031,height:1e3,path:&quot;m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},selectbox:{width:1e3,height:1e3,path:&quot;m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawline:{width:70,height:70,path:&quot;M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawrect:{width:80,height:80,path:&quot;M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},drawcircle:{width:80,height:80,path:&quot;M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},eraseshape:{width:80,height:80,path:&quot;M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},spikeline:{width:1e3,height:1e3,path:&quot;M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z&quot;,transform:&quot;matrix(1.5 0 0 -1.5 0 850)&quot;},pencil:{width:1792,height:1792,path:&quot;M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z&quot;,transform:&quot;matrix(1 0 0 1 0 1)&quot;},newplotlylogo:{name:&quot;newplotlylogo&quot;,svg:&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'&gt;&lt;defs&gt;&lt;style&gt;.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}&lt;/style&gt;&lt;/defs&gt;&lt;title&gt;plotly-logomark&lt;/title&gt;&lt;g id='symbol'&gt;&lt;rect class='cls-1' width='132' height='132' rx='6' ry='6'/&gt;&lt;circle class='cls-2' cx='78' cy='54' r='6'/&gt;&lt;circle class='cls-2' cx='102' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='78' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='54' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='54' r='6'/&gt;&lt;path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/&gt;&lt;path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/&gt;&lt;path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/&gt;&lt;path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;}}},{}],783:[function(t,e,r){&quot;use strict&quot;;r.isLeftAnchor=function(t){return&quot;left&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&lt;=1/3},r.isCenterAnchor=function(t){return&quot;center&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;1/3&amp;&amp;t.x&lt;2/3},r.isRightAnchor=function(t){return&quot;right&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;=2/3},r.isTopAnchor=function(t){return&quot;top&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;=2/3},r.isMiddleAnchor=function(t){return&quot;middle&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;1/3&amp;&amp;t.y&lt;2/3},r.isBottomAnchor=function(t){return&quot;bottom&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&lt;=1/3}},{}],784:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./mod&quot;),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])&gt;s-1e-14}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]&lt;e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))&gt;(n=i(n,s))&amp;&amp;(n+=s);var a=i(t,s),o=a+s;return a&gt;=r&amp;&amp;a&lt;=n||o&gt;=r&amp;&amp;o&lt;=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,g=l([r,n]);function m(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(u=0,f=o,h=s):r&lt;n?(u=r,h=n):(u=n,h=r),t&lt;e?(p=t,d=e):(p=e,d=t);var v,y=Math.abs(h-u)&lt;=o?0:1;function x(t,e,r){return&quot;A&quot;+[t,t]+&quot; &quot;+[0,y,r]+&quot; &quot;+m(t,e)}return g?v=null===p?&quot;M&quot;+m(d,u)+x(d,f,0)+x(d,h,0)+&quot;Z&quot;:&quot;M&quot;+m(p,u)+x(p,f,0)+x(p,h,0)+&quot;ZM&quot;+m(d,u)+x(d,f,1)+x(d,h,1)+&quot;Z&quot;:null===p?(v=&quot;M&quot;+m(d,u)+x(d,h,0),c&amp;&amp;(v+=&quot;L0,0Z&quot;)):v=&quot;M&quot;+m(p,u)+&quot;L&quot;+m(d,u)+x(d,h,0)+&quot;L&quot;+m(p,h)+x(p,u,1)+&quot;Z&quot;,v}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&amp;&amp;(r[0]&lt;r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t&gt;=i&amp;&amp;t&lt;=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{&quot;./mod&quot;:810}],785:[function(t,e,r){&quot;use strict&quot;;var n=Array.isArray,i=ArrayBuffer,a=DataView;function o(t){return i.isView(t)&amp;&amp;!(t instanceof a)}function s(t){return n(t)||o(t)}function l(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;i&lt;t.length;i++)n=e(n,t[i].length);return n}return t.length}return 0}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r&lt;arguments.length;r++)(o=(i=arguments[r]).length)&amp;&amp;(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&amp;&amp;(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r&lt;c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l&lt;e.length;l++)s[l]=e[l];for(r=0;r&lt;c.length;r++){for(i=c[r],l=0;l&lt;i.length;l++)s[a+l]=i[l];a+=l}return s},r.maxRowLength=function(t){return l(t,Math.max,0)},r.minRowLength=function(t){return l(t,Math.min,1/0)}},{}],786:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../constants/numerical&quot;).BADNUM,a=/^['&quot;%,$#\s']+|[, ]|['&quot;%,$#\s']+$/g;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.replace(a,&quot;&quot;)),n(t)?Number(t):i}},{&quot;../constants/numerical&quot;:779,&quot;fast-isnumeric&quot;:249}],787:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t._fullLayout;e._glcanvas&amp;&amp;e._glcanvas.size()&amp;&amp;e._glcanvas.each((function(t){t.regl&amp;&amp;t.regl.clear({color:!0,depth:!0})}))}},{}],788:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){t._responsiveChartHandler&amp;&amp;(window.removeEventListener(&quot;resize&quot;,t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],789:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../components/colorscale/scales&quot;),s=t(&quot;../components/color&quot;),l=t(&quot;../constants/interactions&quot;).DESELECTDIM,c=t(&quot;./nested_property&quot;),u=t(&quot;./regex&quot;).counter,f=t(&quot;./mod&quot;).modHalf,h=t(&quot;./array&quot;).isArrayOrTypedArray;function p(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&amp;&amp;h(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){h(t)?e.set(t):void 0!==r&amp;&amp;e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&amp;&amp;(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&amp;&amp;(t=+t);for(var r=e.values,n=0;n&lt;r.length;n++){var i=String(r[n]);if(&quot;/&quot;===i.charAt(0)&amp;&amp;&quot;/&quot;===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;!=typeof t){var i=&quot;number&quot;==typeof t;!0!==n.strict&amp;&amp;i?e.set(String(t)):e.set(r)}else n.noBlank&amp;&amp;!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&amp;&amp;t.length&amp;&amp;t.every((function(t){return i(t).isValid()}))?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){&quot;auto&quot;===t?e.set(&quot;auto&quot;):n(t)?e.set(f(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||u(r);&quot;string&quot;==typeof t&amp;&amp;i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||&quot;string&quot;==typeof t&amp;&amp;!!u(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(&quot;+&quot;),a=0;a&lt;i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)&lt;a?i.splice(a,1):a++}i.length?e.set(i.join(&quot;+&quot;)):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&amp;&amp;(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||&quot;1-2&quot;===i.dimensions&amp;&amp;Array.isArray(t)&amp;&amp;Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],g=Array.isArray(p),m=g&amp;&amp;o&amp;&amp;Array.isArray(p[0]),v=o&amp;&amp;g&amp;&amp;!m,y=g&amp;&amp;!v?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s&lt;y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=v?p.length:g?p[s].length:c.length,l=0;l&lt;f;l++)u=v?p[l]:g?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&amp;&amp;(d[s][l]=h);else for(s=0;s&lt;y;s++)void 0!==(h=a(t[s],g?p[s]:p,n[s]))&amp;&amp;(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&amp;&amp;t.length!==r.length)return!1;for(var a=0;a&lt;t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&amp;&amp;t[a].length!==r[a].length)return!1;for(var o=0;o&lt;t[a].length;o++)if(!p(t[a][o],n?r[a][o]:r))return!1}else if(!p(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=c(n,i).get(),s=c(t,i),l=c(e,i),u=s.get(),f=e._template;if(void 0===u&amp;&amp;f&amp;&amp;(u=c(f,i).get(),f=0),void 0===a&amp;&amp;(a=o.dflt),o.arrayOk&amp;&amp;h(u))return l.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,l,a,o);var g=l.get();return f&amp;&amp;g===a&amp;&amp;!p(u,o)&amp;&amp;(d(u=c(f,i).get(),l,a,o),g=l.get()),g},r.coerce2=function(t,e,n,i,a){var o=c(t,i),s=r.coerce(t,e,n,i,a),l=o.get();return null!=l&amp;&amp;s},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+&quot;.family&quot;,r.family),n.size=t(e+&quot;.size&quot;,r.size),n.color=t(e+&quot;.color&quot;,r.color),n},r.coercePattern=function(t,e,r,n){if(t(e+&quot;.shape&quot;)){t(e+&quot;.solidity&quot;),t(e+&quot;.size&quot;);var i=&quot;overlay&quot;===t(e+&quot;.fillmode&quot;);if(!n){var a=t(e+&quot;.bgcolor&quot;,i?r:void 0);t(e+&quot;.fgcolor&quot;,i?s.contrast(a):r)}t(e+&quot;.fgopacity&quot;,i?.5:1)}},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=&quot;all&quot;===l.dflt?l.flags.slice():l.dflt.split(&quot;+&quot;);c.splice(c.indexOf(&quot;name&quot;),1),i=c.join(&quot;+&quot;)}return r.coerce(t,e,s,&quot;hoverinfo&quot;,i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)h(i)||t.selected||t.unselected||(r=i,n=l*i),e(&quot;selected.marker.opacity&quot;,r),e(&quot;unselected.marker.opacity&quot;,n)}},r.validate=p},{&quot;../components/color&quot;:666,&quot;../components/colorscale/scales&quot;:681,&quot;../constants/interactions&quot;:778,&quot;../plots/attributes&quot;:850,&quot;./array&quot;:785,&quot;./mod&quot;:810,&quot;./nested_property&quot;:811,&quot;./regex&quot;:820,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],790:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;d3-time-format&quot;).timeFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;./loggers&quot;),l=t(&quot;./mod&quot;).mod,c=t(&quot;../constants/numerical&quot;),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,g=c.EPOCHJD,m=t(&quot;../registry&quot;),v=t(&quot;d3-time-format&quot;).utcFormat,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&amp;&amp;m.componentsRegistry.calendars&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;&quot;gregorian&quot;!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){var n=function(t,e){return _(t)?e?m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_SUNDAY&quot;)[t]:m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_TICK&quot;)[t]:e?&quot;2000-01-02&quot;:&quot;2000-01-01&quot;}(t,!!e);if(e&lt;2)return n;var i=r.dateTime2ms(n,t);return i+=f*(e-1),r.ms2DateTime(i,0,t)},r.dfltRange=function(t){return _(t)?m.getComponentMethod(&quot;calendars&quot;,&quot;DFLTRANGE&quot;)[t]:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;]},r.isJSDate=function(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;&quot;function&quot;==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)&gt;=n&amp;&amp;t&lt;=i?t:u}if(&quot;string&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||&quot;G&quot;!==v&amp;&amp;&quot;g&quot;!==v||(t=t.substr(1),e=&quot;&quot;);var w=c&amp;&amp;&quot;chinese&quot;===e.substr(0,7),T=t.match(w?x:y);if(!T)return u;var k=T[1],A=T[3]||&quot;1&quot;,M=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),L=Number(T[11]||0);if(c){if(2===k.length)return u;var C;k=Number(k);try{var P=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e);if(w){var I=&quot;i&quot;===A.charAt(A.length-1);A=parseInt(A,10),C=P.newDate(k,P.toMonthIndex(k,A,I),M)}else C=P.newDate(k,Number(A),M)}catch(t){return u}return C?(C.toJD()-g)*f+S*h+E*p+L*d:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),A-=1;var O=new Date(Date.UTC(2e3,A,M,S,E));return O.setUTCFullYear(k),O.getUTCMonth()!==A||O.getUTCDate()!==M?u:O.getTime()+L*d},n=r.MIN_MS=r.dateTime2ms(&quot;-9999&quot;),i=r.MAX_MS=r.dateTime2ms(&quot;9999-12-31 23:59:59.9999&quot;),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,k=3*h,A=5*p;function M(t,e,r,n,i){if((e||r||n||i)&amp;&amp;(t+=&quot; &quot;+w(e,2)+&quot;:&quot;+w(r,2),(n||i)&amp;&amp;(t+=&quot;:&quot;+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=&quot;.&quot;+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(&quot;number&quot;!=typeof t||!(t&gt;=n&amp;&amp;t&lt;=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r).fromJD(S).formatDate(&quot;yyyy-mm-dd&quot;)}catch(t){a=v(&quot;G%Y-%m-%d&quot;)(new Date(w))}if(&quot;-&quot;===a.charAt(0))for(;a.length&lt;11;)a=&quot;-0&quot;+a.substr(1);else for(;a.length&lt;10;)a=&quot;0&quot;+a;o=e&lt;T?Math.floor(E/h):0,s=e&lt;T?Math.floor(E%h/p):0,c=e&lt;k?Math.floor(E%p/d):0,y=e&lt;A?E%d*10+b:0}else x=new Date(w),a=v(&quot;%Y-%m-%d&quot;)(x),o=e&lt;T?x.getUTCHours():0,s=e&lt;T?x.getUTCMinutes():0,c=e&lt;k?x.getUTCSeconds():0,y=e&lt;A?10*x.getUTCMilliseconds()+b:0;return M(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t&gt;=n+f&amp;&amp;t&lt;=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return M(a(&quot;%Y-%m-%d&quot;)(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||&quot;number&quot;==typeof t&amp;&amp;isFinite(t)){if(_(n))return s.error(&quot;JS Dates and milliseconds are incompatible with world calendars&quot;,t),e;if(!(t=r.ms2DateTimeLocal(+t))&amp;&amp;void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(&quot;unrecognized date&quot;,t),e;return t};var S=/%\d?f/g,E=/%h/g,L={1:&quot;1&quot;,2:&quot;1&quot;,3:&quot;2&quot;,4:&quot;2&quot;};function C(t,e,r,n){t=t.replace(S,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,&quot;&quot;)||&quot;0&quot;}));var i=new Date(Math.floor(e+.05));if(t=t.replace(E,(function(){return L[r(&quot;%q&quot;)(i)]})),_(n))try{t=m.getComponentMethod(&quot;calendars&quot;,&quot;worldCalFmt&quot;)(t,e,n)}catch(t){return&quot;Invalid&quot;}return r(t)(i)}var P=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&amp;&amp;i,!e)if(&quot;y&quot;===r)e=a.year;else if(&quot;m&quot;===r)e=a.month;else{if(&quot;d&quot;!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+&quot;:&quot;+w(l(Math.floor(r/p),60),2);if(&quot;M&quot;!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),P[e])).toFixed(e).substr(1);e&gt;0&amp;&amp;(i=i.replace(/0+$/,&quot;&quot;).replace(/[\.]$/,&quot;&quot;)),n+=&quot;:&quot;+i}return n}(t,r)+&quot;\n&quot;+C(a.dayMonthYear,t,n,i);e=a.dayMonth+&quot;\n&quot;+a.year}return C(e,t,n,i)};var I=3*f;r.incrementMonth=function(t,e,r){r=_(r)&amp;&amp;r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r),o=a.fromJD(i);return e%12?a.add(o,e,&quot;m&quot;):a.add(o,e/12,&quot;y&quot;),(o.toJD()-g)*f+n}catch(e){s.error(&quot;invalid ms &quot;+t+&quot; in calendar &quot;+r)}var c=new Date(t+I);return c.setUTCMonth(c.getUTCMonth()+e)+n-I},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&amp;&amp;m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e),u=0;u&lt;t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{&quot;../constants/numerical&quot;:779,&quot;../registry&quot;:931,&quot;./loggers&quot;:807,&quot;./mod&quot;:810,&quot;d3-time-format&quot;:175,&quot;fast-isnumeric&quot;:249}],791:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./matrix&quot;),o=t(&quot;gl-mat4&quot;);function s(t){var e=t&amp;&amp;t.parentNode;e&amp;&amp;e.removeChild(t)}function l(t,e,r){var n=&quot;plotly.js-style-&quot;+t,a=document.getElementById(n);a||((a=document.createElement(&quot;style&quot;)).setAttribute(&quot;id&quot;,n),a.appendChild(document.createTextNode(&quot;&quot;)),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(e+&quot;{&quot;+r+&quot;}&quot;,0):o.addRule?o.addRule(e,r,0):i.warn(&quot;addStyleRule failed&quot;)}function c(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue(&quot;-webkit-transform&quot;)||e.getPropertyValue(&quot;-moz-transform&quot;)||e.getPropertyValue(&quot;-ms-transform&quot;)||e.getPropertyValue(&quot;-o-transform&quot;)||e.getPropertyValue(&quot;transform&quot;);return&quot;none&quot;===r?null:r.replace(&quot;matrix&quot;,&quot;&quot;).replace(&quot;3d&quot;,&quot;&quot;).slice(1,-1).split(&quot;,&quot;).map((function(t){return+t}))}function u(t){for(var e=[];f(t);)e.push(t),t=t.parentNode;return e}function f(t){return t&amp;&amp;(t instanceof Element||t instanceof HTMLElement)}e.exports={getGraphDiv:function(t){var e;if(&quot;string&quot;==typeof t){if(null===(e=document.getElementById(t)))throw new Error(&quot;No DOM element with id '&quot;+t+&quot;' exists on the page.&quot;);return e}if(null==t)throw new Error(&quot;DOM element provided is null or undefined&quot;);return t},isPlotDiv:function(t){var e=n.select(t);return e.node()instanceof HTMLElement&amp;&amp;e.size()&amp;&amp;e.classed(&quot;js-plotly-plot&quot;)},removeElement:s,addStyleRule:function(t,e){l(&quot;global&quot;,t,e)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(t){var e=&quot;plotly.js-style-&quot;+t,r=document.getElementById(e);r&amp;&amp;s(r)},getFullTransformMatrix:function(t){var e=u(t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=c(t);if(e){var n=a.convertCssMatrix(e);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(t,e){return t&amp;&amp;e&amp;&amp;t.x===e.x&amp;&amp;t.y===e.y&amp;&amp;t.top===e.top&amp;&amp;t.left===e.left&amp;&amp;t.right===e.right&amp;&amp;t.bottom===e.bottom}}},{&quot;./loggers&quot;:807,&quot;./matrix&quot;:809,&quot;@plotly/d3&quot;:58,&quot;gl-mat4&quot;:298}],792:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){&quot;undefined&quot;!=typeof jQuery&amp;&amp;jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;&quot;undefined&quot;!=typeof jQuery&amp;&amp;(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o&lt;s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:116}],793:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is_plain_object.js&quot;),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&amp;&amp;i(p)&amp;&amp;i(t[1])&amp;&amp;0===p.length){if(function(t,e){var r,n;for(r=0;r&lt;t.length;r++){if(null!==(n=t[r])&amp;&amp;&quot;object&quot;==typeof n)return!1;void 0!==n&amp;&amp;(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var g=1;g&lt;d;g++)for(l in s=t[g])c=p[l],u=s[l],o&amp;&amp;i(u)?p[l]=u:e&amp;&amp;u&amp;&amp;(n(u)||(f=i(u)))?(f?(f=!1,h=c&amp;&amp;i(c)?c:[]):h=c&amp;&amp;n(c)?c:{},p[l]=a([h,u],e,r,o)):(void 0!==u||r)&amp;&amp;(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{&quot;./is_plain_object.js&quot;:804}],794:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e={},r=[],n=0,i=0;i&lt;t.length;i++){var a=t[i];1!==e[a]&amp;&amp;(e[a]=1,r[n++]=a)}return r}},{}],795:[function(t,e,r){&quot;use strict&quot;;function n(t){return!0===t.visible}function i(t){var e=t[0].trace;return!0===e.visible&amp;&amp;0!==e._length}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&amp;&amp;Array.isArray(e[0])&amp;&amp;e[0][0]&amp;&amp;e[0][0].trace?i:n),a=[],o=0;o&lt;t.length;o++){var s=t[o];r(s)&amp;&amp;a.push(s)}return a}},{}],796:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;country-regex&quot;),a=t(&quot;@turf/area&quot;),o=t(&quot;@turf/centroid&quot;),s=t(&quot;@turf/bbox&quot;),l=t(&quot;./identity&quot;),c=t(&quot;./loggers&quot;),u=t(&quot;./is_plain_object&quot;),f=t(&quot;./nested_property&quot;),h=t(&quot;./polygon&quot;),p=Object.keys(i),d={&quot;ISO-3&quot;:l,&quot;USA-states&quot;:l,&quot;country names&quot;:function(t){for(var e=0;e&lt;p.length;e++){var r=p[e];if(new RegExp(i[r]).test(t.trim().toLowerCase()))return r}return c.log(&quot;Unrecognized country name: &quot;+t+&quot;.&quot;),!1}};function g(t){var e=t.geojson,r=window.PlotlyGeoAssets||{},n=&quot;string&quot;==typeof e?r[e]:e;return u(n)?n:(c.error(&quot;Oops ... something went wrong when fetching &quot;+e),!1)}e.exports={locationToFeature:function(t,e,r){if(!e||&quot;string&quot;!=typeof e)return!1;var n,i,a,o=d[t](e);if(o){if(&quot;USA-states&quot;===t)for(n=[],a=0;a&lt;r.length;a++)(i=r[a]).properties&amp;&amp;i.properties.gu&amp;&amp;&quot;USA&quot;===i.properties.gu&amp;&amp;n.push(i);else n=r;for(a=0;a&lt;n.length;a++)if((i=n[a]).id===o)return i;c.log([&quot;Location with id&quot;,o,&quot;does not have a matching topojson feature at this resolution.&quot;].join(&quot; &quot;))}return!1},feature2polygons:function(t){var e,r,n,i,a=t.geometry,o=a.coordinates,s=t.id,l=[];function c(t){for(var e=0;e&lt;t.length-1;e++)if(t[e][0]&gt;0&amp;&amp;t[e+1][0]&lt;0)return e;return null}switch(e=&quot;RUS&quot;===s||&quot;FJI&quot;===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;i&lt;t.length;i++)e[i]=[t[i][0]&lt;0?t[i][0]+360:t[i][0],t[i][1]];l.push(h.tester(e))}:&quot;ATA&quot;===s?function(t){var e=c(t);if(null===e)return l.push(h.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i&lt;t.length;i++)i&gt;e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case&quot;MultiPolygon&quot;:for(r=0;r&lt;o.length;r++)for(n=0;n&lt;o[r].length;n++)e(o[r][n]);break;case&quot;Polygon&quot;:for(r=0;r&lt;o.length;r++)e(o[r])}return l},getTraceGeojson:g,extractTraceFeature:function(t){var e=t[0].trace,r=g(e);if(!r)return!1;var n,i={},s=[];for(n=0;n&lt;e._length;n++){var l=t[n];(l.loc||0===l.loc)&amp;&amp;(i[l.loc]=l)}function u(t){var r=f(t,e.featureidkey||&quot;id&quot;).get(),n=i[r];if(n){var l=t.geometry;if(&quot;Polygon&quot;===l.type||&quot;MultiPolygon&quot;===l.type){var u={type:&quot;Feature&quot;,id:r,geometry:l,properties:{}};u.properties.ct=function(t){var e,r=t.geometry;if(&quot;MultiPolygon&quot;===r.type)for(var n=r.coordinates,i=0,s=0;s&lt;n.length;s++){var l={type:&quot;Polygon&quot;,coordinates:n[s]},c=a.default(l);c&gt;i&amp;&amp;(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}(u),n.fIn=t,n.fOut=u,s.push(u)}else c.log([&quot;Location&quot;,n.loc,&quot;does not have a valid GeoJSON geometry.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*Polygon* and *MultiPolygon* geometries.&quot;].join(&quot; &quot;))}delete i[r]}switch(r.type){case&quot;FeatureCollection&quot;:var h=r.features;for(n=0;n&lt;h.length;n++)u(h[n]);break;case&quot;Feature&quot;:u(r);break;default:return c.warn([&quot;Invalid GeoJSON type&quot;,(r.type||&quot;none&quot;)+&quot;.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*FeatureCollection* and *Feature* types.&quot;].join(&quot; &quot;)),!1}for(var p in i)c.log([&quot;Location *&quot;+p+&quot;*&quot;,&quot;does not have a matching feature with id-key&quot;,&quot;*&quot;+e.featureidkey+&quot;*.&quot;].join(&quot; &quot;));return s},fetchTraceGeoData:function(t){var e=window.PlotlyGeoAssets||{},r=[];function i(t){return new Promise((function(r,i){n.json(t,(function(n,a){if(n){delete e[t];var o=404===n.status?'GeoJSON at URL &quot;'+t+'&quot; does not exist.':&quot;Unexpected error while fetching from &quot;+t;return i(new Error(o))}return e[t]=a,r(a)}))}))}function a(t){return new Promise((function(r,n){var i=0,a=setInterval((function(){return e[t]&amp;&amp;&quot;pending&quot;!==e[t]?(clearInterval(a),r(e[t])):i&gt;100?(clearInterval(a),n(&quot;Unexpected error while fetching from &quot;+t)):void i++}),50)}))}for(var o=0;o&lt;t.length;o++){var s=t[o][0].trace.geojson;&quot;string&quot;==typeof s&amp;&amp;(e[s]?&quot;pending&quot;===e[s]&amp;&amp;r.push(a(s)):(e[s]=&quot;pending&quot;,r.push(i(s))))}return r},computeBbox:function(t){return s.default(t)}}},{&quot;./identity&quot;:801,&quot;./is_plain_object&quot;:804,&quot;./loggers&quot;:807,&quot;./nested_property&quot;:811,&quot;./polygon&quot;:815,&quot;@plotly/d3&quot;:58,&quot;@turf/area&quot;:61,&quot;@turf/bbox&quot;:64,&quot;@turf/centroid&quot;:67,&quot;country-regex&quot;:145}],797:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/numerical&quot;).BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a&lt;t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&amp;&amp;i.length&gt;0&amp;&amp;(r.push(i),i=[])}return i.length&gt;0&amp;&amp;r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:&quot;LineString&quot;,coordinates:t[0]}:{type:&quot;MultiLineString&quot;,coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:&quot;Polygon&quot;,coordinates:t};for(var e=new Array(t.length),r=0;r&lt;t.length;r++)e[r]=[t[r]];return{type:&quot;MultiPolygon&quot;,coordinates:e}},r.makeBlank=function(){return{type:&quot;Point&quot;,coordinates:[]}}},{&quot;../constants/numerical&quot;:779}],798:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;./mod&quot;).mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var g=(c*p-u*h)/d,m=(c*f-l*h)/d;return m&lt;0||m&gt;1||g&lt;0||g&gt;1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a&lt;0)return n*n+i*i;if(a&gt;r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,g=h*h+p*p,m=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,g,t-i,e-a),l(h,p,g,r-i,n-a));return Math.sqrt(m)},r.getTextLocation=function(t,e,r,s){if(t===i&amp;&amp;s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&amp;&amp;(i=r);var c=r.x&lt;a?a-r.x:r.x&gt;o?r.x-o:0,f=r.y&lt;s?s-r.y:r.y&gt;l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)&gt;f)return;p=h(c)}for(p=h(f);p;){if(c&gt;(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&amp;&amp;f===u&amp;&amp;Math.abs(n.x-i.x)&lt;.1&amp;&amp;Math.abs(n.y-i.y)&lt;.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]&gt;t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f&lt;c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)&lt;l)return a;u*o&gt;0?p=i:h=i,f++}return a}},{&quot;./mod&quot;:810}],799:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../components/colorscale&quot;),s=t(&quot;../components/color/attributes&quot;).defaultLine,l=t(&quot;./array&quot;).isArrayOrTypedArray,c=a(s);function u(t,e){var r=t;return r[3]*=e,r}function f(t){if(n(t))return c;var e=a(t);return e.length?e:c}function h(t){return n(t)?t:1}e.exports={formatColor:function(t,e,r){var n,i,s,p,d,g=t.color,m=l(g),v=l(e),y=o.extractOpts(t),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(t):f,i=m?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:f,s=v?function(t,e){return void 0===t[e]?1:h(t[e])}:h,m||v)for(var b=0;b&lt;r;b++)p=i(g,b),d=s(e,b),x[b]=u(p,d);else x=u(a(g),e);return x},parseColorScale:function(t){var e=o.extractOpts(t),r=e.colorscale;return e.reversescale&amp;&amp;(r=o.flipScale(e.colorscale)),r.map((function(t){var e=t[0],r=i(t[1]).toRgb();return{index:e,rgb:[r.r,r.g,r.b,r.a]}}))}}},{&quot;../components/color/attributes&quot;:665,&quot;../components/colorscale&quot;:678,&quot;./array&quot;:785,&quot;color-normalize&quot;:131,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],800:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./identity&quot;);function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{&quot;./identity&quot;:801}],801:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t}},{}],802:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!e)return t;var r=1/Math.abs(e),n=r&gt;1?(r*t+r*e)/r:t+e,i=String(n).length;if(i&gt;16){var a=String(e).length;if(i&gt;=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf(&quot;e+&quot;)&amp;&amp;(n=+o)}}return n}},{}],803:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;d3-format&quot;).format,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;../constants/numerical&quot;),l=s.FP_SAFE,c=-l,u=s.BADNUM,f=e.exports={};f.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:&quot;0.f&quot;===t?&quot;~f&quot;:/^\d%/.test(t)?&quot;~%&quot;:/^\ds/.test(t)?&quot;~s&quot;:!/^[~,.0$]/.test(t)&amp;&amp;/[&amp;fps]/.test(t)?&quot;~&quot;+t:t};var h={};f.warnBadFormat=function(t){var e=String(t);h[e]||(h[e]=1,f.warn('encountered bad format: &quot;'+e+'&quot;'))},f.noFormat=function(t){return String(t)},f.numberFormat=function(t){var e;try{e=a(f.adjustFormat(t))}catch(e){return f.warnBadFormat(t),f.noFormat}return e},f.nestedProperty=t(&quot;./nested_property&quot;),f.keyedContainer=t(&quot;./keyed_container&quot;),f.relativeAttr=t(&quot;./relative_attr&quot;),f.isPlainObject=t(&quot;./is_plain_object&quot;),f.toLogRange=t(&quot;./to_log_range&quot;),f.relinkPrivateKeys=t(&quot;./relink_private&quot;);var p=t(&quot;./array&quot;);f.isTypedArray=p.isTypedArray,f.isArrayOrTypedArray=p.isArrayOrTypedArray,f.isArray1D=p.isArray1D,f.ensureArray=p.ensureArray,f.concat=p.concat,f.maxRowLength=p.maxRowLength,f.minRowLength=p.minRowLength;var d=t(&quot;./mod&quot;);f.mod=d.mod,f.modHalf=d.modHalf;var g=t(&quot;./coerce&quot;);f.valObjectMeta=g.valObjectMeta,f.coerce=g.coerce,f.coerce2=g.coerce2,f.coerceFont=g.coerceFont,f.coercePattern=g.coercePattern,f.coerceHoverinfo=g.coerceHoverinfo,f.coerceSelectionMarkerOpacity=g.coerceSelectionMarkerOpacity,f.validate=g.validate;var m=t(&quot;./dates&quot;);f.dateTime2ms=m.dateTime2ms,f.isDateTime=m.isDateTime,f.ms2DateTime=m.ms2DateTime,f.ms2DateTimeLocal=m.ms2DateTimeLocal,f.cleanDate=m.cleanDate,f.isJSDate=m.isJSDate,f.formatDate=m.formatDate,f.incrementMonth=m.incrementMonth,f.dateTick0=m.dateTick0,f.dfltRange=m.dfltRange,f.findExactDates=m.findExactDates,f.MIN_MS=m.MIN_MS,f.MAX_MS=m.MAX_MS;var v=t(&quot;./search&quot;);f.findBin=v.findBin,f.sorterAsc=v.sorterAsc,f.sorterDes=v.sorterDes,f.distinctVals=v.distinctVals,f.roundUp=v.roundUp,f.sort=v.sort,f.findIndexOfMin=v.findIndexOfMin,f.sortObjectKeys=t(&quot;./sort_object_keys&quot;);var y=t(&quot;./stats&quot;);f.aggNums=y.aggNums,f.len=y.len,f.mean=y.mean,f.median=y.median,f.midRange=y.midRange,f.variance=y.variance,f.stdev=y.stdev,f.interp=y.interp;var x=t(&quot;./matrix&quot;);f.init2dArray=x.init2dArray,f.transposeRagged=x.transposeRagged,f.dot=x.dot,f.translationMatrix=x.translationMatrix,f.rotationMatrix=x.rotationMatrix,f.rotationXYMatrix=x.rotationXYMatrix,f.apply3DTransform=x.apply3DTransform,f.apply2DTransform=x.apply2DTransform,f.apply2DTransform2=x.apply2DTransform2,f.convertCssMatrix=x.convertCssMatrix,f.inverseTransformMatrix=x.inverseTransformMatrix;var b=t(&quot;./angles&quot;);f.deg2rad=b.deg2rad,f.rad2deg=b.rad2deg,f.angleDelta=b.angleDelta,f.angleDist=b.angleDist,f.isFullCircle=b.isFullCircle,f.isAngleInsideSector=b.isAngleInsideSector,f.isPtInsideSector=b.isPtInsideSector,f.pathArc=b.pathArc,f.pathSector=b.pathSector,f.pathAnnulus=b.pathAnnulus;var _=t(&quot;./anchor_utils&quot;);f.isLeftAnchor=_.isLeftAnchor,f.isCenterAnchor=_.isCenterAnchor,f.isRightAnchor=_.isRightAnchor,f.isTopAnchor=_.isTopAnchor,f.isMiddleAnchor=_.isMiddleAnchor,f.isBottomAnchor=_.isBottomAnchor;var w=t(&quot;./geometry2d&quot;);f.segmentsIntersect=w.segmentsIntersect,f.segmentDistance=w.segmentDistance,f.getTextLocation=w.getTextLocation,f.clearLocationCache=w.clearLocationCache,f.getVisibleSegment=w.getVisibleSegment,f.findPointOnPath=w.findPointOnPath;var T=t(&quot;./extend&quot;);f.extendFlat=T.extendFlat,f.extendDeep=T.extendDeep,f.extendDeepAll=T.extendDeepAll,f.extendDeepNoArrays=T.extendDeepNoArrays;var k=t(&quot;./loggers&quot;);f.log=k.log,f.warn=k.warn,f.error=k.error;var A=t(&quot;./regex&quot;);f.counterRegex=A.counter;var M=t(&quot;./throttle&quot;);f.throttle=M.throttle,f.throttleDone=M.done,f.clearThrottle=M.clear;var S=t(&quot;./dom&quot;);function E(t){var e={};for(var r in t)for(var n=t[r],i=0;i&lt;n.length;i++)e[n[i]]=+r;return e}f.getGraphDiv=S.getGraphDiv,f.isPlotDiv=S.isPlotDiv,f.removeElement=S.removeElement,f.addStyleRule=S.addStyleRule,f.addRelatedStyleRule=S.addRelatedStyleRule,f.deleteRelatedStyleRule=S.deleteRelatedStyleRule,f.getFullTransformMatrix=S.getFullTransformMatrix,f.getElementTransformMatrix=S.getElementTransformMatrix,f.getElementAndAncestors=S.getElementAndAncestors,f.equalDomRects=S.equalDomRects,f.clearResponsive=t(&quot;./clear_responsive&quot;),f.preserveDrawingBuffer=t(&quot;./preserve_drawing_buffer&quot;),f.makeTraceGroups=t(&quot;./make_trace_groups&quot;),f._=t(&quot;./localize&quot;),f.notifier=t(&quot;./notifier&quot;),f.filterUnique=t(&quot;./filter_unique&quot;),f.filterVisible=t(&quot;./filter_visible&quot;),f.pushUnique=t(&quot;./push_unique&quot;),f.increment=t(&quot;./increment&quot;),f.cleanNumber=t(&quot;./clean_number&quot;),f.ensureNumber=function(t){return o(t)?(t=Number(t))&gt;l||t&lt;c?u:t:u},f.isIndex=function(t,e){return!(void 0!==e&amp;&amp;t&gt;=e)&amp;&amp;(o(t)&amp;&amp;t&gt;=0&amp;&amp;t%1==0)},f.noop=t(&quot;./noop&quot;),f.identity=t(&quot;./identity&quot;),f.repeat=function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++)r[n]=t;return r},f.swapAttrs=function(t,e,r,n){r||(r=&quot;x&quot;),n||(n=&quot;y&quot;);for(var i=0;i&lt;e.length;i++){var a=e[i],o=f.nestedProperty(t,a.replace(&quot;?&quot;,r)),s=f.nestedProperty(t,a.replace(&quot;?&quot;,n)),l=o.get();o.set(s.get()),s.set(l)}},f.raiseToTop=function(t){t.parentNode.appendChild(t)},f.cancelTransition=function(t){return t.transition().duration(0)},f.constrain=function(t,e,r){return e&gt;r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},f.bBoxIntersect=function(t,e,r){return r=r||0,t.left&lt;=e.right+r&amp;&amp;e.left&lt;=t.right+r&amp;&amp;t.top&lt;=e.bottom+r&amp;&amp;e.top&lt;=t.bottom+r},f.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s&lt;a;s++)o[s]=e(t[s],r,n,i);return o},f.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&amp;&amp;(r=24),r&lt;=0)return&quot;0&quot;;var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=&quot;&quot;;for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var c=s-Math.floor(s);for(a=0;a&lt;Math.floor(s);a++)l=Math.floor(Math.random()*n).toString(n)+l;c&amp;&amp;(o=Math.pow(n,c),l=Math.floor(Math.random()*o).toString(n)+l);var u=parseInt(l,n);return e&amp;&amp;e[l]||u!==1/0&amp;&amp;u&gt;=Math.pow(2,r)?i&gt;10?(f.warn(&quot;randstr failed uniqueness&quot;),l):t(e,r,n,(i||0)+1):l},f.OptionControl=function(t,e){t||(t={}),e||(e=&quot;opt&quot;);var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[&quot;_&quot;+e]=t,r},f.smooth=function(t,e){if((e=Math.round(e)||0)&lt;2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r&lt;l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r&lt;o;r++){for(a=0,n=0;n&lt;l;n++)(i=r+n+1-e)&lt;-o?i-=s*Math.round(i/s):i&gt;=s&amp;&amp;(i-=s*Math.floor(i/s)),i&lt;0?i=-1-i:i&gt;=o&amp;&amp;(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},f.syncOrAsync=function(t,e,r){var n;function i(){return f.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&amp;&amp;n.then)return n.then(i);return r&amp;&amp;r(e)},f.stripTrailingSlash=function(t){return&quot;/&quot;===t.substr(-1)?t.substr(0,t.length-1):t},f.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n&lt;r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&amp;&amp;!a)for(n=0;n&lt;r.length;n++)t[r[n]]=e[r[n]]}},f.mergeArray=function(t,e,r,n){var i=&quot;function&quot;==typeof n;if(f.isArrayOrTypedArray(t))for(var a=Math.min(t.length,e.length),o=0;o&lt;a;o++){var s=t[o];e[o][r]=i?n(s):s}},f.mergeArrayCastPositive=function(t,e,r){return f.mergeArray(t,e,r,(function(t){var e=+t;return isFinite(e)&amp;&amp;e&gt;0?e:0}))},f.fillArray=function(t,e,r,n){if(n=n||f.identity,f.isArrayOrTypedArray(t))for(var i=0;i&lt;e.length;i++)e[i][r]=n(t[i])},f.castOption=function(t,e,r,n){n=n||f.identity;var i=f.nestedProperty(t,r).get();return f.isArrayOrTypedArray(i)?Array.isArray(e)&amp;&amp;f.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},f.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=f.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},f.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&amp;&amp;(n=E(o));for(var s=0;s&lt;a.length;s++){var l=a[s];if(f.isIndex(l)||f.isArrayOrTypedArray(l)&amp;&amp;f.isIndex(l[0])&amp;&amp;f.isIndex(l[1])){var c=n?n[l]:l,u=r?r[c]:c;void 0!==(i=u)&amp;&amp;i&lt;t.length&amp;&amp;(t[u].selected=1)}}},f.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=E(r),i=[],a=0;a&lt;e.length;a++){var o=e[a];if(f.isIndex(o)){var s=n[o];f.isIndex(s)&amp;&amp;i.push(s)}}return i}return e},f.getTargetArray=function(t,e){var r=e.target;if(&quot;string&quot;==typeof r&amp;&amp;r){var n=f.nestedProperty(t,r).get();return!!Array.isArray(n)&amp;&amp;n}return!!Array.isArray(r)&amp;&amp;r},f.minExtend=function(t,e){var r={};&quot;object&quot;!=typeof e&amp;&amp;(e={});var n,i,a,o=Object.keys(t);for(n=0;n&lt;o.length;n++)a=t[i=o[n]],&quot;_&quot;!==i.charAt(0)&amp;&amp;&quot;function&quot;!=typeof a&amp;&amp;(&quot;module&quot;===i?r[i]=a:Array.isArray(a)?r[i]=&quot;colorscale&quot;===i?a.slice():a.slice(0,3):f.isTypedArray(a)?r[i]=a.subarray(0,3):r[i]=a&amp;&amp;&quot;object&quot;==typeof a?f.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n&lt;o.length;n++)&quot;object&quot;==typeof(a=e[i=o[n]])&amp;&amp;i in r&amp;&amp;&quot;object&quot;==typeof r[i]||(r[i]=a);return r},f.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},f.containsAny=function(t,e){for(var r=0;r&lt;e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},f.isIE=function(){return void 0!==window.navigator.msSaveBlob};var L=/Version\/[\d\.]+.*Safari/;f.isSafari=function(){return L.test(window.navigator.userAgent)};var C=/iPad|iPhone|iPod/;f.isIOS=function(){return C.test(window.navigator.userAgent)};var P=/Firefox\/(\d+)\.\d+/;f.getFirefoxVersion=function(){var t=P.exec(window.navigator.userAgent);if(t&amp;&amp;2===t.length){var e=parseInt(t[1]);if(!isNaN(e))return e}return null},f.isD3Selection=function(t){return t instanceof n.selection},f.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?&quot;.&quot;+r:&quot;&quot;));if(i.size())return i;var a=t.append(e);return r&amp;&amp;a.classed(r,!0),n&amp;&amp;a.call(n),a},f.ensureSingleById=function(t,e,r,n){var i=t.select(e+&quot;#&quot;+r);if(i.size())return i;var a=t.append(e).attr(&quot;id&quot;,r);return n&amp;&amp;a.call(n),a},f.objectFromPath=function(t,e){for(var r,n=t.split(&quot;.&quot;),i=r={},a=0;a&lt;n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var I=/^([^\[\.]+)\.(.+)?/,O=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;f.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(&quot;object&quot;==typeof t&amp;&amp;!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&amp;&amp;((e=r.match(I))?(i=t[r],n=e[1],delete t[r],t[n]=f.extendDeepNoArrays(t[n]||{},f.objectFromPath(r,f.expandObjectPaths(i))[n])):(e=r.match(O))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],&quot;.&quot;===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},f.extendDeepNoArrays(o,f.objectFromPath(s,f.expandObjectPaths(i)))):t[n][a]=f.expandObjectPaths(i)):t[r]=f.expandObjectPaths(t[r]));return t},f.numSeparate=function(t,e,r){if(r||(r=!1),&quot;string&quot;!=typeof e||0===e.length)throw new Error(&quot;Separator string required for formatting!&quot;);&quot;number&quot;==typeof t&amp;&amp;(t=String(t));var n=/(\d+)(\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(&quot;.&quot;),s=o[0],l=o.length&gt;1?i+o[1]:&quot;&quot;;if(a&amp;&amp;(o.length&gt;1||s.length&gt;4||r))for(;n.test(s);)s=s.replace(n,&quot;$1&quot;+a+&quot;$2&quot;);return s+l},f.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var z=/^\w*$/;f.templateString=function(t,e){var r={};return t.replace(f.TEMPLATE_STRING_REGEX,(function(t,n){var i;return z.test(n)?i=e[n]:(r[n]=r[n]||f.nestedProperty(e,n).get,i=r[n]()),f.isValidTextValue(i)?i:&quot;&quot;}))};var D={max:10,count:0,name:&quot;hovertemplate&quot;};f.hovertemplateString=function(){return B.apply(D,arguments)};var R={max:10,count:0,name:&quot;texttemplate&quot;};f.texttemplateString=function(){return B.apply(R,arguments)};var F=/^[:|\|]/;function B(t,e,r){var n=this,a=arguments;e||(e={});var o={};return t.replace(f.TEMPLATE_STRING_REGEX,(function(t,s,l){var c,u,h,p=&quot;_xother&quot;===s||&quot;_yother&quot;===s,d=&quot;_xother_&quot;===s||&quot;_yother_&quot;===s,g=&quot;xother_&quot;===s||&quot;yother_&quot;===s,m=&quot;xother&quot;===s||&quot;yother&quot;===s||p||g||d,v=s;if((p||d)&amp;&amp;(v=v.substring(1)),(g||d)&amp;&amp;(v=v.substring(0,v.length-1)),m){if(void 0===(c=e[v]))return&quot;&quot;}else for(h=3;h&lt;a.length;h++)if(u=a[h]){if(u.hasOwnProperty(v)){c=u[v];break}if(z.test(v)||(c=f.nestedProperty(u,v).get(),(c=o[v]||f.nestedProperty(u,v).get())&amp;&amp;(o[v]=c)),void 0!==c)break}if(void 0===c&amp;&amp;n)return n.count&lt;n.max&amp;&amp;(f.warn(&quot;Variable '&quot;+v+&quot;' in &quot;+n.name+&quot; could not be found!&quot;),c=t),n.count===n.max&amp;&amp;f.warn(&quot;Too many &quot;+n.name+&quot; warnings - additional warnings will be suppressed&quot;),n.count++,t;if(l){var y;if(&quot;:&quot;===l[0]&amp;&amp;(c=(y=r?r.numberFormat:f.numberFormat)(l.replace(F,&quot;&quot;))(c)),&quot;|&quot;===l[0]){y=r?r.timeFormat:i;var x=f.dateTime2ms(c);c=f.formatDate(x,l.replace(F,&quot;&quot;),!1,y)}}else{var b=v+&quot;Label&quot;;e.hasOwnProperty(b)&amp;&amp;(c=e[b])}return m&amp;&amp;(c=&quot;(&quot;+c+&quot;)&quot;,(p||d)&amp;&amp;(c=&quot; &quot;+c),(g||d)&amp;&amp;(c+=&quot; &quot;)),c}))}f.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a&lt;r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o&gt;=48&amp;&amp;o&lt;=57,c=s&gt;=48&amp;&amp;s&lt;=57;if(l&amp;&amp;(n=10*n+o-48),c&amp;&amp;(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var N=2e9;f.seedPseudoRandom=function(){N=2e9},f.pseudoRandom=function(){var t=N;return N=(69069*N+1)%4294967296,Math.abs(N-t)&lt;429496729?f.pseudoRandom():N/4294967296},f.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=f.extractOption(t,e,&quot;htx&quot;,&quot;hovertext&quot;);if(f.isValidTextValue(i))return n(i);var a=f.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);return f.isValidTextValue(a)?n(a):void 0},f.isValidTextValue=function(t){return t||0===t},f.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+&quot;%&quot;,n=0;n&lt;e;n++)-1!==r.indexOf(&quot;.&quot;)&amp;&amp;(r=(r=r.replace(&quot;0%&quot;,&quot;%&quot;)).replace(&quot;.%&quot;,&quot;%&quot;));return r},f.isHidden=function(t){var e=window.getComputedStyle(t).display;return!e||&quot;none&quot;===e},f.strTranslate=function(t,e){return t||e?&quot;translate(&quot;+t+&quot;,&quot;+e+&quot;)&quot;:&quot;&quot;},f.strRotate=function(t){return t?&quot;rotate(&quot;+t+&quot;)&quot;:&quot;&quot;},f.strScale=function(t){return 1!==t?&quot;scale(&quot;+t+&quot;)&quot;:&quot;&quot;},f.getTextTransform=function(t){var e=t.noCenter,r=t.textX,n=t.textY,i=t.targetX,a=t.targetY,o=t.anchorX||0,s=t.anchorY||0,l=t.rotate,c=t.scale;return c?c&gt;1&amp;&amp;(c=1):c=0,f.strTranslate(i-c*(r+o),a-c*(n+s))+f.strScale(c)+(l?&quot;rotate(&quot;+l+(e?&quot;&quot;:&quot; &quot;+r+&quot; &quot;+n)+&quot;)&quot;:&quot;&quot;)},f.ensureUniformFontSize=function(t,e){var r=f.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},f.join2=function(t,e,r){var n=t.length;return n&gt;1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)},f.bigFont=function(t){return Math.round(1.2*t)};var j=f.getFirefoxVersion(),U=null!==j&amp;&amp;j&lt;86;f.getPositionFromD3Event=function(){return U?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},{&quot;../constants/numerical&quot;:779,&quot;./anchor_utils&quot;:783,&quot;./angles&quot;:784,&quot;./array&quot;:785,&quot;./clean_number&quot;:786,&quot;./clear_responsive&quot;:788,&quot;./coerce&quot;:789,&quot;./dates&quot;:790,&quot;./dom&quot;:791,&quot;./extend&quot;:793,&quot;./filter_unique&quot;:794,&quot;./filter_visible&quot;:795,&quot;./geometry2d&quot;:798,&quot;./identity&quot;:801,&quot;./increment&quot;:802,&quot;./is_plain_object&quot;:804,&quot;./keyed_container&quot;:805,&quot;./localize&quot;:806,&quot;./loggers&quot;:807,&quot;./make_trace_groups&quot;:808,&quot;./matrix&quot;:809,&quot;./mod&quot;:810,&quot;./nested_property&quot;:811,&quot;./noop&quot;:812,&quot;./notifier&quot;:813,&quot;./preserve_drawing_buffer&quot;:817,&quot;./push_unique&quot;:818,&quot;./regex&quot;:820,&quot;./relative_attr&quot;:821,&quot;./relink_private&quot;:822,&quot;./search&quot;:823,&quot;./sort_object_keys&quot;:826,&quot;./stats&quot;:827,&quot;./throttle&quot;:830,&quot;./to_log_range&quot;:831,&quot;@plotly/d3&quot;:58,&quot;d3-format&quot;:167,&quot;d3-time-format&quot;:175,&quot;fast-isnumeric&quot;:249}],804:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return window&amp;&amp;window.process&amp;&amp;window.process.versions?&quot;[object Object]&quot;===Object.prototype.toString.call(t):&quot;[object Object]&quot;===Object.prototype.toString.call(t)&amp;&amp;Object.getPrototypeOf(t).hasOwnProperty(&quot;hasOwnProperty&quot;)}},{}],805:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./nested_property&quot;),i=/^\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||&quot;name&quot;,a=a||&quot;value&quot;;var c={};e&amp;&amp;e.length?(l=n(t,e),s=l.get()):s=t,e=e||&quot;&quot;;var u={};if(s)for(o=0;o&lt;s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&amp;&amp;(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&amp;&amp;(i&amp;=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n||(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e),h},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length&gt;2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o&lt;s.length;o++)c[o]=3|c[o];for(o=e;o&lt;s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u&lt;l.length;u++)i=l[u],t=e+&quot;[&quot;+i+&quot;]&quot;,s[i]?(1&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+r]=s[i][r]),2&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+a]=f?4&amp;c[i]?null:s[i][a]:4&amp;c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{&quot;./nested_property&quot;:811}],806:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t,e){for(var r=t._context.locale,i=0;i&lt;2;i++){for(var a=t._context.locales,o=0;o&lt;2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(&quot;-&quot;)[0];if(c===r)break;r=c}return e}},{&quot;../registry&quot;:931}],807:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plot_api/plot_config&quot;).dfltConfig,i=t(&quot;./notifier&quot;),a=e.exports={};a.log=function(){var t;if(n.logging&gt;1){var e=[&quot;LOG:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);console.trace.apply(console,e)}if(n.notifyOnLogging&gt;1){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;long&quot;)}},a.warn=function(){var t;if(n.logging&gt;0){var e=[&quot;WARN:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);console.trace.apply(console,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}},a.error=function(){var t;if(n.logging&gt;0){var e=[&quot;ERROR:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);console.error.apply(console,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}}},{&quot;../plot_api/plot_config&quot;:841,&quot;./notifier&quot;:813}],808:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports=function(t,e,r){var i=t.selectAll(&quot;g.&quot;+r.replace(/\s/g,&quot;.&quot;)).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,r),i.order();var a=t.classed(&quot;rangeplot&quot;)?&quot;nodeRangePlot3&quot;:&quot;node3&quot;;return i.each((function(t){t[0][a]=n.select(this)})),i}},{&quot;@plotly/d3&quot;:58}],809:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mat4&quot;);r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n&lt;t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e&lt;i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e&lt;n;e++)for(a[e]=new Array(i),r=0;r&lt;i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i&lt;a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i&lt;o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i&lt;a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply3DTransform=function(t){return function(){var e=arguments,n=1===arguments.length?e[0]:[e[0],e[1],e[2]||0];return r.dot(t,[n[0],n[1],n[2],1]).slice(0,3)}},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&amp;&amp;(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}},r.convertCssMatrix=function(t){if(t){var e=t.length;if(16===e)return t;if(6===e)return[t[0],t[1],0,0,t[2],t[3],0,0,0,0,1,0,t[4],t[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},r.inverseTransformMatrix=function(t){var e=[];return n.invert(e,t),[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]}},{&quot;gl-mat4&quot;:298}],810:[function(t,e,r){&quot;use strict&quot;;e.exports={mod:function(t,e){var r=t%e;return r&lt;0?r+e:r},modHalf:function(t,e){return Math.abs(t)&gt;e/2?t-Math.round(t/e)*e:t}}},{}],811:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s&lt;e.length-1;s++){if(-1===(r=e[s])){for(n=!0,o=[],l=0;l&lt;c.length;l++)o[l]=a(c[l],e.slice(s+1))(),o[l]!==o[0]&amp;&amp;(n=!1);return n?o[0]:o}if(&quot;number&quot;==typeof r&amp;&amp;!i(c))return;if(&quot;object&quot;!=typeof(c=c[r])||null===c)return}if(&quot;object&quot;==typeof c&amp;&amp;null!==c&amp;&amp;null!==(o=c[e[s]]))return o}}e.exports=function(t,e){if(n(e))e=String(e);else if(&quot;string&quot;!=typeof e||&quot;[-1]&quot;===e.substr(e.length-4))throw&quot;bad property string&quot;;for(var r,i,o,s=0,c=e.split(&quot;.&quot;);s&lt;c.length;){if(r=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[s]=r[1];else{if(0!==s)throw&quot;bad property string&quot;;c.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(&quot;][&quot;),o=0;o&lt;i.length;o++)s++,c.splice(s,0,Number(i[o]))}s++}return&quot;object&quot;!=typeof t?function(t,e,r){return{set:function(){throw&quot;bad container&quot;},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:l(t,c,e),get:a(t,c),astr:e,parts:c,obj:t}};var o=/(^|\.)args\[/;function s(t,e){return void 0===t||null===t&amp;&amp;!e.match(o)}function l(t,e,r){return function(n){var a,o,l=t,h=&quot;&quot;,p=[[t,h]],d=s(n,r);for(o=0;o&lt;e.length-1;o++){if(&quot;number&quot;==typeof(a=e[o])&amp;&amp;!i(l))throw&quot;array index but container is not an array&quot;;if(-1===a){if(d=!u(l,e.slice(o+1),n,r))break;return}if(!f(l,a,e[o+1],d))break;if(&quot;object&quot;!=typeof(l=l[a])||null===l)throw&quot;container is not an object&quot;;h=c(h,a),p.push([l,h])}if(d){if(o===e.length-1&amp;&amp;(delete l[e[o]],Array.isArray(l)&amp;&amp;+e[o]==l.length-1))for(;l.length&amp;&amp;void 0===l[l.length-1];)l.pop()}else l[e[o]]=n}}function c(t,e){var r=e;return n(e)?r=&quot;[&quot;+e+&quot;]&quot;:t&amp;&amp;(r=&quot;.&quot;+e),t+r}function u(t,e,r,n){var a,o=i(r),c=!0,u=r,h=n.replace(&quot;-1&quot;,0),p=!o&amp;&amp;s(r,h),d=e[0];for(a=0;a&lt;t.length;a++)h=n.replace(&quot;-1&quot;,a),o&amp;&amp;(p=s(u=r[a%r.length],h)),p&amp;&amp;(c=!1),f(t,a,d,p)&amp;&amp;l(t[a],e,n.replace(&quot;-1&quot;,a))(u);return c}function f(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=&quot;number&quot;==typeof r?[]:{}}return!0}},{&quot;./array&quot;:785,&quot;fast-isnumeric&quot;:249}],812:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],813:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:&quot;long&quot;===e&amp;&amp;(r=3e3);var o=n.select(&quot;body&quot;).selectAll(&quot;.plotly-notifier&quot;).data([0]);o.enter().append(&quot;div&quot;).classed(&quot;plotly-notifier&quot;,!0),o.selectAll(&quot;.notifier-note&quot;).data(a).enter().append(&quot;div&quot;).classed(&quot;notifier-note&quot;,!0).style(&quot;opacity&quot;,0).each((function(t){var i=n.select(this);i.append(&quot;button&quot;).classed(&quot;notifier-close&quot;,!0).html(&quot;&amp;times;&quot;).on(&quot;click&quot;,(function(){i.transition().call(s)}));for(var a=i.append(&quot;p&quot;),o=t.split(/&lt;br\s*\/?&gt;/g),l=0;l&lt;o.length;l++)l&amp;&amp;a.append(&quot;br&quot;),a.append(&quot;span&quot;).text(o[l]);&quot;stick&quot;===e?i.transition().duration(350).style(&quot;opacity&quot;,1):i.transition().duration(700).style(&quot;opacity&quot;,1).transition().delay(r).call(s)}))}function s(t){t.duration(700).style(&quot;opacity&quot;,0).each(&quot;end&quot;,(function(t){var e=a.indexOf(t);-1!==e&amp;&amp;a.splice(e,1),n.select(this).remove()}))}}},{&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],814:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./setcursor&quot;),i=&quot;data-savedcursor&quot;;e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;),o=0;o&lt;a.length;o++){var s=a[o];0===s.indexOf(&quot;cursor-&quot;)&amp;&amp;t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,&quot;!!&quot;)}n(t,e)}else r&amp;&amp;(t.attr(i,null),&quot;!!&quot;===r?n(t):n(t,r))}},{&quot;./setcursor&quot;:824}],815:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./matrix&quot;).dot,i=t(&quot;../constants/numerical&quot;).BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e&lt;r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&amp;&amp;(r[0][0]===r[1][0]?r[2][0]===r[3][0]&amp;&amp;r[0][1]===r[3][1]&amp;&amp;r[1][1]===r[2][1]&amp;&amp;(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&amp;&amp;r[2][1]===r[3][1]&amp;&amp;r[0][0]===r[3][0]&amp;&amp;r[1][0]===r[2][0]&amp;&amp;(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e&lt;r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r&lt;n||r&gt;a||c===i||c&lt;o||c&gt;s)&amp;&amp;(!e||!l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l&lt;n||l&gt;a||c===i||c&lt;o||c&gt;s)return!1;var u,f,h,p,d,g=r.length,m=r[0][0],v=r[0][1],y=0;for(u=1;u&lt;g;u++)if(f=m,h=v,m=r[u][0],v=r[u][1],!(l&lt;(p=Math.min(f,m))||l&gt;Math.max(f,m)||c&gt;Math.max(h,v)))if(c&lt;Math.min(h,v))l!==p&amp;&amp;y++;else{if(c===(d=m===f?c:h+(l-f)*(v-h)/(m-f)))return 1!==u||!e;c&lt;=d&amp;&amp;l!==p&amp;&amp;y++}return y%2==1},isRect:c,degenerate:u}},a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a&lt;r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))&lt;0||s&gt;u||Math.abs(n(o,h))&gt;i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c&lt;t.length;c++)(c===t.length-1||a.isSegmentBent(t,l,c+1,e))&amp;&amp;(r.push(t[c]),r.length&lt;s-2&amp;&amp;(n=c,i=r.length-1),l=c)}t.length&gt;1&amp;&amp;o(t.pop());return{addPt:o,raw:t,filtered:r}}},{&quot;../constants/numerical&quot;:779,&quot;./matrix&quot;:809}],816:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;./show_no_webgl_msg&quot;),i=t(&quot;regl&quot;);e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each((function(n){if(!n.regl&amp;&amp;(!n.pick||a._has(&quot;parcoords&quot;))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}n.regl||(o=!1),o&amp;&amp;this.addEventListener(&quot;webglcontextlost&quot;,(function(e){t&amp;&amp;t.emit&amp;&amp;t.emit(&quot;plotly_webglcontextlost&quot;,{event:e,layer:n.key})}),!1)}})),o||n({container:a._glcontainer.node()}),o}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./show_no_webgl_msg&quot;:825,regl:540}],817:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;is-mobile&quot;);e.exports=function(t){var e;if(&quot;string&quot;!=typeof(e=t&amp;&amp;t.hasOwnProperty(&quot;userAgent&quot;)?t.userAgent:function(){var t;&quot;undefined&quot;!=typeof navigator&amp;&amp;(t=navigator.userAgent);t&amp;&amp;t.headers&amp;&amp;&quot;string&quot;==typeof t.headers[&quot;user-agent&quot;]&amp;&amp;(t=t.headers[&quot;user-agent&quot;]);return t}()))return!0;var r=i({ua:{headers:{&quot;user-agent&quot;:e}},tablet:!0,featureDetect:!1});if(!r)for(var a=e.split(&quot; &quot;),o=1;o&lt;a.length;o++){if(-1!==a[o].indexOf(&quot;Safari&quot;))for(var s=o-1;s&gt;-1;s--){var l=a[s];if(&quot;Version/&quot;===l.substr(0,8)){var c=l.substr(8).split(&quot;.&quot;)[0];if(n(c)&amp;&amp;(c=+c),c&gt;=13)return!0}}}return r}},{&quot;fast-isnumeric&quot;:249,&quot;is-mobile&quot;:455}],818:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;n&lt;t.length;n++)if(t[n]instanceof RegExp&amp;&amp;t[n].toString()===r)return t;t.push(e)}else!e&amp;&amp;0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],819:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_config&quot;).dfltConfig;var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&amp;&amp;(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length&gt;i.queueLength&amp;&amp;(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&lt;=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&gt;=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a&lt;e.length;a++)r=e[a],i[a]=r===t?r:&quot;object&quot;==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{&quot;../lib&quot;:803,&quot;../plot_api/plot_config&quot;:841}],820:[function(t,e,r){&quot;use strict&quot;;r.counter=function(t,e,r,n){var i=(e||&quot;&quot;)+(r?&quot;&quot;:&quot;$&quot;),a=!1===n?&quot;&quot;:&quot;^&quot;;return&quot;xy&quot;===t?new RegExp(a+&quot;x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?&quot;+i):new RegExp(a+t+&quot;([2-9]|[1-9][0-9]+)?&quot;+i)}},{}],821:[function(t,e,r){&quot;use strict&quot;;var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,i=/^[^\.\[\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(&quot;bad relativeAttr call:&quot;+[t,e]);t=&quot;&quot;}if(&quot;^&quot;!==e.charAt(0))break;e=e.slice(1)}return t&amp;&amp;&quot;[&quot;!==e.charAt(0)?t+&quot;.&quot;+e:t+e}},{}],822:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./array&quot;).isArrayOrTypedArray,i=t(&quot;./is_plain_object&quot;);e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(&quot;_&quot;===a.charAt(0)||&quot;function&quot;==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&amp;&amp;n(s)&amp;&amp;i(o[0])){if(&quot;customdata&quot;===a||&quot;ids&quot;===a)continue;for(var l=Math.min(o.length,s.length),c=0;c&lt;l;c++)s[c]!==o[c]&amp;&amp;i(o[c])&amp;&amp;i(s[c])&amp;&amp;t(s[c],o[c])}else i(o)&amp;&amp;i(s)&amp;&amp;(t(s,o),Object.keys(s).length||delete e[a])}}},{&quot;./array&quot;:785,&quot;./is_plain_object&quot;:804}],823:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./identity&quot;),o=t(&quot;../constants/numerical&quot;).BADNUM;function s(t,e){return t&lt;e}function l(t,e){return t&lt;=e}function c(t,e){return t&gt;e}function u(t,e){return t&gt;=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,o,f=0,h=e.length,p=0,d=h&gt;1?(e[h-1]-e[0])/(h-1):1;for(o=d&gt;=0?r?s:l:r?u:c,t+=1e-9*d*(r?-1:1)*(d&gt;=0?1:-1);f&lt;h&amp;&amp;p++&lt;100;)o(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p&gt;90&amp;&amp;i.log(&quot;Long binary search...&quot;),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t){var e,n=t.slice();for(n.sort(r.sorterAsc),e=n.length-1;e&gt;-1&amp;&amp;n[e]===o;e--);for(var i,a=n[e]-n[0]||1,s=a/(e||1)/1e4,l=[],c=0;c&lt;=e;c++){var u=n[c],f=u-i;void 0===i?(l.push(u),i=u):f&gt;s&amp;&amp;(a=Math.min(a,f),l.push(u),i=u)}return{vals:l,minDiff:a}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i&lt;a&amp;&amp;o++&lt;100;)e[n=c((i+a)/2)]&lt;=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i&lt;t.length;i++){var a=e(t[i],t[i-1]);if(a&lt;0?r=1:a&gt;0&amp;&amp;(n=1),r&amp;&amp;n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i&lt;t.length;i++){var o=e(t[i]);o&lt;n&amp;&amp;(n=o,r=i)}return r}},{&quot;../constants/numerical&quot;:779,&quot;./identity&quot;:801,&quot;./loggers&quot;:807,&quot;fast-isnumeric&quot;:249}],824:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;).forEach((function(e){0===e.indexOf(&quot;cursor-&quot;)&amp;&amp;t.classed(e,!1)})),e&amp;&amp;t.classed(&quot;cursor-&quot;+e,!0)}},{}],825:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/color&quot;),i=function(){};e.exports=function(t){for(var e in t)&quot;function&quot;==typeof t[e]&amp;&amp;(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(&quot;div&quot;);r.className=&quot;no-webgl&quot;,r.style.cursor=&quot;pointer&quot;,r.style.fontSize=&quot;24px&quot;,r.style.color=n.defaults[0],r.style.position=&quot;absolute&quot;,r.style.left=r.style.top=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,r.style[&quot;background-color&quot;]=n.lightLine,r.style[&quot;z-index&quot;]=30;var a=document.createElement(&quot;p&quot;);return a.textContent=&quot;WebGL is not supported by your browser - visit https://get.webgl.org for more info&quot;,a.style.position=&quot;relative&quot;,a.style.top=&quot;50%&quot;,a.style.left=&quot;50%&quot;,a.style.height=&quot;30%&quot;,a.style.width=&quot;50%&quot;,a.style.margin=&quot;-15% 0 0 -25%&quot;,r.appendChild(a),t.container.appendChild(r),t.container.style.background=&quot;#FFFFFF&quot;,t.container.onclick=function(){window.open(&quot;https://get.webgl.org&quot;)},!1}},{&quot;../components/color&quot;:666}],826:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return Object.keys(t).sort()}},{}],827:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o&gt;a.length)&amp;&amp;(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s&lt;o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s&lt;o;s++)n(e)?n(a[s])&amp;&amp;(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums((function(t){return t+1}),0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums((function(t,e){return t+e}),0,t)/e},r.midRange=function(t){if(void 0!==t&amp;&amp;0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums((function(t,e){return t+Math.pow(e-i,2)}),0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.median=function(t){var e=t.slice().sort();return r.interp(e,.5)},r.interp=function(t,e){if(!n(e))throw&quot;n should be a finite number&quot;;if((e=e*t.length-.5)&lt;0)return t[0];if(e&gt;t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{&quot;./array&quot;:785,&quot;fast-isnumeric&quot;:249}],828:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;);e.exports=function(t){return t?n(t):[0,0,0,1]}},{&quot;color-normalize&quot;:131}],829:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../lib&quot;),a=i.strTranslate,o=t(&quot;../constants/xmlns_namespaces&quot;),s=t(&quot;../constants/alignment&quot;).LINE_SPACING;function l(t,e){return t.node().getBoundingClientRect()[e]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,g){var M=t.text(),S=!t.attr(&quot;data-notex&quot;)&amp;&amp;&quot;undefined&quot;!=typeof MathJax&amp;&amp;M.match(c),C=n.select(t.node().parentNode);if(!C.empty()){var P=t.attr(&quot;class&quot;)?t.attr(&quot;class&quot;).split(&quot; &quot;)[0]:&quot;text&quot;;return P+=&quot;-math&quot;,C.selectAll(&quot;svg.&quot;+P).remove(),C.selectAll(&quot;g.&quot;+P+&quot;-group&quot;).remove(),t.style(&quot;display&quot;,null).attr({&quot;data-unformatted&quot;:M,&quot;data-math&quot;:&quot;N&quot;}),S?(e&amp;&amp;e._promises||[]).push(new Promise((function(e){t.style(&quot;display&quot;,&quot;none&quot;);var r=parseInt(t.node().style.fontSize,10),o={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&amp;&amp;(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:&quot;none&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]},displayAlign:&quot;left&quot;})}),(function(){if(&quot;SVG&quot;!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(&quot;SVG&quot;)}),(function(){var r=&quot;math-output-&quot;+i.randstr({},64);return l=n.select(&quot;body&quot;).append(&quot;div&quot;).attr({id:r}).style({visibility:&quot;hidden&quot;,position:&quot;absolute&quot;}).style({&quot;font-size&quot;:e.fontSize+&quot;px&quot;}).text(t.replace(u,&quot;\\lt &quot;).replace(f,&quot;\\gt &quot;)),MathJax.Hub.Typeset(l.node())}),(function(){var e=n.select(&quot;body&quot;).select(&quot;#MathJax_SVG_glyphs&quot;);if(l.select(&quot;.MathJax_SVG&quot;).empty()||!l.select(&quot;svg&quot;).node())i.log(&quot;There was an error in the tex syntax.&quot;,t),r();else{var o=l.select(&quot;svg&quot;).node().getBoundingClientRect();r(l.select(&quot;.MathJax_SVG&quot;),e,o)}if(l.remove(),&quot;SVG&quot;!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&amp;&amp;(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)}))}(S[2],o,(function(n,i,o){C.selectAll(&quot;svg.&quot;+P).remove(),C.selectAll(&quot;g.&quot;+P+&quot;-group&quot;).remove();var s=n&amp;&amp;n.select(&quot;svg&quot;);if(!s||!s.node())return I(),void e();var c=C.append(&quot;g&quot;).classed(P+&quot;-group&quot;,!0).attr({&quot;pointer-events&quot;:&quot;none&quot;,&quot;data-unformatted&quot;:M,&quot;data-math&quot;:&quot;Y&quot;});c.node().appendChild(s.node()),i&amp;&amp;i.node()&amp;&amp;s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild),s.attr({class:P,height:o.height,preserveAspectRatio:&quot;xMinYMin meet&quot;}).style({overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;});var u=t.node().style.fill||&quot;black&quot;,f=s.select(&quot;g&quot;);f.attr({fill:u,stroke:u});var h=l(f,&quot;width&quot;),p=l(f,&quot;height&quot;),d=+t.attr(&quot;x&quot;)-h*{start:0,middle:.5,end:1}[t.attr(&quot;text-anchor&quot;)||&quot;start&quot;],m=-(r||l(t,&quot;height&quot;))/4;&quot;y&quot;===P[0]?(c.attr({transform:&quot;rotate(&quot;+[-90,+t.attr(&quot;x&quot;),+t.attr(&quot;y&quot;)]+&quot;)&quot;+a(-h/2,m-p/2)}),s.attr({x:+t.attr(&quot;x&quot;),y:+t.attr(&quot;y&quot;)})):&quot;l&quot;===P[0]?s.attr({x:t.attr(&quot;x&quot;),y:m-p/2}):&quot;a&quot;===P[0]&amp;&amp;0!==P.indexOf(&quot;atitle&quot;)?s.attr({x:0,y:m}):s.attr({x:d,y:+t.attr(&quot;y&quot;)+m-p/2}),g&amp;&amp;g.call(t,c),e(c)}))}))):I(),t}function I(){C.empty()||(P=t.attr(&quot;class&quot;)+&quot;-math&quot;,C.select(&quot;svg.&quot;+P).remove()),t.text(&quot;&quot;).style(&quot;white-space&quot;,&quot;pre&quot;),function(t,e){e=e.replace(m,&quot; &quot;);var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,&quot;tspan&quot;);n.select(e).attr({class:&quot;line&quot;,dy:c*s+&quot;em&quot;}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length&gt;1)for(var a=1;a&lt;i.length;a++)f(i[a])}function f(t){var e,i=t.type,a={};if(&quot;a&quot;===i){e=&quot;a&quot;;var s=t.target,c=t.href,u=t.popup;c&amp;&amp;(a={&quot;xlink:xlink:show&quot;:&quot;_blank&quot;===s||&quot;_&quot;!==s.charAt(0)?&quot;new&quot;:&quot;replace&quot;,target:s,&quot;xlink:xlink:href&quot;:c},u&amp;&amp;(a.onclick='window.open(this.href.baseVal,this.target.baseVal,&quot;'+u+'&quot;);return false;'))}else e=&quot;tspan&quot;;t.style&amp;&amp;(a.style=t.style);var f=document.createElementNS(o.svg,e);if(&quot;sup&quot;===i||&quot;sub&quot;===i){g(r,&quot;\u200b&quot;),r.appendChild(f);var h=document.createElementNS(o.svg,&quot;tspan&quot;);g(h,&quot;\u200b&quot;),n.select(h).attr(&quot;dy&quot;,d[i]),a.dy=p[i],r.appendChild(f),r.appendChild(h)}else r.appendChild(f);n.select(f).attr(a),r=t.node=f,l.push(t)}function g(t,e){t.appendChild(document.createTextNode(e))}function M(t){if(1!==l.length){var n=l.pop();t!==n.type&amp;&amp;i.log(&quot;Start tag &lt;&quot;+n.type+&quot;&gt; doesnt match end tag &lt;&quot;+t+&quot;&gt;. Pretending it did match.&quot;,e),r=l[l.length-1].node}else i.log(&quot;Ignoring unexpected end tag &lt;/&quot;+t+&quot;&gt;.&quot;,e)}x.test(e)?u():(r=t,l=[{node:t}]);for(var S=e.split(v),C=0;C&lt;S.length;C++){var P=S[C],I=P.match(y),O=I&amp;&amp;I[2].toLowerCase(),z=h[O];if(&quot;br&quot;===O)u();else if(void 0===z)g(r,E(P));else if(I[1])M(O);else{var D=I[4],R={type:O},F=k(D,b);if(F?(F=F.replace(A,&quot;$1 fill:&quot;),z&amp;&amp;(F+=&quot;;&quot;+z)):z&amp;&amp;(F=z),F&amp;&amp;(R.style=F),&quot;a&quot;===O){a=!0;var B=k(D,_);if(B){var N=L(B);N&amp;&amp;(R.href=N,R.target=k(D,w)||&quot;_blank&quot;,R.popup=k(D,T))}}f(R)}}return a}(t.node(),M)&amp;&amp;t.style(&quot;pointer-events&quot;,&quot;all&quot;),r.positionText(t),g&amp;&amp;g.call(t)}};var u=/(&lt;|&amp;lt;|&amp;#60;)/g,f=/(&gt;|&amp;gt;|&amp;#62;)/g;var h={sup:&quot;font-size:70%&quot;,sub:&quot;font-size:70%&quot;,b:&quot;font-weight:bold&quot;,i:&quot;font-style:italic&quot;,a:&quot;cursor:pointer&quot;,span:&quot;&quot;,em:&quot;font-style:italic;font-weight:bold&quot;},p={sub:&quot;0.3em&quot;,sup:&quot;-0.6em&quot;},d={sub:&quot;-0.21em&quot;,sup:&quot;0.42em&quot;},g=[&quot;http:&quot;,&quot;https:&quot;,&quot;mailto:&quot;,&quot;&quot;,void 0,&quot;:&quot;],m=r.NEWLINES=/(\r\n?|\n)/g,v=/(&lt;[^&lt;&gt;]*&gt;)/,y=/&lt;(\/?)([^ &gt;]*)(\s+(.*))?&gt;/i,x=/&lt;br(\s+.*)?&gt;/i;r.BR_TAG_ALL=/&lt;br(\s+.*)?&gt;/gi;var b=/(^|[\s&quot;'])style\s*=\s*(&quot;([^&quot;]*);?&quot;|'([^']*);?')/i,_=/(^|[\s&quot;'])href\s*=\s*(&quot;([^&quot;]*)&quot;|'([^']*)')/i,w=/(^|[\s&quot;'])target\s*=\s*(&quot;([^&quot;\s]*)&quot;|'([^'\s]*)')/i,T=/(^|[\s&quot;'])popup\s*=\s*(&quot;([\w=,]*)&quot;|'([\w=,]*)')/i;function k(t,e){if(!t)return null;var r=t.match(e),n=r&amp;&amp;(r[3]||r[4]);return n&amp;&amp;E(n)}var A=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&amp;&amp;-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:[&quot;br&quot;],i=&quot;...&quot;.length,a=t.split(v),o=[],s=&quot;&quot;,l=0,c=0;c&lt;a.length;c++){var u=a[c],f=u.match(y),h=f&amp;&amp;f[2].toLowerCase();if(h)-1!==n.indexOf(h)&amp;&amp;(o.push(u),s=h);else{var p=u.length;if(l+p&lt;r)o.push(u),l+=p;else if(l&lt;r){var d=r-l;s&amp;&amp;(&quot;br&quot;!==s||d&lt;=i||p&lt;=i)&amp;&amp;o.pop(),r&gt;i?o.push(u.substr(0,d-i)+&quot;...&quot;):o.push(u.substr(0,d));break}s=&quot;&quot;}}return o.join(&quot;&quot;)};var M={mu:&quot;\u03bc&quot;,amp:&quot;&amp;&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,nbsp:&quot;\xa0&quot;,times:&quot;\xd7&quot;,plusmn:&quot;\xb1&quot;,deg:&quot;\xb0&quot;},S=/&amp;(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(t){return t.replace(S,(function(t,e){return(&quot;#&quot;===e.charAt(0)?function(t){if(t&gt;1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t&lt;=65535?r(t):r(55232+(t&gt;&gt;10),t%1024+56320)}(&quot;x&quot;===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):M[e])||t}))}function L(t){var e=encodeURI(decodeURI(t)),r=document.createElement(&quot;a&quot;),n=document.createElement(&quot;a&quot;);r.href=t,n.href=e;var i=r.protocol,a=n.protocol;return-1!==g.indexOf(i)&amp;&amp;-1!==g.indexOf(a)?e:&quot;&quot;}function C(t,e,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||&quot;top&quot;,c=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return a=&quot;bottom&quot;===l?function(){return c.bottom-n.height}:&quot;middle&quot;===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o=&quot;right&quot;===s?function(){return c.right-n.width}:&quot;center&quot;===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var t=o()-u.left,e=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+&quot;px&quot;,left:t+&quot;px&quot;,&quot;z-index&quot;:1e3}),this}}r.convertEntities=E,r.sanitizeHTML=function(t){t=t.replace(m,&quot; &quot;);for(var e=document.createElement(&quot;p&quot;),r=e,i=[],a=t.split(v),o=0;o&lt;a.length;o++){var s=a[o],l=s.match(y),c=l&amp;&amp;l[2].toLowerCase();if(c in h)if(l[1])i.length&amp;&amp;(r=i.pop());else{var u=l[4],f=k(u,b),p=f?{style:f}:{};if(&quot;a&quot;===c){var d=k(u,_);if(d){var g=L(d);if(g){p.href=g;var x=k(u,w);x&amp;&amp;(p.target=x)}}}var T=document.createElement(c);r.appendChild(T),n.select(T).attr(p),r=T,i.push(T)}else r.appendChild(document.createTextNode(E(s)))}return e.innerHTML},r.lineCount=function(t){return t.selectAll(&quot;tspan.line&quot;).size()||1},r.positionText=function(t,e,r){return t.each((function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&amp;&amp;(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(&quot;x&quot;,e),o=i(&quot;y&quot;,r);&quot;text&quot;===this.nodeName&amp;&amp;t.selectAll(&quot;tspan.line&quot;).attr({x:a,y:o})}))};r.makeTextShadow=function(t){var e=&quot;1px &quot;,r=&quot;1px &quot;,n=&quot;1px &quot;;return e+r+n+t+&quot;, -&quot;+e+&quot;-&quot;+r+n+t+&quot;, &quot;+e+&quot;-&quot;+r+n+t+&quot;, -&quot;+e+r+n+t},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(&quot;edit&quot;,&quot;input&quot;,&quot;cancel&quot;),o=i||t;if(t.style({&quot;pointer-events&quot;:i?&quot;none&quot;:&quot;all&quot;}),1!==t.size())throw new Error(&quot;boo&quot;);function s(){!function(){var i=n.select(r).select(&quot;.svg-container&quot;),o=i.append(&quot;div&quot;),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&amp;&amp;(u=t.attr(&quot;data-unformatted&quot;));o.classed(&quot;plugin-editable editable&quot;,!0).style({position:&quot;absolute&quot;,&quot;font-family&quot;:s.fontFamily||&quot;Arial&quot;,&quot;font-size&quot;:c,color:e.fill||s.fill||&quot;black&quot;,opacity:1,&quot;background-color&quot;:e.background||&quot;transparent&quot;,outline:&quot;#ffffff33 1px solid&quot;,margin:[-c/8+1,0,0,-1].join(&quot;px &quot;)+&quot;px&quot;,padding:&quot;0&quot;,&quot;box-sizing&quot;:&quot;border-box&quot;}).attr({contenteditable:!0}).text(u).call(C(t,i,e)).on(&quot;blur&quot;,(function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(&quot;class&quot;);(e=i?&quot;.&quot;+i.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(&quot;mouseup&quot;,null),a.edit.call(t,o)})).on(&quot;focus&quot;,(function(){var t=this;r._editing=!0,n.select(document).on(&quot;mouseup&quot;,(function(){if(n.event.target===t)return!1;document.activeElement===o.node()&amp;&amp;o.node().blur()}))})).on(&quot;keyup&quot;,(function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(&quot;blur&quot;,(function(){return!1})).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(C(t,i,e)))})).on(&quot;keydown&quot;,(function(){13===n.event.which&amp;&amp;this.blur()})).call(l)}(),t.style({opacity:0});var i,s=o.attr(&quot;class&quot;);(i=s?&quot;.&quot;+s.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(&quot;click&quot;,s),n.rebind(t,a,&quot;on&quot;)}},{&quot;../constants/alignment&quot;:771,&quot;../constants/xmlns_namespaces&quot;:780,&quot;../lib&quot;:803,&quot;@plotly/d3&quot;:58}],830:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t){t&amp;&amp;null!==t.timer&amp;&amp;(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts&lt;o-6e4&amp;&amp;delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&amp;&amp;(a.onDone(),a.onDone=null)}i(a),o&gt;a.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&amp;&amp;e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&amp;&amp;r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],831:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){if(t&gt;0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{&quot;fast-isnumeric&quot;:249}],832:[function(t,e,r){&quot;use strict&quot;;var n=e.exports={},i=t(&quot;../plots/geo/constants&quot;).locationmodeToLayer,a=t(&quot;topojson-client&quot;).feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,&quot;-&quot;),&quot;_&quot;,t.resolution.toString(),&quot;m&quot;].join(&quot;&quot;)},n.getTopojsonPath=function(t,e){return t+e+&quot;.json&quot;},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{&quot;../plots/geo/constants&quot;:885,&quot;topojson-client&quot;:601}],833:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en-US&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colorscale title&quot;},format:{date:&quot;%m/%d/%Y&quot;}}},{}],834:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colourscale title&quot;},format:{days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],periods:[&quot;AM&quot;,&quot;PM&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%d/%m/%Y&quot;,time:&quot;%H:%M:%S&quot;,decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],year:&quot;%Y&quot;,month:&quot;%b %Y&quot;,dayMonth:&quot;%b %-d&quot;,dayMonthYear:&quot;%b %-d, %Y&quot;}}},{}],835:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(&quot;[&quot;)[0],s=0;s&lt;a.length;s++)if((r=t.match(a[s]))&amp;&amp;0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&amp;&amp;{array:e,index:Number(r[1]),property:r[3]||&quot;&quot;}:{array:e,index:&quot;&quot;,property:&quot;&quot;}}},{&quot;../registry&quot;:931}],836:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.extendFlat,a=n.isPlainObject,o={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;clearAxisTypes&quot;,&quot;plot&quot;,&quot;style&quot;,&quot;markerSize&quot;,&quot;colorbars&quot;]},s={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;plot&quot;,&quot;legend&quot;,&quot;ticks&quot;,&quot;axrange&quot;,&quot;layoutstyle&quot;,&quot;modebar&quot;,&quot;camera&quot;,&quot;arraydraw&quot;,&quot;colorbars&quot;]},l=o.flags.slice().concat([&quot;fullReplot&quot;]),c=s.flags.slice().concat(&quot;layoutReplot&quot;);function u(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&amp;&amp;(n[o]=h(s,e,r,o))}return&quot;from-root&quot;===r&amp;&amp;(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o&lt;t.items.length;o++)a.items[o]=h(t.items[o],e,&quot;from-root&quot;)}return a}return f(t,e,&quot;_&quot;===n.charAt(0)?&quot;nested&quot;:&quot;from-root&quot;)}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&amp;&amp;&quot;none&quot;!==r)for(var n=r.split(&quot;+&quot;),i=0;i&lt;n.length;i++)t[n[i]]=!0},overrideAll:f}},{&quot;../lib&quot;:803}],837:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;gl-mat4/fromQuat&quot;),a=t(&quot;../registry&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../plots/plots&quot;),l=t(&quot;../plots/cartesian/axis_ids&quot;),c=t(&quot;../components/color&quot;),u=l.cleanId,f=l.getFromTrace,h=a.traceIs;function p(t,e){var r=t[e],n=e.charAt(0);r&amp;&amp;&quot;paper&quot;!==r&amp;&amp;(t[e]=u(r,n,!0))}function d(t){function e(e,r){var n=t[e],i=t.title&amp;&amp;t.title[r];n&amp;&amp;!i&amp;&amp;(t.title||(t.title={}),t.title[r]=t[e],delete t[e])}t&amp;&amp;(&quot;string&quot;!=typeof t.title&amp;&amp;&quot;number&quot;!=typeof t.title||(t.title={text:t.title}),e(&quot;titlefont&quot;,&quot;font&quot;),e(&quot;titleposition&quot;,&quot;position&quot;),e(&quot;titleside&quot;,&quot;side&quot;),e(&quot;titleoffset&quot;,&quot;offset&quot;))}function g(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)&amp;&amp;String(e)}function m(t,e,r,n){if(r&amp;&amp;!n)return t;if(n&amp;&amp;!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i&lt;a&amp;&amp;t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function v(t){var e=&quot;middle&quot;,r=&quot;center&quot;;return&quot;string&quot;==typeof t&amp;&amp;(-1!==t.indexOf(&quot;top&quot;)?e=&quot;top&quot;:-1!==t.indexOf(&quot;bottom&quot;)&amp;&amp;(e=&quot;bottom&quot;),-1!==t.indexOf(&quot;left&quot;)?r=&quot;left&quot;:-1!==t.indexOf(&quot;right&quot;)&amp;&amp;(r=&quot;right&quot;)),e+&quot; &quot;+r}function y(t,e){return e in t&amp;&amp;&quot;object&quot;==typeof t[e]&amp;&amp;0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&amp;&amp;t._promises.length&gt;0&amp;&amp;o.log(&quot;Clearing previous rejected promises from queue.&quot;),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&amp;&amp;(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&amp;&amp;(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&amp;&amp;(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,h=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(t);for(e=0;e&lt;g.length;e++){var m=g[e];if(a&amp;&amp;a.test(m)){var v=t[m];v.anchor&amp;&amp;&quot;free&quot;!==v.anchor&amp;&amp;(v.anchor=u(v.anchor)),v.overlaying&amp;&amp;(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type=&quot;date&quot;:v.islog?v.type=&quot;log&quot;:!1===v.isdate&amp;&amp;!1===v.islog&amp;&amp;(v.type=&quot;linear&quot;)),&quot;withzero&quot;!==v.autorange&amp;&amp;&quot;tozero&quot;!==v.autorange||(v.autorange=!0,v.rangemode=&quot;tozero&quot;),delete v.islog,delete v.isdate,delete v.categories,y(v,&quot;domain&quot;)&amp;&amp;delete v.domain,void 0!==v.autotick&amp;&amp;(void 0===v.tickmode&amp;&amp;(v.tickmode=v.autotick?&quot;auto&quot;:&quot;linear&quot;),delete v.autotick),d(v)}else if(l&amp;&amp;l.test(m)){d(t[m].radialaxis)}else if(f&amp;&amp;f.test(m)){var x=t[m];d(x.aaxis),d(x.baxis),d(x.caxis)}else if(h&amp;&amp;h.test(m)){var b=t[m],_=b.cameraposition;if(Array.isArray(_)&amp;&amp;4===_[0].length){var w=_[0],T=_[1],k=_[2],A=i([],w),M=[];for(n=0;n&lt;3;++n)M[n]=T[n]+k*A[2+4*n];b.camera={eye:{x:M[0],y:M[1],z:M[2]},center:{x:T[0],y:T[1],z:T[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}d(b.xaxis),d(b.yaxis),d(b.zaxis)}}var S=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e&lt;S;e++){var E=t.annotations[e];o.isPlainObject(E)&amp;&amp;(E.ref&amp;&amp;(&quot;paper&quot;===E.ref?(E.xref=&quot;paper&quot;,E.yref=&quot;paper&quot;):&quot;data&quot;===E.ref&amp;&amp;(E.xref=&quot;x&quot;,E.yref=&quot;y&quot;),delete E.ref),p(E,&quot;xref&quot;),p(E,&quot;yref&quot;))}var L=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e&lt;L;e++){var C=t.shapes[e];o.isPlainObject(C)&amp;&amp;(p(C,&quot;xref&quot;),p(C,&quot;yref&quot;))}var P=Array.isArray(t.images)?t.images.length:0;for(e=0;e&lt;P;e++){var I=t.images[e];o.isPlainObject(I)&amp;&amp;(p(I,&quot;xref&quot;),p(I,&quot;yref&quot;))}var O=t.legend;return O&amp;&amp;(O.x&gt;3?(O.x=1.02,O.xanchor=&quot;left&quot;):O.x&lt;-2&amp;&amp;(O.x=-.02,O.xanchor=&quot;right&quot;),O.y&gt;3?(O.y=1.02,O.yanchor=&quot;bottom&quot;):O.y&lt;-2&amp;&amp;(O.y=-.02,O.yanchor=&quot;top&quot;)),d(t),&quot;rotate&quot;===t.dragmode&amp;&amp;(t.dragmode=&quot;orbit&quot;),c.clean(t),t.template&amp;&amp;t.template.layout&amp;&amp;r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e&lt;t.length;e++){var n,i=t[e];if(&quot;histogramy&quot;===i.type&amp;&amp;&quot;xbins&quot;in i&amp;&amp;!(&quot;ybins&quot;in i)&amp;&amp;(i.ybins=i.xbins,delete i.xbins),i.error_y&amp;&amp;&quot;opacity&quot;in i.error_y){var l=c.defaults,f=i.error_y.color||(h(i,&quot;bar&quot;)?c.defaultLine:l[e%l.length]);i.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*i.error_y.opacity),delete i.error_y.opacity}if(&quot;bardir&quot;in i&amp;&amp;(&quot;h&quot;!==i.bardir||!h(i,&quot;bar&quot;)&amp;&amp;&quot;histogram&quot;!==i.type.substr(0,9)||(i.orientation=&quot;h&quot;,r.swapXYData(i)),delete i.bardir),&quot;histogramy&quot;===i.type&amp;&amp;r.swapXYData(i),&quot;histogramx&quot;!==i.type&amp;&amp;&quot;histogramy&quot;!==i.type||(i.type=&quot;histogram&quot;),&quot;scl&quot;in i&amp;&amp;!(&quot;colorscale&quot;in i)&amp;&amp;(i.colorscale=i.scl,delete i.scl),&quot;reversescl&quot;in i&amp;&amp;!(&quot;reversescale&quot;in i)&amp;&amp;(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&amp;&amp;(i.xaxis=u(i.xaxis,&quot;x&quot;)),i.yaxis&amp;&amp;(i.yaxis=u(i.yaxis,&quot;y&quot;)),h(i,&quot;gl3d&quot;)&amp;&amp;i.scene&amp;&amp;(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!h(i,&quot;pie-like&quot;)&amp;&amp;!h(i,&quot;bar-like&quot;))if(Array.isArray(i.textposition))for(n=0;n&lt;i.textposition.length;n++)i.textposition[n]=v(i.textposition[n]);else i.textposition&amp;&amp;(i.textposition=v(i.textposition));var p=a.getModule(i);if(p&amp;&amp;p.colorbar){var x=p.colorbar.container,b=x?i[x]:i;b&amp;&amp;b.colorscale&amp;&amp;(&quot;YIGnBu&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlGnBu&quot;),&quot;YIOrRd&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlOrRd&quot;))}if(&quot;surface&quot;===i.type&amp;&amp;o.isPlainObject(i.contours)){var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(n=0;n&lt;_.length;n++){var w=i.contours[_[n]];o.isPlainObject(w)&amp;&amp;(w.highlightColor&amp;&amp;(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&amp;&amp;(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if(&quot;candlestick&quot;===i.type||&quot;ohlc&quot;===i.type){var T=!1!==(i.increasing||{}).showlegend,k=!1!==(i.decreasing||{}).showlegend,A=g(i.increasing),M=g(i.decreasing);if(!1!==A&amp;&amp;!1!==M){var S=m(A,M,T,k);S&amp;&amp;(i.name=S)}else!A&amp;&amp;!M||i.name||(i.name=A||M)}if(Array.isArray(i.transforms)){var E=i.transforms;for(n=0;n&lt;E.length;n++){var L=E[n];if(o.isPlainObject(L))switch(L.type){case&quot;filter&quot;:L.filtersrc&amp;&amp;(L.target=L.filtersrc,delete L.filtersrc),L.calendar&amp;&amp;(L.valuecalendar||(L.valuecalendar=L.calendar),delete L.calendar);break;case&quot;groupby&quot;:if(L.styles=L.styles||L.style,L.styles&amp;&amp;!Array.isArray(L.styles)){var C=L.styles,P=Object.keys(C);L.styles=[];for(var I=0;I&lt;P.length;I++)L.styles.push({target:P[I],value:C[P[I]]})}}}}y(i,&quot;line&quot;)&amp;&amp;delete i.line,&quot;marker&quot;in i&amp;&amp;(y(i.marker,&quot;line&quot;)&amp;&amp;delete i.marker.line,y(i,&quot;marker&quot;)&amp;&amp;delete i.marker),c.clean(i),i.autobinx&amp;&amp;(delete i.autobinx,delete i.xbins),i.autobiny&amp;&amp;(delete i.autobiny,delete i.ybins),d(i),i.colorbar&amp;&amp;d(i.colorbar),i.marker&amp;&amp;i.marker.colorbar&amp;&amp;d(i.marker.colorbar),i.line&amp;&amp;i.line.colorbar&amp;&amp;d(i.line.colorbar),i.aaxis&amp;&amp;d(i.aaxis),i.baxis&amp;&amp;d(i.baxis)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[&quot;?&quot;,&quot;?0&quot;,&quot;d?&quot;,&quot;?bins&quot;,&quot;nbins?&quot;,&quot;autobin?&quot;,&quot;?src&quot;,&quot;error_?&quot;]),Array.isArray(t.z)&amp;&amp;Array.isArray(t.z[0])&amp;&amp;(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&amp;&amp;t.error_y){var r=t.error_y,n=&quot;copy_ystyle&quot;in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[&quot;error_?.copy_ystyle&quot;]),n&amp;&amp;o.swapAttrs(t,[&quot;error_?.color&quot;,&quot;error_?.thickness&quot;,&quot;error_?.width&quot;])}if(&quot;string&quot;==typeof t.hoverinfo){var i=t.hoverinfo.split(&quot;+&quot;);for(e=0;e&lt;i.length;e++)&quot;x&quot;===i[e]?i[e]=&quot;y&quot;:&quot;y&quot;===i[e]&amp;&amp;(i[e]=&quot;x&quot;);t.hoverinfo=i.join(&quot;+&quot;)}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map((function(t,e){return e}));if(Array.isArray(e)){for(var r=[],i=0;i&lt;e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(&quot;trace index (&quot;,e[i],&quot;) is not a number or is out of bounds&quot;);return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&amp;&amp;null===e){var u=a.slice(0,s-1).join(&quot;.&quot;);o.nestedProperty(i,u).get().splice(l,1)}else c&amp;&amp;void 0===t.get()?(void 0===t.get()&amp;&amp;(r[t.astr]=null),t.set(e)):t.set(e)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(t){var e=t.search(x);if(e&gt;0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];r.clearAxisTypes=function(t,e,r){for(var n=0;n&lt;e.length;n++)for(var i=t._fullData[n],a=0;a&lt;3;a++){var s=f(t,i,_[a]);if(s&amp;&amp;&quot;log&quot;!==s.type){var l=s._name,c=s._id.substr(1);if(&quot;scene&quot;===c.substr(0,5)){if(void 0!==r[c])continue;l=c+&quot;.&quot;+l}var u=l+&quot;.type&quot;;void 0===r[l]&amp;&amp;void 0===r[u]&amp;&amp;o.nestedProperty(t.layout,u).set(null)}}}},{&quot;../components/color&quot;:666,&quot;../lib&quot;:803,&quot;../plots/cartesian/axis_ids&quot;:858,&quot;../plots/plots&quot;:917,&quot;../registry&quot;:931,&quot;fast-isnumeric&quot;:249,&quot;gl-mat4/fromQuat&quot;:288}],838:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./plot_api&quot;);r._doPlot=n._doPlot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r._guiRestyle=n._guiRestyle,r._guiRelayout=n._guiRelayout,r._guiUpdate=n._guiUpdate,r._storeDirectGUIEdit=n._storeDirectGUIEdit,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(&quot;./to_image&quot;),r.validate=t(&quot;./validate&quot;),r.downloadImage=t(&quot;../snapshot/download&quot;);var i=t(&quot;./template_api&quot;);r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{&quot;../snapshot/download&quot;:933,&quot;./plot_api&quot;:840,&quot;./template_api&quot;:845,&quot;./to_image&quot;:846,&quot;./validate&quot;:847}],839:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/is_plain_object&quot;),i=t(&quot;../lib/noop&quot;),a=t(&quot;../lib/loggers&quot;),o=t(&quot;../lib/search&quot;).sorterAsc,s=t(&quot;../registry&quot;);r.containerArrayMatch=t(&quot;./container_array_match&quot;);var l=r.isAddVal=function(t){return&quot;add&quot;===t||n(t)},c=r.isRemoveVal=function(t){return null===t||&quot;remove&quot;===t};r.applyContainerArrayChanges=function(t,e,r,n,u){var f=e.astr,h=s.getComponentMethod(f,&quot;supplyLayoutDefaults&quot;),p=s.getComponentMethod(f,&quot;draw&quot;),d=s.getComponentMethod(f,&quot;drawOne&quot;),g=n.replot||n.recalc||h===i||p===i,m=t.layout,v=t._fullLayout;if(r[&quot;&quot;]){Object.keys(r).length&gt;1&amp;&amp;a.warn(&quot;Full array edits are incompatible with other edits&quot;,f);var y=r[&quot;&quot;][&quot;&quot;];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn(&quot;Unrecognized full array edit value&quot;,f,y),!0;e.set(y)}return!g&amp;&amp;(h(m,v),p(t),!0)}var x,b,_,w,T,k,A,M,S=Object.keys(r).map(Number).sort(o),E=e.get(),L=E||[],C=u(v,f).get(),P=[],I=-1,O=L.length;for(x=0;x&lt;S.length;x++)if(w=r[_=S[x]],T=Object.keys(w),k=w[&quot;&quot;],A=l(k),_&lt;0||_&gt;L.length-(A?0:1))a.warn(&quot;index out of range&quot;,f,_);else if(void 0!==k)T.length&gt;1&amp;&amp;a.warn(&quot;Insertion &amp; removal are incompatible with edits to the same index.&quot;,f,_),c(k)?P.push(_):A?(&quot;add&quot;===k&amp;&amp;(k={}),L.splice(_,0,k),C&amp;&amp;C.splice(_,0,{})):a.warn(&quot;Unrecognized full object edit value&quot;,f,_,k),-1===I&amp;&amp;(I=_);else for(b=0;b&lt;T.length;b++)M=f+&quot;[&quot;+_+&quot;].&quot;,u(L[_],T[b],M).set(w[T[b]]);for(x=P.length-1;x&gt;=0;x--)L.splice(P[x],1),C&amp;&amp;C.splice(P[x],1);if(L.length?E||e.set(L):e.set(null),g)return!1;if(h(m,v),d!==i){var z;if(-1===I)z=S;else{for(O=Math.max(L.length,O),z=[],x=0;x&lt;S.length&amp;&amp;!((_=S[x])&gt;=I);x++)z.push(_);for(x=I;x&lt;O;x++)z.push(x)}for(x=0;x&lt;z.length;x++)d(t,z[x])}else p(t);return!0}},{&quot;../lib/is_plain_object&quot;:804,&quot;../lib/loggers&quot;:807,&quot;../lib/noop&quot;:812,&quot;../lib/search&quot;:823,&quot;../registry&quot;:931,&quot;./container_array_match&quot;:835}],840:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;has-hover&quot;),o=t(&quot;../lib&quot;),s=o.nestedProperty,l=t(&quot;../lib/events&quot;),c=t(&quot;../lib/queue&quot;),u=t(&quot;../registry&quot;),f=t(&quot;./plot_schema&quot;),h=t(&quot;../plots/plots&quot;),p=t(&quot;../plots/cartesian/axes&quot;),d=t(&quot;../components/drawing&quot;),g=t(&quot;../components/color&quot;),m=t(&quot;../plots/cartesian/graph_interact&quot;).initInteractions,v=t(&quot;../constants/xmlns_namespaces&quot;),y=t(&quot;../plots/cartesian/select&quot;).clearSelect,x=t(&quot;./plot_config&quot;).dfltConfig,b=t(&quot;./manage_arrays&quot;),_=t(&quot;./helpers&quot;),w=t(&quot;./subroutines&quot;),T=t(&quot;./edit_types&quot;),k=t(&quot;../plots/cartesian/constants&quot;).AX_NAME_PATTERN,A=0;function M(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(&quot;plotly_afterplot&quot;)}function S(t,e){try{t._fullLayout._paper.style(&quot;background&quot;,e)}catch(t){o.error(t)}}function E(t,e){S(t,g.combine(e,&quot;white&quot;))}function L(t,e){if(!t._context){t._context=o.extendDeep({},x);var r=n.select(&quot;base&quot;);t._context._baseUrl=r.size()&amp;&amp;r.attr(&quot;href&quot;)?window.location.href.split(&quot;#&quot;)[0]:&quot;&quot;}var i,s,l,c=t._context;if(e){for(s=Object.keys(e),i=0;i&lt;s.length;i++)&quot;editable&quot;!==(l=s[i])&amp;&amp;&quot;edits&quot;!==l&amp;&amp;l in c&amp;&amp;(&quot;setBackground&quot;===l&amp;&amp;&quot;opaque&quot;===e[l]?c[l]=E:c[l]=e[l]);e.plot3dPixelRatio&amp;&amp;!c.plotGlPixelRatio&amp;&amp;(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=e.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),i=0;i&lt;s.length;i++)c.edits[s[i]]=u;if(e.edits)for(s=Object.keys(e.edits),i=0;i&lt;s.length;i++)(l=s[i])in c.edits&amp;&amp;(c.edits[l]=e.edits[l]);c._exportedPlot=e._exportedPlot}c.staticPlot&amp;&amp;(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),&quot;hover&quot;!==c.displayModeBar||a||(c.displayModeBar=!0),&quot;transparent&quot;!==c.setBackground&amp;&amp;&quot;function&quot;==typeof c.setBackground||(c.setBackground=S),c._hasZeroHeight=c._hasZeroHeight||0===t.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===t.clientWidth;var f=c.scrollZoom,h=c._scrollZoom={};if(!0===f)h.cartesian=1,h.gl3d=1,h.geo=1,h.mapbox=1;else if(&quot;string&quot;==typeof f){var p=f.split(&quot;+&quot;);for(i=0;i&lt;p.length;i++)h[p[i]]=1}else!1!==f&amp;&amp;(h.gl3d=1,h.geo=1,h.mapbox=1)}function C(t,e){var r,n,i=e+1,a=[];for(r=0;r&lt;t.length;r++)(n=t[r])&lt;0?a.push(i+n):a.push(n);return a}function P(t,e,r){var n,i;for(n=0;n&lt;e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(&quot;all values in &quot;+r+&quot; must be integers&quot;);if(i&gt;=t.data.length||i&lt;-t.data.length)throw new Error(r+&quot; must be valid indices for gd.data.&quot;);if(e.indexOf(i,n+1)&gt;-1||i&gt;=0&amp;&amp;e.indexOf(-t.data.length+i)&gt;-1||i&lt;0&amp;&amp;e.indexOf(t.data.length+i)&gt;-1)throw new Error(&quot;each index in &quot;+r+&quot; must be unique.&quot;)}}function I(t,e,r){if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(void 0===e)throw new Error(&quot;currentIndices is a required argument.&quot;);if(Array.isArray(e)||(e=[e]),P(t,e,&quot;currentIndices&quot;),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&amp;&amp;P(t,r,&quot;newIndices&quot;),void 0!==r&amp;&amp;e.length!==r.length)throw new Error(&quot;current and new indices must be of equal length.&quot;)}function O(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array&quot;);if(!o.isPlainObject(e))throw new Error(&quot;update must be a key:value object&quot;);if(void 0===r)throw new Error(&quot;indices must be an integer or array of integers&quot;);for(var a in P(t,r,&quot;indices&quot;),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(&quot;attribute &quot;+a+&quot; must be an array of length equal to indices array length&quot;);if(i&amp;&amp;(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(&quot;when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object&quot;)}}(t,e,r,n);for(var l=function(t,e,r,n){var a,l,c,u,f,h=o.isPlainObject(n),p=[];for(var d in Array.isArray(r)||(r=[r]),r=C(r,t.data.length-1),e)for(var g=0;g&lt;r.length;g++){if(a=t.data[r[g]],l=(c=s(a,d)).get(),u=e[d][g],!o.isArrayOrTypedArray(u))throw new Error(&quot;attribute: &quot;+d+&quot; index: &quot;+g+&quot; must be an array&quot;);if(!o.isArrayOrTypedArray(l))throw new Error(&quot;cannot extend missing or non-array attribute: &quot;+d);if(l.constructor!==u.constructor)throw new Error(&quot;cannot extend array with an array of a different type: &quot;+d);f=h?n[d][g]:n,i(f)||(f=-1),p.push({prop:c,target:l,insert:u,maxp:Math.floor(f)})}return p}(t,e,r,n),c={},u={},f=0;f&lt;l.length;f++){var h=l[f].prop,p=l[f].maxp,d=a(l[f].target,l[f].insert,p);h.set(d[0]),Array.isArray(c[h.astr])||(c[h.astr]=[]),c[h.astr].push(d[1]),Array.isArray(u[h.astr])||(u[h.astr]=[]),u[h.astr].push(l[f].target.length)}return{update:c,maxPoints:u}}function z(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function D(t,e,n,i){t=o.getGraphDiv(t),_.clearPromiseQueue(t);var a={};if(&quot;string&quot;==typeof e)a[e]=n;else{if(!o.isPlainObject(e))return o.warn(&quot;Restyle fail.&quot;,e,n,i),Promise.reject();a=o.extendFlat({},e),void 0===i&amp;&amp;(i=n)}Object.keys(a).length&amp;&amp;(t.changed=!0);var s=_.coerceTraceIndices(t,i),l=N(t,a,s),u=l.flags;u.calc&amp;&amp;(t.calcdata=void 0),u.clearAxisTypes&amp;&amp;_.clearAxisTypes(t,s,{});var f=[];u.fullReplot?f.push(r._doPlot):(f.push(h.previousPromises),h.supplyDefaults(t),u.markerSize&amp;&amp;(h.doCalcdata(t),q(f)),u.style&amp;&amp;f.push(w.doTraceStyle),u.colorbars&amp;&amp;f.push(w.doColorBars),f.push(M)),f.push(h.rehover,h.redrag),c.add(t,D,[t,l.undoit,l.traces],D,[t,l.redoit,l.traces]);var p=o.syncOrAsync(f,t);return p&amp;&amp;p.then||(p=Promise.resolve()),p.then((function(){return t.emit(&quot;plotly_restyle&quot;,l.eventData),t}))}function R(t){return void 0===t?null:t}function F(t,e){return e?function(e,r,n){var i=s(e,r),a=i.set;return i.set=function(e){B((n||&quot;&quot;)+r,i.get(),e,t),a(e)},i}:s}function B(t,e,r,n){if(Array.isArray(e)||Array.isArray(r))for(var i=Array.isArray(e)?e:[],a=Array.isArray(r)?r:[],s=Math.max(i.length,a.length),l=0;l&lt;s;l++)B(t+&quot;[&quot;+l+&quot;]&quot;,i[l],a[l],n);else if(o.isPlainObject(e)||o.isPlainObject(r)){var c=o.isPlainObject(e)?e:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var h in f)B(t+&quot;.&quot;+h,c[h],u[h],n)}else void 0===n[t]&amp;&amp;(n[t]=R(e))}function N(t,e,r){var n,i=t._fullLayout,a=t._fullData,l=t.data,c=i._guiEditing,d=F(i._preGUI,c),g=o.extendDeepAll({},e);j(e);var m,v=T.traceFlags(),y={},x={};function b(){return r.map((function(){}))}function w(t){var e=p.id2name(t);-1===m.indexOf(e)&amp;&amp;m.push(e)}function k(t){return&quot;LAYOUT&quot;+t+&quot;.autorange&quot;}function A(t){return&quot;LAYOUT&quot;+t+&quot;.range&quot;}function M(t){for(var e=t;e&lt;a.length;e++)if(a[e]._input===l[t])return a[e]}function S(n,a,o){if(Array.isArray(n))n.forEach((function(t){S(t,a,o)}));else if(!(n in e)&amp;&amp;!_.hasParent(e,n)){var s;if(&quot;LAYOUT&quot;===n.substr(0,6))s=d(t.layout,n.replace(&quot;LAYOUT&quot;,&quot;&quot;));else{var u=r[o];s=F(i._tracePreGUI[M(u)._fullInput.uid],c)(l[u],n)}n in x||(x[n]=b()),void 0===x[n][o]&amp;&amp;(x[n][o]=R(s.get())),void 0!==a&amp;&amp;s.set(a)}}function E(t){return function(e){return a[e][t]}}function L(t){return function(e,n){return!1===e?a[r[n]][t]:null}}for(var C in e){if(_.hasParent(e,C))throw new Error(&quot;cannot set &quot;+C+&quot; and a parent attribute simultaneously&quot;);var P,I,O,z,D,B,N=e[C];if(&quot;autobinx&quot;!==C&amp;&amp;&quot;autobiny&quot;!==C||(C=C.charAt(C.length-1)+&quot;bins&quot;,N=Array.isArray(N)?N.map(L(C)):!1===N?r.map(E(C)):null),y[C]=N,&quot;LAYOUT&quot;!==C.substr(0,6)){for(x[C]=b(),n=0;n&lt;r.length;n++){if(P=l[r[n]],I=M(r[n]),z=(O=F(i._tracePreGUI[I._fullInput.uid],c)(P,C)).get(),void 0!==(D=Array.isArray(N)?N[n%N.length]:N)){var U=O.parts[O.parts.length-1],V=C.substr(0,C.length-U.length-1),q=V?V+&quot;.&quot;:&quot;&quot;,H=V?s(I,V).get():I;if((B=f.getTraceValObject(I,O.parts))&amp;&amp;B.impliedEdits&amp;&amp;null!==D)for(var G in B.impliedEdits)S(o.relativeAttr(C,G),B.impliedEdits[G],n);else if(&quot;thicknessmode&quot;!==U&amp;&amp;&quot;lenmode&quot;!==U||z===D||&quot;fraction&quot;!==D&amp;&amp;&quot;pixels&quot;!==D||!H){if(&quot;type&quot;===C&amp;&amp;(&quot;pie&quot;===D!=(&quot;pie&quot;===z)||&quot;funnelarea&quot;===D!=(&quot;funnelarea&quot;===z))){var Y=&quot;x&quot;,W=&quot;y&quot;;&quot;bar&quot;!==D&amp;&amp;&quot;bar&quot;!==z||&quot;h&quot;!==P.orientation||(Y=&quot;y&quot;,W=&quot;x&quot;),o.swapAttrs(P,[&quot;?&quot;,&quot;?src&quot;],&quot;labels&quot;,Y),o.swapAttrs(P,[&quot;d?&quot;,&quot;?0&quot;],&quot;label&quot;,Y),o.swapAttrs(P,[&quot;?&quot;,&quot;?src&quot;],&quot;values&quot;,W),&quot;pie&quot;===z||&quot;funnelarea&quot;===z?(s(P,&quot;marker.color&quot;).set(s(P,&quot;marker.colors&quot;).get()),i._pielayer.selectAll(&quot;g.trace&quot;).remove()):u.traceIs(P,&quot;cartesian&quot;)&amp;&amp;s(P,&quot;marker.colors&quot;).set(s(P,&quot;marker.color&quot;).get())}}else{var X=i._size,Z=H.orient,J=&quot;top&quot;===Z||&quot;bottom&quot;===Z;if(&quot;thicknessmode&quot;===U){var K=J?X.h:X.w;S(q+&quot;thickness&quot;,H.thickness*(&quot;fraction&quot;===D?1/K:K),n)}else{var Q=J?X.w:X.h;S(q+&quot;len&quot;,H.len*(&quot;fraction&quot;===D?1/Q:Q),n)}}x[C][n]=R(z);if(-1!==[&quot;swapxy&quot;,&quot;swapxyaxes&quot;,&quot;orientation&quot;,&quot;orientationaxes&quot;].indexOf(C)){if(&quot;orientation&quot;===C){O.set(D);var $=P.x&amp;&amp;!P.y?&quot;h&quot;:&quot;v&quot;;if((O.get()||$)===I.orientation)continue}else&quot;orientationaxes&quot;===C&amp;&amp;(P.orientation={v:&quot;h&quot;,h:&quot;v&quot;}[I.orientation]);_.swapXYData(P),v.calc=v.clearAxisTypes=!0}else-1!==h.dataArrayContainers.indexOf(O.parts[0])?(_.manageArrayContainers(O,D,x),v.calc=!0):(B?B.arrayOk&amp;&amp;!u.traceIs(I,&quot;regl&quot;)&amp;&amp;(o.isArrayOrTypedArray(D)||o.isArrayOrTypedArray(z))?v.calc=!0:T.update(v,B):v.calc=!0,O.set(D))}}if(-1!==[&quot;swapxyaxes&quot;,&quot;orientationaxes&quot;].indexOf(C)&amp;&amp;p.swap(t,r),&quot;orientationaxes&quot;===C){var tt=s(t.layout,&quot;hovermode&quot;),et=tt.get();&quot;x&quot;===et?tt.set(&quot;y&quot;):&quot;y&quot;===et?tt.set(&quot;x&quot;):&quot;x unified&quot;===et?tt.set(&quot;y unified&quot;):&quot;y unified&quot;===et&amp;&amp;tt.set(&quot;x unified&quot;)}if(-1!==[&quot;orientation&quot;,&quot;type&quot;].indexOf(C)){for(m=[],n=0;n&lt;r.length;n++){var rt=l[r[n]];u.traceIs(rt,&quot;cartesian&quot;)&amp;&amp;(w(rt.xaxis||&quot;x&quot;),w(rt.yaxis||&quot;y&quot;))}S(m.map(k),!0,0),S(m.map(A),[0,1],0)}}else O=d(t.layout,C.replace(&quot;LAYOUT&quot;,&quot;&quot;)),x[C]=[R(O.get())],O.set(Array.isArray(N)?N[0]:N),v.calc=!0}return(v.calc||v.plot)&amp;&amp;(v.fullReplot=!0),{flags:v,undoit:x,redoit:y,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function j(t){var e,r,n,i=o.counterRegex(&quot;axis&quot;,&quot;.title&quot;,!1,!1),a=/colorbar\.title$/,s=Object.keys(t);for(e=0;e&lt;s.length;e++)r=s[e],n=t[r],&quot;title&quot;!==r&amp;&amp;!i.test(r)&amp;&amp;!a.test(r)||&quot;string&quot;!=typeof n&amp;&amp;&quot;number&quot;!=typeof n?r.indexOf(&quot;titlefont&quot;)&gt;-1?l(r,r.replace(&quot;titlefont&quot;,&quot;title.font&quot;)):r.indexOf(&quot;titleposition&quot;)&gt;-1?l(r,r.replace(&quot;titleposition&quot;,&quot;title.position&quot;)):r.indexOf(&quot;titleside&quot;)&gt;-1?l(r,r.replace(&quot;titleside&quot;,&quot;title.side&quot;)):r.indexOf(&quot;titleoffset&quot;)&gt;-1&amp;&amp;l(r,r.replace(&quot;titleoffset&quot;,&quot;title.offset&quot;)):l(r,r.replace(&quot;title&quot;,&quot;title.text&quot;));function l(e,r){t[r]=t[e],delete t[e]}}function U(t,e,r){t=o.getGraphDiv(t),_.clearPromiseQueue(t);var n={};if(&quot;string&quot;==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn(&quot;Relayout fail.&quot;,e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&amp;&amp;(t.changed=!0);var i=W(t,n),a=i.flags;a.calc&amp;&amp;(t.calcdata=void 0);var s=[h.previousPromises];a.layoutReplot?s.push(w.layoutReplot):Object.keys(n).length&amp;&amp;(V(t,a,i)||h.supplyDefaults(t),a.legend&amp;&amp;s.push(w.doLegend),a.layoutstyle&amp;&amp;s.push(w.layoutStyles),a.axrange&amp;&amp;q(s,i.rangesAltered),a.ticks&amp;&amp;s.push(w.doTicksRelayout),a.modebar&amp;&amp;s.push(w.doModeBar),a.camera&amp;&amp;s.push(w.doCamera),a.colorbars&amp;&amp;s.push(w.doColorBars),s.push(M)),s.push(h.rehover,h.redrag),c.add(t,U,[t,i.undoit],U,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&amp;&amp;l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit(&quot;plotly_relayout&quot;,i.eventData),t}))}function V(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if(&quot;axrange&quot;!==i&amp;&amp;e[i])return!1;for(var a in r.rangesAltered){var o=p.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&amp;&amp;(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[p.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function q(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=p.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;a._anchorAxis&amp;&amp;r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o);a.automargin&amp;&amp;(n=!1)}return p.draw(t,r,{skipTitle:n})}:function(t){return p.draw(t,&quot;redraw&quot;)};t.push(y,w.doAutoRangeAndConstraints,r,w.drawData,w.finalDraw)}var H=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,G=/^[xyz]axis[0-9]*\.autorange$/,Y=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function W(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,h=F(l._preGUI,c),d=Object.keys(e),g=p.list(t),m=o.extendDeepAll({},e),v={};for(j(e),d=Object.keys(e),n=0;n&lt;d.length;n++)if(0===d[n].indexOf(&quot;allaxes&quot;)){for(i=0;i&lt;g.length;i++){var y=g[i]._id.substr(1),x=-1!==y.indexOf(&quot;scene&quot;)?y+&quot;.&quot;:&quot;&quot;,w=d[n].replace(&quot;allaxes&quot;,x+g[i]._name);e[w]||(e[w]=e[d[n]])}delete e[d[n]]}var A=T.layoutFlags(),M={},S={};function E(t,r){if(Array.isArray(t))t.forEach((function(t){E(t,r)}));else if(!(t in e)&amp;&amp;!_.hasParent(e,t)){var n=h(a,t);t in S||(S[t]=R(n.get())),void 0!==r&amp;&amp;n.set(r)}}var L,C={};function P(t){var e=p.name2id(t.split(&quot;.&quot;)[0]);return C[e]=1,e}for(var I in e){if(_.hasParent(e,I))throw new Error(&quot;cannot set &quot;+I+&quot; and a parent attribute simultaneously&quot;);for(var O=h(a,I),z=e[I],D=O.parts.length-1;D&gt;0&amp;&amp;&quot;string&quot;!=typeof O.parts[D];)D--;var B=O.parts[D],N=O.parts[D-1]+&quot;.&quot;+B,U=O.parts.slice(0,D).join(&quot;.&quot;),V=s(t.layout,U).get(),q=s(l,U).get(),W=O.get();if(void 0!==z){M[I]=z,S[I]=&quot;reverse&quot;===B?z:R(W);var Z=f.getLayoutValObject(l,O.parts);if(Z&amp;&amp;Z.impliedEdits&amp;&amp;null!==z)for(var J in Z.impliedEdits)E(o.relativeAttr(I,J),Z.impliedEdits[J]);if(-1!==[&quot;width&quot;,&quot;height&quot;].indexOf(I))if(z){E(&quot;autosize&quot;,null);var K=&quot;height&quot;===I?&quot;width&quot;:&quot;height&quot;;E(K,l[K])}else l[I]=t._initialAutoSize[I];else if(&quot;autosize&quot;===I)E(&quot;width&quot;,z?null:l.width),E(&quot;height&quot;,z?null:l.height);else if(N.match(H))P(N),s(l,U+&quot;._inputRange&quot;).set(null);else if(N.match(G)){P(N),s(l,U+&quot;._inputRange&quot;).set(null);var Q=s(l,U).get();Q._inputDomain&amp;&amp;(Q._input.domain=Q._inputDomain.slice())}else N.match(Y)&amp;&amp;s(l,U+&quot;._inputDomain&quot;).set(null);if(&quot;type&quot;===B){L=V;var $=&quot;linear&quot;===q.type&amp;&amp;&quot;log&quot;===z,tt=&quot;log&quot;===q.type&amp;&amp;&quot;linear&quot;===z;if($||tt){if(L&amp;&amp;L.range)if(q.autorange)$&amp;&amp;(L.range=L.range[1]&gt;L.range[0]?[1,2]:[2,1]);else{var et=L.range[0],rt=L.range[1];$?(et&lt;=0&amp;&amp;rt&lt;=0&amp;&amp;E(U+&quot;.autorange&quot;,!0),et&lt;=0?et=rt/1e6:rt&lt;=0&amp;&amp;(rt=et/1e6),E(U+&quot;.range[0]&quot;,Math.log(et)/Math.LN10),E(U+&quot;.range[1]&quot;,Math.log(rt)/Math.LN10)):(E(U+&quot;.range[0]&quot;,Math.pow(10,et)),E(U+&quot;.range[1]&quot;,Math.pow(10,rt)))}else E(U+&quot;.autorange&quot;,!0);Array.isArray(l._subplots.polar)&amp;&amp;l._subplots.polar.length&amp;&amp;l[O.parts[0]]&amp;&amp;&quot;radialaxis&quot;===O.parts[1]&amp;&amp;delete l[O.parts[0]]._subplot.viewInitial[&quot;radialaxis.range&quot;],u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,q,z,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,q,z,E)}else E(U+&quot;.autorange&quot;,!0),E(U+&quot;.range&quot;,null);s(l,U+&quot;._inputRange&quot;).set(null)}else if(B.match(k)){var nt=s(l,I).get(),it=(z||{}).type;it&amp;&amp;&quot;-&quot;!==it||(it=&quot;linear&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,nt,it,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,nt,it,E)}var at=b.containerArrayMatch(I);if(at){r=at.array,n=at.index;var ot=at.property,st=Z||{editType:&quot;calc&quot;};&quot;&quot;!==n&amp;&amp;&quot;&quot;===ot&amp;&amp;(b.isAddVal(z)?S[I]=null:b.isRemoveVal(z)?S[I]=(s(a,r).get()||[])[n]:o.warn(&quot;unrecognized full object value&quot;,e)),T.update(A,st),v[r]||(v[r]={});var lt=v[r][n];lt||(lt=v[r][n]={}),lt[ot]=z,delete e[I]}else&quot;reverse&quot;===B?(V.range?V.range.reverse():(E(U+&quot;.autorange&quot;,!0),V.range=[1,0]),q.autorange?A.calc=!0:A.plot=!0):(l._has(&quot;scatter-like&quot;)&amp;&amp;l._has(&quot;regl&quot;)&amp;&amp;&quot;dragmode&quot;===I&amp;&amp;(&quot;lasso&quot;===z||&quot;select&quot;===z)&amp;&amp;&quot;lasso&quot;!==W&amp;&amp;&quot;select&quot;!==W||l._has(&quot;gl2d&quot;)?A.plot=!0:Z?T.update(A,Z):A.calc=!0,O.set(z))}}for(r in v){b.applyContainerArrayChanges(t,h(a,r),v[r],A,h)||(A.plot=!0)}for(var ct in C){var ut=(L=p.getFromId(t,ct))&amp;&amp;L._constraintGroup;if(ut)for(var ft in A.calc=!0,ut)C[ft]||(p.getFromId(t,ft)._constraintShrinkable=!0)}return(X(t)||e.height||e.width)&amp;&amp;(A.plot=!0),(A.plot||A.calc)&amp;&amp;(A.layoutReplot=!0),{flags:A,rangesAltered:C,undoit:S,redoit:M,eventData:m}}function X(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&amp;&amp;h.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function Z(t,e,n,i){t=o.getGraphDiv(t),_.clearPromiseQueue(t),o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&amp;&amp;(t.changed=!0),Object.keys(n).length&amp;&amp;(t.changed=!0);var a=_.coerceTraceIndices(t,i),s=N(t,o.extendFlat({},e),a),l=s.flags,u=W(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&amp;&amp;(t.calcdata=void 0),l.clearAxisTypes&amp;&amp;_.clearAxisTypes(t,a,n);var p=[];f.layoutReplot?p.push(w.layoutReplot):l.fullReplot?p.push(r._doPlot):(p.push(h.previousPromises),V(t,f,u)||h.supplyDefaults(t),l.style&amp;&amp;p.push(w.doTraceStyle),(l.colorbars||f.colorbars)&amp;&amp;p.push(w.doColorBars),f.legend&amp;&amp;p.push(w.doLegend),f.layoutstyle&amp;&amp;p.push(w.layoutStyles),f.axrange&amp;&amp;q(p,u.rangesAltered),f.ticks&amp;&amp;p.push(w.doTicksRelayout),f.modebar&amp;&amp;p.push(w.doModeBar),f.camera&amp;&amp;p.push(w.doCamera),p.push(M)),p.push(h.rehover,h.redrag),c.add(t,Z,[t,s.undoit,u.undoit,s.traces],Z,[t,s.redoit,u.redoit,s.traces]);var d=o.syncOrAsync(p,t);return d&amp;&amp;d.then||(d=Promise.resolve(t)),d.then((function(){return t.emit(&quot;plotly_update&quot;,{data:s.eventData,layout:u.eventData}),t}))}function J(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var K=[{pattern:/^hiddenlabels/,attr:&quot;legend.uirevision&quot;},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:&quot;modebar.uirevision&quot;},{pattern:/(hover|drag)mode$/,attr:&quot;modebar.uirevision&quot;},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:&quot;editrevision&quot;},{pattern:/^(shapes|annotations)/,attr:&quot;editrevision&quot;},{pattern:/^title\.text$/,attr:&quot;editrevision&quot;}],Q=[{pattern:/^selectedpoints$/,attr:&quot;selectionrevision&quot;},{pattern:/(^|value\.)visible$/,attr:&quot;legend.uirevision&quot;},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:&quot;editrevision&quot;}];function $(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=t.match(n.pattern);if(i)return{head:i[1],attr:n.attr}}}function tt(t,e){var r=s(e,t).get();if(void 0!==r)return r;var n=t.split(&quot;.&quot;);for(n.pop();n.length&gt;1;)if(n.pop(),void 0!==(r=s(e,n.join(&quot;.&quot;)+&quot;.uirevision&quot;).get()))return r;return e.uirevision}function et(t,e){for(var r=0;r&lt;e.length;r++)if(e[r]._fullInput.uid===t)return r;return-1}function rt(t,e,r){for(var n=0;n&lt;e.length;n++)if(e[n].uid===t)return n;return!e[r]||e[r].uid?-1:r}function nt(t,e){var r=o.isPlainObject(t),n=Array.isArray(t);return r||n?(r&amp;&amp;o.isPlainObject(e)||n&amp;&amp;Array.isArray(e))&amp;&amp;JSON.stringify(t)===JSON.stringify(e):t===e}function it(t,e,r,n){var i,a,l,c=n.getValObject,u=n.flags,f=n.immutable,h=n.inArray,p=n.arrayIndex;function d(){var t=i.editType;h&amp;&amp;-1!==t.indexOf(&quot;arraydraw&quot;)?o.pushUnique(u.arrays[h],p):(T.update(u,i),&quot;none&quot;!==t&amp;&amp;u.nChanges++,n.transition&amp;&amp;i.anim&amp;&amp;u.nChangesAnim++,(H.test(l)||G.test(l))&amp;&amp;(u.rangesAltered[r[0]]=1),Y.test(l)&amp;&amp;s(e,&quot;_inputDomain&quot;).set(null),&quot;datarevision&quot;===a&amp;&amp;(u.newDataRevision=1))}function g(t){return&quot;data_array&quot;===t.valType||t.arrayOk}for(a in t){if(u.calc&amp;&amp;!n.transition)return;var m=t[a],v=e[a],y=r.concat(a);if(l=y.join(&quot;.&quot;),&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof m&amp;&amp;m!==v){if((&quot;tick0&quot;===a||&quot;dtick&quot;===a)&amp;&amp;&quot;geo&quot;!==r[0]){var x=e.tickmode;if(&quot;auto&quot;===x||&quot;array&quot;===x||!x)continue}if((&quot;range&quot;!==a||!e.autorange)&amp;&amp;(&quot;zmin&quot;!==a&amp;&amp;&quot;zmax&quot;!==a||&quot;contourcarpet&quot;!==e.type)&amp;&amp;(i=c(y))&amp;&amp;(!i._compareAsJSON||JSON.stringify(m)!==JSON.stringify(v))){var b,_=i.valType,w=g(i),k=Array.isArray(m),A=Array.isArray(v);if(k&amp;&amp;A){var M=&quot;_input_&quot;+a,S=t[M],E=e[M];if(Array.isArray(S)&amp;&amp;S===E)continue}if(void 0===v)w&amp;&amp;k?u.calc=!0:d();else if(i._isLinkedToArray){var L=[],C=!1;h||(u.arrays[a]=L);var P=Math.min(m.length,v.length),I=Math.max(m.length,v.length);if(P!==I){if(&quot;arraydraw&quot;!==i.editType){d();continue}C=!0}for(b=0;b&lt;P;b++)it(m[b],v[b],y.concat(b),o.extendFlat({inArray:a,arrayIndex:b},n));if(C)for(b=P;b&lt;I;b++)L.push(b)}else!_&amp;&amp;o.isPlainObject(m)?it(m,v,y,n):w?k&amp;&amp;A?(f&amp;&amp;(u.calc=!0),(f||n.newDataRevision)&amp;&amp;d()):k!==A?u.calc=!0:d():k&amp;&amp;A&amp;&amp;m.length===v.length&amp;&amp;String(m)===String(v)||d()}}}for(a in e)if(!(a in t)&amp;&amp;&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof e[a]){if(g(i=c(r.concat(a)))&amp;&amp;Array.isArray(e[a]))return void(u.calc=!0);d()}}function at(t){var e=t._fullLayout,r=t.getBoundingClientRect();if(!o.equalDomRects(r,e._lastBBox)){var n=e._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(t));e._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),e._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),e._lastBBox=r}}r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/&quot;);var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=h.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t&gt;=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t&gt;=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&amp;&amp;++r===e)return t()}}return void 0===n._frameWaitingCnt&amp;&amp;(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){n._currentFrame&amp;&amp;n._currentFrame.onComplete&amp;&amp;n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,h.transition(t,e.frame.data,e.frame.layout,_.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&amp;&amp;e.onComplete()})),t.emit(&quot;plotly_animatingframe&quot;,{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(&quot;plotly_animated&quot;),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(&quot;plotly_animating&quot;),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt&gt;n._timeToNext&amp;&amp;f()};e()}var d,g,m=0;function v(t){return Array.isArray(i)?m&gt;=i.length?t.transitionOpts=i[m]:t.transitionOpts=i[0]:t.transitionOpts=i,m++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&amp;&amp;!b&amp;&amp;o.isPlainObject(e))y.push({type:&quot;object&quot;,data:v(o.extendFlat({},e))});else if(x||-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e))for(d=0;d&lt;n._frames.length;d++)(g=n._frames[d])&amp;&amp;(x||String(g.group)===String(e))&amp;&amp;y.push({type:&quot;byname&quot;,name:String(g.name),data:v({name:g.name})});else if(b)for(d=0;d&lt;e.length;d++){var w=e[d];-1!==[&quot;number&quot;,&quot;string&quot;].indexOf(typeof w)?(w=String(w),y.push({type:&quot;byname&quot;,name:w,data:v({name:w})})):o.isPlainObject(w)&amp;&amp;y.push({type:&quot;object&quot;,data:v(o.extendFlat({},w))})}for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: &quot;'+g.data.name+'&quot;'),void u();-1!==[&quot;next&quot;,&quot;immediate&quot;].indexOf(r.mode)&amp;&amp;function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&amp;&amp;e.onInterrupt()}t.emit(&quot;plotly_animationinterrupted&quot;,[])}}(),&quot;reverse&quot;===r.direction&amp;&amp;y.reverse();var T=t._fullLayout._currentFrame;if(T&amp;&amp;r.fromcurrent){var k=-1;for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;g.name===T){k=d;break}if(k&gt;0&amp;&amp;k&lt;y.length-1){var A=[];for(d=0;d&lt;y.length;d++)g=y[d],(&quot;byname&quot;!==y[d].type||d&gt;k)&amp;&amp;A.push(g);y=A}}y.length&gt;0?function(e){if(0!==e.length){for(var i=0;i&lt;e.length;i++){var o;o=&quot;byname&quot;===e[i].type?h.computeFrame(t,e[i].name):e[i].data;var f=l(i),d=s(i);d.duration=Math.min(d.duration,f.duration);var g={frame:o,name:e[i].name,frameOpts:f,transitionOpts:d};i===e.length-1&amp;&amp;(g.onComplete=c(a,2),g.onInterrupt=u),n._frameQueue.push(g)}&quot;immediate&quot;===r.mode&amp;&amp;(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(&quot;plotly_animated&quot;),a())}))},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/&quot;);var n,i,a,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(&quot;addFrames failure: frameList must be an Array of frame definitions&quot;+e);var f=l.length+2*e.length,p=[],d={};for(n=e.length-1;n&gt;=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,m=(u[g]||d[g]||{}).name,v=e[n].name,y=u[m]||d[m];m&amp;&amp;v&amp;&amp;&quot;number&quot;==typeof v&amp;&amp;y&amp;&amp;A&lt;5&amp;&amp;(A++,o.warn('addFrames: overwriting frame &quot;'+(u[m]||d[m]).name+'&quot; with a frame whose name of type &quot;number&quot; also equates to &quot;'+m+'&quot;. This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===A&amp;&amp;o.warn(&quot;addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.&quot;)),d[g]={name:g},p.push({frame:h.supplyFrameDefaults(e[n]),index:r&amp;&amp;void 0!==r[n]&amp;&amp;null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index&gt;e.index?-1:t.index&lt;e.index?1:0}));var x=[],b=[],_=l.length;for(n=p.length-1;n&gt;=0;n--){if(&quot;number&quot;==typeof(i=p[n].frame).name&amp;&amp;o.warn(&quot;Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings&quot;),!i.name)for(;u[i.name=&quot;frame &quot;+t._transitionData._counter++];);if(u[i.name]){for(a=0;a&lt;l.length&amp;&amp;(l[a]||{}).name!==i.name;a++);x.push({type:&quot;replace&quot;,index:a,value:i}),b.unshift({type:&quot;replace&quot;,index:a,value:l[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:&quot;insert&quot;,index:s,value:i}),b.unshift({type:&quot;delete&quot;,index:s}),_++}var w=h.modifyFrames,T=h.modifyFrames,k=[t,b],M=[t,x];return c&amp;&amp;c.add(t,w,k,T,M),h.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r&lt;i.length;r++)e.push(r);for((e=e.slice()).sort(),r=e.length-1;r&gt;=0;r--)n=e[r],a.push({type:&quot;delete&quot;,index:n}),s.unshift({type:&quot;insert&quot;,index:n,value:i[n]});var l=h.modifyFrames,u=h.modifyFrames,f=[t,s],p=[t,a];return c&amp;&amp;c.add(t,l,f,u,p),h.modifyFrames(t,a)},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,l=[],u=r.deleteTraces,f=t,h=[e,l],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(void 0===e)throw new Error(&quot;traces must be defined.&quot;);for(Array.isArray(e)||(e=[e]),n=0;n&lt;e.length;n++)if(&quot;object&quot;!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(&quot;all values in traces array must be non-array objects&quot;);if(void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&amp;&amp;r.length!==e.length)throw new Error(&quot;if indices is specified, traces.length must equal indices.length&quot;)}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map((function(t){return o.extendFlat({},t)})),_.cleanData(n),a=0;a&lt;n.length;a++)e.data.push(n[a]);for(a=0;a&lt;n.length;a++)l.push(-n.length+a);if(void 0===i)return s=r.redraw(e),c.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{I(e,l,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return c.startSequence(e),c.add(e,u,h,f,p),s=r.moveTraces(e,l,i),c.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],l=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(void 0===n)throw new Error(&quot;indices must be an integer or array of integers.&quot;);for(Array.isArray(n)||(n=[n]),P(e,n,&quot;indices&quot;),(n=C(n,e.data.length-1)).sort(o.sorterDes),i=0;i&lt;n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return c.add(e,l,f,u,h),p},r.extendTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;0){var a=new t.constructor(0),s=z(t,e);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(0,n.length-r):[];return[n,i]}var l=O(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.prependTraces,f,t,arguments),u},r.moveTraces=function t(e,n,i){var a,s=[],l=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(I(e,n,i),n=Array.isArray(n)?n:[n],void 0===i)for(i=[],a=0;a&lt;n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=C(n,e.data.length-1),i=C(i,e.data.length-1),a=0;a&lt;e.data.length;a++)-1===n.indexOf(a)&amp;&amp;s.push(e.data[a]);for(a=0;a&lt;n.length;a++)l.push({newIndex:i[a],trace:e.data[n[a]]});for(l.sort((function(t,e){return t.newIndex-e.newIndex})),a=0;a&lt;l.length;a+=1)s.splice(l[a].newIndex,0,l[a].trace);e.data=s;var d=r.redraw(e);return c.add(e,u,h,f,p),d},r.prependTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;=0){var a=new t.constructor(0),s=z(e,t);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(r,n.length):[];return[n,i]}var l=O(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.extendTraces,f,t,arguments),u},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),h.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),h.purge(t),r._doPlot(t,e,n,i)},r._doPlot=function(t,e,i,a){var s;if(t=o.getGraphDiv(t),l.init(t),o.isPlainObject(e)){var c=e;e=c.data,i=c.layout,a=c.config,s=c.frames}if(!1===l.triggerHandler(t,&quot;plotly_beforeplot&quot;,[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(&quot;Calling _doPlot as if redrawing but this container doesn't yet have a plot.&quot;,t),L(t,a),i||(i={}),n.select(t).classed(&quot;js-plotly-plot&quot;,!0),d.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var f=0===(t.data||[]).length&amp;&amp;Array.isArray(e);Array.isArray(e)&amp;&amp;(_.cleanData(e),f?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&amp;&amp;!f||(t.layout=_.cleanLayout(i)),h.supplyDefaults(t);var g=t._fullLayout,y=g._has(&quot;cartesian&quot;);g._replotting=!0,(f||g._shouldCreateBgLayer)&amp;&amp;(!function(t){var e=n.select(t),r=t._fullLayout;if(r._calcInverseTransform=at,r._calcInverseTransform(t),r._container=e.selectAll(&quot;.plot-container&quot;).data([0]),r._container.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container&quot;,!0).classed(&quot;plotly&quot;,!0),r._paperdiv=r._container.selectAll(&quot;.svg-container&quot;).data([0]),r._paperdiv.enter().append(&quot;div&quot;).classed(&quot;user-select-none&quot;,!0).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),r._glcontainer=r._paperdiv.selectAll(&quot;.gl-container&quot;).data([{}]),r._glcontainer.enter().append(&quot;div&quot;).classed(&quot;gl-container&quot;,!0),r._paperdiv.selectAll(&quot;.main-svg&quot;).remove(),r._paperdiv.select(&quot;.modebar-container&quot;).remove(),r._paper=r._paperdiv.insert(&quot;svg&quot;,&quot;:first-child&quot;).classed(&quot;main-svg&quot;,!0),r._toppaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),r._modebardiv=r._paperdiv.append(&quot;div&quot;),delete r._modeBar,r._hoverpaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),!r._uid){var i={};n.selectAll(&quot;defs&quot;).each((function(){this.id&amp;&amp;(i[this.id.split(&quot;-&quot;)[1]]=1)})),r._uid=o.randstr(i)}r._paperdiv.selectAll(&quot;.main-svg&quot;).attr(v.svgAttrs),r._defs=r._paper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;defs-&quot;+r._uid),r._clips=r._defs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._topdefs=r._toppaper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;topdefs-&quot;+r._uid),r._topclips=r._topdefs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._bgLayer=r._paper.append(&quot;g&quot;).classed(&quot;bglayer&quot;,!0),r._draggers=r._paper.append(&quot;g&quot;).classed(&quot;draglayer&quot;,!0);var a=r._paper.append(&quot;g&quot;).classed(&quot;layer-below&quot;,!0);r._imageLowerLayer=a.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeLowerLayer=a.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._cartesianlayer=r._paper.append(&quot;g&quot;).classed(&quot;cartesianlayer&quot;,!0),r._polarlayer=r._paper.append(&quot;g&quot;).classed(&quot;polarlayer&quot;,!0),r._ternarylayer=r._paper.append(&quot;g&quot;).classed(&quot;ternarylayer&quot;,!0),r._geolayer=r._paper.append(&quot;g&quot;).classed(&quot;geolayer&quot;,!0),r._funnelarealayer=r._paper.append(&quot;g&quot;).classed(&quot;funnelarealayer&quot;,!0),r._pielayer=r._paper.append(&quot;g&quot;).classed(&quot;pielayer&quot;,!0),r._iciclelayer=r._paper.append(&quot;g&quot;).classed(&quot;iciclelayer&quot;,!0),r._treemaplayer=r._paper.append(&quot;g&quot;).classed(&quot;treemaplayer&quot;,!0),r._sunburstlayer=r._paper.append(&quot;g&quot;).classed(&quot;sunburstlayer&quot;,!0),r._indicatorlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;indicatorlayer&quot;,!0),r._glimages=r._paper.append(&quot;g&quot;).classed(&quot;glimages&quot;,!0);var s=r._toppaper.append(&quot;g&quot;).classed(&quot;layer-above&quot;,!0);r._imageUpperLayer=s.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeUpperLayer=s.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._infolayer=r._toppaper.append(&quot;g&quot;).classed(&quot;infolayer&quot;,!0),r._menulayer=r._toppaper.append(&quot;g&quot;).classed(&quot;menulayer&quot;,!0),r._zoomlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;zoomlayer&quot;,!0),r._hoverlayer=r._hoverpaper.append(&quot;g&quot;).classed(&quot;hoverlayer&quot;,!0),r._modebardiv.classed(&quot;modebar-container&quot;,!0).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;top&quot;,&quot;0px&quot;).style(&quot;right&quot;,&quot;0px&quot;),t.emit(&quot;plotly_framework&quot;)}(t),g._shouldCreateBgLayer&amp;&amp;delete g._shouldCreateBgLayer),d.initGradients(t),d.initPatterns(t),f&amp;&amp;p.saveShowSpikeInitial(t);var x=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;x&amp;&amp;h.doCalcdata(t);for(var b=0;b&lt;t.calcdata.length;b++)t.calcdata[b][0].trace=t._fullData[b];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){o.isHidden(t)||h.resize(t)},window.addEventListener(&quot;resize&quot;,t._responsiveChartHandler)):o.clearResponsive(t);var T=o.extendFlat({},g._size),k=0;function A(){if(h.clearAutoMarginIds(t),w.drawMarginPushers(t),p.allowAutoMargin(t),g._has(&quot;pie&quot;))for(var e=t._fullData,r=0;r&lt;e.length;r++){var n=e[r];&quot;pie&quot;===n.type&amp;&amp;n.automargin&amp;&amp;h.allowAutoMargin(t,&quot;pie.&quot;+n.uid+&quot;.automargin&quot;)}return h.doAutoMargin(t),h.previousPromises(t)}function S(){t._transitioning||(w.doAutoRangeAndConstraints(t),f&amp;&amp;p.saveRangeInitial(t),u.getComponentMethod(&quot;rangeslider&quot;,&quot;calcAutorange&quot;)(t))}var E=[h.previousPromises,function(){if(s)return r.addFrames(t,s)},function e(){for(var r=g._basePlotModules,n=0;n&lt;r.length;n++)r[n].drawFramework&amp;&amp;r[n].drawFramework(t);!g._glcanvas&amp;&amp;g._has(&quot;gl&quot;)&amp;&amp;(g._glcanvas=g._glcontainer.selectAll(&quot;.gl-canvas&quot;).data([{key:&quot;contextLayer&quot;,context:!0,pick:!1},{key:&quot;focusLayer&quot;,context:!1,pick:!1},{key:&quot;pickLayer&quot;,context:!1,pick:!0}],(function(t){return t.key})),g._glcanvas.enter().append(&quot;canvas&quot;).attr(&quot;class&quot;,(function(t){return&quot;gl-canvas gl-canvas-&quot;+t.key.replace(&quot;Layer&quot;,&quot;&quot;)})).style({position:&quot;absolute&quot;,top:0,left:0,overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;}));var i=t._context.plotGlPixelRatio;if(g._glcanvas){g._glcanvas.attr(&quot;width&quot;,g.width*i).attr(&quot;height&quot;,g.height*i).style(&quot;width&quot;,g.width+&quot;px&quot;).style(&quot;height&quot;,g.height+&quot;px&quot;);var a=g._glcanvas.data()[0].regl;if(a&amp;&amp;(Math.floor(g.width*i)!==a._gl.drawingBufferWidth||Math.floor(g.height*i)!==a._gl.drawingBufferHeight)){var s=&quot;WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.&quot;;if(!k)return o.log(s+&quot; Clearing graph and plotting again.&quot;),h.cleanPlot([],{},t._fullData,g),h.supplyDefaults(t),g=t._fullLayout,h.doCalcdata(t),k++,e();o.error(s)}}return&quot;h&quot;===g.modebar.orientation?g._modebardiv.style(&quot;height&quot;,null).style(&quot;width&quot;,&quot;100%&quot;):g._modebardiv.style(&quot;width&quot;,null).style(&quot;height&quot;,g.height+&quot;px&quot;),h.previousPromises(t)},A,function(){if(h.didMarginChange(T,g._size))return o.syncOrAsync([A,w.layoutStyles],t)}];y&amp;&amp;E.push((function(){if(x)return o.syncOrAsync([u.getComponentMethod(&quot;shapes&quot;,&quot;calcAutorange&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;calcAutorange&quot;),S],t);S()})),E.push(w.layoutStyles),y&amp;&amp;E.push((function(){return p.draw(t,f?&quot;&quot;:&quot;redraw&quot;)}),(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;U(t,t._fullLayout._insideTickLabelsAutorange).then((function(){t._fullLayout._insideTickLabelsAutorange=void 0}))})),E.push(w.drawData,w.finalDraw,m,h.addLinks,h.rehover,h.redrag,h.doAutoMargin,(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;f&amp;&amp;p.saveRangeInitial(t,!0)}),h.previousPromises);var C=o.syncOrAsync(E,t);return C&amp;&amp;C.then||(C=Promise.resolve()),C.then((function(){return M(t),t}))},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return h.cleanPlot([],{},r,e),h.purge(t),l.purge(t),e._container&amp;&amp;e._container.remove(),delete t._context,t},r.react=function(t,e,n,i){var a,l;t=o.getGraphDiv(t),_.clearPromiseQueue(t);var c=t._fullData,p=t._fullLayout;if(o.isPlotDiv(t)&amp;&amp;c&amp;&amp;p){if(o.isPlainObject(e)){var d=e;e=d.data,n=d.layout,i=d.config,a=d.frames}var g=!1;if(i){var m=o.extendDeep({},t._context);t._context=void 0,L(t,i),g=function t(e,r){var n;for(n in e)if(&quot;_&quot;!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&amp;&amp;o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s&lt;i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(m,t._context)}t.data=e||[],_.cleanData(t.data),t.layout=n||{},_.cleanLayout(t.layout),function(t,e,r,n){var i,a,l,c,u,f,h,p,d=n._preGUI,g=[],m={};for(i in d){if(u=$(i,K)){if(a=u.attr||u.head+&quot;.uirevision&quot;,(c=(l=s(n,a).get())&amp;&amp;tt(a,e))&amp;&amp;c===l&amp;&amp;(null===(f=d[i])&amp;&amp;(f=void 0),nt(p=(h=s(e,i)).get(),f))){void 0===p&amp;&amp;&quot;autorange&quot;===i.substr(i.length-9)&amp;&amp;g.push(i.substr(0,i.length-10)),h.set(R(s(n,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i);delete d[i],&quot;range[&quot;===i.substr(i.length-8,6)&amp;&amp;(m[i.substr(0,i.length-9)]=1)}for(var v=0;v&lt;g.length;v++){var y=g[v];if(m[y]){var x=s(e,y).get();x&amp;&amp;delete x.autorange}}var b=n._tracePreGUI;for(var _ in b){var w,T=b[_],k=null;for(i in T){if(!k){var A=et(_,r);if(A&lt;0){delete b[_];break}var M=rt(_,t,(w=r[A]._fullInput).index);if(M&lt;0){delete b[_];break}k=t[M]}if(u=$(i,Q)){if(u.attr?c=(l=s(n,u.attr).get())&amp;&amp;tt(u.attr,e):(l=w.uirevision,void 0===(c=k.uirevision)&amp;&amp;(c=e.uirevision)),c&amp;&amp;c===l&amp;&amp;(null===(f=T[i])&amp;&amp;(f=void 0),nt(p=(h=s(k,i)).get(),f))){h.set(R(s(w,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i+&quot; in trace uid &quot;+_);delete T[i]}}}(t.data,t.layout,c,p),h.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,y=t._fullLayout,x=void 0===y.datarevision,b=y.transition,k=function(t,e,r,n,i){var a=T.layoutFlags();function o(t){return f.getLayoutValObject(r,t)}a.arrays={},a.rangesAltered={},a.nChanges=0,a.nChangesAnim=0,it(e,r,[],{getValObject:o,flags:a,immutable:n,transition:i,gd:t}),(a.plot||a.calc)&amp;&amp;(a.layoutReplot=!0);i&amp;&amp;a.nChanges&amp;&amp;a.nChangesAnim&amp;&amp;(a.anim=a.nChanges===a.nChangesAnim?&quot;all&quot;:&quot;some&quot;);return a}(t,p,y,x,b),A=k.newDataRevision,S=function(t,e,r,n,i,a){var o=e.length===r.length;if(!i&amp;&amp;!o)return{fullReplot:!0,calc:!0};var s,l,c=T.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(t){var e=f.getTraceValObject(l,t);return!l._module.animatable&amp;&amp;e.anim&amp;&amp;(e.anim=!1),e},flags:c,immutable:n,transition:i,newDataRevision:a,gd:t},p={};for(s=0;s&lt;e.length;s++)if(r[s]){if(l=r[s]._fullInput,h.hasMakesDataTransform(l)&amp;&amp;(l=r[s]),p[l.uid])continue;p[l.uid]=1,it(e[s]._fullInput,l,[],u)}(c.calc||c.plot)&amp;&amp;(c.fullReplot=!0);i&amp;&amp;c.nChanges&amp;&amp;c.nChangesAnim&amp;&amp;(c.anim=c.nChanges===c.nChangesAnim&amp;&amp;o?&quot;all&quot;:&quot;some&quot;);return c}(t,c,v,x,b,A);if(X(t)&amp;&amp;(k.layoutReplot=!0),S.calc||k.calc){t.calcdata=void 0;for(var E=Object.getOwnPropertyNames(y),C=0;C&lt;E.length;C++){var P=E[C],I=P.substring(0,5);if(&quot;xaxis&quot;===I||&quot;yaxis&quot;===I){var O=y[P]._emptyCategories;O&amp;&amp;O()}}}else h.supplyDefaultsUpdateCalc(t.calcdata,v);var z=[];if(a&amp;&amp;(t._transitionData={},h.createTransitionData(t),z.push((function(){return r.addFrames(t,a)}))),y.transition&amp;&amp;!g&amp;&amp;(S.anim||k.anim))k.ticks&amp;&amp;z.push(w.doTicksRelayout),h.doCalcdata(t),w.doAutoRangeAndConstraints(t),z.push((function(){return h.transitionFromReact(t,S,k,p)}));else if(S.fullReplot||k.layoutReplot||g)t._fullLayout._skipDefaults=!0,z.push(r._doPlot);else{for(var D in k.arrays){var F=k.arrays[D];if(F.length){var B=u.getComponentMethod(D,&quot;drawOne&quot;);if(B!==o.noop)for(var N=0;N&lt;F.length;N++)B(t,F[N]);else{var j=u.getComponentMethod(D,&quot;draw&quot;);if(j===o.noop)throw new Error(&quot;cannot draw components: &quot;+D);j(t)}}}z.push(h.previousPromises),S.style&amp;&amp;z.push(w.doTraceStyle),(S.colorbars||k.colorbars)&amp;&amp;z.push(w.doColorBars),k.legend&amp;&amp;z.push(w.doLegend),k.layoutstyle&amp;&amp;z.push(w.layoutStyles),k.axrange&amp;&amp;q(z),k.ticks&amp;&amp;z.push(w.doTicksRelayout),k.modebar&amp;&amp;z.push(w.doModeBar),k.camera&amp;&amp;z.push(w.doCamera),z.push(M)}z.push(h.rehover,h.redrag),(l=o.syncOrAsync(z,t))&amp;&amp;l.then||(l=Promise.resolve(t))}else l=r.newPlot(t,e,n,i);return l.then((function(){return t.emit(&quot;plotly_react&quot;,{data:e,layout:n}),t}))},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);return _.cleanData(t.data),_.cleanLayout(t.layout),t.calcdata=void 0,r._doPlot(t).then((function(){return t.emit(&quot;plotly_redraw&quot;),t}))},r.relayout=U,r.restyle=D,r.setPlotConfig=function(t){return o.extendFlat(x,t)},r.update=Z,r._guiRelayout=J(U),r._guiRestyle=J(D),r._guiUpdate=J(Z),r._storeDirectGUIEdit=function(t,e,r){for(var n in r){B(n,s(t,n).get(),r[n],e)}}},{&quot;../components/color&quot;:666,&quot;../components/drawing&quot;:688,&quot;../constants/xmlns_namespaces&quot;:780,&quot;../lib&quot;:803,&quot;../lib/events&quot;:792,&quot;../lib/queue&quot;:819,&quot;../plots/cartesian/axes&quot;:854,&quot;../plots/cartesian/constants&quot;:861,&quot;../plots/cartesian/graph_interact&quot;:864,&quot;../plots/cartesian/select&quot;:874,&quot;../plots/plots&quot;:917,&quot;../registry&quot;:931,&quot;./edit_types&quot;:836,&quot;./helpers&quot;:837,&quot;./manage_arrays&quot;:839,&quot;./plot_config&quot;:841,&quot;./plot_schema&quot;:842,&quot;./subroutines&quot;:844,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249,&quot;has-hover&quot;:443}],841:[function(t,e,r){&quot;use strict&quot;;var n={staticPlot:{valType:&quot;boolean&quot;,dflt:!1},plotlyServerURL:{valType:&quot;string&quot;,dflt:&quot;&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1},edits:{annotationPosition:{valType:&quot;boolean&quot;,dflt:!1},annotationTail:{valType:&quot;boolean&quot;,dflt:!1},annotationText:{valType:&quot;boolean&quot;,dflt:!1},axisTitleText:{valType:&quot;boolean&quot;,dflt:!1},colorbarPosition:{valType:&quot;boolean&quot;,dflt:!1},colorbarTitleText:{valType:&quot;boolean&quot;,dflt:!1},legendPosition:{valType:&quot;boolean&quot;,dflt:!1},legendText:{valType:&quot;boolean&quot;,dflt:!1},shapePosition:{valType:&quot;boolean&quot;,dflt:!1},titleText:{valType:&quot;boolean&quot;,dflt:!1}},autosizable:{valType:&quot;boolean&quot;,dflt:!1},responsive:{valType:&quot;boolean&quot;,dflt:!1},fillFrame:{valType:&quot;boolean&quot;,dflt:!1},frameMargins:{valType:&quot;number&quot;,dflt:0,min:0,max:.5},scrollZoom:{valType:&quot;flaglist&quot;,flags:[&quot;cartesian&quot;,&quot;gl3d&quot;,&quot;geo&quot;,&quot;mapbox&quot;],extras:[!0,!1],dflt:&quot;gl3d+geo+mapbox&quot;},doubleClick:{valType:&quot;enumerated&quot;,values:[!1,&quot;reset&quot;,&quot;autosize&quot;,&quot;reset+autosize&quot;],dflt:&quot;reset+autosize&quot;},doubleClickDelay:{valType:&quot;number&quot;,dflt:300,min:0},showAxisDragHandles:{valType:&quot;boolean&quot;,dflt:!0},showAxisRangeEntryBoxes:{valType:&quot;boolean&quot;,dflt:!0},showTips:{valType:&quot;boolean&quot;,dflt:!0},showLink:{valType:&quot;boolean&quot;,dflt:!1},linkText:{valType:&quot;string&quot;,dflt:&quot;Edit chart&quot;,noBlank:!0},sendData:{valType:&quot;boolean&quot;,dflt:!0},showSources:{valType:&quot;any&quot;,dflt:!1},displayModeBar:{valType:&quot;enumerated&quot;,values:[&quot;hover&quot;,!0,!1],dflt:&quot;hover&quot;},showSendToCloud:{valType:&quot;boolean&quot;,dflt:!1},showEditInChartStudio:{valType:&quot;boolean&quot;,dflt:!1},modeBarButtonsToRemove:{valType:&quot;any&quot;,dflt:[]},modeBarButtonsToAdd:{valType:&quot;any&quot;,dflt:[]},modeBarButtons:{valType:&quot;any&quot;,dflt:!1},toImageButtonOptions:{valType:&quot;any&quot;,dflt:{}},displaylogo:{valType:&quot;boolean&quot;,dflt:!0},watermark:{valType:&quot;boolean&quot;,dflt:!1},plotGlPixelRatio:{valType:&quot;number&quot;,dflt:2,min:1,max:4},setBackground:{valType:&quot;any&quot;,dflt:&quot;transparent&quot;},topojsonURL:{valType:&quot;string&quot;,noBlank:!0,dflt:&quot;https://cdn.plot.ly/&quot;},mapboxAccessToken:{valType:&quot;string&quot;,dflt:null},logging:{valType:&quot;integer&quot;,min:0,max:2,dflt:1},notifyOnLogging:{valType:&quot;integer&quot;,min:0,max:2,dflt:0},queueLength:{valType:&quot;integer&quot;,min:0,dflt:0},globalTransforms:{valType:&quot;any&quot;,dflt:[]},locale:{valType:&quot;string&quot;,dflt:&quot;en-US&quot;},locales:{valType:&quot;any&quot;,dflt:{}}},i={};!function t(e,r){for(var n in e){var i=e[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),t(i,r[n]))}}(n,i),e.exports={configAttributes:n,dfltConfig:i}},{}],842:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../plots/layout_attributes&quot;),s=t(&quot;../plots/frame_attributes&quot;),l=t(&quot;../plots/animation_attributes&quot;),c=t(&quot;./plot_config&quot;).configAttributes,u=t(&quot;./edit_types&quot;),f=i.extendDeepAll,h=i.isPlainObject,p=i.isArrayOrTypedArray,d=i.nestedProperty,g=i.valObjectMeta,m=[&quot;_isSubplotObj&quot;,&quot;_isLinkedToArray&quot;,&quot;_arrayAttrRegexps&quot;,&quot;_deprecated&quot;];function v(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(y(e[r]))r++;else if(r&lt;e.length)return!1;for(;r&lt;e.length;r++){var n=t[e[r]];if(!h(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!y(e[++r]))return!1}else if(&quot;info_array&quot;===t.valType){var i=e[++r];if(!y(i))return!1;var a=t.items;if(Array.isArray(a)){if(i&gt;=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!y(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function y(t){return t===Math.round(t)&amp;&amp;t&gt;=0}function x(){var t,e,r={};for(t in f(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i&lt;e.attr.length;i++)w(r,e,e.attr[i]);else w(r,e,&quot;subplot&quot;===e.attr?e.name:e.attr)}for(t in n.componentsRegistry){var a=(e=n.componentsRegistry[t]).schema;if(a&amp;&amp;(a.subplots||a.layout)){var s=a.subplots;if(s&amp;&amp;s.xaxis&amp;&amp;!s.yaxis)for(var l in s.xaxis)delete r.yaxis[l]}else&quot;colorscale&quot;===e.name?f(r,e.layoutAttributes):e.layoutAttributes&amp;&amp;T(r,e.layoutAttributes,e.name)}return{layoutAttributes:_(r)}}function b(){var t={frames:f({},s)};return _(t),t.frames}function _(t){return function(t){r.crawl(t,(function(t,e,n){r.isValObject(t)?!0!==t.arrayOk&amp;&amp;&quot;data_array&quot;!==t.valType||(n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):h(t)&amp;&amp;(t.role=&quot;object&quot;)}))}(t),function(t){r.crawl(t,(function(t,e,r){if(t){var n=t._isLinkedToArray;n&amp;&amp;(delete t._isLinkedToArray,r[e]={items:{}},r[e].items[n]=t,r[e].role=&quot;object&quot;)}}))}(t),function(t){!function t(e){for(var r in e)if(h(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n&lt;e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&amp;&amp;(e[r]=e[r].toString())}(t)}(t),t}function w(t,e,r){var n=d(t,r),i=f({},e.layoutAttributes);i._isSubplotObj=!0,n.set(i)}function T(t,e,r){var n=d(t,r);n.set(f(n.get()||{},e))}r.IS_SUBPLOT_OBJ=&quot;_isSubplotObj&quot;,r.IS_LINKED_TO_ARRAY=&quot;_isLinkedToArray&quot;,r.DEPRECATED=&quot;_deprecated&quot;,r.UNDERSCORE_ATTRS=m,r.get=function(){var t={};n.allTypes.forEach((function(e){t[e]=function(t){var e,i;e=n.modules[t]._module,i=e.basePlotModule;var o={type:null},s=f({},a),l=f({},e.attributes);r.crawl(l,(function(t,e,r,n,i){d(s,i).set(void 0),void 0===t&amp;&amp;d(l,i).set(void 0)})),f(o,s),n.traceIs(t,&quot;noOpacity&quot;)&amp;&amp;delete o.opacity;n.traceIs(t,&quot;showLegend&quot;)||(delete o.showlegend,delete o.legendgroup);n.traceIs(t,&quot;noHover&quot;)&amp;&amp;(delete o.hoverinfo,delete o.hoverlabel);e.selectPoints||delete o.selectedpoints;f(o,l),i.attributes&amp;&amp;f(o,i.attributes);o.type=t;var c={meta:e.meta||{},categories:e.categories||{},animatable:Boolean(e.animatable),type:t,attributes:_(o)};if(e.layoutAttributes){var u={};f(u,e.layoutAttributes),c.layoutAttributes=_(u)}e.animatable||r.crawl(c,(function(t){r.isValObject(t)&amp;&amp;&quot;anim&quot;in t&amp;&amp;delete t.anim}));return c}(e)}));var e={};return Object.keys(n.transformsRegistry).forEach((function(t){e[t]=function(t){var e=n.transformsRegistry[t],r=f({},e.attributes);return Object.keys(n.componentsRegistry).forEach((function(e){var i=n.componentsRegistry[e];i.schema&amp;&amp;i.schema.transforms&amp;&amp;i.schema.transforms[t]&amp;&amp;Object.keys(i.schema.transforms[t]).forEach((function(e){T(r,i.schema.transforms[t][e],e)}))})),{attributes:_(r)}}(t)})),{defs:{valObjects:g,metaKeys:m.concat([&quot;description&quot;,&quot;role&quot;,&quot;editType&quot;,&quot;impliedEdits&quot;]),editType:{traces:u.traces,layout:u.layout},impliedEdits:{}},traces:t,layout:x(),transforms:e,frames:b(),animation:_(l),config:_(c)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||&quot;&quot;,Object.keys(t).forEach((function(n){var o=t[n];if(-1===m.indexOf(n)){var s=(i?i+&quot;.&quot;:&quot;&quot;)+n;e(o,n,t,a,s),r.isValObject(o)||h(o)&amp;&amp;&quot;impliedEdits&quot;!==n&amp;&amp;r.crawl(o,e,a+1,s)}}))},r.isValObject=function(t){return t&amp;&amp;void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,i=[],o=[],s=[];function l(t,r,a,l){o=o.slice(0,l).concat([r]),s=s.slice(0,l).concat([t&amp;&amp;t._isLinkedToArray]),t&amp;&amp;(&quot;data_array&quot;===t.valType||!0===t.arrayOk)&amp;&amp;!(&quot;colorbar&quot;===o[l-1]&amp;&amp;(&quot;ticktext&quot;===r||&quot;tickvals&quot;===r))&amp;&amp;function t(e,r,a){var l=e[o[r]],c=a+o[r];if(r===o.length-1)p(l)&amp;&amp;i.push(n+c);else if(s[r]){if(Array.isArray(l))for(var u=0;u&lt;l.length;u++)h(l[u])&amp;&amp;t(l[u],r+1,c+&quot;[&quot;+u+&quot;].&quot;)}else h(l)&amp;&amp;t(l,r+1,c+&quot;.&quot;)}(e,0,&quot;&quot;)}e=t,n=&quot;&quot;,r.crawl(a,l),t._module&amp;&amp;t._module.attributes&amp;&amp;r.crawl(t._module.attributes,l);var c=t.transforms;if(c)for(var u=0;u&lt;c.length;u++){var f=c[u],d=f._module;d&amp;&amp;(n=&quot;transforms[&quot;+u+&quot;].&quot;,e=f,r.crawl(d.attributes,l))}return i},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(&quot;transforms&quot;===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var c=e[1];if(!y(c)||c&gt;=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&amp;&amp;r[e[2]],s=3}else{var u=t._module;if(u||(u=(n.modules[t.type||a.type.dflt]||{})._module),!u)return!1;if(!(i=(r=u.attributes)&amp;&amp;r[o])){var f=u.basePlotModule;f&amp;&amp;f.attributes&amp;&amp;(i=f.attributes[o])}i||(i=a[o])}return v(i,e,s)},r.getLayoutValObject=function(t,e){return v(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r&lt;l.length;r++){if((a=l[r]).attrRegex&amp;&amp;a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&amp;&amp;a.layoutAttributes&amp;&amp;(c=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&amp;&amp;e in u)return u[e]}if(c)return c}var f=t._modules;if(f)for(r=0;r&lt;f.length;r++)if((s=f[r].layoutAttributes)&amp;&amp;e in s)return s[e];for(i in n.componentsRegistry){if(&quot;colorscale&quot;===(a=n.componentsRegistry[i]).name&amp;&amp;0===e.indexOf(&quot;coloraxis&quot;))return a.layoutAttributes[e];if(!a.schema&amp;&amp;e===a.name)return a.layoutAttributes}return e in o&amp;&amp;o[e]}(t,e[0]),e,1)}},{&quot;../lib&quot;:803,&quot;../plots/animation_attributes&quot;:848,&quot;../plots/attributes&quot;:850,&quot;../plots/frame_attributes&quot;:884,&quot;../plots/layout_attributes&quot;:908,&quot;../registry&quot;:931,&quot;./edit_types&quot;:836,&quot;./plot_config&quot;:841}],843:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/attributes&quot;),a={name:{valType:&quot;string&quot;,editType:&quot;none&quot;}};function o(t){return t&amp;&amp;&quot;string&quot;==typeof t}function s(t){var e=t.length-1;return&quot;s&quot;!==t.charAt(e)&amp;&amp;n.warn(&quot;bad argument to arrayDefaultKey: &quot;+t),t.substr(0,t.length-1)+&quot;defaults&quot;}a.templateitemname={valType:&quot;string&quot;,editType:&quot;calc&quot;},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=a.name,e.templateitemname=a.templateitemname,e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&amp;&amp;r.length&amp;&amp;(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,&quot;type&quot;),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&amp;&amp;(i[e]||r&amp;&amp;i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&amp;&amp;n[s(e)],a=n&amp;&amp;n[e];Array.isArray(a)&amp;&amp;a.length||(a=[]);var l={};return{newItem:function(t){var e={name:t.name,_input:t},n=e.templateitemname=t.templateitemname;if(!o(n))return e._template=i,e;for(var s=0;s&lt;a.length;s++){var c=a[s];if(c.name===n)return l[n]=1,e._template=c,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e&lt;a.length;e++){var r=a[e],n=r.name;if(o(n)&amp;&amp;!l[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i.templateitemname=r.templateitemname,t.push(i),l[n]=1}}return t}}},r.arrayDefaultKey=s,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,a=r._index,o=a&gt;=i&amp;&amp;(r._input||{})._templateitemname;o&amp;&amp;(a=i);var s,l=e+&quot;[&quot;+a+&quot;]&quot;;function c(){s={},o&amp;&amp;(s[l]={},s[l].templateitemname=o)}function u(t,e){o?n.nestedProperty(s[l],t).set(e):s[l+&quot;.&quot;+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:u,getUpdateObj:f,applyUpdate:function(e,r){e&amp;&amp;u(e,r);var i=f();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{&quot;../lib&quot;:803,&quot;../plots/attributes&quot;:850}],844:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../lib/clear_gl_canvases&quot;),l=t(&quot;../components/color&quot;),c=t(&quot;../components/drawing&quot;),u=t(&quot;../components/titles&quot;),f=t(&quot;../components/modebar&quot;),h=t(&quot;../plots/cartesian/axes&quot;),p=t(&quot;../constants/alignment&quot;),d=t(&quot;../plots/cartesian/constraints&quot;),g=d.enforce,m=d.clean,v=t(&quot;../plots/cartesian/autorange&quot;).doAutoRange;function y(t,e,r){for(var n=0;n&lt;r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]&gt;=t[1]||i[1]&lt;=t[0])&amp;&amp;(a[0]&lt;e[1]&amp;&amp;a[1]&gt;e[0]))return!0}return!1}function x(t){var e,i,s,u,d,g,m=t._fullLayout,v=m._size,x=v.p,_=h.list(t,&quot;&quot;,!0);if(m._paperdiv.style({width:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroWidth&amp;&amp;!t.layout.width?&quot;100%&quot;:m.width+&quot;px&quot;,height:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroHeight&amp;&amp;!t.layout.height?&quot;100%&quot;:m.height+&quot;px&quot;}).selectAll(&quot;.main-svg&quot;).call(c.setSize,m.width,m.height),t._context.setBackground(t,m.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!m._has(&quot;cartesian&quot;))return a.previousPromises(t);function T(t,e,r){var n=t._lw/2;return&quot;x&quot;===t._id.charAt(0)?e?&quot;top&quot;===r?e._offset-x-n:e._offset+e._length+x+n:v.t+v.h*(1-(t.position||0))+n%1:e?&quot;right&quot;===r?e._offset+e._length+x+n:e._offset-x-n:v.l+v.w*(t.position||0)+n%1}for(e=0;e&lt;_.length;e++){var k=(u=_[e])._anchorAxis;u._linepositions={},u._lw=c.crispRound(t,u.linewidth,1),u._mainLinePosition=T(u,k,u.side),u._mainMirrorPosition=u.mirror&amp;&amp;k?T(u,k,p.OPPOSITE_SIDE[u.side]):null}var A=[],M=[],S=[],E=1===l.opacity(m.paper_bgcolor)&amp;&amp;1===l.opacity(m.plot_bgcolor)&amp;&amp;m.paper_bgcolor===m.plot_bgcolor;for(i in m._plots)if((s=m._plots[i]).mainplot)s.bg&amp;&amp;s.bg.remove(),s.bg=void 0;else{var L=s.xaxis.domain,C=s.yaxis.domain,P=s.plotgroup;if(y(L,C,S)){var I=P.node(),O=s.bg=o.ensureSingle(P,&quot;rect&quot;,&quot;bg&quot;);I.insertBefore(O.node(),I.childNodes[0]),M.push(i)}else P.select(&quot;rect.bg&quot;).remove(),S.push([L,C]),E||(A.push(i),M.push(i))}var z,D,R,F,B,N,j,U,V,q,H,G,Y,W=m._bgLayer.selectAll(&quot;.bg&quot;).data(A);for(W.enter().append(&quot;rect&quot;).classed(&quot;bg&quot;,!0),W.exit().remove(),W.each((function(t){m._plots[t].bg=n.select(this)})),e=0;e&lt;M.length;e++)s=m._plots[M[e]],d=s.xaxis,g=s.yaxis,s.bg&amp;&amp;void 0!==d._offset&amp;&amp;void 0!==g._offset&amp;&amp;s.bg.call(c.setRect,d._offset-x,g._offset-x,d._length+2*x,g._length+2*x).call(l.fill,m.plot_bgcolor).style(&quot;stroke-width&quot;,0);if(!m._hasOnlyLargeSploms)for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var X,Z,J=s.clipId=&quot;clip&quot;+m._uid+i+&quot;plot&quot;,K=o.ensureSingleById(m._clips,&quot;clipPath&quot;,J,(function(t){t.classed(&quot;plotclip&quot;,!0).append(&quot;rect&quot;)}));s.clipRect=K.select(&quot;rect&quot;).attr({width:d._length,height:g._length}),c.setTranslate(s.plot,d._offset,g._offset),s._hasClipOnAxisFalse?(X=null,Z=J):(X=J,Z=null),c.setClipUrl(s.plot,X,t),s.layerClipId=Z}function Q(t){return&quot;M&quot;+z+&quot;,&quot;+t+&quot;H&quot;+D}function $(t){return&quot;M&quot;+d._offset+&quot;,&quot;+t+&quot;h&quot;+d._length}function tt(t){return&quot;M&quot;+t+&quot;,&quot;+U+&quot;V&quot;+j}function et(t){return&quot;M&quot;+t+&quot;,&quot;+g._offset+&quot;v&quot;+g._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return&quot;&quot;;if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&amp;&amp;(n+=e(t._mainMirrorPosition)),n}for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var nt=&quot;M0,0&quot;;b(d,i)&amp;&amp;(B=w(d,&quot;left&quot;,g,_),z=d._offset-(B?x+B:0),N=w(d,&quot;right&quot;,g,_),D=d._offset+d._length+(N?x+N:0),R=T(d,g,&quot;bottom&quot;),F=T(d,g,&quot;top&quot;),!(Y=!d._anchorAxis||i!==d._mainSubplot)||&quot;allticks&quot;!==d.mirror&amp;&amp;&quot;all&quot;!==d.mirror||(d._linepositions[i]=[R,F]),nt=rt(d,Q,$),Y&amp;&amp;d.showline&amp;&amp;(&quot;all&quot;===d.mirror||&quot;allticks&quot;===d.mirror)&amp;&amp;(nt+=Q(R)+Q(F)),s.xlines.style(&quot;stroke-width&quot;,d._lw+&quot;px&quot;).call(l.stroke,d.showline?d.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.xlines.attr(&quot;d&quot;,nt);var it=&quot;M0,0&quot;;b(g,i)&amp;&amp;(H=w(g,&quot;bottom&quot;,d,_),j=g._offset+g._length+(H?x:0),G=w(g,&quot;top&quot;,d,_),U=g._offset-(G?x:0),V=T(g,d,&quot;left&quot;),q=T(g,d,&quot;right&quot;),!(Y=!g._anchorAxis||i!==g._mainSubplot)||&quot;allticks&quot;!==g.mirror&amp;&amp;&quot;all&quot;!==g.mirror||(g._linepositions[i]=[V,q]),it=rt(g,tt,et),Y&amp;&amp;g.showline&amp;&amp;(&quot;all&quot;===g.mirror||&quot;allticks&quot;===g.mirror)&amp;&amp;(it+=tt(V)+tt(q)),s.ylines.style(&quot;stroke-width&quot;,g._lw+&quot;px&quot;).call(l.stroke,g.showline?g.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.ylines.attr(&quot;d&quot;,it)}return h.makeClipPaths(t),a.previousPromises(t)}function b(t,e){return(t.ticks||t.showline)&amp;&amp;(e===t._mainSubplot||&quot;all&quot;===t.mirror||&quot;allticks&quot;===t.mirror)}function _(t,e,r){if(!r.showline||!r._lw)return!1;if(&quot;all&quot;===r.mirror||&quot;allticks&quot;===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&amp;&amp;n.domain[1-i]===t.domain[1-i]}function w(t,e,r,n){if(_(t,e,r))return r._lw;for(var i=0;i&lt;n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&amp;&amp;_(t,e,a))return a._lw}return 0}function T(t,e){var r=t.title,n=t._size,i=0;switch(&quot;start&quot;===e?i=r.pad.l:&quot;end&quot;===e&amp;&amp;(i=-r.pad.r),r.xref){case&quot;paper&quot;:return n.l+n.w*r.x+i;case&quot;container&quot;:default:return t.width*r.x+i}}function k(t,e){var r=t.title,n=t._size,i=0;if(&quot;0em&quot;!==e&amp;&amp;e?e===p.CAP_SHIFT+&quot;em&quot;&amp;&amp;(i=r.pad.t):i=-r.pad.b,&quot;auto&quot;===r.y)return n.t/2;switch(r.yref){case&quot;paper&quot;:return n.t+n.h-n.h*r.y+i;case&quot;container&quot;:default:return t.height-t.height*r.y+i}}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout,r=function(t){var e=t.title,r=&quot;middle&quot;;o.isRightAnchor(e)?r=&quot;end&quot;:o.isLeftAnchor(e)&amp;&amp;(r=&quot;start&quot;);return r}(e),n=function(t){var e=t.title,r=&quot;0em&quot;;o.isTopAnchor(e)?r=p.CAP_SHIFT+&quot;em&quot;:o.isMiddleAnchor(e)&amp;&amp;(r=p.MID_SHIFT+&quot;em&quot;);return r}(e);u.draw(t,&quot;gtitle&quot;,{propContainer:e,propName:&quot;title.text&quot;,placeholder:e._dfltTitle.plot,attributes:{x:T(e,r),y:k(e,n),&quot;text-anchor&quot;:r,dy:n}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e&lt;n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&amp;&amp;h(l,u);var p=f.editStyle;p&amp;&amp;o.push({fn:p,cd0:c})}if(o.length){for(e=0;e&lt;o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doColorBars=function(t){return i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(&quot;_doPlot&quot;,t,&quot;&quot;,e)},r.doLegend=function(t){return i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.draw(t,&quot;redraw&quot;),t._fullLayout._hasOnlyLargeSploms&amp;&amp;(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r&lt;e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&amp;&amp;n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){var i=e[r[n]];i._scene.setViewport(i)}},r.drawData=function(t){var e=t._fullLayout;s(t);for(var n=e._basePlotModules,o=0;o&lt;n.length;o++)n[o].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(&quot;shapes&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;images&quot;,&quot;draw&quot;)(t),e._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(&quot;regl&quot;)){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&amp;&amp;e._splomGrid.draw(),r=0;r&lt;i.length;r++){var l=i[r];!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(&quot;splom&quot;===l.type?e._splomScenes[l.uid].draw():&quot;scattergl&quot;===l.type?o.pushUnique(a,l.xaxis+l.yaxis):&quot;scatterpolargl&quot;===l.type&amp;&amp;o.pushUnique(s,l.subplot))}for(r=0;r&lt;a.length;r++)(n=e._plots[a[r]])._scene&amp;&amp;n._scene.draw();for(r=0;r&lt;s.length;r++)(n=e[s[r]]._subplot)._scene&amp;&amp;n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e,r=h.list(t,&quot;&quot;,!0),n={},i=0;i&lt;r.length;i++)if(!n[(e=r[i])._id]){n[e._id]=1,m(t,e),v(t,e);var a=e._matchGroup;if(a)for(var o in a){var s=h.getFromId(t,o);v(t,s,e.range),n[o]=1}}g(t)},r.finalDraw=function(t){i.getComponentMethod(&quot;rangeslider&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t)},r.drawMarginPushers=function(t){i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;sliders&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;updatemenus&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},{&quot;../components/color&quot;:666,&quot;../components/drawing&quot;:688,&quot;../components/modebar&quot;:729,&quot;../components/titles&quot;:764,&quot;../constants/alignment&quot;:771,&quot;../lib&quot;:803,&quot;../lib/clear_gl_canvases&quot;:787,&quot;../plots/cartesian/autorange&quot;:853,&quot;../plots/cartesian/axes&quot;:854,&quot;../plots/cartesian/constraints&quot;:862,&quot;../plots/plots&quot;:917,&quot;../registry&quot;:931,&quot;@plotly/d3&quot;:58}],845:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.isPlainObject,a=t(&quot;./plot_schema&quot;),o=t(&quot;../plots/plots&quot;),s=t(&quot;../plots/attributes&quot;),l=t(&quot;./plot_template&quot;),c=t(&quot;./plot_config&quot;).dfltConfig;function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&amp;&amp;i(e))u(e,r);else if(Array.isArray(r)&amp;&amp;Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a&lt;r.length;a++){var s=r[a],c=o.newItem(s)._template;c&amp;&amp;u(c,s)}var f=o.defaultItems();for(a=0;a&lt;f.length;a++)r.push(f[a]._template);for(a=0;a&lt;r.length;a++)delete r[a].templateitemname}}for(r=0;r&lt;o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,&quot;&quot;)}function h(t,e,r,a,o){var s=o&amp;&amp;r(o);for(var c in t){var u=t[c],p=g(t,c,a),d=g(t,c,o),m=r(d);if(!m){var v=f(c);v!==c&amp;&amp;(m=r(d=g(t,v,o)))}if((!s||s!==m)&amp;&amp;!(!m||m._noTemplating||&quot;data_array&quot;===m.valType||m.arrayOk&amp;&amp;Array.isArray(u)))if(!m.valType&amp;&amp;i(u))h(u,e,r,p,d);else if(m._isLinkedToArray&amp;&amp;Array.isArray(u))for(var y=!1,x=0,b={},_=0;_&lt;u.length;_++){var w=u[_];if(i(w)){var T=w.name;if(T)b[T]||(h(w,e,r,g(u,x,p),g(u,x,d)),x++,b[T]=1);else if(!y){var k=g(t,l.arrayDefaultKey(c),a),A=g(u,x,p);h(w,e,r,A,g(u,x,d));var M=n.nestedProperty(e,A);n.nestedProperty(e,k).set(M.get()),M.set(null),y=!0}}}else{n.nestedProperty(e,p).set(u)}}}function p(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}function d(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}function g(t,e,r){return r?Array.isArray(t)?r+&quot;[&quot;+e+&quot;]&quot;:r+&quot;.&quot;+e:e}function m(t){for(var e=0;e&lt;t.length;e++)if(i(t[e]))return!0}function v(t){var e;switch(t.code){case&quot;data&quot;:e=&quot;The template has no key data.&quot;;break;case&quot;layout&quot;:e=&quot;The template has no key layout.&quot;;break;case&quot;missing&quot;:e=t.path?&quot;There are no templates for item &quot;+t.path+&quot; with name &quot;+t.templateitemname:&quot;There are no templates for trace &quot;+t.index+&quot;, of type &quot;+t.traceType+&quot;.&quot;;break;case&quot;unused&quot;:e=t.path?&quot;The template item at &quot;+t.path+&quot; was not used in constructing the plot.&quot;:t.dataCount?&quot;Some of the templates of type &quot;+t.traceType+&quot; were not used. The template has &quot;+t.templateCount+&quot; traces, the data only has &quot;+t.dataCount+&quot; of this type.&quot;:&quot;The template has &quot;+t.templateCount+&quot; traces of type &quot;+t.traceType+&quot; but there are none in the data.&quot;;break;case&quot;reused&quot;:e=&quot;Some of the templates of type &quot;+t.traceType+&quot; were used more than once. The template has &quot;+t.templateCount+&quot; traces, the data has &quot;+t.dataCount+&quot; of this type.&quot;}return t.msg=e,t}r.makeTemplate=function(t){t=n.isPlainObject(t)?t:n.getGraphDiv(t),t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var a={data:{},layout:{}};e.forEach((function(t){var e={};h(t,e,d.bind(null,t));var r=n.coerce(t,{},s,&quot;type&quot;),i=a.data[r];i||(i=a.data[r]=[]),i.push(e)})),h(r,a.layout,p.bind(null,r)),delete a.layout.template;var l=r.template;if(i(l)){var f,g,m,v,y,x,b=l.layout;i(b)&amp;&amp;u(b,a.layout);var _=l.data;if(i(_)){for(g in a.data)if(m=_[g],Array.isArray(m)){for(x=(y=a.data[g]).length,v=m.length,f=0;f&lt;x;f++)u(m[f%v],y[f]);for(f=x;f&lt;v;f++)y.push(n.extendDeep({},m[f]))}for(g in _)g in a.data||(a.data[g]=n.extendDeep([],_[g]))}}return a},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,p=r._fullData,d={};if(i(s)?(!function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)&amp;&amp;i(e[n])){var a,o=f(n),s=[];for(a=0;a&lt;r.length;a++)s.push(g(e,n,r[a])),o!==n&amp;&amp;s.push(g(e,o,r[a]));for(a=0;a&lt;s.length;a++)d[s[a]]=1;t(e[n],s)}}(h,[&quot;layout&quot;]),function t(e,r){for(var n in e)if(-1===n.indexOf(&quot;defaults&quot;)&amp;&amp;i(e[n])){var a=g(e,n,r);d[a]?t(e[n],a):u.push({code:&quot;unused&quot;,path:a})}}(s,&quot;layout&quot;)):u.push({code:&quot;layout&quot;}),i(l)){for(var y,x={},b=0;b&lt;p.length;b++){var _=p[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:&quot;missing&quot;,index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,T=x[y]||0;w&gt;T?u.push({code:&quot;unused&quot;,traceType:y,templateCount:w,dataCount:T}):T&gt;w&amp;&amp;u.push({code:&quot;reused&quot;,traceType:y,templateCount:w,dataCount:T})}}else u.push({code:&quot;data&quot;});if(function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)){var a=e[n],o=g(e,n,r);i(a)?(Array.isArray(e)&amp;&amp;!1===a._template&amp;&amp;a.templateitemname&amp;&amp;u.push({code:&quot;missing&quot;,path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&amp;&amp;m(a)&amp;&amp;t(a,o)}}({data:p,layout:h},&quot;&quot;),u.length)return u.map(v)}},{&quot;../lib&quot;:803,&quot;../plots/attributes&quot;:850,&quot;../plots/plots&quot;:917,&quot;./plot_config&quot;:841,&quot;./plot_schema&quot;:842,&quot;./plot_template&quot;:843}],846:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./plot_api&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../snapshot/helpers&quot;),l=t(&quot;../snapshot/tosvg&quot;),c=t(&quot;../snapshot/svgtoimg&quot;),u=t(&quot;../version&quot;).version,f={format:{valType:&quot;enumerated&quot;,values:[&quot;png&quot;,&quot;jpeg&quot;,&quot;webp&quot;,&quot;svg&quot;,&quot;full-json&quot;],dflt:&quot;png&quot;},width:{valType:&quot;number&quot;,min:1},height:{valType:&quot;number&quot;,min:1},scale:{valType:&quot;number&quot;,min:0,dflt:1},setBackground:{valType:&quot;any&quot;,dflt:!1},imageDataOnly:{valType:&quot;boolean&quot;,dflt:!1}};e.exports=function(t,e){var r,h,p,d;function g(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],h=t.layout||{},p=t.config||{},d={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),h=o.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!g(&quot;width&quot;)&amp;&amp;null!==e.width||!g(&quot;height&quot;)&amp;&amp;null!==e.height)throw new Error(&quot;Height and width should be pixel values.&quot;);if(!g(&quot;format&quot;))throw new Error(&quot;Export format is not &quot;+o.join2(f.format.values,&quot;, &quot;,&quot; or &quot;)+&quot;.&quot;);var m={};function v(t,r){return o.coerce(e,m,f,t,r)}var y=v(&quot;format&quot;),x=v(&quot;width&quot;),b=v(&quot;height&quot;),_=v(&quot;scale&quot;),w=v(&quot;setBackground&quot;),T=v(&quot;imageDataOnly&quot;),k=document.createElement(&quot;div&quot;);k.style.position=&quot;absolute&quot;,k.style.left=&quot;-5000px&quot;,document.body.appendChild(k);var A=o.extendFlat({},h);x?A.width=x:null===e.width&amp;&amp;n(d.width)&amp;&amp;(A.width=d.width),b?A.height=b:null===e.height&amp;&amp;n(d.height)&amp;&amp;(A.height=d.height);var M=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(k._fullLayout))}))}function L(){return new Promise((function(t,e){var r=l(k,y,_),n=k._fullLayout.width,f=k._fullLayout.height;function h(){i.purge(k),document.body.removeChild(k)}if(&quot;full-json&quot;===y){var p=a.graphJson(k,!1,&quot;keepdata&quot;,&quot;object&quot;,!0,!0);return p.version=u,p=JSON.stringify(p),h(),t(T?p:s.encodeJSON(p))}if(h(),&quot;svg&quot;===y)return t(T?r:s.encodeSVG(r));var d=document.createElement(&quot;canvas&quot;);d.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){i.newPlot(k,r,A,M).then(S).then(E).then(L).then((function(e){t(function(t){return T?t.replace(s.IMAGE_URL_PREFIX,&quot;&quot;):t}(e))})).catch((function(t){e(t)}))}))}},{&quot;../lib&quot;:803,&quot;../plots/plots&quot;:917,&quot;../snapshot/helpers&quot;:935,&quot;../snapshot/svgtoimg&quot;:937,&quot;../snapshot/tosvg&quot;:939,&quot;../version&quot;:1404,&quot;./plot_api&quot;:840,&quot;fast-isnumeric&quot;:249}],847:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/plots&quot;),a=t(&quot;./plot_schema&quot;),o=t(&quot;./plot_config&quot;).dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h&lt;f.length;h++){var p=f[h];if(&quot;transforms&quot;!==p){var v=o.slice();v.push(p);var y=t[p],x=e[p],b=m(r,p),_=(b||{}).valType,w=&quot;info_array&quot;===_,T=&quot;colorscale&quot;===_,k=(b||{}).items;if(g(r,p))if(s(y)&amp;&amp;s(x)&amp;&amp;&quot;any&quot;!==_)u(y,x,b,i,a,v);else if(w&amp;&amp;l(y)){y.length&gt;x.length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(x.length)));var A,M,S,E,L,C=x.length,P=Array.isArray(k);if(P&amp;&amp;(C=Math.min(C,k.length)),2===b.dimensions)for(M=0;M&lt;C;M++)if(l(y[M])){y[M].length&gt;x[M].length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(M,x[M].length)));var I=x[M].length;for(A=0;A&lt;(P?Math.min(I,k[M].length):I);A++)S=P?k[M][A]:k,E=y[M][A],L=x[M][A],n.validate(E,S)?L!==E&amp;&amp;L!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(M,A),E,L)):i.push(d(&quot;value&quot;,a,v.concat(M,A),E))}else i.push(d(&quot;array&quot;,a,v.concat(M),y[M]));else for(M=0;M&lt;C;M++)S=P?k[M]:k,E=y[M],L=x[M],n.validate(E,S)?L!==E&amp;&amp;L!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(M),E,L)):i.push(d(&quot;value&quot;,a,v.concat(M),E))}else if(b.items&amp;&amp;!w&amp;&amp;l(y)){var O,z,D=k[Object.keys(k)[0]],R=[];for(O=0;O&lt;x.length;O++){var F=x[O]._index||O;if((z=v.slice()).push(F),s(y[F])&amp;&amp;s(x[O])){R.push(F);var B=y[F],N=x[O];s(B)&amp;&amp;!1!==B.visible&amp;&amp;!1===N.visible?i.push(d(&quot;invisible&quot;,a,z)):u(B,N,D,i,a,z)}}for(O=0;O&lt;y.length;O++)(z=v.slice()).push(O),s(y[O])?-1===R.indexOf(O)&amp;&amp;i.push(d(&quot;unused&quot;,a,z)):i.push(d(&quot;object&quot;,a,z,y[O]))}else!s(y)&amp;&amp;s(x)?i.push(d(&quot;object&quot;,a,v,y)):c(y)||!c(x)||w||T?p in e?n.validate(y,b)?&quot;enumerated&quot;===b.valType&amp;&amp;(b.coerceNumber&amp;&amp;y!==+x||y!==x)&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v,y,x)):i.push(d(&quot;value&quot;,a,v,y)):i.push(d(&quot;unused&quot;,a,v,y)):i.push(d(&quot;array&quot;,a,v,y));else i.push(d(&quot;schema&quot;,a,v))}}return i}function f(t,e){for(var r=t.layout.layoutAttributes,i=0;i&lt;e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&amp;&amp;(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}e.exports=function(t,e){void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e={});var r,c,h=a.get(),p=[],g={_context:n.extendFlat({},o)};l(t)?(g.data=n.extendDeep([],t),r=t):(g.data=[],r=[],p.push(d(&quot;array&quot;,&quot;data&quot;))),s(e)?(g.layout=n.extendDeep({},e),c=e):(g.layout={},c={},arguments.length&gt;1&amp;&amp;p.push(d(&quot;object&quot;,&quot;layout&quot;))),i.supplyDefaults(g);for(var m=g._fullData,v=r.length,y=0;y&lt;v;y++){var x=r[y],b=[&quot;data&quot;,y];if(s(x)){var _=m[y],w=_.type,T=h.traces[w].attributes;T.type={valType:&quot;enumerated&quot;,values:[w]},!1===_.visible&amp;&amp;!1!==x.visible&amp;&amp;p.push(d(&quot;invisible&quot;,b)),u(x,_,T,p,b);var k=x.transforms,A=_.transforms;if(k){l(k)||p.push(d(&quot;array&quot;,b,[&quot;transforms&quot;])),b.push(&quot;transforms&quot;);for(var M=0;M&lt;k.length;M++){var S=[&quot;transforms&quot;,M],E=k[M].type;if(s(k[M])){var L=h.transforms[E]?h.transforms[E].attributes:{};L.type={valType:&quot;enumerated&quot;,values:Object.keys(h.transforms)},u(k[M],A[M],L,p,b,S)}else p.push(d(&quot;object&quot;,b,S))}}}else p.push(d(&quot;object&quot;,b))}var C=g._fullLayout,P=f(h,m);return u(c,C,P,p,&quot;layout&quot;),0===p.length?void 0:p};var h={object:function(t,e){return(&quot;layout&quot;===t&amp;&amp;&quot;&quot;===e?&quot;The layout argument&quot;:&quot;data&quot;===t[0]&amp;&amp;&quot;&quot;===e?&quot;Trace &quot;+t[1]+&quot; in the data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an object container&quot;},array:function(t,e){return(&quot;data&quot;===t?&quot;The data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an array container&quot;},schema:function(t,e){return p(t)+&quot;key &quot;+e+&quot; is not part of the schema&quot;},unused:function(t,e,r){var n=s(r)?&quot;container&quot;:&quot;key&quot;;return p(t)+n+&quot; &quot;+e+&quot; did not get coerced&quot;},dynamic:function(t,e,r,n){return[p(t)+&quot;key&quot;,e,&quot;(set to '&quot;+r+&quot;')&quot;,&quot;got reset to&quot;,&quot;'&quot;+n+&quot;'&quot;,&quot;during defaults.&quot;].join(&quot; &quot;)},invisible:function(t,e){return(e?p(t)+&quot;item &quot;+e:&quot;Trace &quot;+t[1])+&quot; got defaulted to be not visible&quot;},value:function(t,e,r){return[p(t)+&quot;key &quot;+e,&quot;is set to an invalid value (&quot;+r+&quot;)&quot;].join(&quot; &quot;)}};function p(t){return l(t)?&quot;In data trace &quot;+t[1]+&quot;, &quot;:&quot;In &quot;+t+&quot;, &quot;}function d(t,e,r,i,a){var o,s;r=r||&quot;&quot;,l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t[r];&quot;number&quot;==typeof n?e=e.substr(0,e.length-1)+&quot;[&quot;+n+&quot;]&quot;:e+=n,r&lt;t.length-1&amp;&amp;(e+=&quot;.&quot;)}return e}(r),u=h[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function g(t,e){var r=y(e),n=r.keyMinusId,i=r.id;return!!(n in t&amp;&amp;t[n]._isSubplotObj&amp;&amp;i)||e in t}function m(t,e){return e in t?t[e]:t[y(e).keyMinusId]}var v=n.counterRegex(&quot;([a-z]+)&quot;);function y(t){var e=t.match(v);return{keyMinusId:e&amp;&amp;e[1],id:e&amp;&amp;e[2]}}},{&quot;../lib&quot;:803,&quot;../plots/plots&quot;:917,&quot;./plot_config&quot;:841,&quot;./plot_schema&quot;:842}],848:[function(t,e,r){&quot;use strict&quot;;e.exports={mode:{valType:&quot;enumerated&quot;,dflt:&quot;afterall&quot;,values:[&quot;immediate&quot;,&quot;next&quot;,&quot;afterall&quot;]},direction:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;reverse&quot;],dflt:&quot;forward&quot;},fromcurrent:{valType:&quot;boolean&quot;,dflt:!1},frame:{duration:{valType:&quot;number&quot;,min:0,dflt:500},redraw:{valType:&quot;boolean&quot;,dflt:!0}},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:500,editType:&quot;none&quot;},easing:{valType:&quot;enumerated&quot;,dflt:&quot;cubic-in-out&quot;,values:[&quot;linear&quot;,&quot;quad&quot;,&quot;cubic&quot;,&quot;sin&quot;,&quot;exp&quot;,&quot;circle&quot;,&quot;elastic&quot;,&quot;back&quot;,&quot;bounce&quot;,&quot;linear-in&quot;,&quot;quad-in&quot;,&quot;cubic-in&quot;,&quot;sin-in&quot;,&quot;exp-in&quot;,&quot;circle-in&quot;,&quot;elastic-in&quot;,&quot;back-in&quot;,&quot;bounce-in&quot;,&quot;linear-out&quot;,&quot;quad-out&quot;,&quot;cubic-out&quot;,&quot;sin-out&quot;,&quot;exp-out&quot;,&quot;circle-out&quot;,&quot;elastic-out&quot;,&quot;back-out&quot;,&quot;bounce-out&quot;,&quot;linear-in-out&quot;,&quot;quad-in-out&quot;,&quot;cubic-in-out&quot;,&quot;sin-in-out&quot;,&quot;exp-in-out&quot;,&quot;circle-in-out&quot;,&quot;elastic-in-out&quot;,&quot;back-in-out&quot;,&quot;bounce-in-out&quot;],editType:&quot;none&quot;},ordering:{valType:&quot;enumerated&quot;,values:[&quot;layout first&quot;,&quot;traces first&quot;],dflt:&quot;layout first&quot;,editType:&quot;none&quot;}}}},{}],849:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;);e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||&quot;visible&quot;,c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a&lt;u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&amp;&amp;r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a&lt;d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(a=0;a&lt;g;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{&quot;../lib&quot;:803,&quot;../plot_api/plot_template&quot;:843}],850:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;../components/fx/attributes&quot;);e.exports={type:{valType:&quot;enumerated&quot;,values:[],dflt:&quot;scatter&quot;,editType:&quot;calc+clearAxisTypes&quot;,_noTemplating:!0},visible:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;legendonly&quot;],dflt:!0,editType:&quot;calc&quot;},showlegend:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;style&quot;},legendgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},legendgrouptitle:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},font:n({editType:&quot;style&quot;}),editType:&quot;style&quot;},legendrank:{valType:&quot;number&quot;,dflt:1e3,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;style&quot;},name:{valType:&quot;string&quot;,editType:&quot;style&quot;},uid:{valType:&quot;string&quot;,editType:&quot;plot&quot;,anim:!0},ids:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;,anim:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},selectedpoints:{valType:&quot;any&quot;,editType:&quot;calc&quot;},hoverinfo:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;],extras:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],arrayOk:!0,dflt:&quot;all&quot;,editType:&quot;none&quot;},hoverlabel:i.hoverlabel,stream:{token:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:&quot;calc&quot;},maxpoints:{valType:&quot;number&quot;,min:0,max:1e4,dflt:500,editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:{_isLinkedToArray:&quot;transform&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../components/fx/attributes&quot;:697,&quot;./font_attributes&quot;:883}],851:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=i.dateTime2ms,o=i.incrementMonth,s=t(&quot;../../constants/numerical&quot;).ONEAVGMONTH;e.exports=function(t,e,r,i){if(&quot;date&quot;!==e.type)return{vals:i};var l=t[r+&quot;periodalignment&quot;];if(!l)return{vals:i};var c,u=t[r+&quot;period&quot;];if(n(u)){if((u=+u)&lt;=0)return{vals:i}}else if(&quot;string&quot;==typeof u&amp;&amp;&quot;M&quot;===u.charAt(0)){var f=+u.substring(1);if(!(f&gt;0&amp;&amp;Math.round(f)===f))return{vals:i};c=f}for(var h=e.calendar,p=&quot;start&quot;===l,d=&quot;end&quot;===l,g=t[r+&quot;period0&quot;],m=a(g,h)||0,v=[],y=[],x=[],b=i.length,_=0;_&lt;b;_++){var w,T,k,A=i[_];if(c){for(w=Math.round((A-m)/(c*s)),k=o(m,c*w,h);k&gt;A;)k=o(k,-c,h);for(;k&lt;=A;)k=o(k,c,h);T=o(k,-c,h)}else{for(k=m+(w=Math.round((A-m)/u))*u;k&gt;A;)k-=u;for(;k&lt;=A;)k+=u;T=k-u}v[_]=p?T:d?k:(T+k)/2,y[_]=T,x[_]=k}return{vals:v,starts:y,ends:x}}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],852:[function(t,e,r){&quot;use strict&quot;;e.exports={xaxis:{valType:&quot;subplotid&quot;,dflt:&quot;x&quot;,editType:&quot;calc+clearAxisTypes&quot;},yaxis:{valType:&quot;subplotid&quot;,dflt:&quot;y&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],853:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../constants/numerical&quot;).FP_SAFE,s=t(&quot;../../registry&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;./axis_ids&quot;),u=c.getFromId,f=c.isLinked;function h(t,e){var r,n,i=[],o=t._fullLayout,s=d(o,e,0),l=d(o,e,1),c=g(t,e),u=c.min,f=c.max;if(0===u.length||0===f.length)return a.simpleMap(e.range,e.r2l);var h=u[0].val,m=f[0].val;for(r=1;r&lt;u.length&amp;&amp;h===m;r++)h=Math.min(h,u[r].val);for(r=1;r&lt;f.length&amp;&amp;h===m;r++)m=Math.max(m,f[r].val);var v=!1;if(e.range){var y=a.simpleMap(e.range,e.r2l);v=y[1]&lt;y[0]}&quot;reversed&quot;===e.autorange&amp;&amp;(v=!0,e.autorange=!0);var x,b,_,w,T,k,A=e.rangemode,M=&quot;tozero&quot;===A,S=&quot;nonnegative&quot;===A,E=e._length,L=E/10,C=0;for(r=0;r&lt;u.length;r++)for(x=u[r],n=0;n&lt;f.length;n++)(k=(b=f[n]).val-x.val-p(e,x.val,b.val))&gt;0&amp;&amp;((T=E-s(x)-l(b))&gt;L?k/T&gt;C&amp;&amp;(_=x,w=b,C=k/T):k/E&gt;C&amp;&amp;(_={val:x.val,nopad:1},w={val:b.val,nopad:1},C=k/E));if(h===m){var P=h-1,I=h+1;if(M)if(0===h)i=[0,1];else{var O=(h&gt;0?f:u).reduce((function(t,e){return Math.max(t,l(e))}),0),z=h/(1-Math.min(.5,O/E));i=h&gt;0?[0,z]:[z,0]}else i=S?[Math.max(0,P),Math.max(1,I)]:[P,I]}else M?(_.val&gt;=0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:0,nopad:1})):S&amp;&amp;(_.val-C*s(_)&lt;0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:1,nopad:1})),C=(w.val-_.val-p(e,x.val,b.val))/(E-s(_)-l(w)),i=[_.val-C*s(_),w.val+C*l(w)];return v&amp;&amp;i.reverse(),a.simpleMap(i,e.l2r||Number)}function p(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a&lt;i.length;a++){var o=i[a];n+=o.max-o.min}return n}function d(t,e,r){var i=.05*e._length,o=e._anchorAxis||{};if(-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)||-1!==(o.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)){var s=&quot;reversed&quot;===e.autorange;if(!s){var c=a.simpleMap(e.range,e.r2l);s=c[1]&lt;c[0]}s&amp;&amp;(r=!r)}var u=0;return f(t,e._id)||(u=function(t,e,r){var i=0,o=&quot;x&quot;===e._id.charAt(0);for(var s in t._plots){var c=t._plots[s];if(e._id===c.xaxis._id||e._id===c.yaxis._id){var u=(o?c.yaxis:c.xaxis)||{};if(-1!==(u.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(!r&amp;&amp;(&quot;left&quot;===u.side||&quot;bottom&quot;===u.side)||r&amp;&amp;(&quot;top&quot;===u.side||&quot;right&quot;===u.side))){if(u._vals){var f=a.deg2rad(u._tickAngles[u._id+&quot;tick&quot;]||0),h=Math.abs(Math.cos(f)),p=Math.abs(Math.sin(f));if(!u._vals[0].bb){var d=u._id+&quot;tick&quot;;u._selections[d].each((function(t){var e=n.select(this);e.select(&quot;.text-math-group&quot;).empty()&amp;&amp;(t.bb=l.bBox(e.node()))}))}for(var g=0;g&lt;u._vals.length;g++){var m=u._vals[g].bb;if(m){var v=6+m.width,y=6+m.height;i=Math.max(i,o?Math.max(v*h,y*p):Math.max(y*h,v*p))}}}&quot;inside&quot;===u.ticks&amp;&amp;&quot;inside&quot;===u.ticklabelposition&amp;&amp;(i+=u.ticklen||0)}}}return i}(t,e,r)),i=Math.max(u,i),&quot;domain&quot;===e.constrain&amp;&amp;e._inputDomain&amp;&amp;(i*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(t){return t.nopad?0:t.pad+(t.extrapad?i:u)}}e.exports={getAutoRange:h,makePadFn:d,doAutoRange:function(t,e,r){if(e.setScale(),e.autorange){e.range=r?r.slice():h(t,e),e._r=e.range.slice(),e._rl=a.simpleMap(e._r,e.r2l);var n=e._input,i={};i[e._attr+&quot;.range&quot;]=e.range,i[e._attr+&quot;.autorange&quot;]=e.autorange,s.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i),n.range=e.range.slice(),n.autorange=e.autorange}var o=e._anchorAxis;if(o&amp;&amp;o.rangeslider){var l=o.rangeslider[e._name];l&amp;&amp;&quot;auto&quot;===l.rangemode&amp;&amp;(l.range=h(t,e)),o._input.rangeslider[e._name]=a.extendFlat({},l)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var n,a,s,l,c,u,f,h,p,d=[],g=[],y=e.length,b=r.padded||!1,_=r.tozero&amp;&amp;(&quot;linear&quot;===t.type||&quot;-&quot;===t.type),w=&quot;log&quot;===t.type,T=!1,k=r.vpadLinearized||!1;function A(t){if(Array.isArray(t))return T=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var M=A((t._m&gt;0?r.ppadplus:r.ppadminus)||r.ppad||0),S=A((t._m&gt;0?r.ppadminus:r.ppadplus)||r.ppad||0),E=A(r.vpadplus||r.vpad),L=A(r.vpadminus||r.vpad);if(!T){if(h=1/0,p=-1/0,w)for(n=0;n&lt;y;n++)(a=e[n])&lt;h&amp;&amp;a&gt;0&amp;&amp;(h=a),a&gt;p&amp;&amp;a&lt;o&amp;&amp;(p=a);else for(n=0;n&lt;y;n++)(a=e[n])&lt;h&amp;&amp;a&gt;-o&amp;&amp;(h=a),a&gt;p&amp;&amp;a&lt;o&amp;&amp;(p=a);e=[h,p],y=2}var C={tozero:_,extrapad:b};function P(r){s=e[r],i(s)&amp;&amp;(u=M(r),f=S(r),k?(l=t.c2l(s)-L(r),c=t.c2l(s)+E(r)):(h=s-L(r),p=s+E(r),w&amp;&amp;h&lt;p/10&amp;&amp;(h=p/10),l=t.c2l(h),c=t.c2l(p)),_&amp;&amp;(l=Math.min(0,l),c=Math.max(0,c)),x(l)&amp;&amp;m(d,l,f,C),x(c)&amp;&amp;v(g,c,u,C))}var I=Math.min(6,y);for(n=0;n&lt;I;n++)P(n);for(n=y-1;n&gt;=I;n--)P(n);return{min:d,max:g,opts:r}},concatExtremes:g};function g(t,e,r){var n,i,a,o=e._id,s=t._fullData,l=t._fullLayout,c=[],f=[];function h(t,e){for(n=0;n&lt;e.length;n++){var r=t[e[n]],s=(r._extremes||{})[o];if(!0===r.visible&amp;&amp;s){for(i=0;i&lt;s.min.length;i++)a=s.min[i],m(c,a.val,a.pad,{extrapad:a.extrapad});for(i=0;i&lt;s.max.length;i++)a=s.max[i],v(f,a.val,a.pad,{extrapad:a.extrapad})}}}if(h(s,e._traceIndices),h(l.annotations||[],e._annIndices||[]),h(l.shapes||[],e._shapeIndices||[]),e._matchGroup&amp;&amp;!r)for(var p in e._matchGroup)if(p!==e._id){var d=u(t,p),y=g(t,d,!0),x=e._length/d._length;for(i=0;i&lt;y.min.length;i++)a=y.min[i],m(c,a.val,a.pad*x,{extrapad:a.extrapad});for(i=0;i&lt;y.max.length;i++)a=y.max[i],v(f,a.val,a.pad*x,{extrapad:a.extrapad})}return{min:c,max:f}}function m(t,e,r,n){y(t,e,r,n,b)}function v(t,e,r,n){y(t,e,r,n,_)}function y(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l&lt;t.length&amp;&amp;s;l++){var c=t[l];if(i(c.val,e)&amp;&amp;c.pad&gt;=r&amp;&amp;(c.extrapad||!o)){s=!1;break}i(e,c.val)&amp;&amp;c.pad&lt;=r&amp;&amp;(o||!c.extrapad)&amp;&amp;(t.splice(l,1),l--)}if(s){var u=a&amp;&amp;0===e;t.push({val:e,pad:u?0:r,extrapad:!u&amp;&amp;o})}}function x(t){return i(t)&amp;&amp;Math.abs(t)&lt;o}function b(t,e){return t&lt;=e}function _(t,e){return t&gt;=e}},{&quot;../../components/drawing&quot;:688,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./axis_ids&quot;:858,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],854:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/titles&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;./layout_attributes&quot;),d=t(&quot;./clean_ticks&quot;),g=t(&quot;../../constants/numerical&quot;),m=g.ONEMAXYEAR,v=g.ONEAVGYEAR,y=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,T=g.ONEAVGMONTH,k=g.ONEMINMONTH,A=g.ONEWEEK,M=g.ONEDAY,S=M/2,E=g.ONEHOUR,L=g.ONEMIN,C=g.ONESEC,P=g.MINUS_SIGN,I=g.BADNUM,O={K:&quot;zeroline&quot;},z={K:&quot;gridline&quot;,L:&quot;path&quot;},D={K:&quot;tick&quot;,L:&quot;path&quot;},R={K:&quot;tick&quot;,L:&quot;text&quot;},F=t(&quot;../../constants/alignment&quot;),B=F.MID_SHIFT,N=F.CAP_SHIFT,j=F.LINE_SPACING,U=F.OPPOSITE_SIDE,V=e.exports={};V.setConvert=t(&quot;./set_convert&quot;);var q=t(&quot;./axis_autotype&quot;),H=t(&quot;./axis_ids&quot;),G=H.idSort,Y=H.isLinked;V.id2name=H.id2name,V.name2id=H.name2id,V.cleanId=H.cleanId,V.list=H.list,V.listIds=H.listIds,V.getFromId=H.getFromId,V.getFromTrace=H.getFromTrace;var W=t(&quot;./autorange&quot;);V.getAutoRange=W.getAutoRange,V.findExtremes=W.findExtremes;function X(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}V.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+&quot;axis&quot;],c=n+&quot;ref&quot;,u={};return i||(i=l[0]||(&quot;string&quot;==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+&quot; domain&quot;}))),u[c]={valType:&quot;enumerated&quot;,values:l.concat(a?&quot;string&quot;==typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},V.getRefType=function(t){return void 0===t?t:&quot;paper&quot;===t?&quot;paper&quot;:&quot;pixel&quot;===t?&quot;pixel&quot;:/( domain)$/.test(t)?&quot;domain&quot;:&quot;range&quot;},V.coercePosition=function(t,e,r,n,i,a){var o,l;if(&quot;range&quot;!==V.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=V.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},V.cleanPosition=function(t,e,r){return(&quot;paper&quot;===r||&quot;pixel&quot;===r?s.ensureNumber:V.getFromId(e,r).cleanPos)(t)},V.redrawComponents=function(t,e){e=e||V.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u&lt;e.length;u++)for(var f=r[V.id2name(e[u])][a],h=0;h&lt;f.length;h++){var p=f[h];if(!c[p]&amp;&amp;(l(t,p),c[p]=1,s))return}}n(&quot;annotations&quot;,&quot;drawOne&quot;,&quot;_annIndices&quot;),n(&quot;shapes&quot;,&quot;drawOne&quot;,&quot;_shapeIndices&quot;),n(&quot;images&quot;,&quot;draw&quot;,&quot;_imgIndices&quot;,!0)};var Z=V.getDataConversions=function(t,e,r,n){var i,a=&quot;x&quot;===r||&quot;y&quot;===r||&quot;z&quot;===r?r:n;if(Array.isArray(a)){if(i={type:q(n,void 0,{autotypenumbers:t._fullLayout.autotypenumbers}),_categories:[]},V.setConvert(i),&quot;category&quot;===i.type)for(var o=0;o&lt;n.length;o++)i.d2c(n[o])}else i=V.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:&quot;ids&quot;===a?{d2c:K,c2d:K}:{d2c:J,c2d:J}};function J(t){return+t}function K(t){return String(t)}function Q(t){return+t.substring(1)}V.getDataToCoordFunc=function(t,e,r,n){return Z(t,e,r,n).d2c},V.counterLetter=function(t){var e=t.charAt(0);return&quot;x&quot;===e?&quot;y&quot;:&quot;y&quot;===e?&quot;x&quot;:void 0},V.minDtick=function(t,e,r,n){-1===[&quot;log&quot;,&quot;category&quot;,&quot;multicategory&quot;].indexOf(t.type)&amp;&amp;n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&amp;&amp;((t._minDtick/e+1e-6)%1&lt;2e-6&amp;&amp;((r-t._forceTick0)/e%1+1.000001)%1&lt;2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1&gt;2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1&gt;2e-6)&amp;&amp;(t._minDtick=0)):t._minDtick=0},V.saveRangeInitial=function(t,e){for(var r=V.list(t,&quot;&quot;,!0),n=!1,i=0;i&lt;r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&amp;&amp;a.range[1]===a._rangeInitial[1]);(o&amp;&amp;!1===a.autorange||e&amp;&amp;s)&amp;&amp;(a._rangeInitial=a.range.slice(),n=!0)}return n},V.saveShowSpikeInitial=function(t,e){for(var r=V.list(t,&quot;&quot;,!0),n=!1,i=&quot;on&quot;,a=0;a&lt;r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&amp;&amp;l)&amp;&amp;(o._showSpikeInitial=o.showspikes,n=!0),&quot;on&quot;!==i||o.showspikes||(i=&quot;off&quot;)}return t._fullLayout._cartesianSpikesEnabled=i,n},V.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(&quot;category&quot;===e.type||&quot;multicategory&quot;===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=&quot;log&quot;===e.type?{type:&quot;linear&quot;,range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},V.setConvert(l),o=o&amp;&amp;d.dtick(o,l.type))l.dtick=o,l.tick0=d.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),p=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=p*s.roundUp(h.minDiff/p,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}V.autoTicks(l,f)}var m,v=l.dtick,y=V.tickIncrement(V.tickFirst(l),v,&quot;reverse&quot;,a);if(&quot;number&quot;==typeof v)m=(y=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100&lt;2}for(var f=0;f&lt;e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&amp;&amp;o++,u(e[f]+r.dtick/2)&amp;&amp;s++;var h=e.length-c;if(l===h&amp;&amp;&quot;date&quot;!==r.type)r.dtick&lt;1?t=n-.5*r.dtick:(t-=.5)+r.dtick&lt;n&amp;&amp;(t+=r.dtick);else if(s&lt;.1*h&amp;&amp;(o&gt;.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p&lt;n?p:-p}return t}(y,t,l,c,u))+(1+Math.floor((u-y)/v))*v;else for(&quot;M&quot;===l.dtick.charAt(0)&amp;&amp;(y=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays&gt;.8){var o=Number(r.substr(1));a.exactYears&gt;.8&amp;&amp;o%12==0?t=V.tickIncrement(t,&quot;M6&quot;,&quot;reverse&quot;)+1.5*M:a.exactMonths&gt;.8?t=V.tickIncrement(t,&quot;M1&quot;,&quot;reverse&quot;)+15.5*M:t-=S;var l=V.tickIncrement(t,r);if(l&lt;=n)return l}return t}(y,t,v,c,a)),m=y,0;m&lt;=u;)m=V.tickIncrement(m,v,!1,a);return{start:e.c2r(y,0,a),end:e.c2r(m,0,a),size:v,_dataSpan:u-c}},V.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(t._dtickInit=t.dtick,t._tick0Init=t.tick0,&quot;auto&quot;===t.tickmode||!t.dtick){var n,a=t.nticks;a||(&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(n=t.tickfont?s.bigFont(t.tickfont.size||12):15,a=t._length/n):(n=&quot;y&quot;===t._id.charAt(0)?40:80,a=s.constrain(t._length/n,4,9)+1),&quot;radialaxis&quot;===t._name&amp;&amp;(a*=2)),&quot;array&quot;===t.tickmode&amp;&amp;(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,V.autoTicks(t,t._roughDTick),t._minDtick&gt;0&amp;&amp;t.dtick&lt;2*t._minDtick&amp;&amp;(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}&quot;period&quot;===t.ticklabelmode&amp;&amp;function(t){var e;function r(){return!(i(t.dtick)||&quot;M&quot;!==t.dtick.charAt(0))}var n=r(),a=V.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&amp;&amp;!n&amp;&amp;t.dtick&lt;E&amp;&amp;(t.dtick=E)):/%p/.test(a)?(e=S,o&amp;&amp;!n&amp;&amp;t.dtick&lt;S&amp;&amp;(t.dtick=S)):/%[Aadejuwx]/.test(a)?(e=M,o&amp;&amp;!n&amp;&amp;t.dtick&lt;M&amp;&amp;(t.dtick=M)):/%[UVW]/.test(a)?(e=A,o&amp;&amp;!n&amp;&amp;t.dtick&lt;A&amp;&amp;(t.dtick=A)):/%[Bbm]/.test(a)?(e=T,o&amp;&amp;(n?Q(t.dtick)&lt;1:t.dtick&lt;k)&amp;&amp;(t.dtick=&quot;M1&quot;)):/%[q]/.test(a)?(e=b,o&amp;&amp;(n?Q(t.dtick)&lt;3:t.dtick&lt;_)&amp;&amp;(t.dtick=&quot;M3&quot;)):/%[Yy]/.test(a)&amp;&amp;(e=v,o&amp;&amp;(n?Q(t.dtick)&lt;12:t.dtick&lt;y)&amp;&amp;(t.dtick=&quot;M12&quot;)))}(n=r())&amp;&amp;t.tick0===t._dowTick0&amp;&amp;(t.tick0=t._rawTick0);t._definedDelta=e}(t),t.tick0||(t.tick0=&quot;date&quot;===t.type?&quot;2000-01-01&quot;:0),&quot;date&quot;===t.type&amp;&amp;t.dtick&lt;.1&amp;&amp;(t.dtick=.1),st(t)},V.calcTicks=function(t,e){V.prepTicks(t,e);var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(&quot;array&quot;===t.tickmode)return function(t){var e=t.tickvals,r=t.ticktext,n=new Array(e.length),i=X(s.simpleMap(t.range,t.r2l)),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]),l=0;Array.isArray(r)||(r=[]);var c=&quot;category&quot;===t.type?t.d2l_noadd:t.d2l;&quot;log&quot;===t.type&amp;&amp;&quot;L&quot;!==String(t.dtick).charAt(0)&amp;&amp;(t.dtick=&quot;L&quot;+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var u=0;u&lt;e.length;u++){var f=c(e[u]);f&gt;a&amp;&amp;f&lt;o&amp;&amp;(void 0===r[u]?n[l]=V.tickText(t,f):n[l]=lt(t,f,String(r[u])),l++)}l&lt;e.length&amp;&amp;n.splice(l,e.length-l);t.rangebreaks&amp;&amp;(n=n.filter((function(e){return t.maskBreaks(e.x)!==I})));return n}(t);var n=X(r),a=n[0],o=n[1],l=r[1]&lt;r[0],c=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]),f=&quot;log&quot;===t.type&amp;&amp;!(i(t.dtick)||&quot;L&quot;===t.dtick.charAt(0)),h=&quot;period&quot;===t.ticklabelmode;if(t._tmin=V.tickFirst(t,e),t._tmin&lt;a!==l)return[];&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(o=l?Math.max(-.5,o):Math.min(t._categories.length-.5,o));var p=t._tmin;t.rangebreaks&amp;&amp;t._tick0Init!==t.tick0&amp;&amp;(p=Mt(p,t),l||(p=V.tickIncrement(p,t.dtick,!l,t.calendar))),h&amp;&amp;(p=V.tickIncrement(p,t.dtick,!l,t.calendar));for(var d,g=Math.max(1e3,t._length||0),L=[],C=null;l?p&gt;=o:p&lt;=o;p=V.tickIncrement(p,t.dtick,l,t.calendar)){if(t.rangebreaks&amp;&amp;!l){if(p&lt;a)continue;if(t.maskBreaks(p)===I&amp;&amp;Mt(p,t)&gt;=u)break}if(L.length&gt;g||p===C)break;C=p;var P=!1;f&amp;&amp;p!==(0|p)&amp;&amp;(P=!0),L.push({minor:P,value:p})}if(h&amp;&amp;function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n].value,a=n,o=n+1;n&lt;t.length-1?(a=n,o=n+1):n&gt;0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,h=0;f&gt;=y?h=u&gt;=y&amp;&amp;u&lt;=m?u:v:r===b&amp;&amp;f&gt;=_?h=u&gt;=_&amp;&amp;u&lt;=x?u:b:f&gt;=k?h=u&gt;=k&amp;&amp;u&lt;=w?u:T:r===A&amp;&amp;f&gt;=A?h=A:f&gt;=M?h=M:r===S&amp;&amp;f&gt;=S?h=S:r===E&amp;&amp;f&gt;=E&amp;&amp;(h=E),h&gt;=u&amp;&amp;(h=u,s=!0);var p=i+h;if(e.rangebreaks&amp;&amp;h&gt;0){for(var d=0,g=0;g&lt;84;g++){var L=(g+.5)/84;e.maskBreaks(i*(1-L)+L*p)!==I&amp;&amp;d++}(h*=d/84)||(t[n].drop=!0),s&amp;&amp;u&gt;A&amp;&amp;(h=u)}(h&gt;0||0===n)&amp;&amp;(t[n].periodX=i+h/2)}}(L,t,t._definedDelta),t.rangebreaks){var O=&quot;y&quot;===t._id.charAt(0),z=1;&quot;auto&quot;===t.tickmode&amp;&amp;(z=t.tickfont?t.tickfont.size:12);var D=NaN;for(d=L.length-1;d&gt;-1;d--)if(L[d].drop)L.splice(d,1);else{L[d].value=Mt(L[d].value,t);var R=t.c2p(L[d].value);(O?D&gt;R-z:D&lt;R+z)?L.splice(l?d+1:d,1):D=R}}At(t)&amp;&amp;360===Math.abs(r[1]-r[0])&amp;&amp;L.pop(),t._tmax=(L[L.length-1]||{}).value,t._prevDateHead=&quot;&quot;,t._inCalcTicks=!0;var F,B,N=[];for(d=0;d&lt;L.length;d++){var j=L[d].minor,U=L[d].value;F=V.tickText(t,U,!1,j),void 0!==(B=L[d].periodX)&amp;&amp;(F.periodX=B,(B&gt;u||B&lt;c)&amp;&amp;(B&gt;u&amp;&amp;(F.periodX=u),B&lt;c&amp;&amp;(F.periodX=c),F.text=&quot; &quot;,t._prevDateHead=&quot;&quot;)),N.push(F)}return t._inCalcTicks=!1,N};var $=[2,5,10],tt=[1,2,3,6,12],et=[1,2,5,10,15,30],rt=[1,2,3,7,14],nt=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],it=[-.301,0,.301,.699,1],at=[15,30,45,90,180];function ot(t,e,r){return e*s.roundUp(t/e,r)}function st(t){var e=t.dtick;if(t._tickexponent=0,i(e)||&quot;string&quot;==typeof e||(e=1),&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(t._tickround=null),&quot;date&quot;===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,&quot;&quot;),a=n.length;if(&quot;M&quot;===String(e).charAt(0))a&gt;10||&quot;01-01&quot;!==n.substr(5)?t._tickround=&quot;d&quot;:t._tickround=+e.substr(1)%12==0?&quot;y&quot;:&quot;m&quot;;else if(e&gt;=M&amp;&amp;a&lt;=10||e&gt;=15*M)t._tickround=&quot;d&quot;;else if(e&gt;=L&amp;&amp;a&lt;=16||e&gt;=E)t._tickround=&quot;M&quot;;else if(e&gt;=C&amp;&amp;a&lt;=19||e&gt;=L)t._tickround=&quot;S&quot;;else{var o=t.l2r(r+e).replace(/^-/,&quot;&quot;).length;t._tickround=Math.max(a,o)-20,t._tickround&lt;0&amp;&amp;(t._tickround=4)}}else if(i(e)||&quot;L&quot;===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)&gt;u&amp;&amp;(ut(t.exponentformat)&amp;&amp;!ft(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function lt(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||&quot;&quot;,fontSize:n.size,font:n.family,fontColor:n.color}}V.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(&quot;date&quot;===t.type){t.tick0=s.dateTick0(t.calendar,0);var a=2*e;if(a&gt;v)e/=v,r=n(10),t.dtick=&quot;M&quot;+12*ot(e,r,$);else if(a&gt;T)e/=T,t.dtick=&quot;M&quot;+ot(e,1,tt);else if(a&gt;M){t.dtick=ot(e,M,t._hasDayOfWeekBreaks?[1,2,7,14]:rt);var o=V.getTickFormat(t),l=&quot;period&quot;===t.ticklabelmode;l&amp;&amp;(t._rawTick0=t.tick0),/%[uVW]/.test(o)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),l&amp;&amp;(t._dowTick0=t.tick0)}else a&gt;E?t.dtick=ot(e,E,tt):a&gt;L?t.dtick=ot(e,L,et):a&gt;C?t.dtick=ot(e,C,et):(r=n(10),t.dtick=ot(e,r,$))}else if(&quot;log&quot;===t.type){t.tick0=0;var c=s.simpleMap(t.range,t.r2l);if(e&gt;.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])&lt;1){var u=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),t.dtick=&quot;L&quot;+ot(e,r,$)}else t.dtick=e&gt;.3?&quot;D2&quot;:&quot;D1&quot;}else&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):At(t)?(t.tick0=0,r=1,t.dtick=ot(e,r,at)):(t.tick0=0,r=n(10),t.dtick=ot(e,r,$));if(0===t.dtick&amp;&amp;(t.dtick=1),!i(t.dtick)&amp;&amp;&quot;string&quot;!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,&quot;ax.dtick error: &quot;+String(f)}},V.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if(&quot;M&quot;===l)return s.incrementMonth(t,c,a);if(&quot;L&quot;===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(&quot;D&quot;===l){var u=&quot;D2&quot;===e?it:nt,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(e)},V.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1]&lt;a[0],l=o?Math.floor:Math.ceil,c=X(a)[0],u=t.dtick,f=r(t.tick0);if(i(u)){var h=l((c-f)/u)*u+f;return&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(h=s.constrain(h,0,t._categories.length-1)),h}var p=u.charAt(0),d=Number(u.substr(1));if(&quot;M&quot;===p){for(var g,m,v,y=0,x=f;y&lt;10;){if(((g=V.tickIncrement(x,u,o,t.calendar))-c)*(x-c)&lt;=0)return o?Math.min(x,g):Math.max(x,g);m=(c-(x+g)/2)/(g-x),v=p+(Math.abs(Math.round(m))||1)*d,x=V.tickIncrement(x,v,m&lt;0?!o:o,t.calendar),y++}return s.error(&quot;tickFirst did not converge&quot;,t),x}if(&quot;L&quot;===p)return Math.log(l((Math.pow(10,c)-f)/d)*d+f)/Math.LN10;if(&quot;D&quot;===p){var b=&quot;D2&quot;===u?it:nt,_=s.roundUp(s.mod(c,1),b,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(u)},V.tickText=function(t,e,r,n){var a,o=lt(t,e),l=&quot;array&quot;===t.tickmode,c=r||l,u=t.type,f=&quot;category&quot;===u?t.d2l_noadd:t.d2l;if(l&amp;&amp;Array.isArray(t.ticktext)){var h=s.simpleMap(t.range,t.r2l),p=(Math.abs(h[1]-h[0])-(t._lBreaks||0))/1e4;for(a=0;a&lt;t.ticktext.length&amp;&amp;!(Math.abs(e-f(t.tickvals[a]))&lt;p);a++);if(a&lt;t.ticktext.length)return o.text=String(t.ticktext[a]),o}function d(n){if(void 0===n)return!0;if(r)return&quot;none&quot;===n;var i={first:t._tmin,last:t._tmax}[n];return&quot;all&quot;!==n&amp;&amp;e!==i}var g=r?&quot;never&quot;:&quot;none&quot;!==t.exponentformat&amp;&amp;d(t.showexponent)?&quot;hide&quot;:&quot;&quot;;if(&quot;date&quot;===u?function(t,e,r,n){var a=t._tickround,o=r&amp;&amp;t.hoverformat||V.getTickFormat(t);n&amp;&amp;(a=i(a)?4:{y:&quot;m&quot;,m:&quot;d&quot;,d:&quot;M&quot;,M:&quot;S&quot;,S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(&quot;\n&quot;);-1!==u&amp;&amp;(l=c.substr(u+1),c=c.substr(0,u));n&amp;&amp;(&quot;00:00:00&quot;===c||&quot;00:00&quot;===c?(c=l,l=&quot;&quot;):8===c.length&amp;&amp;(c=c.replace(/:00$/,&quot;&quot;)));if(l)if(r)&quot;d&quot;===a?c+=&quot;, &quot;+l:c=l+(c?&quot;, &quot;+c:&quot;&quot;);else if(t._inCalcTicks&amp;&amp;t._prevDateHead===l){var f=St(t),h=t._realSide||t.side;(!f&amp;&amp;&quot;top&quot;===h||f&amp;&amp;&quot;bottom&quot;===h)&amp;&amp;(c+=&quot;&lt;br&gt; &quot;)}else t._prevDateHead=l,c+=&quot;&lt;br&gt;&quot;+l;e.text=c}(t,o,r,c):&quot;log&quot;===u?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=&quot;string&quot;==typeof o&amp;&amp;o.charAt(0);&quot;never&quot;===a&amp;&amp;(a=&quot;&quot;);n&amp;&amp;&quot;L&quot;!==u&amp;&amp;(o=&quot;L3&quot;,u=&quot;L&quot;);if(c||&quot;L&quot;===u)e.text=ht(Math.pow(10,l),t,a,n);else if(i(o)||&quot;D&quot;===u&amp;&amp;s.mod(l+.01,1)&lt;.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;&quot;power&quot;===p||ut(p)&amp;&amp;ft(f)?(e.text=0===f?1:1===f?&quot;10&quot;:&quot;10&lt;sup&gt;&quot;+(f&gt;1?&quot;&quot;:P)+h+&quot;&lt;/sup&gt;&quot;,e.fontSize*=1.25):(&quot;e&quot;===p||&quot;E&quot;===p)&amp;&amp;h&gt;2?e.text=&quot;1&quot;+p+(f&gt;0?&quot;+&quot;:P)+h:(e.text=ht(Math.pow(10,l),t,&quot;&quot;,&quot;fakehover&quot;),&quot;D1&quot;===o&amp;&amp;&quot;y&quot;===t._id.charAt(0)&amp;&amp;(e.dy-=e.fontSize/6))}else{if(&quot;D&quot;!==u)throw&quot;unrecognized dtick &quot;+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(&quot;D1&quot;===t.dtick){var d=String(e.text).charAt(0);&quot;0&quot;!==d&amp;&amp;&quot;1&quot;!==d||(&quot;y&quot;===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]&gt;t.range[0]?1:-1)*e.fontSize*(l&lt;0?.5:.25)))}}(t,o,0,c,g):&quot;category&quot;===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&amp;&amp;(r=&quot;&quot;);e.text=String(r)}(t,o):&quot;multicategory&quot;===u?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?&quot;&quot;:String(i[1]),o=void 0===i[0]?&quot;&quot;:String(i[0]);r?e.text=o+&quot; - &quot;+a:(e.text=a,e.text2=o)}(t,o,r):At(t)?function(t,e,r,n,i){if(&quot;radians&quot;!==t.thetaunit||r)e.text=ht(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=&quot;0&quot;;else{var o=function(t){function e(t,e){return Math.abs(t-e)&lt;=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]&gt;=100)e.text=ht(s.deg2rad(e.x),t,i,n);else{var l=e.x&lt;0;1===o[1]?1===o[0]?e.text=&quot;\u03c0&quot;:e.text=o[0]+&quot;\u03c0&quot;:e.text=[&quot;&lt;sup&gt;&quot;,o[0],&quot;&lt;/sup&gt;&quot;,&quot;\u2044&quot;,&quot;&lt;sub&gt;&quot;,o[1],&quot;&lt;/sub&gt;&quot;,&quot;\u03c0&quot;].join(&quot;&quot;),l&amp;&amp;(e.text=P+e.text)}}}}(t,o,r,c,g):function(t,e,r,n,i){&quot;never&quot;===i?i=&quot;&quot;:&quot;all&quot;===t.showexponent&amp;&amp;Math.abs(e.x/t.dtick)&lt;1e-6&amp;&amp;(i=&quot;hide&quot;);e.text=ht(e.x,t,i,n)}(t,o,0,c,g),n||(t.tickprefix&amp;&amp;!d(t.showtickprefix)&amp;&amp;(o.text=t.tickprefix+o.text),t.ticksuffix&amp;&amp;!d(t.showticksuffix)&amp;&amp;(o.text+=t.ticksuffix)),&quot;boundaries&quot;===t.tickson||t.showdividers){var m=function(e){var r=t.l2p(e);return r&gt;=0&amp;&amp;r&lt;=t._length?e:null};o.xbnd=[m(o.x-.5),m(o.x+t.dtick-.5)]}return o},V.hoverLabelText=function(t,e,r){r&amp;&amp;(t=s.extendFlat({},t,{hoverformat:r}));var n=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;if(void 0!==i&amp;&amp;i!==n)return V.hoverLabelText(t,n,r)+&quot; - &quot;+V.hoverLabelText(t,i,r);var a=&quot;log&quot;===t.type&amp;&amp;n&lt;=0,o=V.tickText(t,t.c2l(a?-n:n),&quot;hover&quot;).text;return a?0===n?&quot;0&quot;:P+o:o};var ct=[&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\u03bc&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;];function ut(t){return&quot;SI&quot;===t||&quot;B&quot;===t}function ft(t){return t&gt;14||t&lt;-15}function ht(t,e,r,n){var a=t&lt;0,o=e._tickround,l=r||e.exponentformat||&quot;B&quot;,c=e._tickexponent,u=V.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:&quot;none&quot;===e.showexponent?e.dtick:i(t)&amp;&amp;Math.abs(t)||1,range:&quot;none&quot;===e.showexponent?e.range.map(e.r2d):[0,t||1]};st(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&amp;&amp;(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,P);var p,d=Math.pow(10,-o)/2;if(&quot;none&quot;===l&amp;&amp;(c=0),(t=Math.abs(t))&lt;d)t=&quot;0&quot;,a=!1;else{if(t+=d,c&amp;&amp;(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o&lt;0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var g=o;g&lt;0;g++)t+=&quot;0&quot;}else{var m=(t=String(t)).indexOf(&quot;.&quot;)+1;m&amp;&amp;(t=t.substr(0,m+o).replace(/\.?0+$/,&quot;&quot;))}t=s.numSeparate(t,e._separators,f)}c&amp;&amp;&quot;hide&quot;!==l&amp;&amp;(ut(l)&amp;&amp;ft(c)&amp;&amp;(l=&quot;power&quot;),p=c&lt;0?P+-c:&quot;power&quot;!==l?&quot;+&quot;+c:String(c),&quot;e&quot;===l||&quot;E&quot;===l?t+=l+p:&quot;power&quot;===l?t+=&quot;\xd710&lt;sup&gt;&quot;+p+&quot;&lt;/sup&gt;&quot;:&quot;B&quot;===l&amp;&amp;9===c?t+=&quot;B&quot;:ut(l)&amp;&amp;(t+=ct[c/3+5]));return a?P+t:t}function pt(t,e){for(var r=[],n={},i=0;i&lt;e.length;i++){var a=e[i];n[a.text2]?n[a.text2].push(a.x):n[a.text2]=[a.x]}for(var o in n)r.push(lt(t,s.interp(n[o],.5),o));return r}function dt(t){return void 0!==t.periodX?t.periodX:t.x}function gt(t){return[t.text,t.x,t.axInfo,t.font,t.fontSize,t.fontColor].join(&quot;_&quot;)}function mt(t){var e=t.title.font.size,r=(t.title.text.match(c.BR_TAG_ALL)||[]).length;return t.title.hasOwnProperty(&quot;standoff&quot;)?r?e*(N+r*j):e*N:r?e*(r+1)*j:e}function vt(t,e){var r=t.l2p(e);return r&gt;1&amp;&amp;r&lt;t._length-1}function yt(t){var e=n.select(t),r=e.select(&quot;.text-math-group&quot;);return r.empty()?e.select(&quot;text&quot;):r}function xt(t){return t._id+&quot;.automargin&quot;}function bt(t){return xt(t)+&quot;.mirror&quot;}function _t(t){return t._id+&quot;.rangeslider&quot;}function wt(t,e){for(var r=0;r&lt;e.length;r++)-1===t.indexOf(e[r])&amp;&amp;t.push(e[r])}function Tt(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n&lt;e.length;n++)a.push(V.getFromId(t,e[n]));for(n=0;n&lt;r.length;n++)o.push(V.getFromId(t,r[n]));var c=Object.keys(p),u=[&quot;anchor&quot;,&quot;domain&quot;,&quot;overlaying&quot;,&quot;position&quot;,&quot;side&quot;,&quot;tickangle&quot;,&quot;editType&quot;],f=[&quot;linear&quot;,&quot;log&quot;];for(n=0;n&lt;c.length;n++){var h=c[n],d=a[0][h],g=o[0][h],m=!0,v=!1,y=!1;if(&quot;_&quot;!==h.charAt(0)&amp;&amp;&quot;function&quot;!=typeof d&amp;&amp;-1===u.indexOf(h)){for(i=1;i&lt;a.length&amp;&amp;m;i++){var x=a[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(d)&amp;&amp;-1!==f.indexOf(x)&amp;&amp;d!==x?v=!0:x!==d&amp;&amp;(m=!1)}for(i=1;i&lt;o.length&amp;&amp;m;i++){var b=o[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(g)&amp;&amp;-1!==f.indexOf(b)&amp;&amp;g!==b?y=!0:o[i][h]!==g&amp;&amp;(m=!1)}m&amp;&amp;(v&amp;&amp;(l[a[0]._name].type=&quot;linear&quot;),y&amp;&amp;(l[o[0]._name].type=&quot;linear&quot;),kt(l,h,a,o,t._fullLayout._dfltTitle))}}for(n=0;n&lt;t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&amp;&amp;-1!==r.indexOf(_.yref)&amp;&amp;s.swapAttrs(l.annotations[n],[&quot;?&quot;])}}function kt(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(&quot;title&quot;===e&amp;&amp;(l&amp;&amp;l.text===i.x&amp;&amp;(l.text=i.y),c&amp;&amp;c.text===i.y&amp;&amp;(c.text=i.x)),a=0;a&lt;r.length;a++)o(t,r[a]._name+&quot;.&quot;+e).set(c);for(a=0;a&lt;n.length;a++)o(t,n[a]._name+&quot;.&quot;+e).set(l)}function At(t){return&quot;angularaxis&quot;===t._id}function Mt(t,e){for(var r=e._rangebreaks.length,n=0;n&lt;r;n++){var i=e._rangebreaks[n];if(t&gt;=i.min&amp;&amp;t&lt;i.max)return i.max}return t}function St(t){return-1!==(t.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)}function Et(t,e){St(t._anchorAxis||{})&amp;&amp;t._hideCounterAxisInsideTickLabels&amp;&amp;t._hideCounterAxisInsideTickLabels(e)}V.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return&quot;string&quot;!=typeof t?t:Number(t.replace(&quot;M&quot;,&quot;&quot;))*T}function u(t,e){var r=[&quot;L&quot;,&quot;D&quot;];if(typeof t==typeof e){if(&quot;number&quot;==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,&quot;&quot;))-Number(e.replace(/(L|D)/g,&quot;&quot;)):n-i}return&quot;number&quot;==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])&gt;=0,a=u(t,e[1])&lt;=0;return(r||i)&amp;&amp;(n||a)}if(t.tickformatstops&amp;&amp;t.tickformatstops.length&gt;0)switch(t.type){case&quot;date&quot;:case&quot;linear&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;(i=t.dtick,a=n.dtickrange,o=void 0,s=void 0,l=void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&amp;&amp;&quot;number&quot;!=typeof s||o(s)&lt;=o(i))&amp;&amp;(!l&amp;&amp;&quot;number&quot;!=typeof l||o(l)&gt;=o(i)))){r=n;break}break;case&quot;log&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},V.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?V.findSubplotsWithAxis(n,e):n;return i.sort((function(t,e){var r=t.substr(1).split(&quot;y&quot;),n=e.substr(1).split(&quot;y&quot;);return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),i},V.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(&quot;x&quot;===e._id.charAt(0)?&quot;^&quot;+e._id+&quot;y&quot;:e._id+&quot;$&quot;),n=[],i=0;i&lt;t.length;i++){var a=t[i];r.test(a)&amp;&amp;n.push(a)}return n},V.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:&quot;&quot;},o={_offset:0,_length:e.height,_id:&quot;&quot;},s=V.list(t,&quot;x&quot;,!0),l=V.list(t,&quot;y&quot;,!0),c=[];for(r=0;r&lt;s.length;r++)for(c.push({x:s[r],y:o}),i=0;i&lt;l.length;i++)0===r&amp;&amp;c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(&quot;.axesclip&quot;).data(c,(function(t){return t.x._id+t.y._id}));u.enter().append(&quot;clipPath&quot;).classed(&quot;axesclip&quot;,!0).attr(&quot;id&quot;,(function(t){return&quot;clip&quot;+e._uid+t.x._id+t.y._id})).append(&quot;rect&quot;),u.exit().remove(),u.each((function(t){n.select(this).select(&quot;rect&quot;).attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})}))}},V.draw=function(t,e,r){var n=t._fullLayout;&quot;redraw&quot;===e&amp;&amp;n._paper.selectAll(&quot;g.subplot&quot;).each((function(t){var e=t[0],r=n._plots[e];if(r){var i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick2&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick2&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;divider&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;divider&quot;).remove(),r.gridlayer&amp;&amp;r.gridlayer.selectAll(&quot;path&quot;).remove(),r.zerolinelayer&amp;&amp;r.zerolinelayer.selectAll(&quot;path&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+i._id+&quot;title&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+a._id+&quot;title&quot;).remove()}}));var i=e&amp;&amp;&quot;redraw&quot;!==e?e:V.listIds(t);return s.syncOrAsync(i.map((function(e){return function(){if(e){var n=V.getFromId(t,e),i=V.drawOne(t,n,r);return n._r=n.range.slice(),n._rl=s.simpleMap(n._r,n.r2l),i}}})))},V.drawOne=function(t,e,r){var n,i,l;r=r||{},e.setScale();var c=t._fullLayout,p=e._id,d=p.charAt(0),g=V.counterLetter(p),m=c._plots[e._mainSubplot];if(m){var v=m[d+&quot;axislayer&quot;],y=e._mainLinePosition,x=e._mainMirrorPosition,b=e._vals=V.calcTicks(e),_=[e.mirror,y,x].join(&quot;_&quot;);for(n=0;n&lt;b.length;n++)b[n].axInfo=_;e._selections={},e._tickAngles&amp;&amp;(e._prevTickAngles=e._tickAngles),e._tickAngles={},e._depth=null;var w={};if(e.visible){var T,k,A=V.makeTransTickFn(e),M=V.makeTransTickLabelFn(e),S=&quot;inside&quot;===e.ticks,E=&quot;outside&quot;===e.ticks;if(&quot;boundaries&quot;===e.tickson){var L=function(t,e){var r,n=[],i=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;n.push(s.extendFlat({},t,{x:r}))};if(e.length){for(r=0;r&lt;e.length;r++)i(e[r],0);i(e[r-1],1)}return n}(0,b);k=V.clipEnds(e,L),T=S?k:L}else k=V.clipEnds(e,b),T=S&amp;&amp;&quot;period&quot;!==e.ticklabelmode?k:b;var C=e._gridVals=k,P=function(t,e){var r,n,i=[],a=e.length&amp;&amp;e[e.length-1].x&lt;e[0].x,o=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;i.push(s.extendFlat({},t,{x:r}))};if(t.showdividers&amp;&amp;e.length){for(r=0;r&lt;e.length;r++){var l=e[r];l.text2!==n&amp;&amp;o(l,a?1:0),n=l.text2}o(e[r-1],a?0:1)}return i}(e,b);if(!c._hasOnlyLargeSploms){var I=e._subplotsWith,O={};for(n=0;n&lt;I.length;n++){i=I[n];var z=(l=c._plots[i])[g+&quot;axis&quot;],D=z._mainAxis._id;if(!O[D]){O[D]=1;var R=&quot;x&quot;===d?&quot;M0,&quot;+z._offset+&quot;v&quot;+z._length:&quot;M&quot;+z._offset+&quot;,0h&quot;+z._length;V.drawGrid(t,e,{vals:C,counterAxis:z,layer:l.gridlayer.select(&quot;.&quot;+p),path:R,transFn:A}),V.drawZeroLine(t,e,{counterAxis:z,layer:l.zerolinelayer,path:R,transFn:A})}}}var F=V.getTickSigns(e),B=[];if(e.ticks){var N,q,H,G=V.makeTickPath(e,y,F[2]);if(e._anchorAxis&amp;&amp;e.mirror&amp;&amp;!0!==e.mirror?(N=V.makeTickPath(e,x,F[3]),q=G+N):(N=&quot;&quot;,q=G),e.showdividers&amp;&amp;E&amp;&amp;&quot;boundaries&quot;===e.tickson){var Y={};for(n=0;n&lt;P.length;n++)Y[P[n].x]=1;H=function(t){return Y[t.x]?N:q}}else H=q;V.drawTicks(t,e,{vals:T,layer:v,path:H,transFn:A}),&quot;allticks&quot;===e.mirror&amp;&amp;(B=Object.keys(e._linepositions||{}))}for(n=0;n&lt;B.length;n++){i=B[n],l=c._plots[i];var W=e._linepositions[i]||[],X=V.makeTickPath(e,W[0],F[0])+V.makeTickPath(e,W[1],F[1]);V.drawTicks(t,e,{vals:T,layer:l[d+&quot;axislayer&quot;],path:X,transFn:A})}var Z=[];if(Z.push((function(){return V.drawLabels(t,e,{vals:b,layer:v,plotinfo:l,transFn:M,labelFns:V.makeLabelFns(e,y)})})),&quot;multicategory&quot;===e.type){var J={x:2,y:10}[d];Z.push((function(){var r={x:&quot;height&quot;,y:&quot;width&quot;}[d],n=Q()[r]+J+(e._tickAngles[p+&quot;tick&quot;]?e.tickfont.size*j:0);return V.drawLabels(t,e,{vals:pt(e,b),layer:v,cls:p+&quot;tick2&quot;,repositionOnUpdate:!0,secondary:!0,transFn:A,labelFns:V.makeLabelFns(e,y+n*F[4])})})),Z.push((function(){return e._depth=F[4]*(Q(&quot;tick2&quot;)[e.side]-y),function(t,e,r){var n=e._id+&quot;divider&quot;,i=r.vals,a=r.layer.selectAll(&quot;path.&quot;+n).data(i,gt);a.exit().remove(),a.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(n,1).classed(&quot;crisp&quot;,1).call(f.stroke,e.dividercolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.dividerwidth,1)+&quot;px&quot;),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path)}(t,e,{vals:P,layer:v,path:V.makeTickPath(e,y,F[4],e._depth),transFn:A})}))}else e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;Z.push((function(){e._depth=F[4]*(Q()[e.side]-y)}));var K=o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(e);return Z.push((function(){var r,n,i,s,l=e.side.charAt(0),u=U[e.side].charAt(0),f=V.getPxPosition(t,e),h=E?e.ticklen:0;if((e.automargin||K)&amp;&amp;(&quot;multicategory&quot;===e.type?r=Q(&quot;tick2&quot;):(r=Q(),&quot;x&quot;===d&amp;&amp;&quot;b&quot;===l&amp;&amp;(e._depth=Math.max(r.width&gt;0?r.bottom-f:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if(&quot;x&quot;===d){if(&quot;b&quot;===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width&gt;0?f-r.top:0,h),p.reverse()),r.width&gt;0){var m=r.right-(e._offset+e._length);m&gt;0&amp;&amp;(n.xr=1,n.r=m);var v=e._offset-r.left;v&gt;0&amp;&amp;(n.xl=0,n.l=v)}}else if(&quot;l&quot;===l?n[l]=e._depth=Math.max(r.height&gt;0?f-r.left:0,h):(n[l]=e._depth=Math.max(r.height&gt;0?r.right-f:0,h),p.reverse()),r.height&gt;0){var y=r.bottom-(e._offset+e._length);y&gt;0&amp;&amp;(n.yb=0,n.b=y);var x=e._offset-r.top;x&gt;0&amp;&amp;(n.yt=1,n.t=x)}n[g]=&quot;free&quot;===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==c._dfltTitle[d]&amp;&amp;(n[l]+=mt(e)+(e.title.standoff||0)),e.mirror&amp;&amp;&quot;free&quot;!==e.anchor&amp;&amp;((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&amp;&amp;!0!==e.mirror&amp;&amp;(i[u]+=h),!0===e.mirror||&quot;ticks&quot;===e.mirror?i[g]=e._anchorAxis.domain[p[1]]:&quot;all&quot;!==e.mirror&amp;&amp;&quot;allticks&quot;!==e.mirror||(i[g]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}K&amp;&amp;(s=o.getComponentMethod(&quot;rangeslider&quot;,&quot;autoMarginOpts&quot;)(t,e)),a.autoMargin(t,xt(e),n),a.autoMargin(t,bt(e),i),a.autoMargin(t,_t(e),s)})),r.skipTitle||K&amp;&amp;&quot;bottom&quot;===e.side||Z.push((function(){return function(t,e){var r,n=t._fullLayout,i=e._id,a=i.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty(&quot;standoff&quot;))r=e._depth+e.title.standoff+mt(e);else{var s=St(e);if(&quot;multicategory&quot;===e.type)r=e._depth;else{var l=1.5*o;s&amp;&amp;(l=.5*o,&quot;outside&quot;===e.ticks&amp;&amp;(l+=e.ticklen)),r=10+l+(e.linewidth?e.linewidth-1:0)}s||(r+=&quot;x&quot;===a?&quot;top&quot;===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):&quot;right&quot;===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0))}var c,f,p,d,g=V.getPxPosition(t,e);&quot;x&quot;===a?(f=e._offset+e._length/2,p=&quot;top&quot;===e.side?g-r:g+r):(p=e._offset+e._length/2,f=&quot;right&quot;===e.side?g+r:g-r,c={rotate:&quot;-90&quot;,offset:0});if(&quot;multicategory&quot;!==e.type){var m=e._selections[e._id+&quot;tick&quot;];if(d={selection:m,side:e.side},m&amp;&amp;m.node()&amp;&amp;m.node().parentNode){var v=h.getTranslate(m.node().parentNode);d.offsetLeft=v.x,d.offsetTop=v.y}e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;(d.pad=0)}return u.draw(t,i+&quot;title&quot;,{propContainer:e,propName:e._name+&quot;.title.text&quot;,placeholder:n._dfltTitle[a],avoid:d,transform:c,attributes:{x:f,y:p,&quot;text-anchor&quot;:&quot;middle&quot;}})}(t,e)})),s.syncOrAsync(Z)}}function Q(t){var r=p+(t||&quot;tick&quot;);return w[r]||(w[r]=function(t,e){var r,n,i,a;t._selections[e].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,t._selections[e].each((function(){var t=yt(this),e=h.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),i=Math.min(i,e.left),a=Math.max(a,e.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(e,r)),w[r]}},V.getTickSigns=function(t){var e=t._id.charAt(0),r={x:&quot;top&quot;,y:&quot;right&quot;}[e],n=t.side===r?1:-1,i=[-1,1,n,-n];return&quot;inside&quot;!==t.ticks==(&quot;x&quot;===e)&amp;&amp;(i=i.map((function(t){return-t}))),t.side&amp;&amp;i.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),i},V.makeTransTickFn=function(t){return&quot;x&quot;===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},V.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||&quot;&quot;,r=function(t){return-1!==e.indexOf(t)},n=r(&quot;top&quot;),i=r(&quot;left&quot;),a=r(&quot;right&quot;),o=r(&quot;bottom&quot;),s=r(&quot;inside&quot;),l=o||i||n||a;if(!l&amp;&amp;!s)return[0,0];var c=t.side,u=l?(t.tickwidth||0)/2:0,f=3,h=t.tickfont?t.tickfont.size:12;(o||n)&amp;&amp;(u+=h*N,f+=(t.linewidth||0)/2);(i||a)&amp;&amp;(u+=(t.linewidth||0)/2,f+=3);s&amp;&amp;&quot;top&quot;===c&amp;&amp;(f-=h*(1-N));(i||n)&amp;&amp;(u=-u);&quot;bottom&quot;!==c&amp;&amp;&quot;right&quot;!==c||(f=-f);return[l?u:0,s?f:0]}(t),r=e[0],n=e[1];return&quot;x&quot;===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(dt(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(dt(e)))}},V.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var i=t._id.charAt(0),a=(t.linewidth||1)/2;return&quot;x&quot;===i?&quot;M0,&quot;+(e+a*r)+&quot;v&quot;+n*r:&quot;M&quot;+(e+a*r)+&quot;,0h&quot;+n*r},V.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||&quot;&quot;,a=function(t){return-1!==n.indexOf(t)},o=a(&quot;top&quot;),l=a(&quot;left&quot;),c=a(&quot;right&quot;),u=a(&quot;bottom&quot;)||l||o||c,f=a(&quot;inside&quot;),h=&quot;inside&quot;===n&amp;&amp;&quot;inside&quot;===t.ticks||!f&amp;&amp;&quot;outside&quot;===t.ticks&amp;&amp;&quot;boundaries&quot;!==t.tickson,p=0,d=0,g=h?t.ticklen:0;if(f?g*=-1:u&amp;&amp;(g=0),h&amp;&amp;(p+=g,r)){var m=s.deg2rad(r);p=g*Math.cos(m)+1,d=g*Math.sin(m)}t.showticklabels&amp;&amp;(h||t.showline)&amp;&amp;(p+=.2*t.tickfont.size);var v,y,x,b,_,w={labelStandoff:p+=(t.linewidth||1)/2*(f?-1:1),labelShift:d},T=0,k=t.side,A=t._id.charAt(0),M=t.tickangle;if(&quot;x&quot;===A)b=(_=!f&amp;&amp;&quot;bottom&quot;===k||f&amp;&amp;&quot;top&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=d*b,y=e+p*b,x=_?1:-.2,90===Math.abs(M)&amp;&amp;(f?x+=B:x=-90===M&amp;&amp;&quot;bottom&quot;===k?N:90===M&amp;&amp;&quot;top&quot;===k?B:.5,T=B/2*(M/90)),w.xFn=function(t){return t.dx+v+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*x},w.anchorFn=function(t,e){if(u){if(l)return&quot;end&quot;;if(c)return&quot;start&quot;}return i(e)&amp;&amp;0!==e&amp;&amp;180!==e?e*b&lt;0!==f?&quot;end&quot;:&quot;start&quot;:&quot;middle&quot;},w.heightFn=function(e,r,n){return r&lt;-60||r&gt;60?-.5*n:&quot;top&quot;===t.side!==f?-n:0};else if(&quot;y&quot;===A){if(b=(_=!f&amp;&amp;&quot;left&quot;===k||f&amp;&amp;&quot;right&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=p,y=d*b,x=0,f||90!==Math.abs(M)||(x=-90===M&amp;&amp;&quot;left&quot;===k||90===M&amp;&amp;&quot;right&quot;===k?N:.5),f){var S=i(M)?+M:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*N*b,x=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*x)*b+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*B},w.anchorFn=function(t,e){return i(e)&amp;&amp;90===Math.abs(e)?&quot;middle&quot;:_?&quot;end&quot;:&quot;start&quot;},w.heightFn=function(e,r,n){return&quot;right&quot;===t.side&amp;&amp;(r*=-1),r&lt;-30?-n:r&lt;30?-.5*n:0}}return w},V.drawTicks=function(t,e,r){r=r||{};var n=e._id+&quot;tick&quot;,i=r.vals;&quot;period&quot;===e.ticklabelmode&amp;&amp;(i=i.slice()).shift();var a=r.layer.selectAll(&quot;path.&quot;+n).data(e.ticks?i:[],gt);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;ticks&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).call(f.stroke,e.tickcolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.tickwidth,1)+&quot;px&quot;).attr(&quot;d&quot;,r.path).style(&quot;display&quot;,null),Et(e,[D]),a.attr(&quot;transform&quot;,r.transFn)},V.drawGrid=function(t,e,r){r=r||{};var n=e._id+&quot;grid&quot;,i=r.vals,a=r.counterAxis;if(!1===e.showgrid)i=[];else if(a&amp;&amp;V.shouldShowZeroLine(t,e,a))for(var o=&quot;array&quot;===e.tickmode,s=0;s&lt;i.length;s++){var l=i[s].x;if(o?!l:Math.abs(l)&lt;e.dtick/100){if(i=i.slice(0,s).concat(i.slice(s+1)),!o)break;s--}}var c=r.layer.selectAll(&quot;path.&quot;+n).data(i,gt);c.exit().remove(),c.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;crisp&quot;,!1!==r.crisp),e._gw=h.crispRound(t,e.gridwidth,1),c.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.gridcolor||&quot;#ddd&quot;).style(&quot;stroke-width&quot;,e._gw+&quot;px&quot;).style(&quot;display&quot;,null),Et(e,[z]),&quot;function&quot;==typeof r.path&amp;&amp;c.attr(&quot;d&quot;,r.path)},V.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+&quot;zl&quot;,i=V.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll(&quot;path.&quot;+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;zl&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).each((function(){r.layer.selectAll(&quot;path&quot;).sort((function(t,e){return G(t.id,e.id)}))})),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.zerolinecolor||f.defaultLine).style(&quot;stroke-width&quot;,h.crispRound(t,e.zerolinewidth,e._gw||1)+&quot;px&quot;).style(&quot;display&quot;,null),Et(e,[O])},V.drawLabels=function(t,e,r){r=r||{};var a=t._fullLayout,o=e._id,u=o.charAt(0),f=r.cls||o+&quot;tick&quot;,p=r.vals,d=r.labelFns,g=r.secondary?0:e.tickangle,m=(e._prevTickAngles||{})[f],v=r.layer.selectAll(&quot;g.&quot;+f).data(e.showticklabels?p:[],gt),y=[];function x(t,a){t.each((function(t){var o=n.select(this),s=o.select(&quot;.text-math-group&quot;),u=d.anchorFn(t,a),f=r.transFn.call(o.node(),t)+(i(a)&amp;&amp;0!=+a?&quot; rotate(&quot;+a+&quot;,&quot;+d.xFn(t)+&quot;,&quot;+(d.yFn(t)-t.fontSize/2)+&quot;)&quot;:&quot;&quot;),p=c.lineCount(o),g=j*t.fontSize,m=d.heightFn(t,i(a)?+a:0,(p-1)*g);if(m&amp;&amp;(f+=l(0,m)),s.empty()){var v=o.select(&quot;text&quot;);v.attr({transform:f,&quot;text-anchor&quot;:u}),v.style(&quot;opacity&quot;,1),e._adjustTickLabelsOverflow&amp;&amp;e._adjustTickLabelsOverflow()}else{var y=h.bBox(s.node()).width*{end:-.5,start:.5}[u];s.attr(&quot;transform&quot;,f+l(y,0))}}))}v.enter().append(&quot;g&quot;).classed(f,1).append(&quot;text&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).each((function(e){var r=n.select(this),i=t._promises.length;r.call(c.positionText,d.xFn(e),d.yFn(e)).call(h.font,e.font,e.fontSize,e.fontColor).text(e.text).call(c.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){x(r,g)}))):x(r,g)})),Et(e,[R]),v.exit().remove(),r.repositionOnUpdate&amp;&amp;v.each((function(t){n.select(this).select(&quot;text&quot;).call(c.positionText,d.xFn(t),d.yFn(t))})),e._adjustTickLabelsOverflow=function(){var r=e.ticklabeloverflow;if(r&amp;&amp;&quot;allow&quot;!==r){var i=-1!==r.indexOf(&quot;hide&quot;),o=&quot;x&quot;===e._id.charAt(0),l=0,c=o?t._fullLayout.width:t._fullLayout.height;if(-1!==r.indexOf(&quot;domain&quot;)){var u=s.simpleMap(e.range,e.r2l);l=e.l2p(u[0])+e._offset,c=e.l2p(u[1])+e._offset}var f=Math.min(l,c),p=Math.max(l,c),d=e.side,g=1/0,m=-1/0;for(var y in v.each((function(t){var r=n.select(this);if(r.select(&quot;.text-math-group&quot;).empty()){var a=h.bBox(r.node()),s=0;o?(a.right&gt;p||a.left&lt;f)&amp;&amp;(s=1):(a.bottom&gt;p||a.top+(e.tickangle?0:t.fontSize/4)&lt;f)&amp;&amp;(s=1);var l=r.select(&quot;text&quot;);s?i&amp;&amp;l.style(&quot;opacity&quot;,0):(l.style(&quot;opacity&quot;,1),g=&quot;bottom&quot;===d||&quot;right&quot;===d?Math.min(g,o?a.top:a.left):-1/0,m=&quot;top&quot;===d||&quot;left&quot;===d?Math.max(m,o?a.bottom:a.right):1/0)}})),a._plots){var x=a._plots[y];if(e._id===x.xaxis._id||e._id===x.yaxis._id){var b=o?x.yaxis:x.xaxis;b&amp;&amp;(b[&quot;_visibleLabelMin_&quot;+e._id]=g,b[&quot;_visibleLabelMax_&quot;+e._id]=m)}}}},e._hideCounterAxisInsideTickLabels=function(t){var r=&quot;x&quot;===e._id.charAt(0),i=[];for(var o in a._plots){var s=a._plots[o];e._id!==s.xaxis._id&amp;&amp;e._id!==s.yaxis._id||i.push(r?s.yaxis:s.xaxis)}i.forEach((function(r,i){r&amp;&amp;St(r)&amp;&amp;(t||[O,z,D,R]).forEach((function(t){var o=&quot;tick&quot;===t.K&amp;&amp;&quot;text&quot;===t.L&amp;&amp;&quot;period&quot;===e.ticklabelmode,s=a._plots[e._mainSubplot];(t.K===O.K?s.zerolinelayer.selectAll(&quot;.&quot;+e._id+&quot;zl&quot;):t.K===z.K?s.gridlayer.selectAll(&quot;.&quot;+e._id):s[e._id.charAt(0)+&quot;axislayer&quot;]).each((function(){var a=n.select(this);t.L&amp;&amp;(a=a.selectAll(t.L)),a.each((function(a){var s=e.l2p(o?dt(a):a.x)+e._offset,l=n.select(this);s&lt;e[&quot;_visibleLabelMax_&quot;+r._id]&amp;&amp;s&gt;e[&quot;_visibleLabelMin_&quot;+r._id]?l.style(&quot;display&quot;,&quot;none&quot;):&quot;tick&quot;!==t.K||i||l.style(&quot;display&quot;,null)}))}))}))}))},x(v,m+1?m:g);var b=null;e._selections&amp;&amp;(e._selections[f]=v);var _=[function(){return y.length&amp;&amp;Promise.all(y)}];e.automargin&amp;&amp;a._redrawFromAutoMarginCount&amp;&amp;90===m?(b=90,_.push((function(){x(v,m)}))):_.push((function(){if(x(v,g),p.length&amp;&amp;&quot;x&quot;===u&amp;&amp;!i(g)&amp;&amp;(&quot;log&quot;!==e.type||&quot;D&quot;!==String(e.dtick).charAt(0))){b=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=yt(this),o=h.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),&quot;boundaries&quot;!==e.tickson&amp;&amp;!e.showdividers||r.secondary){var o=p.length,l=Math.abs((p[o-1].x-p[0].x)*e._m)/(o-1),c=e.ticklabelposition||&quot;&quot;,f=function(t){return-1!==c.indexOf(t)},d=f(&quot;top&quot;),m=f(&quot;left&quot;),y=f(&quot;right&quot;),_=f(&quot;bottom&quot;)||m||d||y?(e.tickwidth||0)+6:0,w=l&lt;2.5*n||&quot;multicategory&quot;===e.type;for(t=0;t&lt;a.length-1;t++)if(s.bBoxIntersect(a[t],a[t+1],_)){b=w?90:30;break}}else{var T=2;for(e.ticks&amp;&amp;(T+=e.tickwidth/2),t=0;t&lt;a.length;t++){var k=p[t].xbnd,A=a[t];if(null!==k[0]&amp;&amp;A.left-e.l2p(k[0])&lt;T||null!==k[1]&amp;&amp;e.l2p(k[1])-A.right&lt;T){b=90;break}}}b&amp;&amp;x(v,b)}})),e._tickAngles&amp;&amp;_.push((function(){e._tickAngles[f]=null===b?i(g)?g:0:b}));var w=e._anchorAxis;w&amp;&amp;w.autorange&amp;&amp;St(e)&amp;&amp;!Y(a,e._id)&amp;&amp;(a._insideTickLabelsAutorange||(a._insideTickLabelsAutorange={}),a._insideTickLabelsAutorange[w._name+&quot;.autorange&quot;]=w.autorange,_.push((function(){v.each((function(t,r){var n=yt(this);n.select(&quot;.text-math-group&quot;).empty()&amp;&amp;(e._vals[r].bb=h.bBox(n.node()))}))})));var T=s.syncOrAsync(_);return T&amp;&amp;T.then&amp;&amp;t._promises.push(T),T},V.getPxPosition=function(t,e){var r,n=t._fullLayout._size,i=e._id.charAt(0),a=e.side;return&quot;free&quot;!==e.anchor?r=e._anchorAxis:&quot;x&quot;===i?r={_offset:n.t+(1-(e.position||0))*n.h,_length:0}:&quot;y&quot;===i&amp;&amp;(r={_offset:n.l+(e.position||0)*n.w,_length:0}),&quot;top&quot;===a||&quot;left&quot;===a?r._offset:&quot;bottom&quot;===a||&quot;right&quot;===a?r._offset+r._length:void 0},V.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]&lt;=0&amp;&amp;e.zeroline&amp;&amp;(&quot;linear&quot;===e.type||&quot;-&quot;===e.type)&amp;&amp;!(e.rangebreaks&amp;&amp;e.maskBreaks(0)===I)&amp;&amp;(vt(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=V.counterLetter(e._id),l=e._offset+(Math.abs(n[0])&lt;Math.abs(n[1])==(&quot;x&quot;===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return&quot;number&quot;==typeof t&amp;&amp;Math.abs(t-l)&lt;r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=V.list(t,s),h=0;h&lt;f.length;h++){var p=f[h];if(p._mainAxis===i&amp;&amp;c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a&lt;r.length;a++){var s=r[a];if(!0===s.visible&amp;&amp;s.xaxis+s.yaxis===n){if(o.traceIs(s,&quot;bar-like&quot;)&amp;&amp;s.orientation==={x:&quot;h&quot;,y:&quot;v&quot;}[i])return!0;if(s.fill&amp;&amp;s.fill.charAt(s.fill.length-1)===i)return!0}}return!1}(t,e))},V.clipEnds=function(t,e){return e.filter((function(e){return vt(t,e.x)}))},V.allowAutoMargin=function(t){for(var e=V.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r];n.automargin&amp;&amp;(a.allowAutoMargin(t,xt(n)),n.mirror&amp;&amp;a.allowAutoMargin(t,bt(n))),o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(n)&amp;&amp;a.allowAutoMargin(t,_t(n))}},V.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r&lt;e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&amp;&amp;s){for(n=0;n&lt;i.length;n++)-1===i[n].x.indexOf(o)&amp;&amp;-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length&gt;1)for(n=1;n&lt;a.length;n++)l=i[a[n]],wt(c.x,l.x),wt(c.y,l.y);wt(c.x,[o]),wt(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n&lt;r.length;n++)Tt(t,r[n].x,r[n].y)}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../components/titles&quot;:764,&quot;../../constants/alignment&quot;:771,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;./autorange&quot;:853,&quot;./axis_autotype&quot;:855,&quot;./axis_ids&quot;:858,&quot;./clean_ticks&quot;:860,&quot;./layout_attributes&quot;:869,&quot;./set_convert&quot;:875,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],855:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=i.isArrayOrTypedArray,s=i.isDateTime,l=i.cleanNumber,c=Math.round;function u(t,e){return e?n(t):&quot;number&quot;==typeof t}function f(t){return Math.max(1,(t-1)/1e3)}e.exports=function(t,e,r){var i=t,h=r.noMultiCategory;if(o(i)&amp;&amp;!i.length)return&quot;-&quot;;if(!h&amp;&amp;function(t){return o(t[0])&amp;&amp;o(t[1])}(i))return&quot;multicategory&quot;;if(h&amp;&amp;Array.isArray(i[0])){for(var p=[],d=0;d&lt;i.length;d++)if(o(i[d]))for(var g=0;g&lt;i[d].length;g++)p.push(i[d][g]);i=p}if(function(t,e){for(var r=t.length,i=f(r),a=0,o=0,l={},u=0;u&lt;r;u+=i){var h=c(u),p=t[h],d=String(p);l[d]||(l[d]=1,s(p,e)&amp;&amp;a++,n(p)&amp;&amp;o++)}return a&gt;2*o}(i,e))return&quot;date&quot;;var m=&quot;strict&quot;!==r.autotypenumbers;return function(t,e){for(var r=t.length,n=f(r),i=0,o=0,s={},u=0;u&lt;r;u+=n){var h=c(u),p=t[h],d=String(p);if(!s[d]){s[d]=1;var g=typeof p;&quot;boolean&quot;===g?o++:(e?l(p)!==a:&quot;number&quot;===g)?i++:&quot;string&quot;===g&amp;&amp;o++}}return o&gt;2*i}(i,m)?&quot;category&quot;:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(u(t[n],e))return!0;return!1}(i,m)?&quot;linear&quot;:&quot;-&quot;}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],856:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../array_container_defaults&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./tick_value_defaults&quot;),c=t(&quot;./tick_mark_defaults&quot;),u=t(&quot;./tick_label_defaults&quot;),f=t(&quot;./category_order_defaults&quot;),h=t(&quot;./line_grid_defaults&quot;),p=t(&quot;./set_convert&quot;),d=t(&quot;./constants&quot;).WEEKDAY_PATTERN,g=t(&quot;./constants&quot;).HOUR_PATTERN;function m(t,e,r){function i(r,n){return a.coerce(t,e,s.rangebreaks,r,n)}if(i(&quot;enabled&quot;)){var o=i(&quot;bounds&quot;);if(o&amp;&amp;o.length&gt;=2){var l,c,u=&quot;&quot;;if(2===o.length)for(l=0;l&lt;2;l++)if(c=y(o[l])){u=d;break}var f=i(&quot;pattern&quot;,u);if(f===d)for(l=0;l&lt;2;l++)(c=y(o[l]))&amp;&amp;(e.bounds[l]=o[l]=c-1);if(f)for(l=0;l&lt;2;l++)switch(c=o[l],f){case d:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c&lt;0||c&gt;=7)return void(e.enabled=!1);e.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(e.enabled=!1);if((c=+c)&lt;0||c&gt;24)return void(e.enabled=!1);e.bounds[l]=o[l]=c}if(!1===r.autorange){var h=r.range;if(h[0]&lt;h[1]){if(o[0]&lt;h[0]&amp;&amp;o[1]&gt;h[1])return void(e.enabled=!1)}else if(o[0]&gt;h[0]&amp;&amp;o[1]&lt;h[1])return void(e.enabled=!1)}}else{var p=i(&quot;values&quot;);if(!p||!p.length)return void(e.enabled=!1);i(&quot;dvalue&quot;)}}}e.exports=function(t,e,r,n,g){var v,y=n.letter,x=n.font||{},b=n.splomStash||{},_=r(&quot;visible&quot;,!n.visibleDflt),w=e._template||{},T=e.type||w.type||&quot;-&quot;;&quot;date&quot;===T&amp;&amp;(i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,n.calendar),n.noTicklabelmode||(v=r(&quot;ticklabelmode&quot;)));var k=&quot;&quot;;n.noTicklabelposition&amp;&amp;&quot;multicategory&quot;!==T||(k=a.coerce(t,e,{ticklabelposition:{valType:&quot;enumerated&quot;,dflt:&quot;outside&quot;,values:&quot;period&quot;===v?[&quot;outside&quot;,&quot;inside&quot;]:&quot;x&quot;===y?[&quot;outside&quot;,&quot;inside&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;]:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;]}},&quot;ticklabelposition&quot;)),n.noTicklabeloverflow||r(&quot;ticklabeloverflow&quot;,-1!==k.indexOf(&quot;inside&quot;)?&quot;hide past domain&quot;:&quot;category&quot;===T||&quot;multicategory&quot;===T?&quot;allow&quot;:&quot;hide past div&quot;),p(e,g);var A=!e.isValidRange(t.range);A&amp;&amp;n.reverseDflt&amp;&amp;(A=&quot;reversed&quot;),!r(&quot;autorange&quot;,A)||&quot;linear&quot;!==T&amp;&amp;&quot;-&quot;!==T||r(&quot;rangemode&quot;),r(&quot;range&quot;),e.cleanRange(),f(t,e,r,n),&quot;category&quot;===T||n.noHover||r(&quot;hoverformat&quot;);var M=r(&quot;color&quot;),S=M!==s.color.dflt?M:x.color,E=b.label||g._dfltTitle[y];if(u(t,e,r,T,n,{pass:1}),!_)return e;r(&quot;title.text&quot;,E),a.coerceFont(r,&quot;title.font&quot;,{family:x.family,size:a.bigFont(x.size),color:S}),l(t,e,r,T),u(t,e,r,T,n,{pass:2}),c(t,e,r,n),h(t,e,r,{dfltColor:M,bgColor:n.bgColor,showGrid:n.showGrid,attributes:s}),(e.showline||e.ticks)&amp;&amp;r(&quot;mirror&quot;),n.automargin&amp;&amp;r(&quot;automargin&quot;);var L,C=&quot;multicategory&quot;===T;n.noTickson||&quot;category&quot;!==T&amp;&amp;!C||!e.ticks&amp;&amp;!e.showgrid||(C&amp;&amp;(L=&quot;boundaries&quot;),&quot;boundaries&quot;===r(&quot;tickson&quot;,L)&amp;&amp;delete e.ticklabelposition);C&amp;&amp;(r(&quot;showdividers&quot;)&amp;&amp;(r(&quot;dividercolor&quot;),r(&quot;dividerwidth&quot;)));if(&quot;date&quot;===T)if(o(t,e,{name:&quot;rangebreaks&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:m}),e.rangebreaks.length){for(var P=0;P&lt;e.rangebreaks.length;P++)if(e.rangebreaks[P].pattern===d){e._hasDayOfWeekBreaks=!0;break}if(p(e,g),g._has(&quot;scattergl&quot;)||g._has(&quot;splom&quot;))for(var I=0;I&lt;n.data.length;I++){var O=n.data[I];&quot;scattergl&quot;!==O.type&amp;&amp;&quot;splom&quot;!==O.type||(O.visible=!1,a.warn(O.type+&quot; traces do not work on axes with rangebreaks. Setting trace &quot;+O.index+&quot; to `visible: false`.&quot;))}}else delete e.rangebreaks;return e};var v={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function y(t){if(&quot;string&quot;==typeof t)return v[t.substr(0,3).toLowerCase()]}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../array_container_defaults&quot;:849,&quot;./category_order_defaults&quot;:859,&quot;./constants&quot;:861,&quot;./layout_attributes&quot;:869,&quot;./line_grid_defaults&quot;:871,&quot;./set_convert&quot;:875,&quot;./tick_label_defaults&quot;:876,&quot;./tick_mark_defaults&quot;:877,&quot;./tick_value_defaults&quot;:878,&quot;fast-isnumeric&quot;:249}],857:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/docs&quot;),i=n.FORMAT_LINK,a=n.DATE_FORMAT_LINK;function o(t,e){return[&quot;Sets the &quot;+t+&quot; formatting rule&quot;+(e?&quot;for `&quot;+e+&quot;` &quot;:&quot;&quot;),&quot;using d3 formatting mini-languages&quot;,&quot;which are very similar to those in Python. For numbers, see: &quot;+i+&quot;.&quot;].join(&quot; &quot;)}function s(t,e){return o(t,e)+[&quot; And for dates see: &quot;+a+&quot;.&quot;,&quot;We add two items to d3's date formatter:&quot;,&quot;*%h* for half of the year as a decimal number as well as&quot;,&quot;*%{n}f* for fractional seconds&quot;,&quot;with n digits. For example, *2016-10-13 09:15:23.456* with tickformat&quot;,&quot;*%H~%M~%S.%2f* would display *09~15~23.46*&quot;].join(&quot; &quot;)}e.exports={axisHoverFormat:function(t,e){return{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;,description:(e?o:s)(&quot;hover text&quot;,t)+[&quot;By default the values are formatted using &quot;+(e?&quot;generic number format&quot;:&quot;`&quot;+t+&quot;axis.hoverformat`&quot;)+&quot;.&quot;].join(&quot; &quot;)}},descriptionOnlyNumbers:o,descriptionWithDates:s}},{&quot;../../constants/docs&quot;:774}],858:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./constants&quot;);function a(t,e){if(e&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++)if(e[r][t])return!0;return!1}r.id2name=function(t){if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)){var e=t.split(&quot; &quot;)[0].substr(1);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+&quot;axis&quot;+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+e}},r.cleanId=function(t,e,r){var n=/( domain)$/.test(t);if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)&amp;&amp;(!e||t.charAt(0)===e)&amp;&amp;(!n||r)){var a=t.split(&quot; &quot;)[0].substr(1).replace(/^0+/,&quot;&quot;);return&quot;1&quot;===a&amp;&amp;(a=&quot;&quot;),t.charAt(0)+a+(n&amp;&amp;r?&quot; domain&quot;:&quot;&quot;)}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a&lt;o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+&quot;axis&quot;+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a&lt;c.length;a++){var u=i[c[a]];e?s.push(u[e+&quot;axis&quot;]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+&quot;axis&quot;]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return e=void 0===e||&quot;string&quot;!=typeof e?e:e.replace(&quot; domain&quot;,&quot;&quot;),&quot;x&quot;===n?e=e.replace(/y[0-9]*/,&quot;&quot;):&quot;y&quot;===n&amp;&amp;(e=e.replace(/x[0-9]*/,&quot;&quot;)),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,&quot;gl3d&quot;)){var s=e.scene;&quot;scene&quot;===s.substr(0,5)&amp;&amp;(o=a[s][i+&quot;axis&quot;])}else o=r.getFromId(t,e[i+&quot;axis&quot;]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r&gt;n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&amp;&amp;t.split(&quot; &quot;)[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{&quot;../../registry&quot;:931,&quot;./constants&quot;:861}],859:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){if(&quot;category&quot;===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&amp;&amp;a.length&gt;0;o&amp;&amp;(i=&quot;array&quot;);var s,l=r(&quot;categoryorder&quot;,i);&quot;array&quot;===l&amp;&amp;(s=r(&quot;categoryarray&quot;)),o||&quot;array&quot;!==l||(l=e.categoryorder=&quot;trace&quot;),&quot;trace&quot;===l?e._initialCategories=[]:&quot;array&quot;===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n&lt;e.data.length;n++){var s=e.data[n];s[a+&quot;axis&quot;]===t._id&amp;&amp;r.push(s)}for(n=0;n&lt;r.length;n++){var l=r[n][a];for(i=0;i&lt;l.length;i++){var c=l[i];null!=c&amp;&amp;(o[c]=1)}}return Object.keys(o)}(e,n).sort(),&quot;category ascending&quot;===l?e._initialCategories=s:&quot;category descending&quot;===l&amp;&amp;(e._initialCategories=s.reverse()))}}},{}],860:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.ONEDAY,s=a.ONEWEEK;r.dtick=function(t,e){var r=&quot;log&quot;===e,i=&quot;date&quot;===e,a=&quot;category&quot;===e,s=i?o:1;if(!t)return s;if(n(t))return(t=Number(t))&lt;=0?s:a?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(&quot;string&quot;!=typeof t||!i&amp;&amp;!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)&lt;=0||!(i&amp;&amp;&quot;M&quot;===l&amp;&amp;c===Math.round(c)||r&amp;&amp;&quot;L&quot;===l||r&amp;&amp;&quot;D&quot;===l&amp;&amp;(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return&quot;date&quot;===e?i.cleanDate(t,i.dateTick0(r,a%s==0?1:0)):&quot;D1&quot;!==a&amp;&amp;&quot;D2&quot;!==a?n(t)?Number(t):0:void 0}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],861:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/regex&quot;).counter;e.exports={idRegex:{x:n(&quot;x&quot;,&quot;( domain)?&quot;),y:n(&quot;y&quot;,&quot;( domain)?&quot;)},attrRegex:n(&quot;[xy]axis&quot;),xAxisMatch:n(&quot;xaxis&quot;),yAxisMatch:n(&quot;yaxis&quot;),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:&quot;hour&quot;,WEEKDAY_PATTERN:&quot;day of week&quot;,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:&quot;-select&quot;,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[&quot;imagelayer&quot;,&quot;heatmaplayer&quot;,&quot;contourcarpetlayer&quot;,&quot;contourlayer&quot;,&quot;funnellayer&quot;,&quot;waterfalllayer&quot;,&quot;barlayer&quot;,&quot;carpetlayer&quot;,&quot;violinlayer&quot;,&quot;boxlayer&quot;,&quot;ohlclayer&quot;,&quot;scattercarpetlayer&quot;,&quot;scatterlayer&quot;],clipOnAxisFalseQuery:[&quot;.scatterlayer&quot;,&quot;.barlayer&quot;,&quot;.funnellayer&quot;,&quot;.waterfalllayer&quot;],layerValue2layerClass:{&quot;above traces&quot;:&quot;above&quot;,&quot;below traces&quot;:&quot;below&quot;}}},{&quot;../../lib/regex&quot;:820}],862:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./autorange&quot;),a=t(&quot;./axis_ids&quot;).id2name,o=t(&quot;./layout_attributes&quot;),s=t(&quot;./scale_zoom&quot;),l=t(&quot;./set_convert&quot;),c=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,u=t(&quot;../../constants/alignment&quot;).FROM_BL;function f(t,e,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,f=e._id,g=f.charAt(0),m=((s._splomAxes||{})[g]||{})[f]||{},v=e._id,y=&quot;x&quot;===v.charAt(0);function x(r,i){return n.coerce(t,e,o,r,i)}e._matchGroup=null,e._constraintGroup=null,x(&quot;constrain&quot;,l?&quot;domain&quot;:&quot;range&quot;),n.coerce(t,e,{constraintoward:{valType:&quot;enumerated&quot;,values:y?[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;]:[&quot;bottom&quot;,&quot;middle&quot;,&quot;top&quot;],dflt:y?&quot;center&quot;:&quot;middle&quot;}},&quot;constraintoward&quot;);var b,_,w=e.type,T=[];for(b=0;b&lt;i.length;b++){if((_=i[b])!==v)s[a(_)].type===w&amp;&amp;T.push(_)}var k=p(c,v);if(k){var A=[];for(b=0;b&lt;T.length;b++)k[_=T[b]]||A.push(_);T=A}var M,S,E=T.length;E&amp;&amp;(t.matches||m.matches)&amp;&amp;(M=n.coerce(t,e,{matches:{valType:&quot;enumerated&quot;,values:T,dflt:-1!==T.indexOf(m.matches)?m.matches:void 0}},&quot;matches&quot;));var L=l&amp;&amp;!y?e.anchor:void 0;if(E&amp;&amp;!M&amp;&amp;(t.scaleanchor||L)&amp;&amp;(S=n.coerce(t,e,{scaleanchor:{valType:&quot;enumerated&quot;,values:T}},&quot;scaleanchor&quot;,L)),M){e._matchGroup=d(u,v,M,1);var C=s[a(M)],P=h(s,e)/h(s,C);y!==(&quot;x&quot;===M.charAt(0))&amp;&amp;(P=(y?&quot;x&quot;:&quot;y&quot;)+P),d(c,v,M,P)}else t.matches&amp;&amp;-1!==i.indexOf(t.matches)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.matches: &quot;'+t.matches+'&quot; to avoid an infinite loop');if(S){var I=x(&quot;scaleratio&quot;);I||(I=e.scaleratio=1),d(c,v,S,I)}else t.scaleanchor&amp;&amp;-1!==i.indexOf(t.scaleanchor)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.scaleanchor: &quot;'+t.scaleanchor+'&quot; to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function h(t,e){var r=e.domain;return r||(r=t[a(e.overlaying)].domain),r[1]-r[0]}function p(t,e){for(var r=0;r&lt;t.length;r++)if(t[r][e])return t[r];return null}function d(t,e,r,n){var i,a,o,s,l,c=p(t,e);null===c?((c={})[e]=1,l=t.length,t.push(c)):l=t.indexOf(c);var u=Object.keys(c);for(i=0;i&lt;t.length;i++)if(o=t[i],i!==l&amp;&amp;o[r]){var f=o[r];for(a=0;a&lt;u.length;a++)o[s=u[a]]=g(f,g(n,c[s]));return void t.splice(l,1)}if(1!==n)for(a=0;a&lt;u.length;a++){var h=u[a];c[h]=g(n,c[h])}c[r]=1}function g(t,e){var r,n,i=&quot;&quot;,a=&quot;&quot;;&quot;string&quot;==typeof t&amp;&amp;(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(r)),&quot;string&quot;==typeof e&amp;&amp;(n=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(n));var o=t*e;return r||n?r&amp;&amp;n&amp;&amp;i.charAt(0)!==a.charAt(0)?r===n?o:(r&gt;n?i.substr(n):a.substr(r))+o:i+a+t*e:o}function m(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;o&lt;a.length;o++){var s=a[o],l=t[s];if(&quot;string&quot;==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.substr(u);for(var f=&quot;y&quot;===c.charAt(0)?n:1/n,h=0;h&lt;u;h++)l*=f}i[s]=l}return i}function v(t,e){var r=t._inputDomain,n=u[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e],t.setScale()}r.handleDefaults=function(t,e,r){var i,o,s,c,u,h,p,d,g=r.axIds,m=r.axHasImage,v=e._axisConstraintGroups=[],y=e._axisMatchGroups=[];for(i=0;i&lt;g.length;i++)f(u=t[c=a(g[i])],h=e[c],{axIds:g,layoutOut:e,hasImage:m[c]});function x(t,r){for(i=0;i&lt;t.length;i++)for(s in o=t[i])e[a(s)][r]=o}for(x(y,&quot;_matchGroup&quot;),i=0;i&lt;v.length;i++)for(s in o=v[i])if((h=e[a(s)]).fixedrange){for(var b in o){var _=a(b);!1===(t[_]||{}).fixedrange&amp;&amp;n.warn(&quot;fixedrange was specified as false for axis &quot;+_+&quot; but was overridden because another axis in its constraint group has fixedrange true&quot;),e[_].fixedrange=!0}break}for(i=0;i&lt;v.length;){for(s in o=v[i]){(h=e[a(s)])._matchGroup&amp;&amp;Object.keys(h._matchGroup).length===Object.keys(o).length&amp;&amp;(v.splice(i,1),i--);break}i++}x(v,&quot;_constraintGroup&quot;);var w=[&quot;constrain&quot;,&quot;range&quot;,&quot;autorange&quot;,&quot;rangemode&quot;,&quot;rangebreaks&quot;,&quot;categoryorder&quot;,&quot;categoryarray&quot;],T=!1,k=!1;function A(){d=h[p],&quot;rangebreaks&quot;===p&amp;&amp;(k=h._hasDayOfWeekBreaks)}for(i=0;i&lt;y.length;i++){o=y[i];for(var M=0;M&lt;w.length;M++){var S;for(s in p=w[M],d=null,o)if(u=t[c=a(s)],h=e[c],p in h){if(!h.matches&amp;&amp;(S=h,p in u)){A();break}null===d&amp;&amp;p in u&amp;&amp;A()}if(&quot;range&quot;===p&amp;&amp;d&amp;&amp;(T=!0),&quot;autorange&quot;===p&amp;&amp;null===d&amp;&amp;T&amp;&amp;(d=!1),null===d&amp;&amp;p in S&amp;&amp;(d=S[p]),null!==d)for(s in o)(h=e[a(s)])[p]=&quot;range&quot;===p?d.slice():d,&quot;rangebreaks&quot;===p&amp;&amp;(h._hasDayOfWeekBreaks=k,l(h,e))}}},r.enforce=function(t){var e,r,n,o,l,u,f,h,p=t._fullLayout,d=p._axisConstraintGroups||[];for(e=0;e&lt;d.length;e++){n=m(d[e],p);var g=Object.keys(n),y=1/0,x=0,b=1/0,_={},w={},T=!1;for(r=0;r&lt;g.length;r++)w[o=g[r]]=l=p[a(o)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),_[o]=u=Math.abs(l._m)/n[o],y=Math.min(y,u),&quot;domain&quot;!==l.constrain&amp;&amp;l._constraintShrinkable||(b=Math.min(b,u)),delete l._constraintShrinkable,x=Math.max(x,u),&quot;domain&quot;===l.constrain&amp;&amp;(T=!0);if(!(y&gt;c*x)||T)for(r=0;r&lt;g.length;r++)if(u=_[o=g[r]],f=(l=w[o]).constrain,u!==b||&quot;domain&quot;===f)if(h=u/b,&quot;range&quot;===f)s(l,h);else{var k=l._inputDomain,A=(l.domain[1]-l.domain[0])/(k[1]-k[0]),M=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=A)*M&lt;1){l.domain=l._input.domain=k.slice(),s(l,h);continue}if(M&lt;1&amp;&amp;(l.range=l._input.range=l._inputRange.slice(),h*=M),l.autorange){var S=l.r2l(l.range[0]),E=l.r2l(l.range[1]),L=(S+E)/2,C=L,P=L,I=Math.abs(E-L),O=L-I*h*1.0001,z=L+I*h*1.0001,D=i.makePadFn(p,l,0),R=i.makePadFn(p,l,1);v(l,h);var F,B,N=Math.abs(l._m),j=i.concatExtremes(t,l),U=j.min,V=j.max;for(B=0;B&lt;U.length;B++)(F=U[B].val-D(U[B])/N)&gt;O&amp;&amp;F&lt;C&amp;&amp;(C=F);for(B=0;B&lt;V.length;B++)(F=V[B].val+R(V[B])/N)&lt;z&amp;&amp;F&gt;P&amp;&amp;(P=F);h/=(P-C)/(2*I),C=l.l2r(C),P=l.l2r(P),l.range=l._input.range=S&lt;E?[C,P]:[P,C]}v(l,h)}}},r.getAxisGroup=function(t,e){for(var r=t._axisMatchGroups,n=0;n&lt;r.length;n++){if(r[n][e])return&quot;g&quot;+n}return e},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a&lt;i.length;a++)if(i[a][n]){r=!0;break}r&amp;&amp;&quot;domain&quot;===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{&quot;../../constants/alignment&quot;:771,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;./autorange&quot;:853,&quot;./axis_ids&quot;:858,&quot;./layout_attributes&quot;:869,&quot;./scale_zoom&quot;:873,&quot;./set_convert&quot;:875}],863:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;tinycolor2&quot;),s=t(&quot;has-passive-events&quot;),l=t(&quot;../../registry&quot;),c=i.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;../../components/fx&quot;),d=t(&quot;./axes&quot;),g=t(&quot;../../lib/setcursor&quot;),m=t(&quot;../../components/dragelement&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.selectingOrDrawing,x=v.freeMode,b=t(&quot;../../constants/alignment&quot;).FROM_TL,_=t(&quot;../../lib/clear_gl_canvases&quot;),w=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,T=t(&quot;../plots&quot;),k=t(&quot;./axis_ids&quot;).getFromId,A=t(&quot;./select&quot;).prepSelect,M=t(&quot;./select&quot;).clearSelect,S=t(&quot;./select&quot;).selectOnClick,E=t(&quot;./scale_zoom&quot;),L=t(&quot;./constants&quot;),C=L.MINDRAG,P=L.MINZOOM,I=!0;function O(t,e,r,n){var a=i.ensureSingle(t.draglayer,e,r,(function(e){e.classed(&quot;drag&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0}).attr(&quot;data-subplot&quot;,t.id)}));return a.call(g,n),a.node()}function z(t,e,r,i,a,o,s){var l=O(t,&quot;rect&quot;,e,r);return n.select(l).call(h.setRect,i,a,o,s),l}function D(t,e){for(var r=0;r&lt;t.length;r++)if(!t[r].fixedrange)return e;return&quot;&quot;}function R(t,e,r,n,i){for(var a=0;a&lt;t.length;a++){var o=t[a];if(!o.fixedrange)if(o.rangebreaks){var s=&quot;y&quot;===o._id.charAt(0),l=s?1-e:e,c=s?1-r:r;n[o._name+&quot;.range[0]&quot;]=o.l2r(o.p2l(l*o._length)),n[o._name+&quot;.range[1]&quot;]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+&quot;.range[0]&quot;]=o.l2r(u+f*e),n[o._name+&quot;.range[1]&quot;]=o.l2r(u+f*r)}}if(i&amp;&amp;i.length){var h=(e+(1-r))/2;R(i,h,1-h,n,[])}}function F(t,e){for(var r=0;r&lt;t.length;r++){var n=t[r];if(!n.fixedrange)if(n.rangebreaks){var i=n._length,a=(n.p2l(0+e)-n.p2l(0)+(n.p2l(i+e)-n.p2l(i)))/2;n.range=[n.l2r(n._rl[0]-a),n.l2r(n._rl[1]-a)]}else n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)]}}function B(t){return 1-(t&gt;=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function N(t,e,r,n,i){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).style({fill:e&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;transform&quot;,c(r,n)).attr(&quot;d&quot;,i+&quot;Z&quot;)}function j(t,e,r){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:f.background,stroke:f.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;transform&quot;,c(e,r)).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function U(t,e,r,n,i,a){t.attr(&quot;d&quot;,n+&quot;M&quot;+r.l+&quot;,&quot;+r.t+&quot;v&quot;+r.h+&quot;h&quot;+r.w+&quot;v-&quot;+r.h+&quot;h-&quot;+r.w+&quot;Z&quot;),V(t,e,i,a)}function V(t,e,r,n){r||(t.transition().style(&quot;fill&quot;,n&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),e.transition().style(&quot;opacity&quot;,1).duration(200))}function q(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}function H(t){I&amp;&amp;t.data&amp;&amp;t._context.showTips&amp;&amp;(i.notifier(i._(t,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),I=!1)}function G(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,P)/2);return&quot;M&quot;+(t.l-3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h3v&quot;+-e+&quot;h&quot;+e+&quot;v-3h-&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h-3v&quot;+-e+&quot;h&quot;+-e+&quot;v-3h&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h-3v&quot;+e+&quot;h&quot;+-e+&quot;v3h&quot;+(e+3)+&quot;ZM&quot;+(t.l-3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h3v&quot;+e+&quot;h&quot;+e+&quot;v3h-&quot;+(e+3)+&quot;Z&quot;}function Y(t,e,r,n,a){for(var o,s,l,c,u=!1,f={},h={},p=(a||{}).xaHash,d=(a||{}).yaHash,g=0;g&lt;e.length;g++){var m=e[g];for(o in r)if(m[o]){for(l in m)a&amp;&amp;(p[l]||d[l])||(&quot;x&quot;===l.charAt(0)?r:n)[l]||(f[l]=o);for(s in n)a&amp;&amp;(p[s]||d[s])||!m[s]||(u=!0)}for(s in n)if(m[s])for(c in m)a&amp;&amp;(p[c]||d[c])||(&quot;x&quot;===c.charAt(0)?r:n)[c]||(h[c]=s)}u&amp;&amp;(i.extendFlat(f,h),h={});var v={},y=[];for(l in f){var x=k(t,l);y.push(x),v[x._id]=x}var b={},_=[];for(c in h){var w=k(t,c);_.push(w),b[w._id]=w}return{xaHash:v,yaHash:b,xaxes:y,yaxes:_,xLinks:f,yLinks:h,isSubplotConstrained:u}}function W(t,e){if(s){var r=void 0!==t.onwheel?&quot;wheel&quot;:&quot;mousewheel&quot;;t._onwheel&amp;&amp;t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel?t.onmousewheel=e:t.isAddedWheelEvent||(t.isAddedWheelEvent=!0,t.addEventListener(&quot;wheel&quot;,e,{passive:!1}))}function X(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,s,c,f,g,v){var I,O,V,Z,J,K,Q,$,tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt,gt=t._fullLayout._zoomlayer,mt=g+v===&quot;nsew&quot;,vt=1===(g+v).length;function yt(){if(I=e.xaxis,O=e.yaxis,tt=I._length,et=O._length,Q=I._offset,$=O._offset,(V={})[I._id]=I,(Z={})[O._id]=O,g&amp;&amp;v)for(var r=e.overlays,n=0;n&lt;r.length;n++){var i=r[n].xaxis;V[i._id]=i;var a=r[n].yaxis;Z[a._id]=a}J=X(V),K=X(Z),it=D(J,v),at=D(K,g),ot=!at&amp;&amp;!it,nt=Y(t,t._fullLayout._axisMatchGroups,V,Z);var o=(rt=Y(t,t._fullLayout._axisConstraintGroups,V,Z,nt)).isSubplotConstrained||nt.isSubplotConstrained;st=v||o,lt=g||o;var s=t._fullLayout;ct=s._has(&quot;scattergl&quot;),ut=s._has(&quot;splom&quot;),ft=s._has(&quot;svg&quot;)}yt();var xt=function(t,e,r){if(!t)return&quot;pointer&quot;;if(&quot;nsew&quot;===t)return r?&quot;&quot;:&quot;pan&quot;===e?&quot;move&quot;:&quot;crosshair&quot;;return t.toLowerCase()+&quot;-resize&quot;}(at+it,t._fullLayout.dragmode,mt),bt=z(e,g+v+&quot;drag&quot;,xt,r,s,c,f);if(ot&amp;&amp;!mt)return bt.onmousedown=null,bt.style.pointerEvents=&quot;none&quot;,bt;var _t,wt,Tt,kt,At,Mt,St,Et,Lt,Ct,Pt={element:bt,gd:t,plotinfo:e};function It(){Pt.plotinfo.selection=!1,M(t)}function Ot(t,r){var i=Pt.gd;if(i._fullLayout._activeShapeIndex&gt;=0)i._fullLayout._deactivateShape(i);else{var o=i._fullLayout.clickmode;if(q(i),2!==t||vt||Ht(),mt)o.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;S(r,i,J,K,e.id,Pt),o.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;p.click(i,r,e.id);else if(1===t&amp;&amp;vt){var s=g?O:I,c=&quot;s&quot;===g||&quot;w&quot;===v?0:1,f=s._name+&quot;.range[&quot;+c+&quot;]&quot;,h=function(t,e){var r,n=t.range[e],i=Math.abs(n-t.range[1-e]);return&quot;date&quot;===t.type?n:&quot;log&quot;===t.type?(r=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,a(&quot;.&quot;+r+&quot;g&quot;)(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,a(&quot;.&quot;+String(r)+&quot;g&quot;)(n))}(s,c),d=&quot;left&quot;,m=&quot;middle&quot;;if(s.fixedrange)return;g?(m=&quot;n&quot;===g?&quot;top&quot;:&quot;bottom&quot;,&quot;right&quot;===s.side&amp;&amp;(d=&quot;right&quot;)):&quot;e&quot;===v&amp;&amp;(d=&quot;right&quot;),i._context.showAxisRangeEntryBoxes&amp;&amp;n.select(bt).call(u.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(h),fill:s.tickfont?s.tickfont.color:&quot;#444&quot;,horizontalAlign:d,verticalAlign:m}).on(&quot;edit&quot;,(function(t){var e=s.d2r(t);void 0!==e&amp;&amp;l.call(&quot;_guiRelayout&quot;,i,f,e)}))}}}function zt(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(tt,pt*e+_t)),i=Math.max(0,Math.min(et,dt*r+wt)),a=Math.abs(n-_t),o=Math.abs(i-wt);function s(){St=&quot;&quot;,Tt.r=Tt.l,Tt.t=Tt.b,Lt.attr(&quot;d&quot;,&quot;M0,0Z&quot;)}if(Tt.l=Math.min(_t,n),Tt.r=Math.max(_t,n),Tt.t=Math.min(wt,i),Tt.b=Math.max(wt,i),rt.isSubplotConstrained)a&gt;P||o&gt;P?(St=&quot;xy&quot;,a/tt&gt;o/et?(o=a*et/tt,wt&gt;i?Tt.t=wt-o:Tt.b=wt+o):(a=o*tt/et,_t&gt;n?Tt.l=_t-a:Tt.r=_t+a),Lt.attr(&quot;d&quot;,G(Tt))):s();else if(nt.isSubplotConstrained)if(a&gt;P||o&gt;P){St=&quot;xy&quot;;var l=Math.min(Tt.l/tt,(et-Tt.b)/et),c=Math.max(Tt.r/tt,(et-Tt.t)/et);Tt.l=l*tt,Tt.r=c*tt,Tt.b=(1-l)*et,Tt.t=(1-c)*et,Lt.attr(&quot;d&quot;,G(Tt))}else s();else!at||o&lt;Math.min(Math.max(.6*a,C),P)?a&lt;C||!it?s():(Tt.t=0,Tt.b=et,St=&quot;x&quot;,Lt.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(t.l-.5)+&quot;,&quot;+(e-P-.5)+&quot;h-3v&quot;+(2*P+1)+&quot;h3ZM&quot;+(t.r+.5)+&quot;,&quot;+(e-P-.5)+&quot;h3v&quot;+(2*P+1)+&quot;h-3Z&quot;}(Tt,wt))):!it||a&lt;Math.min(.6*o,P)?(Tt.l=0,Tt.r=tt,St=&quot;y&quot;,Lt.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(e-P-.5)+&quot;,&quot;+(t.t-.5)+&quot;v-3h&quot;+(2*P+1)+&quot;v3ZM&quot;+(e-P-.5)+&quot;,&quot;+(t.b+.5)+&quot;v3h&quot;+(2*P+1)+&quot;v-3Z&quot;}(Tt,_t))):(St=&quot;xy&quot;,Lt.attr(&quot;d&quot;,G(Tt)));Tt.w=Tt.r-Tt.l,Tt.h=Tt.b-Tt.t,St&amp;&amp;(Ct=!0),t._dragged=Ct,U(Et,Lt,Tt,At,Mt,kt),Dt(),t.emit(&quot;plotly_relayouting&quot;,ht),Mt=!0}function Dt(){ht={},&quot;xy&quot;!==St&amp;&amp;&quot;x&quot;!==St||(R(J,Tt.l/tt,Tt.r/tt,ht,rt.xaxes),Vt(&quot;x&quot;,ht)),&quot;xy&quot;!==St&amp;&amp;&quot;y&quot;!==St||(R(K,(et-Tt.b)/et,(et-Tt.t)/et,ht,rt.yaxes),Vt(&quot;y&quot;,ht))}function Rt(){Dt(),q(t),Gt(),H(t)}Pt.prepFn=function(e,r,n){var a=Pt.dragmode,s=t._fullLayout.dragmode;s!==a&amp;&amp;(Pt.dragmode=s),yt(),pt=t._fullLayout._invScaleX,dt=t._fullLayout._invScaleY,ot||(mt?e.shiftKey?&quot;pan&quot;===s?s=&quot;zoom&quot;:y(s)||(s=&quot;pan&quot;):e.ctrlKey&amp;&amp;(s=&quot;pan&quot;):s=&quot;pan&quot;),x(s)?Pt.minDrag=1:Pt.minDrag=void 0,y(s)?(Pt.xaxes=J,Pt.yaxes=K,A(e,r,n,Pt,s)):(Pt.clickFn=Ot,y(a)&amp;&amp;It(),ot||(&quot;zoom&quot;===s?(Pt.moveFn=zt,Pt.doneFn=Rt,Pt.minDrag=1,function(e,r,n){var a=bt.getBoundingClientRect();_t=r-a.left,wt=n-a.top,t._fullLayout._calcInverseTransform(t);var s=i.apply3DTransform(t._fullLayout._invTransform)(_t,wt);_t=s[0],wt=s[1],Tt={l:_t,r:_t,w:0,t:wt,b:wt,h:0},kt=t._hmpixcount?t._hmlumcount/t._hmpixcount:o(t._fullLayout.plot_bgcolor).getLuminance(),Mt=!1,St=&quot;xy&quot;,Ct=!1,Et=N(gt,kt,Q,$,At=&quot;M0,0H&quot;+tt+&quot;V&quot;+et+&quot;H0V0&quot;),Lt=j(gt,Q,$)}(0,r,n)):&quot;pan&quot;===s&amp;&amp;(Pt.moveFn=Ut,Pt.doneFn=Gt))),t._fullLayout._redrag=function(){var e=t._dragdata;if(e&amp;&amp;e.element===bt){var r=t._fullLayout.dragmode;y(r)||(yt(),Yt([0,0,tt,et]),Pt.moveFn(e.dx,e.dy))}}},m.init(Pt);var Ft=[0,0,tt,et],Bt=null,Nt=L.REDRAWDELAY,jt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function Ut(e,r){if(e*=pt,r*=dt,!t._transitioningWithDuration){if(t._fullLayout._replotting=!0,&quot;ew&quot;===it||&quot;ns&quot;===at){var n=it?-e:0,i=at?-r:0;if(nt.isSubplotConstrained){if(it&amp;&amp;at){var a=(e/tt-r/et)/2;n=-(e=a*tt),i=-(r=-a*et)}at?n=-i*tt/et:i=-n*et/tt}return it&amp;&amp;(F(J,e),Vt(&quot;x&quot;)),at&amp;&amp;(F(K,r),Vt(&quot;y&quot;)),Yt([n,i,tt,et]),qt(),void t.emit(&quot;plotly_relayouting&quot;,ht)}var o,s,l=&quot;w&quot;===it==(&quot;n&quot;===at)?1:-1;if(it&amp;&amp;at&amp;&amp;(rt.isSubplotConstrained||nt.isSubplotConstrained)){var c=(e/tt+l*r/et)/2;e=c*tt,r=l*c*et}if(&quot;w&quot;===it?e=p(J,0,e):&quot;e&quot;===it?e=p(J,1,-e):it||(e=0),&quot;n&quot;===at?r=p(K,1,r):&quot;s&quot;===at?r=p(K,0,-r):at||(r=0),o=&quot;w&quot;===it?e:0,s=&quot;n&quot;===at?r:0,rt.isSubplotConstrained&amp;&amp;!nt.isSubplotConstrained||nt.isSubplotConstrained&amp;&amp;it&amp;&amp;at&amp;&amp;l&gt;0){var u;if(nt.isSubplotConstrained||!it&amp;&amp;1===at.length){for(u=0;u&lt;J.length;u++)J[u].range=J[u]._r.slice(),E(J[u],1-r/et);o=(e=r*tt/et)/2}if(nt.isSubplotConstrained||!at&amp;&amp;1===it.length){for(u=0;u&lt;K.length;u++)K[u].range=K[u]._r.slice(),E(K[u],1-e/tt);s=(r=e*et/tt)/2}}nt.isSubplotConstrained&amp;&amp;at||Vt(&quot;x&quot;),nt.isSubplotConstrained&amp;&amp;it||Vt(&quot;y&quot;);var f=tt-e,h=et-r;!nt.isSubplotConstrained||it&amp;&amp;at||(it?(s=o?0:e*et/tt,h=f*et/tt):(o=s?0:r*tt/et,f=h*tt/et)),Yt([o,s,f,h]),qt(),t.emit(&quot;plotly_relayouting&quot;,ht)}function p(t,e,r){for(var n,i,a=1-e,o=0;o&lt;t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/B(r/s._length);var l=s.l2r(i);!1!==l&amp;&amp;void 0!==l&amp;&amp;(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Vt(t,e){for(var r=nt.isSubplotConstrained?{x:K,y:J}[t]:nt[t+&quot;axes&quot;],n=nt.isSubplotConstrained?{x:J,y:K}[t]:[],i=0;i&lt;r.length;i++){var a=r[i],o=a._id,s=nt.xLinks[o]||nt.yLinks[o],l=n[0]||V[s]||Z[s];l&amp;&amp;(e?(e[a._name+&quot;.range[0]&quot;]=e[l._name+&quot;.range[0]&quot;],e[a._name+&quot;.range[1]&quot;]=e[l._name+&quot;.range[1]&quot;]):a.range=l.range.slice())}}function qt(){var e,r=[];function n(t){for(e=0;e&lt;t.length;e++)t[e].fixedrange||r.push(t[e]._id)}for(st&amp;&amp;(n(J),n(rt.xaxes),n(nt.xaxes)),lt&amp;&amp;(n(K),n(rt.yaxes),n(nt.yaxes)),ht={},e=0;e&lt;r.length;e++){var i=r[e],a=k(t,i);d.drawOne(t,a,{skipTitle:!0}),ht[a._name+&quot;.range[0]&quot;]=a.range[0],ht[a._name+&quot;.range[1]&quot;]=a.range[1]}d.redrawComponents(t,r)}function Ht(){if(!t._transitioningWithDuration){var e=t._context.doubleClick,r=[];it&amp;&amp;(r=r.concat(J)),at&amp;&amp;(r=r.concat(K)),nt.xaxes&amp;&amp;(r=r.concat(nt.xaxes)),nt.yaxes&amp;&amp;(r=r.concat(nt.yaxes));var n,i,a,o={};if(&quot;reset+autosize&quot;===e)for(e=&quot;autosize&quot;,i=0;i&lt;r.length;i++)if((n=r[i])._rangeInitial&amp;&amp;(n.range[0]!==n._rangeInitial[0]||n.range[1]!==n._rangeInitial[1])||!n._rangeInitial&amp;&amp;!n.autorange){e=&quot;reset&quot;;break}if(&quot;autosize&quot;===e)for(i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(o[n._name+&quot;.autorange&quot;]=!0);else if(&quot;reset&quot;===e)for((it||rt.isSubplotConstrained)&amp;&amp;(r=r.concat(rt.xaxes)),at&amp;&amp;!rt.isSubplotConstrained&amp;&amp;(r=r.concat(rt.yaxes)),rt.isSubplotConstrained&amp;&amp;(it?at||(r=r.concat(K)):r=r.concat(J)),i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(n._rangeInitial?(a=n._rangeInitial,o[n._name+&quot;.range[0]&quot;]=a[0],o[n._name+&quot;.range[1]&quot;]=a[1]):o[n._name+&quot;.autorange&quot;]=!0);t.emit(&quot;plotly_doubleclick&quot;,null),l.call(&quot;_guiRelayout&quot;,t,o)}}function Gt(){Yt([0,0,tt,et]),i.syncOrAsync([T.previousPromises,function(){t._fullLayout._replotting=!1,l.call(&quot;_guiRelayout&quot;,t,ht)}],t)}function Yt(e){var r,n,a,o,s=t._fullLayout,c=s._plots,u=s._subplots.cartesian;if(ut&amp;&amp;l.subplotsRegistry.splom.drag(t),ct)for(r=0;r&lt;u.length;r++)if(a=(n=c[u[r]]).xaxis,o=n.yaxis,n._scene){var f=i.simpleMap(a.range,a.r2l),p=i.simpleMap(o.range,o.r2l);n._scene.update({range:[f[0],p[0],f[1],p[1]]})}if((ut||ct)&amp;&amp;(_(t),w(t)),ft){var d=e[2]/I._length,m=e[3]/O._length;for(r=0;r&lt;u.length;r++){a=(n=c[u[r]]).xaxis,o=n.yaxis;var y,x,b,T,k=(st||nt.isSubplotConstrained)&amp;&amp;!a.fixedrange&amp;&amp;V[a._id],A=(lt||nt.isSubplotConstrained)&amp;&amp;!o.fixedrange&amp;&amp;Z[o._id];if(k?(y=d,b=v||nt.isSubplotConstrained?e[0]:Zt(a,y)):nt.xaHash[a._id]?(y=d,b=e[0]*a._length/I._length):nt.yaHash[a._id]?(y=m,b=&quot;ns&quot;===at?-e[1]*a._length/O._length:Zt(a,y,{n:&quot;top&quot;,s:&quot;bottom&quot;}[at])):b=Xt(a,y=Wt(a,d,m)),A?(x=m,T=g||nt.isSubplotConstrained?e[1]:Zt(o,x)):nt.yaHash[o._id]?(x=m,T=e[1]*o._length/O._length):nt.xaHash[o._id]?(x=d,T=&quot;ew&quot;===it?-e[0]*o._length/I._length:Zt(o,x,{e:&quot;right&quot;,w:&quot;left&quot;}[it])):T=Xt(o,x=Wt(o,d,m)),y||x){y||(y=1),x||(x=1);var M=a._offset-b/y,S=o._offset-T/x;n.clipRect.call(h.setTranslate,b,T).call(h.setScale,y,x),n.plot.call(h.setTranslate,M,S).call(h.setScale,1/y,1/x),y===n.xScaleFactor&amp;&amp;x===n.yScaleFactor||(h.setPointGroupScale(n.zoomScalePts,y,x),h.setTextPointsScale(n.zoomScaleTxt,y,x)),h.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=y,n.yScaleFactor=x}}}}function Wt(t,e,r){return t.fixedrange?0:st&amp;&amp;rt.xaHash[t._id]?e:lt&amp;&amp;(rt.isSubplotConstrained?rt.xaHash:rt.yaHash)[t._id]?r:0}function Xt(t,e){return e?(t.range=t._r.slice(),E(t,e),Zt(t,e)):0}function Zt(t,e,r){return t._length*(1-e)*b[r||t.constraintoward||&quot;middle&quot;]}return g.length*v.length!=1&amp;&amp;W(bt,(function(e){if(t._context._scrollZoom.cartesian||t._fullLayout._enablescrollzoom){if(It(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();yt(),clearTimeout(Bt);var r=-e.deltaY;if(isFinite(r)||(r=e.wheelDelta/10),isFinite(r)){var n,a=Math.exp(-Math.min(Math.max(r,-20),20)/200),o=jt.draglayer.select(&quot;.nsewdrag&quot;).node().getBoundingClientRect(),s=(e.clientX-o.left)/o.width,l=(o.bottom-e.clientY)/o.height;if(st){for(v||(s=.5),n=0;n&lt;J.length;n++)c(J[n],s,a);Vt(&quot;x&quot;),Ft[2]*=a,Ft[0]+=Ft[2]*s*(1/a-1)}if(lt){for(g||(l=.5),n=0;n&lt;K.length;n++)c(K[n],l,a);Vt(&quot;y&quot;),Ft[3]*=a,Ft[1]+=Ft[3]*(1-l)*(1/a-1)}Yt(Ft),qt(),t.emit(&quot;plotly_relayouting&quot;,ht),Bt=setTimeout((function(){t._fullLayout&amp;&amp;(Ft=[0,0,tt,et],Gt())}),Nt),e.preventDefault()}else i.log(&quot;Did not find wheel motion attributes: &quot;,e)}function c(t,e,r){if(!t.fixedrange){var n=i.simpleMap(t.range,t.r2l),a=n[0]+(n[1]-n[0])*e;t.range=n.map((function(e){return t.l2r(a+(e-a)*r)}))}}})),bt},makeDragger:O,makeRectDragger:z,makeZoombox:N,makeCorners:j,updateZoombox:U,xyCorners:G,transitionZoombox:V,removeZoombox:q,showDoubleClickNotifier:H,attachWheelEventHandler:W}},{&quot;../../components/color&quot;:666,&quot;../../components/dragelement&quot;:685,&quot;../../components/dragelement/helpers&quot;:684,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/clear_gl_canvases&quot;:787,&quot;../../lib/setcursor&quot;:824,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plot_api/subroutines&quot;:844,&quot;../../registry&quot;:931,&quot;../plots&quot;:917,&quot;./axes&quot;:854,&quot;./axis_ids&quot;:858,&quot;./constants&quot;:861,&quot;./scale_zoom&quot;:873,&quot;./select&quot;:874,&quot;@plotly/d3&quot;:58,&quot;has-passive-events&quot;:444,tinycolor2:598}],864:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../components/dragelement&quot;),o=t(&quot;../../lib/setcursor&quot;),s=t(&quot;./dragbox&quot;).makeDragBox,l=t(&quot;./constants&quot;).DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(&quot;.drag&quot;).remove();else if(e._has(&quot;cartesian&quot;)||e._has(&quot;splom&quot;)){Object.keys(e._plots||{}).sort((function(t,r){if((e._plots[t].mainplot&amp;&amp;!0)===(e._plots[r].mainplot&amp;&amp;!0)){var n=t.split(&quot;y&quot;),i=r.split(&quot;y&quot;);return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1})).forEach((function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,&quot;ns&quot;,&quot;ew&quot;);u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&amp;&amp;t._fullLayout._plots[r]&amp;&amp;i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&amp;&amp;(s(t,n,o._offset-l,c._offset-l,l,l,&quot;n&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset-l,l,l,&quot;n&quot;,&quot;e&quot;),s(t,n,o._offset-l,c._offset+c._length,l,l,&quot;s&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset+c._length,l,l,&quot;s&quot;,&quot;e&quot;))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;&quot;top&quot;===o.side&amp;&amp;(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,&quot;&quot;,&quot;ew&quot;),s(t,n,o._offset,f,.1*o._length,l,&quot;&quot;,&quot;w&quot;),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,&quot;&quot;,&quot;e&quot;)}if(r===c._mainSubplot){var h=c._mainLinePosition;&quot;right&quot;!==c.side&amp;&amp;(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,&quot;ns&quot;,&quot;&quot;),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,&quot;s&quot;,&quot;&quot;),s(t,n,h,c._offset,l,.1*c._length,&quot;n&quot;,&quot;&quot;)}}}));var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=&quot;pan&quot;===e.dragmode?&quot;move&quot;:&quot;crosshair&quot;;o(e._draggers,r)}},{&quot;../../components/dragelement&quot;:685,&quot;../../components/fx&quot;:706,&quot;../../lib/setcursor&quot;:824,&quot;./constants&quot;:861,&quot;./dragbox&quot;:863,&quot;@plotly/d3&quot;:58}],865:[function(t,e,r){&quot;use strict&quot;;e.exports={clearOutlineControllers:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.outline-controllers&quot;).remove()},clearSelect:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.select-outline&quot;).remove(),t._fullLayout._drawing=!1}}},{}],866:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).strTranslate;function i(t,e){switch(t.type){case&quot;log&quot;:return t.p2d(e);case&quot;date&quot;:return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}e.exports={p2r:i,r2p:function(t,e){switch(t.type){case&quot;log&quot;:return t.d2p(e);case&quot;date&quot;:return t.r2p(e,0,t.calendar);default:return t.r2p(e)}},axValue:function(t){var e=&quot;y&quot;===t._id.charAt(0)?1:0;return function(r){return i(t,r[e])}},getTransform:function(t){return n(t.xaxis._offset,t.yaxis._offset)}}},{&quot;../../lib&quot;:803}],867:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./axis_ids&quot;);e.exports=function(t){return function(e,r){var o=e[t];if(Array.isArray(o))for(var s=n.subplotsRegistry.cartesian,l=s.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,h=c.cartesian,p=r._has(&quot;cartesian&quot;)||r._has(&quot;gl2d&quot;),d=0;d&lt;o.length;d++){var g=o[d];if(i.isPlainObject(g)){var m=a.cleanId(g.xref,&quot;x&quot;,!1),v=a.cleanId(g.yref,&quot;y&quot;,!1),y=l.x.test(m),x=l.y.test(v);if(y||x){p||i.pushUnique(r._basePlotModules,s);var b=!1;y&amp;&amp;-1===u.indexOf(m)&amp;&amp;(u.push(m),b=!0),x&amp;&amp;-1===f.indexOf(v)&amp;&amp;(f.push(v),b=!0),b&amp;&amp;y&amp;&amp;x&amp;&amp;h.push(m+v)}}}}}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./axis_ids&quot;:858}],868:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../plots&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../get_data&quot;).getModuleCalcData,c=t(&quot;./axis_ids&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../constants/xmlns_namespaces&quot;),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,(function(t){t.datum(r)}))}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,g=d._modules,m=[],v=[],y=0;y&lt;g.length;y++){var x=(c=g[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+&quot;layer&quot;,w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&amp;&amp;m.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&amp;&amp;v.push(&quot;.&quot;+_)}}m.sort((function(t,e){return t.i-e.i}));var T=e.plot.selectAll(&quot;g.mlayer&quot;).data(m,(function(t){return t.className}));if(T.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t.className})).classed(&quot;mlayer&quot;,!0).classed(&quot;rangeplot&quot;,e.isRangePlot),T.exit().remove(),T.order(),T.each((function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),-1===u.clipOnAxisFalseQuery.indexOf(&quot;.&quot;+l)&amp;&amp;s.setClipUrl(i,e.layerClipId,t)})),d._has(&quot;scattergl&quot;)&amp;&amp;(c=i.getModule(&quot;scattergl&quot;),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&amp;&amp;(e._hasClipOnAxisFalse&amp;&amp;(e.clipOnAxisFalseTraces=e.plot.selectAll(u.clipOnAxisFalseQuery.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;)),v.length)){var k=e.plot.selectAll(v.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;);e.zoomScalePts=k.selectAll(&quot;path.point&quot;),e.zoomScaleTxt=k.selectAll(&quot;.textpoint&quot;)}}function g(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+&quot;-x&quot;,d=n+&quot;-y&quot;;e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,&quot;path&quot;,f),h(s.overlinesBelow,&quot;path&quot;,d),h(s.overaxesBelow,&quot;g&quot;,f),h(s.overaxesBelow,&quot;g&quot;,d),e.plot=h(s.overplot,&quot;g&quot;,n),h(s.overlinesAbove,&quot;path&quot;,f),h(s.overlinesAbove,&quot;path&quot;,d),h(s.overaxesAbove,&quot;g&quot;,f),h(s.overaxesAbove,&quot;g&quot;,d),e.xlines=l.select(&quot;.overlines-&quot;+i).select(&quot;.&quot;+f),e.ylines=l.select(&quot;.overlines-&quot;+a).select(&quot;.&quot;+d),e.xaxislayer=l.select(&quot;.overaxes-&quot;+i).select(&quot;.&quot;+f),e.yaxislayer=l.select(&quot;.overaxes-&quot;+a).select(&quot;.&quot;+d)}else if(o)e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.xaxislayer=h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),e.yaxislayer=h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;);else{var g=h(r,&quot;g&quot;,&quot;layer-subplot&quot;);e.shapelayer=h(g,&quot;g&quot;,&quot;shapelayer&quot;),e.imagelayer=h(g,&quot;g&quot;,&quot;imagelayer&quot;),e.gridlayer=h(r,&quot;g&quot;,&quot;gridlayer&quot;),e.zerolinelayer=h(r,&quot;g&quot;,&quot;zerolinelayer&quot;),h(r,&quot;path&quot;,&quot;xlines-below&quot;),h(r,&quot;path&quot;,&quot;ylines-below&quot;),e.overlinesBelow=h(r,&quot;g&quot;,&quot;overlines-below&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-below&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-below&quot;),e.overaxesBelow=h(r,&quot;g&quot;,&quot;overaxes-below&quot;),e.plot=h(r,&quot;g&quot;,&quot;plot&quot;),e.overplot=h(r,&quot;g&quot;,&quot;overplot&quot;),e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.overlinesAbove=h(r,&quot;g&quot;,&quot;overlines-above&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;),e.overaxesAbove=h(r,&quot;g&quot;,&quot;overaxes-above&quot;),e.xlines=r.select(&quot;.xlines-&quot;+i),e.ylines=r.select(&quot;.ylines-&quot;+a),e.xaxislayer=r.select(&quot;.xaxislayer-&quot;+i),e.yaxislayer=r.select(&quot;.yaxislayer-&quot;+a)}o||(p(e.gridlayer,&quot;g&quot;,e.xaxis._id),p(e.gridlayer,&quot;g&quot;,e.yaxis._id),e.gridlayer.selectAll(&quot;g&quot;).map((function(t){return t[0]})).sort(c.idSort)),e.xlines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0),e.ylines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0)}function m(t,e){if(t){var r={};for(var i in t.each((function(t){var i=t[0];n.select(this).remove(),v(i,e),r[i]=!0})),e._plots)for(var a=e._plots[i].overlays||[],o=0;o&lt;a.length;o++){var s=a[o];r[s.id]&amp;&amp;s.plot.selectAll(&quot;.trace&quot;).remove()}}}function v(t,e){e._draggers.selectAll(&quot;g.&quot;+t).remove(),e._defs.select(&quot;#clip&quot;+e._uid+t+&quot;plot&quot;).remove()}r.name=&quot;cartesian&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(&quot;./attributes&quot;),r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.transitionAxes=t(&quot;./transition_axes&quot;),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r&lt;h.length;r++){var g=h[r].split(&quot;y&quot;);p[g[0]]=1,d[&quot;y&quot;+g[1]]=1}for(r=0;r&lt;s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=&quot;y&quot;),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r&lt;l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=&quot;x&quot;),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var m in n=&quot;&quot;,i=&quot;&quot;,t){if(u.attrRegex.test(m))&quot;x&quot;===m.charAt(0)?(!n||+m.substr(5)&lt;+n.substr(5))&amp;&amp;(n=m):(!i||+m.substr(5)&lt;+i.substr(5))&amp;&amp;(i=m)}n=n?c.name2id(n):&quot;x&quot;,i=i?c.name2id(i):&quot;y&quot;,s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(!Array.isArray(e))for(e=[],i=0;i&lt;s.length;i++)e.push(i);for(i=0;i&lt;o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h&lt;s.length;h++){var p=s[h],g=p[0].trace;g.xaxis+g.yaxis===c&amp;&amp;((-1!==e.indexOf(g.index)||g.carpet)&amp;&amp;(l&amp;&amp;l[0].trace.xaxis+l[0].trace.yaxis===c&amp;&amp;-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;,&quot;tonext&quot;].indexOf(g.fill)&amp;&amp;-1===f.indexOf(l)&amp;&amp;f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&amp;&amp;!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&amp;&amp;i.plotgroup.remove();var f=n._has&amp;&amp;n._has(&quot;gl&quot;),h=e._has&amp;&amp;e._has(&quot;gl&quot;);if(f&amp;&amp;!h)for(o in s)(i=s[o])._scene&amp;&amp;i._scene.destroy();if(u.xaxis&amp;&amp;u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a&lt;p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(&quot;.g-&quot;+d+&quot;title&quot;).remove()}}var g=n._has&amp;&amp;n._has(&quot;cartesian&quot;),y=e._has&amp;&amp;e._has(&quot;cartesian&quot;);if(g&amp;&amp;!y)m(n._cartesianlayer.selectAll(&quot;.subplot&quot;),n),n._defs.selectAll(&quot;.axesclip&quot;).remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(a=0;a&lt;u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=&quot;.&quot;+x+&quot;,.&quot;+x+&quot;-x,.&quot;+x+&quot;-y&quot;;n._cartesianlayer.selectAll(b).remove(),v(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e&lt;c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,g=s._plots[d];i.overlays=[],d!==n&amp;&amp;g?(i.mainplot=d,i.mainplotinfo=g,f.push(n)):(i.mainplot=void 0,i.mainplotinfo=void 0,u.push(n))}for(e=0;e&lt;f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var m=u.concat(f),v=new Array(c);for(e=0;e&lt;c;e++){n=m[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||&quot;&quot;,o.overlaying||&quot;&quot;];for(r=0;r&lt;i.overlays.length;r++)y.push(i.overlays[r].id);v[e]=y}return v}(t),i=e._cartesianlayer.selectAll(&quot;.subplot&quot;).data(r,String);i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;subplot &quot;+t[0]})),i.order(),i.exit().call(m,e),i.each((function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),g(t,a),a.draglayer=h(e._draggers,&quot;g&quot;,i)}))},r.rangePlot=function(t,e,r){g(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:f.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.style.width,height:this.style.height})}))},r.updateFx=t(&quot;./graph_interact&quot;).updateFx},{&quot;../../components/drawing&quot;:688,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../get_data&quot;:891,&quot;../plots&quot;:917,&quot;./attributes&quot;:852,&quot;./axis_ids&quot;:858,&quot;./constants&quot;:861,&quot;./graph_interact&quot;:864,&quot;./layout_attributes&quot;:869,&quot;./layout_defaults&quot;:870,&quot;./transition_axes&quot;:879,&quot;@plotly/d3&quot;:58}],869:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray,l=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionWithDates,c=t(&quot;../../constants/numerical&quot;).ONEDAY,u=t(&quot;./constants&quot;),f=u.HOUR_PATTERN,h=u.WEEKDAY_PATTERN;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},title:{text:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},font:n({editType:&quot;ticks&quot;}),standoff:{valType:&quot;number&quot;,min:0,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;,&quot;multicategory&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;axrange&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0},{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0}],editType:&quot;axrange&quot;,impliedEdits:{autorange:!1},anim:!0},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},scaleanchor:{valType:&quot;enumerated&quot;,values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;plot&quot;},scaleratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},constrain:{valType:&quot;enumerated&quot;,values:[&quot;range&quot;,&quot;domain&quot;],editType:&quot;plot&quot;},constraintoward:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;plot&quot;},matches:{valType:&quot;enumerated&quot;,values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;calc&quot;},rangebreaks:s(&quot;rangebreak&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},bounds:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},pattern:{valType:&quot;enumerated&quot;,values:[h,f,&quot;&quot;],editType:&quot;calc&quot;},values:{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;any&quot;,editType:&quot;calc&quot;}},dvalue:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:c},editType:&quot;calc&quot;}),tickmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;linear&quot;,&quot;array&quot;],editType:&quot;ticks&quot;,impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;ticks&quot;},tick0:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},dtick:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},tickvals:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticks:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;&quot;],editType:&quot;ticks&quot;},tickson:{valType:&quot;enumerated&quot;,values:[&quot;labels&quot;,&quot;boundaries&quot;],dflt:&quot;labels&quot;,editType:&quot;ticks&quot;},ticklabelmode:{valType:&quot;enumerated&quot;,values:[&quot;instant&quot;,&quot;period&quot;],dflt:&quot;instant&quot;,editType:&quot;ticks&quot;},ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;,editType:&quot;calc&quot;},ticklabeloverflow:{valType:&quot;enumerated&quot;,values:[&quot;allow&quot;,&quot;hide past div&quot;,&quot;hide past domain&quot;],editType:&quot;calc&quot;},mirror:{valType:&quot;enumerated&quot;,values:[!0,&quot;ticks&quot;,!1,&quot;all&quot;,&quot;allticks&quot;],dflt:!1,editType:&quot;ticks+layoutstyle&quot;},ticklen:{valType:&quot;number&quot;,min:0,dflt:5,editType:&quot;ticks&quot;},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},tickcolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},showticklabels:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},showspikes:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;modebar&quot;},spikecolor:{valType:&quot;color&quot;,dflt:null,editType:&quot;none&quot;},spikethickness:{valType:&quot;number&quot;,dflt:3,editType:&quot;none&quot;},spikedash:o({},a,{dflt:&quot;dash&quot;,editType:&quot;none&quot;}),spikemode:{valType:&quot;flaglist&quot;,flags:[&quot;toaxis&quot;,&quot;across&quot;,&quot;marker&quot;],dflt:&quot;toaxis&quot;,editType:&quot;none&quot;},spikesnap:{valType:&quot;enumerated&quot;,values:[&quot;data&quot;,&quot;cursor&quot;,&quot;hovered data&quot;],dflt:&quot;hovered data&quot;,editType:&quot;none&quot;},tickfont:n({editType:&quot;ticks&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;ticks&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;ticks&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;ticks&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;,description:l(&quot;tick label&quot;)},tickformatstops:s(&quot;tickformatstop&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dtickrange:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;ticks&quot;},{valType:&quot;any&quot;,editType:&quot;ticks&quot;}],editType:&quot;ticks&quot;},value:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;}),hoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;,description:l(&quot;hover text&quot;)},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks+layoutstyle&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;layoutstyle&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks+layoutstyle&quot;},showgrid:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},gridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;ticks&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},zeroline:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},zerolinecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},zerolinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},showdividers:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dividercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},dividerwidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],editType:&quot;plot&quot;},overlaying:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;plot&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;above traces&quot;,&quot;below traces&quot;],dflt:&quot;above traces&quot;,editType:&quot;plot&quot;},domain:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;}],dflt:[0,1],editType:&quot;plot&quot;},position:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;,&quot;total ascending&quot;,&quot;total descending&quot;,&quot;min ascending&quot;,&quot;min descending&quot;,&quot;max ascending&quot;,&quot;max descending&quot;,&quot;sum ascending&quot;,&quot;sum descending&quot;,&quot;mean ascending&quot;,&quot;mean descending&quot;,&quot;median ascending&quot;,&quot;median descending&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{autotick:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},title:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},titlefont:n({editType:&quot;ticks&quot;})}}},{&quot;../../components/color/attributes&quot;:665,&quot;../../components/drawing/attributes&quot;:687,&quot;../../constants/numerical&quot;:779,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../font_attributes&quot;:883,&quot;./constants&quot;:861}],870:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/fx/helpers&quot;).isUnifiedHover,o=t(&quot;../../components/fx/hovermode_defaults&quot;),s=t(&quot;../../plot_api/plot_template&quot;),l=t(&quot;../layout_attributes&quot;),c=t(&quot;./layout_attributes&quot;),u=t(&quot;./type_defaults&quot;),f=t(&quot;./axis_defaults&quot;),h=t(&quot;./constraints&quot;),p=t(&quot;./position_defaults&quot;),d=t(&quot;./axis_ids&quot;),g=d.id2name,m=d.name2id,v=t(&quot;./constants&quot;).AX_ID_PATTERN,y=t(&quot;../../registry&quot;),x=y.traceIs,b=y.getComponentMethod;function _(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var y,w,T=e.autotypenumbers,k={},A={},M={},S={},E={},L={},C={},P={},I={},O={};for(y=0;y&lt;r.length;y++){var z=r[y];if(x(z,&quot;cartesian&quot;)||x(z,&quot;gl2d&quot;)){var D,R;if(z.xaxis)D=g(z.xaxis),_(k,D,z);else if(z.xaxes)for(w=0;w&lt;z.xaxes.length;w++)_(k,g(z.xaxes[w]),z);if(z.yaxis)R=g(z.yaxis),_(k,R,z);else if(z.yaxes)for(w=0;w&lt;z.yaxes.length;w++)_(k,g(z.yaxes[w]),z);if(&quot;funnel&quot;===z.type?&quot;h&quot;===z.orientation?(D&amp;&amp;(A[D]=!0),R&amp;&amp;(C[R]=!0)):R&amp;&amp;(M[R]=!0):&quot;image&quot;===z.type?(R&amp;&amp;(P[R]=!0),D&amp;&amp;(P[D]=!0)):(R&amp;&amp;(E[R]=!0,L[R]=!0),x(z,&quot;carpet&quot;)&amp;&amp;(&quot;carpet&quot;!==z.type||z._cheater)||D&amp;&amp;(S[D]=!0)),&quot;carpet&quot;===z.type&amp;&amp;z._cheater&amp;&amp;D&amp;&amp;(A[D]=!0),x(z,&quot;2dMap&quot;)&amp;&amp;(I[D]=!0,I[R]=!0),x(z,&quot;oriented&quot;))O[&quot;h&quot;===z.orientation?R:D]=!0}}var F=e._subplots,B=F.xaxis,N=F.yaxis,j=n.simpleMap(B,g),U=n.simpleMap(N,g),V=j.concat(U),q=i.background;B.length&amp;&amp;N.length&amp;&amp;(q=n.coerce(t,e,l,&quot;plot_bgcolor&quot;));var H,G,Y,W,X,Z=i.combine(q,e.paper_bgcolor);function J(){var t=k[H]||[];X._traceIndices=t.map((function(t){return t._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=H,X._id=G}function K(t,e){return n.coerce(W,X,c,t,e)}function Q(t,e){return n.coerce2(W,X,c,t,e)}function $(t){return&quot;x&quot;===t?N:B}function tt(e,r){for(var n=&quot;x&quot;===e?j:U,i=[],a=0;a&lt;n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(m(o))}return i}var et={x:$(&quot;x&quot;),y:$(&quot;y&quot;)},rt=et.x.concat(et.y),nt={},it=[];function at(){var t=W.matches;v.test(t)&amp;&amp;-1===rt.indexOf(t)&amp;&amp;(nt[t]=W.type,it=Object.keys(nt))}var ot=o(t,e),st=a(ot);for(y=0;y&lt;V.length;y++){H=V[y],G=m(H),Y=H.charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var lt=&quot;x&quot;===Y&amp;&amp;!S[H]&amp;&amp;A[H]||&quot;y&quot;===Y&amp;&amp;!E[H]&amp;&amp;M[H],ct=&quot;y&quot;===Y&amp;&amp;(!L[H]&amp;&amp;C[H]||P[H]),ut={letter:Y,font:e.font,outerTicks:I[H],showGrid:!O[H],data:k[H]||[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:lt,reverseDflt:ct,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),u(W,X,K,ut),f(W,X,K,ut,e);var ft=st&amp;&amp;Y===ot.charAt(0),ht=Q(&quot;spikecolor&quot;,st?X.color:void 0),pt=Q(&quot;spikethickness&quot;,st?1.5:void 0),dt=Q(&quot;spikedash&quot;,st?&quot;dot&quot;:void 0),gt=Q(&quot;spikemode&quot;,st?&quot;across&quot;:void 0),mt=Q(&quot;spikesnap&quot;);K(&quot;showspikes&quot;,!!(ft||ht||pt||dt||gt||mt))||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;title.standoff&quot;),at(),X._input=W}for(y=0;y&lt;it.length;){G=it[y++],Y=(H=g(G)).charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var vt={letter:Y,font:e.font,outerTicks:I[H],showGrid:!O[H],data:[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),X.type=nt[G]||&quot;linear&quot;,f(W,X,K,vt,e),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;fixedrange&quot;),at(),X._input=W}var yt=b(&quot;rangeslider&quot;,&quot;handleDefaults&quot;),xt=b(&quot;rangeselector&quot;,&quot;handleDefaults&quot;);for(y=0;y&lt;j.length;y++)H=j[y],W=t[H],X=e[H],yt(t,e,H),&quot;date&quot;===X.type&amp;&amp;xt(W,X,e,U,X.calendar),K(&quot;fixedrange&quot;);for(y=0;y&lt;U.length;y++){H=U[y],W=t[H],X=e[H];var bt=e[g(X.anchor)];K(&quot;fixedrange&quot;,b(&quot;rangeslider&quot;,&quot;isVisible&quot;)(bt))}h.handleDefaults(t,e,{axIds:rt.concat(it).sort(d.idSort),axHasImage:P})}},{&quot;../../components/color&quot;:666,&quot;../../components/fx/helpers&quot;:702,&quot;../../components/fx/hovermode_defaults&quot;:705,&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../registry&quot;:931,&quot;../layout_attributes&quot;:908,&quot;./axis_defaults&quot;:856,&quot;./axis_ids&quot;:858,&quot;./constants&quot;:861,&quot;./constraints&quot;:862,&quot;./layout_attributes&quot;:869,&quot;./position_defaults&quot;:872,&quot;./type_defaults&quot;:880}],871:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../components/color/attributes&quot;).lightFraction,a=t(&quot;../../lib&quot;);e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(&quot;linecolor&quot;,s),u=l(&quot;linewidth&quot;);r(&quot;showline&quot;,o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(&quot;gridcolor&quot;,n(s,o.bgColor,o.blend||i).toRgbString()),h=l(&quot;gridwidth&quot;);if(r(&quot;showgrid&quot;,o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(&quot;zerolinecolor&quot;,s),d=l(&quot;zerolinewidth&quot;);r(&quot;zeroline&quot;,o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib&quot;:803,tinycolor2:598}],872:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&amp;&amp;(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&amp;&amp;(l=p[h+&quot;side&quot;].split(&quot; &quot;)[0],c=p.domain[h][&quot;right&quot;===l||&quot;top&quot;===l?1:0])),s=s||[0,1],o=o||(n(t.position)?&quot;free&quot;:u[0]||&quot;free&quot;),l=l||(&quot;x&quot;===h?&quot;bottom&quot;:&quot;left&quot;),c=c||0,&quot;free&quot;===i.coerce(t,e,{anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;].concat(u),dflt:o}},&quot;anchor&quot;)&amp;&amp;r(&quot;position&quot;,c),i.coerce(t,e,{side:{valType:&quot;enumerated&quot;,values:&quot;x&quot;===h?[&quot;bottom&quot;,&quot;top&quot;]:[&quot;left&quot;,&quot;right&quot;],dflt:l}},&quot;side&quot;);var d=!1;if(f.length&amp;&amp;(d=i.coerce(t,e,{overlaying:{valType:&quot;enumerated&quot;,values:[!1].concat(f),dflt:!1}},&quot;overlaying&quot;)),!d){var g=r(&quot;domain&quot;,s);g[0]&gt;g[1]-1/4096&amp;&amp;(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(&quot;layer&quot;),e}},{&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],873:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/alignment&quot;).FROM_BL;e.exports=function(t,e,r){void 0===r&amp;&amp;(r=n[t.constraintoward||&quot;center&quot;]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{&quot;../../constants/alignment&quot;:771}],874:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;polybooljs&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/drawing&quot;).dashStyle,o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/fx/helpers&quot;).makeEventData,c=t(&quot;../../components/dragelement/helpers&quot;),u=c.freeMode,f=c.rectMode,h=c.drawMode,p=c.openMode,d=c.selectMode,g=t(&quot;../../components/shapes/draw_newshape/display_outlines&quot;),m=t(&quot;../../components/shapes/draw_newshape/helpers&quot;).handleEllipse,v=t(&quot;../../components/shapes/draw_newshape/newshapes&quot;),y=t(&quot;../../lib&quot;),x=t(&quot;../../lib/polygon&quot;),b=t(&quot;../../lib/throttle&quot;),_=t(&quot;./axis_ids&quot;).getFromId,w=t(&quot;../../lib/clear_gl_canvases&quot;),T=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,k=t(&quot;./constants&quot;),A=k.MINSELECT,M=x.filter,S=x.tester,E=t(&quot;./handle_outline&quot;).clearSelect,L=t(&quot;./helpers&quot;),C=L.p2r,P=L.axValue,I=L.getTransform;function O(t,e,r,n,i,a,o){var s,l,c,u,f,h,d,m,v,y=e._hoverdata,x=e._fullLayout.clickmode.indexOf(&quot;event&quot;)&gt;-1,b=[];if(function(t){return t&amp;&amp;Array.isArray(t)&amp;&amp;!0!==t[0].hoverOnBox}(y)){F(t,e,a);var _=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n&lt;e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&amp;&amp;(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(y,s=N(e,r,n,i));if(_.pointNumbers.length&gt;0?function(t,e){var r,n,i,a=[];for(i=0;i&lt;t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&amp;&amp;r.cd[0].trace.selectedpoints.length&gt;0&amp;&amp;a.push(r);if(1===a.length&amp;&amp;a[0]===e.searchInfo&amp;&amp;(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i&lt;e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])&lt;0)return!1;return!0}return!1}(s,_):function(t){var e,r,n,i=0;for(n=0;n&lt;t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length&gt;1)return!1;if((i+=r.selectedpoints.length)&gt;1)return!1}return 1===i}(s)&amp;&amp;(h=j(_))){for(o&amp;&amp;o.remove(),v=0;v&lt;s.length;v++)(l=s[v])._module.selectPoints(l,!1);U(e,s),B(a),x&amp;&amp;e.emit(&quot;plotly_deselect&quot;,null)}else{for(d=t.shiftKey&amp;&amp;(void 0!==h?h:j(_)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(_.pointNumber,_.searchInfo,d),u=R(a.selectionDefs.concat([c])),v=0;v&lt;s.length;v++)if(f=V(s[v]._module.selectPoints(s[v],u),s[v]),b.length)for(var w=0;w&lt;f.length;w++)b.push(f[w]);else b=f;if(U(e,s,m={points:b}),c&amp;&amp;a&amp;&amp;a.selectionDefs.push(c),o){var T=a.mergedPolygons,k=p(a.dragmode);g(q(T,k),o,a)}x&amp;&amp;e.emit(&quot;plotly_selected&quot;,m)}}}function z(t){return&quot;pointNumber&quot;in t&amp;&amp;&quot;searchInfo&quot;in t}function D(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&amp;&amp;n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function R(t){for(var e=[],r=z(t[0])?0:t[0][0][0],n=r,i=z(t[0])?0:t[0][0][1],a=i,o=0;o&lt;t.length;o++)if(z(t[o]))e.push(D(t[o]));else{var s=x.tester(t[o]);s.subtract=t[o].subtract,e.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o&lt;e.length;o++)e[o].contains(t,r,n,i)&amp;&amp;(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function F(t,e,r){e._fullLayout._drawing=!1;var n=e._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&amp;&amp;n._lastSelectedSubplot===i.id,s=(t.shiftKey||t.altKey)&amp;&amp;!(h(a)&amp;&amp;p(a));o&amp;&amp;s&amp;&amp;i.selection&amp;&amp;i.selection.selectionDefs&amp;&amp;!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):s&amp;&amp;i.selection||B(r),o||(E(e),n._lastSelectedSubplot=i.id)}function B(t){var e=t.dragmode,r=t.plotinfo,n=t.gd;if(n._fullLayout._activeShapeIndex&gt;=0&amp;&amp;n._fullLayout._deactivateShape(n),h(e)){var a=n._fullLayout._zoomlayer.selectAll(&quot;.select-outline-&quot;+r.id);if(a&amp;&amp;n._fullLayout._drawing){var o=v(a,t);o&amp;&amp;i.call(&quot;_guiRelayout&quot;,n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=t.selectionDefs=[],r.selection.mergedPolygons=t.mergedPolygons=[]}function N(t,e,r,n){var i,a,o,s=[],l=e.map((function(t){return t._id})),c=r.map((function(t){return t._id}));for(o=0;o&lt;t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&amp;&amp;a._module&amp;&amp;a._module.selectPoints)if(!n||a.subplot!==n&amp;&amp;a.geo!==n)if(&quot;splom&quot;===a.type&amp;&amp;a._xaxes[l[0]]&amp;&amp;a._yaxes[c[0]]){var u=h(a._module,i,e[0],r[0]);u.scene=t._fullLayout._splomScenes[a.uid],s.push(u)}else if(&quot;sankey&quot;===a.type){var f=h(a._module,i,e[0],r[0]);s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,_(t,a.xaxis),_(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function j(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length&gt;0?n[0]:r;return!!e.selectedpoints&amp;&amp;e.selectedpoints.indexOf(i)&gt;-1}function U(t,e,r){var n,a,o,s;for(n=0;n&lt;e.length;n++){var l=e[n].cd[0].trace._fullInput,c=t._fullLayout._tracePreGUI[l.uid]||{};void 0===c.selectedpoints&amp;&amp;(c.selectedpoints=l._input.selectedpoints||null)}if(r){var u=r.points||[];for(n=0;n&lt;e.length;n++)(s=e[n].cd[0].trace)._input.selectedpoints=s._fullInput.selectedpoints=[],s._fullInput!==s&amp;&amp;(s.selectedpoints=[]);for(n=0;n&lt;u.length;n++){var f=u[n],h=f.data,p=f.fullData;f.pointIndices?([].push.apply(h.selectedpoints,f.pointIndices),s._fullInput!==s&amp;&amp;[].push.apply(p.selectedpoints,f.pointIndices)):(h.selectedpoints.push(f.pointIndex),s._fullInput!==s&amp;&amp;p.selectedpoints.push(f.pointIndex))}}else for(n=0;n&lt;e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints,s._fullInput!==s&amp;&amp;delete s._fullInput.selectedpoints;var d=!1;for(n=0;n&lt;e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,&quot;regl&quot;)&amp;&amp;(d=!0);var g=a._module,m=g.styleOnSelect||g.style;m&amp;&amp;(m(t,o,o[0].node3),o[0].nodeRangePlot3&amp;&amp;m(t,o,o[0].nodeRangePlot3))}d&amp;&amp;(w(t),T(t))}function V(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i&lt;t.length;i++)t[i]=l(t[i],n,r);return t}function q(t,e){for(var r=[],n=0;n&lt;t.length;n++){r[n]=[];for(var i=0;i&lt;t[n].length;i++){r[n][i]=[],r[n][i][0]=i?&quot;L&quot;:&quot;M&quot;;for(var a=0;a&lt;t[n][i].length;a++)r[n][i].push(t[n][i][a])}e||r[n].push([&quot;Z&quot;,r[n][0][1],r[n][0][2]])}return r}e.exports={prepSelect:function(t,e,r,i,l){var c=u(l),v=f(l),x=p(l),_=h(l),w=d(l),T=&quot;drawcircle&quot;===l,E=&quot;drawline&quot;===l||T,L=i.gd,z=L._fullLayout,D=z._zoomlayer,j=i.element.getBoundingClientRect(),H=i.plotinfo,G=I(H),Y=e-j.left,W=r-j.top;z._calcInverseTransform(L);var X=y.apply3DTransform(z._invTransform)(Y,W);Y=X[0],W=X[1];var Z,J,K,Q,$,tt,et,rt=z._invScaleX,nt=z._invScaleY,it=Y,at=W,ot=&quot;M&quot;+Y+&quot;,&quot;+W,st=i.xaxes[0]._length,lt=i.yaxes[0]._length,ct=i.xaxes.concat(i.yaxes),ut=t.altKey&amp;&amp;!(h(l)&amp;&amp;x);F(t,L,i),c&amp;&amp;(Z=M([[Y,W]],k.BENDPX));var ft=D.selectAll(&quot;path.select-outline-&quot;+H.id).data(_?[0]:[1,2]),ht=z.newshape;ft.enter().append(&quot;path&quot;).attr(&quot;class&quot;,(function(t){return&quot;select-outline select-outline-&quot;+t+&quot; select-outline-&quot;+H.id})).style(_?{opacity:ht.opacity/2,fill:x?void 0:ht.fillcolor,stroke:ht.line.color,&quot;stroke-dasharray&quot;:a(ht.line.dash,ht.line.width),&quot;stroke-width&quot;:ht.line.width+&quot;px&quot;}:{}).attr(&quot;fill-rule&quot;,ht.fillrule).classed(&quot;cursor-move&quot;,!!_).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,ot+&quot;Z&quot;);var pt,dt=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:o.background,stroke:o.defaultLine,&quot;stroke-width&quot;:1}).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,&quot;M0,0Z&quot;),gt=z._uid+k.SELECTID,mt=[],vt=N(L,i.xaxes,i.yaxes,i.subplot);function yt(t,e){return t-e}pt=H.fillRangeItems?H.fillRangeItems:v?function(t,e){var r=t.range={};for($=0;$&lt;ct.length;$++){var n=ct[$],i=n._id.charAt(0);r[n._id]=[C(n,e[i+&quot;min&quot;]),C(n,e[i+&quot;max&quot;])].sort(yt)}}:function(t,e,r){var n=t.lassoPoints={};for($=0;$&lt;ct.length;$++){var i=ct[$];n[i._id]=r.filtered.map(P(i))}},i.moveFn=function(t,e){it=Math.max(0,Math.min(st,rt*t+Y)),at=Math.max(0,Math.min(lt,nt*e+W));var r=Math.abs(it-Y),a=Math.abs(at-W);if(v){var o,s,l;if(w){var u=z.selectdirection;switch(o=&quot;any&quot;===u?a&lt;Math.min(.6*r,A)?&quot;h&quot;:r&lt;Math.min(.6*a,A)?&quot;v&quot;:&quot;d&quot;:u){case&quot;h&quot;:s=T?lt/2:0,l=lt;break;case&quot;v&quot;:s=T?st/2:0,l=st}}if(_)switch(z.newshape.drawdirection){case&quot;vertical&quot;:o=&quot;h&quot;,s=T?lt/2:0,l=lt;break;case&quot;horizontal&quot;:o=&quot;v&quot;,s=T?st/2:0,l=st;break;case&quot;ortho&quot;:r&lt;a?(o=&quot;h&quot;,s=W,l=at):(o=&quot;v&quot;,s=Y,l=it);break;default:o=&quot;d&quot;}&quot;h&quot;===o?((Q=E?m(T,[it,s],[it,l]):[[Y,s],[Y,l],[it,l],[it,s]]).xmin=E?it:Math.min(Y,it),Q.xmax=E?it:Math.max(Y,it),Q.ymin=Math.min(s,l),Q.ymax=Math.max(s,l),dt.attr(&quot;d&quot;,&quot;M&quot;+Q.xmin+&quot;,&quot;+(W-A)+&quot;h-4v&quot;+2*A+&quot;h4ZM&quot;+(Q.xmax-1)+&quot;,&quot;+(W-A)+&quot;h4v&quot;+2*A+&quot;h-4Z&quot;)):&quot;v&quot;===o?((Q=E?m(T,[s,at],[l,at]):[[s,W],[s,at],[l,at],[l,W]]).xmin=Math.min(s,l),Q.xmax=Math.max(s,l),Q.ymin=E?at:Math.min(W,at),Q.ymax=E?at:Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M&quot;+(Y-A)+&quot;,&quot;+Q.ymin+&quot;v-4h&quot;+2*A+&quot;v4ZM&quot;+(Y-A)+&quot;,&quot;+(Q.ymax-1)+&quot;v4h&quot;+2*A+&quot;v-4Z&quot;)):&quot;d&quot;===o&amp;&amp;((Q=E?m(T,[Y,W],[it,at]):[[Y,W],[Y,at],[it,at],[it,W]]).xmin=Math.min(Y,it),Q.xmax=Math.max(Y,it),Q.ymin=Math.min(W,at),Q.ymax=Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M0,0Z&quot;))}else c&amp;&amp;(Z.addPt([it,at]),Q=Z.filtered);i.selectionDefs&amp;&amp;i.selectionDefs.length?(K=function(t,e,r){if(r)return n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions;return n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,Q,ut),Q.subtract=ut,J=R(i.selectionDefs.concat([Q]))):(K=[Q],J=S(Q)),g(q(K,x),ft,i),w&amp;&amp;b.throttle(gt,k.SELECTDELAY,(function(){var t;mt=[];var e,r=[];for($=0;$&lt;vt.length;$++)if(e=(tt=vt[$])._module.selectPoints(tt,J),r.push(e),t=V(e,tt),mt.length)for(var n=0;n&lt;t.length;n++)mt.push(t[n]);else mt=t;U(L,vt,et={points:mt}),pt(et,Q,Z),i.gd.emit(&quot;plotly_selecting&quot;,et)}))},i.clickFn=function(t,e){if(dt.remove(),L._fullLayout._activeShapeIndex&gt;=0)L._fullLayout._deactivateShape(L);else if(!_){var r=z.clickmode;b.done(gt).then((function(){if(b.clear(gt),2===t){for(ft.remove(),$=0;$&lt;vt.length;$++)(tt=vt[$])._module.selectPoints(tt,!1);U(L,vt),B(i),L.emit(&quot;plotly_deselect&quot;,null)}else r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;O(e,L,i.xaxes,i.yaxes,i.subplot,i,ft),&quot;event&quot;===r&amp;&amp;L.emit(&quot;plotly_selected&quot;,void 0);s.click(L,e)})).catch(y.error)}},i.doneFn=function(){dt.remove(),b.done(gt).then((function(){b.clear(gt),i.gd.emit(&quot;plotly_selected&quot;,et),Q&amp;&amp;i.selectionDefs&amp;&amp;(Q.subtract=ut,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,K)),i.doneFnCompleted&amp;&amp;i.doneFnCompleted(mt)})).catch(y.error),_&amp;&amp;B(i)}},clearSelect:E,clearSelectionsCache:B,selectOnClick:O}},{&quot;../../components/color&quot;:666,&quot;../../components/dragelement/helpers&quot;:684,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../components/fx/helpers&quot;:702,&quot;../../components/shapes/draw_newshape/display_outlines&quot;:754,&quot;../../components/shapes/draw_newshape/helpers&quot;:755,&quot;../../components/shapes/draw_newshape/newshapes&quot;:756,&quot;../../lib&quot;:803,&quot;../../lib/clear_gl_canvases&quot;:787,&quot;../../lib/polygon&quot;:815,&quot;../../lib/throttle&quot;:830,&quot;../../plot_api/subroutines&quot;:844,&quot;../../registry&quot;:931,&quot;./axis_ids&quot;:858,&quot;./constants&quot;:861,&quot;./handle_outline&quot;:865,&quot;./helpers&quot;:866,polybooljs:504}],875:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;../../lib&quot;),o=a.numberFormat,s=t(&quot;fast-isnumeric&quot;),l=a.cleanNumber,c=a.ms2DateTime,u=a.dateTime2ms,f=a.ensureNumber,h=a.isArrayOrTypedArray,p=t(&quot;../../constants/numerical&quot;),d=p.FP_SAFE,g=p.BADNUM,m=p.LOG_CLIP,v=p.ONEWEEK,y=p.ONEDAY,x=p.ONEHOUR,b=p.ONEMIN,_=p.ONESEC,w=t(&quot;./axis_ids&quot;),T=t(&quot;./constants&quot;),k=T.HOUR_PATTERN,A=T.WEEKDAY_PATTERN;function M(t){return Math.pow(10,t)}function S(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||&quot;x&quot;,p=r.charAt(0);function E(e,r){if(e&gt;0)return Math.log(e)/Math.LN10;if(e&lt;=0&amp;&amp;r&amp;&amp;t.range&amp;&amp;2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*m*Math.abs(n-i))}return g}function L(e,r,n,i){if((i||{}).msUTC&amp;&amp;s(e))return+e;var o=u(e,n||t.calendar);if(o===g){if(!s(e))return g;e=+e;var l=Math.floor(10*a.mod(e+.05,1)),c=Math.round(e-l/10);o=u(new Date(c))+l/10}return o}function C(e,r,n){return c(e,r,n||t.calendar)}function P(e){return t._categories[Math.round(e)]}function I(e){if(S(e)){if(void 0===t._categoriesMap&amp;&amp;(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(&quot;number&quot;==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return g}function O(e){if(t._categoriesMap)return t._categoriesMap[e]}function z(t){var e=O(t);return void 0!==e?e:s(t)?+t:void 0}function D(t){return s(t)?+t:O(t)}function R(t,e,r){return n.round(r+e*t,2)}function F(t,e,r){return(t-r)/e}var B=function(e){return s(e)?R(e,t._m,t._b):g},N=function(e){return F(e,t._m,t._b)};if(t.rangebreaks){var j=&quot;y&quot;===p;B=function(e){if(!s(e))return g;var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);var n=j;t.range[0]&gt;t.range[1]&amp;&amp;(n=!n);for(var i=n?-1:1,a=i*e,o=0,l=0;l&lt;r;l++){var c=i*t._rangebreaks[l].min,u=i*t._rangebreaks[l].max;if(a&lt;c)break;if(!(a&gt;u)){o=a&lt;(c+u)/2?l:l+1;break}o=l+1}var f=t._B[o]||0;return isFinite(f)?R(e,t._m2,f):0},N=function(e){var r=t._rangebreaks.length;if(!r)return F(e,t._m,t._b);for(var n=0,i=0;i&lt;r&amp;&amp;!(e&lt;t._rangebreaks[i].pmin);i++)e&gt;t._rangebreaks[i].pmax&amp;&amp;(n=i+1);return F(e,t._m2,t._B[n])}}t.c2l=&quot;log&quot;===t.type?E:f,t.l2c=&quot;log&quot;===t.type?M:f,t.l2p=B,t.p2l=N,t.c2p=&quot;log&quot;===t.type?function(t,e){return B(E(t,e))}:B,t.p2c=&quot;log&quot;===t.type?function(t){return M(N(t))}:N,-1!==[&quot;linear&quot;,&quot;-&quot;].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(e){return t.l2p(l(e))},t.p2d=t.p2r=N,t.cleanPos=f):&quot;log&quot;===t.type?(t.d2r=t.d2l=function(t,e){return E(l(t),e)},t.r2d=t.r2c=function(t){return M(l(t))},t.d2c=t.r2l=l,t.c2d=t.l2r=f,t.c2r=E,t.l2d=M,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return M(N(t))},t.r2p=function(e){return t.l2p(l(e))},t.p2r=N,t.cleanPos=f):&quot;date&quot;===t.type?(t.d2r=t.r2d=a.identity,t.d2c=t.r2c=t.d2l=t.r2l=L,t.c2d=t.c2r=t.l2d=t.l2r=C,t.d2p=t.r2p=function(e,r,n){return t.l2p(L(e,0,n))},t.p2d=t.p2r=function(t,e,r){return C(N(t),e,r)},t.cleanPos=function(e){return a.cleanDate(e,g,t.calendar)}):&quot;category&quot;===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=P,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=D(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=f,t.r2l=D,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return P(N(t))},t.r2p=t.d2p,t.p2r=N,t.cleanPos=function(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:f(t)}):&quot;multicategory&quot;===t.type&amp;&amp;(t.r2d=t.c2d=t.l2d=P,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=O,t.l2r=t.c2r=f,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return P(N(t))},t.r2p=t.d2p,t.p2r=N,t.cleanPos=function(t){return Array.isArray(t)||&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:f(t)},t.setupMultiCategory=function(n){var i,o,s=t._traceIndices,l=t._matchGroup;if(l&amp;&amp;0===t._categories.length)for(var c in l)if(c!==r){var u=e[w.id2name(c)];s=s.concat(u._traceIndices)}var f=[[0,{}],[0,{}]],d=[];for(i=0;i&lt;s.length;i++){var g=n[s[i]];if(p in g){var m=g[p],v=g._length||a.minRowLength(m);if(h(m[0])&amp;&amp;h(m[1]))for(o=0;o&lt;v;o++){var y=m[0][o],x=m[1][o];S(y)&amp;&amp;S(x)&amp;&amp;(d.push([y,x]),y in f[0][1]||(f[0][1][y]=f[0][0]++),x in f[1][1]||(f[1][1][x]=f[1][0]++))}}}for(d.sort((function(t,e){var r=f[0][1],n=r[t[0]]-r[e[0]];if(n)return n;var i=f[1][1];return i[t[1]]-i[e[1]]})),i=0;i&lt;d.length;i++)I(d[i])}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,r){r||(r={}),e||(e=&quot;range&quot;);var n,i,o=a.nestedProperty(t,e).get();if(i=(i=&quot;date&quot;===t.type?a.dfltRange(t.calendar):&quot;y&quot;===p?T.DFLTRANGEY:r.dfltRange||T.DFLTRANGEX).slice(),&quot;tozero&quot;!==t.rangemode&amp;&amp;&quot;nonnegative&quot;!==t.rangemode||(i[0]=0),o&amp;&amp;2===o.length)for(&quot;date&quot;!==t.type||t.autorange||(o[0]=a.cleanDate(o[0],g,t.calendar),o[1]=a.cleanDate(o[1],g,t.calendar)),n=0;n&lt;2;n++)if(&quot;date&quot;===t.type){if(!a.isDateTime(o[n],t.calendar)){t[e]=i;break}if(t.r2l(o[0])===t.r2l(o[1])){var l=a.constrain(t.r2l(o[0]),a.MIN_MS+1e3,a.MAX_MS-1e3);o[0]=t.l2r(l-1e3),o[1]=t.l2r(l+1e3);break}}else{if(!s(o[n])){if(!s(o[1-n])){t[e]=i;break}o[n]=o[1-n]*(n?10:.1)}if(o[n]&lt;-d?o[n]=-d:o[n]&gt;d&amp;&amp;(o[n]=d),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else a.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=w.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&amp;&amp;t._r?&quot;_r&quot;:&quot;range&quot;,o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f=&quot;y&quot;===p;if((f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks)&amp;&amp;(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._lBreaks+=Math.abs(l.max-l.min);var h=f;c&gt;u&amp;&amp;(h=!h),h&amp;&amp;t._rangebreaks.reverse();var d=h?-1:1;for(t._m2=d*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._B.push(t._B[t._B.length-1]-d*t._m2*(l.max-l.min));for(s=0;s&lt;t._rangebreaks.length;s++)(l=t._rangebreaks[s]).pmin=B(l.min),l.pmax=B(l.max)}if(!isFinite(t._m)||!isFinite(t._b)||t._length&lt;0)throw e._replotting=!1,new Error(&quot;Something went wrong with axis scaling&quot;)},t.maskBreaks=function(e){var r,n,i,o,s,c=t.rangebreaks||[];c._cachedPatterns||(c._cachedPatterns=c.map((function(e){return e.enabled&amp;&amp;e.bounds?a.simpleMap(e.bounds,e.pattern?l:t.d2c):null}))),c._cachedValues||(c._cachedValues=c.map((function(e){return e.enabled&amp;&amp;e.values?a.simpleMap(e.values,t.d2c).sort(a.sorterAsc):null})));for(var u=0;u&lt;c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var h=f.pattern;switch(n=(r=c._cachedPatterns[u])[0],i=r[1],h){case A:o=(s=new Date(e)).getUTCDay(),n&gt;i&amp;&amp;(i+=7,o&lt;n&amp;&amp;(o+=7));break;case k:o=(s=new Date(e)).getUTCHours()+(s.getUTCMinutes()/60+s.getUTCSeconds()/3600+s.getUTCMilliseconds()/36e5),n&gt;i&amp;&amp;(i+=24,o&lt;n&amp;&amp;(o+=24));break;case&quot;&quot;:o=e}if(o&gt;=n&amp;&amp;o&lt;i)return g}else for(var p=c._cachedValues[u],d=0;d&lt;p.length;d++)if(i=(n=p[d])+f.dvalue,e&gt;=n&amp;&amp;e&lt;i)return g}return e},t.locateBreaks=function(e,r){var n,i,o,s,c=[];if(!t.rangebreaks)return c;var u=t.rangebreaks.slice().sort((function(t,e){return t.pattern===A&amp;&amp;e.pattern===k?-1:e.pattern===A&amp;&amp;t.pattern===k?1:0})),f=function(t,n){if((t=a.constrain(t,e,r))!==(n=a.constrain(n,e,r))){for(var i=!0,o=0;o&lt;c.length;o++){var s=c[o];t&lt;s.max&amp;&amp;n&gt;=s.min&amp;&amp;(t&lt;s.min&amp;&amp;(s.min=t),n&gt;s.max&amp;&amp;(s.max=n),i=!1)}i&amp;&amp;c.push({min:t,max:n})}};for(n=0;n&lt;u.length;n++){var h=u[n];if(h.enabled)if(h.bounds){var p=e,d=r;h.pattern&amp;&amp;(p=Math.floor(p)),o=(i=a.simpleMap(h.bounds,h.pattern?l:t.r2l))[0],s=i[1];var g,m,w=new Date(p);switch(h.pattern){case A:m=v,g=(s-o+(s&lt;o?7:0))*y,p+=o*y-(w.getUTCDay()*y+w.getUTCHours()*x+w.getUTCMinutes()*b+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;case k:m=y,g=(s-o+(s&lt;o?24:0))*x,p+=o*x-(w.getUTCHours()*x+w.getUTCMinutes()*b+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;default:p=Math.min(i[0],i[1]),g=m=(d=Math.max(i[0],i[1]))-p}for(var T=p;T&lt;d;T+=m)f(T,T+g)}else for(var M=a.simpleMap(h.values,t.d2c),S=0;S&lt;M.length;S++)f(o=M[S],s=o+h.dvalue)}return c.sort((function(t,e){return t.min-e.min})),c},t.makeCalcdata=function(e,r,n){var i,o,s,l,c=t.type,u=&quot;date&quot;===c&amp;&amp;e[r+&quot;calendar&quot;];if(r in e){if(i=e[r],l=e._length||a.minRowLength(i),a.isTypedArray(i)&amp;&amp;(&quot;linear&quot;===c||&quot;log&quot;===c)){if(l===i.length)return i;if(i.subarray)return i.subarray(0,l)}if(&quot;multicategory&quot;===c)return function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++){var i=(t[0]||[])[n],a=(t[1]||[])[n];r[n]=O([i,a])}return r}(i,l);for(o=new Array(l),s=0;s&lt;l;s++)o[s]=t.d2c(i[s],0,u,n)}else{var f=r+&quot;0&quot;in e?t.d2c(e[r+&quot;0&quot;],0,u):0,h=e[&quot;d&quot;+r]?Number(e[&quot;d&quot;+r]):1;for(i=e[{x:&quot;y&quot;,y:&quot;x&quot;}[r]],l=e._length||i.length,o=new Array(l),s=0;s&lt;l;s++)o[s]=f+s*h}if(t.rangebreaks)for(s=0;s&lt;l;s++)o[s]=t.maskBreaks(o[s]);return o},t.isValidRange=function(e){return Array.isArray(e)&amp;&amp;2===e.length&amp;&amp;s(t.r2l(e[0]))&amp;&amp;s(t.r2l(e[1]))},t.isPtWithinRange=function(e,r){var n=t.c2l(e[p],null,r),i=t.r2l(t.range[0]),a=t.r2l(t.range[1]);return i&lt;a?i&lt;=n&amp;&amp;n&lt;=a:a&lt;=n&amp;&amp;n&lt;=i},t._emptyCategories=function(){t._categories=[],t._categoriesMap={}},t.clearCalc=function(){var r=t._matchGroup;if(r){var n=null,i=null;for(var a in r){var o=e[w.id2name(a)];if(o._categories){n=o._categories,i=o._categoriesMap;break}}n&amp;&amp;i?(t._categories=n,t._categoriesMap=i):t._emptyCategories()}else t._emptyCategories();if(t._initialCategories)for(var s=0;s&lt;t._initialCategories.length;s++)I(t._initialCategories[s])},t.sortByInitialCategories=function(){var n=[];if(t._emptyCategories(),t._initialCategories)for(var i=0;i&lt;t._initialCategories.length;i++)I(t._initialCategories[i]);n=n.concat(t._traceIndices);var a=t._matchGroup;for(var o in a)if(r!==o){var s=e[w.id2name(o)];s._categories=t._categories,s._categoriesMap=t._categoriesMap,n=n.concat(s._traceIndices)}return n};var U=e._d3locale;&quot;date&quot;===t.type&amp;&amp;(t._dateFormat=U?U.timeFormat:i,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=U?U.numberFormat:o,delete t._minDtick,delete t._forceTick0}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;./axis_ids&quot;:858,&quot;./constants&quot;:861,&quot;@plotly/d3&quot;:58,&quot;d3-time-format&quot;:175,&quot;fast-isnumeric&quot;:249}],876:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).contrast,a=t(&quot;./layout_attributes&quot;),o=t(&quot;../array_container_defaults&quot;);function s(t){var e=[&quot;showexponent&quot;,&quot;showtickprefix&quot;,&quot;showticksuffix&quot;].filter((function(e){return void 0!==t[e]}));if(e.every((function(r){return t[r]===t[e[0]]}))||1===e.length)return t[e[0]]}function l(t,e){function r(r,i){return n.coerce(t,e,a.tickformatstops,r,i)}r(&quot;enabled&quot;)&amp;&amp;(r(&quot;dtickrange&quot;),r(&quot;value&quot;))}e.exports=function(t,e,r,c,u,f){f&amp;&amp;1!==f.pass||function(t,e,r,n,i){var a=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,a);r(&quot;ticksuffix&quot;,i.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,a)}(t,0,r,0,u),f&amp;&amp;2!==f.pass||function(t,e,r,c,u){var f=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,f);r(&quot;ticksuffix&quot;,u.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,f);if(r(&quot;showticklabels&quot;)){var h=u.font||{},p=e.color,d=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)?i(u.bgColor):p&amp;&amp;p!==a.color.dflt?p:h.color;if(n.coerceFont(r,&quot;tickfont&quot;,{family:h.family,size:h.size,color:d}),r(&quot;tickangle&quot;),&quot;category&quot;!==c){var g=r(&quot;tickformat&quot;);o(t,e,{name:&quot;tickformatstops&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:l}),e.tickformatstops.length||delete e.tickformatstops,g||&quot;date&quot;===c||(r(&quot;showexponent&quot;,f),r(&quot;exponentformat&quot;),r(&quot;minexponent&quot;),r(&quot;separatethousands&quot;))}}}(t,e,r,c,u)}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../array_container_defaults&quot;:849,&quot;./layout_attributes&quot;:869}],877:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,&quot;ticklen&quot;),s=n.coerce2(t,e,i,&quot;tickwidth&quot;),l=n.coerce2(t,e,i,&quot;tickcolor&quot;,e.color);r(&quot;ticks&quot;,a.outerTicks||o||s||l?&quot;outside&quot;:&quot;&quot;)||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:869}],878:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./clean_ticks&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){function o(r){var n=t[r];return void 0!==n?n:(e._template||{})[r]}var s=o(&quot;tick0&quot;),l=o(&quot;dtick&quot;),c=o(&quot;tickvals&quot;),u=r(&quot;tickmode&quot;,i(c)?&quot;array&quot;:l?&quot;linear&quot;:&quot;auto&quot;);if(&quot;auto&quot;===u)r(&quot;nticks&quot;);else if(&quot;linear&quot;===u){var f=e.dtick=n.dtick(l,a);e.tick0=n.tick0(s,a,e.calendar,f)}else if(&quot;multicategory&quot;!==a){void 0===r(&quot;tickvals&quot;)?e.tickmode=&quot;auto&quot;:r(&quot;ticktext&quot;)}}},{&quot;../../lib&quot;:803,&quot;./clean_ticks&quot;:860}],879:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;./axes&quot;);e.exports=function(t,e,r,l){var c=t._fullLayout;if(0!==e.length){var u,f,h,p;l&amp;&amp;(u=l());var d=n.ease(r.easing);return t._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr0&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr0.slice()),a.yr0&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr0.slice())}return i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function n(){h=Date.now();for(var a=Math.min(1,(h-f)/r.duration),o=d(a),s=0;s&lt;e.length;s++)m(e[s],o);h-f&gt;r.duration?(!function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr1&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr1.slice()),a.yr1&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr1.slice())}u&amp;&amp;u(),i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}(),p=window.cancelAnimationFrame(n)):p=window.requestAnimationFrame(n)})),Promise.resolve()}function g(t){var e=t.xaxis,r=t.yaxis;c._defs.select(&quot;#&quot;+t.clipId+&quot;&gt; rect&quot;).call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(&quot;.scatterlayer .trace&quot;);n.selectAll(&quot;.point&quot;).call(o.setPointGroupScale,1,1),n.selectAll(&quot;.textpoint&quot;).call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function m(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,h=!!e.yr1,p=[];if(f){var d=a.simpleMap(e.xr0,i.r2l),g=a.simpleMap(e.xr1,i.r2l),m=d[1]-d[0],v=g[1]-g[0];p[0]=(d[0]*(1-r)+r*g[0]-d[0])/(d[1]-d[0])*c,p[2]=c*(1-r+r*v/m),i.range[0]=i.l2r(d[0]*(1-r)+r*g[0]),i.range[1]=i.l2r(d[1]*(1-r)+r*g[1])}else p[0]=0,p[2]=c;if(h){var y=a.simpleMap(e.yr0,l.r2l),x=a.simpleMap(e.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/p[2]:1,T=h?u/p[3]:1,k=f?p[0]:0,A=h?p[1]:0,M=f?p[0]/p[2]*c:0,S=h?p[1]/p[3]*u:0,E=i._offset-M,L=l._offset-S;n.clipRect.call(o.setTranslate,k,A).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,L).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(t)}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./axes&quot;:854,&quot;@plotly/d3&quot;:58}],880:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;).traceIs,i=t(&quot;./axis_autotype&quot;);function a(t){return{v:&quot;x&quot;,h:&quot;y&quot;}[t.orientation||&quot;v&quot;]}function o(t,e){var r=a(t),i=n(t,&quot;box-violin&quot;),o=n(t._fullInput||{},&quot;candlestick&quot;);return i&amp;&amp;!o&amp;&amp;e===r&amp;&amp;void 0===t[r]&amp;&amp;void 0===t[r+&quot;0&quot;]}e.exports=function(t,e,r,s){r(&quot;autotypenumbers&quot;,s.autotypenumbersDflt),&quot;-&quot;===r(&quot;type&quot;,(s.splomStash||{}).type)&amp;&amp;(!function(t,e){if(&quot;-&quot;!==t.type)return;var r,s=t._id,l=s.charAt(0);-1!==s.indexOf(&quot;scene&quot;)&amp;&amp;(s=l);var c=function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n];if(&quot;splom&quot;===i.type&amp;&amp;i._length&gt;0&amp;&amp;(i[&quot;_&quot;+r+&quot;axes&quot;]||{})[e])return i;if((i[r+&quot;axis&quot;]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+&quot;0&quot;])return i}}}(e,s,l);if(!c)return;if(&quot;histogram&quot;===c.type&amp;&amp;l==={v:&quot;y&quot;,h:&quot;x&quot;}[c.orientation||&quot;v&quot;])return void(t.type=&quot;linear&quot;);var u=l+&quot;calendar&quot;,f=c[u],h={noMultiCategory:!n(c,&quot;cartesian&quot;)||n(c,&quot;noMultiCategory&quot;)};&quot;box&quot;===c.type&amp;&amp;c._hasPreCompStats&amp;&amp;l==={h:&quot;x&quot;,v:&quot;y&quot;}[c.orientation||&quot;v&quot;]&amp;&amp;(h.noMultiCategory=!0);if(h.autotypenumbers=t.autotypenumbers,o(c,l)){var p=a(c),d=[];for(r=0;r&lt;e.length;r++){var g=e[r];n(g,&quot;box-violin&quot;)&amp;&amp;(g[l+&quot;axis&quot;]||l)===s&amp;&amp;(void 0!==g[p]?d.push(g[p][0]):void 0!==g.name?d.push(g.name):d.push(&quot;text&quot;),g[u]!==f&amp;&amp;(f=void 0))}t.type=i(d,f,h)}else if(&quot;splom&quot;===c.type){var m=c.dimensions[c._axesDim[s]];m.visible&amp;&amp;(t.type=i(m.values,f,h))}else t.type=i(c[l]||[c[l+&quot;0&quot;]],f,h)}(e,s.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type)}},{&quot;../../registry&quot;:931,&quot;./axis_autotype&quot;:855}],881:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;);function a(t,e,r){var n,a,o,s=!1;if(&quot;data&quot;===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(&quot;layout&quot;!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&amp;&amp;o[e.prop]!==a&amp;&amp;(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(&quot;string&quot;==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,(function(t,e,n){r.push({type:&quot;layout&quot;,prop:t,value:n})}),&quot;&quot;,0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},&quot;string&quot;==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&amp;&amp;(r=a)}return void 0===r&amp;&amp;(r=null),l(o,(function(e,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,t.data.length);r&amp;&amp;(l=Math.min(l,r.length)),a=[];for(var c=0;c&lt;l;c++)a[c]=r?r[c]:c}else o=i,a=r?r.slice():null;if(null===a)Array.isArray(o)&amp;&amp;(o=o[0]);else if(Array.isArray(a)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f&lt;a.length;f++)o[f]=u}o.length=Math.min(a.length,o.length)}s.push({type:&quot;data&quot;,prop:e,traces:a,value:o})}),&quot;&quot;,0),s}function l(t,e,r,n){Object.keys(t).forEach((function(a){var o=t[a];if(&quot;_&quot;!==a[0]){var s=r+(n&gt;0?&quot;.&quot;:&quot;&quot;)+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&amp;&amp;e._commandObserver&amp;&amp;(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&amp;&amp;e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&amp;&amp;o&amp;&amp;void 0!==s.lookupTable[e.value]&amp;&amp;(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[&quot;plotly_relayout&quot;,&quot;plotly_redraw&quot;,&quot;plotly_restyle&quot;,&quot;plotly_update&quot;,&quot;plotly_animatingframe&quot;,&quot;plotly_afterplot&quot;],f=0;f&lt;u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e&lt;u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(&quot;Unable to automatically bind plot updates to API command&quot;),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&amp;&amp;(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i&lt;o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h&lt;a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&amp;&amp;a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&amp;&amp;(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(&quot;skip&quot;===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s&lt;r.length;s++)o.push(r[s]);return a.apply(null,o).catch((function(t){return i.warn(&quot;API call to Plotly.&quot;+e+&quot; rejected.&quot;,t),Promise.reject(t)}))},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case&quot;restyle&quot;:n=s(t,r);break;case&quot;relayout&quot;:n=o(t,r);break;case&quot;update&quot;:n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case&quot;animate&quot;:n=function(t,e){return Array.isArray(e[0])&amp;&amp;1===e[0].length&amp;&amp;-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e[0][0])?[{type:&quot;layout&quot;,prop:&quot;_currentFrame&quot;,value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{&quot;../lib&quot;:803,&quot;../registry&quot;:931}],882:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/extend&quot;).extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:&quot;info_array&quot;,editType:(t=t||{}).editType,items:[{valType:&quot;number&quot;,min:0,max:1,editType:t.editType},{valType:&quot;number&quot;,min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&amp;&amp;t.name,t.trace,e.description&amp;&amp;e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType},i.column={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&amp;&amp;n.x||[0,1],a=n&amp;&amp;n.y||[0,1],o=e.grid;if(o){var s=r(&quot;domain.column&quot;);void 0!==s&amp;&amp;(s&lt;o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(&quot;domain.row&quot;);void 0!==l&amp;&amp;(l&lt;o.rows?a=o._domains.y[l]:delete t.domain.row)}var c=r(&quot;domain.x&quot;,i),u=r(&quot;domain.y&quot;,a);c[0]&lt;c[1]||(t.domain.x=i.slice()),u[0]&lt;u[1]||(t.domain.y=a.slice())}},{&quot;../lib/extend&quot;:793}],883:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&amp;&amp;(r=e);var n={family:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:e},size:{valType:&quot;number&quot;,min:1,editType:e},color:{valType:&quot;color&quot;,editType:r},editType:e};return t.arrayOk&amp;&amp;(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],884:[function(t,e,r){&quot;use strict&quot;;e.exports={_isLinkedToArray:&quot;frames_entry&quot;,group:{valType:&quot;string&quot;},name:{valType:&quot;string&quot;},traces:{valType:&quot;any&quot;},baseframe:{valType:&quot;string&quot;},data:{valType:&quot;any&quot;},layout:{valType:&quot;any&quot;}}},{}],885:[function(t,e,r){&quot;use strict&quot;;r.projNames={airy:&quot;airy&quot;,aitoff:&quot;aitoff&quot;,&quot;albers usa&quot;:&quot;albersUsa&quot;,albers:&quot;albers&quot;,august:&quot;august&quot;,&quot;azimuthal equal area&quot;:&quot;azimuthalEqualArea&quot;,&quot;azimuthal equidistant&quot;:&quot;azimuthalEquidistant&quot;,baker:&quot;baker&quot;,bertin1953:&quot;bertin1953&quot;,boggs:&quot;boggs&quot;,bonne:&quot;bonne&quot;,bottomley:&quot;bottomley&quot;,bromley:&quot;bromley&quot;,collignon:&quot;collignon&quot;,&quot;conic conformal&quot;:&quot;conicConformal&quot;,&quot;conic equal area&quot;:&quot;conicEqualArea&quot;,&quot;conic equidistant&quot;:&quot;conicEquidistant&quot;,craig:&quot;craig&quot;,craster:&quot;craster&quot;,&quot;cylindrical equal area&quot;:&quot;cylindricalEqualArea&quot;,&quot;cylindrical stereographic&quot;:&quot;cylindricalStereographic&quot;,eckert1:&quot;eckert1&quot;,eckert2:&quot;eckert2&quot;,eckert3:&quot;eckert3&quot;,eckert4:&quot;eckert4&quot;,eckert5:&quot;eckert5&quot;,eckert6:&quot;eckert6&quot;,eisenlohr:&quot;eisenlohr&quot;,equirectangular:&quot;equirectangular&quot;,fahey:&quot;fahey&quot;,&quot;foucaut sinusoidal&quot;:&quot;foucautSinusoidal&quot;,foucaut:&quot;foucaut&quot;,ginzburg4:&quot;ginzburg4&quot;,ginzburg5:&quot;ginzburg5&quot;,ginzburg6:&quot;ginzburg6&quot;,ginzburg8:&quot;ginzburg8&quot;,ginzburg9:&quot;ginzburg9&quot;,gnomonic:&quot;gnomonic&quot;,&quot;gringorten quincuncial&quot;:&quot;gringortenQuincuncial&quot;,gringorten:&quot;gringorten&quot;,guyou:&quot;guyou&quot;,hammer:&quot;hammer&quot;,hill:&quot;hill&quot;,homolosine:&quot;homolosine&quot;,hufnagel:&quot;hufnagel&quot;,hyperelliptical:&quot;hyperelliptical&quot;,kavrayskiy7:&quot;kavrayskiy7&quot;,lagrange:&quot;lagrange&quot;,larrivee:&quot;larrivee&quot;,laskowski:&quot;laskowski&quot;,loximuthal:&quot;loximuthal&quot;,mercator:&quot;mercator&quot;,miller:&quot;miller&quot;,mollweide:&quot;mollweide&quot;,&quot;mt flat polar parabolic&quot;:&quot;mtFlatPolarParabolic&quot;,&quot;mt flat polar quartic&quot;:&quot;mtFlatPolarQuartic&quot;,&quot;mt flat polar sinusoidal&quot;:&quot;mtFlatPolarSinusoidal&quot;,&quot;natural earth&quot;:&quot;naturalEarth&quot;,&quot;natural earth1&quot;:&quot;naturalEarth1&quot;,&quot;natural earth2&quot;:&quot;naturalEarth2&quot;,&quot;nell hammer&quot;:&quot;nellHammer&quot;,nicolosi:&quot;nicolosi&quot;,orthographic:&quot;orthographic&quot;,patterson:&quot;patterson&quot;,&quot;peirce quincuncial&quot;:&quot;peirceQuincuncial&quot;,polyconic:&quot;polyconic&quot;,&quot;rectangular polyconic&quot;:&quot;rectangularPolyconic&quot;,robinson:&quot;robinson&quot;,satellite:&quot;satellite&quot;,&quot;sinu mollweide&quot;:&quot;sinuMollweide&quot;,sinusoidal:&quot;sinusoidal&quot;,stereographic:&quot;stereographic&quot;,times:&quot;times&quot;,&quot;transverse mercator&quot;:&quot;transverseMercator&quot;,&quot;van der grinten&quot;:&quot;vanDerGrinten&quot;,&quot;van der grinten2&quot;:&quot;vanDerGrinten2&quot;,&quot;van der grinten3&quot;:&quot;vanDerGrinten3&quot;,&quot;van der grinten4&quot;:&quot;vanDerGrinten4&quot;,wagner4:&quot;wagner4&quot;,wagner6:&quot;wagner6&quot;,wiechel:&quot;wiechel&quot;,&quot;winkel tripel&quot;:&quot;winkel3&quot;,winkel3:&quot;winkel3&quot;},r.axesNames=[&quot;lonaxis&quot;,&quot;lataxis&quot;],r.lonaxisSpan={orthographic:180,&quot;azimuthal equal area&quot;:360,&quot;azimuthal equidistant&quot;:360,&quot;conic conformal&quot;:180,gnomonic:160,stereographic:180,&quot;transverse mercator&quot;:180,&quot;*&quot;:360},r.lataxisSpan={&quot;conic conformal&quot;:150,stereographic:179.5,&quot;*&quot;:180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:&quot;equirectangular&quot;,projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:&quot;albers usa&quot;},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:&quot;conic conformal&quot;,projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:&quot;mercator&quot;,projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:&quot;mercator&quot;,projRotate:[0,0,0]},&quot;north america&quot;:{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:&quot;conic conformal&quot;,projRotate:[-100,0,0],projParallels:[29.5,45.5]},&quot;south america&quot;:{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:&quot;mercator&quot;,projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=&quot;#F0DC82&quot;,r.waterColor=&quot;#3399FF&quot;,r.locationmodeToLayer={&quot;ISO-3&quot;:&quot;countries&quot;,&quot;USA-states&quot;:&quot;subunits&quot;,&quot;country names&quot;:&quot;countries&quot;},r.sphereSVG={type:&quot;Sphere&quot;},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;lakes&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;rivers&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;frontplot&quot;],r.layersForChoropleth=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;rivers&quot;,&quot;lakes&quot;,&quot;frontplot&quot;],r.layerNameToAdjective={ocean:&quot;ocean&quot;,land:&quot;land&quot;,lakes:&quot;lake&quot;,subunits:&quot;subunit&quot;,countries:&quot;country&quot;,coastlines:&quot;coastline&quot;,rivers:&quot;river&quot;,frame:&quot;frame&quot;}},{}],886:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-geo&quot;),a=i.geoPath,o=i.geoDistance,s=t(&quot;d3-geo-projection&quot;),l=t(&quot;../../registry&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;../../components/fx&quot;),d=t(&quot;../plots&quot;),g=t(&quot;../cartesian/axes&quot;),m=t(&quot;../cartesian/autorange&quot;).getAutoRange,v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../cartesian/select&quot;).prepSelect,x=t(&quot;../cartesian/select&quot;).clearSelect,b=t(&quot;../cartesian/select&quot;).selectOnClick,_=t(&quot;./zoom&quot;),w=t(&quot;./constants&quot;),T=t(&quot;../../lib/geo_location_utils&quot;),k=t(&quot;../../lib/topojson_utils&quot;),A=t(&quot;topojson-client&quot;).feature;function M(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var S=M.prototype;function E(t,e){var r=w.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n&gt;0&amp;&amp;i&lt;0&amp;&amp;(i+=360);var s=(i-n)/4;return{type:&quot;Polygon&quot;,coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new M(t)},S.plot=function(t,e,r){var n=this,i=e[this.id],a=[],o=!1;for(var s in w.layerNameToAdjective)if(&quot;frame&quot;!==s&amp;&amp;i[&quot;show&quot;+s]){o=!0;break}for(var l=0;l&lt;t.length;l++)if(t[0][0].trace.locationmode){o=!0;break}if(o){var c=k.getTopojsonName(i);null!==n.topojson&amp;&amp;c===n.topojsonName||(n.topojsonName=c,void 0===PlotlyGeoAssets.topojson[n.topojsonName]&amp;&amp;a.push(n.fetchTopojson()))}a=a.concat(T.fetchTraceGeoData(t)),r.push(new Promise((function(r,i){Promise.all(a).then((function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e),r()})).catch(i)})))},S.fetchTopojson=function(){var t=this,e=k.getTopojsonPath(t.topojsonURL,t.topojsonName);return new Promise((function(r,i){n.json(e,(function(n,a){if(n)return 404===n.status?i(new Error([&quot;plotly.js could not find topojson file at&quot;,e,&quot;.&quot;,&quot;Make sure the *topojsonURL* plot config option&quot;,&quot;is set properly.&quot;].join(&quot; &quot;))):i(new Error([&quot;unexpected error while fetching topojson file at&quot;,e].join(&quot; &quot;)));PlotlyGeoAssets.topojson[t.topojsonName]=a,r()}))}))},S.update=function(t,e){var r=e[this.id];this.hasChoropleth=!1;for(var n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;&quot;choropleth&quot;===a.type&amp;&amp;(this.hasChoropleth=!0),!0===a.visible&amp;&amp;a._length&gt;0&amp;&amp;a._module.calcGeoJSON(i,e)}if(!this.updateProjection(t,e)){this.viewInitial&amp;&amp;this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),d.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var o=this.layers.frontplot.select(&quot;.scatterlayer&quot;);this.dataPoints.point=o.selectAll(&quot;.point&quot;),this.dataPoints.text=o.selectAll(&quot;text&quot;),this.dataPaths.line=o.selectAll(&quot;.js-line&quot;);var s=this.layers.backplot.select(&quot;.choroplethlayer&quot;);this.dataPaths.choropleth=s.selectAll(&quot;path&quot;),this.render()}},S.updateProjection=function(t,e){var r=this.graphDiv,n=e[this.id],l=e._size,u=n.domain,f=n.projection,h=n.lonaxis,p=n.lataxis,d=h._ax,g=p._ax,v=this.projection=function(t){var e=t.projection,r=e.type,n=w.projNames[r];n=&quot;geo&quot;+c.titleCase(n);for(var l=(i[n]||s[n])(),u=t._isSatellite?180*Math.acos(1/e.distance)/Math.PI:t._isClipped?w.lonaxisSpan[r]/2:null,f=[&quot;center&quot;,&quot;rotate&quot;,&quot;parallels&quot;,&quot;clipExtent&quot;],h=function(t){return t?l:[]},p=0;p&lt;f.length;p++){var d=f[p];&quot;function&quot;!=typeof l[d]&amp;&amp;(l[d]=h)}l.isLonLatOverEdges=function(t){if(null===l(t))return!0;if(u){var e=l.rotate();return o(t,[-e[0],-e[1]])&gt;u*Math.PI/180}return!1},l.getPath=function(){return a().projection(l)},l.getBounds=function(t){return l.getPath().bounds(t)},l.precision(w.precision),t._isSatellite&amp;&amp;l.tilt(e.tilt).distance(e.distance);u&amp;&amp;l.clipAngle(u-w.clipPad);return l}(n),y=[[l.l+l.w*u.x[0],l.t+l.h*(1-u.y[1])],[l.l+l.w*u.x[1],l.t+l.h*(1-u.y[0])]],x=n.center||{},b=f.rotation||{},_=h.range||[],T=p.range||[];if(n.fitbounds){d._length=y[1][0]-y[0][0],g._length=y[1][1]-y[0][1],d.range=m(r,d),g.range=m(r,g);var k=(d.range[0]+d.range[1])/2,A=(g.range[0]+g.range[1])/2;if(n._isScoped)x={lon:k,lat:A};else if(n._isClipped){x={lon:k,lat:A},b={lon:k,lat:A,roll:b.roll};var M=f.type,S=w.lonaxisSpan[M]/2||180,L=w.lataxisSpan[M]/2||90;_=[k-S,k+S],T=[A-L,A+L]}else x={lon:k,lat:A},b={lon:k,lat:b.lat,roll:b.roll}}v.center([x.lon-b.lon,x.lat-b.lat]).rotate([-b.lon,-b.lat,b.roll]).parallels(f.parallels);var C=E(_,T);v.fitExtent(y,C);var P=this.bounds=v.getBounds(C),I=this.fitScale=v.scale(),O=v.translate();if(n.fitbounds){var z=v.getBounds(E(d.range,g.range)),D=Math.min((P[1][0]-P[0][0])/(z[1][0]-z[0][0]),(P[1][1]-P[0][1])/(z[1][1]-z[0][1]));isFinite(D)?v.scale(D*I):c.warn(&quot;Something went wrong during&quot;+this.id+&quot;fitbounds computations.&quot;)}else v.scale(f.scale*I);var R=this.midPt=[(P[0][0]+P[1][0])/2,(P[0][1]+P[1][1])/2];if(v.translate([O[0]+(R[0]-O[0]),O[1]+(R[1]-O[1])]).clipExtent(P),n._isAlbersUsa){var F=v([x.lon,x.lat]),B=v.translate();v.translate([B[0]-(F[0]-B[0]),B[1]-(F[1]-B[1])])}},S.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function s(t){return&quot;lonaxis&quot;===t||&quot;lataxis&quot;===t}function l(t){return Boolean(w.lineLayers[t])}function c(t){return Boolean(w.fillLayers[t])}var u=(this.hasChoropleth?w.layersForChoropleth:w.layers).filter((function(t){return l(t)||c(t)?e[&quot;show&quot;+t]:!s(t)||e[t].showgrid})),p=r.framework.selectAll(&quot;.layer&quot;).data(u,String);p.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),p.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;layer &quot;+t})).each((function(t){var e=a[t]=n.select(this);&quot;bg&quot;===t?r.bgRect=e.append(&quot;rect&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;):s(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;):&quot;backplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;choroplethlayer&quot;,!0):&quot;frontplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):l(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;stroke-miterlimit&quot;,2):c(t)&amp;&amp;(o[t]=e.append(&quot;path&quot;).style(&quot;stroke&quot;,&quot;none&quot;))})),p.order(),p.each((function(r){var n=o[r],a=w.layerNameToAdjective[r];&quot;frame&quot;===r?n.datum(w.sphereSVG):l(r)||c(r)?n.datum(A(i,i.objects[r])):s(r)&amp;&amp;n.datum(function(t,e,r){var n,i,a,o=e[t],s=w.scopeDefaults[e.scope];&quot;lonaxis&quot;===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):&quot;lataxis&quot;===t&amp;&amp;(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:&quot;linear&quot;,range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};g.setConvert(l,r);var c=g.calcTicks(l);e.isScoped||&quot;lonaxis&quot;!==t||c.pop();for(var u=c.length,f=new Array(u),h=0;h&lt;u;h++)for(var p=c[h].x,d=f[h]=[],m=i[0];m&lt;i[1]+2.5;m+=2.5)d.push(a(p,m));return{type:&quot;MultiLineString&quot;,coordinates:f}}(r,e,t)).call(f.stroke,e[r].gridcolor).call(h.dashLine,&quot;&quot;,e[r].gridwidth),l(r)?n.call(f.stroke,e[a+&quot;color&quot;]).call(h.dashLine,&quot;&quot;,e[a+&quot;width&quot;]):c(r)&amp;&amp;n.call(f.fill,e[a+&quot;color&quot;])}))},S.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;h.setRect(this.clipRect,i,a,o,s),this.bgRect.call(h.setRect,i,a,o,s).call(f.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s},S.updateFx=function(t,e){var r=this,i=r.graphDiv,a=r.bgRect,o=t.dragmode,s=t.clickmode;if(!r.isStatic){var u;&quot;select&quot;===o?u=function(t,e){(t.range={})[r.id]=[h([e.xmin,e.ymin]),h([e.xmax,e.ymax])]}:&quot;lasso&quot;===o&amp;&amp;(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(h)});var f={element:r.bgRect.node(),gd:i,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(t){2===t&amp;&amp;x(i)}};&quot;pan&quot;===o?(a.node().onmousedown=null,a.call(_(r,e)),a.on(&quot;dblclick.zoom&quot;,(function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+&quot;.&quot;+n]=t[n];l.call(&quot;_guiRelayout&quot;,i,e),i.emit(&quot;plotly_doubleclick&quot;,null)})),i._context._scrollZoom.geo||a.on(&quot;wheel.zoom&quot;,null)):&quot;select&quot;!==o&amp;&amp;&quot;lasso&quot;!==o||(a.on(&quot;.zoom&quot;,null),f.prepFn=function(t,e,r){y(t,e,r,f,o)},v.init(f)),a.on(&quot;mousemove&quot;,(function(){var t=r.projection.invert(c.getPositionFromD3Event());if(!t)return v.unhover(i,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},p.hover(i,n.event,r.id)})),a.on(&quot;mouseout&quot;,(function(){i._dragging||v.unhover(i,n.event)})),a.on(&quot;click&quot;,(function(){&quot;select&quot;!==o&amp;&amp;&quot;lasso&quot;!==o&amp;&amp;(s.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;b(n.event,i,[r.xaxis],[r.yaxis],r.id,f),s.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;p.click(i,n.event))}))}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},S.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i=&quot;clip&quot;+r._uid+t.id;t.clipDef=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,i),t.clipRect=t.clipDef.append(&quot;rect&quot;),t.framework=n.select(t.container).append(&quot;g&quot;).attr(&quot;class&quot;,&quot;geo &quot;+t.id).call(h.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:&quot;x&quot;,c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:&quot;y&quot;,c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},g.setConvert(t.mockAxis,r)},S.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,&quot;projection.scale&quot;:n.scale},e=t._isScoped?{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat}:t._isClipped?{&quot;projection.rotation.lon&quot;:i.lon,&quot;projection.rotation.lat&quot;:i.lat}:{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat,&quot;projection.rotation.lon&quot;:i.lon},c.extendFlat(this.viewInitial,e)},S.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?u(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?&quot;none&quot;:null}for(t in this.basePaths)this.basePaths[t].attr(&quot;d&quot;,r);for(t in this.dataPaths)this.dataPaths[t].attr(&quot;d&quot;,(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr(&quot;display&quot;,i).attr(&quot;transform&quot;,n)}},{&quot;../../components/color&quot;:666,&quot;../../components/dragelement&quot;:685,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../lib/geo_location_utils&quot;:796,&quot;../../lib/topojson_utils&quot;:832,&quot;../../registry&quot;:931,&quot;../cartesian/autorange&quot;:853,&quot;../cartesian/axes&quot;:854,&quot;../cartesian/select&quot;:874,&quot;../plots&quot;:917,&quot;./constants&quot;:885,&quot;./zoom&quot;:890,&quot;@plotly/d3&quot;:58,&quot;d3-geo&quot;:169,&quot;d3-geo-projection&quot;:168,&quot;topojson-client&quot;:601}],887:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./geo&quot;),o=&quot;geo&quot;,s=i(o),l={};l.geo={valType:&quot;subplotid&quot;,dflt:o,editType:&quot;calc&quot;},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots.geo,s=0;s&lt;i.length;s++){var l=i[s],c=n(r,o,l),u=e[l]._subplot;u||(u=a({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},updateFx:function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n&lt;r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}},clean:function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.framework.remove(),s.clipDef.remove())}}}},{&quot;../../lib&quot;:803,&quot;../../plots/get_data&quot;:891,&quot;./geo&quot;:886,&quot;./layout_attributes&quot;:888,&quot;./layout_defaults&quot;:889}],888:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;./constants&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/sort_object_keys&quot;),l={range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},showgrid:{valType:&quot;boolean&quot;,dflt:!1},tick0:{valType:&quot;number&quot;,dflt:0},dtick:{valType:&quot;number&quot;},gridcolor:{valType:&quot;color&quot;,dflt:n.lightLine},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1}};(e.exports=o({domain:i({name:&quot;geo&quot;},{}),fitbounds:{valType:&quot;enumerated&quot;,values:[!1,&quot;locations&quot;,&quot;geojson&quot;],dflt:!1,editType:&quot;plot&quot;},resolution:{valType:&quot;enumerated&quot;,values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:&quot;enumerated&quot;,values:s(a.scopeDefaults),dflt:&quot;world&quot;},projection:{type:{valType:&quot;enumerated&quot;,values:s(a.projNames)},rotation:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;},roll:{valType:&quot;number&quot;}},tilt:{valType:&quot;number&quot;,dflt:0},distance:{valType:&quot;number&quot;,min:1.001,dflt:2},parallels:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},scale:{valType:&quot;number&quot;,min:0,dflt:1}},center:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;}},visible:{valType:&quot;boolean&quot;,dflt:!0},showcoastlines:{valType:&quot;boolean&quot;},coastlinecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},coastlinewidth:{valType:&quot;number&quot;,min:0,dflt:1},showland:{valType:&quot;boolean&quot;,dflt:!1},landcolor:{valType:&quot;color&quot;,dflt:a.landColor},showocean:{valType:&quot;boolean&quot;,dflt:!1},oceancolor:{valType:&quot;color&quot;,dflt:a.waterColor},showlakes:{valType:&quot;boolean&quot;,dflt:!1},lakecolor:{valType:&quot;color&quot;,dflt:a.waterColor},showrivers:{valType:&quot;boolean&quot;,dflt:!1},rivercolor:{valType:&quot;color&quot;,dflt:a.waterColor},riverwidth:{valType:&quot;number&quot;,min:0,dflt:1},showcountries:{valType:&quot;boolean&quot;},countrycolor:{valType:&quot;color&quot;,dflt:n.defaultLine},countrywidth:{valType:&quot;number&quot;,min:0,dflt:1},showsubunits:{valType:&quot;boolean&quot;},subunitcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},subunitwidth:{valType:&quot;number&quot;,min:0,dflt:1},showframe:{valType:&quot;boolean&quot;},framecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},framewidth:{valType:&quot;number&quot;,min:0,dflt:1},bgcolor:{valType:&quot;color&quot;,dflt:n.background},lonaxis:l,lataxis:l},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib/sort_object_keys&quot;:826,&quot;../../plot_api/edit_types&quot;:836,&quot;../domain&quot;:882,&quot;./constants&quot;:885}],889:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../get_data&quot;).getSubplotData,o=t(&quot;./constants&quot;),s=t(&quot;./layout_attributes&quot;),l=o.axesNames;function c(t,e,r,i){var s=a(i.fullData,&quot;geo&quot;,i.id).map((function(t){return t._expandedIndex})),c=r(&quot;resolution&quot;),u=r(&quot;scope&quot;),f=o.scopeDefaults[u],h=r(&quot;projection.type&quot;,f.projType),p=e._isAlbersUsa=&quot;albers usa&quot;===h;p&amp;&amp;(u=e.scope=&quot;usa&quot;);var d=e._isScoped=&quot;world&quot;!==u,g=e._isSatellite=&quot;satellite&quot;===h,m=e._isConic=-1!==h.indexOf(&quot;conic&quot;)||&quot;albers&quot;===h,v=e._isClipped=!!o.lonaxisSpan[h];if(!1===t.visible){var y=n.extendDeep({},e._template);y.showcoastlines=!1,y.showcountries=!1,y.showframe=!1,y.showlakes=!1,y.showland=!1,y.showocean=!1,y.showrivers=!1,y.showsubunits=!1,y.lonaxis&amp;&amp;(y.lonaxis.showgrid=!1),y.lataxis&amp;&amp;(y.lataxis.showgrid=!1),e._template=y}for(var x=r(&quot;visible&quot;),b=0;b&lt;l.length;b++){var _,w=l[b],T=[30,10][b];if(d)_=f[w+&quot;Range&quot;];else{var k=o[w+&quot;Span&quot;],A=(k[h]||k[&quot;*&quot;])/2,M=r(&quot;projection.rotation.&quot;+w.substr(0,3),f.projRotate[b]);_=[M-A,M+A]}var S=r(w+&quot;.range&quot;,_);r(w+&quot;.tick0&quot;),r(w+&quot;.dtick&quot;,T),r(w+&quot;.showgrid&quot;,!!x&amp;&amp;void 0)&amp;&amp;(r(w+&quot;.gridcolor&quot;),r(w+&quot;.gridwidth&quot;)),e[w]._ax={type:&quot;linear&quot;,_id:w.slice(0,3),_traceIndices:s,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:S.slice(),_m:1,_input:{}}}var E=e.lonaxis.range,L=e.lataxis.range,C=E[0],P=E[1];C&gt;0&amp;&amp;P&lt;0&amp;&amp;(P+=360);var I,O,z,D=(C+P)/2;if(!p){var R=d?f.projRotate:[D,0,0];I=r(&quot;projection.rotation.lon&quot;,R[0]),r(&quot;projection.rotation.lat&quot;,R[1]),r(&quot;projection.rotation.roll&quot;,R[2]),r(&quot;showcoastlines&quot;,!d&amp;&amp;x)&amp;&amp;(r(&quot;coastlinecolor&quot;),r(&quot;coastlinewidth&quot;)),r(&quot;showocean&quot;,!!x&amp;&amp;void 0)&amp;&amp;r(&quot;oceancolor&quot;)}(p?(O=-96.6,z=38.7):(O=d?D:I,z=(L[0]+L[1])/2),r(&quot;center.lon&quot;,O),r(&quot;center.lat&quot;,z),g&amp;&amp;(r(&quot;projection.tilt&quot;),r(&quot;projection.distance&quot;)),m)&amp;&amp;r(&quot;projection.parallels&quot;,f.projParallels||[0,60]);r(&quot;projection.scale&quot;),r(&quot;showland&quot;,!!x&amp;&amp;void 0)&amp;&amp;r(&quot;landcolor&quot;),r(&quot;showlakes&quot;,!!x&amp;&amp;void 0)&amp;&amp;r(&quot;lakecolor&quot;),r(&quot;showrivers&quot;,!!x&amp;&amp;void 0)&amp;&amp;(r(&quot;rivercolor&quot;),r(&quot;riverwidth&quot;)),r(&quot;showcountries&quot;,d&amp;&amp;&quot;usa&quot;!==u&amp;&amp;x)&amp;&amp;(r(&quot;countrycolor&quot;),r(&quot;countrywidth&quot;)),(&quot;usa&quot;===u||&quot;north america&quot;===u&amp;&amp;50===c)&amp;&amp;(r(&quot;showsubunits&quot;,x),r(&quot;subunitcolor&quot;),r(&quot;subunitwidth&quot;)),d||r(&quot;showframe&quot;,x)&amp;&amp;(r(&quot;framecolor&quot;),r(&quot;framewidth&quot;)),r(&quot;bgcolor&quot;),r(&quot;fitbounds&quot;)&amp;&amp;(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):v?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:&quot;geo&quot;,attributes:s,handleDefaults:c,fullData:r,partition:&quot;y&quot;})}},{&quot;../../lib&quot;:803,&quot;../get_data&quot;:891,&quot;../subplot_defaults&quot;:925,&quot;./constants&quot;:885,&quot;./layout_attributes&quot;:888}],890:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=Math.PI/180,s=180/Math.PI,l={cursor:&quot;pointer&quot;},c={cursor:&quot;auto&quot;};function u(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function f(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},h={};function p(t,e){f[n+&quot;.&quot;+t]=i.nestedProperty(l,t).get(),a.call(&quot;_storeDirectGUIEdit&quot;,s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&amp;&amp;(r.set(e),i.nestedProperty(l,t).set(e),h[n+&quot;.&quot;+t]=e)}r(p),p(&quot;projection.scale&quot;,e.scale()/t.fitScale),p(&quot;fitbounds&quot;,!1),o.emit(&quot;plotly_relayout&quot;,h)}function h(t,e){var r=u(0,e);function i(r){var n=e.invert(t.midPt);r(&quot;center.lon&quot;,n[0]),r(&quot;center.lat&quot;,n[1])}return r.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l)})).on(&quot;zoom&quot;,(function(){e.scale(n.event.scale).translate(n.event.translate),t.render();var r=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:r[0],&quot;geo.center.lat&quot;:r[1]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),f(t,e,i)})),r}function p(t,e){var r,i,a,o,s,h,p,d,g,m=u(0,e);function v(t){return e.invert(t)}function y(r){var n=e.rotate(),i=e.invert(t.midPt);r(&quot;projection.rotation.lon&quot;,-n[0]),r(&quot;center.lon&quot;,i[0]),r(&quot;center.lat&quot;,i[1])}return m.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=v(r)})).on(&quot;zoom&quot;,(function(){if(h=n.mouse(this),function(t){var r=v(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])&gt;2||Math.abs(n[1]-t[1])&gt;2}(r))return m.scale(e.scale()),void m.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?v(h)&amp;&amp;(d=v(h),p=[o[0]+(d[0]-s[0]),i[1],i[2]],e.rotate(p),o=p):s=v(r=h),g=!0,t.render();var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:c[0],&quot;geo.center.lat&quot;:c[1],&quot;geo.projection.rotation.lon&quot;:-l[0]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),g&amp;&amp;f(t,e,y)})),m}function d(t,e){var r,i={r:e.rotate(),k:e.scale()},a=u(0,e),o=function(t){var e=0,r=arguments.length,i=[];for(;++e&lt;r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(a,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;),s=0,h=a.on;function p(t){s++||t({type:&quot;zoomstart&quot;})}function d(t){t({type:&quot;zoom&quot;})}function b(t){--s||t({type:&quot;zoomend&quot;})}function _(t){var r=e.rotate();t(&quot;projection.rotation.lon&quot;,-r[0]),t(&quot;projection.rotation.lat&quot;,-r[1])}return a.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l);var t=n.mouse(this),s=e.rotate(),c=s,u=e.translate(),f=m(s);r=g(e,t),h.call(a,&quot;zoom&quot;,(function(){var a=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(g(e,a)){e.rotate(s).translate(u);var l=g(e,a),h=y(r,l),p=T(v(f,h)),m=i.r=x(p,r,c);isFinite(m[0])&amp;&amp;isFinite(m[1])&amp;&amp;isFinite(m[2])||(m=c),e.rotate(m),c=m}}else r=g(e,t=a);d(o.of(this,arguments))})),p(o.of(this,arguments))})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),h.call(a,&quot;zoom&quot;,null),b(o.of(this,arguments)),f(t,e,_)})).on(&quot;zoom.redraw&quot;,(function(){t.render();var r=e.rotate();t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.projection.rotation.lon&quot;:-r[0],&quot;geo.projection.rotation.lat&quot;:-r[1]})})),n.rebind(a,o,&quot;on&quot;)}function g(t,e){var r=t.invert(e);return r&amp;&amp;isFinite(r[0])&amp;&amp;isFinite(r[1])&amp;&amp;function(t){var e=t[0]*o,r=t[1]*o,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function m(t){var e=.5*t[0]*o,r=.5*t[1]*o,n=.5*t[2]*o,i=Math.sin(e),a=Math.cos(e),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return[a*l*u+i*s*c,i*l*u-a*s*c,a*s*u+i*l*c,a*l*c-i*s*u]}function v(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],c=e[3];return[r*o-n*s-i*l-a*c,r*s+n*o+i*c-a*l,r*l-n*c+i*o+a*s,r*c+n*l-i*s+a*o]}function y(t,e){if(t&amp;&amp;e){var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(k(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,k(t,e)))),a=Math.sin(i)/n;return n&amp;&amp;[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function x(t,e,r){var n=w(e,2,t[0]);n=w(n,1,t[1]),n=w(n,0,t[2]-r[2]);var i,a,o=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,o)*s,d=Math.sqrt(o*o+l*l);Math.abs(f)&gt;d?(a=(f&gt;0?90:-90)-p,i=0):(a=Math.asin(f/d)*s-p,i=Math.sqrt(d*d-f*f));var g=180-a-2*p,m=(Math.atan2(h,u)-Math.atan2(c,i))*s,v=(Math.atan2(h,u)-Math.atan2(c,-i))*s;return b(r[0],r[1],a,m)&lt;=b(r[0],r[1],g,v)?[a,m,r[2]]:[g,v,r[2]]}function b(t,e,r,n){var i=_(r-t),a=_(n-e);return Math.sqrt(i*i+a*a)}function _(t){return(t%360+540)%360-180}function w(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function k(t,e){for(var r=0,n=0,i=t.length;n&lt;i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?h:e._isClipped?d:p)(t,r)}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;@plotly/d3&quot;:58}],891:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;./cartesian/constants&quot;).SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s&lt;t.length;s++){var l=t[s];l[0].trace[a]===r&amp;&amp;o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=&quot;string&quot;==typeof e?n.getModule(e).plot:&quot;function&quot;==typeof e?e:e.plot))return[i,t];for(var o=0;o&lt;t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(&quot;gl2d&quot;===e){var u=r.match(i);o=&quot;x&quot;+u[1],s=&quot;y&quot;+u[2]}for(var f=0;f&lt;t.length;f++)a=t[f],&quot;gl2d&quot;===e&amp;&amp;n.traceIs(a,&quot;gl2d&quot;)?a[l[0]]===o&amp;&amp;a[l[1]]===s&amp;&amp;c.push(a):a[l]===r&amp;&amp;c.push(a);return c}},{&quot;../registry&quot;:931,&quot;./cartesian/constants&quot;:861}],892:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-change&quot;),i=t(&quot;mouse-wheel&quot;),a=t(&quot;mouse-event-offset&quot;),o=t(&quot;../cartesian/constants&quot;),s=t(&quot;has-passive-events&quot;);function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,g=o.MINZOOM*r.pixelRatio;function m(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case&quot;zoom&quot;:if(e){var v=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=v,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=v,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&amp;&amp;c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)&lt;g,b=Math.abs(c.dragStart[1]-i)&lt;g;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i&lt;e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&amp;&amp;b)x&amp;&amp;(c.boxEnd[0]=c.boxStart[0]),b&amp;&amp;(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)&gt;Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s&gt;=0?1:-1),c.boxEnd[1]&lt;l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]&gt;l[3]&amp;&amp;(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a&gt;=0?1:-1),c.boxEnd[0]&lt;l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]&gt;l[2]&amp;&amp;(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&amp;&amp;(m(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&amp;&amp;(m(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&amp;&amp;(c.boxInited=!1);break;case&quot;pan&quot;:c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)&lt;d&amp;&amp;(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)&lt;d&amp;&amp;(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&amp;&amp;(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(&quot;touchstart&quot;,(function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchmove&quot;,(function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchend&quot;,(function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),c.wheelListener=i(e,(function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),!0),c}},{&quot;../cartesian/constants&quot;:861,&quot;has-passive-events&quot;:444,&quot;mouse-change&quot;:470,&quot;mouse-event-offset&quot;:471,&quot;mouse-wheel&quot;:473}],893:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../cartesian/axes&quot;),i=t(&quot;../../lib/str2rgbarray&quot;);function a(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[&quot;x&quot;,&quot;y&quot;],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=&quot;&quot;,this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=&quot;sans-serif&quot;,this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var o=a.prototype,s=[&quot;xaxis&quot;,&quot;yaxis&quot;];o.merge=function(t){var e,r,n,a,o,l,c,u,f,h,p;for(this.titleEnable=!1,this.backgroundColor=i(t.plot_bgcolor),h=0;h&lt;2;++h){var d=(e=s[h]).charAt(0);for(n=(r=t[this.scene[e]._name]).title.text===this.scene.fullLayout._dfltTitle[d]?&quot;&quot;:r.title.text,p=0;p&lt;=2;p+=2)this.labelEnable[h+p]=!1,this.labels[h+p]=n,this.labelColor[h+p]=i(r.title.font.color),this.labelFont[h+p]=r.title.font.family,this.labelSize[h+p]=r.title.font.size,this.labelPad[h+p]=this.getLabelPad(e,r),this.tickEnable[h+p]=!1,this.tickColor[h+p]=i((r.tickfont||{}).color),this.tickAngle[h+p]=&quot;auto&quot;===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[h+p]=this.getTickPad(r),this.tickMarkLength[h+p]=0,this.tickMarkWidth[h+p]=r.tickwidth||0,this.tickMarkColor[h+p]=i(r.tickcolor),this.borderLineEnable[h+p]=!1,this.borderLineColor[h+p]=i(r.linecolor),this.borderLineWidth[h+p]=r.linewidth||0;c=this.hasSharedAxis(r),o=this.hasAxisInDfltPos(e,r)&amp;&amp;!c,l=this.hasAxisInAltrPos(e,r)&amp;&amp;!c,a=r.mirror||!1,u=c?-1!==String(a).indexOf(&quot;all&quot;):!!a,f=c?&quot;allticks&quot;===a:-1!==String(a).indexOf(&quot;ticks&quot;),o?this.labelEnable[h]=!0:l&amp;&amp;(this.labelEnable[h+2]=!0),o?this.tickEnable[h]=r.showticklabels:l&amp;&amp;(this.tickEnable[h+2]=r.showticklabels),(o||u)&amp;&amp;(this.borderLineEnable[h]=r.showline),(l||u)&amp;&amp;(this.borderLineEnable[h+2]=r.showline),(o||f)&amp;&amp;(this.tickMarkLength[h]=this.getTickMarkLength(r)),(l||f)&amp;&amp;(this.tickMarkLength[h+2]=this.getTickMarkLength(r)),this.gridLineEnable[h]=r.showgrid,this.gridLineColor[h]=i(r.gridcolor),this.gridLineWidth[h]=r.gridwidth,this.zeroLineEnable[h]=r.zeroline,this.zeroLineColor[h]=i(r.zerolinecolor),this.zeroLineWidth[h]=r.zerolinewidth}},o.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},o.hasAxisInDfltPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;bottom&quot;===r:&quot;yaxis&quot;===t?&quot;left&quot;===r:void 0},o.hasAxisInAltrPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;top&quot;===r:&quot;yaxis&quot;===t?&quot;right&quot;===r:void 0},o.getLabelPad=function(t,e){var r=e.title.font.size,n=e.showticklabels;return&quot;xaxis&quot;===t?&quot;top&quot;===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:&quot;yaxis&quot;===t?&quot;right&quot;===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},o.getTickPad=function(t){return&quot;outside&quot;===t.ticks?10+t.ticklen:15},o.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return&quot;inside&quot;===t.ticks?-e:e},e.exports=function(t){return new a(t)}},{&quot;../../lib/str2rgbarray&quot;:828,&quot;../cartesian/axes&quot;:854}],894:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;./scene2d&quot;),a=t(&quot;../layout_attributes&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;../cartesian/constants&quot;),l=t(&quot;../cartesian&quot;),c=t(&quot;../../components/fx/layout_attributes&quot;),u=t(&quot;../get_data&quot;).getSubplotData;r.name=&quot;gl2d&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(&quot;../cartesian/attributes&quot;),r.supplyLayoutDefaults=function(t,e,r){e._has(&quot;cartesian&quot;)||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,&quot;plot&quot;,&quot;from-root&quot;),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a&lt;n.length;a++){var o=n[a],s=e._plots[o],l=u(r,&quot;gl2d&quot;,o),c=s._scene2d;void 0===c&amp;&amp;(c=new i({id:o,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a&lt;i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d){var c=u(t,&quot;gl2d&quot;,o);0===c.length&amp;&amp;(s._scene2d.destroy(),delete n._plots[o])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:a,x:0,y:0,width:&quot;100%&quot;,height:&quot;100%&quot;,preserveAspectRatio:&quot;none&quot;}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{&quot;../../components/fx/layout_attributes&quot;:707,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../plot_api/edit_types&quot;:836,&quot;../cartesian&quot;:868,&quot;../cartesian/attributes&quot;:852,&quot;../cartesian/constants&quot;:861,&quot;../get_data&quot;:891,&quot;../layout_attributes&quot;:908,&quot;./scene2d&quot;:895}],895:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;gl-plot2d&quot;),c=t(&quot;gl-spikes2d&quot;),u=t(&quot;gl-select-box&quot;),f=t(&quot;webgl-context&quot;),h=t(&quot;./convert&quot;),p=t(&quot;./camera&quot;),d=t(&quot;../../lib/show_no_webgl_msg&quot;),g=t(&quot;../cartesian/constraints&quot;),m=g.enforce,v=g.clean,y=t(&quot;../cartesian/autorange&quot;).doAutoRange,x=t(&quot;../../components/dragelement/helpers&quot;),b=x.drawMode,_=x.selectMode,w=[&quot;xaxis&quot;,&quot;yaxis&quot;],T=t(&quot;../cartesian/constants&quot;).SUBPLOT_PATTERN;function k(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=k;var A=k.prototype;A.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;Error creating static canvas/context for image server&quot;);this.canvas=n,this.gl=i}else{var t=this.container.querySelector(&quot;.gl-canvas-focus&quot;),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return d(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=&quot;100%&quot;,r.style.height=&quot;100%&quot;,r.style.position=&quot;absolute&quot;,r.style.top=&quot;0px&quot;,r.style.left=&quot;0px&quot;,r.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.updateSize(r);var a=this.svgContainer=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);a.style.position=&quot;absolute&quot;,a.style.top=a.style.left=&quot;0px&quot;,a.style.width=a.style.height=&quot;100%&quot;,a.style[&quot;z-index&quot;]=20,a.style[&quot;pointer-events&quot;]=&quot;none&quot;;var o=this.mouseContainer=document.createElement(&quot;div&quot;);o.style.position=&quot;absolute&quot;,o.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.pickCanvas=this.container.querySelector(&quot;.gl-canvas-pick&quot;);var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(&quot;mouseout&quot;,(function(){l.isMouseOver=!1,l.unhover()})),o.addEventListener(&quot;mouseover&quot;,(function(){l.isMouseOver=!0}))},A.toImage=function(t){t||(t=&quot;png&quot;),this.stopped=!0,this.staticPlot&amp;&amp;this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o&lt;s;++o,--s)for(var l=0;l&lt;r;++l)for(var c=0;c&lt;4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(&quot;canvas&quot;);f.width=r,f.height=i;var h,p=f.getContext(&quot;2d&quot;),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case&quot;jpeg&quot;:h=f.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:h=f.toDataURL(&quot;image/webp&quot;);break;default:h=f.toDataURL(&quot;image/png&quot;)}return this.staticPlot&amp;&amp;this.container.removeChild(n),h},A.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&amp;&amp;t.height===o||(t.width=a,t.height=o),t},A.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e&lt;2;++e)for(var r=0;r&lt;t[e].length;++r)t[e][r].text=t[e][r].text+&quot;&quot;;return t},A.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(T),r=&quot;xaxis&quot;+e[1],n=&quot;yaxis&quot;+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},A.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout,i={},o=i[e._name+&quot;.range&quot;]=e.range.slice(),s=i[r._name+&quot;.range&quot;]=r.range.slice();i[e._name+&quot;.autorange&quot;]=e.autorange,i[r._name+&quot;.autorange&quot;]=r.autorange,a.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i);var l=n[e._name];l.range=o,l.autorange=e.autorange;var c=n[r._name];c.range=s,c.autorange=r.autorange,i.lastInputTime=this.camera.lastInputTime,t.emit(&quot;plotly_relayout&quot;,i)},A.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r&lt;2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a&lt;n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&amp;&amp;(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},A.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r&lt;e.length;r++){var n=e[r];n.xref===this.xaxis._id&amp;&amp;n.yref===this.yaxis._id&amp;&amp;a.getComponentMethod(&quot;annotations&quot;,&quot;drawOne&quot;)(t,r)}},A.destroy=function(){if(this.glplot){var t=this.traces;t&amp;&amp;Object.keys(t).map((function(e){t[e].dispose(),delete t[e]})),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null}},A.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:r._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis,_size:r._size}};v(s,this.xaxis),v(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+&quot;px&quot;,this.mouseContainer.style.height=u.h*(h[1]-h[0])+&quot;px&quot;,this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+&quot;px&quot;,this.mouseContainer.style.top=u.t+(1-h[1])*u.h+&quot;px&quot;,c=0;c&lt;2;++c)(l=this[w[c]])._length=o.viewBox[c+2]-o.viewBox[c],y(this.graphDiv,l),l.setScale();m(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},A.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},A.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},A.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r&lt;a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n&lt;t.length;n++)if((i=t[n]).uid===o&amp;&amp;i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r&lt;t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort((function(t,e){return t._trace.index-e._trace.index}))},A.updateFx=function(t){_(t)||b(t)?(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;none&quot;):(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;auto&quot;),this.mouseContainer.style.cursor=&quot;pan&quot;===t?&quot;move&quot;:&quot;zoom&quot;===t?&quot;crosshair&quot;:null},A.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a&lt;this.fullData.length;a++)this.fullData[a].uid===n&amp;&amp;(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},A.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&amp;&amp;0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&amp;&amp;&quot;zoom&quot;===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u&lt;2;u++)e.boxStart[u]===e.boxEnd[u]&amp;&amp;(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&amp;&amp;this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&amp;&amp;a.object._trace.handlePick(a);if(d&amp;&amp;n&amp;&amp;this.emitPointAction(d,&quot;plotly_click&quot;),a&amp;&amp;&quot;skip&quot;!==a.object._trace.hoverinfo&amp;&amp;i.hovermode&amp;&amp;d&amp;&amp;(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var g=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),g.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,&quot;plotly_hover&quot;);var m=this.fullData[g.trace.index]||{},v=g.pointIndex,y=s.castHoverinfo(m,i,v);if(y&amp;&amp;&quot;all&quot;!==y){var x=y.split(&quot;+&quot;);-1===x.indexOf(&quot;x&quot;)&amp;&amp;(g.traceCoord[0]=void 0),-1===x.indexOf(&quot;y&quot;)&amp;&amp;(g.traceCoord[1]=void 0),-1===x.indexOf(&quot;z&quot;)&amp;&amp;(g.traceCoord[2]=void 0),-1===x.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===x.indexOf(&quot;name&quot;)&amp;&amp;(g.name=void 0)}s.loneHover({x:g.screenCoord[0],y:g.screenCoord[1],xLabel:this.hoverFormatter(&quot;xaxis&quot;,g.traceCoord[0]),yLabel:this.hoverFormatter(&quot;yaxis&quot;,g.traceCoord[1]),zLabel:g.traceCoord[2],text:g.textLabel,name:g.name,color:s.castHoverOption(m,v,&quot;bgcolor&quot;)||g.color,borderColor:s.castHoverOption(m,v,&quot;bordercolor&quot;),fontFamily:s.castHoverOption(m,v,&quot;font.family&quot;),fontSize:s.castHoverOption(m,v,&quot;font.size&quot;),fontColor:s.castHoverOption(m,v,&quot;font.color&quot;),nameLength:s.castHoverOption(m,v,&quot;namelength&quot;),textAlign:s.castHoverOption(m,v,&quot;align&quot;)},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},A.unhover=function(){this.lastPickResult&amp;&amp;(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(&quot;plotly_unhover&quot;),s.loneUnhover(this.svgContainer))},A.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),&quot;hover&quot;).text}}},{&quot;../../components/dragelement/helpers&quot;:684,&quot;../../components/fx&quot;:706,&quot;../../lib/show_no_webgl_msg&quot;:825,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;../cartesian/autorange&quot;:853,&quot;../cartesian/constants&quot;:861,&quot;../cartesian/constraints&quot;:862,&quot;./camera&quot;:892,&quot;./convert&quot;:893,&quot;gl-plot2d&quot;:322,&quot;gl-select-box&quot;:337,&quot;gl-spikes2d&quot;:346,&quot;webgl-context&quot;:629}],896:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../components/fx/layout_attributes&quot;),a=t(&quot;./scene&quot;),o=t(&quot;../get_data&quot;).getSubplotData,s=t(&quot;../../lib&quot;),l=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;gl3d&quot;,r.attr=&quot;scene&quot;,r.idRoot=&quot;scene&quot;,r.idRegex=r.attrRegex=s.counterRegex(&quot;scene&quot;),r.attributes=t(&quot;./layout/attributes&quot;),r.layoutAttributes=t(&quot;./layout/layout_attributes&quot;),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.supplyLayoutDefaults=t(&quot;./layout/defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i&lt;n.length;i++){var s=n[i],l=o(r,&quot;gl3d&quot;,s),c=e[s],u=c.camera,f=c._scene;f||(f=new a({id:s,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:u},e),c._scene=f),f.viewInitial||(f.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),f.plot(l,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._scene&amp;&amp;(n[o]._scene.destroy(),n._infolayer&amp;&amp;n._infolayer.selectAll(&quot;.annotation-&quot;+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i&lt;r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:&quot;none&quot;}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),&quot;scene&quot;+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{&quot;../../components/fx/layout_attributes&quot;:707,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;../../plot_api/edit_types&quot;:836,&quot;../get_data&quot;:891,&quot;./layout/attributes&quot;:897,&quot;./layout/defaults&quot;:901,&quot;./layout/layout_attributes&quot;:902,&quot;./scene&quot;:906}],897:[function(t,e,r){&quot;use strict&quot;;e.exports={scene:{valType:&quot;subplotid&quot;,dflt:&quot;scene&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],898:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../components/color&quot;),i=t(&quot;../../cartesian/layout_attributes&quot;),a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../plot_api/edit_types&quot;).overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:&quot;boolean&quot;,dflt:!0},spikesides:{valType:&quot;boolean&quot;,dflt:!0},spikethickness:{valType:&quot;number&quot;,min:0,dflt:2},spikecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},showbackground:{valType:&quot;boolean&quot;,dflt:!1},backgroundcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(204, 204, 204, 0.5)&quot;},showaxeslabels:{valType:&quot;boolean&quot;,dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:{text:i.title.text,font:i.title.font},type:a({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:i.autorange,rangemode:i.rangemode,range:a({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],anim:!1}),tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:&quot;rgb(204, 204, 204)&quot;}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},&quot;plot&quot;,&quot;from-root&quot;)},{&quot;../../../components/color&quot;:666,&quot;../../../lib/extend&quot;:793,&quot;../../../plot_api/edit_types&quot;:836,&quot;../../cartesian/layout_attributes&quot;:869}],899:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../../lib&quot;),a=t(&quot;../../../plot_api/plot_template&quot;),o=t(&quot;./axis_attributes&quot;),s=t(&quot;../../cartesian/type_defaults&quot;),l=t(&quot;../../cartesian/axis_defaults&quot;),c=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p&lt;c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(&quot;gridcolor&quot;,n(f.color,r.bgColor,13600/187).toRgbString()),h(&quot;title.text&quot;,d[0]),f.setScale=i.noop,h(&quot;showspikes&quot;)&amp;&amp;(h(&quot;spikesides&quot;),h(&quot;spikethickness&quot;),h(&quot;spikecolor&quot;,f.color)),h(&quot;showaxeslabels&quot;),h(&quot;showbackground&quot;)&amp;&amp;h(&quot;backgroundcolor&quot;)}}},{&quot;../../../lib&quot;:803,&quot;../../../plot_api/plot_template&quot;:843,&quot;../../cartesian/axis_defaults&quot;:856,&quot;../../cartesian/type_defaults&quot;:880,&quot;./axis_attributes&quot;:898,tinycolor2:598}],900:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=[&quot;Open Sans&quot;,&quot;Open Sans&quot;,&quot;Open Sans&quot;],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t,e){for(var r=0;r&lt;3;++r){var o=e[a[r]];o.visible?(this.labels[r]=t._meta?i.templateString(o.title.text,t._meta):o.title.text,&quot;font&quot;in o.title&amp;&amp;(o.title.font.color&amp;&amp;(this.labelColor[r]=n(o.title.font.color)),o.title.font.family&amp;&amp;(this.labelFont[r]=o.title.font.family),o.title.font.size&amp;&amp;(this.labelSize[r]=o.title.font.size)),&quot;showline&quot;in o&amp;&amp;(this.lineEnable[r]=o.showline),&quot;linecolor&quot;in o&amp;&amp;(this.lineColor[r]=n(o.linecolor)),&quot;linewidth&quot;in o&amp;&amp;(this.lineWidth[r]=o.linewidth),&quot;showgrid&quot;in o&amp;&amp;(this.gridEnable[r]=o.showgrid),&quot;gridcolor&quot;in o&amp;&amp;(this.gridColor[r]=n(o.gridcolor)),&quot;gridwidth&quot;in o&amp;&amp;(this.gridWidth[r]=o.gridwidth),&quot;log&quot;===o.type?this.zeroEnable[r]=!1:&quot;zeroline&quot;in o&amp;&amp;(this.zeroEnable[r]=o.zeroline),&quot;zerolinecolor&quot;in o&amp;&amp;(this.zeroLineColor[r]=n(o.zerolinecolor)),&quot;zerolinewidth&quot;in o&amp;&amp;(this.zeroLineWidth[r]=o.zerolinewidth),&quot;ticks&quot;in o&amp;&amp;o.ticks?this.lineTickEnable[r]=!0:this.lineTickEnable[r]=!1,&quot;ticklen&quot;in o&amp;&amp;(this.lineTickLength[r]=this._defaultLineTickLength[r]=o.ticklen),&quot;tickcolor&quot;in o&amp;&amp;(this.lineTickColor[r]=n(o.tickcolor)),&quot;tickwidth&quot;in o&amp;&amp;(this.lineTickWidth[r]=o.tickwidth),&quot;tickangle&quot;in o&amp;&amp;(this.tickAngle[r]=&quot;auto&quot;===o.tickangle?-3600:Math.PI*-o.tickangle/180),&quot;showticklabels&quot;in o&amp;&amp;(this.tickEnable[r]=o.showticklabels),&quot;tickfont&quot;in o&amp;&amp;(o.tickfont.color&amp;&amp;(this.tickColor[r]=n(o.tickfont.color)),o.tickfont.family&amp;&amp;(this.tickFont[r]=o.tickfont.family),o.tickfont.size&amp;&amp;(this.tickSize[r]=o.tickfont.size)),&quot;mirror&quot;in o?-1!==[&quot;ticks&quot;,&quot;all&quot;,&quot;allticks&quot;].indexOf(o.mirror)?(this.lineTickMirror[r]=!0,this.lineMirror[r]=!0):!0===o.mirror?(this.lineTickMirror[r]=!1,this.lineMirror[r]=!0):(this.lineTickMirror[r]=!1,this.lineMirror[r]=!1):this.lineMirror[r]=!1,&quot;showbackground&quot;in o&amp;&amp;!1!==o.showbackground?(this.backgroundEnable[r]=!0,this.backgroundColor[r]=n(o.backgroundcolor)):this.backgroundEnable[r]=!1):(this.tickEnable[r]=!1,this.labelEnable[r]=!1,this.lineEnable[r]=!1,this.lineTickEnable[r]=!1,this.gridEnable[r]=!1,this.zeroEnable[r]=!1,this.backgroundEnable[r]=!1)}},e.exports=function(t,e){var r=new o;return r.merge(t,e),r}},{&quot;../../../lib&quot;:803,&quot;../../../lib/str2rgbarray&quot;:828}],901:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib&quot;),i=t(&quot;../../../components/color&quot;),a=t(&quot;../../../registry&quot;),o=t(&quot;../../subplot_defaults&quot;),s=t(&quot;./axis_defaults&quot;),l=t(&quot;./layout_attributes&quot;),c=t(&quot;../../get_data&quot;).getSubplotData;function u(t,e,r,n){for(var o=r(&quot;bgcolor&quot;),l=i.combine(o,n.paper_bgcolor),u=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],f=0;f&lt;u.length;f++)r(&quot;camera.&quot;+u[f]+&quot;.x&quot;),r(&quot;camera.&quot;+u[f]+&quot;.y&quot;),r(&quot;camera.&quot;+u[f]+&quot;.z&quot;);r(&quot;camera.projection.type&quot;);var h=!!r(&quot;aspectratio.x&quot;)&amp;&amp;!!r(&quot;aspectratio.y&quot;)&amp;&amp;!!r(&quot;aspectratio.z&quot;),p=r(&quot;aspectmode&quot;,h?&quot;manual&quot;:&quot;auto&quot;);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},&quot;manual&quot;===p&amp;&amp;(e.aspectmode=&quot;auto&quot;),t.aspectmode=e.aspectmode);var d=c(n.fullData,&quot;gl3d&quot;,n.id);s(t,e,{font:n.font,scene:n.id,data:d,bgColor:l,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),a.getComponentMethod(&quot;annotations3d&quot;,&quot;handleDefaults&quot;)(t,e,n);var g=n.getDfltFromLayout(&quot;dragmode&quot;);if(!1!==g&amp;&amp;!g)if(g=&quot;orbit&quot;,t.camera&amp;&amp;t.camera.up){var m=t.camera.up.x,v=t.camera.up.y,y=t.camera.up.z;0!==y&amp;&amp;(m&amp;&amp;v&amp;&amp;y?y/Math.sqrt(m*m+v*v+y*y)&gt;.999&amp;&amp;(g=&quot;turntable&quot;):g=&quot;turntable&quot;)}else g=&quot;turntable&quot;;r(&quot;dragmode&quot;,g),r(&quot;hovermode&quot;,n.getDfltFromLayout(&quot;hovermode&quot;))}e.exports=function(t,e,r){var i=e._basePlotModules.length&gt;1;o(t,e,r,{type:&quot;gl3d&quot;,attributes:l,handleDefaults:u,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{&quot;../../../components/color&quot;:666,&quot;../../../lib&quot;:803,&quot;../../../registry&quot;:931,&quot;../../get_data&quot;:891,&quot;../../subplot_defaults&quot;:925,&quot;./axis_defaults&quot;:899,&quot;./layout_attributes&quot;:902}],902:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_attributes&quot;),i=t(&quot;../../domain&quot;).attributes,a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../lib&quot;).counterRegex;function s(t,e,r){return{x:{valType:&quot;number&quot;,dflt:t,editType:&quot;camera&quot;},y:{valType:&quot;number&quot;,dflt:e,editType:&quot;camera&quot;},z:{valType:&quot;number&quot;,dflt:r,editType:&quot;camera&quot;},editType:&quot;camera&quot;}}e.exports={_arrayAttrRegexps:[o(&quot;scene&quot;,&quot;.annotations&quot;,!0)],bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;plot&quot;},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:&quot;enumerated&quot;,values:[&quot;perspective&quot;,&quot;orthographic&quot;],dflt:&quot;perspective&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;camera&quot;},domain:i({name:&quot;scene&quot;,editType:&quot;plot&quot;}),aspectmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;cube&quot;,&quot;data&quot;,&quot;manual&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;aspectratio.x&quot;:void 0,&quot;aspectratio.y&quot;:void 0,&quot;aspectratio.z&quot;:void 0}},aspectratio:{x:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},y:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},z:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},editType:&quot;plot&quot;,impliedEdits:{aspectmode:&quot;manual&quot;}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:&quot;enumerated&quot;,values:[&quot;orbit&quot;,&quot;turntable&quot;,&quot;zoom&quot;,&quot;pan&quot;,!1],editType:&quot;plot&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;closest&quot;,!1],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;plot&quot;,_deprecated:{cameraposition:{valType:&quot;info_array&quot;,editType:&quot;camera&quot;}}}},{&quot;../../../lib&quot;:803,&quot;../../../lib/extend&quot;:793,&quot;../../domain&quot;:882,&quot;./axis_attributes&quot;:898}],903:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e&lt;3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{&quot;../../../lib/str2rgbarray&quot;:828}],904:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],c=0;c&lt;3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/t.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/t.dataScale[c],u.range[1]=r[c].hi/t.dataScale[c],u._m=1/(t.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&amp;&amp;(u.range[0]-=1,u.range[1]+=1);var f=u.tickmode;if(&quot;auto&quot;===u.tickmode){u.tickmode=&quot;linear&quot;;var h=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/h)}for(var p=n.calcTicks(u,{msUTC:!0}),d=0;d&lt;p.length;++d)p[d].x=p[d].x*t.dataScale[c],&quot;date&quot;===u.type&amp;&amp;(p[d].text=p[d].text.replace(/\&lt;br\&gt;/g,&quot; &quot;));l[c]=p,u.tickmode=f}}e.ticks=l;for(c=0;c&lt;3;++c){o[c]=.5*(t.glplot.bounds[0][c]+t.glplot.bounds[1][c]);for(d=0;d&lt;2;++d)e.bounds[d][c]=t.glplot.bounds[d][c]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r&lt;3;++r){for(var n=t[r],i=new Array(n.length),a=0;a&lt;n.length;++a)i[a]=n[a].x;e[r]=i}return e}(l)};var n=t(&quot;../../cartesian/axes&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],o=[0,0,0]},{&quot;../../../lib&quot;:803,&quot;../../cartesian/axes&quot;:854}],905:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r&lt;4;++r)for(n=0;n&lt;4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],906:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;gl-plot3d&quot;),o=a.createCamera,s=a.createScene,l=t(&quot;webgl-context&quot;),c=t(&quot;has-passive-events&quot;),u=t(&quot;../../registry&quot;),f=t(&quot;../../lib&quot;),h=f.preserveDrawingBuffer(),p=t(&quot;../../plots/cartesian/axes&quot;),d=t(&quot;../../components/fx&quot;),g=t(&quot;../../lib/str2rgbarray&quot;),m=t(&quot;../../lib/show_no_webgl_msg&quot;),v=t(&quot;./project&quot;),y=t(&quot;./layout/convert&quot;),x=t(&quot;./layout/spikes&quot;),b=t(&quot;./layout/tick_marks&quot;);function _(t,e){var r=document.createElement(&quot;div&quot;),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);i.style.position=&quot;absolute&quot;,i.style.top=i.style.left=&quot;0px&quot;,i.style.width=i.style.height=&quot;100%&quot;,i.style[&quot;z-index&quot;]=20,i.style[&quot;pointer-events&quot;]=&quot;none&quot;,r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=&quot;absolute&quot;,r.style.top=r.style.left=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,n.appendChild(r),this.fullLayout=e,this.id=t.id||&quot;scene&quot;,this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=x(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;convert&quot;),this.drawAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;draw&quot;),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var t={canvas:this.canvas,gl:this.gl,glOptions:{preserveDrawingBuffer:h,premultipliedAlpha:!0,antialias:!0},container:this.container,axes:this.axesOptions,spikes:this.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:this.camera,pixelRatio:this.pixelRatio};if(this.staticMode){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=l({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;error creating static canvas/context for image server&quot;);t.gl=i,t.canvas=n}return t};var T=!0;w.tryCreatePlot=function(){var t=this.prepareOptions(),e=!0;try{this.glplot=s(t)}catch(r){if(this.staticMode||!T||h)e=!1;else{f.warn([&quot;webgl setup failed possibly due to&quot;,&quot;false preserveDrawingBuffer config.&quot;,&quot;The mobile/tablet device may not be detected by is-mobile module.&quot;,&quot;Enabling preserveDrawingBuffer in second attempt to create webgl scene...&quot;].join(&quot; &quot;));try{h=t.glOptions.preserveDrawingBuffer=!0,this.glplot=s(t)}catch(r){h=t.glOptions.preserveDrawingBuffer=!1,e=!1}}}return T=!1,e},w.initializeGLCamera=function(){var t=this.fullSceneLayout.camera,e=&quot;orthographic&quot;===t.projection.type;this.camera=o(this.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:e,zoomMin:.01,zoomMax:100,mode:&quot;orbit&quot;})},w.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return m(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&amp;&amp;(e[t.id+&quot;.camera&quot;]=t.getCamera()),t.isAspectChanged(r)&amp;&amp;(e[t.id+&quot;.aspectratio&quot;]=t.glplot.getAspectratio(),&quot;manual&quot;!==r[t.id].aspectmode&amp;&amp;(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+&quot;.aspectmode&quot;]=&quot;manual&quot;)),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit(&quot;plotly_relayout&quot;,e)}};return t.glplot.canvas&amp;&amp;(t.glplot.canvas.addEventListener(&quot;mouseup&quot;,(function(){i(t)})),t.glplot.canvas.addEventListener(&quot;wheel&quot;,(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX&gt;r.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&amp;&amp;{passive:!1}),t.glplot.canvas.addEventListener(&quot;mousemove&quot;,(function(){if(!1!==t.fullSceneLayout.dragmode&amp;&amp;0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit(&quot;plotly_relayouting&quot;,e)}})),t.staticMode||t.glplot.canvas.addEventListener(&quot;webglcontextlost&quot;,(function(r){e&amp;&amp;e.emit&amp;&amp;e.emit(&quot;plotly_webglcontextlost&quot;,{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 &quot;+s+&quot; &quot;+l),n.setAttributeNS(null,&quot;width&quot;,s),n.setAttributeNS(null,&quot;height&quot;,l),b(e),e.glplot.axes.update(e.axesOptions);for(var c,u=Object.keys(e.traces),h=null,g=e.glplot.selection,m=0;m&lt;u.length;++m)&quot;skip&quot;!==(t=e.traces[u[m]]).data.hoverinfo&amp;&amp;t.handlePick(g)&amp;&amp;(h=t),t.setContourLevels&amp;&amp;t.setContourLevels();function y(t,r,n){var i=e.fullSceneLayout[t+&quot;axis&quot;];return&quot;log&quot;!==i.type&amp;&amp;(r=i.d2l(r)),p.hoverLabelText(i,r,n)}if(null!==h){var x=v(e.glplot.cameraParams,g.dataCoordinate);t=h.data;var _,w=r._fullData[t.index],T=g.index,k={xLabel:y(&quot;x&quot;,g.traceCoordinate[0],t.xhoverformat),yLabel:y(&quot;y&quot;,g.traceCoordinate[1],t.yhoverformat),zLabel:y(&quot;z&quot;,g.traceCoordinate[2],t.zhoverformat)},A=d.castHoverinfo(w,e.fullLayout,T),M=(A||&quot;&quot;).split(&quot;+&quot;),S=A&amp;&amp;&quot;all&quot;===A;w.hovertemplate||S||(-1===M.indexOf(&quot;x&quot;)&amp;&amp;(k.xLabel=void 0),-1===M.indexOf(&quot;y&quot;)&amp;&amp;(k.yLabel=void 0),-1===M.indexOf(&quot;z&quot;)&amp;&amp;(k.zLabel=void 0),-1===M.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===M.indexOf(&quot;name&quot;)&amp;&amp;(h.name=void 0));var E=[];&quot;cone&quot;===t.type||&quot;streamtube&quot;===t.type?(k.uLabel=y(&quot;x&quot;,g.traceCoordinate[3],t.uhoverformat),(S||-1!==M.indexOf(&quot;u&quot;))&amp;&amp;E.push(&quot;u: &quot;+k.uLabel),k.vLabel=y(&quot;y&quot;,g.traceCoordinate[4],t.vhoverformat),(S||-1!==M.indexOf(&quot;v&quot;))&amp;&amp;E.push(&quot;v: &quot;+k.vLabel),k.wLabel=y(&quot;z&quot;,g.traceCoordinate[5],t.whoverformat),(S||-1!==M.indexOf(&quot;w&quot;))&amp;&amp;E.push(&quot;w: &quot;+k.wLabel),k.normLabel=g.traceCoordinate[6].toPrecision(3),(S||-1!==M.indexOf(&quot;norm&quot;))&amp;&amp;E.push(&quot;norm: &quot;+k.normLabel),&quot;streamtube&quot;===t.type&amp;&amp;(k.divergenceLabel=g.traceCoordinate[7].toPrecision(3),(S||-1!==M.indexOf(&quot;divergence&quot;))&amp;&amp;E.push(&quot;divergence: &quot;+k.divergenceLabel)),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):&quot;isosurface&quot;===t.type||&quot;volume&quot;===t.type?(k.valueLabel=p.hoverLabelText(e._mockAxis,e._mockAxis.d2l(g.traceCoordinate[3]),t.valuehoverformat),E.push(&quot;value: &quot;+k.valueLabel),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):_=g.textLabel;var L={x:g.traceCoordinate[0],y:g.traceCoordinate[1],z:g.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};d.appendArrayPointValue(L,w,T),t._module.eventData&amp;&amp;(L=w._module.eventData(L,g,w,{},T));var C={points:[L]};if(e.fullSceneLayout.hovermode){var P=[];d.loneHover({trace:w,x:(.5+.5*x[0]/x[3])*s,y:(.5-.5*x[1]/x[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:_,name:h.name,color:d.castHoverOption(w,T,&quot;bgcolor&quot;)||h.color,borderColor:d.castHoverOption(w,T,&quot;bordercolor&quot;),fontFamily:d.castHoverOption(w,T,&quot;font.family&quot;),fontSize:d.castHoverOption(w,T,&quot;font.size&quot;),fontColor:d.castHoverOption(w,T,&quot;font.color&quot;),nameLength:d.castHoverOption(w,T,&quot;namelength&quot;),textAlign:d.castHoverOption(w,T,&quot;align&quot;),hovertemplate:f.castOption(w,T,&quot;hovertemplate&quot;),hovertemplateLabels:f.extendFlat({},L,k),eventData:[L]},{container:n,gd:r,inOut_bbox:P}),L.bbox=P[0]}g.buttons&amp;&amp;g.distance&lt;5?r.emit(&quot;plotly_click&quot;,C):r.emit(&quot;plotly_hover&quot;,C),c=C}else d.loneUnhover(n),r.emit(&quot;plotly_unhover&quot;,c);e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error(&quot;Catastrophic and unrecoverable WebGL error. Context lost.&quot;)};requestAnimationFrame(e)};var k=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function A(t,e,r){for(var n=t.fullSceneLayout,i=0;i&lt;3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+&quot;calendar&quot;],u=e[&quot;_&quot;+o+&quot;length&quot;];if(f.isArrayOrTypedArray(l))for(var h,p=0;p&lt;(u||l.length);p++)if(f.isArrayOrTypedArray(l[p]))for(var d=0;d&lt;l[p].length;++d)h=s.d2l(l[p][d],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],u-1)}}w.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];this.fullLayout=e,this.fullSceneLayout=c,this.axesOptions.merge(e,c),this.spikeOptions.merge(c),this.setViewport(c),this.updateFx(c.dragmode,c.hovermode),this.camera.enableWheel=this.graphDiv._context._scrollZoom.gl3d,this.glplot.setClearColor(g(c.bgcolor)),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;A(this,n,f);!function(t,e){for(var r=t.fullSceneLayout,n=r.annotations||[],i=0;i&lt;3;i++)for(var a=k[i],o=a.charAt(0),s=r[a],l=0;l&lt;n.length;l++){var c=n[l];if(c.visible){var u=s.r2l(c[o]);!isNaN(u)&amp;&amp;isFinite(u)&amp;&amp;(e[0][i]=Math.min(e[0][i],u),e[1][i]=Math.max(e[1][i],u))}}}(this,f);var h=[1,1,1];for(o=0;o&lt;3;++o)f[1][o]===f[0][o]?h[o]=1:h[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=h,this.convertAnnotations(this),a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a&lt;p.length;++a){for(o=0;o&lt;t.length;++o)if(t[o].uid===p[a]&amp;&amp;!0===t[o].visible&amp;&amp;0!==t[o]._length)continue t;(i=this.traces[p[a]]).dispose(),delete this.traces[p[a]]}this.glplot.objects.sort((function(t,e){return t._trace.data.index-e._trace.data.index}));var d,m=[[0,0,0],[0,0,0]],v=[],y={};for(a=0;a&lt;3;++a){if((l=(s=c[k[a]]).type)in y?(y[l].acc*=h[a],y[l].count+=1):y[l]={acc:h[a],count:1},s.autorange){m[0][a]=1/0,m[1][a]=-1/0;var x=this.glplot.objects,b=this.fullSceneLayout.annotations||[],_=s._name.charAt(0);for(o=0;o&lt;x.length;o++){var w=x[o],T=w.bounds,M=w._trace.data._pad||0;&quot;ErrorBars&quot;===w.constructor.name&amp;&amp;s._lowerLogErrorBound?m[0][a]=Math.min(m[0][a],s._lowerLogErrorBound):m[0][a]=Math.min(m[0][a],T[0][a]/h[a]-M),m[1][a]=Math.max(m[1][a],T[1][a]/h[a]+M)}for(o=0;o&lt;b.length;o++){var S=b[o];if(S.visible){var E=s.r2l(S[_]);m[0][a]=Math.min(m[0][a],E),m[1][a]=Math.max(m[1][a],E)}}if(&quot;rangemode&quot;in s&amp;&amp;&quot;tozero&quot;===s.rangemode&amp;&amp;(m[0][a]=Math.min(m[0][a],0),m[1][a]=Math.max(m[1][a],0)),m[0][a]&gt;m[1][a])m[0][a]=-1,m[1][a]=1;else{var L=m[1][a]-m[0][a];m[0][a]-=L/32,m[1][a]+=L/32}if(&quot;reversed&quot;===s.autorange){var C=m[0][a];m[0][a]=m[1][a],m[1][a]=C}}else{var P=s.range;m[0][a]=s.r2l(P[0]),m[1][a]=s.r2l(P[1])}m[0][a]===m[1][a]&amp;&amp;(m[0][a]-=1,m[1][a]+=1),v[a]=m[1][a]-m[0][a],this.glplot.setBounds(a,{min:m[0][a]*h[a],max:m[1][a]*h[a]})}var I=c.aspectmode;if(&quot;cube&quot;===I)d=[1,1,1];else if(&quot;manual&quot;===I){var O=c.aspectratio;d=[O.x,O.y,O.z]}else{if(&quot;auto&quot;!==I&amp;&amp;&quot;data&quot;!==I)throw new Error(&quot;scene.js aspectRatio was not one of the enumerated types&quot;);var z=[1,1,1];for(a=0;a&lt;3;++a){var D=y[l=(s=c[k[a]]).type];z[a]=Math.pow(D.acc,1/D.count)/h[a]}d=&quot;data&quot;===I||Math.max.apply(null,z)/Math.min.apply(null,z)&lt;=4?z:[1,1,1]}c.aspectratio.x=u.aspectratio.x=d[0],c.aspectratio.y=u.aspectratio.y=d[1],c.aspectratio.z=u.aspectratio.z=d[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var R=c.domain||null,F=e._size||null;if(R&amp;&amp;F){var B=this.container.style;B.position=&quot;absolute&quot;,B.left=F.l+R.x[0]*F.w+&quot;px&quot;,B.top=F.t+(1-R.y[1])*F.h+&quot;px&quot;,B.width=F.w*(R.x[1]-R.x[0])+&quot;px&quot;,B.height=F.h*(R.y[1]-R.y[0])+&quot;px&quot;}this.glplot.redraw()}},w.destroy=function(){this.glplot&amp;&amp;(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},w.getCamera=function(){var t;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(t=this.camera).up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?&quot;orthographic&quot;:&quot;perspective&quot;}}},w.setViewport=function(t){var e,r=t.camera;this.camera.lookAt.apply(this,[[(e=r).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]),this.glplot.setAspectratio(t.aspectratio),&quot;orthographic&quot;===r.projection.type!==this.camera._ortho&amp;&amp;(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},w.isCameraChanged=function(t){var e=this.getCamera(),r=f.nestedProperty(t,this.id+&quot;.camera&quot;).get();function n(t,e,r,n){var i=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];return e[i[r]]&amp;&amp;t[i[r]][a[n]]===e[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a&lt;3;a++)for(var o=0;o&lt;3;o++)if(!n(e,r,a,o)){i=!0;break}(!r.projection||e.projection&amp;&amp;e.projection.type!==r.projection.type)&amp;&amp;(i=!0)}return i},w.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;).get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this.fullLayout,l=this.isCameraChanged(t),c=this.isAspectChanged(t),h=l||c;if(h){var p={};if(l&amp;&amp;(e=this.getCamera(),n=(r=f.nestedProperty(t,this.id+&quot;.camera&quot;)).get(),p[this.id+&quot;.camera&quot;]=n),c&amp;&amp;(i=this.glplot.getAspectratio(),o=(a=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;)).get(),p[this.id+&quot;.aspectratio&quot;]=o),u.call(&quot;_storeDirectGUIEdit&quot;,t,s._preGUI,p),l)r.set(e),f.nestedProperty(s,this.id+&quot;.camera&quot;).set(e);if(c)a.set(i),f.nestedProperty(s,this.id+&quot;.aspectratio&quot;).set(i),this.glplot.redraw()}return h},w.updateFx=function(t,e){var r=this.camera;if(r)if(&quot;orbit&quot;===t)r.mode=&quot;orbit&quot;,r.keyBindingMode=&quot;rotate&quot;;else if(&quot;turntable&quot;===t){r.up=[0,0,1],r.mode=&quot;turntable&quot;,r.keyBindingMode=&quot;rotate&quot;;var n=this.graphDiv,i=n._fullLayout,a=this.fullSceneLayout.camera,o=a.up.x,s=a.up.y,l=a.up.z;if(l/Math.sqrt(o*o+s*s+l*l)&lt;.999){var c=this.id+&quot;.camera.up&quot;,h={x:0,y:0,z:1},p={};p[c]=h;var d=n.layout;u.call(&quot;_storeDirectGUIEdit&quot;,d,i._preGUI,p),a.up=h,f.nestedProperty(d,c).set(h)}}else r.keyBindingMode=t;this.fullSceneLayout.hovermode=e},w.toImage=function(t){t||(t=&quot;png&quot;),this.staticMode&amp;&amp;this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a),function(t,e,r){for(var n=0,i=r-1;n&lt;i;++n,--i)for(var a=0;a&lt;e;++a)for(var o=0;o&lt;4;++o){var s=4*(e*n+a)+o,l=4*(e*i+a)+o,c=t[s];t[s]=t[l],t[l]=c}}(a,r,i),function(t,e,r){for(var n=0;n&lt;r;++n)for(var i=0;i&lt;e;++i){var a=4*(e*n+i),o=t[a+3];if(o&gt;0)for(var s=255/o,l=0;l&lt;3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(a,r,i);var o=document.createElement(&quot;canvas&quot;);o.width=r,o.height=i;var s,l=o.getContext(&quot;2d&quot;),c=l.createImageData(r,i);switch(c.data.set(a),l.putImageData(c,0,0),t){case&quot;jpeg&quot;:s=o.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:s=o.toDataURL(&quot;image/webp&quot;);break;default:s=o.toDataURL(&quot;image/png&quot;)}return this.staticMode&amp;&amp;this.container.removeChild(n),s},w.setConvert=function(){for(var t=0;t&lt;3;t++){var e=this.fullSceneLayout[k[t]];p.setConvert(e,this.fullLayout),e.setScale=f.noop}},w.make4thDimension=function(){var t=this.graphDiv._fullLayout;this._mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},p.setConvert(this._mockAxis,t)},e.exports=_},{&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../lib/show_no_webgl_msg&quot;:825,&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;./layout/convert&quot;:900,&quot;./layout/spikes&quot;:903,&quot;./layout/tick_marks&quot;:904,&quot;./project&quot;:905,&quot;gl-plot3d&quot;:326,&quot;has-passive-events&quot;:444,&quot;webgl-context&quot;:629}],907:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a&lt;n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],908:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;./animation_attributes&quot;),a=t(&quot;../components/color/attributes&quot;),o=t(&quot;../components/shapes/draw_newshape/attributes&quot;),s=t(&quot;./pad_attributes&quot;),l=t(&quot;../lib/extend&quot;).extendFlat,c=n({editType:&quot;calc&quot;});c.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=a.defaultLine,e.exports={font:c,title:{text:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},font:n({editType:&quot;layoutstyle&quot;}),xref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},yref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},x:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;layoutstyle&quot;},y:{valType:&quot;number&quot;,min:0,max:1,dflt:&quot;auto&quot;,editType:&quot;layoutstyle&quot;},xanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;layoutstyle&quot;},yanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;layoutstyle&quot;},pad:l(s({editType:&quot;layoutstyle&quot;}),{}),editType:&quot;layoutstyle&quot;},uniformtext:{mode:{valType:&quot;enumerated&quot;,values:[!1,&quot;hide&quot;,&quot;show&quot;],dflt:!1,editType:&quot;plot&quot;},minsize:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},autosize:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:10,dflt:700,editType:&quot;plot&quot;},height:{valType:&quot;number&quot;,min:10,dflt:450,editType:&quot;plot&quot;},margin:{l:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},t:{valType:&quot;number&quot;,min:0,dflt:100,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},autoexpand:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},computed:{valType:&quot;any&quot;,editType:&quot;none&quot;},paper_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;plot&quot;},plot_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;layoutstyle&quot;},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},separators:{valType:&quot;string&quot;,editType:&quot;plot&quot;},hidesources:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},showlegend:{valType:&quot;boolean&quot;,editType:&quot;legend&quot;},colorway:{valType:&quot;colorlist&quot;,dflt:a.defaults,editType:&quot;calc&quot;},datarevision:{valType:&quot;any&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},selectionrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},template:{valType:&quot;any&quot;,editType:&quot;calc&quot;},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},transition:l({},i.transition,{editType:&quot;none&quot;}),_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},titlefont:n({editType:&quot;layoutstyle&quot;})}}},{&quot;../components/color/attributes&quot;:665,&quot;../components/shapes/draw_newshape/attributes&quot;:751,&quot;../lib/extend&quot;:793,&quot;./animation_attributes&quot;:848,&quot;./font_attributes&quot;:883,&quot;./pad_attributes&quot;:916}],909:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/sort_object_keys&quot;),i='\xa9 &lt;a target=&quot;_blank&quot; href=&quot;https://www.openstreetmap.org/copyright&quot;&gt;OpenStreetMap&lt;/a&gt; contributors',a=['\xa9 &lt;a target=&quot;_blank&quot; href=&quot;https://carto.com/&quot;&gt;Carto&lt;/a&gt;',i].join(&quot; &quot;),o=['Map tiles by &lt;a target=&quot;_blank&quot; href=&quot;https://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;','under &lt;a target=&quot;_blank&quot; href=&quot;https://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt;',&quot;|&quot;,'Data by &lt;a target=&quot;_blank&quot; href=&quot;https://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt; contributors','under &lt;a target=&quot;_blank&quot; href=&quot;https://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;'].join(&quot; &quot;),s={&quot;open-street-map&quot;:{id:&quot;osm&quot;,version:8,sources:{&quot;plotly-osm-tiles&quot;:{type:&quot;raster&quot;,attribution:i,tiles:[&quot;https://a.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;,&quot;https://b.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-osm-tiles&quot;,type:&quot;raster&quot;,source:&quot;plotly-osm-tiles&quot;,minzoom:0,maxzoom:22}]},&quot;white-bg&quot;:{id:&quot;white-bg&quot;,version:8,sources:{},layers:[{id:&quot;white-bg&quot;,type:&quot;background&quot;,paint:{&quot;background-color&quot;:&quot;#FFFFFF&quot;},minzoom:0,maxzoom:22}]},&quot;carto-positron&quot;:{id:&quot;carto-positron&quot;,version:8,sources:{&quot;plotly-carto-positron&quot;:{type:&quot;raster&quot;,attribution:a,tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-positron&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-positron&quot;,minzoom:0,maxzoom:22}]},&quot;carto-darkmatter&quot;:{id:&quot;carto-darkmatter&quot;,version:8,sources:{&quot;plotly-carto-darkmatter&quot;:{type:&quot;raster&quot;,attribution:a,tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-darkmatter&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-darkmatter&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-terrain&quot;:{id:&quot;stamen-terrain&quot;,version:8,sources:{&quot;plotly-stamen-terrain&quot;:{type:&quot;raster&quot;,attribution:o,tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-terrain&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-terrain&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-toner&quot;:{id:&quot;stamen-toner&quot;,version:8,sources:{&quot;plotly-stamen-toner&quot;:{type:&quot;raster&quot;,attribution:o,tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-toner&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-toner&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-watercolor&quot;:{id:&quot;stamen-watercolor&quot;,version:8,sources:{&quot;plotly-stamen-watercolor&quot;:{type:&quot;raster&quot;,attribution:['Map tiles by &lt;a target=&quot;_blank&quot; href=&quot;https://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;','under &lt;a target=&quot;_blank&quot; href=&quot;https://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt;',&quot;|&quot;,'Data by &lt;a target=&quot;_blank&quot; href=&quot;https://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt; contributors','under &lt;a target=&quot;_blank&quot; href=&quot;https://creativecommons.org/licenses/by-sa/3.0&quot;&gt;CC BY SA&lt;/a&gt;'].join(&quot; &quot;),tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-watercolor&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-watercolor&quot;,minzoom:0,maxzoom:22}]}},l=n(s);e.exports={requiredVersion:&quot;1.10.1&quot;,styleUrlPrefix:&quot;mapbox://styles/mapbox/&quot;,styleUrlSuffix:&quot;v9&quot;,styleValuesMapbox:[&quot;basic&quot;,&quot;streets&quot;,&quot;outdoors&quot;,&quot;light&quot;,&quot;dark&quot;,&quot;satellite&quot;,&quot;satellite-streets&quot;],styleValueDflt:&quot;basic&quot;,stylesNonMapbox:s,styleValuesNonMapbox:l,traceLayerPrefix:&quot;plotly-trace-layer-&quot;,layoutLayerPrefix:&quot;plotly-layout-layer-&quot;,wrongVersionErrorMsg:[&quot;Your custom plotly.js bundle is not using the correct mapbox-gl version&quot;,&quot;Please install mapbox-gl@1.10.1.&quot;].join(&quot;\n&quot;),noAccessTokenErrorMsg:[&quot;Missing Mapbox access token.&quot;,&quot;Mapbox trace type require a Mapbox access token to be registered.&quot;,&quot;For example:&quot;,&quot;  Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });&quot;,&quot;More info here: https://www.mapbox.com/help/define-access-token/&quot;].join(&quot;\n&quot;),missingStyleErrorMsg:[&quot;No valid mapbox style found, please set `mapbox.style` to one of:&quot;,l.join(&quot;, &quot;),&quot;or register a Mapbox access token to use a Mapbox-served style.&quot;].join(&quot;\n&quot;),multipleTokensErrorMsg:[&quot;Set multiple mapbox access token across different mapbox subplot,&quot;,&quot;using first token found as mapbox-gl does not allow multipleaccess tokens on the same page.&quot;].join(&quot;\n&quot;),mapOnErrorMsg:&quot;Mapbox error.&quot;,mapboxLogo:{path0:&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot;,path1:&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot;,path2:&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot;,polygon:&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34&quot;},styleRules:{map:&quot;overflow:hidden;position:relative;&quot;,&quot;missing-css&quot;:&quot;display:none;&quot;,canary:&quot;background-color:salmon;&quot;,&quot;ctrl-bottom-left&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;&quot;,&quot;ctrl-bottom-right&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;&quot;,ctrl:&quot;clear: both; pointer-events: auto; transform: translate(0, 0);&quot;,&quot;ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: none;&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: block; margin-top:2px&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover&quot;:&quot;padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;&quot;,&quot;ctrl-attrib.mapboxgl-compact::after&quot;:'content: &quot;&quot;; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=&quot;0 0 20 20&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E %3Cpath fill=&quot;%23333333&quot; fill-rule=&quot;evenodd&quot; d=&quot;M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0&quot;/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',&quot;ctrl-attrib.mapboxgl-compact&quot;:&quot;min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;&quot;,&quot;ctrl-bottom-right &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; right: 0&quot;,&quot;ctrl-bottom-left &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; left: 0&quot;,&quot;ctrl-bottom-left .mapboxgl-ctrl&quot;:&quot;margin: 0 0 10px 10px; float: left;&quot;,&quot;ctrl-bottom-right .mapboxgl-ctrl&quot;:&quot;margin: 0 10px 10px 0; float: right;&quot;,&quot;ctrl-attrib&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a:hover&quot;:&quot;color: inherit; text-decoration: underline;&quot;,&quot;ctrl-attrib .mapbox-improve-map&quot;:&quot;font-weight: bold; margin-left: 2px;&quot;,&quot;attrib-empty&quot;:&quot;display: none;&quot;,&quot;ctrl-logo&quot;:'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?%3E %3Csvg version=&quot;1.1&quot; id=&quot;Layer_1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; viewBox=&quot;0 0 21 21&quot; style=&quot;enable-background:new 0 0 21 21;&quot; xml:space=&quot;preserve&quot;%3E%3Cg transform=&quot;translate(0,0.01)&quot;%3E%3Cpath d=&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3Cpath d=&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpath d=&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpolygon points=&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 &quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3C/g%3E%3C/svg%3E\')'}}},{&quot;../../lib/sort_object_keys&quot;:826}],910:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t.split(&quot; &quot;),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[&quot;&quot;,&quot;&quot;],u=[0,0];switch(i){case&quot;top&quot;:c[0]=&quot;top&quot;,u[1]=-l;break;case&quot;bottom&quot;:c[0]=&quot;bottom&quot;,u[1]=l}switch(a){case&quot;left&quot;:c[1]=&quot;right&quot;,u[0]=-s;break;case&quot;right&quot;:c[1]=&quot;left&quot;,u[0]=s}return{anchor:c[0]&amp;&amp;c[1]?c.join(&quot;-&quot;):c[0]?c[0]:c[1]?c[1]:&quot;center&quot;,offset:u}}},{&quot;../../lib&quot;:803}],911:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=i.strScale,s=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,l=t(&quot;../../constants/xmlns_namespaces&quot;),c=t(&quot;@plotly/d3&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./mapbox&quot;),p=r.constants=t(&quot;./constants&quot;);function d(t){return&quot;string&quot;==typeof t&amp;&amp;(-1!==p.styleValuesMapbox.indexOf(t)||0===t.indexOf(&quot;mapbox://&quot;))}r.name=&quot;mapbox&quot;,r.attr=&quot;subplot&quot;,r.idRoot=&quot;mapbox&quot;,r.idRegex=r.attrRegex=i.counterRegex(&quot;mapbox&quot;),r.attributes={subplot:{valType:&quot;subplotid&quot;,dflt:&quot;mapbox&quot;,editType:&quot;calc&quot;}},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.mapbox;if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(t,e){var r=t._fullLayout;if(&quot;&quot;===t._context.mapboxAccessToken)return&quot;&quot;;for(var n=[],a=[],o=!1,s=!1,l=0;l&lt;e.length;l++){var c=r[e[l]],u=c.accesstoken;d(c.style)&amp;&amp;(u?i.pushUnique(n,u):(d(c._input.style)&amp;&amp;(i.error(&quot;Uses Mapbox map style, but did not set an access token.&quot;),o=!0),s=!0)),u&amp;&amp;i.pushUnique(a,u)}if(s){var f=o?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw i.error(f),new Error(f)}return n.length?(n.length&gt;1&amp;&amp;i.warn(p.multipleTokensErrorMsg),n[0]):(a.length&amp;&amp;i.log([&quot;Listed mapbox access token(s)&quot;,a.join(&quot;,&quot;),&quot;but did not use a Mapbox map style, ignoring token(s).&quot;].join(&quot; &quot;)),&quot;&quot;)}(t,a);n.accessToken=o;for(var l=0;l&lt;a.length;l++){var c=a[l],u=s(r,&quot;mapbox&quot;,c),f=e[c],g=f._subplot;g||(g=new h(t,c),e[c]._subplot=g),g.viewInitial||(g.viewInitial={center:i.extendFlat({},f.center),zoom:f.zoom,bearing:f.bearing,pitch:f.pitch}),g.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._subplot&amp;&amp;n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i&lt;r.length;i++){var s=e[r[i]],h=s.domain,d=s._subplot.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:d,x:n.l+n.w*h.x[0],y:n.t+n.h*(1-h.y[1]),width:n.w*(h.x[1]-h.x[0]),height:n.h*(h.y[1]-h.y[0]),preserveAspectRatio:&quot;none&quot;});var g=c.select(s._subplot.div);if(!(null===g.select(&quot;.mapboxgl-ctrl-logo&quot;).node().offsetParent)){var m=e._glimages.append(&quot;g&quot;);m.attr(&quot;transform&quot;,a(n.l+n.w*h.x[0]+10,n.t+n.h*(1-h.y[0])-31)),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path0).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;}),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path1).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path2).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;polygon&quot;).attr(&quot;points&quot;,p.mapboxLogo.polygon).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;})}var v=g.select(&quot;.mapboxgl-ctrl-attrib&quot;).text().replace(&quot;Improve this map&quot;,&quot;&quot;),y=e._glimages.append(&quot;g&quot;),x=y.append(&quot;text&quot;);x.text(v).classed(&quot;static-attribution&quot;,!0).attr({&quot;font-size&quot;:12,&quot;font-family&quot;:&quot;Arial&quot;,color:&quot;rgba(0, 0, 0, 0.75)&quot;,&quot;text-anchor&quot;:&quot;end&quot;,&quot;data-unformatted&quot;:v});var b=u.bBox(x.node()),_=n.w*(h.x[1]-h.x[0]);if(b.width&gt;_/2){var w=v.split(&quot;|&quot;).join(&quot;&lt;br&gt;&quot;);x.text(w).attr(&quot;data-unformatted&quot;,w).call(f.convertToTspans,t),b=u.bBox(x.node())}x.attr(&quot;transform&quot;,a(-3,8-b.height)),y.insert(&quot;rect&quot;,&quot;.static-attribution&quot;).attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:&quot;rgba(255, 255, 255, 0.75)&quot;});var T=1;b.width+6&gt;_&amp;&amp;(T=_/(b.width+6));var k=[n.l+n.w*h.x[1],n.t+n.h*(1-h.y[0])];y.attr(&quot;transform&quot;,a(k[0],k[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n&lt;r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{&quot;../../components/drawing&quot;:688,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/get_data&quot;:891,&quot;./constants&quot;:909,&quot;./layout_attributes&quot;:913,&quot;./layout_defaults&quot;:914,&quot;./mapbox&quot;:915,&quot;@plotly/d3&quot;:58,&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;:461}],912:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/svg_text_utils&quot;).sanitizeHTML,a=t(&quot;./convert_text_opts&quot;),o=t(&quot;./constants&quot;);function s(t,e){this.subplot=t,this.uid=t.uid+&quot;-&quot;+e,this.index=e,this.idSource=&quot;source-&quot;+this.uid,this.idLayer=o.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var l=s.prototype;function c(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&amp;&amp;e.length&gt;0){for(var r=0;r&lt;e.length;r++)if(&quot;string&quot;!=typeof e[r]||0===e[r].length)return!1;return!0}return n.isPlainObject(e)||&quot;string&quot;==typeof e&amp;&amp;e.length&gt;0}function u(t){var e={},r={};switch(t.type){case&quot;circle&quot;:n.extendFlat(r,{&quot;circle-radius&quot;:t.circle.radius,&quot;circle-color&quot;:t.color,&quot;circle-opacity&quot;:t.opacity});break;case&quot;line&quot;:n.extendFlat(r,{&quot;line-width&quot;:t.line.width,&quot;line-color&quot;:t.color,&quot;line-opacity&quot;:t.opacity,&quot;line-dasharray&quot;:t.line.dash});break;case&quot;fill&quot;:n.extendFlat(r,{&quot;fill-color&quot;:t.color,&quot;fill-outline-color&quot;:t.fill.outlinecolor,&quot;fill-opacity&quot;:t.opacity});break;case&quot;symbol&quot;:var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{&quot;icon-image&quot;:i.icon+&quot;-15&quot;,&quot;icon-size&quot;:i.iconsize/10,&quot;text-field&quot;:i.text,&quot;text-size&quot;:i.textfont.size,&quot;text-anchor&quot;:o.anchor,&quot;text-offset&quot;:o.offset,&quot;symbol-placement&quot;:i.placement}),n.extendFlat(r,{&quot;icon-color&quot;:t.color,&quot;text-color&quot;:i.textfont.color,&quot;text-opacity&quot;:t.opacity});break;case&quot;raster&quot;:n.extendFlat(r,{&quot;raster-fade-duration&quot;:0,&quot;raster-opacity&quot;:t.opacity})}return{layout:e,paint:r}}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&amp;&amp;&quot;image&quot;===this.sourceType&amp;&amp;&quot;image&quot;===t.sourcetype&amp;&amp;(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&amp;&amp;this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&amp;&amp;e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,a={type:r};&quot;geojson&quot;===r?e=&quot;data&quot;:&quot;vector&quot;===r?e=&quot;string&quot;==typeof n?&quot;url&quot;:&quot;tiles&quot;:&quot;raster&quot;===r?(e=&quot;tiles&quot;,a.tileSize=256):&quot;image&quot;===r&amp;&amp;(e=&quot;url&quot;,a.coordinates=t.coordinates);a[e]=n,t.sourceattribution&amp;&amp;(a.attribution=i(t.sourceattribution));return a}(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if(&quot;traces&quot;===t)for(var e=this.subplot.getMapLayers(),r=0;r&lt;e.length;r++){var n=e[r].id;if(&quot;string&quot;==typeof n&amp;&amp;0===n.indexOf(o.traceLayerPrefix)){t=n;break}}return t},l.updateLayer=function(t){var e=this.subplot,r=u(t),n=this.lookupBelow(),i=this.findFollowingMapboxLayerId(n);this.removeLayer(),c(t)&amp;&amp;e.addLayer({id:this.idLayer,source:this.idSource,&quot;source-layer&quot;:t.sourcelayer||&quot;&quot;,type:t.type,minzoom:t.minzoom,maxzoom:t.maxzoom,layout:r.layout,paint:r.paint},i),this.layerType=t.type,this.below=n},l.updateStyle=function(t){if(c(t)){var e=u(t);this.subplot.setOptions(this.idLayer,&quot;setLayoutProperty&quot;,e.layout),this.subplot.setOptions(this.idLayer,&quot;setPaintProperty&quot;,e.paint)}},l.removeLayer=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer)},l.dispose=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer),t.getSource(this.idSource)&amp;&amp;t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new s(t,e);return n.update(r),n}},{&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;./constants&quot;:909,&quot;./convert_text_opts&quot;:910}],913:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).defaultLine,a=t(&quot;../domain&quot;).attributes,o=t(&quot;../font_attributes&quot;),s=t(&quot;../../traces/scatter/attributes&quot;).textposition,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;./constants&quot;),f=o({});f.family.dflt=&quot;Open Sans Regular, Arial Unicode MS Regular&quot;,(e.exports=l({_arrayAttrRegexps:[n.counterRegex(&quot;mapbox&quot;,&quot;.layers&quot;,!0)],domain:a({name:&quot;mapbox&quot;}),accesstoken:{valType:&quot;string&quot;,noBlank:!0,strict:!0},style:{valType:&quot;any&quot;,values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt},center:{lon:{valType:&quot;number&quot;,dflt:0},lat:{valType:&quot;number&quot;,dflt:0}},zoom:{valType:&quot;number&quot;,dflt:1},bearing:{valType:&quot;number&quot;,dflt:0},pitch:{valType:&quot;number&quot;,dflt:0},layers:c(&quot;layer&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},sourcetype:{valType:&quot;enumerated&quot;,values:[&quot;geojson&quot;,&quot;vector&quot;,&quot;raster&quot;,&quot;image&quot;],dflt:&quot;geojson&quot;},source:{valType:&quot;any&quot;},sourcelayer:{valType:&quot;string&quot;,dflt:&quot;&quot;},sourceattribution:{valType:&quot;string&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;line&quot;,&quot;fill&quot;,&quot;symbol&quot;,&quot;raster&quot;],dflt:&quot;circle&quot;},coordinates:{valType:&quot;any&quot;},below:{valType:&quot;string&quot;},color:{valType:&quot;color&quot;,dflt:i},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},minzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:0},maxzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:24},circle:{radius:{valType:&quot;number&quot;,dflt:15}},line:{width:{valType:&quot;number&quot;,dflt:2},dash:{valType:&quot;data_array&quot;}},fill:{outlinecolor:{valType:&quot;color&quot;,dflt:i}},symbol:{icon:{valType:&quot;string&quot;,dflt:&quot;marker&quot;},iconsize:{valType:&quot;number&quot;,dflt:10},text:{valType:&quot;string&quot;,dflt:&quot;&quot;},placement:{valType:&quot;enumerated&quot;,values:[&quot;point&quot;,&quot;line&quot;,&quot;line-center&quot;],dflt:&quot;point&quot;},textfont:f,textposition:n.extendFlat({},s,{arrayOk:!1})}})},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../../traces/scatter/attributes&quot;:1218,&quot;../domain&quot;:882,&quot;../font_attributes&quot;:883,&quot;./constants&quot;:909}],914:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../array_container_defaults&quot;),o=t(&quot;./layout_attributes&quot;);function s(t,e,r,n){r(&quot;accesstoken&quot;,n.accessToken),r(&quot;style&quot;),r(&quot;center.lon&quot;),r(&quot;center.lat&quot;),r(&quot;zoom&quot;),r(&quot;bearing&quot;),r(&quot;pitch&quot;),a(t,e,{name:&quot;layers&quot;,handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(&quot;visible&quot;)){var i,a=r(&quot;sourcetype&quot;),s=&quot;raster&quot;===a||&quot;image&quot;===a;r(&quot;source&quot;),r(&quot;sourceattribution&quot;),&quot;vector&quot;===a&amp;&amp;r(&quot;sourcelayer&quot;),&quot;image&quot;===a&amp;&amp;r(&quot;coordinates&quot;),s&amp;&amp;(i=&quot;raster&quot;);var l=r(&quot;type&quot;,i);s&amp;&amp;&quot;raster&quot;!==l&amp;&amp;(l=e.type=&quot;raster&quot;,n.log(&quot;Source types *raster* and *image* must drawn *raster* layer type.&quot;)),r(&quot;below&quot;),r(&quot;color&quot;),r(&quot;opacity&quot;),r(&quot;minzoom&quot;),r(&quot;maxzoom&quot;),&quot;circle&quot;===l&amp;&amp;r(&quot;circle.radius&quot;),&quot;line&quot;===l&amp;&amp;(r(&quot;line.width&quot;),r(&quot;line.dash&quot;)),&quot;fill&quot;===l&amp;&amp;r(&quot;fill.outlinecolor&quot;),&quot;symbol&quot;===l&amp;&amp;(r(&quot;symbol.icon&quot;),r(&quot;symbol.iconsize&quot;),r(&quot;symbol.text&quot;),n.coerceFont(r,&quot;symbol.textfont&quot;),r(&quot;symbol.textposition&quot;),r(&quot;symbol.placement&quot;))}}e.exports=function(t,e,r){i(t,e,r,{type:&quot;mapbox&quot;,attributes:o,handleDefaults:s,partition:&quot;y&quot;,accessToken:e._mapboxAccessToken})}},{&quot;../../lib&quot;:803,&quot;../array_container_defaults&quot;:849,&quot;../subplot_defaults&quot;:925,&quot;./layout_attributes&quot;:913}],915:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../cartesian/axes&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../../components/dragelement/helpers&quot;),f=u.rectMode,h=u.drawMode,p=u.selectMode,d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).clearSelectionsCache,v=t(&quot;../cartesian/select&quot;).selectOnClick,y=t(&quot;./constants&quot;),x=t(&quot;./layers&quot;);function b(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+&quot;-&quot;+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var _=b.prototype;_.plot=function(t,e,r){var n,i=this,a=e[i.id];i.map&amp;&amp;a.accesstoken!==i.accessToken&amp;&amp;(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]),n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},_.createMap=function(t,e,r,i){var o=this,s=e[o.id],l=o.styleObj=T(s.style);o.accessToken=s.accesstoken;var c=o.map=new n.Map({container:o.div,style:l.style,center:A(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0}));c._canvas.style.left=&quot;0px&quot;,c._canvas.style.top=&quot;0px&quot;,o.rejectOnError(i),o.isStatic||o.initFx(t,e);var u=[];u.push(new Promise((function(t){c.once(&quot;load&quot;,t)}))),u=u.concat(a.fetchTraceGeoData(t)),Promise.all(u).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)})).catch(i)},_.updateMap=function(t,e,r,n){var i=this,o=i.map,s=e[this.id];i.rejectOnError(n);var l=[],c=T(s.style);JSON.stringify(i.styleObj)!==JSON.stringify(c)&amp;&amp;(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise((function(t){o.once(&quot;styledata&quot;,t)})))),l=l.concat(a.fetchTraceGeoData(t)),Promise.all(l).then((function(){i.fillBelowLookup(t,e),i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})).catch(n)},_.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r&lt;t.length;r++){var s=t[r][0].trace,l=s._module;&quot;string&quot;==typeof s.below?n=s.below:l.getBelow&amp;&amp;(n=l.getBelow(s,this)),&quot;&quot;===n&amp;&amp;(o=!0),a[&quot;trace-&quot;+s.uid]=n||&quot;&quot;}for(r=0;r&lt;i.length;r++){var c=i[r];n=&quot;string&quot;==typeof c.below?c.below:o?&quot;traces&quot;:&quot;&quot;,a[&quot;layout-&quot;+r]=n}var u,f,h={};for(u in a)h[n=a[u]]?h[n].push(u):h[n]=[u];for(n in h){var p=h[n];if(p.length&gt;1)for(r=0;r&lt;p.length;r++)0===(u=p[r]).indexOf(&quot;trace-&quot;)?(f=u.split(&quot;trace-&quot;)[1],this.traceHash[f]&amp;&amp;(this.traceHash[f].below=null)):0===u.indexOf(&quot;layout-&quot;)&amp;&amp;(f=u.split(&quot;layout-&quot;)[1],this.layerList[f]&amp;&amp;(this.layerList[f].below=null))}};var w={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function T(t){var e={};return i.isPlainObject(t)?(e.id=t.id,e.style=t):&quot;string&quot;==typeof t?(e.id=t,-1!==y.styleValuesMapbox.indexOf(t)?e.style=k(t):y.stylesNonMapbox[t]?e.style=y.stylesNonMapbox[t]:e.style=t):(e.id=y.styleValueDflt,e.style=k(y.styleValueDflt)),e.transition={duration:0,delay:0},e}function k(t){return y.styleUrlPrefix+t+&quot;-&quot;+y.styleUrlSuffix}function A(t){return[t.lon,t.lat]}_.updateData=function(t){var e,r,n,i,a=this.traceHash,o=t.slice().sort((function(t,e){return w[t[0].trace.type]-w[e[0].trace.type]}));for(n=0;n&lt;o.length;n++){var s=o[n],l=!1;(e=a[(r=s[0].trace).uid])&amp;&amp;(e.type===r.type?(e.update(s),l=!0):e.dispose()),!l&amp;&amp;r._module&amp;&amp;(a[r.uid]=r._module.plot(this,s))}var c=Object.keys(a);t:for(n=0;n&lt;c.length;n++){var u=c[n];for(i=0;i&lt;t.length;i++)if(u===(r=t[i][0].trace).uid)continue t;(e=a[u]).dispose(),delete a[u]}},_.updateLayout=function(t){var e=this.map,r=t[this.id];this.dragging||this.wheeling||(e.setCenter(A(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch)),this.updateLayers(t),this.updateFramework(t),this.updateFx(t),this.map.resize(),this.gd._context._scrollZoom.mapbox?e.scrollZoom.enable():e.scrollZoom.disable()},_.resolveOnRender=function(t){var e=this.map;e.on(&quot;render&quot;,(function r(){e.loaded()&amp;&amp;(e.off(&quot;render&quot;,r),setTimeout(t,10))}))},_.rejectOnError=function(t){var e=this.map;function r(){t(new Error(y.mapOnErrorMsg))}e.once(&quot;error&quot;,r),e.once(&quot;style.error&quot;,r),e.once(&quot;source.error&quot;,r),e.once(&quot;tile.error&quot;,r),e.once(&quot;layer.error&quot;,r)},_.createFramework=function(t){var e=this,r=e.div=document.createElement(&quot;div&quot;);r.id=e.uid,r.style.position=&quot;absolute&quot;,e.container.appendChild(r),e.xaxis={_id:&quot;x&quot;,c2p:function(t){return e.project(t).x}},e.yaxis={_id:&quot;y&quot;,c2p:function(t){return e.project(t).y}},e.updateFramework(t),e.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},s.setConvert(e.mockAxis,t)},_.initFx=function(t,e){var r=this,n=r.gd,i=r.map;function a(){c.loneUnhover(e._hoverlayer)}function s(){var t=r.getView();n.emit(&quot;plotly_relayouting&quot;,r.getViewEditsWithDerived(t))}i.on(&quot;moveend&quot;,(function(t){if(r.map){var e=n._fullLayout;if(t.originalEvent||r.wheeling){var i=e[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,e._preGUI,r.getViewEdits(i));var a=r.getView();i._input.center=i.center=a.center,i._input.zoom=i.zoom=a.zoom,i._input.bearing=i.bearing=a.bearing,i._input.pitch=i.pitch=a.pitch,n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))}t.originalEvent&amp;&amp;&quot;mouseup&quot;===t.originalEvent.type?r.dragging=!1:r.wheeling&amp;&amp;(r.wheeling=!1),e._rehover&amp;&amp;e._rehover()}})),i.on(&quot;wheel&quot;,(function(){r.wheeling=!0})),i.on(&quot;mousemove&quot;,(function(t){var e=r.div.getBoundingClientRect(),a=[t.originalEvent.offsetX,t.originalEvent.offsetY];t.target.getBoundingClientRect=function(){return e},r.xaxis.p2c=function(){return i.unproject(a).lng},r.yaxis.p2c=function(){return i.unproject(a).lat},n._fullLayout._rehover=function(){n._fullLayout._hoversubplot===r.id&amp;&amp;n._fullLayout[r.id]&amp;&amp;c.hover(n,t,r.id)},c.hover(n,t,r.id),n._fullLayout._hoversubplot=r.id})),i.on(&quot;dragstart&quot;,(function(){r.dragging=!0,a()})),i.on(&quot;zoomstart&quot;,a),i.on(&quot;mouseout&quot;,(function(){n._fullLayout._hoversubplot=null})),i.on(&quot;drag&quot;,s),i.on(&quot;zoom&quot;,s),i.on(&quot;dblclick&quot;,(function(){var t=n._fullLayout[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,n._fullLayout._preGUI,r.getViewEdits(t));var e=r.viewInitial;i.setCenter(A(e.center)),i.setZoom(e.zoom),i.setBearing(e.bearing),i.setPitch(e.pitch);var a=r.getView();t._input.center=t.center=a.center,t._input.zoom=t.zoom=a.zoom,t._input.bearing=t.bearing=a.bearing,t._input.pitch=t.pitch=a.pitch,n.emit(&quot;plotly_doubleclick&quot;,null),n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))})),r.clearSelect=function(){m(r.dragOptions),g(r.dragOptions.gd)},r.onClickInPanFn=function(t){return function(e){var i=n._fullLayout.clickmode;i.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;v(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(n,e.originalEvent)}}},_.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=f(o)?function(t,r){(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(&quot;click&quot;,e.onClickInPanHandler),p(o)||h(o)?(r.dragPan.disable(),r.on(&quot;zoomstart&quot;,e.clearSelect),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off(&quot;zoomstart&quot;,e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(&quot;click&quot;,e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},_.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+&quot;px&quot;,n.height=r.h*(e.y[1]-e.y[0])+&quot;px&quot;,n.left=r.l+e.x[0]*r.w+&quot;px&quot;,n.top=r.t+(1-e.y[1])*r.h+&quot;px&quot;,this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},_.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e&lt;n.length;e++)n[e].dispose();for(n=this.layerList=[],e=0;e&lt;r.length;e++)n.push(x(this,e,r[e]))}else for(e=0;e&lt;r.length;e++)n[e].update(r[e])},_.destroy=function(){this.map&amp;&amp;(this.map.remove(),this.map=null,this.container.removeChild(this.div))},_.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},_.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},_.getMapLayers=function(){return this.map.getStyle().layers},_.addLayer=function(t,e){var r=this.map;if(&quot;string&quot;==typeof e){if(&quot;&quot;===e)return void r.addLayer(t,e);for(var n=this.getMapLayers(),a=0;a&lt;n.length;a++)if(e===n[a].id)return void r.addLayer(t,e);i.warn([&quot;Trying to add layer with *below* value&quot;,e,&quot;referencing a layer that does not exist&quot;,&quot;or that does not yet exist.&quot;].join(&quot; &quot;))}r.addLayer(t)},_.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},_.getView=function(){var t=this.map,e=t.getCenter(),r={lon:e.lng,lat:e.lat},n=t.getCanvas(),i=n.width,a=n.height;return{center:r,zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch(),_derived:{coordinates:[t.unproject([0,0]).toArray(),t.unproject([i,0]).toArray(),t.unproject([i,a]).toArray(),t.unproject([0,a]).toArray()]}}},_.getViewEdits=function(t){for(var e=this.id,r=[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;],n={},i=0;i&lt;r.length;i++){var a=r[i];n[e+&quot;.&quot;+a]=t[a]}return n},_.getViewEditsWithDerived=function(t){var e=this.id,r=this.getViewEdits(t);return r[e+&quot;._derived&quot;]=t._derived,r},e.exports=b},{&quot;../../components/dragelement&quot;:685,&quot;../../components/dragelement/helpers&quot;:684,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../lib/geo_location_utils&quot;:796,&quot;../../registry&quot;:931,&quot;../cartesian/axes&quot;:854,&quot;../cartesian/select&quot;:874,&quot;./constants&quot;:909,&quot;./layers&quot;:912,&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;:461}],916:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType;return{t:{valType:&quot;number&quot;,dflt:0,editType:e},r:{valType:&quot;number&quot;,dflt:0,editType:e},b:{valType:&quot;number&quot;,dflt:0,editType:e},l:{valType:&quot;number&quot;,dflt:0,editType:e},editType:e}}},{}],917:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-time-format&quot;).timeFormatLocale,a=t(&quot;d3-format&quot;).formatLocale,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;../registry&quot;),l=t(&quot;../plot_api/plot_schema&quot;),c=t(&quot;../plot_api/plot_template&quot;),u=t(&quot;../lib&quot;),f=t(&quot;../components/color&quot;),h=t(&quot;../constants/numerical&quot;).BADNUM,p=t(&quot;./cartesian/axis_ids&quot;),d=t(&quot;./cartesian/handle_outline&quot;).clearSelect,g=t(&quot;./animation_attributes&quot;),m=t(&quot;./frame_attributes&quot;),v=t(&quot;../plots/get_data&quot;).getModuleCalcData,y=u.relinkPrivateKeys,x=u._,b=e.exports={};u.extendFlat(b,s),b.attributes=t(&quot;./attributes&quot;),b.attributes.type.values=b.allTypes,b.fontAttrs=t(&quot;./font_attributes&quot;),b.layoutAttributes=t(&quot;./layout_attributes&quot;),b.fontWeight=&quot;normal&quot;;var _=b.transformsRegistry,w=t(&quot;./command&quot;);b.executeAPICommand=w.executeAPICommand,b.computeAPICommandBindings=w.computeAPICommandBindings,b.manageCommandObserver=w.manageCommandObserver,b.hasSimpleAPICommandBindings=w.hasSimpleAPICommandBindings,b.redrawText=function(t){return t=u.getGraphDiv(t),new Promise((function(e){setTimeout((function(){t._fullLayout&amp;&amp;(s.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),s.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),s.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),e(b.previousPromises(t)))}),300)}))},b.resize=function(t){var e;t=u.getGraphDiv(t);var r=new Promise((function(r,n){t&amp;&amp;!u.isHidden(t)||n(new Error(&quot;Resize must be passed a displayed plot div element.&quot;)),t._redrawTimer&amp;&amp;clearTimeout(t._redrawTimer),t._resolveResize&amp;&amp;(e=t._resolveResize),t._resolveResize=r,t._redrawTimer=setTimeout((function(){if(!t.layout||t.layout.width&amp;&amp;t.layout.height||u.isHidden(t))r(t);else{delete t.layout.width,delete t.layout.height;var e=t.changed;t.autoplay=!0,s.call(&quot;relayout&quot;,t,{autosize:!0}).then((function(){t.changed=e,t._resolveResize===r&amp;&amp;(delete t._resolveResize,r(t))}))}}),100)}));return e&amp;&amp;e(r),r},b.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then((function(){t._promises=[]}))},b.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=u.ensureSingle(e._paper,&quot;text&quot;,&quot;js-plot-link-container&quot;,(function(t){t.style({&quot;font-family&quot;:'&quot;Open Sans&quot;, Arial, sans-serif',&quot;font-size&quot;:&quot;12px&quot;,fill:f.defaultLine,&quot;pointer-events&quot;:&quot;all&quot;}).each((function(){var t=n.select(this);t.append(&quot;tspan&quot;).classed(&quot;js-link-to-tool&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-link-spacer&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-sourcelinks&quot;,!0)}))})),i=r.node(),a={y:e._paper.attr(&quot;height&quot;)-9};document.body.contains(i)&amp;&amp;i.getComputedTextLength()&gt;=e.width-20?(a[&quot;text-anchor&quot;]=&quot;start&quot;,a.x=5):(a[&quot;text-anchor&quot;]=&quot;end&quot;,a.x=e._paper.attr(&quot;width&quot;)-7),r.attr(a);var o=r.select(&quot;.js-link-to-tool&quot;),s=r.select(&quot;.js-link-spacer&quot;),l=r.select(&quot;.js-sourcelinks&quot;);t._context.showSources&amp;&amp;t._context.showSources(t),t._context.showLink&amp;&amp;function(t,e){e.text(&quot;&quot;);var r=e.append(&quot;a&quot;).attr({&quot;xlink:xlink:href&quot;:&quot;#&quot;,class:&quot;link--impt link--embedview&quot;,&quot;font-weight&quot;:&quot;bold&quot;}).text(t._context.linkText+&quot; &quot;+String.fromCharCode(187));if(t._context.sendData)r.on(&quot;click&quot;,(function(){b.sendDataToCloud(t)}));else{var n=window.location.pathname.split(&quot;/&quot;),i=window.location.search;r.attr({&quot;xlink:xlink:show&quot;:&quot;new&quot;,&quot;xlink:xlink:href&quot;:&quot;/&quot;+n[2].split(&quot;.&quot;)[0]+&quot;/&quot;+n[1]+i})}}(t,o),s.text(o.text()&amp;&amp;l.text()?&quot; - &quot;:&quot;&quot;)}},b.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit(&quot;plotly_beforeexport&quot;);var r=n.select(t).append(&quot;div&quot;).attr(&quot;id&quot;,&quot;hiddenform&quot;).style(&quot;display&quot;,&quot;none&quot;),i=r.append(&quot;form&quot;).attr({action:e+&quot;/external&quot;,method:&quot;post&quot;,target:&quot;_blank&quot;});return i.append(&quot;input&quot;).attr({type:&quot;text&quot;,name:&quot;data&quot;}).node().value=b.graphJson(t,!1,&quot;keepdata&quot;),i.node().submit(),r.remove(),t.emit(&quot;plotly_afterexport&quot;),!1}};var T=[&quot;days&quot;,&quot;shortDays&quot;,&quot;months&quot;,&quot;shortMonths&quot;,&quot;periods&quot;,&quot;dateTime&quot;,&quot;date&quot;,&quot;time&quot;,&quot;decimal&quot;,&quot;thousands&quot;,&quot;grouping&quot;,&quot;currency&quot;],k=[&quot;year&quot;,&quot;month&quot;,&quot;dayMonth&quot;,&quot;dayMonthYear&quot;];function A(t,e){var r=t._context.locale;r||(r=&quot;en-US&quot;);var n=!1,i={};function a(t){for(var r=!0,a=0;a&lt;e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&amp;&amp;(n=!0)}for(var o=0;o&lt;2;o++){for(var l=t._context.locales,c=0;c&lt;2;c++){var u=(l[r]||{}).format;if(u&amp;&amp;(a(u),n))break;l=s.localeRegistry}var f=r.split(&quot;-&quot;)[0];if(n||f===r)break;r=f}return n||a(s.localeRegistry.en.format),i}function M(t,e){var r={_fullLayout:e},n=&quot;x&quot;===t._id.charAt(0),i=t._mainAxis._anchorAxis,a=&quot;&quot;,o=&quot;&quot;,s=&quot;&quot;;if(i&amp;&amp;(s=i._mainAxis._id,a=n?t._id+s:s+t._id),!a||!e._plots[a]){a=&quot;&quot;;for(var l=t._counterAxes,c=0;c&lt;l.length;c++){var u=l[c],f=n?t._id+u:u+t._id;o||(o=f);var h=p.getFromId(r,u);if(s&amp;&amp;h.overlaying===s){a=f;break}}}return a||o}function S(t){var e=t.transforms;if(Array.isArray(e)&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++){var n=e[r],i=n._module||_[n.type];if(i&amp;&amp;i.makesData)return!0}return!1}function E(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o&lt;i.length;o++){var s=i[o],l=_[s.type];l&amp;&amp;l.transform&amp;&amp;(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function L(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;px&quot;===t.substr(t.length-2)&amp;&amp;parseFloat(t)}function C(t){var e=t.margin;if(!t._size){var r=t._size={l:Math.round(e.l),r:Math.round(e.r),t:Math.round(e.t),b:Math.round(e.b),p:Math.round(e.pad)};r.w=Math.round(t.width)-r.l-r.r,r.h=Math.round(t.height)-r.t-r.b}t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}b.supplyDefaults=function(t,e){var r=e&amp;&amp;e.skipUpdateCalc,n=t._fullLayout||{};if(n._skipDefaults)delete n._skipDefaults;else{var o,l=t._fullLayout={},c=t.layout||{},f=t._fullData||[],h=t._fullData=[],p=t.data||[],g=t.calcdata||[],m=t._context||{};t._transitionData||b.createTransitionData(t),l._dfltTitle={plot:x(t,&quot;Click to enter Plot title&quot;),x:x(t,&quot;Click to enter X axis title&quot;),y:x(t,&quot;Click to enter Y axis title&quot;),colorbar:x(t,&quot;Click to enter Colorscale title&quot;),annotation:x(t,&quot;new text&quot;)},l._traceWord=x(t,&quot;trace&quot;);var v=A(t,T);if(l._mapboxAccessToken=m.mapboxAccessToken,n._initialAutoSizeIsDone){var _=n.width,w=n.height;b.supplyLayoutGlobalDefaults(c,l,v),c.width||(l.width=_),c.height||(l.height=w),b.sanitizeMargins(l)}else{b.supplyLayoutGlobalDefaults(c,l,v);var M=!c.width||!c.height,S=l.autosize,E=m.autosizable;M&amp;&amp;(S||E)?b.plotAutoSize(t,c,l):M&amp;&amp;b.sanitizeMargins(l),!S&amp;&amp;M&amp;&amp;(c.width=l.width,c.height=l.height)}l._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),{numberFormat:function(e){try{e=a(t).format(u.adjustFormat(e))}catch(t){return u.warnBadFormat(e),u.noFormat}return e},timeFormat:i(t).utcFormat}}(v,l.separators),l._extraFormat=A(t,k),l._initialAutoSizeIsDone=!0,l._dataLength=p.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var L=l._subplots=function(){var t,e,r=s.collectableSubplotTypes,n={};if(!r){r=[];var i=s.subplotsRegistry;for(var a in i){var o=i[a].attr;if(o&amp;&amp;(r.push(a),Array.isArray(o)))for(e=0;e&lt;o.length;e++)u.pushUnique(r,o[e])}}for(t=0;t&lt;r.length;t++)n[r[t]]=[];return n}(),P=l._splomAxes={x:{},y:{}},I=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r&lt;t.length;r++){var o=t[r]._fullInput;o!==n&amp;&amp;a.push(o),n=o}var s=a.length,l=new Array(i),c={};function f(t,e){l[e]=t,c[t]=1}function h(t,e){if(t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;!c[t])return f(t,e),!0}for(r=0;r&lt;i;r++){var p=e[r].uid;&quot;number&quot;==typeof p&amp;&amp;(p=String(p)),h(p,r)||(r&lt;s&amp;&amp;h(a[r].uid,r)||f(u.randstr(c),r))}return l}(f,p),l._globalTransforms=(t._context||{}).globalTransforms,b.supplyDataDefaults(p,h,c,l);var O=Object.keys(P.x),z=Object.keys(P.y);if(O.length&gt;1&amp;&amp;z.length&gt;1){for(s.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(c,l),o=0;o&lt;O.length;o++)u.pushUnique(L.xaxis,O[o]);for(o=0;o&lt;z.length;o++)u.pushUnique(L.yaxis,z[o]);for(var D in I)u.pushUnique(L.cartesian,D)}if(l._has=b._hasPlotType.bind(l),f.length===h.length)for(o=0;o&lt;h.length;o++)y(h[o],f[o]);b.supplyLayoutModuleDefaults(c,l,h,t._transitionData);var R=l._visibleModules,F=[];for(o=0;o&lt;R.length;o++){var B=R[o].crossTraceDefaults;B&amp;&amp;u.pushUnique(F,B)}for(o=0;o&lt;F.length;o++)F[o](h,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&amp;&amp;&quot;splom&quot;===l._basePlotModules[0].name&amp;&amp;O.length&gt;15&amp;&amp;z.length&gt;15&amp;&amp;0===l.shapes.length&amp;&amp;0===l.images.length,b.linkSubplots(h,l,f,n),b.cleanPlot(h,l,f,n);var N=!(!n._has||!n._has(&quot;gl2d&quot;)),j=!(!l._has||!l._has(&quot;gl2d&quot;)),U=!(!n._has||!n._has(&quot;cartesian&quot;))||N,V=!(!l._has||!l._has(&quot;cartesian&quot;))||j;U&amp;&amp;!V?n._bgLayer.remove():V&amp;&amp;!U&amp;&amp;(l._shouldCreateBgLayer=!0),n._zoomlayer&amp;&amp;!t._dragging&amp;&amp;d({_fullLayout:n}),function(t,e){var r,n=[];e.meta&amp;&amp;(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i&lt;t.length;i++){var a=t[i];a.meta?n[a.index]=a._meta={meta:a.meta}:e.meta&amp;&amp;(a._meta={meta:e.meta}),e.meta&amp;&amp;(a._meta.layout={meta:e.meta})}n.length&amp;&amp;(r||(r=e._meta={}),r.data=n)}(h,l),y(l,n),s.getComponentMethod(&quot;colorscale&quot;,&quot;crossTraceDefaults&quot;)(h,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var q,H=l._tracePreGUI,G={};for(q in H)G[q]=&quot;old&quot;;for(o=0;o&lt;h.length;o++)G[q=h[o]._fullInput.uid]||(H[q]={}),G[q]=&quot;new&quot;;for(q in G)&quot;old&quot;===G[q]&amp;&amp;delete H[q];C(l),s.getComponentMethod(&quot;rangeslider&quot;,&quot;makeData&quot;)(l),r||g.length!==h.length||b.supplyDefaultsUpdateCalc(g,h)}},b.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=(t[r]||[])[0];if(i&amp;&amp;i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,l,c=a._arrayAttrs;for(o=0;o&lt;c.length;o++)s=c[o],l=u.nestedProperty(a,s).get().slice(),u.nestedProperty(n,s).set(l)}i.trace=n}}},b.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},b._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e&lt;r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e&lt;n.length;e++){var i=n[e].name;if(i===t)return!0;var a=s.modules[i];if(a&amp;&amp;a.categories[t])return!0}return!1},b.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i&lt;o.length;i++){var s=o[i];s.clean&amp;&amp;s.clean(t,e,r,n)}var l=n._has&amp;&amp;n._has(&quot;gl&quot;),c=e._has&amp;&amp;e._has(&quot;gl&quot;);l&amp;&amp;!c&amp;&amp;void 0!==n._glcontainer&amp;&amp;(n._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),n._glcontainer.selectAll(&quot;.no-webgl&quot;).remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i&lt;r.length;i++){var f=r[i].uid;for(a=0;a&lt;t.length;a++){if(f===t[a].uid)continue t}u&amp;&amp;n._infolayer.select(&quot;.cb&quot;+f).remove()}},b.linkSubplots=function(t,e,r,n){var i,a,o=n._plots||{},l=e._plots={},c=e._subplots,f={_fullData:t,_fullLayout:e},h=c.cartesian.concat(c.gl2d||[]);for(i=0;i&lt;h.length;i++){var d,g=h[i],m=o[g],v=p.getFromId(f,g,&quot;x&quot;),y=p.getFromId(f,g,&quot;y&quot;);for(m?d=l[g]=m:(d=l[g]={}).id=g,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(g),y._subplotsWith.push(g),d.xaxis=v,d.yaxis=y,d._hasClipOnAxisFalse=!1,a=0;a&lt;t.length;a++){var x=t[a];if(x.xaxis===d.xaxis._id&amp;&amp;x.yaxis===d.yaxis._id&amp;&amp;!1===x.cliponaxis){d._hasClipOnAxisFalse=!0;break}}}var b,_=p.list(f,null,!0);for(i=0;i&lt;_.length;i++){var w=null;(b=_[i]).overlaying&amp;&amp;(w=p.getFromId(f,b.overlaying))&amp;&amp;w.overlaying&amp;&amp;(b.overlaying=!1,w=null),b._mainAxis=w||b,w&amp;&amp;(b.domain=w.domain.slice()),b._anchorAxis=&quot;free&quot;===b.anchor?null:p.getFromId(f,b.anchor)}for(i=0;i&lt;_.length;i++)if((b=_[i])._counterAxes.sort(p.idSort),b._subplotsWith.sort(u.subplotSort),b._mainSubplot=M(b,e),b._counterAxes.length&amp;&amp;(b.spikemode&amp;&amp;-1!==b.spikemode.indexOf(&quot;across&quot;)||b.automargin&amp;&amp;b.mirror&amp;&amp;&quot;free&quot;!==b.anchor||s.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(b))){var T=1,k=0;for(a=0;a&lt;b._counterAxes.length;a++){var A=p.getFromId(f,b._counterAxes[a]);T=Math.min(T,A.domain[0]),k=Math.max(k,A.domain[1])}T&lt;k&amp;&amp;(b._counterDomainMin=T,b._counterDomainMax=k)}},b.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],l.crawl(t._module.attributes,(function(t,n,i,a){r[a]=n,r.length=a+1,&quot;color&quot;===t.valType&amp;&amp;void 0===t.dflt&amp;&amp;e.push(r.join(&quot;.&quot;))}))),n=0;n&lt;e.length;n++){u.nestedProperty(t,&quot;_input.&quot;+e[n]).get()||u.nestedProperty(t,e[n]).set(null)}},b.supplyDataDefaults=function(t,e,r,n){var i,a,o,l=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,d=0;function g(t){e.push(t);var r=t._module;r&amp;&amp;(u.pushUnique(l,r),!0===t.visible&amp;&amp;u.pushUnique(f,r),u.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&amp;&amp;d++)}n._transformModules=[];var m={},v=[],x=(r.template||{}).data||{},_=c.traceTemplater(x);for(i=0;i&lt;t.length;i++){if(o=t[i],(a=_.newTrace(o)).uid=n._traceUids[i],b.supplyTraceDefaults(o,a,d,n,i),a.index=i,a._input=o,a._expandedIndex=p,a.transforms&amp;&amp;a.transforms.length)for(var w=!1!==o.visible&amp;&amp;!1===a.visible,T=E(a,e,r,n),k=0;k&lt;T.length;k++){var A=T[k],M={_template:a._template,type:a.type,uid:a.uid+k};w&amp;&amp;!1===A.visible&amp;&amp;delete A.visible,b.supplyTraceDefaults(A,M,p,n,i),y(M,A),M.index=i,M._input=o,M._fullInput=a,M._expandedIndex=p,M._expandedInput=A,g(M)}else a._fullInput=a,a._expandedInput=a,g(a);s.traceIs(a,&quot;carpetAxis&quot;)&amp;&amp;(m[a.carpet]=a),s.traceIs(a,&quot;carpetDependent&quot;)&amp;&amp;v.push(i)}for(i=0;i&lt;v.length;i++)if((a=e[v[i]]).visible){var S=m[a.carpet];a._carpet=S,S&amp;&amp;S.visible?(a.xaxis=S.xaxis,a.yaxis=S.yaxis):a.visible=!1}},b.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return u.coerce(t||{},r,g,e,n)}if(n(&quot;mode&quot;),n(&quot;direction&quot;),n(&quot;fromcurrent&quot;),Array.isArray(t.frame))for(r.frame=[],e=0;e&lt;t.frame.length;e++)r.frame[e]=b.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=b.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e&lt;t.transition.length;e++)r.transition[e]=b.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=b.supplyAnimationTransitionDefaults(t.transition||{});return r},b.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return u.coerce(t||{},e,g.frame,r,n)}return r(&quot;duration&quot;),r(&quot;redraw&quot;),e},b.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return u.coerce(t||{},e,g.transition,r,n)}return r(&quot;duration&quot;),r(&quot;easing&quot;),e},b.supplyFrameDefaults=function(t){var e={};function r(r,n){return u.coerce(t,e,m,r,n)}return r(&quot;group&quot;),r(&quot;name&quot;),r(&quot;traces&quot;),r(&quot;baseframe&quot;),r(&quot;data&quot;),r(&quot;layout&quot;),e},b.supplyTraceDefaults=function(t,e,r,n,i){var a,o=n.colorway||f.defaults,l=o[r%o.length];function c(r,n){return u.coerce(t,e,b.attributes,r,n)}var h=c(&quot;visible&quot;);c(&quot;type&quot;),c(&quot;name&quot;,n._traceWord+&quot; &quot;+i),c(&quot;uirevision&quot;,n.uirevision);var p=b.getModule(e);if(e._module=p,p){var d=p.basePlotModule,g=d.attr,m=d.attributes;if(g&amp;&amp;m){var v=n._subplots,y=&quot;&quot;;if(h||&quot;gl2d&quot;!==d.name){if(Array.isArray(g))for(a=0;a&lt;g.length;a++){var x=g[a],_=u.coerce(t,e,m,x);v[x]&amp;&amp;u.pushUnique(v[x],_),y+=_}else y=u.coerce(t,e,m,g);v[d.name]&amp;&amp;u.pushUnique(v[d.name],y)}}}if(h){if(c(&quot;customdata&quot;),c(&quot;ids&quot;),c(&quot;meta&quot;),s.traceIs(e,&quot;showLegend&quot;))u.coerce(t,e,p.attributes.showlegend?p.attributes:b.attributes,&quot;showlegend&quot;),c(&quot;legendgroup&quot;),c(&quot;legendgrouptitle.text&quot;)&amp;&amp;u.coerceFont(c,&quot;legendgrouptitle.font&quot;,u.extendFlat({},n.font,{size:Math.round(1.1*n.font.size)})),c(&quot;legendrank&quot;),e._dfltShowLegend=!0;else e._dfltShowLegend=!1;p&amp;&amp;p.supplyDefaults(t,e,l,n),s.traceIs(e,&quot;noOpacity&quot;)||c(&quot;opacity&quot;),s.traceIs(e,&quot;notLegendIsolatable&quot;)&amp;&amp;(e.visible=!!e.visible),s.traceIs(e,&quot;noHover&quot;)||(e.hovertemplate||u.coerceHoverinfo(t,e,n),&quot;parcats&quot;!==e.type&amp;&amp;s.getComponentMethod(&quot;fx&quot;,&quot;supplyDefaults&quot;)(t,e,l,n)),p&amp;&amp;p.selectPoints&amp;&amp;c(&quot;selectedpoints&quot;),b.supplyTransformDefaults(t,e,n)}return e},b.hasMakesDataTransform=S,b.supplyTransformDefaults=function(t,e,r){if(e._length||S(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l&lt;o.length;l++){var c,f=o[l],h=f.type,p=_[h],d=!(f._module&amp;&amp;f._module===p),g=p&amp;&amp;&quot;function&quot;==typeof p.transform;p||u.warn(&quot;Unrecognized transform type &quot;+h+&quot;.&quot;),p&amp;&amp;p.supplyDefaults&amp;&amp;(d||g)?((c=p.supplyDefaults(f,e,r,t)).type=h,c._module=p,u.pushUnique(i,p)):c=u.extendFlat({},f),s.push(c)}}},b.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return u.coerce(t,e,b.layoutAttributes,r,n)}var i=t.template;u.isPlainObject(i)&amp;&amp;(e.template=i,e._template=i.layout,e._dataTemplate=i.data),n(&quot;autotypenumbers&quot;);var a=u.coerceFont(n,&quot;font&quot;);n(&quot;title.text&quot;,e._dfltTitle.plot),u.coerceFont(n,&quot;title.font&quot;,{family:a.family,size:Math.round(1.4*a.size),color:a.color}),n(&quot;title.xref&quot;),n(&quot;title.yref&quot;),n(&quot;title.x&quot;),n(&quot;title.y&quot;),n(&quot;title.xanchor&quot;),n(&quot;title.yanchor&quot;),n(&quot;title.pad.t&quot;),n(&quot;title.pad.r&quot;),n(&quot;title.pad.b&quot;),n(&quot;title.pad.l&quot;),n(&quot;uniformtext.mode&quot;)&amp;&amp;n(&quot;uniformtext.minsize&quot;),n(&quot;autosize&quot;,!(t.width&amp;&amp;t.height)),n(&quot;width&quot;),n(&quot;height&quot;),n(&quot;margin.l&quot;),n(&quot;margin.r&quot;),n(&quot;margin.t&quot;),n(&quot;margin.b&quot;),n(&quot;margin.pad&quot;),n(&quot;margin.autoexpand&quot;),t.width&amp;&amp;t.height&amp;&amp;b.sanitizeMargins(e),s.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(t,e),n(&quot;paper_bgcolor&quot;),n(&quot;separators&quot;,r.decimal+r.thousands),n(&quot;hidesources&quot;),n(&quot;colorway&quot;),n(&quot;datarevision&quot;);var o=n(&quot;uirevision&quot;);n(&quot;editrevision&quot;,o),n(&quot;selectionrevision&quot;,o),s.getComponentMethod(&quot;modebar&quot;,&quot;supplyLayoutDefaults&quot;)(t,e),s.getComponentMethod(&quot;shapes&quot;,&quot;supplyDrawNewShapeDefaults&quot;)(t,e,n),n(&quot;meta&quot;),u.isPlainObject(t.transition)&amp;&amp;(n(&quot;transition.duration&quot;),n(&quot;transition.easing&quot;),n(&quot;transition.ordering&quot;)),s.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;),s.getComponentMethod(&quot;fx&quot;,&quot;supplyLayoutGlobalDefaults&quot;)(t,e,n)},b.plotAutoSize=function(t,e,r){var n,i,a=t._context||{},s=a.frameMargins,l=u.isPlotDiv(t);if(l&amp;&amp;t.emit(&quot;plotly_autosize&quot;),a.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=&quot;hidden&quot;;else{var c=l?window.getComputedStyle(t):{};if(n=L(c.width)||L(c.maxWidth)||r.width,i=L(c.height)||L(c.maxHeight)||r.height,o(s)&amp;&amp;s&gt;0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var h=b.layoutAttributes.width.min,p=b.layoutAttributes.height.min;n&lt;h&amp;&amp;(n=h),i&lt;p&amp;&amp;(i=p);var d=!e.width&amp;&amp;Math.abs(r.width-n)&gt;1,g=!e.height&amp;&amp;Math.abs(r.height-i)&gt;1;(g||d)&amp;&amp;(d&amp;&amp;(r.width=n),g&amp;&amp;(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),b.sanitizeMargins(r)},b.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,o,l=s.componentsRegistry,c=e._basePlotModules,f=s.subplotsRegistry.cartesian;for(i in l)(o=l[i]).includeBasePlot&amp;&amp;o.includeBasePlot(t,e);for(var h in c.length||c.push(f),e._has(&quot;cartesian&quot;)&amp;&amp;(s.getComponentMethod(&quot;grid&quot;,&quot;contentDefaults&quot;)(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(u.subplotSort);for(a=0;a&lt;c.length;a++)(o=c[a]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r);var p=e._modules;for(a=0;a&lt;p.length;a++)(o=p[a]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(a=0;a&lt;d.length;a++)(o=d[a]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r,n);for(i in l)(o=l[i]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r)},b.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&amp;&amp;(e._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),e._glcontainer.remove(),e._glcanvas=null),e._modeBar&amp;&amp;e._modeBar.destroy(),t._transitionData&amp;&amp;(t._transitionData._interruptCallbacks&amp;&amp;(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&amp;&amp;window.cancelAnimationFrame(t._transitionData._animationRaf)),u.clearThrottle(),u.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._dragdata,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&amp;&amp;t.removeAllListeners()},b.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e&lt;r.length;e++){var i=r[e];i.style&amp;&amp;u.pushUnique(n,i.style)}for(e=0;e&lt;n.length;e++)n[e](t)},b.sanitizeMargins=function(t){if(t&amp;&amp;t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a&lt;0&amp;&amp;(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o&lt;0&amp;&amp;(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},b.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},b.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1};b.autoMargin=function(t,e,r){var n=t._fullLayout,i=n.width,a=n.height,o=n.margin,s=u.constrain(i-o.l-o.r,2,64),l=u.constrain(a-o.t-o.b,2,64),c=Math.max(0,i-s),f=Math.max(0,a-l),h=n._pushmargin,p=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var d=r.pad;if(void 0===d&amp;&amp;(d=Math.min(12,o.l,o.r,o.t,o.b)),c){var g=(r.l+r.r)/c;g&gt;1&amp;&amp;(r.l/=g,r.r/=g)}if(f){var m=(r.t+r.b)/f;m&gt;1&amp;&amp;(r.t/=m,r.b/=m)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,x=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:v,size:r.l+d},r:{val:y,size:r.r+d},b:{val:_,size:r.b+d},t:{val:x,size:r.t+d}},p[e]=1}else delete h[e],delete p[e];if(!n._replotting)return b.doAutoMargin(t)}},b.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),C(e);var i=e._size,a=e.margin,l=u.extendFlat({},i),c=a.l,f=a.r,h=a.t,d=a.b,g=e._pushmargin,m=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in g)m[v]||delete g[v];for(var y in g.base={l:{val:0,size:c},r:{val:1,size:f},t:{val:1,size:h},b:{val:0,size:d}},g){var x=g[y].l||{},_=g[y].b||{},w=x.val,T=x.size,k=_.val,A=_.size;for(var M in g){if(o(T)&amp;&amp;g[M].r){var S=g[M].r.val,E=g[M].r.size;if(S&gt;w){var L=(T*S+(E-r)*w)/(S-w),P=(E*(1-w)+(T-r)*(1-S))/(S-w);L+P&gt;c+f&amp;&amp;(c=L,f=P)}}if(o(A)&amp;&amp;g[M].t){var I=g[M].t.val,O=g[M].t.size;if(I&gt;k){var z=(A*I+(O-n)*k)/(I-k),D=(O*(1-k)+(A-n)*(1-I))/(I-k);z+D&gt;d+h&amp;&amp;(d=z,h=D)}}}}}var R=u.constrain(r-a.l-a.r,2,64),F=u.constrain(n-a.t-a.b,2,64),B=Math.max(0,r-R),N=Math.max(0,n-F);if(B){var j=(c+f)/B;j&gt;1&amp;&amp;(c/=j,f/=j)}if(N){var U=(d+h)/N;U&gt;1&amp;&amp;(d/=U,h/=U)}if(i.l=Math.round(c),i.r=Math.round(f),i.t=Math.round(h),i.b=Math.round(d),i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&amp;&amp;b.didMarginChange(l,i)){&quot;_redrawFromAutoMarginCount&quot;in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(m).length);if(e._redrawFromAutoMarginCount&lt;V)return s.call(&quot;_doPlot&quot;,t);e._size=l,u.warn(&quot;Too many auto-margin redraws.&quot;)}!function(t){var e=p.list(t,&quot;&quot;,!0);[&quot;_adjustTickLabelsOverflow&quot;,&quot;_hideCounterAxisInsideTickLabels&quot;].forEach((function(t){for(var r=0;r&lt;e.length;r++){var n=e[r][t];n&amp;&amp;n()}}))}(t)};var P=[&quot;l&quot;,&quot;r&quot;,&quot;t&quot;,&quot;b&quot;,&quot;p&quot;,&quot;w&quot;,&quot;h&quot;];function I(t,e,r){var n=!1;var i=[b.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},r.prepareFn,b.rehover,function(){return t.emit(&quot;plotly_transitioning&quot;,[]),new Promise((function(i){t._transitioning=!0,e.duration&gt;0&amp;&amp;(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&amp;&amp;t._transitionData._interruptCallbacks.push((function(){return s.call(&quot;redraw&quot;,t)})),t._transitionData._interruptCallbacks.push((function(){t.emit(&quot;plotly_transitioninterrupted&quot;,[])}));var a=0,o=0;function l(){return a++,function(){o++,n||o!==a||function(e){if(!t._transitionData)return;(function(t){if(t)for(;t.length;)t.shift()})(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return s.call(&quot;redraw&quot;,t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(&quot;plotly_transitioned&quot;,[])})).then(e)}(i)}}r.runFn(l),setTimeout(l())}))}],a=u.syncOrAsync(i,t);return a&amp;&amp;a.then||(a=Promise.resolve()),a.then((function(){return t}))}b.didMarginChange=function(t,e){for(var r=0;r&lt;P.length;r++){var n=P[r],i=t[n],a=e[n];if(!o(i)||Math.abs(a-i)&gt;1)return!0}return!1},b.graphJson=function(t,e,r,n,i,a){(i&amp;&amp;e&amp;&amp;!t._fullData||i&amp;&amp;!e&amp;&amp;!t._fullLayout)&amp;&amp;b.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function c(t,e){if(&quot;function&quot;==typeof t)return e?&quot;_function_&quot;:null;if(u.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===[&quot;_&quot;,&quot;[&quot;].indexOf(a.charAt(0)))if(&quot;function&quot;!=typeof t[a]){if(&quot;keepdata&quot;===r){if(&quot;src&quot;===a.substr(a.length-3))return}else if(&quot;keepstream&quot;===r){if(&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0&amp;&amp;!u.isPlainObject(t.stream))return}else if(&quot;keepall&quot;!==r&amp;&amp;&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0)return;i[a]=c(t[a],e)}else e&amp;&amp;(i[a]=&quot;_function&quot;)})),i}return Array.isArray(t)?t.map((function(t){return c(t,e)})):u.isTypedArray(t)?u.simpleMap(t,u.identity):u.isJSDate(t)?u.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=c(t);return e&amp;&amp;delete r.fit,r}))};if(!e&amp;&amp;(f.layout=c(s),i)){var h=s._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return l&amp;&amp;(f.frames=c(l)),a&amp;&amp;(f.config=c(t._context,!0)),&quot;object&quot;===n?f:JSON.stringify(f)},b.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r&lt;e.length;r++)switch((n=e[r]).type){case&quot;replace&quot;:i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&amp;&amp;(delete o[s],o[l]=i);break;case&quot;insert&quot;:o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case&quot;delete&quot;:delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},b.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(&quot;computeFrame must be given a string frame name&quot;);var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&amp;&amp;(s=o[s.baseframe.toString()])&amp;&amp;-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&amp;&amp;(u.layout=b.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r&lt;s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r&lt;s.data.length;r++)null!=(i=n[r])&amp;&amp;(-1===(a=u.traces.indexOf(i))&amp;&amp;(a=u.data.length,u.traces[a]=i),u.data[a]=b.extendTrace(u.data[a],s.data[r]))}return u},b.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n&lt;r.length;n++){var i=r[n];i&amp;&amp;i.name&amp;&amp;(e[i.name]=i)}},b.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,c,f=u.extendDeepNoArrays({},e||{}),h=u.expandObjectPaths(f),p={};if(r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)void 0===(i=(n=u.nestedProperty(h,r[a])).get())?u.nestedProperty(p,r[a]).set(null):(n.set(null),u.nestedProperty(p,r[a]).set(i));if(t=u.extendDeepNoArrays(t||{},h),r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)if(l=u.nestedProperty(p,r[a]).get()){for(c=(s=u.nestedProperty(t,r[a])).get(),Array.isArray(c)||(c=[],s.set(c)),o=0;o&lt;l.length;o++){var d=l[o];c[o]=null===d?null:b.extendObjectWithContainers(c[o],d)}s.set(c)}return t},b.dataArrayContainers=[&quot;transforms&quot;,&quot;dimensions&quot;],b.layoutArrayContainers=s.layoutArrayContainers,b.extendTrace=function(t,e){return b.extendObjectWithContainers(t,e,b.dataArrayContainers)},b.extendLayout=function(t,e){return b.extendObjectWithContainers(t,e,b.layoutArrayContainers)},b.transition=function(t,e,r,n,i,a){var o={redraw:i.redraw},s={},l=[];return o.prepareFn=function(){for(var i=Array.isArray(e)?e.length:0,a=n.slice(0,i),o=0;o&lt;a.length;o++){var c=a[o],f=t._fullData[c]._module;if(f){if(f.animatable){var h=f.basePlotModule.name;s[h]||(s[h]=[]),s[h].push(c)}t.data[a[o]]=b.extendTrace(t.data[a[o]],e[o])}}var p=u.expandObjectPaths(u.extendDeepNoArrays({},r)),d=/^[xy]axis[0-9]*$/;for(var g in p)d.test(g)&amp;&amp;delete p[g].range;b.extendLayout(t.layout,p),delete t.calcdata,b.supplyDefaults(t),b.doCalcdata(t);var m=u.expandObjectPaths(r);if(m){var v=t._fullLayout._plots;for(var y in v){var x=v[y],_=x.xaxis,w=x.yaxis,T=_.range.slice(),k=w.range.slice(),A=null,M=null,S=null,E=null;Array.isArray(m[_._name+&quot;.range&quot;])?A=m[_._name+&quot;.range&quot;].slice():Array.isArray((m[_._name]||{}).range)&amp;&amp;(A=m[_._name].range.slice()),Array.isArray(m[w._name+&quot;.range&quot;])?M=m[w._name+&quot;.range&quot;].slice():Array.isArray((m[w._name]||{}).range)&amp;&amp;(M=m[w._name].range.slice()),T&amp;&amp;A&amp;&amp;(_.r2l(T[0])!==_.r2l(A[0])||_.r2l(T[1])!==_.r2l(A[1]))&amp;&amp;(S={xr0:T,xr1:A}),k&amp;&amp;M&amp;&amp;(w.r2l(k[0])!==w.r2l(M[0])||w.r2l(k[1])!==w.r2l(M[1]))&amp;&amp;(E={yr0:k,yr1:M}),(S||E)&amp;&amp;l.push(u.extendFlat({plotinfo:x},S,E))}}return Promise.resolve()},o.runFn=function(e){var n,i,o=t._fullLayout._basePlotModules,c=l.length;if(r)for(i=0;i&lt;o.length;i++)o[i].transitionAxes&amp;&amp;o[i].transitionAxes(t,l,a,e);for(var f in c?((n=u.extendFlat({},a)).duration=0,delete s.cartesian):n=a,s){var h=s[f];t._fullData[h[0]]._module.basePlotModule.plot(t,h,n,e)}},I(t,a,o)},b.transitionFromReact=function(t,e,r,n){var i=t._fullLayout,a=i.transition,o={},s=[];return o.prepareFn=function(){var t=i._plots;for(var a in o.redraw=!1,&quot;some&quot;===e.anim&amp;&amp;(o.redraw=!0),&quot;some&quot;===r.anim&amp;&amp;(o.redraw=!0),t){var l=t[a],c=l.xaxis,f=l.yaxis,h=n[c._name].range.slice(),p=n[f._name].range.slice(),d=c.range.slice(),g=f.range.slice();c.setScale(),f.setScale();var m=null,v=null;c.r2l(h[0])===c.r2l(d[0])&amp;&amp;c.r2l(h[1])===c.r2l(d[1])||(m={xr0:h,xr1:d}),f.r2l(p[0])===f.r2l(g[0])&amp;&amp;f.r2l(p[1])===f.r2l(g[1])||(v={yr0:p,yr1:g}),(m||v)&amp;&amp;s.push(u.extendFlat({plotinfo:l},m,v))}return Promise.resolve()},o.runFn=function(r){for(var n,i,o,l=t._fullData,c=t._fullLayout._basePlotModules,f=[],h=0;h&lt;l.length;h++)f.push(h);function p(){if(t._fullLayout)for(var e=0;e&lt;c.length;e++)c[e].transitionAxes&amp;&amp;c[e].transitionAxes(t,s,n,r)}function d(){if(t._fullLayout)for(var e=0;e&lt;c.length;e++)c[e].plot(t,o,i,r)}s.length&amp;&amp;e.anim?&quot;traces first&quot;===a.ordering?(n=u.extendFlat({},a,{duration:0}),o=f,i=a,setTimeout(p,a.duration),d()):(n=a,o=null,i=u.extendFlat({},a,{duration:0}),setTimeout(d,n.duration),p()):s.length?(n=a,p()):e.anim&amp;&amp;(o=f,i=a,d())},I(t,a,o)},b.doCalcdata=function(t,e){var r,n,i,a,o=p.list(t),c=t._fullData,f=t._fullLayout,d=new Array(c.length),g=(t.calcdata||[]).slice();for(t.calcdata=d,f._numBoxes=0,f._numViolins=0,f._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,f._piecolormap={},f._sunburstcolormap={},f._treemapcolormap={},f._iciclecolormap={},f._funnelareacolormap={},i=0;i&lt;c.length;i++)Array.isArray(e)&amp;&amp;-1===e.indexOf(i)&amp;&amp;(d[i]=g[i]);for(i=0;i&lt;c.length;i++)(r=c[i])._arrayAttrs=l.findArrayAttributes(r),r._extremes={};var m=f._subplots.polar||[];for(i=0;i&lt;m.length;i++)o.push(f[m[i]].radialaxis,f[m[i]].angularaxis);for(var v in f._colorAxes){var y=f[v];!1!==y.cauto&amp;&amp;(delete y.cmin,delete y.cmax)}var x=!1;function b(e){if(r=c[e],n=r._module,!0===r.visible&amp;&amp;r.transforms){if(n&amp;&amp;n.calc){var i=n.calc(t,r);i[0]&amp;&amp;i[0].t&amp;&amp;i[0].t._scene&amp;&amp;delete i[0].t._scene.dirty}for(a=0;a&lt;r.transforms.length;a++){var o=r.transforms[a];(n=_[o.type])&amp;&amp;n.calcTransform&amp;&amp;(r._hasCalcTransform=!0,x=!0,n.calcTransform(t,r,o))}}}function w(e,i){if(r=c[e],!!(n=r._module).isContainer===i){var o=[];if(!0===r.visible&amp;&amp;0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(a=s.length-1;a&gt;=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&amp;&amp;n.calc&amp;&amp;(o=n.calc(t,r))}Array.isArray(o)&amp;&amp;o[0]||(o=[{x:h,y:h}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(z(o,c,f),i=0;i&lt;c.length;i++)w(i,!0);for(i=0;i&lt;c.length;i++)b(i);for(x&amp;&amp;z(o,c,f),i=0;i&lt;c.length;i++)w(i,!0);for(i=0;i&lt;c.length;i++)w(i,!1);D(t);var T=function(t,e){var r,n,i,a,o,l=[];function c(t,r,n){var i=r._id.charAt(0);if(&quot;histogram2dcontour&quot;===t){var a=r._counterAxes[0],o=p.getFromId(e,a),s=&quot;x&quot;===i||&quot;x&quot;===a&amp;&amp;&quot;category&quot;===o.type,l=&quot;y&quot;===i||&quot;y&quot;===a&amp;&amp;&quot;category&quot;===o.type;return function(t,e){return 0===t||0===e||s&amp;&amp;t===n[e].length-1||l&amp;&amp;e===n.length-1?-1:(&quot;y&quot;===i?e:t)-1}}return function(t,e){return&quot;y&quot;===i?e:t}}var f={min:function(t){return u.aggNums(Math.min,null,t)},max:function(t){return u.aggNums(Math.max,null,t)},sum:function(t){return u.aggNums((function(t,e){return t+e}),null,t)},total:function(t){return u.aggNums((function(t,e){return t+e}),null,t)},mean:function(t){return u.mean(t)},median:function(t){return u.median(t)}};for(r=0;r&lt;t.length;r++){var h=t[r];if(&quot;category&quot;===h.type){var d=h.categoryorder.match(O);if(d){var g=d[1],m=d[2],v=h._id.charAt(0),y=&quot;x&quot;===v,x=[];for(n=0;n&lt;h._categories.length;n++)x.push([h._categories[n],[]]);for(n=0;n&lt;h._traceIndices.length;n++){var b=h._traceIndices[n],_=e._fullData[b];if(!0===_.visible){var w=_.type;s.traceIs(_,&quot;histogram&quot;)&amp;&amp;(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=&quot;splom&quot;===w,k=&quot;scattergl&quot;===w,A=e.calcdata[b];for(i=0;i&lt;A.length;i++){var M,S,E=A[i];if(T){var L=_._axesDim[h._id];if(!y){var C=_._diag[L][0];C&amp;&amp;(h=e._fullLayout[p.id2name(C)])}var P=E.trace.dimensions[L].values;for(a=0;a&lt;P.length;a++)for(M=h._categoriesMap[P[a]],o=0;o&lt;E.trace.dimensions.length;o++)if(o!==L){var I=E.trace.dimensions[o];x[M][1].push(I.values[a])}}else if(k){for(a=0;a&lt;E.t.x.length;a++)y?(M=E.t.x[a],S=E.t.y[a]):(M=E.t.y[a],S=E.t.x[a]),x[M][1].push(S);E.t&amp;&amp;E.t._scene&amp;&amp;delete E.t._scene.dirty}else if(E.hasOwnProperty(&quot;z&quot;)){S=E.z;var z=c(_.type,h,S);for(a=0;a&lt;S.length;a++)for(o=0;o&lt;S[a].length;o++)(M=z(o,a))+1&amp;&amp;x[M][1].push(S[a][o])}else for(void 0===(M=E.p)&amp;&amp;(M=E[v]),void 0===(S=E.s)&amp;&amp;(S=E.v),void 0===S&amp;&amp;(S=y?E.y:E.x),Array.isArray(S)||(S=void 0===S?[]:[S]),a=0;a&lt;S.length;a++)x[M][1].push(S[a])}}}h._categoriesValue=x;var D=[];for(n=0;n&lt;x.length;n++)D.push([x[n][0],f[g](x[n][1])]);D.sort((function(t,e){return t[1]-e[1]})),h._categoriesAggregatedValue=D,h._initialCategories=D.map((function(t){return t[0]})),&quot;descending&quot;===m&amp;&amp;h._initialCategories.reverse(),l=l.concat(h.sortByInitialCategories())}}}return l}(o,t);if(T.length){for(f._numBoxes=0,f._numViolins=0,i=0;i&lt;T.length;i++)w(T[i],!0);for(i=0;i&lt;T.length;i++)w(T[i],!1);D(t)}s.getComponentMethod(&quot;fx&quot;,&quot;calc&quot;)(t),s.getComponentMethod(&quot;errorbars&quot;,&quot;calc&quot;)(t)};var O=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(t,e,r){var n={};function i(t){t.clearCalc(),&quot;multicategory&quot;===t.type&amp;&amp;t.setupMultiCategory(e),n[t._id]=1}u.simpleMap(t,i);for(var a=r._axisMatchGroups||[],o=0;o&lt;a.length;o++)for(var s in a[o])n[s]||i(r[p.id2name(s)])}function D(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r&lt;a.length;r++){var s=a[r],l=s.crossTraceCalc;if(l){var c=s.basePlotModule.name;o[c]?u.pushUnique(o[c],l):o[c]=[l]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e&lt;h.length;e++){var p=h[e],d=&quot;cartesian&quot;===n?i._plots[p]:i[p];for(r=0;r&lt;f.length;r++)f[r](t,d,p)}else for(r=0;r&lt;f.length;r++)f[r](t)}}b.rehover=function(t){t._fullLayout._rehover&amp;&amp;t._fullLayout._rehover()},b.redrag=function(t){t._fullLayout._redrag&amp;&amp;t._fullLayout._redrag()},b.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i&lt;r.length;i++){var s=r[i],l=s[0].trace;l.visible&amp;&amp;(o[l.type]=o[l.type]||[],o[l.type].push(s))}for(var c in a)if(!o[c]){var f=a[c][0];f[0].trace.visible=!1,o[c]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,u.filterVisible(p),n)}e.traceHash=o},b.plotBasePlot=function(t,e,r,n,i){var a=s.getModule(t),o=v(e.calcdata,a)[0];a.plot(e,o,n,i)},b.cleanBasePlot=function(t,e,r,n,i){var a=i._has&amp;&amp;i._has(t),o=r._has&amp;&amp;r._has(t);a&amp;&amp;!o&amp;&amp;i[&quot;_&quot;+t+&quot;layer&quot;].selectAll(&quot;g.trace&quot;).remove()}},{&quot;../components/color&quot;:666,&quot;../constants/numerical&quot;:779,&quot;../lib&quot;:803,&quot;../plot_api/plot_schema&quot;:842,&quot;../plot_api/plot_template&quot;:843,&quot;../plots/get_data&quot;:891,&quot;../registry&quot;:931,&quot;./animation_attributes&quot;:848,&quot;./attributes&quot;:850,&quot;./cartesian/axis_ids&quot;:858,&quot;./cartesian/handle_outline&quot;:865,&quot;./command&quot;:881,&quot;./font_attributes&quot;:883,&quot;./frame_attributes&quot;:884,&quot;./layout_attributes&quot;:908,&quot;@plotly/d3&quot;:58,&quot;d3-format&quot;:167,&quot;d3-time-format&quot;:175,&quot;fast-isnumeric&quot;:249}],918:[function(t,e,r){&quot;use strict&quot;;e.exports={attr:&quot;subplot&quot;,name:&quot;polar&quot;,axisNames:[&quot;angularaxis&quot;,&quot;radialaxis&quot;],axisName2dataArray:{angularaxis:&quot;theta&quot;,radialaxis:&quot;r&quot;},layerNames:[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;angular-grid&quot;,&quot;radial-grid&quot;,&quot;frontplot&quot;,&quot;angular-line&quot;,&quot;radial-line&quot;,&quot;angular-axis&quot;,&quot;radial-axis&quot;],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],919:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/polygon&quot;).tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&amp;&amp;c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&amp;&amp;c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r&lt;n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function g(t){return n.mod(t,f)}function m(t){return o(t,[e,r])}var v=a(i,(function(t){return m(t)?l(t,e):1/0})),y=d(i[v],i[g(v-1)],e);for(h.push(y),s=v,u=0;u&lt;f;s++,u++){var x=i[g(s)];if(!m(x))break;h.push(p(x))}var b=a(i,(function(t){return m(t)?l(t,r):1/0})),_=d(i[b],i[g(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)&gt;1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a&lt;n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]&lt;r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&amp;&amp;!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s&lt;o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,(function(e){var r=s(e,t);return r&gt;0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return&quot;M&quot;+h(u(t,e,r,n),i,a).join(&quot;L&quot;)},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t&lt;e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return&quot;M&quot;+h(u(l,r,n,i),a,o).reverse().join(&quot;L&quot;)+&quot;M&quot;+c.join(&quot;L&quot;)}}},{&quot;../../lib&quot;:803,&quot;../../lib/polygon&quot;:815}],920:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./polar&quot;),o=t(&quot;./constants&quot;),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:&quot;subplotid&quot;,dflt:l,editType:&quot;calc&quot;},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o&lt;i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&amp;&amp;n._has(&quot;gl&quot;),o=e._has&amp;&amp;e._has(&quot;gl&quot;),s=a&amp;&amp;!o,c=0;c&lt;i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&amp;&amp;f)for(var h in f.framework.remove(),f.layers[&quot;radial-axis-title&quot;].remove(),f.clipPaths)f.clipPaths[h].remove();s&amp;&amp;f._scene&amp;&amp;(f._scene.destroy(),f._scene=null)}},toSVG:t(&quot;../cartesian&quot;).toSVG}},{&quot;../../lib&quot;:803,&quot;../cartesian&quot;:868,&quot;../get_data&quot;:891,&quot;./constants&quot;:918,&quot;./layout_attributes&quot;:921,&quot;./layout_defaults&quot;:922,&quot;./polar&quot;:923}],921:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../cartesian/layout_attributes&quot;),a=t(&quot;../domain&quot;).attributes,o=t(&quot;../../lib&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},&quot;plot&quot;,&quot;from-root&quot;),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},&quot;plot&quot;,&quot;from-root&quot;),u={visible:o({},i.visible,{dflt:!0}),type:o({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:o({},i.autorange,{editType:&quot;plot&quot;}),rangemode:{valType:&quot;enumerated&quot;,values:[&quot;tozero&quot;,&quot;nonnegative&quot;,&quot;normal&quot;],dflt:&quot;tozero&quot;,editType:&quot;calc&quot;},range:o({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;plot&quot;}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:&quot;angle&quot;,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;clockwise&quot;,editType:&quot;plot&quot;},title:{text:o({},i.title.text,{editType:&quot;plot&quot;,dflt:&quot;&quot;}),font:o({},i.title.font,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:i.autotypenumbers,categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc&quot;},period:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},direction:{valType:&quot;enumerated&quot;,values:[&quot;counterclockwise&quot;,&quot;clockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;angle&quot;,editType:&quot;calc&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;};o(f,l,c),e.exports={domain:a({name:&quot;polar&quot;,editType:&quot;plot&quot;}),sector:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],dflt:[0,360],editType:&quot;plot&quot;},hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;,dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:&quot;enumerated&quot;,values:[&quot;circular&quot;,&quot;linear&quot;],dflt:&quot;circular&quot;,editType:&quot;plot&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib&quot;:803,&quot;../../plot_api/edit_types&quot;:836,&quot;../cartesian/layout_attributes&quot;:869,&quot;../domain&quot;:882}],922:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../get_data&quot;).getSubplotData,l=t(&quot;../cartesian/tick_value_defaults&quot;),c=t(&quot;../cartesian/tick_mark_defaults&quot;),u=t(&quot;../cartesian/tick_label_defaults&quot;),f=t(&quot;../cartesian/category_order_defaults&quot;),h=t(&quot;../cartesian/line_grid_defaults&quot;),p=t(&quot;../cartesian/axis_autotype&quot;),d=t(&quot;./layout_attributes&quot;),g=t(&quot;./set_convert&quot;),m=t(&quot;./constants&quot;),v=m.axisNames;function y(t,e,r,o){var p=r(&quot;bgcolor&quot;);o.bgColor=i.combine(p,o.paper_bgcolor);var y=r(&quot;sector&quot;);r(&quot;hole&quot;);var b,_=s(o.fullData,m.name,o.id),w=o.layoutOut;function T(t,e){return r(b+&quot;.&quot;+t,e)}for(var k=0;k&lt;v.length;k++){b=v[k],n.isPlainObject(t[b])||(t[b]={});var A=t[b],M=a.newContainer(e,b);M._id=M._name=b,M._attr=o.id+&quot;.&quot;+b,M._traceIndices=_.map((function(t){return t._expandedIndex}));var S=m.axisName2dataArray[b],E=x(A,M,T,_,S,o);f(A,M,T,{axData:_,dataAttr:S});var L,C,P=T(&quot;visible&quot;);switch(g(M,e,w),T(&quot;uirevision&quot;,e.uirevision),P&amp;&amp;(C=(L=T(&quot;color&quot;))===A.color?L:o.font.color),M._m=1,b){case&quot;radialaxis&quot;:var I=T(&quot;autorange&quot;,!M.isValidRange(A.range));A.autorange=I,!I||&quot;linear&quot;!==E&amp;&amp;&quot;-&quot;!==E||T(&quot;rangemode&quot;),&quot;reversed&quot;===I&amp;&amp;(M._m=-1),T(&quot;range&quot;),M.cleanRange(&quot;range&quot;,{dfltRange:[0,1]}),P&amp;&amp;(T(&quot;side&quot;),T(&quot;angle&quot;,y[0]),T(&quot;title.text&quot;),n.coerceFont(T,&quot;title.font&quot;,{family:o.font.family,size:n.bigFont(o.font.size),color:C}));break;case&quot;angularaxis&quot;:if(&quot;date&quot;===E){n.log(&quot;Polar plots do not support date angular axes yet.&quot;);for(var O=0;O&lt;_.length;O++)_[O].visible=!1;E=A.type=M.type=&quot;linear&quot;}T(&quot;linear&quot;===E?&quot;thetaunit&quot;:&quot;period&quot;);var z=T(&quot;direction&quot;);T(&quot;rotation&quot;,{counterclockwise:0,clockwise:90}[z])}if(P)l(A,M,T,M.type),u(A,M,T,M.type,{tickSuffixDflt:&quot;degrees&quot;===M.thetaunit?&quot;\xb0&quot;:void 0}),c(A,M,T,{outerTicks:!0}),T(&quot;showticklabels&quot;)&amp;&amp;(n.coerceFont(T,&quot;tickfont&quot;,{family:o.font.family,size:o.font.size,color:C}),T(&quot;tickangle&quot;),T(&quot;tickformat&quot;)),h(A,M,T,{dfltColor:L,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:d[b]}),T(&quot;layer&quot;);&quot;category&quot;!==E&amp;&amp;T(&quot;hoverformat&quot;),M._input=A}&quot;category&quot;===e.angularaxis.type&amp;&amp;r(&quot;gridshape&quot;)}function x(t,e,r,n,i,a){var o=r(&quot;autotypenumbers&quot;,a.autotypenumbersDflt);if(&quot;-&quot;===r(&quot;type&quot;)){for(var s,l=0;l&lt;n.length;l++)if(n[l].visible){s=n[l];break}s&amp;&amp;s[i]&amp;&amp;(e.type=p(s[i],&quot;gregorian&quot;,{noMultiCategory:!0,autotypenumbers:o})),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:m.name,attributes:d,handleDefaults:y,font:e.font,autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../cartesian/axis_autotype&quot;:855,&quot;../cartesian/category_order_defaults&quot;:859,&quot;../cartesian/line_grid_defaults&quot;:871,&quot;../cartesian/tick_label_defaults&quot;:876,&quot;../cartesian/tick_mark_defaults&quot;:877,&quot;../cartesian/tick_value_defaults&quot;:878,&quot;../get_data&quot;:891,&quot;../subplot_defaults&quot;:925,&quot;./constants&quot;:918,&quot;./layout_attributes&quot;:921,&quot;./set_convert&quot;:924}],923:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../plots&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../cartesian/set_convert&quot;),d=t(&quot;./set_convert&quot;),g=t(&quot;../cartesian/autorange&quot;).doAutoRange,m=t(&quot;../cartesian/dragbox&quot;),v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../../components/fx&quot;),x=t(&quot;../../components/titles&quot;),b=t(&quot;../cartesian/select&quot;).prepSelect,_=t(&quot;../cartesian/select&quot;).selectOnClick,w=t(&quot;../cartesian/select&quot;).clearSelect,T=t(&quot;../../lib/setcursor&quot;),k=t(&quot;../../lib/clear_gl_canvases&quot;),A=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,M=t(&quot;../../constants/alignment&quot;).MID_SHIFT,S=t(&quot;./constants&quot;),E=t(&quot;./helpers&quot;),L=o._,C=o.mod,P=o.deg2rad,I=o.rad2deg;function O(t,e){this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=t._fullLayout,n=&quot;clip&quot;+r._uid+e;this.clipIds.forTraces=n+&quot;-for-traces&quot;,this.clipPaths.forTraces=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,this.clipIds.forTraces),this.clipPaths.forTraces.append(&quot;path&quot;),this.framework=r._polarlayer.append(&quot;g&quot;).attr(&quot;class&quot;,e),this.radialTickLayout=null,this.angularTickLayout=null}var z=O.prototype;function D(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return&quot;side&quot;in t&amp;&amp;(e+=t.side),e}function R(t,e){return e[o.findIndexOfMin(e,(function(e){return o.angleDist(t,e)}))]}function F(t,e,r){return e?(t.attr(&quot;display&quot;,null),t.attr(r)):t&amp;&amp;t.attr(&quot;display&quot;,&quot;none&quot;),t}e.exports=function(t,e){return new O(t,e)},z.plot=function(t,e){var r=e[this.id];this._hasClipOnAxisFalse=!1;for(var n=0;n&lt;t.length;n++){if(!1===t[n][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(e,r),this.updateLayout(e,r),f.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r)},z.updateLayers=function(t,e){var r=this.layers,i=e.radialaxis,a=e.angularaxis,o=S.layerNames,s=o.indexOf(&quot;frontplot&quot;),l=o.slice(0,s),c=&quot;below traces&quot;===a.layer,u=&quot;below traces&quot;===i.layer;c&amp;&amp;l.push(&quot;angular-line&quot;),u&amp;&amp;l.push(&quot;radial-line&quot;),c&amp;&amp;l.push(&quot;angular-axis&quot;),u&amp;&amp;l.push(&quot;radial-axis&quot;),l.push(&quot;frontplot&quot;),c||l.push(&quot;angular-line&quot;),u||l.push(&quot;radial-line&quot;),c||l.push(&quot;angular-axis&quot;),u||l.push(&quot;radial-axis&quot;);var f=this.framework.selectAll(&quot;.polarsublayer&quot;).data(l,String);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;polarsublayer &quot;+t})).each((function(t){var e=r[t]=n.select(this);switch(t){case&quot;frontplot&quot;:e.append(&quot;g&quot;).classed(&quot;barlayer&quot;,!0),e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0);break;case&quot;backplot&quot;:e.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0);break;case&quot;plotbg&quot;:r.bg=e.append(&quot;path&quot;);break;case&quot;radial-grid&quot;:case&quot;angular-grid&quot;:e.style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;radial-line&quot;:e.append(&quot;line&quot;).style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;angular-line&quot;:e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;)}})),f.order()},z.updateLayout=function(t,e){var r=this.layers,n=t._size,i=e.radialaxis,a=e.angularaxis,o=e.domain.x,s=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-s[1]);var f=this.xLength=n.w*(o[1]-o[0]),h=this.yLength=n.h*(s[1]-s[0]),p=e.sector;this.sectorInRad=p.map(P);var d,g,m,v,y,x=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=C(a,360),l=s+o,c=Math.cos(P(s)),u=Math.sin(P(s)),f=Math.cos(P(l)),h=Math.sin(P(l));i=s&lt;=90&amp;&amp;l&gt;=90||s&gt;90&amp;&amp;l&gt;=450?1:u&lt;=0&amp;&amp;h&lt;=0?0:Math.max(u,h);e=s&lt;=180&amp;&amp;l&gt;=180||s&gt;180&amp;&amp;l&gt;=540?-1:c&gt;=0&amp;&amp;f&gt;=0?0:Math.min(c,f);r=s&lt;=270&amp;&amp;l&gt;=270||s&gt;270&amp;&amp;l&gt;=630?-1:u&gt;=0&amp;&amp;h&gt;=0?0:Math.min(u,h);n=l&gt;=360?1:c&lt;=0&amp;&amp;f&lt;=0?0:Math.max(c,f);return[e,r,n,i]}(p),b=x[2]-x[0],_=x[3]-x[1],w=h/f,T=Math.abs(_/b);w&gt;T?(d=f,y=(h-(g=f*T))/n.h/2,m=[o[0],o[1]],v=[s[0]+y,s[1]-y]):(g=h,y=(f-(d=h/T))/n.w/2,m=[o[0]+y,o[1]-y],v=[s[0],s[1]]),this.xLength2=d,this.yLength2=g,this.xDomain2=m,this.yDomain2=v;var k=this.xOffset2=n.l+n.w*m[0],A=this.yOffset2=n.t+n.h*(1-v[1]),M=this.radius=d/b,S=this.innerRadius=e.hole*M,E=this.cx=k-M*x[0],L=this.cy=A+M*x[3],I=this.cxx=E-k,O=this.cyy=L-A;this.radialAxis=this.mockAxis(t,e,i,{_id:&quot;x&quot;,side:{counterclockwise:&quot;top&quot;,clockwise:&quot;bottom&quot;}[i.side],_realSide:i.side,domain:[S/n.w,M/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{side:&quot;right&quot;,domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:&quot;x&quot;,domain:m}),this.yaxis=this.mockCartesianAxis(t,e,{_id:&quot;y&quot;,domain:v});var z=this.pathSubplot();this.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;d&quot;,z).attr(&quot;transform&quot;,l(I,O)),r.frontplot.attr(&quot;transform&quot;,l(k,A)).call(u.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces,this.gd),r.bg.attr(&quot;d&quot;,z).attr(&quot;transform&quot;,l(E,L)).call(c.fill,e.bgcolor)},z.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return d(i,e,t),i},z.mockCartesianAxis=function(t,e,r){var n=this,i=r._id,a=o.extendFlat({type:&quot;linear&quot;},r);p(a,t);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var t=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-e.hole);a.range=[t[r[0]]*l,t[r[1]]*l]},a.isPtWithinRange=&quot;x&quot;===i?function(t){return n.isPtInside(t)}:function(){return!0},a.setRange(),a.setScale(),a},z.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=e.radialaxis;n.setScale(),g(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,&quot;gregorian&quot;),n.r2l(a[1],null,&quot;gregorian&quot;)]},z.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.radialaxis,g=C(e.sector[0],360),m=r.radialAxis,v=u&lt;a;r.fillViewInitialKey(&quot;radialaxis.angle&quot;,d.angle),r.fillViewInitialKey(&quot;radialaxis.range&quot;,m.range.slice()),m.setGeometry(),&quot;auto&quot;===m.tickangle&amp;&amp;g&gt;90&amp;&amp;g&lt;=270&amp;&amp;(m.tickangle=180);var y=function(t){return l(m.l2p(t.x)+u,0)},x=D(d);if(r.radialTickLayout!==x&amp;&amp;(i[&quot;radial-axis&quot;].selectAll(&quot;.xtick&quot;).remove(),r.radialTickLayout=x),v){m.setScale();var b=h.calcTicks(m),_=h.clipEnds(m,b),w=h.getTickSigns(m)[2];h.drawTicks(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],path:h.makeTickPath(m,0,w),transFn:y,crisp:!1}),h.drawGrid(n,m,{vals:_,layer:i[&quot;radial-grid&quot;],path:function(t){return r.pathArc(m.r2p(t.x)+u)},transFn:o.noop,crisp:!1}),h.drawLabels(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],transFn:y,labelFns:h.makeLabelFns(m,0)})}var T=r.radialAxisAngle=r.vangles?I(R(P(d.angle),r.vangles)):d.angle,k=l(f,p),A=k+s(-T);F(i[&quot;radial-axis&quot;],v&amp;&amp;(d.showticklabels||d.ticks),{transform:A}),F(i[&quot;radial-grid&quot;],v&amp;&amp;d.showgrid,{transform:k}),F(i[&quot;radial-line&quot;].select(&quot;line&quot;),v&amp;&amp;d.showline,{x1:u,y1:0,x2:a,y2:0,transform:A}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},z.updateRadialAxisTitle=function(t,e,r){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=e.radialaxis,l=this.id+&quot;title&quot;,c=void 0!==r?r:this.radialAxisAngle,f=P(c),h=Math.cos(f),p=Math.sin(f),d=0;if(s.title){var g=u.bBox(this.layers[&quot;radial-axis&quot;].node()).height,m=s.title.font.size;d=&quot;counterclockwise&quot;===s.side?-g-.4*m:g+.8*m}this.layers[&quot;radial-axis-title&quot;]=x.draw(n,l,{propContainer:s,propName:this.id+&quot;.radialaxis.title&quot;,placeholder:L(n,&quot;Click to enter radial axis title&quot;),attributes:{x:a+i/2*h+d*p,y:o-i/2*p+d*h,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:-c}})},z.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.angularaxis,g=r.angularAxis;r.fillViewInitialKey(&quot;angularaxis.rotation&quot;,d.rotation),g.setGeometry(),g.setScale();var m=function(t){return g.t2g(t.x)};&quot;linear&quot;===g.type&amp;&amp;&quot;radians&quot;===g.thetaunit&amp;&amp;(g.tick0=I(g.tick0),g.dtick=I(g.dtick));var v=function(t){return l(f+a*Math.cos(t),p-a*Math.sin(t))},y=h.makeLabelFns(g,0).labelStandoff,x={xFn:function(t){var e=m(t);return Math.cos(e)*y},yFn:function(t){var e=m(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(y+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*M)},anchorFn:function(t){var e=m(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},heightFn:function(t,e,r){var n=m(t);return-.5*(1+Math.sin(n))*r}},b=D(d);r.angularTickLayout!==b&amp;&amp;(i[&quot;angular-axis&quot;].selectAll(&quot;.&quot;+g._id+&quot;tick&quot;).remove(),r.angularTickLayout=b);var _,w=h.calcTicks(g);if(&quot;linear&quot;===e.gridshape?(_=w.map(m),o.angleDelta(_[0],_[1])&lt;0&amp;&amp;(_=_.slice().reverse())):_=null,r.vangles=_,&quot;category&quot;===g.type&amp;&amp;(w=w.filter((function(t){return o.isAngleInsideSector(m(t),r.sectorInRad)}))),g.visible){var T=&quot;inside&quot;===g.ticks?-1:1,k=(g.linewidth||1)/2;h.drawTicks(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],path:&quot;M&quot;+T*k+&quot;,0h&quot;+T*g.ticklen,transFn:function(t){var e=m(t);return v(e)+s(-I(e))},crisp:!1}),h.drawGrid(n,g,{vals:w,layer:i[&quot;angular-grid&quot;],path:function(t){var e=m(t),r=Math.cos(e),n=Math.sin(e);return&quot;M&quot;+[f+u*r,p-u*n]+&quot;L&quot;+[f+a*r,p-a*n]},transFn:o.noop,crisp:!1}),h.drawLabels(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],repositionOnUpdate:!0,transFn:function(t){return v(m(t))},labelFns:x})}F(i[&quot;angular-line&quot;].select(&quot;path&quot;),d.showline,{d:r.pathSubplot(),transform:l(f,p)}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},z.updateFx=function(t,e){this.gd._context.staticPlot||(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1),this.updateMainDrag(t))},z.updateMainDrag=function(t){var e,r,s=this,c=s.gd,u=s.layers,f=t._zoomlayer,h=S.MINZOOM,p=S.OFFEDGE,d=s.radius,g=s.innerRadius,x=s.cx,T=s.cy,k=s.cxx,A=s.cyy,M=s.sectorInRad,L=s.vangles,C=s.radialAxis,P=E.clampTiny,I=E.findXYatLength,O=E.findEnclosingVertexAngles,z=S.cornerHalfWidth,D=S.cornerLen/2,R=m.makeDragger(u,&quot;path&quot;,&quot;maindrag&quot;,&quot;crosshair&quot;);n.select(R).attr(&quot;d&quot;,s.pathSubplot()).attr(&quot;transform&quot;,l(x,T));var F,B,N,j,U,V,q,H,G,Y={element:R,gd:c,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function W(t,e){return Math.sqrt(t*t+e*e)}function X(t,e){return W(t-k,e-A)}function Z(t,e){return Math.atan2(A-e,t-k)}function J(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function K(t,e){if(0===t)return s.pathSector(2*z);var r=D/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,d)),o=a-z,l=a+z;return&quot;M&quot;+J(o,n)+&quot;A&quot;+[o,o]+&quot; 0,0,0 &quot;+J(o,i)+&quot;L&quot;+J(l,i)+&quot;A&quot;+[l,l]+&quot; 0,0,1 &quot;+J(l,n)+&quot;Z&quot;}function Q(t,e,r){if(0===t)return s.pathSector(2*z);var n,i,a=J(t,e),o=J(t,r),l=P((a[0]+o[0])/2),c=P((a[1]+o[1])/2);if(l&amp;&amp;c){var u=c/l,f=-1/u,h=I(z,u,l,c);n=I(D,f,h[0][0],h[0][1]),i=I(D,f,h[1][0],h[1][1])}else{var p,d;c?(p=D,d=z):(p=z,d=D),n=[[l-p,c-d],[l+p,c-d]],i=[[l-p,c+d],[l+p,c+d]]}return&quot;M&quot;+n.join(&quot;L&quot;)+&quot;L&quot;+i.reverse().join(&quot;L&quot;)+&quot;Z&quot;}function $(t,e){return e=Math.max(Math.min(e,d),g),t&lt;p?t=0:d-t&lt;p?t=d:e&lt;p?e=0:d-e&lt;p&amp;&amp;(e=d),Math.abs(e-t)&gt;h?(t&lt;e?(N=t,j=e):(N=e,j=t),!0):(N=null,j=null,!1)}function tt(t,e){t=t||U,e=e||&quot;M0,0Z&quot;,H.attr(&quot;d&quot;,t),G.attr(&quot;d&quot;,e),m.transitionZoombox(H,G,V,q),V=!0;var r={};at(r),c.emit(&quot;plotly_relayouting&quot;,r)}function et(t,n){var i,a,o=F+(t*=e),l=B+(n*=r),c=X(F,B),u=Math.min(X(o,l),d),f=Z(F,B);$(c,u)&amp;&amp;(i=U+s.pathSector(j),N&amp;&amp;(i+=s.pathSector(N)),a=K(N,f)+K(j,f)),tt(i,a)}function rt(t,e,r,n){var i=E.findIntersectionXY(r,n,r,[t-k,A-e]);return W(i[0],i[1])}function nt(t,e){var r,n,i=F+t,a=B+e,o=Z(F,B),l=Z(i,a),c=O(o,L),u=O(l,L);$(rt(F,B,c[0],c[1]),Math.min(rt(i,a,u[0],u[1]),d))&amp;&amp;(r=U+s.pathSector(j),N&amp;&amp;(r+=s.pathSector(N)),n=[Q(N,c[0],c[1]),Q(j,c[0],c[1])].join(&quot; &quot;)),tt(r,n)}function it(){if(m.removeZoombox(c),null!==N&amp;&amp;null!==j){var t={};at(t),m.showDoubleClickNotifier(c),a.call(&quot;_guiRelayout&quot;,c,t)}}function at(t){var e=C._rl,r=(e[1]-e[0])/(1-g/d)/d,n=[e[0]+(N-g)*r,e[0]+(j-g)*r];t[s.id+&quot;.radialaxis.range&quot;]=n}function ot(t,e){var r=c._fullLayout.clickmode;if(m.removeZoombox(c),2===t){var n={};for(var i in s.viewInitial)n[s.id+&quot;.&quot;+i]=s.viewInitial[i];c.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,c,n)}r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;_(e,c,[s.xaxis],[s.yaxis],s.id,Y),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;y.click(c,e,s.id)}Y.prepFn=function(t,n,a){var l=c._fullLayout.dragmode,u=R.getBoundingClientRect();c._fullLayout._calcInverseTransform(c);var h=c._fullLayout._invTransform;e=c._fullLayout._invScaleX,r=c._fullLayout._invScaleY;var p=o.apply3DTransform(h)(n-u.left,a-u.top);if(F=p[0],B=p[1],L){var g=E.findPolygonOffset(d,M[0],M[1],L);F+=k+g[0],B+=A+g[1]}switch(l){case&quot;zoom&quot;:Y.moveFn=L?nt:et,Y.clickFn=ot,Y.doneFn=it,function(){N=null,j=null,U=s.pathSubplot(),V=!1;var t=c._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(H=m.makeZoombox(f,q,x,T,U)).attr(&quot;fill-rule&quot;,&quot;evenodd&quot;),G=m.makeCorners(f,x,T),w(c)}();break;case&quot;select&quot;:case&quot;lasso&quot;:b(t,n,a,Y,l)}},R.onmousemove=function(t){y.hover(c,t,s.id),c._fullLayout._lasthover=R,c._fullLayout._hoversubplot=s.id},R.onmouseout=function(t){c._dragging||v.unhover(c,t)},v.init(Y)},z.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,h=i.innerRadius,p=i.cx,d=i.cy,g=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(g.visible){var b,_,T,M=P(i.radialAxisAngle),E=g._rl,L=E[0],C=E[1],O=E[r],z=.75*(E[1]-E[0])/(1-e.hole)/f;r?(b=p+(f+x)*Math.cos(M),_=d-(f+x)*Math.sin(M),T=&quot;radialdrag&quot;):(b=p+(h-x)*Math.cos(M),_=d-(h-x)*Math.sin(M),T=&quot;radialdrag-inner&quot;);var D,B,N,j=m.makeRectDragger(u,T,&quot;crosshair&quot;,-x,-x,y,y),U={element:j,gd:c};F(n.select(j),g.visible&amp;&amp;h&lt;f,{transform:l(b,_)}),U.prepFn=function(){D=null,B=null,N=null,U.moveFn=V,U.doneFn=q,w(c)},U.clampFn=function(t,e){return Math.sqrt(t*t+e*e)&lt;S.MINDRAG&amp;&amp;(t=0,e=0),[t,e]},v.init(U)}function V(t,e){if(D)D(t,e);else{var n=[t,-e],a=[Math.cos(M),Math.sin(M)],s=Math.abs(o.dot(n,a)/Math.sqrt(o.dot(n,n)));isNaN(s)||(D=s&lt;.5?H:G)}var l={};!function(t){null!==B?t[i.id+&quot;.radialaxis.angle&quot;]=B:null!==N&amp;&amp;(t[i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;]=N)}(l),c.emit(&quot;plotly_relayouting&quot;,l)}function q(){null!==B?a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.angle&quot;,B):null!==N&amp;&amp;a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;,N)}function H(t,e){if(0!==r){var n=b+t,a=_+e;B=Math.atan2(d-a,n-p),i.vangles&amp;&amp;(B=R(B,i.vangles)),B=I(B);var o=l(p,d)+s(-B);u[&quot;radial-axis&quot;].attr(&quot;transform&quot;,o),u[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,o);var c=i.gd._fullLayout,f=c[i.id];i.updateRadialAxisTitle(c,f,B)}}function G(t,e){var n=o.dot([t,-e],[Math.cos(M),Math.sin(M)]);if(N=O-z*n,z&gt;0==(r?N&gt;L:N&lt;C)){var s=c._fullLayout,l=s[i.id];g.range[r]=N,g._rl[r]=N,i.updateRadialAxis(s,l),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale();var u=!1;for(var f in i.traceHash){var h=i.traceHash[f],p=o.filterVisible(h);h[0][0].trace._module.plot(c,i,p,l),a.traceIs(f,&quot;gl&quot;)&amp;&amp;p.length&amp;&amp;(u=!0)}u&amp;&amp;(k(c),A(c))}else N=null}},z.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,c=e.radius,f=e.angularAxis,h=e.cx,p=e.cy,d=e.cxx,g=e.cyy,y=S.angularDragBoxSize,x=m.makeDragger(i,&quot;path&quot;,&quot;angulardrag&quot;,&quot;move&quot;),b={element:x,gd:r};function _(t,e){return Math.atan2(g+y-e,t-d-y)}n.select(x).attr(&quot;d&quot;,e.pathAnnulus(c,c+y)).attr(&quot;transform&quot;,l(h,p)).call(T,&quot;move&quot;);var M,E,L,C,P,O,z=i.frontplot.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;),D=z.selectAll(&quot;.point&quot;),R=z.selectAll(&quot;.textpoint&quot;);function F(c,m){var v=e.gd._fullLayout,y=v[e.id],x=_(M+c*t._invScaleX,E+m*t._invScaleY),b=I(x-O);if(C=L+b,i.frontplot.attr(&quot;transform&quot;,l(e.xOffset2,e.yOffset2)+s([-b,d,g])),e.vangles){P=e.radialAxisAngle+b;var w=l(h,p)+s(-b),T=l(h,p)+s(-P);i.bg.attr(&quot;transform&quot;,w),i[&quot;radial-grid&quot;].attr(&quot;transform&quot;,w),i[&quot;radial-axis&quot;].attr(&quot;transform&quot;,T),i[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,T),e.updateRadialAxisTitle(v,y,P)}else e.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;transform&quot;,l(d,g)+s(b));D.each((function(){var t=n.select(this),e=u.getTranslate(t);t.attr(&quot;transform&quot;,l(e.x,e.y)+s([b]))})),R.each((function(){var t=n.select(this),e=t.select(&quot;text&quot;),r=u.getTranslate(t);t.attr(&quot;transform&quot;,s([b,e.attr(&quot;x&quot;),e.attr(&quot;y&quot;)])+l(r.x,r.y))})),f.rotation=o.modHalf(C,360),e.updateAngularAxis(v,y),e._hasClipOnAxisFalse&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;z.call(u.hideOutsideRangePoints,e);var S=!1;for(var F in e.traceHash)if(a.traceIs(F,&quot;gl&quot;)){var N=e.traceHash[F],j=o.filterVisible(N);N[0][0].trace._module.plot(r,e,j,y),j.length&amp;&amp;(S=!0)}S&amp;&amp;(k(r),A(r));var U={};B(U),r.emit(&quot;plotly_relayouting&quot;,U)}function B(t){t[e.id+&quot;.angularaxis.rotation&quot;]=C,e.vangles&amp;&amp;(t[e.id+&quot;.radialaxis.angle&quot;]=P)}function N(){R.select(&quot;text&quot;).attr(&quot;transform&quot;,null);var t={};B(t),a.call(&quot;_guiRelayout&quot;,r,t)}b.prepFn=function(n,i,a){var s=t[e.id];L=s.angularaxis.rotation;var l=x.getBoundingClientRect();M=i-l.left,E=a-l.top,r._fullLayout._calcInverseTransform(r);var c=o.apply3DTransform(t._invTransform)(M,E);M=c[0],E=c[1],O=_(M,E),b.moveFn=F,b.doneFn=N,w(r)},e.vangles&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;(b.prepFn=o.noop,T(n.select(x),null)),v.init(b)},z.isPtInside=function(t){var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?E.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},z.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathArc)(t,e[0],e[1],r)},z.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathSector)(t,e[0],e[1],r)},z.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?E.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},z.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},z.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{&quot;../../components/color&quot;:666,&quot;../../components/dragelement&quot;:685,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../components/titles&quot;:764,&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/clear_gl_canvases&quot;:787,&quot;../../lib/setcursor&quot;:824,&quot;../../plot_api/subroutines&quot;:844,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;../cartesian/autorange&quot;:853,&quot;../cartesian/dragbox&quot;:863,&quot;../cartesian/select&quot;:874,&quot;../cartesian/set_convert&quot;:875,&quot;../plots&quot;:917,&quot;./constants&quot;:918,&quot;./helpers&quot;:919,&quot;./set_convert&quot;:924,&quot;@plotly/d3&quot;:58,tinycolor2:598}],924:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../cartesian/set_convert&quot;),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case&quot;x&quot;:case&quot;radialaxis&quot;:!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e&gt;n?function(t){return t&lt;=0}:function(t){return t&gt;=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case&quot;angularaxis&quot;:!function(t,e){var r=t.type;if(&quot;linear&quot;===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return&quot;degrees&quot;===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return&quot;degrees&quot;===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&amp;&amp;&quot;linear&quot;===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o&lt;l;o++)a[o]=c(s[o])}else{var u=i+&quot;0&quot;,f=&quot;d&quot;+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o&lt;l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},g=function(t){return(t-p)/h};switch(r){case&quot;linear&quot;:s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(g).map(o);break;case&quot;category&quot;:var m=t._categories.length,v=t.period?Math.max(t.period,m):m;0===v&amp;&amp;(v=1),s=c=function(t){return 2*t*Math.PI/v},i=l=function(t){return t*v/Math.PI/2},t.range=[0,v]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(g(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(g(t))}}}(t,e)}}},{&quot;../../lib&quot;:803,&quot;../cartesian/set_convert&quot;:875}],925:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;),a=t(&quot;./domain&quot;).defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||&quot;x&quot;,p=e._subplots[c],d=p.length,g=d&amp;&amp;p[0].replace(/\d+$/,&quot;&quot;);function m(t,e){return n.coerce(s,l,u,t,e)}for(var v=0;v&lt;d;v++){var y=p[v];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,g),m(&quot;uirevision&quot;,e.uirevision);var x={};x[h]=[v/d,(v+1)/d],a(l,e,m,x),o.id=y,f(s,l,m,o)}}},{&quot;../lib&quot;:803,&quot;../plot_api/plot_template&quot;:843,&quot;./domain&quot;:882}],926:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/docs&quot;);n.FORMAT_LINK,n.DATE_FORMAT_LINK;function i(t){var e=t.description?&quot; &quot;+t.description:&quot;&quot;,r=t.keys||[];if(r.length&gt;0){for(var n=[],i=0;i&lt;r.length;i++)n[i]=&quot;`&quot;+r[i]+&quot;`&quot;;e+=&quot;Finally, the template string has access to &quot;,e=1===r.length?&quot;variable &quot;+n[0]:&quot;variables &quot;+n.slice(0,-1).join(&quot;, &quot;)+&quot; and &quot;+n.slice(-1)+&quot;.&quot;}return e}r.hovertemplateAttrs=function(t,e){t=t||{};i(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;none&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r},r.texttemplateAttrs=function(t,e){t=t||{};i(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;calc&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r}},{&quot;../constants/docs&quot;:774}],927:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./ternary&quot;),i=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,a=t(&quot;../../lib&quot;).counterRegex;r.name=&quot;ternary&quot;;var o=r.attr=&quot;subplot&quot;;r.idRoot=&quot;ternary&quot;,r.idRegex=r.attrRegex=a(&quot;ternary&quot;),(r.attributes={})[o]={valType:&quot;subplotid&quot;,dflt:&quot;ternary&quot;,editType:&quot;calc&quot;},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o&lt;a.length;o++){var s=a[o],l=i(r,&quot;ternary&quot;,s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[&quot;a-title&quot;].remove(),s.layers[&quot;b-title&quot;].remove(),s.layers[&quot;c-title&quot;].remove())}}},{&quot;../../lib&quot;:803,&quot;../../plots/get_data&quot;:891,&quot;./layout_attributes&quot;:928,&quot;./layout_defaults&quot;:929,&quot;./ternary&quot;:930}],928:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;../cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/extend&quot;).extendFlat,l={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:&quot;number&quot;,dflt:0,min:0},_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},c=e.exports=o({domain:i({name:&quot;ternary&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:n.background},sum:{valType:&quot;number&quot;,dflt:1,min:0},aaxis:l,baxis:l,caxis:l},&quot;plot&quot;,&quot;from-root&quot;);c.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../cartesian/layout_attributes&quot;:869,&quot;../domain&quot;:882}],929:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../cartesian/tick_label_defaults&quot;),l=t(&quot;../cartesian/tick_mark_defaults&quot;),c=t(&quot;../cartesian/tick_value_defaults&quot;),u=t(&quot;../cartesian/line_grid_defaults&quot;),f=t(&quot;./layout_attributes&quot;),h=[&quot;aaxis&quot;,&quot;baxis&quot;,&quot;caxis&quot;];function p(t,e,r,a){var o,s,l,c=r(&quot;bgcolor&quot;),u=r(&quot;sum&quot;);a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f&lt;h.length;f++)s=t[o=h[f]]||{},(l=i.newContainer(e,o))._name=o,d(s,l,a,e);var p=e.aaxis,g=e.baxis,m=e.caxis;p.min+g.min+m.min&gt;=u&amp;&amp;(p.min=0,g.min=0,m.min=0,t.aaxis&amp;&amp;delete t.aaxis.min,t.baxis&amp;&amp;delete t.baxis.min,t.caxis&amp;&amp;delete t.caxis.min)}function d(t,e,r,n){var i=f[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o(&quot;uirevision&quot;,n.uirevision),e.type=&quot;linear&quot;;var h=o(&quot;color&quot;),p=h!==i.color.dflt?h:r.font.color,d=e._name.charAt(0).toUpperCase(),g=&quot;Component &quot;+d,m=o(&quot;title.text&quot;,g);e._hovertitle=m===g?m:d,a.coerceFont(o,&quot;title.font&quot;,{family:r.font.family,size:a.bigFont(r.font.size),color:p}),o(&quot;min&quot;),c(t,e,o,&quot;linear&quot;),s(t,e,o,&quot;linear&quot;,{}),l(t,e,o,{outerTicks:!0}),o(&quot;showticklabels&quot;)&amp;&amp;(a.coerceFont(o,&quot;tickfont&quot;,{family:r.font.family,size:r.font.size,color:p}),o(&quot;tickangle&quot;),o(&quot;tickformat&quot;)),u(t,e,o,{dfltColor:h,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o(&quot;hoverformat&quot;),o(&quot;layer&quot;)}e.exports=function(t,e,r){o(t,e,r,{type:&quot;ternary&quot;,attributes:f,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../cartesian/line_grid_defaults&quot;:871,&quot;../cartesian/tick_label_defaults&quot;:876,&quot;../cartesian/tick_mark_defaults&quot;:877,&quot;../cartesian/tick_value_defaults&quot;:878,&quot;../subplot_defaults&quot;:925,&quot;./layout_attributes&quot;:928}],930:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o._,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../cartesian/set_convert&quot;),h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../plots&quot;),d=t(&quot;../cartesian/axes&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/fx&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.freeMode,x=v.rectMode,b=t(&quot;../../components/titles&quot;),_=t(&quot;../cartesian/select&quot;).prepSelect,w=t(&quot;../cartesian/select&quot;).selectOnClick,T=t(&quot;../cartesian/select&quot;).clearSelect,k=t(&quot;../cartesian/select&quot;).clearSelectionsCache,A=t(&quot;../cartesian/constants&quot;);function M(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=M;var S=M.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i&lt;t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),p.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(&quot;path&quot;).call(c.fill,r.bgcolor)},S.makeFramework=function(t){var e=this.graphDiv,r=t[this.id],n=this.clipId=&quot;clip&quot;+this.layoutId+this.id,i=this.clipIdRelative=&quot;clip-relative&quot;+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,&quot;clipPath&quot;,n,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.clipDefRelative=o.ensureSingleById(t._clips,&quot;clipPath&quot;,i,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.plotContainer=o.ensureSingle(this.container,&quot;g&quot;,this.id),this.updateLayers(r),u.setClipUrl(this.layers.backplot,n,e),u.setClipUrl(this.layers.grids,n,e)},S.updateLayers=function(t){var e=this.layers,r=[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;grids&quot;];&quot;below traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;below traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;below traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;),r.push(&quot;frontplot&quot;),&quot;above traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;above traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;above traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;);var i=this.plotContainer.selectAll(&quot;g.toplevel&quot;).data(r,String),a=[&quot;agrid&quot;,&quot;bgrid&quot;,&quot;cgrid&quot;];i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;toplevel &quot;+t})).each((function(t){var r=n.select(this);e[t]=r,&quot;frontplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):&quot;backplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0):&quot;plotbg&quot;===t?r.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;):&quot;aline&quot;===t||&quot;bline&quot;===t||&quot;cline&quot;===t?r.append(&quot;path&quot;):&quot;grids&quot;===t&amp;&amp;a.forEach((function(t){e[t]=r.append(&quot;g&quot;).classed(&quot;grid &quot;+t,!0)}))})),i.order()};var E=Math.sqrt(4/3);S.adjustLayout=function(t,e){var r,n,i,a,o,l,p=this,d=t.domain,g=(d.x[0]+d.x[1])/2,m=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],y=d.y[1]-d.y[0],x=v*e.w,b=y*e.h,_=t.sum,w=t.aaxis.min,T=t.baxis.min,k=t.caxis.min;x&gt;E*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=e.l+e.w*g-i/2,n=e.t+e.h*(1-m)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=_,p.xaxis={type:&quot;linear&quot;,range:[w+2*k-_,_-w-2*T],domain:[g-o/2,g+o/2],_id:&quot;x&quot;},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a&gt;=p.aaxis.range[0]&amp;&amp;t.a&lt;=p.aaxis.range[1]&amp;&amp;t.b&gt;=p.baxis.range[1]&amp;&amp;t.b&lt;=p.baxis.range[0]&amp;&amp;t.c&gt;=p.caxis.range[1]&amp;&amp;t.c&lt;=p.caxis.range[0]},p.yaxis={type:&quot;linear&quot;,range:[w,_-T-k],domain:[m-l/2,m+l/2],_id:&quot;y&quot;},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var A=p.yaxis.domain[0],M=p.aaxis=h({},t.aaxis,{range:[w,_-T-k],side:&quot;left&quot;,tickangle:(+t.aaxis.tickangle||0)-30,domain:[A,A+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(M,p.graphDiv._fullLayout),M.setScale();var S=p.baxis=h({},t.baxis,{range:[_-w-k,T],side:&quot;bottom&quot;,domain:p.xaxis.domain,anchor:&quot;free&quot;,position:0,_id:&quot;x&quot;,_length:i});f(S,p.graphDiv._fullLayout),S.setScale();var L=p.caxis=h({},t.caxis,{range:[_-w-T,k],side:&quot;right&quot;,tickangle:(+t.caxis.tickangle||0)+30,domain:[A,A+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(L,p.graphDiv._fullLayout),L.setScale();var C=&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDef.select(&quot;path&quot;).attr(&quot;d&quot;,C),p.layers.plotbg.select(&quot;path&quot;).attr(&quot;d&quot;,C);var P=&quot;M0,&quot;+a+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDefRelative.select(&quot;path&quot;).attr(&quot;d&quot;,P);var I=s(r,n);p.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,I),p.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,null);var O=s(r-S._offset,n+a);p.layers.baxis.attr(&quot;transform&quot;,O),p.layers.bgrid.attr(&quot;transform&quot;,O);var z=s(r+i/2,n)+&quot;rotate(30)&quot;+s(0,-M._offset);p.layers.aaxis.attr(&quot;transform&quot;,z),p.layers.agrid.attr(&quot;transform&quot;,z);var D=s(r+i/2,n)+&quot;rotate(-30)&quot;+s(0,-L._offset);p.layers.caxis.attr(&quot;transform&quot;,D),p.layers.cgrid.attr(&quot;transform&quot;,D),p.drawAxes(!0),p.layers.aline.select(&quot;path&quot;).attr(&quot;d&quot;,M.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;l&quot;+i/2+&quot;,-&quot;+a:&quot;M0,0&quot;).call(c.stroke,M.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(M.linewidth||0)+&quot;px&quot;),p.layers.bline.select(&quot;path&quot;).attr(&quot;d&quot;,S.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i:&quot;M0,0&quot;).call(c.stroke,S.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(S.linewidth||0)+&quot;px&quot;),p.layers.cline.select(&quot;path&quot;).attr(&quot;d&quot;,L.showline?&quot;M&quot;+(r+i/2)+&quot;,&quot;+n+&quot;l&quot;+i/2+&quot;,&quot;+a:&quot;M0,0&quot;).call(c.stroke,L.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(L.linewidth||0)+&quot;px&quot;),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this.graphDiv,r=this.id.substr(7)+&quot;title&quot;,n=this.layers,i=this.aaxis,a=this.baxis,o=this.caxis;if(this.drawAx(i),this.drawAx(a),this.drawAx(o),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(&quot;outside&quot;===o.ticks?.87*o.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+(&quot;outside&quot;===a.ticks?a.ticklen:0)+3;n[&quot;a-title&quot;]=b.draw(e,&quot;a&quot;+r,{propContainer:i,propName:this.id+&quot;.aaxis.title&quot;,placeholder:l(e,&quot;Click to enter Component A title&quot;),attributes:{x:this.x0+this.w/2,y:this.y0-i.title.font.size/3-s,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;b-title&quot;]=b.draw(e,&quot;b&quot;+r,{propContainer:a,propName:this.id+&quot;.baxis.title&quot;,placeholder:l(e,&quot;Click to enter Component B title&quot;),attributes:{x:this.x0-c,y:this.y0+this.h+.83*a.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;c-title&quot;]=b.draw(e,&quot;c&quot;+r,{propContainer:o,propName:this.id+&quot;.caxis.title&quot;,placeholder:l(e,&quot;Click to enter Component C title&quot;),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}})}},S.drawAx=function(t){var e,r=this.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=this.layers[n],l=i+&quot;tickLayout&quot;,c=(e=t).ticks+String(e.ticklen)+String(e.showticklabels);this[l]!==c&amp;&amp;(s.selectAll(&quot;.&quot;+a+&quot;tick&quot;).remove(),this[l]=c),t.setScale();var u=d.calcTicks(t),f=d.clipEnds(t,u),h=d.makeTransTickFn(t),p=d.getTickSigns(t)[2],g=o.deg2rad(30),m=p*(t.linewidth||1)/2,v=p*t.ticklen,y=this.w,x=this.h,b=&quot;b&quot;===i?&quot;M0,&quot;+m+&quot;l&quot;+Math.sin(g)*v+&quot;,&quot;+Math.cos(g)*v:&quot;M&quot;+m+&quot;,0l&quot;+Math.cos(g)*v+&quot;,&quot;+-Math.sin(g)*v,_={a:&quot;M0,0l&quot;+x+&quot;,-&quot;+y/2,b:&quot;M0,0l-&quot;+y/2+&quot;,-&quot;+x,c:&quot;M0,0l-&quot;+x+&quot;,&quot;+y/2}[i];d.drawTicks(r,t,{vals:&quot;inside&quot;===t.ticks?f:u,layer:s,path:b,transFn:h,crisp:!1}),d.drawGrid(r,t,{vals:f,layer:this.layers[i+&quot;grid&quot;],path:_,transFn:h,crisp:!1}),d.drawLabels(r,t,{vals:u,layer:s,transFn:h,labelFns:d.makeLabelFns(t,0,30)})};var L=A.MINZOOM/2+.87,C=&quot;m-0.87,.5h&quot;+L+&quot;v3h-&quot;+(L+5.2)+&quot;l&quot;+(L/2+2.6)+&quot;,-&quot;+(.87*L+4.5)+&quot;l2.6,1.5l-&quot;+L/2+&quot;,&quot;+.87*L+&quot;Z&quot;,P=&quot;m0.87,.5h-&quot;+L+&quot;v3h&quot;+(L+5.2)+&quot;l-&quot;+(L/2+2.6)+&quot;,-&quot;+(.87*L+4.5)+&quot;l-2.6,1.5l&quot;+L/2+&quot;,&quot;+.87*L+&quot;Z&quot;,I=&quot;m0,1l&quot;+L/2+&quot;,&quot;+.87*L+&quot;l2.6,-1.5l-&quot;+(L/2+2.6)+&quot;,-&quot;+(.87*L+4.5)+&quot;l-&quot;+(L/2+2.6)+&quot;,&quot;+(.87*L+4.5)+&quot;l2.6,1.5l&quot;+L/2+&quot;,-&quot;+.87*L+&quot;Z&quot;,O=!0;function z(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,h,p,d,v,b,T,k,M=this,S=M.layers.plotbg.select(&quot;path&quot;).node(),L=M.graphDiv,D=L._fullLayout._zoomlayer;function R(t){var e={};return e[M.id+&quot;.aaxis.min&quot;]=t.a,e[M.id+&quot;.baxis.min&quot;]=t.b,e[M.id+&quot;.caxis.min&quot;]=t.c,e}function F(t,e){var r=L._fullLayout.clickmode;z(L),2===t&amp;&amp;(L.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,L,R({a:0,b:0,c:0}))),r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;w(e,L,[M.xaxis],[M.yaxis],M.id,M.dragOptions),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;m.click(L,e,M.id)}function B(t,e){return 1-e/M.h}function N(t,e){return 1-(t+(M.h-e)/Math.sqrt(3))/M.w}function j(t,e){return(t-(M.h-e)/Math.sqrt(3))/M.w}function U(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,B(0,n),B(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,j(r,n),j(o,s))),g=(l/2+u)*M.w,m=(1-l/2-c)*M.w,y=(g+m)/2,x=m-g,_=(1-l)*M.h,w=_-x/E;x&lt;A.MINZOOM?(p=f,T.attr(&quot;d&quot;,v),k.attr(&quot;d&quot;,&quot;M0,0Z&quot;)):(p={a:f.a+l*h,b:f.b+c*h,c:f.c+u*h},T.attr(&quot;d&quot;,v+&quot;M&quot;+g+&quot;,&quot;+_+&quot;H&quot;+m+&quot;L&quot;+y+&quot;,&quot;+w+&quot;L&quot;+g+&quot;,&quot;+_+&quot;Z&quot;),k.attr(&quot;d&quot;,&quot;M&quot;+r+&quot;,&quot;+n+&quot;m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM&quot;+g+&quot;,&quot;+_+C+&quot;M&quot;+m+&quot;,&quot;+_+P+&quot;M&quot;+y+&quot;,&quot;+w+I)),b||(T.transition().style(&quot;fill&quot;,d&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),k.transition().style(&quot;opacity&quot;,1).duration(200),b=!0),L.emit(&quot;plotly_relayouting&quot;,R(p))}function V(){z(L),p!==f&amp;&amp;(a.call(&quot;_guiRelayout&quot;,L,R(p)),O&amp;&amp;L.data&amp;&amp;L._context.showTips&amp;&amp;(o.notifier(l(L,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),O=!1))}function q(t,e){var r=t/M.xaxis._m,n=e/M.yaxis._m,i=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),a=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]&lt;0&amp;&amp;(i[1]+i[0]/2&lt;0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[a],b:i[l],c:i[c]},e=(f.a-p.a)*M.yaxis._m,t=(f.c-p.c-f.b+p.b)*M.xaxis._m);var h=s(M.x0+t,M.y0+e);M.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,h);var d=s(-t,-e);M.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,d),M.aaxis.range=[p.a,M.sum-p.b-p.c],M.baxis.range=[M.sum-p.a-p.c,p.b],M.caxis.range=[M.sum-p.a-p.b,p.c],M.drawAxes(!1),M._hasClipOnAxisFalse&amp;&amp;M.plotContainer.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;).call(u.hideOutsideRangePoints,M),L.emit(&quot;plotly_relayouting&quot;,R(p))}function H(){a.call(&quot;_guiRelayout&quot;,L,R(p))}this.dragOptions={element:S,gd:L,plotinfo:{id:M.id,domain:L._fullLayout[M.id].domain,xaxis:M.xaxis,yaxis:M.yaxis},subplot:M.id,prepFn:function(a,l,u){M.dragOptions.xaxes=[M.xaxis],M.dragOptions.yaxes=[M.yaxis],t=L._fullLayout._invScaleX,e=L._fullLayout._invScaleY;var g=M.dragOptions.dragmode=L._fullLayout.dragmode;y(g)?M.dragOptions.minDrag=1:M.dragOptions.minDrag=void 0,&quot;zoom&quot;===g?(M.dragOptions.moveFn=U,M.dragOptions.clickFn=F,M.dragOptions.doneFn=V,function(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,L._fullLayout._calcInverseTransform(L);var u=L._fullLayout._invTransform,g=o.apply3DTransform(u)(r,n);r=g[0],n=g[1],f={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},p=f,h=M.aaxis.range[1]-f.a,d=i(M.graphDiv._fullLayout[M.id].bgcolor).getLuminance(),v=&quot;M0,&quot;+M.h+&quot;L&quot;+M.w/2+&quot;, 0L&quot;+M.w+&quot;,&quot;+M.h+&quot;Z&quot;,b=!1,T=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).attr(&quot;transform&quot;,s(M.x0,M.y0)).style({fill:d&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;d&quot;,v),k=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).attr(&quot;transform&quot;,s(M.x0,M.y0)).style({fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;d&quot;,&quot;M0,0Z&quot;),M.clearSelect(L)}(0,l,u)):&quot;pan&quot;===g?(M.dragOptions.moveFn=q,M.dragOptions.clickFn=F,M.dragOptions.doneFn=H,f={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},p=f,M.clearSelect(L)):(x(g)||y(g))&amp;&amp;_(a,l,u,M.dragOptions,g)}},S.onmousemove=function(t){m.hover(L,t,M.id),L._fullLayout._lasthover=S,L._fullLayout._hoversubplot=M.id},S.onmouseout=function(t){L._dragging||g.unhover(L,t)},g.init(this.dragOptions)}},{&quot;../../components/color&quot;:666,&quot;../../components/dragelement&quot;:685,&quot;../../components/dragelement/helpers&quot;:684,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../components/titles&quot;:764,&quot;../../lib&quot;:803,&quot;../../lib/extend&quot;:793,&quot;../../registry&quot;:931,&quot;../cartesian/axes&quot;:854,&quot;../cartesian/constants&quot;:861,&quot;../cartesian/select&quot;:874,&quot;../cartesian/set_convert&quot;:875,&quot;../plots&quot;:917,&quot;@plotly/d3&quot;:58,tinycolor2:598}],931:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/loggers&quot;),i=t(&quot;./lib/noop&quot;),a=t(&quot;./lib/push_unique&quot;),o=t(&quot;./lib/is_plain_object&quot;),s=t(&quot;./lib/dom&quot;).addStyleRule,l=t(&quot;./lib/extend&quot;),c=t(&quot;./plots/attributes&quot;),u=t(&quot;./plots/layout_attributes&quot;),f=l.extendFlat,h=l.extendDeepAll;function p(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(&quot;Type &quot;+e+&quot; already registered&quot;);else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(&quot;Plot type &quot;+e+&quot; already registered.&quot;);for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)b(i,t.name)}(t.basePlotModule);for(var o={},l=0;l&lt;i.length;l++)o[i[l]]=!0,r.allCategories[i[l]]=!0;for(var c in r.modules[e]={_module:t,categories:o},a&amp;&amp;Object.keys(a).length&amp;&amp;(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)y(c,e);t.layoutAttributes&amp;&amp;f(r.traceLayoutAttributes,t.layoutAttributes);var u=t.basePlotModule,h=u.name;if(&quot;mapbox&quot;===h){var p=u.constants.styleRules;for(var d in p)s(&quot;.js-plotly-plot .plotly .mapboxgl-&quot;+d,p[d])}&quot;geo&quot;!==h&amp;&amp;&quot;mapbox&quot;!==h||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function d(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Component module *name* must be a string.&quot;);var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&amp;&amp;(t.layoutAttributes._isLinkedToArray&amp;&amp;a(r.layoutArrayContainers,e),v(t)),r.modules)y(e,n);for(var i in r.subplotsRegistry)b(e,i);for(var o in r.transformsRegistry)x(e,o);t.schema&amp;&amp;t.schema.layout&amp;&amp;h(u,t.schema.layout)}function g(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Transform module *name* must be a string.&quot;);var e=&quot;Transform module &quot;+t.name,i=&quot;function&quot;==typeof t.transform,a=&quot;function&quot;==typeof t.calcTransform;if(!i&amp;&amp;!a)throw new Error(e+&quot; is missing a *transform* or *calcTransform* method.&quot;);for(var s in i&amp;&amp;a&amp;&amp;n.log([e+&quot; has both a *transform* and *calcTransform* methods.&quot;,&quot;Please note that all *transform* methods are executed&quot;,&quot;before all *calcTransform* methods.&quot;].join(&quot; &quot;)),o(t.attributes)||n.log(e+&quot; registered without an *attributes* object.&quot;),&quot;function&quot;!=typeof t.supplyDefaults&amp;&amp;n.log(e+&quot; registered without a *supplyDefaults* method.&quot;),r.transformsRegistry[t.name]=t,r.componentsRegistry)x(s,t.name)}function m(t){var e=t.name,n=e.split(&quot;-&quot;)[0],i=t.dictionary,a=t.format,o=i&amp;&amp;Object.keys(i).length,s=a&amp;&amp;Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&amp;&amp;u.dictionary===c.dictionary&amp;&amp;(u.dictionary=i),s&amp;&amp;u.format===c.format&amp;&amp;(u.format=a)}o&amp;&amp;(c.dictionary=i),s&amp;&amp;(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n&lt;e.length;n++)a(r.layoutArrayRegexes,e[n])}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.traces){var i=n.traces[e];i&amp;&amp;h(r.modules[e]._module.attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.transforms){var i=n.transforms[e];i&amp;&amp;h(r.transformsRegistry[e].attributes,i)}}function b(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=&quot;subplot&quot;===i.attr?i.name:i.attr;Array.isArray(o)&amp;&amp;(o=o[0]);var s=n.subplots[o];a&amp;&amp;s&amp;&amp;h(a,s)}}function _(t){return&quot;object&quot;==typeof t&amp;&amp;(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.collectableSubplotTypes=null,r.register=function(t){if(r.collectableSubplotTypes=null,!t)throw new Error(&quot;No argument passed to Plotly.register.&quot;);t&amp;&amp;!Array.isArray(t)&amp;&amp;(t=[t]);for(var e=0;e&lt;t.length;e++){var n=t[e];if(!n)throw new Error(&quot;Invalid module was attempted to be registered!&quot;);switch(n.moduleType){case&quot;trace&quot;:p(n);break;case&quot;transform&quot;:g(n);break;case&quot;component&quot;:d(n);break;case&quot;locale&quot;:m(n);break;case&quot;apiMethod&quot;:var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(&quot;Invalid module was attempted to be registered!&quot;)}}},r.getModule=function(t){var e=r.modules[_(t)];return!!e&amp;&amp;e._module},r.traceIs=function(t,e){if(&quot;various&quot;===(t=_(t)))return!1;var i=r.modules[t];return i||(t&amp;&amp;n.log(&quot;Unrecognized trace type &quot;+t+&quot;.&quot;),i=r.modules[c.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i&lt;n.length;i++)n[i].type===e&amp;&amp;r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n&lt;r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&amp;&amp;n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{&quot;./lib/dom&quot;:791,&quot;./lib/extend&quot;:793,&quot;./lib/is_plain_object&quot;:804,&quot;./lib/loggers&quot;:807,&quot;./lib/noop&quot;:812,&quot;./lib/push_unique&quot;:818,&quot;./plots/attributes&quot;:850,&quot;./plots/layout_attributes&quot;:908}],932:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=i.extendFlat,o=i.extendDeep;function s(t){var e;switch(t){case&quot;themes__thumb&quot;:e={autosize:!0,width:150,height:150,title:{text:&quot;&quot;},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case&quot;thumbnail&quot;:e={title:{text:&quot;&quot;},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:&quot;&quot;,margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r,i,l=t.data,c=t.layout,u=o([],l),f=o({},c,s(e.tileClass)),h=t._context||{};if(e.width&amp;&amp;(f.width=e.width),e.height&amp;&amp;(f.height=e.height),&quot;thumbnail&quot;===e.tileClass||&quot;themes__thumb&quot;===e.tileClass){f.annotations=[];var p=Object.keys(f);for(r=0;r&lt;p.length;r++)i=p[r],[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;].indexOf(i.slice(0,5))&gt;-1&amp;&amp;(f[p[r]].title={text:&quot;&quot;});for(r=0;r&lt;u.length;r++){var d=u[r];d.showscale=!1,d.marker&amp;&amp;(d.marker.showscale=!1),n.traceIs(d,&quot;pie-like&quot;)&amp;&amp;(d.textposition=&quot;none&quot;)}}if(Array.isArray(e.annotations))for(r=0;r&lt;e.annotations.length;r++)f.annotations.push(e.annotations[r]);var g=Object.keys(f).filter((function(t){return t.match(/^scene\d*$/)}));if(g.length){var m={};for(&quot;thumbnail&quot;===e.tileClass&amp;&amp;(m={title:{text:&quot;&quot;},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r&lt;g.length;r++){var v=f[g[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),a(v.xaxis,m),a(v.yaxis,m),a(v.zaxis,m),v._scene=null}}var y=document.createElement(&quot;div&quot;);e.tileClass&amp;&amp;(y.className=e.tileClass);var x={gd:y,td:y,layout:f,data:u,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:h.mapboxAccessToken}};return&quot;transparent&quot;!==e.setBackground&amp;&amp;(x.config.setBackground=e.setBackground||&quot;opaque&quot;),x.gd.defaultLayout=s(e.tileClass),x}},{&quot;../lib&quot;:803,&quot;../registry&quot;:931}],933:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/to_image&quot;),a=t(&quot;./filesaver&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e){var r;return n.isPlainObject(t)||(r=n.getGraphDiv(t)),(e=e||{}).format=e.format||&quot;png&quot;,e.width=e.width||null,e.height=e.height||null,e.imageDataOnly=!0,new Promise((function(s,l){r&amp;&amp;r._snapshotInProgress&amp;&amp;l(new Error(&quot;Snapshotting already in progress.&quot;)),n.isIE()&amp;&amp;&quot;svg&quot;!==e.format&amp;&amp;l(new Error(o.MSG_IE_BAD_FORMAT)),r&amp;&amp;(r._snapshotInProgress=!0);var c=i(t,e),u=e.filename||t.fn||&quot;newplot&quot;;u+=&quot;.&quot;+e.format.replace(&quot;-&quot;,&quot;.&quot;),c.then((function(t){return r&amp;&amp;(r._snapshotInProgress=!1),a(t,u,e.format)})).then((function(t){s(t)})).catch((function(t){r&amp;&amp;(r._snapshotInProgress=!1),l(t)}))}))}},{&quot;../lib&quot;:803,&quot;../plot_api/to_image&quot;:846,&quot;./filesaver&quot;:934,&quot;./helpers&quot;:935}],934:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e,r){var a=document.createElement(&quot;a&quot;),o=&quot;download&quot;in a;return new Promise((function(s,l){var c,u;if(n.isIE())return c=i.createBlob(t,&quot;svg&quot;),window.navigator.msSaveBlob(c,e),c=null,s(e);if(o)return c=i.createBlob(t,r),u=i.createObjectURL(c),a.href=u,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),i.revokeObjectURL(u),c=null,s(e);if(n.isSafari()){var f=&quot;svg&quot;===r?&quot;,&quot;:&quot;;base64,&quot;;return i.octetStream(f+encodeURIComponent(t)),s(e)}l(new Error(&quot;download error&quot;))}))}},{&quot;../lib&quot;:803,&quot;./helpers&quot;:935}],935:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);r.getDelay=function(t){return t._has&amp;&amp;(t._has(&quot;gl3d&quot;)||t._has(&quot;gl2d&quot;)||t._has(&quot;mapbox&quot;))?500:0},r.getRedrawFunc=function(t){return function(){n.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},r.encodeSVG=function(t){return&quot;data:image/svg+xml,&quot;+encodeURIComponent(t)},r.encodeJSON=function(t){return&quot;data:application/json,&quot;+encodeURIComponent(t)};var i=window.URL||window.webkitURL;r.createObjectURL=function(t){return i.createObjectURL(t)},r.revokeObjectURL=function(t){return i.revokeObjectURL(t)},r.createBlob=function(t,e){if(&quot;svg&quot;===e)return new window.Blob([t],{type:&quot;image/svg+xml;charset=utf-8&quot;});if(&quot;full-json&quot;===e)return new window.Blob([t],{type:&quot;application/json;charset=utf-8&quot;});var r=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i&lt;e;i++)n[i]=t.charCodeAt(i);return r}(window.atob(t));return new window.Blob([r],{type:&quot;image/&quot;+e})},r.octetStream=function(t){document.location.href=&quot;data:application/octet-stream&quot;+t},r.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,r.MSG_IE_BAD_FORMAT=&quot;Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.&quot;},{&quot;../registry&quot;:931}],936:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(&quot;./cloneplot&quot;),toSVG:t(&quot;./tosvg&quot;),svgToImg:t(&quot;./svgtoimg&quot;),toImage:t(&quot;./toimage&quot;),downloadImage:t(&quot;./download&quot;)};e.exports=i},{&quot;./cloneplot&quot;:932,&quot;./download&quot;:933,&quot;./helpers&quot;:935,&quot;./svgtoimg&quot;:937,&quot;./toimage&quot;:938,&quot;./tosvg&quot;:939}],937:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;events&quot;).EventEmitter,a=t(&quot;./helpers&quot;);e.exports=function(t){var e=t.emitter||new i,r=new Promise((function(i,o){var s=window.Image,l=t.svg,c=t.format||&quot;png&quot;;if(n.isIE()&amp;&amp;&quot;svg&quot;!==c){var u=new Error(a.MSG_IE_BAD_FORMAT);return o(u),t.promise?r:e.emit(&quot;error&quot;,u)}var f,h,p=t.canvas,d=t.scale||1,g=t.width||300,m=t.height||150,v=d*g,y=d*m,x=p.getContext(&quot;2d&quot;),b=new s;&quot;svg&quot;===c||n.isSafari()?h=a.encodeSVG(l):(f=a.createBlob(l,&quot;svg&quot;),h=a.createObjectURL(f)),p.width=v,p.height=y,b.onload=function(){var r;switch(f=null,a.revokeObjectURL(h),&quot;svg&quot;!==c&amp;&amp;x.drawImage(b,0,0,v,y),c){case&quot;jpeg&quot;:r=p.toDataURL(&quot;image/jpeg&quot;);break;case&quot;png&quot;:r=p.toDataURL(&quot;image/png&quot;);break;case&quot;webp&quot;:r=p.toDataURL(&quot;image/webp&quot;);break;case&quot;svg&quot;:r=h;break;default:var n=&quot;Image format is not jpeg, png, svg or webp.&quot;;if(o(new Error(n)),!t.promise)return e.emit(&quot;error&quot;,n)}i(r),t.promise||e.emit(&quot;success&quot;,r)},b.onerror=function(r){if(f=null,a.revokeObjectURL(h),o(r),!t.promise)return e.emit(&quot;error&quot;,r)},b.src=h}));return t.promise?r:e}},{&quot;../lib&quot;:803,&quot;./helpers&quot;:935,events:116}],938:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i=t(&quot;../registry&quot;),a=t(&quot;../lib&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./cloneplot&quot;),l=t(&quot;./tosvg&quot;),c=t(&quot;./svgtoimg&quot;);e.exports=function(t,e){var r=new n,u=s(t,{format:&quot;png&quot;}),f=u.gd;f.style.position=&quot;absolute&quot;,f.style.left=&quot;-5000px&quot;,document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(&quot;_doPlot&quot;,f,u.data,u.layout,u.config).then(h).then((function(){var t=o.getDelay(f._fullLayout);setTimeout((function(){var t=l(f),n=document.createElement(&quot;canvas&quot;);n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&amp;&amp;document.body.removeChild(f)}}),t)})).catch((function(t){r.emit(&quot;error&quot;,t)})),r}},{&quot;../lib&quot;:803,&quot;../registry&quot;:931,&quot;./cloneplot&quot;:932,&quot;./helpers&quot;:935,&quot;./svgtoimg&quot;:937,&quot;./tosvg&quot;:939,events:116}],939:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../components/drawing&quot;),o=t(&quot;../components/color&quot;),s=t(&quot;../constants/xmlns_namespaces&quot;),l=/&quot;/g,c=new RegExp('(&quot;TOBESTRIPPED)|(TOBESTRIPPED&quot;)',&quot;g&quot;);e.exports=function(t,e,r){var u,f,h=t._fullLayout,p=h._paper,d=h._toppaper,g=h.width,m=h.height;p.insert(&quot;rect&quot;,&quot;:first-child&quot;).call(a.setRect,0,0,g,m).call(o.fill,h.paper_bgcolor);var v=h._basePlotModules||[];for(u=0;u&lt;v.length;u++){var y=v[u];y.toSVG&amp;&amp;y.toSVG(t)}if(d){var x=d.node().childNodes,b=Array.prototype.slice.call(x);for(u=0;u&lt;b.length;u++){var _=b[u];_.childNodes.length&amp;&amp;p.node().appendChild(_)}}h._draggers&amp;&amp;h._draggers.remove(),p.node().style.background=&quot;&quot;,p.selectAll(&quot;text&quot;).attr({&quot;data-unformatted&quot;:null,&quot;data-math&quot;:null}).each((function(){var t=n.select(this);if(&quot;hidden&quot;!==this.style.visibility&amp;&amp;&quot;none&quot;!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&amp;&amp;-1!==e.indexOf('&quot;')&amp;&amp;t.style(&quot;font-family&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;))}else t.remove()}));var w=[];if(h._gradientUrlQueryParts)for(f in h._gradientUrlQueryParts)w.push(f);if(h._patternUrlQueryParts)for(f in h._patternUrlQueryParts)w.push(f);w.length&amp;&amp;p.selectAll(w.join(&quot;,&quot;)).each((function(){var t=n.select(this),e=this.style.fill;e&amp;&amp;-1!==e.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;fill&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;));var r=this.style.stroke;r&amp;&amp;-1!==r.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;stroke&quot;,r.replace(l,&quot;TOBESTRIPPED&quot;))})),&quot;pdf&quot;!==e&amp;&amp;&quot;eps&quot;!==e||p.selectAll(&quot;#MathJax_SVG_glyphs path&quot;).attr(&quot;stroke-width&quot;,0),p.node().setAttributeNS(s.xmlns,&quot;xmlns&quot;,s.svg),p.node().setAttributeNS(s.xmlns,&quot;xmlns:xlink&quot;,s.xlink),&quot;svg&quot;===e&amp;&amp;r&amp;&amp;(p.attr(&quot;width&quot;,r*g),p.attr(&quot;height&quot;,r*m),p.attr(&quot;viewBox&quot;,&quot;0 0 &quot;+g+&quot; &quot;+m));var T=(new window.XMLSerializer).serializeToString(p.node());return T=function(t){var e=n.select(&quot;body&quot;).append(&quot;div&quot;).style({display:&quot;none&quot;}).html(&quot;&quot;),r=t.replace(/(&amp;[^;]*;)/gi,(function(t){return&quot;&amp;lt;&quot;===t?&quot;&amp;#60;&quot;:&quot;&amp;rt;&quot;===t?&quot;&amp;#62;&quot;:-1!==t.indexOf(&quot;&lt;&quot;)||-1!==t.indexOf(&quot;&gt;&quot;)?&quot;&quot;:e.html(t).text()}));return e.remove(),r}(T),T=(T=T.replace(/&amp;(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,&quot;&amp;amp;&quot;)).replace(c,&quot;'&quot;),i.isIE()&amp;&amp;(T=(T=(T=T.replace(/&quot;/gi,&quot;'&quot;)).replace(/(\('#)([^']*)('\))/gi,'(&quot;#$2&quot;)')).replace(/(\\')/gi,'&quot;')),T}},{&quot;../components/color&quot;:666,&quot;../components/drawing&quot;:688,&quot;../constants/xmlns_namespaces&quot;:780,&quot;../lib&quot;:803,&quot;@plotly/d3&quot;:58}],940:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;,!0),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:803}],941:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../plots/font_attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../components/drawing/attributes&quot;).pattern,f=t(&quot;../../lib/extend&quot;).extendFlat,h=l({editType:&quot;calc&quot;,arrayOk:!0,colorEditType:&quot;style&quot;}),p=f({},n.marker.line.width,{dflt:0}),d=f({width:p,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),g=f({line:d,editType:&quot;calc&quot;},s(&quot;marker&quot;),{opacity:{valType:&quot;number&quot;,arrayOk:!0,dflt:1,min:0,max:1,editType:&quot;style&quot;},pattern:u});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),text:n.text,texttemplate:o({editType:&quot;plot&quot;},{keys:c.eventDataKeys}),hovertext:n.hovertext,hovertemplate:a({},{keys:c.eventDataKeys}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;calc&quot;},insidetextanchor:{valType:&quot;enumerated&quot;,values:[&quot;end&quot;,&quot;middle&quot;,&quot;start&quot;],dflt:&quot;end&quot;,editType:&quot;plot&quot;},textangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;plot&quot;},textfont:f({},h,{}),insidetextfont:f({},h,{}),outsidetextfont:f({},h,{}),constraintext:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},cliponaxis:f({},n.cliponaxis,{}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},base:{valType:&quot;any&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},offset:{valType:&quot;number&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,dflt:null,min:0,arrayOk:!0,editType:&quot;calc&quot;},marker:g,offsetgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},alignmentgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:&quot;style&quot;},textfont:n.selected.textfont,editType:&quot;style&quot;},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:&quot;style&quot;},textfont:n.unselected.textfont,editType:&quot;style&quot;},_deprecated:{bardir:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;v&quot;,&quot;h&quot;]}}}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/drawing/attributes&quot;:687,&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218,&quot;./constants&quot;:943}],942:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;./arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;);e.exports=function(t,e){var r,c,u,f,h,p,d=n.getFromId(t,e.xaxis||&quot;x&quot;),g=n.getFromId(t,e.yaxis||&quot;y&quot;),m={msUTC:!(!e.base&amp;&amp;0!==e.base)};&quot;h&quot;===e.orientation?(r=d.makeCalcdata(e,&quot;x&quot;,m),u=g.makeCalcdata(e,&quot;y&quot;),f=i(e,g,&quot;y&quot;,u),h=!!e.yperiodalignment,p=&quot;y&quot;):(r=g.makeCalcdata(e,&quot;y&quot;,m),u=d.makeCalcdata(e,&quot;x&quot;),f=i(e,d,&quot;x&quot;,u),h=!!e.xperiodalignment,p=&quot;x&quot;),c=f.vals;for(var v=Math.min(c.length,r.length),y=new Array(v),x=0;x&lt;v;x++)y[x]={p:c[x],s:r[x]},h&amp;&amp;(y[x].orig_p=u[x],y[x][p+&quot;End&quot;]=f.ends[x],y[x][p+&quot;Start&quot;]=f.starts[x]),e.ids&amp;&amp;(y[x].id=String(e.ids[x]));return a(e,&quot;marker&quot;)&amp;&amp;o(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),a(e,&quot;marker.line&quot;)&amp;&amp;o(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),s(y,e),l(y,e),y}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/calc_selection&quot;:1220,&quot;./arrays_to_calcdata&quot;:940}],943:[function(t,e,r){&quot;use strict&quot;;e.exports={TEXTPAD:3,eventDataKeys:[&quot;value&quot;,&quot;label&quot;]}},{}],944:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=t(&quot;./sieve.js&quot;);function u(t,e,r,o,u){if(o.length){var b,_,w,T;switch(function(t,e){var r,a;for(r=0;r&lt;e.length;r++){var o,s=e[r],l=s[0].trace,c=&quot;funnel&quot;===l.type?l._base:l.base,u=&quot;h&quot;===l.orientation?l.xcalendar:l.ycalendar,f=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?function(){return null}:t.d2c;if(i(c)){for(a=0;a&lt;Math.min(c.length,s.length);a++)o=f(c[a],0,u),n(o)?(s[a].b=+o,s[a].hasB=1):s[a].b=0;for(;a&lt;s.length;a++)s[a].b=0}else{o=f(c,0,u);var h=n(o);for(o=h?o:0,a=0;a&lt;s.length;a++)s[a].b=o,h&amp;&amp;(s[a].hasB=1)}}}(r,o),u.mode){case&quot;overlay&quot;:f(e,r,o,u);break;case&quot;group&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.offset?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{posAxis:e,sepNegVal:!1,overlapNoMerge:!i.norm});(function(t,e,r,n){for(var i=t._fullLayout,a=r.positions,o=r.distinctPositions,s=r.minDiff,c=r.traces,u=c.length,f=a.length!==o.length,h=s*(1-n.gap),m=l(i,e._id)+c[0][0].trace.orientation,v=i._alignmentOpts[m]||{},y=0;y&lt;u;y++){var x,b,_=c[y],w=_[0].trace,T=v[w.alignmentgroup]||{},k=Object.keys(T.offsetGroups||{}).length,A=(x=k?h/k:f?h/u:h)*(1-(n.groupgap||0));b=k?((2*w._offsetIndex+1-k)*x-A)/2:f?((2*y+1-u)*x-A)/2:-A/2;var M=_[0].t;M.barwidth=A,M.poffset=b,M.bargroupwidth=h,M.bardelta=s}r.binWidth=c[0][0].t.barwidth/100,p(r),d(e,r),g(e,r,f)})(t,e,o,i),function(t,e){for(var r=t.traces,n=0;n&lt;r.length;n++){var i=r[n];if(void 0===i[0].trace.base)for(var o=new c([i],{posAxis:e,sepNegVal:!0,overlapNoMerge:!0}),s=0;s&lt;i.length;s++){var l=i[s];if(l.p!==a){var u=o.put(l.p,l.b+l.s);u&amp;&amp;(l.b=u)}}}}(o,e),i.norm?(v(o),y(r,o,i)):m(r,o)}(t,e,r,_,u),b.length&amp;&amp;f(e,r,b,u);break;case&quot;stack&quot;:case&quot;relative&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.base?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{posAxis:e,sepNegVal:&quot;relative&quot;===i.mode,overlapNoMerge:!(i.norm||&quot;stack&quot;===i.mode||&quot;relative&quot;===i.mode)});h(e,o,i),function(t,e,r){var n,i,o,l,c,u,f=x(t),h=e.traces;for(l=0;l&lt;h.length;l++)if(n=h[l],&quot;funnel&quot;===(i=n[0].trace).type)for(c=0;c&lt;n.length;c++)(u=n[c]).s!==a&amp;&amp;e.put(u.p,-.5*u.s);for(l=0;l&lt;h.length;l++){n=h[l],i=n[0].trace,o=&quot;funnel&quot;===i.type;var p=[];for(c=0;c&lt;n.length;c++)if((u=n[c]).s!==a){var d;d=o?u.s:u.s+u.b;var g=e.put(u.p,d),m=g+d;u.b=g,u[f]=m,r.norm||(p.push(m),u.hasB&amp;&amp;p.push(g))}r.norm||(i._extremes[t._id]=s.findExtremes(t,p,{tozero:!0,padded:!0}))}}(r,o,i);for(var l=0;l&lt;n.length;l++)for(var u=n[l],f=0;f&lt;u.length;f++){var p=u[f];if(p.s!==a)p.b+p.s===o.get(p.p,p.s)&amp;&amp;(p._outmost=!0)}i.norm&amp;&amp;y(r,o,i)}(0,e,r,_,u),b.length&amp;&amp;f(e,r,b,u)}!function(t,e){var r,i,a,o=x(e),s={},l=1/0,c=-1/0;for(r=0;r&lt;t.length;r++)for(a=t[r],i=0;i&lt;a.length;i++){var u=a[i].p;n(u)&amp;&amp;(l=Math.min(l,u),c=Math.max(c,u))}var f=1e4/(c-l),h=s.round=function(t){return String(Math.round(f*(t-l)))};for(r=0;r&lt;t.length;r++){(a=t[r])[0].t.extents=s;var p=a[0].t.poffset,d=Array.isArray(p);for(i=0;i&lt;a.length;i++){var g=a[i],m=g[o]-g.w/2;if(n(m)){var v=g[o]+g.w/2,y=h(g.p);s[y]?s[y]=[Math.min(m,s[y][0]),Math.max(v,s[y][1])]:s[y]=[m,v]}g.p0=g.p+(d?p[i]:p),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,e)}}function f(t,e,r,n){for(var i=0;i&lt;r.length;i++){var a=r[i],o=new c([a],{posAxis:t,sepNegVal:!1,overlapNoMerge:!n.norm});h(t,o,n),n.norm?(v(o),y(e,o,n)):m(e,o)}}function h(t,e,r){for(var n=e.minDiff,i=e.traces,a=n*(1-r.gap),o=a*(1-(r.groupgap||0)),s=-o/2,l=0;l&lt;i.length;l++){var c=i[l][0].t;c.barwidth=o,c.poffset=s,c.bargroupwidth=a,c.bardelta=n}e.binWidth=i[0][0].t.barwidth/100,p(e),d(t,e),g(t,e)}function p(t){var e,r,a=t.traces;for(e=0;e&lt;a.length;e++){var o,s=a[e],l=s[0],c=l.trace,u=l.t,f=c._offset||c.offset,h=u.poffset;if(i(f)){for(o=Array.prototype.slice.call(f,0,s.length),r=0;r&lt;o.length;r++)n(o[r])||(o[r]=h);for(r=o.length;r&lt;s.length;r++)o.push(h);u.poffset=o}else void 0!==f&amp;&amp;(u.poffset=f);var p=c._width||c.width,d=u.barwidth;if(i(p)){var g=Array.prototype.slice.call(p,0,s.length);for(r=0;r&lt;g.length;r++)n(g[r])||(g[r]=d);for(r=g.length;r&lt;s.length;r++)g.push(d);if(u.barwidth=g,void 0===f){for(o=[],r=0;r&lt;s.length;r++)o.push(h+(d-g[r])/2);u.poffset=o}}else void 0!==p&amp;&amp;(u.barwidth=p,void 0===f&amp;&amp;(u.poffset=h+(d-p)/2))}}function d(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++)for(var a=r[i],o=a[0].t,s=o.poffset,l=Array.isArray(s),c=o.barwidth,u=Array.isArray(c),f=0;f&lt;a.length;f++){var h=a[f],p=h.w=u?c[f]:c;h[n]=h.p+(l?s[f]:s)+p/2}}function g(t,e,r){var n=e.traces,i=e.minDiff/2;s.minDtick(t,e.minDiff,e.distinctPositions[0],r);for(var a=0;a&lt;n.length;a++){var o,l,c,u,f=n[a],h=f[0],p=h.trace,d=[];for(u=0;u&lt;f.length;u++)l=(o=f[u]).p-i,c=o.p+i,d.push(l,c);if(p.width||p.offset){var g=h.t,m=g.poffset,v=g.barwidth,y=Array.isArray(m),x=Array.isArray(v);for(u=0;u&lt;f.length;u++){o=f[u];var b=y?m[u]:m,_=x?v[u]:v;c=(l=o.p+b)+_,d.push(l,c)}}p._extremes[t._id]=s.findExtremes(t,d,{padded:!1})}}function m(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++){for(var a=r[i],o=a[0].trace,l=[],c=!1,u=0;u&lt;a.length;u++){var f=a[u],h=f.b,p=h+f.s;f[n]=p,l.push(p),f.hasB&amp;&amp;l.push(h),f.hasB&amp;&amp;f.b||(c=!0)}o._extremes[t._id]=s.findExtremes(t,l,{tozero:c,padded:!0})}}function v(t){for(var e=t.traces,r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++){var o=n[i];o.s!==a&amp;&amp;t.put(o.p,o.b+o.s)}}function y(t,e,r){var i=e.traces,o=x(t),l=&quot;fraction&quot;===r.norm?1:100,c=l/1e9,u=t.l2c(t.c2l(0)),f=&quot;stack&quot;===r.mode?l:u;function h(e){return n(t.c2l(e))&amp;&amp;(e&lt;u-c||e&gt;f+c||!n(u))}for(var p=0;p&lt;i.length;p++){for(var d=i[p],g=d[0].trace,m=[],v=!1,y=!1,b=0;b&lt;d.length;b++){var _=d[b];if(_.s!==a){var w=Math.abs(l/e.get(_.p,_.s));_.b*=w,_.s*=w;var T=_.b,k=T+_.s;_[o]=k,m.push(k),y=y||h(k),_.hasB&amp;&amp;(m.push(T),y=y||h(T)),_.hasB&amp;&amp;_.b||(v=!0)}}g._extremes[t._id]=s.findExtremes(t,m,{tozero:v,padded:y})}}function x(t){return t._id.charAt(0)}e.exports={crossTraceCalc:function(t,e){for(var r=e.xaxis,n=e.yaxis,i=t._fullLayout,a=t._fullData,s=t.calcdata,l=[],c=[],f=0;f&lt;a.length;f++){var h=a[f];if(!0===h.visible&amp;&amp;o.traceIs(h,&quot;bar&quot;)&amp;&amp;h.xaxis===r._id&amp;&amp;h.yaxis===n._id&amp;&amp;(&quot;h&quot;===h.orientation?l.push(s[f]):c.push(s[f]),h._computePh))for(var p=t.calcdata[f],d=0;d&lt;p.length;d++)&quot;function&quot;==typeof p[d].ph0&amp;&amp;(p[d].ph0=p[d].ph0()),&quot;function&quot;==typeof p[d].ph1&amp;&amp;(p[d].ph1=p[d].ph1())}var g={xCat:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type,yCat:&quot;category&quot;===n.type||&quot;multicategory&quot;===n.type,mode:i.barmode,norm:i.barnorm,gap:i.bargap,groupgap:i.bargroupgap};u(t,r,n,c,g),u(t,n,r,l,g)},setGroupPositions:u}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/constraints&quot;:862,&quot;../../registry&quot;:931,&quot;./sieve.js&quot;:954,&quot;fast-isnumeric&quot;:249}],945:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,u=t(&quot;./attributes&quot;),f=n.coerceFont;function h(t,e,r,n){var i=e.orientation,a=e[{v:&quot;x&quot;,h:&quot;y&quot;}[i]+&quot;axis&quot;],o=c(r,a)+i,s=r._alignmentOpts||{},l=n(&quot;alignmentgroup&quot;),u=s[o];u||(u=s[o]={});var f=u[l];f?f.traces.push(e):f=u[l]={traces:[e],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var h=n(&quot;offsetgroup&quot;),p=f.offsetGroups,d=p[h];h&amp;&amp;(d||(d=p[h]={offsetIndex:Object.keys(p).length}),e._offsetIndex=d.offsetIndex)}function p(t,e,r,i,a,o){var s=!(!1===(o=o||{}).moduleHasSelected),l=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),h=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),d=!!o.hasPathbar,g=Array.isArray(a)||&quot;auto&quot;===a,m=g||&quot;inside&quot;===a,v=g||&quot;outside&quot;===a;if(m||v){var y=f(i,&quot;textfont&quot;,r.font),x=n.extendFlat({},y),b=!(t.textfont&amp;&amp;t.textfont.color);if(b&amp;&amp;delete x.color,f(i,&quot;insidetextfont&quot;,x),d){var _=n.extendFlat({},y);b&amp;&amp;delete _.color,f(i,&quot;pathbar.textfont&quot;,_)}v&amp;&amp;f(i,&quot;outsidetextfont&quot;,y),s&amp;&amp;i(&quot;selected.textfont.color&quot;),l&amp;&amp;i(&quot;unselected.textfont.color&quot;),c&amp;&amp;i(&quot;constraintext&quot;),u&amp;&amp;i(&quot;cliponaxis&quot;),h&amp;&amp;i(&quot;textangle&quot;),i(&quot;texttemplate&quot;)}m&amp;&amp;p&amp;&amp;i(&quot;insidetextanchor&quot;)}e.exports={supplyDefaults:function(t,e,r,c){function f(r,i){return n.coerce(t,e,u,r,i)}if(o(t,e,c,f)){s(t,e,c,f),f(&quot;xhoverformat&quot;),f(&quot;yhoverformat&quot;),f(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),f(&quot;base&quot;),f(&quot;offset&quot;),f(&quot;width&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;);var h=f(&quot;textposition&quot;);p(t,e,c,f,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(t,e,f,r,c);var d=(e.marker.line||{}).color,g=a.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);g(t,e,d||i.defaultLine,{axis:&quot;y&quot;}),g(t,e,d||i.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1},crossTraceDefaults:function(t,e){var r;function i(t){return n.coerce(r._input,r,u,t)}if(&quot;group&quot;===e.barmode)for(var a=0;a&lt;t.length;a++)&quot;bar&quot;===(r=t[a]).type&amp;&amp;(r._input,h(0,r,e,i))},handleGroupingDefaults:h,handleText:p}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/constraints&quot;:862,&quot;../../registry&quot;:931,&quot;../scatter/period_defaults&quot;:1238,&quot;../scatter/xy_defaults&quot;:1245,&quot;./attributes&quot;:941,&quot;./style_defaults&quot;:956}],946:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),&quot;h&quot;===r.orientation?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},{}],947:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../lib&quot;).isArrayOrTypedArray;r.coerceString=function(t,e,r){if(&quot;string&quot;==typeof e){if(e||!t.noBlank)return e}else if((&quot;number&quot;==typeof e||!0===e)&amp;&amp;!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&amp;&amp;e&lt;i||void 0!==a&amp;&amp;e&gt;a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&amp;&amp;(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e&lt;t.length&amp;&amp;(r=t[e]):r=t,r},r.getLineWidth=function(t,e){return 0&lt;e.mlw?e.mlw:a(t.marker.line.width)?0:t.marker.line.width}},{&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],948:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./helpers&quot;).getLineWidth,l=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,c=t(&quot;../../constants/numerical&quot;).BADNUM;function u(t,e,r,i,a){var s,u,f,h,p,d,g,m=t.cd,v=m[0].trace,y=m[0].t,x=&quot;closest&quot;===i,b=&quot;waterfall&quot;===v.type,_=t.maxHoverDistance,w=t.maxSpikeDistance;&quot;h&quot;===v.orientation?(s=r,u=e,f=&quot;y&quot;,h=&quot;x&quot;,p=z,d=I):(s=e,u=r,f=&quot;x&quot;,h=&quot;y&quot;,d=z,p=I);var T=v[f+&quot;period&quot;],k=x||T;function A(t){return S(t,-1)}function M(t){return S(t,1)}function S(t,e){var r=t.w;return t[f]+e*r/2}function E(t){return t[f+&quot;End&quot;]-t[f+&quot;Start&quot;]}var L=x?A:T?function(t){return t.p-E(t)/2}:function(t){return Math.min(A(t),t.p-y.bardelta/2)},C=x?M:T?function(t){return t.p+E(t)/2}:function(t){return Math.max(M(t),t.p+y.bardelta/2)};function P(t,e,r){return a.finiteRange&amp;&amp;(r=0),n.inbox(t-s,e-s,r+Math.min(1,Math.abs(e-t)/g)-1)}function I(t){return P(L(t),C(t),_)}function O(t){var e=t[h];if(b){var r=Math.abs(t.rawS)||0;u&gt;0?e+=r:u&lt;0&amp;&amp;(e-=r)}return e}function z(t){var e=u,r=t.b,i=O(t);return n.inbox(r-e,i-e,_+(i-e)/(i-r)-1)}var D=t[f+&quot;a&quot;],R=t[h+&quot;a&quot;];g=Math.abs(D.r2c(D.range[1])-D.r2c(D.range[0]));var F=n.getDistanceFunction(i,p,d,(function(t){return(p(t)+d(t))/2}));if(n.getClosest(m,F,t),!1!==t.index&amp;&amp;m[t.index].p!==c){k||(L=function(t){return Math.min(A(t),t.p-y.bargroupwidth/2)},C=function(t){return Math.max(M(t),t.p+y.bargroupwidth/2)});var B=m[t.index],N=v.base?B.b+B.s:B.s;t[h+&quot;0&quot;]=t[h+&quot;1&quot;]=R.c2p(B[h],!0),t[h+&quot;LabelVal&quot;]=N;var j=y.extents[y.extents.round(B.p)];t[f+&quot;0&quot;]=D.c2p(x?L(B):j[0],!0),t[f+&quot;1&quot;]=D.c2p(x?C(B):j[1],!0);var U=void 0!==B.orig_p;return t[f+&quot;LabelVal&quot;]=U?B.orig_p:B.p,t.labelLabel=l(D,t[f+&quot;LabelVal&quot;],v[f+&quot;hoverformat&quot;]),t.valueLabel=l(R,t[h+&quot;LabelVal&quot;],v[h+&quot;hoverformat&quot;]),t.baseLabel=l(R,B.b,v[h+&quot;hoverformat&quot;]),t.spikeDistance=(function(t){var e=u,r=t.b,i=O(t);return n.inbox(r-e,i-e,w+(i-e)/(i-r)-1)}(B)+function(t){return P(A(t),M(t),w)}(B))/2,t[f+&quot;Spike&quot;]=D.c2p(B.p,!0),o(B,v,t),t.hovertemplate=v.hovertemplate,t}}function f(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&amp;&amp;i?n:void 0}e.exports={hoverPoints:function(t,e,r,n,a){var o=u(t,e,r,n,a);if(o){var s=o.cd,l=s[0].trace,c=s[o.index];return o.color=f(l,c),i.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(c,l,o),[o]}},hoverOnBars:u,getTraceColor:f}},{&quot;../../components/color&quot;:666,&quot;../../components/fx&quot;:706,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;./helpers&quot;:947}],949:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,colorbar:t(&quot;../scatter/marker_colorbar&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;bar&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],animatable:!0,meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../scatter/marker_colorbar&quot;:1236,&quot;./arrays_to_calcdata&quot;:940,&quot;./attributes&quot;:941,&quot;./calc&quot;:942,&quot;./cross_trace_calc&quot;:944,&quot;./defaults&quot;:945,&quot;./event_data&quot;:946,&quot;./hover&quot;:948,&quot;./layout_attributes&quot;:950,&quot;./layout_defaults&quot;:951,&quot;./plot&quot;:952,&quot;./select&quot;:953,&quot;./style&quot;:955}],950:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;,&quot;relative&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},barnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},bargroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],951:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=s(&quot;barmode&quot;),p=0;p&lt;r.length;p++){var d=r[p];if(n.traceIs(d,&quot;bar&quot;)&amp;&amp;d.visible){if(l=!0,&quot;group&quot;===h){var g=d.xaxis+d.yaxis;f[g]&amp;&amp;(u=!0),f[g]=!0}if(d.visible&amp;&amp;&quot;histogram&quot;===d.type)&quot;category&quot;!==i.getFromId({_fullLayout:e},d[&quot;v&quot;===d.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]).type&amp;&amp;(c=!0)}}l?(&quot;overlay&quot;!==h&amp;&amp;s(&quot;barnorm&quot;),s(&quot;bargap&quot;,c&amp;&amp;!u?0:.2),s(&quot;bargroupgap&quot;)):delete e.barmode}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;./layout_attributes&quot;:950}],952:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../registry&quot;),u=t(&quot;../../plots/cartesian/axes&quot;).tickText,f=t(&quot;./uniform_text&quot;),h=f.recordMinTextSize,p=f.clearMinTextSize,d=t(&quot;./style&quot;),g=t(&quot;./helpers&quot;),m=t(&quot;./constants&quot;),v=t(&quot;./attributes&quot;),y=v.text,x=v.textposition,b=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,_=m.TEXTPAD;function w(t){return t.id}function T(t){if(t.ids)return w}function k(t,e){return t&lt;e?1:-1}function A(t,e,r,n){var i;return!e.uniformtext.mode&amp;&amp;M(r)?(n&amp;&amp;(i=n()),t.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){i&amp;&amp;i()})).each(&quot;interrupt&quot;,(function(){i&amp;&amp;i()}))):t}function M(t){return t&amp;&amp;t.duration&gt;0}function S(t){return&quot;auto&quot;===t?0:t}function E(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function L(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||&quot;end&quot;,u=&quot;end&quot;===c,f=&quot;start&quot;===c,h=((a.leftToRight||0)+1)/2,p=1-h,d=i.width,g=i.height,m=Math.abs(e-t),v=Math.abs(n-r),y=m&gt;2*_&amp;&amp;v&gt;2*_?_:0;m-=2*y,v-=2*y;var x=S(l);&quot;auto&quot;!==l||d&lt;=m&amp;&amp;g&lt;=v||!(d&gt;m||g&gt;v)||(d&gt;v||g&gt;m)&amp;&amp;d&lt;g==m&lt;v||(x+=90);var b=E(i,x),w=1;s&amp;&amp;(w=Math.min(1,m/b.x,v/b.y));var T=i.left*p+i.right*h,A=(i.top+i.bottom)/2,M=(t+_)*p+(e-_)*h,L=(r+n)/2,C=0,P=0;if(f||u){var I=(o?b.x:b.y)/2,O=o?k(t,e):k(r,n);o?f?(M=t+O*y,C=-O*I):(M=e-O*y,C=O*I):f?(L=r+O*y,P=-O*I):(L=n-O*y,P=O*I)}return{textX:T,textY:A,targetX:M,targetY:L,anchorX:C,anchorY:P,scale:w,rotate:x}}e.exports={plot:function(t,e,r,f,m,v){var w=e.xaxis,C=e.yaxis,P=t._fullLayout;m||(m={mode:P.barmode,norm:P.barmode,gap:P.bargap,groupgap:P.bargroupgap},p(&quot;bar&quot;,P));var I=a.makeTraceGroups(f,r,&quot;trace bars&quot;).each((function(r){var c=n.select(this),f=r[0].trace,p=&quot;waterfall&quot;===f.type,I=&quot;funnel&quot;===f.type,O=&quot;bar&quot;===f.type||I,z=0;p&amp;&amp;f.connector.visible&amp;&amp;&quot;between&quot;===f.connector.mode&amp;&amp;(z=f.connector.line.width/2);var D=&quot;h&quot;===f.orientation,R=M(m),F=a.ensureSingle(c,&quot;g&quot;,&quot;points&quot;),B=T(f),N=F.selectAll(&quot;g.point&quot;).data(a.identity,B);N.enter().append(&quot;g&quot;).classed(&quot;point&quot;,!0),N.exit().remove(),N.each((function(c,p){var T,M,I=n.select(this),F=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),n?[i,a]:[a,i]}(c,w,C,D),B=F[0][0],N=F[0][1],j=F[1][0],U=F[1][1],V=0==(D?N-B:U-j);if(V&amp;&amp;O&amp;&amp;g.getLineWidth(f,c)&amp;&amp;(V=!1),V||(V=!(i(B)&amp;&amp;i(N)&amp;&amp;i(j)&amp;&amp;i(U))),c.isBlank=V,V&amp;&amp;(D?N=B:U=j),z&amp;&amp;!V&amp;&amp;(D?(B-=k(B,N)*z,N+=k(B,N)*z):(j-=k(j,U)*z,U+=k(j,U)*z)),&quot;waterfall&quot;===f.type){if(!V){var q=f[c.dir].marker;T=q.line.width,M=q.color}}else T=g.getLineWidth(f,c),M=c.mc||f.marker.color;function H(t){var e=n.round(T/2%1,2);return 0===m.gap&amp;&amp;0===m.groupgap?n.round(Math.round(t)-e,2):t}if(!t._context.staticPlot){var G=s.opacity(M)&lt;1||T&gt;.01?H:function(t,e,r){return r&amp;&amp;t===e?t:Math.abs(t-e)&gt;=2?H(t):t&gt;e?Math.ceil(t):Math.floor(t)};B=G(B,N,D),N=G(N,B,D),j=G(j,U,!D),U=G(U,j,!D)}var Y=A(a.ensureSingle(I,&quot;path&quot;),P,m,v);if(Y.style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;d&quot;,isNaN((N-B)*(U-j))||V&amp;&amp;t._context.staticPlot?&quot;M0,0Z&quot;:&quot;M&quot;+B+&quot;,&quot;+j+&quot;V&quot;+U+&quot;H&quot;+N+&quot;V&quot;+j+&quot;Z&quot;).call(l.setClipUrl,e.layerClipId,t),!P.uniformtext.mode&amp;&amp;R){var W=l.makePointStyleFns(f);l.singlePointStyle(c,Y,f,W,t)}!function(t,e,r,n,i,s,c,f,p,m,v){var w,T=e.xaxis,M=e.yaxis,C=t._fullLayout;function P(e,r,n){return a.ensureSingle(e,&quot;text&quot;).text(r).attr({class:&quot;bartext bartext-&quot;+w,&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1}).call(l.font,n).call(o.convertToTspans,t)}var I=n[0].trace,O=&quot;h&quot;===I.orientation,z=function(t,e,r,n,i){var o,s=e[0].trace;o=s.texttemplate?function(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,&quot;texttemplate&quot;);if(!s)return&quot;&quot;;var l,c,f,h,p=&quot;waterfall&quot;===o.type,d=&quot;funnel&quot;===o.type;&quot;h&quot;===o.orientation?(l=&quot;y&quot;,c=i,f=&quot;x&quot;,h=n):(l=&quot;x&quot;,c=n,f=&quot;y&quot;,h=i);function g(t){return u(h,h.c2l(t),!0).text}var m=e[r],v={};v.label=m.p,v.labelLabel=v[l+&quot;Label&quot;]=(y=m.p,u(c,c.c2l(y),!0).text);var y;var x=a.castOption(o,m.i,&quot;text&quot;);(0===x||x)&amp;&amp;(v.text=x);v.value=m.s,v.valueLabel=v[f+&quot;Label&quot;]=g(m.s);var _={};b(_,o,m.i),p&amp;&amp;(v.delta=+m.rawS||m.s,v.deltaLabel=g(v.delta),v.final=m.v,v.finalLabel=g(v.final),v.initial=v.final-v.delta,v.initialLabel=g(v.initial));d&amp;&amp;(v.value=m.s,v.valueLabel=g(v.value),v.percentInitial=m.begR,v.percentInitialLabel=a.formatPercent(m.begR),v.percentPrevious=m.difR,v.percentPreviousLabel=a.formatPercent(m.difR),v.percentTotal=m.sumR,v.percenTotalLabel=a.formatPercent(m.sumR));var w=a.castOption(o,m.i,&quot;customdata&quot;);w&amp;&amp;(v.customdata=w);return a.texttemplateString(s,v,t._d3locale,_,v,o._meta||{})}(t,e,r,n,i):s.textinfo?function(t,e,r,n){var i=t[0].trace,o=&quot;h&quot;===i.orientation,s=&quot;waterfall&quot;===i.type,l=&quot;funnel&quot;===i.type;function c(t){return u(o?r:n,+t,!0).text}var f,h=i.textinfo,p=t[e],d=h.split(&quot;+&quot;),g=[],m=function(t){return-1!==d.indexOf(t)};m(&quot;label&quot;)&amp;&amp;g.push((v=t[e].p,u(o?n:r,v,!0).text));var v;m(&quot;text&quot;)&amp;&amp;(0===(f=a.castOption(i,p.i,&quot;text&quot;))||f)&amp;&amp;g.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;m(&quot;initial&quot;)&amp;&amp;g.push(c(b)),m(&quot;delta&quot;)&amp;&amp;g.push(c(y)),m(&quot;final&quot;)&amp;&amp;g.push(c(x))}if(l){m(&quot;value&quot;)&amp;&amp;g.push(c(p.s));var _=0;m(&quot;percent initial&quot;)&amp;&amp;_++,m(&quot;percent previous&quot;)&amp;&amp;_++,m(&quot;percent total&quot;)&amp;&amp;_++;var w=_&gt;1;m(&quot;percent initial&quot;)&amp;&amp;(f=a.formatPercent(p.begR),w&amp;&amp;(f+=&quot; of initial&quot;),g.push(f)),m(&quot;percent previous&quot;)&amp;&amp;(f=a.formatPercent(p.difR),w&amp;&amp;(f+=&quot; of previous&quot;),g.push(f)),m(&quot;percent total&quot;)&amp;&amp;(f=a.formatPercent(p.sumR),w&amp;&amp;(f+=&quot; of total&quot;),g.push(f))}return g.join(&quot;&lt;br&gt;&quot;)}(e,r,n,i):g.getValue(s.text,r);return g.coerceString(y,o)}(C,n,i,T,M);w=function(t,e){var r=g.getValue(t.textposition,e);return g.coerceEnumerated(x,r)}(I,i);var D=&quot;stack&quot;===m.mode||&quot;relative&quot;===m.mode,R=n[i],F=!D||R._outmost;if(!z||&quot;none&quot;===w||(R.isBlank||s===c||f===p)&amp;&amp;(&quot;auto&quot;===w||&quot;inside&quot;===w))return void r.select(&quot;text&quot;).remove();var B=C.font,N=d.getBarColor(n[i],I),j=d.getInsideTextFont(I,i,B,N),U=d.getOutsideTextFont(I,i,B),V=r.datum();O?&quot;log&quot;===T.type&amp;&amp;V.s0&lt;=0&amp;&amp;(s=T.range[0]&lt;T.range[1]?0:T._length):&quot;log&quot;===M.type&amp;&amp;V.s0&lt;=0&amp;&amp;(f=M.range[0]&lt;M.range[1]?M._length:0);var q,H,G,Y,W,X=Math.abs(c-s)-2*_,Z=Math.abs(p-f)-2*_;&quot;outside&quot;===w&amp;&amp;(F||R.hasB||(w=&quot;inside&quot;));if(&quot;auto&quot;===w)if(F){w=&quot;inside&quot;,W=a.ensureUniformFontSize(t,j),q=P(r,z,W),H=l.bBox(q.node()),G=H.width,Y=H.height;var J=G&lt;=X&amp;&amp;Y&lt;=Z,K=G&lt;=Z&amp;&amp;Y&lt;=X,Q=O?X&gt;=G*(Z/Y):Z&gt;=Y*(X/G);G&gt;0&amp;&amp;Y&gt;0&amp;&amp;(J||K||Q)?w=&quot;inside&quot;:(w=&quot;outside&quot;,q.remove(),q=null)}else w=&quot;inside&quot;;if(!q){W=a.ensureUniformFontSize(t,&quot;outside&quot;===w?U:j);var $=(q=P(r,z,W)).attr(&quot;transform&quot;);if(q.attr(&quot;transform&quot;,&quot;&quot;),H=l.bBox(q.node()),G=H.width,Y=H.height,q.attr(&quot;transform&quot;,$),G&lt;=0||Y&lt;=0)return void q.remove()}var tt,et,rt=I.textangle;&quot;outside&quot;===w?(et=&quot;both&quot;===I.constraintext||&quot;outside&quot;===I.constraintext,tt=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,f=i.height,h=Math.abs(e-t),p=Math.abs(n-r);o=s?p&gt;2*_?_:0:h&gt;2*_?_:0;var d=1;l&amp;&amp;(d=s?Math.min(1,p/f):Math.min(1,h/u));var g=S(c),m=E(i,g),v=(s?m.x:m.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(t+e)/2,w=(r+n)/2,T=0,A=0,M=s?k(e,t):k(r,n);s?(b=e-M*o,T=M*v):(w=n+M*o,A=-M*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:A,scale:d,rotate:g}}(s,c,f,p,H,{isHorizontal:O,constrained:et,angle:rt})):(et=&quot;both&quot;===I.constraintext||&quot;inside&quot;===I.constraintext,tt=L(s,c,f,p,H,{isHorizontal:O,constrained:et,angle:rt,anchor:I.insidetextanchor}));tt.fontSize=W.size,h(I.type,tt,C),R.transform=tt,A(q,C,m,v).attr(&quot;transform&quot;,a.getTextTransform(tt))}(t,e,I,r,p,B,N,j,U,m,v),e.layerClipId&amp;&amp;l.hideOutsideRangePoint(c,I.select(&quot;text&quot;),w,C,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;l.setClipUrl(c,j?null:e.layerClipId,t)}));c.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,I,e,m)},toMoveInsideBar:L}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../components/fx/helpers&quot;:702,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;./attributes&quot;:941,&quot;./constants&quot;:943,&quot;./helpers&quot;:947,&quot;./style&quot;:955,&quot;./uniform_text&quot;:957,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],953:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l=&quot;funnel&quot;===s.type,c=&quot;h&quot;===s.orientation,u=[];if(!1===e)for(r=0;r&lt;i.length;r++)i[r].selected=0;else for(r=0;r&lt;i.length;r++){var f=i[r],h=&quot;ct&quot;in f?f.ct:n(f,a,o,c,l);e.contains(h,!1,r,t)?(u.push({pointNumber:r,x:a.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},{}],954:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=t(&quot;../../lib&quot;).distinctVals,i=t(&quot;../../constants/numerical&quot;).BADNUM;function a(t,e){this.traces=t,this.sepNegVal=e.sepNegVal,this.overlapNoMerge=e.overlapNoMerge;for(var r=1/0,a=[],o=0;o&lt;t.length;o++){for(var s=t[o],l=0;l&lt;s.length;l++){var c=s[l];c.p!==i&amp;&amp;a.push(c.p)}s[0]&amp;&amp;s[0].width1&amp;&amp;(r=Math.min(s[0].width1,r))}this.positions=a;var u=n(a);this.distinctPositions=u.vals,1===u.vals.length&amp;&amp;r!==1/0?this.minDiff=r:this.minDiff=Math.min(u.minDiff,r);var f=(e.posAxis||{}).type;&quot;category&quot;!==f&amp;&amp;&quot;multicategory&quot;!==f||(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e&lt;0&amp;&amp;this.sepNegVal?&quot;v&quot;:&quot;^&quot;)+(this.overlapNoMerge?t:Math.round(t/this.binWidth))}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803}],955:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../registry&quot;),l=t(&quot;./uniform_text&quot;).resizeText,c=t(&quot;./attributes&quot;),u=c.textfont,f=c.insidetextfont,h=c.outsidetextfont,p=t(&quot;./helpers&quot;);function d(t,e,r){a.pointStyle(t.selectAll(&quot;path&quot;),e,r),g(t,e,r)}function g(t,e,r){t.selectAll(&quot;text&quot;).each((function(t){var i=n.select(this),s=o.ensureUniformFontSize(r,m(i,t,e,r));a.font(i,s)}))}function m(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(&quot;bartext-inside&quot;)){var o=_(e,r);a=y(r,e.i,i,o)}else t.classed(&quot;bartext-outside&quot;)&amp;&amp;(a=x(r,e.i,i));return a}function v(t,e,r){return b(u,t.textfont,e,r)}function y(t,e,r,n){var a=v(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&amp;&amp;void 0===t.textfont.color[e])&amp;&amp;(a={color:i.contrast(n),family:a.family,size:a.size}),b(f,t.insidetextfont,e,a)}function x(t,e,r){var n=v(t,e,r);return b(h,t.outsidetextfont,e,n)}function b(t,e,r,n){e=e||{};var i=p.getValue(e.family,r),a=p.getValue(e.size,r),o=p.getValue(e.color,r);return{family:p.coerceString(t.family,i,n.family),size:p.coerceNumber(t.size,a,n.size),color:p.coerceColor(t.color,o,n.color)}}function _(t,e){return&quot;waterfall&quot;===e.type?e[t.dir].marker.color:t.mcc||t.mc||e.marker.color}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.barlayer&quot;).selectAll(&quot;g.trace&quot;);l(t,e,&quot;bar&quot;);var r=e.size(),i=t._fullLayout;e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})).each((function(t){(&quot;stack&quot;===i.barmode&amp;&amp;r&gt;1||0===i.bargap&amp;&amp;0===i.bargroupgap&amp;&amp;!t[0].trace.marker.line.width)&amp;&amp;n.select(this).attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)})),e.selectAll(&quot;g.points&quot;).each((function(e){d(n.select(this),e[0].trace,t)})),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},styleTextPoints:g,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(&quot;path&quot;),e),function(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,m(s,t,e,r));var l=e.selected.textfont&amp;&amp;e.selected.textfont.color;l&amp;&amp;(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}(t.selectAll(&quot;text&quot;),e,r)}(r,i,t):(d(r,i,t),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:941,&quot;./helpers&quot;:947,&quot;./uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],956:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../lib&quot;).coercePattern;e.exports=function(t,e,r,s,l){var c=r(&quot;marker.color&quot;,s),u=i(t,&quot;marker&quot;);u&amp;&amp;a(t,e,l,r,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.color&quot;,n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,l,r,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.width&quot;),r(&quot;marker.opacity&quot;),o(r,&quot;marker.pattern&quot;,c,u),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;)}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale/defaults&quot;:676,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../lib&quot;:803}],957:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;);function a(t){return&quot;_&quot;+t+&quot;Text_minsize&quot;}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=a(t),i=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o&lt;i,r[n]=r[n]||1/0,e.hide||(r[n]=Math.min(r[n],Math.max(o,i)))}},clearMinTextSize:function(t,e){e[a(t)]=void 0},resizeText:function(t,e,r){var a=t._fullLayout,o=a[&quot;_&quot;+r+&quot;Text_minsize&quot;];if(o){var s,l=&quot;hide&quot;===a.uniformtext.mode;switch(r){case&quot;funnelarea&quot;:case&quot;pie&quot;:case&quot;sunburst&quot;:s=&quot;g.slice&quot;;break;case&quot;treemap&quot;:case&quot;icicle&quot;:s=&quot;g.slice, g.pathbar&quot;;break;default:s=&quot;g.points &gt; g.point&quot;}e.selectAll(s).each((function(t){var e=t.transform;e&amp;&amp;(e.scale=l&amp;&amp;e.hide?0:o/e.fontSize,n.select(this).select(&quot;text&quot;).attr(&quot;transform&quot;,i.getTextTransform(e)))}))}}}},{&quot;../../lib&quot;:803,&quot;@plotly/d3&quot;:58}],958:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../scatterpolar/attributes&quot;),o=t(&quot;../bar/attributes&quot;);e.exports={r:a.r,theta:a.theta,r0:a.r0,dr:a.dr,theta0:a.theta0,dtheta:a.dtheta,thetaunit:a.thetaunit,base:i({},o.base,{}),offset:i({},o.offset,{}),width:i({},o.width,{}),text:i({},o.text,{}),hovertext:i({},o.hovertext,{}),marker:o.marker,hoverinfo:a.hoverinfo,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/template_attributes&quot;:926,&quot;../bar/attributes&quot;:941,&quot;../scatterpolar/attributes&quot;:1292}],959:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;../bar/arrays_to_calcdata&quot;),o=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions,s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../registry&quot;).traceIs,c=t(&quot;../../lib&quot;).extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,&quot;r&quot;),f=c.makeCalcdata(e,&quot;theta&quot;),h=e._length,p=new Array(h),d=u,g=f,m=0;m&lt;h;m++)p[m]={p:g[m],s:d[m]};function v(t){var r=e[t];void 0!==r&amp;&amp;(e[&quot;_&quot;+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return&quot;linear&quot;===c.type&amp;&amp;(v(&quot;width&quot;),v(&quot;offset&quot;)),n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a&lt;n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&amp;&amp;l(u,&quot;bar&quot;)&amp;&amp;u.subplot===r&amp;&amp;i.push(s)}var f=c({},e.radialaxis,{_id:&quot;x&quot;}),h=e.angularaxis;o(t,h,f,i,{mode:e.barmode,norm:e.barnorm,gap:e.bargap,groupgap:e.bargroupgap})}}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../bar/arrays_to_calcdata&quot;:940,&quot;../bar/cross_trace_calc&quot;:944,&quot;../scatter/calc_selection&quot;:1220}],960:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,a=t(&quot;../bar/style_defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(&quot;thetaunit&quot;),l(&quot;base&quot;),l(&quot;offset&quot;),l(&quot;width&quot;),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../bar/style_defaults&quot;:956,&quot;../scatterpolar/defaults&quot;:1294,&quot;./attributes&quot;:958}],961:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../bar/hover&quot;).getTraceColor,o=i.fillText,s=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText,l=t(&quot;../../plots/polar/helpers&quot;).isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,g=d?l:i.isPtInsideSector,m=t.maxHoverDistance,v=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]&gt;h.range[1]&amp;&amp;(x+=Math.PI);if(n.getClosest(c,(function(t){return g(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?m+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s&lt;0&amp;&amp;(t.idealAlign=&quot;left&quot;),[t]}}},{&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../plots/polar/helpers&quot;:919,&quot;../bar/hover&quot;:948,&quot;../scatterpolar/hover&quot;:1296}],962:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;barpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;bar&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;../scatterpolar/format_labels&quot;),style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:920,&quot;../bar/select&quot;:953,&quot;../bar/style&quot;:955,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scatterpolar/format_labels&quot;:1295,&quot;./attributes&quot;:958,&quot;./calc&quot;:959,&quot;./defaults&quot;:960,&quot;./hover&quot;:961,&quot;./layout_attributes&quot;:963,&quot;./layout_defaults&quot;:964,&quot;./plot&quot;:965}],963:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,dflt:.1,min:0,max:1,editType:&quot;calc&quot;}}},{}],964:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l&lt;r.length;l++){var c=r[l];&quot;barpolar&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;(o[a=c.subplot]||(s(&quot;barmode&quot;),s(&quot;bargap&quot;),o[a]=1))}}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:963}],965:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../plots/polar/helpers&quot;);e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)&gt;0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(&quot;g.barlayer&quot;);a.makeTraceGroups(p,r,&quot;trace bars&quot;).each((function(){var r=n.select(this),s=a.ensureSingle(r,&quot;g&quot;,&quot;points&quot;).selectAll(&quot;g.point&quot;).data(a.identity);s.enter().append(&quot;g&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).style(&quot;stroke-miterlimit&quot;,2).classed(&quot;point&quot;,!0),s.exit().remove(),s.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&amp;&amp;i(s)&amp;&amp;i(p)&amp;&amp;i(d)&amp;&amp;o!==s&amp;&amp;p!==d){var g=u.c2g(t.s1),m=(p+d)/2;t.ct=[l.c2p(g*Math.cos(m)),c.c2p(g*Math.sin(m))],e=h(o,s,p,d)}else e=&quot;M0,0Z&quot;;a.ensureSingle(r,&quot;path&quot;).attr(&quot;d&quot;,e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../plots/polar/helpers&quot;:919,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],966:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../bar/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=c.line;e.exports={y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,editType:&quot;calc&quot;},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),name:{valType:&quot;string&quot;,editType:&quot;calc+clearAxisTypes&quot;},q1:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},median:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},q3:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},lowerfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},upperfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},notched:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},notchwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.25,editType:&quot;calc&quot;},notchspan:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},boxpoints:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;outliers&quot;,&quot;suspectedoutliers&quot;,!1],editType:&quot;calc&quot;},jitter:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},pointpos:{valType:&quot;number&quot;,min:-2,max:2,editType:&quot;calc&quot;},boxmean:{valType:&quot;enumerated&quot;,values:[!0,&quot;sd&quot;,!1],editType:&quot;calc&quot;},mean:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sd:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},quartilemethod:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;exclusive&quot;,&quot;inclusive&quot;],dflt:&quot;linear&quot;,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},marker:{outliercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0, 0, 0, 0)&quot;,editType:&quot;style&quot;},symbol:l({},c.symbol,{arrayOk:!1,editType:&quot;plot&quot;}),opacity:l({},c.opacity,{arrayOk:!1,dflt:1,editType:&quot;style&quot;}),size:l({},c.size,{arrayOk:!1,editType:&quot;calc&quot;}),color:l({},c.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:l({},u.color,{arrayOk:!1,dflt:a.defaultLine,editType:&quot;style&quot;}),width:l({},u.width,{arrayOk:!1,dflt:0,editType:&quot;style&quot;}),outliercolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},outlierwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,whiskerwidth:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;calc&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:&quot;style&quot;},unselected:{marker:n.unselected.marker,editType:&quot;style&quot;},text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),hovertemplate:s({}),hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;boxes&quot;,&quot;points&quot;],dflt:&quot;boxes+points&quot;,editType:&quot;style&quot;}}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../bar/attributes&quot;:941,&quot;../scatter/attributes&quot;:1218}],967:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=o._;e.exports=function(t,e){var r,c,y,x,b,_,w,T=t._fullLayout,k=i.getFromId(t,e.xaxis||&quot;x&quot;),A=i.getFromId(t,e.yaxis||&quot;y&quot;),M=[],S=&quot;violin&quot;===e.type?&quot;_numViolins&quot;:&quot;_numBoxes&quot;;&quot;h&quot;===e.orientation?(y=k,x=&quot;x&quot;,b=A,_=&quot;y&quot;,w=!!e.yperiodalignment):(y=A,x=&quot;y&quot;,b=k,_=&quot;x&quot;,w=!!e.xperiodalignment);var E,L,C,P,I,O,z=function(t,e,r,i){var s,l=e+&quot;0&quot;in t,c=&quot;d&quot;+e in t;if(e in t||l&amp;&amp;c){var u=r.makeCalcdata(t,e);return[a(t,r,e,u).vals,u]}s=l?t[e+&quot;0&quot;]:&quot;name&quot;in t&amp;&amp;(&quot;category&quot;===r.type||n(t.name)&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)||o.isDateTime(t.name)&amp;&amp;&quot;date&quot;===r.type)?t.name:i;for(var f=&quot;multicategory&quot;===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+&quot;calendar&quot;]),h=t._length,p=new Array(h),d=0;d&lt;h;d++)p[d]=f;return[p]}(e,_,b,T[S]),D=z[0],R=z[1],F=o.distinctVals(D,b),B=F.vals,N=F.minDiff/2,j=&quot;all&quot;===(e.boxpoints||e.points)?o.identity:function(t){return t.v&lt;E.lf||t.v&gt;E.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return y.d2c((e[t]||[])[r])},q=1/0,H=-1/0;for(r=0;r&lt;e._length;r++){var G=D[r];if(n(G)){if((E={}).pos=E[_]=G,w&amp;&amp;R&amp;&amp;(E.orig_p=R[r]),E.q1=V(&quot;q1&quot;),E.med=V(&quot;median&quot;),E.q3=V(&quot;q3&quot;),L=[],U&amp;&amp;o.isArrayOrTypedArray(U[r]))for(c=0;c&lt;U[r].length;c++)(O=y.d2c(U[r][c]))!==s&amp;&amp;(u(I={v:O,i:[r,c]},e,[r,c]),L.push(I));if(E.pts=L.sort(f),P=(C=E[x]=L.map(h)).length,E.med!==s&amp;&amp;E.q1!==s&amp;&amp;E.q3!==s&amp;&amp;E.med&gt;=E.q1&amp;&amp;E.q3&gt;=E.med){var Y=V(&quot;lowerfence&quot;);E.lf=Y!==s&amp;&amp;Y&lt;=E.q1?Y:p(E,C,P);var W=V(&quot;upperfence&quot;);E.uf=W!==s&amp;&amp;W&gt;=E.q3?W:d(E,C,P);var X=V(&quot;mean&quot;);E.mean=X!==s?X:P?o.mean(C,P):(E.q1+E.q3)/2;var Z=V(&quot;sd&quot;);E.sd=X!==s&amp;&amp;Z&gt;=0?Z:P?o.stdev(C,P,E.mean):E.q3-E.q1,E.lo=g(E),E.uo=m(E);var J=V(&quot;notchspan&quot;);J=J!==s&amp;&amp;J&gt;0?J:v(E,P),E.ln=E.med-J,E.un=E.med+J;var K=E.lf,Q=E.uf;e.boxpoints&amp;&amp;C.length&amp;&amp;(K=Math.min(K,C[0]),Q=Math.max(Q,C[P-1])),e.notched&amp;&amp;(K=Math.min(K,E.ln),Q=Math.max(Q,E.un)),E.min=K,E.max=Q}else{var $;o.warn([&quot;Invalid input - make sure that q1 &lt;= median &lt;= q3&quot;,&quot;q1 = &quot;+E.q1,&quot;median = &quot;+E.med,&quot;q3 = &quot;+E.q3].join(&quot;\n&quot;)),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}q=Math.min(q,E.min),H=Math.max(H,E.max),E.pts2=L.filter(j),M.push(E)}}e._extremes[y._id]=i.findExtremes(y,[q,H],{padded:!0})}else{var tt=y.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i&lt;r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(B,N),rt=B.length,nt=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=[];return e}(rt);for(r=0;r&lt;e._length;r++)if(O=tt[r],n(O)){var it=o.findBin(D[r],et);it&gt;=0&amp;&amp;it&lt;rt&amp;&amp;(u(I={v:O,i:r},e,r),nt[it].push(I))}var at=1/0,ot=-1/0,st=e.quartilemethod,lt=&quot;exclusive&quot;===st,ct=&quot;inclusive&quot;===st;for(r=0;r&lt;rt;r++)if(nt[r].length&gt;0){var ut,ft;if((E={}).pos=E[_]=B[r],L=E.pts=nt[r].sort(f),P=(C=E[x]=L.map(h)).length,E.min=C[0],E.max=C[P-1],E.mean=o.mean(C,P),E.sd=o.stdev(C,P,E.mean),E.med=o.interp(C,.5),P%2&amp;&amp;(lt||ct))lt?(ut=C.slice(0,P/2),ft=C.slice(P/2+1)):ct&amp;&amp;(ut=C.slice(0,P/2+1),ft=C.slice(P/2)),E.q1=o.interp(ut,.5),E.q3=o.interp(ft,.5);else E.q1=o.interp(C,.25),E.q3=o.interp(C,.75);E.lf=p(E,C,P),E.uf=d(E,C,P),E.lo=g(E),E.uo=m(E);var ht=v(E,P);E.ln=E.med-ht,E.un=E.med+ht,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=L.filter(j),M.push(E)}e._extremes[y._id]=i.findExtremes(y,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r&lt;t.length;r++){for(var n=t[r].pts||[],i={},a=0;a&lt;n.length;a++)i[n[a].i]=a;o.tagSelected(n,e,i)}}(M,e),M.length&gt;0?(M[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(t,&quot;median:&quot;),min:l(t,&quot;min:&quot;),q1:l(t,&quot;q1:&quot;),q3:l(t,&quot;q3:&quot;),max:l(t,&quot;max:&quot;),mean:&quot;sd&quot;===e.boxmean?l(t,&quot;mean \xb1 \u03c3:&quot;):l(t,&quot;mean:&quot;),lf:l(t,&quot;lower fence:&quot;),uf:l(t,&quot;upper fence:&quot;)}},T[S]++,M):[{t:{empty:!0}}]};var c={text:&quot;tx&quot;,hovertext:&quot;htx&quot;};function u(t,e,r){for(var n in c)o.isArrayOrTypedArray(e[n])&amp;&amp;(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&amp;&amp;(t[c[n]]=e[n][r[0]][r[1]]):t[c[n]]=e[n][r])}function f(t,e){return t.v-e.v}function h(t){return t.v}function p(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(o.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function d(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(o.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function g(t){return 4*t.q1-3*t.q3}function m(t){return 4*t.q3-3*t.q1}function v(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;fast-isnumeric&quot;:249}],968:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,o=[&quot;v&quot;,&quot;h&quot;];function s(t,e,r,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=o._id,p=h.charAt(0),d=[],g=0;for(s=0;s&lt;r.length;s++)for(c=u[r[s]],l=0;l&lt;c.length;l++)d.push(o.c2l(c[l].pos,!0)),g+=(c[l].pts2||[]).length;if(d.length){var m=i.distinctVals(d);&quot;category&quot;!==o.type&amp;&amp;&quot;multicategory&quot;!==o.type||(m.minDiff=1);var v=m.minDiff/2;n.minDtick(o,m.minDiff,m.vals[0],!0);var y=f[&quot;violin&quot;===t?&quot;_numViolins&quot;:&quot;_numBoxes&quot;],x=&quot;group&quot;===f[t+&quot;mode&quot;]&amp;&amp;y&gt;1,b=1-f[t+&quot;gap&quot;],_=1-f[t+&quot;groupgap&quot;];for(s=0;s&lt;r.length;s++){var w,T,k,A,M,S,E=(c=u[r[s]])[0].trace,L=c[0].t,C=E.width,P=E.side;if(C)w=T=A=C/2,k=0;else if(w=v,x){var I=a(f,o._id)+E.orientation,O=(f._alignmentOpts[I]||{})[E.alignmentgroup]||{},z=Object.keys(O.offsetGroups||{}).length,D=z||y;T=w*b*_/D,k=2*w*(((z?E._offsetIndex:L.num)+.5)/D-.5)*b,A=w*b/D}else T=w*b*_,k=0,A=w;L.dPos=w,L.bPos=k,L.bdPos=T,L.wHover=A;var R,F,B,N,j,U,V=k+T,q=Boolean(C);if(&quot;positive&quot;===P?(M=w*(C?1:.5),R=V,S=R=k):&quot;negative&quot;===P?(M=R=k,S=w*(C?1:.5),F=V):(M=S=w,R=F=V),(E.boxpoints||E.points)&amp;&amp;g&gt;0){var H=E.pointpos,G=E.jitter,Y=E.marker.size/2,W=0;H+G&gt;=0&amp;&amp;((W=V*(H+G))&gt;M?(q=!0,j=Y,B=W):W&gt;R&amp;&amp;(j=Y,B=M)),W&lt;=M&amp;&amp;(B=M);var X=0;H-G&lt;=0&amp;&amp;((X=-V*(H-G))&gt;S?(q=!0,U=Y,N=X):X&gt;F&amp;&amp;(U=Y,N=S)),X&lt;=S&amp;&amp;(N=S)}else B=M,N=S;var Z=new Array(c.length);for(l=0;l&lt;c.length;l++)Z[l]=c[l].pos;E._extremes[h]=n.findExtremes(o,Z,{padded:q,vpadminus:N,vpadplus:B,vpadLinearized:!0,ppadminus:{x:U,y:j}[p],ppadplus:{x:j,y:U}[p]})}}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,a=0;a&lt;o.length;a++){for(var l=o[a],c=&quot;h&quot;===l?i:n,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;box&quot;!==d.type&amp;&amp;&quot;candlestick&quot;!==d.type||p.empty||(d.orientation||&quot;v&quot;)!==l||d.xaxis!==n._id||d.yaxis!==i._id||u.push(f)}s(&quot;box&quot;,t,u,c)}},setPositionOffset:s}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/constraints&quot;:862}],969:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,l=t(&quot;../../plots/cartesian/axis_autotype&quot;),c=t(&quot;./attributes&quot;);function u(t,e,r,a){function o(t){var e=0;return t&amp;&amp;t.length&amp;&amp;(e+=1,n.isArrayOrTypedArray(t[0])&amp;&amp;t[0].length&amp;&amp;(e+=1)),e}function s(e){return n.validate(t[e],c[e])}var u,f=r(&quot;y&quot;),h=r(&quot;x&quot;);if(&quot;box&quot;===e.type){var p=r(&quot;q1&quot;),d=r(&quot;median&quot;),g=r(&quot;q3&quot;);e._hasPreCompStats=p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length&amp;&amp;g&amp;&amp;g.length,u=Math.min(n.minRowLength(p),n.minRowLength(d),n.minRowLength(g))}var m,v,y=o(f),x=o(h),b=y&amp;&amp;n.minRowLength(f),_=x&amp;&amp;n.minRowLength(h),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(e._hasPreCompStats)switch(String(x)+String(y)){case&quot;00&quot;:var k=s(&quot;x0&quot;)||s(&quot;dx&quot;);m=(s(&quot;y0&quot;)||s(&quot;dy&quot;))&amp;&amp;!k?&quot;h&quot;:&quot;v&quot;,v=u;break;case&quot;10&quot;:m=&quot;v&quot;,v=Math.min(u,_);break;case&quot;20&quot;:m=&quot;h&quot;,v=Math.min(u,h.length);break;case&quot;01&quot;:m=&quot;h&quot;,v=Math.min(u,b);break;case&quot;02&quot;:m=&quot;v&quot;,v=Math.min(u,f.length);break;case&quot;12&quot;:m=&quot;v&quot;,v=Math.min(u,_,f.length);break;case&quot;21&quot;:m=&quot;h&quot;,v=Math.min(u,h.length,b);break;case&quot;11&quot;:v=0;break;case&quot;22&quot;:var A,M=!1;for(A=0;A&lt;h.length;A++)if(&quot;category&quot;===l(h[A],w,T)){M=!0;break}if(M)m=&quot;v&quot;,v=Math.min(u,_,f.length);else{for(A=0;A&lt;f.length;A++)if(&quot;category&quot;===l(f[A],w,T)){M=!0;break}M?(m=&quot;h&quot;,v=Math.min(u,h.length,b)):(m=&quot;v&quot;,v=Math.min(u,_,f.length))}}else y&gt;0?(m=&quot;v&quot;,v=x&gt;0?Math.min(_,b):Math.min(b)):x&gt;0?(m=&quot;h&quot;,v=Math.min(_)):v=0;if(v){e._length=v;var S=r(&quot;orientation&quot;,m);e._hasPreCompStats?&quot;v&quot;===S&amp;&amp;0===x?(r(&quot;x0&quot;,0),r(&quot;dx&quot;,1)):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;(r(&quot;y0&quot;,0),r(&quot;dy&quot;,1)):&quot;v&quot;===S&amp;&amp;0===x?r(&quot;x0&quot;):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;r(&quot;y0&quot;),i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a)}else e.visible=!1}function f(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,&quot;marker.outliercolor&quot;),s=r(&quot;marker.line.outliercolor&quot;),l=&quot;outliers&quot;;e._hasPreCompStats?l=&quot;all&quot;:(o||s)&amp;&amp;(l=&quot;suspectedoutliers&quot;);var u=r(a+&quot;points&quot;,l);u?(r(&quot;jitter&quot;,&quot;all&quot;===u?.3:0),r(&quot;pointpos&quot;,&quot;all&quot;===u?-1.5:0),r(&quot;marker.symbol&quot;),r(&quot;marker.opacity&quot;),r(&quot;marker.size&quot;),r(&quot;marker.color&quot;,e.line.color),r(&quot;marker.line.color&quot;),r(&quot;marker.line.width&quot;),&quot;suspectedoutliers&quot;===u&amp;&amp;(r(&quot;marker.line.outliercolor&quot;,e.marker.color),r(&quot;marker.line.outlierwidth&quot;)),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;),r(&quot;selected.marker.size&quot;),r(&quot;unselected.marker.size&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;)):delete e.marker;var f=r(&quot;hoveron&quot;);&quot;all&quot;!==f&amp;&amp;-1===f.indexOf(&quot;points&quot;)||r(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function s(r,i){return n.coerce(t,e,c,r,i)}if(u(t,e,s,i),!1!==e.visible){o(t,e,i,s),s(&quot;xhoverformat&quot;),s(&quot;yhoverformat&quot;);var l=e._hasPreCompStats;l&amp;&amp;(s(&quot;lowerfence&quot;),s(&quot;upperfence&quot;)),s(&quot;line.color&quot;,(t.marker||{}).color||r),s(&quot;line.width&quot;),s(&quot;fillcolor&quot;,a.addOpacity(e.line.color,.5));var h=!1;if(l){var p=s(&quot;mean&quot;),d=s(&quot;sd&quot;);p&amp;&amp;p.length&amp;&amp;(h=!0,d&amp;&amp;d.length&amp;&amp;(h=&quot;sd&quot;))}s(&quot;boxmean&quot;,h),s(&quot;whiskerwidth&quot;),s(&quot;width&quot;),s(&quot;quartilemethod&quot;);var g=!1;if(l){var m=s(&quot;notchspan&quot;);m&amp;&amp;m.length&amp;&amp;(g=!0)}else n.validate(t.notchwidth,c.notchwidth)&amp;&amp;(g=!0);s(&quot;notched&quot;,g)&amp;&amp;s(&quot;notchwidth&quot;),f(t,e,s,{prefix:&quot;box&quot;})}},crossTraceDefaults:function(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;o&lt;t.length;o++){var l=(i=t[o]).type;&quot;box&quot;!==l&amp;&amp;&quot;violin&quot;!==l||(r=i._input,&quot;group&quot;===e[l+&quot;mode&quot;]&amp;&amp;s(r,i,e,a))}},handleSampleDefaults:u,handlePointsDefaults:f}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_autotype&quot;:855,&quot;../../registry&quot;:931,&quot;../bar/defaults&quot;:945,&quot;../scatter/period_defaults&quot;:1238,&quot;./attributes&quot;:966}],970:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return e.hoverOnBox&amp;&amp;(t.hoverOnBox=e.hoverOnBox),&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],971:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=i.fillText;function l(t,e,r,s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w=t.cd,T=t.xa,k=t.ya,A=w[0].trace,M=w[0].t,S=&quot;violin&quot;===A.type,E=[],L=M.bdPos,C=M.wHover,P=function(t){return u.c2l(t.pos)+M.bPos-u.c2l(p)};S&amp;&amp;&quot;both&quot;!==A.side?(&quot;positive&quot;===A.side&amp;&amp;(m=function(t){var e=P(t);return a.inbox(e,e+C,v)},x=L,b=0),&quot;negative&quot;===A.side&amp;&amp;(m=function(t){var e=P(t);return a.inbox(e-C,e,v)},x=0,b=L)):(m=function(t){var e=P(t);return a.inbox(e-C,e+C,v)},x=b=L),_=S?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,v)}:function(t){return a.inbox(t.min-h,t.max-h,v)},&quot;h&quot;===A.orientation?(h=e,p=r,d=_,g=m,l=&quot;y&quot;,u=k,c=&quot;x&quot;,f=T):(h=r,p=e,d=m,g=_,l=&quot;x&quot;,u=T,c=&quot;y&quot;,f=k);var I=Math.min(1,L/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function O(t){return(d(t)+g(t))/2}v=t.maxHoverDistance-I,y=t.maxSpikeDistance-I;var z=a.getDistanceFunction(s,d,g,O);if(a.getClosest(w,z,t),!1===t.index)return[];var D=w[t.index],R=A.line.color,F=(A.marker||{}).color;o.opacity(R)&amp;&amp;A.line.width?t.color=R:o.opacity(F)&amp;&amp;A.boxpoints?t.color=F:t.color=A.fillcolor,t[l+&quot;0&quot;]=u.c2p(D.pos+M.bPos-b,!0),t[l+&quot;1&quot;]=u.c2p(D.pos+M.bPos+x,!0),t[l+&quot;LabelVal&quot;]=void 0!==D.orig_p?D.orig_p:D.pos;var B=l+&quot;Spike&quot;;t.spikeDistance=O(D)*y/v,t[B]=u.c2p(D.pos,!0);var N={},j=[&quot;med&quot;,&quot;q1&quot;,&quot;q3&quot;,&quot;min&quot;,&quot;max&quot;];(A.boxmean||(A.meanline||{}).visible)&amp;&amp;j.push(&quot;mean&quot;),(A.boxpoints||A.points)&amp;&amp;j.push(&quot;lf&quot;,&quot;uf&quot;);for(var U=0;U&lt;j.length;U++){var V=j[U];if(V in D&amp;&amp;!(D[V]in N)){N[D[V]]=!0;var q=D[V],H=f.c2p(q,!0),G=i.extendFlat({},t);G.attr=V,G[c+&quot;0&quot;]=G[c+&quot;1&quot;]=H,G[c+&quot;LabelVal&quot;]=q,G[c+&quot;Label&quot;]=(M.labels?M.labels[V]+&quot; &quot;:&quot;&quot;)+n.hoverLabelText(f,q,A[c+&quot;hoverformat&quot;]),G.hoverOnBox=!0,&quot;mean&quot;===V&amp;&amp;&quot;sd&quot;in D&amp;&amp;&quot;sd&quot;===A.boxmean&amp;&amp;(G[c+&quot;err&quot;]=D.sd),t.name=&quot;&quot;,t.spikeDistance=void 0,t[B]=void 0,G.hovertemplate=!1,E.push(G)}}return E}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),g=a.quadrature((function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)}),(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)})),m=!1,v=0;v&lt;c.length;v++){o=c[v];for(var y=0;y&lt;(o.pts||[]).length;y++){var x=g(l=o.pts[y]);x&lt;=t.distance&amp;&amp;(t.distance=x,m=[v,y])}}if(!m)return!1;l=(o=c[m[0]]).pts[m[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,y0:_-w,y1:_+w,spikeDistance:t.distance,hovertemplate:h.hovertemplate});var T,k=o.orig_p,A=void 0!==k?k:o.pos;return&quot;h&quot;===h.orientation?(T=f,n.xLabelVal=l.x,n.yLabelVal=A):(T=u,n.xLabelVal=A,n.yLabelVal=l.y),n[T._id.charAt(0)+&quot;Spike&quot;]=T.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(&quot;boxes&quot;)&amp;&amp;(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(&quot;points&quot;)&amp;&amp;(i=c(t,e,r)),&quot;closest&quot;===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{&quot;../../components/color&quot;:666,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],972:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;).supplyLayoutDefaults,calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;box&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;boxLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:966,&quot;./calc&quot;:967,&quot;./cross_trace_calc&quot;:968,&quot;./defaults&quot;:969,&quot;./event_data&quot;:970,&quot;./hover&quot;:971,&quot;./layout_attributes&quot;:973,&quot;./layout_defaults&quot;:974,&quot;./plot&quot;:975,&quot;./select&quot;:976,&quot;./style&quot;:977}],973:[function(t,e,r){&quot;use strict&quot;;e.exports={boxmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;overlay&quot;,editType:&quot;calc&quot;},boxgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;},boxgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;}}},{}],974:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./layout_attributes&quot;);function o(t,e,r,i,a){for(var o=a+&quot;Layout&quot;,s=!1,l=0;l&lt;r.length;l++){var c=r[l];if(n.traceIs(c,o)){s=!0;break}}s&amp;&amp;(i(a+&quot;mode&quot;),i(a+&quot;gap&quot;),i(a+&quot;groupgap&quot;))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,(function(r,n){return i.coerce(t,e,a,r,n)}),&quot;box&quot;)},_supply:o}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./layout_attributes&quot;:973}],975:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;);function o(t,e,r,a){var o,s,l=&quot;h&quot;===r.orientation,c=e.val,u=e.pos,f=!!u.rangebreaks,h=a.bPos,p=a.wdPos||0,d=a.bPosPxOffset||0,g=r.whiskerwidth||0,m=r.notched||!1,v=m?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var y=t.selectAll(&quot;path.box&quot;).data(&quot;violin&quot;!==r.type||r.box.visible?i.identity:[]);y.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;box&quot;),y.exit().remove(),y.each((function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=u.c2l(t.pos+h,!0),a=u.l2p(e-o)+d,y=u.l2p(e+s)+d,x=f?(a+y)/2:u.l2p(e)+d,b=r.whiskerwidth,_=f?a*b+(1-b)*x:u.l2p(e-p)+d,w=f?y*b+(1-b)*x:u.l2p(e+p)+d,T=u.l2p(e-o*v)+d,k=u.l2p(e+s*v)+d,A=c.c2p(t.q1,!0),M=c.c2p(t.q3,!0),S=i.constrain(c.c2p(t.med,!0),Math.min(A,M)+1,Math.max(A,M)-1),E=void 0===t.lf||!1===r.boxpoints,L=c.c2p(E?t.min:t.lf,!0),C=c.c2p(E?t.max:t.uf,!0),P=c.c2p(t.ln,!0),I=c.c2p(t.un,!0);l?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+S+&quot;,&quot;+T+&quot;V&quot;+k+&quot;M&quot;+A+&quot;,&quot;+a+&quot;V&quot;+y+(m?&quot;H&quot;+P+&quot;L&quot;+S+&quot;,&quot;+k+&quot;L&quot;+I+&quot;,&quot;+y:&quot;&quot;)+&quot;H&quot;+M+&quot;V&quot;+a+(m?&quot;H&quot;+I+&quot;L&quot;+S+&quot;,&quot;+T+&quot;L&quot;+P+&quot;,&quot;+a:&quot;&quot;)+&quot;ZM&quot;+A+&quot;,&quot;+x+&quot;H&quot;+L+&quot;M&quot;+M+&quot;,&quot;+x+&quot;H&quot;+C+(0===g?&quot;&quot;:&quot;M&quot;+L+&quot;,&quot;+_+&quot;V&quot;+w+&quot;M&quot;+C+&quot;,&quot;+_+&quot;V&quot;+w)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+T+&quot;,&quot;+S+&quot;H&quot;+k+&quot;M&quot;+a+&quot;,&quot;+A+&quot;H&quot;+y+(m?&quot;V&quot;+P+&quot;L&quot;+k+&quot;,&quot;+S+&quot;L&quot;+y+&quot;,&quot;+I:&quot;&quot;)+&quot;V&quot;+M+&quot;H&quot;+a+(m?&quot;V&quot;+I+&quot;L&quot;+T+&quot;,&quot;+S+&quot;L&quot;+a+&quot;,&quot;+P:&quot;&quot;)+&quot;ZM&quot;+x+&quot;,&quot;+A+&quot;V&quot;+L+&quot;M&quot;+x+&quot;,&quot;+M+&quot;V&quot;+C+(0===g?&quot;&quot;:&quot;M&quot;+_+&quot;,&quot;+L+&quot;H&quot;+w+&quot;M&quot;+_+&quot;,&quot;+C+&quot;H&quot;+w))}))}function s(t,e,r,n){var o=e.x,s=e.y,l=n.bdPos,c=n.bPos,u=r.boxpoints||r.points;i.seedPseudoRandom();var f=t.selectAll(&quot;g.points&quot;).data(u?function(t){return t.forEach((function(t){t.t=n,t.trace=r})),t}:[]);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;points&quot;),f.exit().remove();var h=f.selectAll(&quot;path&quot;).data((function(t){var e,n,a=t.pts2,o=Math.max((t.max-t.min)/10,t.q3-t.q1),s=1e-9*o,f=.01*o,h=[],p=0;if(r.jitter){if(0===o)for(p=1,h=new Array(a.length),e=0;e&lt;a.length;e++)h[e]=1;else for(e=0;e&lt;a.length;e++){var d=Math.max(0,e-5),g=a[d].v,m=Math.min(a.length-1,e+5),v=a[m].v;&quot;all&quot;!==u&amp;&amp;(a[e].v&lt;t.lf?v=Math.min(v,t.lf):g=Math.max(g,t.uf));var y=Math.sqrt(f*(m-d)/(v-g+s))||0;y=i.constrain(Math.abs(y),0,1),h.push(y),p=Math.max(y,p)}n=2*r.jitter/(p||1)}for(e=0;e&lt;a.length;e++){var x=a[e],b=x.v,_=r.jitter?n*h[e]*(i.pseudoRandom()-.5):0,w=t.pos+c+l*(r.pointpos+_);&quot;h&quot;===r.orientation?(x.y=w,x.x=b):(x.x=w,x.y=b),&quot;suspectedoutliers&quot;===u&amp;&amp;b&lt;t.uo&amp;&amp;b&gt;t.lo&amp;&amp;(x.so=!0)}return a}));h.enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0),h.exit().remove(),h.call(a.translatePoints,o,s)}function l(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,h=a.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll(&quot;path.mean&quot;).data(&quot;box&quot;===r.type&amp;&amp;r.boxmean||&quot;violin&quot;===r.type&amp;&amp;r.box.visible&amp;&amp;r.meanline.visible?i.identity:[]);d.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;mean&quot;).style({fill:&quot;none&quot;,&quot;vector-effect&quot;:&quot;non-scaling-stroke&quot;}),d.exit().remove(),d.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+h,a=c.l2p(e+s)+h,d=u?(i+a)/2:c.l2p(e)+h,g=l.c2p(t.mean,!0),m=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);&quot;h&quot;===r.orientation?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+g+&quot;,&quot;+i+&quot;V&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+m+&quot;,&quot;+d+&quot;L&quot;+g+&quot;,&quot;+i+&quot;L&quot;+v+&quot;,&quot;+d+&quot;Z&quot;:&quot;&quot;)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+i+&quot;,&quot;+g+&quot;H&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+d+&quot;,&quot;+m+&quot;L&quot;+i+&quot;,&quot;+g+&quot;L&quot;+d+&quot;,&quot;+v+&quot;Z&quot;:&quot;&quot;))}))}e.exports={plot:function(t,e,r,a){var c=e.xaxis,u=e.yaxis;i.makeTraceGroups(a,r,&quot;trace boxes&quot;).each((function(t){var e,r,i=n.select(this),a=t[0],f=a.t,h=a.trace;(f.wdPos=f.bdPos*h.whiskerwidth,!0!==h.visible||f.empty)?i.remove():(&quot;h&quot;===h.orientation?(e=u,r=c):(e=c,r=u),o(i,{pos:e,val:r},h,f),s(i,{x:c,y:u},h,f),l(i,{pos:e,val:r},h,f))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;@plotly/d3&quot;:58}],976:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],977:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;);e.exports={style:function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.trace.boxes&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(&quot;stroke-width&quot;,e+&quot;px&quot;).call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(&quot;path.box&quot;);if(&quot;candlestick&quot;===o.type)c.each((function(t){if(!t.empty){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(&quot;opacity&quot;,o.selectedpoints&amp;&amp;!t.selected?.3:1)}}));else{l(c,s,o.line.color,o.fillcolor),r.selectAll(&quot;path.mean&quot;).style({&quot;stroke-width&quot;:s,&quot;stroke-dasharray&quot;:2*s+&quot;px,&quot;+s+&quot;px&quot;}).call(i.stroke,o.line.color);var u=r.selectAll(&quot;path.point&quot;);a.pointStyle(u,o,t)}}))},styleOnSelect:function(t,e,r){var n=e[0].trace,i=r.selectAll(&quot;path.point&quot;);n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;@plotly/d3&quot;:58}],978:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../ohlc/attributes&quot;),o=t(&quot;../box/attributes&quot;);function s(t){return{line:{color:n({},o.line.color,{dflt:t}),width:o.line.width,editType:&quot;style&quot;},fillcolor:o.fillcolor,editType:&quot;style&quot;}}e.exports={xperiod:a.xperiod,xperiod0:a.xperiod0,xperiodalignment:a.xperiodalignment,xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),x:a.x,open:a.open,high:a.high,low:a.low,close:a.close,line:{width:n({},o.line.width,{}),editType:&quot;style&quot;},increasing:s(a.increasing.line.color.dflt),decreasing:s(a.decreasing.line.color.dflt),text:a.text,hovertext:a.hovertext,whiskerwidth:n({},o.whiskerwidth,{dflt:0}),hoverlabel:a.hoverlabel}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../box/attributes&quot;:966,&quot;../ohlc/attributes&quot;:1164}],979:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../ohlc/calc&quot;).calcCommon;function s(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,l=i.getFromId(t,e.xaxis),c=i.getFromId(t,e.yaxis),u=l.makeCalcdata(e,&quot;x&quot;),f=a(e,l,&quot;x&quot;,u).vals,h=o(t,e,u,f,c,s);return h.length?(n.extendFlat(h[0].t,{num:r._numBoxes,dPos:n.distinctVals(f).minDiff/2,posLetter:&quot;x&quot;,valLetter:&quot;y&quot;}),r._numBoxes++,h):[{t:{empty:!0}}]}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;../ohlc/calc&quot;:1165}],980:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../ohlc/ohlc_defaults&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,n){var a=r(n+&quot;.line.color&quot;);r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.fillcolor&quot;,i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function c(r,i){return n.coerce(t,e,s,r,i)}a(t,e,c,i)?(o(t,e,i,c,{x:!0}),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;),c(&quot;line.width&quot;),l(t,e,c,&quot;increasing&quot;),l(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;whiskerwidth&quot;),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../ohlc/ohlc_defaults&quot;:1169,&quot;../scatter/period_defaults&quot;:1238,&quot;./attributes&quot;:978}],981:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;candlestick&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;,&quot;candlestick&quot;,&quot;boxLayout&quot;],meta:{},attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../box/layout_attributes&quot;),supplyLayoutDefaults:t(&quot;../box/layout_defaults&quot;).supplyLayoutDefaults,crossTraceCalc:t(&quot;../box/cross_trace_calc&quot;).crossTraceCalc,supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;../box/plot&quot;).plot,layerName:&quot;boxlayer&quot;,style:t(&quot;../box/style&quot;).style,hoverPoints:t(&quot;../ohlc/hover&quot;).hoverPoints,selectPoints:t(&quot;../ohlc/select&quot;)}},{&quot;../../plots/cartesian&quot;:868,&quot;../box/cross_trace_calc&quot;:968,&quot;../box/layout_attributes&quot;:973,&quot;../box/layout_defaults&quot;:974,&quot;../box/plot&quot;:975,&quot;../box/style&quot;:977,&quot;../ohlc/hover&quot;:1167,&quot;../ohlc/select&quot;:1171,&quot;./attributes&quot;:978,&quot;./calc&quot;:979,&quot;./defaults&quot;:980}],982:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_defaults&quot;),i=t(&quot;../../plot_api/plot_template&quot;);e.exports=function(t,e,r,a,o){a(&quot;a&quot;)||(a(&quot;da&quot;),a(&quot;a0&quot;)),a(&quot;b&quot;)||(a(&quot;db&quot;),a(&quot;b0&quot;)),function(t,e,r,a){[&quot;aaxis&quot;,&quot;baxis&quot;].forEach((function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:&quot;x&quot;,id:s+&quot;axis&quot;,letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||&quot;-&quot;===l.type||(t[o]={type:l.type})}))}(t,e,r,o)}},{&quot;../../plot_api/plot_template&quot;:843,&quot;./axis_defaults&quot;:987}],983:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r&gt;=10)return null;for(var i=1/0,a=-1/0,o=e.length,s=0;s&lt;o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&amp;&amp;(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{&quot;../../lib&quot;:803}],984:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./axis_attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=n({editType:&quot;calc&quot;});o.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},a0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},da:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},db:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},cheaterslope:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},aaxis:i,baxis:i,font:o,color:{valType:&quot;color&quot;,dflt:a.defaultLine,editType:&quot;plot&quot;},transforms:void 0}},{&quot;../../components/color/attributes&quot;:665,&quot;../../plots/font_attributes&quot;:883,&quot;./axis_attributes&quot;:986}],985:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g,m,v,y=n(r)?&quot;a&quot;:&quot;b&quot;,x=(&quot;a&quot;===y?t.aaxis:t.baxis).smoothing,b=&quot;a&quot;===y?t.a2i:t.b2j,_=&quot;a&quot;===y?r:i,w=&quot;a&quot;===y?i:r,T=&quot;a&quot;===y?e.a.length:e.b.length,k=&quot;a&quot;===y?e.b.length:e.a.length,A=Math.floor(&quot;a&quot;===y?t.b2j(w):t.a2i(w)),M=&quot;a&quot;===y?function(e){return t.evalxy([],e,A)}:function(e){return t.evalxy([],A,e)};x&amp;&amp;(s=Math.max(0,Math.min(k-2,A)),l=A-s,o=&quot;a&quot;===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),L=S&lt;E?1:-1,C=1e-8*(E-S),P=L&gt;0?Math.floor:Math.ceil,I=L&gt;0?Math.ceil:Math.floor,O=L&gt;0?Math.min:Math.max,z=L&gt;0?Math.max:Math.min,D=P(S+C),R=I(E-C),F=[[f=M(S)]];for(a=D;a*L&lt;R*L;a+=L)c=[],g=z(S,a),v=(m=O(E,a+L))-g,u=Math.max(0,Math.min(T-2,Math.floor(.5*(g+m)))),h=M(m),x&amp;&amp;(p=o(u,g-u),d=o(u,m-u),c.push([f[0]+p[0]/3*v,f[1]+p[1]/3*v]),c.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),c.push(h),F.push(c),f=h;return F}},{&quot;../../lib&quot;:803}],986:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../plots/cartesian/layout_attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionWithDates,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports={color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},smoothing:{valType:&quot;number&quot;,dflt:1,min:0,max:1.3,editType:&quot;calc&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},font:n({editType:&quot;calc&quot;}),offset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;},editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;date&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;},autotypenumbers:a.autotypenumbers,autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;calc&quot;},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,editType:&quot;calc&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}]},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cheatertype:{valType:&quot;enumerated&quot;,values:[&quot;index&quot;,&quot;value&quot;],dflt:&quot;value&quot;,editType:&quot;calc&quot;},tickmode:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;array&quot;],dflt:&quot;array&quot;,editType:&quot;calc&quot;},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},tickvals:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},showticklabels:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;end&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;start&quot;,editType:&quot;calc&quot;},tickfont:n({editType:&quot;calc&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;calc&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;calc&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;calc&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;,description:o(&quot;tick label&quot;)},tickformatstops:s(a.tickformatstops,&quot;calc&quot;,&quot;from-root&quot;),categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},labelpadding:{valType:&quot;integer&quot;,dflt:10,editType:&quot;calc&quot;},labelprefix:{valType:&quot;string&quot;,editType:&quot;calc&quot;},labelsuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;calc&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},gridcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},showgrid:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},minorgridcount:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},minorgridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},minorgridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;calc&quot;},startline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},startlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},startlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},endlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},tick0:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},dtick:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},arraytick0:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},arraydtick:{valType:&quot;integer&quot;,min:1,dflt:1,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;calc&quot;},titlefont:n({editType:&quot;calc&quot;}),titleoffset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;}},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:665,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/font_attributes&quot;:883}],987:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./attributes&quot;),i=t(&quot;../../components/color&quot;).addOpacity,a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),l=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),c=t(&quot;../../plots/cartesian/category_order_defaults&quot;),u=t(&quot;../../plots/cartesian/set_convert&quot;),f=t(&quot;../../plots/cartesian/axis_autotype&quot;);e.exports=function(t,e,r){var h=r.letter,p=r.font||{},d=n[h+&quot;axis&quot;];function g(r,n){return o.coerce(t,e,d,r,n)}function m(r,n){return o.coerce2(t,e,d,r,n)}r.name&amp;&amp;(e._name=r.name,e._id=r.name),g(&quot;autotypenumbers&quot;,r.autotypenumbersDflt);var v=g(&quot;type&quot;);(&quot;-&quot;===v&amp;&amp;(r.data&amp;&amp;function(t,e){if(&quot;-&quot;!==t.type)return;var r=t._id.charAt(0),n=t[r+&quot;calendar&quot;];t.type=f(e,n,{autotypenumbers:t.autotypenumbers})}(e,r.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:v=t.type=e.type),g(&quot;smoothing&quot;),g(&quot;cheatertype&quot;),g(&quot;showticklabels&quot;),g(&quot;labelprefix&quot;,h+&quot; = &quot;),g(&quot;labelsuffix&quot;),g(&quot;showtickprefix&quot;),g(&quot;showticksuffix&quot;),g(&quot;separatethousands&quot;),g(&quot;tickformat&quot;),g(&quot;exponentformat&quot;),g(&quot;minexponent&quot;),g(&quot;showexponent&quot;),g(&quot;categoryorder&quot;),g(&quot;tickmode&quot;),g(&quot;tickvals&quot;),g(&quot;ticktext&quot;),g(&quot;tick0&quot;),g(&quot;dtick&quot;),&quot;array&quot;===e.tickmode&amp;&amp;(g(&quot;arraytick0&quot;),g(&quot;arraydtick&quot;)),g(&quot;labelpadding&quot;),e._hovertitle=h,&quot;date&quot;===v)&amp;&amp;a.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,r.calendar);u(e,r.fullLayout),e.c2p=o.identity;var y=g(&quot;color&quot;,r.dfltColor),x=y===t.color?y:p.color;g(&quot;title.text&quot;)&amp;&amp;(o.coerceFont(g,&quot;title.font&quot;,{family:p.family,size:o.bigFont(p.size),color:x}),g(&quot;title.offset&quot;)),g(&quot;tickangle&quot;),g(&quot;autorange&quot;,!e.isValidRange(t.range))&amp;&amp;g(&quot;rangemode&quot;),g(&quot;range&quot;),e.cleanRange(),g(&quot;fixedrange&quot;),s(t,e,g,v),l(t,e,g,v,r),c(t,e,g,{data:r.data,dataAttr:h});var b=m(&quot;gridcolor&quot;,i(y,.3)),_=m(&quot;gridwidth&quot;),w=g(&quot;showgrid&quot;);w||(delete e.gridcolor,delete e.gridwidth);var T=m(&quot;startlinecolor&quot;,y),k=m(&quot;startlinewidth&quot;,_);g(&quot;startline&quot;,e.showgrid||!!T||!!k)||(delete e.startlinecolor,delete e.startlinewidth);var A=m(&quot;endlinecolor&quot;,y),M=m(&quot;endlinewidth&quot;,_);return g(&quot;endline&quot;,e.showgrid||!!A||!!M)||(delete e.endlinecolor,delete e.endlinewidth),w?(g(&quot;minorgridcount&quot;),g(&quot;minorgridwidth&quot;,_),g(&quot;minorgridcolor&quot;,i(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),&quot;none&quot;===e.showticklabels&amp;&amp;(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.minexponent,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(&quot;tickmode&quot;),e}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_autotype&quot;:855,&quot;../../plots/cartesian/category_order_defaults&quot;:859,&quot;../../plots/cartesian/set_convert&quot;:875,&quot;../../plots/cartesian/tick_label_defaults&quot;:876,&quot;../../plots/cartesian/tick_value_defaults&quot;:878,&quot;../../registry&quot;:931,&quot;./attributes&quot;:984}],988:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;).isArray1D,a=t(&quot;./cheater_basis&quot;),o=t(&quot;./array_minmax&quot;),s=t(&quot;./calc_gridlines&quot;),l=t(&quot;./calc_labels&quot;),c=t(&quot;./calc_clippath&quot;),u=t(&quot;../heatmap/clean_2d_array&quot;),f=t(&quot;./smooth_fill_2d_array&quot;),h=t(&quot;../heatmap/convert_column_xyz&quot;),p=t(&quot;./set_convert&quot;);e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),g=e.aaxis,m=e.baxis,v=e.x,y=e.y,x=[];v&amp;&amp;i(v)&amp;&amp;x.push(&quot;x&quot;),y&amp;&amp;i(y)&amp;&amp;x.push(&quot;y&quot;),x.length&amp;&amp;h(e,g,m,&quot;a&quot;,&quot;b&quot;,x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;v=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var T=&quot;index&quot;===g.cheatertype?b.length:b,k=&quot;index&quot;===m.cheatertype?_.length:_;v=a(T,k,e.cheaterslope)}e._x=v=u(v),e._y=y=u(y),f(v,b,_),f(y,b,_),p(e),e.setScale();var A=o(v),M=o(y),S=.5*(A[1]-A[0]),E=.5*(A[1]+A[0]),L=.5*(M[1]-M[0]),C=.5*(M[1]+M[0]);return A=[E-1.3*S,E+1.3*S],M=[C-1.3*L,C+1.3*L],e._extremes[r._id]=n.findExtremes(r,A,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,M,{padded:!0}),s(e,&quot;a&quot;,&quot;b&quot;),s(e,&quot;b&quot;,&quot;a&quot;),l(e,g),l(e,m),w.clipsegments=c(e._xctrl,e._yctrl,g,m),w.x=v,w.y=y,w.a=b,w.b=_,[w]}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../heatmap/clean_2d_array&quot;:1087,&quot;../heatmap/convert_column_xyz&quot;:1089,&quot;./array_minmax&quot;:983,&quot;./calc_clippath&quot;:989,&quot;./calc_gridlines&quot;:990,&quot;./calc_labels&quot;:991,&quot;./cheater_basis&quot;:993,&quot;./set_convert&quot;:1006,&quot;./smooth_fill_2d_array&quot;:1007}],989:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i&lt;=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i&lt;=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i&gt;=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i&gt;=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],990:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,g,m,v,y,x=t[&quot;_&quot;+e],b=t[e+&quot;axis&quot;],_=b._gridlines=[],w=b._minorgridlines=[],T=b._boundarylines=[],k=t[&quot;_&quot;+r],A=t[r+&quot;axis&quot;];&quot;array&quot;===b.tickmode&amp;&amp;(b.tickvals=x.slice());var M=t._xctrl,S=t._yctrl,E=M[0].length,L=M.length,C=t._a.length,P=t._b.length;n.prepTicks(b),&quot;array&quot;===b.tickmode&amp;&amp;delete b.tickvals;var I=b.smoothing?3:1;function O(n){var i,a,o,s,l,c,u,f,p,d,g,m,v=[],y=[],x={};if(&quot;b&quot;===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(P-2,a))),s=a-o,x.length=P,x.crossLength=C,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i&lt;C;i++)c=Math.min(C-2,i),u=i-c,f=t.evalxy([],i,a),A.smoothing&amp;&amp;i&gt;0&amp;&amp;(p=t.dxydi([],i-1,o,0,s),v.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),v.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(C-2,i))),u=i-c,x.length=C,x.crossLength=P,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a&lt;P;a++)o=Math.min(P-2,a),s=a-o,f=t.evalxy([],i,a),A.smoothing&amp;&amp;a&gt;0&amp;&amp;(g=t.dxydj([],c,a-1,u,0),v.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),m=t.dxydj([],c,a-1,u,1),v.push(f[0]-m[0]/3),y.push(f[1]-m[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=A,x.value=n,x.constvar=r,x.index=h,x.x=v,x.y=y,x.smoothing=A.smoothing,x}function z(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=k.length,&quot;b&quot;===e)for(o=Math.max(0,Math.min(P-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i&lt;E;i++)c[i]=M[n*I][i],u[i]=S[n*I][i];else for(a=Math.max(0,Math.min(C-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i&lt;L;i++)c[i]=M[i][n*I],u[i]=S[i][n*I];return f.axisLetter=e,f.axis=b,f.crossAxis=A,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=A.smoothing,f}if(&quot;array&quot;===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort((function(t,e){return t-e})))[0]-1,f=c[1]+1,h=u;h&lt;f;h++)(o=b.arraytick0+b.arraydtick*h)&lt;0||o&gt;x.length-1||_.push(i(z(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h&lt;f;h++)if(s=b.arraytick0+b.arraydtick*h,g=Math.min(s+b.arraydtick,x.length-1),!(s&lt;0||s&gt;x.length-1||g&lt;0||g&gt;x.length-1))for(m=x[s],v=x[g],a=0;a&lt;b.minorgridcount;a++)(y=g-s)&lt;=0||(d=m+(v-m)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(O(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(z(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(z(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],h=u;h&lt;=f;h++)p=b.tick0+b.dtick*h,_.push(i(O(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h&lt;f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a&lt;b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(O(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(O(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(O(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axes&quot;:854}],991:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r&lt;l.length;r++)o=l[r],-1!==[&quot;start&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[&quot;end&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axes&quot;:854}],992:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&amp;&amp;u/h),e[1]+(h&amp;&amp;f/h)],[e[0]-(p&amp;&amp;u/p),e[1]-(p&amp;&amp;f/p)]]}},{}],993:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&amp;&amp;(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&amp;&amp;(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var g=1/0,m=-1/0;for(a=0;a&lt;h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i&lt;f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,g=Math.min(c,g),m=Math.max(c,m),u[a][i]=c;var v=1/(m-g),y=-g*v;for(a=0;a&lt;h;a++)for(i=0;i&lt;f;i++)u[a][i]=v*u[a][i]+y;return u}},{&quot;../../lib&quot;:803}],994:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./catmull_rom&quot;),i=t(&quot;../../lib&quot;).ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,g,m,v,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f&lt;w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u&lt;b;u++,h+=l?3:1)for(p=t[h],d=e[h],g=r[u],m=o[u],c=0,f=0;c&lt;x;c++,f+=s?3:1)p[f]=g[c],d[f]=m[c];if(s)for(u=0,h=0;u&lt;b;u++,h+=l?3:1){for(c=1,f=3;c&lt;x-1;c++,f+=3)v=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=v[0][0],e[h][f-1]=v[0][1],t[h][f+1]=v[1][0],e[h][f+1]=v[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f&lt;_;f++){for(h=3;h&lt;w-3;h+=3)v=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=v[0][0],e[h-1][f]=v[0][1],t[h+1][f]=v[1][0],e[h+1][f]=v[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&amp;&amp;l)for(h=1;h&lt;w;h+=(h+1)%3==0?2:1){for(f=3;f&lt;_-3;f+=3)v=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+v[0][0]),e[h][f-1]=.5*(e[h][f-1]+v[0][1]),t[h][f+1]=.5*(t[h][f+1]+v[1][0]),e[h][f+1]=.5*(e[h][f+1]+v[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{&quot;../../lib&quot;:803,&quot;./catmull_rom&quot;:992}],995:[function(t,e,r){&quot;use strict&quot;;e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],996:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,g=p*i*2,m=-3*d,v=3*(d-g),y=3*(g-h),x=3*h,b=a*a,_=b*a,w=1-a,T=w*w,k=T*w;for(f=0;f&lt;t.length;f++)o=m*(u=t[f])[n][r]+v*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=m*u[n+1][r]+v*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=m*u[n+2][r]+v*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=m*u[n+3][r]+v*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=k*o+3*(T*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,g=3*(h-p),m=3*(p-u),v=3*u,y=1-a;for(l=0;l&lt;t.length;l++)o=d*(c=t[l])[n][r]+g*c[n][r+1]+m*c[n][r+2]+v*c[n][r+3],s=d*c[n+1][r]+g*c[n+1][r+1]+m*c[n+1][r+2]+v*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],997:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,g=d*d,m=g*d,v=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),T=3*(b-v),k=3*v;for(f=0;f&lt;t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+T*u[n+2][r]+k*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+T*u[n+2][r+1]+k*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+T*u[n+2][r+2]+k*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+T*u[n+2][r+3]+k*u[n+3][r+3],e[f]=m*o+3*(g*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,g=-3*p,m=3*(p-d),v=3*(d-f),y=3*f;for(l=0;l&lt;t.length;l++)o=g*(c=t[l])[n][r]+m*c[n+1][r]+v*c[n+2][r]+y*c[n+3][r],s=g*c[n][r+1]+m*c[n+1][r+1]+v*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],998:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&amp;&amp;i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=g*g,w=_*g,T=1-g,k=T*T,A=k*T;for(f=0;f&lt;t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*m*u[p][h+2])+v*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*m*u[p+1][h+2])+v*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*m*u[p+2][h+2])+v*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*m*u[p+3][h+2])+v*u[p+3][h+3],e[f]=A*i+3*(k*g*s+T*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=1-g;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+g*f[p+1][h],s=_*f[p][h+1]+g*f[p+1][h+1],l=_*f[p][h+2]+g*f[p+1][h+1],c=_*f[p][h+3]+g*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*m*l)+v*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));p*=3;var m=g*g,v=m*g,y=1-g,x=y*y,b=x*y,_=1-d;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*g*s+y*m*l)+v*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,g=1-h;for(l=0;l&lt;t.length;l++)i=g*(c=t[l])[f][u]+h*c[f][u+1],s=g*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],999:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xy_defaults&quot;),a=t(&quot;./ab_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../components/color/attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=&quot;clip&quot;+e.uid+&quot;carpet&quot;;var u=c(&quot;color&quot;,s.defaultLine);(n.coerceFont(c,&quot;font&quot;),c(&quot;carpet&quot;),a(t,e,l,c,u),e.a&amp;&amp;e.b)?(e.a.length&lt;3&amp;&amp;(e.aaxis.smoothing=0),e.b.length&lt;3&amp;&amp;(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&amp;&amp;c(&quot;cheaterslope&quot;)):e.visible=!1}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib&quot;:803,&quot;./ab_defaults&quot;:982,&quot;./attributes&quot;:984,&quot;./xy_defaults&quot;:1008}],1e3:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),plot:t(&quot;./plot&quot;),calc:t(&quot;./calc&quot;),animatable:!0,isContainer:!0,moduleType:&quot;trace&quot;,name:&quot;carpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;carpetAxis&quot;,&quot;notLegendIsolatable&quot;,&quot;noMultiCategory&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:984,&quot;./calc&quot;:988,&quot;./defaults&quot;:999,&quot;./plot&quot;:1005}],1001:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i&lt;n;i++){var a=t._fullData[i];if(a.index!==e.index&amp;&amp;(&quot;carpet&quot;===a.type&amp;&amp;(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],1002:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(0===t.length)return&quot;&quot;;var n,i=[],a=r?3:1;for(n=0;n&lt;t.length;n+=a)i.push(t[n]+&quot;,&quot;+e[n]),r&amp;&amp;n&lt;t.length-a&amp;&amp;(i.push(&quot;C&quot;),i.push([t[n+1]+&quot;,&quot;+e[n+1],t[n+2]+&quot;,&quot;+e[n+2]+&quot; &quot;].join(&quot; &quot;)));return i.join(r?&quot;&quot;:&quot;L&quot;)}},{}],1003:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length&gt;e.length&amp;&amp;(t=t.slice(0,e.length)):t=[],i=0;i&lt;e.length;i++)t[i]=r(e[i]);return t}},{&quot;../../lib&quot;:803}],1004:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p&lt;-90?(p+=180,l=-l):p&gt;90&amp;&amp;(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],1005:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;./map_1d_array&quot;),o=t(&quot;./makepath&quot;),s=t(&quot;./orient_text&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;),u=c.strRotate,f=c.strTranslate,h=t(&quot;../../constants/alignment&quot;);function p(t,e,r,i,s,l){var c=&quot;const-&quot;+s+&quot;-lines&quot;,u=r.selectAll(&quot;.&quot;+c).data(l);u.enter().append(&quot;path&quot;).classed(c,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),u.each((function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=&quot;M&quot;+o(c,u,i.smoothing);n.select(this).attr(&quot;d&quot;,f).style(&quot;stroke-width&quot;,i.width).style(&quot;stroke&quot;,i.color).style(&quot;fill&quot;,&quot;none&quot;)})),u.exit().remove()}function d(t,e,r,a,o,c,h,p){var d=c.selectAll(&quot;text.&quot;+p).data(h);d.enter().append(&quot;text&quot;).classed(p,!0);var g=0,m={};return d.each((function(o,c){var h;if(&quot;auto&quot;===o.axis.tickangle)h=s(a,e,r,o.xy,o.dxy);else{var p=(o.axis.tickangle+180)*Math.PI/180;h=s(a,e,r,o.xy,[Math.cos(p),Math.sin(p)])}c||(m={angle:h.angle,flip:h.flip});var d=(o.endAnchor?-1:1)*h.flip,v=n.select(this).attr({&quot;text-anchor&quot;:d&gt;0?&quot;start&quot;:&quot;end&quot;,&quot;data-notex&quot;:1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr(&quot;transform&quot;,f(h.p[0],h.p[1])+u(h.angle)+f(o.axis.labelpadding*d,.3*y.height)),g=Math.max(g,y.width+o.axis.labelpadding)})),d.exit().remove(),m.maxExtent=g,m}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,f=t._fullLayout._clips;c.makeTraceGroups(i,r,&quot;trace&quot;).each((function(e){var r=n.select(this),i=e[0],h=i.trace,g=h.aaxis,m=h.baxis,y=c.ensureSingle(r,&quot;g&quot;,&quot;minorlayer&quot;),x=c.ensureSingle(r,&quot;g&quot;,&quot;majorlayer&quot;),b=c.ensureSingle(r,&quot;g&quot;,&quot;boundarylayer&quot;),_=c.ensureSingle(r,&quot;g&quot;,&quot;labellayer&quot;);r.style(&quot;opacity&quot;,h.opacity),p(l,u,x,g,&quot;a&quot;,g._gridlines),p(l,u,x,m,&quot;b&quot;,m._gridlines),p(l,u,y,g,&quot;a&quot;,g._minorgridlines),p(l,u,y,m,&quot;b&quot;,m._minorgridlines),p(l,u,b,g,&quot;a-boundary&quot;,g._boundarylines),p(l,u,b,m,&quot;b-boundary&quot;,m._boundarylines);var w=d(t,l,u,h,i,_,g._labels,&quot;a-label&quot;),T=d(t,l,u,h,i,_,m._labels,&quot;b-label&quot;);!function(t,e,r,n,i,a,o,l){var u,f,h,p,d=c.aggNums(Math.min,null,r.a),g=c.aggNums(Math.max,null,r.a),m=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(d+g),f=m,h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&amp;&amp;c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));v(t,e,r,n,h,p,r.aaxis,i,a,o,&quot;a-title&quot;),u=d,f=.5*(m+y),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&amp;&amp;c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));v(t,e,r,n,h,p,r.baxis,i,a,l,&quot;b-title&quot;)}(t,_,h,i,l,u,w,T),function(t,e,r,n,i){var s,l,u,f,h=r.select(&quot;#&quot;+t._clipPathId);h.size()||(h=r.append(&quot;clipPath&quot;).classed(&quot;carpetclip&quot;,!0));var p=c.ensureSingle(h,&quot;path&quot;,&quot;carpetboundary&quot;),d=e.clipsegments,g=[];for(f=0;f&lt;d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),g.push(o(l,u,s.bicubic));var m=&quot;M&quot;+g.join(&quot;L&quot;)+&quot;Z&quot;;h.attr(&quot;id&quot;,t._clipPathId),p.attr(&quot;d&quot;,m)}(h,i,f,l,u)}))};var g=h.LINE_SPACING,m=(1-h.MID_SHIFT)/g+1;function v(t,e,r,a,o,c,h,p,d,v,y){var x=[];h.title.text&amp;&amp;x.push(h.title.text);var b=e.selectAll(&quot;text.&quot;+y).data(x),_=v.maxExtent;b.enter().append(&quot;text&quot;).classed(y,!0),b.each((function(){var e=s(r,p,d,o,c);-1===[&quot;start&quot;,&quot;both&quot;].indexOf(h.showticklabels)&amp;&amp;(_=0);var a=h.title.font.size;_+=a+h.title.offset;var y=(v.angle+(v.flip&lt;0?180:0)-e.angle+450)%360,x=y&gt;90&amp;&amp;y&lt;270,b=n.select(this);b.text(h.title.text).call(l.convertToTspans,t),x&amp;&amp;(_=(-l.lineCount(b)+m)*g*a-_),b.attr(&quot;transform&quot;,f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(i.font,h.title.font)})),b.exit().remove()}},{&quot;../../components/drawing&quot;:688,&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;./makepath&quot;:1002,&quot;./map_1d_array&quot;:1003,&quot;./orient_text&quot;:1004,&quot;@plotly/d3&quot;:58}],1006:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/search&quot;).findBin,a=t(&quot;./compute_control_points&quot;),o=t(&quot;./create_spline_evaluator&quot;),s=t(&quot;./create_i_derivative_evaluator&quot;),l=t(&quot;./create_j_derivative_evaluator&quot;);e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],g=r[0],m=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=v*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,g-=b,m+=b,t.isVisible=function(t,e){return t&gt;p&amp;&amp;t&lt;d&amp;&amp;e&gt;g&amp;&amp;e&lt;m},t.isOccluded=function(t,e){return t&lt;p||t&gt;d||e&lt;g||e&gt;m},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&amp;&amp;(n&lt;e[0]||n&gt;e[c-1]|i&lt;r[0]||i&gt;r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,g=0,m=0,v=[];n&lt;e[0]?(f=0,h=0,g=(n-e[0])/(e[1]-e[0])):n&gt;e[c-1]?(f=c-2,h=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i&lt;r[0]?(p=0,d=0,m=(i-r[0])/(r[1]-r[0])):i&gt;r[u-1]?(p=u-2,d=1,m=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),g&amp;&amp;(t.dxydi(v,f,p,h,d),l[0]+=v[0]*g,l[1]+=v[1]*g),m&amp;&amp;(t.dxydj(v,f,p,h,d),l[0]+=v[0]*m,l[1]+=v[1]*m)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{&quot;../../lib/search&quot;:823,&quot;./compute_control_points&quot;:994,&quot;./constants&quot;:995,&quot;./create_i_derivative_evaluator&quot;:996,&quot;./create_j_derivative_evaluator&quot;:997,&quot;./create_spline_evaluator&quot;:998}],1007:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e&gt;0&amp;&amp;void 0!==(n=t[r][e-1])&amp;&amp;(a++,i+=n),e&lt;c-1&amp;&amp;void 0!==(n=t[r][e+1])&amp;&amp;(a++,i+=n),r&gt;0&amp;&amp;void 0!==(n=t[r-1][e])&amp;&amp;(a++,i+=n),r&lt;u-1&amp;&amp;void 0!==(n=t[r+1][e])&amp;&amp;(a++,i+=n),i/Math.max(1,a)}var h,p,d,g,m,v,y,x,b,_,w,T=0;for(i=0;i&lt;c;i++)for(a=0;a&lt;u;a++)void 0===t[a][i]&amp;&amp;(s.push(i),l.push(a),t[a][i]=f(i,a)),T=Math.max(T,Math.abs(t[a][i]));if(!s.length)return t;var k=0,A=0,M=s.length;do{for(k=0,o=0;o&lt;M;o++){i=s[o],a=l[o];var S,E,L,C,P,I,O=0,z=0;0===i?(L=e[P=Math.min(c-1,2)],C=e[1],S=t[a][P],z+=(E=t[a][1])+(E-S)*(e[0]-C)/(C-L),O++):i===c-1&amp;&amp;(L=e[P=Math.max(0,c-3)],C=e[c-2],S=t[a][P],z+=(E=t[a][c-2])+(E-S)*(e[c-1]-C)/(C-L),O++),(0===i||i===c-1)&amp;&amp;a&gt;0&amp;&amp;a&lt;u-1&amp;&amp;(h=r[a+1]-r[a],z+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),O++),0===a?(L=r[I=Math.min(u-1,2)],C=r[1],S=t[I][i],z+=(E=t[1][i])+(E-S)*(r[0]-C)/(C-L),O++):a===u-1&amp;&amp;(L=r[I=Math.max(0,u-3)],C=r[u-2],S=t[I][i],z+=(E=t[u-2][i])+(E-S)*(r[u-1]-C)/(C-L),O++),(0===a||a===u-1)&amp;&amp;i&gt;0&amp;&amp;i&lt;c-1&amp;&amp;(h=e[i+1]-e[i],z+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),O++),O?z/=O:(d=e[i+1]-e[i],g=e[i]-e[i-1],x=(m=r[a+1]-r[a])*(v=r[a]-r[a-1])*(m+v),z=((y=d*g*(d+g))*(v*t[a+1][i]+m*t[a-1][i])+x*(g*t[a][i+1]+d*t[a][i-1]))/(x*(g+d)+y*(v+m))),k+=(_=(b=z-t[a][i])/T)*_,w=O?0:.85,t[a][i]+=b*(1+w)}k=Math.sqrt(k)}while(A++&lt;100&amp;&amp;k&gt;1e-5);return n.log(&quot;Smoother converged to&quot;,k,&quot;after&quot;,A,&quot;iterations&quot;),t}},{&quot;../../lib&quot;:803}],1008:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArray1D;e.exports=function(t,e,r){var i=r(&quot;x&quot;),a=i&amp;&amp;i.length,o=r(&quot;y&quot;),s=o&amp;&amp;o.length;if(!a&amp;&amp;!s)return!1;if(e._cheater=!i,a&amp;&amp;!n(i)||s&amp;&amp;!n(o))e._length=null;else{var l=a?i.length:1/0;s&amp;&amp;(l=Math.min(l,o.length)),e.a&amp;&amp;e.a.length&amp;&amp;(l=Math.min(l,e.a.length)),e.b&amp;&amp;e.b.length&amp;&amp;(l=Math.min(l,e.b.length)),e._length=l}return!0}},{&quot;../../lib&quot;:803}],1009:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../scattergeo/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/color/attributes&quot;).defaultLine,l=t(&quot;../../lib/extend&quot;).extendFlat,c=i.marker.line;e.exports=l({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},locationmode:i.locationmode,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,arrayOk:!0,min:0,max:1,dflt:1,editType:&quot;style&quot;},editType:&quot;calc&quot;},selected:{marker:{opacity:i.selected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:l({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;location&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/color/attributes&quot;:665,&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scattergeo/attributes&quot;:1260}],1010:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;);function l(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f&lt;c;f++){var h=u[f]={},p=e.locations[f],d=e.z[f];r(p)&amp;&amp;n(d)?(h.loc=p,h.z=d):(h.loc=null,h.z=i),h.index=f}return o(u,e),a(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),s(u,e),u}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../constants/numerical&quot;:779,&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/calc_selection&quot;:1220,&quot;fast-isnumeric&quot;:249}],1011:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;);if(l&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length){e._length=Math.min(l.length,c.length);var u,f=s(&quot;geojson&quot;);(&quot;string&quot;==typeof f&amp;&amp;&quot;&quot;!==f||n.isPlainObject(f))&amp;&amp;(u=&quot;geojson-id&quot;),&quot;geojson-id&quot;===s(&quot;locationmode&quot;,u)&amp;&amp;s(&quot;featureidkey&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)}else e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;./attributes&quot;:1009}],1012:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.location=e.location,t.z=e.z;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t.ct=a.ct,t}},{}],1013:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot,p=[e,r],d=[e+360,r];for(s=0;s&lt;u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l&lt;o._polygons.length;l++)o._polygons[l].contains(p)&amp;&amp;(c=!c),o._polygons[l].contains(d)&amp;&amp;(c=!c);if(c)break}if(c&amp;&amp;o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,t.zLabel=n.tickText(h.mockAxis,h.mockAxis.c2l(o.z),&quot;hover&quot;).text,t.hovertemplate=o.hovertemplate,function(t,e,r){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,o=String(r.loc),s=&quot;all&quot;===n?i.hoverinfo.flags:n.split(&quot;+&quot;),l=-1!==s.indexOf(&quot;name&quot;),c=-1!==s.indexOf(&quot;location&quot;),u=-1!==s.indexOf(&quot;z&quot;),f=-1!==s.indexOf(&quot;text&quot;),h=[];!l&amp;&amp;c?t.nameOverride=o:(l&amp;&amp;(t.nameOverride=e.name),c&amp;&amp;h.push(o));u&amp;&amp;h.push(t.zLabel);f&amp;&amp;a(r,e,h);t.extraText=h.join(&quot;&lt;br&gt;&quot;)}(t,f,o),[t]}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;./attributes&quot;:1009}],1014:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;choropleth&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/geo&quot;:887,&quot;../heatmap/colorbar&quot;:1088,&quot;./attributes&quot;:1009,&quot;./calc&quot;:1010,&quot;./defaults&quot;:1011,&quot;./event_data&quot;:1012,&quot;./hover&quot;:1013,&quot;./plot&quot;:1015,&quot;./select&quot;:1016,&quot;./style&quot;:1017}],1015:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,s=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,l=t(&quot;./style&quot;).style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],i=n._subplot,l=r.locationmode,c=r._length,u=&quot;geojson-id&quot;===l?a.extractTraceFeature(t):o(r,i.topojson),f=[],h=[],p=0;p&lt;c;p++){var d=t[p],g=&quot;geojson-id&quot;===l?d.fOut:a.locationToFeature(l,d.loc,u);if(g){d.geojson=g,d.ct=g.properties.ct,d._polygons=a.feature2polygons(g);var m=a.computeBbox(g);f.push(m[0],m[2]),h.push(m[1],m[3])}else d.geojson=null}if(&quot;geojson&quot;===n.fitbounds&amp;&amp;&quot;geojson-id&quot;===l){var v=a.computeBbox(a.getTraceGeojson(r));f=[v[0],v[2]],h=[v[1],v[3]]}var y={padded:!0};r._extremes.lon=s(n.lonaxis._ax,f,y),r._extremes.lat=s(n.lataxis._ax,h,y)},plot:function(t,e,r){var a=e.layers.backplot.select(&quot;.choroplethlayer&quot;);i.makeTraceGroups(a,r,&quot;trace choropleth&quot;).each((function(e){var r=n.select(this).selectAll(&quot;path.choroplethlocation&quot;).data(i.identity);r.enter().append(&quot;path&quot;).classed(&quot;choroplethlocation&quot;,!0),r.exit().remove(),l(t,e)}))}}},{&quot;../../lib&quot;:803,&quot;../../lib/geo_location_utils&quot;:796,&quot;../../lib/topojson_utils&quot;:832,&quot;../../plots/cartesian/autorange&quot;:853,&quot;./style&quot;:1017,&quot;@plotly/d3&quot;:58}],1016:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)(i=(n=s[r]).ct)&amp;&amp;(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],1017:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;);function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(&quot;.choroplethlocation&quot;),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFuncFromTrace(r);s.each((function(t){n.select(this).attr(&quot;fill&quot;,u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,&quot;&quot;,t.mlw||c.width||0).style(&quot;opacity&quot;,l.opacity)})),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&amp;&amp;s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(&quot;.choroplethlocation&quot;),n,t):s(t,e)}}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale&quot;:678,&quot;../../components/drawing&quot;:688,&quot;@plotly/d3&quot;:58}],1018:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../choropleth/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:s({},n.featureidkey,{}),below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:&quot;plot&quot;}),width:s({},n.marker.line.width,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},opacity:s({},n.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:[&quot;properties&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})},i(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../choropleth/attributes&quot;:1009}],1019:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/geojson_utils&quot;).makeBlank,l=t(&quot;../../lib/geo_location_utils&quot;);function c(t){var e,r=t[0].trace,n=r._opts;if(r.selectedpoints){for(var a=o.makeSelectedPointStyleFns(r),s=0;s&lt;t.length;s++){var l=t[s];l.fOut&amp;&amp;(l.fOut.properties.mo2=a.selectedOpacityFn(l))}e={type:&quot;identity&quot;,property:&quot;mo2&quot;}}else e=i.isArrayOrTypedArray(r.marker.opacity)?{type:&quot;identity&quot;,property:&quot;mo&quot;}:r.marker.opacity;return i.extendFlat(n.fill.paint,{&quot;fill-opacity&quot;:e}),i.extendFlat(n.line.paint,{&quot;line-opacity&quot;:e}),n}e.exports={convert:function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,o={layout:{visibility:&quot;none&quot;},paint:{}},u={layout:{visibility:&quot;none&quot;},paint:{}},f=e._opts={fill:o,line:u,geojson:s()};if(!r)return f;var h=l.extractTraceFeature(t);if(!h)return f;var p,d,g,m=a.makeColorScaleFuncFromTrace(e),v=e.marker,y=v.line||{};i.isArrayOrTypedArray(v.opacity)&amp;&amp;(p=function(t){var e=t.mo;return n(e)?+i.constrain(e,0,1):0}),i.isArrayOrTypedArray(y.color)&amp;&amp;(d=function(t){return t.mlc}),i.isArrayOrTypedArray(y.width)&amp;&amp;(g=function(t){return t.mlw});for(var x=0;x&lt;t.length;x++){var b=t[x],_=b.fOut;if(_){var w=_.properties;w.fc=m(b.z),p&amp;&amp;(w.mo=p(b)),d&amp;&amp;(w.mlc=d(b)),g&amp;&amp;(w.mlw=g(b)),b.ct=w.ct,b._polygons=l.feature2polygons(_)}}var T=p?{type:&quot;identity&quot;,property:&quot;mo&quot;}:v.opacity;return i.extendFlat(o.paint,{&quot;fill-color&quot;:{type:&quot;identity&quot;,property:&quot;fc&quot;},&quot;fill-opacity&quot;:T}),i.extendFlat(u.paint,{&quot;line-color&quot;:d?{type:&quot;identity&quot;,property:&quot;mlc&quot;}:y.color,&quot;line-width&quot;:g?{type:&quot;identity&quot;,property:&quot;mlw&quot;}:y.width,&quot;line-opacity&quot;:T}),o.layout.visibility=&quot;visible&quot;,u.layout.visibility=&quot;visible&quot;,f.geojson={type:&quot;FeatureCollection&quot;,features:h},c(t),f},convertOnSelect:c}},{&quot;../../components/colorscale&quot;:678,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/geo_location_utils&quot;:796,&quot;../../lib/geojson_utils&quot;:797,&quot;fast-isnumeric&quot;:249}],1020:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;),u=s(&quot;geojson&quot;);n.isArrayOrTypedArray(l)&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length&amp;&amp;(&quot;string&quot;==typeof u&amp;&amp;&quot;&quot;!==u||n.isPlainObject(u))?(s(&quot;featureidkey&quot;),e._length=Math.min(l.length,c.length),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;./attributes&quot;:1018}],1021:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../choropleth/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;../choropleth/hover&quot;),eventData:t(&quot;../choropleth/event_data&quot;),selectPoints:t(&quot;../choropleth/select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n&gt;=0;n--){var i=r[n].id;if(&quot;string&quot;==typeof i&amp;&amp;0===i.indexOf(&quot;water&quot;))for(var a=n+1;a&lt;r.length;a++)if(&quot;string&quot;==typeof(i=r[a].id)&amp;&amp;-1===i.indexOf(&quot;plotly-&quot;))return i}},moduleType:&quot;trace&quot;,name:&quot;choroplethmapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;choropleth_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:911,&quot;../choropleth/calc&quot;:1010,&quot;../choropleth/event_data&quot;:1012,&quot;../choropleth/hover&quot;:1013,&quot;../choropleth/select&quot;:1016,&quot;../heatmap/colorbar&quot;:1088,&quot;./attributes&quot;:1018,&quot;./defaults&quot;:1020,&quot;./plot&quot;:1022}],1022:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;).convert,i=t(&quot;./convert&quot;).convertOnSelect,a=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function o(t,e){this.type=&quot;choroplethmapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;fill&quot;,a+e+&quot;-fill&quot;],[&quot;line&quot;,a+e+&quot;-line&quot;]],this.below=null}var s=o.prototype;s.update=function(t){this._update(n(t))},s.updateOnSelect=function(t){this._update(i(t))},s._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i&lt;r.length;i++){var a=r[i],o=a[0],s=a[1],l=t[o];e.setOptions(s,&quot;setLayoutProperty&quot;,l.layout),&quot;visible&quot;===l.layout.visibility&amp;&amp;e.setOptions(s,&quot;setPaintProperty&quot;,l.paint)}},s._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},s._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(a,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:909,&quot;./convert&quot;:1019}],1023:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../mesh3d/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;absolute&quot;],editType:&quot;calc&quot;,dflt:&quot;scaled&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},anchor:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;tip&quot;,&quot;tail&quot;,&quot;cm&quot;,&quot;center&quot;],dflt:&quot;cm&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:a({editType:&quot;calc&quot;},{keys:[&quot;norm&quot;]}),uhoverformat:i(&quot;u&quot;,1),vhoverformat:i(&quot;v&quot;,1),whoverformat:i(&quot;w&quot;,1),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){c[t]=o[t]})),c.hoverinfo=l({},s.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),c.transforms=void 0,e.exports=c},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../mesh3d/attributes&quot;:1159}],1024:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c&lt;o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(t,e,{vals:[l,s],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:674}],1025:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-cone3d&quot;),i=t(&quot;gl-cone3d&quot;).createConeMesh,a=t(&quot;../../lib&quot;).simpleMap,o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;);function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Array.isArray(l)&amp;&amp;void 0!==l[e]?t.textLabel=l[e]:l&amp;&amp;(t.textLabel=l),!0}};var f={xaxis:0,yaxis:1,zaxis:2},h={tip:1,tail:0,cm:.25,center:.5},p={tip:1,tail:1,cm:.75,center:.5};function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c={};function u(t,e){var n=r[e],o=i[f[e]];return a(t,(function(t){return n.d2l(t)*o}))}c.vectors=l(u(e.u,&quot;xaxis&quot;),u(e.v,&quot;yaxis&quot;),u(e.w,&quot;zaxis&quot;),e._len),c.positions=l(u(e.x,&quot;xaxis&quot;),u(e.y,&quot;yaxis&quot;),u(e.z,&quot;zaxis&quot;),e._len);var d=s(e);c.colormap=o(e),c.vertexIntensityBounds=[d.min/e._normMax,d.max/e._normMax],c.coneOffset=h[e.anchor],&quot;scaled&quot;===e.sizemode?c.coneSize=e.sizeref||.5:c.coneSize=e.sizeref&amp;&amp;e._normMax?e.sizeref/e._normMax:.5;var g=n(c),m=e.lightposition;return g.lightPosition=[m.x,m.y,m.z],g.ambient=e.lighting.ambient,g.diffuse=e.lighting.diffuse,g.specular=e.lighting.specular,g.roughness=e.lighting.roughness,g.fresnel=e.lighting.fresnel,g.opacity=e.opacity,e._pad=p[e.anchor]*g.vectorScale*g.coneScale*e._normMax,g}u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../lib/gl_format_color&quot;:799,&quot;../../plots/gl3d/zip3&quot;:907,&quot;gl-cone3d&quot;:268}],1026:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;sizeref&quot;),s(&quot;sizemode&quot;),s(&quot;anchor&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;uhoverformat&quot;),s(&quot;vhoverformat&quot;),s(&quot;whoverformat&quot;),s(&quot;xhoverformat&quot;),s(&quot;yhoverformat&quot;),s(&quot;zhoverformat&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;./attributes&quot;:1023}],1027:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;cone&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.norm=e.traceCoordinate[6],t},meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1023,&quot;./calc&quot;:1024,&quot;./convert&quot;:1025,&quot;./defaults&quot;:1026}],1028:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;),o=a.axisHoverFormat,s=a.descriptionOnlyNumbers,l=t(&quot;../../components/colorscale/attributes&quot;),c=t(&quot;../../components/drawing/attributes&quot;).dash,u=t(&quot;../../plots/font_attributes&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../constants/filter_ops&quot;),p=h.COMPARISON_OPS2,d=h.INTERVAL_OPS,g=i.line;e.exports=f({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),zhoverformat:o(&quot;z&quot;,1),hovertemplate:n.hovertemplate,hoverongaps:n.hoverongaps,connectgaps:f({},n.connectgaps,{}),fillcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},autocontour:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;contours.start&quot;:void 0,&quot;contours.end&quot;:void 0,&quot;contours.size&quot;:void 0}},ncontours:{valType:&quot;integer&quot;,dflt:15,min:1,editType:&quot;calc&quot;},contours:{type:{valType:&quot;enumerated&quot;,values:[&quot;levels&quot;,&quot;constraint&quot;],dflt:&quot;levels&quot;,editType:&quot;calc&quot;},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;heatmap&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},showlabels:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},labelfont:u({editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),labelformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;,description:s(&quot;contour label&quot;)},operation:{valType:&quot;enumerated&quot;,values:[].concat(p).concat(d),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:f({},g.color,{editType:&quot;style+colorbars&quot;}),width:{valType:&quot;number&quot;,min:0,editType:&quot;style+colorbars&quot;},dash:c,smoothing:f({},g.smoothing,{}),editType:&quot;plot&quot;}},l(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/drawing/attributes&quot;:687,&quot;../../constants/filter_ops&quot;:775,&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/font_attributes&quot;:883,&quot;../heatmap/attributes&quot;:1085,&quot;../scatter/attributes&quot;:1218}],1029:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;../heatmap/calc&quot;),a=t(&quot;./set_contours&quot;),o=t(&quot;./end_plus&quot;);e.exports=function(t,e){var r=i(t,e),s=r[0].z;a(e,s);var l,c=e.contours,u=n.extractOpts(e);if(&quot;heatmap&quot;===c.coloring&amp;&amp;u.auto&amp;&amp;!1===e.autocontour){var f=c.start,h=o(c),p=c.size||1,d=Math.floor((h-f)/p)+1;isFinite(p)||(p=1,d=1);var g=f-p/2;l=[g,g+d*p]}else l=s;return n.calc(t,e,{vals:l,cLetter:&quot;z&quot;}),r}},{&quot;../../components/colorscale&quot;:678,&quot;../heatmap/calc&quot;:1086,&quot;./end_plus&quot;:1039,&quot;./set_contours&quot;:1047}],1030:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t[0],i=n.z;switch(e.type){case&quot;levels&quot;:var a=Math.min(i[0][0],i[0][1]);for(r=0;r&lt;t.length;r++){var o=t[r];o.prefixBoundary=!o.edgepaths.length&amp;&amp;(a&gt;o.level||o.starts.length&amp;&amp;a===o.level)}break;case&quot;constraint&quot;:if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r&lt;l;r++)u=Math.min(u,i[r][0]),u=Math.min(u,i[r][s-1]),c=Math.max(c,i[r][0]),c=Math.max(c,i[r][s-1]);for(r=1;r&lt;s-1;r++)u=Math.min(u,i[0][r]),u=Math.min(u,i[l-1][r]),c=Math.max(c,i[0][r]),c=Math.max(c,i[l-1][r]);var f,h,p=e.value;switch(e._operation){case&quot;&gt;&quot;:p&gt;c&amp;&amp;(n.prefixBoundary=!0);break;case&quot;&lt;&quot;:(p&lt;u||n.starts.length&amp;&amp;p===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;[]&quot;:f=Math.min(p[0],p[1]),((h=Math.max(p[0],p[1]))&lt;u||f&gt;c||n.starts.length&amp;&amp;h===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;][&quot;:f=Math.min(p[0],p[1]),h=Math.max(p[0],p[1]),f&lt;u&amp;&amp;h&gt;c&amp;&amp;(n.prefixBoundary=!0)}}}},{}],1031:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;./make_color_map&quot;),a=t(&quot;./end_plus&quot;);e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;,calc:function(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if(&quot;heatmap&quot;===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else&quot;fill&quot;===c&amp;&amp;(r._fillcolor=u);r._line={color:&quot;lines&quot;===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},{&quot;../../components/colorscale&quot;:678,&quot;./end_plus&quot;:1039,&quot;./make_color_map&quot;:1044}],1032:[function(t,e,r){&quot;use strict&quot;;e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],1033:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./label_defaults&quot;),a=t(&quot;../../components/color&quot;),o=a.addOpacity,s=a.opacity,l=t(&quot;../../constants/filter_ops&quot;),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,g=e.contours,m=r(&quot;contours.operation&quot;);(g._operation=c[m],function(t,e){var r;-1===u.indexOf(e.operation)?(t(&quot;contours.value&quot;,[0,1]),Array.isArray(e.value)?e.value.length&gt;2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length&lt;2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&amp;&amp;(r=parseFloat(e.value),e.value=[r,r+1])):(t(&quot;contours.value&quot;,0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,g),&quot;=&quot;===m?h=g.showlines=!0:(h=r(&quot;contours.showlines&quot;),d=r(&quot;fillcolor&quot;,o((t.line||{}).color||l,.5))),h)&amp;&amp;(p=r(&quot;line.color&quot;,d&amp;&amp;s(d)?o(e.fillcolor,1):l),r(&quot;line.width&quot;,2),r(&quot;line.dash&quot;));r(&quot;line.smoothing&quot;),i(r,a,p,f)}},{&quot;../../components/color&quot;:666,&quot;../../constants/filter_ops&quot;:775,&quot;./label_defaults&quot;:1043,&quot;fast-isnumeric&quot;:249}],1034:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/filter_ops&quot;),i=t(&quot;fast-isnumeric&quot;);function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&amp;&amp;(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={&quot;[]&quot;:o(&quot;[]&quot;),&quot;][&quot;:o(&quot;][&quot;),&quot;&gt;&quot;:s(&quot;&gt;&quot;),&quot;&lt;&quot;:s(&quot;&lt;&quot;),&quot;=&quot;:s(&quot;=&quot;)}},{&quot;../../constants/filter_ops&quot;:775,&quot;fast-isnumeric&quot;:249}],1035:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=n(&quot;contours.start&quot;),a=n(&quot;contours.end&quot;),o=!1===i||!1===a,s=r(&quot;contours.size&quot;);!(o?e.autocontour=!0:r(&quot;autocontour&quot;,!1))&amp;&amp;s||r(&quot;ncontours&quot;)}},{}],1036:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case&quot;=&quot;:case&quot;&lt;&quot;:return t;case&quot;&gt;&quot;:for(1!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality operation.&quot;),a=t[0],r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);return t;case&quot;][&quot;:var c=s;s=l,l=c;case&quot;[]&quot;:for(2!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality range operation.&quot;),a=i(t[0]),o=i(t[1]),r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));for(;o.starts.length;)a.starts.push(l(o.starts.shift()));return[a]}}},{&quot;../../lib&quot;:803}],1037:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./constraint_defaults&quot;),s=t(&quot;./contours_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(i(t,e,f,u)){a(t,e,u,f),f(&quot;xhoverformat&quot;),f(&quot;yhoverformat&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;hoverongaps&quot;);var h=&quot;constraint&quot;===f(&quot;contours.type&quot;);f(&quot;connectgaps&quot;,n.isArray1D(e.z)),h?o(t,e,f,u,r):(s(t,e,f,(function(r){return n.coerce2(t,e,c,r)})),l(t,e,f,u))}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../heatmap/xyz_defaults&quot;:1099,&quot;../scatter/period_defaults&quot;:1238,&quot;./attributes&quot;:1028,&quot;./constraint_defaults&quot;:1033,&quot;./contours_defaults&quot;:1035,&quot;./style_defaults&quot;:1049}],1038:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constraint_mapping&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t,e,r){for(var o=&quot;constraint&quot;===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h&lt;c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length&gt;1e3){n.warn(&quot;Too many contours, clipping at 1000&quot;,t);break}return l}},{&quot;../../lib&quot;:803,&quot;./constraint_mapping&quot;:1034,&quot;./end_plus&quot;:1039}],1039:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t.end+t.size/1e6}},{}],1040:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;);function a(t,e,r,n){return Math.abs(t[0]-e[0])&lt;r&amp;&amp;Math.abs(t[1]-e[1])&lt;n}function o(t,e,r,o,l){var c,u=e.join(&quot;,&quot;),f=t.crossings[u],h=function(t,e,r){var n=0,a=0;t&gt;20&amp;&amp;e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(f,r,e),p=[s(t,e,[-h[0],-h[1]])],d=t.z.length,g=t.z[0].length,m=e.slice(),v=h.slice();for(c=0;c&lt;1e4;c++){if(f&gt;20?(f=i.CHOOSESADDLE[f][(h[0]||h[1])&lt;0?0:1],t.crossings[u]=i.SADDLEREMAINDER[f]):delete t.crossings[u],!(h=i.NEWDELTA[f])){n.log(&quot;Found bad marching index:&quot;,f,e,t.level);break}p.push(s(t,e,h)),e[0]+=h[0],e[1]+=h[1],u=e.join(&quot;,&quot;),a(p[p.length-1],p[p.length-2],o,l)&amp;&amp;p.pop();var y=h[0]&amp;&amp;(e[0]&lt;0||e[0]&gt;g-2)||h[1]&amp;&amp;(e[1]&lt;0||e[1]&gt;d-2);if(e[0]===m[0]&amp;&amp;e[1]===m[1]&amp;&amp;h[0]===v[0]&amp;&amp;h[1]===v[1]||r&amp;&amp;y)break;f=t.crossings[u]}1e4===c&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;);var x,b,_,w,T,k,A,M,S,E,L,C,P,I,O,z=a(p[0],p[p.length-1],o,l),D=0,R=.2*t.smoothing,F=[],B=0;for(c=1;c&lt;p.length;c++)C=p[c],P=p[c-1],I=void 0,O=void 0,I=C[2]-P[2],O=C[3]-P[3],D+=A=Math.sqrt(I*I+O*O),F.push(A);var N=D/F.length*R;function j(t){return p[t%p.length]}for(c=p.length-2;c&gt;=B;c--)if((x=F[c])&lt;N){for(_=0,b=c-1;b&gt;=B&amp;&amp;x+F[b]&lt;N;b--)x+=F[b];if(z&amp;&amp;c===p.length-2)for(_=0;_&lt;b&amp;&amp;x+F[_]&lt;N;_++)x+=F[_];T=c-b+_+1,k=Math.floor((c+b+_+2)/2),w=z||c!==p.length-2?z||-1!==b?T%2?j(k):[(j(k)[0]+j(k+1)[0])/2,(j(k)[1]+j(k+1)[1])/2]:p[0]:p[p.length-1],p.splice(b+1,c-b+1,w),c=b+1,_&amp;&amp;(B=_),z&amp;&amp;(c===p.length-2?p[_]=p[p.length-1]:0===c&amp;&amp;(p[p.length-1]=p[0]))}for(p.splice(0,B),c=0;c&lt;p.length;c++)p[c].length=2;if(!(p.length&lt;2))if(z)p.pop(),t.paths.push(p);else{r||n.log(&quot;Unclosed interior contour?&quot;,t.level,m.join(&quot;,&quot;),p.join(&quot;L&quot;));var U=!1;for(M=0;M&lt;t.edgepaths.length;M++)if(E=t.edgepaths[M],!U&amp;&amp;a(E[0],p[p.length-1],o,l)){p.pop(),U=!0;var V=!1;for(S=0;S&lt;t.edgepaths.length;S++)if(a((L=t.edgepaths[S])[L.length-1],p[0],o,l)){V=!0,p.shift(),t.edgepaths.splice(M,1),S===M?t.paths.push(p.concat(L)):(S&gt;M&amp;&amp;S--,t.edgepaths[S]=L.concat(p,E));break}V||(t.edgepaths[M]=p.concat(E))}for(M=0;M&lt;t.edgepaths.length&amp;&amp;!U;M++)a((E=t.edgepaths[M])[E.length-1],p[0],o,l)&amp;&amp;(p.shift(),t.edgepaths[M]=E.concat(p),U=!0);U||t.edgepaths.push(p)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var c=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-c)*t.y[i]+c*t.y[i+1],!0),n,i+c]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a&lt;t.length;a++){for(s=t[a],l=0;l&lt;s.starts.length;l++)o(s,s.starts[l],&quot;edge&quot;,e,r);for(i=0;Object.keys(s.crossings).length&amp;&amp;i&lt;1e4;)i++,o(s,Object.keys(s.crossings)[0].split(&quot;,&quot;).map(Number),void 0,e,r);1e4===i&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;)}}},{&quot;../../lib&quot;:803,&quot;./constants&quot;:1032}],1041:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../heatmap/hover&quot;);e.exports=function(t,e,r,a,o){o||(o={}),o.isContour=!0;var s=i(t,e,r,a,o);return s&amp;&amp;s.forEach((function(t){var e=t.trace;&quot;constraint&quot;===e.contours.type&amp;&amp;(e.fillcolor&amp;&amp;n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&amp;&amp;n.opacity(e.line.color)&amp;&amp;(t.color=n.addOpacity(e.line.color,1)))})),s}},{&quot;../../components/color&quot;:666,&quot;../heatmap/hover&quot;:1092}],1042:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),colorbar:t(&quot;./colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;contour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:1028,&quot;./calc&quot;:1029,&quot;./colorbar&quot;:1031,&quot;./defaults&quot;:1037,&quot;./hover&quot;:1041,&quot;./plot&quot;:1046,&quot;./style&quot;:1048}],1043:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i){if(i||(i={}),t(&quot;contours.showlabels&quot;)){var a=e.font;n.coerceFont(t,&quot;contours.labelfont&quot;,{family:a.family,size:a.size,color:r}),t(&quot;contours.labelformat&quot;)}!1!==i.hasHover&amp;&amp;t(&quot;zhoverformat&quot;)}},{&quot;../../lib&quot;:803}],1044:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/colorscale&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=&quot;lines&quot;===e.coloring?0:1,u=i.extractOpts(t);isFinite(s)||(s=1,l=1);var f,h,p=u.reversescale?i.flipScale(u.colorscale):u.colorscale,d=p.length,g=new Array(d),m=new Array(d);if(&quot;heatmap&quot;===e.coloring){var v=u.min,y=u.max;for(h=0;h&lt;d;h++)f=p[h],g[h]=f[0]*(y-v)+v,m[h]=f[1];var x=n.extent([v,y,e.start,e.start+s*(l-1)]),b=x[v&lt;y?0:1],_=x[v&lt;y?1:0];b!==v&amp;&amp;(g.splice(0,0,b),m.splice(0,0,m[0])),_!==y&amp;&amp;(g.push(_),m.push(m[m.length-1]))}else for(h=0;h&lt;d;h++)f=p[h],g[h]=(f[0]*(l+c-1)-c/2)*s+r,m[h]=f[1];return i.makeColorScaleFunc({domain:g,range:m},{noNumericCheck:!0})}},{&quot;../../components/colorscale&quot;:678,&quot;./end_plus&quot;:1039,&quot;@plotly/d3&quot;:58}],1045:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);function i(t,e){var r=(e[0][0]&gt;t?0:1)+(e[0][1]&gt;t?0:2)+(e[1][1]&gt;t?0:4)+(e[1][0]&gt;t?0:8);return 5===r||10===r?t&gt;(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,g=2===p||2===d;for(r=0;r&lt;p-1;r++)for(o=[],0===r&amp;&amp;(o=o.concat(n.BOTTOMSTART)),r===p-2&amp;&amp;(o=o.concat(n.TOPSTART)),e=0;e&lt;d-1;e++)for(a=o.slice(),0===e&amp;&amp;(a=a.concat(n.LEFTSTART)),e===d-2&amp;&amp;(a=a.concat(n.RIGHTSTART)),s=e+&quot;,&quot;+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f&lt;t.length;f++)(c=i((u=t[f]).level,l))&amp;&amp;(u.crossings[s]=c,-1!==a.indexOf(c)&amp;&amp;(u.starts.push([e,r]),g&amp;&amp;-1!==a.indexOf(c,a.indexOf(c)+1)&amp;&amp;u.starts.push([e,r])))}},{&quot;./constants&quot;:1032}],1046:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../../plots/cartesian/set_convert&quot;),u=t(&quot;../heatmap/plot&quot;),f=t(&quot;./make_crossings&quot;),h=t(&quot;./find_all_paths&quot;),p=t(&quot;./empty_pathinfo&quot;),d=t(&quot;./convert_to_constraints&quot;),g=t(&quot;./close_boundaries&quot;),m=t(&quot;./constants&quot;),v=m.LABELOPTIMIZER;function y(t,e){var r,n,o,s,l,c,u,f=&quot;&quot;,h=0,p=t.edgepaths.map((function(t,e){return e})),d=!0;function g(t){return Math.abs(t[1]-e[2][1])&lt;.01}function m(t){return Math.abs(t[0]-e[0][0])&lt;.01}function v(t){return Math.abs(t[0]-e[2][0])&lt;.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,&quot;L&quot;),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o&lt;4;o++){if(!r){i.log(&quot;Missing end?&quot;,h,t);break}for(u=r,Math.abs(u[1]-e[0][1])&lt;.01&amp;&amp;!v(r)?n=e[1]:m(r)?n=e[0]:g(r)?n=e[3]:v(r)&amp;&amp;(n=e[2]),l=0;l&lt;t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])&lt;.01?Math.abs(r[0]-y[0])&lt;.01&amp;&amp;(y[1]-r[1])*(n[1]-y[1])&gt;=0&amp;&amp;(n=y,s=l):Math.abs(r[1]-n[1])&lt;.01?Math.abs(r[1]-y[1])&lt;.01&amp;&amp;(y[0]-r[0])*(n[0]-y[0])&gt;=0&amp;&amp;(n=y,s=l):i.log(&quot;endpt to newendpt is not vert. or horz.&quot;,r,n,y)}if(r=n,s&gt;=0)break;f+=&quot;L&quot;+n}if(s===t.edgepaths.length){i.log(&quot;unclosed perimeter path&quot;);break}h=s,(d=-1===p.indexOf(h))&amp;&amp;(h=p[0],f+=&quot;Z&quot;)}for(h=0;h&lt;t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function x(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s&gt;n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l&gt;n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h&lt;1||p&lt;1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,x=l+f,b=0;b&lt;r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,T=Math.sin(_.theta)*_.width/2,k=2*i.segmentDistance(g,m,y,x,_.x-w,_.y-T,_.x+w,_.y+T)/(e.height+_.height),A=_.level===e.level,M=A?v.SAMELEVELDISTANCE:1;if(k&lt;=M)return 1/0;d+=v.NEIGHBORCOST*(A?v.SAMELEVELFACTOR:1)/(k-M)}return d}function b(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e&lt;o;e++)s.push(1);for(e=0;e&lt;a;e++)i.push(s.slice());for(e=0;e&lt;n.length;e++)i[(r=n[e])[0]][r[1]]=0;return t.zmask=i,i}r.plot=function(t,e,o,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,o,&quot;contour&quot;).each((function(o){var s=n.select(this),v=o[0],x=v.trace,_=v.x,w=v.y,T=x.contours,k=p(T,e,v),A=i.ensureSingle(s,&quot;g&quot;,&quot;heatmapcoloring&quot;),M=[];&quot;heatmap&quot;===T.coloring&amp;&amp;(M=[o]),u(t,e,M,A),f(k),h(k);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),L=c.c2p(w[0],!0),C=c.c2p(w[w.length-1],!0),P=[[S,C],[E,C],[E,L],[S,L]],I=k;&quot;constraint&quot;===T.type&amp;&amp;(I=d(k,T._operation)),function(t,e,r){var n=i.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;===r.coloring?[0]:[]);n.enter().append(&quot;path&quot;),n.exit().remove(),n.attr(&quot;d&quot;,&quot;M&quot;+e.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(s,P,T),function(t,e,r,a){var o=&quot;fill&quot;===a.coloring||&quot;constraint&quot;===a.type&amp;&amp;&quot;=&quot;!==a._operation,s=&quot;M&quot;+r.join(&quot;L&quot;)+&quot;Z&quot;;o&amp;&amp;g(e,a);var l=i.ensureSingle(t,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(o?e:[]);l.enter().append(&quot;path&quot;),l.exit().remove(),l.each((function(t){var e=(t.prefixBoundary?s:&quot;&quot;)+y(t,r);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(s,I,P,T),function(t,e,o,s,l){var c=i.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),u=!1!==l.showlines,f=l.showlabels,h=u&amp;&amp;f,p=r.createLines(c,u||f,e),d=r.createLineClip(c,h,o,s.trace.uid),g=t.selectAll(&quot;g.contourlabels&quot;).data(f?[0]:[]);if(g.exit().remove(),g.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),f){var v=[],y=[];i.clearLocationCache();var x=r.labelFormatter(o,s),b=a.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(a.font,l.labelfont),_=e[0].xaxis,w=e[0].yaxis,T=_._length,k=w._length,A=_.range,M=w.range,S=i.aggNums(Math.min,null,s.x),E=i.aggNums(Math.max,null,s.x),L=i.aggNums(Math.min,null,s.y),C=i.aggNums(Math.max,null,s.y),P=Math.max(_.c2p(S,!0),0),I=Math.min(_.c2p(E,!0),T),O=Math.max(w.c2p(C,!0),0),z=Math.min(w.c2p(L,!0),k),D={};A[0]&lt;A[1]?(D.left=P,D.right=I):(D.left=I,D.right=P),M[0]&lt;M[1]?(D.top=O,D.bottom=z):(D.top=z,D.bottom=O),D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2,v.push([[D.left,D.top],[D.right,D.top],[D.right,D.bottom],[D.left,D.bottom]]);var R=Math.sqrt(T*T+k*k),F=m.LABELDISTANCE*R/Math.max(1,e.length/m.LABELINCREASE);p.each((function(t){var e=r.calcTextOpts(t.level,x,b,o);n.select(this).selectAll(&quot;path&quot;).each((function(){var t=i.getVisibleSegment(this,D,e.height/2);if(t&amp;&amp;!(t.len&lt;(e.width+e.height)*m.LABELMIN))for(var n=Math.min(Math.ceil(t.len/F),m.LABELMAX),a=0;a&lt;n;a++){var o=r.findBestTextLocation(this,t,e,y,D);if(!o)break;r.addLabelData(o,e,y,v)}}))})),b.remove(),r.drawLabels(g,y,o,d,h?v:null)}f&amp;&amp;!u&amp;&amp;p.remove()}(s,k,t,v,T),function(t,e,r,n,o){var s=n.trace,l=r._fullLayout._clips,c=&quot;clip&quot;+s.uid,u=l.selectAll(&quot;#&quot;+c).data(s.connectgaps?[]:[0]);if(u.enter().append(&quot;clipPath&quot;).classed(&quot;contourclip&quot;,!0).attr(&quot;id&quot;,c),u.exit().remove(),!1===s.connectgaps){var p={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};f([p]),h([p]),g([p],{type:&quot;levels&quot;}),i.ensureSingle(u,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,(p.prefixBoundary?&quot;M&quot;+o.join(&quot;L&quot;)+&quot;Z&quot;:&quot;&quot;)+y(p,o))}else c=null;a.setClipUrl(t,c,r)}(s,e,t,v,P)}))},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(&quot;g.contourlevel&quot;).data(e?r:[]);if(i.exit().remove(),i.enter().append(&quot;g&quot;).classed(&quot;contourlevel&quot;,!0),e){var o=i.selectAll(&quot;path.openline&quot;).data((function(t){return t.pedgepaths||t.edgepaths}));o.exit().remove(),o.enter().append(&quot;path&quot;).classed(&quot;openline&quot;,!0),o.attr(&quot;d&quot;,(function(t){return a.smoothopen(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;);var s=i.selectAll(&quot;path.closedline&quot;).data((function(t){return t.ppaths||t.paths}));s.exit().remove(),s.enter().append(&quot;path&quot;).classed(&quot;closedline&quot;,!0),s.attr(&quot;d&quot;,(function(t){return a.smoothclosed(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;)}return i},r.createLineClip=function(t,e,r,n){var i=e?&quot;clipline&quot;+n:null,o=r._fullLayout._clips.selectAll(&quot;#&quot;+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(&quot;clipPath&quot;).classed(&quot;contourlineclip&quot;,!0).attr(&quot;id&quot;,i),a.setClipUrl(t,i,r),o},r.labelFormatter=function(t,e){var r=t._fullLayout,n=e.trace,i=n.contours,a={type:&quot;linear&quot;,_id:&quot;ycontour&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;};if(i.labelformat)a.tickformat=i.labelformat,c(a,r);else{var s=o.extractOpts(n);if(s&amp;&amp;s.colorbar&amp;&amp;s.colorbar._axis)a=s.colorbar._axis;else{if(&quot;constraint&quot;===i.type){var u=i.value;Array.isArray(u)?a.range=[u[0],u[u.length-1]]:a.range=[u,u]}else a.range=[i.start,i.end],a.nticks=(i.end-i.start)/i.size;a.range[0]===a.range[1]&amp;&amp;(a.range[1]+=a.range[0]||1),a.nticks||(a.nticks=1e3),c(a,r),l.prepTicks(a),a._tmin=null,a._tmax=null}}return function(t){return l.tickText(a,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(s.convertToTspans,n);var o=r.node(),l=a.bBox(o,!0);return{text:i,width:l.width,height:l.height,fontSize:+o.style[&quot;font-size&quot;].replace(&quot;px&quot;,&quot;&quot;),level:t,dy:(l.top+l.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p&lt;v.ITERATIONS;p++){for(var d=o;d&lt;l;d+=s){var g=i.getTextLocation(t,e.total,d,f),m=x(g,r,n,a);m&lt;h&amp;&amp;(h=m,u=g,c=d)}if(h&gt;2*v.MAXCOST)break;p&amp;&amp;(s/=2),l=(o=c-s/2)+1.5*s}if(h&lt;=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),h=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},p=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(p)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll(&quot;text&quot;).data(e,(function(t){return t.text+&quot;,&quot;+t.x+&quot;,&quot;+t.y+&quot;,&quot;+t.theta}));if(l.exit().remove(),l.enter().append(&quot;text&quot;).attr({&quot;data-notex&quot;:1,&quot;text-anchor&quot;:&quot;middle&quot;}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:&quot;rotate(&quot;+180*t.theta/Math.PI+&quot; &quot;+e+&quot; &quot;+i+&quot;)&quot;}).call(s.convertToTspans,r)})),o){for(var c=&quot;&quot;,u=0;u&lt;o.length;u++)c+=&quot;M&quot;+o[u].join(&quot;L&quot;)+&quot;Z&quot;;i.ensureSingle(a,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,c)}}},{&quot;../../components/colorscale&quot;:678,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/set_convert&quot;:875,&quot;../heatmap/plot&quot;:1096,&quot;./close_boundaries&quot;:1030,&quot;./constants&quot;:1032,&quot;./convert_to_constraints&quot;:1036,&quot;./empty_pathinfo&quot;:1038,&quot;./find_all_paths&quot;:1040,&quot;./make_crossings&quot;:1045,&quot;@plotly/d3&quot;:58}],1047:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;);function a(t,e,r){var i={type:&quot;linear&quot;,range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t,e){var r=t.contours;if(t.autocontour){var o=t.zmin,s=t.zmax;(t.zauto||void 0===o)&amp;&amp;(o=i.aggNums(Math.min,null,e)),(t.zauto||void 0===s)&amp;&amp;(s=i.aggNums(Math.max,null,e));var l=a(o,s,t.ncontours);r.size=l.dtick,r.start=n.tickFirst(l),l.range.reverse(),r.end=n.tickFirst(l),r.start===o&amp;&amp;(r.start+=r.size),r.end===s&amp;&amp;(r.end-=r.size),r.start&gt;r.end&amp;&amp;(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if(&quot;constraint&quot;!==r.type){var c,u=r.start,f=r.end,h=t._input.contours;if(u&gt;f&amp;&amp;(r.start=h.start=f,f=r.end=h.end=u,u=r.start),!(r.size&gt;0))c=u===f?1:a(u,f,t.ncontours).dtick,h.size=r.size=c}}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],1048:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../heatmap/style&quot;),o=t(&quot;./make_color_map&quot;);e.exports=function(t){var e=n.select(t).selectAll(&quot;g.contour&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=&quot;constraint&quot;===a.type,f=!u&amp;&amp;&quot;lines&quot;===a.coloring,h=!u&amp;&amp;&quot;fill&quot;===a.coloring,p=f||h?o(r):null;e.selectAll(&quot;g.contourlevel&quot;).each((function(t){n.select(this).selectAll(&quot;path&quot;).call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)}));var d=a.labelfont;if(e.selectAll(&quot;g.contourlabels text&quot;).each((function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})})),u)e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,r.fillcolor);else if(h){var g;e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,(function(t){return void 0===g&amp;&amp;(g=t.level),p(t.level+.5*l)})),void 0===g&amp;&amp;(g=c),e.selectAll(&quot;g.contourbg path&quot;).style(&quot;fill&quot;,p(g-.5*l))}})),a(t)}},{&quot;../../components/drawing&quot;:688,&quot;../heatmap/style&quot;:1097,&quot;./make_color_map&quot;:1044,&quot;@plotly/d3&quot;:58}],1049:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/defaults&quot;),i=t(&quot;./label_defaults&quot;);e.exports=function(t,e,r,a,o){var s,l=r(&quot;contours.coloring&quot;),c=&quot;&quot;;&quot;fill&quot;===l&amp;&amp;(s=r(&quot;contours.showlines&quot;)),!1!==s&amp;&amp;(&quot;lines&quot;!==l&amp;&amp;(c=r(&quot;line.color&quot;,&quot;#000&quot;)),r(&quot;line.width&quot;,.5),r(&quot;line.dash&quot;)),&quot;none&quot;!==l&amp;&amp;(!0!==t.showlegend&amp;&amp;(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})),r(&quot;line.smoothing&quot;),i(r,a,c,o)}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;./label_defaults&quot;:1043}],1050:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=i.contours;e.exports=o({carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},transforms:void 0},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../contour/attributes&quot;:1028,&quot;../heatmap/attributes&quot;:1085}],1051:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../heatmap/convert_column_xyz&quot;),o=t(&quot;../heatmap/clean_2d_array&quot;),s=t(&quot;../heatmap/interp2d&quot;),l=t(&quot;../heatmap/find_empties&quot;),c=t(&quot;../heatmap/make_bound_array&quot;),u=t(&quot;./defaults&quot;),f=t(&quot;../carpet/lookup_carpetid&quot;),h=t(&quot;../contour/set_contours&quot;);e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){if(!e.a||!e.b){var p=t.data[r.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var g=function(t,e){var r,u,f,h,p,d,g,m=e._carpetTrace,v=m.aaxis,y=m.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&amp;&amp;a(e,v,y,&quot;a&quot;,&quot;b&quot;,[&quot;z&quot;]);r=e._a=e._a||e.a,h=e._b=e._b||e.b,r=r?v.makeCalcdata(e,&quot;_a&quot;):[],h=h?y.makeCalcdata(e,&quot;_b&quot;):[],u=e.a0||0,f=e.da||1,p=e.b0||0,d=e.db||1,g=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(g),s(g,e._emptypoints);var x=i.maxRowLength(g),b=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,_=c(e,b,u,f,x,v),w=&quot;scaled&quot;===e.ytype?&quot;&quot;:h,T=c(e,w,p,d,g.length,y),k={a:_,b:T,z:g};&quot;levels&quot;===e.contours.type&amp;&amp;&quot;none&quot;!==e.contours.coloring&amp;&amp;n(t,e,{vals:g,containerStr:&quot;&quot;,cLetter:&quot;z&quot;});return[k]}(t,e);return h(e,e._z),g}}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../lib&quot;:803,&quot;../carpet/lookup_carpetid&quot;:1001,&quot;../contour/set_contours&quot;:1047,&quot;../heatmap/clean_2d_array&quot;:1087,&quot;../heatmap/convert_column_xyz&quot;:1089,&quot;../heatmap/find_empties&quot;:1091,&quot;../heatmap/interp2d&quot;:1094,&quot;../heatmap/make_bound_array&quot;:1095,&quot;./defaults&quot;:1052}],1052:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../contour/constraint_defaults&quot;),s=t(&quot;../contour/contours_defaults&quot;),l=t(&quot;../contour/style_defaults&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(&quot;carpet&quot;),t.a&amp;&amp;t.b){if(!i(t,e,u,c,&quot;a&quot;,&quot;b&quot;))return void(e.visible=!1);u(&quot;text&quot;),&quot;constraint&quot;===u(&quot;contours.type&quot;)?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,(function(r){return n.coerce2(t,e,a,r)})),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{&quot;../../lib&quot;:803,&quot;../contour/constraint_defaults&quot;:1033,&quot;../contour/contours_defaults&quot;:1035,&quot;../contour/style_defaults&quot;:1049,&quot;../heatmap/xyz_defaults&quot;:1099,&quot;./attributes&quot;:1050}],1053:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../contour/colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../contour/style&quot;),moduleType:&quot;trace&quot;,name:&quot;contourcarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;contour&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;hasLines&quot;,&quot;carpetDependent&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../contour/colorbar&quot;:1031,&quot;../contour/style&quot;:1048,&quot;./attributes&quot;:1050,&quot;./calc&quot;:1051,&quot;./defaults&quot;:1052,&quot;./plot&quot;:1054}],1054:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../carpet/map_1d_array&quot;),a=t(&quot;../carpet/makepath&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../contour/make_crossings&quot;),c=t(&quot;../contour/find_all_paths&quot;),u=t(&quot;../contour/plot&quot;),f=t(&quot;../contour/constants&quot;),h=t(&quot;../contour/convert_to_constraints&quot;),p=t(&quot;../contour/empty_pathinfo&quot;),d=t(&quot;../contour/close_boundaries&quot;),g=t(&quot;../carpet/lookup_carpetid&quot;),m=t(&quot;../carpet/axis_aligned_line&quot;);function v(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,b){var _=e.xaxis,w=e.yaxis;s.makeTraceGroups(b,r,&quot;contour&quot;).each((function(r){var b=n.select(this),T=r[0],k=T.trace,A=k._carpetTrace=g(t,k),M=t.calcdata[A.index][0];if(A.visible&amp;&amp;&quot;legendonly&quot;!==A.visible){var S=T.a,E=T.b,L=k.contours,C=p(L,e,T),P=&quot;constraint&quot;===L.type,I=L._operation,O=P?&quot;=&quot;===I?&quot;lines&quot;:&quot;fill&quot;:L.coloring,z=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(C);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(C,D,R);var F,B,N,j,U=C;&quot;constraint&quot;===L.type&amp;&amp;(U=h(C,I)),function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r&lt;t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n&lt;a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i&lt;u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n&lt;a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i&lt;u.length;i++)c[i]=e(u[i]);s.push(c)}}}(C,H);var V=[];for(j=M.clipsegments.length-1;j&gt;=0;j--)F=M.clipsegments[j],B=i([],F.x,_.c2p),N=i([],F.y,w.c2p),B.reverse(),N.reverse(),V.push(a(B,N,F.bicubic));var q=&quot;M&quot;+V.join(&quot;L&quot;)+&quot;Z&quot;;!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;!==l||o?[]:[0]);p.enter().append(&quot;path&quot;),p.exit().remove();var d=[];for(h=0;h&lt;e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(&quot;d&quot;,&quot;M&quot;+d.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(b,M.clipsegments,_,w,P,O),function(t,e,r,i,a,l,c,u,f,h,p){var g=&quot;fill&quot;===h;g&amp;&amp;d(a,t.contours);var v=s.ensureSingle(e,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(g?a:[]);v.enter().append(&quot;path&quot;),v.exit().remove(),v.each((function(t){var e=(t.prefixBoundary?p:&quot;&quot;)+function(t,e,r,n,i,a,l,c){var u,f,h,p,d,g,v,y=&quot;&quot;,x=e.edgepaths.map((function(t,e){return e})),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function T(t){return Math.abs(t[1]-r[0][1])&lt;w}function k(t){return Math.abs(t[1]-r[2][1])&lt;w}function A(t){return Math.abs(t[0]-r[0][0])&lt;_}function M(t){return Math.abs(t[0]-r[2][0])&lt;_}function S(t,e){var r,n,o,s,u=&quot;&quot;;for(T(t)&amp;&amp;!M(t)||k(t)&amp;&amp;!A(t)?(s=i.aaxis,o=m(i,a,[t[0],e[0]],.5*(t[1]+e[1]))):(s=i.baxis,o=m(i,a,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r&lt;o.length;r++)for(u+=s.smoothing?&quot;C&quot;:&quot;L&quot;,n=0;n&lt;o[r].length;n++){var f=o[r][n];u+=[l.c2p(f[0]),c.c2p(f[1])]+&quot; &quot;}return u}u=0,f=null;for(;x.length;){var E=e.edgepaths[u][0];for(f&amp;&amp;(y+=S(f,E)),v=o.smoothopen(e.edgepaths[u].map(n),e.smoothing),y+=b?v:v.replace(/^M/,&quot;L&quot;),x.splice(x.indexOf(u),1),f=e.edgepaths[u][e.edgepaths[u].length-1],d=-1,p=0;p&lt;4;p++){if(!f){s.log(&quot;Missing end?&quot;,u,e);break}for(T(f)&amp;&amp;!M(f)?h=r[1]:A(f)?h=r[0]:k(f)?h=r[3]:M(f)&amp;&amp;(h=r[2]),g=0;g&lt;e.edgepaths.length;g++){var L=e.edgepaths[g][0];Math.abs(f[0]-h[0])&lt;_?Math.abs(f[0]-L[0])&lt;_&amp;&amp;(L[1]-f[1])*(h[1]-L[1])&gt;=0&amp;&amp;(h=L,d=g):Math.abs(f[1]-h[1])&lt;w?Math.abs(f[1]-L[1])&lt;w&amp;&amp;(L[0]-f[0])*(h[0]-L[0])&gt;=0&amp;&amp;(h=L,d=g):s.log(&quot;endpt to newendpt is not vert. or horz.&quot;,f,h,L)}if(d&gt;=0)break;y+=S(f,h),f=h}if(d===e.edgepaths.length){s.log(&quot;unclosed perimeter path&quot;);break}u=d,(b=-1===x.indexOf(u))&amp;&amp;(u=x[0],y+=S(f,h)+&quot;Z&quot;,f=null)}for(u=0;u&lt;e.paths.length;u++)y+=o.smoothclosed(e.paths[u].map(n),e.smoothing);return y}(0,t,l,c,u,f,r,i);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(k,b,_,w,U,z,H,A,M,O,q),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),p=!1!==a.showlines,d=a.showlabels,g=p&amp;&amp;d,m=u.createLines(h,p||d,e),b=u.createLineClip(h,g,r,i.trace.uid),_=t.selectAll(&quot;g.contourlabels&quot;).data(d?[0]:[]);if(_.exit().remove(),_.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),d){var w=l.xaxis,T=l.yaxis,k=w._length,A=T._length,M=[[[0,0],[k,0],[k,A],[0,A]]],S=[];s.clearLocationCache();var E=u.labelFormatter(r,i),L=o.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(o.font,a.labelfont),C={left:0,right:k,center:k/2,top:0,bottom:A,middle:A/2},P=Math.sqrt(k*k+A*A),I=f.LABELDISTANCE*P/Math.max(1,e.length/f.LABELINCREASE);m.each((function(t){var e=u.calcTextOpts(t.level,E,L,r);n.select(this).selectAll(&quot;path&quot;).each((function(r){var n=s.getVisibleSegment(this,C,e.height/2);if(n&amp;&amp;(function(t,e,r,n,i,a){for(var o,s=0;s&lt;r.pedgepaths.length;s++)e===r.pedgepaths[s]&amp;&amp;(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)&lt;.1||Math.abs(t[0]-c)&lt;.1)&amp;&amp;(r=y(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),(Math.abs(t[1]-u)&lt;.1||Math.abs(t[1]-f)&lt;.1)&amp;&amp;(r=y(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),n}var p=v(t,0,1),d=v(t,n.total,n.total-1),g=h(o[0],p),m=n.total-h(o[o.length-1],d);n.min&lt;g&amp;&amp;(n.min=g);n.max&gt;m&amp;&amp;(n.max=m);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len&lt;(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/I),f.LABELMAX),a=0;a&lt;i;a++){var o=u.findBestTextLocation(this,n,e,S,C);if(!o)break;u.addLabelData(o,e,S,M)}}))})),L.remove(),u.drawLabels(_,S,r,b,g?M:null)}d&amp;&amp;!p&amp;&amp;m.remove()}(b,C,t,T,L,e,A),o.setClipUrl(b,A._clipPathId,t)}function H(t){var e=A.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),w.c2p(e[1])]}}))}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../carpet/axis_aligned_line&quot;:985,&quot;../carpet/lookup_carpetid&quot;:1001,&quot;../carpet/makepath&quot;:1002,&quot;../carpet/map_1d_array&quot;:1003,&quot;../contour/close_boundaries&quot;:1030,&quot;../contour/constants&quot;:1032,&quot;../contour/convert_to_constraints&quot;:1036,&quot;../contour/empty_pathinfo&quot;:1038,&quot;../contour/find_all_paths&quot;:1040,&quot;../contour/make_crossings&quot;:1045,&quot;../contour/plot&quot;:1046,&quot;@plotly/d3&quot;:58}],1055:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../scattermapbox/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},radius:{valType:&quot;number&quot;,editType:&quot;plot&quot;,arrayOk:!0,min:1,dflt:30},below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scattermapbox/attributes&quot;:1283}],1056:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;../../lib&quot;)._;e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=e.z,u=i(c)&amp;&amp;c.length,f=0;f&lt;r;f++){var h=l[f]={},p=e.lon[f],d=e.lat[f];if(h.lonlat=n(p)&amp;&amp;n(d)?[+p,+d]:[a,a],u){var g=c[f];h.z=n(g)?g:a}}return o(t,e,{vals:u?c:[0,1],containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),r&amp;&amp;(l[0].t={labels:{lat:s(t,&quot;lat:&quot;)+&quot; &quot;,lon:s(t,&quot;lon:&quot;)+&quot; &quot;}}),l}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],1057:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;../../lib/geojson_utils&quot;).makeBlank;e.exports=function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,c=e._opts={heatmap:{layout:{visibility:&quot;none&quot;},paint:{}},geojson:l()};if(!r)return c;var u,f=[],h=e.z,p=e.radius,d=i.isArrayOrTypedArray(h)&amp;&amp;h.length,g=i.isArrayOrTypedArray(p);for(u=0;u&lt;t.length;u++){var m=t[u],v=m.lonlat;if(v[0]!==s){var y={};if(d){var x=m.z;y.z=x!==s?x:0}g&amp;&amp;(y.r=n(p[u])&amp;&amp;p[u]&gt;0?+p[u]:0),f.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:v},properties:y})}}var b=o.extractOpts(e),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,a.opacity(w)&lt;1?w:a.addOpacity(w,0)];for(u=1;u&lt;_.length;u++)T.push(_[u][0],_[u][1]);var k=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;get&quot;,&quot;z&quot;],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{&quot;heatmap-weight&quot;:d?k:1/(b.max-b.min),&quot;heatmap-color&quot;:T,&quot;heatmap-radius&quot;:g?{type:&quot;identity&quot;,property:&quot;r&quot;}:e.radius,&quot;heatmap-opacity&quot;:e.opacity}),c.geojson={type:&quot;FeatureCollection&quot;,features:f},c.heatmap.layout.visibility=&quot;visible&quot;,c}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale&quot;:678,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../lib/geojson_utils&quot;:797,&quot;fast-isnumeric&quot;:249}],1058:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;lon&quot;)||[],c=s(&quot;lat&quot;)||[],u=Math.min(l.length,c.length);u?(e._length=u,s(&quot;z&quot;),s(&quot;radius&quot;),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;./attributes&quot;:1055}],1059:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}},{}],1060:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../scattermapbox/hover&quot;).hoverPoints,a=t(&quot;../scattermapbox/hover&quot;).getExtraText;e.exports=function(t,e,r){var o=i(t,e,r);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,&quot;z&quot;in u){var f=s.subplot.mockAxis;s.z=u.z,s.zLabel=n.tickText(f,f.c2l(u.z),&quot;hover&quot;).text}return s.extraText=a(c,u,l[0].t.labels),[s]}}},{&quot;../../plots/cartesian/axes&quot;:854,&quot;../scattermapbox/hover&quot;:1288}],1061:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),formatLabels:t(&quot;../scattermapbox/format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n&lt;r.length;n++){var i=r[n],a=i.id;if(&quot;symbol&quot;===i.type&amp;&amp;&quot;string&quot;==typeof a&amp;&amp;-1===a.indexOf(&quot;plotly-&quot;))return a}},moduleType:&quot;trace&quot;,name:&quot;densitymapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;density_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:911,&quot;../heatmap/colorbar&quot;:1088,&quot;../scattermapbox/format_labels&quot;:1287,&quot;./attributes&quot;:1055,&quot;./calc&quot;:1056,&quot;./defaults&quot;:1058,&quot;./event_data&quot;:1059,&quot;./hover&quot;:1060,&quot;./plot&quot;:1062}],1062:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function a(t,e){this.type=&quot;densitymapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;heatmap&quot;,i+e+&quot;-heatmap&quot;]],this.below=null}var o=a.prototype;o.update=function(t){var e=this.subplot,r=this.layerList,i=n(t),a=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o&lt;r.length;o++){var s=r[o],l=s[0],c=s[1],u=i[l];e.setOptions(c,&quot;setLayoutProperty&quot;,u.layout),&quot;visible&quot;===u.layout.visibility&amp;&amp;e.setOptions(c,&quot;setPaintProperty&quot;,u.paint)}},o._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},o._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(o,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),i}},{&quot;../../plots/mapbox/constants&quot;:909,&quot;./convert&quot;:1057}],1063:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:803}],1064:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../bar/attributes&quot;),a=t(&quot;../scatter/attributes&quot;).line,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,u=t(&quot;./constants&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../components/color&quot;);e.exports={x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,xhoverformat:s(&quot;x&quot;),yhoverformat:s(&quot;y&quot;),hovertext:i.hovertext,hovertemplate:l({},{keys:u.eventDataKeys}),hoverinfo:f({},o.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;,&quot;value&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:c({editType:&quot;plot&quot;},{keys:u.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),text:i.text,textposition:i.textposition,insidetextanchor:f({},i.insidetextanchor,{dflt:&quot;middle&quot;}),textangle:f({},i.textangle,{dflt:0}),textfont:i.textfont,insidetextfont:i.insidetextfont,outsidetextfont:i.outsidetextfont,constraintext:i.constraintext,cliponaxis:i.cliponaxis,orientation:f({},i.orientation,{}),offset:f({},i.offset,{arrayOk:!1}),width:f({},i.width,{arrayOk:!1}),marker:(n=f({},i.marker),delete n.pattern,n),connector:{fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:f({},a.color,{dflt:h.defaultLine}),width:f({},a.width,{dflt:0,editType:&quot;plot&quot;}),dash:a.dash,editType:&quot;style&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup}},{&quot;../../components/color&quot;:666,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../bar/attributes&quot;:941,&quot;../scatter/attributes&quot;:1218,&quot;./constants&quot;:1066}],1065:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;./arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return t===s?0:t}e.exports=function(t,e){var r,c,u,f,h,p,d,g,m=n.getFromId(t,e.xaxis||&quot;x&quot;),v=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=m.makeCalcdata(e,&quot;x&quot;),u=v.makeCalcdata(e,&quot;y&quot;),f=i(e,v,&quot;y&quot;,u),h=!!e.yperiodalignment,p=&quot;y&quot;):(r=v.makeCalcdata(e,&quot;y&quot;),u=m.makeCalcdata(e,&quot;x&quot;),f=i(e,m,&quot;x&quot;,u),h=!!e.xperiodalignment,p=&quot;x&quot;),c=f.vals;var y,x=Math.min(c.length,r.length),b=new Array(x);for(e._base=[],d=0;d&lt;x;d++){r[d]&lt;0&amp;&amp;(r[d]=s);var _=!1;r[d]!==s&amp;&amp;d+1&lt;x&amp;&amp;r[d+1]!==s&amp;&amp;(_=!0),g=b[d]={p:c[d],s:r[d],cNext:_},e._base[d]=-.5*g.s,h&amp;&amp;(b[d].orig_p=u[d],b[d][p+&quot;End&quot;]=f.ends[d],b[d][p+&quot;Start&quot;]=f.starts[d]),e.ids&amp;&amp;(g.id=String(e.ids[d])),0===d&amp;&amp;(b[0].vTotal=0),b[0].vTotal+=l(g.s),g.begR=l(g.s)/l(b[0].s)}for(d=0;d&lt;x;d++)(g=b[d]).s!==s&amp;&amp;(g.sumR=g.s/b[0].vTotal,g.difR=void 0!==y?g.s/y:1,y=g.s);return a(b,e),o(b,e),b}},{&quot;../../constants/numerical&quot;:779,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/calc_selection&quot;:1220,&quot;./arrays_to_calcdata&quot;:1063}],1066:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;percentInitial&quot;,&quot;percentPrevious&quot;,&quot;percentTotal&quot;]}},{}],1067:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i],d=&quot;h&quot;===p.orientation;!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;funnel&quot;===p.type&amp;&amp;(r=s[i],d?h.push(r):f.push(r),u.push(r))}var g={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(n(t,l,c,f,g),n(t,c,l,h,g),i=0;i&lt;u.length;i++){r=u[i];for(var m=0;m&lt;r.length;m++)m+1&lt;r.length&amp;&amp;(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0,r[m].nextP1=r[m+1].p1,r[m].nextS1=r[m+1].s1)}}},{&quot;../bar/cross_trace_calc&quot;:944}],1068:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;);e.exports={supplyDefaults:function(t,e,r,i){function u(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,u)){s(t,e,i,u),u(&quot;xhoverformat&quot;),u(&quot;yhoverformat&quot;),u(&quot;orientation&quot;,e.y&amp;&amp;!e.x?&quot;v&quot;:&quot;h&quot;),u(&quot;offset&quot;),u(&quot;width&quot;);var f=u(&quot;text&quot;);u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);var h=u(&quot;textposition&quot;);a(t,e,i,u,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;===e.textposition||e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(f)?&quot;text+value&quot;:&quot;value&quot;);var p=u(&quot;marker.color&quot;,r);if(u(&quot;marker.line.color&quot;,c.defaultLine),u(&quot;marker.line.width&quot;),u(&quot;connector.visible&quot;))u(&quot;connector.fillcolor&quot;,function(t){var e=n.isArrayOrTypedArray(t)?&quot;#000&quot;:t;return c.addOpacity(e,.5*c.opacity(e))}(p)),u(&quot;connector.line.width&quot;)&amp;&amp;(u(&quot;connector.line.color&quot;),u(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.funnelmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../bar/defaults&quot;:945,&quot;../scatter/period_defaults&quot;:1238,&quot;../scatter/xy_defaults&quot;:1245,&quot;./attributes&quot;:1064}],1069:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;percentInitial&quot;in e&amp;&amp;(t.percentInitial=e.percentInitial),&quot;percentPrevious&quot;in e&amp;&amp;(t.percentPrevious=e.percentPrevious),&quot;percentTotal&quot;in e&amp;&amp;(t.percentTotal=e.percentTotal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1070:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;).opacity,i=t(&quot;../bar/hover&quot;).hoverOnBars,a=t(&quot;../../lib&quot;).formatPercent;e.exports=function(t,e,r,o,s){var l=i(t,e,r,o,s);if(l){var c=l.cd,u=c[0].trace,f=&quot;h&quot;===u.orientation,h=c[l.index];l[(f?&quot;x&quot;:&quot;y&quot;)+&quot;LabelVal&quot;]=h.s,l.percentInitial=h.begR,l.percentInitialLabel=a(h.begR,1),l.percentPrevious=h.difR,l.percentPreviousLabel=a(h.difR,1),l.percentTotal=h.sumR,l.percentTotalLabel=a(h.sumR,1);var p=h.hi||u.hoverinfo,d=[];if(p&amp;&amp;&quot;none&quot;!==p&amp;&amp;&quot;skip&quot;!==p){var g=&quot;all&quot;===p,m=p.split(&quot;+&quot;),v=function(t){return g||-1!==m.indexOf(t)};v(&quot;percent initial&quot;)&amp;&amp;d.push(l.percentInitialLabel+&quot; of initial&quot;),v(&quot;percent previous&quot;)&amp;&amp;d.push(l.percentPreviousLabel+&quot; of previous&quot;),v(&quot;percent total&quot;)&amp;&amp;d.push(l.percentTotalLabel+&quot; of total&quot;)}return l.extraText=d.join(&quot;&lt;br&gt;&quot;),l.color=function(t,e){var r=t.marker,i=e.mc||r.color,a=e.mlc||r.line.color,o=e.mlw||r.line.width;if(n(i))return i;if(n(a)&amp;&amp;o)return a}(u,h),[l]}}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../bar/hover&quot;:948}],1071:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;funnel&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../bar/select&quot;:953,&quot;./attributes&quot;:1064,&quot;./calc&quot;:1065,&quot;./cross_trace_calc&quot;:1067,&quot;./defaults&quot;:1068,&quot;./event_data&quot;:1069,&quot;./hover&quot;:1070,&quot;./layout_attributes&quot;:1072,&quot;./layout_defaults&quot;:1073,&quot;./plot&quot;:1074,&quot;./style&quot;:1075}],1072:[function(t,e,r){&quot;use strict&quot;;e.exports={funnelmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},funnelgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},funnelgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1073:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;funnel&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;funnelmode&quot;),o(&quot;funnelgap&quot;,.2),o(&quot;funnelgroupgap&quot;))}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1072}],1074:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;function c(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),i[3]=o.c2p(t.nextS1,!0),a[3]=s.c2p(t.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(t,e,r,u){var f=t._fullLayout;l(&quot;funnel&quot;,f),function(t,e,r,s){var l=e.xaxis,u=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),f=r[0].trace,h=i.ensureSingle(s,&quot;g&quot;,&quot;regions&quot;);if(f.connector&amp;&amp;f.connector.visible){var p=&quot;h&quot;===f.orientation,d=h.selectAll(&quot;g.region&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;region&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var f=c(r,l,u,p),h=f[0],d=f[1],m=&quot;&quot;;h[0]!==o&amp;&amp;d[0]!==o&amp;&amp;h[1]!==o&amp;&amp;d[1]!==o&amp;&amp;h[2]!==o&amp;&amp;d[2]!==o&amp;&amp;h[3]!==o&amp;&amp;d[3]!==o&amp;&amp;(m+=p?&quot;M&quot;+h[0]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[2]+&quot;H&quot;+h[3]+&quot;L&quot;+h[1]+&quot;,&quot;+d[1]+&quot;Z&quot;:&quot;M&quot;+h[1]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[3]+&quot;V&quot;+d[2]+&quot;L&quot;+h[1]+&quot;,&quot;+d[0]+&quot;Z&quot;),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else h.remove()}))}(t,e,r,u),function(t,e,r,o){var s=e.xaxis,l=e.yaxis;i.makeTraceGroups(o,r,&quot;trace bars&quot;).each((function(r){var o=n.select(this),u=r[0].trace,f=i.ensureSingle(o,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible&amp;&amp;u.connector.line.width){var h=&quot;h&quot;===u.orientation,p=f.selectAll(&quot;g.line&quot;).data(i.identity);p.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),p.exit().remove();var d=p.size();p.each((function(r,o){if(o===d-1||r.cNext){var u=c(r,s,l,h),f=u[0],p=u[1],g=&quot;&quot;;void 0!==f[3]&amp;&amp;void 0!==p[3]&amp;&amp;(h?(g+=&quot;M&quot;+f[0]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[3]+&quot;,&quot;+p[2]):(g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[3],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[0]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2])),&quot;&quot;===g&amp;&amp;(g=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,g).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,u),s.plot(t,e,r,u,{mode:f.funnelmode,norm:f.funnelmode,gap:f.funnelgap,groupgap:f.funnelgroupgap})}},{&quot;../../components/drawing&quot;:688,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../bar/plot&quot;:952,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1075:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.funnellayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;funnel&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.regions&quot;).each((function(){n.select(this).selectAll(&quot;path&quot;).style(&quot;stroke-width&quot;,0).call(a.fill,s.connector.fillcolor)})),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../constants/interactions&quot;:778,&quot;../bar/style&quot;:955,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1076:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;]}),texttemplate:s({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),hoverinfo:l({},i.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:o({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),textposition:l({},n.textposition,{values:[&quot;inside&quot;,&quot;none&quot;],dflt:&quot;inside&quot;}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;],dflt:&quot;top center&quot;}),editType:&quot;plot&quot;},domain:a({name:&quot;funnelarea&quot;,trace:!0,editType:&quot;calc&quot;}),aspectratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},baseratio:{valType:&quot;number&quot;,min:0,max:1,dflt:.333,editType:&quot;plot&quot;}}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/domain&quot;:882,&quot;../../plots/template_attributes&quot;:926,&quot;../pie/attributes&quot;:1192}],1077:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;funnelarea&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1078:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/calc&quot;);e.exports={calc:function(t,e){return n.calc(t,e)},crossTraceCalc:function(t){n.crossTraceCalc(t,{type:&quot;funnelarea&quot;})}}},{&quot;../pie/calc&quot;:1194}],1079:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../pie/defaults&quot;).handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c(&quot;labels&quot;),f=c(&quot;values&quot;),h=s(u,f),p=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),p){e._length=p,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;,l.paper_bgcolor),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var d,g=c(&quot;text&quot;),m=c(&quot;texttemplate&quot;);if(m||(d=c(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),m||d&amp;&amp;&quot;none&quot;!==d){var v=c(&quot;textposition&quot;);o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c(&quot;title.text&quot;)&amp;&amp;(c(&quot;title.position&quot;),n.coerceFont(c,&quot;title.font&quot;,l.font)),c(&quot;aspectratio&quot;),c(&quot;baseratio&quot;)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;../bar/defaults&quot;:945,&quot;../pie/defaults&quot;:1195,&quot;./attributes&quot;:1076}],1080:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;funnelarea&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;funnelarea&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOne:t(&quot;../pie/style_one&quot;),meta:{}}},{&quot;../pie/style_one&quot;:1203,&quot;./attributes&quot;:1076,&quot;./base_plot&quot;:1077,&quot;./calc&quot;:1078,&quot;./defaults&quot;:1079,&quot;./layout_attributes&quot;:1081,&quot;./layout_defaults&quot;:1082,&quot;./plot&quot;:1083,&quot;./style&quot;:1084}],1081:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/layout_attributes&quot;).hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendfunnelareacolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{&quot;../pie/layout_attributes&quot;:1199}],1082:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;funnelareacolorway&quot;,e.colorway),r(&quot;extendfunnelareacolors&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1081}],1083:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../lib&quot;),o=a.strScale,s=a.strTranslate,l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/plot&quot;).toMoveInsideBar,u=t(&quot;../bar/uniform_text&quot;),f=u.recordMinTextSize,h=u.clearMinTextSize,p=t(&quot;../pie/helpers&quot;),d=t(&quot;../pie/plot&quot;),g=d.attachFxHandlers,m=d.determineInsideTextFont,v=d.layoutAreas,y=d.prerenderTitles,x=d.positionTitleOutside,b=d.formatSliceLabel;function _(t,e){return&quot;l&quot;+(e[0]-t[0])+&quot;,&quot;+(e[1]-t[1])}e.exports=function(t,e){var r=t._fullLayout;h(&quot;funnelarea&quot;,r),y(e,t),v(e,r._size),a.makeTraceGroups(r._funnelarealayer,e,&quot;trace&quot;).each((function(e){var u=n.select(this),h=e[0],d=h.trace;!function(t){if(!t.length)return;var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i&gt;.999&amp;&amp;(i=.999);var a,o=Math.pow(i,2),s=e.vTotal,l=s,c=s*o/(1-o)/s;function u(){var t,e={x:t=Math.sqrt(c),y:-t};return[e.x,e.y]}var f,h,p=[];for(p.push(u()),f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var d=h.v/l;c+=d,p.push(u())}var g=1/0,m=-1/0;for(f=0;f&lt;p.length;f++)a=p[f],g=Math.min(g,a[1]),m=Math.max(m,a[1]);for(f=0;f&lt;p.length;f++)p[f][1]-=(m+g)/2;var v=p[p.length-1][0],y=e.r,x=(m-g)/2,b=y/v,_=y/x*n;for(e.r=_*x,f=0;f&lt;p.length;f++)p[f][0]*=b,p[f][1]*=_;var w=[-(a=p[0])[0],a[1]],T=[a[0],a[1]],k=0;for(f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var A=p[k+=1][0],M=p[k][1];h.TL=[-A,M],h.TR=[A,M],h.BL=w,h.BR=T,h.pxmid=(S=h.TR,E=h.BR,[.5*(S[0]+E[0]),.5*(S[1]+E[1])]),w=h.TL,T=h.TR}var S,E}(e),u.each((function(){var u=n.select(this).selectAll(&quot;g.slice&quot;).data(e);u.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{o.pointNumber=o.i,o.curveNumber=d.index;var u=h.cx,v=h.cy,y=n.select(this),x=y.selectAll(&quot;path.surface&quot;).data([o]);x.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),y.call(g,t,e);var w=&quot;M&quot;+(u+o.TR[0])+&quot;,&quot;+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+&quot;Z&quot;;x.attr(&quot;d&quot;,w),b(t,o,h);var T=p.castOption(d.textposition,o.pts),k=y.selectAll(&quot;g.slicetext&quot;).data(o.text&amp;&amp;&quot;none&quot;!==T?[0]:[]);k.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),k.exit().remove(),k.each((function(){var h=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),p=a.ensureUniformFontSize(t,m(d,o,r.font));h.text(o.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,p).call(l.convertToTspans,t);var g,y,x,b=i.bBox(h.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(g=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:&quot;middle&quot;})).fontSize=p.size,f(d.type,g,r),e[s].transform=g,h.attr(&quot;transform&quot;,a.getTextTransform(g))}))}}));var v=n.select(this).selectAll(&quot;g.titletext&quot;).data(d.title.text?[0]:[]);v.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),v.exit().remove(),v.each((function(){var e=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=d.title.text;d._meta&amp;&amp;(c=a.templateString(c,d._meta)),e.text(c).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,d.title.font).call(l.convertToTspans,t);var u=x(h,r._size);e.attr(&quot;transform&quot;,s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../bar/plot&quot;:952,&quot;../bar/uniform_text&quot;:957,&quot;../pie/helpers&quot;:1197,&quot;../pie/plot&quot;:1201,&quot;@plotly/d3&quot;:58}],1084:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../pie/style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;funnelarea&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:957,&quot;../pie/style_one&quot;:1203,&quot;@plotly/d3&quot;:58}],1085:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=l({z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},x:l({},n.x,{impliedEdits:{xtype:&quot;array&quot;}}),x0:l({},n.x0,{impliedEdits:{xtype:&quot;scaled&quot;}}),dx:l({},n.dx,{impliedEdits:{xtype:&quot;scaled&quot;}}),y:l({},n.y,{impliedEdits:{ytype:&quot;array&quot;}}),y0:l({},n.y0,{impliedEdits:{ytype:&quot;scaled&quot;}}),dy:l({},n.dy,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod:l({},n.xperiod,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod:l({},n.yperiod,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod0:l({},n.xperiod0,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod0:l({},n.yperiod0,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiodalignment:l({},n.xperiodalignment,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiodalignment:l({},n.yperiodalignment,{impliedEdits:{ytype:&quot;scaled&quot;}}),text:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transpose:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},xtype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},ytype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,&quot;best&quot;,!1],dflt:!1,editType:&quot;calc&quot;},hoverongaps:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;none&quot;},connectgaps:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},xgap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),zhoverformat:a(&quot;z&quot;,1),hovertemplate:o(),showlegend:l({},i.showlegend,{dflt:!1})},{transforms:void 0},s(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1086:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../histogram2d/calc&quot;),l=t(&quot;../../components/colorscale/calc&quot;),c=t(&quot;./convert_column_xyz&quot;),u=t(&quot;./clean_2d_array&quot;),f=t(&quot;./interp2d&quot;),h=t(&quot;./find_empties&quot;),p=t(&quot;./make_bound_array&quot;),d=t(&quot;../../constants/numerical&quot;).BADNUM;function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++){var i=t[n];i!==d&amp;&amp;e.push(i)}return e}e.exports=function(t,e){var r,m,v,y,x,b,_,w,T,k,A,M=a.getFromId(t,e.xaxis||&quot;x&quot;),S=a.getFromId(t,e.yaxis||&quot;y&quot;),E=n.traceIs(e,&quot;contour&quot;),L=n.traceIs(e,&quot;histogram&quot;),C=n.traceIs(e,&quot;gl2d&quot;),P=E?&quot;best&quot;:e.zsmooth;if(M._minDtick=0,S._minDtick=0,L)y=(A=s(t,e)).orig_x,r=A.x,m=A.x0,v=A.dx,w=A.orig_y,x=A.y,b=A.y0,_=A.dy,T=A.z;else{var I=e.z;i.isArray1D(I)?(c(e,M,S,&quot;x&quot;,&quot;y&quot;,[&quot;z&quot;]),r=e._x,x=e._y,I=e._z):(y=e.x?M.makeCalcdata(e,&quot;x&quot;):[],w=e.y?S.makeCalcdata(e,&quot;y&quot;):[],r=o(e,M,&quot;x&quot;,y).vals,x=o(e,S,&quot;y&quot;,w).vals,e._x=r,e._y=x),m=e.x0,v=e.dx,b=e.y0,_=e.dy,T=u(I,e,M,S)}function O(t){P=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: &quot;fast&quot;: '+t)}if((M.rangebreaks||S.rangebreaks)&amp;&amp;(T=function(t,e,r){for(var n=[],i=-1,a=0;a&lt;r.length;a++)if(e[a]!==d){i++,n[i]=[];for(var o=0;o&lt;r[a].length;o++)t[o]!==d&amp;&amp;n[i].push(r[a][o])}return n}(r,x,T),L||(r=g(r),x=g(x),e._x=r,e._y=x)),L||!E&amp;&amp;!e.connectgaps||(e._emptypoints=h(T),f(T,e._emptypoints)),&quot;fast&quot;===P)if(&quot;log&quot;===M.type||&quot;log&quot;===S.type)O(&quot;log axis found&quot;);else if(!L){if(r.length){var z=(r[r.length-1]-r[0])/(r.length-1),D=Math.abs(z/100);for(k=0;k&lt;r.length-1;k++)if(Math.abs(r[k+1]-r[k]-z)&gt;D){O(&quot;x scale is not linear&quot;);break}}if(x.length&amp;&amp;&quot;fast&quot;===P){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;k&lt;x.length-1;k++)if(Math.abs(x[k+1]-x[k]-R)&gt;F){O(&quot;y scale is not linear&quot;);break}}}var B=i.maxRowLength(T),N=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,j=p(e,N,m,v,B,M),U=&quot;scaled&quot;===e.ytype?&quot;&quot;:x,V=p(e,U,b,_,T.length,S);C||(e._extremes[M._id]=a.findExtremes(M,j),e._extremes[S._id]=a.findExtremes(S,V));var q={x:j,y:V,z:T,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&amp;&amp;y&amp;&amp;(q.orig_x=y),e.yperiodalignment&amp;&amp;w&amp;&amp;(q.orig_y=w),N&amp;&amp;N.length===j.length-1&amp;&amp;(q.xCenter=N),U&amp;&amp;U.length===V.length-1&amp;&amp;(q.yCenter=U),L&amp;&amp;(q.xRanges=A.xRanges,q.yRanges=A.yRanges,q.pts=A.pts),E||l(t,e,{vals:T,cLetter:&quot;z&quot;}),E&amp;&amp;e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring){var H={type:&quot;contour&quot;===e.type?&quot;heatmap&quot;:&quot;histogram2d&quot;,xcalendar:e.xcalendar,ycalendar:e.ycalendar};q.xfill=p(H,N,m,v,B,M),q.yfill=p(H,U,b,_,T.length,S)}return[q]}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;../histogram2d/calc&quot;:1118,&quot;./clean_2d_array&quot;:1087,&quot;./convert_column_xyz&quot;:1089,&quot;./find_empties&quot;:1091,&quot;./interp2d&quot;:1094,&quot;./make_bound_array&quot;:1095}],1087:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,h;function p(t){if(n(t))return+t}if(e&amp;&amp;e.transpose){for(s=0,f=0;f&lt;t.length;f++)s=Math.max(s,t[f].length);if(0===s)return!1;c=function(t){return t.length},u=function(t,e,r){return(t[r]||[])[e]}}else s=t.length,c=function(t,e){return t[e].length},u=function(t,e,r){return(t[e]||[])[r]};var d=function(t,e,r){return e===a||r===a?a:u(t,e,r)};function g(t){if(e&amp;&amp;&quot;carpet&quot;!==e.type&amp;&amp;&quot;contourcarpet&quot;!==e.type&amp;&amp;t&amp;&amp;&quot;category&quot;===t.type&amp;&amp;e[&quot;_&quot;+t._id.charAt(0)].length){var r=t._id.charAt(0),n={},o=e[&quot;_&quot;+r+&quot;CategoryMap&quot;]||e[r];for(f=0;f&lt;o.length;f++)n[o[f]]=f;return function(e){var r=n[t._categories[e]];return r+1?r:a}}return i.identity}var m=g(r),v=g(o);o&amp;&amp;&quot;category&quot;===o.type&amp;&amp;(s=o._categories.length);var y=new Array(s);for(f=0;f&lt;s;f++)for(l=r&amp;&amp;&quot;category&quot;===r.type?r._categories.length:c(t,f),y[f]=new Array(l),h=0;h&lt;l;h++)y[f][h]=p(d(t,v(f),m(h)));return y}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],1088:[function(t,e,r){&quot;use strict&quot;;e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;}},{}],1089:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/align_period&quot;);e.exports=function(t,e,r,o,s,l){var c=t._length,u=e.makeCalcdata(t,o),f=r.makeCalcdata(t,s);u=a(t,e,o,u).vals,f=a(t,r,s,f).vals;var h,p,d,g,m=t.text,v=void 0!==m&amp;&amp;n.isArray1D(m),y=t.hovertext,x=void 0!==y&amp;&amp;n.isArray1D(y),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(f),T=w.vals,k=[],A=T.length,M=_.length;for(h=0;h&lt;l.length;h++)k[h]=n.init2dArray(A,M);v&amp;&amp;(d=n.init2dArray(A,M)),x&amp;&amp;(g=n.init2dArray(A,M));var S=n.init2dArray(A,M);for(h=0;h&lt;c;h++)if(u[h]!==i&amp;&amp;f[h]!==i){var E=n.findBin(u[h]+b.minDiff/2,_),L=n.findBin(f[h]+w.minDiff/2,T);for(p=0;p&lt;l.length;p++){var C=t[l[p]];k[p][L][E]=C[h],S[L][E]=h}v&amp;&amp;(d[L][E]=m[h]),x&amp;&amp;(g[L][E]=y[h])}for(t[&quot;_&quot;+o]=_,t[&quot;_&quot;+s]=T,p=0;p&lt;l.length;p++)t[&quot;_&quot;+l[p]]=k[p];v&amp;&amp;(t._text=d),x&amp;&amp;(t._hovertext=g),e&amp;&amp;&quot;category&quot;===e.type&amp;&amp;(t[&quot;_&quot;+o+&quot;CategoryMap&quot;]=_.map((function(t){return e._categories[t]}))),r&amp;&amp;&quot;category&quot;===r.type&amp;&amp;(t[&quot;_&quot;+s+&quot;CategoryMap&quot;]=T.map((function(t){return r._categories[t]}))),t._after2before=S}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851}],1090:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./style_defaults&quot;),s=t(&quot;../../components/colorscale/defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}i(t,e,u,c)?(a(t,e,c,u),u(&quot;xhoverformat&quot;),u(&quot;yhoverformat&quot;),u(&quot;text&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;),o(t,e,u,c),u(&quot;hoverongaps&quot;),u(&quot;connectgaps&quot;,n.isArray1D(e.z)&amp;&amp;!1!==e.zsmooth),s(t,e,c,u,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../scatter/period_defaults&quot;:1238,&quot;./attributes&quot;:1085,&quot;./style_defaults&quot;:1098,&quot;./xyz_defaults&quot;:1099}],1091:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).maxRowLength;e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],g=[0,0,0],m=n(t);for(r=0;r&lt;t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i&lt;m;i++)void 0===d[i]&amp;&amp;((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&amp;&amp;s++,0===i&amp;&amp;s++,r===t.length-1&amp;&amp;s++,i===d.length-1&amp;&amp;s++,s&lt;4&amp;&amp;(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o&gt;=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&amp;&amp;(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw&quot;findEmpties iterated with no new neighbors&quot;;for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{&quot;../../lib&quot;:803}],1092:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts;e.exports=function(t,e,r,s,l){l||(l={});var c,u,f,h,p=l.isContour,d=t.cd[0],g=d.trace,m=t.xa,v=t.ya,y=d.x,x=d.y,b=d.z,_=d.xCenter,w=d.yCenter,T=d.zmask,k=g.zhoverformat,A=y,M=x;if(!1!==t.index){try{f=Math.round(t.index[1]),h=Math.round(t.index[0])}catch(e){return void i.error(&quot;Error hovering on heatmap, pointNumber must be [row,col], found:&quot;,t.index)}if(f&lt;0||f&gt;=b[0].length||h&lt;0||h&gt;b.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)&gt;0||n.inbox(r-x[0],r-x[x.length-1],0)&gt;0)return;if(p){var S;for(A=[2*y[0]-y[1]],S=1;S&lt;y.length;S++)A.push((y[S]+y[S-1])/2);for(A.push([2*y[y.length-1]-y[y.length-2]]),M=[2*x[0]-x[1]],S=1;S&lt;x.length;S++)M.push((x[S]+x[S-1])/2);M.push([2*x[x.length-1]-x[x.length-2]])}f=Math.max(0,Math.min(A.length-2,i.findBin(e,A))),h=Math.max(0,Math.min(M.length-2,i.findBin(r,M)))}var E,L,C=m.c2p(y[f]),P=m.c2p(y[f+1]),I=v.c2p(x[h]),O=v.c2p(x[h+1]);p?(E=d.orig_x||y,L=d.orig_y||x,P=C,c=E[f],O=I,u=L[h]):(E=d.orig_x||_||y,L=d.orig_y||w||x,c=_?E[f]:(E[f]+E[f+1])/2,u=w?L[h]:(L[h]+L[h+1])/2,m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(c=y[f]),v&amp;&amp;&quot;category&quot;===v.type&amp;&amp;(u=x[h]),g.zsmooth&amp;&amp;(C=P=m.c2p(c),I=O=v.c2p(u)));var z=b[h][f];if(T&amp;&amp;!T[h][f]&amp;&amp;(z=void 0),void 0!==z||g.hoverongaps){var D;Array.isArray(d.hovertext)&amp;&amp;Array.isArray(d.hovertext[h])?D=d.hovertext[h][f]:Array.isArray(d.text)&amp;&amp;Array.isArray(d.text[h])&amp;&amp;(D=d.text[h][f]);var R=o(g),F={type:&quot;linear&quot;,range:[R.min,R.max],hoverformat:k,_separators:m._separators,_numFormat:m._numFormat},B=a.tickText(F,z,&quot;hover&quot;).text;return[i.extendFlat(t,{index:g._after2before?g._after2before[h][f]:[h,f],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:C,x1:P,y0:I,y1:O,xLabelVal:c,yLabelVal:u,zLabelVal:z,zLabel:B,text:D})]}}},{&quot;../../components/colorscale&quot;:678,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],1093:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./colorbar&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmap&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:1085,&quot;./calc&quot;:1086,&quot;./colorbar&quot;:1088,&quot;./defaults&quot;:1090,&quot;./hover&quot;:1092,&quot;./plot&quot;:1096,&quot;./style&quot;:1097}],1094:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,g,m,v=0;for(s=0;s&lt;e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l&lt;4;l++)(u=t[a+(c=i[l])[0]])&amp;&amp;void 0!==(f=u[o+c[1]])&amp;&amp;(0===p?g=m=f:(g=Math.min(g,f),m=Math.max(m,f)),h++,p+=f);if(0===h)throw&quot;iterateInterp2d order is wrong: no defined neighbors&quot;;t[a][o]=p/h,void 0===d?h&lt;4&amp;&amp;(v=1):(t[a][o]=(1+r)*t[a][o]-r*d,m&gt;g&amp;&amp;(v=Math.max(v,Math.abs(t[a][o]-d)/(m-g))))}return v}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r&lt;e.length&amp;&amp;!(e[r][2]&lt;4);r++);for(e=e.slice(r),r=0;r&lt;100&amp;&amp;i&gt;.01;r++)i=o(t,e,a(i));return i&gt;.01&amp;&amp;n.log(&quot;interp2d didn't converge quickly&quot;,i),t}},{&quot;../../lib&quot;:803}],1095:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,&quot;contour&quot;),p=n.traceIs(t,&quot;histogram&quot;),d=n.traceIs(t,&quot;gl2d&quot;);if(i(e)&amp;&amp;e.length&gt;1&amp;&amp;!p&amp;&amp;&quot;category&quot;!==s.type){var g=e.length;if(!(g&lt;=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u&lt;g;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[g-1]-.5*e[g-2])}if(g&lt;o){var m=f[f.length-1],v=m-f[f.length-2];for(u=g;u&lt;o;u++)m+=v,f.push(m)}}else{var y=t[s._id.charAt(0)+&quot;calendar&quot;];if(p)l=s.r2c(r,0,y);else if(i(e)&amp;&amp;1===e.length)l=e[0];else if(void 0===r)l=0;else{l=(&quot;log&quot;===s.type?s.d2c:s.r2c)(r,0,y)}for(c=a||1,u=h||d?0:-.5;u&lt;o;u++)f.push(l+c*u)}return f}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],1096:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,l=t(&quot;../../constants/xmlns_namespaces&quot;);function c(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&amp;&amp;s!==r&amp;&amp;c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function u(t,e){var r=e.length-1,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a&lt;=0?{bin0:n,bin1:n,frac:0}:a&lt;.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function f(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,h){var p=e.xaxis,d=e.yaxis;o.makeTraceGroups(h,r,&quot;hm&quot;).each((function(e){var r,h,g,m,v,y,x=n.select(this),b=e[0],_=b.trace,w=b.z,T=b.x,k=b.y,A=b.xCenter,M=b.yCenter,S=a.traceIs(_,&quot;contour&quot;),E=S?&quot;best&quot;:_.zsmooth,L=w.length,C=o.maxRowLength(w),P=!1,I=!1;for(y=0;void 0===r&amp;&amp;y&lt;T.length-1;)r=p.c2p(T[y]),y++;for(y=T.length-1;void 0===h&amp;&amp;y&gt;0;)h=p.c2p(T[y]),y--;for(h&lt;r&amp;&amp;(g=h,h=r,r=g,P=!0),y=0;void 0===m&amp;&amp;y&lt;k.length-1;)m=d.c2p(k[y]),y++;for(y=k.length-1;void 0===v&amp;&amp;y&gt;0;)v=d.c2p(k[y]),y--;if(v&lt;m&amp;&amp;(g=m,m=v,v=g,I=!0),S&amp;&amp;(A=T,M=k,T=b.xfill,k=b.yfill),&quot;fast&quot;!==E){var O=&quot;best&quot;===E?0:.5;r=Math.max(-O*p._length,r),h=Math.min((1+O)*p._length,h),m=Math.max(-O*d._length,m),v=Math.min((1+O)*d._length,v)}var z=Math.round(h-r),D=Math.round(v-m);if(z&lt;=0||D&lt;=0){x.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var R,F;&quot;fast&quot;===E?(R=C,F=L):(R=z,F=D);var B=document.createElement(&quot;canvas&quot;);B.width=R,B.height=F;var N,j,U=B.getContext(&quot;2d&quot;),V=s(_,{noNumericCheck:!0,returnArray:!0});&quot;fast&quot;===E?(N=P?function(t){return C-1-t}:o.identity,j=I?function(t){return L-1-t}:o.identity):(N=function(t){return o.constrain(Math.round(p.c2p(T[t])-r),0,z)},j=function(t){return o.constrain(Math.round(d.c2p(k[t])-m),0,D)});var q,H,G,Y,W,X=j(0),Z=[X,X],J=P?0:1,K=I?0:1,Q=0,$=0,tt=0,et=0;if(E){var rt,nt=0;try{rt=new Uint8Array(z*D*4)}catch(t){rt=new Array(z*D*4)}if(&quot;best&quot;===E){var it,at,ot,st=A||T,lt=M||k,ct=new Array(st.length),ut=new Array(lt.length),ft=new Array(z),ht=A?u:c,pt=M?u:c;for(y=0;y&lt;st.length;y++)ct[y]=Math.round(p.c2p(st[y])-r);for(y=0;y&lt;lt.length;y++)ut[y]=Math.round(d.c2p(lt[y])-m);for(y=0;y&lt;z;y++)ft[y]=ht(y,ct);for(H=0;H&lt;D;H++)for(at=w[(it=pt(H,ut)).bin0],ot=w[it.bin1],y=0;y&lt;z;y++,nt+=4)f(rt,nt,W=kt(at,ot,ft[y],it))}else for(H=0;H&lt;L;H++)for(Y=w[H],Z=j(H),y=0;y&lt;z;y++)W=Tt(Y[y],1),f(rt,nt=4*(Z*z+N(y)),W);var dt=U.createImageData(z,D);try{dt.data.set(rt)}catch(t){var gt=dt.data,mt=gt.length;for(H=0;H&lt;mt;H++)gt[H]=rt[H]}U.putImageData(dt,0,0)}else{var vt=_.xgap,yt=_.ygap,xt=Math.floor(vt/2),bt=Math.floor(yt/2);for(H=0;H&lt;L;H++)if(Y=w[H],Z.reverse(),Z[K]=j(H+1),Z[0]!==Z[1]&amp;&amp;void 0!==Z[0]&amp;&amp;void 0!==Z[1])for(q=[G=N(0),G],y=0;y&lt;C;y++)q.reverse(),q[J]=N(y+1),q[0]!==q[1]&amp;&amp;void 0!==q[0]&amp;&amp;void 0!==q[1]&amp;&amp;(W=Tt(Y[y],(q[1]-q[0])*(Z[1]-Z[0])),U.fillStyle=&quot;rgba(&quot;+W.join(&quot;,&quot;)+&quot;)&quot;,U.fillRect(q[0]+xt,Z[0]+bt,q[1]-q[0]-vt,Z[1]-Z[0]-yt))}$=Math.round($/Q),tt=Math.round(tt/Q),et=Math.round(et/Q);var _t=i(&quot;rgb(&quot;+$+&quot;,&quot;+tt+&quot;,&quot;+et+&quot;)&quot;);t._hmpixcount=(t._hmpixcount||0)+Q,t._hmlumcount=(t._hmlumcount||0)+Q*_t.getLuminance();var wt=x.selectAll(&quot;image&quot;).data(e);wt.enter().append(&quot;svg:image&quot;).attr({xmlns:l.svg,preserveAspectRatio:&quot;none&quot;}),wt.attr({height:D,width:z,x:r,y:m,&quot;xlink:href&quot;:B.toDataURL(&quot;image/png&quot;)})}function Tt(t,e){if(void 0!==t){var r=V(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=e,$+=r[0]*e,tt+=r[1]*e,et+=r[2]*e,r}return[0,0,0,0]}function kt(t,e,r,n){var i=t[r.bin0];if(void 0===i)return Tt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,Tt(i+r.frac*c+n.frac*(u+r.frac*a))}}))}},{&quot;../../components/colorscale&quot;:678,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;@plotly/d3&quot;:58,tinycolor2:598}],1097:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.hm image&quot;).style(&quot;opacity&quot;,(function(t){return t.trace.opacity}))}},{&quot;@plotly/d3&quot;:58}],1098:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){!1===r(&quot;zsmooth&quot;)&amp;&amp;(r(&quot;xgap&quot;),r(&quot;ygap&quot;)),r(&quot;zhoverformat&quot;)}},{}],1099:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;);function o(t,e){var r=e(t);return&quot;scaled&quot;===(r?e(t+&quot;type&quot;,&quot;array&quot;):&quot;scaled&quot;)&amp;&amp;(e(t+&quot;0&quot;),e(&quot;d&quot;+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(&quot;z&quot;);if(l=l||&quot;x&quot;,c=c||&quot;y&quot;,void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){u=r(l),f=r(c);var p=i.minRowLength(u),d=i.minRowLength(f);if(0===p||0===d)return 0;e._length=Math.min(p,d,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s&lt;t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length&gt;0&amp;&amp;(a=!0);for(var l=0;l&lt;e.length;l++)if(n(e[l])){o=!0;break}}return r&amp;&amp;a&amp;&amp;o}(h))return 0;r(&quot;transpose&quot;),e._length=null}return&quot;heatmapgl&quot;===t.type||a.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[l,c],s),!0}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;fast-isnumeric&quot;:249}],1100:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=[&quot;z&quot;,&quot;x&quot;,&quot;x0&quot;,&quot;dx&quot;,&quot;y&quot;,&quot;y0&quot;,&quot;dy&quot;,&quot;text&quot;,&quot;transpose&quot;,&quot;xtype&quot;,&quot;ytype&quot;],l={},c=0;c&lt;s.length;c++){var u=s[c];l[u]=n[u]}l.zsmooth={valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:&quot;fast&quot;,editType:&quot;calc&quot;},a(l,i(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1})),e.exports=o(l,&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../heatmap/attributes&quot;:1085}],1101:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-heatmap2d&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib/str2rgbarray&quot;);function o(t,e){this.scene=t,this.uid=e,this.type=&quot;heatmapgl&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:&quot;fast&quot;,z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y,this.options.zsmooth=t.zsmooth;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l&lt;i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f&lt;4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c,u,f=this.scene.xaxis,h=this.scene.yaxis;!1===t.zsmooth&amp;&amp;(c={ppad:r.x[1]-r.x[0]},u={ppad:r.y[1]-r.y[0]}),t._extremes[f._id]=i.findExtremes(f,r.x,c),t._extremes[h._id]=i.findExtremes(h,r.y,u)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/cartesian/axes&quot;:854,&quot;gl-heatmap2d&quot;:278}],1102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s)?(l(&quot;text&quot;),l(&quot;zsmooth&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../heatmap/xyz_defaults&quot;:1099,&quot;./attributes&quot;:1100}],1103:[function(t,e,r){&quot;use strict&quot;;[&quot;*heatmapgl* trace is deprecated!&quot;,&quot;Please consider switching to the *heatmap* or *image* trace types.&quot;,&quot;Alternatively you could contribute/sponsor rewriting this trace type&quot;,&quot;based on cartesian features and using regl framework.&quot;].join(&quot; &quot;);e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmapgl&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;2dMap&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:894,&quot;../heatmap/calc&quot;:1086,&quot;../heatmap/colorbar&quot;:1088,&quot;./attributes&quot;:1100,&quot;./convert&quot;:1101,&quot;./defaults&quot;:1102}],1104:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;./bin_attributes&quot;),s=t(&quot;./constants&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),orientation:n.orientation,histfunc:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;min&quot;,&quot;max&quot;],dflt:&quot;count&quot;,editType:&quot;calc&quot;},histnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;percent&quot;,&quot;probability&quot;,&quot;density&quot;,&quot;probability density&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},cumulative:{enabled:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;increasing&quot;,&quot;decreasing&quot;],dflt:&quot;increasing&quot;,editType:&quot;calc&quot;},currentbin:{valType:&quot;enumerated&quot;,values:[&quot;include&quot;,&quot;exclude&quot;,&quot;half&quot;],dflt:&quot;include&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},nbinsx:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},xbins:o(&quot;x&quot;,!0),nbinsy:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},ybins:o(&quot;y&quot;,!0),autobinx:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},autobiny:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},bingroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:a({},{keys:s.eventDataKeys}),marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../bar/attributes&quot;:941,&quot;./bin_attributes&quot;:1106,&quot;./constants&quot;:1110}],1105:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=t.length,n=0,i=0;i&lt;r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],1106:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return{start:{valType:&quot;any&quot;,editType:&quot;calc&quot;},end:{valType:&quot;any&quot;,editType:&quot;calc&quot;},size:{valType:&quot;any&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}}},{}],1107:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&amp;&amp;(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&gt;a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&lt;a){var o=a-r[t];return r[t]=a,o}}return 0}}},{&quot;fast-isnumeric&quot;:249}],1108:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(&quot;../../plots/cartesian/axes&quot;).tickIncrement;function f(t,e,r,n){if(t*e&lt;=0)return 1/0;for(var i=Math.abs(e-t),a=&quot;date&quot;===r.type,o=h(i,a),s=0;s&lt;10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&amp;&amp;t&gt;c?t&gt;o?t&gt;1.1*i?i:t&gt;1.1*a?a:o:t&gt;s?s:t&gt;l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&amp;&amp;t&gt;o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)&gt;.1}function d(t,e,r){var n=e.c2d(t,i,r).split(&quot;-&quot;);return&quot;&quot;===n[0]&amp;&amp;(n.unshift(),n[0]=&quot;-&quot;+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],g=r[1],m=Math.min(f(d+h,d+p,n,a),f(g+h,g+p,n,a)),v=Math.min(f(d+c,d+h,n,a),f(g+c,g+h,n,a));if(m&gt;v&amp;&amp;v&lt;Math.abs(g-d)/4e3?(s=m,l=!1):(s=Math.min(m,v),l=!0),&quot;date&quot;===n.type&amp;&amp;s&gt;o){var y=s===i?1:6,x=s===i?&quot;M12&quot;:&quot;M1&quot;;return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(&quot;-&quot;,y);s&gt;0&amp;&amp;(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c&lt;e){var f=u(c,x,!1,a);(c+f)/2&lt;e+t&amp;&amp;(c=f)}return r&amp;&amp;l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10&lt;e&amp;&amp;n+.9*s&lt;e+t&amp;&amp;(n+=s),r&amp;&amp;l&amp;&amp;(n-=s),n}}},{&quot;../../constants/numerical&quot;:779,&quot;../../plots/cartesian/axes&quot;:854}],1109:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../bar/arrays_to_calcdata&quot;),l=t(&quot;./bin_functions&quot;),c=t(&quot;./norm_functions&quot;),u=t(&quot;./average&quot;),f=t(&quot;./bin_label_vals&quot;);function h(t,e,r,s,l){var c,u,f,p,d,g,m,v=s+&quot;bins&quot;,y=t._fullLayout,x=e[&quot;_&quot;+s+&quot;bingroup&quot;],b=y._histogramBinOpts[x],_=&quot;overlay&quot;===y.barmode,w=function(t){return r.r2c(t,0,p)},T=function(t){return r.c2r(t,0,p)},k=&quot;date&quot;===r.type?function(t){return t||0===t?i.cleanDate(t,null,p):null}:function(t){return n(t)?Number(t):null};function A(t,e,r){e[t+&quot;Found&quot;]?(e[t]=k(e[t]),null===e[t]&amp;&amp;(e[t]=r[t])):(g[t]=e[t]=r[t],i.nestedProperty(u[0],v+&quot;.&quot;+t).set(r[t]))}if(e[&quot;_&quot;+s+&quot;autoBinFinished&quot;])delete e[&quot;_&quot;+s+&quot;autoBinFinished&quot;];else{u=b.traces;var M=[],S=!0,E=!1,L=!1;for(c=0;c&lt;u.length;c++)if((f=u[c]).visible){var C=b.dirs[c];d=f[&quot;_&quot;+C+&quot;pos0&quot;]=r.makeCalcdata(f,C),M=i.concat(M,d),delete f[&quot;_&quot;+s+&quot;autoBinFinished&quot;],!0===e.visible&amp;&amp;(S?S=!1:(delete f._autoBin,f[&quot;_&quot;+s+&quot;autoBinFinished&quot;]=1),a.traceIs(f,&quot;2dMap&quot;)&amp;&amp;(E=!0),&quot;histogram2dcontour&quot;===f.type&amp;&amp;(L=!0))}p=u[0][s+&quot;calendar&quot;];var P=o.autoBin(M,r,b.nbins,E,p,b.sizeFound&amp;&amp;b.size),I=u[0]._autoBin={};if(g=I[b.dirs[0]]={},L&amp;&amp;(b.size||(P.start=T(o.tickIncrement(w(P.start),P.size,!0,p))),void 0===b.end&amp;&amp;(P.end=T(o.tickIncrement(w(P.end),P.size,!1,p)))),_&amp;&amp;!a.traceIs(e,&quot;2dMap&quot;)&amp;&amp;0===P._dataSpan&amp;&amp;&quot;category&quot;!==r.type&amp;&amp;&quot;multicategory&quot;!==r.type){if(l)return[P,d,!0];P=function(t,e,r,n,a){var o,s,l,c=t._fullLayout,u=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s&lt;o.length;s++){var l=o[s];&quot;histogram&quot;===l.type&amp;&amp;!0===l.visible&amp;&amp;l.orientation===i&amp;&amp;l.xaxis===r&amp;&amp;l.yaxis===n&amp;&amp;a.push(l)}return a}(t,e),f=!1,p=1/0,d=[e];for(o=0;o&lt;u.length;o++)if((s=u[o])===e)f=!0;else if(f){var g=h(t,s,r,n,!0),m=g[0],v=g[2];s[&quot;_&quot;+n+&quot;autoBinFinished&quot;]=1,s[&quot;_&quot;+n+&quot;pos0&quot;]=g[1],v?d.push(s):p=Math.min(p,m.size)}else l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]],p=Math.min(p,l.size||s[a].size);var y=new Array(d.length);for(o=0;o&lt;d.length;o++)for(var x=d[o][&quot;_&quot;+n+&quot;pos0&quot;],b=0;b&lt;x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}isFinite(p)||(p=i.distinctVals(y).minDiff);for(o=0;o&lt;d.length;o++){var _=(s=d[o])[n+&quot;calendar&quot;],w={start:r.c2r(y[o]-p/2,0,_),end:r.c2r(y[o]+p/2,0,_),size:p};s._input[a]=s[a]=w,(l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]])&amp;&amp;i.extendFlat(l,w)}return e[a]}(t,e,r,s,v)}(m=f.cumulative||{}).enabled&amp;&amp;&quot;include&quot;!==m.currentbin&amp;&amp;(&quot;decreasing&quot;===m.direction?P.start=T(o.tickIncrement(w(P.start),P.size,!0,p)):P.end=T(o.tickIncrement(w(P.end),P.size,!1,p))),b.size=P.size,b.sizeFound||(g.size=P.size,i.nestedProperty(u[0],v+&quot;.size&quot;).set(P.size)),A(&quot;start&quot;,b,P),A(&quot;end&quot;,b,P)}d=e[&quot;_&quot;+s+&quot;pos0&quot;],delete e[&quot;_&quot;+s+&quot;pos0&quot;];var O=e._input[v]||{},z=i.extendFlat({},b),D=b.start,R=r.r2l(O.start),F=void 0!==R;if((b.startFound||F)&amp;&amp;R!==r.r2l(D)){var B=F?R:i.aggNums(Math.min,null,d),N={type:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type?&quot;linear&quot;:r.type,r2l:r.r2l,dtick:b.size,tick0:D,calendar:p,range:[B,o.tickIncrement(B,b.size,!1,p)].map(r.l2r)},j=o.tickFirst(N);j&gt;r.r2l(B)&amp;&amp;(j=o.tickIncrement(j,b.size,!0,p)),z.start=r.l2r(j),F||i.nestedProperty(e,v+&quot;.start&quot;).set(z.start)}var U=b.end,V=r.r2l(O.end),q=void 0!==V;if((b.endFound||q)&amp;&amp;V!==r.r2l(U)){var H=q?V:i.aggNums(Math.max,null,d);z.end=r.l2r(H),q||i.nestedProperty(e,v+&quot;.start&quot;).set(z.end)}var G=&quot;autobin&quot;+s;return!1===e._input[G]&amp;&amp;(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[z,d]}e.exports={calc:function(t,e){var r,a,p,d,g=[],m=[],v=o.getFromId(t,&quot;h&quot;===e.orientation?e.yaxis:e.xaxis),y=&quot;h&quot;===e.orientation?&quot;y&quot;:&quot;x&quot;,x={x:&quot;y&quot;,y:&quot;x&quot;}[y],b=e[y+&quot;calendar&quot;],_=e.cumulative,w=h(t,e,v,y),T=w[0],k=w[1],A=&quot;string&quot;==typeof T.size,M=[],S=A?M:T,E=[],L=[],C=[],P=0,I=e.histnorm,O=e.histfunc,z=-1!==I.indexOf(&quot;density&quot;);_.enabled&amp;&amp;z&amp;&amp;(I=I.replace(/ ?density$/,&quot;&quot;),z=!1);var D,R=&quot;max&quot;===O||&quot;min&quot;===O?null:0,F=l.count,B=c[I],N=!1,j=function(t){return v.r2c(t,0,b)};for(i.isArrayOrTypedArray(e[x])&amp;&amp;&quot;count&quot;!==O&amp;&amp;(D=e[x],N=&quot;avg&quot;===O,F=l[O]),r=j(T.start),p=j(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r&lt;p&amp;&amp;g.length&lt;1e6&amp;&amp;(a=o.tickIncrement(r,T.size,!1,b),g.push((r+a)/2),m.push(R),C.push([]),M.push(r),z&amp;&amp;E.push(1/(a-r)),N&amp;&amp;L.push(0),!(a&lt;=r));)r=a;M.push(r),A||&quot;date&quot;!==v.type||(S={start:j(S.start),end:j(S.end),size:S.size}),t._fullLayout._roundFnOpts||(t._fullLayout._roundFnOpts={});var U=e[&quot;_&quot;+y+&quot;bingroup&quot;],V={leftGap:1/0,rightGap:1/0};U&amp;&amp;(t._fullLayout._roundFnOpts[U]||(t._fullLayout._roundFnOpts[U]=V),V=t._fullLayout._roundFnOpts[U]);var q,H=m.length,G=!0,Y=V.leftGap,W=V.rightGap,X={};for(r=0;r&lt;k.length;r++){var Z=k[r];(d=i.findBin(Z,S))&gt;=0&amp;&amp;d&lt;H&amp;&amp;(P+=F(d,r,m,D,L),G&amp;&amp;C[d].length&amp;&amp;Z!==k[C[d][0]]&amp;&amp;(G=!1),C[d].push(r),X[r]=d,Y=Math.min(Y,Z-M[d]),W=Math.min(W,M[d+1]-Z))}V.leftGap=Y,V.rightGap=W,G||(q=function(e,r){return function(){var n=t._fullLayout._roundFnOpts[U];return f(n.leftGap,n.rightGap,M,v,b)(e,r)}}),N&amp;&amp;(P=u(m,L)),B&amp;&amp;B(m,P,E),_.enabled&amp;&amp;function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(&quot;half&quot;===r)if(&quot;increasing&quot;===e)for(o(0),n=1;n&lt;t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n&gt;=0;n--)s(n);else if(&quot;increasing&quot;===e){for(n=1;n&lt;t.length;n++)t[n]+=t[n-1];&quot;exclude&quot;===r&amp;&amp;(t.unshift(0),t.pop())}else{for(n=t.length-2;n&gt;=0;n--)t[n]+=t[n+1];&quot;exclude&quot;===r&amp;&amp;(t.push(0),t.shift())}}(m,_.direction,_.currentbin);var J=Math.min(g.length,m.length),K=[],Q=0,$=J-1;for(r=0;r&lt;J;r++)if(m[r]){Q=r;break}for(r=J-1;r&gt;=Q;r--)if(m[r]){$=r;break}for(r=Q;r&lt;=$;r++)if(n(g[r])&amp;&amp;n(m[r])){var tt={p:g[r],s:m[r],b:0};_.enabled||(tt.pts=C[r],G?tt.ph0=tt.ph1=C[r].length?k[C[r][0]]:g[r]:(e._computePh=!0,tt.ph0=q(M[r]),tt.ph1=q(M[r+1],!0))),K.push(tt)}return 1===K.length&amp;&amp;(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,b)-K[0].p),s(K,e),i.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;i.tagSelected(K,e,X),K},calcAllAutoBins:h}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;../bar/arrays_to_calcdata&quot;:940,&quot;./average&quot;:1105,&quot;./bin_functions&quot;:1107,&quot;./bin_label_vals&quot;:1108,&quot;./norm_functions&quot;:1116,&quot;fast-isnumeric&quot;:249}],1110:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;binNumber&quot;]}},{}],1111:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../../registry&quot;).traceIs,o=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,s=n.nestedProperty,l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=[{aStr:{x:&quot;xbins.start&quot;,y:&quot;ybins.start&quot;},name:&quot;start&quot;},{aStr:{x:&quot;xbins.end&quot;,y:&quot;ybins.end&quot;},name:&quot;end&quot;},{aStr:{x:&quot;xbins.size&quot;,y:&quot;ybins.size&quot;},name:&quot;size&quot;},{aStr:{x:&quot;nbinsx&quot;,y:&quot;nbinsy&quot;},name:&quot;nbins&quot;}],u=[&quot;x&quot;,&quot;y&quot;];e.exports=function(t,e){var r,f,h,p,d,g,m,v=e._histogramBinOpts={},y=[],x={},b=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return&quot;v&quot;===t.orientation?&quot;x&quot;:&quot;y&quot;}function T(t,r,a){var o=t.uid+&quot;__&quot;+a;r||(r=o);var s=function(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+&quot;calendar&quot;]||&quot;&quot;,c=v[r],u=!0;c&amp;&amp;(s===c.axType&amp;&amp;l===c.calendar?(u=!1,c.traces.push(t),c.dirs.push(a)):(r=o,s!==c.axType&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set on a&quot;,&quot;type:&quot;+s,&quot;axis&quot;,&quot;with bins on&quot;,&quot;type:&quot;+c.axType,&quot;axis.&quot;].join(&quot; &quot;)),l!==c.calendar&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set with a&quot;,l,&quot;calendar&quot;,&quot;with bins&quot;,c.calendar?&quot;on a &quot;+c.calendar+&quot; calendar&quot;:&quot;w/o a set calendar&quot;].join(&quot; &quot;)))),u&amp;&amp;(v[r]={traces:[t],dirs:[a],axType:s,calendar:t[a+&quot;calendar&quot;]||&quot;&quot;}),t[&quot;_&quot;+a+&quot;bingroup&quot;]=r}for(d=0;d&lt;t.length;d++)r=t[d],a(r,&quot;histogram&quot;)&amp;&amp;(y.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,a(r,&quot;2dMap&quot;)||o(r._input,r,e,_));var k=e._alignmentOpts||{};for(d=0;d&lt;y.length;d++){if(r=y[d],h=&quot;&quot;,!a(r,&quot;2dMap&quot;)){if(p=w(r),&quot;group&quot;===e.barmode&amp;&amp;r.alignmentgroup){var A=r[p+&quot;axis&quot;],M=l(e,A)+r.orientation;(k[M]||{})[r.alignmentgroup]&amp;&amp;(h=M)}h||&quot;overlay&quot;===e.barmode||(h=l(e,r.xaxis)+l(e,r.yaxis)+w(r))}h?(x[h]||(x[h]=[]),x[h].push(r)):b.push(r)}for(h in x)if(1!==(f=x[h]).length){var S=!1;for(f.length&amp;&amp;(r=f[0],S=_(&quot;bingroup&quot;)),h=S||h,d=0;d&lt;f.length;d++){var E=(r=f[d])._input.bingroup;E&amp;&amp;E!==h&amp;&amp;n.warn([&quot;Trace&quot;,r.index,&quot;must match&quot;,&quot;within bingroup&quot;,h+&quot;.&quot;,&quot;Ignoring its bingroup:&quot;,E,&quot;setting.&quot;].join(&quot; &quot;)),r.bingroup=h,T(r,h,w(r))}}else b.push(f[0]);for(d=0;d&lt;b.length;d++){r=b[d];var L=_(&quot;bingroup&quot;);if(a(r,&quot;2dMap&quot;))for(m=0;m&lt;2;m++){var C=_((p=u[m])+&quot;bingroup&quot;,L?L+&quot;__&quot;+p:null);T(r,C,p)}else T(r,L,w(r))}for(h in v){var P=v[h];for(f=P.traces,g=0;g&lt;c.length;g++){var I,O,z=c[g],D=z.name;if(&quot;nbins&quot;!==D||!P.sizeFound){for(d=0;d&lt;f.length;d++){if(r=f[d],p=P.dirs[d],I=z.aStr[p],void 0!==s(r._input,I).get()){P[D]=_(I),P[D+&quot;Found&quot;]=!0;break}(O=(r._autoBin||{})[p]||{})[D]&amp;&amp;s(r,I).set(O[D])}if(&quot;start&quot;===D||&quot;end&quot;===D)for(;d&lt;f.length;d++)(r=f[d])[&quot;_&quot;+p+&quot;bingroup&quot;]&amp;&amp;_(I,(O=(r._autoBin||{})[p]||{})[D]);&quot;nbins&quot;!==D||P.sizeFound||P.nbinsFound||(r=f[0],P[D]=_(I))}}}}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../plots/cartesian/constraints&quot;:862,&quot;../../registry&quot;:931,&quot;../bar/defaults&quot;:945}],1112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../bar/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,n){return i.coerce(t,e,s,r,n)}var u=c(&quot;x&quot;),f=c(&quot;y&quot;);c(&quot;cumulative.enabled&quot;)&amp;&amp;(c(&quot;cumulative.direction&quot;),c(&quot;cumulative.currentbin&quot;)),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;);var h=c(&quot;orientation&quot;,f&amp;&amp;!u?&quot;h&quot;:&quot;v&quot;),p=&quot;v&quot;===h?&quot;x&quot;:&quot;y&quot;,d=&quot;v&quot;===h?&quot;y&quot;:&quot;x&quot;,g=u&amp;&amp;f?Math.min(i.minRowLength(u)&amp;&amp;i.minRowLength(f)):i.minRowLength(e[p]||[]);if(g){e._length=g,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],l),e[d]&amp;&amp;c(&quot;histfunc&quot;),c(&quot;histnorm&quot;),c(&quot;autobin&quot;+p),o(t,e,c,r,l),i.coerceSelectionMarkerOpacity(e,c);var m=(e.marker.line||{}).color,v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,m||a.defaultLine,{axis:&quot;y&quot;}),v(t,e,m||a.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;})}else e.visible=!1}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../bar/style_defaults&quot;:956,&quot;./attributes&quot;:1104}],1113:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;zLabelVal&quot;in e&amp;&amp;(t.z=e.zLabelVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s&lt;o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],1114:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/hover&quot;).hoverPoints,i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o){var s=n(t,e,r,a,o);if(s){var l=(t=s[0]).cd[t.index],c=t.cd[0].trace;if(!c.cumulative.enabled){var u=&quot;h&quot;===c.orientation?&quot;y&quot;:&quot;x&quot;;t[u+&quot;Label&quot;]=i(t[u+&quot;a&quot;],[l.ph0,l.ph1],c[u+&quot;hoverformat&quot;])}return s}}},{&quot;../../plots/cartesian/axes&quot;:854,&quot;../bar/hover&quot;:948}],1115:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../bar/layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),supplyLayoutDefaults:t(&quot;../bar/layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;../bar/cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;../bar/plot&quot;).plot,layerName:&quot;barlayer&quot;,style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,colorbar:t(&quot;../scatter/marker_colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;histogram&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../bar/cross_trace_calc&quot;:944,&quot;../bar/layout_attributes&quot;:950,&quot;../bar/layout_defaults&quot;:951,&quot;../bar/plot&quot;:952,&quot;../bar/select&quot;:953,&quot;../bar/style&quot;:955,&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1104,&quot;./calc&quot;:1109,&quot;./cross_trace_defaults&quot;:1111,&quot;./defaults&quot;:1112,&quot;./event_data&quot;:1113,&quot;./hover&quot;:1114}],1116:[function(t,e,r){&quot;use strict&quot;;e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i&lt;r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a&lt;i;a++)t[a]*=r[a]*n},&quot;probability density&quot;:function(t,e,r,n){var i=t.length;n&amp;&amp;(e/=n);for(var a=0;a&lt;i;a++)t[a]*=r[a]/e}}},{}],1117:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram/attributes&quot;),i=t(&quot;../histogram/bin_attributes&quot;),a=t(&quot;../heatmap/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=u({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{color:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(&quot;x&quot;),nbinsy:n.nbinsy,ybins:i(&quot;y&quot;),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:u({},n.bingroup,{}),xbingroup:u({},n.bingroup,{}),ybingroup:u({},n.bingroup,{}),xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,xhoverformat:s(&quot;x&quot;),yhoverformat:s(&quot;y&quot;),zhoverformat:s(&quot;z&quot;,1),hovertemplate:l({},{keys:&quot;z&quot;}),showlegend:u({},o.showlegend,{dflt:!1})},c(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../heatmap/attributes&quot;:1085,&quot;../histogram/attributes&quot;:1104,&quot;../histogram/bin_attributes&quot;:1106}],1118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../histogram/bin_functions&quot;),o=t(&quot;../histogram/norm_functions&quot;),s=t(&quot;../histogram/average&quot;),l=t(&quot;../histogram/bin_label_vals&quot;),c=t(&quot;../histogram/calc&quot;).calcAllAutoBins;function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i&lt;t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i&lt;t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s),u=l(r,n,t,i,a);for(o=0;o&lt;s;o++){var f=(e||[])[o];c[o]=void 0===f?[u(t[o]),u(t[o+1],!0)]:[f,f]}return c}e.exports=function(t,e){var r,l,p,d,g=i.getFromId(t,e.xaxis),m=i.getFromId(t,e.yaxis),v=e.xcalendar,y=e.ycalendar,x=function(t){return g.r2c(t,0,v)},b=function(t){return m.r2c(t,0,y)},_=c(t,e,g,&quot;x&quot;),w=_[0],T=_[1],k=c(t,e,m,&quot;y&quot;),A=k[0],M=k[1],S=e._length;T.length&gt;S&amp;&amp;T.splice(S,T.length-S),M.length&gt;S&amp;&amp;M.splice(S,M.length-S);var E=[],L=[],C=[],P=&quot;string&quot;==typeof w.size,I=&quot;string&quot;==typeof A.size,O=[],z=[],D=P?O:w,R=I?z:A,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf(&quot;density&quot;),q=&quot;max&quot;===U||&quot;min&quot;===U?null:0,H=a.count,G=o[j],Y=!1,W=[],X=[],Z=&quot;z&quot;in e?e.z:&quot;marker&quot;in e&amp;&amp;Array.isArray(e.marker.color)?e.marker.color:&quot;&quot;;Z&amp;&amp;&quot;count&quot;!==U&amp;&amp;(Y=&quot;avg&quot;===U,H=a[U]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-i.tickIncrement(K,J,!1,v))/1e6;for(r=K;r&lt;Q;r=i.tickIncrement(r,J,!1,v))L.push(q),O.push(r),Y&amp;&amp;C.push(0);O.push(r);var $,tt=L.length,et=(r-K)/tt,rt=($=K+et/2,g.c2r($,0,v)),nt=A.size,it=b(A.start),at=b(A.end)+(it-i.tickIncrement(it,nt,!1,y))/1e6;for(r=it;r&lt;at;r=i.tickIncrement(r,nt,!1,y)){E.push(L.slice()),z.push(r);var ot=new Array(tt);for(l=0;l&lt;tt;l++)ot[l]=[];N.push(ot),Y&amp;&amp;B.push(C.slice())}z.push(r);var st=E.length,lt=(r-it)/st,ct=function(t){return m.c2r(t,0,y)}(it+lt/2);V&amp;&amp;(W=u(L.length,D,et,P),X=u(E.length,R,lt,I)),P||&quot;date&quot;!==g.type||(D=f(x,D)),I||&quot;date&quot;!==m.type||(R=f(b,R));var ut=!0,ft=!0,ht=new Array(tt),pt=new Array(st),dt=1/0,gt=1/0,mt=1/0,vt=1/0;for(r=0;r&lt;S;r++){var yt=T[r],xt=M[r];p=n.findBin(yt,D),d=n.findBin(xt,R),p&gt;=0&amp;&amp;p&lt;tt&amp;&amp;d&gt;=0&amp;&amp;d&lt;st&amp;&amp;(F+=H(p,r,E[d],Z,B[d]),N[d][p].push(r),ut&amp;&amp;(void 0===ht[p]?ht[p]=yt:ht[p]!==yt&amp;&amp;(ut=!1)),ft&amp;&amp;(void 0===pt[d]?pt[d]=xt:pt[d]!==xt&amp;&amp;(ft=!1)),dt=Math.min(dt,yt-O[p]),gt=Math.min(gt,O[p+1]-yt),mt=Math.min(mt,xt-z[d]),vt=Math.min(vt,z[d+1]-xt))}if(Y)for(d=0;d&lt;st;d++)F+=s(E[d],B[d]);if(G)for(d=0;d&lt;st;d++)G(E[d],F,W,X[d]);return{x:T,xRanges:h(O,ut&amp;&amp;ht,dt,gt,g,v),x0:rt,dx:et,y:M,yRanges:h(z,ft&amp;&amp;pt,mt,vt,m,y),y0:ct,dy:lt,z:E,pts:N}}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../histogram/average&quot;:1105,&quot;../histogram/bin_functions&quot;:1107,&quot;../histogram/bin_label_vals&quot;:1108,&quot;../histogram/calc&quot;:1109,&quot;../histogram/norm_functions&quot;:1116}],1119:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./sample_defaults&quot;),a=t(&quot;../heatmap/style_defaults&quot;),o=t(&quot;../../components/colorscale/defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,l),o(t,e,l,c,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),c(&quot;hovertemplate&quot;),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;))}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../heatmap/style_defaults&quot;:1098,&quot;./attributes&quot;:1117,&quot;./sample_defaults&quot;:1122}],1120:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/hover&quot;),i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o){var s=n(t,e,r,a,o);if(s){var l=(t=s[0]).index,c=l[0],u=l[1],f=t.cd[0],h=f.trace,p=f.xRanges[u],d=f.yRanges[c];return t.xLabel=i(t.xa,[p[0],p[1]],h.xhoverformat),t.yLabel=i(t.ya,[d[0],d[1]],h.yhoverformat),s}}},{&quot;../../plots/cartesian/axes&quot;:854,&quot;../heatmap/hover&quot;:1092}],1121:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;../heatmap/plot&quot;),layerName:&quot;heatmaplayer&quot;,colorbar:t(&quot;../heatmap/colorbar&quot;),style:t(&quot;../heatmap/style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;../histogram/event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2d&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../heatmap/calc&quot;:1086,&quot;../heatmap/colorbar&quot;:1088,&quot;../heatmap/plot&quot;:1096,&quot;../heatmap/style&quot;:1097,&quot;../histogram/cross_trace_defaults&quot;:1111,&quot;../histogram/event_data&quot;:1113,&quot;./attributes&quot;:1117,&quot;./defaults&quot;:1119,&quot;./hover&quot;:1120}],1122:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=i.minRowLength(o),c=i.minRowLength(s);l&amp;&amp;c?(e._length=Math.min(l,c),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a),(r(&quot;z&quot;)||r(&quot;marker.color&quot;))&amp;&amp;r(&quot;histfunc&quot;),r(&quot;histnorm&quot;),r(&quot;autobinx&quot;),r(&quot;autobiny&quot;)):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],1123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram2d/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:{color:i.line.color,width:s({},i.line.width,{dflt:.5}),dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),zhoverformat:o(&quot;z&quot;,1),hovertemplate:n.hovertemplate},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../contour/attributes&quot;:1028,&quot;../histogram2d/attributes&quot;:1117}],1124:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../histogram2d/sample_defaults&quot;),a=t(&quot;../contour/contours_defaults&quot;),o=t(&quot;../contour/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,(function(r){return n.coerce2(t,e,s,r)})),o(t,e,c,l),c(&quot;hovertemplate&quot;),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;))}},{&quot;../../lib&quot;:803,&quot;../contour/contours_defaults&quot;:1035,&quot;../contour/style_defaults&quot;:1049,&quot;../histogram2d/sample_defaults&quot;:1122,&quot;./attributes&quot;:1123}],1125:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../contour/calc&quot;),plot:t(&quot;../contour/plot&quot;).plot,layerName:&quot;contourlayer&quot;,style:t(&quot;../contour/style&quot;),colorbar:t(&quot;../contour/colorbar&quot;),hoverPoints:t(&quot;../contour/hover&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2dcontour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../contour/calc&quot;:1029,&quot;../contour/colorbar&quot;:1031,&quot;../contour/hover&quot;:1041,&quot;../contour/plot&quot;:1046,&quot;../contour/style&quot;:1048,&quot;../histogram/cross_trace_defaults&quot;:1111,&quot;./attributes&quot;:1123,&quot;./defaults&quot;:1124}],1126:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;../treemap/attributes&quot;),u=t(&quot;../treemap/constants&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;plot&quot;},flip:c.tiling.flip,pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:f({colors:l.marker.colors,line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:l.leaf,pathbar:c.pathbar,text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:u.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:u.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:c.outsidetextfont,textposition:c.textposition,sort:s.sort,root:l.root,domain:o({name:&quot;icicle&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/domain&quot;:882,&quot;../../plots/template_attributes&quot;:926,&quot;../pie/attributes&quot;:1192,&quot;../sunburst/attributes&quot;:1330,&quot;../treemap/attributes&quot;:1356,&quot;../treemap/constants&quot;:1359}],1127:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;icicle&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;icicle&quot;,t)}},{&quot;../sunburst/calc&quot;:1332}],1129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var g=h(&quot;values&quot;);g&amp;&amp;g.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),h(&quot;tiling.orientation&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var m=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;),h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor),h(&quot;marker.colors&quot;);var y=e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;y&amp;&amp;f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),h(&quot;leaf.opacity&quot;,y?1:.7),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;../bar/constants&quot;:943,&quot;../bar/defaults&quot;:945,&quot;./attributes&quot;:1126}],1130:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;../treemap/constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var g=d.width,m=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,A=d.makeUpdateTextInterpolator,M=d.prevEntry,S=t._fullLayout,E=e[0].trace,L=-1!==E.textposition.indexOf(&quot;left&quot;),C=-1!==E.textposition.indexOf(&quot;right&quot;),P=-1!==E.textposition.indexOf(&quot;bottom&quot;),I=s(r,[g,m],{flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,orientation:E.tiling.orientation,pad:{inner:E.tiling.pad},maxDepth:E._maxDepth}).descendants(),O=1/0,z=-1/0;I.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(O=Math.min(O,e),z=Math.max(z,e))})),p=p.data(I,u.getPtId),E._maxVisibleLayers=isFinite(z)?z-O+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[g,m],x),p.order();var D=null;if(w&amp;&amp;M){var R=u.getPtId(M);p.each((function(t){null===D&amp;&amp;u.getPtId(t)===R&amp;&amp;(D={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var F=function(){return D||{x0:0,x1:g,y0:0,y1:m}},B=p;return w&amp;&amp;(B=B.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),B.each((function(s){s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-E.tiling.pad),s._hoverY=y(P?s.y1-E.tiling.pad/2:s.y0+E.tiling.pad/2);var p=n.select(this),d=i.ensureSingle(p,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?d.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,F(),[g,m],{orientation:E.tiling.orientation,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1});return function(t){return x(e(t))}})):d.attr(&quot;d&quot;,x),p.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),d.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=h(s,r,E,e,S)||&quot;&quot;;var T=i.ensureSingle(p,&quot;g&quot;,&quot;slicetext&quot;),M=i.ensureSingle(T,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),I=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));M.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,C?&quot;end&quot;:L?&quot;start&quot;:&quot;middle&quot;).call(a.font,I).call(o.convertToTspans,t),s.textBB=a.bBox(M.node()),s.transform=b(s,{fontSize:I.size}),s.transform.fontSize=I.size,w?M.transition().attrTween(&quot;transform&quot;,(function(t){var e=A(t,!1,F(),[g,m]);return function(t){return _(e(t))}})):M.attr(&quot;transform&quot;,_(s))})),D}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../sunburst/fx&quot;:1335,&quot;../sunburst/helpers&quot;:1336,&quot;../sunburst/plot&quot;:1340,&quot;../treemap/constants&quot;:1359,&quot;./partition&quot;:1134,&quot;./style&quot;:1136,&quot;@plotly/d3&quot;:58}],1131:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;icicle&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1126,&quot;./base_plot&quot;:1127,&quot;./calc&quot;:1128,&quot;./defaults&quot;:1129,&quot;./layout_attributes&quot;:1132,&quot;./layout_defaults&quot;:1133,&quot;./plot&quot;:1135,&quot;./style&quot;:1136}],1132:[function(t,e,r){&quot;use strict&quot;;e.exports={iciclecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendiciclecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1133:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;iciclecolorway&quot;,e.colorway),r(&quot;extendiciclecolors&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1132}],1134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;../treemap/flip_tree&quot;);e.exports=function(t,e,r){var a=r.flipX,o=r.flipY,s=&quot;h&quot;===r.orientation,l=r.maxDepth,c=e[0],u=e[1];l&amp;&amp;(c=(t.height+1)*e[0]/Math.min(t.height+1,l),u=(t.height+1)*e[1]/Math.min(t.height+1,l));var f=n.partition().padding(r.pad.inner).size(s?[e[1],c]:[e[0],u])(t);return(s||a||o)&amp;&amp;i(f,e,{swapXY:s,flipX:a,flipY:o}),f}},{&quot;../treemap/flip_tree&quot;:1364,&quot;d3-hierarchy&quot;:170}],1135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../treemap/draw&quot;),i=t(&quot;./draw_descendants&quot;);e.exports=function(t,e,r,a){return n(t,e,r,a,{type:&quot;icicle&quot;,drawDescendants:i})}},{&quot;../treemap/draw&quot;:1361,&quot;./draw_descendants&quot;:1130}],1136:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._iciclelayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;icicle&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1137:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;./constants&quot;).colormodel,s=[&quot;rgb&quot;,&quot;rgba&quot;,&quot;rgba256&quot;,&quot;hsl&quot;,&quot;hsla&quot;],l=[],c=[],u=0;u&lt;s.length;u++){var f=o[s[u]];l.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zminDflt||f.min).join(&quot;, &quot;)+&quot;].&quot;),c.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zmaxDflt||f.max).join(&quot;, &quot;)+&quot;].&quot;)}e.exports=a({source:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},colormodel:{valType:&quot;enumerated&quot;,values:s,editType:&quot;calc&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:!1,editType:&quot;plot&quot;},zmin:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},zmax:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hoverinfo:a({},n.hoverinfo,{flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;color&quot;,&quot;name&quot;,&quot;text&quot;],dflt:&quot;x+y+z+text+name&quot;}),hovertemplate:i({},{keys:[&quot;z&quot;,&quot;color&quot;,&quot;colormodel&quot;]}),transforms:void 0})},{&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;./constants&quot;:1139}],1138:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../lib&quot;).maxRowLength,l=t(&quot;./helpers&quot;).getImageSize;function c(t,e,r,i){return function(a){return n.constrain((a-t)*e,r,i)}}function u(t,e){return function(r){return n.constrain(r,t,e)}}e.exports=function(t,e){var r,n;if(e._hasZ)r=e.z.length,n=s(e.z);else if(e._hasSource){var f=l(e.source);r=f.height,n=f.width}var h,p=o.getFromId(t,e.xaxis||&quot;x&quot;),d=o.getFromId(t,e.yaxis||&quot;y&quot;),g=p.d2c(e.x0)-e.dx/2,m=d.d2c(e.y0)-e.dy/2,v=[g,g+n*e.dx],y=[m,m+r*e.dy];if(p&amp;&amp;&quot;log&quot;===p.type)for(h=0;h&lt;n;h++)v.push(g+h*e.dx);if(d&amp;&amp;&quot;log&quot;===d.type)for(h=0;h&lt;r;h++)y.push(m+h*e.dy);return e._extremes[p._id]=o.findExtremes(p,v),e._extremes[d._id]=o.findExtremes(d,y),e._scaler=function(t){var e=i.colormodel[t.colormodel],r=(e.colormodel||t.colormodel).length;t._sArray=[];for(var n=0;n&lt;r;n++)e.min[n]!==t.zmin[n]||e.max[n]!==t.zmax[n]?t._sArray.push(c(t.zmin[n],(e.max[n]-e.min[n])/(t.zmax[n]-t.zmin[n]),e.min[n],e.max[n])):t._sArray.push(u(e.min[n],e.max[n]));return function(e){for(var n=e.slice(0,r),i=0;i&lt;r;i++){var o=n[i];if(!a(o))return!1;n[i]=t._sArray[i](o)}return n}}(e),[{x0:g,y0:m,z:e.z,w:n,h:r}]}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;./constants&quot;:1139,&quot;./helpers&quot;:1142,&quot;fast-isnumeric&quot;:249}],1139:[function(t,e,r){&quot;use strict&quot;;e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(t){return t.slice(0,3)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba256:{colormodel:&quot;rgba&quot;,zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(t){var e=t.slice(0,3);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(t){var e=t.slice(0,4);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;,&quot;&quot;]}},pixelatedStyle:[&quot;image-rendering: optimizeSpeed&quot;,&quot;image-rendering: -moz-crisp-edges&quot;,&quot;image-rendering: -o-crisp-edges&quot;,&quot;image-rendering: -webkit-optimize-contrast&quot;,&quot;image-rendering: optimize-contrast&quot;,&quot;image-rendering: crisp-edges&quot;,&quot;image-rendering: pixelated&quot;,&quot;&quot;].join(&quot;; &quot;)}},{}],1140:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX;e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;source&quot;),e.source&amp;&amp;!e.source.match(o)&amp;&amp;delete e.source,e._hasSource=!!e.source;var s,l=r(&quot;z&quot;);(e._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),e._hasZ||e._hasSource)?(r(&quot;x0&quot;),r(&quot;y0&quot;),r(&quot;dx&quot;),r(&quot;dy&quot;),e._hasZ?(r(&quot;colormodel&quot;,&quot;rgb&quot;),r(&quot;zmin&quot;,(s=a.colormodel[e.colormodel]).zminDflt||s.min),r(&quot;zmax&quot;,s.zmaxDflt||s.max)):e._hasSource&amp;&amp;(e.colormodel=&quot;rgba256&quot;,s=a.colormodel[e.colormodel],e.zmin=s.zminDflt,e.zmax=s.zmaxDflt),r(&quot;zsmooth&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;),r(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../snapshot/helpers&quot;:935,&quot;./attributes&quot;:1137,&quot;./constants&quot;:1139}],1141:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t.color=e.color,t.colormodel=e.trace.colormodel,t.z||(t.z=e.color),t}},{}],1142:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;probe-image-size/sync&quot;),i=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX,a=t(&quot;buffer/&quot;).Buffer;r.getImageSize=function(t){var e=t.replace(i,&quot;&quot;),r=new a(e,&quot;base64&quot;);return n(r)}},{&quot;../../snapshot/helpers&quot;:935,&quot;buffer/&quot;:117,&quot;probe-image-size/sync&quot;:527}],1143:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./constants&quot;);e.exports=function(t,e,r){var o=t.cd[0],s=o.trace,l=t.xa,c=t.ya;if(!(n.inbox(e-o.x0,e-(o.x0+o.w*s.dx),0)&gt;0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)&gt;0)){var u,f=Math.floor((e-o.x0)/s.dx),h=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[h][f]:s._hasSource&amp;&amp;(u=s._canvas.el.getContext(&quot;2d&quot;).getImageData(f,h,1,1).data),u){var p,d=o.hi||s.hoverinfo;if(d){var g=d.split(&quot;+&quot;);-1!==g.indexOf(&quot;all&quot;)&amp;&amp;(g=[&quot;color&quot;]),-1!==g.indexOf(&quot;color&quot;)&amp;&amp;(p=!0)}var m,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||p)&amp;&amp;(w.push(&quot;[&quot;+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(&quot;, &quot;)),4===x&amp;&amp;w.push(&quot;, &quot;+b[3]+_[3]),w.push(&quot;]&quot;),w=w.join(&quot;&quot;),t.extraText=y.toUpperCase()+&quot;: &quot;+w),Array.isArray(s.hovertext)&amp;&amp;Array.isArray(s.hovertext[h])?m=s.hovertext[h][f]:Array.isArray(s.text)&amp;&amp;Array.isArray(s.text[h])&amp;&amp;(m=s.text[h][f]);var T=c.c2p(o.y0+(h+.5)*s.dy),k=o.x0+(f+.5)*s.dx,A=o.y0+(h+.5)*s.dy,M=&quot;[&quot;+u.slice(0,s.colormodel.length).join(&quot;, &quot;)+&quot;]&quot;;return[i.extendFlat(t,{index:[h,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:A,yLabelVal:A,zLabelVal:M,text:m,hovertemplateLabels:{zLabel:M,colorLabel:w,&quot;color[0]Label&quot;:b[0]+_[0],&quot;color[1]Label&quot;:b[1]+_[1],&quot;color[2]Label&quot;:b[2]+_[2],&quot;color[3]Label&quot;:b[3]+_[3]}})]}}}},{&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;./constants&quot;:1139}],1144:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;image&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;noSortingByValue&quot;],animatable:!1,meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:1137,&quot;./calc&quot;:1138,&quot;./defaults&quot;:1140,&quot;./event_data&quot;:1141,&quot;./hover&quot;:1143,&quot;./plot&quot;:1145,&quot;./style&quot;:1146}],1145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;./constants&quot;),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,h=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,&quot;im&quot;).each((function(e){var r=n.select(this),l=e[0],c=l.trace,p=(&quot;fast&quot;===c.zsmooth||!1===c.zsmooth&amp;&amp;h)&amp;&amp;!c._hasZ&amp;&amp;c._hasSource&amp;&amp;&quot;linear&quot;===u.type&amp;&amp;&quot;linear&quot;===f.type;c._realImage=p;var d,g,m,v,y,x,b=l.z,_=l.x0,w=l.y0,T=l.w,k=l.h,A=c.dx,M=c.dy;for(x=0;void 0===d&amp;&amp;x&lt;T;)d=u.c2p(_+x*A),x++;for(x=T;void 0===g&amp;&amp;x&gt;0;)g=u.c2p(_+x*A),x--;for(x=0;void 0===v&amp;&amp;x&lt;k;)v=f.c2p(w+x*M),x++;for(x=k;void 0===y&amp;&amp;x&gt;0;)y=f.c2p(w+x*M),x--;if(g&lt;d&amp;&amp;(m=g,g=d,d=m),y&lt;v&amp;&amp;(m=v,v=y,y=m),!p){d=Math.max(-.5*u._length,d),g=Math.min(1.5*u._length,g),v=Math.max(-.5*f._length,v),y=Math.min(1.5*f._length,y)}var S=Math.round(g-d),E=Math.round(y-v);if(S&lt;=0||E&lt;=0){r.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var L=r.selectAll(&quot;image&quot;).data([e]);L.enter().append(&quot;svg:image&quot;).attr({xmlns:o.svg,preserveAspectRatio:&quot;none&quot;}),L.exit().remove();var C=!1===c.zsmooth?s.pixelatedStyle:&quot;&quot;;if(p){var P=i.simpleMap(u.range,u.r2l),I=i.simpleMap(f.range,f.r2l),O=P[1]&lt;P[0],z=I[1]&gt;I[0];if(O||z){var D=d+S/2,R=v+E/2;C+=&quot;transform:&quot;+a(D+&quot;px&quot;,R+&quot;px&quot;)+&quot;scale(&quot;+(O?-1:1)+&quot;,&quot;+(z?-1:1)+&quot;)&quot;+a(-D+&quot;px&quot;,-R+&quot;px&quot;)+&quot;;&quot;}}L.attr(&quot;style&quot;,C);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&amp;&amp;c._canvas.el.width===T&amp;&amp;c._canvas.el.height===k&amp;&amp;c._canvas.source===c.source)t();else{var e=document.createElement(&quot;canvas&quot;);e.width=T,e.height=k;var r=e.getContext(&quot;2d&quot;);c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute(&quot;src&quot;,c.source)}})).then((function(){var t;if(c._hasZ)t=B((function(t,e){return b[e][t]})).toDataURL(&quot;image/png&quot;);else if(c._hasSource)if(p)t=c.source;else{var e=c._canvas.el.getContext(&quot;2d&quot;).getImageData(0,0,T,k).data;t=B((function(t,r){var n=4*(r*T+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL(&quot;image/png&quot;)}L.attr({&quot;xlink:href&quot;:t,height:E,width:S,x:d,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement(&quot;canvas&quot;);e.width=S,e.height=E;var r,n=e.getContext(&quot;2d&quot;),a=function(t){return i.constrain(Math.round(u.c2p(_+t*A)-d),0,S)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*M)-v),0,E)},h=s.colormodel[c.colormodel],p=h.colormodel||c.colormodel,g=h.fmt;for(x=0;x&lt;l.w;x++){var m=a(x),y=a(x+1);if(y!==m&amp;&amp;!isNaN(y)&amp;&amp;!isNaN(m))for(var b=0;b&lt;l.h;b++){var T=o(b),k=o(b+1);k===T||isNaN(k)||isNaN(T)||!t(x,b)||(r=c._scaler(t(x,b)),n.fillStyle=r?p+&quot;(&quot;+g(r).join(&quot;,&quot;)+&quot;)&quot;:&quot;rgba(0,0,0,0)&quot;,n.fillRect(m,T,y-m,k-T))}}return e}}))}},{&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;./constants&quot;:1139,&quot;@plotly/d3&quot;:58}],1146:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.im image&quot;).style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity}))}},{&quot;@plotly/d3&quot;:58}],1147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../lib/extend&quot;).extendDeep,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/color/attributes&quot;),l=t(&quot;../../plots/domain&quot;).attributes,c=t(&quot;../../plots/cartesian/layout_attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../constants/delta.js&quot;),h=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionOnlyNumbers,p=o({editType:&quot;plot&quot;,colorEditType:&quot;plot&quot;}),d={color:{valType:&quot;color&quot;,editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},thickness:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;plot&quot;},editType:&quot;calc&quot;},g={valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},m=u(&quot;step&quot;,i({},d,{range:g}));e.exports={mode:{valType:&quot;flaglist&quot;,editType:&quot;calc&quot;,flags:[&quot;number&quot;,&quot;delta&quot;,&quot;gauge&quot;],dflt:&quot;number&quot;},value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,anim:!0},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},domain:l({name:&quot;indicator&quot;,trace:!0,editType:&quot;calc&quot;}),title:{text:{valType:&quot;string&quot;,editType:&quot;plot&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},font:n({},p,{}),editType:&quot;plot&quot;},number:{valueformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;,description:h(&quot;value&quot;)},font:n({},p,{}),prefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},suffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;},delta:{reference:{valType:&quot;number&quot;,editType:&quot;calc&quot;},position:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},relative:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;,dflt:!1},valueformat:{valType:&quot;string&quot;,editType:&quot;plot&quot;,description:h(&quot;value&quot;)},increasing:{symbol:{valType:&quot;string&quot;,dflt:f.INCREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.INCREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},decreasing:{symbol:{valType:&quot;string&quot;,dflt:f.DECREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.DECREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},font:n({},p,{}),editType:&quot;calc&quot;},gauge:{shape:{valType:&quot;enumerated&quot;,editType:&quot;plot&quot;,dflt:&quot;angular&quot;,values:[&quot;angular&quot;,&quot;bullet&quot;]},bar:i({},d,{color:{dflt:&quot;green&quot;}}),bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},axis:a({range:g,visible:n({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:n({},c.ticks,{dflt:&quot;outside&quot;}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:&quot;plot&quot;},&quot;plot&quot;),steps:m,threshold:{line:{color:n({},d.line.color,{}),width:n({},d.line.width,{dflt:1}),editType:&quot;plot&quot;},thickness:n({},d.thickness,{dflt:.85}),value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:!1},editType:&quot;plot&quot;},editType:&quot;plot&quot;}}},{&quot;../../components/color/attributes&quot;:665,&quot;../../constants/delta.js&quot;:773,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883}],1148:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;indicator&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1149:[function(t,e,r){&quot;use strict&quot;;e.exports={calc:function(t,e){var r=[],n=e.value;&quot;number&quot;!=typeof e._lastValue&amp;&amp;(e._lastValue=e.value);var i=e._lastValue,a=i;return e._hasDelta&amp;&amp;&quot;number&quot;==typeof e.delta.reference&amp;&amp;(a=e.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}}},{}],1150:[function(t,e,r){&quot;use strict&quot;;e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},{}],1151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./constants.js&quot;),c=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),u=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),f=t(&quot;../../plots/cartesian/tick_label_defaults&quot;);function h(t,e){function r(r,a){return n.coerce(t,e,i.gauge.steps,r,a)}r(&quot;color&quot;),r(&quot;line.color&quot;),r(&quot;line.width&quot;),r(&quot;range&quot;),r(&quot;thickness&quot;)}e.exports={supplyDefaults:function(t,e,r,p){function d(r,a){return n.coerce(t,e,i,r,a)}a(e,p,d),d(&quot;mode&quot;),e._hasNumber=-1!==e.mode.indexOf(&quot;number&quot;),e._hasDelta=-1!==e.mode.indexOf(&quot;delta&quot;),e._hasGauge=-1!==e.mode.indexOf(&quot;gauge&quot;);var g=d(&quot;value&quot;);e._range=[0,&quot;number&quot;==typeof g?1.5*g:1];var m,v,y,x,b,_,w=new Array(2);function T(t,e){return n.coerce(y,x,i.gauge,t,e)}function k(t,e){return n.coerce(b,_,i.gauge.axis,t,e)}if(e._hasNumber&amp;&amp;(d(&quot;number.valueformat&quot;),d(&quot;number.font.color&quot;,p.font.color),d(&quot;number.font.family&quot;,p.font.family),d(&quot;number.font.size&quot;),void 0===e.number.font.size&amp;&amp;(e.number.font.size=l.defaultNumberFontSize,w[0]=!0),d(&quot;number.prefix&quot;),d(&quot;number.suffix&quot;),m=e.number.font.size),e._hasDelta&amp;&amp;(d(&quot;delta.font.color&quot;,p.font.color),d(&quot;delta.font.family&quot;,p.font.family),d(&quot;delta.font.size&quot;),void 0===e.delta.font.size&amp;&amp;(e.delta.font.size=(e._hasNumber?.5:1)*(m||l.defaultNumberFontSize),w[1]=!0),d(&quot;delta.reference&quot;,e.value),d(&quot;delta.relative&quot;),d(&quot;delta.valueformat&quot;,e.delta.relative?&quot;2%&quot;:&quot;&quot;),d(&quot;delta.increasing.symbol&quot;),d(&quot;delta.increasing.color&quot;),d(&quot;delta.decreasing.symbol&quot;),d(&quot;delta.decreasing.color&quot;),d(&quot;delta.position&quot;),v=e.delta.font.size),e._scaleNumbers=(!e._hasNumber||w[0])&amp;&amp;(!e._hasDelta||w[1])||!1,d(&quot;title.font.color&quot;,p.font.color),d(&quot;title.font.family&quot;,p.font.family),d(&quot;title.font.size&quot;,.25*(m||v||l.defaultNumberFontSize)),d(&quot;title.text&quot;),e._hasGauge){(y=t.gauge)||(y={}),x=o.newContainer(e,&quot;gauge&quot;),T(&quot;shape&quot;),(e._isBullet=&quot;bullet&quot;===e.gauge.shape)||d(&quot;title.align&quot;,&quot;center&quot;),(e._isAngular=&quot;angular&quot;===e.gauge.shape)||d(&quot;align&quot;,&quot;center&quot;),T(&quot;bgcolor&quot;,p.paper_bgcolor),T(&quot;borderwidth&quot;),T(&quot;bordercolor&quot;),T(&quot;bar.color&quot;),T(&quot;bar.line.color&quot;),T(&quot;bar.line.width&quot;),T(&quot;bar.thickness&quot;,l.valueThickness*(&quot;bullet&quot;===e.gauge.shape?.5:1)),s(y,x,{name:&quot;steps&quot;,handleItemDefaults:h}),T(&quot;threshold.value&quot;),T(&quot;threshold.thickness&quot;),T(&quot;threshold.line.width&quot;),T(&quot;threshold.line.color&quot;),b={},y&amp;&amp;(b=y.axis||{}),_=o.newContainer(x,&quot;axis&quot;),k(&quot;visible&quot;),e._range=k(&quot;range&quot;,e._range);var A={outerTicks:!0};c(b,_,k,&quot;linear&quot;),f(b,_,k,&quot;linear&quot;,A),u(b,_,k,A)}else d(&quot;title.align&quot;,&quot;center&quot;),d(&quot;align&quot;,&quot;center&quot;),e._isAngular=e._isBullet=!1;e._length=null}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/tick_label_defaults&quot;:876,&quot;../../plots/cartesian/tick_mark_defaults&quot;:877,&quot;../../plots/cartesian/tick_value_defaults&quot;:878,&quot;../../plots/domain&quot;:882,&quot;./attributes&quot;:1147,&quot;./constants.js&quot;:1150}],1152:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;indicator&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;svg&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],animatable:!0,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),meta:{}}},{&quot;./attributes&quot;:1147,&quot;./base_plot&quot;:1148,&quot;./calc&quot;:1149,&quot;./defaults&quot;:1151,&quot;./plot&quot;:1153}],1153:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-interpolate&quot;).interpolate,a=t(&quot;d3-interpolate&quot;).interpolateNumber,o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strTranslate,c=o.rad2deg,u=t(&quot;../../constants/alignment&quot;).MID_SHIFT,f=t(&quot;../../components/drawing&quot;),h=t(&quot;./constants&quot;),p=t(&quot;../../lib/svg_text_utils&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../plots/cartesian/axis_defaults&quot;),m=t(&quot;../../plots/cartesian/position_defaults&quot;),v=t(&quot;../../plots/cartesian/layout_attributes&quot;),y=t(&quot;../../components/color&quot;),x={left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;},b={left:0,center:.5,right:1},_=/[yzafpn\xb5mkMGTPEZY]/;function w(t){return t&amp;&amp;t.duration&gt;0}function T(t){t.each((function(t){y.stroke(n.select(this),t.line.color)})).each((function(t){y.fill(n.select(this),t.color)})).style(&quot;stroke-width&quot;,(function(t){return t.line.width}))}function k(t,e,r){var n=t._fullLayout,i=o.extendFlat({type:&quot;linear&quot;,ticks:&quot;outside&quot;,range:r,showline:!0},e),a={type:&quot;linear&quot;,_id:&quot;x&quot;+e._id},s={letter:&quot;x&quot;,font:n.font,noHover:!0,noTickson:!0};function l(t,e){return o.coerce(i,a,v,t,e)}return g(i,a,l,s,n),m(i,a,l,s),a}function A(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+&quot;x&quot;+r]}function M(t,e,r,i){var a=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;text&quot;),o=n.select(a);return o.text(t).attr(&quot;x&quot;,0).attr(&quot;y&quot;,0).attr(&quot;text-anchor&quot;,r).attr(&quot;data-unformatted&quot;,t).call(p.convertToTspans,i).call(f.font,e),f.bBox(o.node())}function S(t,e,r,n,i,a){var s=&quot;_cache&quot;+e;t[s]&amp;&amp;t[s].key===i||(t[s]={key:i,value:r});var l=o.aggNums(a,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,g){var m,v=t._fullLayout;w(r)&amp;&amp;g&amp;&amp;(m=g()),o.makeTraceGroups(v._indicatorlayer,e,&quot;trace&quot;).each((function(e){var g,E,L,C,P,I=e[0].trace,O=n.select(this),z=I._hasGauge,D=I._isAngular,R=I._isBullet,F=I.domain,B={w:v._size.w*(F.x[1]-F.x[0]),h:v._size.h*(F.y[1]-F.y[0]),l:v._size.l+v._size.w*F.x[0],r:v._size.r+v._size.w*(1-F.x[1]),t:v._size.t+v._size.h*(1-F.y[1]),b:v._size.b+v._size.h*F.y[0]},N=B.l+B.w/2,j=B.t+B.h/2,U=Math.min(B.w/2,B.h),V=h.innerRadius*U,q=I.align||&quot;center&quot;;if(E=j,z){if(D&amp;&amp;(g=N,E=j+U/2,L=function(t){return function(t,e){var r=Math.sqrt(t.width/2*(t.width/2)+t.height*t.height);return[e/r,t,e]}(t,.9*V)}),R){var H=h.bulletPadding,G=1-h.bulletNumberDomainSize+H;g=B.l+(G+(1-G)*b[q])*B.w,L=function(t){return A(t,(h.bulletNumberDomainSize-H)*B.w,B.h)}}}else g=B.l+b[q]*B.w,L=function(t){return A(t,B.w,B.h)};!function(t,e,r,i){var c,u,h,g=r[0].trace,m=i.numbersX,v=i.numbersY,T=g.align||&quot;center&quot;,A=x[T],E=i.transitionOpts,L=i.onComplete,C=o.ensureSingle(e,&quot;g&quot;,&quot;numbers&quot;),P=[];g._hasNumber&amp;&amp;P.push(&quot;number&quot;);g._hasDelta&amp;&amp;(P.push(&quot;delta&quot;),&quot;left&quot;===g.delta.position&amp;&amp;P.reverse());var I=C.selectAll(&quot;text&quot;).data(P);function O(e,r,n,i){if(!e.match(&quot;s&quot;)||n&gt;=0==i&gt;=0||r(n).slice(-1).match(_)||r(i).slice(-1).match(_))return r;var a=e.slice().replace(&quot;s&quot;,&quot;f&quot;).replace(/\d+/,(function(t){return parseInt(t)-1})),o=k(t,{tickformat:a});return function(t){return Math.abs(t)&lt;1?d.tickText(o,t).text:r(t)}}I.enter().append(&quot;text&quot;),I.attr(&quot;text-anchor&quot;,(function(){return A})).attr(&quot;class&quot;,(function(t){return t})).attr(&quot;x&quot;,null).attr(&quot;y&quot;,null).attr(&quot;dx&quot;,null).attr(&quot;dy&quot;,null),I.exit().remove();var z,D=g.mode+g.align;g._hasDelta&amp;&amp;(z=function(){var e=k(t,{tickformat:g.delta.valueformat},g._range);e.setScale(),d.prepTicks(e);var i=function(t){return d.tickText(e,t).text},o=function(t){return g.delta.relative?t.relativeDelta:t.delta},s=function(t,e){return 0===t||&quot;number&quot;!=typeof t||isNaN(t)?&quot;-&quot;:(t&gt;0?g.delta.increasing.symbol:g.delta.decreasing.symbol)+e(t)},l=function(t){return t.delta&gt;=0?g.delta.increasing.color:g.delta.decreasing.color};void 0===g._deltaLastValue&amp;&amp;(g._deltaLastValue=o(r[0]));var c=C.select(&quot;text.delta&quot;);function h(){c.text(s(o(r[0]),i)).call(y.fill,l(r[0])).call(p.convertToTspans,t)}return c.call(f.font,g.delta.font).call(y.fill,l({delta:g._deltaLastValue})),w(E)?c.transition().duration(E.duration).ease(E.easing).tween(&quot;text&quot;,(function(){var t=n.select(this),e=o(r[0]),c=g._deltaLastValue,u=O(g.delta.valueformat,i,c,e),f=a(c,e);return g._deltaLastValue=e,function(e){t.text(s(f(e),u)),t.call(y.fill,l({delta:f(e)}))}})).each(&quot;end&quot;,(function(){h(),L&amp;&amp;L()})).each(&quot;interrupt&quot;,(function(){h(),L&amp;&amp;L()})):h(),u=M(s(o(r[0]),i),g.delta.font,A,t),c}(),D+=g.delta.position+g.delta.font.size+g.delta.font.family+g.delta.valueformat,D+=g.delta.increasing.symbol+g.delta.decreasing.symbol,h=u);g._hasNumber&amp;&amp;(!function(){var e=k(t,{tickformat:g.number.valueformat},g._range);e.setScale(),d.prepTicks(e);var i=function(t){return d.tickText(e,t).text},o=g.number.suffix,s=g.number.prefix,l=C.select(&quot;text.number&quot;);function u(){var e=&quot;number&quot;==typeof r[0].y?s+i(r[0].y)+o:&quot;-&quot;;l.text(e).call(f.font,g.number.font).call(p.convertToTspans,t)}w(E)?l.transition().duration(E.duration).ease(E.easing).each(&quot;end&quot;,(function(){u(),L&amp;&amp;L()})).each(&quot;interrupt&quot;,(function(){u(),L&amp;&amp;L()})).attrTween(&quot;text&quot;,(function(){var t=n.select(this),e=a(r[0].lastY,r[0].y);g._lastValue=r[0].y;var l=O(g.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(s+l(e(r))+o)}})):u(),c=M(s+i(r[0].y)+o,g.number.font,A,t)}(),D+=g.number.font.size+g.number.font.family+g.number.valueformat+g.number.suffix+g.number.prefix,h=c);if(g._hasDelta&amp;&amp;g._hasNumber){var R,F,B=[(c.left+c.right)/2,(c.top+c.bottom)/2],N=[(u.left+u.right)/2,(u.top+u.bottom)/2],j=.75*g.delta.font.size;&quot;left&quot;===g.delta.position&amp;&amp;(R=S(g,&quot;deltaPos&quot;,0,-1*(c.width*b[g.align]+u.width*(1-b[g.align])+j),D,Math.min),F=B[1]-N[1],h={width:c.width+u.width+j,height:Math.max(c.height,u.height),left:u.left+R,right:c.right,top:Math.min(c.top,u.top+F),bottom:Math.max(c.bottom,u.bottom+F)}),&quot;right&quot;===g.delta.position&amp;&amp;(R=S(g,&quot;deltaPos&quot;,0,c.width*(1-b[g.align])+u.width*b[g.align]+j,D,Math.max),F=B[1]-N[1],h={width:c.width+u.width+j,height:Math.max(c.height,u.height),left:c.left,right:u.right+R,top:Math.min(c.top,u.top+F),bottom:Math.max(c.bottom,u.bottom+F)}),&quot;bottom&quot;===g.delta.position&amp;&amp;(R=null,F=u.height,h={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height,bottom:c.bottom+u.height}),&quot;top&quot;===g.delta.position&amp;&amp;(R=null,F=c.top,h={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height-u.height,bottom:c.bottom}),z.attr({dx:R,dy:F})}(g._hasNumber||g._hasDelta)&amp;&amp;C.attr(&quot;transform&quot;,(function(){var t=i.numbersScaler(h);D+=t[2];var e,r=S(g,&quot;numbersScale&quot;,1,t[0],D,Math.min);g._scaleNumbers||(r=1),e=g._isAngular?v-r*h.bottom:v-r*(h.top+h.bottom)/2,g._numbersTop=r*h.top+e;var n=h[T];&quot;center&quot;===T&amp;&amp;(n=(h.left+h.right)/2);var a=m-r*n;return a=S(g,&quot;numbersTranslate&quot;,0,a,D,Math.max),l(a,e)+s(r)}))}(t,O,e,{numbersX:g,numbersY:E,numbersScaler:L,transitionOpts:r,onComplete:m}),z&amp;&amp;(C={range:I.gauge.axis.range,color:I.gauge.bgcolor,line:{color:I.gauge.bordercolor,width:0},thickness:1},P={range:I.gauge.axis.range,color:&quot;rgba(0, 0, 0, 0)&quot;,line:{color:I.gauge.bordercolor,width:I.gauge.borderwidth},thickness:1});var Y=O.selectAll(&quot;g.angular&quot;).data(D?e:[]);Y.exit().remove();var W=O.selectAll(&quot;g.angularaxis&quot;).data(D?e:[]);W.exit().remove(),D&amp;&amp;function(t,e,r,a){var o,s,f,h,p=r[0].trace,g=a.size,m=a.radius,v=a.innerRadius,y=a.gaugeBg,x=a.gaugeOutline,b=[g.l+g.w/2,g.t+g.h/2+m/2],_=a.gauge,A=a.layer,M=a.transitionOpts,S=a.onComplete,E=Math.PI/2;function L(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-E;return r&lt;-E?-E:r&gt;E?E:r}function C(t){return n.svg.arc().innerRadius((v+m)/2-t/2*(m-v)).outerRadius((v+m)/2+t/2*(m-v)).startAngle(-E)}function P(t){t.attr(&quot;d&quot;,(function(t){return C(t.thickness).startAngle(L(t.range[0])).endAngle(L(t.range[1]))()}))}_.enter().append(&quot;g&quot;).classed(&quot;angular&quot;,!0),_.attr(&quot;transform&quot;,l(b[0],b[1])),A.enter().append(&quot;g&quot;).classed(&quot;angularaxis&quot;,!0).classed(&quot;crisp&quot;,!0),A.selectAll(&quot;g.xangularaxistick,path,text&quot;).remove(),(o=k(t,p.gauge.axis)).type=&quot;linear&quot;,o.range=p.gauge.axis.range,o._id=&quot;xangularaxis&quot;,o.ticklabeloverflow=&quot;allow&quot;,o.setScale();var I=function(t){return(o.range[0]-t.x)/(o.range[1]-o.range[0])*Math.PI+Math.PI},O={},z=d.makeLabelFns(o,0).labelStandoff;O.xFn=function(t){var e=I(t);return Math.cos(e)*z},O.yFn=function(t){var e=I(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(z+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*u)},O.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},O.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var D=function(t){return l(b[0]+m*Math.cos(t),b[1]-m*Math.sin(t))};f=function(t){return D(I(t))};if(s=d.calcTicks(o),h=d.getTickSigns(o)[2],o.visible){h=&quot;inside&quot;===o.ticks?-1:1;var R=(o.linewidth||1)/2;d.drawTicks(t,o,{vals:s,layer:A,path:&quot;M&quot;+h*R+&quot;,0h&quot;+h*o.ticklen,transFn:function(t){var e=I(t);return D(e)+&quot;rotate(&quot;+-c(e)+&quot;)&quot;}}),d.drawLabels(t,o,{vals:s,layer:A,transFn:f,labelFns:O})}var F=[y].concat(p.gauge.steps),B=_.selectAll(&quot;g.bg-arc&quot;).data(F);B.enter().append(&quot;g&quot;).classed(&quot;bg-arc&quot;,!0).append(&quot;path&quot;),B.select(&quot;path&quot;).call(P).call(T),B.exit().remove();var N=C(p.gauge.bar.thickness),j=_.selectAll(&quot;g.value-arc&quot;).data([p.gauge.bar]);j.enter().append(&quot;g&quot;).classed(&quot;value-arc&quot;,!0).append(&quot;path&quot;);var U=j.select(&quot;path&quot;);w(M)?(U.transition().duration(M.duration).ease(M.easing).each(&quot;end&quot;,(function(){S&amp;&amp;S()})).each(&quot;interrupt&quot;,(function(){S&amp;&amp;S()})).attrTween(&quot;d&quot;,(V=N,q=L(r[0].lastY),H=L(r[0].y),function(){var t=i(q,H);return function(e){return V.endAngle(t(e))()}})),p._lastValue=r[0].y):U.attr(&quot;d&quot;,&quot;number&quot;==typeof r[0].y?N.endAngle(L(r[0].y)):&quot;M0,0Z&quot;);var V,q,H;U.call(T),j.exit().remove(),F=[];var G=p.gauge.threshold.value;(G||0===G)&amp;&amp;F.push({range:[G,G],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var Y=_.selectAll(&quot;g.threshold-arc&quot;).data(F);Y.enter().append(&quot;g&quot;).classed(&quot;threshold-arc&quot;,!0).append(&quot;path&quot;),Y.select(&quot;path&quot;).call(P).call(T),Y.exit().remove();var W=_.selectAll(&quot;g.gauge-outline&quot;).data([x]);W.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;path&quot;),W.select(&quot;path&quot;).call(P).call(T),W.exit().remove()}(t,0,e,{radius:U,innerRadius:V,gauge:Y,layer:W,size:B,gaugeBg:C,gaugeOutline:P,transitionOpts:r,onComplete:m});var X=O.selectAll(&quot;g.bullet&quot;).data(R?e:[]);X.exit().remove();var Z=O.selectAll(&quot;g.bulletaxis&quot;).data(R?e:[]);Z.exit().remove(),R&amp;&amp;function(t,e,r,n){var i,a,o,s,c,u=r[0].trace,f=n.gauge,p=n.layer,g=n.gaugeBg,m=n.gaugeOutline,v=n.size,x=u.domain,b=n.transitionOpts,_=n.onComplete;f.enter().append(&quot;g&quot;).classed(&quot;bullet&quot;,!0),f.attr(&quot;transform&quot;,l(v.l,v.t)),p.enter().append(&quot;g&quot;).classed(&quot;bulletaxis&quot;,!0).classed(&quot;crisp&quot;,!0),p.selectAll(&quot;g.xbulletaxistick,path,text&quot;).remove();var A=v.h,M=u.gauge.bar.thickness*A,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(u._hasNumber||u._hasDelta?1-h.bulletNumberDomainSize:1);(i=k(t,u.gauge.axis))._id=&quot;xbulletaxis&quot;,i.domain=[S,E],i.setScale(),a=d.calcTicks(i),o=d.makeTransTickFn(i),s=d.getTickSigns(i)[2],c=v.t+v.h,i.visible&amp;&amp;(d.drawTicks(t,i,{vals:&quot;inside&quot;===i.ticks?d.clipEnds(i,a):a,layer:p,path:d.makeTickPath(i,c,s),transFn:o}),d.drawLabels(t,i,{vals:a,layer:p,transFn:o,labelFns:d.makeLabelFns(i,c)}));function L(t){t.attr(&quot;width&quot;,(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr(&quot;x&quot;,(function(t){return i.c2p(t.range[0])})).attr(&quot;y&quot;,(function(t){return.5*(1-t.thickness)*A})).attr(&quot;height&quot;,(function(t){return t.thickness*A}))}var C=[g].concat(u.gauge.steps),P=f.selectAll(&quot;g.bg-bullet&quot;).data(C);P.enter().append(&quot;g&quot;).classed(&quot;bg-bullet&quot;,!0).append(&quot;rect&quot;),P.select(&quot;rect&quot;).call(L).call(T),P.exit().remove();var I=f.selectAll(&quot;g.value-bullet&quot;).data([u.gauge.bar]);I.enter().append(&quot;g&quot;).classed(&quot;value-bullet&quot;,!0).append(&quot;rect&quot;),I.select(&quot;rect&quot;).attr(&quot;height&quot;,M).attr(&quot;y&quot;,(A-M)/2).call(T),w(b)?I.select(&quot;rect&quot;).transition().duration(b.duration).ease(b.easing).each(&quot;end&quot;,(function(){_&amp;&amp;_()})).each(&quot;interrupt&quot;,(function(){_&amp;&amp;_()})).attr(&quot;width&quot;,Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y)))):I.select(&quot;rect&quot;).attr(&quot;width&quot;,&quot;number&quot;==typeof r[0].y?Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y))):0);I.exit().remove();var O=r.filter((function(){return u.gauge.threshold.value||0===u.gauge.threshold.value})),z=f.selectAll(&quot;g.threshold-bullet&quot;).data(O);z.enter().append(&quot;g&quot;).classed(&quot;threshold-bullet&quot;,!0).append(&quot;line&quot;),z.select(&quot;line&quot;).attr(&quot;x1&quot;,i.c2p(u.gauge.threshold.value)).attr(&quot;x2&quot;,i.c2p(u.gauge.threshold.value)).attr(&quot;y1&quot;,(1-u.gauge.threshold.thickness)/2*A).attr(&quot;y2&quot;,(1-(1-u.gauge.threshold.thickness)/2)*A).call(y.stroke,u.gauge.threshold.line.color).style(&quot;stroke-width&quot;,u.gauge.threshold.line.width),z.exit().remove();var D=f.selectAll(&quot;g.gauge-outline&quot;).data([m]);D.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;rect&quot;),D.select(&quot;rect&quot;).call(L).call(T),D.exit().remove()}(t,0,e,{gauge:X,layer:Z,size:B,gaugeBg:C,gaugeOutline:P,transitionOpts:r,onComplete:m});var J=O.selectAll(&quot;text.title&quot;).data(e);J.exit().remove(),J.enter().append(&quot;text&quot;).classed(&quot;title&quot;,!0),J.attr(&quot;text-anchor&quot;,(function(){return R?x.right:x[I.title.align]})).text(I.title.text).call(f.font,I.title.font).call(p.convertToTspans,t),J.attr(&quot;transform&quot;,(function(){var t,e=B.l+B.w*b[I.title.align],r=h.titlePadding,n=f.bBox(J.node());if(z){if(D)if(I.gauge.axis.visible)t=f.bBox(W.node()).top-r-n.bottom;else t=B.t+B.h/2-U/2-n.bottom-r;R&amp;&amp;(t=E-(n.top+n.bottom)/2,e=B.l-h.bulletPadding*B.w)}else t=I._numbersTop-r-n.bottom;return l(e,t)}))}))}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/axis_defaults&quot;:856,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/cartesian/position_defaults&quot;:872,&quot;./constants&quot;:1150,&quot;@plotly/d3&quot;:58,&quot;d3-interpolate&quot;:171}],1154:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../mesh3d/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../plot_api/edit_types&quot;).overrideAll;var u=e.exports=c(l({x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},z:{valType:&quot;data_array&quot;},value:{valType:&quot;data_array&quot;},isomin:{valType:&quot;number&quot;},isomax:{valType:&quot;number&quot;},surface:{show:{valType:&quot;boolean&quot;,dflt:!0},count:{valType:&quot;integer&quot;,dflt:2,min:1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1},pattern:{valType:&quot;flaglist&quot;,flags:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;],extras:[&quot;all&quot;,&quot;odd&quot;,&quot;even&quot;],dflt:&quot;all&quot;}},spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:.15}},slices:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},caps:{x:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:a(),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),valuehoverformat:i(&quot;value&quot;,1),showlegend:l({},s.showlegend,{dflt:!1})},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:o.opacity,lightposition:o.lightposition,lighting:o.lighting,flatshading:o.flatshading,contour:o.contour,hoverinfo:l({},s.hoverinfo)}),&quot;calc&quot;,&quot;nested&quot;);u.flatshading.dflt=!0,u.lighting.facenormalsepsilon.dflt=0,u.x.editType=u.y.editType=u.z.editType=u.value.editType=&quot;calc+clearAxisTypes&quot;,u.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../mesh3d/attributes&quot;:1159}],1155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../streamtube/calc&quot;).processGrid,a=t(&quot;../streamtube/calc&quot;).filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l&lt;e._len;l++){var c=e._value[l];o=Math.min(o,c),s=Math.max(s,c)}e._minValues=o,e._maxValues=s,e._vMin=void 0===e.isomin||null===e.isomin?o:e.isomin,e._vMax=void 0===e.isomax||null===e.isomin?s:e.isomax,n(t,e,{vals:[e._vMin,e._vMax],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../streamtube/calc&quot;:1326}],1156:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=function(t,e){for(var r=e.length-1;r&gt;0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i&gt;n&amp;&amp;n&lt;t&amp;&amp;t&lt;=i)return{id:r,distRatio:(i-t)/(i-n)}}return{id:0,distRatio:0}};function c(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},u.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=h(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},c=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=i(t),this.mesh.update(l)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var f=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;];function h(t){t._meshI=[],t._meshJ=[],t._meshK=[];var e,r,n,i,a,o,s,c=t.surface.show,u=t.spaceframe.show,h=t.surface.fill,p=t.spaceframe.fill,d=!1,g=!1,m=0,v=t._Xs,y=t._Ys,x=t._Zs,b=v.length,_=y.length,w=x.length,T=f.indexOf(t._gridFill.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;)),k=function(t,e,r){switch(T){case 5:return r+w*e+w*_*t;case 4:return r+w*t+w*b*e;case 3:return e+_*r+_*w*t;case 2:return e+_*t+_*b*r;case 1:return t+b*r+b*w*e;default:return t+b*e+b*_*r}},A=t._minValues,M=t._maxValues,S=t._vMin,E=t._vMax;function L(t,e,s){for(var l=o.length,c=r;c&lt;l;c++)if(t===n[c]&amp;&amp;e===i[c]&amp;&amp;s===a[c])return c;return-1}function C(){r=e}function P(){n=[],i=[],a=[],o=[],e=0,C()}function I(t,r,s,l){return n.push(t),i.push(r),a.push(s),o.push(l),++e-1}function O(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=t[i]*(1-r)+r*e[i];return n}function z(t){s=t}function D(t,e){return&quot;all&quot;===t||null===t||t.indexOf(e)&gt;-1}function R(t,e){return null===t?e:t}function F(e,r,n){C();var i,a,o,l=[r],c=[n];if(s&gt;=1)l=[r],c=[n];else if(s&gt;0){var u=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=(t[i]+e[i]+r[i])/3;return n}(r,n,i),o=Math.sqrt(1-s),l=O(a,r,o),c=O(a,n,o),u=O(a,i,o),f=e[0],h=e[1],p=e[2];return{xyzv:[[r,n,c],[c,l,r],[n,i,u],[u,c,n],[i,r,l],[l,u,i]],abc:[[f,h,-1],[-1,-1,f],[h,p,-1],[-1,-1,h],[p,f,-1],[-1,-1,p]]}}(r,n);l=u.xyzv,c=u.abc}for(var f=0;f&lt;l.length;f++){r=l[f],n=c[f];for(var h=[],p=0;p&lt;3;p++){var d=r[p][0],g=r[p][1],v=r[p][2],y=r[p][3],x=n[p]&gt;-1?n[p]:L(d,g,v);h[p]=x&gt;-1?x:I(d,g,v,R(e,y))}i=h[0],a=h[1],o=h[2],t._meshI.push(i),t._meshJ.push(a),t._meshK.push(o),++m}}function B(t,e,r,n){var i=t[3];i&lt;r&amp;&amp;(i=r),i&gt;n&amp;&amp;(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s&lt;4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function N(t,e,r){return t&gt;=e&amp;&amp;t&lt;=r}function j(t){var e=.001*(E-S);return t&gt;=S-e&amp;&amp;t&lt;=E+e}function U(e){for(var r=[],n=0;n&lt;4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function V(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(e[0][3],n,i),N(e[1][3],n,i),N(e[2][3],n,i)];if(!s[0]&amp;&amp;!s[1]&amp;&amp;!s[2])return!1;var l=function(t,e,r){return j(e[0][3])&amp;&amp;j(e[1][3])&amp;&amp;j(e[2][3])?(F(t,e,r),!0):a&lt;3&amp;&amp;V(t,e,r,S,E,++a)};if(s[0]&amp;&amp;s[1]&amp;&amp;s[2])return l(t,e,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&amp;&amp;s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(h,u,n,i),d=B(h,f,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,o=l(t,[u,f,d],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&amp;&amp;!s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(f,u,n,i),d=B(h,u,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function q(t,e,r,n){var i=!1,a=U(e),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&amp;&amp;o[1]&amp;&amp;o[2]&amp;&amp;o[3])return g&amp;&amp;(i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]];if(g)i=F(t,[c,u,f],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=B(h,c,r,n),d=B(h,u,r,n),m=B(h,f,r,n);i=F(null,[p,d,m],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(f,c,r,n),d=B(f,u,r,n),m=B(h,u,r,n),v=B(h,c,r,n);g?(i=F(t,[c,v,p],[e[l[0]],-1,-1])||i,i=F(t,[u,d,m],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[p,d,m,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&amp;&amp;!o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(u,c,r,n),d=B(f,c,r,n),m=B(h,c,r,n);g?(i=F(t,[c,p,d],[e[l[0]],-1,-1])||i,i=F(t,[c,d,m],[e[l[0]],-1,-1])||i,i=F(t,[c,m,p],[e[l[0]],-1,-1])||i):i=F(null,[p,d,m],[-1,-1,-1])||i,s=!0}})),i)}function H(t,e,r,n,i,a,o,s,l,c,u){var f=!1;return d&amp;&amp;(D(t,&quot;A&quot;)&amp;&amp;(f=q(null,[e,r,n,a],c,u)||f),D(t,&quot;B&quot;)&amp;&amp;(f=q(null,[r,n,i,l],c,u)||f),D(t,&quot;C&quot;)&amp;&amp;(f=q(null,[r,a,o,l],c,u)||f),D(t,&quot;D&quot;)&amp;&amp;(f=q(null,[n,a,s,l],c,u)||f),D(t,&quot;E&quot;)&amp;&amp;(f=q(null,[r,n,a,l],c,u)||f)),g&amp;&amp;(f=q(t,[r,n,a,l],c,u)||f),f}function G(t,e,r,n,i,a,o,s){return[!0===s[0]||V(t,U([e,r,n]),[e,r,n],a,o),!0===s[1]||V(t,U([n,i,e]),[n,i,e],a,o)]}function Y(t,e,r,n,i,a,o,s,l){return s?G(t,e,r,i,n,a,o,l):G(t,r,i,n,e,a,o,l)}function W(t,e,r,n,i,a,o){var s,l,c,u,f=!1,h=function(){f=V(t,[s,l,c],[-1,-1,-1],i,a)||f,f=V(t,[c,u,s],[-1,-1,-1],i,a)||f},p=o[0],d=o[1],g=o[2];return p&amp;&amp;(s=O(U([k(e,r-0,n-0)])[0],U([k(e-1,r-0,n-0)])[0],p),l=O(U([k(e,r-0,n-1)])[0],U([k(e-1,r-0,n-1)])[0],p),c=O(U([k(e,r-1,n-1)])[0],U([k(e-1,r-1,n-1)])[0],p),u=O(U([k(e,r-1,n-0)])[0],U([k(e-1,r-1,n-0)])[0],p),h()),d&amp;&amp;(s=O(U([k(e-0,r,n-0)])[0],U([k(e-0,r-1,n-0)])[0],d),l=O(U([k(e-0,r,n-1)])[0],U([k(e-0,r-1,n-1)])[0],d),c=O(U([k(e-1,r,n-1)])[0],U([k(e-1,r-1,n-1)])[0],d),u=O(U([k(e-1,r,n-0)])[0],U([k(e-1,r-1,n-0)])[0],d),h()),g&amp;&amp;(s=O(U([k(e-0,r-0,n)])[0],U([k(e-0,r-0,n-1)])[0],g),l=O(U([k(e-0,r-1,n)])[0],U([k(e-0,r-1,n-1)])[0],g),c=O(U([k(e-1,r-1,n)])[0],U([k(e-1,r-1,n-1)])[0],g),u=O(U([k(e-1,r-0,n)])[0],U([k(e-1,r-0,n-1)])[0],g),h()),f}function X(t,e,r,n,i,a,o,s,l,c,u,f){var h=t;return f?(d&amp;&amp;&quot;even&quot;===t&amp;&amp;(h=null),H(h,e,r,n,i,a,o,s,l,c,u)):(d&amp;&amp;&quot;odd&quot;===t&amp;&amp;(h=null),H(h,l,s,o,a,i,n,r,e,c,u))}function Z(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;w;c++)for(var u=1;u&lt;_;u++)a.push(Y(t,k(l,u-1,c-1),k(l,u-1,c),k(l,u,c-1),k(l,u,c),r,n,(l+u+c)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function J(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;b;c++)for(var u=1;u&lt;w;u++)a.push(Y(t,k(c-1,l,u-1),k(c,l,u-1),k(c-1,l,u),k(c,l,u),r,n,(c+l+u)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function K(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;_;c++)for(var u=1;u&lt;b;u++)a.push(Y(t,k(u-1,c-1,l),k(u-1,c,l),k(u,c-1,l),k(u,c,l),r,n,(u+c+l)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function Q(t,e,r){for(var n=1;n&lt;w;n++)for(var i=1;i&lt;_;i++)for(var a=1;a&lt;b;a++)X(t,k(a-1,i-1,n-1),k(a-1,i-1,n),k(a-1,i,n-1),k(a-1,i,n),k(a,i-1,n-1),k(a,i-1,n),k(a,i,n-1),k(a,i,n),e,r,(a+i+n)%2)}function $(t,e,r){d=!0,Q(t,e,r),d=!1}function tt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;w;u++)for(var f=1;f&lt;_;f++)o.push(W(t,c,f,u,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function et(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;b;u++)for(var f=1;f&lt;w;f++)o.push(W(t,u,c,f,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function rt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;_;u++)for(var f=1;f&lt;b;f++)o.push(W(t,f,u,c,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function nt(t,e){for(var r=[],n=t;n&lt;e;n++)r.push(n);return r}return function(){if(P(),function(){for(var e=0;e&lt;b;e++)for(var r=0;r&lt;_;r++)for(var n=0;n&lt;w;n++){var i=k(e,r,n);I(t._x[i],t._y[i],t._z[i],t._value[i])}}(),u&amp;&amp;p&amp;&amp;(z(p),g=!0,Q(null,S,E),g=!1),c&amp;&amp;h){z(h);for(var e=t.surface.pattern,r=t.surface.count,s=0;s&lt;r;s++){var f=1===r?.5:s/(r-1),d=(1-f)*S+f*E,T=Math.abs(d-A)&gt;Math.abs(d-M)?[A,d]:[d,M];$(e,T[0],T[1])}}var L=[[Math.min(S,M),Math.max(S,M)],[Math.min(A,E),Math.max(A,E)]];[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(e){for(var r=[],n=0;n&lt;L.length;n++){var i=0,a=L[n][0],o=L[n][1],s=t.slices[e];if(s.show&amp;&amp;s.fill){z(s.fill);var c=[],u=[],f=[];if(s.locations.length)for(var h=0;h&lt;s.locations.length;h++){var p=l(s.locations[h],&quot;x&quot;===e?v:&quot;y&quot;===e?y:x);0===p.distRatio?c.push(p.id):p.id&gt;0&amp;&amp;(u.push(p.id),&quot;x&quot;===e?f.push([p.distRatio,0,0]):&quot;y&quot;===e?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else c=nt(1,&quot;x&quot;===e?b-1:&quot;y&quot;===e?_-1:w-1);u.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?tt(null,u,a,o,f,r[i]):&quot;y&quot;===e?et(null,u,a,o,f,r[i]):rt(null,u,a,o,f,r[i]),i++),c.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?Z(null,c,a,o,r[i]):&quot;y&quot;===e?J(null,c,a,o,r[i]):K(null,c,a,o,r[i]),i++)}var d=t.caps[e];d.show&amp;&amp;d.fill&amp;&amp;(z(d.fill),r[i]=&quot;x&quot;===e?Z(null,[0,b-1],a,o,r[i]):&quot;y&quot;===e?J(null,[0,_-1],a,o,r[i]):K(null,[0,w-1],a,o,r[i]),i++)}})),0===m&amp;&amp;P(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:h,createIsosurfaceTrace:function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib/gl_format_color&quot;:799,&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/gl3d/zip3&quot;:907,&quot;gl-mesh3d&quot;:315}],1157:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../components/colorscale/defaults&quot;);function s(t,e,r,n,a){var s=a(&quot;isomin&quot;),l=a(&quot;isomax&quot;);null!=l&amp;&amp;null!=s&amp;&amp;s&gt;l&amp;&amp;(e.isomin=null,e.isomax=null);var c=a(&quot;x&quot;),u=a(&quot;y&quot;),f=a(&quot;z&quot;),h=a(&quot;value&quot;);c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length?(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],n),a(&quot;valuehoverformat&quot;),[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(t){a(t+&quot;hoverformat&quot;);var e=&quot;caps.&quot;+t;a(e+&quot;.show&quot;)&amp;&amp;a(e+&quot;.fill&quot;);var r=&quot;slices.&quot;+t;a(r+&quot;.show&quot;)&amp;&amp;(a(r+&quot;.fill&quot;),a(r+&quot;.locations&quot;))})),a(&quot;spaceframe.show&quot;)&amp;&amp;a(&quot;spaceframe.fill&quot;),a(&quot;surface.show&quot;)&amp;&amp;(a(&quot;surface.count&quot;),a(&quot;surface.fill&quot;),a(&quot;surface.pattern&quot;)),a(&quot;contour.show&quot;)&amp;&amp;(a(&quot;contour.color&quot;),a(&quot;contour.width&quot;)),[&quot;text&quot;,&quot;hovertext&quot;,&quot;hovertemplate&quot;,&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;opacity&quot;].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,r,i){s(t,e,r,i,(function(r,i){return n.coerce(t,e,a,r,i)}))},supplyIsoDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:1154}],1158:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;).createIsosurfaceTrace,moduleType:&quot;trace&quot;,name:&quot;isosurface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1154,&quot;./calc&quot;:1155,&quot;./convert&quot;:1156,&quot;./defaults&quot;:1157}],1159:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../surface/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=l({x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},i:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},j:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},k:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:a({editType:&quot;calc&quot;}),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),delaunayaxis:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],dflt:&quot;z&quot;,editType:&quot;calc&quot;},alphahull:{valType:&quot;number&quot;,dflt:-1,editType:&quot;calc&quot;},intensity:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},intensitymode:{valType:&quot;enumerated&quot;,values:[&quot;vertex&quot;,&quot;cell&quot;],dflt:&quot;vertex&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},vertexcolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},facecolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transforms:void 0},n(&quot;&quot;,{colorAttr:&quot;`intensity`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:o.opacity,flatshading:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},contour:{show:l({},o.contours.x.show,{}),color:o.contours.x.color,width:o.contours.x.width,editType:&quot;calc&quot;},lightposition:{x:l({},o.lightposition.x,{dflt:1e5}),y:l({},o.lightposition.y,{dflt:1e5}),z:l({},o.lightposition.z,{dflt:0}),editType:&quot;calc&quot;},lighting:l({vertexnormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-12,editType:&quot;calc&quot;},facenormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-6,editType:&quot;calc&quot;},editType:&quot;calc&quot;},o.lighting),hoverinfo:l({},s.hoverinfo,{editType:&quot;calc&quot;}),showlegend:l({},s.showlegend,{dflt:!1})})},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../surface/attributes&quot;:1342}],1160:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.intensity&amp;&amp;n(t,e,{vals:e.intensity,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:674}],1161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;delaunay-triangulate&quot;),a=t(&quot;alpha-shape&quot;),o=t(&quot;convex-hull&quot;),s=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,l=t(&quot;../../lib/str2rgbarray&quot;),c=t(&quot;../../components/colorscale&quot;).extractOpts,u=t(&quot;../../plots/gl3d/zip3&quot;);function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.color=&quot;#fff&quot;,this.data=null,this.showContour=!1}var h=f.prototype;function p(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=l(t[n]);return e}function d(t,e,r,n){for(var i=[],a=e.length,o=0;o&lt;a;o++)i[o]=t.d2l(e[o],0,n)*r;return i}function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=Math.round(t[n]);return e}function m(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(t[n]&lt;=-.5||t[n]&gt;=e-.5)return!1;return!0}h.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&amp;&amp;void 0!==r[e]?t.textLabel=r[e]:r&amp;&amp;(t.textLabel=r),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,f=t.x.length,h=u(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&amp;&amp;t.j&amp;&amp;t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!m(t.i,f)||!m(t.j,f)||!m(t.k,f))return;n=u(g(t.i),g(t.j),g(t.k))}else n=0===t.alphahull?o(h):t.alphahull&gt;0?a(t.alphahull,h):function(t,e){for(var r=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].indexOf(t),n=[],a=e.length,o=0;o&lt;a;o++)n[o]=[e[o][(r+1)%3],e[o][(r+2)%3]];return i(n)}(t.delaunayaxis,h);var v={positions:h,cells:n,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};if(t.intensity){var y=c(t);this.color=&quot;#fff&quot;;var x=t.intensitymode;v[x+&quot;Intensity&quot;]=t.intensity,v[x+&quot;IntensityBounds&quot;]=[y.min,y.max],v.colormap=s(t)}else t.vertexcolor?(this.color=t.vertexcolor[0],v.vertexColors=p(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],v.cellColors=p(t.facecolor)):(this.color=t.color,v.meshColor=l(t.color));this.mesh.update(v)},h.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new f(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib/gl_format_color&quot;:799,&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/gl3d/zip3&quot;:907,&quot;alpha-shape&quot;:75,&quot;convex-hull&quot;:141,&quot;delaunay-triangulate&quot;:180,&quot;gl-mesh3d&quot;:315}],1162:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map((function(t){var e=l(t);return e&amp;&amp;i.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&amp;&amp;t.length===e[0].length}))&amp;&amp;e}c([&quot;x&quot;,&quot;y&quot;,&quot;z&quot;])?(c([&quot;i&quot;,&quot;j&quot;,&quot;k&quot;]),(!e.i||e.j&amp;&amp;e.k)&amp;&amp;(!e.j||e.k&amp;&amp;e.i)&amp;&amp;(!e.k||e.i&amp;&amp;e.j)?(n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],s),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;alphahull&quot;,&quot;delaunayaxis&quot;,&quot;opacity&quot;].forEach((function(t){l(t)})),l(&quot;contour.show&quot;)&amp;&amp;(l(&quot;contour.color&quot;),l(&quot;contour.width&quot;)),&quot;intensity&quot;in t?(l(&quot;intensity&quot;),l(&quot;intensitymode&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;c&quot;})):(e.showscale=!1,&quot;facecolor&quot;in t?l(&quot;facecolor&quot;):&quot;vertexcolor&quot;in t?l(&quot;vertexcolor&quot;):l(&quot;color&quot;,r)),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),l(&quot;xhoverformat&quot;),l(&quot;yhoverformat&quot;),l(&quot;zhoverformat&quot;),e._length=null):e.visible=!1):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:1159}],1163:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;mesh3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1159,&quot;./calc&quot;:1160,&quot;./convert&quot;:1161,&quot;./defaults&quot;:1162}],1164:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../components/drawing/attributes&quot;).dash,s=t(&quot;../../components/fx/attributes&quot;),l=t(&quot;../../constants/delta.js&quot;),c=l.INCREASING.COLOR,u=l.DECREASING.COLOR,f=i.line;function h(t){return{line:{color:n({},f.color,{dflt:t}),width:f.width,dash:o,editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},open:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},high:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},low:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},close:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{width:n({},f.width,{}),dash:n({},o,{}),editType:&quot;style&quot;},increasing:h(c),decreasing:h(u),text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},tickwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.3,editType:&quot;calc&quot;},hoverlabel:n({},s.hoverlabel,{split:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;style&quot;}})}},{&quot;../../components/drawing/attributes&quot;:687,&quot;../../components/fx/attributes&quot;:697,&quot;../../constants/delta.js&quot;:773,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../scatter/attributes&quot;:1218}],1165:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=n._,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r,n){return{o:t,h:e,l:r,c:n}}function c(t,e,r,o,l,c){for(var u=l.makeCalcdata(e,&quot;open&quot;),f=l.makeCalcdata(e,&quot;high&quot;),h=l.makeCalcdata(e,&quot;low&quot;),p=l.makeCalcdata(e,&quot;close&quot;),d=Array.isArray(e.text),g=Array.isArray(e.hovertext),m=!0,v=null,y=!!e.xperiodalignment,x=[],b=0;b&lt;o.length;b++){var _=o[b],w=u[b],T=f[b],k=h[b],A=p[b];if(_!==s&amp;&amp;w!==s&amp;&amp;T!==s&amp;&amp;k!==s&amp;&amp;A!==s){A===w?null!==v&amp;&amp;A!==v&amp;&amp;(m=A&gt;v):m=A&gt;w,v=A;var M=c(w,T,k,A);M.pos=_,M.yc=(w+A)/2,M.i=b,M.dir=m?&quot;increasing&quot;:&quot;decreasing&quot;,M.x=M.pos,M.y=[k,T],y&amp;&amp;(M.orig_p=r[b]),d&amp;&amp;(M.tx=e.text[b]),g&amp;&amp;(M.htx=e.hovertext[b]),x.push(M)}else x.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(h,f),{padded:!0}),x.length&amp;&amp;(x[0].t={labels:{open:i(t,&quot;open:&quot;)+&quot; &quot;,high:i(t,&quot;high:&quot;)+&quot; &quot;,low:i(t,&quot;low:&quot;)+&quot; &quot;,close:i(t,&quot;close:&quot;)+&quot; &quot;}}),x}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),s=function(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a&lt;s.length;a++){var c=s[a];if(&quot;ohlc&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;c.xaxis===e._id){l.push(c);var u=e.makeCalcdata(c,&quot;x&quot;);c._origX=u;var f=o(r,e,&quot;x&quot;,u).vals;c._xcalc=f;var h=n.distinctVals(f).minDiff;h&amp;&amp;isFinite(h)&amp;&amp;(i=Math.min(i,h))}}for(i===1/0&amp;&amp;(i=1),a=0;a&lt;l.length;a++)l[a]._minDiff=i}return i*r.tickwidth}(t,r,e),u=e._minDiff;e._minDiff=null;var f=e._origX;e._origX=null;var h=e._xcalc;e._xcalc=null;var p=c(t,e,f,h,i,l);return e._extremes[r._id]=a.findExtremes(r,h,{vpad:u/2}),p.length?(n.extendFlat(p[0].t,{wHover:u/2,tickLen:s}),p):[{t:{empty:!0}}]},calcCommon:c}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854}],1166:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./ohlc_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){r(n+&quot;.line.color&quot;),r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.line.dash&quot;,e.line.dash)}e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}i(t,e,c,l)?(a(t,e,l,c,{x:!0}),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;),c(&quot;line.width&quot;),c(&quot;line.dash&quot;),s(t,e,c,&quot;increasing&quot;),s(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;tickwidth&quot;),l._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/period_defaults&quot;:1238,&quot;./attributes&quot;:1164,&quot;./ohlc_defaults&quot;:1169}],1167:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;).fillText,l=t(&quot;../../constants/delta.js&quot;),c={increasing:l.INCREASING.SYMBOL,decreasing:l.DECREASING.SYMBOL};function u(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=&quot;ohlc&quot;===h?&quot;l&quot;:&quot;min&quot;,d=&quot;ohlc&quot;===h?&quot;h&quot;:&quot;max&quot;,g=f.bPos||0,m=f.bdPos||f.tickLen,v=f.wHover,y=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function x(t){var r=function(t){return t.pos+g-e}(t);return a.inbox(r-v,r+v,i)}function b(t){var e=t[p],n=t[d];return e===n||a.inbox(e-r,n-r,i)}function _(t){return(x(t)+b(t))/2}i=t.maxHoverDistance-y,s=t.maxSpikeDistance-y;var w=a.getDistanceFunction(n,x,b,_);if(a.getClosest(l,w,t),!1===t.index)return null;var T=l[t.index];if(T.empty)return null;var k=u[T.dir],A=k.line.color;return o.opacity(A)&amp;&amp;k.line.width?t.color=A:t.color=k.fillcolor,t.x0=c.c2p(T.pos+g-m,!0),t.x1=c.c2p(T.pos+g+m,!0),t.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,t.spikeDistance=_(T)*s/i,t.xSpike=c.c2p(T.pos,!0),t}function f(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,c=o[0].t,f=[],h=u(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(&quot;+&quot;);if(!(&quot;all&quot;===p||-1!==d.indexOf(&quot;y&quot;)))return[];for(var g=[&quot;high&quot;,&quot;open&quot;,&quot;close&quot;,&quot;low&quot;],m={},v=0;v&lt;g.length;v++){var y,x=g[v],b=l[x][h.index],_=s.c2p(b,!0);b in m?(y=m[b]).yLabel+=&quot;&lt;br&gt;&quot;+c.labels[x]+n.hoverLabelText(s,b,l.yhoverformat):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b,l.yhoverformat),y.name=&quot;&quot;,f.push(y),m[b]=y)}return f}function h(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,f=a[0].t,h=u(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,g=p.dir;function m(t){return f.labels[t]+n.hoverLabelText(o,l[t][d],l.yhoverformat)}var v=p.hi||l.hoverinfo,y=v.split(&quot;+&quot;),x=&quot;all&quot;===v,b=x||-1!==y.indexOf(&quot;y&quot;),_=x||-1!==y.indexOf(&quot;text&quot;),w=b?[m(&quot;open&quot;),m(&quot;high&quot;),m(&quot;low&quot;),m(&quot;close&quot;)+&quot;  &quot;+c[g]]:[];return _&amp;&amp;s(p,l,w),h.extraText=w.join(&quot;&lt;br&gt;&quot;),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?f(t,e,r,n):h(t,e,r,n)},hoverSplit:f,hoverOnPoints:h}},{&quot;../../components/color&quot;:666,&quot;../../components/fx&quot;:706,&quot;../../constants/delta.js&quot;:773,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],1168:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;ohlc&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;],meta:{},attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;)}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:1164,&quot;./calc&quot;:1165,&quot;./defaults&quot;:1166,&quot;./hover&quot;:1167,&quot;./plot&quot;:1170,&quot;./select&quot;:1171,&quot;./style&quot;:1172}],1169:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;open&quot;),l=r(&quot;high&quot;),c=r(&quot;low&quot;),u=r(&quot;close&quot;);if(r(&quot;hoverlabel.split&quot;),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;],a),s&amp;&amp;l&amp;&amp;c&amp;&amp;u){var f=Math.min(s.length,l.length,c.length,u.length);return o&amp;&amp;(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],1170:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,&quot;trace ohlc&quot;).each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll(&quot;path&quot;).data(i.identity);u.enter().append(&quot;path&quot;),u.exit().remove(),u.attr(&quot;d&quot;,(function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return&quot;M&quot;+e+&quot;,&quot;+o.c2p(t.o,!0)+&quot;H&quot;+n+&quot;M&quot;+n+&quot;,&quot;+o.c2p(t.h,!0)+&quot;V&quot;+o.c2p(t.l,!0)+&quot;M&quot;+r+&quot;,&quot;+o.c2p(t.c,!0)+&quot;H&quot;+n}))}}))}},{&quot;../../lib&quot;:803,&quot;@plotly/d3&quot;:58}],1171:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r&lt;n.length;r++)n[r].selected=0;else for(r=0;r&lt;n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],1172:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;);e.exports=function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.ohlclayer&quot;).selectAll(&quot;g.trace&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(t){var e=t[0].trace;n.select(this).selectAll(&quot;path&quot;).each((function(t){if(!t.empty){var r=e[t.dir].line;n.select(this).style(&quot;fill&quot;,&quot;none&quot;).call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(&quot;opacity&quot;,e.selectedpoints&amp;&amp;!t.selected?.3:1)}}))}))}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;@plotly/d3&quot;:58}],1173:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/domain&quot;).attributes,c=n({editType:&quot;calc&quot;},o(&quot;line&quot;,{editTypeOverride:&quot;calc&quot;}),{shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hspline&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;]})});e.exports={domain:l({name:&quot;parcats&quot;,trace:!0,editType:&quot;calc&quot;}),hoverinfo:n({},i.hoverinfo,{flags:[&quot;count&quot;,&quot;probability&quot;],editType:&quot;plot&quot;,arrayOk:!1}),hoveron:{valType:&quot;enumerated&quot;,values:[&quot;category&quot;,&quot;color&quot;,&quot;dimension&quot;],dflt:&quot;category&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;,&quot;category&quot;,&quot;categorycount&quot;,&quot;colorcount&quot;,&quot;bandcolorcount&quot;]}),arrangement:{valType:&quot;enumerated&quot;,values:[&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;perpendicular&quot;,editType:&quot;plot&quot;},bundlecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},sortpaths:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;backward&quot;],dflt:&quot;forward&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;calc&quot;}),tickfont:a({editType:&quot;calc&quot;}),dimensions:{_isLinkedToArray:&quot;dimension&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},displayindex:{valType:&quot;integer&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;,visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}},line:c,counts:{valType:&quot;number&quot;,min:0,dflt:1,arrayOk:!0,editType:&quot;calc&quot;},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/template_attributes&quot;:926}],1174:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;parcats&quot;,r.plot=function(t,e,r,a){var o=n(t.calcdata,&quot;parcats&quot;);if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcats&quot;),a=e._has&amp;&amp;e._has(&quot;parcats&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.parcats&quot;).remove()}},{&quot;../../plots/get_data&quot;:891,&quot;./plot&quot;:1179}],1175:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../../lib/filter_unique.js&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;fast-isnumeric&quot;);function u(t,e,r){t.valueInds.push(e),t.count+=r}function f(t,e,r){return{categoryInds:t,color:e,rawColor:r,valueInds:[],count:0}}function h(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var p,d,g,m=r.map((function(t){var e;if(&quot;trace&quot;===t.categoryorder)e=null;else if(&quot;array&quot;===t.categoryorder)e=t.categoryarray;else{e=o(t.values);for(var r=!0,n=0;n&lt;e.length;n++)if(!c(e[n])){r=!1;break}e.sort(r?l.sorterAsc:void 0),&quot;category descending&quot;===t.categoryorder&amp;&amp;(e=e.reverse())}return function(t,e){e=null==e?[]:e.map((function(t){return t}));var r={},n={},i=[];e.forEach((function(t,e){r[t]=0,n[t]=e}));for(var a=0;a&lt;t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map((function(t){return r[t]}));return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)}));p=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;r++){if(t[r]&lt;0||t[r]&gt;=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map((function(t){return t.displayindex}))))for(e=0;e&lt;t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e&lt;t.length;e++)t[e]._displayindex=e}(r),r.forEach((function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r&lt;e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,m[e])}));var v,y=e.line;y?(i(e,&quot;line&quot;)&amp;&amp;a(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),v=s.tryColorscale(y)):v=l.identity;var x,b,_,w,T,k=r[0].values.length,A={},M=m.map((function(t){return t.inds}));for(g=0,x=0;x&lt;k;x++){var S=[];for(b=0;b&lt;M.length;b++)S.push(M[b][x]);d=p[x%p.length],g+=d;var E=(_=x,w=void 0,T=void 0,l.isArrayOrTypedArray(y.color)?T=w=y.color[_%y.color.length]:w=y.color,{color:v(w),rawColor:T}),L=S+&quot;-&quot;+E.rawColor;void 0===A[L]&amp;&amp;(A[L]=f(S,E.color,E.rawColor)),h(A[L],x,d)}var C,P=r.map((function(t,e){return function(t,e,r,n,i){return{dimensionInd:t,containerInd:e,displayInd:r,dimensionLabel:n,count:i,categories:[],dragX:null}}(e,t._index,t._displayindex,t.label,g)}));for(x=0;x&lt;k;x++)for(d=p[x%p.length],b=0;b&lt;P.length;b++){var I=P[b].containerInd,O=m[b].inds[x],z=P[b].categories;if(void 0===z[O]){var D=e.dimensions[I]._categoryarray[O],R=e.dimensions[I]._ticktext[O];z[O]={dimensionInd:b,categoryInd:C=O,categoryValue:D,displayInd:C,categoryLabel:R,valueInds:[],count:0,dragY:null}}u(z[O],x,d)}return n(function(t,e,r){var n=t.map((function(t){return t.categories.length})).reduce((function(t,e){return Math.max(t,e)}));return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(P,A,g))}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/filter_unique.js&quot;:794,&quot;../../lib/gup&quot;:800,&quot;fast-isnumeric&quot;:249}],1176:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../parcoords/merge_length&quot;);function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(&quot;values&quot;),a=r(&quot;visible&quot;);if(i&amp;&amp;i.length||(a=e.visible=!1),a){r(&quot;label&quot;),r(&quot;displayindex&quot;,e._index);var o,s=t.categoryarray,c=Array.isArray(s)&amp;&amp;s.length&gt;0;c&amp;&amp;(o=&quot;array&quot;);var u=r(&quot;categoryorder&quot;,o);&quot;array&quot;===u?(r(&quot;categoryarray&quot;),r(&quot;ticktext&quot;)):(delete t.categoryarray,delete t.ticktext),c||&quot;array&quot;!==u||(e.categoryorder=&quot;trace&quot;)}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=function(t,e,r,o,s){s(&quot;line.shape&quot;),s(&quot;line.hovertemplate&quot;);var l=s(&quot;line.color&quot;,o.colorway[0]);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&amp;&amp;p.length||(e.visible=!1),c(e,p,&quot;values&quot;,d),h(&quot;hoveron&quot;),h(&quot;hovertemplate&quot;),h(&quot;arrangement&quot;),h(&quot;bundlecolors&quot;),h(&quot;sortpaths&quot;),h(&quot;counts&quot;);var g={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,&quot;labelfont&quot;,g);var m={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,&quot;tickfont&quot;,m)}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/domain&quot;:882,&quot;../parcoords/merge_length&quot;:1189,&quot;./attributes&quot;:1173}],1177:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcats&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1173,&quot;./base_plot&quot;:1174,&quot;./calc&quot;:1175,&quot;./defaults&quot;:1176,&quot;./plot&quot;:1179}],1178:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-interpolate&quot;).interpolateNumber,a=t(&quot;../../plot_api/plot_api&quot;),o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../components/drawing&quot;),u=t(&quot;tinycolor2&quot;),f=t(&quot;../../lib/svg_text_utils&quot;);function h(t,e,r,i){var a=t.map(F.bind(0,e,r)),o=i.selectAll(&quot;g.parcatslayer&quot;).data([null]);o.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;parcatslayer&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;);var u=o.selectAll(&quot;g.trace.parcats&quot;).data(a,p),h=u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;trace parcats&quot;);u.attr(&quot;transform&quot;,(function(t){return l(t.x,t.y)})),h.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;paths&quot;);var y=u.select(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;).data((function(t){return t.paths}),p);y.attr(&quot;fill&quot;,(function(t){return t.model.color}));var x=y.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;path&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,0);_(x),y.attr(&quot;d&quot;,(function(t){return t.svgD})),x.empty()||y.sort(g),y.exit().remove(),y.on(&quot;mouseover&quot;,m).on(&quot;mouseout&quot;,v).on(&quot;click&quot;,b),h.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimensions&quot;);var w=u.select(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;).data((function(t){return t.dimensions}),p);w.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimension&quot;),w.attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),w.exit().remove();var A=w.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),p),M=A.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;category&quot;);A.attr(&quot;transform&quot;,(function(t){return l(0,t.y)})),M.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;catrect&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;),A.select(&quot;rect.catrect&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),T(M);var S=A.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),p);S.each((function(){s.raiseToTop(this)})),S.attr(&quot;fill&quot;,(function(t){return t.color}));var E=S.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);S.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;perpendicular&quot;===t.parcatsViewModel.arrangement?&quot;ns-resize&quot;:&quot;move&quot;})),k(E),S.exit().remove(),M.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;catlabel&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;);var z=e._fullLayout.paper_bgcolor;A.select(&quot;text.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return d(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).style(&quot;text-shadow&quot;,f.makeTextShadow(z)).style(&quot;fill&quot;,&quot;rgb(0, 0, 0)&quot;).attr(&quot;x&quot;,(function(t){return d(t)?t.width+5:-5})).attr(&quot;y&quot;,(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){c.font(n.select(this),t.parcatsViewModel.categorylabelfont),f.convertToTspans(n.select(this),e)})),M.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;dimlabel&quot;),A.select(&quot;text.dimlabel&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).attr(&quot;alignment-baseline&quot;,&quot;baseline&quot;).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;ew-resize&quot;})).attr(&quot;x&quot;,(function(t){return t.width/2})).attr(&quot;y&quot;,-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){c.font(n.select(this),t.parcatsViewModel.labelfont)})),A.selectAll(&quot;rect.bandrect&quot;).on(&quot;mouseover&quot;,L).on(&quot;mouseout&quot;,C),A.exit().remove(),w.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on(&quot;dragstart&quot;,P).on(&quot;drag&quot;,I).on(&quot;dragend&quot;,O)),u.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;),t.dimensionSelection=n.select(this).selectAll(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;)})),u.exit().remove()}function p(t){return t.key}function d(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function g(t,e){return t.model.rawColor&gt;e.model.rawColor?1:t.model.rawColor&lt;e.model.rawColor?-1:0}function m(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){s.raiseToTop(this),w(n.select(this));var e=y(t),r=x(t);if(t.parcatsViewModel.graphDiv.emit(&quot;plotly_hover&quot;,{points:e,event:n.event,constraints:r}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;)){var i,a,l,c=n.mouse(this)[0],f=t.parcatsViewModel.graphDiv,h=t.parcatsViewModel.trace,p=f._fullLayout,d=p._paperdiv.node().getBoundingClientRect(),g=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(l=0;l&lt;t.leftXs.length-1;l++)if(t.leftXs[l]+t.dimWidths[l]-2&lt;=c&amp;&amp;c&lt;=t.leftXs[l+1]+2){var m=t.parcatsViewModel.dimensions[l],v=t.parcatsViewModel.dimensions[l+1];i=(m.x+m.width+v.x)/2,a=(t.topYs[l]+t.topYs[l+1]+t.height)/2;break}var b=t.parcatsViewModel.x+i,_=t.parcatsViewModel.y+a,T=u.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;]),k=t.model.count,A=k/t.parcatsViewModel.model.count,M={countLabel:k,probabilityLabel:A.toFixed(3)},S=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;S.push([&quot;Count:&quot;,M.countLabel].join(&quot; &quot;)),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;S.push([&quot;P:&quot;,M.probabilityLabel].join(&quot; &quot;));var E=S.join(&quot;&lt;br&gt;&quot;),L=n.mouse(f)[0];o.loneHover({trace:h,x:b-d.left+g.left,y:_-d.top+g.top,text:E,color:t.model.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:10,fontColor:T,idealAlign:L&lt;b?&quot;right&quot;:&quot;left&quot;,hovertemplate:(h.line||{}).hovertemplate,hovertemplateLabels:M,eventData:[{data:h._input,fullData:h,count:k,probability:A}]},{container:p._hoverlayer.node(),outerContainer:p._paper.node(),gd:f})}}}function v(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;(_(n.select(this)),o.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(g),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;))){var e=y(t),r=x(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_unhover&quot;,{points:e,event:n.event,constraints:r})}}function y(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n&lt;t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function x(t){for(var e={},r=t.parcatsViewModel.model.dimensions,n=0;n&lt;r.length;n++){var i=r[n],a=i.categories[t.model.categoryInds[n]];e[i.containerInd]=a.categoryValue}return void 0!==t.model.rawColor&amp;&amp;(e.color=t.model.rawColor),e}function b(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){var e=y(t),r=x(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_click&quot;,{points:e,event:n.event,constraints:r})}}function _(t){t.attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,.6).attr(&quot;stroke&quot;,&quot;lightgray&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1)}function w(t){t.attr(&quot;fill-opacity&quot;,.8).attr(&quot;stroke&quot;,(function(t){return u.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;])})).attr(&quot;stroke-width&quot;,.3)}function T(t){t.select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1).attr(&quot;stroke-opacity&quot;,1)}function k(t){t.attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1).attr(&quot;fill-opacity&quot;,1)}function A(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter((function(e){return e.model.categoryInds[r]===n&amp;&amp;e.model.color===t.color}))}function M(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;),l=[];s.each((function(t){A(t).each((function(t){Array.prototype.push.apply(l,y(t))}))}));var c={};c[a.dimensionInd]=a.categoryValue,o.emit(e,{points:l,event:r,constraints:c})}function S(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=A(i),l=[];s.each((function(t){Array.prototype.push.apply(l,y(t))}));var c={};c[a.dimensionInd]=a.categoryValue,void 0!==i.rawColor&amp;&amp;(c.color=i.rawColor),o.emit(e,{points:l,event:r,constraints:c})}function E(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=n.select(r.parentNode).select(&quot;rect.catrect&quot;),c=l.node().getBoundingClientRect(),u=l.datum(),f=u.parcatsViewModel,h=f.model.dimensions[u.model.dimensionInd],p=f.trace,d=c.top+c.height/2;f.dimensions.length&gt;1&amp;&amp;h.displayInd===f.dimensions.length-1?(i=c.left,a=&quot;left&quot;):(i=c.left+c.width,a=&quot;right&quot;);var g=u.model.count,m=u.model.categoryLabel,v=g/u.parcatsViewModel.model.count,y={countLabel:g,categoryLabel:m,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;x.push([&quot;Count:&quot;,y.countLabel].join(&quot; &quot;)),-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;x.push([&quot;P(&quot;+y.categoryLabel+&quot;):&quot;,y.probabilityLabel].join(&quot; &quot;));var b=x.join(&quot;&lt;br&gt;&quot;);return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:b,color:&quot;lightgray&quot;,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:12,fontColor:&quot;black&quot;,idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:y,eventData:[{data:p._input,fullData:p,count:g,category:m,probability:v}]}}function L(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){if(n.mouse(this)[1]&lt;-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,a=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron;if(&quot;color&quot;===l?(!function(t){var e=n.select(t).datum(),r=A(e);w(r),r.each((function(){s.raiseToTop(this)})),n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).filter((function(t){return t.color===e.color})).each((function(){s.raiseToTop(this),n.select(this).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1.5)}))}(this),S(this,&quot;plotly_hover&quot;,n.event)):(!function(t){n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(t){var e=A(t);w(e),e.each((function(){s.raiseToTop(this)}))})),n.select(t.parentNode).select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,2.5)}(this),M(this,&quot;plotly_hover&quot;,n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;))&quot;category&quot;===l?e=E(r,a,this):&quot;color&quot;===l?e=function(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),c=n.select(r).datum(),f=c.categoryViewModel,h=f.parcatsViewModel,p=h.model.dimensions[f.model.dimensionInd],d=h.trace,g=l.y+l.height/2;h.dimensions.length&gt;1&amp;&amp;p.displayInd===h.dimensions.length-1?(i=l.left,a=&quot;left&quot;):(i=l.left+l.width,a=&quot;right&quot;);var m=f.model.categoryLabel,v=c.parcatsViewModel.model.count,y=0;c.categoryViewModel.bands.forEach((function(t){t.color===c.color&amp;&amp;(y+=t.count)}));var x=f.model.count,b=0;h.pathSelection.each((function(t){t.model.color===c.color&amp;&amp;(b+=t.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:m,probabilityLabel:_.toFixed(3)},A=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;A.push([&quot;Count:&quot;,k.countLabel].join(&quot; &quot;)),-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;(A.push(&quot;P(color \u2229 &quot;+m+&quot;): &quot;+k.probabilityLabel),A.push(&quot;P(&quot;+m+&quot; | color): &quot;+w.toFixed(3)),A.push(&quot;P(color | &quot;+m+&quot;): &quot;+T.toFixed(3)));var M=A.join(&quot;&lt;br&gt;&quot;),S=u.mostReadable(c.color,[&quot;black&quot;,&quot;white&quot;]);return{trace:d,x:o*(i-e.left),y:s*(g-e.top),text:M,color:c.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:m,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,a,this):&quot;dimension&quot;===l&amp;&amp;(e=function(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(){i.push(E(t,e,this))})),i}(r,a,this)),e&amp;&amp;o.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(t){var e=t.parcatsViewModel;if(!e.dragDimension&amp;&amp;(_(e.pathSelection),T(e.dimensionSelection.selectAll(&quot;g.category&quot;)),k(e.dimensionSelection.selectAll(&quot;g.category&quot;).selectAll(&quot;rect.bandrect&quot;)),o.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(g),-1===e.hoverinfoItems.indexOf(&quot;skip&quot;))){&quot;color&quot;===t.parcatsViewModel.hoveron?S(this,&quot;plotly_unhover&quot;,n.event):M(this,&quot;plotly_unhover&quot;,n.event)}}function P(t){&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2&lt;=r&amp;&amp;r&lt;=e.width+2&amp;&amp;-2&lt;=i&amp;&amp;i&lt;=e.height+2&amp;&amp;(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,s.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(e){e.y&lt;i&amp;&amp;i&lt;=e.y+e.height&amp;&amp;(t.potentialClickBand=this)})))})),t.parcatsViewModel.dragDimension=t,o.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function I(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&amp;&amp;s&lt;u.y+u.height/2&amp;&amp;(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&amp;&amp;s+o.height&gt;f.y+f.height/2&amp;&amp;(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||&quot;freeform&quot;===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&amp;&amp;a.model.dragX&lt;h.x+h.width&amp;&amp;(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&amp;&amp;a.model.dragX+a.width&gt;p.x&amp;&amp;(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}j(t.parcatsViewModel),N(t.parcatsViewModel),R(t.parcatsViewModel),D(t.parcatsViewModel)}}function O(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;null!==t.dragDimensionDisplayInd){n.select(this).selectAll(&quot;text&quot;).attr(&quot;font-weight&quot;,&quot;normal&quot;);var e={},r=z(t.parcatsViewModel),i=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==i[e]}));o&amp;&amp;i.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[&quot;dimensions[&quot;+i+&quot;].displayindex&quot;]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryarray&quot;]=[u],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].ticktext&quot;]=[f],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryorder&quot;]=&quot;array&quot;}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)&amp;&amp;!t.dragHasMoved&amp;&amp;t.potentialClickBand&amp;&amp;(&quot;color&quot;===t.parcatsViewModel.hoveron?S(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent):M(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,j(t.parcatsViewModel),N(t.parcatsViewModel),n.transition().duration(300).ease(&quot;cubic-in-out&quot;).each((function(){R(t.parcatsViewModel,!0),D(t.parcatsViewModel,!0)})).each(&quot;end&quot;,(function(){(o||s)&amp;&amp;a.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n&lt;r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function D(t,e){var r;void 0===e&amp;&amp;(e=!1),t.pathSelection.data((function(t){return t.paths}),p),(r=t.pathSelection,e?r.transition():r).attr(&quot;d&quot;,(function(t){return t.svgD}))}function R(t,e){function r(t){return e?t.transition():t}void 0===e&amp;&amp;(e=!1),t.dimensionSelection.data((function(t){return t.dimensions}),p);var i=t.dimensionSelection.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),p);r(t.dimensionSelection).attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),r(i).attr(&quot;transform&quot;,(function(t){return l(0,t.y)})),i.select(&quot;.dimlabel&quot;).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})),i.select(&quot;.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return d(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;x&quot;,(function(t){return d(t)?t.width+5:-5})).each((function(t){var e,r;d(t)?(e=t.width+5,r=&quot;start&quot;):(e=-5,r=&quot;end&quot;),n.select(this).selectAll(&quot;tspan&quot;).attr(&quot;x&quot;,e).attr(&quot;text-anchor&quot;,r)}));var a=i.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),p),o=a.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;cursor&quot;,&quot;move&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);a.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})),k(o),a.each((function(){s.raiseToTop(this)})),a.exit().remove()}function F(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=&quot;all&quot;===o.hoverinfo?[&quot;count&quot;,&quot;probability&quot;]:(o.hoverinfo||&quot;&quot;).split(&quot;+&quot;);var g={trace:o,key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};return i.dimensions&amp;&amp;(j(g),N(g)),g}function B(t,e,r,n,a){var o,s,l=[],c=[];for(s=0;s&lt;r.length-1;s++)o=i(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=&quot;M &quot;+t[0]+&quot;,&quot;+e[0];for(u+=&quot;l&quot;+r[0]+&quot;,0 &quot;,s=1;s&lt;r.length;s++)u+=&quot;C&quot;+l[s-1]+&quot;,&quot;+e[s-1]+&quot; &quot;+c[s-1]+&quot;,&quot;+e[s]+&quot; &quot;+t[s]+&quot;,&quot;+e[s],u+=&quot;l&quot;+r[s]+&quot;,0 &quot;;for(u+=&quot;l0,&quot;+n+&quot; &quot;,u+=&quot;l -&quot;+r[r.length-1]+&quot;,0 &quot;,s=r.length-2;s&gt;=0;s--)u+=&quot;C&quot;+c[s]+&quot;,&quot;+(e[s+1]+n)+&quot; &quot;+l[s]+&quot;,&quot;+(e[s]+n)+&quot; &quot;+(t[s]+r[s])+&quot;,&quot;+(e[s]+n),u+=&quot;l-&quot;+r[s]+&quot;,0 &quot;;return u+=&quot;Z&quot;}function N(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&amp;&amp;c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return&quot;backward&quot;===t.sortpaths&amp;&amp;(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&amp;&amp;(n.unshift(e.rawColor),i.unshift(r.rawColor)),n&lt;i?-1:n&gt;i?1:0}));for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),g=0;g&lt;c.length;g++){var m,v=c[g];m=p&gt;0?d*(v.count/p):0;for(var y,x=new Array(n.length),b=0;b&lt;v.categoryInds.length;b++){var _=v.categoryInds[b],w=i[b][_],T=a[b];x[T]=n[T][w],n[T][w]+=m;var k=t.dimensions[T].categories[w],A=k.bands.length,M=k.bands[A-1];if(void 0===M||v.rawColor!==M.rawColor){var S=void 0===M?0:M.y+M.height;k.bands.push({key:S,color:v.color,rawColor:v.rawColor,height:m,width:k.width,count:v.count,y:S,categoryViewModel:k,parcatsViewModel:t})}else{var E=k.bands[A-1];E.height+=m,E.count+=v.count}}y=&quot;hspline&quot;===t.pathShape?B(s,x,l,m,.5):B(s,x,l,m,0),h[g]={key:v.valueInds[0],model:v,height:m,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function j(t){var e=t.model.dimensions.map((function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}}));e.sort((function(t,e){return t.displayInd-e.displayInd}));var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(U(t,a))}t.dimensions=r}function U(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n&gt;1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),g=8*(f-h)/2,m=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(m.sort((function(t,e){return t.displayInd-e.displayInd})),c=0;c&lt;h;c++)l=m[c].categoryInd,o=e.categories[l],a=p&gt;0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:t},g=g+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){h(r,t,n,e)}},{&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plot_api/plot_api&quot;:840,&quot;@plotly/d3&quot;:58,&quot;d3-interpolate&quot;:171,tinycolor2:598}],1179:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcats&quot;);e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{&quot;./parcats&quot;:1178}],1180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/layout_attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports={domain:o({name:&quot;parcoords&quot;,trace:!0,editType:&quot;plot&quot;}),labelangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},labelside:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;plot&quot;}),tickfont:a({editType:&quot;plot&quot;}),rangefont:a({editType:&quot;plot&quot;}),dimensions:l(&quot;dimension&quot;,{label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},tickvals:s({},i.tickvals,{editType:&quot;plot&quot;}),ticktext:s({},i.ticktext,{editType:&quot;plot&quot;}),tickformat:s({},i.tickformat,{editType:&quot;plot&quot;}),visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},constraintrange:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:&quot;1-2&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},multiselect:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}),line:s({editType:&quot;calc&quot;},n(&quot;line&quot;,{colorscaleDflt:&quot;Viridis&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883}],1181:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;@plotly/d3&quot;),a=t(&quot;../../lib/gup&quot;).keyFun,o=t(&quot;../../lib/gup&quot;).repeat,s=t(&quot;../../lib&quot;).sorterAsc,l=t(&quot;../../lib&quot;).strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function h(t,e){return t*(1-f)+e*f}function p(t,e,r,n){if(function(t,e){for(var r=0;r&lt;e.length;r++)if(t&gt;=e[r][0]&amp;&amp;t&lt;=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i&lt;0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*f&lt;i*o;f+=i){var p=f+i,d=e[p];if(i*r&lt;i*h(l,d))return u(l,c);if(i*r&lt;i*d||p===o)return u(d,l);c=l,l=d}}function d(t){t.attr(&quot;x&quot;,-n.bar.captureWidth/2).attr(&quot;width&quot;,n.bar.captureWidth)}function g(t){t.attr(&quot;visibility&quot;,&quot;visible&quot;).style(&quot;visibility&quot;,&quot;visible&quot;).attr(&quot;fill&quot;,&quot;yellow&quot;).attr(&quot;opacity&quot;,0)}function m(t){if(!t.brush.filterSpecified)return&quot;0,&quot;+t.height;for(var e,r,n,i=v(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s&lt;i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)&lt;i.length&amp;&amp;(o=i[n][0]-e[1]);return a.push(t.height),a}function v(t,e){return t.map((function(t){return t.map((function(t){return Math.max(0,t*e)})).sort(s)}))}function y(){i.select(document.body).style(&quot;cursor&quot;,null)}function x(t){t.attr(&quot;stroke-dasharray&quot;,m)}function b(t,e){var r=i.select(t).selectAll(&quot;.highlight, .highlight-shadow&quot;);x(e?r.transition().duration(n.bar.snapDuration).each(&quot;end&quot;,e):r)}function _(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=v(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r&lt;=c.length;r++){var p=c[r];if(p&amp;&amp;p[0]&lt;=e&amp;&amp;e&lt;=p[1]){u=r;break}if(f=r?r-1:NaN,p&amp;&amp;p[0]&gt;e){h=r;break}}if(a=u,isNaN(a)&amp;&amp;(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]&lt;c[h][0]-e?f:h),!isNaN(a)){var d=c[a],g=function(t,e){var r=n.bar.handleHeight;if(!(e&gt;t[1]+r||e&lt;t[0]-r))return e&gt;=.9*t[1]+.1*t[0]?&quot;n&quot;:e&lt;=.9*t[0]+.1*t[1]?&quot;s&quot;:&quot;ns&quot;}(d,e);g&amp;&amp;(o.interval=l[a],o.intervalPix=d,o.region=g)}}if(t.ordinal&amp;&amp;!o.region){var m=t.unitTickvals,y=t.unitToPaddedPx.invert(e);for(r=0;r&lt;m.length;r++){var x=[.25*m[Math.max(r-1,0)]+.75*m[r],.25*m[Math.min(r+1,m.length-1)]+.75*m[r]];if(y&gt;=x[0]&amp;&amp;y&lt;=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),b(t.parentNode)}function T(t,e){var r=_(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a=&quot;crosshair&quot;;r.clickableOrdinalRange?a=&quot;pointer&quot;:r.region&amp;&amp;(a=r.region+&quot;-resize&quot;),i.select(document.body).style(&quot;cursor&quot;,a)}function k(t){t.on(&quot;mousemove&quot;,(function(t){i.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on(&quot;mouseleave&quot;,(function(t){t.parent.inBrushDrag||y()})).call(i.behavior.drag().on(&quot;dragstart&quot;,(function(t){!function(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=_(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar=&quot;ns&quot;===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&amp;&amp;o.filterSpecified?o.filter.getConsolidated():[],l&amp;&amp;(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&amp;&amp;t[1]!==l[1]}))),c.startExtent=s.region?l[&quot;s&quot;===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}(this,t)})).on(&quot;drag&quot;,(function(t){w(this,t)})).on(&quot;dragend&quot;,(function(t){!function(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&amp;&amp;e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&amp;&amp;M(r)):M(r),a.brushCallback(e),b(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]&lt;l[0]&amp;&amp;l.reverse(),a.newExtent=[p(0,l,a.newExtent[0],a.stayingIntervals),p(1,l,a.newExtent[1],a.stayingIntervals)];var c=a.newExtent[1]&gt;a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||M(r),a.brushCallback(e),c?b(t.parentNode,s):(s(),b(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,t)})))}function A(t,e){return t[0]-e[0]}function M(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&amp;&amp;i[0]&lt;=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&amp;&amp;n[0][0]&gt;n[0][1]&amp;&amp;(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(A)).length&amp;&amp;r[0][0]===-1/0&amp;&amp;r[0][1]===1/0&amp;&amp;(r=[[0,-1]]),t=S(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t,e){var r=t.selectAll(&quot;.&quot;+n.cn.axisBrush).data(o,a);r.enter().append(&quot;g&quot;).classed(n.cn.axisBrush,!0),function(t,e){var r=t.selectAll(&quot;.background&quot;).data(o);r.enter().append(&quot;rect&quot;).classed(&quot;background&quot;,!0).call(d).call(g).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,l(0,n.verticalPadding)),r.call(k).attr(&quot;height&quot;,(function(t){return t.height-n.verticalPadding}));var i=t.selectAll(&quot;.highlight-shadow&quot;).data(o);i.enter().append(&quot;line&quot;).classed(&quot;highlight-shadow&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width+n.bar.strokeWidth).attr(&quot;stroke&quot;,e).attr(&quot;opacity&quot;,n.bar.strokeOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),i.attr(&quot;y1&quot;,(function(t){return t.height})).call(x);var a=t.selectAll(&quot;.highlight&quot;).data(o);a.enter().append(&quot;line&quot;).classed(&quot;highlight&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width-n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.fillColor).attr(&quot;opacity&quot;,n.bar.fillOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),a.attr(&quot;y1&quot;,(function(t){return t.height})).call(x)}(r,e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?S(t.sort(A)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[p(0,r,t[0],[]),p(1,r,t[1],[])];if(e[1]&gt;e[0])return e})).filter((function(t){return t}))).length)return}return t.length&gt;1?t:t[0]}}},{&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800,&quot;./constants&quot;:1184,&quot;@plotly/d3&quot;:58}],1182:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;parcoords&quot;,r.plot=function(t){var e=i(t.calcdata,&quot;parcoords&quot;)[0];e.length&amp;&amp;a(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcoords&quot;),a=e._has&amp;&amp;e._has(&quot;parcoords&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.parcoords&quot;).remove(),n._glimages.selectAll(&quot;*&quot;).remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.style.width,height:this.style.height})})),window.setTimeout((function(){n.selectAll(&quot;#filterBarPattern&quot;).attr(&quot;id&quot;,&quot;filterBarPattern&quot;)}),60)}},{&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../plots/get_data&quot;:891,&quot;./plot&quot;:1191,&quot;@plotly/d3&quot;:58}],1183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale&quot;),a=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(t,e){var r,o;return i.hasColorscale(e,&quot;line&quot;)&amp;&amp;n(e.line.color)?(r=e.line.color,o=i.extractOpts(e.line).colorscale,i.calc(t,e,{vals:r,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;})):(r=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=.5;return e}(e._length),o=[[0,e.line.color],[1,e.line.color]]),a({lineColor:r,cscale:o})}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800}],1184:[function(t,e,r){&quot;use strict&quot;;e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[&quot;contextLineLayer&quot;,&quot;focusLineLayer&quot;,&quot;pickLineLayer&quot;],axisTitleOffset:28,axisExtentOffset:10,deselectedLineColor:&quot;#777&quot;,bar:{width:4,captureWidth:10,fillColor:&quot;magenta&quot;,fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:&quot;axis-extent-text&quot;,parcoordsLineLayers:&quot;parcoords-line-layers&quot;,parcoordsLineLayer:&quot;parcoords-lines&quot;,parcoords:&quot;parcoords&quot;,parcoordsControlView:&quot;parcoords-control-view&quot;,yAxis:&quot;y-axis&quot;,axisOverlays:&quot;axis-overlays&quot;,axis:&quot;axis&quot;,axisHeading:&quot;axis-heading&quot;,axisTitle:&quot;axis-title&quot;,axisExtent:&quot;axis-extent&quot;,axisExtentTop:&quot;axis-extent-top&quot;,axisExtentTopText:&quot;axis-extent-top-text&quot;,axisExtentBottom:&quot;axis-extent-bottom&quot;,axisExtentBottomText:&quot;axis-extent-bottom-text&quot;,axisBrush:&quot;axis-brush&quot;},id:{filterBarPattern:&quot;filter-bar-pattern&quot;}}},{}],1185:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;./attributes&quot;),u=t(&quot;./axisbrush&quot;),f=t(&quot;./constants&quot;).maxDimensionCount,h=t(&quot;./merge_length&quot;);function p(t,e,r,i){function a(r,i){return n.coerce(t,e,c.dimensions,r,i)}var o=a(&quot;values&quot;),s=a(&quot;visible&quot;);if(o&amp;&amp;o.length||(s=e.visible=!1),s){a(&quot;label&quot;),a(&quot;tickvals&quot;),a(&quot;ticktext&quot;),a(&quot;tickformat&quot;);var f=a(&quot;range&quot;);e._ax={_id:&quot;y&quot;,type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;,range:f},l.setConvert(e._ax,i.layout),a(&quot;multiselect&quot;);var h=a(&quot;constraintrange&quot;);h&amp;&amp;(e.constraintrange=u.cleanRanges(h,e))}}e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,c,r,i)}var d=t.dimensions;Array.isArray(d)&amp;&amp;d.length&gt;f&amp;&amp;(n.log(&quot;parcoords traces support up to &quot;+f+&quot; dimensions at the moment&quot;),d.splice(f));var g=s(t,e,{name:&quot;dimensions&quot;,layout:l,handleItemDefaults:p}),m=function(t,e,r,o,s){var l=s(&quot;line.color&quot;,r);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,l,u);o(e,l,u),Array.isArray(g)&amp;&amp;g.length||(e.visible=!1),h(e,g,&quot;values&quot;,m);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,&quot;labelfont&quot;,v),n.coerceFont(u,&quot;tickfont&quot;,v),n.coerceFont(u,&quot;rangefont&quot;,v),u(&quot;labelangle&quot;),u(&quot;labelside&quot;)}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/domain&quot;:882,&quot;./attributes&quot;:1180,&quot;./axisbrush&quot;:1181,&quot;./constants&quot;:1184,&quot;./merge_length&quot;:1189}],1186:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!(&quot;visible&quot;in t)}},{&quot;../../lib&quot;:803}],1187:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcoords&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],meta:{}}},{&quot;./attributes&quot;:1180,&quot;./base_plot&quot;:1182,&quot;./calc&quot;:1183,&quot;./defaults&quot;:1185,&quot;./plot&quot;:1191}],1188:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n               p17_20, p21_24, p25_28, p29_32,\n               p33_36, p37_40, p41_44, p45_48,\n               p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n             loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\nuniform sampler2D maskTexture, palette;\n\nbool isPick    = (drwLayer &gt; 1.5);\nbool isContext = (drwLayer &lt; 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n    return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n    float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n    return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n    return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n    return (lo &lt; hi) &amp;&amp; (lo &gt; p || p &gt; hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n    return (\n        fOutside(p[0], lo[0], hi[0]) ||\n        fOutside(p[1], lo[1], hi[1]) ||\n        fOutside(p[2], lo[2], hi[2]) ||\n        fOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n    return (\n        vOutside(p[0], lo[0], hi[0]) ||\n        vOutside(p[1], lo[1], hi[1]) ||\n        vOutside(p[2], lo[2], hi[2]) ||\n        vOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n    return mOutside(A, loA, hiA) ||\n           mOutside(B, loB, hiB) ||\n           mOutside(C, loC, hiC) ||\n           mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n    mat4 pnts[4];\n    pnts[0] = A;\n    pnts[1] = B;\n    pnts[2] = C;\n    pnts[3] = D;\n\n    for(int i = 0; i &lt; 4; ++i) {\n        for(int j = 0; j &lt; 4; ++j) {\n            for(int k = 0; k &lt; 4; ++k) {\n                if(0 == iMod(\n                    int(255.0 * texture2D(maskTexture,\n                        vec2(\n                            (float(i * 2 + j / 2) + 0.5) / 8.0,\n                            (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n                        ))[3]\n                    ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n                    2\n                )) return true;\n            }\n        }\n    }\n    return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float x = 0.5 * sign(v) + 0.5;\n    float y = axisY(x, A, B, C, D);\n    float z = 1.0 - abs(v);\n\n    z += isContext ? 0.0 : 2.0 * float(\n        outsideBoundingBox(A, B, C, D) ||\n        outsideRasterMask(A, B, C, D)\n    );\n\n    return vec4(\n        2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n        z,\n        1.0\n    );\n}\n\nvoid main() {\n    mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n    mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n    mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n    mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n    float v = colors[3];\n\n    gl_Position = position(isContext, v, A, B, C, D);\n\n    fragColor =\n        isContext ? vec4(contextColor) :\n        isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n&quot;]),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n    gl_FragColor = fragColor;\n}\n&quot;]),o=t(&quot;./constants&quot;).maxDimensionCount,s=t(&quot;../../lib&quot;),l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:&quot;rgba&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;};function f(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function h(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&amp;&amp;(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],f(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c&lt;i&amp;&amp;(r.currentRafs[o]=window.requestAnimationFrame((function(){s(l+1)}))),r.drawCompleted=!1)}(0)}function p(t,e){for(var r=new Array(256),n=0;n&lt;256;n++)r[n]=t(n/255).concat(e);return r}function d(t,e){return(t&gt;&gt;&gt;8*e)%256/255}function g(t,e,r){for(var n=new Array(8*e),i=0,a=0;a&lt;e;a++)for(var o=0;o&lt;2;o++)for(var s=0;s&lt;4;s++){var l=4*t+s,c=r[64*a+l];63===l&amp;&amp;0===o&amp;&amp;(c*=-1),n[i++]=c}return n}function m(t){var e=&quot;0&quot;+t;return e.substr(e.length-2)}function v(t){return t&lt;o?&quot;p&quot;+m(t+1)+&quot;_&quot;+m(t+4):&quot;colors&quot;}function y(t,e,r,n,i,a,o,l,c,u,f,h,p,d){for(var g=[[],[]],m=0;m&lt;64;m++)g[0][m]=m===i?1:0,g[1][m]=m===a?1:0;o*=d,l*=d,c*=d,u*=d;var v=t.lines.canvasOverdrag*d,y=t.domain,x=t.canvasWidth*d,b=t.canvasHeight*d,_=t.pad.l*d,w=t.pad.b*d,T=t.layoutHeight*d,k=t.layoutWidth*d,A=t.deselectedLines.color;return s.extendFlat({key:f,resolution:[x,b],viewBoxPos:[o+v,l],viewBoxSize:[c,u],i0:i,i1:a,dim0A:g[0].slice(0,16),dim0B:g[0].slice(16,32),dim0C:g[0].slice(32,48),dim0D:g[0].slice(48,64),dim1A:g[1].slice(0,16),dim1B:g[1].slice(16,32),dim1C:g[1].slice(32,48),dim1D:g[1].slice(48,64),drwLayer:h,contextColor:[A[0]/255,A[1]/255,A[2]/255,A[3]&lt;1?A[3]:Math.max(1/255,Math.pow(1/t.lines.color.length,1/3))],scissorX:(n===e?0:o+v)+(_-v)+k*y.x[0],scissorWidth:(n===r?x-o+v:c+.5)+(n===e?o+v:0),scissorY:l+w+T*y.y[0],scissorHeight:u,viewportX:_-v+k*y.x[0],viewportY:w+T*y.y[0],viewportWidth:x,viewportHeight:b},p)}function x(t){var e=Math.max(0,Math.floor(2047*t[0]),0),r=Math.min(2047,Math.ceil(2047*t[1]),2047);return[Math.min(e,r),Math.max(e,r)]}e.exports=function(t,e){var r,n,l,m,b,_=e.context,w=e.pick,T=e.regl,k=T._gl,A=k.getParameter(k.ALIASED_LINE_WIDTH_RANGE),M=Math.max(A[0],Math.min(A[1],e.viewModel.plotGlPixelRatio)),S={currentRafs:{},drawCompleted:!0,clearOnly:!1},E=function(t){for(var e={},r=0;r&lt;=o;r+=4)e[v(r)]=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)});return e}(T),L=T.texture(u),C=[];I(e);var P=T({profile:!1,blend:{enable:_,func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:1,dstAlpha:1},equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},color:[0,0,0,0]},depth:{enable:!_,mask:!0,func:&quot;less&quot;,range:[0,1]},cull:{enable:!0,face:&quot;back&quot;},scissor:{enable:!0,box:{x:T.prop(&quot;scissorX&quot;),y:T.prop(&quot;scissorY&quot;),width:T.prop(&quot;scissorWidth&quot;),height:T.prop(&quot;scissorHeight&quot;)}},viewport:{x:T.prop(&quot;viewportX&quot;),y:T.prop(&quot;viewportY&quot;),width:T.prop(&quot;viewportWidth&quot;),height:T.prop(&quot;viewportHeight&quot;)},dither:!1,vert:i,frag:a,primitive:&quot;lines&quot;,lineWidth:M,attributes:E,uniforms:{resolution:T.prop(&quot;resolution&quot;),viewBoxPos:T.prop(&quot;viewBoxPos&quot;),viewBoxSize:T.prop(&quot;viewBoxSize&quot;),dim0A:T.prop(&quot;dim0A&quot;),dim1A:T.prop(&quot;dim1A&quot;),dim0B:T.prop(&quot;dim0B&quot;),dim1B:T.prop(&quot;dim1B&quot;),dim0C:T.prop(&quot;dim0C&quot;),dim1C:T.prop(&quot;dim1C&quot;),dim0D:T.prop(&quot;dim0D&quot;),dim1D:T.prop(&quot;dim1D&quot;),loA:T.prop(&quot;loA&quot;),hiA:T.prop(&quot;hiA&quot;),loB:T.prop(&quot;loB&quot;),hiB:T.prop(&quot;hiB&quot;),loC:T.prop(&quot;loC&quot;),hiC:T.prop(&quot;hiC&quot;),loD:T.prop(&quot;loD&quot;),hiD:T.prop(&quot;hiD&quot;),palette:L,contextColor:T.prop(&quot;contextColor&quot;),maskTexture:T.prop(&quot;maskTexture&quot;),drwLayer:T.prop(&quot;drwLayer&quot;),maskHeight:T.prop(&quot;maskHeight&quot;)},offset:T.prop(&quot;offset&quot;),count:T.prop(&quot;count&quot;)});function I(t){r=t.model,n=t.viewModel,l=n.dimensions.slice(),m=l[0]?l[0].values.length:0;var e=r.lines,i=w?e.color.map((function(t,r){return r/e.color.length})):e.color,a=function(t,e,r){for(var n,i=new Array(t*(o+4)),a=0,s=0;s&lt;t;s++){for(var l=0;l&lt;o;l++)i[a++]=l&lt;e.length?e[l].paddedUnitValues[s]:.5;i[a++]=d(s,2),i[a++]=d(s,1),i[a++]=d(s,0),i[a++]=(n=r[s],Math.max(1e-6,Math.min(.999999,n)))}return i}(m,l,i);!function(t,e,r){for(var n=0;n&lt;=o;n+=4)t[v(n)](g(n/4,e,r))}(E,m,a),_||w||(L=T.texture(s.extendFlat({data:p(r.unitToColor,255)},u)))}return{render:function(t,e,n){var i,a,o,s=t.length,c=1/0,u=-1/0;for(i=0;i&lt;s;i++)t[i].dim0.canvasX&lt;c&amp;&amp;(c=t[i].dim0.canvasX,a=i),t[i].dim1.canvasX&gt;u&amp;&amp;(u=t[i].dim1.canvasX,o=i);0===s&amp;&amp;f(T,0,0,r.canvasWidth,r.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n&lt;64;n++){var a=!t&amp;&amp;n&lt;l.length?l[n].brush.filter.getBounds():[-1/0,1/0];i[0][n]=a[0],i[1][n]=a[1]}var o=new Array(16384);for(e=0;e&lt;16384;e++)o[e]=255;if(!t)for(e=0;e&lt;l.length;e++){var s=e%8,c=(e-s)/8,u=Math.pow(2,s),f=l[e].brush.filter.get();if(!(f.length&lt;2)){var h=x(f[0])[1];for(r=1;r&lt;f.length;r++){var p=x(f[r]);for(n=h+1;n&lt;p[0];n++)o[8*n+c]&amp;=~u;h=Math.max(h,p[1])}}}var d={shape:[8,2048],format:&quot;alpha&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;,data:o};return b?b(d):b=T.texture(d),{maskTexture:b,maskHeight:2048,loA:i[0].slice(0,16),loB:i[0].slice(16,32),loC:i[0].slice(32,48),loD:i[0].slice(48,64),hiA:i[1].slice(0,16),hiB:i[1].slice(16,32),hiC:i[1].slice(32,48),hiD:i[1].slice(48,64)}}(_);for(i=0;i&lt;s;i++){var d=t[i],g=d.dim0.crossfilterDimensionIndex,v=d.dim1.crossfilterDimensionIndex,k=d.canvasX,A=d.canvasY,M=k+d.panelSizeX,E=d.plotGlPixelRatio;if(e||!C[g]||C[g][0]!==k||C[g][1]!==M){C[g]=[k,M];var L=y(r,a,o,i,g,v,k,A,d.panelSizeX,d.panelSizeY,d.dim0.crossfilterDimensionIndex,_?0:w?2:1,p,E);S.clearOnly=n;var I=e?r.lines.blockLineCount:m;h(T,P,S,I,m,L)}}},readPixel:function(t,e){return T.read({x:t,y:e,width:1,height:1,data:c}),c},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return T.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[&quot;pointer-events&quot;]=&quot;none&quot;,L.destroy(),b&amp;&amp;b.destroy(),E)E[e].destroy()},update:I}}},{&quot;../../lib&quot;:803,&quot;./constants&quot;:1184,glslify:442}],1189:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(n=Math.min(n,a[r].length));for(n===1/0&amp;&amp;(n=0),t._length=n,i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(a._length=n);return n}},{}],1190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;color-rgba&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=i.strRotate,c=i.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../components/colorscale&quot;),p=t(&quot;../../lib/gup&quot;),d=p.keyFun,g=p.repeat,m=p.unwrap,v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;./axisbrush&quot;),b=t(&quot;./lines&quot;);function _(t,e,r){return i.aggNums(t,null,e,r)}function w(t,e){return k(_(Math.min,t,e),_(Math.max,t,e))}function T(t){var e=t.range;return e?k(e[0],e[1]):w(t.values,t._length)}function k(t,e){return!isNaN(t)&amp;&amp;isFinite(t)||(t=0),!isNaN(e)&amp;&amp;isFinite(e)||(e=0),t===e&amp;&amp;(0===t?(t-=1,e+=1):(t*=.9,e*=1.1)),[t,e]}function A(t,e,r,i,o){var s,l,c=T(r);return i?n.scale.ordinal().domain(i.map((s=a(r.tickformat),l=o,l?function(t,e){var r=l[e];return null==r?s(t):r}:s))).range(i.map((function(r){var n=(r-c[0])/(c[1]-c[0]);return t-e+n*(2*e-t)}))):n.scale.linear().domain(c).range([t-e,e])}function M(t){if(t.tickvals){var e=T(t);return n.scale.ordinal().domain(t.tickvals).range(t.tickvals.map((function(t){return(t-e[0])/(e[1]-e[0])})))}}function S(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){var e=o(t[1]);return n.rgb(&quot;rgb(&quot;+e[0]+&quot;,&quot;+e[1]+&quot;,&quot;+e[2]+&quot;)&quot;)})),i=&quot;rgb&quot;.split(&quot;&quot;).map((function(t){return n.scale.linear().clamp(!0).domain(e).range(r.map((i=t,function(t){return t[i]})));var i}));return function(t){return i.map((function(e){return e(t)}))}}function E(t){return t.dimensions.some((function(t){return t.brush.filterSpecified}))}function L(t,e,r){var a=m(e),s=a.trace,l=v.convertTypedArray(a.lineColor),c=s.line,u={color:o(y.deselectedLineColor)},f=h.extractOpts(c),p=f.reversescale?h.flipScale(a.cscale):a.cscale,d=s.domain,g=s.dimensions,x=t.width,b=s.labelangle,_=s.labelside,w=s.labelfont,k=s.tickfont,A=s.rangefont,M=i.extendDeepNoArrays({},c,{color:l.map(n.scale.linear().domain(T({values:l,range:[f.min,f.max],_length:s._length}))),blockLineCount:y.blockLineCount,canvasOverdrag:y.overdrag*y.canvasPixelRatio}),E=Math.floor(x*(d.x[1]-d.x[0])),L=Math.floor(t.height*(d.y[1]-d.y[0])),C=t.margin||{l:80,r:80,t:100,b:80},P=E,I=L;return{key:r,colCount:g.filter(v.isVisible).length,dimensions:g,tickDistance:y.tickDistance,unitToColor:S(p),lines:M,deselectedLines:u,labelAngle:b,labelSide:_,labelFont:w,tickFont:k,rangeFont:A,layoutWidth:x,layoutHeight:t.height,domain:d,translateX:d.x[0]*x,translateY:t.height-d.y[1]*t.height,pad:C,canvasWidth:P*y.canvasPixelRatio+2*M.canvasOverdrag,canvasHeight:I*y.canvasPixelRatio,width:P,height:I,canvasPixelRatio:y.canvasPixelRatio}}function C(t,e,r){var o=r.width,s=r.height,l=r.dimensions,c=r.canvasPixelRatio,u=function(t){return o*t/Math.max(1,r.colCount-1)},f=y.verticalPadding/s,h=function(t,e){return n.scale.linear().range([e,t-e])}(s,y.verticalPadding),p={key:r.key,xScale:u,model:r,inBrushDrag:!1},d={};return p.dimensions=l.filter(v.isVisible).map((function(o,l){var g=function(t,e){return n.scale.linear().domain(T(t)).range([e,1-e])}(o,f),m=d[o.label];d[o.label]=(m||0)+1;var b=o.label+(m?&quot;__&quot;+m:&quot;&quot;),_=o.constraintrange,w=_&amp;&amp;_.length;w&amp;&amp;!Array.isArray(_[0])&amp;&amp;(_=[_]);var k=w?_.map((function(t){return t.map(g)})):[[-1/0,1/0]],S=o.values;S.length&gt;o._length&amp;&amp;(S=S.slice(0,o._length));var L,C=o.tickvals;function P(t,e){return{val:t,text:L[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(C)&amp;&amp;C.length){L=o.ticktext,Array.isArray(L)&amp;&amp;L.length?L.length&gt;C.length?L=L.slice(0,C.length):C.length&gt;L.length&amp;&amp;(C=C.slice(0,L.length)):L=C.map(a(o.tickformat));for(var O=1;O&lt;C.length;O++)if(C[O]&lt;C[O-1]){for(var z=C.map(P).sort(I),D=0;D&lt;C.length;D++)C[D]=z[D].val,L[D]=z[D].text;break}}else C=void 0;return S=v.convertTypedArray(S),{key:b,label:o.label,tickFormat:o.tickformat,tickvals:C,ticktext:L,ordinal:v.isOrdinal(o),multiselect:o.multiselect,xIndex:l,crossfilterDimensionIndex:l,visibleIndex:o._index,height:s,values:S,paddedUnitValues:S.map(g),unitTickvals:C&amp;&amp;C.map(g),xScale:u,x:u(l),canvasX:u(l)*c,unitToPaddedPx:h,domainScale:A(s,y.verticalPadding,o,C,L),ordinalScale:M(o),parent:p,model:r,brush:x.makeBrush(t,w,k,(function(){t.linePickActive(!1)}),(function(){var e=p;e.focusLayer&amp;&amp;e.focusLayer.render(e.panels,!0);var r=E(e);!t.contextShown()&amp;&amp;r?(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&amp;&amp;!r&amp;&amp;(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))}),(function(r){if(p.focusLayer.render(p.panels,!0),p.pickLayer&amp;&amp;p.pickLayer.render(p.panels,!0),t.linePickActive(!0),e&amp;&amp;e.filterChanged){var n=g.invert,a=r.map((function(t){return t.map(n).sort(i.sorterAsc)})).sort((function(t,e){return t[0]-e[0]}));e.filterChanged(p.key,o._index,a)}}))}})),p}function P(t){t.classed(y.cn.axisExtentText,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;default&quot;)}function I(t,e){var r=&quot;top&quot;===e?1:-1,n=t*Math.PI/180;return{dir:r,dx:Math.sin(n),dy:Math.cos(n),degrees:t}}function O(t,e,r){for(var n=e.panels||(e.panels=[]),i=t.data(),a=0;a&lt;i.length-1;a++){var o=n[a]||(n[a]={}),s=i[a],l=i[a+1];o.dim0=s,o.dim1=l,o.canvasX=s.canvasX,o.panelSizeX=l.canvasX-s.canvasX,o.panelSizeY=e.model.canvasHeight,o.y=0,o.canvasY=0,o.plotGlPixelRatio=r}}function z(t,e){return s.tickText(t._ax,e,!1).text}function D(t,e){if(t.ordinal)return&quot;&quot;;var r=t.domainScale.domain(),n=r[e?r.length-1:0];return z(t.model.dimensions[t.visibleIndex],n)}e.exports=function(t,e,r,a){var o=t._fullLayout,h=o._toppaper,p=o._glcontainer,_=t._context.plotGlPixelRatio,T=t._fullLayout.paper_bgcolor;!function(t){for(var e=0;e&lt;t.length;e++)for(var r=0;r&lt;t[e].length;r++)for(var n=t[e][r].trace,i=n.dimensions,a=0;a&lt;i.length;a++){var o=i[a].values,l=i[a]._ax;l&amp;&amp;(l.range?l.range=k(l.range[0],l.range[1]):l.range=w(o,n._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=i[a].tickformat,s.calcTicks(l),l.cleanRange())}}(e);var A,M,S=(A=!0,M=!1,{linePickActive:function(t){return arguments.length?A=!!t:A},contextShown:function(t){return arguments.length?M=!!t:M}}),R=e.filter((function(t){return m(t).trace.visible})).map(L.bind(0,r)).map(C.bind(0,S,a));p.each((function(t,e){return i.extendFlat(t,R[e])}));var F=p.selectAll(&quot;.gl-canvas&quot;).each((function(t){t.viewModel=R[0],t.viewModel.plotGlPixelRatio=_,t.viewModel.paperColor=T,t.model=t.viewModel?t.viewModel.model:null})),B=null;F.filter((function(t){return t.pick})).style(&quot;pointer-events&quot;,&quot;auto&quot;).on(&quot;mousemove&quot;,(function(t){if(S.linePickActive()&amp;&amp;t.lineLayer&amp;&amp;a&amp;&amp;a.hover){var e=n.event,r=this.width,i=this.height,o=n.mouse(this),s=o[0],l=o[1];if(s&lt;0||l&lt;0||s&gt;=r||l&gt;=i)return;var c=t.lineLayer.readPixel(s,i-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,h={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==B&amp;&amp;(u?a.hover(h):a.unhover&amp;&amp;a.unhover(h),B=f)}})),F.style(&quot;opacity&quot;,(function(t){return t.pick?0:1})),h.style(&quot;background&quot;,&quot;rgba(255, 255, 255, 0)&quot;);var N=h.selectAll(&quot;.&quot;+y.cn.parcoords).data(R,d);N.exit().remove(),N.enter().append(&quot;g&quot;).classed(y.cn.parcoords,!0).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;none&quot;),N.attr(&quot;transform&quot;,(function(t){return c(t.model.translateX,t.model.translateY)}));var j=N.selectAll(&quot;.&quot;+y.cn.parcoordsControlView).data(g,d);j.enter().append(&quot;g&quot;).classed(y.cn.parcoordsControlView,!0),j.attr(&quot;transform&quot;,(function(t){return c(t.model.pad.l,t.model.pad.t)}));var U=j.selectAll(&quot;.&quot;+y.cn.yAxis).data((function(t){return t.dimensions}),d);U.enter().append(&quot;g&quot;).classed(y.cn.yAxis,!0),j.each((function(t){O(U,t,_)})),F.each((function(t){if(t.viewModel){!t.lineLayer||a?t.lineLayer=b(this,t):t.lineLayer.update(t),(t.key||0===t.key)&amp;&amp;(t.viewModel[t.key]=t.lineLayer);var e=!t.context||a;t.lineLayer.render(t.viewModel.panels,e)}})),U.attr(&quot;transform&quot;,(function(t){return c(t.xScale(t.xIndex),0)})),U.call(n.behavior.drag().origin((function(t){return t})).on(&quot;drag&quot;,(function(t){var e=t.parent;S.linePickActive(!1),t.x=Math.max(-y.overdrag,Math.min(t.model.width+y.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,U.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),O(U,e,_),U.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr(&quot;transform&quot;,(function(t){return c(t.xScale(t.xIndex),0)})),n.select(this).attr(&quot;transform&quot;,c(t.x,0)),U.each((function(r,n,i){i===t.parent.key&amp;&amp;(e.dimensions[n]=r)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!E(e)),e.focusLayer.render&amp;&amp;e.focusLayer.render(e.panels)})).on(&quot;dragend&quot;,(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,O(U,e,_),n.select(this).attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!E(e)),e.focusLayer&amp;&amp;e.focusLayer.render(e.panels),e.pickLayer&amp;&amp;e.pickLayer.render(e.panels,!0),S.linePickActive(!0),a&amp;&amp;a.axesMoved&amp;&amp;a.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),U.exit().remove();var V=U.selectAll(&quot;.&quot;+y.cn.axisOverlays).data(g,d);V.enter().append(&quot;g&quot;).classed(y.cn.axisOverlays,!0),V.selectAll(&quot;.&quot;+y.cn.axis).remove();var q=V.selectAll(&quot;.&quot;+y.cn.axis).data(g,d);q.enter().append(&quot;g&quot;).classed(y.cn.axis,!0),q.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient(&quot;left&quot;).tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return v.isOrdinal(t)?e:z(t.model.dimensions[t.visibleIndex],e)})).scale(r)),f.font(q.selectAll(&quot;text&quot;),t.model.tickFont)})),q.selectAll(&quot;.domain, .tick&gt;line&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-opacity&quot;,.25).attr(&quot;stroke-width&quot;,&quot;1px&quot;),q.selectAll(&quot;text&quot;).style(&quot;text-shadow&quot;,u.makeTextShadow(T)).style(&quot;cursor&quot;,&quot;default&quot;);var H=V.selectAll(&quot;.&quot;+y.cn.axisHeading).data(g,d);H.enter().append(&quot;g&quot;).classed(y.cn.axisHeading,!0);var G=H.selectAll(&quot;.&quot;+y.cn.axisTitle).data(g,d);G.enter().append(&quot;text&quot;).classed(y.cn.axisTitle,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;ew-resize&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;),G.text((function(t){return t.label})).each((function(e){var r=n.select(this);f.font(r,e.model.labelFont),u.convertToTspans(r,t)})).attr(&quot;transform&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide),r=y.axisTitleOffset;return(e.dir&gt;0?&quot;&quot;:c(0,2*r+t.model.height))+l(e.degrees)+c(-r*e.dx,-r*e.dy)})).attr(&quot;text-anchor&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)&gt;Math.abs(e.dy)?e.dir*e.dx&lt;0?&quot;start&quot;:&quot;end&quot;:&quot;middle&quot;}));var Y=V.selectAll(&quot;.&quot;+y.cn.axisExtent).data(g,d);Y.enter().append(&quot;g&quot;).classed(y.cn.axisExtent,!0);var W=Y.selectAll(&quot;.&quot;+y.cn.axisExtentTop).data(g,d);W.enter().append(&quot;g&quot;).classed(y.cn.axisExtentTop,!0),W.attr(&quot;transform&quot;,c(0,-y.axisExtentOffset));var X=W.selectAll(&quot;.&quot;+y.cn.axisExtentTopText).data(g,d);X.enter().append(&quot;text&quot;).classed(y.cn.axisExtentTopText,!0).call(P),X.text((function(t){return D(t,!0)})).each((function(t){f.font(n.select(this),t.model.rangeFont)}));var Z=Y.selectAll(&quot;.&quot;+y.cn.axisExtentBottom).data(g,d);Z.enter().append(&quot;g&quot;).classed(y.cn.axisExtentBottom,!0),Z.attr(&quot;transform&quot;,(function(t){return c(0,t.model.height+y.axisExtentOffset)}));var J=Z.selectAll(&quot;.&quot;+y.cn.axisExtentBottomText).data(g,d);J.enter().append(&quot;text&quot;).classed(y.cn.axisExtentBottomText,!0).attr(&quot;dy&quot;,&quot;0.75em&quot;).call(P),J.text((function(t){return D(t,!1)})).each((function(t){f.font(n.select(this),t.model.rangeFont)})),x.ensureAxisBrush(V,T)}},{&quot;../../components/colorscale&quot;:678,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;./axisbrush&quot;:1181,&quot;./constants&quot;:1184,&quot;./helpers&quot;:1186,&quot;./lines&quot;:1188,&quot;@plotly/d3&quot;:58,&quot;color-rgba&quot;:133}],1191:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcoords&quot;),i=t(&quot;../../lib/prepare_regl&quot;),a=t(&quot;./helpers&quot;).isVisible;function o(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&amp;&amp;(i+=e.length),i}e.exports=function(t,e){var r=t._fullLayout;if(i(t)){var s={},l={},c={},u={},f=r._size;e.forEach((function(e,r){var n=e[0].trace;c[r]=n.index;var i=u[r]=n._fullInput.index;s[r]=t.data[i].dimensions,l[r]=t.data[i].dimensions.slice()}));n(t,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:function(e,n,i){var a=l[e][n],o=i.map((function(t){return t.slice()})),s=&quot;dimensions[&quot;+n+&quot;].constraintrange&quot;,f=r._tracePreGUI[t._fullData[c[e]]._fullInput.uid];if(void 0===f[s]){var h=a.constraintrange;f[s]=h||null}var p=t._fullData[c[e]].dimensions[n];o.length?(1===o.length&amp;&amp;(o=o[0]),a.constraintrange=o,p.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete p.constraintrange,o=null);var d={};d[s]=o,t.emit(&quot;plotly_restyle&quot;,[d,[u[e]]])},hover:function(e){t.emit(&quot;plotly_hover&quot;,e)},unhover:function(e){t.emit(&quot;plotly_unhover&quot;,e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return o(t,e,r)-o(t,e,n)}}(r,l[e].filter(a));s[e].sort(n),l[e].filter((function(t){return!a(t)})).sort((function(t){return l[e].indexOf(t)})).forEach((function(t){s[e].splice(s[e].indexOf(t),1),s[e].splice(l[e].indexOf(t),0,t)})),t.emit(&quot;plotly_restyle&quot;,[{dimensions:[s[e]]},[u[e]]])}})}}},{&quot;../../lib/prepare_regl&quot;:816,&quot;./helpers&quot;:1186,&quot;./parcoords&quot;:1190}],1192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/domain&quot;).attributes,a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/color/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a({editType:&quot;plot&quot;,arrayOk:!0,colorEditType:&quot;plot&quot;});e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},label0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},dlabel:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:o.defaultLine,arrayOk:!0,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoverinfo:c({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:s({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),texttemplate:l({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;radial&quot;,&quot;tangential&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:c({},u,{}),position:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},domain:i({name:&quot;pie&quot;,trace:!0,editType:&quot;calc&quot;}),hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},sort:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;number&quot;,min:-360,max:360,dflt:0,editType:&quot;calc&quot;},pull:{valType:&quot;number&quot;,min:0,max:1,dflt:0,arrayOk:!0,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},titlefont:c({},u,{}),titleposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;calc&quot;}}}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/template_attributes&quot;:926}],1193:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;pie&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1194:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../components/color&quot;),o={};function s(t){return function(e,r){return!!e&amp;&amp;(!!(e=i(e)).isValid()&amp;&amp;(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e))}}function l(t,e){var r,n=JSON.stringify(t),a=e[n];if(!a){for(a=t.slice(),r=0;r&lt;t.length;r++)a.push(i(t[r]).lighten(20).toHexString());for(r=0;r&lt;t.length;r++)a.push(i(t[r]).darken(20).toHexString());e[n]=a}return a}e.exports={calc:function(t,e){var r,i,a=[],o=t._fullLayout,l=o.hiddenlabels||[],c=e.labels,u=e.marker.colors||[],f=e.values,h=e._length,p=e._hasValues&amp;&amp;h;if(e.dlabel)for(c=new Array(h),r=0;r&lt;h;r++)c[r]=String(e.label0+r*e.dlabel);var d={},g=s(o[&quot;_&quot;+e.type+&quot;colormap&quot;]),m=0,v=!1;for(r=0;r&lt;h;r++){var y,x,b;if(p){if(y=f[r],!n(y))continue;if((y=+y)&lt;0)continue}else y=1;void 0!==(x=c[r])&amp;&amp;&quot;&quot;!==x||(x=r);var _=d[x=String(x)];void 0===_?(d[x]=a.length,(b=-1!==l.indexOf(x))||(m+=y),a.push({v:y,label:x,color:g(u[r],x),i:r,pts:[r],hidden:b})):(v=!0,(i=a[_]).v+=y,i.pts.push(r),i.hidden||(m+=y),!1===i.color&amp;&amp;u[r]&amp;&amp;(i.color=g(u[r],x)))}return(&quot;funnelarea&quot;===e.type?v:e.sort)&amp;&amp;a.sort((function(t,e){return e.v-t.v})),a[0]&amp;&amp;(a[0].vTotal=m),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r=&quot;pie&quot;);var n=t._fullLayout,i=t.calcdata,a=n[r+&quot;colorway&quot;],s=n[&quot;_&quot;+r+&quot;colormap&quot;];n[&quot;extend&quot;+r+&quot;colors&quot;]&amp;&amp;(a=l(a,o));for(var c=0,u=0;u&lt;i.length;u++){var f=i[u];if(f[0].trace.type===r)for(var h=0;h&lt;f.length;h++){var p=f[h];!1===p.color&amp;&amp;(s[p.label]?p.color=s[p.label]:(s[p.label]=p.color=a[c%a.length],c++))}}},makePullColorFn:s,generateExtendedColors:l}},{&quot;../../components/color&quot;:666,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],1195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText;function l(t,e){var r=Array.isArray(t),a=i.isArrayOrTypedArray(e),o=Math.min(r?t.length:1/0,a?e.length:1/0);if(isFinite(o)||(o=0),o&amp;&amp;a){for(var s,l=0;l&lt;o;l++){var c=e[l];if(n(c)&amp;&amp;c&gt;0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c(&quot;labels&quot;),c(&quot;values&quot;)),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),f){e._length=f,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var h,p=c(&quot;text&quot;),d=c(&quot;texttemplate&quot;);if(d||(h=c(&quot;textinfo&quot;,Array.isArray(p)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),d||h&amp;&amp;&quot;none&quot;!==h){var g=c(&quot;textposition&quot;);s(t,e,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||&quot;auto&quot;===g||&quot;outside&quot;===g)&amp;&amp;c(&quot;automargin&quot;),(&quot;inside&quot;===g||&quot;auto&quot;===g||Array.isArray(g))&amp;&amp;c(&quot;insidetextorientation&quot;)}o(e,n,c);var m=c(&quot;hole&quot;);if(c(&quot;title.text&quot;)){var v=c(&quot;title.position&quot;,m?&quot;middle center&quot;:&quot;top center&quot;);m||&quot;middle center&quot;!==v||(e.title.position=&quot;top center&quot;),i.coerceFont(c,&quot;title.font&quot;,n.font)}c(&quot;sort&quot;),c(&quot;direction&quot;),c(&quot;rotation&quot;),c(&quot;pull&quot;)}else e.visible=!1}}},{&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;../bar/defaults&quot;:945,&quot;./attributes&quot;:1192,&quot;fast-isnumeric&quot;:249}],1196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx/helpers&quot;).appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return 1===t.pts.length&amp;&amp;(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),&quot;funnelarea&quot;===e.type&amp;&amp;(delete r.v,delete r.i),r}},{&quot;../../components/fx/helpers&quot;:702}],1197:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return-1!==t.indexOf(&quot;e&quot;)?t.replace(/[.]?0+e/,&quot;e&quot;):-1!==t.indexOf(&quot;.&quot;)?t.replace(/[.]?0+$/,&quot;&quot;):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+&quot;%&quot;},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r&lt;e.length;r++){var n=t[e[r]];if(n||0===n||&quot;&quot;===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0},r.getRotationAngle=function(t){return(&quot;auto&quot;===t?0:t)*Math.PI/180}},{&quot;../../lib&quot;:803}],1198:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOne:t(&quot;./style_one&quot;),moduleType:&quot;trace&quot;,name:&quot;pie&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;pie&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;./attributes&quot;:1192,&quot;./base_plot&quot;:1193,&quot;./calc&quot;:1194,&quot;./defaults&quot;:1195,&quot;./layout_attributes&quot;:1199,&quot;./layout_defaults&quot;:1200,&quot;./plot&quot;:1201,&quot;./style&quot;:1202,&quot;./style_one&quot;:1203}],1199:[function(t,e,r){&quot;use strict&quot;;e.exports={hiddenlabels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},piecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendpiecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;piecolorway&quot;,e.colorway),r(&quot;extendpiecolors&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1199}],1201:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strScale,u=l.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../bar/uniform_text&quot;),p=h.recordMinTextSize,d=h.clearMinTextSize,g=t(&quot;../bar/constants&quot;).TEXTPAD,m=t(&quot;./helpers&quot;),v=t(&quot;./event_data&quot;),y=t(&quot;../../lib&quot;).isValidTextValue;function x(t,e,r){var i=r[0],o=i.cx,s=i.cy,c=i.trace,u=&quot;funnelarea&quot;===c.type;&quot;_hasHoverLabel&quot;in c||(c._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in c||(c._hasHoverEvent=!1),t.on(&quot;mouseover&quot;,(function(t){var r=e._fullLayout,f=e._fullData[c.index];if(!e._dragging&amp;&amp;!1!==r.hovermode){var h=f.hoverinfo;if(Array.isArray(h)&amp;&amp;(h=a.castHoverinfo({hoverinfo:[m.castOption(h,t.pts)],_module:c._module},r,0)),&quot;all&quot;===h&amp;&amp;(h=&quot;label+text+value+percent+name&quot;),f.hovertemplate||&quot;none&quot;!==h&amp;&amp;&quot;skip&quot;!==h&amp;&amp;h){var p=t.rInscribed||0,d=o+t.pxmid[0]*(1-p),g=s+t.pxmid[1]*(1-p),y=r.separators,x=[];if(h&amp;&amp;-1!==h.indexOf(&quot;label&quot;)&amp;&amp;x.push(t.label),t.text=m.castOption(f.hovertext||f.text,t.pts),h&amp;&amp;-1!==h.indexOf(&quot;text&quot;)){var b=t.text;l.isValidTextValue(b)&amp;&amp;x.push(b)}t.value=t.v,t.valueLabel=m.formatPieValue(t.v,y),h&amp;&amp;-1!==h.indexOf(&quot;value&quot;)&amp;&amp;x.push(t.valueLabel),t.percent=t.v/i.vTotal,t.percentLabel=m.formatPiePercent(t.percent,y),h&amp;&amp;-1!==h.indexOf(&quot;percent&quot;)&amp;&amp;x.push(t.percentLabel);var _=f.hoverlabel,w=_.font,T=[];a.loneHover({trace:c,x0:d-p*i.r,x1:d+p*i.r,y:g,_x0:u?o+t.TL[0]:d-p*i.r,_x1:u?o+t.TR[0]:d+p*i.r,_y0:u?s+t.TL[1]:g-p*i.r,_y1:u?s+t.BL[1]:g+p*i.r,text:x.join(&quot;&lt;br&gt;&quot;),name:f.hovertemplate||-1!==h.indexOf(&quot;name&quot;)?f.name:void 0,idealAlign:t.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;,color:m.castOption(_.bgcolor,t.pts)||t.color,borderColor:m.castOption(_.bordercolor,t.pts),fontFamily:m.castOption(w.family,t.pts),fontSize:m.castOption(w.size,t.pts),fontColor:m.castOption(w.color,t.pts),nameLength:m.castOption(_.namelength,t.pts),textAlign:m.castOption(_.align,t.pts),hovertemplate:m.castOption(f.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,f)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e,inOut_bbox:T}),t.bbox=T[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,e.emit(&quot;plotly_hover&quot;,{points:[v(t,f)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(t){var r=e._fullLayout,i=e._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&amp;&amp;(t.originalEvent=n.event,e.emit(&quot;plotly_unhover&quot;,{points:[v(o,i)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&amp;&amp;(a.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)})),t.on(&quot;click&quot;,(function(t){var r=e._fullLayout,i=e._fullData[c.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function b(t,e,r){var n=m.castOption(t.insidetextfont.color,e.pts);!n&amp;&amp;t._input.textfont&amp;&amp;(n=m.castOption(t._input.textfont.color,e.pts));var i=m.castOption(t.insidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.insidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function _(t,e){for(var r,n,i=0;i&lt;t.length;i++)if((n=(r=t[i][0]).trace).title.text){var a=n.title.text;n._meta&amp;&amp;(a=l.templateString(a,n._meta));var o=s.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).text(a).call(s.font,n.title.font).call(f.convertToTspans,e),c=s.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(t,e,r){var n=r.r||e.rpx1,i=e.rInscribed;if(e.startangle===e.stopangle)return{rCenter:1-i,scale:0,rotate:0,textPosAngle:0};var a,o=e.ring,s=1===o&amp;&amp;Math.abs(e.startangle-e.stopangle)===2*Math.PI,l=e.halfangle,c=e.midangle,u=r.trace.insidetextorientation,f=&quot;horizontal&quot;===u,h=&quot;tangential&quot;===u,p=&quot;radial&quot;===u,d=&quot;auto&quot;===u,g=[];if(!d){var m,v=function(r,i){if(function(t,e){var r=t.startangle,n=t.stopangle;return r&gt;e&amp;&amp;e&gt;n||r&lt;e&amp;&amp;e&lt;n}(e,r)){var s=Math.abs(r-e.startangle),l=Math.abs(r-e.stopangle),c=s&lt;l?s:l;(a=&quot;tan&quot;===i?k(t,n,o,c,0):T(t,n,o,c,Math.PI/2)).textPosAngle=r,g.push(a)}};if(f||h){for(m=4;m&gt;=-4;m-=2)v(Math.PI*m,&quot;tan&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1),&quot;tan&quot;)}if(f||p){for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1.5),&quot;rad&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+.5),&quot;rad&quot;)}}if(s||d||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale&gt;=1)return a;g.push(a)}(d||p)&amp;&amp;((a=T(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a)),(d||h)&amp;&amp;((a=k(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a));for(var x=0,b=0,_=0;_&lt;g.length;_++){var w=g[_].scale;if(b&lt;w&amp;&amp;(b=w,x=_),!d&amp;&amp;b&gt;=1)break}return g[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:A(a,o/e),rotate:M(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:A(a,o/e),rotate:M(i+Math.PI/2)}}function A(t,e){return Math.cos(e)-t*e}function M(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function L(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r&lt;0&amp;&amp;(i*=-1),n&lt;0&amp;&amp;(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i&gt;0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function C(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=I(a),-1!==a.title.position.indexOf(&quot;top&quot;)?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(o.y+=(1+i)*t.r);var l,c,u=(l=t.r,c=t.trace.aspectratio,l/(void 0===c?1:c)),f=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf(&quot;left&quot;)?(f+=u,o.x-=(1+i)*u,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf(&quot;center&quot;)?f*=2:-1!==a.title.position.indexOf(&quot;right&quot;)&amp;&amp;(f+=u,o.x+=(1+i)*u,s.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=P(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function P(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function I(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;e&lt;t.pull.length;e++)t.pull[e]&gt;r&amp;&amp;(r=t.pull[e]);return r}function O(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n][0],a=i.trace,o=a.domain,s=e.w*(o.x[1]-o.x[0]),l=e.h*(o.y[1]-o.y[0]);a.title.text&amp;&amp;&quot;middle center&quot;!==a.title.position&amp;&amp;(l-=P(i,e));var c=s/2,u=l/2;&quot;funnelarea&quot;!==a.type||a.scalegroup||(u/=a.aspectratio),i.r=Math.min(c,u)/(1+I(a)),i.cx=e.l+e.w*(a.domain.x[1]+a.domain.x[0])/2,i.cy=e.t+e.h*(1-a.domain.y[0])-l/2,a.title.text&amp;&amp;-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(i.cy-=P(i,e)),a.scalegroup&amp;&amp;-1===r.indexOf(a.scalegroup)&amp;&amp;r.push(a.scalegroup)}!function(t,e){for(var r,n,i,a=0;a&lt;e.length;a++){var o=1/0,s=e[a];for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var l;if(&quot;pie&quot;===i.type)l=r.r*r.r;else if(&quot;funnelarea&quot;===i.type){var c,u;i.aspectratio&gt;1?(c=r.r,u=c/i.aspectratio):(u=r.r,c=u*i.aspectratio),c*=(1+i.baseratio)/2,l=c*u}o=Math.min(o,l/r.vTotal)}for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var f=o*r.vTotal;&quot;funnelarea&quot;===i.type&amp;&amp;(f/=(1+i.baseratio)/2,f/=i.aspectratio),r.r=Math.sqrt(f)}}}(t,r)}function z(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}function D(t,e,r){var n=t._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&amp;&amp;o&amp;&amp;&quot;none&quot;!==o){var s,c=o.split(&quot;+&quot;),u=function(t){return-1!==c.indexOf(t)},f=u(&quot;label&quot;),h=u(&quot;text&quot;),p=u(&quot;value&quot;),d=u(&quot;percent&quot;),g=n.separators;if(s=f?[e.label]:[],h){var v=m.getFirstFilled(i.text,e.pts);y(v)&amp;&amp;s.push(v)}p&amp;&amp;s.push(m.formatPieValue(e.v,g)),d&amp;&amp;s.push(m.formatPiePercent(e.v/r.vTotal,g)),e.text=s.join(&quot;&lt;br&gt;&quot;)}if(a){var x=l.castOption(i,e.i,&quot;texttemplate&quot;);if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:m.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:m.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,&quot;customdata&quot;)}}(e),_=m.getFirstFilled(i.text,e.pts);(y(_)||&quot;&quot;===_)&amp;&amp;(b.text=_),e.text=l.texttemplateString(x,b,t._fullLayout._d3locale,b,i._meta||{})}else e.text=&quot;&quot;}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,a=r._size;d(&quot;pie&quot;,r),_(e,t),O(e,a);var h=l.makeTraceGroups(r._pielayer,e,&quot;trace&quot;).each((function(e){var h=n.select(this),d=e[0],g=d.trace;!function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c=&quot;px0&quot;,u=&quot;px1&quot;;if(&quot;counterclockwise&quot;===o.direction){for(e=0;e&lt;t.length&amp;&amp;t[e].hidden;e++);if(e===t.length)return;s+=l*t[e].v,l*=-1,c=&quot;px1&quot;,u=&quot;px0&quot;}for(n=z(a,s),e=0;e&lt;t.length;e++)(r=t[e]).hidden||(r[c]=n,r.startangle=s,s+=l*r.v/2,r.pxmid=z(a,s),r.midangle=s,s+=l*r.v/2,n=z(a,s),r.stopangle=s,r[u]=n,r.largeArc=r.v&gt;i.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(e),h.attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),h.each((function(){var v=n.select(this).selectAll(&quot;g.slice&quot;).data(e);v.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{i.pointNumber=i.i,i.curveNumber=g.index,y[i.pxmid[1]&lt;0?0:1][i.pxmid[0]&lt;0?0:1].push(i);var o=d.cx,c=d.cy,u=n.select(this),h=u.selectAll(&quot;path.surface&quot;).data([i]);if(h.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),u.call(x,t,e),g.pull){var v=+m.castOption(g.pull,i.pts)||0;v&gt;0&amp;&amp;(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=g.hole;if(i.v===d.vTotal){var k=&quot;M&quot;+(o+i.px0[0])+&quot;,&quot;+(c+i.px0[1])+C(i.px0,i.pxmid,!0,1)+C(i.pxmid,i.px0,!0,1)+&quot;Z&quot;;T?h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px0[0])+&quot;,&quot;+(c+T*i.px0[1])+C(i.px0,i.pxmid,!1,T)+C(i.pxmid,i.px0,!1,T)+&quot;Z&quot;+k):h.attr(&quot;d&quot;,k)}else{var A=C(i.px0,i.px1,!0,1);if(T){var M=1-T;h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px1[0])+&quot;,&quot;+(c+T*i.px1[1])+C(i.px1,i.px0,!1,T)+&quot;l&quot;+M*i.px0[0]+&quot;,&quot;+M*i.px0[1]+A+&quot;Z&quot;)}else h.attr(&quot;d&quot;,&quot;M&quot;+o+&quot;,&quot;+c+&quot;l&quot;+i.px0[0]+&quot;,&quot;+i.px0[1]+A+&quot;Z&quot;)}D(t,i,d);var S=m.castOption(g.textposition,i.pts),E=u.selectAll(&quot;g.slicetext&quot;).data(i.text&amp;&amp;&quot;none&quot;!==S?[0]:[]);E.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),h=l.ensureUniformFontSize(t,&quot;outside&quot;===S?function(t,e,r){var n=m.castOption(t.outsidetextfont.color,e.pts)||m.castOption(t.textfont.color,e.pts)||r.color,i=m.castOption(t.outsidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.outsidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(g,i,r.font):b(g,i,r.font));u.text(i.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,h).call(f.convertToTspans,t);var v,y=s.bBox(u.node());if(&quot;outside&quot;===S)v=L(y,i);else if(v=w(y,i,d),&quot;auto&quot;===S&amp;&amp;v.scale&lt;1){var x=l.ensureUniformFontSize(t,g.outsidetextfont);u.call(s.font,x),v=L(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:z(d.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var A=v.targetY;i.yLabelMin=A-y.height/2,i.yLabelMid=A,i.yLabelMax=A+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=h.size,p(g.type,v,r),e[a].transform=v,u.attr(&quot;transform&quot;,l.getTextTransform(v))}))}function C(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return&quot;a&quot;+n*d.r+&quot;,&quot;+n*d.r+&quot; 0 &quot;+i.largeArc+(r?&quot; 1 &quot;:&quot; 0 &quot;)+a+&quot;,&quot;+o}}));var T=n.select(this).selectAll(&quot;g.titletext&quot;).data(g.title.text?[0]:[]);if(T.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),i=g.title.text;g._meta&amp;&amp;(i=l.templateString(i,g._meta)),r.text(i).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,g.title.font).call(f.convertToTspans,t),e=&quot;middle center&quot;===g.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):C(d,a),r.attr(&quot;transform&quot;,u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),_&amp;&amp;function(t,e){var r,n,i,a,o,s,l,c,u,f,h,p,d;function g(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,h,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),d=n?t.yLabelMin:t.yLabelMax,g=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=p-d;if(y*l&gt;0&amp;&amp;(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c&lt;f.length;c++)(u=f[c])===t||(m.castOption(e.pull,t.pts)||0)&gt;=(m.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l&gt;0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-d-t.labelExtraY)*l&gt;0&amp;&amp;(t.labelExtraY+=y):(g+t.labelExtraY-v)*l&gt;0&amp;&amp;(i=3*s*Math.abs(c-f.indexOf(t)),(h=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s&gt;0&amp;&amp;(t.labelExtraX+=h)))}for(n=0;n&lt;2;n++)for(i=n?g:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r&lt;2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),p=[],h=0;h&lt;c.length;h++)void 0!==c[h].yLabelMid&amp;&amp;p.push(c[h]);for(d=!1,h=0;n&amp;&amp;h&lt;u.length;h++)if(void 0!==u[h].yLabelMid){d=u[h];break}for(h=0;h&lt;p.length;h++){var x=h&amp;&amp;p[h-1];d&amp;&amp;!h&amp;&amp;(x=d),y(p[h],x)}}}(y,g),function(t,e){t.each((function(t){var r=n.select(this);if(t.labelExtraX||t.labelExtraY){var i=r.select(&quot;g.slicetext text&quot;);t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,i.attr(&quot;transform&quot;,l.getTextTransform(t.transform));var a=t.cxFinal+t.pxmid[0],s=&quot;M&quot;+a+&quot;,&quot;+(t.cyFinal+t.pxmid[1]),c=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]&lt;0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)&gt;Math.abs(f)?s+=&quot;l&quot;+f*t.pxmid[0]/t.pxmid[1]+&quot;,&quot;+f+&quot;H&quot;+(a+t.labelExtraX+c):s+=&quot;l&quot;+t.labelExtraX+&quot;,&quot;+u+&quot;v&quot;+(f-u)+&quot;h&quot;+c}else s+=&quot;V&quot;+(t.yLabelMid+t.labelExtraY)+&quot;h&quot;+c;l.ensureSingle(r,&quot;path&quot;,&quot;textline&quot;).call(o.stroke,e.outsidetextfont.color).attr({&quot;stroke-width&quot;:Math.min(2,e.outsidetextfont.size/8),d:s,fill:&quot;none&quot;})}else r.select(&quot;path.textline&quot;).remove()}))}(v,g),_&amp;&amp;g.automargin){var k=s.bBox(h.node()),A=g.domain,M=a.w*(A.x[1]-A.x[0]),S=a.h*(A.y[1]-A.y[0]),E=(.5*M-d.r)/a.w,P=(.5*S-d.r)/a.h;i.autoMargin(t,&quot;pie.&quot;+g.uid+&quot;.automargin&quot;,{xl:A.x[0]-E,xr:A.x[1]+E,yb:A.y[0]-P,yt:A.y[1]+P,l:Math.max(d.cx-d.r-k.left,0),r:Math.max(k.right-(d.cx+d.r),0),b:Math.max(k.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-k.top,0),pad:5})}}))}));setTimeout((function(){h.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this);t.attr(&quot;dy&quot;)&amp;&amp;t.attr(&quot;dy&quot;,t.attr(&quot;dy&quot;))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:C,prerenderTitles:_,layoutAreas:O,attachFxHandlers:x,computeTransform:R}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/plots&quot;:917,&quot;../bar/constants&quot;:943,&quot;../bar/uniform_text&quot;:957,&quot;./event_data&quot;:1196,&quot;./helpers&quot;:1197,&quot;@plotly/d3&quot;:58}],1202:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;./style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;pie&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:957,&quot;./style_one&quot;:1203,&quot;@plotly/d3&quot;:58}],1203:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./helpers&quot;).castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style(&quot;stroke-width&quot;,s).call(n.fill,e.color).call(n.stroke,o)}},{&quot;../../components/color&quot;:666,&quot;./helpers&quot;:1197}],1204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;);e.exports={x:n.x,y:n.y,xy:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},indices:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},xbounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ybounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:n.text,marker:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,arrayOk:!1,editType:&quot;calc&quot;},blend:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:.1,max:2,dflt:.5,editType:&quot;calc&quot;},sizemax:{valType:&quot;number&quot;,min:.1,dflt:20,editType:&quot;calc&quot;},border:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},arearatio:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:void 0}},{&quot;../scatter/attributes&quot;:1218}],1205:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-pointcloud2d&quot;),i=t(&quot;../../lib/str2rgbarray&quot;),a=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,o=t(&quot;../scatter/get_trace_color&quot;);function s(t,e){this.scene=t,this.uid=e,this.type=&quot;pointcloud&quot;,this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=&quot;rgb(0, 0, 0)&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&amp;&amp;t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length&gt;&gt;&gt;1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l&lt;e;l++)o=n[2*l],s=n[2*l+1],o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l&lt;e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l&lt;e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),m=i(t.marker.border.color),v=t.opacity*t.marker.opacity;g[3]*=v,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){y=c.length&lt;100||u.length&lt;100}this.pointcloudOptions.blend=y,m[3]*=v,this.pointcloudOptions.borderColor=m;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:T}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/cartesian/autorange&quot;:853,&quot;../scatter/get_trace_color&quot;:1228,&quot;gl-pointcloud2d&quot;:328}],1206:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;);e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(&quot;x&quot;),a(&quot;y&quot;),a(&quot;xbounds&quot;),a(&quot;ybounds&quot;),t.xy&amp;&amp;t.xy instanceof Float32Array&amp;&amp;(e.xy=t.xy),t.indices&amp;&amp;t.indices instanceof Int32Array&amp;&amp;(e.indices=t.indices),a(&quot;text&quot;),a(&quot;marker.color&quot;,r),a(&quot;marker.opacity&quot;),a(&quot;marker.blend&quot;),a(&quot;marker.sizemin&quot;),a(&quot;marker.sizemax&quot;),a(&quot;marker.border.color&quot;,r),a(&quot;marker.border.arearatio&quot;),e._length=null}},{&quot;../../lib&quot;:803,&quot;./attributes&quot;:1204}],1207:[function(t,e,r){&quot;use strict&quot;;[&quot;*pointcloud* trace is deprecated!&quot;,&quot;Please consider switching to the *scattergl* trace type.&quot;].join(&quot; &quot;);e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../scatter3d/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;pointcloud&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:894,&quot;../scatter3d/calc&quot;:1247,&quot;./attributes&quot;:1204,&quot;./convert&quot;:1205,&quot;./defaults&quot;:1206}],1208:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionOnlyNumbers,h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../../plot_api/edit_types&quot;).overrideAll;(e.exports=p({hoverinfo:h({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:&quot;sankey&quot;,trace:!0}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;},valueformat:{valType:&quot;string&quot;,dflt:&quot;.3s&quot;,description:f(&quot;value&quot;)},valuesuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;},arrangement:{valType:&quot;enumerated&quot;,values:[&quot;snap&quot;,&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;snap&quot;},textfont:n({}),customdata:void 0,node:{label:{valType:&quot;data_array&quot;,dflt:[]},groups:{valType:&quot;info_array&quot;,impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:&quot;number&quot;,editType:&quot;calc&quot;}},x:{valType:&quot;data_array&quot;,dflt:[]},y:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:.5,arrayOk:!0}},pad:{valType:&quot;number&quot;,arrayOk:!1,min:0,dflt:20},thickness:{valType:&quot;number&quot;,arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]})},link:{label:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0}},source:{valType:&quot;data_array&quot;,dflt:[]},target:{valType:&quot;data_array&quot;,dflt:[]},value:{valType:&quot;data_array&quot;,dflt:[]},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]}),colorscales:u(&quot;concentrationscales&quot;,{editType:&quot;calc&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;&quot;},cmax:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:1},cmin:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:0},colorscale:h(c().colorscale,{dflt:[[0,&quot;white&quot;],[1,&quot;black&quot;]]})})}},&quot;calc&quot;,&quot;nested&quot;)).transforms=void 0},{&quot;../../components/color/attributes&quot;:665,&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/fx/attributes&quot;:697,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/template_attributes&quot;:926}],1209:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../components/fx/layout_attributes&quot;),s=t(&quot;../../lib/setcursor&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../plots/cartesian/select&quot;).prepSelect,u=t(&quot;../../lib&quot;),f=t(&quot;../../registry&quot;);function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,a=&quot;pan&quot;===n.dragmode?&quot;move&quot;:&quot;crosshair&quot;,o=r._bgRect;if(&quot;pan&quot;!==i&amp;&amp;&quot;zoom&quot;!==i){s(o,a);var h={_id:&quot;x&quot;,c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:&quot;y&quot;,c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:o.node(),plotinfo:{id:e,xaxis:h,yaxis:p,fillRangeItems:u.noop},subplot:e,xaxes:[h],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;r&lt;e.length;r++)if(e[r].pointNumber===t)return e[r]}for(var l=0;l&lt;r.length;l++){var c=s(r[l].pointNumber);if(c)if(c.group){for(var u=0;u&lt;c.childrenNodes.length;u++)o.push(c.childrenNodes[u].pointNumber);a[c.pointNumber-i.node._count]=!1}else o.push(c.pointNumber)}n=a.filter(Boolean).concat([o]),f.call(&quot;_guiRestyle&quot;,t,{&quot;node.groups&quot;:[n]},e)},prepFn:function(t,e,r){c(t,e,r,d,i)}};l.init(d)}}r.name=&quot;sankey&quot;,r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){var e=i(t.calcdata,&quot;sankey&quot;)[0];a(t,e),r.updateFx(t)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;sankey&quot;),a=e._has&amp;&amp;e._has(&quot;sankey&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.sankey&quot;).remove(),n._paperdiv.selectAll(&quot;.bgsankey&quot;).remove())},r.updateFx=function(t){for(var e=0;e&lt;t._fullData.length;e++)h(t,e)}},{&quot;../../components/dragelement&quot;:685,&quot;../../components/fx/layout_attributes&quot;:707,&quot;../../lib&quot;:803,&quot;../../lib/setcursor&quot;:824,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/cartesian/select&quot;:874,&quot;../../plots/get_data&quot;:891,&quot;../../registry&quot;:931,&quot;./plot&quot;:1214}],1210:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;strongly-connected-components&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/gup&quot;).wrap,o=i.isArrayOrTypedArray,s=i.isIndex,l=t(&quot;../../components/colorscale&quot;);function c(t){var e,r=t.node,a=t.link,c=[],u=o(a.color),f=o(a.customdata),h={},p={},d=a.colorscales.length;for(e=0;e&lt;d;e++){var g=a.colorscales[e],m=l.extractScale(g,{cLetter:&quot;c&quot;}),v=l.makeColorScaleFunc(m);p[g.label]=v}var y=0;for(e=0;e&lt;a.value.length;e++)a.source[e]&gt;y&amp;&amp;(y=a.source[e]),a.target[e]&gt;y&amp;&amp;(y=a.target[e]);var x,b=y+1;t.node._count=b;var _=t.node.groups,w={};for(e=0;e&lt;_.length;e++){var T=_[e];for(x=0;x&lt;T.length;x++){var k=T[x],A=b+e;w.hasOwnProperty(k)?i.warn(&quot;Node &quot;+k+&quot; is already part of a group.&quot;):w[k]=A}}var M={source:[],target:[]};for(e=0;e&lt;a.value.length;e++){var S=a.value[e],E=a.source[e],L=a.target[e];if(S&gt;0&amp;&amp;s(E,b)&amp;&amp;s(L,b)&amp;&amp;(!w.hasOwnProperty(E)||!w.hasOwnProperty(L)||w[E]!==w[L])){w.hasOwnProperty(L)&amp;&amp;(L=w[L]),w.hasOwnProperty(E)&amp;&amp;(E=w[E]),L=+L,h[E=+E]=h[L]=!0;var C=&quot;&quot;;a.label&amp;&amp;a.label[e]&amp;&amp;(C=a.label[e]);var P=null;C&amp;&amp;p.hasOwnProperty(C)&amp;&amp;(P=p[C]),c.push({pointNumber:e,label:C,color:u?a.color[e]:a.color,customdata:f?a.customdata[e]:a.customdata,concentrationscale:P,source:E,target:L,value:+S}),M.source.push(E),M.target.push(L)}}var I=b+_.length,O=o(r.color),z=o(r.customdata),D=[];for(e=0;e&lt;I;e++)if(h[e]){var R=r.label[e];D.push({group:e&gt;b-1,childrenNodes:[],pointNumber:e,label:R,color:O?r.color[e]:r.color,customdata:z?r.customdata[e]:r.customdata})}var F=!1;return function(t,e,r){for(var a=i.init2dArray(t,0),o=0;o&lt;Math.min(e.length,r.length);o++)if(i.isIndex(e[o],t)&amp;&amp;i.isIndex(r[o],t)){if(e[o]===r[o])return!0;a[e[o]].push(r[o])}return n(a).components.some((function(t){return t.length&gt;1}))}(I,M.source,M.target)&amp;&amp;(F=!0),{circular:F,links:c,nodes:D,groups:_,groupLookup:w}}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800,&quot;strongly-connected-components&quot;:590}],1211:[function(t,e,r){&quot;use strict&quot;;e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:&quot;linear&quot;,cn:{sankey:&quot;sankey&quot;,sankeyLinks:&quot;sankey-links&quot;,sankeyLink:&quot;sankey-link&quot;,sankeyNodeSet:&quot;sankey-node-set&quot;,sankeyNode:&quot;sankey-node&quot;,nodeRect:&quot;node-rect&quot;,nodeLabel:&quot;node-label&quot;}}},{}],1212:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;tinycolor2&quot;),s=t(&quot;../../plots/domain&quot;).defaults,l=t(&quot;../../components/fx/hoverlabel_defaults&quot;),c=t(&quot;../../plot_api/plot_template&quot;),u=t(&quot;../../plots/array_container_defaults&quot;);function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r(&quot;label&quot;),r(&quot;cmin&quot;),r(&quot;cmax&quot;),r(&quot;colorscale&quot;)}e.exports=function(t,e,r,h){function p(r,a){return n.coerce(t,e,i,r,a)}var d=n.extendDeep(h.hoverlabel,t.hoverlabel),g=t.node,m=c.newContainer(e,&quot;node&quot;);function v(t,e){return n.coerce(g,m,i.node,t,e)}v(&quot;label&quot;),v(&quot;groups&quot;),v(&quot;x&quot;),v(&quot;y&quot;),v(&quot;pad&quot;),v(&quot;thickness&quot;),v(&quot;line.color&quot;),v(&quot;line.width&quot;),v(&quot;hoverinfo&quot;,t.hoverinfo),l(g,m,v,d),v(&quot;hovertemplate&quot;);var y=h.colorway;v(&quot;color&quot;,m.label.map((function(t,e){return a.addOpacity(function(t){return y[t%y.length]}(e),.8)}))),v(&quot;customdata&quot;);var x=t.link||{},b=c.newContainer(e,&quot;link&quot;);function _(t,e){return n.coerce(x,b,i.link,t,e)}_(&quot;label&quot;),_(&quot;source&quot;),_(&quot;target&quot;),_(&quot;value&quot;),_(&quot;line.color&quot;),_(&quot;line.width&quot;),_(&quot;hoverinfo&quot;,t.hoverinfo),l(x,b,_,d),_(&quot;hovertemplate&quot;);var w,T=o(h.paper_bgcolor).getLuminance()&lt;.333?&quot;rgba(255, 255, 255, 0.6)&quot;:&quot;rgba(0, 0, 0, 0.2)&quot;;_(&quot;color&quot;,n.repeat(T,b.value.length)),_(&quot;customdata&quot;),u(x,b,{name:&quot;colorscales&quot;,handleItemDefaults:f}),s(e,h,p),p(&quot;orientation&quot;),p(&quot;valueformat&quot;),p(&quot;valuesuffix&quot;),m.x.length&amp;&amp;m.y.length&amp;&amp;(w=&quot;freeform&quot;),p(&quot;arrangement&quot;,w),n.coerceFont(p,&quot;textfont&quot;,n.extendFlat({},h.font)),e._length=null}},{&quot;../../components/color&quot;:666,&quot;../../components/fx/hoverlabel_defaults&quot;:704,&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/domain&quot;:882,&quot;./attributes&quot;:1208,tinycolor2:598}],1213:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;sankey&quot;,basePlotModule:t(&quot;./base_plot&quot;),selectPoints:t(&quot;./select.js&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1208,&quot;./base_plot&quot;:1209,&quot;./calc&quot;:1210,&quot;./defaults&quot;:1212,&quot;./plot&quot;:1214,&quot;./select.js&quot;:1216}],1214:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;./render&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/color&quot;),c=t(&quot;./constants&quot;).cn,u=i._;function f(t){return&quot;&quot;!==t}function h(t,e){return t.filter((function(t){return t.key===e.traceId}))}function p(t,e){n.select(t).select(&quot;path&quot;).style(&quot;fill-opacity&quot;,e),n.select(t).select(&quot;rect&quot;).style(&quot;fill-opacity&quot;,e)}function d(t){n.select(t).select(&quot;text.name&quot;).style(&quot;fill&quot;,&quot;black&quot;)}function g(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function m(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function v(t,e,r){e&amp;&amp;r&amp;&amp;h(r,e).selectAll(&quot;.&quot;+c.sankeyLink).filter(g(e)).call(x.bind(0,e,r,!1))}function y(t,e,r){e&amp;&amp;r&amp;&amp;h(r,e).selectAll(&quot;.&quot;+c.sankeyLink).filter(g(e)).call(b.bind(0,e,r,!1))}function x(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),i&amp;&amp;h(e,t).selectAll(&quot;.&quot;+c.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),r&amp;&amp;h(e,t).selectAll(&quot;.&quot;+c.sankeyNode).filter(m(t)).call(v)}function b(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),i&amp;&amp;h(e,t).selectAll(&quot;.&quot;+c.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),r&amp;&amp;h(e,t).selectAll(c.sankeyNode).filter(m(t)).call(y)}function _(t,e){var r=t.hoverlabel||{},n=i.nestedProperty(r,e).get();return!Array.isArray(n)&amp;&amp;n}e.exports=function(t,e){for(var r=t._fullLayout,i=r._paper,h=r._size,g=0;g&lt;t._fullData.length;g++)if(t._fullData[g].visible&amp;&amp;t._fullData[g].type===c.sankey&amp;&amp;!t._fullData[g]._viewInitial){var m=t._fullData[g].node;t._fullData[g]._viewInitial={node:{groups:m.groups.slice(),x:m.x.slice(),y:m.y.slice()}}}var w=u(t,&quot;source:&quot;)+&quot; &quot;,T=u(t,&quot;target:&quot;)+&quot; &quot;,k=u(t,&quot;concentration:&quot;)+&quot; &quot;,A=u(t,&quot;incoming flow count:&quot;)+&quot; &quot;,M=u(t,&quot;outgoing flow count:&quot;)+&quot; &quot;;o(t,i,e,{width:h.w,height:h.h,margin:{t:h.t,r:h.r,b:h.b,l:h.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(x.bind(0,r,i,!0)),&quot;skip&quot;!==r.link.trace.link.hoverinfo&amp;&amp;(r.link.fullData=r.link.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.link]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.link.trace.link;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){for(var c=[],u=0,h=0;h&lt;i.flow.links.length;h++){var g=i.flow.links[h];if(&quot;closest&quot;!==t._fullLayout.hovermode||i.link.pointNumber===g.pointNumber){i.link.pointNumber===g.pointNumber&amp;&amp;(u=h),g.fullData=g.trace,o=i.link.trace.link;var m=y(g),v={valueLabel:a(i.valueFormat)(g.value)+i.valueSuffix};c.push({x:m[0],y:m[1],name:v.valueLabel,text:[g.label||&quot;&quot;,w+g.source.label,T+g.target.label,g.concentrationscale?k+a(&quot;%0.2f&quot;)(g.flow.labelConcentration):&quot;&quot;].filter(f).join(&quot;&lt;br&gt;&quot;),color:_(o,&quot;bgcolor&quot;)||l.addOpacity(g.color,1),borderColor:_(o,&quot;bordercolor&quot;),fontFamily:_(o,&quot;font.family&quot;),fontSize:_(o,&quot;font.size&quot;),fontColor:_(o,&quot;font.color&quot;),nameLength:_(o,&quot;namelength&quot;),textAlign:_(o,&quot;align&quot;),idealAlign:n.event.x&lt;m[0]?&quot;right&quot;:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:v,eventData:[g]})}}s.loneHover(c,{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,anchorIndex:u}).each((function(){i.link.concentrationscale||p(this,.65),d(this)}))}}function y(t){var e,r;t.circular?(e=(t.circularPathData.leftInnerExtent+t.circularPathData.rightInnerExtent)/2,r=t.circularPathData.verticalFullExtent):(e=(t.source.x1+t.target.x0)/2,r=(t.y0+t.y1)/2);var n=[e,r];return&quot;v&quot;===t.trace.orientation&amp;&amp;n.reverse(),n[0]+=i.parent.translateX,n[1]+=i.parent.translateY,n}},unhover:function(e,i,a){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(b.bind(0,i,a,!0)),&quot;skip&quot;!==i.link.trace.link.hoverinfo&amp;&amp;(i.link.fullData=i.link.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.link]})),s.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],s.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(v,r,i),&quot;skip&quot;!==r.node.trace.node.hoverinfo&amp;&amp;(r.node.fullData=r.node.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.node]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){var l=n.select(e).select(&quot;.&quot;+c.nodeRect),u=t._fullLayout._paperdiv.node().getBoundingClientRect(),h=l.node().getBoundingClientRect(),g=h.left-2-u.left,m=h.right+2-u.left,v=h.top+h.height/4-u.top,y={valueLabel:a(i.valueFormat)(i.node.value)+i.valueSuffix};i.node.fullData=i.node.trace,t._fullLayout._calcInverseTransform(t);var x=t._fullLayout._invScaleX,b=t._fullLayout._invScaleY,w=s.loneHover({x0:x*g,x1:x*m,y:b*v,name:a(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,A+i.node.targetLinks.length,M+i.node.sourceLinks.length].filter(f).join(&quot;&lt;br&gt;&quot;),color:_(o,&quot;bgcolor&quot;)||i.tinyColorHue,borderColor:_(o,&quot;bordercolor&quot;),fontFamily:_(o,&quot;font.family&quot;),fontSize:_(o,&quot;font.size&quot;),fontColor:_(o,&quot;font.color&quot;),nameLength:_(o,&quot;namelength&quot;),textAlign:_(o,&quot;align&quot;),idealAlign:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:y,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});p(w,.85),d(w)}}},unhover:function(e,i,a){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(y,i,a),&quot;skip&quot;!==i.node.trace.node.hoverinfo&amp;&amp;(i.node.fullData=i.node.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.node]})),s.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var a=r.node;a.originalEvent=n.event,t._hoverdata=[a],n.select(e).call(y,r,i),s.click(t,{target:!0})}}})}},{&quot;../../components/color&quot;:666,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;./constants&quot;:1211,&quot;./render&quot;:1215,&quot;@plotly/d3&quot;:58}],1215:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-force&quot;),i=t(&quot;d3-interpolate&quot;).interpolateNumber,a=t(&quot;@plotly/d3&quot;),o=t(&quot;@plotly/d3-sankey&quot;),s=t(&quot;@plotly/d3-sankey-circular&quot;),l=t(&quot;./constants&quot;),c=t(&quot;tinycolor2&quot;),u=t(&quot;../../components/color&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../lib&quot;),p=h.strTranslate,d=h.strRotate,g=t(&quot;../../lib/gup&quot;),m=g.keyFun,v=g.repeat,y=g.unwrap,x=t(&quot;../../lib/svg_text_utils&quot;),b=t(&quot;../../registry&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.CAP_SHIFT,T=_.LINE_SPACING;function k(t,e,r){var n,i=y(e),a=i.trace,u=a.domain,f=&quot;h&quot;===a.orientation,p=a.node.pad,d=a.node.thickness,g=t.width*(u.x[1]-u.x[0]),m=t.height*(u.y[1]-u.y[0]),v=i._nodes,x=i._links,b=i.circular;(n=b?s.sankeyCircular().circularLinkGap(0):o.sankey()).iterations(l.sankeyIterations).size(f?[g,m]:[m,g]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodes(v).links(x);var _,w,T,k=n();for(var A in n.nodePadding()&lt;p&amp;&amp;h.warn(&quot;node.pad was reduced to &quot;,n.nodePadding(),&quot; to fit within the figure.&quot;),i._groupLookup){var M,S=parseInt(i._groupLookup[A]);for(_=0;_&lt;k.nodes.length;_++)if(k.nodes[_].pointNumber===S){M=k.nodes[_];break}if(M){var E={pointNumber:parseInt(A),x0:M.x0,x1:M.x1,y0:M.y0,y1:M.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};k.nodes.unshift(E),M.childrenNodes.unshift(E)}}if(function(){for(_=0;_&lt;k.nodes.length;_++){var t,e,r=k.nodes[_],n={};for(w=0;w&lt;r.targetLinks.length;w++)t=(e=r.targetLinks[w]).source.pointNumber+&quot;:&quot;+e.target.pointNumber,n.hasOwnProperty(t)||(n[t]=[]),n[t].push(e);var i=Object.keys(n);for(w=0;w&lt;i.length;w++){var a=n[t=i[w]],o=0,s={};for(T=0;T&lt;a.length;T++)s[(e=a[T]).label]||(s[e.label]=0),s[e.label]+=e.value,o+=e.value;for(T=0;T&lt;a.length;T++)(e=a[T]).flow={value:o,labelConcentration:s[e.label]/o,concentration:e.value/o,links:a},e.concentrationscale&amp;&amp;(e.color=c(e.concentrationscale(e.flow.labelConcentration)))}var l=0;for(w=0;w&lt;r.sourceLinks.length;w++)l+=r.sourceLinks[w].value;for(w=0;w&lt;r.sourceLinks.length;w++)(e=r.sourceLinks[w]).concentrationOut=e.value/l;var u=0;for(w=0;w&lt;r.targetLinks.length;w++)u+=r.targetLinks[w].value;for(w=0;w&lt;r.targetLinks.length;w++)(e=r.targetLinks[w]).concenrationIn=e.value/u}}(),a.node.x.length&amp;&amp;a.node.y.length){for(_=0;_&lt;Math.min(a.node.x.length,a.node.y.length,k.nodes.length);_++)if(a.node.x[_]&amp;&amp;a.node.y[_]){var L=[a.node.x[_]*g,a.node.y[_]*m];k.nodes[_].x0=L[0]-d/2,k.nodes[_].x1=L[0]+d/2;var C=k.nodes[_].y1-k.nodes[_].y0;k.nodes[_].y0=L[1]-C/2,k.nodes[_].y1=L[1]+C/2}if(&quot;snap&quot;===a.arrangement)!function(t){t.forEach((function(t){var e,r,n,i=0,a=t.length;for(t.sort((function(t,e){return t.y0-e.y0})),n=0;n&lt;a;++n)(e=t[n]).y0&gt;=i||(r=i-e.y0)&gt;1e-6&amp;&amp;(e.y0+=r,e.y1+=r),i=e.y1+p}))}(function(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_&lt;n.length;_++){var s=t[n[_].index];s.x0&gt;o+d&amp;&amp;(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}(v=k.nodes));n.update(k)}return{circular:b,key:r,trace:a,guid:h.randstr(),horizontal:f,width:g,height:m,nodePad:a.node.pad,nodeLineColor:a.node.line.color,nodeLineWidth:a.node.line.width,linkLineColor:a.link.line.color,linkLineWidth:a.link.line.width,valueFormat:a.valueformat,valueSuffix:a.valuesuffix,textFont:a.textfont,translateX:u.x[0]*t.width+t.margin.l,translateY:t.height-u.y[1]*t.height+t.margin.t,dragParallel:f?m:g,dragPerpendicular:f?g:m,arrangement:a.arrangement,sankey:n,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function A(t,e,r){var n=c(e.color),i=e.source.label+&quot;|&quot;+e.target.label+&quot;__&quot;+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:i,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:u.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:M,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function M(){return function(t){if(t.link.circular)return e=t.link,r=e.width/2,n=e.circularPathData,&quot;top&quot;===e.circularLinkType?&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 1 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 1 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 0 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 0 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot;Z&quot;:&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 0 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 0 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 1 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 1 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot;Z&quot;;var e,r,n,a=t.link.source.x1,o=t.link.target.x0,s=i(a,o),l=s(.5),c=s(.5),u=t.link.y0-t.link.width/2,f=t.link.y0+t.link.width/2,h=t.link.y1-t.link.width/2,p=t.link.y1+t.link.width/2;return&quot;M&quot;+a+&quot;,&quot;+u+&quot;C&quot;+l+&quot;,&quot;+u+&quot; &quot;+c+&quot;,&quot;+h+&quot; &quot;+o+&quot;,&quot;+h+&quot;L&quot;+o+&quot;,&quot;+p+&quot;C&quot;+c+&quot;,&quot;+p+&quot; &quot;+l+&quot;,&quot;+f+&quot; &quot;+a+&quot;,&quot;+f+&quot;Z&quot;}}function S(t,e){var r=c(e.color),n=l.nodePadAcross,i=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var a=e.dx,o=Math.max(.5,e.dy),s=&quot;node_&quot;+e.pointNumber;return e.group&amp;&amp;(s=h.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:s,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()&lt;=128,tinyColorHue:u.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,s].join(&quot;_&quot;),interactionState:t.interactionState,figure:t}}function E(t){t.attr(&quot;transform&quot;,(function(t){return p(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function L(t){t.call(E)}function C(t,e){t.call(L),e.attr(&quot;d&quot;,M())}function P(t){t.attr(&quot;width&quot;,(function(t){return t.node.x1-t.node.x0})).attr(&quot;height&quot;,(function(t){return t.visibleHeight}))}function I(t){return t.link.width&gt;1||t.linkLineWidth&gt;0}function O(t){return p(t.translateX,t.translateY)+(t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;)}function z(t,e,r){t.on(&quot;.basic&quot;,null).on(&quot;mouseover.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on(&quot;mousemove.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on(&quot;mouseout.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on(&quot;click.basic&quot;,(function(t){t.interactionState.hovered&amp;&amp;(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function D(t,e,r,i){var o=a.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on(&quot;dragstart&quot;,(function(a){if(&quot;fixed&quot;!==a.arrangement&amp;&amp;(h.ensureSingle(i._fullLayout._infolayer,&quot;g&quot;,&quot;dragcover&quot;,(function(t){i._fullLayout._dragCover=t})),h.raiseToTop(this),a.interactionState.dragInProgress=a.node,F(a.node),a.interactionState.hovered&amp;&amp;(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),&quot;snap&quot;===a.arrangement)){var o=a.traceId+&quot;|&quot;+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):function(t,e,r,i){!function(t){for(var e=0;e&lt;t.length;e++)t[e].y=(t[e].y0+t[e].y1)/2,t[e].x=(t[e].x0+t[e].x1)/2}(r.graph.nodes);var a=r.graph.nodes.filter((function(t){return t.originalX===r.node.originalX})).filter((function(t){return!t.partOfGroup}));r.forceLayouts[e]=n.forceSimulation(a).alphaDecay(0).force(&quot;collide&quot;,n.forceCollide().radius((function(t){return t.dy/2+r.nodePad/2})).strength(1).iterations(l.forceIterations)).force(&quot;constrain&quot;,function(t,e,r,n){return function(){for(var t=0,i=0;i&lt;r.length;i++){var a=r[i];a===n.interactionState.dragInProgress?(a.x=a.lastDraggedX,a.y=a.lastDraggedY):(a.vx=(a.originalX-a.x)/l.forceTicksPerFrame,a.y=Math.min(n.size-a.dy/2,Math.max(a.dy/2,a.y))),t=Math.max(t,Math.abs(a.vx),Math.abs(a.vy))}!n.interactionState.dragInProgress&amp;&amp;t&lt;.1&amp;&amp;n.forceLayouts[e].alpha()&gt;0&amp;&amp;n.forceLayouts[e].alpha(0)}}(0,e,a,r)).stop()}(0,o,a),function(t,e,r,n,i){window.requestAnimationFrame((function a(){var o;for(o=0;o&lt;l.forceTicksPerFrame;o++)r.forceLayouts[n].tick();if(function(t){for(var e=0;e&lt;t.length;e++)t[e].y0=t[e].y-t[e].dy/2,t[e].y1=t[e].y0+t[e].dy,t[e].x0=t[e].x-t[e].dx/2,t[e].x1=t[e].x0+t[e].dx}(r.graph.nodes),r.sankey.update(r.graph),C(t.filter(B(r)),e),r.forceLayouts[n].alpha()&gt;0)window.requestAnimationFrame(a);else{var s=r.node.originalX;r.node.x0=s-r.visibleWidth/2,r.node.x1=s+r.visibleWidth/2,R(r,i)}}))}(t,e,a,o,i)}})).on(&quot;drag&quot;,(function(r){if(&quot;fixed&quot;!==r.arrangement){var n=a.event.x,i=a.event.y;&quot;snap&quot;===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2):(&quot;freeform&quot;===r.arrangement&amp;&amp;(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),i=Math.max(0,Math.min(r.size-r.visibleHeight/2,i)),r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2),F(r.node),&quot;snap&quot;!==r.arrangement&amp;&amp;(r.sankey.update(r.graph),C(t.filter(B(r)),e))}})).on(&quot;dragend&quot;,(function(t){if(&quot;fixed&quot;!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e&lt;t.node.childrenNodes.length;e++)t.node.childrenNodes[e].x=t.node.x,t.node.childrenNodes[e].y=t.node.y;&quot;snap&quot;!==t.arrangement&amp;&amp;R(t,i)}}));t.on(&quot;.drag&quot;,null).call(o)}function R(t,e){for(var r=[],n=[],i=0;i&lt;t.graph.nodes.length;i++){var a=(t.graph.nodes[i].x0+t.graph.nodes[i].x1)/2,o=(t.graph.nodes[i].y0+t.graph.nodes[i].y1)/2;r.push(a/t.figure.width),n.push(o/t.figure.height)}b.call(&quot;_guiRestyle&quot;,e,{&quot;node.x&quot;:[r],&quot;node.y&quot;:[n]},t.trace.index).then((function(){e._fullLayout._dragCover&amp;&amp;e._fullLayout._dragCover.remove()}))}function F(t){t.lastDraggedX=t.x0+t.dx/2,t.lastDraggedY=t.y0+t.dy/2}function B(t){return function(e){return e.node.originalX===t.node.originalX}}e.exports=function(t,e,r,n,i){var o=!1;h.ensureSingle(t._fullLayout._infolayer,&quot;g&quot;,&quot;first-render&quot;,(function(){o=!0}));var s=t._fullLayout._dragCover,g=r.filter((function(t){return y(t).trace.visible})).map(k.bind(null,n)),b=e.selectAll(&quot;.&quot;+l.cn.sankey).data(g,m);b.exit().remove(),b.enter().append(&quot;g&quot;).classed(l.cn.sankey,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,O),b.each((function(e,r){t._fullData[r]._sankey=e;var n=&quot;bgsankey-&quot;+e.trace.uid+&quot;-&quot;+r;h.ensureSingle(t._fullLayout._draggers,&quot;rect&quot;,n),t._fullData[r]._bgRect=a.select(&quot;.&quot;+n),t._fullData[r]._bgRect.style(&quot;pointer-events&quot;,&quot;all&quot;).attr(&quot;width&quot;,e.width).attr(&quot;height&quot;,e.height).attr(&quot;x&quot;,e.translateX).attr(&quot;y&quot;,e.translateY).classed(&quot;bgsankey&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0})})),b.transition().ease(l.ease).duration(l.duration).attr(&quot;transform&quot;,O);var _=b.selectAll(&quot;.&quot;+l.cn.sankeyLinks).data(v,m);_.enter().append(&quot;g&quot;).classed(l.cn.sankeyLinks,!0).style(&quot;fill&quot;,&quot;none&quot;);var L=_.selectAll(&quot;.&quot;+l.cn.sankeyLink).data((function(t){return t.graph.links.filter((function(t){return t.value})).map(A.bind(null,t))}),m);L.enter().append(&quot;path&quot;).classed(l.cn.sankeyLink,!0).call(z,b,i.linkEvents),L.style(&quot;stroke&quot;,(function(t){return I(t)?u.tinyRGB(c(t.linkLineColor)):t.tinyColorHue})).style(&quot;stroke-opacity&quot;,(function(t){return I(t)?u.opacity(t.linkLineColor):t.tinyColorAlpha})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})).style(&quot;stroke-width&quot;,(function(t){return I(t)?t.linkLineWidth:1})).attr(&quot;d&quot;,M()),L.style(&quot;opacity&quot;,(function(){return t._context.staticPlot||o||s?1:0})).transition().ease(l.ease).duration(l.duration).style(&quot;opacity&quot;,1),L.exit().transition().ease(l.ease).duration(l.duration).style(&quot;opacity&quot;,0).remove();var C=b.selectAll(&quot;.&quot;+l.cn.sankeyNodeSet).data(v,m);C.enter().append(&quot;g&quot;).classed(l.cn.sankeyNodeSet,!0),C.style(&quot;cursor&quot;,(function(t){switch(t.arrangement){case&quot;fixed&quot;:return&quot;default&quot;;case&quot;perpendicular&quot;:return&quot;ns-resize&quot;;default:return&quot;move&quot;}}));var R=C.selectAll(&quot;.&quot;+l.cn.sankeyNode).data((function(t){var e=t.graph.nodes;return function(t){var e,r=[];for(e=0;e&lt;t.length;e++)t[e].originalX=(t[e].x0+t[e].x1)/2,t[e].originalY=(t[e].y0+t[e].y1)/2,-1===r.indexOf(t[e].originalX)&amp;&amp;r.push(t[e].originalX);for(r.sort((function(t,e){return t-e})),e=0;e&lt;t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.map(S.bind(null,t))}),m);R.enter().append(&quot;g&quot;).classed(l.cn.sankeyNode,!0).call(E).style(&quot;opacity&quot;,(function(e){return!t._context.staticPlot&amp;&amp;!o||e.partOfGroup?0:1})),R.call(z,b,i.nodeEvents).call(D,L,i,t),R.transition().ease(l.ease).duration(l.duration).call(E).style(&quot;opacity&quot;,(function(t){return t.partOfGroup?0:1})),R.exit().transition().ease(l.ease).duration(l.duration).style(&quot;opacity&quot;,0).remove();var F=R.selectAll(&quot;.&quot;+l.cn.nodeRect).data(v);F.enter().append(&quot;rect&quot;).classed(l.cn.nodeRect,!0).call(P),F.style(&quot;stroke-width&quot;,(function(t){return t.nodeLineWidth})).style(&quot;stroke&quot;,(function(t){return u.tinyRGB(c(t.nodeLineColor))})).style(&quot;stroke-opacity&quot;,(function(t){return u.opacity(t.nodeLineColor)})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),F.transition().ease(l.ease).duration(l.duration).call(P);var B=R.selectAll(&quot;.&quot;+l.cn.nodeLabel).data(v);B.enter().append(&quot;text&quot;).classed(l.cn.nodeLabel,!0).style(&quot;cursor&quot;,&quot;default&quot;),B.attr(&quot;data-notex&quot;,1).text((function(t){return t.node.label})).each((function(e){var r=a.select(this);f.font(r,e.textFont),x.convertToTspans(r,t)})).style(&quot;text-shadow&quot;,x.makeTextShadow(t._fullLayout.paper_bgcolor)).attr(&quot;text-anchor&quot;,(function(t){return t.horizontal&amp;&amp;t.left?&quot;end&quot;:&quot;start&quot;})).attr(&quot;transform&quot;,(function(t){var e=a.select(this),r=x.lineCount(e),n=t.textFont.size*((r-1)*T-w),i=t.nodeLineWidth/2+3,o=((t.horizontal?t.visibleHeight:t.visibleWidth)-n)/2;t.horizontal&amp;&amp;(t.left?i=-i:i+=t.visibleWidth);var s=t.horizontal?&quot;&quot;:&quot;scale(-1,1)&quot;+d(90);return p(t.horizontal?i:o,t.horizontal?o:i)+s})),B.transition().ease(l.ease).duration(l.duration)}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../registry&quot;:931,&quot;./constants&quot;:1211,&quot;@plotly/d3&quot;:58,&quot;@plotly/d3-sankey&quot;:57,&quot;@plotly/d3-sankey-circular&quot;:56,&quot;d3-force&quot;:166,&quot;d3-interpolate&quot;:171,tinycolor2:598}],1216:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=[],n=t.cd[0].trace,i=n._sankey.graph.nodes,a=0;a&lt;i.length;a++){var o=i[a];if(!o.partOfGroup){var s=[(o.x0+o.x1)/2,(o.y0+o.y1)/2];&quot;v&quot;===n.orientation&amp;&amp;s.reverse(),e&amp;&amp;e.contains(s,!1,a,t)&amp;&amp;r.push({pointNumber:o.pointNumber})}}return r}},{}],1217:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.texttemplate,t,&quot;txt&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;),n.mergeArray(e.customdata,t,&quot;data&quot;),n.mergeArray(e.textposition,t,&quot;tp&quot;),e.textfont&amp;&amp;(n.mergeArrayCastPositive(e.textfont.size,t,&quot;ts&quot;),n.mergeArray(e.textfont.color,t,&quot;tc&quot;),n.mergeArray(e.textfont.family,t,&quot;tf&quot;));var i=e.marker;if(i){n.mergeArrayCastPositive(i.size,t,&quot;ms&quot;),n.mergeArrayCastPositive(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.symbol,t,&quot;mx&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;i.line&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;));var o=i.gradient;o&amp;&amp;&quot;none&quot;!==o.type&amp;&amp;(n.mergeArray(o.type,t,&quot;mgt&quot;),n.mergeArray(o.color,t,&quot;mgc&quot;))}}},{&quot;../../lib&quot;:803}],1218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../components/drawing&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},xperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},yperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},xperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},yperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},xperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},yperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},xhoverformat:n(&quot;x&quot;),yhoverformat:n(&quot;y&quot;),stackgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc&quot;},groupnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},stackgaps:{valType:&quot;enumerated&quot;,values:[&quot;infer zero&quot;,&quot;interpolate&quot;],dflt:&quot;infer zero&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},texttemplate:i({},{}),hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;points&quot;,&quot;fills&quot;],editType:&quot;style&quot;},hovertemplate:a({},{keys:u.eventDataKeys}),line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;,anim:!0},shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;spline&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},smoothing:{valType:&quot;number&quot;,min:0,max:1.3,dflt:1,editType:&quot;plot&quot;},dash:f({},l,{editType:&quot;style&quot;}),simplify:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cliponaxis:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;tozeroy&quot;,&quot;tozerox&quot;,&quot;tonexty&quot;,&quot;tonextx&quot;,&quot;toself&quot;,&quot;tonext&quot;],editType:&quot;calc&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},marker:f({symbol:{valType:&quot;enumerated&quot;,values:c.symbolList,dflt:&quot;circle&quot;,arrayOk:!0,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,arrayOk:!0,editType:&quot;style&quot;,anim:!0},size:{valType:&quot;number&quot;,min:0,dflt:6,arrayOk:!0,editType:&quot;calc&quot;,anim:!0},maxdisplayed:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},sizeref:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;diameter&quot;,&quot;area&quot;],dflt:&quot;diameter&quot;,editType:&quot;calc&quot;},line:f({width:{valType:&quot;number&quot;,min:0,arrayOk:!0,editType:&quot;style&quot;,anim:!0},editType:&quot;calc&quot;},o(&quot;marker.line&quot;,{anim:!0})),gradient:{type:{valType:&quot;enumerated&quot;,values:[&quot;radial&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;none&quot;],arrayOk:!0,dflt:&quot;none&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{anim:!0})),selected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},unselected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;middle center&quot;,arrayOk:!0,editType:&quot;calc&quot;},textfont:s({editType:&quot;calc&quot;,colorEditType:&quot;style&quot;,arrayOk:!0})}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/drawing&quot;:688,&quot;../../components/drawing/attributes&quot;:687,&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/template_attributes&quot;:926,&quot;./constants&quot;:1222}],1219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;./subtypes&quot;),c=t(&quot;./colorscale_calc&quot;),u=t(&quot;./arrays_to_calcdata&quot;),f=t(&quot;./calc_selection&quot;);function h(t,e,r,n,i,o,s){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[g(e)]===e.uid,d=(m(e,u,r,n)||{}).orientation,v=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};s&amp;&amp;(y.ppad=x.ppad=s);var b=c&lt;2||i[0]!==i[c-1]||o[0]!==o[c-1];b&amp;&amp;(&quot;tozerox&quot;===v||&quot;tonextx&quot;===v&amp;&amp;(p||&quot;h&quot;===d))?y.tozero=!0:(e.error_y||{}).visible||&quot;tonexty&quot;!==v&amp;&amp;&quot;tozeroy&quot;!==v&amp;&amp;(l.hasMarkers(e)||l.hasText(e))||(y.padded=!1,y.ppad=0),b&amp;&amp;(&quot;tozeroy&quot;===v||&quot;tonexty&quot;===v&amp;&amp;(p||&quot;v&quot;===d))?x.tozero=!0:&quot;tonextx&quot;!==v&amp;&amp;&quot;tozerox&quot;!==v||(x.padded=!1),f&amp;&amp;(e._extremes[f]=a.findExtremes(r,i,y)),h&amp;&amp;(e._extremes[h]=a.findExtremes(n,o,x))}function p(t,e){if(l.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=&quot;area&quot;===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var s={type:&quot;linear&quot;};a.setConvert(s);for(var c=s.makeCalcdata(t.marker,&quot;size&quot;),u=new Array(e),f=0;f&lt;e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function d(t,e){var r=g(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function g(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?&quot;-&quot;+e:&quot;&quot;)}function m(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=&quot;v&quot;===a.orientation?n:r;return&quot;linear&quot;===o.type||&quot;log&quot;===o.type?a:void 0}}e.exports={calc:function(t,e){var r,l,g,v,y,x,b=t._fullLayout,_=a.getFromId(t,e.xaxis||&quot;x&quot;),w=a.getFromId(t,e.yaxis||&quot;y&quot;),T=_.makeCalcdata(e,&quot;x&quot;),k=w.makeCalcdata(e,&quot;y&quot;),A=o(e,_,&quot;x&quot;,T),M=o(e,w,&quot;y&quot;,k),S=A.vals,E=M.vals,L=e._length,C=new Array(L),P=e.ids,I=m(e,b,_,w),O=!1;d(b,e);var z,D=&quot;x&quot;,R=&quot;y&quot;;I?(i.pushUnique(I.traceIndices,e._expandedIndex),(r=&quot;v&quot;===I.orientation)?(R=&quot;s&quot;,z=&quot;x&quot;):(D=&quot;s&quot;,z=&quot;y&quot;),y=&quot;interpolate&quot;===I.stackgaps):h(t,e,_,w,S,E,p(e,L));var F=!!e.xperiodalignment,B=!!e.yperiodalignment;for(l=0;l&lt;L;l++){var N=C[l]={},j=n(S[l]),U=n(E[l]);j&amp;&amp;U?(N[D]=S[l],N[R]=E[l],F&amp;&amp;(N.orig_x=T[l],N.xEnd=A.ends[l],N.xStart=A.starts[l]),B&amp;&amp;(N.orig_y=k[l],N.yEnd=M.ends[l],N.yStart=M.starts[l])):I&amp;&amp;(r?j:U)?(N[z]=r?S[l]:E[l],N.gap=!0,y?(N.s=s,O=!0):N.s=0):N[D]=N[R]=s,P&amp;&amp;(N.id=String(P[l]))}if(u(C,e),c(t,e),f(C,e),I){for(l=0;l&lt;C.length;)C[l][z]===s?C.splice(l,1):l++;if(i.sort(C,(function(t,e){return t[z]-e[z]||t.i-e.i})),O){for(l=0;l&lt;C.length-1&amp;&amp;C[l].gap;)l++;for((x=C[l].s)||(x=C[l].s=0),g=0;g&lt;l;g++)C[g].s=x;for(v=C.length-1;v&gt;l&amp;&amp;C[v].gap;)v--;for(x=C[v].s,g=C.length-1;g&gt;v;g--)C[g].s=x;for(;l&lt;v;)if(C[++l].gap){for(g=l+1;C[g].gap;)g++;for(var V=C[l-1][z],q=C[l-1].s,H=(C[g].s-q)/(C[g][z]-V);l&lt;g;)C[l].s=q+(C[l][z]-V)*H,l++}}}return C},calcMarkerSize:p,calcAxisExpansion:h,setFirstScatter:d,getStackOpts:m}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;./arrays_to_calcdata&quot;:1217,&quot;./calc_selection&quot;:1220,&quot;./colorscale_calc&quot;:1221,&quot;./subtypes&quot;:1243,&quot;fast-isnumeric&quot;:249}],1220:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;n.tagSelected(t,e)}},{&quot;../../lib&quot;:803}],1221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;./subtypes&quot;);e.exports=function(t,e){a.hasLines(e)&amp;&amp;n(e,&quot;line&quot;)&amp;&amp;i(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),a.hasMarkers(e)&amp;&amp;(n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}))}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../components/colorscale/helpers&quot;:677,&quot;./subtypes&quot;:1243}],1222:[function(t,e,r){&quot;use strict&quot;;e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],1223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calc&quot;);function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&amp;&amp;r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&amp;&amp;(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T=t.calcdata;for(var k in s){var A=(v=s[k]).traceIndices;if(A.length){for(y=&quot;interpolate&quot;===v.stackgaps,x=v.groupnorm,&quot;v&quot;===v.orientation?(b=&quot;x&quot;,_=&quot;y&quot;):(b=&quot;y&quot;,_=&quot;x&quot;),w=new Array(A.length),l=0;l&lt;w.length;l++)w[l]=!1;p=T[A[0]];var M=new Array(p.length);for(l=0;l&lt;p.length;l++)M[l]=p[l][b];for(l=1;l&lt;A.length;l++){for(h=T[A[l]],c=u=0;c&lt;h.length;c++){for(d=h[c][b];d&gt;M[u]&amp;&amp;u&lt;M.length;u++)i(h,c,M[u],l,w,y,b),c++;if(d!==M[u]){for(f=0;f&lt;l;f++)i(T[A[f]],u,d,f,w,y,b);M.splice(u,0,d)}u++}for(;u&lt;M.length;u++)i(h,c,M[u],l,w,y,b),c++}var S=M.length;for(c=0;c&lt;p.length;c++){for(g=p[c][_]=p[c].s,l=1;l&lt;A.length;l++)(h=T[A[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][_]=g;if(x)for(m=(&quot;fraction&quot;===x?g:g/100)||1,l=0;l&lt;A.length;l++){var E=T[A[l]][c];E[_]/=m,E.sNorm=E.s/m}}for(l=0;l&lt;A.length;l++){var L=(h=T[A[l]])[0].trace,C=n.calcMarkerSize(L,L._rawLength),P=Array.isArray(C);if(C&amp;&amp;w[l]||P){var I=C;for(C=new Array(S),c=0;c&lt;S;c++)C[c]=h[c].gap?0:P?I[h[c].i]:I}var O=new Array(S),z=new Array(S);for(c=0;c&lt;S;c++)O[c]=h[c].x,z[c]=h[c].y;n.calcAxisExpansion(t,L,r,a,O,z,C),h[0].t.orientation=v.orientation}}}}}},{&quot;./calc&quot;:1219}],1224:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0;e&lt;t.length;e++){var r=t[e];if(&quot;scatter&quot;===r.type){var n=r.fill;if(&quot;none&quot;!==n&amp;&amp;&quot;toself&quot;!==n&amp;&amp;(r.opacity=void 0,&quot;tonexty&quot;===n||&quot;tonextx&quot;===n))for(var i=e-1;i&gt;=0;i--){var a=t[i];if(&quot;scatter&quot;===a.type&amp;&amp;a.xaxis===r.xaxis&amp;&amp;a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1225:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;./subtypes&quot;),l=t(&quot;./xy_defaults&quot;),c=t(&quot;./period_defaults&quot;),u=t(&quot;./stack_defaults&quot;),f=t(&quot;./marker_defaults&quot;),h=t(&quot;./line_defaults&quot;),p=t(&quot;./line_shape_defaults&quot;),d=t(&quot;./text_defaults&quot;),g=t(&quot;./fillcolor_defaults&quot;);e.exports=function(t,e,r,m){function v(r,i){return n.coerce(t,e,a,r,i)}var y=l(t,e,m,v);if(y||(e.visible=!1),e.visible){c(t,e,m,v),v(&quot;xhoverformat&quot;),v(&quot;yhoverformat&quot;);var x=u(t,e,m,v),b=!x&amp;&amp;y&lt;o.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;v(&quot;text&quot;),v(&quot;hovertext&quot;),v(&quot;mode&quot;,b),s.hasLines(e)&amp;&amp;(h(t,e,r,m,v),p(t,e,v),v(&quot;connectgaps&quot;),v(&quot;line.simplify&quot;)),s.hasMarkers(e)&amp;&amp;f(t,e,r,m,v,{gradient:!0}),s.hasText(e)&amp;&amp;(v(&quot;texttemplate&quot;),d(t,e,m,v));var _=[];(s.hasMarkers(e)||s.hasText(e))&amp;&amp;(v(&quot;cliponaxis&quot;),v(&quot;marker.maxdisplayed&quot;),_.push(&quot;points&quot;)),v(&quot;fill&quot;,x?x.fillDflt:&quot;none&quot;),&quot;none&quot;!==e.fill&amp;&amp;(g(t,e,r,v),s.hasLines(e)||p(t,e,v));var w=(e.line||{}).color,T=(e.marker||{}).color;&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||_.push(&quot;fills&quot;),v(&quot;hoveron&quot;,_.join(&quot;+&quot;)||&quot;points&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;v(&quot;hovertemplate&quot;);var k=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);k(t,e,w||T||r,{axis:&quot;y&quot;}),k(t,e,w||T||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,v)}}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:1218,&quot;./constants&quot;:1222,&quot;./fillcolor_defaults&quot;:1226,&quot;./line_defaults&quot;:1231,&quot;./line_shape_defaults&quot;:1233,&quot;./marker_defaults&quot;:1237,&quot;./period_defaults&quot;:1238,&quot;./stack_defaults&quot;:1241,&quot;./subtypes&quot;:1243,&quot;./text_defaults&quot;:1244,&quot;./xy_defaults&quot;:1245}],1226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&amp;&amp;!i(s)?o=s:l&amp;&amp;!i(l)&amp;&amp;(o=l)}a(&quot;fillcolor&quot;,n.addOpacity((e.line||{}).color||o||r,.5))}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803}],1227:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a={_fullLayout:r},o=n.getFromTrace(a,e,&quot;x&quot;),s=n.getFromTrace(a,e,&quot;y&quot;);return i.xLabel=n.tickText(o,o.c2l(t.x),!0).text,i.yLabel=n.tickText(s,s.c2l(t.y),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:854}],1228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,a;if(&quot;lines&quot;===t.mode)return(r=t.line.color)&amp;&amp;n.opacity(r)?r:t.fillcolor;if(&quot;none&quot;===t.mode)return t.fill?t.fillcolor:&quot;&quot;;var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&amp;&amp;n.opacity(o)?o:s&amp;&amp;n.opacity(s)&amp;&amp;(e.mlw||((t.marker||{}).line||{}).width)?s:&quot;&quot;)?n.opacity(a)&lt;.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&amp;&amp;n.opacity(r)&amp;&amp;i.hasLines(t)&amp;&amp;t.line.width?r:t.fillcolor}},{&quot;../../components/color&quot;:666,&quot;./subtypes&quot;:1243}],1229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;./get_trace_color&quot;),s=t(&quot;../../components/color&quot;),l=n.fillText;e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),g=p.c2p(r),m=[d,g],v=f.hoveron||&quot;&quot;,y=-1!==f.mode.indexOf(&quot;markers&quot;)?3:.5,x=!!f.xperiodalignment,b=!!f.yperiodalignment;if(-1!==v.indexOf(&quot;points&quot;)){var _=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-g;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},w=i.getDistanceFunction(c,(function(t){if(x){var e=h.c2p(t.xStart),r=h.c2p(t.xEnd);return d&gt;=Math.min(e,r)&amp;&amp;d&lt;=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(h.c2p(t.x)-d);return a&lt;n?i*a/n:a-n+i}),(function(t){if(b){var e=p.c2p(t.yStart),r=p.c2p(t.yEnd);return g&gt;=Math.min(e,r)&amp;&amp;g&lt;=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(p.c2p(t.y)-g);return a&lt;n?i*a/n:a-n+i}),_);if(i.getClosest(u,w,t),!1!==t.index){var T=u[t.index],k=h.c2p(T.x,!0),A=p.c2p(T.y,!0),M=T.mrc||1;t.index=T.i;var S=u[0].t.orientation,E=S&amp;&amp;(T.sNorm||T.s),L=&quot;h&quot;===S?E:void 0!==T.orig_x?T.orig_x:T.x,C=&quot;v&quot;===S?E:void 0!==T.orig_y?T.orig_y:T.y;return n.extendFlat(t,{color:o(f,T),x0:k-M,x1:k+M,xLabelVal:L,y0:A-M,y1:A+M,yLabelVal:C,spikeDistance:_(T),hovertemplate:f.hovertemplate}),l(T,f,t),a.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(T,f,t),[t]}}if(-1!==v.indexOf(&quot;fills&quot;)&amp;&amp;f._polygons){var P,I,O,z,D,R,F,B,N,j=f._polygons,U=[],V=!1,q=1/0,H=-1/0,G=1/0,Y=-1/0;for(P=0;P&lt;j.length;P++)(O=j[P]).contains(m)&amp;&amp;(V=!V,U.push(O),G=Math.min(G,O.ymin),Y=Math.max(Y,O.ymax));if(V){var W=((G=Math.max(G,0))+(Y=Math.min(Y,p._length)))/2;for(P=0;P&lt;U.length;P++)for(z=U[P].pts,I=1;I&lt;z.length;I++)(B=z[I-1][1])&gt;W!=(N=z[I][1])&gt;=W&amp;&amp;(R=z[I-1][0],F=z[I][0],N-B&amp;&amp;(D=R+(F-R)*(W-B)/(N-B),q=Math.min(q,D),H=Math.max(H,D)));q=Math.max(q,0),H=Math.min(H,h._length);var X=s.defaultLine;return s.opacity(f.fillcolor)?X=f.fillcolor:s.opacity((f.line||{}).color)&amp;&amp;(X=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:q,x1:H,y0:W,y1:W,color:X,hovertemplate:!1}),delete t.index,f.text&amp;&amp;!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{&quot;../../components/color&quot;:666,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./get_trace_color&quot;:1228}],1230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./cross_trace_calc&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;./select&quot;),animatable:!0,moduleType:&quot;trace&quot;,name:&quot;scatter&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./arrays_to_calcdata&quot;:1217,&quot;./attributes&quot;:1218,&quot;./calc&quot;:1219,&quot;./cross_trace_calc&quot;:1223,&quot;./cross_trace_defaults&quot;:1224,&quot;./defaults&quot;:1225,&quot;./format_labels&quot;:1227,&quot;./hover&quot;:1229,&quot;./marker_colorbar&quot;:1236,&quot;./plot&quot;:1239,&quot;./select&quot;:1240,&quot;./style&quot;:1242,&quot;./subtypes&quot;:1243}],1231:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(&quot;line.color&quot;,r),i(t,&quot;line&quot;))?a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}):s(&quot;line.color&quot;,!n(c)&amp;&amp;c||r);s(&quot;line.width&quot;),(l||{}).noDash||s(&quot;line.dash&quot;)}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../lib&quot;:803}],1232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(&quot;../../lib&quot;),c=l.segmentsIntersect,u=l.constrain,f=t(&quot;./constants&quot;);e.exports=function(t,e){var r,n,a,h,p,d,g,m,v,y,x,b,_,w,T,k,A,M,S=e.xaxis,E=e.yaxis,L=&quot;log&quot;===S.type,C=&quot;log&quot;===E.type,P=S._length,I=E._length,O=e.connectGaps,z=e.baseTolerance,D=e.shape,R=&quot;linear&quot;===D,F=e.fill&amp;&amp;&quot;none&quot;!==e.fill,B=[],N=f.minTolerance,j=t.length,U=new Array(j),V=0;function q(r){var n=t[r];if(!n)return!1;var a=e.linearized?S.l2p(n.x):S.c2p(n.x),l=e.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(L&amp;&amp;(a=S.c2p(n.x,!0)),a===i)return!1;C&amp;&amp;l===i&amp;&amp;(a*=Math.abs(S._m*I*(S._m&gt;0?o:s)/(E._m*P*(E._m&gt;0?o:s)))),a*=1e3}if(l===i){if(C&amp;&amp;(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function H(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c&gt;0&amp;&amp;c&lt;l){var u=o*a-s*i;if(u*u&lt;l)return!0}}function G(t,e){var r=t[0]/P,n=t[1]/I,i=Math.max(0,-r,r-1,-n,n-1);return i&amp;&amp;void 0!==A&amp;&amp;H(r,n,A,M)&amp;&amp;(i=0),i&amp;&amp;e&amp;&amp;H(r,n,e[0]/P,e[1]/I)&amp;&amp;(i=0),(1+f.toleranceGrowth*i)*z}function Y(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var W,X,Z,J,K,Q,$,tt=f.maxScreensAway,et=-P*tt,rt=P*(1+tt),nt=-I*tt,it=I*(1+tt),at=[[et,nt,rt,nt],[rt,nt,rt,it],[rt,it,et,it],[et,it,et,nt]];function ot(t){if(t[0]&lt;et||t[0]&gt;rt||t[1]&lt;nt||t[1]&gt;it)return[u(t[0],et,rt),u(t[1],nt,it)]}function st(t,e){return t[0]===e[0]&amp;&amp;(t[0]===et||t[0]===rt)||(t[1]===e[1]&amp;&amp;(t[1]===nt||t[1]===it)||void 0)}function lt(t,e,r){return function(n,i){var a=ot(n),o=ot(i),s=[];if(a&amp;&amp;o&amp;&amp;st(a,o))return s;a&amp;&amp;s.push(a),o&amp;&amp;s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&amp;&amp;((a&amp;&amp;o?c&gt;0==a[t]&gt;o[t]?a:o:a||o)[t]+=c);return s}}function ct(t){var e=t[0],r=t[1],n=e===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V&gt;1){var a=e===U[V-2][0],o=r===U[V-2][1];n&amp;&amp;(e===et||e===rt)&amp;&amp;a?o?V--:U[V-1]=t:i&amp;&amp;(r===nt||r===it)&amp;&amp;o?a?V--:U[V-1]=t:U[V++]=t}else U[V++]=t}function ut(t){U[V-1][0]!==t[0]&amp;&amp;U[V-1][1]!==t[1]&amp;&amp;ct([Z,J]),ct(t),K=null,Z=J=0}function ft(t){if(A=t[0]/P,M=t[1]/I,W=t[0]&lt;et?et:t[0]&gt;rt?rt:0,X=t[1]&lt;nt?nt:t[1]&gt;it?it:0,W||X){if(V)if(K){var e=$(K,t);e.length&gt;1&amp;&amp;(ut(e[0]),U[V++]=e[1])}else Q=$(U[V-1],t)[0],U[V++]=Q;else U[V++]=[W||t[0],X||t[1]];var r=U[V-1];W&amp;&amp;X&amp;&amp;(r[0]!==W||r[1]!==X)?(K&amp;&amp;(Z!==W&amp;&amp;J!==X?ct(Z&amp;&amp;J?(n=K,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a&gt;0?[o&gt;0?et:rt,it]:[o&gt;0?rt:et,nt]):[Z||W,J||X]):Z&amp;&amp;J&amp;&amp;ct([Z,J])),ct([W,X])):Z-W&amp;&amp;J-X&amp;&amp;ct([W||Z,X||J]),K=t,Z=W,J=X}else K&amp;&amp;ut($(K,t)[0]),U[V++]=t;var n,i,a,o}for(&quot;linear&quot;===D||&quot;spline&quot;===D?$=function(t,e){for(var r=[],n=0,i=0;i&lt;4;i++){var a=at[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&amp;&amp;(!n||Math.abs(o.x-r[0][0])&gt;1||Math.abs(o.y-r[0][1])&gt;1)&amp;&amp;(o=[o.x,o.y],n&amp;&amp;Y(o,t)&lt;Y(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:&quot;hv&quot;===D||&quot;vh&quot;===D?$=function(t,e){var r=[],n=ot(t),i=ot(e);return n&amp;&amp;i&amp;&amp;st(n,i)||(n&amp;&amp;r.push(n),i&amp;&amp;r.push(i)),r}:&quot;hvh&quot;===D?$=lt(0,et,rt):&quot;vhv&quot;===D&amp;&amp;($=lt(1,nt,it)),r=0;r&lt;j;r++)if(n=q(r)){for(V=0,K=null,ft(n),r++;r&lt;j;r++){if(!(h=q(r))){if(O)continue;break}if(R&amp;&amp;e.simplify){var ht=q(r+1);if(y=Y(h,n),F&amp;&amp;(0===V||V===j-1)||!(y&lt;G(h,ht)*N)){for(m=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=T=0,g=!1,a=h,r++;r&lt;t.length;r++){if(d=ht,ht=q(r+1),!d){if(O)continue;break}if(k=(v=[d[0]-n[0],d[1]-n[1]])[0]*m[1]-v[1]*m[0],w=Math.min(w,k),(T=Math.max(T,k))-w&gt;G(d,ht))break;a=d,(_=v[0]*m[0]+v[1]*m[1])&gt;x?(x=_,h=d,g=!1):_&lt;b&amp;&amp;(b=_,p=d,g=!0)}if(g?(ft(h),a!==p&amp;&amp;ft(p)):(p!==n&amp;&amp;ft(p),a!==h&amp;&amp;ft(h)),ft(a),r&gt;=t.length||!d)break;ft(d),n=d}}else ft(h)}K&amp;&amp;ct([Z||K[0],J||K[1]]),B.push(U.slice(0,V))}return B}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;./constants&quot;:1222}],1233:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){&quot;spline&quot;===r(&quot;line.shape&quot;)&amp;&amp;r(&quot;line.smoothing&quot;)}},{}],1234:[function(t,e,r){&quot;use strict&quot;;var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a&lt;r.length;a++)(o=(i=r[a][0].trace).stackgroup||&quot;&quot;)?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&amp;&amp;p&gt;=0?l=p:(l=p=h,h++),l&lt;f&amp;&amp;(u=!0),i._groupIndex=f=l;var d=r.slice();u&amp;&amp;d.sort((function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var g={};for(a=0;a&lt;d.length;a++)o=(i=d[a][0].trace).stackgroup||&quot;&quot;,!0===i.visible?(i._nexttrace=null,i.fill in n&amp;&amp;(s=g[o],i._prevtrace=s||null,s&amp;&amp;(s._nexttrace=i)),i._ownfill=i.fill&amp;&amp;(&quot;tozero&quot;===i.fill.substr(0,6)||&quot;toself&quot;===i.fill||&quot;to&quot;===i.fill.substr(0,2)&amp;&amp;!i._prevtrace),g[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],1235:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){e||(e=2);var r=t.marker,i=r.sizeref||1,a=r.sizemin||0,o=&quot;area&quot;===r.sizemode?function(t){return Math.sqrt(t/i)}:function(t){return t/i};return function(t){var r=o(t/e);return n(r)&amp;&amp;r&gt;0?Math.max(r,a):0}}},{&quot;fast-isnumeric&quot;:249}],1236:[function(t,e,r){&quot;use strict&quot;;e.exports={container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}},{}],1237:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./subtypes&quot;);e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&amp;&amp;(r=f),l(&quot;marker.symbol&quot;),l(&quot;marker.opacity&quot;,u?.7:1),l(&quot;marker.size&quot;),l(&quot;marker.color&quot;,r),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),c.noSelect||(l(&quot;selected.marker.color&quot;),l(&quot;unselected.marker.color&quot;),l(&quot;selected.marker.size&quot;),l(&quot;unselected.marker.size&quot;)),c.noLine||(l(&quot;marker.line.color&quot;,f&amp;&amp;!Array.isArray(f)&amp;&amp;e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),l(&quot;marker.line.width&quot;,u?1:0)),u&amp;&amp;(l(&quot;marker.sizeref&quot;),l(&quot;marker.sizemin&quot;),l(&quot;marker.sizemode&quot;)),c.gradient)&amp;&amp;(&quot;none&quot;!==l(&quot;marker.gradient.type&quot;)&amp;&amp;l(&quot;marker.gradient.color&quot;))}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale/defaults&quot;:676,&quot;../../components/colorscale/helpers&quot;:677,&quot;./subtypes&quot;:1243}],1238:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).dateTick0,i=t(&quot;../../constants/numerical&quot;).ONEWEEK;function a(t,e){return n(e,t%i==0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n(&quot;xperiod&quot;);o&amp;&amp;(n(&quot;xperiod0&quot;,a(o,e.xcalendar)),n(&quot;xperiodalignment&quot;))}if(i.y){var s=n(&quot;yperiod&quot;);s&amp;&amp;(n(&quot;yperiod0&quot;,a(s,e.ycalendar)),n(&quot;yperiodalignment&quot;))}}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803}],1239:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.ensureSingle,s=a.identity,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./subtypes&quot;),u=t(&quot;./line_points&quot;),f=t(&quot;./link_traces&quot;),h=t(&quot;../../lib/polygon&quot;).tester;function p(t,e,r,f,p,d,g){var m;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter((function(t){return t.x&gt;=u[0]&amp;&amp;t.x&lt;=u[1]&amp;&amp;t.y&gt;=f[0]&amp;&amp;t.y&lt;=f[1]})),g=Math.ceil(d.length/p),m=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&amp;&amp;n.marker.maxdisplayed&gt;0&amp;&amp;r&lt;e&amp;&amp;m++}));var v=Math.round(m*g/3+Math.floor(m/3)*g/7.1);i.forEach((function(t){delete t.vis})),d.forEach((function(t,e){0===Math.round((e+v)%g)&amp;&amp;(t.vis=!0)}))}(0,e,r,f,p);var v=!!g&amp;&amp;g.duration&gt;0;function y(t){return v?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(d),k=o(T,&quot;g&quot;,&quot;errorbars&quot;),A=o(T,&quot;g&quot;,&quot;lines&quot;),M=o(T,&quot;g&quot;,&quot;points&quot;),S=o(T,&quot;g&quot;,&quot;text&quot;);if(i.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,k,r,g),!0===_.visible){var E,L;y(T).style(&quot;opacity&quot;,_.opacity);var C=_.fill.charAt(_.fill.length-1);&quot;x&quot;!==C&amp;&amp;&quot;y&quot;!==C&amp;&amp;(C=&quot;&quot;),f[0][r.isRangePlot?&quot;nodeRangePlot3&quot;:&quot;node3&quot;]=T;var P,I,O=&quot;&quot;,z=[],D=_._prevtrace;D&amp;&amp;(O=D._prevRevpath||&quot;&quot;,L=D._nextFill,z=D._polygons);var R,F,B,N,j,U,V,q=&quot;&quot;,H=&quot;&quot;,G=[],Y=a.noop;if(E=_._ownFill,c.hasLines(_)||&quot;none&quot;!==_.fill){for(L&amp;&amp;L.datum(f),-1!==[&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split(&quot;&quot;).reverse().join(&quot;&quot;))):R=F=&quot;spline&quot;===w.shape?function(t){var e=t[t.length-1];return t.length&gt;1&amp;&amp;t[0][0]===e[0]&amp;&amp;t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return&quot;M&quot;+t.join(&quot;L&quot;)},B=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),m=0;m&lt;G.length;m++)_._polygons[m]=h(G[m]);G.length&amp;&amp;(N=G[0][0],U=(j=G[G.length-1])[j.length-1]),Y=function(t){return function(e){if(P=R(e),I=B(e),q?C?(q+=&quot;L&quot;+P.substr(1),H=I+&quot;L&quot;+H.substr(1)):(q+=&quot;Z&quot;+P,H=I+&quot;Z&quot;+H):(q=P,H=I),c.hasLines(_)&amp;&amp;e.length&gt;1){var r=n.select(this);if(r.datum(f),t)y(r.style(&quot;opacity&quot;,0).attr(&quot;d&quot;,P).call(l.lineGroupStyle)).style(&quot;opacity&quot;,1);else{var i=y(r);i.attr(&quot;d&quot;,P),l.singleLineStyle(f,i)}}}}}var W=A.selectAll(&quot;.js-line&quot;).data(G);y(W.exit()).style(&quot;opacity&quot;,0).remove(),W.each(Y(!1)),W.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(W,r.layerClipId,t),G.length?(E?(E.datum(f),N&amp;&amp;U&amp;&amp;(C?(&quot;y&quot;===C?N[1]=U[1]=b.c2p(0,!0):&quot;x&quot;===C&amp;&amp;(N[0]=U[0]=x.c2p(0,!0)),y(E).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;L&quot;+N+&quot;L&quot;+q.substr(1)).call(l.singleFillStyle)):y(E).attr(&quot;d&quot;,q+&quot;Z&quot;).call(l.singleFillStyle))):L&amp;&amp;(&quot;tonext&quot;===_.fill.substr(0,6)&amp;&amp;q&amp;&amp;O?(&quot;tonext&quot;===_.fill?y(L).attr(&quot;d&quot;,q+&quot;Z&quot;+O+&quot;Z&quot;).call(l.singleFillStyle):y(L).attr(&quot;d&quot;,q+&quot;L&quot;+O.substr(1)+&quot;Z&quot;).call(l.singleFillStyle),_._polygons=_._polygons.concat(z)):(Z(L),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=V):(E?Z(E):L&amp;&amp;Z(L),_._polygons=_._prevRevpath=_._prevPolygons=null),M.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,g=et;if(f||h){var m=s,_=u.stackgroup,w=_&amp;&amp;&quot;infer zero&quot;===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?K:J:_&amp;&amp;!w&amp;&amp;(m=Q),f&amp;&amp;(d=m),h&amp;&amp;(g=m)}var T,k=(o=e.selectAll(&quot;path.point&quot;).data(d,p)).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0);v&amp;&amp;k.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(&quot;opacity&quot;,0).transition().style(&quot;opacity&quot;,1),o.order(),f&amp;&amp;(T=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,T,t),r.layerClipId&amp;&amp;l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&amp;&amp;i.classed(&quot;plotly-customdata&quot;,null!==e.data&amp;&amp;void 0!==e.data)):a.remove()})),v?o.exit().transition().style(&quot;opacity&quot;,0).remove():o.exit().remove(),(o=i.selectAll(&quot;g&quot;).data(g,p)).enter().append(&quot;g&quot;).classed(&quot;textpoint&quot;,!0).append(&quot;text&quot;),o.order(),o.each((function(t){var e=n.select(this),i=y(e.select(&quot;text&quot;));l.translatePoint(t,i,x,b)?r.layerClipId&amp;&amp;l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll(&quot;text&quot;).call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(&quot;tspan.line&quot;).each((function(){y(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}(M,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(M,X,t),l.setClipUrl(S,X,t)}function Z(t){y(t).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function J(t){return t.filter((function(t){return!t.gap&amp;&amp;t.vis}))}function K(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function $(t){return t.id}function tt(t){if(t.ids)return $}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,g=!!a&amp;&amp;a.duration&gt;0,m=f(t,e,r);((u=i.selectAll(&quot;g.trace&quot;).data(m,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;trace scatter trace&quot;+t[0].trace.uid})).style(&quot;stroke-miterlimit&quot;,2),u.order(),function(t,e,r){e.each((function(e){var i=o(n.select(this),&quot;g&quot;,&quot;fills&quot;);l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&amp;&amp;c.push(&quot;_ownFill&quot;),a._nexttrace&amp;&amp;c.push(&quot;_nextFill&quot;);var u=i.selectAll(&quot;g&quot;).data(c,s);u.enter().append(&quot;g&quot;),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),&quot;path&quot;,&quot;js-fill&quot;)}))}))}(t,u,e),g)?(c&amp;&amp;(h=c()),n.transition().duration(a.duration).ease(a.easing).each(&quot;end&quot;,(function(){h&amp;&amp;h()})).each(&quot;interrupt&quot;,(function(){h&amp;&amp;h()})).each((function(){i.selectAll(&quot;g.trace&quot;).each((function(r,n){p(t,n,e,r,m,this,a)}))}))):u.each((function(r,n){p(t,n,e,r,m,this,a)}));d&amp;&amp;u.exit().remove(),i.selectAll(&quot;path:not([d])&quot;).remove()}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/polygon&quot;:815,&quot;../../registry&quot;:931,&quot;./line_points&quot;:1232,&quot;./link_traces&quot;:1234,&quot;./subtypes&quot;:1243,&quot;@plotly/d3&quot;:58}],1240:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&amp;&amp;!n.hasText(f))return[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&amp;&amp;e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{&quot;./subtypes&quot;:1243}],1241:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;orientation&quot;,&quot;groupnorm&quot;,&quot;stackgaps&quot;];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(&quot;stackgroup&quot;);if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;},h=0;h&lt;n.length;h++){var p=n[h],d=p+&quot;Found&quot;;if(!c[d]){var g=void 0!==t[p],m=&quot;orientation&quot;===p;if((g||u)&amp;&amp;(c[p]=i(p,f[p]),m&amp;&amp;(c.fillDflt=&quot;h&quot;===c[p]?&quot;tonextx&quot;:&quot;tonexty&quot;),g&amp;&amp;(c[d]=!0,!u&amp;&amp;(delete c.traces[0][p],m))))for(var v=0;v&lt;c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&amp;&amp;(y.fill=c.fillDflt)}}}return c}}},{}],1242:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../registry&quot;);function o(t,e,r){i.pointStyle(t.selectAll(&quot;path.point&quot;),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(&quot;text&quot;),e,r)}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.trace.scatter&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.selectAll(&quot;g.points&quot;).each((function(e){o(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.text&quot;).each((function(e){s(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.trace path.js-line&quot;).call(i.lineGroupStyle),e.selectAll(&quot;g.trace path.js-fill&quot;).call(i.fillGroupStyle),a.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},stylePoints:o,styleText:s,styleOnSelect:function(t,e,r){var n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(&quot;path.point&quot;),n),i.selectedTextStyle(r.selectAll(&quot;text&quot;),n)):(o(r,n,t),s(r,n,t))}}},{&quot;../../components/drawing&quot;:688,&quot;../../registry&quot;:931,&quot;@plotly/d3&quot;:58}],1243:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports={hasLines:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;lines&quot;)},hasMarkers:function(t){return t.visible&amp;&amp;(t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;markers&quot;)||&quot;splom&quot;===t.type)},hasText:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;text&quot;)},isBubble:function(t){return n.isPlainObject(t.marker)&amp;&amp;n.isArrayOrTypedArray(t.marker.size)}}},{&quot;../../lib&quot;:803}],1244:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i,a){a=a||{},i(&quot;textposition&quot;),n.coerceFont(i,&quot;textfont&quot;,r.font),a.noSelect||(i(&quot;selected.textfont.color&quot;),i(&quot;unselected.textfont.color&quot;))}},{&quot;../../lib&quot;:803}],1245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);e.exports=function(t,e,r,a){var o,s=a(&quot;x&quot;),l=a(&quot;y&quot;);if(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],r),s){var c=n.minRowLength(s);l?o=Math.min(c,n.minRowLength(l)):(o=c,a(&quot;y0&quot;),a(&quot;dy&quot;))}else{if(!l)return 0;o=n.minRowLength(l),a(&quot;x0&quot;),a(&quot;dx&quot;)}return e._length=o,o}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],1246:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../constants/gl3d_dashes&quot;),u=t(&quot;../../constants/gl3d_markers&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../plot_api/edit_types&quot;).overrideAll,p=t(&quot;../../lib/sort_object_keys&quot;),d=n.line,g=n.marker,m=g.line,v=f({width:d.width,dash:{valType:&quot;enumerated&quot;,values:p(c),dflt:&quot;solid&quot;}},i(&quot;line&quot;));var y=e.exports=h({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;},text:f({},n.text,{}),texttemplate:s({},{}),hovertext:f({},n.hovertext,{}),hovertemplate:o(),xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),zhoverformat:a(&quot;z&quot;),mode:f({},n.mode,{dflt:&quot;lines+markers&quot;}),surfaceaxis:{valType:&quot;enumerated&quot;,values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:&quot;color&quot;},projection:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:v,marker:f({symbol:{valType:&quot;enumerated&quot;,values:p(u),dflt:&quot;circle&quot;,arrayOk:!0},size:f({},g.size,{dflt:8}),sizeref:g.sizeref,sizemin:g.sizemin,sizemode:g.sizemode,opacity:f({},g.opacity,{arrayOk:!1}),colorbar:g.colorbar,line:f({width:f({},m.width,{arrayOk:!1})},i(&quot;marker.line&quot;))},i(&quot;marker&quot;)),textposition:f({},n.textposition,{dflt:&quot;top center&quot;}),textfont:{color:n.textfont.color,size:n.textfont.size,family:f({},n.textfont.family,{arrayOk:!1})},hoverinfo:f({},l.hoverinfo)},&quot;calc&quot;,&quot;nested&quot;);y.x.editType=y.y.editType=y.z.editType=&quot;calc+clearAxisTypes&quot;},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../constants/gl3d_dashes&quot;:776,&quot;../../constants/gl3d_markers&quot;:777,&quot;../../lib/extend&quot;:793,&quot;../../lib/sort_object_keys&quot;:826,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1247:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/arrays_to_calcdata&quot;),i=t(&quot;../scatter/colorscale_calc&quot;);e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(t,e),r}},{&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/colorscale_calc&quot;:1221}],1248:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;);function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;)(e),o=new Array(t.length),s=0;s&lt;t.length;s++){var l=a(+t[s],s);if(&quot;log&quot;===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u&gt;0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e&lt;t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s&lt;a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c&lt;3;c++)if(n[c])for(var u=0;u&lt;2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{&quot;../../registry&quot;:931}],1249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-line3d&quot;),i=t(&quot;gl-scatter3d&quot;),a=t(&quot;gl-error3d&quot;),o=t(&quot;gl-mesh3d&quot;),s=t(&quot;delaunay-triangulate&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../../lib/str2rgbarray&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/make_bubble_size_func&quot;),h=t(&quot;../../constants/gl3d_dashes&quot;),p=t(&quot;../../constants/gl3d_markers&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,m=t(&quot;./calc_errors&quot;);function v(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=&quot;&quot;,this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var y=v.prototype;function x(t){return null==t?0:t.indexOf(&quot;left&quot;)&gt;-1?-1:t.indexOf(&quot;right&quot;)&gt;-1?1:0}function b(t){return null==t?0:t.indexOf(&quot;top&quot;)&gt;-1?-1:t.indexOf(&quot;bottom&quot;)&gt;-1?1:0}function _(t,e){return e(4*t)}function w(t){return p[t]}function T(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o&lt;e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function k(t,e){var r,n,i,a,o,s,h=[],p=t.fullSceneLayout,v=t.dataScale,y=p.xaxis,k=p.yaxis,A=p.zaxis,M=e.marker,S=e.line,E=e.x||[],L=e.y||[],C=e.z||[],P=E.length,I=e.xcalendar,O=e.ycalendar,z=e.zcalendar;for(o=0;o&lt;P;o++)r=y.d2l(E[o],0,I)*v[0],n=k.d2l(L[o],0,O)*v[1],i=A.d2l(C[o],0,z)*v[2],h[o]=[r,n,i];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(P),o=0;o&lt;P;o++)s[o]=e.text;function D(t,e){var r=p[t];return d.tickText(r,r.d2l(e),!0).text}var R=e.texttemplate;if(R){var F=t.fullLayout._d3locale,B=Array.isArray(R),N=B?Math.min(R.length,P):P,j=B?function(t){return R[t]}:function(){return R};for(s=new Array(N),o=0;o&lt;N;o++){var U={x:E[o],y:L[o],z:C[o]},V={xLabel:D(&quot;xaxis&quot;,E[o]),yLabel:D(&quot;yaxis&quot;,L[o]),zLabel:D(&quot;zaxis&quot;,C[o])},q={};g(q,e,o);var H=e._meta||{};s[o]=l.texttemplateString(j(o),V,F,q,U,H)}}if(a={position:h,mode:e.mode,text:s},&quot;line&quot;in e&amp;&amp;(a.lineColor=u(S,1,P),a.lineWidth=S.width,a.lineDashes=S.dash),&quot;marker&quot;in e){var G=f(e);a.scatterColor=u(M,1,P),a.scatterSize=T(M.size,P,_,20,G),a.scatterMarker=T(M.symbol,P,w,&quot;\u25cf&quot;),a.scatterLineWidth=M.line.width,a.scatterLineColor=u(M.line,1,P),a.scatterAngle=0}&quot;textposition&quot;in e&amp;&amp;(a.textOffset=function(t){var e=[0,0];if(Array.isArray(t))for(var r=0;r&lt;t.length;r++)e[r]=[0,0],t[r]&amp;&amp;(e[r][0]=x(t[r]),e[r][1]=b(t[r]));else e[0]=x(t),e[1]=b(t);return e}(e.textposition),a.textColor=u(e.textfont,1,P),a.textSize=T(e.textfont.size,P,l.identity,12),a.textFont=e.textfont.family,a.textAngle=0);var Y=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(a.project=[!1,!1,!1],a.projectScale=[1,1,1],a.projectOpacity=[1,1,1],o=0;o&lt;3;++o){var W=e.projection[Y[o]];(a.project[o]=W.show)&amp;&amp;(a.projectOpacity[o]=W.opacity,a.projectScale[o]=W.scale)}a.errorBounds=m(e,v,p);var X=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i&lt;3;i++){var a=t[i];a&amp;&amp;!1!==a.copy_zstyle&amp;&amp;!1!==t[2].visible&amp;&amp;(a=t[2]),a&amp;&amp;a.visible&amp;&amp;(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return a.errorColor=X.color,a.errorLineWidth=X.lineWidth,a.errorCapSize=X.capSize,a.delaunayAxis=e.surfaceaxis,a.delaunayColor=c(e.surfacecolor),a}function A(t){if(l.isArrayOrTypedArray(t)){var e=t[0];return l.isArrayOrTypedArray(e)&amp;&amp;(t=e),&quot;rgb(&quot;+t.slice(0,3).map((function(t){return Math.round(255*t)}))+&quot;)&quot;}return null}function M(t){return l.isArrayOrTypedArray(t)?4===t.length&amp;&amp;&quot;number&quot;==typeof t[0]?A(t):t.map(A):null}y.handlePick=function(t){if(t.object&amp;&amp;(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&amp;&amp;t.object.highlight(null),this.scatterPlot&amp;&amp;(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=&quot;&quot;,this.textLabels&amp;&amp;(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&amp;&amp;(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},y.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=k(this.scene,t);&quot;mode&quot;in p&amp;&amp;(this.mode=p.mode),&quot;lineDashes&quot;in p&amp;&amp;p.lineDashes in h&amp;&amp;(f=h[p.lineDashes]),this.color=M(p.scatterColor)||M(p.lineColor),this.dataPoints=p.position,e={gl:this.scene.glplot.gl,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(&quot;lines&quot;)?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&amp;&amp;t.marker.opacity&amp;&amp;(d*=t.marker.opacity),r={gl:this.scene.glplot.gl,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(&quot;markers&quot;)?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:this.scene.glplot.gl,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(&quot;text&quot;)?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&amp;&amp;(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis&gt;=0){var g=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n&lt;t.length;++n){var c=t[n];!isNaN(c[i])&amp;&amp;isFinite(c[i])&amp;&amp;!isNaN(c[a])&amp;&amp;isFinite(c[a])&amp;&amp;(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n&lt;u.length;++n)for(var f=u[n],h=0;h&lt;f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);g.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(g):(g.gl=u,this.delaunayMesh=o(g),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&amp;&amp;(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new v(t,e.uid);return r.update(e),r}},{&quot;../../components/fx/helpers&quot;:702,&quot;../../constants/gl3d_dashes&quot;:776,&quot;../../constants/gl3d_markers&quot;:777,&quot;../../lib&quot;:803,&quot;../../lib/gl_format_color&quot;:799,&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/make_bubble_size_func&quot;:1235,&quot;./calc_errors&quot;:1248,&quot;delaunay-triangulate&quot;:180,&quot;gl-error3d&quot;:273,&quot;gl-line3d&quot;:281,&quot;gl-mesh3d&quot;:315,&quot;gl-scatter3d&quot;:334}],1250:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=r(&quot;z&quot;);n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],i),o&amp;&amp;s&amp;&amp;l&amp;&amp;(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;xhoverformat&quot;),f(&quot;yhoverformat&quot;),f(&quot;zhoverformat&quot;),f(&quot;mode&quot;),a.hasLines(e)&amp;&amp;(f(&quot;connectgaps&quot;),s(t,e,r,u,f)),a.hasMarkers(e)&amp;&amp;o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),l(t,e,u,f,{noSelect:!0}));var h=(e.line||{}).color,p=(e.marker||{}).color;f(&quot;surfaceaxis&quot;)&gt;=0&amp;&amp;f(&quot;surfacecolor&quot;,h||p);for(var d=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],g=0;g&lt;3;++g){var m=&quot;projection.&quot;+d[g];f(m+&quot;.show&quot;)&amp;&amp;(f(m+&quot;.opacity&quot;),f(m+&quot;.scale&quot;))}var v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,h||p||r,{axis:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;y&quot;,inherit:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;x&quot;,inherit:&quot;z&quot;})}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1246}],1251:[function(t,e,r){&quot;use strict&quot;;e.exports={plot:t(&quot;./convert&quot;),attributes:t(&quot;./attributes&quot;),markerSymbols:t(&quot;../../constants/gl3d_markers&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:[{container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}],calc:t(&quot;./calc&quot;),moduleType:&quot;trace&quot;,name:&quot;scatter3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../constants/gl3d_markers&quot;:777,&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1246,&quot;./calc&quot;:1247,&quot;./convert&quot;:1249,&quot;./defaults&quot;:1250}],1252:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},mode:l({},n.mode,{dflt:&quot;markers&quot;}),text:l({},n.text,{}),texttemplate:o({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:l({},u.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:u.smoothing,editType:&quot;calc&quot;},connectgaps:n.connectgaps,fill:l({},n.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:c.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:n.hoveron,hovertemplate:a()}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1253:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=t(&quot;../carpet/lookup_carpetid&quot;);e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c&lt;h;c++)if(u=e.a[c],f=e.b[c],n(u)&amp;&amp;n(f)){var g=r.ab2xy(+u,+f,!0),m=r.isVisible(+u,+f);m||(d=!0),p[c]={x:g[0],y:g[1],a:u,b:f,vis:m}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(t,e),a(p,e),o(p,e),p}}},{&quot;../carpet/lookup_carpetid&quot;:1001,&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/calc&quot;:1219,&quot;../scatter/calc_selection&quot;:1220,&quot;../scatter/colorscale_calc&quot;:1221,&quot;fast-isnumeric&quot;:249}],1254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(&quot;carpet&quot;),e.xaxis=&quot;x&quot;,e.yaxis=&quot;y&quot;;var d=p(&quot;a&quot;),g=p(&quot;b&quot;),m=Math.min(d.length,g.length);if(m){e._length=m,p(&quot;text&quot;),p(&quot;texttemplate&quot;),p(&quot;hovertext&quot;),p(&quot;mode&quot;,m&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;c(t,e,h,p);var v=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;marker.maxdisplayed&quot;),v.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||v.push(&quot;fills&quot;),&quot;fills&quot;!==p(&quot;hoveron&quot;,v.join(&quot;+&quot;)||&quot;points&quot;)&amp;&amp;p(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/constants&quot;:1222,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/line_shape_defaults&quot;:1233,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1252}],1255:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t.y=a.y,t}},{}],1256:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r={},n=e._carpet,i=n.ab2ij([t.a,t.b]),a=Math.floor(i[0]),o=i[0]-a,s=Math.floor(i[1]),l=i[1]-s,c=n.evalxy([],a,s,o,l);return r.yLabel=c[1].toFixed(3),r}},{}],1257:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;),i=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=p._carpet,g=p._module.formatLabels(h,p);s.yLabel=g.yLabel,delete s.text;var m=[];if(!p.hovertemplate){var v=(h.hi||p.hoverinfo).split(&quot;+&quot;);-1!==v.indexOf(&quot;all&quot;)&amp;&amp;(v=[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]),-1!==v.indexOf(&quot;a&quot;)&amp;&amp;y(d.aaxis,h.a),-1!==v.indexOf(&quot;b&quot;)&amp;&amp;y(d.baxis,h.b),m.push(&quot;y: &quot;+s.yLabel),-1!==v.indexOf(&quot;text&quot;)&amp;&amp;i(h,p,m),s.extraText=m.join(&quot;&lt;br&gt;&quot;)}return o}function y(t,e){var r;r=t.labelprefix&amp;&amp;t.labelprefix.length&gt;0?t.labelprefix.replace(/ = $/,&quot;&quot;):t._hovertitle,m.push(r+&quot;: &quot;+e.toFixed(3)+t.labelsuffix)}}},{&quot;../../lib&quot;:803,&quot;../scatter/hover&quot;:1229}],1258:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scattercarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;svg&quot;,&quot;carpet&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;carpetDependent&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scatter/select&quot;:1240,&quot;../scatter/style&quot;:1242,&quot;./attributes&quot;:1252,&quot;./calc&quot;:1253,&quot;./defaults&quot;:1254,&quot;./event_data&quot;:1255,&quot;./format_labels&quot;:1256,&quot;./hover&quot;:1257,&quot;./plot&quot;:1259}],1259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../components/drawing&quot;);e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||&quot;x&quot;),yaxis:i.getFromId(t,u.yaxis||&quot;y&quot;),plot:e.plot};for(n(t,f,r,o),s=0;s&lt;r.length;s++)l=r[s][0].trace,c=o.selectAll(&quot;g.trace&quot;+l.uid+&quot; .js-line&quot;),a.setClipUrl(c,r[s][0].carpet._clipPathId,t)}},{&quot;../../components/drawing&quot;:688,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/plot&quot;:1239}],1260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../plot_api/edit_types&quot;).overrideAll,f=a.marker,h=a.line,p=f.line;e.exports=u({lon:{valType:&quot;data_array&quot;},lat:{valType:&quot;data_array&quot;},locations:{valType:&quot;data_array&quot;},locationmode:{valType:&quot;enumerated&quot;,values:[&quot;ISO-3&quot;,&quot;USA-states&quot;,&quot;country names&quot;,&quot;geojson-id&quot;],dflt:&quot;ISO-3&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;id&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;location&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),textfont:a.textfont,textposition:a.textposition,line:{color:h.color,width:h.width,dash:l},connectgaps:a.connectgaps,marker:c({symbol:f.symbol,opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,colorbar:f.colorbar,line:c({width:p.width},s(&quot;marker.line&quot;)),gradient:f.gradient},s(&quot;marker&quot;)),fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;toself&quot;],dflt:&quot;none&quot;},fillcolor:a.fillcolor,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;location&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/drawing/attributes&quot;:687,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/colorscale_calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../lib&quot;)._;function c(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,u=Array.isArray(e.locations),f=u?e.locations.length:e._length,h=new Array(f);r=e.geojson?function(t){return c(t)||n(t)}:c;for(var p=0;p&lt;f;p++){var d=h[p]={};if(u){var g=e.locations[p];d.loc=r(g)?g:null}else{var m=e.lon[p],v=e.lat[p];n(m)&amp;&amp;n(v)?d.lonlat=[+m,+v]:d.lonlat=[i,i]}}return o(h,e),a(t,e),s(h,e),f&amp;&amp;(h[0].t={labels:{lat:l(t,&quot;lat:&quot;)+&quot; &quot;,lon:l(t,&quot;lon:&quot;)+&quot; &quot;}}),h}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/calc_selection&quot;:1220,&quot;../scatter/colorscale_calc&quot;:1221,&quot;fast-isnumeric&quot;:249}],1262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}var h,p=f(&quot;locations&quot;);if(p&amp;&amp;p.length){var d,g=f(&quot;geojson&quot;);(&quot;string&quot;==typeof g&amp;&amp;&quot;&quot;!==g||n.isPlainObject(g))&amp;&amp;(d=&quot;geojson-id&quot;),&quot;geojson-id&quot;===f(&quot;locationmode&quot;,d)&amp;&amp;f(&quot;featureidkey&quot;),h=p.length}else{var m=f(&quot;lon&quot;)||[],v=f(&quot;lat&quot;)||[];h=Math.min(m.length,v.length)}h?(e._length=h,f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f),f(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),s(t,e,u,f)),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1260}],1263:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t}},{}],1264:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.geo]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:854}],1265:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/get_trace_color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=h.projection.isLonLatOverEdges,d=h.project;if(n.getClosest(l,(function(t){var n=t.lonlat;if(n[0]===i)return 1/0;if(p(n))return 1/0;var a=d(n),o=d([e,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[u.c2p(m),f.c2p(m)],y=g.mrc||1;t.x0=v[0]-y,t.x1=v[0]+y,t.y0=v[1]-y,t.y1=v[1]+y,t.loc=g.loc,t.lon=m[0],t.lat=m[1];var x={};x[c.geo]={_subplot:h};var b=c._module.formatLabels(g,c,x);return t.lonLabel=b.lonLabel,t.latLabel=b.latLabel,t.color=a(c,g),t.extraText=function(t,e,r,n){if(t.hovertemplate)return;var i=e.hi||t.hoverinfo,a=&quot;all&quot;===i?s.hoverinfo.flags:i.split(&quot;+&quot;),l=-1!==a.indexOf(&quot;location&quot;)&amp;&amp;Array.isArray(t.locations),c=-1!==a.indexOf(&quot;lon&quot;),u=-1!==a.indexOf(&quot;lat&quot;),f=-1!==a.indexOf(&quot;text&quot;),h=[];function p(t){return t+&quot;\xb0&quot;}l?h.push(e.loc):c&amp;&amp;u?h.push(&quot;(&quot;+p(r.latLabel)+&quot;, &quot;+p(r.lonLabel)+&quot;)&quot;):c?h.push(n.lon+p(r.lonLabel)):u&amp;&amp;h.push(n.lat+p(r.latLabel));f&amp;&amp;o(e,t,h);return h.join(&quot;&lt;br&gt;&quot;)}(c,g,t,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:706,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../scatter/get_trace_color&quot;:1228,&quot;./attributes&quot;:1260}],1266:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;scattergeo&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/geo&quot;:887,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scatter/style&quot;:1242,&quot;./attributes&quot;:1260,&quot;./calc&quot;:1261,&quot;./defaults&quot;:1262,&quot;./event_data&quot;:1263,&quot;./format_labels&quot;:1264,&quot;./hover&quot;:1265,&quot;./plot&quot;:1267,&quot;./select&quot;:1268,&quot;./style&quot;:1269}],1267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../lib/geo_location_utils&quot;),l=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,c=t(&quot;../../constants/numerical&quot;).BADNUM,u=t(&quot;../scatter/calc&quot;).calcMarkerSize,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;./style&quot;);e.exports={calcGeoJSON:function(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,h=i._length;if(Array.isArray(i.locations)){var p=i.locationmode,d=&quot;geojson-id&quot;===p?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r&lt;h;r++){n=t[r];var g=&quot;geojson-id&quot;===p?n.fOut:s.locationToFeature(p,n.loc,d);n.lonlat=g?g.properties.ct:[c,c]}}var m,v,y={padded:!0};if(&quot;geojson&quot;===o.fitbounds&amp;&amp;&quot;geojson-id&quot;===i.locationmode){var x=s.computeBbox(s.getTraceGeojson(i));m=[x[0],x[2]],v=[x[1],x[3]]}else{for(m=new Array(h),v=new Array(h),r=0;r&lt;h;r++)n=t[r],m[r]=n.lonlat[0],v[r]=n.lonlat[1];y.ppad=u(i,h)}i._extremes.lon=l(o.lonaxis._ax,m,y),i._extremes.lat=l(o.lataxis._ax,v,y)},plot:function(t,e,r){var a=e.layers.frontplot.select(&quot;.scatterlayer&quot;),s=i.makeTraceGroups(a,r,&quot;trace scattergeo&quot;);function l(t,e){t.lonlat[0]===c&amp;&amp;n.select(e).remove()}s.selectAll(&quot;*&quot;).remove(),s.each((function(e){var r=n.select(this),a=e[0].trace;if(f.hasLines(a)||&quot;none&quot;!==a.fill){var s=o.calcTraceToLineCoords(e),c=&quot;none&quot;!==a.fill?o.makePolygon(s):o.makeLine(s);r.selectAll(&quot;path.js-line&quot;).data([{geojson:c,trace:a}]).enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;stroke-miterlimit&quot;,2)}f.hasMarkers(a)&amp;&amp;r.selectAll(&quot;path.point&quot;).data(i.identity).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0).each((function(t){l(t,this)})),f.hasText(a)&amp;&amp;r.selectAll(&quot;g&quot;).data(i.identity).enter().append(&quot;g&quot;).append(&quot;text&quot;).each((function(t){l(t,this)})),h(t,e)}))}}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../lib/geo_location_utils&quot;:796,&quot;../../lib/geojson_utils&quot;:797,&quot;../../lib/topojson_utils&quot;:832,&quot;../../plots/cartesian/autorange&quot;:853,&quot;../scatter/calc&quot;:1219,&quot;../scatter/subtypes&quot;:1243,&quot;./style&quot;:1269,&quot;@plotly/d3&quot;:58}],1268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&amp;&amp;!n.hasText(p))return[];if(!1===e)for(l=0;l&lt;c.length;l++)c[l].selected=0;else for(l=0;l&lt;c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&amp;&amp;(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{&quot;../../constants/numerical&quot;:779,&quot;../scatter/subtypes&quot;:1243}],1269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/style&quot;),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&amp;&amp;function(t,e){var r=e[0].trace,o=e[0].node3;o.style(&quot;opacity&quot;,e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(&quot;path.js-line&quot;).style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||&quot;&quot;,o.width||0),&quot;none&quot;!==r.fill&amp;&amp;e.call(a.fill,r.fillcolor)}))}(t,e)}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../scatter/style&quot;:1242,&quot;@plotly/d3&quot;:58}],1270:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../lib/sort_object_keys&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../plot_api/edit_types&quot;).overrideAll,u=t(&quot;./constants&quot;).DASHES,f=i.line,h=i.marker,p=h.line,d=e.exports=c({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;]},line:{color:f.color,width:f.width,shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},dash:{valType:&quot;enumerated&quot;,values:s(u),dflt:&quot;solid&quot;}},marker:l({},o(&quot;marker&quot;),{symbol:h.symbol,size:h.size,sizeref:h.sizeref,sizemin:h.sizemin,sizemode:h.sizemode,opacity:h.opacity,colorbar:h.colorbar,line:l({},o(&quot;marker.line&quot;),{width:p.width})}),connectgaps:i.connectgaps,fill:l({},i.fill,{dflt:&quot;none&quot;}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},&quot;calc&quot;,&quot;nested&quot;);d.x.editType=d.y.editType=d.x0.editType=d.y0.editType=&quot;calc+clearAxisTypes&quot;,d.hovertemplate=i.hovertemplate,d.texttemplate=i.texttemplate},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../lib/sort_object_keys&quot;:826,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../scatter/attributes&quot;:1218,&quot;./constants&quot;:1272}],1271:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,s=t(&quot;../../plots/cartesian/align_period&quot;),l=t(&quot;../scatter/calc&quot;),c=l.calcMarkerSize,u=l.calcAxisExpansion,f=l.setFirstScatter,h=t(&quot;../scatter/colorscale_calc&quot;),p=t(&quot;./convert&quot;),d=t(&quot;./scene_update&quot;),g=t(&quot;../../constants/numerical&quot;).BADNUM,m=t(&quot;./constants&quot;).TOO_MANY_POINTS;function v(t,e,r){var n=t._extremes[e._id],i=o(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(t,e){var r,o=t._fullLayout,l=a.getFromId(t,e.xaxis),y=a.getFromId(t,e.yaxis),x=o._plots[e.xaxis+e.yaxis],b=e._length,_=b&gt;=m,w=2*b,T={},k=l.makeCalcdata(e,&quot;x&quot;),A=y.makeCalcdata(e,&quot;y&quot;),M=s(e,l,&quot;x&quot;,k),S=s(e,y,&quot;y&quot;,A),E=M.vals,L=S.vals;e._x=E,e._y=L,e.xperiodalignment&amp;&amp;(e._origX=k,e._xStarts=M.starts,e._xEnds=M.ends),e.yperiodalignment&amp;&amp;(e._origY=A,e._yStarts=S.starts,e._yEnds=S.ends);var C=new Array(w),P=new Array(b);for(r=0;r&lt;b;r++)C[2*r]=E[r]===g?NaN:E[r],C[2*r+1]=L[r]===g?NaN:L[r],P[r]=r;if(&quot;log&quot;===l.type)for(r=0;r&lt;w;r+=2)C[r]=l.c2l(C[r]);if(&quot;log&quot;===y.type)for(r=1;r&lt;w;r+=2)C[r]=y.c2l(C[r]);_&amp;&amp;&quot;log&quot;!==l.type&amp;&amp;&quot;log&quot;!==y.type?T.tree=n(C):T.ids=P,h(t,e);var I,O=function(t,e,r,n,a,o){var s=p.style(t,r);s.marker&amp;&amp;(s.marker.positions=n);s.line&amp;&amp;n.length&gt;1&amp;&amp;i.extendFlat(s.line,p.linePositions(t,r,n));if(s.errorX||s.errorY){var l=p.errorBarPositions(t,r,n,a,o);s.errorX&amp;&amp;i.extendFlat(s.errorX,l.x),s.errorY&amp;&amp;i.extendFlat(s.errorY,l.y)}s.text&amp;&amp;(i.extendFlat(s.text,{positions:n},p.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},p.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},p.textPosition(t,r,s.text,s.markerUnsel)));return s}(t,0,e,C,E,L),z=d(t,x);return f(o,e),_?O.marker&amp;&amp;(I=O.marker.sizeAvg||Math.max(O.marker.size,3)):I=c(e,b),u(t,e,l,y,E,L,I),O.errorX&amp;&amp;v(e,l,O.errorX),O.errorY&amp;&amp;v(e,y,O.errorY),O.fill&amp;&amp;!z.fill2d&amp;&amp;(z.fill2d=!0),O.marker&amp;&amp;!z.scatter2d&amp;&amp;(z.scatter2d=!0),O.line&amp;&amp;!z.line2d&amp;&amp;(z.line2d=!0),!O.errorX&amp;&amp;!O.errorY||z.error2d||(z.error2d=!0),O.text&amp;&amp;!z.glText&amp;&amp;(z.glText=!0),O.marker&amp;&amp;(O.marker.snap=b),z.lineOptions.push(O.line),z.errorXOptions.push(O.errorX),z.errorYOptions.push(O.errorY),z.fillOptions.push(O.fill),z.markerOptions.push(O.marker),z.markerSelectedOptions.push(O.markerSel),z.markerUnselectedOptions.push(O.markerUnsel),z.textOptions.push(O.text),z.textSelectedOptions.push(O.textSel),z.textUnselectedOptions.push(O.textUnsel),z.selectBatch.push([]),z.unselectBatch.push([]),T._scene=z,T.index=z.count,T.x=E,T.y=L,T.positions=C,z.count++,[{x:!1,y:!1,t:T,trace:e}]}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/autorange&quot;:853,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../scatter/calc&quot;:1219,&quot;../scatter/colorscale_calc&quot;:1221,&quot;./constants&quot;:1272,&quot;./convert&quot;:1273,&quot;./scene_update&quot;:1281,&quot;@plotly/point-cluster&quot;:59}],1272:[function(t,e,r){&quot;use strict&quot;;e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1273:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;svg-path-sdf&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../plots/cartesian/axis_ids&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;../scatter/make_bubble_size_func&quot;),p=t(&quot;./helpers&quot;),d=t(&quot;./constants&quot;),g=t(&quot;../../constants/interactions&quot;).DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue;function y(t,e){var r,i=t._fullLayout,a=e._length,o=e.textfont,l=e.textposition,c=Array.isArray(l)?l:[l],u=o.color,f=o.size,h=o.family,p={},d=t._context.plotGlPixelRatio,g=e.texttemplate;if(g){p.text=[];var m=i._d3locale,y=Array.isArray(g),x=y?Math.min(g.length,a):a,b=y?function(t){return g[t]}:function(){return g};for(r=0;r&lt;x;r++){var _={i:r},w=e._module.formatLabels(_,e,i),T={};v(T,e,r);var k=e._meta||{};p.text.push(s.texttemplateString(b(r),w,m,T,_,k))}}else Array.isArray(e.text)&amp;&amp;e.text.length&lt;a?p.text=e.text.slice():p.text=e.text;if(Array.isArray(p.text))for(r=p.text.length;r&lt;a;r++)p.text[r]=&quot;&quot;;for(p.opacity=e.opacity,p.font={},p.align=[],p.baseline=[],r=0;r&lt;c.length;r++){var A=c[r].split(/\s+/);switch(A[1]){case&quot;left&quot;:p.align.push(&quot;right&quot;);break;case&quot;right&quot;:p.align.push(&quot;left&quot;);break;default:p.align.push(A[1])}switch(A[0]){case&quot;top&quot;:p.baseline.push(&quot;bottom&quot;);break;case&quot;bottom&quot;:p.baseline.push(&quot;top&quot;);break;default:p.baseline.push(A[0])}}if(Array.isArray(u))for(p.color=new Array(a),r=0;r&lt;a;r++)p.color[r]=u[r];else p.color=u;if(s.isArrayOrTypedArray(f)||Array.isArray(h))for(p.font=new Array(a),r=0;r&lt;a;r++){var M=p.font[r]={};M.size=(s.isTypedArray(f)?f[r]:Array.isArray(f)?n(f[r])?f[r]:0:f)*d,M.family=Array.isArray(h)?h[r]:h}else p.font={size:f*d,family:h};return p}function x(t){var e,r,n=t._length,i=t.marker,o={},l=s.isArrayOrTypedArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),g=s.isArrayOrTypedArray(i.size),m=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.isOpenSymbol(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var v=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e&lt;n;e++)y[e]=x}if(!Array.isArray(v[0])){var b=v;for(v=Array(n),e=0;e&lt;n;e++)v[e]=b}for(o.colors=v,o.borderColors=y,e=0;e&lt;n;e++){if(l){var _=i.symbol[e];r=p.isOpenSymbol(_)}r&amp;&amp;(y[e]=v[e].slice(),v[e]=v[e].slice(),v[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,&quot;uint8&quot;),o.color[3]=0,o.borderColor=a(i.color,&quot;uint8&quot;)):(o.color=a(i.color,&quot;uint8&quot;),o.borderColor=a(i.line.color,&quot;uint8&quot;)),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e&lt;n;e++)o.markers[e]=E(i.symbol[e]);else o.marker=E(i.symbol);var w,T=h(t,1);if(g||m){var k,A=o.sizes=new Array(n),M=o.borderSizes=new Array(n),S=0;if(g){for(e=0;e&lt;n;e++)A[e]=T(i.size[e]),S+=A[e];k=S/n}else for(w=T(i.size),e=0;e&lt;n;e++)A[e]=w;if(m)for(e=0;e&lt;n;e++)M[e]=i.line.width[e];else for(w=i.line.width,e=0;e&lt;n;e++)M[e]=w;o.sizeAvg=k}else o.size=T(i&amp;&amp;i.size||10),o.borderSizes=T(i.line.width);return o}function b(t,e){var r=t.marker,n={};return e?(e.marker&amp;&amp;e.marker.symbol?n=x(s.extendFlat({},r,e.marker)):e.marker&amp;&amp;(e.marker.size&amp;&amp;(n.size=e.marker.size),e.marker.color&amp;&amp;(n.colors=e.marker.color),void 0!==e.marker.opacity&amp;&amp;(n.opacity=e.marker.opacity)),n):n}function _(t,e,r){var n={};if(!r)return n;if(r.textfont){var i={opacity:1,text:e.text,texttemplate:e.texttemplate,textposition:e.textposition,textfont:s.extendFlat({},e.textfont)};r.textfont&amp;&amp;s.extendFlat(i.textfont,r.textfont),n=y(t,i)}return n}function w(t,e,r){var n={capSize:2*e.width*r,lineWidth:e.thickness*r,color:e.color};return e.copy_ystyle&amp;&amp;(n=t.error_y),n}var T=d.SYMBOL_SDF_SIZE,k=d.SYMBOL_SIZE,A=d.SYMBOL_STROKE,M={},S=l.symbolFuncs[0](.05*k);function E(t){if(&quot;circle&quot;===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.isDotSymbol(t);return M[t]?M[t]:(e=c&amp;&amp;!o?a(1.1*k)+S:a(k),r=i(e,{w:T,h:T,viewBox:[-k,-k,k,k],stroke:s?A:-A}),M[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=t._context.plotGlPixelRatio;if(!0!==e.visible)return n;if(f.hasText(e)&amp;&amp;(n.text=y(t,e),n.textSel=_(t,e,e.selected),n.textUnsel=_(t,e,e.unselected)),f.hasMarkers(e)&amp;&amp;(n.marker=x(e),n.markerSel=b(e,e.selected),n.markerUnsel=b(e,e.unselected),!e.unselected&amp;&amp;s.isArrayOrTypedArray(e.marker.opacity))){var a=e.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r&lt;a.length;r++)n.markerUnsel.opacity[r]=g*a[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width*i,color:e.line.color,opacity:e.opacity};var o=(d.DASHES[e.line.dash]||[1]).slice();for(r=0;r&lt;o.length;++r)o[r]*=e.line.width*i;n.line.dashes=o}return e.error_x&amp;&amp;e.error_x.visible&amp;&amp;(n.errorX=w(e,e.error_x,i)),e.error_y&amp;&amp;e.error_y.visible&amp;&amp;(n.errorY=w(e,e.error_y,i)),e.fill&amp;&amp;&quot;none&quot;!==e.fill&amp;&amp;(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:x,markerSelection:b,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&amp;&amp;o)if(&quot;hv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(&quot;hvh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(&quot;vhv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(&quot;vh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i&lt;n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length&gt;d.TOO_MANY_POINTS||f.hasMarkers(e)?&quot;rect&quot;:&quot;round&quot;;if(c&amp;&amp;e.connectgaps){var h=n[0],p=n[1];for(i=0;i&lt;n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=p):(h=n[i],p=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[&quot;error_&quot;+a];if(o&amp;&amp;o.visible&amp;&amp;(&quot;linear&quot;===i.type||&quot;log&quot;===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,g=-1/0,m=0,v=0;m&lt;f;m++,v+=4){var y=t[m];if(n(y)){var x=r[2*m+c],b=l(y,m),_=b[0],w=b[1];if(n(_)&amp;&amp;n(w)){var T=y-_,k=y+w;p[v+u[0]]=x-i.c2l(T),p[v+u[1]]=i.c2l(k)-x,p[v+u[2]]=0,p[v+u[3]]=0,d=Math.min(d,y-_),g=Math.max(g,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,g]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i&lt;a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length&gt;1?l[i]:l[0]:l,d=Array.isArray(c)?c.length&gt;1?c[i]:c[0]:c,g=m[p],v=m[d],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[g*y/h,x/h]}}return o}}},{&quot;../../components/drawing&quot;:688,&quot;../../components/fx/helpers&quot;:702,&quot;../../constants/interactions&quot;:778,&quot;../../lib&quot;:803,&quot;../../lib/gl_format_color&quot;:799,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../registry&quot;:931,&quot;../scatter/make_bubble_size_func&quot;:1235,&quot;../scatter/subtypes&quot;:1243,&quot;./constants&quot;:1272,&quot;./helpers&quot;:1277,&quot;color-normalize&quot;:131,&quot;fast-isnumeric&quot;:249,&quot;svg-path-sdf&quot;:595}],1274:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./helpers&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../scatter/constants&quot;),l=t(&quot;../scatter/subtypes&quot;),c=t(&quot;../scatter/xy_defaults&quot;),u=t(&quot;../scatter/period_defaults&quot;),f=t(&quot;../scatter/marker_defaults&quot;),h=t(&quot;../scatter/line_defaults&quot;),p=t(&quot;../scatter/fillcolor_defaults&quot;),d=t(&quot;../scatter/text_defaults&quot;);e.exports=function(t,e,r,g){function m(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&amp;&amp;a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),x=c(t,e,g,m);if(x){u(t,e,g,m),m(&quot;xhoverformat&quot;),m(&quot;yhoverformat&quot;);var b=x&lt;s.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;m(&quot;text&quot;),m(&quot;hovertext&quot;),m(&quot;hovertemplate&quot;),m(&quot;mode&quot;,b),l.hasLines(e)&amp;&amp;(m(&quot;connectgaps&quot;),h(t,e,r,g,m),m(&quot;line.shape&quot;)),l.hasMarkers(e)&amp;&amp;(f(t,e,r,g,m),m(&quot;marker.line.width&quot;,v||y?1:0)),l.hasText(e)&amp;&amp;(m(&quot;texttemplate&quot;),d(t,e,g,m));var _=(e.line||{}).color,w=(e.marker||{}).color;m(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;p(t,e,r,m);var T=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);T(t,e,_||w||r,{axis:&quot;y&quot;}),T(t,e,_||w||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,m)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../scatter/constants&quot;:1222,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/period_defaults&quot;:1238,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;../scatter/xy_defaults&quot;:1245,&quot;./attributes&quot;:1270,&quot;./helpers&quot;:1277}],1275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../constants/interactions&quot;).DESELECTDIM;e.exports={styleTextSelection:function(t){var e,r,o=t[0],s=o.trace,l=o.t,c=l._scene,u=l.index,f=c.selectBatch[u],h=c.unselectBatch[u],p=c.textOptions[u],d=c.textSelectedOptions[u]||{},g=c.textUnselectedOptions[u]||{},m=n.extendFlat({},p);if(f.length||h.length){var v=d.color,y=g.color,x=p.color,b=Array.isArray(x);for(m.color=new Array(s._length),e=0;e&lt;f.length;e++)r=f[e],m.color[r]=v||(b?x[r]:x);for(e=0;e&lt;h.length;e++){r=h[e];var _=b?x[r]:x;m.color[r]=y||(v?_:i.addOpacity(_,a))}}c.glText[u].update(m)}}},{&quot;../../components/color&quot;:666,&quot;../../constants/interactions&quot;:778,&quot;../../lib&quot;:803}],1276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;x&quot;in t||(t.x=e._x[i]),&quot;y&quot;in t||(t.y=e._y[i]),n(t,e,r)}},{&quot;../scatter/format_labels&quot;:1227}],1277:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);r.isOpenSymbol=function(t){return&quot;string&quot;==typeof t?n.OPEN_RE.test(t):t%200&gt;100},r.isDotSymbol=function(t){return&quot;string&quot;==typeof t?n.DOT_RE.test(t):t&gt;200}},{&quot;./constants&quot;:1272}],1278:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;);function o(t,e,r,o){var s=t.xa,l=t.ya,c=t.distance,u=t.dxy,f=t.index,h={pointNumber:f,x:e[f],y:r[f]};h.tx=Array.isArray(o.text)?o.text[f]:o.text,h.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,h.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,h.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&amp;&amp;(h.ts=i.isArrayOrTypedArray(p.size)?p.size[f]:p.size,h.tc=Array.isArray(p.color)?p.color[f]:p.color,h.tf=Array.isArray(p.family)?p.family[f]:p.family);var d=o.marker;d&amp;&amp;(h.ms=i.isArrayOrTypedArray(d.size)?d.size[f]:d.size,h.mo=i.isArrayOrTypedArray(d.opacity)?d.opacity[f]:d.opacity,h.mx=i.isArrayOrTypedArray(d.symbol)?d.symbol[f]:d.symbol,h.mc=i.isArrayOrTypedArray(d.color)?d.color[f]:d.color);var g=d&amp;&amp;d.line;g&amp;&amp;(h.mlc=Array.isArray(g.color)?g.color[f]:g.color,h.mlw=i.isArrayOrTypedArray(g.width)?g.width[f]:g.width);var m=d&amp;&amp;d.gradient;m&amp;&amp;&quot;none&quot;!==m.type&amp;&amp;(h.mgt=Array.isArray(m.type)?m.type[f]:m.type,h.mgc=Array.isArray(m.color)?m.color[f]:m.color);var v=s.c2p(h.x,!0),y=l.c2p(h.y,!0),x=h.mrc||1,b=o.hoverlabel;b&amp;&amp;(h.hbg=Array.isArray(b.bgcolor)?b.bgcolor[f]:b.bgcolor,h.hbc=Array.isArray(b.bordercolor)?b.bordercolor[f]:b.bordercolor,h.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[f]:b.font.size,h.htc=Array.isArray(b.font.color)?b.font.color[f]:b.font.color,h.htf=Array.isArray(b.font.family)?b.font.family[f]:b.font.family,h.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[f]:b.namelength);var _=o.hoverinfo;_&amp;&amp;(h.hi=Array.isArray(_)?_[f]:_);var w=o.hovertemplate;w&amp;&amp;(h.ht=Array.isArray(w)?w[f]:w);var T={};T[t.index]=h;var k=o._origX,A=o._origY,M=i.extendFlat({},t,{color:a(o,h),x0:v-x,x1:v+x,xLabelVal:k?k[f]:h.x,y0:y-x,y1:y+x,yLabelVal:A?A[f]:h.y,cd:T,distance:c,spikeDistance:u,hovertemplate:h.ht});return h.htx?M.text=h.htx:h.tx?M.text=h.tx:o.text&amp;&amp;(M.text=o.text),i.fillText(h,o,M),n.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(h,o,M),M}e.exports={hoverPoints:function(t,e,r,n){var i,a,s,l,c,u,f,h,p,d,g=t.cd,m=g[0].t,v=g[0].trace,y=t.xa,x=t.ya,b=m.x,_=m.y,w=y.c2p(e),T=x.c2p(r),k=t.distance;if(m.tree){var A=y.p2c(w-k),M=y.p2c(w+k),S=x.p2c(T-k),E=x.p2c(T+k);i=&quot;x&quot;===n?m.tree.range(Math.min(A,M),Math.min(x._rl[0],x._rl[1]),Math.max(A,M),Math.max(x._rl[0],x._rl[1])):m.tree.range(Math.min(A,M),Math.min(S,E),Math.max(A,M),Math.max(S,E))}else i=m.ids;var L=k;if(&quot;x&quot;===n){var C=!!v.xperiodalignment,P=!!v.yperiodalignment;for(u=0;u&lt;i.length;u++){if(l=b[a=i[u]],f=Math.abs(y.c2p(l)-w),C){var I=y.c2p(v._xStarts[a]),O=y.c2p(v._xEnds[a]);f=w&gt;=Math.min(I,O)&amp;&amp;w&lt;=Math.max(I,O)?0:1/0}if(f&lt;L){if(L=f,c=_[a],h=x.c2p(c)-T,P){var z=x.c2p(v._yStarts[a]),D=x.c2p(v._yEnds[a]);h=T&gt;=Math.min(z,D)&amp;&amp;T&lt;=Math.max(z,D)?0:1/0}d=Math.sqrt(f*f+h*h),s=i[u]}}}else for(u=i.length-1;u&gt;-1;u--)l=b[a=i[u]],c=_[a],f=y.c2p(l)-w,h=x.c2p(c)-T,(p=Math.sqrt(f*f+h*h))&lt;L&amp;&amp;(L=d=p,s=a);return t.index=s,t.distance=L,t.dxy=d,void 0===s?[t]:[o(t,b,_,v)]},calcHover:o}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../scatter/get_trace_color&quot;:1228}],1279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./hover&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;scattergl&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../scatter/cross_trace_defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:n.hoverPoints,selectPoints:t(&quot;./select&quot;),meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../scatter/cross_trace_defaults&quot;:1224,&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1270,&quot;./calc&quot;:1271,&quot;./defaults&quot;:1274,&quot;./format_labels&quot;:1276,&quot;./hover&quot;:1278,&quot;./plot&quot;:1280,&quot;./select&quot;:1282}],1280:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;regl-line2d&quot;),a=t(&quot;regl-error2d&quot;),o=t(&quot;gl-text&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/dragelement/helpers&quot;).selectMode,c=t(&quot;../../lib/prepare_regl&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../scatter/link_traces&quot;),h=t(&quot;./edit_style&quot;).styleTextSelection;function p(t,e,r,n){var i=t._size,a=t.width*n,o=t.height*n,s=i.l*n,l=i.b*n,c=i.r*n,u=i.t*n,f=i.w*n,h=i.h*n;return[s+e.domain[0]*f,l+r.domain[0]*h,a-c-(1-e.domain[1])*f,o-u-(1-r.domain[1])*h]}e.exports=function(t,e,r){if(r.length){var d,g,m=t._fullLayout,v=e._scene,y=e.xaxis,x=e.yaxis;if(v)if(c(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])){var b=v.count,_=m._glcanvas.data()[0].regl;if(f(t,e,r),v.dirty){if(!0===v.error2d&amp;&amp;(v.error2d=a(_)),!0===v.line2d&amp;&amp;(v.line2d=i(_)),!0===v.scatter2d&amp;&amp;(v.scatter2d=n(_)),!0===v.fill2d&amp;&amp;(v.fill2d=i(_)),!0===v.glText)for(v.glText=new Array(b),d=0;d&lt;b;d++)v.glText[d]=new o(_);if(v.glText){if(b&gt;v.glText.length){var w=b-v.glText.length;for(d=0;d&lt;w;d++)v.glText.push(new o(_))}else if(b&lt;v.glText.length){var T=v.glText.length-b;v.glText.splice(b,T).forEach((function(t){t.destroy()}))}for(d=0;d&lt;b;d++)v.glText[d].update(v.textOptions[d])}if(v.line2d&amp;&amp;(v.line2d.update(v.lineOptions),v.lineOptions=v.lineOptions.map((function(t){if(t&amp;&amp;t.positions){for(var e=t.positions,r=0;r&lt;e.length&amp;&amp;(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n&gt;r&amp;&amp;(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),v.line2d.update(v.lineOptions)),v.error2d){var k=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(k)}v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions),v.fillOrder=s.repeat(null,b),v.fill2d&amp;&amp;(v.fillOptions=v.fillOptions.map((function(t,e){var n=r[e];if(t&amp;&amp;n&amp;&amp;n[0]&amp;&amp;n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=v.lineOptions[e],u=[];s._ownfill&amp;&amp;u.push(e),s._nexttrace&amp;&amp;u.push(e+1),u.length&amp;&amp;(v.fillOrder[e]=u);var f,h,p=[],d=c&amp;&amp;c.positions||l.positions;if(&quot;tozeroy&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f+1]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h+1]);)h-=2;0!==d[f+1]&amp;&amp;(p=[d[f],0]),p=p.concat(d.slice(f,h+2)),0!==d[h+1]&amp;&amp;(p=p.concat([d[h],0]))}else if(&quot;tozerox&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h]);)h-=2;0!==d[f]&amp;&amp;(p=[0,d[f+1]]),p=p.concat(d.slice(f,h+2)),0!==d[h]&amp;&amp;(p=p.concat([0,d[h+1]]))}else if(&quot;toself&quot;===s.fill||&quot;tonext&quot;===s.fill){for(p=[],i=0,t.splitNull=!0,a=0;a&lt;d.length;a+=2)(isNaN(d[a])||isNaN(d[a+1]))&amp;&amp;((p=p.concat(d.slice(i,a))).push(d[i],d[i+1]),p.push(null,null),i=a+2);p=p.concat(d.slice(i)),i&amp;&amp;p.push(d[i],d[i+1])}else{var g=s._nexttrace;if(g){var m=v.lineOptions[e+1];if(m){var y=m.positions;if(&quot;tonexty&quot;===s.fill){for(p=d.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||p.push(x,b)}t.fill=g.fillcolor}}}}if(s._prevtrace&amp;&amp;&quot;tonext&quot;===s._prevtrace.fill){var _=v.lineOptions[e-1].positions,w=p.length/2,T=[i=w];for(a=0;a&lt;_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&amp;&amp;(T.push(a/2+w+1),i=a+2);p=p.concat(_),t.hole=T}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=p,t}})),v.fill2d.update(v.fillOptions))}var A=m.dragmode,M=l(A),S=m.clickmode.indexOf(&quot;select&quot;)&gt;-1;for(d=0;d&lt;b;d++){var E=r[d][0],L=E.trace,C=E.t,P=C.index,I=L._length,O=C.x,z=C.y;if(L.selectedpoints||M||S){if(M||(M=!0),L.selectedpoints){var D=v.selectBatch[P]=s.selIndices2selPoints(L),R={};for(g=0;g&lt;D.length;g++)R[D[g]]=1;var F=[];for(g=0;g&lt;I;g++)R[g]||F.push(g);v.unselectBatch[P]=F}var B=C.xpx=new Array(I),N=C.ypx=new Array(I);for(g=0;g&lt;I;g++)B[g]=y.c2p(O[g]),N[g]=x.c2p(z[g])}else C.xpx=C.ypx=null}if(M){if(v.select2d||(v.select2d=n(m._glcanvas.data()[1].regl)),v.scatter2d){var j=new Array(b);for(d=0;d&lt;b;d++)j[d]=v.selectBatch[d].length||v.unselectBatch[d].length?v.markerUnselectedOptions[d]:{};v.scatter2d.update(j)}v.select2d&amp;&amp;(v.select2d.update(v.markerOptions),v.select2d.update(v.markerSelectedOptions)),v.glText&amp;&amp;r.forEach((function(t){var e=((t||[])[0]||{}).trace||{};u.hasText(e)&amp;&amp;h(t)}))}else v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions);var U={viewport:p(m,y,x,t._context.plotGlPixelRatio),range:[(y._rl||y.range)[0],(x._rl||x.range)[0],(y._rl||y.range)[1],(x._rl||x.range)[1]]},V=s.repeat(U,v.count);v.fill2d&amp;&amp;v.fill2d.update(V),v.line2d&amp;&amp;v.line2d.update(V),v.error2d&amp;&amp;v.error2d.update(V.concat(V)),v.scatter2d&amp;&amp;v.scatter2d.update(V),v.select2d&amp;&amp;v.select2d.update(V),v.glText&amp;&amp;v.glText.forEach((function(t){t.update(U)}))}else v.init()}}},{&quot;../../components/dragelement/helpers&quot;:684,&quot;../../lib&quot;:803,&quot;../../lib/prepare_regl&quot;:816,&quot;../scatter/link_traces&quot;:1234,&quot;../scatter/subtypes&quot;:1243,&quot;./edit_style&quot;:1275,&quot;gl-text&quot;:355,&quot;regl-error2d&quot;:536,&quot;regl-line2d&quot;:537,&quot;regl-scatter2d&quot;:538}],1281:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=e._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return e._scene||((r=e._scene={}).init=function(){n.extendFlat(r,a,i)},r.init(),r.update=function(t){var e=n.repeat(t,r.count);if(r.fill2d&amp;&amp;r.fill2d.update(e),r.scatter2d&amp;&amp;r.scatter2d.update(e),r.line2d&amp;&amp;r.line2d.update(e),r.error2d&amp;&amp;r.error2d.update(e.concat(e)),r.select2d&amp;&amp;r.select2d.update(e),r.glText)for(var i=0;i&lt;r.count;i++)r.glText[i].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,i=r.error2d,a=r.line2d,o=r.scatter2d,s=r.glText,l=r.select2d,c=r.selectBatch,u=r.unselectBatch,f=0;f&lt;t;f++){if(e&amp;&amp;r.fillOrder[f]&amp;&amp;e.draw(r.fillOrder[f]),a&amp;&amp;r.lineOptions[f]&amp;&amp;a.draw(f),i&amp;&amp;(r.errorXOptions[f]&amp;&amp;i.draw(f),r.errorYOptions[f]&amp;&amp;i.draw(f+t)),o&amp;&amp;r.markerOptions[f])if(u[f].length){var h=n.repeat([],r.count);h[f]=u[f],o.draw(h)}else c[f].length||o.draw(f);s[f]&amp;&amp;r.textOptions[f]&amp;&amp;s[f].render()}l&amp;&amp;l.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&amp;&amp;r.fill2d.destroy&amp;&amp;r.fill2d.destroy(),r.scatter2d&amp;&amp;r.scatter2d.destroy&amp;&amp;r.scatter2d.destroy(),r.error2d&amp;&amp;r.error2d.destroy&amp;&amp;r.error2d.destroy(),r.line2d&amp;&amp;r.line2d.destroy&amp;&amp;r.line2d.destroy(),r.select2d&amp;&amp;r.select2d.destroy&amp;&amp;r.select2d.destroy(),r.glText&amp;&amp;r.glText.forEach((function(t){t.destroy&amp;&amp;t.destroy()})),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||n.extendFlat(r,i),r}},{&quot;../../lib&quot;:803}],1282:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;./edit_style&quot;).styleTextSelection;e.exports=function(t,e){var r=t.cd,a=t.xaxis,o=t.yaxis,s=[],l=r[0].trace,c=r[0].t,u=l._length,f=c.x,h=c.y,p=c._scene,d=c.index;if(!p)return s;var g=n.hasText(l),m=n.hasMarkers(l),v=!m&amp;&amp;!g;if(!0!==l.visible||v)return s;var y=[],x=[];if(!1!==e&amp;&amp;!e.degenerate)for(var b=0;b&lt;u;b++)e.contains([c.xpx[b],c.ypx[b]],!1,b,t)?(y.push(b),s.push({pointNumber:b,x:a.c2d(f[b]),y:o.c2d(h[b])})):x.push(b);if(m){var _=p.scatter2d;if(y.length||x.length){if(!p.selectBatch[d].length&amp;&amp;!p.unselectBatch[d].length){var w=new Array(p.count);w[d]=p.markerUnselectedOptions[d],_.update.apply(_,w)}}else{var T=new Array(p.count);T[d]=p.markerOptions[d],_.update.apply(_,T)}}return p.selectBatch[d]=y,p.unselectBatch[d]=x,g&amp;&amp;i(r),s}},{&quot;../scatter/subtypes&quot;:1243,&quot;./edit_style&quot;:1275}],1283:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scattergeo/attributes&quot;),o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/mapbox/layout_attributes&quot;),l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=a.line,p=a.marker;e.exports=f({lon:a.lon,lat:a.lat,mode:u({},o.mode,{dflt:&quot;markers&quot;}),text:u({},o.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;text&quot;]}),hovertext:u({},o.hovertext,{}),line:{color:h.color,width:h.width},connectgaps:o.connectgaps,marker:u({symbol:{valType:&quot;string&quot;,dflt:&quot;circle&quot;,arrayOk:!0},angle:{valType:&quot;number&quot;,dflt:&quot;auto&quot;,arrayOk:!0},allowoverlap:{valType:&quot;boolean&quot;,dflt:!1},opacity:p.opacity,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode},c(&quot;marker&quot;)),fill:a.fill,fillcolor:o.fillcolor,textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:&quot;string&quot;},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:u({},l.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/mapbox/layout_attributes&quot;:913,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218,&quot;../scattergeo/attributes&quot;:1260}],1284:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../components/colorscale&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../scatter/make_bubble_size_func&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../../plots/mapbox/convert_text_opts&quot;),h=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,p=t(&quot;../../lib/svg_text_utils&quot;).NEWLINES,d=t(&quot;../../lib/svg_text_utils&quot;).BR_TAG_ALL;function g(){return{geojson:o.makeBlank(),layout:{visibility:&quot;none&quot;},paint:{}}}function m(t,e){return i.isArrayOrTypedArray(t)?e?function(e){return n(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:v}function v(){return&quot;&quot;}function y(t){return t[0]===a}e.exports=function(t,e){var r,a=e[0].trace,x=!0===a.visible&amp;&amp;0!==a._length,b=&quot;none&quot;!==a.fill,_=u.hasLines(a),w=u.hasMarkers(a),T=u.hasText(a),k=w&amp;&amp;&quot;circle&quot;===a.marker.symbol,A=w&amp;&amp;&quot;circle&quot;!==a.marker.symbol,M=g(),S=g(),E=g(),L=g(),C={fill:M,line:S,circle:E,symbol:L};if(!x)return C;if((b||_)&amp;&amp;(r=o.calcTraceToLineCoords(e)),b&amp;&amp;(M.geojson=o.makePolygon(r),M.layout.visibility=&quot;visible&quot;,i.extendFlat(M.paint,{&quot;fill-color&quot;:a.fillcolor})),_&amp;&amp;(S.geojson=o.makeLine(r),S.layout.visibility=&quot;visible&quot;,i.extendFlat(S.paint,{&quot;line-width&quot;:a.line.width,&quot;line-color&quot;:a.line.color,&quot;line-opacity&quot;:a.opacity})),k){var P=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),g=i.isArrayOrTypedArray(f.opacity);function m(t){return u.opacity*t}p&amp;&amp;(r=s.hasColorscale(u,&quot;marker&quot;)?s.makeColorScaleFuncFromTrace(f):i.identity);d&amp;&amp;(a=c(u));g&amp;&amp;(o=function(t){return m(n(t)?+i.constrain(t,0,1):0)});var v,x=[];for(e=0;e&lt;t.length;e++){var b=t[e],_=b.lonlat;if(!y(_)){var w={};r&amp;&amp;(w.mcc=b.mcc=r(b.mc)),a&amp;&amp;(w.mrc=b.mrc=a(b.ms)),o&amp;&amp;(w.mo=o(b.mo)),h&amp;&amp;(w.selected=b.selected||0),x.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:_},properties:w})}}if(h)for(v=l.makeSelectedPointStyleFns(u),e=0;e&lt;x.length;e++){var T=x[e].properties;v.selectedOpacityFn&amp;&amp;(T.mo=m(v.selectedOpacityFn(T))),v.selectedColorFn&amp;&amp;(T.mcc=v.selectedColorFn(T)),v.selectedSizeFn&amp;&amp;(T.mrc=v.selectedSizeFn(T))}return{geojson:{type:&quot;FeatureCollection&quot;,features:x},mcc:p||v&amp;&amp;v.selectedColorFn?{type:&quot;identity&quot;,property:&quot;mcc&quot;}:f.color,mrc:d||v&amp;&amp;v.selectedSizeFn?{type:&quot;identity&quot;,property:&quot;mrc&quot;}:(k=f.size,k/2),mo:g||v&amp;&amp;v.selectedOpacityFn?{type:&quot;identity&quot;,property:&quot;mo&quot;}:m(f.opacity)};var k}(e);E.geojson=P.geojson,E.layout.visibility=&quot;visible&quot;,i.extendFlat(E.paint,{&quot;circle-color&quot;:P.mcc,&quot;circle-radius&quot;:P.mrc,&quot;circle-opacity&quot;:P.mo})}if((A||T)&amp;&amp;(L.geojson=function(t,e){for(var r=e._fullLayout,n=t[0].trace,a=n.marker||{},o=a.symbol,s=a.angle,l=&quot;circle&quot;!==o?m(o):v,c=&quot;auto&quot;!==s?m(s,!0):v,f=u.hasText(n)?m(n.text):v,g=[],x=0;x&lt;t.length;x++){var b=t[x];if(!y(b.lonlat)){var _,w=n.texttemplate;if(w){var T=Array.isArray(w)?w[x]||&quot;&quot;:w,k=n._module.formatLabels(b,n,r),A={};h(A,n,b.i);var M=n._meta||{};_=i.texttemplateString(T,k,r._d3locale,A,b,M)}else _=f(x);_&amp;&amp;(_=_.replace(p,&quot;&quot;).replace(d,&quot;\n&quot;)),g.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:b.lonlat},properties:{symbol:l(x),angle:c(x),text:_}})}}return{type:&quot;FeatureCollection&quot;,features:g}}(e,t),i.extendFlat(L.layout,{visibility:&quot;visible&quot;,&quot;icon-image&quot;:&quot;{symbol}-15&quot;,&quot;text-field&quot;:&quot;{text}&quot;}),A&amp;&amp;(i.extendFlat(L.layout,{&quot;icon-size&quot;:a.marker.size/10}),&quot;angle&quot;in a.marker&amp;&amp;&quot;auto&quot;!==a.marker.angle&amp;&amp;i.extendFlat(L.layout,{&quot;icon-rotate&quot;:{type:&quot;identity&quot;,property:&quot;angle&quot;},&quot;icon-rotation-alignment&quot;:&quot;map&quot;}),L.layout[&quot;icon-allow-overlap&quot;]=a.marker.allowoverlap,i.extendFlat(L.paint,{&quot;icon-opacity&quot;:a.opacity*a.marker.opacity,&quot;icon-color&quot;:a.marker.color})),T)){var I=(a.marker||{}).size,O=f(a.textposition,I);i.extendFlat(L.layout,{&quot;text-size&quot;:a.textfont.size,&quot;text-anchor&quot;:O.anchor,&quot;text-offset&quot;:O.offset}),i.extendFlat(L.paint,{&quot;text-color&quot;:a.textfont.color,&quot;text-opacity&quot;:a.opacity})}return C}},{&quot;../../components/colorscale&quot;:678,&quot;../../components/drawing&quot;:688,&quot;../../components/fx/helpers&quot;:702,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../lib/geojson_utils&quot;:797,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/mapbox/convert_text_opts&quot;:910,&quot;../scatter/make_bubble_size_func&quot;:1235,&quot;../scatter/subtypes&quot;:1243,&quot;fast-isnumeric&quot;:249}],1285:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(&quot;lon&quot;)||[],i=r(&quot;lat&quot;)||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(&quot;text&quot;),f(&quot;texttemplate&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),f(&quot;below&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f,{noDash:!0}),f(&quot;connectgaps&quot;)),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0}),f(&quot;marker.allowoverlap&quot;),f(&quot;marker.angle&quot;);var h=e.marker;&quot;circle&quot;!==h.symbol&amp;&amp;(n.isArrayOrTypedArray(h.size)&amp;&amp;(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&amp;&amp;(h.color=h.color[0]))}i.hasText(e)&amp;&amp;s(t,e,u,f,{noSelect:!0}),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1283}],1286:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1287:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:854}],1288:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;),o=i.fillText,s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){if(!t.hovertemplate){var n=(e.hi||t.hoverinfo).split(&quot;+&quot;),i=-1!==n.indexOf(&quot;all&quot;),a=-1!==n.indexOf(&quot;lon&quot;),s=-1!==n.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];return i||a&amp;&amp;s?c.push(&quot;(&quot;+u(l[1])+&quot;, &quot;+u(l[0])+&quot;)&quot;):a?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1])),(i||-1!==n.indexOf(&quot;text&quot;))&amp;&amp;o(e,t,c),c.join(&quot;&lt;br&gt;&quot;)}function u(t){return t+&quot;\xb0&quot;}}e.exports={hoverPoints:function(t,e,r){var o=t.cd,c=o[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e&gt;=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(o,(function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)}),t),!1!==t.index){var g=o[t.index],m=g.lonlat,v=[i.modHalf(m[0],360)+p,m[1]],y=u.c2p(v),x=f.c2p(v),b=g.mrc||1;t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b;var _={};_[c.subplot]={_subplot:h};var w=c._module.formatLabels(g,c,_);return t.lonLabel=w.lonLabel,t.latLabel=w.latLabel,t.color=a(c,g),t.extraText=l(c,g,o[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}},getExtraText:l}},{&quot;../../components/fx&quot;:706,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../scatter/get_trace_color&quot;:1228}],1289:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;../scattergeo/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.update(e)},moduleType:&quot;trace&quot;,name:&quot;scattermapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/mapbox&quot;:911,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scattergeo/calc&quot;:1261,&quot;./attributes&quot;:1283,&quot;./defaults&quot;:1285,&quot;./event_data&quot;:1286,&quot;./format_labels&quot;:1287,&quot;./hover&quot;:1288,&quot;./plot&quot;:1290,&quot;./select&quot;:1291}],1290:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix,a=[&quot;fill&quot;,&quot;line&quot;,&quot;circle&quot;,&quot;symbol&quot;];function o(t,e){this.type=&quot;scattermapbox&quot;,this.subplot=t,this.uid=e,this.sourceIds={fill:&quot;source-&quot;+e+&quot;-fill&quot;,line:&quot;source-&quot;+e+&quot;-line&quot;,circle:&quot;source-&quot;+e+&quot;-circle&quot;,symbol:&quot;source-&quot;+e+&quot;-symbol&quot;},this.layerIds={fill:i+e+&quot;-fill&quot;,line:i+e+&quot;-line&quot;,circle:i+e+&quot;-circle&quot;,symbol:i+e+&quot;-symbol&quot;},this.below=null}var s=o.prototype;s.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:&quot;geojson&quot;,data:e.geojson})},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){this.subplot.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint},r)},s.update=function(t){var e,r,i,o=this.subplot,s=o.map,l=n(o.gd,t),c=o.belowLookup[&quot;trace-&quot;+this.uid];if(c!==this.below){for(e=a.length-1;e&gt;=0;e--)r=a[e],s.removeLayer(this.layerIds[r]);for(e=0;e&lt;a.length;e++)i=l[r=a[e]],this.addLayer(r,i,c);this.below=c}for(e=0;e&lt;a.length;e++)i=l[r=a[e]],o.setOptions(this.layerIds[r],&quot;setLayoutProperty&quot;,i.layout),&quot;visible&quot;===i.layout.visibility&amp;&amp;(this.setSourceData(r,i),o.setOptions(this.layerIds[r],&quot;setPaintProperty&quot;,i.paint));t[0].trace._glTrace=this},s.dispose=function(){for(var t=this.subplot.map,e=a.length-1;e&gt;=0;e--){var r=a[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=e[0].trace,i=new o(t,r.uid),s=n(t.gd,e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid],c=0;c&lt;a.length;c++){var u=a[c],f=s[u];i.addSource(u,f),i.addLayer(u,f,l)}return e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:909,&quot;./convert&quot;:1284}],1291:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r&lt;o.length;r++)o[r].selected=0;else for(r=0;r&lt;o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../scatter/subtypes&quot;:1243}],1292:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=o.line;e.exports={mode:o.mode,r:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},theta:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},r0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dr:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},theta0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dtheta:{valType:&quot;number&quot;,editType:&quot;calc&quot;},thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;,&quot;gradians&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:o.text,texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:l.smoothing,editType:&quot;calc&quot;},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1293:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../scatter/colorscale_calc&quot;),s=t(&quot;../scatter/arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;),c=t(&quot;../scatter/calc&quot;).calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,&quot;r&quot;),d=h.makeCalcdata(e,&quot;theta&quot;),g=e._length,m=new Array(g),v=0;v&lt;g;v++){var y=p[v],x=d[v],b=m[v]={};n(y)&amp;&amp;n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,g);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(t,e),s(m,e),l(m,e),m}},{&quot;../../constants/numerical&quot;:779,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/calc&quot;:1219,&quot;../scatter/calc_selection&quot;:1220,&quot;../scatter/colorscale_calc&quot;:1221,&quot;fast-isnumeric&quot;:249}],1294:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/line_shape_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);function h(t,e,r,n){var i,a=n(&quot;r&quot;),o=n(&quot;theta&quot;);if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(&quot;theta0&quot;),n(&quot;dtheta&quot;));else{if(!o)return 0;i=e.theta.length,n(&quot;r0&quot;),n(&quot;dr&quot;)}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var g=h(t,e,p,d);if(g){d(&quot;thetaunit&quot;),d(&quot;mode&quot;,g&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),d(&quot;text&quot;),d(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;d(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,p,d),s(t,e,d),d(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&amp;&amp;(d(&quot;texttemplate&quot;),l(t,e,p,d));var m=[];(i.hasMarkers(e)||i.hasText(e))&amp;&amp;(d(&quot;cliponaxis&quot;),d(&quot;marker.maxdisplayed&quot;),m.push(&quot;points&quot;)),d(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||m.push(&quot;fills&quot;),d(&quot;hoveron&quot;,m.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{&quot;../../lib&quot;:803,&quot;../scatter/constants&quot;:1222,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/line_shape_defaults&quot;:1233,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1292}],1295:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var a,o,s={},l=r[e.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=r[e.subplot]).radialaxis,o=l.angularaxis);var c=a.c2l(t.r);s.rLabel=i.tickText(a,c,!0).text;var u=&quot;degrees&quot;===o.thetaunit?n.rad2deg(t.theta):t.theta;return s.thetaLabel=i.tickText(o,u,!0).text,s}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],1296:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);function i(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle=&quot;r&quot;,a._hovertitle=&quot;\u03b8&quot;;var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=t.hi||e.hoverinfo,c=[];function u(t,e){c.push(t._hovertitle+&quot;: &quot;+e)}if(!e.hovertemplate){var f=l.split(&quot;+&quot;);-1!==f.indexOf(&quot;all&quot;)&amp;&amp;(f=[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]),-1!==f.indexOf(&quot;r&quot;)&amp;&amp;u(i,n.rLabel),-1!==f.indexOf(&quot;theta&quot;)&amp;&amp;u(a,n.thetaLabel),-1!==f.indexOf(&quot;text&quot;)&amp;&amp;n.text&amp;&amp;(c.push(n.text),delete n.text),n.extraText=c.join(&quot;&lt;br&gt;&quot;)}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{&quot;../scatter/hover&quot;:1229}],1297:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scatter/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:920,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scatter/select&quot;:1240,&quot;../scatter/style&quot;:1242,&quot;./attributes&quot;:1292,&quot;./calc&quot;:1293,&quot;./defaults&quot;:1294,&quot;./format_labels&quot;:1295,&quot;./hover&quot;:1296,&quot;./plot&quot;:1298}],1298:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(&quot;g.scatterlayer&quot;),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c&lt;r.length;c++)for(var u=r[c],f=0;f&lt;u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),g=l.c2g(h.theta);h.x=d*Math.cos(g),h.y=d*Math.sin(g)}}n(t,o,r,a)}},{&quot;../../constants/numerical&quot;:779,&quot;../scatter/plot&quot;:1239}],1299:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/attributes&quot;),i=t(&quot;../scattergl/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs;e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:n.hovertext,hovertemplate:n.hovertemplate,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{&quot;../../plots/template_attributes&quot;:926,&quot;../scattergl/attributes&quot;:1270,&quot;../scatterpolar/attributes&quot;:1292}],1300:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/colorscale_calc&quot;),i=t(&quot;../scatter/calc&quot;).calcMarkerSize,a=t(&quot;../scattergl/convert&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r=t._fullLayout,l=e.subplot,c=r[l].radialaxis,u=r[l].angularaxis,f=e._r=c.makeCalcdata(e,&quot;r&quot;),h=e._theta=u.makeCalcdata(e,&quot;theta&quot;),p=e._length,d={};p&lt;f.length&amp;&amp;(f=f.slice(0,p)),p&lt;h.length&amp;&amp;(h=h.slice(0,p)),d.r=f,d.theta=h,n(t,e);var g,m=d.opts=a.style(t,e);return p&lt;s?g=i(e,p):m.marker&amp;&amp;(g=2*(m.marker.sizeAvg||Math.max(m.marker.size,3))),e._extremes.x=o.findExtremes(c,f,{ppad:g}),[{x:!1,y:!1,t:d,trace:e}]}},{&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/calc&quot;:1219,&quot;../scatter/colorscale_calc&quot;:1221,&quot;../scattergl/constants&quot;:1272,&quot;../scattergl/convert&quot;:1273}],1301:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(&quot;thetaunit&quot;),p(&quot;mode&quot;,d&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(s(t,e,r,h,p),p(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;o(t,e,r,h,p),i.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),l(t,e,h,p)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/constants&quot;:1222,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;../scatterpolar/defaults&quot;:1294,&quot;./attributes&quot;:1299}],1302:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;r&quot;in t||(t.r=e._r[i]),&quot;theta&quot;in t||(t.theta=e._theta[i]),n(t,e,r)}},{&quot;../scatterpolar/format_labels&quot;:1295}],1303:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scattergl/hover&quot;),i=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText;e.exports={hoverPoints:function(t,e,r,a){var o=t.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(t,e,r,a);if(c&amp;&amp;!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var f=t.subplot,h=u.cd[u.index],p=u.trace;if(h.r=s[u.index],h.theta=l[u.index],f.isPtInside(h))return u.xLabelVal=void 0,u.yLabelVal=void 0,i(h,p,f,u),c}}}},{&quot;../scattergl/hover&quot;:1278,&quot;../scatterpolar/hover&quot;:1296}],1304:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolargl&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scattergl/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:920,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scattergl/select&quot;:1282,&quot;./attributes&quot;:1299,&quot;./calc&quot;:1300,&quot;./defaults&quot;:1301,&quot;./format_labels&quot;:1302,&quot;./hover&quot;:1303,&quot;./plot&quot;:1305}],1305:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../scattergl/plot&quot;),o=t(&quot;../scattergl/scene_update&quot;),s=t(&quot;../scattergl/convert&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e,r){if(r.length){var u=e.radialAxis,f=e.angularAxis,h=o(t,e);return r.forEach((function(r){if(r&amp;&amp;r[0]&amp;&amp;r[0].trace){var a,o=r[0],p=o.trace,d=o.t,g=p._length,m=d.r,v=d.theta,y=d.opts,x=m.slice(),b=v.slice();for(a=0;a&lt;m.length;a++)e.isPtInside({r:m[a],theta:v[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*g),w=Array(g),T=Array(g);for(a=0;a&lt;g;a++){var k,A,M=x[a];if(i(M)){var S=u.c2g(M),E=f.c2g(b[a],p.thetaunit);k=S*Math.cos(E),A=S*Math.sin(E)}else k=A=NaN;w[a]=_[2*a]=k,T[a]=_[2*a+1]=A}d.tree=n(_),y.marker&amp;&amp;g&gt;=c&amp;&amp;(y.marker.cluster=d.tree),y.marker&amp;&amp;(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&amp;&amp;_.length&gt;1&amp;&amp;l.extendFlat(y.line,s.linePositions(t,p,_)),y.text&amp;&amp;(l.extendFlat(y.text,{positions:_},s.textPosition(t,p,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,p,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,p,y.text,y.markerUnsel))),y.fill&amp;&amp;!h.fill2d&amp;&amp;(h.fill2d=!0),y.marker&amp;&amp;!h.scatter2d&amp;&amp;(h.scatter2d=!0),y.line&amp;&amp;!h.line2d&amp;&amp;(h.line2d=!0),y.text&amp;&amp;!h.glText&amp;&amp;(h.glText=!0),h.lineOptions.push(y.line),h.fillOptions.push(y.fill),h.markerOptions.push(y.marker),h.markerSelectedOptions.push(y.markerSel),h.markerUnselectedOptions.push(y.markerUnsel),h.textOptions.push(y.text),h.textSelectedOptions.push(y.textSel),h.textUnselectedOptions.push(y.textUnsel),h.selectBatch.push([]),h.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=m,d.theta=v,d.positions=_,d._scene=h,d.index=h.count,h.count++}})),a(t,e,r)}}},{&quot;../../lib&quot;:803,&quot;../scattergl/constants&quot;:1272,&quot;../scattergl/convert&quot;:1273,&quot;../scattergl/plot&quot;:1280,&quot;../scattergl/scene_update&quot;:1281,&quot;@plotly/point-cluster&quot;:59,&quot;fast-isnumeric&quot;:249}],1306:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a.marker,f=a.line,h=u.line;e.exports={a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},c:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sum:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;calc&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),line:{color:f.color,width:f.width,dash:l,shape:c({},f.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:f.smoothing,editType:&quot;calc&quot;},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:c({},a.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:a.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:h.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:u.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:a.hoveron,hovertemplate:n()}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/drawing/attributes&quot;:687,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1307:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],c={a:[&quot;b&quot;,&quot;c&quot;],b:[&quot;a&quot;,&quot;c&quot;],c:[&quot;a&quot;,&quot;b&quot;]};e.exports=function(t,e){var r,u,f,h,p,d,g=t._fullLayout[e.subplot].sum,m=e.sum||g,v={a:e.a,b:e.b,c:e.c};for(r=0;r&lt;l.length;r++)if(!v[f=l[r]]){for(p=v[c[f][0]],d=v[c[f][1]],h=new Array(p.length),u=0;u&lt;p.length;u++)h[u]=m-p[u]-d[u];v[f]=h}var y,x,b,_,w,T,k=e._length,A=new Array(k);for(r=0;r&lt;k;r++)y=v.a[r],x=v.b[r],b=v.c[r],n(y)&amp;&amp;n(x)&amp;&amp;n(b)?(1!==(_=g/((y=+y)+(x=+x)+(b=+b)))&amp;&amp;(y*=_,x*=_,b*=_),T=y,w=b-x,A[r]={x:w,y:T,a:y,b:x,c:b}):A[r]={x:!1,y:!1};return s(e,k),i(t,e),a(A,e),o(A,e),A}},{&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/calc&quot;:1219,&quot;../scatter/calc_selection&quot;:1220,&quot;../scatter/colorscale_calc&quot;:1221,&quot;fast-isnumeric&quot;:249}],1308:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,g=p(&quot;a&quot;),m=p(&quot;b&quot;),v=p(&quot;c&quot;);if(g?(d=g.length,m?(d=Math.min(d,m.length),v&amp;&amp;(d=Math.min(d,v.length))):d=v?Math.min(d,v.length):0):m&amp;&amp;v&amp;&amp;(d=Math.min(m.length,v.length)),d){e._length=d,p(&quot;sum&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),p(&quot;mode&quot;,d&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),c(t,e,h,p));var y=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;cliponaxis&quot;),p(&quot;marker.maxdisplayed&quot;),y.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||y.push(&quot;fills&quot;),p(&quot;hoveron&quot;,y.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/constants&quot;:1222,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/line_shape_defaults&quot;:1233,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1306}],1309:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1310:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot;return i.aLabel=n.tickText(a.aaxis,t.a,!0).text,i.bLabel=n.tickText(a.baxis,t.b,!0).text,i.cLabel=n.tickText(a.caxis,t.c,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:854}],1311:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&amp;&amp;!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var g=h._module.formatLabels(f,h,d);o.aLabel=g.aLabel,o.bLabel=g.bLabel,o.cLabel=g.cLabel;var m=f.hi||h.hoverinfo,v=[];if(!h.hovertemplate){var y=m.split(&quot;+&quot;);-1!==y.indexOf(&quot;all&quot;)&amp;&amp;(y=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]),-1!==y.indexOf(&quot;a&quot;)&amp;&amp;x(p.aaxis,o.aLabel),-1!==y.indexOf(&quot;b&quot;)&amp;&amp;x(p.baxis,o.bLabel),-1!==y.indexOf(&quot;c&quot;)&amp;&amp;x(p.caxis,o.cLabel)}return o.extraText=v.join(&quot;&lt;br&gt;&quot;),o.hovertemplate=h.hovertemplate,a}function x(t,e){v.push(t._hovertitle+&quot;: &quot;+e)}}},{&quot;../scatter/hover&quot;:1229}],1312:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scatterternary&quot;,basePlotModule:t(&quot;../../plots/ternary&quot;),categories:[&quot;ternary&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/ternary&quot;:927,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scatter/select&quot;:1240,&quot;../scatter/style&quot;:1242,&quot;./attributes&quot;:1306,&quot;./calc&quot;:1307,&quot;./defaults&quot;:1308,&quot;./event_data&quot;:1309,&quot;./format_labels&quot;:1310,&quot;./hover&quot;:1311,&quot;./plot&quot;:1313}],1313:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;);e.exports=function(t,e,r){var i=e.plotContainer;i.select(&quot;.scatterlayer&quot;).selectAll(&quot;*&quot;).remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(&quot;g.scatterlayer&quot;);n(t,a,r,o)}},{&quot;../scatter/plot&quot;:1239}],1314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../scattergl/attributes&quot;),l=t(&quot;../../plots/cartesian/constants&quot;).idRegex,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;../../lib/extend&quot;).extendFlat,f=n.marker,h=f.line,p=u(i(&quot;marker.line&quot;,{editTypeOverride:&quot;calc&quot;}),{width:u({},h.width,{editType:&quot;calc&quot;}),editType:&quot;calc&quot;}),d=u(i(&quot;marker&quot;),{symbol:f.symbol,size:u({},f.size,{editType:&quot;markerSize&quot;}),sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,opacity:f.opacity,colorbar:f.colorbar,line:p,editType:&quot;calc&quot;});function g(t){return{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;subplotid&quot;,regex:l[t],editType:&quot;plot&quot;}}}d.color.editType=d.cmin.editType=d.cmax.editType=&quot;style&quot;,e.exports={dimensions:c(&quot;dimension&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},axis:{type:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;],editType:&quot;calc+clearAxisTypes&quot;},matches:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc+clearAxisTypes&quot;},editType:&quot;calc+clearAxisTypes&quot;}),text:u({},s.text,{}),hovertext:u({},s.hovertext,{}),hovertemplate:o(),xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),marker:d,xaxes:g(&quot;x&quot;),yaxes:g(&quot;y&quot;),diagonal:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},showupperhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},showlowerhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},selected:{marker:s.selected.marker,editType:&quot;calc&quot;},unselected:{marker:s.unselected.marker,editType:&quot;calc&quot;},opacity:s.opacity}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/cartesian/constants&quot;:861,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218,&quot;../scattergl/attributes&quot;:1270}],1315:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-line2d&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib/prepare_regl&quot;),o=t(&quot;../../plots/get_data&quot;).getModuleCalcData,s=t(&quot;../../plots/cartesian&quot;),l=t(&quot;../../plots/cartesian/axis_ids&quot;).getFromId,c=t(&quot;../../plots/cartesian/axes&quot;).shouldShowZeroLine;function u(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o&lt;i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&amp;&amp;(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&amp;&amp;(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch.length||r.unselectBatch.length?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function f(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._context.plotGlPixelRatio,n=t._fullLayout,i=n._size,a=[0,0,n.width*r,n.height*r],o={};function s(t,e,n,i,s,l){n*=r,i*=r,s*=r,l*=r;var c=e[t+&quot;color&quot;],u=e[t+&quot;width&quot;],f=String(c+u);f in o?o[f].data.push(NaN,NaN,n,i,s,l):o[f]={data:[n,i,s,l],join:&quot;rect&quot;,thickness:u*r,color:c,viewport:a,range:a,overlay:!1}}for(e in n._splomSubplots){var l,u,f=n._plots[e],h=f.xaxis,p=f.yaxis,d=h._gridVals,g=p._gridVals,m=h._offset,v=h._length,y=p._length,x=i.b+p.domain[0]*i.h,b=-p._m,_=-b*p.r2l(p.range[0],p.calendar);if(h.showgrid)for(e=0;e&lt;d.length;e++)l=m+h.l2p(d[e].x),s(&quot;grid&quot;,h,l,x,l,x+y);if(p.showgrid)for(e=0;e&lt;g.length;e++)u=x+_+b*g[e].x,s(&quot;grid&quot;,p,m,u,m+v,u);c(t,h,p)&amp;&amp;(l=m+h.l2p(0),s(&quot;zeroline&quot;,h,l,x,l,x+y)),c(t,p,h)&amp;&amp;s(&quot;zeroline&quot;,p,m,u=x+_+0,m+v,u)}var w=[];for(e in o)w.push(o[e]);return w}(t))}e.exports={name:&quot;splom&quot;,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(&quot;splom&quot;),n=o(t.calcdata,r)[0];a(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])&amp;&amp;(e._hasOnlyLargeSploms&amp;&amp;f(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&amp;&amp;f(t);for(var n=0;n&lt;e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];&quot;splom&quot;===i.type&amp;&amp;a&amp;&amp;a.matrix&amp;&amp;u(t,i,a)}},updateGrid:f,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i&lt;t.length;i++){var o=t[i];&quot;splom&quot;===o.type&amp;&amp;(a[o.uid]=1)}for(i=0;i&lt;r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&amp;&amp;c.destroy&amp;&amp;c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&amp;&amp;delete n._splomScenes,n._splomGrid&amp;&amp;!e._hasOnlyLargeSploms&amp;&amp;n._hasOnlyLargeSploms&amp;&amp;(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:s.updateFx,toSVG:s.toSVG}},{&quot;../../lib/prepare_regl&quot;:816,&quot;../../plots/cartesian&quot;:868,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../plots/get_data&quot;:891,&quot;../../registry&quot;:931,&quot;regl-line2d&quot;:537}],1316:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../scatter/calc&quot;).calcMarkerSize,o=t(&quot;../scatter/calc&quot;).calcAxisExpansion,s=t(&quot;../scatter/colorscale_calc&quot;),l=t(&quot;../scattergl/convert&quot;).markerSelection,c=t(&quot;../scattergl/convert&quot;).markerStyle,u=t(&quot;./scene_update&quot;),f=t(&quot;../../constants/numerical&quot;).BADNUM,h=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r,p,d,g,m,v,y=e.dimensions,x=e._length,b={},_=b.cdata=[],w=b.data=[],T=e._visibleDims=[];function k(t,r){for(var i=t.makeCalcdata({v:r.values,vcalendar:e.calendar},&quot;v&quot;),a=0;a&lt;i.length;a++)i[a]=i[a]===f?NaN:i[a];_.push(i),w.push(&quot;log&quot;===t.type?n.simpleMap(i,t.c2l):i)}for(r=0;r&lt;y.length;r++)if((d=y[r]).visible){if(g=i.getFromId(t,e._diag[r][0]),m=i.getFromId(t,e._diag[r][1]),g&amp;&amp;m&amp;&amp;g.type!==m.type){n.log(&quot;Skipping splom dimension &quot;+r+&quot; with conflicting axis types&quot;);continue}g?(k(g,d),m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(m._categories=g._categories.slice())):k(m,d),T.push(r)}for(s(t,e),n.extendFlat(b,c(e)),v=_.length*x&gt;h?b.sizeAvg||Math.max(b.size,3):a(e,x),p=0;p&lt;T.length;p++)d=y[r=T[p]],g=i.getFromId(t,e._diag[r][0])||{},m=i.getFromId(t,e._diag[r][1])||{},o(t,e,g,m,_[p],_[p],v);var A=u(t,e);return A.matrix||(A.matrix=!0),A.matrixOptions=b,A.selectedOptions=l(e,e.selected),A.unselectedOptions=l(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../scatter/calc&quot;:1219,&quot;../scatter/colorscale_calc&quot;:1221,&quot;../scattergl/constants&quot;:1272,&quot;../scattergl/convert&quot;:1273,&quot;./scene_update&quot;:1323}],1317:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../scatter/subtypes&quot;),s=t(&quot;../scatter/marker_defaults&quot;),l=t(&quot;../parcoords/merge_length&quot;),c=t(&quot;../scattergl/helpers&quot;).isOpenSymbol;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(&quot;label&quot;);var i=r(&quot;values&quot;);i&amp;&amp;i.length?r(&quot;visible&quot;):e.visible=!1,r(&quot;axis.type&quot;),r(&quot;axis.matches&quot;)}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=h(&quot;diagonal.visible&quot;),g=h(&quot;showupperhalf&quot;),m=h(&quot;showlowerhalf&quot;);if(l(e,p,&quot;values&quot;)&amp;&amp;(d||g||m)){h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),h(&quot;xhoverformat&quot;),h(&quot;yhoverformat&quot;),s(t,e,r,f,h);var v=c(e.marker.symbol),y=o.isBubble(e);h(&quot;marker.line.width&quot;,v||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i&lt;s;i++){var p=i?i+1:&quot;&quot;;f[i]=&quot;x&quot;+p,h[i]=&quot;y&quot;+p}var d=n(&quot;xaxes&quot;,f),g=n(&quot;yaxes&quot;,h),m=e._diag=new Array(s);e._xaxes={},e._yaxes={};var v=[],y=[];function x(t,n,i,a){if(t){var o=t.charAt(0),s=r._splomAxes[o];if(e[&quot;_&quot;+o+&quot;axes&quot;][t]=1,a.push(t),!(t in s)){var l=s[t]={};i&amp;&amp;(l.label=i.label||&quot;&quot;,i.visible&amp;&amp;i.axis&amp;&amp;(i.axis.type&amp;&amp;(l.type=i.axis.type),i.axis.matches&amp;&amp;(l.matches=n)))}}}var b=!u&amp;&amp;!c,_=!u&amp;&amp;!l;for(e._axesDim={},i=0;i&lt;s;i++){var w=o[i],T=0===i,k=i===s-1,A=T&amp;&amp;b||k&amp;&amp;_?void 0:d[i],M=T&amp;&amp;_||k&amp;&amp;b?void 0:g[i];x(A,M,w,v),x(M,A,w,y),m[i]=[A,M],e._axesDim[A]=i,e._axesDim[M]=i}for(i=0;i&lt;v.length;i++)for(a=0;a&lt;y.length;a++){var S=v[i]+y[a];i&gt;a&amp;&amp;l||i&lt;a&amp;&amp;c?r._splomSubplots[S]=1:i!==a||!u&amp;&amp;c&amp;&amp;l||(r._splomSubplots[S]=1)}(!c||!u&amp;&amp;l&amp;&amp;c)&amp;&amp;(r._splomGridDflt.xside=&quot;bottom&quot;,r._splomGridDflt.yside=&quot;left&quot;)}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../parcoords/merge_length&quot;:1189,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scattergl/helpers&quot;:1277,&quot;./attributes&quot;:1314}],1318:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scattergl/convert&quot;).markerStyle;e.exports=function(t,e){var r=e.trace,o=t._fullLayout._splomScenes[r.uid];if(o){i(t,r),n.extendFlat(o.matrixOptions,a(r));var s=n.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}},{&quot;../../lib&quot;:803,&quot;../scatter/colorscale_calc&quot;:1221,&quot;../scattergl/convert&quot;:1273}],1319:[function(t,e,r){&quot;use strict&quot;;r.getDimIndex=function(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a&lt;i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}},{}],1320:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i=t(&quot;../scattergl/hover&quot;).calcHover;e.exports={hoverPoints:function(t,e,r){var a=t.cd[0].trace,o=t.scene.matrixOptions.cdata,s=t.xa,l=t.ya,c=s.c2p(e),u=l.c2p(r),f=t.distance,h=n.getDimIndex(a,s),p=n.getDimIndex(a,l);if(!1===h||!1===p)return[t];for(var d,g,m=o[h],v=o[p],y=f,x=0;x&lt;m.length;x++){var b=m[x],_=v[x],w=s.c2p(b)-c,T=l.c2p(_)-u,k=Math.sqrt(w*w+T*T);k&lt;y&amp;&amp;(y=g=k,d=x)}return t.index=d,t.distance=y,t.dxy=g,void 0===d?[t]:[i(t,m,v,a)]}}},{&quot;../scattergl/hover&quot;:1278,&quot;./helpers&quot;:1319}],1321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../components/grid&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;splom&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;),editStyle:t(&quot;./edit_style&quot;),meta:{}},n.register(i)},{&quot;../../components/grid&quot;:710,&quot;../../registry&quot;:931,&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1314,&quot;./base_plot&quot;:1315,&quot;./calc&quot;:1316,&quot;./defaults&quot;:1317,&quot;./edit_style&quot;:1318,&quot;./hover&quot;:1320,&quot;./plot&quot;:1322,&quot;./select&quot;:1324}],1322:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-splom&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../components/dragelement/helpers&quot;).selectMode;function s(t,e){var r,s,l,c,u,f=t._fullLayout,h=f._size,p=e.trace,d=e.t,g=f._splomScenes[p.uid],m=g.matrixOptions,v=m.cdata,y=f._glcanvas.data()[0].regl,x=f.dragmode;if(0!==v.length){m.lower=p.showupperhalf,m.upper=p.showlowerhalf,m.diagonal=p.diagonal.visible;var b=p._visibleDims,_=v.length,w=g.viewOpts={};for(w.ranges=new Array(_),w.domains=new Array(_),u=0;u&lt;b.length;u++){l=b[u];var T=w.ranges[u]=new Array(4),k=w.domains[u]=new Array(4);(r=a.getFromId(t,p._diag[l][0]))&amp;&amp;(T[0]=r._rl[0],T[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(s=a.getFromId(t,p._diag[l][1]))&amp;&amp;(T[1]=s._rl[0],T[3]=s._rl[1],k[1]=s.domain[0],k[3]=s.domain[1])}var A=t._context.plotGlPixelRatio,M=h.l*A,S=h.b*A,E=h.w*A,L=h.h*A;w.viewport=[M,S,E+M,L+S],!0===g.matrix&amp;&amp;(g.matrix=n(y));var C=f.clickmode.indexOf(&quot;select&quot;)&gt;-1,P=!0;if(o(x)||!!p.selectedpoints||C){var I=p._length;if(p.selectedpoints){g.selectBatch=p.selectedpoints;var O=p.selectedpoints,z={};for(l=0;l&lt;O.length;l++)z[O[l]]=!0;var D=[];for(l=0;l&lt;I;l++)z[l]||D.push(l);g.unselectBatch=D}var R=d.xpx=new Array(_),F=d.ypx=new Array(_);for(u=0;u&lt;b.length;u++){if(l=b[u],r=a.getFromId(t,p._diag[l][0]))for(R[u]=new Array(I),c=0;c&lt;I;c++)R[u][c]=r.c2p(v[u][c]);if(s=a.getFromId(t,p._diag[l][1]))for(F[u]=new Array(I),c=0;c&lt;I;c++)F[u][c]=s.c2p(v[u][c])}if(g.selectBatch.length||g.unselectBatch.length){var B=i.extendFlat({},m,g.unselectedOptions,w),N=i.extendFlat({},m,g.selectedOptions,w);g.matrix.update(B,N),P=!1}}else d.xpx=d.ypx=null;if(P){var j=i.extendFlat({},m,w);g.matrix.update(j,null)}}}e.exports=function(t,e,r){if(r.length)for(var n=0;n&lt;r.length;n++)s(t,r[n][0])}},{&quot;../../components/dragelement/helpers&quot;:684,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;regl-splom&quot;:539}],1323:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t._fullLayout,i=e.uid,a=r._splomScenes;a||(a=r._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=a[e.uid];return s||((s=a[i]=n.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&amp;&amp;s.matrix.draw&amp;&amp;(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&amp;&amp;s.matrix.destroy&amp;&amp;s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||n.extendFlat(s,o),s}},{&quot;../../lib&quot;:803}],1324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;./helpers&quot;);e.exports=function(t,e){var r=t.cd,o=r[0].trace,s=r[0].t,l=t.scene,c=l.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!l)return h;var p=!i.hasMarkers(o)&amp;&amp;!i.hasText(o);if(!0!==o.visible||p)return h;var d=a.getDimIndex(o,u),g=a.getDimIndex(o,f);if(!1===d||!1===g)return h;var m=s.xpx[d],v=s.ypx[g],y=c[d],x=c[g],b=[],_=[];if(!1!==e&amp;&amp;!e.degenerate)for(var w=0;w&lt;y.length;w++)e.contains([m[w],v[w]],null,w,t)?(b.push(w),h.push({pointNumber:w,x:y[w],y:x[w]})):_.push(w);var T=l.matrixOptions;return b.length||_.length?l.selectBatch.length||l.unselectBatch.length||l.matrix.update(l.unselectedOptions,n.extendFlat({},T,l.selectedOptions,l.viewOpts)):l.matrix.update(T,null),l.selectBatch=b,l.unselectBatch=_,h}},{&quot;../../lib&quot;:803,&quot;../scatter/subtypes&quot;:1243,&quot;./helpers&quot;:1319}],1325:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../mesh3d/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},starts:{x:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},maxdisplayed:{valType:&quot;integer&quot;,min:0,dflt:1e3,editType:&quot;calc&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:1},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:a({editType:&quot;calc&quot;},{keys:[&quot;tubex&quot;,&quot;tubey&quot;,&quot;tubez&quot;,&quot;tubeu&quot;,&quot;tubev&quot;,&quot;tubew&quot;,&quot;norm&quot;,&quot;divergence&quot;]}),uhoverformat:i(&quot;u&quot;,1),vhoverformat:i(&quot;v&quot;,1),whoverformat:i(&quot;w&quot;,1),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){c[t]=o[t]})),c.hoverinfo=l({},s.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;divergence&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),c.transforms=void 0,e.exports=c},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../mesh3d/attributes&quot;:1159}],1326:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/calc&quot;);function a(t){var e,r,i,a,s,l,c,u,f,h,p,d,g=t._x,m=t._y,v=t._z,y=t._len,x=-1/0,b=1/0,_=-1/0,w=1/0,T=-1/0,k=1/0,A=&quot;&quot;;for(y&amp;&amp;(c=g[0],f=m[0],p=v[0]),y&gt;1&amp;&amp;(u=g[y-1],h=m[y-1],d=v[y-1]),e=0;e&lt;y;e++)x=Math.max(x,g[e]),b=Math.min(b,g[e]),_=Math.max(_,m[e]),w=Math.min(w,m[e]),T=Math.max(T,v[e]),k=Math.min(k,v[e]),a||g[e]===c||(a=!0,A+=&quot;x&quot;),s||m[e]===f||(s=!0,A+=&quot;y&quot;),l||v[e]===p||(l=!0,A+=&quot;z&quot;);a||(A+=&quot;x&quot;),s||(A+=&quot;y&quot;),l||(A+=&quot;z&quot;);var M=o(t._x),S=o(t._y),E=o(t._z);A=(A=(A=A.replace(&quot;x&quot;,(c&gt;u?&quot;-&quot;:&quot;+&quot;)+&quot;x&quot;)).replace(&quot;y&quot;,(f&gt;h?&quot;-&quot;:&quot;+&quot;)+&quot;y&quot;)).replace(&quot;z&quot;,(p&gt;d?&quot;-&quot;:&quot;+&quot;)+&quot;z&quot;);var L=function(){y=0,M=[],S=[],E=[]};(!y||y&lt;M.length*S.length*E.length)&amp;&amp;L();var C=function(t){return&quot;x&quot;===t?g:&quot;y&quot;===t?m:v},P=function(t){return&quot;x&quot;===t?M:&quot;y&quot;===t?S:E},I=function(t){return t[y-1]&lt;t[0]?-1:1},O=C(A[1]),z=C(A[3]),D=C(A[5]),R=P(A[1]).length,F=P(A[3]).length,B=P(A[5]).length,N=!1,j=function(t,e,r){return R*(F*t+e)+r},U=I(C(A[1])),V=I(C(A[3])),q=I(C(A[5]));for(e=0;e&lt;B-1;e++){for(r=0;r&lt;F-1;r++){for(i=0;i&lt;R-1;i++){var H=j(e,r,i),G=j(e,r,i+1),Y=j(e,r+1,i),W=j(e+1,r,i);if(O[H]*U&lt;O[G]*U&amp;&amp;z[H]*V&lt;z[Y]*V&amp;&amp;D[H]*q&lt;D[W]*q||(N=!0),N)break}if(N)break}if(N)break}return N&amp;&amp;(n.warn(&quot;Encountered arbitrary coordinates! Unable to input data grid.&quot;),L()),{xMin:b,yMin:w,zMin:k,xMax:x,yMax:_,zMax:T,Xs:M,Ys:S,Zs:E,len:y,fill:A}}function o(t){return n.distinctVals(t).vals}function s(t,e){if(void 0===e&amp;&amp;(e=t.length),n.isTypedArray(t))return t.subarray(0,e);for(var r=[],i=0;i&lt;e;i++)r[i]=+t[i];return r}e.exports={calc:function(t,e){e._len=Math.min(e.u.length,e.v.length,e.w.length,e.x.length,e.y.length,e.z.length),e._u=s(e.u,e._len),e._v=s(e.v,e._len),e._w=s(e.w,e._len),e._x=s(e.x,e._len),e._y=s(e.y,e._len),e._z=s(e.z,e._len);var r=a(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;var n,o,l,c=0;e.starts&amp;&amp;(n=s(e.starts.x||[]),o=s(e.starts.y||[]),l=s(e.starts.z||[]),c=Math.min(n.length,o.length,l.length)),e._startsX=n||[],e._startsY=o||[],e._startsZ=l||[];var u,f=0,h=1/0;for(u=0;u&lt;e._len;u++){var p=e._u[u],d=e._v[u],g=e._w[u],m=Math.sqrt(p*p+d*d+g*g);f=Math.max(f,m),h=Math.min(h,m)}for(i(t,e,{vals:[h,f],containerStr:&quot;&quot;,cLetter:&quot;c&quot;}),u=0;u&lt;c;u++){var v=n[u];r.xMax=Math.max(r.xMax,v),r.xMin=Math.min(r.xMin,v);var y=o[u];r.yMax=Math.max(r.yMax,y),r.yMin=Math.min(r.yMin,y);var x=l[u];r.zMax=Math.max(r.zMax,x),r.zMin=Math.min(r.zMin,x)}e._slen=c,e._normMax=f,e._xbnds=[r.xMin,r.xMax],e._ybnds=[r.yMin,r.yMax],e._zbnds=[r.zMin,r.zMax]},filter:s,processGrid:a}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../lib&quot;:803}],1327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-streamtube3d&quot;),i=n.createTubeMesh,a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;),c={xaxis:0,yaxis:1,zaxis:2};function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var f=u.prototype;function h(t){var e=t.length;return e&gt;2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function d(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(d(e._u,&quot;xaxis&quot;),d(e._v,&quot;yaxis&quot;),d(e._w,&quot;zaxis&quot;),u),!u)return{positions:[],cells:[]};var g=d(e._Xs,&quot;xaxis&quot;),m=d(e._Ys,&quot;yaxis&quot;),v=d(e._Zs,&quot;zaxis&quot;);if(f.meshgrid=[g,m,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(d(e._startsX,&quot;xaxis&quot;),d(e._startsY,&quot;yaxis&quot;),d(e._startsZ,&quot;zaxis&quot;));else{for(var y=m[0],x=h(g),b=h(v),_=new Array(x.length*b.length),w=0,T=0;T&lt;x.length;T++)for(var k=0;k&lt;b.length;k++)_[w++]=[x[T],y,b[k]];f.startingPositions=_}f.colormap=o(e),f.tubeSize=e.sizeref,f.maxLength=e.maxdisplayed;var A=d(e._xbnds,&quot;xaxis&quot;),M=d(e._ybnds,&quot;yaxis&quot;),S=d(e._zbnds,&quot;zaxis&quot;),E=p(g),L=p(m),C=p(v),P=[[A[0]-E[0],M[0]-L[0],S[0]-C[0]],[A[1]+E[1],M[1]+L[1],S[1]+C[1]]],I=n(f,P),O=s(e);I.vertexIntensityBounds=[O.min/e._normMax,O.max/e._normMax];var z=e.lightposition;return I.lightPosition=[z.x,z.y,z.z],I.ambient=e.lighting.ambient,I.diffuse=e.lighting.diffuse,I.specular=e.lighting.specular,I.roughness=e.lighting.roughness,I.fresnel=e.lighting.fresnel,I.opacity=e.opacity,e._pad=I.tubeScale*e.sizeref*2,I}f.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[c[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],&quot;xaxis&quot;),n(i[1],&quot;yaxis&quot;),n(i[2],&quot;zaxis&quot;),n(a[0],&quot;xaxis&quot;),n(a[1],&quot;yaxis&quot;),n(a[2],&quot;zaxis&quot;),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.hovertext||this.data.text,!0}},f.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new u(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../lib/gl_format_color&quot;:799,&quot;../../plots/gl3d/zip3&quot;:907,&quot;gl-streamtube3d&quot;:352}],1328:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;starts.x&quot;),s(&quot;starts.y&quot;),s(&quot;starts.z&quot;),s(&quot;maxdisplayed&quot;),s(&quot;sizeref&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;uhoverformat&quot;),s(&quot;vhoverformat&quot;),s(&quot;whoverformat&quot;),s(&quot;xhoverformat&quot;),s(&quot;yhoverformat&quot;),s(&quot;zhoverformat&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;./attributes&quot;:1325}],1329:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;streamtube&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1325,&quot;./calc&quot;:1326,&quot;./convert&quot;:1327,&quot;./defaults&quot;:1328}],1330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../pie/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},parents:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},branchvalues:{valType:&quot;enumerated&quot;,values:[&quot;remainder&quot;,&quot;total&quot;],dflt:&quot;remainder&quot;,editType:&quot;calc&quot;},count:{valType:&quot;flaglist&quot;,flags:[&quot;branches&quot;,&quot;leaves&quot;],dflt:&quot;leaves&quot;,editType:&quot;calc&quot;},level:{valType:&quot;any&quot;,editType:&quot;plot&quot;,anim:!0},maxdepth:{valType:&quot;integer&quot;,editType:&quot;plot&quot;,dflt:-1},marker:u({colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:u({},l.marker.line.color,{dflt:null}),width:u({},l.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},editType:&quot;plot&quot;},text:l.text,textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;},texttemplate:a({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:l.hovertext,hoverinfo:u({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;name&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],dflt:&quot;label+text+value+name&quot;}),hovertemplate:i({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextorientation:l.insidetextorientation,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{}),rotation:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},sort:l.sort,root:{color:{valType:&quot;color&quot;,editType:&quot;calc&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},editType:&quot;calc&quot;},domain:s({name:&quot;sunburst&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/domain&quot;:882,&quot;../../plots/template_attributes&quot;:926,&quot;../pie/attributes&quot;:1192,&quot;./constants&quot;:1333}],1331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;sunburst&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1332:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,s=t(&quot;../pie/calc&quot;).makePullColorFn,l=t(&quot;../pie/calc&quot;).generateExtendedColors,c=t(&quot;../../components/colorscale&quot;).calc,u=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,f={},h={},p={};r.calc=function(t,e){var r,l,f,h,p,d,g=t._fullLayout,m=e.ids,v=a.isArrayOrTypedArray(m),y=e.labels,x=e.parents,b=e.values,_=a.isArrayOrTypedArray(b),w=[],T={},k={},A=function(t){return t||&quot;number&quot;==typeof t},M=function(t){return!_||i(b[t])&amp;&amp;b[t]&gt;=0};v?(r=Math.min(m.length,x.length),l=function(t){return A(m[t])&amp;&amp;M(t)},f=function(t){return String(m[t])}):(r=Math.min(y.length,x.length),l=function(t){return A(y[t])&amp;&amp;M(t)},f=function(t){return String(y[t])}),_&amp;&amp;(r=Math.min(r,b.length));for(var S=0;S&lt;r;S++)if(l(S)){var E=f(S),L=A(x[S])?String(x[S]):&quot;&quot;,C={i:S,id:E,pid:L,label:A(y[S])?String(y[S]):&quot;&quot;};_&amp;&amp;(C.v=+b[S]),w.push(C),p=E,T[h=L]?T[h].push(p):T[h]=[p],k[p]=1}if(T[&quot;&quot;]){if(T[&quot;&quot;].length&gt;1){for(var P=a.randstr(),I=0;I&lt;w.length;I++)&quot;&quot;===w[I].pid&amp;&amp;(w[I].pid=P);w.unshift({hasMultipleRoots:!0,id:P,pid:&quot;&quot;,label:&quot;&quot;})}}else{var O,z=[];for(O in T)k[O]||z.push(O);if(1!==z.length)return a.warn([&quot;Multiple implied roots, cannot build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;These roots include:&quot;,z.join(&quot;, &quot;)].join(&quot; &quot;));O=z[0],w.unshift({hasImpliedRoot:!0,id:O,pid:&quot;&quot;,label:O})}try{d=n.stratify().id((function(t){return t.id})).parentId((function(t){return t.pid}))(w)}catch(t){return a.warn([&quot;Failed to build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;Error:&quot;,t.message].join(&quot; &quot;))}var D=n.hierarchy(d),R=!1;if(_)switch(e.branchvalues){case&quot;remainder&quot;:D.sum((function(t){return t.data.v}));break;case&quot;total&quot;:D.each((function(t){var r=t.data.data,n=r.v;if(t.children){var i=t.children.reduce((function(t,e){return t+e.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&amp;&amp;(n=i),n&lt;i*u)return R=!0,a.warn([&quot;Total value for node&quot;,t.data.data.id,&quot;of&quot;,e.name,&quot;is smaller than the sum of its children.&quot;,&quot;\nparent value =&quot;,n,&quot;\nchildren sum =&quot;,i].join(&quot; &quot;))}t.value=n}))}else!function t(e,r,n){var i=0,a=e.children;if(a){for(var o=a.length,s=0;s&lt;o;s++)i+=t(a[s],r,n);n.branches&amp;&amp;i++}else n.leaves&amp;&amp;i++;e.value=e.data.data.value=i,r._values||(r._values=[]);return r._values[e.data.data.i]=i,i}(D,e,{branches:-1!==e.count.indexOf(&quot;branches&quot;),leaves:-1!==e.count.indexOf(&quot;leaves&quot;)});if(!R){var F,B;e.sort&amp;&amp;D.sort((function(t,e){return e.value-t.value}));var N=e.marker.colors||[],j=!!N.length;return e._hasColorscale?(j||(N=_?e.values:e._values),c(t,e,{vals:N,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),B=o(e.marker)):F=s(g[&quot;_&quot;+e.type+&quot;colormap&quot;]),D.each((function(t){var r=t.data.data;r.color=e._hasColorscale?B(N[r.i]):F(N[r.i],r.id)})),w[0].hierarchy=D,w}},r._runCrossTraceCalc=function(t,e){var r=e._fullLayout,n=e.calcdata,i=r[t+&quot;colorway&quot;],a=r[&quot;_&quot;+t+&quot;colormap&quot;];r[&quot;extend&quot;+t+&quot;colors&quot;]&amp;&amp;(i=l(i,&quot;icicle&quot;===t?p:&quot;treemap&quot;===t?h:f));var o,s=0;function c(t){var e=t.data.data,r=e.id;!1===e.color&amp;&amp;(a[r]?e.color=a[r]:t.parent?t.parent.parent?e.color=t.parent.data.data.color:(a[r]=e.color=i[s%i.length],s++):e.color=o)}for(var u=0;u&lt;n.length;u++){var d=n[u][0];d.trace.type===t&amp;&amp;d.hierarchy&amp;&amp;(o=d.trace.root.color,d.hierarchy.each(c))}},r.crossTraceCalc=function(t){return r._runCrossTraceCalc(&quot;sunburst&quot;,t)}},{&quot;../../components/colorscale&quot;:678,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../pie/calc&quot;:1194,&quot;d3-hierarchy&quot;:170,&quot;fast-isnumeric&quot;:249}],1333:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;linear&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;]}},{}],1334:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../../components/colorscale&quot;),l=s.hasColorscale,c=s.handleDefaults;e.exports=function(t,e,r,s){function u(r,a){return n.coerce(t,e,i,r,a)}var f=u(&quot;labels&quot;),h=u(&quot;parents&quot;);if(f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length){var p=u(&quot;values&quot;);p&amp;&amp;p.length?u(&quot;branchvalues&quot;):u(&quot;count&quot;),u(&quot;level&quot;),u(&quot;maxdepth&quot;),u(&quot;marker.line.width&quot;)&amp;&amp;u(&quot;marker.line.color&quot;,s.paper_bgcolor),u(&quot;marker.colors&quot;);var d=e._hasColorscale=l(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;d&amp;&amp;c(t,e,s,u,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),u(&quot;leaf.opacity&quot;,d?1:.7);var g=u(&quot;text&quot;);u(&quot;texttemplate&quot;),e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+label&quot;:&quot;label&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);o(t,e,s,u,&quot;auto&quot;,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),u(&quot;insidetextorientation&quot;),u(&quot;sort&quot;),u(&quot;rotation&quot;),u(&quot;root.color&quot;),a(e,s,u),e._length=null}else e.visible=!1}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;../bar/defaults&quot;:945,&quot;./attributes&quot;:1330}],1335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/events&quot;),c=t(&quot;./helpers&quot;),u=t(&quot;../pie/helpers&quot;).formatPieValue;function f(t,e,r){for(var n=t.data.data,i={curveNumber:e.index,pointNumber:n.i,data:e._input,fullData:e},o=0;o&lt;r.length;o++){var s=r[o];s in t&amp;&amp;(i[s]=t[s])}return&quot;parentString&quot;in t&amp;&amp;!c.isHierarchyRoot(t)&amp;&amp;(i.parent=t.parentString),a(i,e,n.i),i}e.exports=function(t,e,r,a,h){var p=a[0],d=p.trace,g=p.hierarchy,m=&quot;sunburst&quot;===d.type,v=&quot;treemap&quot;===d.type||&quot;icicle&quot;===d.type;&quot;_hasHoverLabel&quot;in d||(d._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in d||(d._hasHoverEvent=!1);t.on(&quot;mouseover&quot;,(function(i){var a=r._fullLayout;if(!r._dragging&amp;&amp;!1!==a.hovermode){var l,y=r._fullData[d.index],x=i.data.data,b=x.i,_=c.isHierarchyRoot(i),w=c.getParent(g,i),T=c.getValue(i),k=function(t){return s.castOption(y,b,t)},A=k(&quot;hovertemplate&quot;),M=o.castHoverinfo(y,a,b),S=a.separators;if(A||M&amp;&amp;&quot;none&quot;!==M&amp;&amp;&quot;skip&quot;!==M){var E,L;m&amp;&amp;(E=p.cx+i.pxmid[0]*(1-i.rInscribed),L=p.cy+i.pxmid[1]*(1-i.rInscribed)),v&amp;&amp;(E=i._hoverX,L=i._hoverY);var C,P={},I=[],O=[],z=function(t){return-1!==I.indexOf(t)};M&amp;&amp;(I=&quot;all&quot;===M?y._module.attributes.hoverinfo.flags:M.split(&quot;+&quot;)),P.label=x.label,z(&quot;label&quot;)&amp;&amp;P.label&amp;&amp;O.push(P.label),x.hasOwnProperty(&quot;v&quot;)&amp;&amp;(P.value=x.v,P.valueLabel=u(P.value,S),z(&quot;value&quot;)&amp;&amp;O.push(P.valueLabel)),P.currentPath=i.currentPath=c.getPath(i.data),z(&quot;current path&quot;)&amp;&amp;!_&amp;&amp;O.push(P.currentPath);var D=[],R=function(){-1===D.indexOf(C)&amp;&amp;(O.push(C),D.push(C))};P.percentParent=i.percentParent=T/c.getValue(w),P.parent=i.parentString=c.getPtLabel(w),z(&quot;percent parent&quot;)&amp;&amp;(C=c.formatPercent(P.percentParent,S)+&quot; of &quot;+P.parent,R()),P.percentEntry=i.percentEntry=T/c.getValue(e),P.entry=i.entry=c.getPtLabel(e),!z(&quot;percent entry&quot;)||_||i.onPathbar||(C=c.formatPercent(P.percentEntry,S)+&quot; of &quot;+P.entry,R()),P.percentRoot=i.percentRoot=T/c.getValue(g),P.root=i.root=c.getPtLabel(g),z(&quot;percent root&quot;)&amp;&amp;!_&amp;&amp;(C=c.formatPercent(P.percentRoot,S)+&quot; of &quot;+P.root,R()),P.text=k(&quot;hovertext&quot;)||k(&quot;text&quot;),z(&quot;text&quot;)&amp;&amp;(C=P.text,s.isValidTextValue(C)&amp;&amp;O.push(C)),l=[f(i,y,h.eventDataKeys)];var F={trace:y,y:L,_x0:i._x0,_x1:i._x1,_y0:i._y0,_y1:i._y1,text:O.join(&quot;&lt;br&gt;&quot;),name:A||z(&quot;name&quot;)?y.name:void 0,color:k(&quot;hoverlabel.bgcolor&quot;)||x.color,borderColor:k(&quot;hoverlabel.bordercolor&quot;),fontFamily:k(&quot;hoverlabel.font.family&quot;),fontSize:k(&quot;hoverlabel.font.size&quot;),fontColor:k(&quot;hoverlabel.font.color&quot;),nameLength:k(&quot;hoverlabel.namelength&quot;),textAlign:k(&quot;hoverlabel.align&quot;),hovertemplate:A,hovertemplateLabels:P,eventData:l};m&amp;&amp;(F.x0=E-i.rInscribed*i.rpx1,F.x1=E+i.rInscribed*i.rpx1,F.idealAlign=i.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;),v&amp;&amp;(F.x=E,F.idealAlign=E&lt;0?&quot;left&quot;:&quot;right&quot;);var B=[];o.loneHover(F,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r,inOut_bbox:B}),l[0].bbox=B[0],d._hasHoverLabel=!0}if(v){var N=t.select(&quot;path.surface&quot;);h.styleOne(N,i,y,{hovered:!0})}d._hasHoverEvent=!0,r.emit(&quot;plotly_hover&quot;,{points:l||[f(i,y,h.eventDataKeys)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(e){var i=r._fullLayout,a=r._fullData[d.index],s=n.select(this).datum();if(d._hasHoverEvent&amp;&amp;(e.originalEvent=n.event,r.emit(&quot;plotly_unhover&quot;,{points:[f(s,a,h.eventDataKeys)],event:n.event}),d._hasHoverEvent=!1),d._hasHoverLabel&amp;&amp;(o.loneUnhover(i._hoverlayer.node()),d._hasHoverLabel=!1),v){var l=t.select(&quot;path.surface&quot;);h.styleOne(l,s,a,{hovered:!1})}})),t.on(&quot;click&quot;,(function(t){var e=r._fullLayout,a=r._fullData[d.index],s=m&amp;&amp;(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),p=c.isEntry(t)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),v=c.getPtId(p),y={points:[f(t,a,h.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,&quot;plotly_&quot;+d.type+&quot;click&quot;,y);if(!1!==x&amp;&amp;e.hovermode&amp;&amp;(r._hoverdata=[f(t,a,h.eventDataKeys)],o.click(r,n.event)),!s&amp;&amp;!1!==x&amp;&amp;!r._dragging&amp;&amp;!r._transitioning){i.call(&quot;_storeDirectGUIEdit&quot;,a,e._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[d.index]},_={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:&quot;immediate&quot;,fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call(&quot;animate&quot;,r,b,_)}}))}},{&quot;../../components/fx&quot;:706,&quot;../../components/fx/helpers&quot;:702,&quot;../../lib&quot;:803,&quot;../../lib/events&quot;:792,&quot;../../registry&quot;:931,&quot;../pie/helpers&quot;:1197,&quot;./helpers&quot;:1336,&quot;@plotly/d3&quot;:58}],1336:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib/setcursor&quot;),o=t(&quot;../pie/helpers&quot;);function s(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&amp;&amp;t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a&lt;i.length;a++){var o=i[a];if(r.getPtId(o)===e)return n=t.copy()}})),n||t},r.isEntry=function(t){return!t.parent},r.isLeaf=function(t){return!t.children},r.getPtId=function(t){return t.data.data.id},r.getPtLabel=function(t){return t.data.data.label},r.getValue=function(t){return t.value},r.isHierarchyRoot=function(t){return&quot;&quot;===s(t)},r.setSliceCursor=function(t,e,n){var i=n.isTransitioning;if(!i){var o=t.datum();i=n.hideOnRoot&amp;&amp;r.isHierarchyRoot(o)||n.hideOnLeaves&amp;&amp;r.isLeaf(o)}a(t,i?null:&quot;pointer&quot;)},r.getInsideTextFontKey=function(t,e,r,i,a){var o=(a||{}).onPathbar?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;,s=r.data.data.i;return n.castOption(e,s,o+&quot;.&quot;+t)||n.castOption(e,s,&quot;textfont.&quot;+t)||i.size},r.getOutsideTextFontKey=function(t,e,r,i){var a=r.data.data.i;return n.castOption(e,a,&quot;outsidetextfont.&quot;+t)||n.castOption(e,a,&quot;textfont.&quot;+t)||i.size},r.isOutsideText=function(t,e){return!t._hasColorscale&amp;&amp;r.isHierarchyRoot(e)},r.determineTextFont=function(t,e,a,o){return r.isOutsideText(t,e)?function(t,e,n){return{color:r.getOutsideTextFontKey(&quot;color&quot;,t,e,n),family:r.getOutsideTextFontKey(&quot;family&quot;,t,e,n),size:r.getOutsideTextFontKey(&quot;size&quot;,t,e,n)}}(t,e,a):function(t,e,a,o){var s=(o||{}).onPathbar,l=e.data.data,c=l.i,u=n.castOption(t,c,(s?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;)+&quot;.color&quot;);return!u&amp;&amp;t._input.textfont&amp;&amp;(u=n.castOption(t._input,c,&quot;textfont.color&quot;)),{color:u||i.contrast(l.color),family:r.getInsideTextFontKey(&quot;family&quot;,t,e,a,o),size:r.getInsideTextFontKey(&quot;size&quot;,t,e,a,o)}}(t,e,a,o)},r.hasTransition=function(t){return!!(t&amp;&amp;t.duration&gt;0)},r.getMaxDepth=function(t){return t.maxdepth&gt;=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,s(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,&quot;label&quot;).join(&quot;/&quot;)+&quot;/&quot;},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return&quot;0%&quot;===r&amp;&amp;(r=o.formatPiePercent(t,e)),r}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../lib/setcursor&quot;:824,&quot;../pie/helpers&quot;:1197}],1337:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;sunburst&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1330,&quot;./base_plot&quot;:1331,&quot;./calc&quot;:1332,&quot;./defaults&quot;:1334,&quot;./layout_attributes&quot;:1338,&quot;./layout_defaults&quot;:1339,&quot;./plot&quot;:1340,&quot;./style&quot;:1341}],1338:[function(t,e,r){&quot;use strict&quot;;e.exports={sunburstcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendsunburstcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1339:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;sunburstcolorway&quot;,e.colorway),r(&quot;extendsunburstcolors&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1338}],1340:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-hierarchy&quot;),a=t(&quot;d3-interpolate&quot;).interpolate,o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/uniform_text&quot;),u=c.recordMinTextSize,f=c.clearMinTextSize,h=t(&quot;../pie/plot&quot;),p=t(&quot;../pie/helpers&quot;).getRotationAngle,d=h.computeTransform,g=h.transformInsideText,m=t(&quot;./style&quot;).styleOne,v=t(&quot;../bar/style&quot;).resizeText,y=t(&quot;./fx&quot;),x=t(&quot;./constants&quot;),b=t(&quot;./helpers&quot;);function _(t,e,c,f){var h=t._fullLayout,v=!h.uniformtext.mode&amp;&amp;b.hasTransition(f),_=n.select(c).selectAll(&quot;g.slice&quot;),T=e[0],k=T.trace,A=T.hierarchy,M=b.findEntryWithLevel(A,k.level),S=b.getMaxDepth(k),E=h._size,L=k.domain,C=E.w*(L.x[1]-L.x[0]),P=E.h*(L.y[1]-L.y[0]),I=.5*Math.min(C,P),O=T.cx=E.l+E.w*(L.x[1]+L.x[0])/2,z=T.cy=E.t+E.h*(1-L.y[0])-P/2;if(!M)return _.remove();var D=null,R={};v&amp;&amp;_.each((function(t){R[b.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!D&amp;&amp;b.isEntry(t)&amp;&amp;(D=t)}));var F=function(t){return i.partition().size([2*Math.PI,t.height+1])(t)}(M).descendants(),B=M.height+1,N=0,j=S;T.hasMultipleRoots&amp;&amp;b.isHierarchyRoot(M)&amp;&amp;(F=F.slice(1),B-=1,N=1,j+=1),F=F.filter((function(t){return t.y1&lt;=j}));var U=p(k.rotation);U&amp;&amp;F.forEach((function(t){t.x0+=U,t.x1+=U}));var V=Math.min(B,S),q=function(t){return(t-N)/V*I},H=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},G=function(t){return s.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,O,z)},Y=function(t){return O+w(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},W=function(t){return z+w(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(_=_.data(F,b.getPtId)).enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v?_.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=b.getPtId(t),n=R[r],i=R[b.getPtId(M)];if(i){var o=(t.x1&gt;i.x1?2*Math.PI:0)+U;e=t.rpx1&lt;i.rpx1?{x0:t.x0,x1:t.x1,rpx0:0,rpx1:0}:{x0:o,x1:o,rpx0:t.rpx0,rpx1:t.rpx1}}else{var s,l=b.getPtId(t.parent);_.each((function(t){if(b.getPtId(t)===l)return s=t}));var c,u=s.children;u.forEach((function(t,e){if(b.getPtId(t)===r)return c=e}));var f=u.length,h=a(s.x0,s.x1);e={rpx0:I,rpx1:I,x0:h(c/f),x1:h((c+1)/f)}}return a(n,e)}(t);return function(t){return G(e(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():_.exit().remove(),_.order();var X=null;if(v&amp;&amp;D){var Z=b.getPtId(D);_.each((function(t){null===X&amp;&amp;b.getPtId(t)===Z&amp;&amp;(X=t.x1)}))}var J=_;function K(t){var e=t.parent,r=R[b.getPtId(e)],n={};if(r){var i=e.children,o=i.indexOf(t),s=i.length,l=a(r.x0,r.x1);n.x0=l(o/s),n.x1=l(o/s)}else n.x0=n.x1=0;return n}v&amp;&amp;(J=J.transition().each(&quot;end&quot;,(function(){var e=n.select(this);b.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),J.each((function(i){var c=n.select(this),f=s.ensureSingle(c,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.rpx0=q(i.y0),i.rpx1=q(i.y1),i.xmid=(i.x0+i.x1)/2,i.pxmid=H(i.rpx1,i.xmid),i.midangle=-(i.xmid-Math.PI/2),i.startangle=-(i.x0-Math.PI/2),i.stopangle=-(i.x1-Math.PI/2),i.halfangle=.5*Math.min(s.angleDelta(i.x0,i.x1)||Math.PI,Math.PI),i.ring=1-i.rpx0/i.rpx1,i.rInscribed=function(t){return 0===t.rpx0&amp;&amp;s.isFullCircle([t.x0,t.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2))}(i),v?f.transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=R[b.getPtId(t)],n={x0:t.x0,x1:t.x1,rpx0:t.rpx0,rpx1:t.rpx1};if(r)e=r;else if(D)if(t.parent)if(X){var i=(t.x1&gt;X?2*Math.PI:0)+U;e={x0:i,x1:i}}else e={rpx0:I,rpx1:I},s.extendFlat(e,K(t));else e={rpx0:0,rpx1:0};else e={x0:U,x1:U};return a(e,n)}(t);return function(t){return G(e(t))}})):f.attr(&quot;d&quot;,G),c.call(y,M,t,e,{eventDataKeys:x.eventDataKeys,transitionTime:x.CLICK_TRANSITION_TIME,transitionEasing:x.CLICK_TRANSITION_EASING}).call(b.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),f.call(m,i,k);var p=s.ensureSingle(c,&quot;g&quot;,&quot;slicetext&quot;),_=s.ensureSingle(p,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),w=s.ensureUniformFontSize(t,b.determineTextFont(k,i,h.font));_.text(r.formatSliceLabel(i,M,k,e,h)).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(o.font,w).call(l.convertToTspans,t);var A=o.bBox(_.node());i.transform=g(A,i,T),i.transform.targetX=Y(i),i.transform.targetY=W(i);var S=function(t,e){var r=t.transform;return d(r,e),r.fontSize=w.size,u(k.type,r,h),s.getTextTransform(r)};v?_.transition().attrTween(&quot;transform&quot;,(function(t){var e=function(t){var e,r=R[b.getPtId(t)],n=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:n.textPosAngle,scale:0,rotate:n.rotate,rCenter:n.rCenter,x:n.x,y:n.y}},D)if(t.parent)if(X){var i=t.x1&gt;X?2*Math.PI:0;e.x0=e.x1=i}else s.extendFlat(e,K(t));else e.x0=e.x1=U;else e.x0=e.x1=U;var o=a(e.transform.textPosAngle,t.transform.textPosAngle),l=a(e.rpx1,t.rpx1),c=a(e.x0,t.x0),f=a(e.x1,t.x1),p=a(e.transform.scale,n.scale),d=a(e.transform.rotate,n.rotate),g=0===n.rCenter?3:0===e.transform.rCenter?1/3:1,m=a(e.transform.rCenter,n.rCenter);return function(t){var e=l(t),r=c(t),i=f(t),a=function(t){return m(Math.pow(t,g))}(t),s={pxmid:H(e,(r+i)/2),rpx1:e,transform:{textPosAngle:o(t),rCenter:a,x:n.x,y:n.y}};return u(k.type,n,h),{transform:{targetX:Y(s),targetY:W(s),scale:p(t),rotate:d(t),rCenter:a}}}}(t);return function(t){return S(e(t),A)}})):_.attr(&quot;transform&quot;,S(i,A))}))}function w(t){return e=t.rpx1,r=t.transform.textPosAngle,[e*Math.sin(r),-e*Math.cos(r)];var e,r}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,u=!s.uniformtext.mode&amp;&amp;b.hasTransition(r);(f(&quot;sunburst&quot;,s),(a=l.selectAll(&quot;g.trace.sunburst&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;sunburst&quot;,!0).attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),a.order(),u)?(i&amp;&amp;(o=i()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){o&amp;&amp;o()})).each(&quot;interrupt&quot;,(function(){o&amp;&amp;o()})).each((function(){l.selectAll(&quot;g.trace&quot;).each((function(e){_(t,e,this,r)}))}))):(a.each((function(e){_(t,e,this,r)})),s.uniformtext.mode&amp;&amp;v(t,s._sunburstlayer.selectAll(&quot;.trace&quot;),&quot;sunburst&quot;));c&amp;&amp;a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!(a||o&amp;&amp;&quot;none&quot;!==o))return&quot;&quot;;var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,h=b.isHierarchyRoot(t),p=b.getParent(f,t),d=b.getValue(t);if(!a){var g,m=o.split(&quot;+&quot;),v=function(t){return-1!==m.indexOf(t)},y=[];if(v(&quot;label&quot;)&amp;&amp;u.label&amp;&amp;y.push(u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;v(&quot;value&quot;)&amp;&amp;y.push(b.formatValue(u.v,l)),!h){v(&quot;current path&quot;)&amp;&amp;y.push(b.getPath(t.data));var x=0;v(&quot;percent parent&quot;)&amp;&amp;x++,v(&quot;percent entry&quot;)&amp;&amp;x++,v(&quot;percent root&quot;)&amp;&amp;x++;var _=x&gt;1;if(x){var w,T=function(t){g=b.formatPercent(w,l),_&amp;&amp;(g+=&quot; of &quot;+t),y.push(g)};v(&quot;percent parent&quot;)&amp;&amp;!h&amp;&amp;(w=d/b.getValue(p),T(&quot;parent&quot;)),v(&quot;percent entry&quot;)&amp;&amp;(w=d/b.getValue(e),T(&quot;entry&quot;)),v(&quot;percent root&quot;)&amp;&amp;(w=d/b.getValue(f),T(&quot;root&quot;))}}return v(&quot;text&quot;)&amp;&amp;(g=s.castOption(r,u.i,&quot;text&quot;),s.isValidTextValue(g)&amp;&amp;y.push(g)),y.join(&quot;&lt;br&gt;&quot;)}var k=s.castOption(r,u.i,&quot;texttemplate&quot;);if(!k)return&quot;&quot;;var A={};u.label&amp;&amp;(A.label=u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;(A.value=u.v,A.valueLabel=b.formatValue(u.v,l)),A.currentPath=b.getPath(t.data),h||(A.percentParent=d/b.getValue(p),A.percentParentLabel=b.formatPercent(A.percentParent,l),A.parent=b.getPtLabel(p)),A.percentEntry=d/b.getValue(e),A.percentEntryLabel=b.formatPercent(A.percentEntry,l),A.entry=b.getPtLabel(e),A.percentRoot=d/b.getValue(f),A.percentRootLabel=b.formatPercent(A.percentRoot,l),A.root=b.getPtLabel(f),u.hasOwnProperty(&quot;color&quot;)&amp;&amp;(A.color=u.color);var M=s.castOption(r,u.i,&quot;text&quot;);return(s.isValidTextValue(M)||&quot;&quot;===M)&amp;&amp;(A.text=M),A.customdata=s.castOption(r,u.i,&quot;customdata&quot;),s.texttemplateString(k,A,i._d3locale,A,r._meta||{})}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../bar/style&quot;:955,&quot;../bar/uniform_text&quot;:957,&quot;../pie/helpers&quot;:1197,&quot;../pie/plot&quot;:1201,&quot;./constants&quot;:1333,&quot;./fx&quot;:1335,&quot;./helpers&quot;:1336,&quot;./style&quot;:1341,&quot;@plotly/d3&quot;:58,&quot;d3-hierarchy&quot;:170,&quot;d3-interpolate&quot;:171}],1341:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;sunburst&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1342:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../plot_api/edit_types&quot;).overrideAll;function u(t){return{show:{valType:&quot;boolean&quot;,dflt:!1},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;},project:{x:{valType:&quot;boolean&quot;,dflt:!1},y:{valType:&quot;boolean&quot;,dflt:!1},z:{valType:&quot;boolean&quot;,dflt:!1}},color:{valType:&quot;color&quot;,dflt:n.defaultLine},usecolormap:{valType:&quot;boolean&quot;,dflt:!1},width:{valType:&quot;number&quot;,min:1,max:16,dflt:2},highlight:{valType:&quot;boolean&quot;,dflt:!0},highlightcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},highlightwidth:{valType:&quot;number&quot;,min:1,max:16,dflt:2}}}var f=e.exports=c(l({z:{valType:&quot;data_array&quot;},x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:o(),xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),zhoverformat:a(&quot;z&quot;),connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},surfacecolor:{valType:&quot;data_array&quot;}},i(&quot;&quot;,{colorAttr:&quot;z or surfacecolor&quot;,showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}),{contours:{x:u(),y:u(),z:u()},hidesurface:{valType:&quot;boolean&quot;,dflt:!1},lightposition:{x:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:10},y:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:1e4},z:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},diffuse:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},specular:{valType:&quot;number&quot;,min:0,max:2,dflt:.05},roughness:{valType:&quot;number&quot;,min:0,max:1,dflt:.5},fresnel:{valType:&quot;number&quot;,min:0,max:5,dflt:.2}},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},opacityscale:{valType:&quot;any&quot;,editType:&quot;calc&quot;},_deprecated:{zauto:l({},i.zauto,{}),zmin:l({},i.zmin,{}),zmax:l({},i.zmax,{})},hoverinfo:l({},s.hoverinfo),showlegend:l({},s.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);f.x.editType=f.y.editType=f.z.editType=&quot;calc+clearAxisTypes&quot;,f.transforms=void 0},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926}],1343:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:&quot;&quot;,cLetter:&quot;c&quot;}):n(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:674}],1344:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-surface3d&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;ndarray-linear-interpolate&quot;).d2,o=t(&quot;../heatmap/interp2d&quot;),s=t(&quot;../heatmap/find_empties&quot;),l=t(&quot;../../lib&quot;).isArrayOrTypedArray,c=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,u=t(&quot;../../lib/str2rgbarray&quot;),f=t(&quot;../../components/colorscale&quot;).extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=h.prototype;p.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},p.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},p.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&amp;&amp;this.data.connectgaps&amp;&amp;this.data._interpolatedZ&amp;&amp;(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},p.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a&lt;3;a++){var o=t.dataCoordinate[a];null!=o&amp;&amp;(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&amp;&amp;s[i]&amp;&amp;void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||&quot;&quot;,t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function g(t,e){if(t&lt;e)return 0;for(var r=0;0===Math.floor(t%e);)t/=e,r++;return r}function m(t){for(var e=[],r=0;r&lt;d.length;r++){var n=d[r];e.push(g(t,n))}return e}function v(t){for(var e=m(t),r=t,n=0;n&lt;d.length;n++)if(e[n]&gt;0){r=d[n];break}return r}function y(t,e){if(!(t&lt;1||e&lt;1)){for(var r=m(t),n=m(e),i=1,a=0;a&lt;d.length;a++)i*=Math.pow(d[a],Math.max(r[a],n[a]));return i}}p.calcXnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getXat(e-1,0),i=this.getXat(e,0);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r},p.calcYnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getYat(0,e-1),i=this.getYat(0,e);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r};var x=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],b=x[9],_=x[13];function w(t,e,r){var n=r[8]+r[2]*e[0]+r[5]*e[1];return t[0]=(r[6]+r[0]*e[0]+r[3]*e[1])/n,t[1]=(r[7]+r[1]*e[0]+r[4]*e[1])/n,t}function T(t,e,r){return function(t,e,r,n){for(var i=[0,0],o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++)r(i,[l,c],n),t.set(l,c,a(e,i[0],i[1]))}(t,e,w,r),t}function k(t,e){for(var r=!1,n=0;n&lt;t.length;n++)if(e===t[n]){r=!0;break}!1===r&amp;&amp;t.push(e)}p.estimateScale=function(t,e){for(var r=1+function(t){if(0!==t.length){for(var e=1,r=0;r&lt;t.length;r++)e=y(e,t[r]);return e}}(0===e?this.calcXnums(t):this.calcYnums(t));r&lt;b;)r*=2;for(;r&gt;_;)r--,r/=v(r),++r&lt;b&amp;&amp;(r=_);var n=Math.round(r/t);return n&gt;1?n:1},p.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],h=0;h&lt;t.length;++h){this.surface.padField(u,t[h]);var p=i(new Float32Array(o*s),[o,s]);T(p,u,f),t[h]=p}},p.setContourLevels=function(){var t,e,r,n=[[],[],[]],i=[!1,!1,!1],a=!1;for(t=0;t&lt;3;++t)if(this.showContour[t]&amp;&amp;(a=!0,this.contourSize[t]&gt;0&amp;&amp;null!==this.contourStart[t]&amp;&amp;null!==this.contourEnd[t]&amp;&amp;this.contourEnd[t]&gt;this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];e&lt;this.contourEnd[t];e+=this.contourSize[t])r=e*this.scene.dataScale[t],k(n[t],r);if(a){var o=[[],[],[]];for(t=0;t&lt;3;++t)this.showContour[t]&amp;&amp;(o[t]=i[t]?n[t]:this.scene.contourLevels[t]);this.surface.update({levels:o})}},p.update=function(t){var e,r,n,a,l=this.scene,h=l.fullSceneLayout,p=this.surface,d=c(t),g=l.dataScale,m=t.z[0].length,v=t._ylength,y=l.contourLevels;this.data=t;var x=[];for(e=0;e&lt;3;e++)for(x[e]=[],r=0;r&lt;m;r++)x[e][r]=[];for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)x[0][r][n]=this.getXat(r,n,t.xcalendar,h.xaxis),x[1][r][n]=this.getYat(r,n,t.ycalendar,h.yaxis),x[2][r][n]=this.getZat(r,n,t.zcalendar,h.zaxis);if(t.connectgaps)for(t._emptypoints=s(x[2]),o(x[2],t._emptypoints),t._interpolatedZ=[],r=0;r&lt;m;r++)for(t._interpolatedZ[r]=[],n=0;n&lt;v;n++)t._interpolatedZ[r][n]=x[2][r][n];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null==(a=x[e][r][n])?x[e][r][n]=NaN:a=x[e][r][n]*=g[e];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(this.minValues[e]&gt;a&amp;&amp;(this.minValues[e]=a),this.maxValues[e]&lt;a&amp;&amp;(this.maxValues[e]=a));for(e=0;e&lt;3;e++)this.objectOffset[e]=.5*(this.minValues[e]+this.maxValues[e]);for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(x[e][r][n]-=this.objectOffset[e]);var b=[i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v])];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)b[e].set(r,n,x[e][r][n]);x=[];var w={colormap:d,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:t.opacityscale,opacity:t.opacity},T=f(t);if(w.intensityBounds=[T.min,T.max],t.surfacecolor){var k=i(new Float32Array(m*v),[m,v]);for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)k.set(r,n,t.surfacecolor[n][r]);b.push(k)}else w.intensityBounds[0]*=g[2],w.intensityBounds[1]*=g[2];(_&lt;b[0].shape[0]||_&lt;b[0].shape[1])&amp;&amp;(this.refineData=!1),!0===this.refineData&amp;&amp;(this.dataScaleX=this.estimateScale(b[0].shape[0],0),this.dataScaleY=this.estimateScale(b[0].shape[1],1),1===this.dataScaleX&amp;&amp;1===this.dataScaleY||this.refineCoords(b)),t.surfacecolor&amp;&amp;(w.intensity=b.pop());var A=[!0,!0,!0],M=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(e=0;e&lt;3;++e){var S=t.contours[M[e]];A[e]=S.highlight,w.showContour[e]=S.show||S.highlight,w.showContour[e]&amp;&amp;(w.contourProject[e]=[S.project.x,S.project.y,S.project.z],S.show?(this.showContour[e]=!0,w.levels[e]=y[e],p.highlightColor[e]=w.contourColor[e]=u(S.color),S.usecolormap?p.highlightTint[e]=w.contourTint[e]=0:p.highlightTint[e]=w.contourTint[e]=1,w.contourWidth[e]=S.width,this.contourStart[e]=S.start,this.contourEnd[e]=S.end,this.contourSize[e]=S.size):(this.showContour[e]=!1,this.contourStart[e]=null,this.contourEnd[e]=null,this.contourSize[e]=0),S.highlight&amp;&amp;(w.dynamicColor[e]=u(S.highlightcolor),w.dynamicWidth[e]=S.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&amp;&amp;e[1]===r[1]&amp;&amp;e[2]===r[2]&amp;&amp;e[3]===r[3]})(d)&amp;&amp;(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=b,p.update(w),p.visible=t.visible,p.enableDynamic=A,p.enableHighlight=A,p.snapToData=!0,&quot;lighting&quot;in t&amp;&amp;(p.ambientLight=t.lighting.ambient,p.diffuseLight=t.lighting.diffuse,p.specularLight=t.lighting.specular,p.roughness=t.lighting.roughness,p.fresnel=t.lighting.fresnel),&quot;lightposition&quot;in t&amp;&amp;(p.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z])},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../lib/gl_format_color&quot;:799,&quot;../../lib/str2rgbarray&quot;:828,&quot;../heatmap/find_empties&quot;:1091,&quot;../heatmap/interp2d&quot;:1094,&quot;gl-surface3d&quot;:354,ndarray:483,&quot;ndarray-linear-interpolate&quot;:477}],1345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){var i=n(&quot;opacityscale&quot;);&quot;max&quot;===i?e.opacityscale=[[0,.1],[1,1]]:&quot;min&quot;===i?e.opacityscale=[[0,1],[1,.1]]:&quot;extremes&quot;===i?e.opacityscale=function(t,e){for(var r=[],n=0;n&lt;32;n++){var i=n/31,a=e+(1-e)*(1-Math.pow(Math.sin(t*i*Math.PI),2));r.push([i,Math.max(0,Math.min(1,a))])}return r}(1,.1):function(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var n=t[r];if(2!==n.length||+n[0]&lt;e)return!1;e=+n[0]}return!0}(i)||(e.opacityscale=void 0)}function l(t,e,r){e in t&amp;&amp;!(r in t)&amp;&amp;(t[r]=t[e])}e.exports={supplyDefaults:function(t,e,r,c){var u,f;function h(r,n){return i.coerce(t,e,o,r,n)}var p=h(&quot;x&quot;),d=h(&quot;y&quot;),g=h(&quot;z&quot;);if(!g||!g.length||p&amp;&amp;p.length&lt;1||d&amp;&amp;d.length&lt;1)e.visible=!1;else{e._xlength=Array.isArray(p)&amp;&amp;i.isArrayOrTypedArray(p[0])?g.length:g[0].length,e._ylength=g.length,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],c),h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),h(&quot;xhoverformat&quot;),h(&quot;yhoverformat&quot;),h(&quot;zhoverformat&quot;),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;hidesurface&quot;,&quot;connectgaps&quot;,&quot;opacity&quot;].forEach((function(t){h(t)}));var m=h(&quot;surfacecolor&quot;),v=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(u=0;u&lt;3;++u){var y=&quot;contours.&quot;+v[u],x=h(y+&quot;.show&quot;),b=h(y+&quot;.highlight&quot;);if(x||b)for(f=0;f&lt;3;++f)h(y+&quot;.project.&quot;+v[f]);x&amp;&amp;(h(y+&quot;.color&quot;),h(y+&quot;.width&quot;),h(y+&quot;.usecolormap&quot;)),b&amp;&amp;(h(y+&quot;.highlightcolor&quot;),h(y+&quot;.highlightwidth&quot;)),h(y+&quot;.start&quot;),h(y+&quot;.end&quot;),h(y+&quot;.size&quot;)}m||(l(t,&quot;zmin&quot;,&quot;cmin&quot;),l(t,&quot;zmax&quot;,&quot;cmax&quot;),l(t,&quot;zauto&quot;,&quot;cauto&quot;)),a(t,e,c,h,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(t,e,c,h),e._length=null}},opacityscaleDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:1342}],1346:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;surface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1342,&quot;./calc&quot;:1343,&quot;./convert&quot;:1344,&quot;./defaults&quot;:1345}],1347:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/annotations/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionOnlyNumbers;(e.exports=a({domain:s({name:&quot;table&quot;,trace:!0}),columnwidth:{valType:&quot;number&quot;,arrayOk:!0,dflt:null},columnorder:{valType:&quot;data_array&quot;},header:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[],description:l(&quot;cell value&quot;)},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[],description:l(&quot;cell value&quot;)},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))}},&quot;calc&quot;,&quot;from-root&quot;)).transforms=void 0},{&quot;../../components/annotations/attributes&quot;:649,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883}],1348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;table&quot;,r.plot=function(t){var e=n(t.calcdata,&quot;table&quot;)[0];e.length&amp;&amp;i(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;table&quot;),a=e._has&amp;&amp;e._has(&quot;table&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.table&quot;).remove()}},{&quot;../../plots/get_data&quot;:891,&quot;./plot&quot;:1355}],1349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(){return n({})}},{&quot;../../lib/gup&quot;:800}],1350:[function(t,e,r){&quot;use strict&quot;;e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:&quot;&lt;br&gt;&quot;,maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:&quot;cubic-out&quot;,scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:&quot;cubic-out&quot;,uplift:5,wrapSpacer:&quot; &quot;,wrapSplitCharacter:&quot; &quot;,cn:{table:&quot;table&quot;,tableControlView:&quot;table-control-view&quot;,scrollBackground:&quot;scroll-background&quot;,yColumn:&quot;y-column&quot;,columnBlock:&quot;column-block&quot;,scrollAreaClip:&quot;scroll-area-clip&quot;,scrollAreaClipRect:&quot;scroll-area-clip-rect&quot;,columnBoundary:&quot;column-boundary&quot;,columnBoundaryClippath:&quot;column-boundary-clippath&quot;,columnBoundaryRect:&quot;column-boundary-rect&quot;,columnCells:&quot;column-cells&quot;,columnCell:&quot;column-cell&quot;,cellRect:&quot;cell-rect&quot;,cellText:&quot;cell-text&quot;,cellTextHolder:&quot;cell-text-holder&quot;,scrollbarKit:&quot;scrollbar-kit&quot;,scrollbar:&quot;scrollbar&quot;,scrollbarSlider:&quot;scrollbar-slider&quot;,scrollbarGlyph:&quot;scrollbar-glyph&quot;,scrollbarCaptureZone:&quot;scrollbar-capture-zone&quot;}}},{}],1351:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;fast-isnumeric&quot;);function o(t){if(Array.isArray(t)){for(var e=0,r=0;r&lt;t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e&lt;r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e&lt;r.length;e++){var a=i-r[e].length;a&amp;&amp;(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=&quot;&quot;;return e}function u(t){return t.calcdata.columns.reduce((function(e,r){return r.xIndex&lt;t.xIndex?e+r.columnWidth:e}),0)}function f(t,e){return Object.keys(t).map((function(r){return i({},t[r],{auxiliaryBlocks:e})}))}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c&lt;t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)&gt;=e||c===t.length-1)&amp;&amp;(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&amp;&amp;!d[0].length&amp;&amp;(d[0]=[&quot;&quot;],d=l(d));var g=d.concat(p(r).map((function(){return c((d[0]||[&quot;&quot;]).length)}))),m=e.domain,v=Math.floor(t._fullLayout._size.w*(m.x[1]-m.x[0])),y=Math.floor(t._fullLayout._size.h*(m.y[1]-m.y[0])),x=e.header.values.length?g[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return e.cells.height})):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),T=f(h(x,_),[]),k=f(w,T),A={},M=e._fullInput.columnorder.concat(p(r.map((function(t,e){return e})))),S=g.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var L=Math.max(o(e.header.line.width),o(e.cells.line.width)),C={key:e.uid+t._context.staticPlot,translateX:m.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-m.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:L,height:y,columnOrder:M,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map((function(t){return t[0]})),gdColumnsOriginalOrder:g.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(t,e){var r=A[t];return A[t]=(r||0)+1,{key:t+&quot;__&quot;+A[t],label:t,specIndex:e,xIndex:M[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return C.columns.forEach((function(t){t.calcdata=C,t.x=u(t)})),C}},{&quot;../../lib/extend&quot;:793,&quot;./constants&quot;:1350,&quot;fast-isnumeric&quot;:249}],1352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:&quot;header&quot;,type:&quot;header&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:&quot;cells1&quot;,type:&quot;cells&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:&quot;cells2&quot;,type:&quot;cells&quot;,page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+(&quot;string&quot;==typeof r&amp;&amp;r.match(/[&lt;$&amp;&gt; ]/)?&quot;_keybuster_&quot;+Math.random():&quot;&quot;),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{&quot;../../lib/extend&quot;:793}],1353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(&quot;columnwidth&quot;),s(&quot;header.values&quot;),s(&quot;header.format&quot;),s(&quot;header.align&quot;),s(&quot;header.prefix&quot;),s(&quot;header.suffix&quot;),s(&quot;header.height&quot;),s(&quot;header.line.width&quot;),s(&quot;header.line.color&quot;),s(&quot;header.fill.color&quot;),n.coerceFont(s,&quot;header.font&quot;,n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s&lt;n;s++)o.push(s);e(&quot;columnorder&quot;,o)}(e,s),s(&quot;cells.values&quot;),s(&quot;cells.format&quot;),s(&quot;cells.align&quot;),s(&quot;cells.prefix&quot;),s(&quot;cells.suffix&quot;),s(&quot;cells.height&quot;),s(&quot;cells.line.width&quot;),s(&quot;cells.line.color&quot;),s(&quot;cells.fill.color&quot;),n.coerceFont(s,&quot;cells.font&quot;,n.extendFlat({},o.font)),e._length=null}},{&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;./attributes&quot;:1347}],1354:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;table&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1347,&quot;./base_plot&quot;:1348,&quot;./calc&quot;:1349,&quot;./defaults&quot;:1353,&quot;./plot&quot;:1355}],1355:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;@plotly/d3&quot;),a=t(&quot;../../lib&quot;).numberFormat,o=t(&quot;../../lib/gup&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;).raiseToTop,u=t(&quot;../../lib&quot;).strTranslate,f=t(&quot;../../lib&quot;).cancelTransition,h=t(&quot;./data_preparation_helper&quot;),p=t(&quot;./data_split_helpers&quot;),d=t(&quot;../../components/color&quot;);function g(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function m(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_scrollAreaBottomClip_&quot;+e.key}function v(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_columnBoundaryClippath_&quot;+e.calcdata.key+&quot;_&quot;+e.specIndex}function y(t){return[].concat.apply([],t.map((function(t){return t}))).map((function(t){return t.__data__}))}function x(t,e,r){var a=t.selectAll(&quot;.&quot;+n.cn.scrollbarKit).data(o.repeat,o.keyFun);a.enter().append(&quot;g&quot;).classed(n.cn.scrollbarKit,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),a.each((function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return D(e,e.length-1)+(e.length?R(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-S(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom})).attr(&quot;transform&quot;,(function(t){var e=t.width+n.scrollbarWidth/2+n.scrollbarOffset;return u(e,S(t))}));var s=a.selectAll(&quot;.&quot;+n.cn.scrollbar).data(o.repeat,o.keyFun);s.enter().append(&quot;g&quot;).classed(n.cn.scrollbar,!0);var l=s.selectAll(&quot;.&quot;+n.cn.scrollbarSlider).data(o.repeat,o.keyFun);l.enter().append(&quot;g&quot;).classed(n.cn.scrollbarSlider,!0),l.attr(&quot;transform&quot;,(function(t){return u(0,t.scrollbarState.topY||0)}));var c=l.selectAll(&quot;.&quot;+n.cn.scrollbarGlyph).data(o.repeat,o.keyFun);c.enter().append(&quot;line&quot;).classed(n.cn.scrollbarGlyph,!0).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,n.scrollbarWidth).attr(&quot;stroke-linecap&quot;,&quot;round&quot;).attr(&quot;y1&quot;,n.scrollbarWidth/2),c.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2})).attr(&quot;stroke-opacity&quot;,(function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4})),c.transition().delay(0).duration(0),c.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(&quot;stroke-opacity&quot;,0);var f=s.selectAll(&quot;.&quot;+n.cn.scrollbarCaptureZone).data(o.repeat,o.keyFun);f.enter().append(&quot;line&quot;).classed(n.cn.scrollbarCaptureZone,!0).attr(&quot;stroke&quot;,&quot;white&quot;).attr(&quot;stroke-opacity&quot;,.01).attr(&quot;stroke-width&quot;,n.scrollbarCaptureWidth).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;).attr(&quot;y1&quot;,0).on(&quot;mousedown&quot;,(function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY&lt;=s&amp;&amp;s&lt;=o.bottomY||L(e,t,null,l(s-o.barLength/2))(r)})).call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t})).on(&quot;drag&quot;,L(e,t)).on(&quot;dragend&quot;,(function(){}))),f.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.scrollableAreaHeight})),e._context.staticPlot&amp;&amp;(c.remove(),f.remove())}function b(t,e,r,a){var l=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCell).data(p.splitToCells,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCells).data(o.repeat,o.keyFun);return e.enter().append(&quot;g&quot;).classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each((function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:T(r.size,n,e),color:T(r.color,n,e),family:T(r.family,n,e)};t.rowNumber=t.key,t.align=T(t.calcdata.cells.align,n,e),t.cellBorderWidth=T(t.calcdata.cells.line.width,n,e),t.font=i}))}(l),function(t){t.attr(&quot;width&quot;,(function(t){return t.column.columnWidth})).attr(&quot;stroke-width&quot;,(function(t){return t.cellBorderWidth})).each((function(t){var e=i.select(this);d.stroke(e,T(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),d.fill(e,T(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))}))}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellRect).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;rect&quot;).classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellText).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;text&quot;).classed(n.cn.cellText,!0).style(&quot;cursor&quot;,(function(){return&quot;auto&quot;})).on(&quot;mousedown&quot;,(function(){i.event.stopPropagation()})),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellTextHolder).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.cellTextHolder,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),e}(l));!function(t){t.each((function(t){s.font(i.select(this),t.font)}))}(c),_(c,e,a,t),z(l)}function _(t,e,r,o){t.text((function(t){var e=t.column.specIndex,r=t.rowNumber,i=t.value,o=&quot;string&quot;==typeof i,s=o&amp;&amp;i.match(/&lt;br&gt;/i),l=!o||s;t.mayHaveMarkup=o&amp;&amp;i.match(/[&lt;&amp;&gt;]/);var c,u=&quot;string&quot;==typeof(c=i)&amp;&amp;c.match(n.latexCheck);t.latex=u;var f,h,p=u?&quot;&quot;:T(t.calcdata.cells.prefix,e,r)||&quot;&quot;,d=u?&quot;&quot;:T(t.calcdata.cells.suffix,e,r)||&quot;&quot;,g=u?null:T(t.calcdata.cells.format,e,r)||null,m=p+(g?a(g)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&amp;&amp;!l&amp;&amp;!u&amp;&amp;(f=w(m)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?w(m):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var v=(&quot; &quot;===n.wrapSplitCharacter?m.replace(/&lt;a href=/gi,&quot;&lt;a_href=&quot;):m).split(n.wrapSplitCharacter),y=&quot; &quot;===n.wrapSplitCharacter?v.map((function(t){return t.replace(/&lt;a_href=/gi,&quot;&lt;a href=&quot;)})):v;t.fragments=y.map((function(t){return{text:t,width:null}})),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=m;return h})).attr(&quot;dy&quot;,(function(t){return t.needsConvertToTspans?0:&quot;0.75em&quot;})).each((function(t){var a=i.select(this),s=t.wrappingNeeded?P:I;t.needsConvertToTspans?l.convertToTspans(a,o,s(r,this,e,o,t)):i.select(this.parentNode).attr(&quot;transform&quot;,(function(t){return u(O(t),n.cellPad)})).attr(&quot;text-anchor&quot;,(function(t){return{left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;}[t.align]}))}))}function w(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function T(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function k(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(&quot;transform&quot;,u(e.x,r))}function A(t){return&quot;cells&quot;===t.type}function M(t){return&quot;header&quot;===t.type}function S(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce((function(t,e){return t+R(e,1/0)}),0)}function E(t,e,r){var n=y(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=D(i,i.length),s=n.calcdata.groupHeight-S(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),c=function(t,e,r){for(var n=[],i=0,a=0;a&lt;t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c&lt;s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l;e&lt;i+l&amp;&amp;e+r&gt;i&amp;&amp;n.push(a),i+=l}return n}(i,l,s);1===c.length&amp;&amp;(c[0]===i.length-1?c.unshift(c[0]-1):c.push(c[0]+1)),c[0]%2&amp;&amp;c.reverse(),e.each((function(t,e){t.page=c[e],t.scrollY=l})),e.attr(&quot;transform&quot;,(function(t){var e=D(t.rowBlocks,t.page)-t.scrollY;return u(0,e)})),t&amp;&amp;(C(t,r,e,c,n.prevPages,n,0),C(t,r,e,c,n.prevPages,n,1),x(r,t))}}function L(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll(&quot;.&quot;+n.cn.yColumn).selectAll(&quot;.&quot;+n.cn.columnBlock).filter(A);return E(t,f,l),s.scrollY===u}}function C(t,e,r,n,i,a,o){n[o]!==i[o]&amp;&amp;(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&amp;&amp;n[e]!==i[e]}));b(t,e,a,r),i[o]=n[o]})))}function P(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll(&quot;tspan.line&quot;).each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=&quot;&quot;;s.length;)c+(i=(r=s.shift()).width+a)&gt;u&amp;&amp;(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&amp;&amp;(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll(&quot;tspan.line&quot;).remove(),_(o.select(&quot;.&quot;+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(z)}}function I(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=B(o),c=o.key-l.firstRowIndex,f=l.rows[c].rowHeight,h=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,p=Math.max(h,f);p-l.rows[c].rowHeight&amp;&amp;(l.rows[c].rowHeight=p,t.selectAll(&quot;.&quot;+n.cn.columnCell).call(z),E(null,t.filter(A),0),x(r,a,!0)),s.attr(&quot;transform&quot;,(function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return u(O(o,i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellTextHolder).node().getBoundingClientRect().width),a)})),o.settledY=!0}}}function O(t,e){switch(t.align){case&quot;left&quot;:return n.cellPad;case&quot;right&quot;:return t.column.columnWidth-(e||0)-n.cellPad;case&quot;center&quot;:return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function z(t){t.attr(&quot;transform&quot;,(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+R(e,1/0)}),0),r=R(B(t),t.key);return u(0,r+e)})).selectAll(&quot;.&quot;+n.cn.cellRect).attr(&quot;height&quot;,(function(t){return(e=B(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r}))}function D(t,e){for(var r=0,n=e-1;n&gt;=0;n--)r+=F(t[n]);return r}function R(t,e){for(var r=0,n=0;n&lt;t.rows.length&amp;&amp;t.rows[n].rowIndex&lt;e;n++)r+=t.rows[n].rowHeight;return r}function F(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n&lt;t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function B(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=!t._context.staticPlot,a=t._fullLayout._paper.selectAll(&quot;.&quot;+n.cn.table).data(e.map((function(e){var r=o.unwrap(e).trace;return h(t,r)})),o.keyFun);a.exit().remove(),a.enter().append(&quot;g&quot;).classed(n.cn.table,!0).attr(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;),a.attr(&quot;width&quot;,(function(t){return t.width+t.size.l+t.size.r})).attr(&quot;height&quot;,(function(t){return t.height+t.size.t+t.size.b})).attr(&quot;transform&quot;,(function(t){return u(t.translateX,t.translateY)}));var l=a.selectAll(&quot;.&quot;+n.cn.tableControlView).data(o.repeat,o.keyFun),d=l.enter().append(&quot;g&quot;).classed(n.cn.tableControlView,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;);if(r){var _=&quot;onwheel&quot;in document?&quot;wheel&quot;:&quot;mousewheel&quot;;d.on(&quot;mousemove&quot;,(function(e){l.filter((function(t){return e===t})).call(x,t)})).on(_,(function(e){if(!e.scrollbarState.wheeling){e.scrollbarState.wheeling=!0;var r=e.scrollY+i.event.deltaY;L(t,l,null,r)(e)||(i.event.stopPropagation(),i.event.preventDefault()),e.scrollbarState.wheeling=!1}})).call(x,t,!0)}l.attr(&quot;transform&quot;,(function(t){return u(t.size.l,t.size.t)}));var w=l.selectAll(&quot;.&quot;+n.cn.scrollBackground).data(o.repeat,o.keyFun);w.enter().append(&quot;rect&quot;).classed(n.cn.scrollBackground,!0).attr(&quot;fill&quot;,&quot;none&quot;),w.attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),l.each((function(e){s.setClipUrl(i.select(this),m(t,e),t)}));var T=l.selectAll(&quot;.&quot;+n.cn.yColumn).data((function(t){return t.columns}),o.keyFun);T.enter().append(&quot;g&quot;).classed(n.cn.yColumn,!0),T.exit().remove(),T.attr(&quot;transform&quot;,(function(t){return u(t.x,0)})),r&amp;&amp;T.call(i.behavior.drag().origin((function(e){return k(i.select(this),e,-n.uplift),c(this),e.calcdata.columnDragInProgress=!0,x(l.filter((function(t){return e.calcdata.key===t.key})),t),e})).on(&quot;drag&quot;,(function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),y(T).filter((function(e){return e.calcdata.key===t.calcdata.key})).sort((function(t,e){return r(t)-r(e)})).forEach((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)})),T.filter((function(e){return t!==e})).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(&quot;transform&quot;,(function(t){return u(t.x,0)})),e.call(f).attr(&quot;transform&quot;,u(t.x,-n.uplift))})).on(&quot;dragend&quot;,(function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,k(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort((function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]})),e.columnorder=r,t.emit(&quot;plotly_restyle&quot;)}(t,n,n.columns.map((function(t){return t.xIndex})))}))),T.each((function(e){s.setClipUrl(i.select(this),v(t,e),t)}));var S=T.selectAll(&quot;.&quot;+n.cn.columnBlock).data(p.splitToPanels,o.keyFun);S.enter().append(&quot;g&quot;).classed(n.cn.columnBlock,!0).attr(&quot;id&quot;,(function(t){return t.key})),S.style(&quot;cursor&quot;,(function(t){return t.dragHandle?&quot;ew-resize&quot;:t.calcdata.scrollbarState.barWiggleRoom?&quot;ns-resize&quot;:&quot;default&quot;}));var C=S.filter(M),P=S.filter(A);r&amp;&amp;P.call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t})).on(&quot;drag&quot;,L(t,l,-1)).on(&quot;dragend&quot;,(function(){}))),b(t,l,C,S),b(t,l,P,S);var I=l.selectAll(&quot;.&quot;+n.cn.scrollAreaClip).data(o.repeat,o.keyFun);I.enter().append(&quot;clipPath&quot;).classed(n.cn.scrollAreaClip,!0).attr(&quot;id&quot;,(function(e){return m(t,e)}));var O=I.selectAll(&quot;.&quot;+n.cn.scrollAreaClipRect).data(o.repeat,o.keyFun);O.enter().append(&quot;rect&quot;).classed(n.cn.scrollAreaClipRect,!0).attr(&quot;x&quot;,-n.overdrag).attr(&quot;y&quot;,-n.uplift).attr(&quot;fill&quot;,&quot;none&quot;),O.attr(&quot;width&quot;,(function(t){return t.width+2*n.overdrag})).attr(&quot;height&quot;,(function(t){return t.height+n.uplift})),T.selectAll(&quot;.&quot;+n.cn.columnBoundary).data(o.repeat,o.keyFun).enter().append(&quot;g&quot;).classed(n.cn.columnBoundary,!0);var z=T.selectAll(&quot;.&quot;+n.cn.columnBoundaryClippath).data(o.repeat,o.keyFun);z.enter().append(&quot;clipPath&quot;).classed(n.cn.columnBoundaryClippath,!0),z.attr(&quot;id&quot;,(function(e){return v(t,e)}));var D=z.selectAll(&quot;.&quot;+n.cn.columnBoundaryRect).data(o.repeat,o.keyFun);D.enter().append(&quot;rect&quot;).classed(n.cn.columnBoundaryRect,!0).attr(&quot;fill&quot;,&quot;none&quot;),D.attr(&quot;width&quot;,(function(t){return t.columnWidth+2*g(t)})).attr(&quot;height&quot;,(function(t){return t.calcdata.height+2*g(t)+n.uplift})).attr(&quot;x&quot;,(function(t){return-g(t)})).attr(&quot;y&quot;,(function(t){return-g(t)})),E(null,P,l)}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800,&quot;../../lib/svg_text_utils&quot;:829,&quot;./constants&quot;:1350,&quot;./data_preparation_helper&quot;:1351,&quot;./data_split_helpers&quot;:1352,&quot;@plotly/d3&quot;:58}],1356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:&quot;enumerated&quot;,values:[&quot;squarify&quot;,&quot;binary&quot;,&quot;dice&quot;,&quot;slice&quot;,&quot;slice-dice&quot;,&quot;dice-slice&quot;],dflt:&quot;squarify&quot;,editType:&quot;plot&quot;},squarifyratio:{valType:&quot;number&quot;,min:1,dflt:1,editType:&quot;plot&quot;},flip:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;],dflt:&quot;&quot;,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:3,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:u({pad:{t:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},l:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},colors:l.marker.colors,depthfade:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],editType:&quot;style&quot;},line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),pathbar:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},edgeshape:{valType:&quot;enumerated&quot;,values:[&quot;&gt;&quot;,&quot;&lt;&quot;,&quot;|&quot;,&quot;/&quot;,&quot;\\&quot;],dflt:&quot;&gt;&quot;,editType:&quot;plot&quot;},thickness:{valType:&quot;number&quot;,min:12,editType:&quot;plot&quot;},textfont:u({},s.textfont,{}),editType:&quot;calc&quot;},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;top left&quot;,editType:&quot;plot&quot;},sort:s.sort,root:l.root,domain:o({name:&quot;treemap&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/domain&quot;:882,&quot;../../plots/template_attributes&quot;:926,&quot;../pie/attributes&quot;:1192,&quot;../sunburst/attributes&quot;:1330,&quot;./constants&quot;:1359}],1357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;treemap&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1358:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;treemap&quot;,t)}},{&quot;../sunburst/calc&quot;:1332}],1359:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;poly&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;],gapWithPathbar:1}},{}],1360:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var g=h(&quot;values&quot;);g&amp;&amp;g.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),&quot;squarify&quot;===h(&quot;tiling.packing&quot;)&amp;&amp;h(&quot;tiling.squarifyratio&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var m=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;);var y=-1!==e.textposition.indexOf(&quot;bottom&quot;);h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor);var x=h(&quot;marker.colors&quot;);(e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis)?f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}):h(&quot;marker.depthfade&quot;,!(x||[]).length);var b=2*e.textfont.size;h(&quot;marker.pad.t&quot;,y?b/4:b),h(&quot;marker.pad.l&quot;,b/4),h(&quot;marker.pad.r&quot;,b/4),h(&quot;marker.pad.b&quot;,y?b:b/4),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;../bar/constants&quot;:943,&quot;../bar/defaults&quot;:945,&quot;./attributes&quot;:1356}],1361:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../sunburst/helpers&quot;),a=t(&quot;../bar/uniform_text&quot;).clearMinTextSize,o=t(&quot;../bar/style&quot;).resizeText,s=t(&quot;./plot_one&quot;);e.exports=function(t,e,r,l,c){var u,f,h=c.type,p=c.drawDescendants,d=t._fullLayout,g=d[&quot;_&quot;+h+&quot;layer&quot;],m=!r;(a(h,d),(u=g.selectAll(&quot;g.trace.&quot;+h).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(h,!0),u.order(),!d.uniformtext.mode&amp;&amp;i.hasTransition(r))?(l&amp;&amp;(f=l()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){f&amp;&amp;f()})).each(&quot;interrupt&quot;,(function(){f&amp;&amp;f()})).each((function(){g.selectAll(&quot;g.trace&quot;).each((function(e){s(t,e,this,r,p)}))}))):(u.each((function(e){s(t,e,this,r,p)})),d.uniformtext.mode&amp;&amp;o(t,g.selectAll(&quot;.trace&quot;),h));m&amp;&amp;u.exit().remove()}},{&quot;../bar/style&quot;:955,&quot;../bar/uniform_text&quot;:957,&quot;../sunburst/helpers&quot;:1336,&quot;./plot_one&quot;:1370,&quot;@plotly/d3&quot;:58}],1362:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;);e.exports=function(t,e,r,h,p){var d=p.barDifY,g=p.width,m=p.height,v=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,T=p.handleSlicesExit,k=p.makeUpdateSliceInterpolator,A=p.makeUpdateTextInterpolator,M={},S=t._fullLayout,E=e[0],L=E.trace,C=E.hierarchy,P=g/L._entryDepth,I=u.listPath(r.data,&quot;id&quot;),O=s(C.copy(),[g,m],{packing:&quot;dice&quot;,pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(O=O.filter((function(t){var e=I.indexOf(t.data.id);return-1!==e&amp;&amp;(t.x0=P*e,t.x1=P*(e+1),t.y0=d,t.y1=d+m,t.onPathbar=!0,!0)}))).reverse(),(h=h.data(O,u.getPtId)).enter().append(&quot;g&quot;).classed(&quot;pathbar&quot;,!0),T(h,!0,M,[g,m],x),h.order();var z=h;w&amp;&amp;(z=z.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),z.each((function(s){s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-Math.min(g,m)/2),s._hoverY=y(s.y1-m/2);var h=n.select(this),p=i.ensureSingle(h,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?p.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!0,M,[g,m]);return function(t){return x(e(t))}})):p.attr(&quot;d&quot;,x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),p.call(l,s,L,{hovered:!1}),s._text=(u.getPtLabel(s)||&quot;&quot;).split(&quot;&lt;br&gt;&quot;).join(&quot; &quot;)||&quot;&quot;;var d=i.ensureSingle(h,&quot;g&quot;,&quot;slicetext&quot;),T=i.ensureSingle(d,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(L,s,S.font,{onPathbar:!0}));T.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;start&quot;).call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=b(s,{fontSize:E.size,onPathbar:!0}),s.transform.fontSize=E.size,w?T.transition().attrTween(&quot;transform&quot;,(function(t){var e=A(t,!0,M,[g,m]);return function(t){return _(e(t))}})):T.attr(&quot;transform&quot;,_(s))}))}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../sunburst/fx&quot;:1335,&quot;../sunburst/helpers&quot;:1336,&quot;./constants&quot;:1359,&quot;./partition&quot;:1368,&quot;./style&quot;:1371,&quot;@plotly/d3&quot;:58}],1363:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var g=d.width,m=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,A=d.makeUpdateTextInterpolator,M=d.prevEntry,S=t._fullLayout,E=e[0].trace,L=-1!==E.textposition.indexOf(&quot;left&quot;),C=-1!==E.textposition.indexOf(&quot;right&quot;),P=-1!==E.textposition.indexOf(&quot;bottom&quot;),I=!P&amp;&amp;!E.marker.pad.t||P&amp;&amp;!E.marker.pad.b,O=s(r,[g,m],{packing:E.tiling.packing,squarifyratio:E.tiling.squarifyratio,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,pad:{inner:E.tiling.pad,top:E.marker.pad.t,left:E.marker.pad.l,right:E.marker.pad.r,bottom:E.marker.pad.b}}).descendants(),z=1/0,D=-1/0;O.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(z=Math.min(z,e),D=Math.max(D,e))})),p=p.data(O,u.getPtId),E._maxVisibleLayers=isFinite(D)?D-z+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[g,m],x),p.order();var R=null;if(w&amp;&amp;M){var F=u.getPtId(M);p.each((function(t){null===R&amp;&amp;u.getPtId(t)===F&amp;&amp;(R={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var B=function(){return R||{x0:0,x1:g,y0:0,y1:m}},N=p;return w&amp;&amp;(N=N.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){var p=u.isHeader(s,E);s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-E.marker.pad.r),s._hoverY=y(P?s.y1-E.marker.pad.b/2:s.y0+E.marker.pad.t/2);var d=n.select(this),T=i.ensureSingle(d,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?T.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,B(),[g,m]);return function(t){return x(e(t))}})):T.attr(&quot;d&quot;,x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=p?I?&quot;&quot;:u.getPtLabel(s)||&quot;&quot;:h(s,r,E,e,S)||&quot;&quot;;var M=i.ensureSingle(d,&quot;g&quot;,&quot;slicetext&quot;),O=i.ensureSingle(M,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),z=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));O.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,C?&quot;end&quot;:L||p?&quot;start&quot;:&quot;middle&quot;).call(a.font,z).call(o.convertToTspans,t),s.textBB=a.bBox(O.node()),s.transform=b(s,{fontSize:z.size,isHeader:p}),s.transform.fontSize=z.size,w?O.transition().attrTween(&quot;transform&quot;,(function(t){var e=A(t,!1,B(),[g,m]);return function(t){return _(e(t))}})):O.attr(&quot;transform&quot;,_(s))})),R}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../sunburst/fx&quot;:1335,&quot;../sunburst/helpers&quot;:1336,&quot;../sunburst/plot&quot;:1340,&quot;./constants&quot;:1359,&quot;./partition&quot;:1368,&quot;./style&quot;:1371,&quot;@plotly/d3&quot;:58}],1364:[function(t,e,r){&quot;use strict&quot;;e.exports=function t(e,r,n){var i;n.swapXY&amp;&amp;(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i),n.flipX&amp;&amp;(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i),n.flipY&amp;&amp;(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o&lt;a.length;o++)t(a[o],r,n)}},{}],1365:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;treemap&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1356,&quot;./base_plot&quot;:1357,&quot;./calc&quot;:1358,&quot;./defaults&quot;:1360,&quot;./layout_attributes&quot;:1366,&quot;./layout_defaults&quot;:1367,&quot;./plot&quot;:1369,&quot;./style&quot;:1371}],1366:[function(t,e,r){&quot;use strict&quot;;e.exports={treemapcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendtreemapcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1367:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;treemapcolorway&quot;,e.colorway),r(&quot;extendtreemapcolors&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1366}],1368:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;./flip_tree&quot;);e.exports=function(t,e,r){var a,o=r.flipX,s=r.flipY,l=&quot;dice-slice&quot;===r.packing,c=r.pad[s?&quot;bottom&quot;:&quot;top&quot;],u=r.pad[o?&quot;right&quot;:&quot;left&quot;],f=r.pad[o?&quot;left&quot;:&quot;right&quot;],h=r.pad[s?&quot;top&quot;:&quot;bottom&quot;];l&amp;&amp;(a=u,u=c,c=a,a=f,f=h,h=a);var p=n.treemap().tile(function(t,e){switch(t){case&quot;squarify&quot;:return n.treemapSquarify.ratio(e);case&quot;binary&quot;:return n.treemapBinary;case&quot;dice&quot;:return n.treemapDice;case&quot;slice&quot;:return n.treemapSlice;default:return n.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(u).paddingRight(f).paddingTop(c).paddingBottom(h).size(l?[e[1],e[0]]:e)(t);return(l||o||s)&amp;&amp;i(p,e,{swapXY:l,flipX:o,flipY:s}),p}},{&quot;./flip_tree&quot;:1364,&quot;d3-hierarchy&quot;:170}],1369:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./draw_descendants&quot;);e.exports=function(t,e,r,a){return n(t,e,r,a,{type:&quot;treemap&quot;,drawDescendants:i})}},{&quot;./draw&quot;:1361,&quot;./draw_descendants&quot;:1363}],1370:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-interpolate&quot;).interpolate,a=t(&quot;../sunburst/helpers&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../bar/constants&quot;).TEXTPAD,l=t(&quot;../bar/plot&quot;).toMoveInsideBar,c=t(&quot;../bar/uniform_text&quot;).recordMinTextSize,u=t(&quot;./constants&quot;),f=t(&quot;./draw_ancestors&quot;);function h(t){return a.isHierarchyRoot(t)?&quot;&quot;:a.getPtId(t)}e.exports=function(t,e,r,p,d){var g=t._fullLayout,m=e[0],v=m.trace,y=&quot;icicle&quot;===v.type,x=m.hierarchy,b=a.findEntryWithLevel(x,v.level),_=n.select(r),w=_.selectAll(&quot;g.pathbar&quot;),T=_.selectAll(&quot;g.slice&quot;);if(!b)return w.remove(),void T.remove();var k=a.isHierarchyRoot(b),A=!g.uniformtext.mode&amp;&amp;a.hasTransition(p),M=a.getMaxDepth(v),S=g._size,E=v.domain,L=S.w*(E.x[1]-E.x[0]),C=S.h*(E.y[1]-E.y[0]),P=L,I=v.pathbar.thickness,O=v.marker.line.width+u.gapWithPathbar,z=v.pathbar.visible?v.pathbar.side.indexOf(&quot;bottom&quot;)&gt;-1?C+O:-(I+O):0,D={x0:P,x1:P,y0:z,y1:z+I},R=function(t,e,r){var n=v.tiling.pad,i=function(t){return t-n&lt;=e.x0},a=function(t){return t+n&gt;=e.x1},o=function(t){return t-n&lt;=e.y0},s=function(t){return t+n&gt;=e.y1};return t.x0===e.x0&amp;&amp;t.x1===e.x1&amp;&amp;t.y0===e.y0&amp;&amp;t.y1===e.y1?{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}:{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},F=null,B={},N={},j=null,U=function(t,e){return e?B[h(t)]:N[h(t)]},V=function(t,e,r,n){if(e)return B[h(x)]||D;var i=N[v.level]||r;return function(t){return t.data.depth-b.data.depth&lt;M}(t)?R(t,i,n):{}};m.hasMultipleRoots&amp;&amp;k&amp;&amp;M++,v._maxDepth=M,v._backgroundColor=g.paper_bgcolor,v._entryDepth=b.data.depth,v._atRootLevel=k;var q=-L/2+S.l+S.w*(E.x[1]+E.x[0])/2,H=-C/2+S.t+S.h*(1-(E.y[1]+E.y[0])/2),G=function(t){return q+t},Y=function(t){return H+t},W=Y(0),X=G(0),Z=function(t){return X+t},J=function(t){return W+t};function K(t,e){return t+&quot;,&quot;+e}var Q=Z(0),$=function(t){t.x=Math.max(Q,t.x)},tt=v.pathbar.edgeshape,et=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,o=t.textBB,u=function(t){return-1!==v.textposition.indexOf(t)},f=u(&quot;bottom&quot;),h=u(&quot;top&quot;)||e.isHeader&amp;&amp;!f?&quot;start&quot;:f?&quot;end&quot;:&quot;middle&quot;,p=u(&quot;right&quot;),d=u(&quot;left&quot;)||e.onPathbar?-1:p?1:0,m=v[y?&quot;tiling&quot;:&quot;marker&quot;].pad;if(e.isHeader){if((r+=(y?m:m.l)-s)&gt;=(n-=(y?m:m.r)-s)){var x=(r+n)/2;r=x,n=x}var b;f?i&lt;(b=a-(y?m:m.b))&amp;&amp;b&lt;a&amp;&amp;(i=b):i&lt;(b=i+(y?m:m.t))&amp;&amp;b&lt;a&amp;&amp;(a=b)}var _=l(r,n,i,a,o,{isHorizontal:!1,constrained:!0,angle:0,anchor:h,leftToRight:d});return _.fontSize=e.fontSize,_.targetX=G(_.targetX),_.targetY=Y(_.targetY),isNaN(_.targetX)||isNaN(_.targetY)?{}:(r!==n&amp;&amp;i!==a&amp;&amp;c(v.type,_,g),{scale:_.scale,rotate:_.rotate,textX:_.textX,textY:_.textY,anchorX:_.anchorX,anchorY:_.anchorY,targetX:_.targetX,targetY:_.targetY})},rt=function(t,e){for(var r,n=0,i=t;!r&amp;&amp;n&lt;M;)n++,(i=i.parent)?r=U(i,e):n=M;return r||{}},nt=function(t,e,r,n,a){var s,l=U(t,e);if(l)s=l;else if(e)s=D;else if(F)if(t.parent){var c=j||r;c&amp;&amp;!e?s=R(t,c,n):(s={},o.extendFlat(s,rt(t,e)))}else s=o.extendFlat({},t),y&amp;&amp;(&quot;h&quot;===a.orientation?a.flipX?s.x0=t.x1:s.x1=0:a.flipY?s.y0=t.y1:s.y1=0);else s={};return i(s,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})},it=function(t,e,r,n){var s=U(t,e),l={},u=V(t,e,r,n);o.extendFlat(l,{transform:et({x0:u.x0,x1:u.x1,y0:u.y0,y1:u.y1,textBB:t.textBB,_text:t._text},{isHeader:a.isHeader(t,v)})}),s?l=s:t.parent&amp;&amp;o.extendFlat(l,rt(t,e));var f=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(v.type,f,g),i(l,{transform:{scale:f.scale,rotate:f.rotate,textX:f.textX,textY:f.textY,anchorX:f.anchorX,anchorY:f.anchorY,targetX:f.targetX,targetY:f.targetY}})},at=function(t,e,r,a,o){var s=a[0],l=a[1];A?t.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var r=function(t,e,r,n){var a,o=U(t,e);if(e)a=D;else{var s=U(b,e);a=s?R(t,s,n):{}}return i(o,a)}(t,e,0,[s,l]);return function(t){return o(r(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():t.exit().remove()},ot=function(t){var e=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(v.type,e,g),o.getTextTransform({textX:e.textX,textY:e.textY,anchorX:e.anchorX,anchorY:e.anchorY,targetX:e.targetX,targetY:e.targetY,scale:e.scale,rotate:e.rotate})};A&amp;&amp;(w.each((function(t){B[h(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(B[h(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate})})),T.each((function(t){N[h(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(N[h(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate}),!F&amp;&amp;a.isEntry(t)&amp;&amp;(F=t)}))),j=d(t,e,b,T,{width:L,height:C,viewX:G,viewY:Y,pathSlice:function(t){var e=G(t.x0),r=G(t.x1),n=Y(t.y0),i=Y(t.y1),a=r-e,o=i-n;if(!a||!o)return&quot;&quot;;return&quot;M&quot;+K(e,n+0)+&quot;L&quot;+K(r-0,n)+&quot;L&quot;+K(r,i-0)+&quot;L&quot;+K(e+0,i)+&quot;Z&quot;},toMoveInsideSlice:et,prevEntry:F,makeUpdateSliceInterpolator:nt,makeUpdateTextInterpolator:it,handleSlicesExit:at,hasTransition:A,strTransform:ot}),v.pathbar.visible?f(t,e,b,w,{barDifY:z,width:P,height:I,viewX:Z,viewY:J,pathSlice:function(t){var e=Z(Math.max(Math.min(t.x0,t.x0),0)),r=Z(Math.min(Math.max(t.x1,t.x1),P)),n=J(t.y0),i=J(t.y1),a=I/2,o={},s={};o.x=e,s.x=r,o.y=s.y=(n+i)/2;var l={x:e,y:n},c={x:r,y:n},u={x:r,y:i},f={x:e,y:i};return&quot;&gt;&quot;===tt?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):&quot;/&quot;===tt?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):&quot;\\&quot;===tt?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):&quot;&lt;&quot;===tt&amp;&amp;(o.x-=a,s.x-=a),$(l),$(f),$(o),$(c),$(u),$(s),&quot;M&quot;+K(l.x,l.y)+&quot;L&quot;+K(c.x,c.y)+&quot;L&quot;+K(s.x,s.y)+&quot;L&quot;+K(u.x,u.y)+&quot;L&quot;+K(f.x,f.y)+&quot;L&quot;+K(o.x,o.y)+&quot;Z&quot;},toMoveInsideSlice:et,makeUpdateSliceInterpolator:nt,makeUpdateTextInterpolator:it,handleSlicesExit:at,hasTransition:A,strTransform:ot}):w.remove()}},{&quot;../../lib&quot;:803,&quot;../bar/constants&quot;:943,&quot;../bar/plot&quot;:952,&quot;../bar/uniform_text&quot;:957,&quot;../sunburst/helpers&quot;:1336,&quot;./constants&quot;:1359,&quot;./draw_ancestors&quot;:1362,&quot;@plotly/d3&quot;:58,&quot;d3-interpolate&quot;:171}],1371:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../sunburst/helpers&quot;),s=t(&quot;../bar/uniform_text&quot;).resizeText;function l(t,e,r,n){var s,l,c=(n||{}).hovered,u=e.data.data,f=u.i,h=u.color,p=o.isHierarchyRoot(e),d=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(p&amp;&amp;h===r.root.color)d=100,s=&quot;rgba(0,0,0,0)&quot;,l=0;else if(s=a.castOption(r,f,&quot;marker.line.color&quot;)||i.defaultLine,l=a.castOption(r,f,&quot;marker.line.width&quot;)||0,!r._hasColorscale&amp;&amp;!e.onPathbar){var g=r.marker.depthfade;if(g){var m,v=i.combine(i.addOpacity(r._backgroundColor,.75),h);if(!0===g){var y=o.getMaxDepth(r);m=isFinite(y)?o.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else m=e.data.depth-r._entryDepth,r._atRootLevel||m++;if(m&gt;0)for(var x=0;x&lt;m;x++){var b=.5*x/m;h=i.combine(i.addOpacity(v,b),h)}}}t.style(&quot;stroke-width&quot;,l).call(i.fill,h).call(i.stroke,s).style(&quot;opacity&quot;,d)}e.exports={style:function(t){var e=t._fullLayout._treemaplayer.selectAll(&quot;.trace&quot;);s(t,e,&quot;treemap&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(l,t,r,{hovered:!1})}))}))},styleOne:l}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../bar/uniform_text&quot;:957,&quot;../sunburst/helpers&quot;:1336,&quot;@plotly/d3&quot;:58}],1372:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),name:i({},n.name,{}),orientation:i({},n.orientation,{}),bandwidth:{valType:&quot;number&quot;,min:0,editType:&quot;calc&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},scalemode:{valType:&quot;enumerated&quot;,values:[&quot;width&quot;,&quot;count&quot;],dflt:&quot;width&quot;,editType:&quot;calc&quot;},spanmode:{valType:&quot;enumerated&quot;,values:[&quot;soft&quot;,&quot;hard&quot;,&quot;manual&quot;],dflt:&quot;soft&quot;,editType:&quot;calc&quot;},span:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),width:i({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,max:1,dflt:.25,editType:&quot;plot&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},meanline:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;both&quot;,&quot;positive&quot;,&quot;negative&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;violins&quot;,&quot;points&quot;,&quot;kde&quot;],dflt:&quot;violins+points+kde&quot;,extras:[&quot;all&quot;],editType:&quot;style&quot;}}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../box/attributes&quot;:966}],1373:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/calc&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return t.bandwidth?t.bandwidth:0;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=&quot;multicategory&quot;===r.type?r.r2c(i):r.d2c(i,0,t[e.valLetter+&quot;calendar&quot;]);return a===s?u[n]:a}var h={type:&quot;linear&quot;,range:a=&quot;soft&quot;===o?u:&quot;hard&quot;===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;for(var s=t._fullLayout,u=i.getFromId(t,e[&quot;h&quot;===e.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]),f=1/0,h=-1/0,p=0,d=0,g=0;g&lt;r.length;g++){var m=r[g],v=m.pts.map(o.extractVal),y=m.bandwidth=l(e,m,v),x=m.span=c(e,m,u,y);if(m.min===m.max&amp;&amp;0===y)x=m.span=[m.min,m.max],m.density=[{v:1,t:x[0]}],m.bandwidth=y,p=Math.max(p,1);else{var b=x[1]-x[0],_=Math.ceil(b/(y/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return n.error(&quot;Something went wrong with computing the violin span&quot;),r[0].t.empty=!0,r;var T=o.makeKDE(m,e,v);m.density=new Array(_);for(var k=0,A=x[0];A&lt;x[1]+w/2;k++,A+=w){var M=T(A);m.density[k]={v:M,t:A},p=Math.max(p,M)}}d=Math.max(d,v.length),f=Math.min(f,x[0]),h=Math.max(h,x[1])}var S=i.findExtremes(u,[f,h],{padded:!0});if(e._extremes[u._id]=S,e.width)r[0].t.maxKDE=p;else{var E=s._violinScaleGroupStats,L=e.scalegroup,C=E[L];C?(C.maxKDE=Math.max(C.maxKDE,p),C.maxCount=Math.max(C.maxCount,d)):E[L]={maxKDE:p,maxCount:d}}return r[0].t.labels.kde=n._(t,&quot;kde:&quot;),r}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../box/calc&quot;:967,&quot;./helpers&quot;:1376}],1374:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/cross_trace_calc&quot;).setPositionOffset,i=[&quot;v&quot;,&quot;h&quot;];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s&lt;i.length;s++){for(var l=i[s],c=&quot;h&quot;===l?o:a,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;violin&quot;!==d.type||p.empty||d.orientation!==l||d.xaxis!==a._id||d.yaxis!==o._id||u.push(f)}n(&quot;violin&quot;,t,u,c)}}},{&quot;../box/cross_trace_calc&quot;:968}],1375:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../box/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(&quot;bandwidth&quot;),l(&quot;side&quot;),l(&quot;width&quot;)||(l(&quot;scalegroup&quot;,e.name),l(&quot;scalemode&quot;));var u,f=l(&quot;span&quot;);Array.isArray(f)&amp;&amp;(u=&quot;manual&quot;),l(&quot;spanmode&quot;,u);var h=l(&quot;line.color&quot;,(t.marker||{}).color||r),p=l(&quot;line.width&quot;),d=l(&quot;fillcolor&quot;,i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:&quot;&quot;});var g=c(&quot;box.width&quot;),m=c(&quot;box.fillcolor&quot;,d),v=c(&quot;box.line.color&quot;,h),y=c(&quot;box.line.width&quot;,p);l(&quot;box.visible&quot;,Boolean(g||m||v||y))||(e.box={visible:!1});var x=c(&quot;meanline.color&quot;,h),b=c(&quot;meanline.width&quot;,p);l(&quot;meanline.visible&quot;,Boolean(x||b))||(e.meanline={visible:!1})}}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../box/defaults&quot;:969,&quot;./attributes&quot;:1372}],1376:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i&lt;n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;&quot;h&quot;===e.orientation?(i=&quot;y&quot;,a=&quot;x&quot;):(i=&quot;x&quot;,a=&quot;y&quot;);var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,&quot;both&quot;===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{&quot;../../lib&quot;:803}],1377:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/hover&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e,r,s,l){l||(l={});var c,u,f=l.hoverLayer,h=t.cd,p=h[0].trace,d=p.hoveron,g=-1!==d.indexOf(&quot;violins&quot;),m=-1!==d.indexOf(&quot;kde&quot;),v=[];if(g||m){var y=a.hoverOnBoxes(t,e,r,s);if(m&amp;&amp;y.length&gt;0){var x,b,_,w,T,k=t.xa,A=t.ya;&quot;h&quot;===p.orientation?(T=e,x=&quot;y&quot;,_=A,b=&quot;x&quot;,w=k):(T=r,x=&quot;x&quot;,_=k,b=&quot;y&quot;,w=A);var M=h[t.index];if(T&gt;=M.span[0]&amp;&amp;T&lt;=M.span[1]){var S=n.extendFlat({},t),E=w.c2p(T,!0),L=o.getKdeValue(M,p,T),C=o.getPositionOnKdePath(M,p,E),P=_._offset,I=_._length;S[x+&quot;0&quot;]=C[0],S[x+&quot;1&quot;]=C[1],S[b+&quot;0&quot;]=S[b+&quot;1&quot;]=E,S[b+&quot;Label&quot;]=b+&quot;: &quot;+i.hoverLabelText(w,T,p[b+&quot;hoverformat&quot;])+&quot;, &quot;+h[0].t.labels.kde+&quot; &quot;+L.toFixed(3),S.spikeDistance=y[0].spikeDistance;var O=x+&quot;Spike&quot;;S[O]=y[0][O],y[0].spikeDistance=void 0,y[0][O]=void 0,S.hovertemplate=!1,v.push(S),(u={stroke:t.color})[x+&quot;1&quot;]=n.constrain(P+C[0],P,P+I),u[x+&quot;2&quot;]=n.constrain(P+C[1],P,P+I),u[b+&quot;1&quot;]=u[b+&quot;2&quot;]=w._offset+E}}g&amp;&amp;(v=v.concat(y))}-1!==d.indexOf(&quot;points&quot;)&amp;&amp;(c=a.hoverOnPoints(t,e,r));var z=f.selectAll(&quot;.violinline-&quot;+p.uid).data(u?[0]:[]);return z.enter().append(&quot;line&quot;).classed(&quot;violinline-&quot;+p.uid,!0).attr(&quot;stroke-width&quot;,1.5),z.exit().remove(),z.attr(u),&quot;closest&quot;===s?c?[c]:v:c?(v.push(c),v):v}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../box/hover&quot;:971,&quot;./helpers&quot;:1376}],1378:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../box/defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../box/select&quot;),moduleType:&quot;trace&quot;,name:&quot;violin&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;violinLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../box/defaults&quot;:969,&quot;../box/select&quot;:976,&quot;../scatter/style&quot;:1242,&quot;./attributes&quot;:1372,&quot;./calc&quot;:1373,&quot;./cross_trace_calc&quot;:1374,&quot;./defaults&quot;:1375,&quot;./hover&quot;:1377,&quot;./layout_attributes&quot;:1379,&quot;./layout_defaults&quot;:1380,&quot;./plot&quot;:1381,&quot;./style&quot;:1382}],1379:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/layout_attributes&quot;),i=t(&quot;../../lib&quot;).extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{&quot;../../lib&quot;:803,&quot;../box/layout_attributes&quot;:973}],1380:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;../box/layout_defaults&quot;);e.exports=function(t,e,r){a._supply(t,e,r,(function(r,a){return n.coerce(t,e,i,r,a)}),&quot;violin&quot;)}},{&quot;../../lib&quot;:803,&quot;../box/layout_defaults&quot;:974,&quot;./layout_attributes&quot;:1379}],1381:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../box/plot&quot;),s=t(&quot;../scatter/line_points&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:&quot;spline&quot;,simplify:!0,linearized:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,&quot;trace violins&quot;).each((function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var d=s.bPos,g=s.bdPos,m=e[s.valLetter+&quot;axis&quot;],v=e[s.posLetter+&quot;axis&quot;],y=&quot;both&quot;===c.side,x=y||&quot;positive&quot;===c.side,b=y||&quot;negative&quot;===c.side,_=r.selectAll(&quot;path.violin&quot;).data(i.identity);_.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;violin&quot;),_.exit().remove(),_.each((function(t){var e,r,i,a,o,l,f,h,_=n.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+d,!0),A=v.l2p(k);if(c.width)e=s.maxKDE/g;else{var M=u._violinScaleGroupStats[c.scalegroup];e=&quot;count&quot;===c.scalemode?M.maxKDE/g*(M.maxCount/t.pts.length):M.maxKDE/g}if(x){for(f=new Array(T),o=0;o&lt;T;o++)(h=f[o]={})[s.posLetter]=k+w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);r=p(f)}if(b){for(f=new Array(T),l=0,o=T-1;l&lt;T;l++,o--)(h=f[l]={})[s.posLetter]=k-w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);i=p(f)}if(y)a=r+&quot;L&quot;+i.substr(1)+&quot;Z&quot;;else{var S=[A,m.c2p(w[0].t)],E=[A,m.c2p(w[T-1].t)];&quot;h&quot;===c.orientation&amp;&amp;(S.reverse(),E.reverse()),a=x?&quot;M&quot;+S+&quot;L&quot;+r.substr(1)+&quot;L&quot;+E:&quot;M&quot;+E+&quot;L&quot;+i.substr(1)+&quot;L&quot;+S}_.attr(&quot;d&quot;,a),t.posCenterPx=A,t.posDensityScale=e*g,t.path=_.node(),t.pathLength=t.path.getTotalLength()/(y?2:1)}));var w,T,k,A=c.box,M=A.width,S=(A.line||{}).width;y?(w=g*M,T=0):x?(w=[0,g*M/2],T=S*{x:1,y:-1}[s.posLetter]):(w=[g*M/2,0],T=S*{x:-1,y:1}[s.posLetter]),o.plotBoxAndWhiskers(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),o.plotBoxMean(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),!c.box.visible&amp;&amp;c.meanline.visible&amp;&amp;(k=i.identity);var E=r.selectAll(&quot;path.meanline&quot;).data(k||[]);E.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;meanline&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),E.exit().remove(),E.each((function(t){var e=m.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(&quot;d&quot;,&quot;h&quot;===c.orientation?&quot;M&quot;+e+&quot;,&quot;+r[0]+&quot;V&quot;+r[1]:&quot;M&quot;+r[0]+&quot;,&quot;+e+&quot;H&quot;+r[1])})),o.plotPoints(r,{x:f,y:h},c,s)}}))}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../box/plot&quot;:975,&quot;../scatter/line_points&quot;:1232,&quot;./helpers&quot;:1376,&quot;@plotly/d3&quot;:58}],1382:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../scatter/style&quot;).stylePoints;e.exports=function(t){var e=n.select(t).selectAll(&quot;g.trace.violins&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(&quot;path.violin&quot;).style(&quot;stroke-width&quot;,r.line.width+&quot;px&quot;).call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(&quot;path.box&quot;).style(&quot;stroke-width&quot;,l.width+&quot;px&quot;).call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={&quot;stroke-width&quot;:u+&quot;px&quot;,&quot;stroke-dasharray&quot;:2*u+&quot;px,&quot;+u+&quot;px&quot;};o.selectAll(&quot;path.mean&quot;).style(f).call(i.stroke,c.color),o.selectAll(&quot;path.meanline&quot;).style(f).call(i.stroke,c.color),a(o,r,t)}))}},{&quot;../../components/color&quot;:666,&quot;../scatter/style&quot;:1242,&quot;@plotly/d3&quot;:58}],1383:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../isosurface/attributes&quot;),a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=e.exports=l(s({x:i.x,y:i.y,z:i.z,value:i.value,isomin:i.isomin,isomax:i.isomax,surface:i.surface,spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},slices:i.slices,caps:i.caps,text:i.text,hovertext:i.hovertext,xhoverformat:i.xhoverformat,yhoverformat:i.yhoverformat,zhoverformat:i.zhoverformat,valuehoverformat:i.valuehoverformat,hovertemplate:i.hovertemplate},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{colorbar:i.colorbar,opacity:i.opacity,opacityscale:a.opacityscale,lightposition:i.lightposition,lighting:i.lighting,flatshading:i.flatshading,contour:i.contour,hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../isosurface/attributes&quot;:1154,&quot;../surface/attributes&quot;:1342}],1384:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=t(&quot;../isosurface/convert&quot;).findNearestOnAxis,c=t(&quot;../isosurface/convert&quot;).generateIsoMeshes;function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var f=u.prototype;f.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=c(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,opacityscale:t.opacityscale,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},u=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[u.min,u.max],l.colormap=i(t),this.mesh.update(l)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib/gl_format_color&quot;:799,&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/gl3d/zip3&quot;:907,&quot;../isosurface/convert&quot;:1156,&quot;gl-mesh3d&quot;:315}],1385:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../isosurface/defaults&quot;).supplyIsoDefaults,o=t(&quot;../surface/defaults&quot;).opacityscaleDefaults;e.exports=function(t,e,r,s){function l(r,a){return n.coerce(t,e,i,r,a)}a(t,e,r,s,l),o(t,e,s,l)}},{&quot;../../lib&quot;:803,&quot;../isosurface/defaults&quot;:1157,&quot;../surface/defaults&quot;:1345,&quot;./attributes&quot;:1383}],1386:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../isosurface/calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;volume&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;../isosurface/calc&quot;:1155,&quot;./attributes&quot;:1383,&quot;./convert&quot;:1384,&quot;./defaults&quot;:1385}],1387:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../components/color&quot;);function h(t){return{marker:{color:u({},n.marker.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:u({},n.marker.line.color,{arrayOk:!1,editType:&quot;style&quot;}),width:u({},n.marker.line.width,{arrayOk:!1,editType:&quot;style&quot;}),editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={measure:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},base:{valType:&quot;number&quot;,dflt:null,arrayOk:!1,editType:&quot;calc&quot;},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),hovertext:n.hovertext,hovertemplate:s({},{keys:c.eventDataKeys}),hoverinfo:u({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:l({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;])}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:h(),decreasing:h(),totals:h(),connector:{line:{color:u({},i.color,{dflt:f.defaultLine}),width:u({},i.width,{editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;plot&quot;},mode:{valType:&quot;enumerated&quot;,values:[&quot;spanning&quot;,&quot;between&quot;],dflt:&quot;between&quot;,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:666,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../bar/attributes&quot;:941,&quot;../scatter/attributes&quot;:1218,&quot;./constants&quot;:1389}],1388:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../lib&quot;).mergeArray,o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return&quot;a&quot;===t||&quot;absolute&quot;===t}function c(t){return&quot;t&quot;===t||&quot;total&quot;===t}e.exports=function(t,e){var r,u,f,h,p,d,g=n.getFromId(t,e.xaxis||&quot;x&quot;),m=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=g.makeCalcdata(e,&quot;x&quot;),f=m.makeCalcdata(e,&quot;y&quot;),h=i(e,m,&quot;y&quot;,f),p=!!e.yperiodalignment,d=&quot;y&quot;):(r=m.makeCalcdata(e,&quot;y&quot;),f=g.makeCalcdata(e,&quot;x&quot;),h=i(e,g,&quot;x&quot;,f),p=!!e.xperiodalignment,d=&quot;x&quot;),u=h.vals;for(var v,y=Math.min(u.length,r.length),x=new Array(y),b=0,_=!1,w=0;w&lt;y;w++){var T=r[w]||0,k=!1;(r[w]!==s||c(e.measure[w])||l(e.measure[w]))&amp;&amp;w+1&lt;y&amp;&amp;(r[w+1]!==s||c(e.measure[w+1])||l(e.measure[w+1]))&amp;&amp;(k=!0);var A=x[w]={i:w,p:u[w],s:T,rawS:T,cNext:k};l(e.measure[w])?(b=A.s,A.isSum=!0,A.dir=&quot;totals&quot;,A.s=b):c(e.measure[w])?(A.isSum=!0,A.dir=&quot;totals&quot;,A.s=b):(A.isSum=!1,A.dir=A.rawS&lt;0?&quot;decreasing&quot;:&quot;increasing&quot;,v=A.s,A.s=b+v,b+=v),&quot;totals&quot;===A.dir&amp;&amp;(_=!0),p&amp;&amp;(x[w].orig_p=f[w],x[w][d+&quot;End&quot;]=h.ends[w],x[w][d+&quot;Start&quot;]=h.starts[w]),e.ids&amp;&amp;(A.id=String(e.ids[w])),A.v=(e.base||0)+b}return x.length&amp;&amp;(x[0].hasTotals=_),a(e.text,x,&quot;tx&quot;),a(e.hovertext,x,&quot;htx&quot;),o(x,e),x}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/calc_selection&quot;:1220}],1389:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}},{}],1390:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i];!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;waterfall&quot;===p.type&amp;&amp;(r=s[i],&quot;h&quot;===p.orientation?h.push(r):f.push(r),u.push(r))}var d={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(n(t,l,c,f,d),n(t,c,l,h,d),i=0;i&lt;u.length;i++){r=u[i];for(var g=0;g&lt;r.length;g++){var m=r[g];!1===m.isSum&amp;&amp;(m.s0+=0===g?0:r[g-1].s),g+1&lt;r.length&amp;&amp;(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0)}}}},{&quot;../bar/cross_trace_calc&quot;:944}],1391:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;),u=t(&quot;../../constants/delta.js&quot;),f=u.INCREASING.COLOR,h=u.DECREASING.COLOR;function p(t,e,r){t(e+&quot;.marker.color&quot;,r),t(e+&quot;.marker.line.color&quot;,c.defaultLine),t(e+&quot;.marker.line.width&quot;)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,c)){s(t,e,i,c),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;),c(&quot;measure&quot;),c(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),c(&quot;base&quot;),c(&quot;offset&quot;),c(&quot;width&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var u=c(&quot;textposition&quot;);if(a(t,e,i,c,u,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;!==e.textposition&amp;&amp;(c(&quot;texttemplate&quot;),e.texttemplate||c(&quot;textinfo&quot;)),p(c,&quot;increasing&quot;,f),p(c,&quot;decreasing&quot;,h),p(c,&quot;totals&quot;,&quot;#4499FF&quot;),c(&quot;connector.visible&quot;))c(&quot;connector.mode&quot;),c(&quot;connector.line.width&quot;)&amp;&amp;(c(&quot;connector.line.color&quot;),c(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.waterfallmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:666,&quot;../../constants/delta.js&quot;:773,&quot;../../lib&quot;:803,&quot;../bar/defaults&quot;:945,&quot;../scatter/period_defaults&quot;:1238,&quot;../scatter/xy_defaults&quot;:1245,&quot;./attributes&quot;:1387}],1392:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;initial&quot;in e&amp;&amp;(t.initial=e.initial),&quot;delta&quot;in e&amp;&amp;(t.delta=e.delta),&quot;final&quot;in e&amp;&amp;(t.final=e.final),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1393:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,i=t(&quot;../../components/color&quot;).opacity,a=t(&quot;../bar/hover&quot;).hoverOnBars,o=t(&quot;../../constants/delta.js&quot;),s=o.INCREASING.SYMBOL,l=o.DECREASING.SYMBOL;e.exports=function(t,e,r,o,c){var u=a(t,e,r,o,c);if(u){var f=u.cd,h=f[0].trace,p=&quot;h&quot;===h.orientation,d=p?&quot;x&quot;:&quot;y&quot;,g=p?t.xa:t.ya,m=f[u.index],v=m.isSum?m.b+m.s:m.rawS;if(!m.isSum){u.initial=m.b+m.s-v,u.delta=v,u.final=u.initial+u.delta;var y=k(Math.abs(u.delta));u.deltaLabel=v&lt;0?&quot;(&quot;+y+&quot;)&quot;:y,u.finalLabel=k(u.final),u.initialLabel=k(u.initial)}var x=m.hi||h.hoverinfo,b=[];if(x&amp;&amp;&quot;none&quot;!==x&amp;&amp;&quot;skip&quot;!==x){var _=&quot;all&quot;===x,w=x.split(&quot;+&quot;),T=function(t){return _||-1!==w.indexOf(t)};m.isSum||(!T(&quot;final&quot;)||T(p?&quot;x&quot;:&quot;y&quot;)||b.push(u.finalLabel),T(&quot;delta&quot;)&amp;&amp;(v&lt;0?b.push(u.deltaLabel+&quot; &quot;+l):b.push(u.deltaLabel+&quot; &quot;+s)),T(&quot;initial&quot;)&amp;&amp;b.push(&quot;Initial: &quot;+u.initialLabel))}return b.length&amp;&amp;(u.extraText=b.join(&quot;&lt;br&gt;&quot;)),u.color=function(t,e){var r=t[e.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&amp;&amp;o)return a}(h,m),[u]}function k(t){return n(g,t,h[d+&quot;hoverformat&quot;])}}},{&quot;../../components/color&quot;:666,&quot;../../constants/delta.js&quot;:773,&quot;../../plots/cartesian/axes&quot;:854,&quot;../bar/hover&quot;:948}],1394:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;waterfall&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../bar/select&quot;:953,&quot;./attributes&quot;:1387,&quot;./calc&quot;:1388,&quot;./cross_trace_calc&quot;:1390,&quot;./defaults&quot;:1391,&quot;./event_data&quot;:1392,&quot;./hover&quot;:1393,&quot;./layout_attributes&quot;:1395,&quot;./layout_defaults&quot;:1396,&quot;./plot&quot;:1397,&quot;./style&quot;:1398}],1395:[function(t,e,r){&quot;use strict&quot;;e.exports={waterfallmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},waterfallgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},waterfallgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1396:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;waterfall&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;waterfallmode&quot;),o(&quot;waterfallgap&quot;,.2),o(&quot;waterfallgroupgap&quot;))}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1395}],1397:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;e.exports=function(t,e,r,c){var u=t._fullLayout;l(&quot;waterfall&quot;,u),s.plot(t,e,r,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(t,e,r,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),u=r[0].trace,f=i.ensureSingle(s,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible){var h=&quot;h&quot;===u.orientation,p=u.connector.mode,d=f.selectAll(&quot;g.line&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var u=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),n?[i,a]:[a,i]}(r,l,c,h),f=u[0],d=u[1],m=&quot;&quot;;f[0]!==o&amp;&amp;d[0]!==o&amp;&amp;f[1]!==o&amp;&amp;d[1]!==o&amp;&amp;(&quot;spanning&quot;===p&amp;&amp;!r.isSum&amp;&amp;s&gt;0&amp;&amp;(m+=h?&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;V&quot;+d[0]:&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;H&quot;+f[0]),&quot;between&quot;!==p&amp;&amp;(r.isSum||s&lt;g-1)&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;V&quot;+d[1]:&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;H&quot;+f[1]),f[2]!==o&amp;&amp;d[2]!==o&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;V&quot;+d[2]:&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;H&quot;+f[2])),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,c)}},{&quot;../../components/drawing&quot;:688,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../bar/plot&quot;:952,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1398:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.waterfalllayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;waterfall&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../constants/interactions&quot;:778,&quot;../bar/style&quot;:955,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1399:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plots/cartesian/axes&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plot_api/plot_schema&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;aggregate&quot;;var l=r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},aggregations:{_isLinkedToArray:&quot;aggregation&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},func:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;median&quot;,&quot;mode&quot;,&quot;rms&quot;,&quot;stddev&quot;,&quot;min&quot;,&quot;max&quot;,&quot;first&quot;,&quot;last&quot;,&quot;change&quot;,&quot;range&quot;],dflt:&quot;first&quot;,editType:&quot;calc&quot;},funcmode:{valType:&quot;enumerated&quot;,values:[&quot;sample&quot;,&quot;population&quot;],dflt:&quot;sample&quot;,editType:&quot;calc&quot;},enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,a=e.c2d;switch(r){case&quot;count&quot;:return f;case&quot;first&quot;:return h;case&quot;last&quot;:return p;case&quot;sum&quot;:return function(t,e){for(var r=0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r+=o)}return a(r)};case&quot;avg&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l,i++)}return i?a(r/i):s};case&quot;min&quot;:return function(t,e){for(var r=1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.min(r,o))}return r===1/0?s:a(r)};case&quot;max&quot;:return function(t,e){for(var r=-1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.max(r,o))}return r===-1/0?s:a(r)};case&quot;range&quot;:return function(t,e){for(var r=1/0,i=-1/0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r=Math.min(r,l),i=Math.max(i,l))}return i===-1/0||r===1/0?s:a(i-r)};case&quot;change&quot;:return function(t,e){var r=n(t[e[0]]),i=n(t[e[e.length-1]]);return r===s||i===s?s:a(i-r)};case&quot;median&quot;:return function(t,e){for(var r=[],o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;r.push(l)}if(!r.length)return s;r.sort(i.sorterAsc);var c=(r.length-1)/2;return a((r[Math.floor(c)]+r[Math.ceil(c)])/2)};case&quot;mode&quot;:return function(t,e){for(var r={},i=0,o=s,l=0;l&lt;e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u&gt;i&amp;&amp;(i=u,o=c)}}return i?a(o):s};case&quot;rms&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l*l,i++)}return i?a(Math.sqrt(r/i)):s};case&quot;stddev&quot;:return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i&lt;r.length&amp;&amp;c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i&lt;r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=&quot;sample&quot;===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),g=0;g&lt;r.length;g++)d[g]=u(c,r[g]);l.set(d),&quot;count&quot;===a.func&amp;&amp;i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(&quot;enabled&quot;))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r&lt;s.length;r++)u[s[r]]=1;var f=o(&quot;groups&quot;);if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function g(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r&lt;p.length;r++){h={_index:r};var m=g(&quot;target&quot;),v=g(&quot;func&quot;);g(&quot;enabled&quot;)&amp;&amp;m&amp;&amp;(u[m]||&quot;count&quot;===v&amp;&amp;void 0===u[m])?(&quot;stddev&quot;===v&amp;&amp;g(&quot;funcmode&quot;),u[m]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r&lt;s.length;r++)u[s[r]]&amp;&amp;d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],g=o(e.transforms,r),m=a.length;for(e._length&amp;&amp;(m=Math.min(m,e._length)),s=0;s&lt;m;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=g(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(g(s)));r._indexToPoints=p;var v=r.aggregations;for(s=0;s&lt;v.length;s++)u(t,e,d,v[s]);&quot;string&quot;==typeof n&amp;&amp;u(t,e,d,{target:n,func:&quot;first&quot;,enabled:!0}),e._length=d.length}}}},{&quot;../constants/numerical&quot;:779,&quot;../lib&quot;:803,&quot;../plot_api/plot_schema&quot;:842,&quot;../plots/cartesian/axes&quot;:854,&quot;./helpers&quot;:1402}],1400:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/cartesian/axes&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/filter_ops&quot;),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=&quot;transform&quot;,r.name=&quot;filter&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(l).concat(c).concat(u),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},preservegaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(&quot;enabled&quot;)){var o=a(&quot;target&quot;);if(n.isArrayOrTypedArray(o)&amp;&amp;0===o.length)return e.enabled=!1,e;a(&quot;preservegaps&quot;),a(&quot;operation&quot;),a(&quot;value&quot;);var s=i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;);s(t,e,&quot;valuecalendar&quot;,null),s(t,e,&quot;targetcalendar&quot;,null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&amp;&amp;(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(&quot;string&quot;==typeof s){var g=n.nestedProperty(e,s+&quot;calendar&quot;).get();g&amp;&amp;(h=g)}var m,v,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&amp;&amp;(s=a?i.map(f):[f(i)]);switch(n){case&quot;=&quot;:return function(t){return h(t)===s};case&quot;!=&quot;:return function(t){return h(t)!==s};case&quot;&lt;&quot;:return function(t){return h(t)&lt;s};case&quot;&lt;=&quot;:return function(t){return h(t)&lt;=s};case&quot;&gt;&quot;:return function(t){return h(t)&gt;s};case&quot;&gt;=&quot;:return function(t){return h(t)&gt;=s};case&quot;[]&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;=s[1]};case&quot;()&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;s[1]};case&quot;[)&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;s[1]};case&quot;(]&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;=s[1]};case&quot;][&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;=s[1]};case&quot;)(&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;s[1]};case&quot;](&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;s[1]};case&quot;)[&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;=s[1]};case&quot;{}&quot;:return function(t){return-1!==s.indexOf(h(t))};case&quot;}{&quot;:return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},v=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},v=function(t,e){var r=x[t.astr][e];t.get().push(r)}),k(m);for(var w=o(e.transforms,r),T=0;T&lt;f;T++){y(i[T])?(k(v,T),b[_++]=w(T)):d&amp;&amp;_++}r._indexToPoints=b,e._length=_}}function k(t,r){for(var i=0;i&lt;p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{&quot;../constants/filter_ops&quot;:775,&quot;../lib&quot;:803,&quot;../plots/cartesian/axes&quot;:854,&quot;../registry&quot;:931,&quot;./helpers&quot;:1402}],1401:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_schema&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction;function s(t,e){var r,s,l,c,u,f,h,p,d,g,m=e.transform,v=e.transformIndex,y=t.transforms[v].groups,x=o(t.transforms,m);if(!n.isArrayOrTypedArray(y)||0===y.length)return[t];var b=n.filterUnique(y),_=new Array(b.length),w=y.length,T=i.findArrayAttributes(t),k=m.styles||[],A={};for(r=0;r&lt;k.length;r++)A[k[r].target]=k[r].value;m.styles&amp;&amp;(g=n.keyedContainer(m,&quot;styles&quot;,&quot;target&quot;,&quot;value.name&quot;));var M={},S={};for(r=0;r&lt;b.length;r++){M[f=b[r]]=r,S[f]=0,(h=_[r]=n.extendDeepNoArrays({},t))._group=f,h.transforms[v]._indexToPoints={};var E=null;for(g&amp;&amp;(E=g.get(f)),h.name=E||&quot;&quot;===E?E:n.templateString(m.nameformat,{trace:t.name,group:f}),p=h.transforms,h.transforms=[],s=0;s&lt;p.length;s++)h.transforms[s]=n.extendDeepNoArrays({},p[s]);for(s=0;s&lt;T.length;s++)n.nestedProperty(h,T[s]).set([])}for(l=0;l&lt;T.length;l++){for(c=T[l],s=0,d=[];s&lt;b.length;s++)d[s]=n.nestedProperty(_[s],c).get();for(u=n.nestedProperty(t,c).get(),s=0;s&lt;w;s++)d[M[y[s]]].push(u[s])}for(s=0;s&lt;w;s++){(h=_[M[y[s]]]).transforms[v]._indexToPoints[S[y[s]]]=x(s),S[y[s]]++}for(r=0;r&lt;b.length;r++)f=b[r],h=_[r],a.clearExpandedTraceDefaultColors(h),h=n.extendDeepNoArrays(h,A[f]||{});return _}r.moduleType=&quot;transform&quot;,r.name=&quot;groupby&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},nameformat:{valType:&quot;string&quot;,editType:&quot;calc&quot;},styles:{_isLinkedToArray:&quot;style&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:{},editType:&quot;calc&quot;,_compareAsJSON:!0},editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(&quot;enabled&quot;))return o;s(&quot;groups&quot;),s(&quot;nameformat&quot;,i._dataLength&gt;1?&quot;%{group} (%{trace})&quot;:&quot;%{group}&quot;);var l=t.styles,c=o.styles=[];if(l)for(a=0;a&lt;l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,&quot;target&quot;);var f=n.coerce(l[a],c[a],r.attributes.styles,&quot;value&quot;);n.isPlainObject(f)?u.value=n.extendDeep({},f):f&amp;&amp;delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n&lt;t.length;n++)for(r=s(t[n],e),i=0;i&lt;r.length;i++)a.push(r[i]);return a}},{&quot;../lib&quot;:803,&quot;../plot_api/plot_schema&quot;:842,&quot;../plots/plots&quot;:917,&quot;./helpers&quot;:1402}],1402:[function(t,e,r){&quot;use strict&quot;;r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i&lt;t.length&amp;&amp;(r=t[i])!==e;i++)r._indexToPoints&amp;&amp;!1!==r.enabled&amp;&amp;(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1403:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/cartesian/axes&quot;),a=t(&quot;./helpers&quot;).pointsAccessorFunction,o=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;sort&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},order:{valType:&quot;enumerated&quot;,values:[&quot;ascending&quot;,&quot;descending&quot;],dflt:&quot;ascending&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(&quot;enabled&quot;)&amp;&amp;(i(&quot;target&quot;),i(&quot;order&quot;)),e},r.calcTransform=function(t,e,r){if(r.enabled){var s=n.getTargetArray(e,r);if(s){var l=r.target,c=s.length;e._length&amp;&amp;(c=Math.min(c,e._length));var u,f,h=e._arrayAttrs,p=function(t,e,r,n){var i,a=new Array(n),s=new Array(n);for(i=0;i&lt;n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case&quot;ascending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:n-i};case&quot;descending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:i-n}}}(t,r)),i=0;i&lt;n;i++)s[i]=a[i].i;return s}(r,s,i.getDataToCoordFunc(t,e,l,s),c),d=a(e.transforms,r),g={};for(u=0;u&lt;h.length;u++){var m=n.nestedProperty(e,h[u]),v=m.get(),y=new Array(c);for(f=0;f&lt;c;f++)y[f]=v[p[f]];m.set(y)}for(f=0;f&lt;c;f++)g[f]=d(p[f]);r._indexToPoints=g,e._length=c}}}},{&quot;../constants/numerical&quot;:779,&quot;../lib&quot;:803,&quot;../plots/cartesian/axes&quot;:854,&quot;./helpers&quot;:1402}],1404:[function(t,e,r){&quot;use strict&quot;;r.version=&quot;2.4.2&quot;},{}]},{},[27])(27)}));&lt;/script&gt;                &lt;div id=&quot;8e42f334-01e5-42bd-85be-d7d84dc5f49a&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&gt;&lt;/div&gt;            &lt;script type=&quot;text/javascript&quot;&gt;                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById(&quot;8e42f334-01e5-42bd-85be-d7d84dc5f49a&quot;)) {                    Plotly.newPlot(                        &quot;8e42f334-01e5-42bd-85be-d7d84dc5f49a&quot;,                        [{&quot;coloraxis&quot;:&quot;coloraxis&quot;,&quot;hovertemplate&quot;:&quot;Magnitude=%{z}&lt;br&gt;Latitude=%{lat}&lt;br&gt;Longitude=%{lon}&lt;extra&gt;&lt;/extra&gt;&quot;,&quot;lat&quot;:[19.246,1.863,-20.579,-59.076,11.938,-13.405,27.357,-13.309,-56.452,-24.563,-6.807,-2.608,54.636,-18.697,37.523,-51.84,51.251000000000005,51.639,52.528,51.626000000000005,51.037,51.73,51.775,52.611,51.831,51.948,51.443000000000005,52.773,51.772,52.975,52.99,51.536,13.245,51.812,51.762,52.438,51.946000000000005,51.738,51.487,53.008,52.184,52.076,51.744,52.057,53.191,51.447,51.258,52.031000000000006,51.294,55.223,-18.718,52.815,52.188,51.00899999999999,3.026,38.908,51.694,21.527,25.011,-7.251,51.415,-15.343,-25.633000000000003,-5.461,51.88399999999999,6.746,28.133000000000003,-5.377000000000001,21.104,-5.371,21.122,52.20399999999999,15.404000000000002,38.399,-27.145,-5.513999999999999,53.04600000000001,-5.487,50.928,52.39,-27.027,52.416,-18.425,20.13,-29.998,39.197,53.292,36.405,22.635,40.697,52.785,-20.036,-55.857,-1.887,-1.547,-15.262,-31.974,-15.382,8.418,55.26,-32.522,40.687,-20.502,50.282,38.365,9.986,15.8,51.865,-27.088,37.505,44.812,36.083,-0.4629999999999999,52.192,-32.707,35.047,-20.455,-17.857,-13.409,-42.692,-26.168000000000003,30.317,25.08,64.572,41.46,-59.687,-59.586000000000006,34.848,11.451,24.409,-1.733,54.157,21.045,-6.822,35.626,1.3330000000000002,47.288,-5.547999999999999,60.35,28.927,-32.537,13.683,-24.281,41.801,-3.523,-6.174,-4.131,5.268,22.336,-8.937999999999999,-6.575,-4.819,-14.921,1.3090000000000002,-21.126,52.149,13.174,51.227,-55.957,-7.566,-23.54,15.674,-1.649,51.88399999999999,44.608,44.578,44.133,44.112,44.299,44.167,43.775,43.804,43.885,-20.38,41.705,37.718,-39.902,-38.08,-21.025,32.052,44.505,42.973,28.134,7.175,56.543,7.034,-54.437,60.281000000000006,23.764,-5.01,-1.734,51.813,-63.159,52.99,22.338,-22.567,38.384,46.591,-4.408,-6.819,-28.428,7.74,-9.72,7.56,53.318000000000005,1.813,41.278,51.472,-2.335,51.05,50.799,51.076,6.789,-32.441,-56.04600000000001,-7.526,-5.212999999999999,-15.449000000000002,-15.67,-15.685,-15.741,-15.861,-15.817,-5.36,-15.931,-15.97,-15.995,-15.871,-16.198,-16.801,-6.38,-15.819,-11.385,-0.53,4.872,-15.185,-15.945,-5.714,-18.954,-22.887,-5.921,40.459,16.081,15.837,44.453,-16.930999999999997,-6.428,-34.596,51.867,46.515,58.09,57.513000000000005,6.47,-5.349,-6.209,-6.416,55.338,-36.448,8.382,7.156000000000001,-1.443,36.269,36.245,36.27,8.187999999999999,28.952,20.682,-5.391,36.395,13.092,39.626,-54.757,51.752,-28.278,59.28,49.937,-19.921,-60.468,49.426,-42.969,12.347,-59.225,56.19,3.113,-7.981,-1.28,52.36600000000001,53.901,4.203,49.646,44.12,-1.257,-9.031,-22.457,-3.144,-22.126,30.628,43.745,-29.414,36.514,-0.2239999999999999,6.553,30.887,25.449,-7.058,-18.855,53.909,-7.225,-6.193,51.93600000000001,51.361,2.983,51.42,-8.666,33.011,-9.611,-45.847,36.096,-4.841,51.101000000000006,52.612,18.919,-6.457999999999999,-37.199,17.135,-18.108,-11.292,44.688,44.757,-56.722,7.65,52.293,58.335,60.481,-18.096,-5.2010000000000005,27.863000000000003,54.21,-16.673,13.248,0.586,33.675,52.82899999999999,52.764,37.883,55.956,30.013,-59.548,-17.114,51.514,-24.837,0.211,16.709,24.13,-15.899,39.093,26.246,50.023,29.956,30.276,-56.79,-9.851,31.193,20.711,-6.561,26.12,-17.67,-32.265,-32.233000000000004,6.709,-55.495,26.14,-5.388,-15.404000000000002,52.55,43.691,29.244,-25.983,48.256,-38.747,31.525,31.422,37.156,-13.696,1.903,1.742,-19.991,24.122,-21.149,-52.655,0.622,-21.176,37.535,37.545,23.973000000000003,-13.626,37.714,37.798,8.865,23.869,37.464,36.617,12.01,-45.685,56.382,26.199,51.301,9.409,-14.074000000000002,-31.452,18.113,-38.231,-38.194,56.896,18.82,41.703,35.581,35.6,-37.656,57.271,-0.711,-0.57,-8.341000000000001,-5.996,-8.495,24.298,34.425,48.888000000000005,48.848,48.853,34.023,51.41,-6.974,-44.195,24.97,53.934,13.901,19.374,30.081,13.894,-6.384,-21.658,-52.772,24.274,-23.461,50.993,-0.047,46.418,-14.929,36.421,9.528,-14.828,24.328000000000003,11.323,44.238,51.399,-21.242,-12.191,-10.318,-10.061,-10.033,-10.172,-11.022,50.164,-7.24,43.726000000000006,29.504,29.543000000000003,29.706,-38.36,-13.794,24.739,51.745,51.826,51.867,24.303,-19.474,44.707,56.24100000000001,51.748000000000005,-17.757,51.664,-24.16,29.937,29.906,29.988000000000003,-10.987,50.513000000000005,-10.692,31.0395,19.279,-20.161,-23.495,52.563,28.565,13.295,3.487,36.395,37.38,-21.343000000000004,-5.026,52.156000000000006,14.478,-0.111,-0.0069999999999999,39.235,-3.195,42.981,39.438,-23.734,8.48,-1.741,-22.499,23.873,-27.693,-22.128,-36.094,61.197,2.388,45.401,6.761,-22.987,39.385,-60.244,-60.256,22.924,27.775,18.261,27.419,27.412,-21.558000000000003,61.58,-16.654,-60.354,-11.793,-31.241,29.734,-56.111,-10.665,-1.571,-18.319000000000003,22.232,38.796,19.102,-15.37,-31.973000000000003,52.141000000000005,-23.822,41.746,-15.681,17.042,48.019,-57.964,-14.851,-25.563,6.6,-13.954,3.2510000000000003,44.475,14.351,-3.424,-4.928,21.487,29.535,-26.123,37.3021667,-19.98,-7.039,37.126,-25.494,-32.838,-12.091,-12.326,-15.237,-11.2,-10.187,-12.347,-11.093,-11.112,-12.376,20.318,10.880999999999998,48.168,48.477,48.04,41.878,-1.461,-48.873000000000005,11.854,-0.149,33.989000000000004,-10.515,-11.248,-27.335,38.244,56.56399999999999,52.565,-11.903,48.105,-49.917,19.973,41.5,-0.922,36.715,52.45,52.288,52.242,26.107,2.619,-57.94,-5.542000000000001,56.521,2.849,52.812,13.555,-13.303,-9.163,-23.878,-5.872999999999999,-8.965,-0.072,33.617,-19.516,26.184,-0.077,-0.114,32.608000000000004,-0.214,21.398000000000003,-18.558,39.1,-10.617,-10.622,-10.821,19.263,-40.17,19.581,28.463,-3.575,-6.075,-6.727,45.527,45.672,45.438,-5.972,45.201,-9.182,38.474,-16.438,-11.114,45.718,45.661,45.617,-6.024,20.036,19.992,20.07,-3.989,-7.359,-7.222,-63.66,5.121,5.349,18.309,-5.605,-5.401,13.558,51.42,-1.808,39.528,-55.604,-10.425,5.1610000000000005,39.365,-20.304,-59.076,-0.897,-56.191,51.851000000000006,36.034,12.115,53.567,-6.794,58.207,-41.394,-44.881,47.649,-15.052,-15.406,47.449,-58.375,52.539,52.638000000000005,-2.336,64.65,-25.076,-5.859,-19.142,12.531,12.488,-9.543,-47.085,-7.249,54.358,8.823,43.136,52.557,8.571,4.894,5.479,-0.8690000000000001,7.557,-33.451,40.751,39.568000000000005,6.747000000000001,10.559,40.764,-13.02,-6.484,45.342,-24.719,-14.89,35.388000000000005,43.094,-4.41,31.079,0.873,27.693,10.295,-12.481,-25.265,3.697,-60.761,-60.898,43.565,-14.94,12.173,12.273,31.633000000000003,31.587,45.444,-5.615,-10.656,-31.278,14.595999999999998,2.6260000000000003,12.27,-27.623,-54.55,52.74100000000001,35.607,27.338,51.721,-5.985,43.065,-57.799,-49.736,-49.588,-20.729,44.626000000000005,-33.463,-30.086,-6.52,59.335,28.984,10.878,-5.631,49.107,-9.445,-5.622999999999999,-21.182,30.449,-21.025,52.13,-7.131,11.925,1.715,17.241,79.765,-33.799,24.401,24.416,-4.624,-17.727,37.317,43.523,43.502,-2.704,-15.043,16.852999999999998,-5.233,51.094,-7.162999999999999,-6.157,-17.279,-5.46,-28.865,28.381,36.44,-22.642,72.763,-22.687,14.432,80.161,28.583,-8.046,-31.128,32.165,41.386,49.43899999999999,-14.591,-10.862,40.478,17.412,47.594,-19.164,51.22,12.062,-21.865,-5.206,17.351,17.543,-5.207999999999999,-21.58,-21.362,-22.548,-7.103,-5.175,52.226000000000006,-9.779,-27.845,-5.042,33.623000000000005,23.965,-24.28,-7.552,52.619,52.53,37.702,-9.213,-42.559,-16.097,-30.116,-1.352,-8.875,36.448,43.566,43.343,43.246,-6.066,43.203,46.606,16.578,43.05,-0.135,-28.59,46.026,-5.42,-5.48,-5.468999999999999,39.368,12.343,32.066,-4.04,-32.637,37.586,22.733,12.194,12.117,32.928000000000004,-6.164,1.584,9.507,9.526,-5.897,-5.603,51.955,-36.391,-16.212,3.204,-20.624,13.255,-6.626,8.103,47.914,-4.178,32.449,32.241,51.359,33.1798333,33.514,-42.68,-15.675999999999998,38.621,58.645,-15.575,37.2953333,18.462,44.757,18.682,-6.348,25.191,6.7410000000000005,-58.011,43.597,-5.348,-6.34,29.938,-15.894,-29.787,40.86,41.11,41.097,41.444,41.43,39.856,40.82,41.35,12.678,41.506,39.808,39.698,40.699,39.684,-55.446000000000005,35.626,40.941,40.15,-30.799,48.737,-30.725,44.822,44.758,41.162,44.878,44.737,41.529,40.25,-41.659,40.881,-6.799,-41.93899999999999,40.179,-30.786,-2.85,52.215,44.65,-30.928,40.252,-8.076,45.445,-1.916,-2.0780000000000003,-8.74,43.54,-48.946000000000005,56.28,39.503,-0.591,39.362,39.235,39.421,39.306,45.25,26.88,5.591,51.633,-53.827,41.054,-12.300999999999998,38.745,-5.61,-44.054,-5.573,-5.705,40.406,39.585,42.037,-22.207,35.999,17.515,-29.915,-2.712,38.478,-6.477,-36.772,40.211,39.554,39.623000000000005,-8.619,8.727,-3.112,-54.73,-20.154,40.387,-30.725,45.558,-19.188,55.42,-22.531,-0.291,-6.987,-26.822,16.316,27.579,16.519000000000002,25.637,16.475,6.497999999999999,33.231,43.024,36.363,1.514,1.328,1.402,1.619,-15.242,52.053,1.584,1.704,-15.625,15.103,18.201,0.157,-12.76,38.589,16.557000000000002,1.364,-10.188,1.159,5.485,-30.775,52.96,-21.989,40.108,40.056,-20.117,-16.320999999999998,12.363,-19.962,15.51,34.158,34.021,41.86,20.561,31.008000000000003,-58.456,-3.714,-8.752,-43.037,-21.516,28.375,40.85,-6.024,-6.025,-15.274,-18.173,10.697,42.035,-24.261,-46.451,15.573,-17.692,-21.071,-30.62,-6.909,-3.624,-13.235,-3.775,-56.18600000000001,-15.119000000000002,26.358,41.965,-39.846,-23.34,-6.077999999999999,-20.733,-31.566,-0.425,29.127,24.95,40.433,-3.33,-3.397,5.909,49.517,33.51,-12.442,31.348000000000003,65.393,1.1909999999999998,-16.338,-14.177,2.358,40.172,27.488000000000003,40.188,-16.596,9.477,-3.201,-1.238,16.209,1.369,13.129,-15.444,40.337,5.122000000000001,-57.609,-5.3260000000000005,15.102,-6.74,-14.148,36.482,63.929,-3.517,51.465,-44.983,-20.67,-6.321000000000001,9.715,-15.961,51.467,51.541,51.672,60.146,-19.802,36.128,53.434,37.2315,36.306,56.331,57.489,51.096,-56.096,37.14,51.132,-6.85,-7.97,-10.407,11.823,28.92,-7.967,36.043,-56.756,44.985,-14.849,-10.441,54.899,55.901,-21.882,0.836,55.84,8.654,-17.048,4.569,4.192,4.356,-15.425999999999998,9.252,3.8,3.882,4.254,4.738,-0.7170000000000001,-8.124,-22.797,-22.973000000000003,41.389,-6.784,-13.672,3.65,3.524,3.337,3.509,-3.201,-6.122000000000001,5.255,36.033,36.181,40.028,51.574,4.031000000000001,36.394,41.32,-4.1930000000000005,-4.103,-5.589,12.78,-2.736,51.303,38.542,44.047,28.783,31.205,8.697000000000001,8.734,40.38,31.296,-15.621,39.083,39.237,3.745,4.575,38.515,11.875,11.886,10.324000000000002,27.575,38.502,51.117,24.315,54.435,11.884,1.339,38.433,76.48100000000001,-49.191,36.825,42.082,17.747,-6.162000000000001,39.854,-6.006,-3.549,-13.488,-13.558,39.599,-4.524,14.092,32.15,-26.724,39.893,12.705,7.412999999999999,-30.663,-30.576,0.777,-57.655,-22.356,-7.888999999999999,-16.695,-17.469,11.513,36.4,-7.221,51.294,34.556,16.811,-8.897,11.734000000000002,53.179,-31.886,-57.734,11.793,-2.174,-32.083,-32.16,-23.558000000000003,40.405,34.414,49.376000000000005,-8.013,19.033,-52.744,52.537,28.198,53.089,-5.405,49.209,51.486,18.265,-5.894,13.443,-30.516,-62.88399999999999,-55.791,-3.843,16.465,2.097,46.429,39.849,52.17,38.31,-18.499,-17.334,2.905,-11.8,37.36,-11.917,-45.672,2.6,21.661,-11.651,59.266000000000005,30.786,-14.816,52.86,45.407,45.478,-4.27,24.125,45.336000000000006,-5.638999999999999,1.138,-5.316,-5.211,36.369,-47.715,-6.069,43.552,43.63399999999999,43.599,44.007,43.208,43.666,1.848,43.235,43.301,43.584,43.789,43.768,43.323,43.518,43.948,1.702,43.522,42.858,43.378,43.456,43.999,44.14,-5.409,43.313,43.305,21.665,43.11,43.261,43.097,42.666,25.213,25.035,-55.896,24.881,24.679,43.875,43.731,47.941,43.129,43.664,43.13,-5.739,-15.333,43.279,28.779,-31.456,43.267,43.573,43.232,43.54,-27.786,31.343000000000004,46.57,43.78,22.762,43.757,36.902,-8.81,-8.905,-8.887,35.794000000000004,26.158,51.207,51.102,43.144,39.643,39.637,51.827,45.532,27.069000000000003,37.3141667,31.041,31.035,6.031000000000001,58.406000000000006,-3.082,1.6840000000000002,2.922,4.876,18.729,15.291,43.68600000000001,-60.925,-7.195,43.335,-33.268,-31.66,-11.841,-11.803,-11.842,0.638,-60.793,-33.016,15.041,39.691,-18.746,23.041,52.474,17.358,51.297,-4.772,-18.167,34.609,52.324,43.923,-16.167,44.813,-53.449,44.854,45.513000000000005,51.279,23.148000000000003,34.589,51.06399999999999,27.793000000000003,-16.298,-5.765,52.92,-27.837,56.404,2.005,57.65,37.118,56.106,-16.840999999999998,-59.825,16.78,8.187000000000001,40.726,1.734,-15.071,0.909,1.354,1.956,8.142000000000001,46.254,28.188,57.15,15.648,15.771,16.062,55.109,16.086,43.373000000000005,16.094,28.532,-29.4,24.185,23.984,-9.583,15.785,-34.85,-9.166,6.785,6.71,6.71,7.326,-10.169,60.25,21.393,-25.946,-5.343999999999999,42.523,6.843,51.258,49.678,-12.592,-10.829,7.44,-20.672,-14.575,43.149,43.321000000000005,43.031000000000006,43.341,15.518,24.371,46.943000000000005,46.932,12.584,54.513000000000005,12.687,23.083,47.184,47.284,-5.936,-5.922999999999999,-10.012,-0.045,9.846,-22.378,-20.724,-8.734,27.771,30.607,59.51,24.126,13.567,43.43899999999999,43.473,50.144,-8.012,52.487,27.756,12.213,-19.746,7.273,1.77,39.579,-19.091,44.683,12.702,-31.077,57.399,-29.701,-19.159,51.411,5.008,24.126,40.212,29.831,-22.13,37.3005,0.288,-6.252999999999999,39.098,-17.07,6.754,-5.632000000000001,-3.629,39.817,-20.277,-20.666,15.791,15.662,15.527,38.304,-13.863,15.457,45.106,13.067,-27.595,59.61,-18.966,15.136,15.263,15.164,-21.08,-33.308,15.219,34.579,59.702,59.804,42.928,59.571000000000005,38.972,38.944,-18.715,-9.971,-11.437,39.071,52.967,-8.044,-8.025,43.217,14.425,14.52,-55.288,14.76,14.545,14.326,14.635,15.716,14.466,14.499,-6.816,-41.767,-4.317,18.586,-3.53,43.078,43.191,14.228,50.224,-5.1160000000000005,-55.801,51.42100000000001,-57.45,27.236,40.256,40.139,40.267,43.873000000000005,-14.978,-11.591,12.233,-9.183,-9.975,-10.258,-9.302,-10.169,-10.206,5.83,-9.777,-9.956,42.51,63.322,52.161,-15.764,44.859,-24.418000000000003,-59.232,56.624,-2.927,-52.028,-54.476000000000006,5.193,-16.015,-61.376000000000005,-22.261,15.428,55.031000000000006,43.343,51.591,51.692,-7.832999999999999,-9.987,4.131,-8.683,53.466,-21.678,-9.197,2.067,-10.125,-51.015,7.382000000000001,17.901,43.81,43.721,13.938,10.769,-19.006,-22.137,51.32899999999999,-4.056,-15.834,32.053000000000004,32.158,-37.881,39.802,25.977,37.733,14.248,-1.597,-15.922,-7.927,2.644,-9.241,-17.852999999999998,1.1,-13.856,-1.119,-14.057,-60.571000000000005,-13.909,-13.871,11.892,12.022,-8.991,4.521,60.538,-10.526,-56.343,18.051,-15.223,15.374,-4.668,-33.802,51.03,52.19,52.301,17.717,-16.904,52.224,-50.206,38.751,-34.023,8.821,13.124,-33.516,-6.45,-6.525,54.573,6.214,6.239,6.375,-56.276,53.251000000000005,-13.509,20.73,-6.821000000000001,-29.174,-6.809,53.828,43.758,-3.457,-31.915,-32.003,-32.049,-4.2,43.276,43.424,43.489,39.237,74.697,-36.36,-36.533,-13.666,9.131,79.744,-41.361,-4.999,-59.661,61.981,18.333,6.813,18.477,9.066,-3.428,29.477,-31.958,-5.135,-22.126,12.081,12.708,22.78,-6.08,-1.019,35.29,-21.723000000000003,-28.871,28.15,43.411,2.199,15.045,18.35,47.328,-2.02,43.489,24.336,-0.972,-21.092,-21.019,-4.164,-11.803,-5.905,-10.974,51.289,-15.589,51.385,-11.154000000000002,7.322999999999999,-1.015,-23.222,-6.4,-6.267,41.787,29.773000000000003,-30.838,16.075,-4.026,52.887,-4.093,1.506,-4.104,-20.812,-1.436,-14.380999999999998,5.975,-56.167,5.148,-1.5419999999999998,-9.098,12.43,-9.203,15.92,-0.3939999999999999,-5.242000000000001,-10.436,-3.974,1.433,-4.19,-55.918,-29.644,34.53,36.374,52.282,47.341,-3.184,-3.0780000000000003,-3.337,-3.2,-3.5,-3.281,-3.1060000000000003,-3.261,-3.298,9.829,-3.39,-3.092,-3.035,-56.037,1.058,41.611,1.054,23.757,8.759,-6.827000000000001,-17.229,-7.893,-9.701,51.483,51.727,1.645,51.604,51.557,-21.258000000000003,17.914,0.653,51.62,-49.935,2.236,47.019,51.409,51.145,51.162,-63.398,34.416,34.416,34.416,-6.369,1.393,-6.127000000000001,36.565,-25.204,24.112,-36.775,-23.804,39.639,5.89,37.159,3.274,-10.452,48.24100000000001,30.461,-18.282,-5.775,50.396,41.732,-15.545,-10.968,8.417,-3.24,16.954,2.218,-1.328,37.292,-23.024,70.97399999999999,41.52,41.419,-5.327000000000001,35.448,38.467,60.2,52.488,11.941,-9.583,51.178,8.981,8.9,9.022,32.158,-56.344,38.393,-0.237,53.175,42.383,-22.089,-23.801,2.514,-32.437,-4.33,44.461000000000006,-21.189,28.363000000000003,-15.958,-17.808,27.565,-6.356,-0.27,-21.864,4.714,-24.498,22.917,18.061,12.704,-22.268,51.396,30.739,-11.151,-6.564,-2.7510000000000003,-42.229,-39.811,-39.727,-39.713,35.512,7.981,22.3,37.585,37.552,37.503,27.825,-1.671,-29.761,-28.393,63.952,2.302,52.164,52.368,38.934,32.299,39.032,31.377,-24.835,35.613,31.329,14.683,31.327,25.264,72.241,25.266,9.304,6.031000000000001,9.382,-10.875,52.15,41.087,-4.178,17.907,51.595,36.294,56.206,41.463,41.54600000000001,-25.375,23.598000000000003,-5.141,-25.23,-24.148000000000003,-6.358,12.36,-8.39,-23.434,-24.136,15.605,-7.071000000000001,-32.601,-5.977,-6.086,-32.287,51.923,-5.524,-5.0360000000000005,-5.675,-5.681,-5.284,-5.232,-5.202999999999999,2.592,-25.223000000000003,7.045,26.469,-21.525,-4.869,-5.754,-4.89,-5.567,24.303,15.314,-19.712,-5.728,-5.87,35.518,12.439,-6.021,52.115,-4.817,39.821,-5.275,-5.1160000000000005,-5.46,-5.577000000000001,-5.8,-6.045,-5.377999999999999,-5.662000000000001,-5.972,-5.246,-5.857,-5.35,-2.839,-5.813,13.595,-5.651,-5.283,-6.127999999999999,-5.127000000000001,-5.544,51.938,1.739,-4.61,-6.037000000000001,-32.513000000000005,-5.515,41.415,1.612,41.424,36.412,-0.773,-13.942,36.337,-5.964,-5.651,-5.711,-5.385,1.172,-62.806,12.447,19.596,-6.022,-14.762,-15.751,-15.547,-21.735,28.845,28.861,28.791,-15.555,23.991,49.286,13.292,-21.841,-3.974,45.658,52.197,-55.902,-19.013,28.332,6.308,-10.98,-24.441,54.971,46.505,46.349,46.362,46.756,46.692,37.165,46.399,46.264,-6.5360000000000005,44.527,-20.413,-26.81,17.875999999999998,-7.291,22.789,-6.402,39.11,-5.912000000000001,37.326,14.815,53.699,39.345,-16.554000000000002,-6.516,-32.475,-56.628,3.194,0.072,-5.822,46.347,-3.227,-8.888,-32.046,26.816,-0.514,61.662,-4.34,-6.547999999999999,-14.571,-5.931,-6.851,-18.053,43.045,24.903,15.888,51.727,-21.936,-54.276,-14.265999999999998,-5.992999999999999,-3.467,-22.679,52.621,21.967,24.885,-54.798,11.909,-57.32,11.929,11.85,-13.062,11.866,17.535,-15.582,-13.342,-5.627000000000001,-13.384,49.877,32.109,23.024,10.142,-2.006,-4.544,26.978,5.737,-2.682,38.404,-23.449,48.714,-11.857,-11.925999999999998,52.253,0.105,46.598,52.803,29.203000000000003,-29.98,-11.288,44.889,-6.12,7.942,49.452,-54.438,3.74,55.048,49.125,-22.805,27.275,-21.648000000000003,1.761,-6.151,55.959,55.838,55.804,55.474,55.602,56.005,50.643,-6.245,-19.863,25.206,-4.789,6.125,-17.021,15.978,51.095,22.638,-0.061,-4.611000000000001,-2.184,-18.897,20.981,20.893,-55.692,-6.832999999999999,37.636,61.888000000000005,-18.296,40.182,54.655,-4.8660000000000005,-4.718,36.374,-6.751,13.973,-20.435,-13.248,-13.144,-26.19,22.632,23.107,-2.543,-20.113,-19.415,20.963,-9.769,-4.62,-22.821,12.535,8.484,19.319000000000003,-51.852,-15.448,-55.82899999999999,0.932,-11.481,-17.66,-11.347,-6.102,-11.123,44.635,29.328000000000003,55.888000000000005,-15.428,55.846,-60.75899999999999,50.462,33.453,33.501999999999995,-18.995,40.535,-24.796,33.508,-21.888,50.069,-28.277,-3.795,33.358000000000004,39.217,51.588,-24.785,33.624,40.872,-6.855,51.277,49.92,49.019,-21.241,-15.507,56.108,7.0920000000000005,48.066,-22.005,-3.557,43.269,-17.855,-30.834,-25.758000000000003,-29.765,-55.247,-49.389,-16.118,-16.028,-13.102,54.238,-7.432,-57.842,8.026,42.477,42.104,28.415,0.922,-19.394,24.171,53.987,-15.311,-5.609,-31.464,-21.4,23.564,23.736,13.402,-18.159,13.603,24.043000000000003,-5.154,-6.544,13.557,5.544,5.202999999999999,33.581,-10.7,-15.963,35.181999999999995,23.065,-4.255,-4.925,-53.742,-1.21,-19.55,-17.788,-3.866,-0.313,42.789,-27.825,24.537,-32.156,-32.76,-0.039,-23.633000000000003,-29.785,13.393,-15.988,16.552,-17.76,-22.277,13.21,54.865,-10.973,3.616,51.341,32.853,2.505,-7.278,21.085,-22.538,-30.466,-21.297,3.752,-5.55,-12.419,5.196000000000001,33.023,53.337,-29.764,42.282,31.934,36.278,1.476,51.858,27.643,-17.934,30.051,18.747,5.794,38.529,9.379,49.36600000000001,11.856,36.382,16.209,-6.064,-20.809,-35.1,-3.136,-21.932,31.356,50.078,-21.488000000000003,0.119,49.105,-4.54,-4.617,56.724,-5.877000000000001,30.681,30.705,-4.119,2.394,-26.312,55.889,51.128,51.033,51.072,56.118,49.149,-11.2,-11.048,-11.082,25.031,-11.093,-11.16,-16.646,-19.052,-21.396,51.277,4.952,-51.974,1.71,-6.365,56.264,-6.05,-6.098,1.342,38.721,49.486,-5.8260000000000005,58.231,1.787,-25.002,51.218,-21.341,-20.188,-3.513,36.62,35.926,52.348,-15.012,29.44,-5.577000000000001,35.919000000000004,35.921,35.941,-11.772,-3.847,-6.938,1.987,-19.957,-2.036,-6.349,-5.754,71.467,-15.429,-20.248,-3.551,-3.52,-3.2960000000000003,37.99,-20.359,-20.384,-20.521,-20.393,15.216,2.215,-10.543,38.347,35.926,-9.892,19.471,-5.792999999999999,-19.333,2.948,-16.633,-0.1009999999999999,22.413,22.315,-6.305,-6.21,-30.957,-16.695,-21.208,7.478,-33.962,47.273,-6.112,-4.573,-20.095,35.907,-0.706,1.793,52.81100000000001,48.321000000000005,-33.01,-32.993,-22.167,-10.387,-8.544,20.689,18.827,63.126000000000005,13.73,70.992,27.393,-14.342,-19.986,2.647,-7.308,-15.204,33.141,-6.323,41.447,-6.382999999999999,-20.122,-19.57,-19.181,-20.037,-4.867,-8.234,-9.624,-5.426,-28.89,23.941,-20.969,-19.621,23.898000000000003,44.393,12.322,38.358,15.612,27.952,-48.93,35.648,13.061,80.465,16.871,23.953000000000003,52.473,-15.361,-15.637,80.259,-22.178,-24.371,20.156,0.539,-5.339,0.4479999999999999,6.405,6.343,6.148,5.609,6.069,5.726,33.361999999999995,33.273,-1.535,-1.592,-1.515,-2.91,-9.207,-2.989,3.629,-1.886,5.671,-1.905,5.606,5.664,15.128,44.672,12.404000000000002,44.126000000000005,6.654,-1.297,-7.04,44.639,-5.59,-16.64,-22.173,-1.812,-6.134,-21.817,-55.532,-16.119,12.184,-14.593,52.927,51.633,-21.569000000000003,5.648,34.732,-55.494,-30.578000000000003,-35.513000000000005,-9.854,-27.716,39.114,-38.997,-14.665,-11.095999999999998,-11.187,-54.358,-54.408,27.081,-3.528,-15.127,-6.867999999999999,29.284,-15.857,18.601,-12.091,0.376,-0.115,-19.847,18.481,28.206,-22.655,-55.654,27.874,31.398000000000003,-55.909,31.46,-45.475,18.886,49.899,4.553,-17.517,22.288,-9.934,-5.358,-30.387,-15.307,49.835,-6.0760000000000005,16.951,-7.31,-36.694,-30.233,-45.538,-62.496,58.307,-2.088,-19.194000000000003,-61.037,-1.696,50.486,50.078,-0.211,49.88399999999999,50.43899999999999,-55.322,54.828,-33.489000000000004,-23.024,6.274,-34.131,-15.184,41.589,50.101000000000006,4.175,50.835,-5.448,-62.473,-5.315,2.091,2.013,2.0580000000000003,-19.376,13.372,-5.193,2.033,-53.23,52.835,-23.175,-8.267000000000001,-22.759,51.301,29.273000000000003,4.19,31.719,-41.373000000000005,25.89,23.415,-28.049,52.576,-4.5280000000000005,23.338,-59.918,11.663,4.691,43.608,43.674,6.966,-58.302,-20.666,-15.779000000000002,-23.876,46.998000000000005,-9.784,-0.8320000000000001,50.893,10.679,-20.613000000000003,51.123000000000005,-4.439,50.813,-42.264,5.162000000000001,7.27,4.956,-65.543,33.394,-59.281000000000006,19.933,-1.4380000000000002,0.363,-10.016,-9.983,-46.102,2.281,-1.4680000000000002,-16.625,-3.2430000000000003,-3.937,-3.73,44.062,-16.646,-3.004,41.025,33.144,-6.225,-10.011,51.372,-18.125,51.685,54.011,-2.26,24.281,-47.79600000000001,44.103,-17.192,37.245,-53.93,14.277,14.183,-17.467,-10.294,53.693000000000005,46.973,-20.043,-40.544,-19.184,-7.291,-10.19,53.529,51.304,53.56399999999999,-25.916,44.98,43.233,42.996,42.916,42.619,43.069,42.952,42.964,42.683,42.706,42.601000000000006,42.498000000000005,42.715,8.132,-28.518,42.941,-21.166,43.182,51.875,43.318000000000005,43.2,43.302,43.125,21.013,19.105,0.95,43.018,43.175,42.847,-12.792,21.112,43.402,57.84,19.104,12.271,12.205,57.98,-53.156000000000006,43.988,13.225,-27.235,-19.077,6.79,10.686,-27.037,-6.064,-27.075,35.178000000000004,35.256,-10.246,17.323,-18.35,-18.102,-15.792,-1.018,36.406,-24.813,49.986,-30.526,-8.684,-52.801,-8.974,-15.538,22.131,50.478,-16.063,-14.327,-37.65,-27.118,-8.767000000000001,-14.264,-26.825,1.994,-22.812,-16.230999999999998,-26.781,-54.351000000000006,-26.735,-26.829,-58.323,0.326,43.446000000000005,-56.273,32.995,-4.471,-26.628,23.052,33.081,51.287,51.449,11.511,45.735,-1.956,-32.791,57.067,-5.377999999999999,37.211,-7.194,10.607,25.78,-15.988,18.267,-0.1889999999999999,-47.369,-37.314,7.345,7.103,40.657,39.488,61.039,-5.622000000000001,-5.547999999999999,33.243,-8.341000000000001,31.65,39.536,42.453,-3.422,25.645,73.30199999999999,9.159,5.23,-17.32,-7.034,-54.518,9.048,-4.387,-4.364,-26.12,26.582,26.526,10.348,9.822,-52.32899999999999,-54.849,-55.359,70.756,71.541,13.244000000000002,41.891000000000005,-1.228,35.606,35.716,-8.745,27.557,-13.548,-32.986999999999995,-32.518,-32.937,-60.823,-14.233,0.636,36.369,19.379,-54.747,13.797,-21.985,70.779,-33.042,-2.979,-24.164,-26.075,-6.029,38.896,-24.286,-5.93,-23.794,51.619,51.57899999999999,50.052,85.992,52.444,-3.967,49.975,30.573,-6.153,38.622,-18.275,-1.374,-51.183,-1.599,-24.675,38.911,-28.463,46.126000000000005,33.82,33.82,-55.724,53.648,-41.861,-3.043,-3.486,35.181,-55.74100000000001,-19.401,-55.636,-15.198,1.257,-6.263999999999999,-35.588,43.1,43.157,-55.664,52.283,-55.672,-0.245,-11.128,-19.912,-19.772,-55.593,13.675999999999998,50.036,51.406000000000006,-16.767,48.088,-9.436,-20.586,-7.974,-56.291,-19.058,33.402,-23.871,-14.464,-14.745,-14.662,-14.494000000000002,-14.92,-14.953,-14.441,-15.117,-14.851,-23.223000000000003,54.64,-15.317,-15.505999999999998,-28.919,-22.538,26.022,-14.562,40.606,-12.299,-14.856,0.0,-26.889,-38.954,-14.434,-13.853,-14.159,-5.54,-7.421,48.757,-9.638,-30.924,32.913000000000004,-7.754,-60.3,-34.175,-14.364,55.20399999999999,42.126000000000005,18.923,18.596,12.118,-7.422000000000001,-5.157,-4.92,31.836,52.357,-7.461,-7.382999999999999,-47.424,-7.59,-6.882999999999999,-7.121,-19.104,-5.022,-7.23,-6.221,18.909,-7.326,-5.132999999999999,53.799,-3.768,-21.377,-6.101,13.523,0.009,2.545,11.43,11.446,18.439,13.909,-30.043000000000003,33.151,44.041,53.321000000000005,12.21,1.271,-19.201,-36.813,-36.695,9.336,35.586,-20.062,-18.836,12.289,-6.604,30.916,-7.484,-7.335,0.4029999999999999,-59.797,48.323,8.755,-6.799,-13.862,1.294,-14.929,49.9,-13.58,-54.043,-23.931,-23.798,-21.931,12.554,27.727,-27.267,50.109,57.585,-2.186,-6.945,-30.79,55.102,55.12,-49.044,45.49,14.263,45.972,1.516,-38.172,-24.011,52.974,-22.844,-22.819000000000003,46.248000000000005,31.649,-9.577,-24.535,-8.17,-14.962,-26.246,18.276,-13.880999999999998,22.301,-17.452,37.74,-15.201,-16.692999999999998,12.728,34.522,-21.756,-45.982,-4.372,28.243,1.744,19.74,-57.901,1.875,-19.561,-7.303999999999999,36.469,-6.667999999999999,-26.272,-4.841,50.05,11.239,-11.173,25.141,-6.513,-4.89,-17.699,-20.755,-17.320999999999998,-17.616,50.833,60.328,49.952,27.226,2.681,-15.847,-54.54600000000001,-2.882,4.236000000000001,-15.443,5.66,-5.752999999999999,10.563,64.771,-60.649,52.262,28.273000000000003,-33.416,-22.065,-7.007000000000001,-55.833,63.167,-2.28,21.02,-54.642,15.444,-26.09,-49.104,-36.558,33.786,-4.718,-17.988,-19.16,-22.135,-22.642,-29.082,-29.122,45.136,-60.763000000000005,36.414,7.747000000000001,7.409,7.704,7.745,-8.724,-15.218,17.064,-6.065,-16.624000000000002,-19.534,-55.506,-31.252,-6.082999999999999,-3.594,46.293,2.745,46.222,46.122,46.333,36.353,-5.976,-22.351,56.516000000000005,56.67,56.632,-41.893,35.999,-21.758000000000003,-55.708,24.572,-8.482000000000001,-21.385,39.457,39.415,39.471,39.469,-15.982,51.525,-55.456,-5.332999999999999,51.56100000000001,68.913,-32.743,-9.053,-35.225,51.498000000000005,-38.453,52.243,-7.49,4.28,52.407,32.049,39.669,-27.933000000000003,73.366,1.841,30.562,-2.769,18.337,18.208,33.134,-7.252999999999999,36.49,-4.287,15.103,-9.815,-14.911,-3.685,-56.331,-30.431,-8.365,-58.646,55.289,-23.935,49.625,-7.579,42.792,-6.242000000000001,-6.419,-44.374,-23.708,52.173,-0.278,33.602,2.6910000000000003,28.596,43.176,12.034,-5.906000000000001,-12.265,26.288,-58.299,17.3,44.724,40.96,40.929,-4.138999999999999,-13.277,-60.748000000000005,40.506,0.52,40.572,40.628,-30.706,52.636,49.972,40.338,-6.324,-55.385,-0.149,-6.595,-6.593999999999999,-17.909000000000002,53.929,62.087,-8.42,-54.179,15.84,-6.305,-15.447,-6.88,29.85,70.817,-15.182,42.489,-56.166,-12.5,-6.497999999999999,-15.859000000000002,51.631,-23.905,-33.154,2.316,-57.958,58.797,35.767,2.4330000000000003,20.565,18.973,-3.19,-3.044,-15.023,-53.566,30.25,-6.863,-6.1,-15.207,-19.563,30.698,-27.723000000000003,19.417,19.076,-6.167999999999999,-5.012,0.3929999999999999,-7.686,51.857,36.457,-4.887,2.624,-24.877,-54.144,7.4,-14.563,-14.59,-2.3080000000000003,51.697,49.96,35.054,-32.996,61.597,14.126,19.29,61.909,-4.932,46.88399999999999,21.579,53.013000000000005,-55.413,-55.362,29.233,-2.995,-33.512,52.22,-4.966,-4.956,-4.803999999999999,29.406,-7.983,-17.905,-2.94,-20.523000000000003,32.455,31.95,34.992,14.65,-28.342,33.026,7.218,-9.908,53.053,53.113,44.63,-4.941,40.641,-56.065,-7.287999999999999,-6.686,-7.194,17.637999999999998,49.82,17.355999999999998,51.377,-24.886,8.017000000000001,-21.727,-10.879,-7.388,85.04700000000001,40.085,-6.529,-19.795,-6.098,-17.862000000000002,-3.0460000000000003,-8.447000000000001,-5.004,-2.444,-19.53,9.037,-55.974,27.497,-29.941,-21.778,16.598,-7.737999999999999,40.493,40.471,0.775,-2.546,-10.07,-4.231,35.167,22.735,46.695,29.551,-27.959,-32.157,40.418,-59.461000000000006,42.06100000000001,13.325,-54.21,22.77,33.597,-23.022,1.093,-31.054,-21.235,10.04,52.198,52.342,10.126,52.156000000000006,52.212,37.721,-4.041,38.073,-47.516000000000005,-50.803,54.097,-17.699,-14.767,5.6770000000000005,71.516,48.355,4.454,-55.444,-36.403,33.19,16.447,49.99,-8.853,35.819,35.88,-39.0,36.184,-52.758,37.135,33.093,-23.008000000000003,31.023000000000003,-4.642,-32.654,-38.183,49.325,1.018,36.082,41.322,-20.965,35.16,-9.601,51.343,22.697,-20.905,-17.561,-15.087,57.375,-6.7860000000000005,35.997,36.028,0.769,-37.926,-22.438,26.642,-50.416,10.244000000000002,10.154,35.866,-13.697,-16.340999999999998,-20.622,-4.4830000000000005,23.442,49.764,-40.251,43.024,43.228,43.271,43.31,43.347,12.267,43.489,-30.179,-32.494,43.55,-59.184,36.279,43.667,43.965,42.624,11.894,-3.043,-56.765,-13.733,30.078000000000003,43.17100000000001,-2.7,42.964,-20.611,22.918000000000003,19.044,37.2788333,38.759,44.745,-21.255,-8.156,23.893,25.906,29.459,21.485,32.795,6.507000000000001,-4.611000000000001,-10.329,-17.174,-14.712,-29.087,-1.55,-40.446,-30.623,-30.867,29.348000000000003,44.388000000000005,-54.746,-6.59,-7.073,-7.104,-6.928,-6.707000000000001,-6.58,-4.339,-6.736000000000001,-6.908,13.695,-6.361000000000001,-7.086,-6.65,-6.37,-6.343999999999999,-7.206,-7.098,-7.226,-23.476,-21.342,55.055,-0.045,-6.934,32.555,-10.002,-9.793,-9.801,-37.5,-9.676,-5.215,-5.084,39.4321667,39.439,53.387,-15.645,33.77,43.9,-2.4730000000000003,-3.791,-15.476,-22.648000000000003,5.9510000000000005,-11.726,32.042,-6.882999999999999,37.103,54.877,-5.376,-21.188,-17.245,16.224,-20.399,-6.566,-3.241,73.369,54.74100000000001,10.013,-5.191,-6.876,-19.236,9.796,-15.75,-3.719,30.082,30.088,-10.004,-35.573,38.474,40.043,-13.521,6.989,51.895,-10.75,-47.335,-7.267,47.039,-34.759,41.881,-6.42,-13.21,-6.162999999999999,-7.907,32.095,-20.535,-11.96,25.154,-7.204,-6.473,-0.477,-6.805,-9.551,-10.786,-4.931,-4.882,-4.83,-4.8260000000000005,43.199,30.251,-22.126,-7.841,-4.62,-10.127,30.413,-5.041,6.398,6.238,-12.519,-4.836,-15.408,0.898,0.867,-25.092,-12.991,-15.444,-24.894,-24.041,-3.335,-24.842,-7.061,-11.639,-7.473,57.446000000000005,70.843,-16.256,73.351,11.707,11.661,-55.99100000000001,11.647,-2.74,6.577999999999999,-9.357,8.102,-22.862,37.2901667,49.984,4.052,-10.985,42.007,-22.454,12.536,12.54,12.728,53.655,13.843,11.989,-18.467,-17.266,54.355,12.549,-10.958,6.648,13.793,46.673,41.486,4.129,18.225,12.946,-5.055,13.054,-2.227,-12.273,-6.822,-24.05,54.36,-4.405,7.513,8.059,43.289,-6.43,-9.151,-56.644,-17.773,-49.075,-57.76,19.36,19.334,-5.069,52.599,12.578,-21.168000000000003,-6.285,43.602,17.416,-4.47,6.051,-14.789,44.794,-11.556,9.776,0.631,5.283,-7.004,-5.074,-7.12,-11.754,51.94,-11.226,27.01,-10.736,50.043,-7.32,-4.084,-16.264,43.124,-15.336,-15.157,-7.978,-56.772,38.628,-28.611,-28.949,-16.59,-16.785999999999998,26.477,37.2965,-10.08,-13.288,51.601000000000006,51.678,-17.916,-0.145,51.651,51.682,-7.819,-15.759,-35.101,-46.479,66.157,-15.225,-29.208,-28.427,-29.941,-29.543000000000003,-28.663,-29.305,-29.027,-30.376,-30.021,-30.251,-28.569000000000003,-30.151,-28.062,-29.732,-32.647,77.87100000000001,-22.472,-32.404,38.896,-30.268,44.915,44.595,44.537,44.496,44.854,-32.419000000000004,58.942,44.388000000000005,44.517,-7.478,-50.319,-28.635,44.499,44.799,-29.514,-29.339,-15.948,-6.7620000000000005,-29.894,44.343,-21.468000000000004,-29.453000000000003,-7.632999999999999,17.172,-9.817,51.502,-16.011,-25.136,-18.108,54.504,15.324000000000002,23.456,-21.702,43.06,-5.98,14.764,15.571,21.588,44.474,-6.434,-15.257,-4.637,37.2713333,-12.433,15.67,13.916,-57.414,26.558000000000003,-23.192,-8.082,13.0,9.945,-28.385,-29.751,-5.266,19.885,13.677,-22.951,-3.3560000000000003,3.1660000000000004,-6.313,23.019,51.471,-19.481,-39.999,-9.266,-6.281000000000001,-8.232000000000001,-14.744000000000002,0.838,-7.266,-10.729,-11.845999999999998,16.759,-6.256,37.306,37.2558333,36.607,24.284,-39.109,-29.887,-56.148,-11.94,1.152,-58.864,-38.626,-38.795,-30.577,13.773,-5.001,33.779,3.929,46.015,-12.89,35.956,-57.416,-62.697,-15.245,40.217,21.817,-3.873,17.62,-28.091,40.311,40.167,0.782,0.905,-6.428,-17.656,-32.736,23.221,-51.905,-25.837,40.172,4.132,53.534,-7.215,10.281,43.403,28.714,34.111999999999995,-28.501,-47.572,-4.562,-28.197,-62.872,40.888000000000005,-5.981,7.992000000000001,-21.928,-44.642,-23.767,-29.934,-21.725,46.356,46.35,-28.041,-7.452999999999999,-7.451,-7.577999999999999,-7.603,-51.506,-51.603,37.56,-4.612,10.782,-6.375,4.461,-11.637,-54.617,40.381,-59.949,4.464,-31.117,-15.936,3.684,-5.919,31.009,-5.577999999999999,-31.117,-5.579,-4.935,-10.489,-31.175,-4.942,11.507,31.251,51.606,-17.357,-5.39,24.57,24.531,-1.052,-41.637,24.343000000000004,24.377,-62.753,-26.574,-5.2010000000000005,38.315,23.888,-10.086,-7.445,-10.098,14.087,17.403,-16.299,24.894,-4.862,-6.515,37.545,-0.179,-15.305,0.5429999999999999,-1.4380000000000002,46.162,-24.814,-15.297,-15.205,-18.02,24.742,3.397,3.3960000000000004,0.5429999999999999,-59.661,3.4,29.913,-4.603,-4.273,3.665,-4.633,-5.129,-33.816,-2.113,-29.522,49.915,3.242,-50.139,-9.55,47.358,7.337000000000001,7.385,7.409,7.037000000000001,7.383999999999999,-8.17,-8.127,5.799,-4.607,-4.157,-21.693,-4.73,24.782,-3.508,-29.967,-58.957,-4.534,-21.907,4.956,39.57,39.664,-20.196,-20.266,39.295,43.172,-56.06100000000001,47.782,-30.322,-20.609,-35.647,6.982,-34.525,-20.842,2.136,-10.954,3.55,26.68,32.751999999999995,6.2620000000000005,7.199,7.037000000000001,7.381,10.063,7.249,6.476,7.275,-30.396,6.441,-30.265,6.922999999999999,-30.275,14.499,45.048,-20.412,-6.722,32.571,60.22,-14.047,32.492,6.52,-25.326,13.045,49.969,-2.568,-29.756,-29.627,1.099,-56.252,-28.29,-20.414,-10.247,-8.156,-6.482,-21.327,4.836,-14.905,-0.057,-14.332,7.797000000000001,46.28,-24.12,-30.126,29.795,-26.432,4.127,-3.721,46.302,46.322,84.289,-9.214,2.412,-11.056,18.221,44.88,-46.193000000000005,40.028,-5.917000000000001,6.803999999999999,-26.578000000000003,38.775,73.404,6.922000000000001,-30.239,-3.4610000000000003,-58.256,-35.121,-6.983,-5.273,-30.536,-30.379,-6.426,-0.747,37.092,18.948,4.35,-10.453,-33.138000000000005,-18.173,-4.468,7.084,56.143,-4.52,50.382,6.242999999999999,-4.517,3.5410000000000004,-6.089,-6.053,-29.349,-29.217,26.704,4.141,27.605,33.802,33.235,8.478,6.934,-3.778,38.09,-19.605,7.991,7.848,5.0,-57.364,39.444,-41.636,50.983,-8.818,-4.17,3.745,7.029,-38.519,49.99100000000001,46.273,51.172,39.121,39.243,52.012,-19.498,-38.923,41.035166700000005,-17.852999999999998,7.34,36.507,-20.52,-19.947,30.977,-20.381,-56.18600000000001,-56.076,-34.57,49.88399999999999,-18.933,44.76,44.525,-5.936,-4.725,13.962,7.494,28.043000000000003,27.395,28.294,28.271,-17.317999999999998,13.102,-20.912,7.678999999999999,0.596,9.27,48.802,0.528,23.297,41.783,-45.551,-30.681,-40.572,-21.144,-7.885,-2.532,38.146,-10.17,27.457,23.394,-3.63,-52.257,-31.282,21.173,-11.273,-20.717,1.577,12.96,12.989,26.677,-14.874,-24.848000000000003,-41.731,37.022,5.0360000000000005,-18.014,-13.379,-15.917,-10.925,-6.511,-17.437,-5.215,40.04,45.372,-24.689,-66.44800000000001,-21.821,-60.933,15.679,-0.1169999999999999,25.973000000000003,0.496,-45.48,41.409,33.071,-41.367,53.566,-11.686,17.241,-6.277,-6.289,-6.327000000000001,9.215,6.867000000000001,-16.374000000000002,6.772,45.772,-1.68,-8.295,-8.323,-11.961,-12.056,0.451,41.606,2.594,23.743,-4.953,-6.731,16.773,-5.4910000000000005,44.2,16.743,16.814,-21.932,13.199000000000002,27.609,27.602,-33.604,27.579,6.792999999999999,-14.466,27.651,-14.427,27.619,-6.761,52.295,-18.585,-14.683,-48.984,27.545,-2.285,-16.695999999999998,7.301,12.01,31.983,-26.933000000000003,-6.407,-10.015,-52.287,23.183000000000003,3.778,8.861,-5.544,-5.622999999999999,30.599,-9.828,-9.898,-9.89,-9.844,-9.818,-9.673,-9.802,-10.867,-9.833,-9.889,26.861,-9.965,-10.148,-10.245,-10.276,-10.168,-7.612999999999999,-17.748,-9.884,-7.204,7.186,-0.979,2.0,39.268,21.747,28.424,1.487,1.617,-19.131,0.482,-23.867,-4.444,-10.218,15.699000000000002,0.665,25.474,18.814,4.237,-1.732,-64.944,49.944,-34.692,52.428,-11.814,36.243,36.436,-23.865,32.636,38.539,-4.95,-3.195,-18.525,13.309,-14.12,-19.876,19.043,-13.72,-9.766,4.652,47.15,-22.878,-22.892,-2.268,-4.6,22.562,22.65,22.615,-0.061,-7.599,-9.954,1.435,5.278,-21.068,-5.806,-7.41,5.064,-22.455,-56.115,-19.128,-6.3,0.505,29.88,40.316,24.051,-29.393,-27.456,-62.89,-53.863,-53.722,16.882,-5.257999999999999,-33.797,-15.339,-8.031,6.537000000000001,-20.494,-56.013000000000005,-12.371,8.554,-10.567,-8.172,-17.564,-6.533,-9.244,-22.752,-22.745,-7.763,-19.28,46.632,-11.145,-11.085,-10.566,-10.192,-11.018,-10.803,-10.803,-10.925999999999998,-10.885,16.612000000000002,16.7,-10.913,-11.099,-11.108,-11.039,35.241,-11.186,-29.974,-10.858,-10.734000000000002,-11.394,-11.298,-10.743,-10.443,-10.808,-10.057,-10.667,-59.426,0.152,-8.062000000000001,-8.277000000000001,-8.289,-29.062,-1.081,17.441,33.496,-10.976,7.335,73.376,-11.739,26.408,-11.04,-13.682,51.207,33.306,51.096,51.261,51.144,51.179,50.092,3.125,-11.127,-10.351,1.589,-6.074,-11.102,-1.6,-11.223,13.947,-6.572,-15.389,-15.397,35.048,-15.454,-56.38,-11.309,11.772,30.878,-56.531000000000006,-13.575,-1.984,-16.372,-23.5,20.033,51.754,-11.206,-5.757999999999999,-11.298,-60.039,-21.517,-11.336,-16.041,-10.078,11.573,0.482,40.963,-29.011,-18.58,-11.483,-11.191,-9.965,-10.081,-9.952,-11.265,-9.932,-9.845,-10.008,-9.916,-9.893,-9.998,-9.515,13.328,-9.925,-9.995,-25.856,-11.165,-54.515,-15.723,-15.371,-39.752,47.053,-30.058000000000003,-9.733,-9.752,-0.949,-27.914,-20.747,27.794,22.608,2.4290000000000003,-10.402,-27.952,-21.486,-9.693,-15.565,-15.55,51.146,49.841,50.059,-6.392,-6.22,-10.213,-20.418,-14.871,-11.437,-10.08,51.659,-10.108,51.544,0.192,-7.153,47.391000000000005,-55.96,-5.987,33.637,32.693000000000005,-4.353,-56.03,29.269,6.83,-10.231,-6.513,-31.028,-31.178,-31.247,-31.021,-31.067,-31.341,52.195,-31.556,-31.511,-31.471,-31.615,-21.894,-31.304,-31.467,-31.068,-17.956,11.8,46.42,-0.8290000000000001,-20.481,36.05,-31.681,-31.354,-32.032,49.957,-20.611,-5.026,52.929,3.511,-23.89,-23.915,-30.968000000000004,-31.059,-31.168000000000003,-11.220999999999998,-24.152,-7.175,-31.187,9.516,17.359,-0.135,-33.793,-21.101,-4.761,36.619,52.21,39.865,30.954,48.59,-7.837999999999999,25.51,-31.524,52.929,-0.958,29.553,-34.419000000000004,39.132,39.068000000000005,2.507,16.659000000000002,-5.07,40.0,-15.3,-38.137,-25.562,-20.825,18.793,46.825,44.68899999999999,34.809,1.6740000000000002,-30.115,34.797,-30.209,-30.521,-31.287,-9.79,-34.278,-4.17,44.731,-31.695,-5.98,-5.339,-5.013999999999999,-25.924,-7.155,45.972,-4.224,-24.846,-29.78,-56.124,45.06399999999999,-5.531000000000001,-56.391000000000005,4.83,-0.075,12.796,12.863,24.146,44.425,-30.683000000000003,-30.614,-30.653,-30.074,25.303,-30.414,5.734,-30.441,-8.665,-4.546,5.465,-3.389,-55.52,-28.57,-4.649,-3.857,-40.106,38.785,-7.04,-4.946000000000001,-4.843999999999999,-4.995,14.249,29.34,-22.698,-4.61,-9.662,-26.62,-53.795,55.073,-15.288,55.098,-21.894,-4.656000000000001,-35.523,-4.926,31.962,32.005,-55.627,-56.446000000000005,-56.428,-56.622,-56.505,-56.706,-11.136,1.753,-10.858,38.104,-30.677,6.138,24.072,26.42,29.926,52.295,-22.889,-38.201,17.026,36.049,0.831,0.7659999999999999,44.026,44.065,44.14,44.209,44.021,44.216,43.855,44.196000000000005,44.288,44.932,43.922,44.376000000000005,52.01,44.318000000000005,44.343,-24.784,29.801,44.244,43.653,43.857,42.839,44.109,44.07899999999999,-21.03,43.773,-0.1009999999999999,49.734,53.515,-20.476,-8.583,48.764,44.077,-19.643,27.92,-21.76,-4.852,33.033,6.783,-31.18,10.035,35.212,44.411,22.728,-11.36,-9.461,53.535,-19.485,56.423,3.3110000000000004,43.269,-16.47,38.391,-25.21,44.191,5.142,-3.788,46.777,36.62,-21.267,4.718,-2.814,-5.854,-9.849,24.656,-19.25,-9.303,-58.281000000000006,3.573,-10.242,29.841,37.319,51.667,36.642,13.915,-14.521,-56.769,-20.934,40.985,41.001000000000005,-37.418,-10.233,-30.76,-31.597,43.44,-54.847,-0.758,31.055,-53.152,42.736,-52.905,40.759,51.232,-0.09,-20.859,41.963,24.274,24.228,-1.837,-44.855,-6.481,11.05,-0.081,-1.05,-57.096,-16.247,40.381,-6.095,49.879,4.695,-15.262,49.262,-5.124,38.204,38.19,-13.37,38.319,8.249,8.238,6.135,44.031000000000006,-7.292999999999999,38.168,7.861000000000001,-17.098,-23.068,40.739,38.326,48.307,51.605,8.514,-15.003,-5.06,-5.032,-5.078,-17.111,-56.318000000000005,37.149,-20.262,-56.47,-15.328,-63.31,-63.197,32.655,49.839,18.487,0.56,-7.89,52.242,-6.617000000000001,-14.893,-6.438,56.769,-5.662000000000001,-4.189,22.282,-6.145,22.242,-20.67,-15.584,49.744,-15.285,-0.905,52.143,-15.371,-26.513,-0.1669999999999999,-3.5980000000000003,-60.837,-3.582,-4.024,-12.384,-15.439,63.706,23.51,-15.514,73.336,-35.863,-16.663,4.551,-17.812,34.35,-59.763000000000005,49.871,-7.91,-30.529,33.956,-8.068999999999999,-22.174,-21.067,14.374,-31.271,5.57,-47.669,10.204,4.035,-50.052,50.008,6.5760000000000005,-17.414,-30.682,-7.451,-7.521,24.896,-7.247000000000001,44.404,49.453,-20.143,-29.405,-13.316,-30.935,-30.367,14.27,24.927,-4.65,-4.562,11.556,-27.951,10.839,49.898,48.254,33.386,-25.731,-63.023,-5.521,-6.672999999999999,-13.919,-13.312,1.154,12.576,73.38,51.258,-19.135,18.615,-30.891,16.602999999999998,6.682,46.27,39.389,-6.454,33.416,-7.463999999999999,-5.579,47.818000000000005,63.143,41.214,-3.333,36.483,-5.882000000000001,-21.906,50.246,-5.441,-0.078,8.05,-27.534,39.349,-57.932,50.04600000000001,37.674,-11.23,-11.178,-11.037,-11.153,-11.132,-10.996,39.328,-28.478,-10.812,-11.205,-54.067,47.892,-7.183,-3.268,8.586,-26.179,-57.923,-10.852,49.956,-15.505999999999998,16.01,16.184,-21.903,50.929,-10.155,8.665,-4.5280000000000005,-59.552,13.145,17.447,44.592,13.713,45.344,-4.561,-30.346,-7.068,7.33,21.953000000000003,32.139,0.536,52.11,47.787,-54.476000000000006,-6.172000000000001,11.753,3.872,-21.817,-36.286,-11.206,-8.254,32.492,23.247,10.366,-56.543,41.108,-8.883,-22.945,-27.984,-4.169,26.609,16.944000000000003,26.519,-4.08,-35.204,52.499,33.897,-45.56,38.262,47.883,-9.511,13.406,41.535,-6.239,-29.937,60.131,17.413,17.554000000000002,-30.573,-18.544,54.768,11.927,-24.658,42.782,0.052,5.21,-56.316,-17.705,-21.043000000000003,5.767,-20.855,5.987,55.453,33.318000000000005,-15.559,-13.626,-16.39,-16.5,-6.8260000000000005,-43.432,5.683,40.232,40.356,-0.161,-0.238,12.829,-8.158999999999999,-14.969,60.642,0.6729999999999999,-16.557000000000002,-5.86,1.03,-9.558,-22.301,-56.077,-39.087,17.813,17.952,23.157,34.32,5.228,-17.586,-36.719,-36.65,-35.681,-7.352,26.74,17.987000000000002,42.004,32.152,-56.17100000000001,-4.166,29.181,-5.1080000000000005,5.267,19.716,-4.056,41.987,2.963,-36.007,42.096,42.319,5.683,-6.979,-1.21,32.986,0.077,-16.535,-52.996,-20.826,-3.639,-33.821,-18.324,0.541,-27.462,1.863,-15.353,9.33,-21.244,-30.71,-21.56,-11.047,8.355,-15.957,-6.311,-8.976,11.921,18.998,-4.053999999999999,44.76,-22.809,34.53,-35.666,24.132,0.677,-6.046,-60.088,56.647,-27.149,30.029,-8.299,-15.25,-43.783,-22.813,-60.428,50.336000000000006,-10.628,0.795,42.255,52.611,24.113000000000003,-25.998,-9.691,36.409,-24.604,-8.207,-24.689,-30.812,15.684,-18.633,-52.838,-36.28,8.106,-54.326,-5.05,-55.977,-6.528,38.808,34.955,-14.509,-19.39,17.0,49.918,-2.99,-4.98,-20.02,-5.956,36.475,7.164,-29.482,0.384,8.316,43.953,-42.369,-32.148,50.053,1.192,-13.224,-22.19,31.452,-5.627000000000001,36.612,-36.314,33.843,47.813,-4.426,-7.526,13.966,-56.228,13.858,-20.487,-11.149,54.126000000000005,-21.892,49.986,-6.372999999999999,-54.764,-62.855,49.901,-22.715,37.1038333,-8.714,-56.359,-52.766000000000005,-52.027,34.515,-4.87,38.678,41.81399999999999,-17.715,-17.654,-4.372,49.971,36.479,52.274,8.951,41.145,10.731,-15.582,-17.675,19.066,-21.023000000000003,53.978,52.79600000000001,-22.867,-0.366,-27.551,-5.97,8.123,-1.679,-1.639,-1.715,-1.147,-1.032,53.657,30.589,-15.634,-30.074,-58.631,-5.709,3.49,-1.749,42.812,19.35,19.347,52.292,-60.595,-60.526,73.369,-7.17,-60.578,-5.709,45.083,-19.067,-2.81,-19.276,1.193,-21.082,18.114,-7.416,9.828,-3.552,-7.212999999999999,3.791,-46.675,-46.70399999999999,32.6673333,33.02,32.9986667,-1.155,11.659,18.524,-61.266000000000005,-1.161,51.859,-16.426,73.33800000000001,0.524,-8.254,-7.372000000000001,0.6659999999999999,-64.872,-10.595999999999998,-10.615,-10.601,-10.634,-10.703,-10.705,-10.145,47.806,1.439,-58.76,13.833,13.778,49.967,35.016,18.794,-1.134,-5.859,-13.319,-7.656000000000001,-4.258,-15.595999999999998,17.828,-21.081,-9.498,-32.314,55.642,-17.750999999999998,-13.294,-59.463,-3.4210000000000003,-20.26,-4.437,-23.576,33.918,0.889,-16.76,-1.918,-56.58,5.861000000000001,71.192,-3.414,-24.344,4.805,-18.937,-5.555,33.962,-31.376,-56.465,49.894,22.919,2.478,34.033,-5.091,-15.845,15.925,28.882,1.598,2.149,2.843,5.509,2.614,-22.03,42.819,-3.299,-20.395,-28.346,-8.39,11.393,-20.529,27.089,49.964,3.502,-6.847,-6.495,-2.702,-36.003,0.964,40.216,2.099,38.815,5.984,5.935,0.036,5.688,6.058,51.324,5.672000000000001,-14.69,33.494,41.679,-56.631,16.518,-22.398000000000003,-33.194,-22.209,-21.829,-14.541,-53.658,37.721,51.317,2.714,-7.063,52.322,52.231,52.341,52.287,37.852,52.076,-35.379,2.445,-17.649,5.436,-57.907,-7.882999999999999,-54.158,-54.264,43.995,-4.703,-6.323,36.517,44.533,44.563,52.663,-14.933,6.702999999999999,-30.035,-30.032,31.383000000000003,30.506,-10.694,43.53,43.49,43.243,-17.687,-27.431,29.375,43.269,-6.017,-6.082000000000001,-6.187,43.299,6.299,26.993,12.147,43.122,-44.319,-16.689,-15.099,-15.478,-22.811,-22.673,27.176,34.873000000000005,3.059,55.707,-21.878,-29.952,52.969,52.6,23.867,-17.983,-17.904,47.111,-4.598,-43.07899999999999,35.448,16.129,-20.561,-20.73,-20.686,4.0280000000000005,-5.589,5.345,27.848000000000003,-6.397,-31.654,-44.612,-22.957,8.961,-23.466,-10.878,-17.199,-8.082,-8.113,11.736,-6.194,32.108000000000004,-18.175,49.947,-6.666,-15.59,-20.076,-19.479,51.233,38.053,-5.903,34.419000000000004,-55.835,-5.965,-5.297999999999999,-23.625,-14.464,-6.007000000000001,-6.197,-5.98,46.2073333,43.294,-6.146,49.729,-7.071000000000001,-6.05,37.5903333,37.6768333,37.6956667,37.5538333,37.6186667,-19.364,37.5206667,-18.649,37.6243333,37.5033333,38.482,-6.055,-5.234,-4.025,-5.489,-59.155,32.1998333,9.614,9.754,15.393,-15.390999999999998,15.382,40.796,-6.888,35.126,-32.723,49.944,-18.276,9.752,-22.029,-22.023000000000003,-7.348,-20.175,-5.178,21.956,-15.268,9.475,9.309,9.335,9.524,-29.956,9.353,9.319,-10.965,-57.973,-28.678,-28.776,-5.977,4.437,-6.5920000000000005,-5.233,49.92,34.808,-15.179,-31.469,-51.019,6.63,-12.41,-12.742,39.269,39.257,-12.807,-12.63,-12.689,-12.640999999999998,-33.474000000000004,-29.273000000000003,-4.456,-12.525,-11.828,-12.887,-24.034,-28.997,-21.886,16.352999999999998,-17.865,-6.252000000000001,-12.499,-12.287,-20.302,-2.7910000000000004,-22.0,0.8590000000000001,-13.101,29.331,29.598000000000003,5.276,-11.086,51.999,15.888,-56.012,-1.347,-1.948,-3.579,-41.318000000000005,-2.026,-15.222,-14.784,15.869000000000002,-12.499,17.179000000000002,3.238,38.1383333,-12.132,-18.612,-4.109,49.976000000000006,-61.387,-15.276,13.892,-5.125,-6.426,-15.595999999999998,35.45,35.46,-3.225,-15.028,-55.974,-6.31,19.942,-15.722,-39.542,-11.377,35.598,-0.004,-15.219,-5.3660000000000005,-4.864,-1.38,-15.379,36.195,36.364,36.221,73.35300000000001,49.958,24.281,-6.108,32.762,33.075,-6.271,-36.495,-6.605,-21.989,-22.019,-21.961,18.211,-21.982,-21.89,-21.887,-22.313,11.751,-22.065,-22.146,-22.283,-0.146,-13.059,-22.217,-30.464,-21.492,8.398,-22.238000000000003,14.366,18.954,53.817,-2.701,43.754,41.117,-31.576,-51.422,19.441,3.454,-31.691,27.394,-6.513,-6.064,51.798,-3.665,40.914,40.385,27.585,-35.346,-19.426,-27.134,-21.938,-30.245,52.256,36.027,-14.835,-65.721,-21.272,32.418,-58.937,6.6770000000000005,49.932,52.994,-6.101,-17.593,45.988,-25.025,-21.417,49.479,36.009,34.587,-21.339,30.581,-0.987,-9.047,34.503,-16.29,-5.64,-8.955,-22.214,-21.126,50.04,46.06,-15.487,2.137,29.244,44.21,2.156,-9.841,2.004,-23.754,-49.907,19.173,-14.974,36.362,2.059,-5.428999999999999,-61.091,38.489,38.51,38.64,38.58,38.64,38.599,-8.497,-4.5760000000000005,-3.471,-15.99,-59.323,-30.96,38.215,42.524,38.149,30.927,-29.682,-5.419,-6.649,-54.59,24.513,-56.115,51.744,-5.608,51.573,-11.905,-11.139,51.337,36.443000000000005,53.03,50.167,-10.681,-21.094,54.974,9.563,-15.594,3.333,-11.425999999999998,-21.743,-23.09,29.328000000000003,-21.541,44.639,-33.275,22.918000000000003,-22.198,36.338,39.076,-13.819,-21.382,28.314,-6.06,38.484,38.222,38.125,49.806,-13.925,-6.41,22.894,-25.742,38.209,-37.307,-6.251,3.893,38.187,-30.573,18.831,39.481,-23.378,-7.183,13.898,-8.759,-47.993,-5.45,-33.661,-22.805,52.673,-48.138000000000005,-49.263000000000005,-21.588,-19.37,3.412,-5.759,50.008,-2.277,-35.509,-27.31,-9.664,-6.134,-55.908,45.667,-59.779,-4.037,-23.414,14.275,37.232,-55.989,25.75,49.901,-14.623,-12.097,-13.425999999999998,-22.25,-13.53,-22.249,24.941,33.0955,-13.228,-57.591,-23.721,43.233,36.355,-1.886,42.66,-26.581,-5.16,5.829,-56.073,-31.025,-6.562,68.205,-48.786,6.156000000000001,-14.692,-5.682,31.851,-49.152,-16.125999999999998,18.734,-35.56,52.281000000000006,44.701,16.592,34.501,29.913,-60.17100000000001,36.176,-56.405,-20.065,-21.379,-20.256,-41.697,-30.269,-15.29,-22.293000000000003,-0.166,-22.92,-1.983,-3.451,50.207,-36.818000000000005,-17.26,-17.595,45.425,-17.143,-15.436,37.141,-21.681,11.88,-41.574,30.013,-21.617,-18.643,38.072,-5.186,29.537,44.849,2.446,46.567,-2.7510000000000003,14.422,-25.451,-22.983,-9.248,-3.981,-22.069000000000003,48.718,-22.894,-22.9,-5.343,-15.139,-14.96,-15.154000000000002,-15.314,-15.225,-15.474,35.707,6.49,43.621,35.205,11.05,9.964,33.66,-21.488000000000003,30.649,43.406000000000006,10.678,35.693000000000005,49.897,-60.843,24.866,18.32,-6.35,-6.489,-22.518,-22.337,-39.081,-22.48,-28.223000000000003,-6.794,-22.295,-22.185,28.97,-45.653,-29.972,38.499,40.181,-2.372,-29.335,37.5838333,37.608,-4.798,73.317,-33.913000000000004,50.733,-4.57,-9.406,-20.752,-6.402,-11.443,-9.979,0.44,40.229,-33.134,-0.2,-56.397,-7.101,-3.199,-45.50899999999999,4.596,49.886,43.257,-18.238,-8.78,-8.812000000000001,18.048,-31.272,-52.944,12.198,-1.831,43.542,-20.046,-21.549,-59.713,-3.5580000000000003,-32.199,-17.088,-6.169,37.281,61.809,53.221,-23.921,-65.635,-55.995,-22.141,-33.886,-2.282,-29.516,31.803,18.752,43.001000000000005,-22.504,-22.372,-3.2,-15.246,-20.943,48.82,6.477,42.913,49.86,-37.112,-7.412999999999999,40.907,-21.816,-15.755999999999998,14.57,-6.171,8.001,-6.087000000000001,23.932,4.888,-6.3870000000000005,-6.343,-9.348,-56.363,39.243,-9.753,-15.452,-29.97,-22.045,-30.392,-29.934,49.909,-2.121,38.938,-15.001,-30.24,-17.954,26.823,-0.972,18.014,17.87,-23.165,-10.517,-12.07,-3.387,-56.44,46.984,13.752,13.945,-52.478,13.158,-9.55,-8.036,-9.549,-9.523,9.994,-9.513,-17.288,40.004,39.906,-4.046,6.946000000000001,7.119,52.503,19.22,19.218,-19.092,23.9,31.696,31.582,21.649,14.085,53.222,-7.182,-6.096,-27.383000000000003,25.509,16.737000000000002,-22.713,-6.106,29.035,-6.863,-22.648000000000003,-11.470999999999998,-30.179,-47.376000000000005,-3.505,-16.713,-10.861,33.579,-6.178,1.842,33.598,-10.077,22.288,-21.698,-11.348,-7.291,-22.426,-0.774,36.441,38.009,-25.096,52.96,-56.037,-9.265,13.913,-3.324,-2.802,42.158,42.231,-18.586,6.65,-52.733,-6.845,34.711,-11.102,-11.083,-31.485,-12.69,-3.652,-15.470999999999998,-5.035,0.088,-15.095999999999998,-3.465,14.315,18.519,-20.614,26.484,-33.91,-33.832,17.38,-21.032,-30.185,46.765,-4.74,-15.792,19.871,-6.507000000000001,28.931,-3.394,-28.185,-26.044,19.888,-6.823,51.178,49.889,-15.055,-4.133,-56.245,-29.318,-23.467,40.068000000000005,-6.049,-0.624,-60.597,-10.734000000000002,-7.706,-24.636,50.574,-3.458,-20.283,-27.776,7.564,-3.385,48.826,42.812,-5.207000000000001,55.138000000000005,7.776,38.695,-41.548,-18.083,51.597,4.093,44.432,35.357,-17.953,16.607,16.558,-41.94,-5.707999999999999,-46.147,-17.616,-17.68,-4.714,31.907,-34.023,-22.614,13.313,-14.719,-10.783,-7.338999999999999,4.067,-44.00899999999999,-6.356,-55.486,44.679,51.426,49.995,27.929,7.653,-19.531,30.997,-31.26,-20.828000000000003,-51.225,-55.985,-3.305,-3.342,-21.735,54.55,-6.809,36.194,36.067,36.314,-21.864,3.589,-18.652,51.755,-6.117999999999999,13.741,-5.767,-12.597,-8.375,-8.318999999999999,-16.548,-11.143,35.655,-12.715,-5.352,-8.777000000000001,-3.064,-4.354,-1.568,-3.386,-5.055,-10.063,9.543,33.772,-9.25,-19.067,6.718,-20.553,36.354,-2.692,-6.018,-39.753,43.913,43.815,43.766000000000005,-23.859,-15.296,-15.433,15.559,-25.524,-5.593,29.325,56.844,-22.078000000000003,52.64,52.819,-7.23,-14.493,-21.576,-15.707,-23.469,-26.916,-26.93,-26.886,-54.355,-26.976,-54.442,-9.645,-9.567,0.196,5.979,-11.343,-7.071000000000001,50.053,47.015,1.2990000000000002,-24.271,14.487,-14.964,-14.74,51.435,-31.971,-15.591,-30.516,-22.797,-53.451,-7.156000000000001,-54.782,73.392,-62.553,49.632,-17.889,-11.36,23.825,2.987,-29.683000000000003,-7.403,20.483,-6.049,2.967,44.045,-15.488,-6.65,-55.788,1.491,52.986,-9.374,-14.614,40.883,-5.871,-54.377,-1.719,-31.207,-10.599,-54.415,34.583,55.4,-7.184,-23.913,12.775,-55.889,50.205,-7.62,51.883,-4.499,-13.323,49.928,-9.884,-23.41,12.08,-41.391000000000005,-29.041,-3.507,-21.0,-63.059,-63.091,14.701,-24.061,-24.018,36.148,24.595,-26.674,1.7819999999999998,-32.547,-32.555,-24.178,-24.133000000000003,-24.352,-23.833,30.574,-24.789,-23.887,-24.337,-57.43,-24.038,-23.723000000000003,-24.504,-24.583,-24.741,-23.545,-23.736,-23.589,-24.725,46.05,-24.442,-23.618,-8.405,50.066,33.79,33.826,19.945,-23.687,33.763000000000005,-20.993,42.79600000000001,-16.942999999999998,-4.846,-59.495,-3.151,54.744,9.665,-15.296,-15.394,-3.161,55.179,-1.928,-22.006,-27.237,-35.813,55.911,7.405,33.268,52.844,-16.782,-5.457999999999999,38.026,-6.489,-57.966,38.173,-3.464,-6.667000000000001,-6.672000000000001,-6.712999999999999,45.223,-37.219,16.147000000000002,4.209,51.381,16.214000000000002,39.74,12.942,-3.6010000000000004,-49.556,-30.383000000000003,-24.105,2.602,-10.887,-36.226,-58.151,33.407,-3.48,1.493,-10.228,16.063,-3.514,-26.689,16.872,26.838,-29.707,51.754,-7.574,5.669,39.945,13.837,10.504,54.931,54.969,-21.592,8.735,5.546,37.898,16.355999999999998,-5.401,-18.268,49.243,-13.453,35.869,44.161,-43.977,-11.535,-6.212000000000001,39.497,-3.471,11.007,43.813,5.397,-6.972,-4.0360000000000005,-4.056,-18.116,-4.192,-8.172,-54.997,5.346,12.298,51.596,12.91,-4.883,-4.597,35.081,2.326,-4.694,-5.0360000000000005,-21.466,-7.275,-21.508000000000003,-6.513999999999999,-6.586,38.294,-49.484,-6.52,1.682,2.461,-28.529,8.717,8.655,51.976000000000006,5.723,5.791,-14.343,52.931,49.408,-15.038,40.025,-22.532,7.985,11.429,-17.846,10.419,-35.55,5.25,-4.843,-39.723,-19.221,-6.487,-5.979,53.386,-10.161,-20.725,27.793000000000003,-21.847,14.925999999999998,6.105,-11.206,-53.072,-16.233,-23.976,-8.875,-15.993,24.647,-62.511,-21.137,-30.945,-21.354,41.473,46.353,46.327,-20.733,36.24,36.2316667,36.23,-20.29,-33.866,5.428999999999999,15.439,19.972,-40.93,-61.865,8.232999999999999,19.98,24.419,-5.399,-4.805,2.293,-21.432,17.631,17.63,2.965,-18.907,-5.371,0.147,-19.065,-13.812,-21.895,40.462,40.95,40.826,40.979,41.243,40.234,32.594,40.696,-4.7410000000000005,13.833,-17.038,-15.694,-53.049,-9.512,45.344,-50.685,40.237,40.268,51.414,-5.937,75.53,-24.183000000000003,49.906000000000006,1.527,-15.232,-36.383,52.235,-8.228,40.176,-23.579,41.346,41.381,24.199,29.718000000000004,-51.722,21.721,24.176,21.4,-32.835,-22.003,-32.926,60.219,44.043,2.5780000000000003,-20.749,-57.934,36.935,5.747000000000001,20.161,9.652,-55.575,-55.849,-24.22,-22.599,40.324,-22.66,-57.879,-22.648000000000003,-22.609,-7.271,-21.745,-60.889,23.952,27.606,61.03,61.031000000000006,5.557,5.488,-7.176,-31.411,-0.123,12.669,5.957000000000001,-22.193,36.948,-0.161,-27.995,53.93,-8.141,-28.159,41.97,10.502,-20.127,-48.284,20.435,45.139,-17.395,52.934,-17.304000000000002,-3.596,51.63,16.125,40.142,-6.518,35.498000000000005,-23.782,18.828,1.815,-7.053999999999999,-8.667,-63.364,-17.102,55.867,18.231,73.383,-8.53,27.904,3.742,-28.726,-23.527,-3.552,-5.884,40.3732,40.372,33.509,8.171,46.177,-3.448,-16.708,25.092,-52.484,-29.405,-17.33,-20.998,-9.305,60.976000000000006,24.032,19.332,36.502,7.529,-24.013,-3.672,18.104,16.102999999999998,-24.032,17.974,4.75,-16.636,-60.371,-55.953,18.185,24.095,24.013,8.422,-41.853,-3.727,73.348,36.688,-11.177,11.912,45.628,-6.627000000000001,33.941,20.126,-26.535,-26.339,49.932,41.566,-26.724,44.229,-5.457999999999999,-26.135,-5.818,27.157,-2.948,8.055,41.694,24.457,-0.8540000000000001,-8.101,1.084,-23.681,-56.889,-20.794,37.588,-30.773000000000003,-60.665,-60.404,-60.62,-60.282,41.825,-12.849,1.131,49.92100000000001,1.626,1.093,-31.358,44.058,44.281000000000006,36.427,40.33,35.464,47.788,-9.016,-4.013999999999999,-5.779,-20.145,35.206,1.411,1.27,1.413,1.404,1.43,4.263999999999999,31.184,31.196,37.353,19.43,19.43,-8.98,43.706,50.066,-7.45,12.118,0.482,-31.125,-18.105,-7.481,-40.451,-5.466,-3.77,7.359,-5.462999999999999,-44.87,32.598,-6.22,-19.503,41.79,-56.494,-6.852,-6.653,14.066,-15.24,-6.462999999999999,4.396,-19.216,18.548,-22.479,3.792,46.248000000000005,8.137,-18.361,-5.077,-7.582999999999999,14.267,-56.041,-29.155,-33.099000000000004,-3.155,39.326,-6.605,-8.964,40.408,-16.489,-2.408,-2.515,-28.19,-28.042,-5.54,-5.435,-5.392,11.866,35.994,-20.899,-5.244,45.416,49.838,-7.366,-55.919,-6.206,54.191,-13.056,36.372,-26.051,-2.6010000000000004,33.683,-22.81,-57.89,-56.745,1.392,-3.011,45.477,37.966,-2.823,6.553,-60.951,-2.7510000000000003,-6.239,23.349,-3.863,28.804,-29.982,-7.705,-8.87,36.441,36.439,-3.904,-22.216,-55.855,27.931,-23.642,5.988,-17.833,-21.369,29.26,12.364,-56.558,-57.935,-9.414,-12.237,36.39,14.208,-31.419,71.868,-3.771,49.063,34.616,-29.498,-11.514,45.53,-25.755,-10.012,-9.815,28.271,38.396,12.09,25.482,36.431,-6.598,20.59,40.809,49.908,-6.111000000000001,-6.145,-3.622,39.401,-21.264,-7.138999999999999,-47.909,-16.747,-17.316,-16.085,-8.926,-18.57,-4.52,-21.144,-4.337,8.147,50.947,28.726,24.543000000000003,29.384,42.57,50.06100000000001,-38.252,-7.641,38.392,-23.423,5.202999999999999,-1.871,-20.089,-6.61,-20.567,3.379,-7.303999999999999,40.32,0.444,10.782,49.176,-43.95,-19.233,-15.227,36.634,58.978,-15.19,44.117,-3.562,-4.647,-23.765,-4.445,24.106,49.937,-1.77,17.362000000000002,-62.972,-4.606,-5.6610000000000005,44.673,-14.316,-6.85,-6.061,-55.511,-18.903,5.121,9.011,-5.648,2.454,49.74,-6.654,-59.735,-15.934,36.429,-31.764,50.12,-15.681,-21.866,-0.541,36.431,47.45,22.049,-5.047,30.909,37.3096667,37.32,49.953,-17.311,-3.525,-6.825,-5.299,-59.038,-1.776,43.26,-19.708,-18.057,-4.532,-8.568999999999999,33.719,-55.514,24.257,51.688,33.786,41.765,-30.305,-36.269,41.831,-21.852,42.967,-33.327,-15.253,-4.41,8.854,-27.393,79.753,-14.056,-36.429,-36.46,29.577,32.621,32.688,-51.95,-30.65,-60.106,-54.50899999999999,-54.976000000000006,-54.869,49.98,-43.548,-44.095,-10.896,-10.886,-6.196000000000001,28.756,3.565,-1.702,-1.668,-4.843,-32.726,-45.258,-22.649,52.112,13.327,-7.819,-4.82,-6.031000000000001,-5.796,-30.707,-13.826,53.648,31.448,-3.409,-15.816,38.859,51.684,-15.705,11.82,-24.101,35.36,0.715,2.756,-58.318000000000005,17.984,-43.541,51.187,17.996,-1.308,-9.648,2.9160000000000004,2.9130000000000003,-55.305,30.296,36.471,16.804000000000002,-54.871,36.295,-17.735,-7.212000000000001,-2.593,-12.924,-6.056,-56.1,13.33,-25.286,-5.787999999999999,10.851,-6.317,11.492,5.54,-7.32,49.891000000000005,17.463,-55.467,13.425999999999998,-56.392,-7.024,-10.277,28.106,-20.85,-30.421,-6.586,1.384,-25.73,1.291,52.997,50.317,-17.078,71.5,13.326,57.67,-40.929,14.386,-0.086,32.386,-15.406,-5.038,-17.840999999999998,-24.186,18.394,61.84,61.857,-3.233,0.39,-21.421,-56.785,-27.876,-41.039,-5.68,44.467,36.118,11.459,11.618,-58.917,-3.127,-16.225,-23.594,1.761,-4.506,27.431,54.113,-33.332,12.923,-17.957,16.08,44.452,-18.197,-21.138,-8.056000000000001,-25.494,-16.905,-43.395,40.503,40.5038333,-15.501,-15.75,35.789,35.774,-32.101,-7.0360000000000005,-24.778,-18.038,-32.157,40.885,34.006,-7.022,33.933,-32.201,-32.269,60.322,-6.562,34.01,16.784000000000002,33.975,34.003,-23.998,-32.243,-32.276,13.822,18.424,-32.04,53.577,-10.679,33.946,12.021,-59.281000000000006,-25.849,-21.51,-31.576,-6.056,-18.63,26.096,-18.523,-9.809,11.69,-6.327000000000001,-14.898,-47.86,24.886,-4.642,-20.147,-5.483,-33.998000000000005,-16.676,-16.724,-18.163,-15.771,15.024,-17.91,46.152,-15.86,-15.888,1.4369999999999998,-30.489,48.29,-35.617,-24.072,-20.693,-6.992999999999999,-56.864,-31.572,73.37,51.675,0.901,1.6230000000000002,39.155,49.949,-12.073,5.731,-17.109,-31.794,-31.539,8.185,-19.79,55.209,8.318999999999999,8.253,-21.883000000000003,6.78,-11.832,-18.876,-18.666,-2.112,-30.7,52.181,-7.321000000000001,-12.692,10.339,10.398,-25.083,-20.036,17.017,-22.022,-20.388,-21.596,-13.863,-23.269,0.1969999999999999,47.524,-4.688,-18.785,28.299,12.274,-18.404,-18.778,51.17,51.777,5.167000000000001,-14.505,-14.508,-30.958,-6.308,-17.779,-7.992999999999999,-14.312,-14.169,37.46,37.4596667,-8.191,37.4321667,11.987,-6.279,37.4473333,-31.443,7.601,14.92,26.697,-5.399,49.993,20.357,-3.818,44.212,37.971,22.609,-1.272,-21.848000000000003,0.364,-1.423,-1.068,-5.6770000000000005,-14.838,-22.407,-7.879,16.18,49.957,-4.665,44.424,44.24,-17.044,11.403,-4.72,-6.105,-5.99,-9.514,-58.7,49.861,56.194,-36.609,-23.542,-36.638000000000005,24.795,-36.622,-36.68,-36.695,-36.663,24.641,-19.55,-22.986,-60.135,55.428,-14.658,-21.616,-26.057,-0.6659999999999999,10.177,34.16,-36.644,27.152,-31.137,-36.583,-20.754,60.289,10.797,-54.158,-2.655,0.196,16.592,-36.676,24.107,-22.176,-10.316,-3.782,-3.684,-29.374,-0.953,-14.568,-3.898,-7.467,-49.583,-23.123,-33.053000000000004,32.545,-6.494,2.7430000000000003,-46.083,-62.114,-17.712,43.838,28.399,-20.547,49.877,16.644000000000002,4.544,51.18600000000001,-24.068,-3.509,-23.19,-4.762,23.402,-22.937,-33.205,-20.497,-55.715,-10.254,-6.966,-32.141,-2.072,0.1,-1.3159999999999998,-19.161,27.462,29.15,-2.092,-2.082,-2.2,-1.964,-33.107,-33.135,-32.738,-32.935,-33.141,-33.207,-34.115,-32.925,-33.825,-33.223,-33.142,-33.916,-33.842,-34.079,-32.878,-54.679,1.192,45.665,-12.486,55.24100000000001,-32.878,5.831,-13.912,-4.386,66.23899999999999,-33.702,2.935,-0.6409999999999999,-21.09,66.13600000000001,13.454,2.005,10.378,-33.072,43.51,-55.977,-23.726,-20.682,-55.2,17.012999999999998,16.972,-32.633,7.757999999999999,7.647,-33.198,-18.628,-3.276,-6.584,-34.207,-33.249,-8.391,-34.332,-34.254,-11.389,-6.437,1.166,-15.237,44.335,40.31,-55.618,8.452,51.883,-32.584,-33.272,28.23,-35.437,1.7990000000000002,-56.39,-5.7170000000000005,-4.124,-34.131,34.092,29.962,49.988,-35.598,-53.237,-11.343,-9.245,1.622,18.676,-33.491,52.144,25.926,11.848,9.004,35.527,-5.181,15.344,16.498,-5.823,49.924,-60.693000000000005,8.494,-25.518,-17.735,-15.798,38.599,-21.032,-32.998000000000005,-39.728,-55.494,41.479,13.398,39.266,-9.196,48.871,1.565,11.853,30.885,-36.407,-37.498000000000005,-57.659,-62.844,30.91,-21.823,-1.337,2.356,51.465,51.302,-5.599,-5.689,32.975,-10.61,-10.562,-51.792,-56.637,-56.593,-29.081,-17.755,-19.0,-33.894,53.611,-30.253,35.489000000000004,51.422,54.055,-29.914,49.133,-56.75,28.798,12.246,12.167,-11.239,-6.485,-37.728,52.395,13.175,52.452,-15.289,4.873,13.438,-0.379,-4.646,0.932,-3.775,-17.344,28.735,6.184,3.029,-27.958,-32.628,15.765,24.585,49.889,-56.345,30.276,-28.437,-24.032,-11.012,-10.945,-10.994000000000002,-10.964,-10.937,18.889,6.093999999999999,-10.614,-37.564,53.438,49.861,18.367,8.272,-33.797,-33.749,-54.82,-4.439,-4.364,-17.243,-4.256,-33.441,-29.721,-33.397,-9.725,-32.951,19.563,-59.732,-8.503,-38.605,-32.981,25.854,25.901,-4.251,-32.76,51.62,-37.161,-38.778,49.951,19.045,-6.312,-6.291,-6.398,-11.373,-27.014,-60.24100000000001,56.157,36.19,52.404,29.177,-57.725,36.174,7.496,-44.885,36.143,36.151,24.394,-20.083,-41.192,27.84,-6.102,-6.097,-61.556,-61.88,-15.315,16.9,-6.013999999999999,-4.249,11.156,54.139,-38.378,37.771,-6.997000000000001,-2.444,-3.844,-31.983,-15.119000000000002,-15.437,37.113,2.807,-55.71,-15.043,-16.101,-9.159,-22.364,39.431,-24.08,-22.021,21.804,-6.895,-17.53,-21.465,-21.011,-57.243,-38.91,1.409,-56.838,25.405,-3.079,-3.136,37.445,-6.464,-6.394,27.208,-6.416,-15.388,-54.324,-54.388000000000005,39.356,59.102,-4.09,-4.037,-4.13,17.974,-19.216,-16.771,2.084,-49.426,18.19,24.593000000000004,17.802,-46.678,-3.71,12.51,-6.405,18.208,9.283,-34.693000000000005,-33.623000000000005,-9.829,-22.171,34.506,-23.288,52.29600000000001,-16.958,-14.96,-19.499,27.558000000000003,35.816,-18.304,62.237,-18.961,-22.825,-6.791,54.765,-21.656,13.154000000000002,0.917,40.301,56.757,46.323,-29.012,-13.598,-20.158,-11.109000000000002,-31.386,52.072,-7.077000000000001,36.46,-3.747,-15.4,36.681,-9.569,18.158,51.801,53.249,-28.692,18.226,-18.052,-18.156,13.667,-58.716,-35.257,7.697999999999999,27.957,27.8,-9.818,4.203,-29.01,-36.499,-28.912,54.756,-38.577,-1.639,-1.668,-25.065,-32.298,41.703,-5.933,-55.102,-21.983,24.139,-21.867,-21.088,13.882,11.758,-14.043,-13.814,-14.095,-13.987,-13.905,-4.257,-13.905,-22.766,-16.366,41.158,26.939,-1.636,-30.75,-25.007,3.683,14.712,11.725,-14.153,-14.073,3.717,-47.676,-36.003,-36.024,-15.18,-3.652,-13.966,-14.092,-14.187,-15.572,-15.602,62.222,-13.979,-35.09,7.063,-14.322,-14.071,-22.744,62.068000000000005,-23.982,-21.667,-5.763,-13.192,-5.801,-5.546,61.541,-16.954,19.282,-34.31,-0.972,19.36,-53.163,-21.183000000000003,-13.361,-52.989,-13.737,-13.81,34.151,36.341,-7.144,-21.369,-21.277,5.936,29.802,24.771,-4.167,13.685,-10.729,51.553,-10.199,0.52,-0.467,-18.244,36.8043333,-10.4,-23.676,8.8,6.855,-12.841,-13.626,27.791,-13.322,-21.585,39.537,36.384,-6.569,-6.5360000000000005,17.019000000000002,-13.384,-14.227,-20.959,14.774,18.945,-21.122,-22.06,-14.449000000000002,-16.882,-8.934,-57.093,24.022,-56.70399999999999,-62.687,-6.3,51.678,50.789,38.471,-18.813,40.368,56.286,-7.0,-21.161,-4.99,54.256,36.482,-7.059,43.995,-46.975,-30.07,-18.909,-55.931,27.421,12.413,-7.455,54.284,23.422,24.753,24.681,24.669,-4.377,28.541,-2.488,38.354,-6.249,-34.022,-56.36600000000001,-7.125,-14.456,-23.122,-5.956,-17.929000000000002,-17.704,38.377,-26.194000000000003,37.4788,37.4791667,-18.037,54.653,15.54,-7.946000000000001,-55.984,-0.948,54.164,-15.175,-13.923,-4.865,-57.724,-14.856,-15.561,30.612,43.89,-2.394,1.982,30.563,-17.254,32.128,36.495,-31.14,30.766,18.404,-18.036,-47.237,28.699,-15.14,-21.861,28.017,55.172,37.993,18.156,-58.9,-58.782,-58.711000000000006,-7.045,51.38399999999999,51.52,51.5,51.5,51.5,36.374,51.518,51.469,51.5,51.087,51.18899999999999,51.164,51.14,51.336000000000006,4.627,51.218,51.192,-17.121,51.46,51.449,8.502,-37.075,26.743,51.544,51.526,51.418,41.431,-20.646,32.636,-14.787,52.294,52.217,47.20399999999999,52.327,-12.629,24.125,24.054,-7.305,14.368,43.684,34.63,12.699000000000002,-15.575,-16.202,-21.819000000000003,-20.19,-20.726,-2.825,-7.072,-7.836,19.96,-10.931,-21.898000000000003,-57.334,-7.015,29.805,9.117,-5.665,10.378,10.227,-36.351,-56.81399999999999,38.001,43.269,-2.1,-15.449000000000002,10.597,-7.019,-57.873000000000005,-5.651,-19.096,-29.872,0.831,-22.037,-47.282,53.88,5.776,5.644,51.356,56.331,7.798999999999999,-30.944000000000003,-32.213,31.24,-58.6,-58.614,34.794000000000004,-4.448,-0.085,-28.278,-28.243,-20.037,15.168,-28.024,15.188,-28.064,-28.002,6.766,-5.336,11.254,-15.564,-15.812,-4.758,-3.236,-3.213,-22.038,-59.55,-26.775,51.248000000000005,12.183,-60.721,-57.281000000000006,15.467,34.424,10.389,1.997,34.0,33.999,51.907,1.904,1.7919999999999998,-45.987,29.962,5.575,1.845,16.061,-19.511,31.049,36.668,10.77,53.352,47.264,53.6,53.521,37.5666667,37.567,-56.739,-20.572,37.538,37.538,37.4931667,37.6213333,-33.571,-61.934,51.247,51.223,26.384,23.753,-25.848000000000003,-33.282,51.776,24.611,-52.556,37.4731667,-52.566,-35.88,-28.304,13.073,-58.265,51.164,-55.288,7.433,14.099,1.985,22.265,20.101,2.006,5.9670000000000005,5.8420000000000005,1.795,-32.277,2.127,-8.689,1.929,1.864,1.765,2.276,2.161,2.219,-20.492,1.739,8.376,-5.325,2.069,34.572,-9.071,31.675,-34.549,-23.894,2.1,-16.316,37.724,-15.192,-15.103,-31.682,45.547,23.042,-59.493,-20.669,-59.542,0.927,-8.823,-5.187,0.474,56.201,-60.797,-31.827,37.014,-23.368,-6.47,-22.748,36.714,19.376,56.222,-3.934,-3.835,37.29,10.497,-6.716,-7.468999999999999,-16.621,-13.63,23.032,3.677,-5.579,2.892,2.982,-23.801,-23.716,43.493,-16.599,-7.497999999999999,13.827,37.931,36.067,37.102,-43.142,-5.03,-31.846,-9.94,-56.372,-5.272,51.73,12.133,-5.631,2.7710000000000004,-28.117,-27.681,-27.915,-27.932,-27.174,-27.972,-27.792,-28.153,-27.945,-28.211,-27.789,-27.262,-27.726,-27.802,-27.644,13.326,-10.569,-28.324,-15.57,-6.097,-11.037,-11.086,-11.228,-11.116,-25.319000000000003,-5.629,-10.991,-10.884,-17.663,-5.68,53.758,-30.481,-30.497,9.271,5.722,-21.702,-7.662000000000001,-27.544,50.881,-18.016,9.007,51.469,-28.591,-28.227,-28.344,-7.374,2.414,-48.678,-28.207,-58.731,-27.255,23.901,51.426,23.866,23.877,-27.221,-23.961,-27.135,-18.889,-16.265,-55.892,34.438,-15.268,-3.342,44.12,36.345,-16.252,38.853,-27.305,-27.15,-56.822,-15.722,-24.082,-27.352,-36.474,-51.257,-27.042,-21.715,-55.039,6.783,43.274,0.851,18.823,-17.955,-18.012,36.539,-9.917,-28.182,-28.171,-28.101,2.758,0.645,-56.879,-44.891000000000005,-44.46,-54.263000000000005,13.865,-23.823,-6.695,-38.775,15.22,36.666,-6.416,-20.399,-2.715,-42.437,-3.408,-3.443,-14.998,-27.193,-2.392,5.973,52.448,41.964,23.976,39.895,-19.469,-13.463,-29.292,5.784,5.712999999999999,-50.063,42.565,-32.624,-55.692,-52.904,-10.771,-6.664,20.608,-18.83,1.646,41.529,41.412,3.054,-32.154,-1.18,-61.09,1.265,-6.3420000000000005,-60.063,-0.114,-4.404,-37.75,20.053,-15.186,-34.719,36.992,36.988,-59.145,-5.8,1.604,-6.087999999999999,-5.835,-5.99,-5.98,-6.145,-6.1370000000000005,-6.002000000000001,-19.489,-6.0120000000000005,-6.995,18.831,-15.834,43.169,0.67,-15.467,-17.926,-45.698,54.72,-15.57,-15.563,-32.144,0.838,-19.676,-32.793,-58.705,51.298,-55.728,-6.103,-57.922,-15.854,-56.608,-2.48,-6.122999999999999,18.808,38.102,53.47,38.473,36.957,-37.965,-37.817,-45.708,-37.912,46.347,-6.528,-24.388,-24.432,-24.463,-24.495,-5.8870000000000005,0.048,0.151,-0.22,-24.089,0.022,-24.149,14.59,51.135,-16.022000000000002,-15.988,-18.448,-18.341,36.924,40.612,40.595,49.93899999999999,15.61,-0.268,-31.84,-31.85,12.300999999999998,-23.771,-23.778,-23.52,-38.897,24.945,15.609000000000002,-24.285,-10.365,-5.314,-6.441,-6.414,-6.446000000000001,-10.9,2.114,32.034,-30.188,-14.898,29.229,-20.397,52.056,8.816,51.594,-24.058000000000003,37.447,-21.517,-13.731,-21.39,30.658,-5.275,-17.244,-22.767,36.104,49.928,-4.731,-42.363,37.363,-22.782,-5.436,11.678,1.242,52.834,1.024,-37.332,18.802,18.796,-58.341,-22.278,37.065,15.348,49.886,-21.654,-22.74,37.155,15.877,16.066,2.244,-17.288,-57.38399999999999,-38.724,2.052,27.437,-19.013,-3.214,39.761,-20.833,37.618,-0.003,36.48,49.83,51.272,-5.715,46.736,-11.343,19.202,-30.911,-14.645,4.47,38.902,7.09,28.165,-5.271,-33.73,-5.644,-50.056,-13.568,-18.015,25.271,49.282,44.408,-2.229,8.302,-16.217,29.862,-30.284,-21.185,-21.893,8.047,63.85,38.222,-15.322,51.54,9.093,-4.537,-6.356,-4.615,39.729,41.584,11.574000000000002,5.381,5.265,5.332999999999999,-57.708,10.672,20.429,-0.3779999999999999,-6.3660000000000005,12.752,-35.278,-2.766,4.135,-60.167,-49.649,-19.706,44.67100000000001,-35.486999999999995,10.429,10.383,-58.269,-12.479,3.915,-35.853,-22.931,-5.577000000000001,17.291,-10.707,-21.213,49.913,-7.053,2.267,54.211000000000006,54.285,-57.295,-27.573,7.374,-21.179,-21.069000000000003,-21.243,-59.657,47.297,-21.276,-2.164,-14.097,-15.630999999999998,-21.126,-1.07,24.066,31.196,-6.7860000000000005,51.486,51.508,-26.999,-14.074000000000002,-13.994000000000002,4.4030000000000005,-25.826,-26.969,-5.7010000000000005,46.437,-56.375,55.137,82.229,36.953,-56.632,-15.332,49.631,29.255,17.522000000000002,33.059,-55.948,49.799,1.496,-15.475,-36.295,-5.562,4.051,56.231,60.155,-31.256,-30.21,-55.008,0.6579999999999999,-18.24,-18.309,0.175,40.4156667,40.42,49.88,73.339,-5.417000000000001,0.937,-58.688,-37.004,-19.022,-35.141,29.502,-15.863,16.092,5.888,29.867,-6.35,-12.262,14.089,-31.658,-17.897000000000002,-14.815,-12.58,53.416,-28.135,-34.963,-5.593,-5.483,-6.526,23.893,-20.749,-23.052,-58.893,-59.538,-59.588,49.293,49.262,49.213,39.367,-31.089,-31.218000000000004,6.521,6.547000000000001,49.612,-7.122999999999999,-22.329,14.272,39.429,-34.333,30.488000000000003,-4.709,-56.67,-4.118,-24.269,-15.001,-9.186,-0.978,-1.082,76.421,45.96,-50.716,-50.468,36.6,-21.841,55.463,-6.533,-21.503,-18.404,-18.411,-18.546,-18.34,-18.162,-11.389,-65.11399999999999,34.061,27.346,-8.142999999999999,-17.95,-5.447,36.454,10.823,37.306,55.585,-0.06,-17.94,-5.797999999999999,52.956,-22.845,-19.599,-7.871,-6.066,-35.004,-7.287999999999999,-7.141,-7.232,-34.393,5.6770000000000005,13.359000000000002,-6.306,-6.266,-56.058,-6.5520000000000005,52.577,0.917,-19.204,-21.822,-10.913,5.409,-2.323,-2.297,-21.36,-28.676,5.74,-28.294,4.817,-6.949,-28.674,-55.504,-16.4,-17.204,-21.812,-5.448,-22.801,5.634,-2.325,-17.209,44.515,-0.188,19.748,19.632,49.871,6.832000000000001,12.534,58.586000000000006,58.608,-8.094,58.642,12.845,24.248,-21.904,46.413,61.61600000000001,33.08,33.09,-56.076,-17.676,-5.607,33.01,33.015,-16.976,-5.601,-8.247,-16.351,-0.2339999999999999,18.678,-16.262999999999998,-16.307000000000002,-16.373,-0.3379999999999999,-45.715,-19.648,-0.0969999999999999,58.679,58.239,-17.768,57.953,-5.777,-16.613,-13.632,-13.559,-32.636,-40.585,-60.409,-15.5,-6.323,-22.156,29.692,49.989,-60.003,23.43,58.985,35.361999999999995,-9.169,-1.403,28.191,-0.184,41.36,-51.598,-0.159,-19.83,49.864,-28.055,-35.053000000000004,-6.497999999999999,-60.069,43.295,41.246,19.763,-6.165,-28.827,51.383,51.309,-32.429,-23.275,-4.649,-32.457,-15.007,-20.789,-27.179,-2.257,-60.365,-32.367,-32.524,4.2410000000000005,-24.71,14.406,-24.69,-9.201,-18.179,-19.847,-19.798,-19.829,1.785,46.183,-15.25,26.716,-17.762999999999998,-10.584,37.312,32.665,57.765,57.888000000000005,5.327000000000001,45.349,-20.003,-15.349,-46.252,-1.241,-21.187,-65.436,-9.208,-9.171,12.951,-24.753,-24.893,24.688,-6.542999999999999,-17.756,-16.195,60.29600000000001,-31.328000000000003,50.785,17.737000000000002,-24.801,18.607,-35.616,30.105,2.2,23.855,49.95399999999999,-25.216,51.56399999999999,51.531000000000006,3.841,-23.513,-10.226,52.758,-7.14,46.67,-6.893,13.284,-20.833,-60.574,1.366,13.477,13.318,-0.507,13.453,-18.011,-37.319,-17.871,-21.022,55.149,9.729,-17.993,-52.257,-3.759,45.574,56.953,57.499,41.669,-2.184,51.34,-4.662,-17.327,10.402,-7.273,-20.917,-23.853,9.105,10.144,-0.6829999999999999,-33.673,-37.283,-37.473,-36.198,11.843,-3.582,10.211,-17.767,-17.579,-21.415,35.633,-3.667,-3.723,29.999,-9.991,77.601,-27.06,-26.885,10.85,52.52,-19.323,10.176,62.154,38.309,19.936,-36.039,52.278,30.89,5.506,-24.926,-18.782,-15.447,49.917,4.687,30.399,-9.364,13.295,23.992,-55.75899999999999,13.385,-8.823,-3.409,-3.414,-10.917,-21.46,-39.2,-33.803000000000004,-17.192,-17.256,-17.489,1.029,1.742,-17.42,-58.428,-17.979,3.835,1.886,39.109,0.96,-16.767,23.478,-7.791,22.913,57.534,-18.029,-3.877,-55.897,-22.774,-17.328,49.928,18.512,-2.696,-18.204,-26.867,-26.649,-49.856,11.69,11.493,-13.39,-32.986,43.305,42.601000000000006,73.36399999999999,14.942,-21.867,-11.125,-15.378,43.779,-13.941,-11.401,13.49,52.114,-9.409,-20.593000000000004,-17.473,-15.241,8.116,-1.131,-32.833,0.7879999999999999,-20.366,53.619,-17.375999999999998,-10.473,50.549,-21.903,-17.852,-16.588,-7.501,-31.515,-11.518,-45.003,-15.397,-12.724,-6.89,-5.942,-14.994000000000002,-10.747,-10.877,-10.69,42.971,13.603,26.856,-18.303,12.376,12.288,24.878,44.593,2.231,18.606,10.209,-6.26,-33.346,38.458,-20.237,-56.432,-16.234,-16.247,-14.278,-24.822,8.919,-56.752,-17.636,2.804,-5.964,-17.741,-6.0760000000000005,41.744,41.722,-35.276,-6.29,-29.843000000000004,-19.966,5.367999999999999,6.8020000000000005,3.266,-7.342,13.99,-27.285,19.809,20.09,37.052,54.601000000000006,-19.576,-45.254,50.506,37.028,23.902,39.862,48.706,-22.127,-6.526,-6.466,-6.081,15.071,-6.509,18.606,-13.112,-13.15,-22.062,-24.373,44.771,-6.388999999999999,-22.212,-31.891,-58.015,36.483,18.665,-42.877,-33.72,-5.808,25.149,-7.136,36.461,13.76,63.673,-44.769,-10.366,-10.041,-10.199,-10.143,-28.194000000000003,-14.88,-10.175,-18.062,-42.819,29.971,29.974,39.674,4.777,-18.512,54.618,-27.26,39.128,8.757,-36.774,-7.697999999999999,-27.001,-26.924,-27.062,24.704,-60.893,-16.484,26.755,23.385,44.571000000000005,-26.546,-42.903,-2.505,-15.37,11.38,-19.685,-15.864,0.89,-0.941,18.423,30.245,-60.942,-35.617,-7.157,-54.18,14.697,-25.493,-1.12,29.933000000000003,13.659,49.833,-23.424,-1.442,-20.515,-17.928,-23.392,4.669,46.187,-22.255,-16.477,26.536,37.18,36.425,35.532,-0.3,10.138,-26.526,-19.56,-4.863,-7.406000000000001,-19.374,-35.315,-10.272,-3.53,-14.776,-3.989,-18.771,4.189,-35.942,42.639,-13.704,-22.778,-28.644,-5.824,61.876000000000005,21.856,37.938,51.254,37.031,-4.75,49.044,-20.1,49.1,49.128,44.423,49.126000000000005,-7.381,-0.346,-16.343,36.443000000000005,-57.293,-56.81,13.880999999999998,-60.79600000000001,19.08,13.836,-55.307,34.354,-21.568,-42.803,-21.99,-22.01,51.31100000000001,22.789,23.181,22.815,26.534,-22.239,11.422,1.533,-2.365,18.068,-0.239,-3.527,-7.468,52.109,-31.519,-21.768,2.128,12.399,8.392000000000001,-6.125,-47.766000000000005,-5.171,-58.168,-1.368,1.977,37.938,30.989,-19.766,-47.897,34.333,48.117,50.801,22.749,-6.339,-56.423,5.1,22.773000000000003,-16.69,61.348,-22.244,12.633,73.387,20.014,18.493,-15.259,29.948,-1.457,40.987,40.974,-15.213,-14.87,6.917000000000001,-59.873000000000005,-58.076,16.320999999999998,5.355,71.134,51.94,13.968,-15.329,-29.79,29.355,-26.902,49.886,46.834,-10.83,1.868,-27.914,-13.238,-10.782,0.769,-23.522,-27.434,-5.09,-18.589,29.487,46.768,36.399,-65.458,-23.258000000000003,51.435,51.432,51.393,46.986,-3.162,46.486,46.789,-6.761,46.477,-15.244000000000002,-31.75,-6.151,-4.01,-41.906000000000006,-41.67,-11.544,38.147,29.511,-17.933,49.924,41.806,42.226000000000006,-27.985,47.52,56.202,33.257,-6.142,-20.215,-19.416,0.0819999999999999,5.862,-4.625,33.385,-22.087,-23.728,-3.381,-55.623000000000005,-55.748000000000005,-55.795,2.305,2.254,2.455,2.4290000000000003,2.464,6.317,2.445,2.396,2.384,2.442,49.925,7.957000000000001,4.987,57.443000000000005,25.616,-10.447,-17.422,-17.452,-56.404,2.568,45.313,0.455,2.424,35.964,-14.894,-44.462,56.152,-14.771,-17.665,14.159,-29.915,2.301,2.2880000000000003,-23.113000000000003,-7.624,43.972,21.754,18.383,35.545,-0.206,-19.129,4.581,1.031,-13.71,-4.346,-13.702,-5.24,-17.766,-30.539,-30.27,13.673,27.141,34.662,-5.851,-34.479,-23.644,-20.748,-58.887,19.294,34.234,-19.589,-5.428,25.17,-20.857,-19.306,-58.685,-32.012,-15.737,-20.791,49.488,-39.533,-52.919,24.472,13.29,-18.172,29.987,-13.723,26.533,1.012,4.63,-21.039,-23.834,-31.31,17.858,2.968,-9.259,-45.712,57.166,-35.576,66.96,-17.398,30.048,-17.42,-5.1080000000000005,16.773,35.842,30.601,37.027,17.83,37.004,-4.354,-4.294,-59.515,-4.21,10.96,-17.912,-4.2,45.06,16.747,44.968,30.091,30.053,11.038,-21.963,-8.281,23.553,-18.891,-23.427,-52.99100000000001,-21.853,50.103,-30.523000000000003,-2.922,-13.733,52.67100000000001,-16.643,-9.803,43.555,-56.32899999999999,57.086000000000006,-62.104,17.852,54.305,-20.009,-30.508000000000003,2.545,-17.952,-52.341,-51.367,-52.087,-51.886,-51.408,-52.503,-3.748,56.177,-51.783,56.173,-52.272,-5.85,-52.071000000000005,-7.332000000000001,-52.583,-4.406000000000001,-55.279,30.167,-25.053,-16.714000000000002,-6.515,-10.204,-23.897,17.401,-45.383,-6.8260000000000005,-19.531,71.432,-7.865,-22.252,35.107,21.861,-15.283,-30.169,-3.67,-43.342,12.875,34.289,6.824,57.755,20.672,31.807,-40.494,-1.4369999999999998,17.761,-22.113000000000003,-21.785,-28.336,1.134,19.36,19.362,39.112,-63.723,-57.788,-6.223,-7.604,-53.187,51.617,-16.632,-36.86,-36.265,-4.823,49.888000000000005,52.841,1.162,-1.577,46.05,-8.129,-1.472,-8.081,22.809,5.048,30.029,2.299,-54.412,36.085,-18.874,-18.823,-18.88,-7.191,-52.602,-8.048,-4.511,-11.618,-3.66,-2.6860000000000004,1.009,-59.994,23.043000000000003,-22.531,1.883,42.797,-5.417000000000001,-4.44,-40.121,5.898,-61.895,5.977,0.8,8.682,-7.258999999999999,-20.502,-19.016,-18.957,-38.307,-17.701,-55.053,-6.507000000000001,11.765999999999998,11.919,11.884,11.88,37.278,11.985,11.904000000000002,11.874,11.942,11.821,-4.104,24.094,52.517,34.921,18.039,54.597,55.609,-0.174,-4.242,25.54,-4.218999999999999,-33.15,-33.329,55.543,4.26,14.218,29.459,-52.81,-36.087,-1.3219999999999998,0.976,-30.197,-52.766000000000005,2.435,51.31,-9.017,-9.011,-19.009,-35.577,-26.141,1.644,-19.329,51.574,53.232,40.337,-32.561,16.497,40.203,-61.435,-5.527,51.184,31.583,22.621,-20.355,20.329,-6.172999999999999,20.236,80.638,80.69,-20.095,51.31399999999999,51.188,51.137,51.115,51.076,-4.293,51.78,-17.609,-32.766,-9.405,-60.32,-4.035,37.0361667,14.583,-10.155,-10.183,14.603,39.985,2.086,49.937,0.573,-5.272,-7.358,-25.645,11.909,39.812,-4.651,39.823,-11.022,39.59,39.571,39.5,39.531,36.788,36.745,-21.104,-9.219,-9.306,-20.995,2.492,-11.009,-10.949000000000002,39.837,39.637,39.179,39.638000000000005,40.018,-1.285,72.255,39.118,39.097,-49.684,40.101,25.742,-11.315,-61.447,-22.772,-9.124,-0.584,-52.20399999999999,-17.76,80.58800000000001,-17.385,-6.575,29.892,44.635,-28.975,-50.053,-0.64,-22.314,0.989,-63.342,-63.211000000000006,12.651,-2.1790000000000003,23.721,25.892,-22.276,-15.808,-25.374,-38.881,51.631,-14.457,39.536,-7.631,-57.655,-15.470999999999998,-6.192,25.917,-6.436,21.184,19.199,10.094,36.552,0.141,-18.69,-4.684,-10.445,-11.329,8.337,8.397,7.866,8.026,8.396,-3.61,7.976,7.777,8.135,40.011,-8.486,8.297,8.547,0.939,7.945,7.985,8.094,-35.067,8.192,-34.828,-58.775,3.2510000000000003,45.364,62.42100000000001,17.401,60.08,1.679,-41.714,-16.177,-26.209,-3.406,8.344,13.408,-15.397,-8.8,-19.258,18.863,-10.681,-15.947,52.038,28.225,51.963,11.591,24.753,39.646,39.706,11.654000000000002,52.117,-10.073,12.672,4.979,37.819,45.352,45.345,-29.709,-29.08,-31.664,-31.725,-31.587,43.56,43.589,-30.141,-5.2860000000000005,-20.76,35.832,40.097,-15.262,-6.082000000000001,-31.612,3.885,-12.451,14.603,43.008,-23.398000000000003,8.247,-18.407,-18.073,-5.294,51.125,-10.233,37.047,9.755,9.725,-42.343,-18.756,-42.347,-3.17,36.331,-5.256,44.13,-31.193,-5.225,-4.567,29.533,15.835,-5.516,-40.347,-15.465,34.706,46.922,-21.559,-25.413,16.903,-11.458,11.654000000000002,-15.523,-10.553,-18.042,-26.651,-17.159000000000002,34.14,34.144,53.34,-7.892,-22.122,-21.557,-22.405,28.925,-18.318,36.907,36.738,-11.147,-17.295,58.391000000000005,50.907,-20.529,33.493,-3.158,51.484,51.479,-7.281000000000001,-47.906000000000006,-3.429,-3.994,4.575,-15.13,24.897,-48.688,27.22,29.496,-31.092,-36.919,-8.472999999999999,-47.624,9.814,9.919,37.034,9.591,44.462,9.253,20.231,42.891000000000005,-39.97,-32.672,-5.843,11.425999999999998,11.608,-16.179000000000002,15.125,15.331,15.552,15.198,-40.953,15.128,-41.093,-6.817,-15.152,15.536,-60.527,-21.618,15.177,-25.988000000000003,-18.049,-25.806,-7.157,42.54,-30.991,35.474000000000004,-17.564,27.296,-14.858,39.436,7.367999999999999,1.186,0.368,1.129,1.263,1.315,1.229,1.3,1.108,-6.27,1.234,-36.985,47.488,-37.977,36.04,35.986,36.239,-6.277,1.0590000000000002,28.696,8.887,-26.113000000000003,-4.1,-54.279,7.329,-25.14,14.056,58.84,58.82,-5.604,40.775,-35.253,6.905,-17.054000000000002,-56.381,-5.989,-61.979,-54.824,-6.176,41.82,17.282,49.037,-6.07,-40.296,-35.925,36.043,-3.075,1.158,-10.151,-31.835,-5.648,10.94,-18.08,38.43,-25.398000000000003,26.619,13.081,5.121,43.874,-18.102,-32.5,53.558,-8.137,-36.299,5.277,5.358,-7.362999999999999,5.436,-2.8710000000000004,1.342,74.225,7.715,-20.874,56.956,-6.016,45.841,-6.018,45.81100000000001,17.26,35.522,-5.119,-5.485,1.081,-3.563,-16.125,-1.211,-17.573,-18.874,-9.103,-6.062,1.253,9.457,6.371,11.76,11.603,47.869,11.312,-5.041,-22.607,39.258,27.998,27.398000000000003,27.302,3.879,-21.038,-1.12,36.957,36.636,-14.558,-19.648,-14.64,-14.607,-0.611,-21.568,-21.61,-3.458,-22.015,-22.215,-21.552,9.857,-6.138,25.372,-6.904,45.371,-3.599,1.056,12.217,-17.827,5.395,8.493,-10.353,-12.67,-57.2,59.325,-25.355,-25.366,14.647,-6.245,-13.295,36.415,0.003,-0.074,11.720999999999998,-17.410999999999998,15.679,16.385,16.521,16.285,-32.46,24.249,16.433,16.495,12.615,16.511,36.99,-6.82,16.386,16.4,-23.622,12.036,16.488,9.481,11.269,-7.504,27.247,-15.355,-15.429,-36.423,-41.333,42.416,-11.78,-31.62,-6.46,47.963,29.551,36.31,-1.08,-15.962,8.497,-0.076,-20.199,0.3329999999999999,-19.805,6.572,-22.182,0.964,13.277,-19.435,60.115,27.024,35.431999999999995,51.294,-31.003,41.56399999999999,-11.167,-11.164,26.979,-40.229,7.507000000000001,-34.597,46.18899999999999,-11.246,-33.373000000000005,-27.487,-22.118,-4.455,5.792000000000001,0.525,-9.152,19.592,-26.109,-6.87,-19.447,15.968,6.146,12.005999999999998,-0.143,-41.21,-3.134,-3.197,-3.14,-31.262,8.461,5.443,-7.337999999999999,-24.449,27.5,-20.548,28.032,-5.178,1.126,22.692,15.12,-60.447,51.457,-60.68899999999999,13.382,64.655,-6.1610000000000005,-5.917000000000001,-53.155,51.453,-12.995,15.469,-14.989,-17.732,-6.726,33.267,33.189,-17.59,29.147,-36.19,-13.559,13.038,13.088,52.705,24.248,-17.617,-24.036,-41.48,-41.589,-2.7110000000000003,13.445,-19.503,-23.497,15.724,-23.493,-2.211,49.043,-25.557,-10.97,37.093,-16.244,-21.94,-5.604,38.0618333,73.361,35.121,8.307,-6.189,-35.143,-35.368,-63.653,-55.981,14.694,-26.634,-3.533,-6.704,-4.479,-21.251,-15.720999999999998,51.18600000000001,28.251,28.237,53.452,5.643,-55.974,11.757,24.091,42.959,46.104,-22.258000000000003,27.44,3.908,3.982,3.909,-59.707,-31.688,3.942,0.171,-18.109,51.65,-5.575,-5.005,5.537999999999999,4.707,-23.575,-23.78,-23.89,-31.01,43.853,-21.088,-28.041,1.03,40.198,-26.722,-22.727,43.729,-5.263999999999999,-16.993,-6.67,54.881,-5.94,-5.869,-15.461,-15.372,37.3,23.916,1.116,23.722,-6.02,23.681,23.807,-9.691,-2.982,41.361,-19.467,29.044,1.298,6.638,-42.667,23.701,52.618,23.669,37.612,-16.625999999999998,-20.467,41.004,-20.597,-18.891,-32.696,9.869,-14.948,-15.182,-0.6559999999999999,-5.376,-40.732,23.766,-0.6679999999999999,-6.872999999999999,-22.725,-14.875,8.257,-30.174,-5.097,0.857,-21.953000000000003,18.068,17.951,-21.208,-7.225,-29.562,-7.178999999999999,-7.171,1.973,23.613000000000003,-18.057,-5.502000000000001,-5.396,-5.482,-18.006,-18.043,40.558,-2.928,-25.187,18.029,-5.99,13.783,-5.003,23.692,-51.145,23.747,-5.5760000000000005,-21.235,-55.215,51.965,33.821,-2.152,-2.275,-2.18,-3.515,-3.553,10.508,-41.985,-42.00899999999999,30.573,-44.159,0.511,35.993,-57.067,-24.343000000000004,51.693000000000005,-15.348,-9.929,-9.858,8.745,14.005,-32.015,-44.361,-22.082,-9.909,-32.984,-6.279,-22.336,4.21,48.268,-21.189,8.87,-19.028,1.5619999999999998,-22.626,9.047,58.427,8.167,36.27,-15.125,-7.388,40.386,-22.936,-20.118,10.939,-21.94,-21.996,-21.867,3.2310000000000003,-3.984,-30.515,60.904,61.029,60.834,60.682,-24.541,61.528,-54.877,-3.792,-51.154,4.926,-59.707,51.794,10.174,34.825,-5.791,-9.71,-11.668,48.261,-16.831,21.704,21.673,19.722,-18.308,-3.959,-16.111,-16.55,15.746,22.359,-4.919,16.175,-6.0760000000000005,7.017,-6.037999999999999,-5.982,-5.81,-14.23,-54.592,-24.168000000000003,-15.008,-3.1,52.433,-9.788,-5.282,-11.036,13.058,-20.116,27.155,2.664,37.457,-22.924,16.865,-14.883,-6.9,-4.38,-18.287,9.685,-2.759,14.002,9.041,2.541,9.047,9.741,7.525,42.453,-11.258,42.583,42.503,5.926,-6.386,-6.61,62.476000000000006,-21.724,9.392,28.08,42.683,9.542,27.148000000000003,13.717,10.373,10.353,-20.871,39.43,10.352,19.373,-13.875,-16.114,-22.061,12.279000000000002,-3.463,-4.39,-9.941,1.156,1.3330000000000002,-18.038,-7.517,-60.306,-16.506,9.482,-22.256,54.567,54.572,-6.047999999999999,-56.837,-24.905,-40.022,-5.965,-7.204,-20.252,12.627,23.771,8.402999999999999,84.40100000000001,-18.209,-2.285,42.789,-19.95,-20.07,42.461000000000006,-58.285,15.316,15.119000000000002,0.535,10.098,15.08,0.13,-58.198,-19.708,1.196,1.173,13.399,23.915,-26.802,-26.939,58.318000000000005,24.361,34.26,34.27,-21.621,-14.371,-15.797,-1.068,-23.233,-8.146,-8.099,-3.775,-9.585,47.892,-13.108,2.5340000000000003,-16.713,23.227,12.525,45.364,42.182,48.738,36.334,45.172,50.935,-3.989,-8.122,8.224,44.888000000000005,54.565,3.008,5.8260000000000005,3.775,-6.122000000000001,36.52,17.817999999999998,16.882,1.831,-14.22,-17.082,1.177,29.33,-0.912,-21.363000000000003,3.827,35.725,54.729,0.972,-23.32,-3.141,-14.17,52.791,54.389,-13.593,-45.558,-45.815,-16.064,52.823,41.6611667,10.045,40.2516667,41.679,-23.834,-14.607,-6.065,-21.354,18.959,42.1,6.937,6.882000000000001,35.338,-22.23,-17.823,-20.71,-3.161,78.967,37.44,33.649,-17.91,-17.921,15.204,-24.103,-40.25,12.796,51.256,12.678,-17.879,-31.512,-13.246,14.646,36.191,-16.232,-9.283,-16.117,-5.814,-20.878,-20.941,-10.272,-17.029,-16.817,-16.852,45.587,1.804,-17.505,-2.769,-13.742,2.4530000000000003,-56.097,-9.094,-9.08,-9.026,-6.494,-4.524,-15.3,28.533,-24.295,7.817,44.289,-9.012,30.78,-11.343,51.25,43.301,18.506,-5.198,-22.086,-57.761,-16.184,-5.657,-15.31,-2.02,1.235,-30.255,-30.43,46.55,30.666,-6.072,-4.692,-6.237,-16.908,-26.309,-7.32,-4.273,-59.449,-24.216,17.910999999999998,24.705,-9.013,8.361,-37.276,-56.121,4.553999999999999,-44.92,-36.515,-30.663,5.782,-22.361,-26.759,51.4,42.051,48.237,36.924,45.498000000000005,-15.867,-26.483,-15.364,24.015,-41.266000000000005,45.475,25.191,45.471,29.543000000000003,-22.692,-17.820999999999998,-23.368,-18.178,-4.825,45.578,45.386,45.567,45.49100000000001,45.521,45.288,45.386,45.435,45.43899999999999,-30.434,45.119,-17.521,-62.551,47.393,9.273,45.253,45.357,48.973,48.938,-24.001,45.133,45.533,46.731,45.573,45.609,45.854,-5.702000000000001,45.667,25.307,-19.173,-56.032,-9.01,51.019,-56.102,-6.446000000000001,-6.437,-6.36,-56.573,-4.421,48.738,5.638,-48.965,-9.003,2.316,9.311,-20.93,1.342,-2.169,18.017,27.398000000000003,27.983,38.47,38.351,35.515,-21.481,24.958,-58.214,22.913,35.106,-51.654,-51.547,45.445,-19.729,52.244,14.645,31.426,-5.72,29.61,-5.684,43.202,48.014,-9.239,-16.222,-15.894,53.597,-4.382,79.191,-55.979,-21.647,28.038,-15.382,12.908,-33.631,-6.228,2.075,13.969,11.803,-6.191,-24.369,12.265,-40.337,52.915,52.835,-14.384,44.242,44.157,-15.937,-3.008,11.513,52.9,10.21,-3.477,-5.724,-58.608,-3.438,52.97,52.451,39.71,-9.191,23.548,39.532,-23.966,14.459,17.155,-56.427,-42.669,-7.751,-55.506,3.613,-37.703,54.699,51.222,20.927,52.875,47.863,-16.969,-43.151,-17.793,-49.872,-3.125,-37.562,-37.298,7.172999999999999,-5.696000000000001,-28.929,-17.949,-10.951,35.696,-11.938,48.287,11.27,50.724,-1.851,50.593,-4.172,-16.867,-16.906,-16.784000000000002,-17.712,29.515,24.315,50.232,1.186,-20.004,-5.685,-5.454,-5.61,23.861,-22.218000000000004,-7.532999999999999,33.96,51.486,29.429,22.437,22.418000000000003,-3.516,27.55,8.391,-9.028,40.3353333,2.369,40.4325,40.3828333,12.278,5.602,-10.703,10.375,35.059,-15.414,-32.37,-6.7620000000000005,-0.294,41.175,37.207,59.691,-23.741,-9.525,-16.524,-23.863000000000003,-32.76,-32.896,-6.075,41.019,-32.663000000000004,-19.119,-38.458,-13.672,-6.047000000000001,7.239,7.191,-6.462999999999999,-33.594,7.446000000000001,28.295,-9.463,12.537,33.376999999999995,41.604,31.127,-6.175,-8.748,31.025,-33.669000000000004,52.392,-35.34,49.387,-3.506,-4.544,13.479,51.788,-4.792,19.613,-54.601000000000006,-3.269,-11.122,-41.61600000000001,-30.65,47.625,23.105,31.17,1.819,30.694000000000003,14.442,30.64,-22.733,36.659,29.739,47.694,-16.075,-16.137999999999998,28.083,51.13,-4.525,28.018,12.813,1.068,3.672,-23.007,-8.474,-65.346,-49.804,1.119,1.084,1.077,31.344,2.617,-26.538,24.027,-60.774,-0.073,45.70399999999999,-60.373000000000005,-26.503,-37.689,-60.728,16.867,-3.595,-18.893,-36.104,-17.980999999999998,-23.61,51.501000000000005,-5.311,-28.314,-33.719,6.129,18.972,34.2,34.131,34.12,34.162,34.203,-10.666,11.77,34.105,27.799,-32.903,-13.314,44.695,-22.483,35.21,41.457,44.524,3.09,51.17100000000001,-3.919,-4.725,45.361,1.331,-8.774,39.354,-4.522,44.809,-10.38,-16.09,-6.49,39.41,39.419,39.675,39.408,39.436,39.454,39.161,39.164,-11.093,39.48,-22.723000000000003,39.152,39.611,39.324,30.77,78.562,-54.511,39.847,-7.0360000000000005,-11.894,38.731,0.461,-56.841,51.516000000000005,-4.435,-55.349,39.607,39.495,29.584,-50.357,-31.481,-18.28,-21.344,-0.883,-7.126,-10.403,-21.738000000000003,43.468,-12.127,-26.696,-5.586,24.667,35.728,57.589,-31.566,4.005,11.762,-0.123,80.21300000000001,11.757,32.536,32.755,-6.103,5.111000000000001,-5.367999999999999,-20.24,-28.644,50.502,42.142,42.1,42.107,42.104,-50.148,41.977,-56.622,47.716,-10.042,-20.942,29.087,-22.314,-0.965,33.19,-17.918,23.749,11.742,11.175,11.96,-6.046,37.09,37.09,10.441,11.302,-3.922,11.999,11.943,-16.839000000000002,4.051,76.208,-23.509,-22.562,10.21,-17.221,-22.601,-22.431,-6.087000000000001,-4.374,-17.191,11.582,21.389,54.315,-21.042,-36.278,11.064,-14.053,12.134,-7.816,31.129,-6.162999999999999,-59.478,-61.22,-21.127,12.306,-54.401,64.78,-36.978,1.289,-31.556,1.269,1.268,53.933,13.474,-19.203,24.121,51.41,51.281000000000006,51.148,51.119,-53.591,51.123000000000005,-39.035,-53.655,-30.82,-5.425,51.147,51.552,-19.247,50.458,29.778,-14.537,51.31399999999999,-35.526,-19.226,-19.239,6.845,-10.022,-6.279,7.075,7.011,-6.74,7.002999999999999,3.159,-19.385,55.52,-24.453000000000003,-6.87,-30.227,-30.101,-30.125,-29.95,31.355,6.659,-5.352,-5.282,-5.327000000000001,-9.469,42.589,-29.996,-29.536,-5.332999999999999,-29.796,-30.09,-29.9,-6.72,6.834,29.941,31.284,-2.321,-2.298,-55.633,-61.542,-35.788000000000004,-14.238,-31.565,-14.242,-5.263,38.16,-15.727,-23.626,-55.86600000000001,51.492,53.88399999999999,-2.925,-7.325,51.203,-53.767,36.446,-22.401,-5.822,-16.052,-16.771,38.307,-8.642999999999999,35.916,-16.325,-56.665,-56.34,-19.578,38.62,51.175,1.355,-0.085,-4.069,2.497,2.537,-13.491,-13.538,2.582,-31.33,2.615,35.692,-20.864,-22.288,61.805,-48.137,37.814,10.865,37.81,43.949,-15.483,10.141,9.291,-56.559,-17.523,34.361999999999995,-8.48,-8.52,-8.517000000000001,52.126000000000005,-14.029000000000002,-33.64,-34.666,8.638,25.901,-6.487,-52.893,-11.429,51.906000000000006,-25.684,-6.582000000000001,52.006,-6.648,-19.766,-6.541,2.549,-15.293,-5.593999999999999,-1.011,-32.457,-0.564,38.857,-6.087000000000001,0.012,-9.295,-7.986000000000001,38.902,-32.015,-61.011,-39.81,-1.513,-4.064,3.266,-22.055,0.136,-32.031,-32.036,-25.085,13.005999999999998,-32.199,-59.274,5.5,5.3660000000000005,-55.931,17.955,-50.791,42.982,43.3,-58.63399999999999,18.414,30.837,-45.118,38.649,-2.077,1.221,3.144,-32.263000000000005,-8.318,-7.205,78.873,24.114,54.475,-53.31,-15.211,23.027,42.219,-29.726,18.785,13.619000000000002,12.495,-1.286,12.542,12.573,-56.522,37.634,-4.834,0.696,45.709,-7.745,-14.925999999999998,-12.505,-6.002000000000001,-0.457,-22.11,-6.726,47.191,47.129,47.125,-24.931,-23.996,40.268,49.842,-3.744,-8.294,-6.274,-13.342,-13.241,28.71,-10.972,-11.025,-26.536,-11.062,-10.889,-11.123,-6.706,-55.678,-59.624,-59.7,-16.71,-59.406000000000006,-14.385,-14.293,-18.218,19.626,-26.708,11.625,-37.691,38.34,-26.742,36.038,-56.084,29.084,-18.042,52.172,-49.888000000000005,41.8,45.03,45.035166700000005,-13.114,13.387,-53.039,-22.089,-22.756,17.322,-19.923,-17.84,-17.373,-59.801,-59.786,-59.806,-59.787,-31.477,14.937,-54.128,-39.744,1.196,51.131,-16.395,-18.182,56.212,-17.778,-16.595,-11.652,-53.958,4.015,-54.36600000000001,-20.883000000000003,-17.871,-15.679,-1.897,-6.138,-55.672,26.414,-17.352,-56.415,0.971,-21.151,-59.852,-27.973000000000003,46.711000000000006,-8.472000000000001,-53.024,2.345,-24.919,7.218999999999999,-20.46,-3.836,55.177,-22.257,7.23,16.673,16.698,-28.073,-54.71,51.374,-15.286,11.105,54.981,-5.343,-5.25,37.165,-5.448,19.914,-30.465,-8.347000000000001,13.757,-0.023,-16.171,-23.238000000000003,-22.671,-13.494000000000002,55.021,-5.522,-29.359,5.461,-27.264,55.862,19.072,-3.674,-5.422999999999999,1.546,1.5590000000000002,-0.621,-72.44800000000001,-45.711000000000006,-46.471,51.513000000000005,-36.237,-14.841,9.595,11.799,3.734,-24.509,15.823,35.972,-31.669,51.218,-31.56,-24.353,-11.14,-5.609,13.25,-4.375,51.25899999999999,-6.38,-11.162,24.959,-4.9910000000000005,-28.444000000000003,-28.866,-29.053,-28.772,-28.678,-28.817,10.175,-28.299,-6.946000000000001,-60.549,-28.835,-28.787,-62.922,-60.437,-20.836,71.51100000000001,-24.886,8.542,30.242,-24.601,27.887,13.693,-20.832,-20.858,-17.369,-19.782,9.821,-25.304,47.626000000000005,42.851000000000006,42.082,43.124,42.825,-3.372,38.224,-33.173,-30.0,2.036,-16.807000000000002,-0.087,-35.967,13.349,6.47,-54.43899999999999,21.76,36.437,-18.341,5.07,-13.06,-10.903,-5.573,15.385,30.828000000000003,51.188,28.729,28.777,-1.629,-5.43,-18.104,26.585,-23.866,41.985,0.841,12.982,13.483,13.380999999999998,36.436,36.379,-45.277,-38.52,83.066,-45.209,13.178,-12.744000000000002,-35.989000000000004,0.711,-36.014,12.966,13.169,51.57899999999999,7.197,7.167000000000001,-5.997000000000001,-15.25,21.686,-46.404,-21.278,14.238,-44.718,-35.899,-5.48,6.571000000000001,-7.005,31.712,-4.331,2.986,14.428,14.523,-16.166,14.475,36.429,-9.571,-4.641,-31.635,-56.214,14.429,14.415,14.717,42.003,-4.689,-32.51,20.113,14.375,13.826,-29.608,-6.072,-29.492,-29.499,-29.692,11.242,-29.598000000000003,-29.794,14.231,-29.384,-29.496,-29.653,44.533,1.632,14.388,36.421,43.108,14.48,14.362,0.75,-5.225,42.31,42.3161667,42.35,42.3575,-4.525,11.478,-6.47,9.997,13.009,30.678,-53.651,-6.122000000000001,-18.966,0.494,-42.677,-6.03,18.066,15.417,38.19,38.169,-3.444,38.171,30.599,-21.437,41.667,-6.13,-35.903,46.505,-4.544,-17.845,32.02,7.576,-6.426,-5.888999999999999,-5.932,-6.013,-50.43600000000001,-5.898,7.472,-10.989,-22.378,-5.162999999999999,-56.497,-54.835,11.327,16.755,-55.621,-5.882000000000001,-5.909,-5.858,38.477,-18.279,-46.706,51.50899999999999,15.437,-19.305,-31.704,-10.065,-7.122999999999999,-5.792999999999999,-3.188,-21.983,14.353,-15.344,50.2,-4.543,13.813,51.414,16.288,51.934,-22.428,-22.572,30.798,1.577,51.816,54.287,14.807,7.317,60.025,5.877000000000001,11.743,-22.035,-0.963,-9.597,38.625,-5.599,10.294,-59.047,39.263000000000005,-16.995,-57.475,51.20399999999999,-49.95399999999999,-60.353,-3.59,-33.838,-6.36,0.73,0.486,0.425,-22.18,20.912,13.693,0.317,0.344,-20.422,5.53,-20.704,-20.778,-13.624,53.804,-20.477,-6.876,-21.853,12.519,-20.23,-20.076,-19.99,-19.983,44.735,-6.53,49.721,36.028,-49.265,-4.301,-4.172,16.413,16.671,39.085,52.028,-0.591,-13.339,25.231,35.959,39.247,-59.653,1.979,-20.849,34.213,34.275,34.32,34.326,-3.176,-17.584,23.976,-6.002000000000001,1.015,-4.859,-60.733,44.977,10.601,41.728,-29.184,19.244,-11.315,-10.199,42.762,-15.413,-41.886,-21.695,0.593,51.808,66.512,-4.2410000000000005,-21.126,-18.773,48.483,-10.786,-20.553,-41.446000000000005,-20.559,51.92,-20.563,-4.967,-20.473,36.104,-20.399,-26.271,-20.094,-19.979,-20.07,-18.991,-20.111,-20.23,9.891,-9.645,-9.506,-45.33,-20.493,2.059,-56.406000000000006,13.691,-22.304,-21.551,30.853,30.765,18.05,-17.454,18.509,30.775,-17.421,-17.42,30.897,30.805,44.636,29.096,-21.556,11.737,-9.58,-9.444,-18.039,-17.985,34.22,-6.109,11.943,16.747,-1.083,-1.278,15.994000000000002,11.11,51.54600000000001,24.054,-36.154,24.788,51.5,58.363,-16.559,9.003,-22.057,-24.26,-16.031,-15.318,-36.646,-15.03,-15.468,51.29600000000001,36.165,26.188,-17.371,40.608,14.72,23.71,11.735,-21.034,22.775,-3.136,-6.587000000000001,-7.015,12.995,-31.57,1.877,-6.6610000000000005,37.43,-15.905,-6.47,-21.412,-15.004,-17.8,-5.617000000000001,-5.702000000000001,-14.175,-14.196,-21.015,11.604,-9.343,-16.019000000000002,-21.515,13.074000000000002,-5.757999999999999,-39.312,-28.299,31.42,36.901,10.816,-1.116,13.963,10.241,-17.047,-59.982,-4.681,52.958,-15.3,-5.485,-35.731,-2.06,-19.613,20.999,-28.501,13.433,-2.008,-2.056,25.068,7.972,-21.168000000000003,-2.116,-1.902,44.727,-29.063,-8.189,-8.144,25.099,-24.232,18.165,24.166,24.028,35.559,-15.38,24.065,38.664,-15.607,23.959,23.903,56.17,-4.199,22.988000000000003,-1.962,7.646,5.678999999999999,35.305,23.397,20.556,-10.289,7.414,-10.477,-10.390999999999998,3.524,-10.468,-10.362,-10.416,28.736,-10.395,-10.473,-10.777,-10.831,-10.826,24.511,-10.349,-10.717,-10.645,28.598000000000003,2.917,16.791,-13.841,-14.365,13.259,-10.143,41.527,27.995,-10.285,-10.233,-5.472,3.922,-10.328,1.525,-10.335,-10.149,-10.168,-7.391,-15.25,-42.963,-10.15,-43.273,28.968000000000004,-28.779,-64.51899999999999,-28.739,-36.236,11.464,32.567,36.326,40.232,-3.2430000000000003,-10.555,-21.071,-21.115,-5.763,7.656000000000001,14.888,-16.301,10.432,-12.154000000000002,5.983,-37.217,19.756,-16.62,-16.643,-16.812,-7.532,-16.582,-16.709,55.403,-4.619,-16.68,-29.573,-9.591,-23.438,-7.025,42.34,41.253,-7.777,16.714000000000002,-15.788,-5.726,-17.889,-16.965999999999998,-56.967,-56.362,-10.263,-47.278,52.398,-16.984,32.558,52.428,21.514,-24.09,-6.337999999999999,52.245,51.13399999999999,-55.37,-17.169,51.085,-13.817,24.721,10.634,-15.88,-16.889,-58.756,-21.84,-21.6,44.709,44.694,38.794,-29.808000000000003,16.750999999999998,29.361,37.842,-7.433,35.52,44.679,44.767,44.815,-26.642,17.974,44.606,44.656000000000006,56.761,-11.509,-23.786,34.245,-35.483000000000004,6.8020000000000005,-7.256,17.012,5.659,44.783,-0.4039999999999999,44.737,-15.248,-6.965,43.719,40.4055,-10.944,41.183,-18.462,-3.309,-31.422,-21.212,46.782,-34.27,-11.911,-11.8,0.54,7.552,-9.211,-16.048,-31.103,-8.91,38.82,38.819,-15.455,-15.118,29.287,7.053999999999999,-22.278,-31.251,-16.521,-57.803,22.528,-32.186,7.433,-32.24,-3.379,5.68,51.313,-5.7860000000000005,-5.731,-4.708,-21.217,-18.278,-17.849,-17.745,-17.768,43.773,43.788,43.682,43.786,43.963,43.526,43.776,43.706,43.43,43.66,43.774,43.983,43.798,23.101,43.398,43.68600000000001,43.228,43.627,43.592,43.95399999999999,43.239,-56.628,43.614,41.662,43.117,-1.258,43.905,43.714,43.861,43.495,43.883,51.484,-32.1,13.765,13.773,-6.936,-1.212,-3.804,-9.297,45.749,43.576,-9.521,-39.187,-21.917,36.391,36.359,1.83,43.515,-25.778,-6.19,14.537,24.759,-28.032,-6.183,3.019,9.037,-17.875999999999998,-1.432,5.099,-10.931,-9.379,-17.417,-57.193000000000005,10.720999999999998,-9.386,7.273,43.556,-5.718999999999999,-15.626,13.525,13.136,-5.589,47.451,-56.173,43.571000000000005,-9.794,-20.766,-2.001,4.33,25.54,43.961000000000006,-53.07,-20.126,5.768,-2.526,-8.576,-15.316,-23.422,-3.459,1.967,-23.534,18.136,-24.855,-17.477,-9.975,16.314,-3.1660000000000004,-9.519,2.729,-8.485,-37.282,-3.262,-27.32,-17.838,-54.103,-17.82,-6.134,-30.085,40.74,-31.965,20.517,44.917,40.525,40.466,39.458,40.313,40.239,40.015,40.094,-32.961,40.375,40.187,40.773,35.655,18.552,-4.265,40.217,40.701,-19.634,-57.699,-56.06,-22.033,-56.497,9.189,40.246,40.258,1.459,35.88,20.205,41.934,-22.18,1.142,44.06100000000001,43.165,-27.929,27.511,-5.246,51.26,51.299,34.583,-20.833,-19.16,43.376000000000005,-7.395,5.05,-10.99,43.333,14.026,1.1840000000000002,2.563,43.377,-7.046,-20.436,5.093,-27.123,-26.835,-27.153,-5.902,-26.975,-26.961,14.41,14.248,-4.434,43.977,29.278,-42.423,10.739,-6.234,-62.711000000000006,-13.908,6.809,-37.759,-37.852,-37.825,-37.952,41.182,-37.811,4.104,-37.969,-29.639,-37.855,-19.942,-10.662,12.591,-5.7620000000000005,59.43600000000001,-37.621,-1.332,-1.278,-1.31,-1.338,-1.164,-1.318,-1.607,-23.366,29.269,44.022,27.635,46.702,5.244,40.5918333,43.131,-1.35,-27.774,46.012,39.748000000000005,24.137,39.788,35.046,-26.662,-18.213,6.976,-6.551,-6.496,-14.688,2.69,16.562,46.121,44.07,-5.346,-2.7880000000000003,3.05,-15.148,54.776,-21.605,-13.175,-8.661,-4.231,-4.183,-8.012,-54.792,-4.053999999999999,-18.741,-41.042,-36.267,-21.28,-36.272,-62.588,-24.359,-10.998,-55.95,54.821000000000005,-2.05,-42.493,44.842,38.212,-22.427,52.264,24.066,0.698,-20.123,33.749,6.126,-15.417,-56.7,-15.199000000000002,-15.213,-15.216,-15.351,-21.612,21.833,52.17100000000001,3.139,-13.446,-0.5920000000000001,-22.252,30.285,-60.774,-1.837,-9.796,-8.527000000000001,33.763000000000005,-55.663,-11.34,45.928,-2.061,45.82899999999999,-54.235,44.04600000000001,6.279,11.973,12.011,11.925,12.059,12.047,-51.143,11.828,51.334,12.39,5.954,12.226,12.483,-5.902,12.373,1.297,-13.509,-21.405,44.072,44.091,11.853,-16.778,-10.568,-3.792,43.776,-60.427,1.889,12.626,12.637,-9.897,-15.824000000000002,-8.725,-18.553,24.987,-15.42,43.838,11.529000000000002,11.465,-53.973,40.149,-5.303999999999999,-8.378,41.603,36.455,-20.766,-23.008000000000003,-23.082,-23.089,17.899,43.409,-22.888,-23.03,-6.524,-22.397,12.449000000000002,-0.893,44.322,-1.021,-56.025,-35.939,-27.855,12.136,-22.795,-22.83,-9.662,-27.913,43.655,-55.945,61.007,-52.261,12.263,43.926,40.214,12.115,52.629,-23.936,-23.963,23.013,-23.986,-28.978,-10.246,10.164,-43.05,-60.229,30.232,18.956,-46.496,-4.303999999999999,-31.773000000000003,18.435,-3.676,-21.509,11.742,32.624,11.679,12.128,12.117,38.401,-60.269,-18.269,-8.259,2.449,-17.868,-61.673,-11.538,50.372,-16.413,-24.563,-3.959,-3.321,24.6,-55.38,-55.359,7.115,-55.333,-55.365,18.835,-17.175,-1.551,48.793,-19.544,51.961000000000006,24.688,24.386,-55.413,-3.788,-29.211,-29.117,-28.045,-22.608,-53.449,-29.415,33.972,39.678,4.308,53.578,-24.265,21.984,12.379,21.966,2.483,-23.26,12.324000000000002,-23.08,-23.164,-19.9,-23.319000000000003,-3.854,46.103,-22.719,-4.625,-6.035,-1.33,36.427,29.74,10.702,-16.462,2.5340000000000003,-12.59,-21.182,-30.01,4.2780000000000005,30.345,-23.34,-23.23,-23.253,-23.982,-24.359,-23.055,28.657,-23.347,-10.422,-23.23,-23.119,-23.432,-23.062,-28.281,-22.954,52.839,-16.255,-22.563,44.376000000000005,-59.378,4.041,-23.208,-23.097,-23.199,-2.827,-3.484,-4.836,-23.631,-29.316,-29.262,-5.799,-14.802,-5.146,-31.95,-5.032,-5.533,-5.428999999999999,28.46,-5.497999999999999,-5.771,50.277,-5.934,41.559,-6.007000000000001,-21.848000000000003,-5.167999999999999,-6.267,-6.079,36.443000000000005,-55.934,-55.656000000000006,-4.96,5.138999999999999,-5.605,-6.148,-29.155,18.856,-56.883,18.902,18.847,18.823,18.849,-20.333,-18.686,-5.643,8.455,-8.28,26.092,-47.937,-21.159,-19.36,-15.838,-21.207,0.042,-16.422,14.943,-56.202,-56.222,-9.126,-20.135,0.986,-21.721,-17.623,16.779,-6.323,-4.044,-35.561,-17.093,-6.925,-8.887,-20.642,-21.194000000000003,-39.698,35.76,35.761,-6.053,13.447,-10.072,-5.968,-5.561,-24.328000000000003,-10.68,-19.542,-4.703,1.12,41.819,-13.098,-20.884,50.82899999999999,51.892,38.063,29.311,-58.767,-15.220999999999998,-2.75,-2.614,-2.778,-30.715,-19.381,1.909,52.711000000000006,18.881,65.17,65.17,-20.002,34.072,-2.045,-2.775,41.048,-7.472,-56.057,-21.474,19.055,18.81,-23.01,-35.288000000000004,-59.014,9.845,-25.758000000000003,-6.435,-6.513999999999999,-23.258000000000003,36.43,27.929,19.243,28.203000000000003,28.164,28.094,27.944000000000003,27.802,18.708,16.84,-5.037,-6.404,-14.281,26.003,-7.081,-16.815,-17.217,-6.227,39.589,0.8240000000000001,0.858,-21.793000000000003,16.46,51.667,-28.939,-28.906,28.179,-9.789,-6.727,-4.92,-55.284,52.231,-24.527,1.833,1.29,-3.755,3.588,-15.114,-14.993,56.1,-6.143,18.792,-4.871,3.512,-45.1,-24.742,-28.244,-33.234,28.826,3.09,40.287,29.333,-42.984,44.537,-49.628,9.708,-13.765,-41.982,44.568000000000005,-16.959,-27.75,44.277,-5.97,44.473,10.16,44.505,44.498000000000005,44.494,44.663,44.92100000000001,44.452,44.761,44.956,44.735,44.541,44.669,44.618,44.54600000000001,44.305,44.69,44.457,44.791,44.727,-15.511,-9.027,1.599,39.44,44.356,44.31,-20.034,34.795,44.907,72.64399999999999,44.73,44.351000000000006,44.231,-21.513,18.926,-6.224,18.718,18.583,-6.98,-34.762,18.722,29.235,52.665,34.511,-19.284,-3.703,18.588,-28.148000000000003,36.447,-28.08,-6.903,-21.649,-5.247000000000001,-57.283,9.944,63.212,-4.387,40.752,40.745,40.831,53.827,-20.391,0.7290000000000001,0.523,53.826,0.6920000000000001,0.633,-55.574,45.354,-24.197,-6.921,53.304,45.381,-6.129,-8.427999999999999,0.46,-23.261,-5.815,-26.929,-18.882,-4.399,-22.452,-58.277,-10.359000000000002,-2.979,-60.614,18.511,9.187,-57.00899999999999,-32.953,-32.921,44.531000000000006,44.468,-18.08,44.853,11.463,27.291,27.041,-32.465,-32.565,-6.216,27.191,0.986,1.019,55.265,3.722,45.324,44.12,-6.0,-11.044,45.46,29.246,51.246,-1.496,-15.282,37.353,-0.8909999999999999,-0.74,-0.939,-0.8370000000000001,-1.21,-6.945,-6.191,-0.5670000000000001,-0.897,-0.917,-0.573,-1.336,13.906,-0.477,-3.362,-1.266,-1.199,-42.132,-22.12,-20.341,-9.593,-33.672,45.263000000000005,-0.8690000000000001,15.978,-22.249,16.122,12.964,15.933,28.285,-14.072,1.756,-51.858,4.2,-5.973,-0.7290000000000001,11.657,11.74,11.905,2.798,-17.383,24.092,24.033,-18.656,35.433,-23.267,-2.099,-1.196,-4.946000000000001,43.425,43.722,37.034,-12.969,48.442,2.905,-35.313,28.983,-14.705,-6.269,-6.17,39.993,25.006,15.85,-14.662,51.221,51.269,-35.241,-26.399,-21.769,-62.722,-55.42,16.413,11.777,11.919,43.331,52.307,52.29,-1.036,24.141,10.429,-33.63,-55.852,52.214,52.214,44.481,44.339,-11.178,14.564,14.550999999999998,-11.218,3.065,1.112,12.177,3.0980000000000003,44.17,-6.252000000000001,-10.696,-17.160999999999998,-10.803,6.973,-6.306,-6.188,-24.061,-33.373000000000005,-16.107,12.816,-23.944000000000003,-22.293000000000003,51.437,-10.742,29.797,17.28,51.485,-8.128,-22.073,36.366,52.816,2.3680000000000003,-6.518,-6.716,-6.659,-6.7410000000000005,-6.796,-6.44,16.13,-6.68,-4.548,-7.31,40.774,13.845999999999998,13.862,-41.213,-24.628,1.621,-3.418,43.708,-32.611,-14.009,80.578,-3.313,-6.605,-7.146,-17.955,-0.6679999999999999,1.37,5.9,-22.191,-56.72,-5.504,-13.338,30.458,10.797,27.424,-9.309,-9.27,-9.32,46.787,-50.005,18.467,-4.537,-21.509,-41.32899999999999,41.657,51.49100000000001,17.444000000000003,24.968000000000004,-13.481,51.56399999999999,51.213,51.478,51.178,51.577,51.276,51.273,51.262,17.25,12.614,12.677,51.42,51.372,51.252,-20.416,-58.727,12.811,-7.1370000000000005,-16.073,43.36600000000001,51.568000000000005,-53.774,51.398,75.82,51.573,51.586000000000006,27.727,27.668000000000003,-21.712,-21.883000000000003,-2.767,-2.801,51.726000000000006,-55.177,12.479,30.147,-23.376,8.488999999999999,-10.112,2.9730000000000003,15.514,21.968000000000004,58.62,52.168,18.726,17.6,56.084,1.016,51.494,36.147,-19.82,13.856,13.076,1.0,1.036,-26.753,-26.769,-26.647,41.908666700000005,-50.149,-28.655,1.006,24.602,14.509,-3.82,30.174,-27.6,-0.018,-10.769,-26.923,-15.267,-1.996,-20.69,-21.356,53.06100000000001,11.977,-2.017,49.256,-3.828,24.041,-4.938,38.909,38.936,-1.956,38.88,-13.396,-0.266,-0.239,-21.601,4.97,-15.702,40.754,40.801,-13.302,-58.635,-14.707,0.696,51.451,-41.523,5.369,-9.471,-7.124,-9.517,-4.088,-3.92,-1.084,13.514,-22.57,-36.883,-6.933,-10.644,-59.994,9.379,1.073,52.318000000000005,-14.93,51.493,-11.811,12.32,-7.172000000000001,36.984,31.555,9.365,-22.118,-22.054,-22.056,0.36,42.803,21.898000000000003,-7.271,-7.31,40.395,-7.361000000000001,-7.178,-32.653,-15.573,2.857,-19.718,-31.9,-35.402,30.434,1.028,35.537,-10.555,-0.006,36.046,-10.878,-6.488,-3.42,42.86600000000001,0.908,43.648,32.501,-19.754,9.553,11.435,-25.36,9.597,9.463,9.454,9.446,-53.083,9.57,9.552,-6.155,-18.999,9.36,24.941,15.191,27.222,9.694,-9.295,11.682,10.038,64.782,54.047,45.533,45.537,12.434,26.475,-12.681,11.761,45.133,1.023,16.796,-43.417,13.229,49.047,-22.113000000000003,-45.778,52.873000000000005,49.737,34.556,34.591,34.56,3.445,-7.25,-7.281000000000001,-7.228,-7.228,-7.132999999999999,43.705,60.113,5.704,-7.082999999999999,30.568,0.389,33.685,-62.141000000000005,31.84,31.959,31.885,-20.412,31.732,-19.231,-50.256,63.347,9.953,44.65,66.986,-17.378,-24.593000000000004,-24.587,9.902,9.848,-1.296,-1.339,9.857,-7.558,9.825,9.732,9.718,9.822,7.306,43.523,-31.16,9.756,9.858,27.999,-16.082,9.785,9.934,-22.258000000000003,-34.551,9.939,31.612,9.959,-32.538000000000004,19.33,-14.993,-14.935,-14.929,-14.843,-15.474,-15.452,-11.384,-25.86,-14.802,-15.321,-21.237,-14.781,-14.951,10.338,-15.101,-15.327,-15.375,11.081,-22.196,35.345,34.35,16.348,39.604,10.297,6.659,-3.297,-3.236,-3.0860000000000003,34.556999999999995,-1.222,-18.41,-30.522,-13.983,31.789,-18.351,37.485,-15.598,14.542,-0.2739999999999999,-16.787,56.74,-7.936,29.85,0.87,12.511,-0.071,-4.736000000000001,-16.406,-6.23,10.123,12.727,3.781,-0.236,-11.085,12.473,-25.12,13.05,36.025,43.207,-22.682,34.294000000000004,-60.451,-5.36,-2.236,-16.070999999999998,-2.184,-6.884,-3.993,-6.9,15.83,-0.127,-19.224,29.845,34.456,41.026,31.631,18.219,34.305,16.914,18.098,-8.899,28.814,-47.416,-5.0280000000000005,19.981,51.51,39.474,16.413,40.2736667,36.25,-21.999,-5.614,-12.904000000000002,-19.837,37.564,37.661,-19.859,-8.472999999999999,35.687,-14.486,55.235,-9.641,52.063,-7.782,4.564,37.403,41.859,43.82899999999999,-21.973000000000003,10.816,-11.569,-21.186,-47.497,-22.481,29.976,29.985,43.92100000000001,38.075,39.422,-6.481,34.892,-7.249,29.422,-13.377,-22.378,-29.815,11.696,-29.681,-21.134,-31.078000000000003,8.134,7.742000000000001,-36.468,-59.849,-1.4469999999999998,34.851,19.01,-6.614,-16.61,30.136,-31.163,-7.621,-0.972,-19.169,30.984,0.825,-33.48,-4.52,-9.063,51.277,31.92,2.803,51.232,-16.249000000000002,51.369,-23.307,7.774,-18.298,-18.351,11.412,51.816,31.824,-6.485,28.726,39.513000000000005,39.537,11.425,0.344,-4.6930000000000005,52.06,18.629,11.049,18.315,26.093000000000004,39.527,26.124,-28.171,-10.671,-18.371,16.453,39.634,-41.069,-63.88399999999999,28.042,-58.504,78.445,-34.04,-0.149,-12.584,-12.880999999999998,-13.5,-13.406,-13.602,-13.673,-13.541,-7.382000000000001,-13.158,-3.37,11.112,11.029000000000002,-13.220999999999998,-14.133,-13.599,13.986,46.003,46.154,-48.342,-53.404,-19.171,-13.279000000000002,-42.504,-6.9910000000000005,18.993,-27.205,-31.791,11.027,14.906,24.894,-19.429,51.717,12.267,-44.75,13.199000000000002,33.825,-3.15,-36.383,37.091,18.734,10.184,18.722,31.824,36.411,14.46,-16.96,-21.628,-21.647,55.584,-27.162,-30.427,6.497999999999999,-59.713,-15.292,-20.438,-18.902,23.083,18.684,18.915,34.368,-22.889,-32.115,-54.925,-15.212,-15.395,16.325,-35.964,-54.096,26.981,-3.387,-53.547,-57.776,-56.614,-57.584,-21.331,-35.815,-23.97,-17.814,2.882,-5.9510000000000005,-7.146,51.347,-27.744,32.334,-20.703000000000003,-1.924,-16.018,34.395,33.938,4.868,-49.692,38.334,19.36,19.358,-4.1610000000000005,-58.055,-30.058000000000003,16.157,-30.164,-6.057,1.071,1.07,23.799,51.372,10.598,-22.733,-5.697,43.249,24.711,-29.281,16.333,-22.959,52.562,-22.982,-29.974,-30.328000000000003,-6.226,-30.578000000000003,-30.462,-30.554,-30.494,-30.517,35.582,22.357,1.535,-6.6370000000000005,-42.79,-15.16,-15.212,28.397,-7.035,-30.674,-23.507,-15.477,-16.012999999999998,25.03,-10.728,-0.7190000000000001,-4.373,-5.899,-13.592,-29.931,-16.678,4.3580000000000005,-41.715,13.549,30.077,-20.804,-1.972,-58.294,-25.511,-6.015,-17.398,-15.235,-3.562,5.436,14.696,-1.59,0.027,3.849,-55.19,-26.569000000000003,-3.482,44.622,-6.017,-21.349,-52.905,-59.053,-36.23,-63.122,8.097999999999999,2.109,19.274,51.191,-60.722,-28.683000000000003,-28.895,-16.375999999999998,-11.152,-7.36,14.438,-65.52600000000001,-13.761,-12.496,-27.092,43.048,43.084,0.124,-5.385,-3.776,-22.407,20.197,31.959,46.215,-6.292999999999999,41.0528333,15.922,16.014,-35.286,45.507,-59.739,5.678999999999999,9.79,-9.321,-9.302,43.045,-31.845,-52.117,-29.25,41.911,41.917,41.98,-9.321,25.028,36.379,-22.101,42.962,-30.933000000000003,-16.119,51.43,-30.809,-57.538,-20.888,-0.895,-21.795,-17.164,44.719,-8.666,46.453,7.145,-54.121,-55.369,39.296,-30.759,-4.368,-6.38,-13.115,-16.61,29.078000000000003,-20.397,-13.189,-30.744,-6.736000000000001,-30.772,-19.963,-21.029,-43.756,-2.13,38.438,27.864,11.693,35.069,13.849,0.05,12.361,31.187,-13.192,-35.598,-6.3420000000000005,0.8079999999999999,38.859,43.813,-16.169,-15.145,-20.654,-20.83,37.57,-29.059,-14.498,-3.57,-59.057,22.212,19.379,-21.688,39.959,-13.187,1.241,46.532,47.143,-13.74,-21.03,2.207,11.224,6.756,-22.172,13.639,13.638,55.221,55.281000000000006,54.841,53.909,54.512,0.6559999999999999,53.752,53.792,53.734,54.82899999999999,54.68899999999999,53.963,53.972,54.924,54.658,53.693000000000005,-14.4,53.853,-20.236,3.929,2.294,71.25399999999999,-41.397,-59.574,-3.0810000000000004,-15.571,-6.042000000000001,-62.88,29.985,16.107,-35.5,-5.872999999999999,51.187,36.387,51.212,-1.954,13.84,14.707,-5.996,53.424,-5.495,13.742,14.901,54.789,-20.342,14.149,-22.338,51.31,-55.783,-52.145,25.384,23.913,-6.337999999999999,-35.474000000000004,54.224,-22.301,-14.525,41.083,-12.029000000000002,14.374,37.264,-34.528,-24.954,-30.985,-15.848,-55.517,-4.099,-16.03,-39.612,-15.731,-2.11,-15.764,-5.87,45.855,-39.836,-0.653,-5.231,-44.971,-35.132,43.768,-58.876000000000005,-27.602,52.379,-15.323,-54.778,-36.068000000000005,-22.039,-47.514,-20.768,55.075,-22.542,-22.411,21.687,-23.913,41.464,-35.763000000000005,15.883,37.075,-22.668000000000003,-0.502,24.787,24.821,-14.796,-55.158,51.55,10.331,-17.125999999999998,-16.893,36.358,52.693000000000005,52.718,49.304,-10.973,-4.476,-4.513999999999999,36.479,-11.55,-56.901,51.715,53.93600000000001,-14.424,33.458,-7.845,-7.62,14.38,-11.295,1.6369999999999998,20.585,6.292999999999999,-17.272000000000002,14.368,-42.005,30.154,-19.333,11.564,39.977,-50.008,-54.639,79.888,36.433,-11.43,36.317,-62.877,-63.612,-63.56100000000001,-24.336,-3.242,-58.733,-22.923,-0.239,-17.552,-17.655,-15.964,-62.631,-0.544,35.376999999999995,-40.316,-33.297,-25.627,-8.148,14.277,36.92,-12.245,-21.209,32.457,-1.3219999999999998,-33.546,-23.635,-23.726,46.245,-23.718000000000004,-15.525,-23.821,58.502,-63.47,-17.858,18.525,-14.905,-35.266,-2.995,-6.082000000000001,-21.971,36.138000000000005,30.781,1.136,24.932,34.87,22.306,18.716,13.675999999999998,8.52,8.242,-2.972,-5.156000000000001,13.866,-5.776,-5.147,40.244,40.254,12.206,14.178,-22.227,-21.792,-16.935,39.253,-43.187,0.207,-43.4,-17.730999999999998,-17.987000000000002,33.622,8.138,-6.513,-50.462,-5.845,52.239,52.154,31.401,37.388000000000005,-2.231,-2.191,37.106,39.027,52.889,33.942,43.679,-23.887,-18.799,-31.518,15.959,-18.868,-24.804,-5.724,35.372,-52.988,-6.031000000000001,-11.572,-30.105,28.043000000000003,12.364,10.546,23.77,-58.358,-37.295,17.733,36.878,-60.354,-33.842,32.582,23.714,38.65,38.717,-30.487,60.53,17.39,-18.275,16.95,16.954,12.046,-11.04,-18.301,23.407,-2.9610000000000003,-2.895,-2.892,-4.687,-28.307,-18.369,-26.651,-21.836,30.134,21.254,-13.608,-32.312,-2.693,-21.614,-21.644,-2.81,39.573,-27.295,-56.676,-52.909,-0.593,-54.674,33.208,-21.841,-59.586000000000006,7.324,-58.786,-11.43,-63.607,36.268,45.852,-58.008,-6.178999999999999,28.932,51.618,-3.062,18.655,14.697,11.663,30.079,39.66,-0.154,-55.737,17.092,-23.934,50.91,53.669,-17.555,-58.206,-16.758,5.41,-29.695,39.716,-29.45,27.85,-54.555,-6.646,-4.051,-32.347,-36.24,-5.766,13.257,40.035,-65.592,-24.512,-14.233,-34.75,51.618,-5.624,-6.58,-38.294,-21.392,-35.63,-35.586,-7.77,0.262,-13.573,11.822,46.313,-20.27,-8.193999999999999,3.84,44.209,-17.202,-4.641,13.738,14.367,-56.628,-56.618,-56.649,28.505,-56.705,-56.605,-8.464,-5.877999999999999,-16.119,-9.109,-15.393,11.321,-33.518,-0.384,-0.4029999999999999,-21.04,-56.913,-56.273,40.027,-5.915,53.635,19.285,-17.275,-17.719,-3.552,33.489000000000004,2.9210000000000003,0.8390000000000001,-6.221,53.049,-19.25,23.643,12.867,-15.613,-44.432,-30.385,-7.262,-9.135,56.731,-6.954,-6.92,-7.018,-34.558,1.079,-14.946,-21.589,-4.075,-60.275,-26.83,7.666,-3.315,27.308000000000003,5.167000000000001,22.605,1.681,-23.716,-16.0,-16.515,-7.859,-29.238000000000003,-32.14,-28.978,-15.363,-2.071,-1.909,-5.875,-33.457,-9.144,52.121,1.253,-8.344,-7.952000000000001,36.514,-16.597,13.345,30.923,-38.214,-15.057,31.287,1.178,1.12,16.956,-25.159,-33.05,-40.746,-56.483,-1.364,-21.632,20.78,-17.105,-15.916,7.326,-18.502,51.477,44.39,52.166,26.741,-5.421,-20.598000000000003,56.233,13.232,-22.034,-22.27,-4.596,38.649,30.618,-21.132,-26.463,-18.026,4.461,4.37,2.355,-20.515,-22.313,-5.317,6.711,52.886,-4.582,-15.859000000000002,-18.734,41.674,43.157,43.455,85.734,85.571,-20.305,-6.19,-8.612,11.386,4.033,-12.616,47.505,19.2,-12.853,-7.907999999999999,34.259,-6.975,44.474,-3.5580000000000003,-15.507,4.931,-2.011,-21.143,-5.922000000000001,35.51,-6.185,-21.452,24.115,0.2,-20.804,18.053,0.2319999999999999,51.604,-63.497,-49.243,-2.975,85.686,35.592,-27.608,-22.717,28.343000000000004,28.323,85.735,5.397,-20.423,-34.673,5.255,-21.734,-15.765999999999998,52.129,52.132,52.056,-20.0,12.033,41.891000000000005,2.6830000000000003,-0.034,41.097,51.587,5.649,55.896,55.942,-7.122000000000001,-20.912,29.57,-7.028,-9.682,-40.045,-3.857,-56.799,30.512,85.64399999999999,-10.688,-3.996,10.696,5.827000000000001,-4.357,-19.899,-57.679,-16.66,13.173,-5.591,24.908,24.451,-6.527,-6.42,-0.155,43.607,-42.056,-26.354,-6.0,-20.036,-21.422,-6.346,19.25,19.248,-26.896,-20.458,-31.888,-29.679,-27.953000000000003,13.123,-1.648,28.867,-35.781,-31.646,56.794,59.291,14.364,-34.019,29.501,-7.491,56.416,45.449,-21.486,14.214,-42.455,-11.658,-5.159,-36.102,-36.368,-36.31,43.032,-0.418,-3.068,37.5296667,-4.751,-2.642,-5.195,-5.165,-5.039,-5.65,-5.03,-38.674,5.625,85.632,-60.788,-20.731,-5.601,-19.078,3.689,-27.931,34.478,58.652,0.053,53.859,13.897,8.586,73.017,73.077,15.04,-19.281,8.592,-53.039,18.386,-17.037,-14.965,5.513999999999999,-5.414,8.228,36.388000000000005,18.324,-4.508,-56.274,19.279,3.802,30.098000000000003,-17.956,-9.468,36.622,70.38600000000001,70.28,49.371,47.08,47.074,56.076,26.323,49.233,-30.247,-24.967,-6.513999999999999,-20.095,15.782,30.069000000000003,5.513,-35.486999999999995,13.749,-18.23,-22.546,-28.629,-9.03,-33.58,26.904,-18.289,4.567,-5.151,40.78,-2.979,-3.0460000000000003,-15.201,-28.69,-30.285,29.999,5.2010000000000005,-30.367,51.52,37.53,-33.023,-12.55,-3.4530000000000003,49.933,-21.086,-56.435,51.229,-22.147,9.346,34.791,-18.721,-1.716,-45.622,-0.688,52.094,52.037,-1.776,-5.885,-5.396,40.748000000000005,-37.341,9.044,34.024,-20.389,8.918,-58.31100000000001,-40.509,-16.117,-19.059,10.376,58.153,-3.522,-3.472,19.119,-27.801,-1.287,3.103,38.119,-63.289,7.138,47.506,46.024,-32.831,28.97,-3.636,40.709,-55.989,15.09,-20.934,-13.79,-14.408,-4.422,-6.443,51.207,-19.713,46.419,-3.624,46.334,23.772,23.602,23.785,23.57,23.746,23.756,23.39,-63.68,23.729,23.642,23.738000000000003,2.667,54.59,-30.738000000000003,16.059,-0.2789999999999999,40.186,-13.357,-10.685,-35.841,51.207,52.243,-6.158,-21.054,-21.89,-1.99,-21.116,-3.407,54.657,-14.281,34.6033333,34.6781667,34.24,-56.121,-6.94,13.726,23.445,23.433000000000003,-4.808,44.612,-34.841,-19.442,-2.119,31.971,-38.699,-23.681,39.463,-15.838,-33.056999999999995,23.378,-45.473,-15.761,36.522,35.726,-6.41,49.315,40.744,1.276,40.758,40.785,53.357,38.304,-1.339,-55.823,-5.978,-6.004,-6.5760000000000005,0.523,-6.428999999999999,-6.351,-21.75,-63.123000000000005,18.544,-16.152,9.732,-0.944,55.133,-30.234,-16.423,-16.009,55.143,-16.426,-15.576,-14.529000000000002,-54.855,-4.692,54.952,0.581,-1.275,0.565,-18.901,-21.284,-21.325,17.647000000000002,-22.031,10.961,-10.961,40.358,57.667,3.282,-28.5,57.812,29.92,57.413,57.363,57.362,-15.911,-9.843,-6.028,-22.303,-36.206,-13.912,-17.715,15.765999999999998,14.765,-2.889,2.077,-0.138,17.189,-5.7860000000000005,-28.939,-50.149,54.506,-50.26,7.982,8.068999999999999,-2.425,12.87,-3.986,-4.579,55.83,-6.845,-54.345,-10.885,35.321,-0.625,-56.211000000000006,-56.369,-6.13,-27.992,5.609,1.6740000000000002,-11.15,18.244,-10.86,-10.98,-11.21,-10.938,-11.165,47.57899999999999,37.269,-60.722,-17.942999999999998,51.447,-20.771,-20.964,-11.371,-11.462,32.222,-56.103,-9.195,58.04,16.095,-54.326,-9.805,-6.746,-23.169,-16.925,-2.476,-18.823,27.35,-17.61,-15.285,25.591,25.607,-6.345,-21.216,-30.238000000000003,-11.656,-11.593,6.785,-14.512,-14.319,36.372,-28.227,-6.261,56.618,43.649,13.147,-59.287,-17.657,-7.967,30.239,-7.973,57.527,-17.512999999999998,-17.207,-17.272000000000002,-7.485,43.04600000000001,26.076,-1.347,-9.691,65.015,13.572,75.271,1.295,-5.843999999999999,0.931,-27.585,-15.893,-6.573,42.853,5.694,17.675,-10.806,-10.905,16.569000000000003,8.854,-6.279,18.562,21.611,-5.322,17.387,-19.528,-20.053,-19.826,13.795,9.406,-21.762,-17.588,-50.066,-18.158,-19.005,-19.103,60.167,-7.321000000000001,-6.817,-60.167,-34.317,-62.902,-49.162,-3.876,-8.701,4.738,14.975,-61.707,-61.77,-61.826,-44.396,-42.556,40.3886667,-52.964,-41.076,-24.362,-6.212000000000001,3.155,-12.194,-14.558,27.551,-16.192999999999998,22.338,-28.127,-17.899,-17.756,-15.861,0.267,4.082,34.22,-7.206,-18.271,-18.045,1.091,-27.944000000000003,-15.568,10.300999999999998,-18.702,-22.169,3.959,3.913,-52.455,4.022,-20.664,51.422,35.667,37.842,-28.307,-28.384,-5.3660000000000005,-53.221,40.178,-33.619,-6.407,51.011,-3.986,38.176,-15.54,17.439,-1.105,51.438,-17.914,17.512999999999998,-1.215,-11.295,-15.227,-2.54,11.045,-4.457,-0.846,11.045,-31.319000000000003,-23.548,35.975,-1.42,-4.296,49.94,59.20399999999999,-49.795,-23.775,71.19,0.738,-4.096,36.042,11.359000000000002,38.922,-63.622,44.513000000000005,51.923,35.552,-4.721,-4.646,28.723000000000003,-15.577,-5.605,-4.909,-4.141,40.693000000000005,-5.093,37.012,29.424,36.829,4.9430000000000005,26.856,-4.612,14.207,-5.071000000000001,-5.33,-5.365,-5.549,-11.300999999999998,-4.478,30.472,30.491,-17.565,-11.448,-4.695,23.843000000000004,-5.542999999999999,-50.57899999999999,17.315,-25.516,-24.032,46.64,4.542,-17.902,29.368,-33.876999999999995,-28.876,63.966,63.965,-13.802,16.967,14.011,-14.104,63.98,14.112,-27.882,1.279,-5.005,31.183000000000003,-7.096,34.056,34.027,13.031,-35.226,34.221,34.076,20.24,53.203,51.411,-5.408,34.053000000000004,-16.209,46.828,-4.473,57.369,57.401,-49.029,-18.343,34.319,-0.44,-54.104,-7.027,-61.194,20.253,-7.747000000000001,-4.1930000000000005,-12.404000000000002,36.283,17.905,36.51,9.416,-5.551,35.181,9.287,18.414,35.229,-4.07,34.126,-5.561,-53.553,0.778,34.208,34.204,-12.36,23.359,33.933,-10.935,33.901,33.954,-16.697,-29.279,-16.817,-38.765,-17.945,-12.037,31.078000000000003,0.482,-17.684,0.152,48.786,-6.377000000000001,-5.845,28.856,29.025,-7.018,-11.864,-15.693,18.198,-16.797,-3.072,8.369,12.078,-9.377,-31.511,43.04600000000001,-21.901,-16.887,5.772,34.126999999999995,36.244,43.816,7.427,-1.3969999999999998,-53.02,-6.274,38.117,21.335,-22.633000000000003,-28.01,-6.026,-17.517,22.219,4.352,-4.11,-3.986,-4.163,-4.124,5.069,1.4380000000000002,-5.053,-17.917,-20.073,-20.547,43.024,-39.841,7.183,6.422000000000001,-22.763,-35.875,13.69,24.008000000000003,-1.179,-1.112,-5.619,-1.924,-15.877,35.389,-5.435,-15.742,-22.468000000000004,0.253,-30.256,-5.361000000000001,-1.885,-56.51,-29.847,-4.964,4.367,4.276,-11.674,-46.806,-17.178,1.123,-0.215,12.073,-4.046,-7.977,29.443,29.52,40.282,-55.432,11.124,-15.421,-15.636,31.732,6.853,35.456,-9.974,9.845,10.002,-6.276,-20.645,-1.577,23.866,12.452,23.556,-6.859,15.521,-10.535,-4.623,-17.285999999999998,-47.347,1.671,1.832,13.679,7.106,-57.24100000000001,-15.229,-4.053999999999999,-34.605,-6.549,-34.678000000000004,-34.573,-6.943,54.707,26.266,-1.595,17.598,18.298,-5.212000000000001,-4.766,-15.138,47.782,0.8240000000000001,17.637,-9.708,34.3,-10.513,-2.449,-17.964000000000002,-17.867,-7.95,-45.07,5.7620000000000005,-6.0760000000000005,9.938,56.15,-55.627,-5.537999999999999,-5.432,-55.136,7.042000000000001,23.251,-2.458,5.737,-15.425,36.601,-55.359,-5.391,-8.175,21.692,42.489,-21.263,42.521,17.342,-21.664,38.397,-14.605,-3.98,-5.32,-14.630999999999998,-14.637,-5.069,-5.138,-4.498,-4.917,-5.233,-4.827,-4.995,-4.928,-5.003,-3.966,-4.771,-5.29,-5.083,-4.093,-6.346,-4.263999999999999,-5.605,-5.12,-6.268,-5.496,-5.426,-5.269,-5.097,-4.224,-5.589,-5.228,-4.583,-4.632,-5.4670000000000005,-5.384,-4.682,-5.132999999999999,-4.8580000000000005,-5.587999999999999,-4.801,-4.484,-5.486000000000001,-3.617,-5.43,-6.377999999999999,-15.015,-5.589,-5.0760000000000005,12.866,-4.585,-4.655,-5.425,40.245,40.167,13.775,-24.869,63.88399999999999,35.255,51.666,14.876,35.748000000000005,4.222,52.577,39.566,-4.218,-4.274,-4.599,22.706,-36.388000000000005,-0.847,19.083,0.05,-55.91,19.091,6.015,-3.095,-50.4,38.457,-15.669,-26.82,-3.966,-21.178,-21.182,-17.570999999999998,11.765,-39.008,9.418,-24.123,-9.231,-5.706,-5.354,-3.221,-3.263,-3.109,56.82,-10.56,44.79,-7.872999999999999,-4.196000000000001,-21.264,-42.519,-35.025,-9.33,-4.228,-4.05,-12.472,6.898,6.631,6.749,1.288,-11.16,43.932,16.113,-0.657,6.917000000000001,6.772,5.846,-33.443000000000005,15.55,-18.491,-14.928,57.078,48.89,-18.785,-15.578,-16.95,17.333,40.74,13.049,22.094,13.118,13.181,-40.344,13.076,13.017,12.985,-3.957,-4.022,-4.308,-4.194,-13.773,2.49,15.402,-11.662,-58.161,2.874,10.172,14.017,49.33,29.992,-54.426,-0.198,-0.596,60.114,12.907,23.419,23.316,-10.845999999999998,-4.352,23.507,-0.677,-5.9,51.437,12.819,-19.273,13.211,52.751000000000005,24.269,-19.078,-6.15,13.671,-4.68,-5.164,48.544,-19.494,-19.691,-5.56,-7.1610000000000005,-15.345,13.062,20.247,53.92,-47.456,-45.097,-11.276,-4.9,6.622000000000001,-27.821,17.448,29.513,-30.715,1.271,1.5590000000000002,1.555,37.217,-1.143,36.424,46.815,-43.31,6.582000000000001,-6.944,-21.986,-22.002,-22.09,13.283,47.149,-22.293000000000003,-38.766,-49.736,28.564,34.369,-54.588,-10.43,-6.81,-25.373,-35.0,-7.206,18.772,0.451,8.656,-32.321,13.144,-20.414,46.691,12.54,-4.029,-3.999,-4.527,32.951,44.071000000000005,34.083,13.082,-34.734,-59.574,-2.747,-34.409,11.848,40.589,-3.386,-5.176,-34.405,21.705,-27.554,-4.381,-32.668,24.768,-59.723,42.729,-17.093,30.092,-20.777,51.239,-7.414,-7.455,-7.306,-7.41,-7.56,-46.293,-13.552,-29.103,-5.205,-19.407,18.449,-7.51,32.824,-9.183,43.097,8.338,-18.064,18.736,43.881,0.462,-23.523000000000003,-24.457,-14.927,-56.18600000000001,18.777,13.605,53.641000000000005,-10.318,-34.916,-27.173,-28.06,-4.236000000000001,0.414,-7.53,-19.903,18.816,2.774,-17.708,27.689,-38.868,44.268,-7.869,-20.292,-6.609,19.853,-7.022,-7.025,-7.199,-29.666,17.096,-6.884,-6.731,-6.815,-5.127000000000001,38.582,-18.831,24.463,24.513,-22.053,51.192,51.16,18.852,18.833,13.903,-14.889,-24.291,-20.154,-22.739,1.601,45.522,35.55,1.443,55.011,-16.265,-17.4,-17.84,-17.180999999999997,-16.645,-17.602,-16.767,-17.849,-17.585,-17.745,44.18899999999999,-16.85,37.238,-17.574,-17.745,-4.07,61.34,-19.532,-17.887,-19.522,-6.406000000000001,-4.312,-4.236000000000001,-6.033,-16.623,21.641,-21.725,32.153,32.192,-17.003,32.156,32.163000000000004,32.214,-16.086,44.512,2.86,-17.543,-6.662999999999999,-7.428999999999999,28.75,-17.404,57.203,-16.971,-5.147,-22.586,-3.4160000000000004,-19.448,33.165,0.043,39.059,59.025,-4.077,-17.692,-5.281000000000001,51.156000000000006,-15.158,1.557,8.023,56.26,2.809,12.224,-10.815,-55.537,-55.573,-8.61,-10.867,-14.258,-30.656,-18.166,-5.506,14.02,-14.7,-5.968999999999999,6.322,11.498,-13.616,41.04600000000001,-22.664,-36.71,25.748,-36.813,-3.373,-3.144,-36.807,7.632999999999999,14.187,1.091,-21.722,-41.495,-47.426,-22.928,0.889,-54.356,-54.374,38.804,-16.284000000000002,-16.244,-13.166,14.995,-0.578,45.447,-20.993,52.46,27.692,-21.092,-4.677,48.69,48.56,-22.393,37.244,48.54,-9.004,-7.506,-27.934,12.99,-11.375,51.786,3.873,46.591,-26.559,-18.503,-5.42,-22.541,-18.419,-58.306,-16.183,34.548,37.739,-3.502,47.07899999999999,-3.2960000000000003,17.044,52.591,52.631,-23.223000000000003,47.758,-23.846,-24.171,52.63,12.686,0.8390000000000001,-8.597999999999999,-55.758,-39.702,19.355,19.354,-55.092,-4.102,-4.561,-37.137,1.83,-4.68,-4.855,-20.908,-26.15,-14.765999999999998,-18.494,26.316,51.434,-21.797,28.579,-24.533,-5.912000000000001,5.361000000000001,-17.289,-60.8,9.643,16.219,22.336,-49.591,22.371,53.627,-17.430999999999997,35.946,35.726,-1.587,-24.409,-60.588,35.726,-6.88,-31.068,-16.255,-16.242,36.392,23.031,-33.228,29.606,15.571,-4.289,-33.248000000000005,-4.759,-12.738,39.402,-16.496,-15.35,18.961,-52.606,-41.398,-5.645,-44.216,-15.114,-5.824,28.251,31.9976667,-0.002,-17.189,-42.813,27.042,-53.386,-22.694000000000003,23.954,54.174,-56.895,8.17,-10.91,27.871,-9.613,-30.224,-14.647,-36.098,-8.357000000000001,-17.78,-6.009,-35.017,-55.214,6.303,-27.875,-16.332,-17.983,-17.6,-17.575,-4.333,36.088,-17.664,-18.012999999999998,-26.373,-17.840999999999998,-17.527,12.538,52.06399999999999,18.957,-17.57,-3.212,-54.893,-10.588,-20.445,-5.651,-17.434,-19.384,-17.334,-6.314,-5.527,23.901,15.502,43.915,-45.923,-41.465,-15.384,-21.542,35.79,-4.61,3.533,-4.566,-20.865,49.381,-15.304,18.194000000000003,-6.252000000000001,-4.957,-12.797,45.464,-5.236000000000001,38.573,38.701,38.632,-5.345,-55.185,3.026,46.083,-55.912,-3.711,23.716,36.588,13.989,41.472,14.995,-36.231,-3.767,-3.731,-56.74100000000001,-7.678999999999999,-9.64,32.32,32.3188333,-4.454,-5.654,-18.297,-5.685,52.697,-33.192,-35.717,-45.837,36.429,36.502,28.446,-6.888,6.033,47.88,-1.319,5.871,-56.019,-29.354,20.142,30.599,-44.536,51.531000000000006,49.677,-4.191,-6.196000000000001,0.68,51.464,-45.221,-33.263000000000005,-36.816,-36.873000000000005,-20.391,-6.486000000000001,30.512,-3.569,-3.214,4.585,1.395,24.362,36.062,23.346,36.023,-21.663,22.638,22.603,24.279,14.355,-29.67,-49.531000000000006,41.543,-15.275,-60.94,-10.833,-51.068000000000005,-20.741,-14.392,35.959,1.096,38.531,7.316,16.985,-60.657,-27.535,17.233,-16.382,5.303999999999999,-20.521,-5.784,-12.518,51.085,42.43600000000001,-56.135,-27.441,53.508,-27.47,13.088,1.793,-29.753,86.005,-17.898,5.283,-19.033,52.3,-17.948,53.813,2.6460000000000004,-10.424,-1.143,19.141,19.132,3.507,-36.518,-21.405,24.636,48.168,-2.907,-15.07,17.779,44.43,36.627,-36.344,-30.749,-5.816,-31.971,53.815,1.832,-28.937,24.069000000000003,-19.136,52.807,27.564,30.595,35.472,-0.879,8.715,16.107,-15.509,11.282,11.279000000000002,10.985,-21.573,10.99,-0.6759999999999999,-47.801,7.593,-47.215,22.542,0.495,8.783999999999999,-17.866,-2.338,-4.628,-4.651,-12.592,-30.805,-3.845,-19.278,-4.495,-15.11,-55.458,35.626,-4.928,14.753,-6.962999999999999,-13.275,43.752,-12.4,34.132,-22.201,-29.85,-31.149,-5.032,-20.622,-5.02,43.519,24.075,30.797,-8.203,30.847,48.517,1.295,-56.623000000000005,37.251,-9.285,43.661,4.187,-17.933,6.437,-55.74100000000001,-57.889,-6.504,7.928999999999999,29.28,8.264,-1.506,11.373,-45.022,-35.457,-5.54,-21.865,7.851,4.98,-61.452,-16.309,13.654000000000002,-5.5760000000000005,-19.506,-6.997999999999999,14.749,-30.772,7.831,14.101,-1.196,-9.552,-21.696,-23.567,-23.884,-23.899,-21.893,-24.871,30.986,-6.067,-21.104,43.11,-3.284,-20.543000000000003,-6.75,-6.398,22.115,-3.358,2.709,24.056,14.284,-3.147,43.916,13.536,-0.821,39.77,38.381,-20.275,-24.852,-30.109,-22.836,-3.302,-2.945,83.13600000000001,-11.571,13.036,13.055,44.833,25.154,-3.313,66.938,30.995,-3.284,13.112,-22.473000000000003,-15.196,-1.743,-1.68,-1.798,-22.269,-27.202,-10.584,-31.519,-10.535,-10.565,-10.65,31.995,-19.648,-53.266000000000005,-10.903,-10.871,-6.283,-33.409,-10.796,-10.935,-10.986,23.324,-7.526,-20.991,58.47,-8.197000000000001,-18.706,58.31100000000001,-42.039,-10.919,-1.757,-1.725,-1.501,-1.511,-1.401,-1.49,-1.4780000000000002,15.673,37.753,-8.295,15.095999999999998,-14.595999999999998,41.174,51.952,-15.675999999999998,-19.842,-3.597,-57.185,-3.667,44.297,36.353,-20.633000000000003,-32.202,63.514,-30.966,48.264,-1.884,-1.822,6.03,-15.904000000000002,-17.605999999999998,-25.321,-3.4410000000000003,41.789,-19.615,41.726000000000006,2.824,12.701,2.954,51.31,38.886,-15.927,63.517,63.315,-5.525,49.073,51.197,13.743,45.003,-2.619,-48.145,-23.313,-56.55,-15.097,3.006,-17.783,-55.718,-56.051,50.375,-26.397,-23.529,47.946000000000005,47.824,35.414,12.373,51.465,54.67100000000001,-3.21,-14.49,-28.879,-15.243,-35.149,-16.082,-11.238,37.747,1.511,-17.817999999999998,19.379,-6.471,-50.028,17.884,-24.139,34.301,-3.81,-3.737,-4.7860000000000005,-7.822,-41.852,39.736,-16.206,-56.952,-7.002999999999999,-56.996,-57.092,0.911,-3.076,4.9830000000000005,16.957,47.715,50.007,-17.745,39.57,35.704,-18.247,51.429,-3.799,7.471,-48.127,-8.747,-20.57,20.095,15.651,-33.765,-10.213,-20.577,6.0360000000000005,52.089,-19.664,0.153,0.5379999999999999,-44.444,-5.311,0.2019999999999999,-15.86,44.284,44.281000000000006,44.149,1.947,33.941,-5.198,-10.491,-20.393,-15.598,13.626,18.77,4.495,18.822,18.737,-8.807,52.242,39.5,-46.048,7.468999999999999,16.554000000000002,57.449,-6.362,-2.73,13.774,-21.107,-39.785,-6.011,-24.519,-4.691,-37.848,-3.652,-22.207,-16.449,28.046,-54.471,12.171,12.168,-56.93899999999999,53.645,44.149,-0.944,-18.442,-25.946,-21.315,39.61,58.706,-1.699,-36.958,15.578,-55.252,37.68,-3.232,-23.604,0.855,-6.82,1.692,-28.07,-4.694,-4.659,39.362,26.556,-62.099,-0.406,-17.416,-3.916,52.249,-58.203,51.272,52.326,51.295,-9.388,52.207,-19.212,-10.211,-0.212,28.094,-15.507,-8.294,27.264,12.518,-7.164,-15.324000000000002,35.976,43.109,-7.796,-3.169,-6.183,35.28,2.0780000000000003,-25.124,-41.381,-7.332000000000001,-16.18,-21.068,-20.95,18.877,36.296,38.221,-4.446000000000001,-15.396,7.033,-3.896,25.031,37.529,-55.272,-54.624,-55.039,-17.759,-15.136,55.92,48.764,-4.0680000000000005,-20.944000000000003,-8.195,-7.02,-7.032,43.706,-14.847,17.729,39.007,-7.207000000000001,-15.143,36.884,-30.531,-11.287,39.43,-30.587,0.215,3.715,-12.805,-3.449,-48.209,-0.988,1.142,-17.287,18.266,-8.06,-5.361000000000001,-18.841,-31.396,-18.044,17.546,-2.964,36.964,36.97,0.151,42.946000000000005,11.902,5.676,-14.668,14.428,38.849,1.158,2.354,6.761,6.812,-33.455,-31.365,36.939,-17.646,-12.394,-2.914,28.197,-32.95,-18.224,-17.36,8.374,-30.618,-2.937,-5.095,24.413,23.52,-5.985,13.17,-3.23,-4.581,-7.582999999999999,51.552,23.532,55.492,71.122,-30.691,-7.606,-30.608,-7.56,51.43899999999999,27.362,28.82,12.253,-3.325,17.457,11.993,4.529,12.803,22.904,42.323,-21.278,-5.448,-5.473,76.372,40.445,-15.581,34.606,20.372,-4.928999999999999,29.736,28.355,28.296,9.337,54.65,38.288,12.937,-0.537,-3.828,-2.5980000000000003,-2.569,18.507,-8.682,-5.481,25.975,6.678,-0.45,-15.416,-15.592,-4.293,0.136,-1.528,38.432,38.415,52.29600000000001,-17.595,-28.197,22.854,-18.478,-21.08,47.151,-20.134,22.825,-1.194,-61.307,-10.132,5.183,-54.647,35.031,56.113,-22.577,29.078000000000003,-60.532,-60.517,-20.941,1.142,1.257,18.348,-56.906000000000006,12.124,39.16,38.826,-19.899,20.348,29.573,-11.403,29.053,-45.104,-45.118,-45.325,68.689,-0.877,-17.453,14.034,18.541,-33.113,-17.16,-45.432,43.74100000000001,11.288,-49.816,-7.324,-56.105,-21.983,0.207,13.162,-59.286,-14.796,41.864,10.536,43.393,12.154000000000002,38.599,-15.229,-45.194,7.883999999999999,5.316,-54.715,-4.623,-21.878,-57.419,-22.432,-22.472,-15.807,-8.55,2.082,-50.07,-50.031000000000006,-8.205,-5.273,-8.971,-0.163,-36.161,-51.623000000000005,18.667,56.062,-21.467,34.998000000000005,-55.879,11.768,19.917,-1.007,19.777,19.91,-4.992,35.342,41.815,42.343,41.836000000000006,41.73,41.807,41.774,-22.338,41.996,42.156000000000006,41.988,50.038,50.091,28.827,44.666,42.62,42.45,42.045,41.4,-3.957,-60.318000000000005,-30.437,-30.494,-45.486,-30.248,50.211000000000006,-7.05,-10.752,42.227,-16.526,42.648,42.227,42.21,41.471,13.755,41.924,43.973,41.746,-17.9,-15.937,-17.822,25.954,-5.471,-5.077,0.444,-58.09,8.199,-6.058,11.491,-23.704,51.4,-3.471,38.4,38.383,-5.376,-14.291,43.844,-49.038,-60.711000000000006,-3.645,37.812,37.742,-45.19,44.57899999999999,11.199000000000002,4.973,2.001,-19.262,50.976000000000006,2.041,1.5619999999999998,-0.674,-30.616,-30.659,22.321,1.5930000000000002,-40.022,28.967,33.171,-54.213,-16.737000000000002,36.396,27.372,-17.256,-8.316,51.146,51.275,51.105,51.045,12.025,-24.369,-10.024,1.236,-15.883,-4.265,-23.367,-5.581,-1.908,28.524,53.607,-3.119,-19.846,-9.014,-39.233,42.905,-20.842,42.36,-5.937,55.538,51.09,51.334,23.039,-27.961,17.642,22.719,-16.547,-1.062,-18.905,-6.347,13.947,-3.77,-0.769,42.279,35.7188333,35.7005,-0.696,40.135,26.317,-5.801,8.416,-34.954,-22.252,-22.305,28.995,-17.421,-22.324,-22.273000000000003,-22.107,-22.015,-21.672,-21.648000000000003,-21.993,0.599,-21.921,42.423,-22.459,47.053,46.971,-21.476,-8.31,17.488,17.42,-22.376,-22.163,-22.323,-22.324,-22.3,-22.253,-22.438,-22.154,-3.589,8.389,20.053,-5.996,-6.072,-6.314,-30.883000000000003,-36.696,-16.237000000000002,-20.14,55.595,-21.997,16.108,-6.082999999999999,-3.528,-0.3979999999999999,7.641,-47.038,84.475,-62.445,58.235,-17.256,-23.046,-58.38,52.122,-16.83,51.135,56.806,-17.84,-5.612,-1.682,-3.12,-35.418,-50.206,6.292000000000001,-20.815,-13.525,30.052,-31.664,-3.728,-26.134,8.357999999999999,-3.615,-3.658,-1.386,-4.003,-4.071000000000001,-3.665,-3.367,24.897,59.373000000000005,-3.526,-3.627,-19.226,13.615,34.774,43.144,23.639,-11.608,-58.425,-1.5590000000000002,18.505,-14.74,35.142,54.615,-20.667,13.991,-27.781,8.288,-18.171,-53.159,-34.121,37.136,11.61,-32.405,-3.414,-20.615,-5.112,12.959,-32.544000000000004,-32.381,31.639,-32.527,-20.856,10.48,-2.131,-65.19800000000001,-32.559,-32.265,-32.343,-15.579,36.397,-32.285,-17.267,2.07,-21.118,34.589,11.155,-30.318,-32.01,-23.759,-34.5,53.82899999999999,-22.938,18.774,18.788,45.382,-6.184,39.93,41.863,-6.256,33.954,39.847,-25.184,-0.01,-6.016,-29.987,-20.535,36.428,-23.525,-20.436,36.512,8.902000000000001,-36.256,-55.677,-1.5490000000000002,-13.174,-24.469,8.044,-24.672,-3.729,42.918,-22.485,-17.848,55.226000000000006,-60.712,71.067,-19.374,-19.371,8.904,-10.764,-24.522,-8.669,-5.214,-10.893,-23.682,-7.352,-6.39,3.614,-17.587,-17.628,-3.355,-9.362,-21.899,-28.985,-29.105,-21.779,-21.032,-17.757,12.155,-16.494,10.805,-21.044,-37.695,14.461,-18.044,37.506,-58.182,38.507,-57.18600000000001,-4.602,42.525,-15.759,-21.988000000000003,-57.907,21.949,37.485,0.415,12.702,-3.584,11.743,-11.914,14.169,23.095,-15.34,-11.797,-11.914,-11.963,7.63,22.662,43.125,-20.901,-32.614000000000004,6.591,-14.199000000000002,36.29,37.752,34.251,-17.243,-31.052,-9.037,-32.875,-23.766,-30.481,54.463,-16.052,-6.04,17.51,-15.237,-51.603,11.453,55.682,42.395,-30.257,-17.891,-22.087,16.337,-38.854,-21.246,5.347,-10.902,-19.108,-6.711,54.8,-41.06399999999999,10.738,-0.665,0.797,-49.581,-15.345999999999998,54.131,-23.073,-25.541,-5.91,-8.975,-17.430999999999997,47.198,-25.077,-25.055,-8.783999999999999,30.694000000000003,-20.252,-24.259,-17.639,-17.656,49.695,-65.65100000000001,34.746,-54.72,-38.0,49.623000000000005,-20.317,19.639,26.489,26.488000000000003,-2.427,12.405,-0.4429999999999999,-0.3279999999999999,-10.308,12.455,12.445,-4.093,-57.261,-63.20399999999999,-63.38,-63.563,-13.387,-5.471,36.833,52.315,13.965,12.43,51.753,17.195999999999998,-6.242000000000001,36.444,-3.162,39.633,38.377,-11.91,-6.238,-26.368,16.427,13.817,-22.038,-25.015,32.542,-27.42,-35.173,-8.82,-8.66,-8.689,-62.62,49.539,7.291,36.959,-60.935,-15.192,-15.254,-15.038,-14.829,-21.015,33.07,33.184,33.202,33.247,-55.372,-55.261,-55.369,9.134,-55.22,-55.36,33.205,-28.573,-34.006,33.236999999999995,-15.153,33.14,-52.157,17.759,33.059,-57.976000000000006,-16.295,43.998000000000005,-22.665,7.959,14.22,5.885,15.814,23.106,-32.742,52.205,-12.925,-55.102,-15.599,0.456,28.565,-32.688,-52.515,35.8181667,-15.69,-58.719,11.989,3.615,-22.424,-56.559,14.546,5.479,35.95,-0.67,36.429,37.125,-10.951,13.925,-56.529,-15.186,11.422,-60.736,-6.689,5.388999999999999,-17.224,-14.816,-17.08,-17.595,-6.066,24.53,36.237,-14.027,14.166,-8.174,37.226,37.268,37.318000000000005,37.239,37.318000000000005,37.193000000000005,37.225,37.305,-62.088,-6.567,37.308,-8.861,0.853,31.024,-9.687,-57.067,-57.071000000000005,-56.984,37.284,45.787,15.643,-15.473,28.702,49.277,-30.956,14.474,43.62,-4.361000000000001,-18.579,47.948,-55.5,37.396,33.721,24.104,11.619000000000002,-11.15,-21.192,24.41,42.139,-11.265999999999998,-11.128,-11.109000000000002,-8.152000000000001,-7.952000000000001,-7.963999999999999,-8.255,-26.705,-11.156,8.425,8.283999999999999,-10.251,-26.748,-11.002,41.715,4.695,-5.627000000000001,39.189,-20.068,-21.059,-3.405,9.602,13.376,-15.403,15.679,-46.676,40.324,-24.294,-3.609,-3.5,-3.595,42.377,-3.619,-26.525,-3.638,43.006,42.984,-3.665,-3.375,-3.3510000000000004,10.49,-34.439,42.9,-18.481,-30.84,-18.928,10.874,-4.613,-3.489,-8.059,13.385,44.119,18.958,-21.901,48.837,48.772,-16.052,-16.2,9.38,7.38,-18.105,-15.265,-15.873,42.955,-55.942,-49.312,-49.31,-20.358,3.295,4.942,6.34,7.421,5.499,20.908,8.826,7.763999999999999,5.428999999999999,6.848,6.17,12.321,8.868,3.99,12.183,8.493,4.235,12.504,3.1830000000000003,8.615,13.745,7.21,3.548,4.473,5.532,5.049,6.789,4.9830000000000005,6.91,8.273,10.984000000000002,10.363,13.13,7.808,8.128,8.879,8.857000000000001,13.462,7.632999999999999,10.07,13.533,2.779,13.59,3.651,3.864,13.71,4.093,-1.527,2.794,6.318,4.471,5.476,8.472000000000001,12.982,-4.198,3.033,2.709,6.477,5.348,7.706,4.724,12.35,11.586,2.93,7.064,7.655,4.732,53.216,8.378,9.109,8.791,8.822000000000001,28.919,38.455,5.531000000000001,5.23,12.237,7.12,7.636,6.204,4.73,2.91,5.465,5.099,8.115,7.336,7.192,3.242,6.36,-50.659,10.672,10.556,3.527,5.489,19.573,19.638,5.604,5.323,1.414,-52.57,10.906,-55.299,4.926,10.528,37.017,-0.878,6.041,-4.238,3.135,14.57,-6.462000000000001,-25.528,10.934,10.986,57.049,42.946000000000005,-22.905,34.064,34.021,-1.134,5.186,34.003,-32.78,-31.61,14.554,-7.727,-5.849,-13.882,-1.198,35.796,7.33,-2.332,-1.364,-1.398,37.622,8.25,-6.763999999999999,2.699,8.017999999999999,7.944,7.91,7.951,8.015,7.994,7.877000000000001,7.858,5.511,7.9,7.907,7.968999999999999,-1.183,-1.089,7.989,3.325,-56.809,7.909,-1.626,-0.7929999999999999,-24.422,-22.899,8.117,37.535,-56.082,-20.398,-6.497999999999999,9.962,14.08,-7.476,5.622999999999999,16.011,2.255,5.292999999999999,8.106,-52.824,-4.525,-14.252,4.797,26.088,13.686,5.268,-15.111,-23.097,60.104,-0.127,15.775,41.728,4.756,35.982,8.097000000000001,-36.32,-56.132,4.702,-5.812,-1.768,5.446000000000001,-5.562,-4.694,30.754,12.582,33.181999999999995,10.829,25.669,-6.245,-6.268,-20.885,2.891,7.831,38.107,40.731,2.908,-17.72,18.764,-34.923,-24.964,-6.527,2.67,24.637,24.722,-11.062,-11.045,84.948,-11.046,11.371,85.24700000000001,43.085,39.44,27.095,5.486000000000001,39.354,-27.737,11.239,-24.369,-5.6370000000000005,-52.364,15.144,4.863,-20.407,-21.893,33.806999999999995,-7.945,-24.983,-24.725,-55.475,39.431,5.489,-4.894,2.085,1.114,1.23,2.087,0.923,1.014,0.172,2.889,0.185,2.648,1.777,1.773,-10.246,2.9930000000000003,2.931,-22.459,-18.545,-18.448,1.7009999999999998,0.3229999999999999,78.607,0.368,13.559,2.022,1.605,-3.984,0.607,2.966,30.491,0.679,-0.215,-23.144,-47.255,56.168,-53.446000000000005,-1.644,-1.606,-1.714,-1.619,-1.705,-1.63,-1.777,-1.591,35.604,2.169,2.075,8.66,-3.484,-7.292999999999999,-21.975,-1.915,-22.201,-54.99100000000001,1.812,-17.647000000000002,0.307,29.642,33.637,51.306,-59.381,-27.093000000000004,0.364,19.691,-15.302,-19.106,2.132,-14.922,-19.407,-19.968,5.71,5.082,20.351,-19.987,-6.226,-57.382,-7.501,0.5870000000000001,-22.696,-45.614,-32.589,-56.413,-15.318,5.593,5.439,60.018,1.989,-24.529,-3.286,5.281000000000001,5.691,16.207,-30.106,31.4,5.2410000000000005,-62.827,28.881,-20.206,-24.221,1.455,-18.259,-6.319,23.674,39.22,-29.522,-62.43,2.17,-35.904,51.554,51.185,1.813,-55.237,52.789,-56.293,2.087,2.741,-19.987,-18.719,51.017,51.239,50.979,41.292,-4.595,-44.865,40.773,-23.949,35.611999999999995,-26.718000000000004,-19.985,-36.155,-29.261,1.769,18.781,-26.928,-10.931,8.447000000000001,36.569,31.922,11.245,11.407,-42.283,1.819,3.958,-35.79,69.00399999999999,56.068000000000005,2.75,33.422,-1.1740000000000002,-36.31,-23.818,1.274,-26.872,-27.001,-6.829,10.351,-17.847,-57.301,-9.911,-0.157,-20.381,-15.216,35.498000000000005,-30.254,36.387,12.078,7.92,8.123,71.111,-56.027,45.365,52.871,-15.345,52.906000000000006,2.857,-61.474,5.1770000000000005,46.995,-4.003,3.008,11.247,-3.657,-26.634,-59.768,51.235,85.26299999999999,-19.614,11.714,-47.09,-14.449000000000002,-14.435,36.326,-3.795,-20.942,7.737999999999999,-21.097,-22.677,-21.899,20.134,-19.78,-3.721,38.276,-21.145,1.331,-3.999,38.48,38.564,10.078,-23.66,14.417,6.817,-2.35,38.481,-59.36,-24.411,2.451,10.364,-49.93,-43.003,-17.108,3.004,-56.41,24.084,0.0289999999999999,-5.902,0.77,-41.879,-55.645,-4.539,-31.68,-56.038,-5.15,4.862,-17.417,8.073,-5.622000000000001,3.918,24.561,43.892,-16.674,16.129,12.470999999999998,-17.515,-17.395,-17.484,-17.56,-5.678,-5.437,-5.563,-5.478,-5.667999999999999,-23.609,-5.595,5.509,5.233,-20.535,13.295,34.539,34.238,34.994,34.353,34.712,34.515,34.65,1.957,34.755,34.733000000000004,34.593,34.771,34.71,34.67,-6.881,13.42,4.82,-5.147,-23.713,-34.659,46.816,25.309,2.026,38.131,-49.518,38.2,-17.775,11.677,37.622,34.751,36.405,52.206,38.152,-5.824,37.148,-21.798,37.377,34.854,-7.154,-45.214,-8.555,-16.527,-3.592,-30.39,-35.652,1.226,-3.149,-56.07899999999999,-6.9,-18.029,-1.024,-10.513,57.47,-55.698,-3.1,38.107,33.336,22.04,-22.361,33.319,2.164,53.843,-6.957999999999999,31.019,-14.808,-60.726000000000006,53.929,-5.154,50.073,-24.273000000000003,5.905,-25.814,26.774,26.842,1.16,-62.332,-29.31,20.29,-9.672,6.27,-21.021,38.089,-21.444000000000003,29.338,12.19,-5.407,-6.224,-30.012,-5.408,-6.176,-24.599,15.302,-7.872000000000001,15.272,-6.584,57.43899999999999,14.018,36.357,-15.265,-14.595999999999998,12.252,38.506,2.842,12.232,-25.484,-0.066,6.643,-54.496,-54.719,-1.386,26.822,7.529,31.394,4.735,12.361,-60.957,-4.883,-19.926,13.841,28.164,-22.855,-56.552,6.635,52.415,36.311,37.057,43.507,-7.826,37.774,-36.411,31.066,-22.399,13.002,-17.391,-25.326,6.864,6.847,-54.16,-30.688,-65.417,-5.473,-5.055,2.7030000000000003,-21.178,-17.747,36.156,-16.361,11.86,1.093,66.297,-6.05,56.188,-18.235,-54.502,-7.147,-7.694,-57.211000000000006,20.821,-15.98,24.021,-1.48,-16.797,-5.193,13.164,-21.324,-21.371,-54.669,26.912,-10.628,-17.995,-23.607,-15.283,28.12,13.459,-18.018,19.358,-55.695,1.133,12.598,-20.118,64.911,-15.608,-40.103,-14.805,-40.134,23.777,-59.542,0.7909999999999999,-60.419,-33.227,-5.075,-3.933,-3.595,-16.871,-21.155,-7.471,-4.822,-5.119,-15.325,-58.051,-13.425,-22.303,-5.809,-23.797,-62.47,-3.245,-16.885,27.574,27.541,7.075,32.602,-17.748,12.078,31.713,33.5,-29.435,-29.835,3.798,-29.621,22.868,-29.728,-29.438,-29.562,3.782,-10.853,18.716,-29.285,37.64,-37.28,23.322,-16.527,44.88,-20.45,7.511,37.64,37.68,56.397,37.61,-26.002,35.314,22.802,-29.772,30.242,4.596,-12.475,-27.073,2.643,31.607,34.858000000000004,60.949,60.874,60.527,61.354,61.197,1.994,-57.482,-11.211,60.49100000000001,44.518,-15.103,-15.436,-27.017,-15.523,-27.277,-27.082,-27.223000000000003,-27.211,-27.227,-28.458,-28.257,8.165,8.115,2.205,-20.187,-58.25899999999999,-20.579,-20.261,-19.833,-24.977,-38.62,-20.1,-36.805,-36.829,-4.852,60.755,52.515,-27.471,23.309,-5.575,5.521,-31.81,0.093,-20.751,-20.634,-20.617,54.627,-0.143,1.55,60.772,54.271,-4.715,-27.565,-20.376,-20.423,-2.246,-20.295,-18.141,-7.961,-5.724,-19.907,19.162,-59.59,-7.94,-41.948,-45.763000000000005,-3.749,-20.837,1.175,1.018,-17.531,-17.98,-47.75,-20.661,33.134,51.752,51.948,1.454,45.389,-15.431,1.281,40.349,40.329,33.028,51.582,6.938,45.417,-0.39,-22.762,52.23,-19.865,-60.428,-21.287,14.986,6.501,26.925,-6.257000000000001,51.063,0.85,51.713,51.188,51.102,-56.529,-20.565,-4.359,39.119,-10.483,-15.244000000000002,-28.562,51.214,-11.627,-8.548,-5.992999999999999,-17.64,-60.942,-4.446000000000001,-28.715,-19.937,-9.284,-9.281,-9.68,-9.875,-9.087,-9.032,-9.094,-9.506,-9.009,-9.529,-9.42,-9.369,-9.301,-0.177,-9.355,-20.084,-3.908,-9.216,-9.543,32.974000000000004,-6.535,-5.474,-5.327999999999999,-0.336,-17.93,10.411,1.707,24.183000000000003,37.255,-22.25,23.589,26.864,1.463,10.166,-31.342,-11.167,52.121,-33.126,37.367,26.119,-15.798,18.541,2.403,28.789,-55.503,-4.672,-9.273,51.092,-21.189,-58.892,-28.815,55.617,46.542,16.230999999999998,49.823,-61.029,-60.913,33.631,-4.245,51.148,-24.403,51.331,51.377,-10.755999999999998,-0.348,-17.65,-0.267,28.798,-54.678,-6.759,53.263000000000005,53.97,-21.801,-58.769,-24.046,7.678,-60.844,-7.218999999999999,26.319000000000003,35.472,-28.944000000000003,8.283,-6.018,41.364,-3.08,-31.733,51.596,-26.151,-9.902,-9.05,-26.868,-32.228,-17.741,-0.179,46.462,-16.592,-16.159000000000002,10.876,10.814,7.282999999999999,-15.588,46.351000000000006,46.185,46.33,46.47,-18.84,-41.18899999999999,-50.105,-24.087,-23.554,20.654,20.707,-51.03,-56.101000000000006,37.197,8.405,20.712,24.148000000000003,-31.256,46.238,19.878,20.129,-50.778,-30.244,-5.881,-21.042,-15.053,4.82,-13.457,13.432,13.493,13.418,13.368,-45.727,4.945,-21.855,29.351,4.898,38.649,-13.371,29.366,-15.204,-6.475,2.339,2.324,-5.45,-21.729,-6.482,47.17100000000001,-5.994,-6.225,48.281000000000006,-26.052,-17.833,-6.38,-6.39,-23.267,-50.599,-25.088,46.592,46.301,46.27,47.77,47.518,46.086000000000006,46.371,46.862,46.652,46.483,44.104,47.111,46.195,47.42100000000001,47.055,47.006,47.075,46.867,47.278,47.141000000000005,47.382,47.666,46.718,-62.707,46.358,-51.874,-51.996,47.017,28.591,11.111,4.746,4.7410000000000005,-55.584,18.463,46.901,-4.521,-17.668,-6.216,44.154,47.536,-5.997000000000001,46.762,-23.422,53.588,-16.053,2.52,53.74100000000001,-25.371,-21.297,-53.844,-29.761,3.39,-8.261000000000001,-17.774,-0.5379999999999999,-50.703,13.994000000000002,11.397,-35.342,-53.982,-8.801,46.153,47.435,-18.742,10.023,29.761,3.733,-41.392,46.407,-35.327,-21.175,-21.258000000000003,4.815,0.626,13.272,3.269,-17.656,10.653,-6.785,-4.548,-6.801,-2.115,42.156000000000006,21.799,21.974,21.636,48.321000000000005,-54.832,21.999,-5.724,13.313,5.496,-37.94,-28.591,55.755,8.077,39.803,-18.58,59.42,-3.655,46.243,46.334,45.567,46.913,-60.915,34.892,-4.609,2.61,-3.322,-57.911,10.125,-5.488,-9.993,-5.525,-55.419,1.065,0.955,1.096,1.042,-55.764,1.06,1.041,1.024,-2.545,-2.502,-3.321,-43.139,-6.821000000000001,1.216,-13.1,-55.305,1.019,22.564,1.278,1.2819999999999998,1.218,-17.75,1.009,-54.74,20.98,-29.776,-11.424,-7.817,-37.654,35.344,19.372,-55.883,-55.791,-20.609,-20.678,-20.674,-17.712,38.39,-42.978,-5.002,35.804,5.561,-1.4240000000000002,-0.4379999999999999,-29.59,-19.588,0.432,41.794,-7.316,-7.255,-7.313,-4.095,6.336,1.75,-20.206,-23.05,-1.034,-1.032,-0.945,38.318000000000005,-45.337,-7.006,1.096,-20.135,26.146,-29.13,-15.966,-44.77,-55.245,26.581,0.0069999999999999,-55.252,33.79,-0.493,-0.488,1.955,3.018,29.908,-58.217,43.224,-11.428,-6.364,13.261,-23.294,74.256,55.209,43.988,-28.842,-41.203,-21.049,46.897,26.261,4.174,-8.128,11.514,1.132,4.551,42.159,4.585,-60.695,9.191,-3.388,-18.858,-53.81399999999999,-19.722,-20.617,37.336,-20.754,38.34,22.036,0.831,-6.268,-31.591,-31.604,44.138000000000005,-14.624,-56.083,1.274,-20.514,32.349000000000004,-8.466000000000001,-9.505,-7.169,-8.003,-7.367999999999999,-7.306,-7.303,-8.522,-7.265,-7.327999999999999,-7.532,-45.382,-7.174,-7.356,-7.225,-8.706,-8.748,-7.848,-8.55,1.409,-9.706,-8.617,-7.09,-9.742,-7.028,36.451,-7.838999999999999,-7.857,-7.286,-7.065,-20.633000000000003,-6.742000000000001,-7.141,-7.76,-6.819,-6.757999999999999,-20.715,-20.688,-17.23,30.926,-16.999000000000002,37.306,1.507,-55.373000000000005,-6.949,-39.787,37.306,2.9160000000000004,-20.073,48.304,12.99,-14.791,-61.828,17.302,-1.132,-35.051,47.002,-63.337,-58.015,-31.845,-24.082,42.658,25.722,25.73,25.71,25.623,25.683000000000003,27.471,21.136,-3.548,-13.838,-45.243,7.4,-14.285,5.359,-6.965,-60.789,-8.308,52.007,-53.999,-7.124,-7.167999999999999,-21.327,1.545,-34.115,-27.552,-1.41,34.248000000000005,17.307000000000002,-19.401,-19.406,-19.251,-44.85,31.355,-21.213,6.636,-6.882999999999999,-5.462999999999999,-21.683000000000003,-19.513,1.255,-55.477,20.503,48.858,-6.959,-2.745,-30.658,41.597,-7.316,52.352,21.892,-9.553,-9.228,-24.222,-35.928000000000004,-20.069000000000003,-4.587,-13.833,-1.065,-1.0659999999999998,-18.372,-0.011,-59.972,52.137,-3.454,23.028,-14.838,-60.182,-6.722,-3.3160000000000003,13.835,13.639,-35.687,3.49,13.554,-23.027,-36.208,10.383,-5.649,-46.361,-58.596,-46.385,1.719,1.152,-7.263999999999999,-3.083,-3.55,-14.86,34.437,-11.597,21.473000000000003,-16.917,-55.645,-10.492,-7.979,-15.679,-22.299,-32.004,-15.772,43.663,-22.264,-5.928999999999999,0.715,16.35,-16.418,-26.257,-7.933,-55.604,51.838,-15.383,52.49100000000001,52.362,37.535,37.502,36.808,-26.206,-2.734,-26.295,-26.084,42.913,-20.775,-8.133,-22.151,-55.091,-2.797,-2.783,-4.468999999999999,-4.109,-3.942,14.380999999999998,-56.351000000000006,7.157,2.872,-20.542,-62.693000000000005,-21.459,-54.13,53.641000000000005,-35.519,19.311,-56.058,27.343000000000004,-0.162,33.905,-15.595,47.11600000000001,51.307,46.714,51.209,-52.444,46.626000000000005,12.511,-21.555,2.505,-62.973,-4.797,-19.148,27.292,-5.926,-5.859,25.918000000000003,-22.264,-11.378,-60.549,-30.994,46.877,50.322,-13.386,-13.255,-14.226,-13.355,50.243,-13.583,-14.282,-9.834,-14.286,-3.522,-14.425999999999998,-5.301,-5.261,-14.177,-13.605,-13.805,-22.047,-60.39,-13.621,-33.908,-20.664,-13.63,-0.256,6.134,-5.395,8.037,42.02,-19.925,-17.457,-17.311,49.69,-20.948,-2.972,2.382,24.902,-11.61,-11.765999999999998,45.836000000000006,24.34,-56.081,2.966,-9.12,-4.438,-2.84,-2.93,-3.158,-3.145,-2.625,-1.9,-1.689,-2.13,-1.724,3.801,-2.749,-3.172,-2.234,-57.625,-15.464,-4.075,-4.416,-23.645,-20.244,-2.7880000000000003,-15.421,-3.259,-2.7460000000000004,-1.999,-10.378,-45.913,-2.135,-3.155,-11.774,-30.965,-3.918,-4.99,-5.024,-1.787,-7.074,-21.103,-21.207,-21.28,-21.207,-21.133000000000003,-21.246,12.378,-21.238000000000003,-21.402,-21.329,22.013,2.915,2.9,5.977,-21.158,-21.096,10.454,-49.271,-49.138000000000005,10.515999999999998,-3.158,-4.24,54.511,54.417,2.543,-8.285,-25.189,18.73,43.553,-20.706,-4.808,-1.735,-49.052,-3.285,4.922,-21.23,-44.79600000000001,-44.793,-25.775,-6.409,30.132,28.65,-6.31,-3.591,-3.592,-1.996,-3.899,-6.317,-3.5410000000000004,-20.602,46.011,-2.877,-2.847,54.52,-3.2710000000000004,37.43,18.9,51.418,-4.985,-6.593999999999999,-15.376,-15.593,-55.172,-55.466,-51.822,-67.03399999999999,38.155,22.15,-51.777,-11.547,-3.277,-0.552,-21.55,10.449000000000002,-22.247,-23.215,-11.538,-22.867,-22.925,-22.788,-23.005,-2.312,-22.84,-23.045,-23.059,-22.643,-23.104,-21.185,-21.968000000000004,43.542,-22.791,-6.907,-29.987,-22.917,-17.824,-24.81,-5.757000000000001,4.743,-4.63,-17.924,-17.85,-53.27,-23.77,-16.116,-2.8080000000000003,-8.292,-2.238,-8.224,37.392,15.28,18.654,16.058,-10.95,-36.756,14.944,1.981,-6.374,-6.452000000000001,2.018,22.692,12.263,29.935,-13.515999999999998,-56.205,-60.508,-7.558,12.277,-25.996,-3.568,-62.063,52.102,-23.157,-23.202,-15.213,-52.008,-7.526,-6.622000000000001,-32.689,-22.954,51.36,51.021,51.345,-6.952000000000001,51.301,-32.713,-39.011,39.417,-57.72,51.244,51.36600000000001,-2.407,2.087,38.503,-19.445,52.558,-22.45,39.446,52.267,-13.618,-19.387,52.21,-19.454,40.288,-5.877999999999999,-5.902,-2.782,14.129,-22.82,51.324,51.254,51.163,-62.139,37.216,-0.795,12.263,51.198,-3.913,32.288000000000004,51.649,43.785,17.048,10.413,-21.984,32.331,-20.963,-35.017,-44.92,2.346,-34.863,-15.277,-15.419,1.011,32.349000000000004,14.278,6.943,-6.026,-58.735,-7.302,-0.1689999999999999,-6.132000000000001,-15.550999999999998,-21.495,-2.296,-56.272,19.028,-20.166,-3.517,1.228,-22.539,-7.582000000000001,10.671,-0.236,-60.797,-3.008,16.357,-8.158,36.501,36.345,-61.294,-21.346,2.768,-52.917,-53.015,36.288,77.079,41.1444,-2.146,-2.323,-2.511,-57.335,-2.405,-2.486,-2.332,-2.245,-3.852,-34.625,26.816,12.68,-35.074,3.931,-20.256,-35.379,51.859,-2.18,46.406000000000006,19.913,13.351,-4.467,52.239,2.572,51.522,-28.337,52.17100000000001,-16.567,-16.489,-45.492,14.463,26.988000000000003,2.708,42.412,-54.324,-29.252,6.192,35.49,35.513000000000005,52.176,-16.912,-20.043,-56.712,46.428,13.594,17.199,34.758,-32.882,20.251,13.283,20.271,-41.055,2.855,-26.01,-4.346,-4.879,-7.046,-15.281,-19.965,12.59,-20.175,-20.185,-20.071,-19.997,-20.334,-19.934,-20.319000000000003,-26.289,16.099,16.174,-20.416,-20.392,-55.664,43.879,-14.505999999999998,43.648,-56.022,13.564,-18.696,51.856,-18.609,51.878,0.8290000000000001,39.028,15.885,-17.342,-27.528,-7.815,-20.273,-7.875,-7.85,-3.86,22.881,-20.059,-1.182,-49.091,-35.464,17.846,-58.739,-19.941,-20.238,41.452,-6.108,-19.471,51.864,-6.64,-20.457,36.178,36.156,36.164,36.108,12.515999999999998,24.044,31.002,31.586,31.342,31.211,31.527,31.214,31.413,30.89,-56.771,-57.911,31.355,32.24,-3.202,-47.781000000000006,42.503,1.64,51.162,-44.451,-3.181,-4.129,7.313,-7.061,42.386,-7.181,4.33,32.56,56.087,8.423,-56.597,32.71,13.616,64.005,30.802,-54.744,-41.198,-28.919,-54.816,20.124,-59.38399999999999,-15.223,-10.509,-8.166,-8.125,-8.1,41.538,-38.844,-38.871,-7.495,35.883,37.963,-18.098,-18.068,-33.401,-50.157,39.03,38.882,-17.735,-36.623000000000005,5.008,-4.932,-4.775,36.06,-8.865,67.69800000000001,46.482,1.324,1.344,-5.266,41.937,-20.768,11.005,10.894,10.847,14.178,35.658,45.156000000000006,-58.227,-58.121,-23.37,10.281,53.882,45.354,45.387,-16.428,27.532,-15.986,-2.943,21.023000000000003,21.014,2.177,35.8,-47.36600000000001,-16.599,-31.131,44.367,44.371,37.552,-11.041,-11.043,-11.066,-17.337,-3.792,27.773000000000003,37.186,39.802,32.751999999999995,50.967,32.747,51.279,-5.808,-0.253,-10.606,-10.578,-54.727,-59.644,32.033,13.515999999999998,-16.314,49.852,-5.06,-5.916,32.756,-8.131,26.64,52.19,-9.139,-3.942,-60.648,51.504,-60.693000000000005,11.055,10.947,-1.02,-11.432,-13.382,83.55,-15.273,7.292000000000001,12.897,52.272,-52.873000000000005,-8.201,-28.545,-14.915,-15.087,25.039,-17.769000000000002,10.307,-39.715,30.901,-6.337999999999999,-7.641,51.607,-10.751,32.308,50.165,-0.252,-6.146,26.241,-61.233,26.232,-25.387,-15.261,4.538,-26.736,-12.143,-31.555,-13.273,-1.171,36.487,-19.964,-13.501,24.666,-9.272,-11.800999999999998,2.506,26.743,8.093,-20.262,1.885,41.892,-21.682,56.312,-3.78,4.79,-8.728,-23.614,0.902,-8.779,-4.553999999999999,51.94,-11.185,41.578,17.612000000000002,30.836,3.074,13.469,13.477,71.325,-29.756,30.165,13.367,-23.019,-22.36,7.517,7.561,10.764,-59.34,-38.885,-30.184,39.533,39.359,39.508,33.886,29.807,79.817,29.757,-21.03,-15.248,43.372,19.161,-29.821,-20.123,14.423,14.255999999999998,-6.9510000000000005,-21.863000000000003,-21.972,0.109,-7.47,-18.414,5.957000000000001,-2.635,-17.227,36.49,-0.141,-14.635,-3.494,30.639,-8.896,30.598000000000003,46.425,-9.02,-3.399,-6.676,-3.42,51.552,-29.924,1.145,-16.297,-17.135,-17.320999999999998,-29.855,-14.829,-14.946,-14.924,-6.712000000000001,-15.223,-15.218,37.565,-55.961000000000006,-56.92,-53.794,13.05,10.833,1.271,1.291,1.127,-5.659,79.648,-18.897,8.267000000000001,-22.168000000000003,-8.947000000000001,-55.033,-4.348,-22.523000000000003,-4.4830000000000005,-22.441,-1.23,-37.244,-20.256,-22.434,54.203,-30.244,18.012999999999998,-22.901,-17.801,-4.755,40.348,-18.701,18.024,19.108,38.589,-21.389,38.529,-27.83,-7.393,13.35,13.415,-53.005,-31.232,-2.814,-15.929,-20.886,30.442,-12.337,-3.649,0.063,-48.981,-14.103,-60.078,-17.744,-23.495,-32.458,-32.473,47.006,-32.458,36.541,8.844,-2.769,-31.193,36.541,-6.3660000000000005,-17.29,-18.339,5.752000000000001,49.128,23.417,36.389,-4.297,-34.84,-4.332,0.624,0.7909999999999999,-0.414,-0.589,36.419,-0.325,-0.691,-0.6940000000000001,-0.669,-0.395,36.442,23.808000000000003,-0.659,-20.707,-0.411,10.165,10.437,-13.147,-22.352,-22.54,-10.334,46.857,-22.304,15.739,-30.199,-22.596,-22.477,-22.792,-4.667,-22.689,-5.912000000000001,-7.307,-28.25,-19.584,59.43,-17.796,51.955,-0.352,-17.837,55.536,-0.262,-8.936,-16.973,-8.107999999999999,-15.385,-19.41,36.719,-13.582,-6.1160000000000005,-6.567,-20.775,-16.221,3.886,3.615,3.875,3.892,4.026,3.826,3.961,3.715,3.933,4.042,3.947,3.706,3.972,4.0360000000000005,3.979,-31.232,3.754,40.239,-5.854,37.13,-30.724,-52.966,-61.706,-27.424,-18.365,34.203,28.875,-0.397,3.679,13.787,1.425,-23.18,-41.887,19.017,-7.467,42.61,-60.525,-21.762,-1.105,-17.512,80.28399999999999,-15.156,80.324,-24.618,-1.878,8.504,8.493,-60.861,5.686,2.4290000000000003,-14.452,-15.416,-55.144,3.807,3.597,3.648,-23.043000000000003,-21.48,9.796,-5.141,-23.665,-27.462,-5.72,27.415,-2.952,56.54600000000001,51.535,51.526,18.313,-3.522,-5.962999999999999,-8.01,-27.842,5.149,-62.599,-22.515,-55.976000000000006,32.007,-5.259,42.334,-22.384,46.049,42.275,-58.096,-6.822,48.837,-16.308,12.348,-3.079,-3.115,-6.484,-60.203,-3.327,-19.584,46.168,-28.915,-20.613000000000003,46.015,4.136,-4.168,-15.165,-19.772,50.833,-4.23,-10.796,4.416,-30.3,17.032,52.666,-10.77,54.531000000000006,14.546,-3.5410000000000004,10.2,-55.713,1.393,-5.664,13.082,-12.429,4.431,-15.75,-31.553,56.45,-16.825,82.51700000000001,-15.658,25.291,7.894,13.875,18.114,-24.381,-31.475,-42.081,-4.05,-62.316,-21.011,16.730999999999998,18.374,-17.026,5.9270000000000005,-60.424,-17.757,-17.761,-17.777,-62.834,-50.012,19.553,-17.735,-45.833,41.824,-35.418,-17.429000000000002,35.483000000000004,23.864,-22.037,-22.234,-22.685,-55.06100000000001,-41.716,-24.195,-17.611,-7.686,5.361000000000001,-54.36600000000001,51.606,35.358000000000004,14.076,61.93899999999999,51.277,38.85,-5.157,-33.201,1.381,34.164,1.052,25.131,9.59,11.383,50.435,24.874,-26.74,75.351,-36.004,25.632,21.952,-15.041,-9.139,24.056,-21.822,-45.762,-46.036,-3.375,-17.534000000000002,-46.196000000000005,5.008,-21.773000000000003,2.301,31.158,-6.492000000000001,59.29,-29.774,-17.755,-4.811,-5.497000000000001,22.572,-5.132999999999999,-20.849,-56.504,-56.234,-0.447,28.904,29.039,29.31,24.233,-45.554,29.615,-16.148,-22.66,-4.62,33.167,-11.612,-3.131,14.099,34.743,24.323,-57.66,-27.893,6.04,32.821,-26.76,14.052,7.947999999999999,-21.662,-13.912,18.183,-19.826,-1.479,-1.4480000000000002,-17.936,23.501,23.426,23.418000000000003,-0.911,-6.632999999999999,-26.064,-1.366,72.2,-22.539,2.483,45.502,-7.146,37.696,37.646,37.679,-15.223,37.606,-7.782,-7.817,-29.395,31.14,24.332,-15.121,41.483,-10.198,42.66,1.118,2.408,48.317,-29.926,48.294,10.709,-29.144,12.616,6.513,1.755,19.269,-9.138,71.03699999999999,27.332,20.404,-3.775,-6.13,-52.963,18.829,-6.372000000000001,27.927,-15.489,-15.355,-15.817,-15.557,-15.941,-16.206,-16.125,-15.358,-15.606,-15.832,4.919,-0.72,-23.031,-15.550999999999998,-2.482,-15.387,-17.215,-12.25,-16.335,-16.246,-17.017,-16.910999999999998,23.63,-0.4679999999999999,-16.230999999999998,6.74,6.683,-16.352,-4.533,18.796,52.157,81.572,4.079,-13.005999999999998,-12.622,-12.517,-12.097,-11.507,-12.39,-13.093,-12.564,-13.538,-13.235,-11.898,-11.66,-13.298,-12.237,-11.263,-12.912,-12.4,-13.232,-11.715,-13.357,-9.027,-14.117,-24.941,-15.66,47.851000000000006,-22.0,-13.003,-17.099,-12.414,-11.682,-14.075,52.754,44.578,2.93,52.604,-14.91,52.853,1.111,-3.0580000000000003,3.272,-3.615,-6.534,-16.365,-13.015,-3.651,-3.629,13.704,-15.437,-15.36,6.729,36.517,-0.8440000000000001,-12.196,-6.132999999999999,-9.896,-23.091,29.566,-59.955,-15.794,18.911,36.391,29.218000000000004,-11.376,-15.505,-24.121,37.504,7.089,36.155,12.108,23.731,-52.292,-23.436,29.49,-16.008,-8.207,6.7,-43.462,-17.239,-4.466,8.082,9.358,-20.979,-19.394,-17.917,-12.201,-22.965,52.123000000000005,52.102,-53.965,-0.18,-17.794,-39.634,-31.569000000000003,18.083,-12.616,-20.708,-20.693,13.514,-10.403,-29.216,5.3260000000000005,0.415,5.345,-17.077,12.189,-56.476000000000006,-10.126,-9.948,-54.709,-22.15,-0.642,2.759,53.417,-21.056,-9.942,48.827,-10.028,-5.957999999999999,-55.488,-31.59,36.463,42.447,51.398,-17.73,23.796,2.675,-10.108,-1.4340000000000002,-6.813,42.126000000000005,42.245,-15.765999999999998,-15.963,6.482,-5.53,-17.299,-3.102,24.357,6.52,32.464,-2.008,-59.401,-59.395,27.319000000000003,12.424,-5.297000000000001,-8.802,-8.726,-8.783,-8.917,-8.375,-58.173,-9.019,-9.05,-8.89,-49.789,-41.605,-4.405,-53.516000000000005,-9.131,40.652,-5.417000000000001,18.443,18.387,18.452,18.42,18.404,18.367,-15.656,-0.687,11.51,-11.964,-31.728,26.746,10.454,51.711000000000006,37.938,-6.122000000000001,-57.664,46.482,13.728,38.404,-12.484000000000002,-8.997,19.004,18.423,13.550999999999998,8.267999999999999,-8.205,-9.18,-18.513,30.964,-18.599,-8.498,-14.1,13.639,-23.357,-18.948,1.634,1.585,-57.638000000000005,-6.112,-19.434,40.4123333,-47.911,46.836000000000006,-16.004,23.488000000000003,-23.225,-23.319000000000003,-23.335,15.893,-15.053,-7.047999999999999,-40.593,-9.905,34.0,-33.622,-21.902,-7.217,-29.756,42.587,-21.84,-13.507,-21.511,-23.626,-23.738000000000003,-23.66,15.967,11.175999999999998,-55.758,23.784,6.484,25.93,-36.122,-54.027,-33.655,-31.663,-34.867,-34.35,-33.912,-33.878,-36.924,-38.032,-33.821,-36.869,-35.133,-37.773,-33.304,-34.749,-34.872,-33.027,-38.495,-33.443000000000005,-38.16,-33.717,-37.878,-33.281,-38.191,-34.373000000000005,-36.129,-24.872,-37.78,-33.99,-36.354,-36.521,-37.516,-37.581,-33.422,10.84,-37.695,-34.7,35.94,-34.163000000000004,34.832,-34.903,-38.099,-35.039,18.182,-36.675,-34.267,-36.61,-33.412,22.918000000000003,-33.216,-13.571,-22.227,-36.631,-36.665,-3.762,-13.140999999999998,44.174,-16.236,-37.99,38.864,38.709,19.348,-25.712,51.489,-33.562,-57.285,-34.29,-34.326,-34.614000000000004,-34.47,-34.381,-34.233000000000004,23.062,2.192,-37.551,37.594,1.3230000000000002,-1.692,37.745,-38.502,-38.526,-2.7460000000000004,-58.417,-35.802,-36.217,-36.405,52.139,-48.733,-23.318,-35.541,-3.361,19.674,-36.344,18.451,32.509,13.827,-6.3260000000000005,-27.953000000000003,-55.139,-35.387,-35.406,43.308,13.667,-61.203,-36.227,-17.194000000000003,32.2861667,32.0986667,-0.183,-19.86,2.383,-3.76,-28.559,-41.081,-25.68,-20.114,-12.973,-10.878,36.965,-56.919,-56.331,33.165,33.195,-13.451,54.485,-37.46,-37.42,11.678,-6.669,-37.159,14.514,35.633,-15.271,-37.529,-1.912,-55.606,22.18,-50.175,-51.021,60.473,60.478,-34.228,29.645,52.612,-38.072,-35.949,-4.053999999999999,-6.245,-18.058,-55.725,3.559,44.362,-8.085,-0.732,3.748,-23.59,0.511,18.4,-5.083,-54.8,-54.843,-56.87,-39.063,9.247,-56.236,-13.928,-8.087,-65.425,35.336,25.773000000000003,-13.698,-13.884,-13.658,-14.048,33.165,6.948,11.132,9.331,-36.819,-17.875999999999998,-57.369,-6.159,-13.731,70.712,33.335,43.426,-18.597,7.362999999999999,-37.314,26.688,26.712,7.881,37.372,32.705,-10.26,-2.386,-2.174,-2.329,-33.168,44.448,13.197,-36.129,-19.201,7.696000000000001,-5.513999999999999,-10.627,-8.07,-37.91,30.672,-8.947000000000001,-37.836,48.273,-23.307,16.396,-5.171,-13.643,-8.469,39.697,-6.169,-24.007,14.005999999999998,11.143,-7.862999999999999,-22.146,-2.4330000000000003,-38.067,51.81100000000001,-38.224,-24.715,-15.661,52.876000000000005,-5.966,-5.931,52.815,52.655,52.717,-29.031,-5.902,27.022,-6.015,-22.775,3.039,-15.132,6.718,6.684,6.497000000000001,6.545,7.319,6.776,6.218,-15.069,49.703,-3.832,-24.053,-7.318,52.667,6.547999999999999,52.498000000000005,-61.348,2.094,35.221,-0.763,7.103,1.239,-22.562,-26.916,-5.486000000000001,-21.842,51.423,-5.746,45.98,-37.443000000000005,-21.763,51.343,-17.541,39.406,-14.46,-17.403,-17.988,-17.423,-1.266,36.877,12.487,-3.09,12.348,12.412,12.307,12.303,12.273,53.557,-22.043000000000003,-5.692,-17.759,-20.799,12.234000000000002,14.03,-6.57,2.221,19.441,37.24,12.805,18.795,35.49,18.72,-55.8,-6.132999999999999,-13.941,51.451,-43.522,-3.65,-2.475,-17.368,-59.075,-23.825,-18.314,-10.965,-6.917000000000001,-14.396,-15.879,-53.136,-20.581,-20.671,44.588,-37.034,-1.068,7.787999999999999,41.497,-14.612,21.487,-16.031,36.443000000000005,-13.39,52.233,-5.8260000000000005,-7.809,62.854,-5.573,-5.314,52.438,57.688,29.637,37.257,-4.909,-4.963,-36.249,-4.949,-0.307,19.706,-6.559,-47.287,19.354,24.27,-17.817999999999998,51.374,51.287,51.334,2.8310000000000004,10.211,51.44,-4.915,-20.457,-20.425,42.31100000000001,-20.46,-7.366,-20.414,24.54,24.466,24.471,-34.736999999999995,-6.125,24.696,-20.878,-29.593000000000004,-56.7,-37.743,-0.071,-3.487,-2.958,-2.963,-3.301,-41.494,23.084,-5.51,-56.586000000000006,-6.385,-6.37,16.738,-5.355,47.092,-19.19,43.76,-4.617,-20.466,51.236,12.736,24.383000000000003,-45.464,14.923,5.946000000000001,-6.276,-6.553,-35.958,11.984000000000002,11.865,-1.99,-3.005,-7.797000000000001,1.181,-54.967,23.827,-33.625,-5.959,28.063,-3.369,10.293,3.862,28.349,52.215,48.922,2.689,-15.888,-6.001,-36.231,40.904,-57.932,-58.019,54.356,-56.412,7.481,39.358,-6.686,23.863000000000003,-21.811,-28.098000000000003,-6.534,-6.259,-7.268,-6.48,10.409,-14.130999999999998,10.171,12.995,28.412,-8.7,2.715,26.901,27.08,27.081,27.096,26.669,26.81,53.127,-19.908,-7.999,-63.592,-19.702,-19.307,51.115,-19.616,-19.636,-50.81100000000001,-19.311,-23.407,-19.661,-19.701,51.626000000000005,-10.819,0.6629999999999999,-26.803,-4.458,-38.355,-59.791,31.545,-22.26,20.114,4.243,-0.026,-19.155,-19.336,-19.296,-19.201,-19.297,-19.553,-35.594,23.083,-13.265,26.973000000000003,-36.92,-20.628,-20.606,-14.589,2.491,-5.65,-5.03,2.632,28.777,2.903,-20.335,-19.204,38.413,2.205,-11.013,-15.562,-11.656,28.195,-38.502,70.931,-62.964,21.613000000000003,-22.009,10.622,54.974,-15.511,24.618,-14.188,-37.621,-8.283,-7.154,4.195,4.077,-36.422,-37.196,-37.027,0.079,-31.241,1.993,-20.879,-36.565,-36.649,-36.557,-35.38,-2.497,38.321,-14.165,-4.614,55.918,-27.149,-26.142,-10.281,-43.583,-43.59,-43.598,22.11,12.388,-17.811,17.843,-10.622,-37.36,34.98,-59.233,-29.474,-29.701,8.596,9.457,-8.933,-18.021,-56.422,-10.349,38.435,38.361,38.246,38.665,38.315,38.503,38.345,38.296,-5.985,24.727,38.603,-6.872999999999999,-53.21,38.297,37.712,37.359,37.623000000000005,37.054,38.095,36.469,36.375,39.003,36.419,38.969,36.109,37.788,37.211,37.93,36.281,36.023,36.004,38.29,39.03,38.058,37.812,36.625,35.806,37.465,36.094,37.04,39.599,37.956,37.961,37.337,40.668,38.061,37.562,35.712,37.357,36.628,39.693000000000005,37.924,38.964,38.442,37.778,36.714,36.718,37.879,36.103,36.586,37.006,37.454,37.934,36.823,39.031,37.442,36.323,36.943000000000005,39.204,36.403,36.195,37.743,37.106,37.012,36.936,37.593,36.287,36.569,37.047,36.166,37.367,38.017,37.469,39.14,36.033,37.64,37.447,36.122,37.416,36.77,37.683,35.912,39.185,36.665,39.397,38.417,37.737,35.535,36.38,36.628,35.684,37.547,36.238,39.065,39.241,36.695,36.004,36.267,35.751999999999995,38.055,39.084,36.147,37.795,36.371,37.575,36.162,38.989,36.123000000000005,37.112,35.96,36.332,35.994,36.247,36.398,35.637,39.464,36.999,35.331,37.197,36.22,37.014,39.342,36.264,35.685,36.943000000000005,40.483,39.005,35.814,37.829,37.834,36.112,-16.724,38.751,37.328,37.594,37.6,39.549,35.952,-3.016,40.082,39.171,-3.84,39.049,37.734,37.249,25.209,38.791,39.465,36.517,37.681,38.047,35.723,36.344,39.642,38.849,37.348,35.152,36.408,37.785,37.206,37.367,40.419,37.576,35.272,40.335,35.209,35.747,39.887,-32.564,-17.275,40.136,37.709,-17.266,35.496,36.757,37.125,37.759,39.161,39.696,36.796,37.724,18.994,39.35,-31.129,36.491,13.915,35.205,37.244,37.325,39.851,39.733,36.866,36.289,-33.096,35.795,35.787,37.065,37.014,37.111,39.079,20.687,20.65,38.772,-15.848,14.374,38.415,37.401,39.591,36.143,-16.541,38.922,39.323,35.662,40.282,-5.574,-19.543,-17.642,-9.848,-17.662,3.029,1.612,17.208,38.276,17.107,29.999,37.001,37.791,36.98,36.809,35.417,37.107,39.368,39.583,39.619,-33.049,35.56,11.237,-15.281,-18.691,25.435,36.378,36.878,-27.596,-34.336,40.341,40.306,35.579,37.553,-37.905,-22.805,-10.375,39.097,-35.704,-35.42,-4.586,-8.081,-13.384,16.851,-9.973,37.455,10.129,-3.262,6.854,-6.947,-15.483,-20.396,-4.893,16.784000000000002,55.094,38.17,-25.192,55.019,26.124,-0.065,40.239,-56.65,5.343,37.739,-20.244,-20.272,-20.311,-4.742,43.292,-4.702,-20.298,12.434,-59.438,9.954,37.396,36.409,0.569,-6.104,-6.861000000000001,-9.203,-15.645,55.521,-6.627999999999999,39.149,35.761,-7.192,-56.074,-30.822,35.597,37.601,13.595,39.709,52.596,-5.704,-27.466,-27.261,-7.715,-37.578,37.285,9.635,37.067,-55.843,-15.115,-44.176,-17.083,-4.571000000000001,-30.42,13.414,-43.56399999999999,2.515,1.831,1.844,37.727,27.784,-5.928,13.303,37.664,14.021,-5.962999999999999,-54.889,-21.701,-13.287,-11.479,40.046,39.955,52.05,-10.925,42.049,-24.512,18.863,-2.384,-2.412,-17.112000000000002,-8.926,52.003,52.087,-33.906,-23.483,-23.535,-23.566,13.091,-6.626,12.326,-38.674,-14.811,36.372,-29.539,-29.565,-29.889,-28.978,-29.153,37.125,0.961,-4.137,-21.206,-21.16,-29.39,-29.337,-29.436,38.034,-15.418,-29.487,-4.061,-22.68,-49.928,9.509,10.648,-6.055,-38.237,36.128,-60.762,-33.819,-22.434,-7.089,-18.867,54.787,52.801,51.28,-23.72,40.081,-10.34,-62.496,-20.325,-29.335,38.898,54.695,13.107,37.73,-3.182,35.273,14.947,52.99,-9.23,25.101,10.799,40.344,-35.77,-23.801,12.899,36.942,-17.016,41.795,-3.518,39.837,34.631,51.792,-23.983,-5.045,-2.837,48.833,-29.989,-35.884,-11.791,-11.11,27.723000000000003,-7.04,-24.799,39.955,37.034,-21.805,-30.551,14.394,-1.337,-1.814,-2.323,-5.557,-57.229,36.765,-16.522000000000002,37.671,-22.504,-15.878,-18.365,-18.308,-18.311,-18.24,-18.6,-56.428,-5.57,-17.428,-29.026,36.083,-6.282,37.9096667,-7.641,-18.155,-13.598,-18.275,-24.593000000000004,-24.535,-16.35,-6.362,-5.907,43.589,-12.36,52.17100000000001,-28.398000000000003,-12.781,-56.451,-38.435,-20.671,-19.18,-15.295,6.564,2.965,-27.771,-49.586000000000006,49.535,-18.188,-3.626,5.617000000000001,-32.696,-35.111,53.107,-35.366,36.256,-14.956,-21.611,-20.679,40.273,40.235,40.239,40.077,40.242,40.265,39.845,27.73,52.037,14.186,-4.532,39.785,-15.437,-9.051,-37.952,-48.978,26.768,57.89,9.7,-24.178,-22.212,-32.514,-4.694,-20.602,-50.076,37.547,-25.459,-2.247,-9.35,43.462,-6.57,54.08,-25.788,-5.785,43.892,-28.993,38.721,38.751,38.814,38.809,38.634,52.159,38.811,-17.941,-14.438,-14.379,-14.512,25.372,-3.249,-25.741,-23.346,52.36600000000001,43.648,19.831,-55.294,-15.094,-18.241,-23.468000000000004,35.532,54.12,36.502,-63.245,11.56,27.324,38.429,10.542,-55.981,-17.708,-55.707,-0.949,-7.482,-0.095,-5.28,-1.702,8.415,13.973,-37.423,33.704,-37.806,53.13399999999999,-2.952,24.96,-15.364,34.285,37.365,41.898,-7.019,-5.48,-1.602,15.455,-22.17,7.805,-0.626,-34.001999999999995,0.121,17.95,-4.759,-1.439,-27.899,47.00899999999999,17.986,-24.083,-56.00899999999999,0.0409999999999999,-15.382,-7.551,-56.533,-32.718,31.717,-45.766000000000005,-1.265,-29.074,-33.17,-43.49,-43.53,-52.12,-16.198,-19.168,51.842,-56.958,31.456,-17.691,18.325,-6.341,-28.613000000000003,-10.617,2.4330000000000003,36.994,-52.113,-60.548,19.202,-60.975,-60.948,-60.882,-60.752,11.177,-31.655,-0.877,-10.966,-46.68600000000001,-8.406,14.873,-56.75899999999999,-56.655,-36.409,-24.977,-56.336000000000006,40.177,-36.793,-29.43,-14.168,-6.563,-6.586,-17.827,-17.954,-17.378,-17.463,-20.536,11.872,48.887,13.046,-18.894,-17.948,9.999,10.092,9.885,9.821,-56.383,-58.312,-17.968,-0.324,-37.456,-0.978,9.183,41.143,36.193000000000005,36.214,-10.39,43.625,-17.839000000000002,14.276,-17.699,22.661,-24.477,-24.495,-32.495,51.708,28.2,35.2,-22.141,2.687,-21.529,-28.246,12.354,-2.814,39.383,-19.125,55.146,36.741,45.239,14.959,40.887,40.781,40.755,35.687,-5.595,35.802,10.037,3.823,-34.905,-14.621,-3.812,16.493,-6.242000000000001,-54.367,-54.576,-35.2,-30.04,9.995,10.071,39.859,-57.331,37.116,-4.516,16.395,-4.551,-3.345,-1.261,2.327,1.271,51.364,2.199,1.254,0.802,2.9130000000000003,1.495,1.19,43.584,18.229,1.841,28.837,28.696,37.513000000000005,36.988,-57.679,49.38,-6.81,-18.972,2.5810000000000004,-2.64,36.632,-32.625,-5.462000000000001,-31.894,-59.016000000000005,28.689,3.256,3.269,2.158,-1.617,-35.229,-1.635,-52.867,-28.556,0.374,48.397,5.649,8.868,-24.228,35.622,9.011,2.696,-18.685,-5.327999999999999,2.704,35.596,39.745,-29.868,1.757,-5.689,21.951,18.251,14.376,-54.565,-35.883,-21.477,-13.82,41.549,6.232,-0.966,-28.73,38.612,-17.678,-5.504,-44.806,-25.729,39.665,44.89,39.548,39.646,42.645,41.335,-50.42,-50.352,72.96,26.91,-28.043000000000003,-19.962,54.368,-22.13,44.851000000000006,44.888000000000005,-0.902,-77.08,-0.72,-22.059,-16.235,5.305,5.507999999999999,-7.692,-15.279000000000002,34.943000000000005,22.357,-36.074,-20.192,-15.877,24.572,36.42,36.023,-5.6770000000000005,-55.79600000000001,1.293,5.718999999999999,15.593,-8.511000000000001,38.919,53.351000000000006,53.351000000000006,-17.963,-32.935,-54.36,3.009,2.628,57.601000000000006,27.767,13.834,-15.222,-24.747,43.433,-22.088,25.592,-14.423,-10.82,-40.023,-14.657,-4.651,45.497,35.604,29.381,45.401,-26.051,45.452,36.527,-2.885,55.777,-1.296,-55.661,-20.872,37.248000000000005,49.407,49.354,-21.222,-37.713,-19.19,-4.872,2.707,-9.694,-17.592,-21.015,-21.103,-4.651,22.935,47.379,14.191,-6.944,-8.414,-4.654,-16.919,-21.15,-16.02,19.946,52.633,38.329,38.389,35.661,-63.004,49.8,13.148,7.335,-36.429,8.347999999999999,-1.315,-13.504,2.645,-15.598,47.789,-4.766,-0.172,-27.311,-63.581,-33.435,42.419,-65.47800000000001,2.19,12.139,12.297,12.458,38.425,-50.143,71.441,10.811,10.388,16.229,6.61,-10.708,7.905,-12.476,10.085,-3.661,-4.6,27.575,21.527,-3.177,10.082,49.247,52.78,45.335,11.838,34.783,-18.627,-3.319,-39.676,-10.732,-5.687,-20.757,-20.896,-21.212,-15.517,24.666,51.592,-8.838,16.304000000000002,1.929,39.808,-64.969,-0.429,17.479,13.028,23.582,18.543,-21.725,25.127,-4.472,-2.72,-60.326,-32.865,-4.892,-7.145,48.308,41.825,14.684,51.9,14.062,49.618,-38.639,4.232,-54.217,-9.289,-30.809,-13.552,66.309,29.057,-57.512,-22.312,10.086,38.306,52.788,52.576,52.674,52.294,-8.185,-0.142,52.365,-6.7620000000000005,55.887,9.219,7.047999999999999,37.791,1.374,1.357,9.963,-35.465,13.988,13.849,-8.652000000000001,49.231,-8.866,23.005,22.72,23.132,14.129,57.792,-45.761,-21.043000000000003,9.982,-29.118,-5.86,-3.109,18.346,52.496,-53.955,49.28,-14.99,-18.381,-5.705,-33.939,-22.742,-2.952,-4.522,-5.398,-6.587999999999999,-3.423,13.757,-18.824,-16.975,-54.672,61.237,33.506,10.974,37.89,37.914,37.828,-38.428,-7.661,-7.211,6.702999999999999,-6.533,0.5329999999999999,80.804,31.095,-15.307,52.291,-4.632,49.785,-0.649,-4.178,-4.0280000000000005,-14.344,22.443,42.42,-56.18600000000001,-35.783,-0.145,-3.563,35.711,-1.564,55.393,39.656,-34.601,25.329,-57.05,4.72,25.891,55.163,-62.571000000000005,64.84,53.873000000000005,30.33,4.927,-16.117,42.605,-28.094,-10.634,-10.64,-10.682,-10.884,-10.59,55.435,-6.957000000000001,-11.104,-10.896,-11.12,-10.956,42.77,29.336,-10.887,-62.31,-10.864,-10.799,-11.076,-11.338,-11.183,-10.765,-11.293,-10.975,-11.809,-11.635,-10.499,-11.483,-11.112,-10.802,-10.649,-11.05,-10.898,-10.791,-10.644,-10.853,-10.642,-10.717,-11.243,-11.587,-10.639,-10.808,-11.099,-11.658,-15.805,-11.03,-10.997,-10.85,-11.007,-10.914,-10.838,-10.927,-10.928,-6.315,-10.869000000000002,-11.024,-10.886,1.135,-10.994000000000002,-10.921,-11.012,-18.608,-10.94,-11.046,-11.004,-10.898,-2.975,67.631,-19.731,5.812,-36.514,-10.841,-10.808,5.541,-30.774,-30.744,-17.46,-10.781,18.552,-27.932,-10.66,-8.467,-11.689,-32.339,36.844,-21.503,-17.721,50.95399999999999,-10.892,50.895,50.958,-7.189,-5.214,-22.396,24.31,-18.97,50.892,12.811,-5.299,-6.598,-6.662000000000001,-11.531,-8.798,60.233,0.863,-58.892,-28.044,50.731,-20.757,14.487,16.184,-9.353,23.828000000000003,-23.538,-28.069000000000003,10.032,-65.55199999999999,39.526,39.506,-40.445,42.736,-55.8,42.726000000000006,-3.517,-55.633,28.428,20.722,19.258,-17.34,34.369,-19.141,-6.475,-6.589,28.033,-3.214,28.114,-2.768,33.958,38.475,24.924,-34.343,46.221,-11.976,49.965,30.308000000000003,-5.002,-6.292000000000001,-54.78,50.099,29.933000000000003,51.663,18.081,51.098,-3.898,34.526,-28.681,35.702,37.592,33.061,-54.58,-21.375,-19.622,-28.983,26.56,26.548,-17.965,26.404,13.476,26.716,21.941,18.728,0.765,-15.69,-4.56,-57.511,-11.066,-53.072,37.739,26.606,52.34,52.254,-44.86600000000001,52.52,52.394,52.495,52.346,52.281000000000006,52.589,-13.787,-23.009,-20.578000000000003,-54.478,40.1918,54.892,53.026,-24.335,52.235,-7.51,39.956,14.553,9.416,-54.222,-23.061,7.275,-7.034,23.789,7.282,45.379,-11.401,-23.888,24.098000000000003,-43.754,10.644,-22.588,26.533,-10.004,-33.853,34.4,11.763,-56.28,18.155,-58.348,34.347,-36.525,54.263000000000005,-3.766,-6.452999999999999,-6.446000000000001,10.701,-0.141,1.114,24.09,4.645,-15.727,4.664,-35.927,-23.851,51.618,1.537,-7.028,-3.269,-3.917,51.03,-6.029,-8.802999999999999,13.29,16.707,-3.359,-30.148000000000003,-19.302,-30.243,-15.398,-60.857,-6.287999999999999,-63.378,-15.657,-41.549,-16.757,-30.473000000000003,37.5,-41.638000000000005,-41.70399999999999,34.512,-46.049,-23.132,-15.379,-57.915,-16.971,-15.2443,38.2133,49.6614,46.9925,14.1526,-22.5035,-16.8575,-16.9065,30.0464,-7.1354,-30.6285,10.4577,-5.3962,-56.5243,5.7732,-41.734,-41.764,-41.742,-41.6688,-34.8853,-22.2977,16.8784,-22.2741,-22.5179,-33.4611,-27.7829,-19.3503,-4.4412,51.537,51.4224,28.2425,51.2381,51.3674,-7.44,-29.0334,42.1989,-6.6272,51.244,51.3277,29.9377,51.1832,51.5573,51.449,51.5733,51.573,15.1836,51.463,10.5988,-47.0447,20.1721,14.6056,1.3814,-4.5472,51.4389,51.5751,-55.8129,22.9341,-7.3308,-33.5102,7.3709,26.951,27.2085,27.3125,27.131,-49.9585,-50.0313,-15.8385,14.4361,27.1825,-16.5507,-30.9255,49.4947,53.1995,11.2277,-38.6062,12.3115,-36.7267,-58.8864,-30.6623,10.9048,35.5142,0.7452,-36.7364,3.9633,9.8796,9.8331,9.7931,-6.4456,26.0913,-56.5117,-22.9456,-6.3449,-23.0067,-30.8285,-58.153,37.1557,-19.3607,37.1057,37.0876,-61.6949,-35.439,-35.314,23.5904,-30.2921,-23.6357,-19.1711,-19.2068,-5.8583,-19.2137,4.6565,-57.8439,-22.324,-1.1873,-12.0269,-28.3173,35.9187,-54.9278,54.6859,51.5477,-60.2814,41.4306,-60.2627,-60.2942,4.2077,35.6039,-60.3474,-60.2738,-60.4778,-60.526,-10.329,34.3343,2.6403,8.9147,18.4753,-63.2943,12.3975,34.4574,5.4216,34.3083,-17.1171,45.5613,-54.0272,-53.9451,-53.8708,-12.5993,-5.8261,29.32,-7.0269,41.6832,2.044,-21.2849,-53.3147,6.6241,-25.4464,44.4438,13.1334,35.6544,-58.6854,-46.0838,-25.509,-20.7074,20.7727,-6.9084,35.6065,-22.2795,-46.4494,-46.4386,35.688,12.7711,-56.4333,36.028,-1.3673,-18.2012,20.7553,-5.605,1.2996,19.1181,-13.8633,-20.687,36.9704,4.557,-4.5306,-20.7495,-11.5917,-31.3131,14.6437,19.0428,51.1701,-40.6595,-15.1443,-15.1091,-20.4871,-7.1045,13.3556,13.3936,-7.9855,38.2082,38.2889,-19.2592,-9.5949,-18.5087,-56.8269,-11.4671,-32.9076,38.2637,-4.8976,-7.1916,-61.3939,-20.3954,-11.5493,-15.0691,-60.4256,-5.9651,-8.2076,35.9053,35.8221,-22.354,-20.6254,-22.9553,18.5285,-34.7981,14.6682,-4.9229,-14.1648,-60.2444,4.1306,4.1326,4.0592,4.2246,53.6047,12.5559,-6.2859,27.4312,14.1833,-33.6046,-14.7378,-14.7947,-5.7523,-28.152,1.6575,16.0414,40.8287,-5.4804,-60.8623,-3.0856,-23.5928,33.6842,41.9039,7.7631,-53.5105,-14.0848,-5.5745,-19.9807,-20.0168,-53.1677,-19.9262,-5.297999999999999,24.109,-27.8839,-60.731,-5.251,-5.1882,7.7448,7.5417,-19.7625,-19.7163,-20.6741,-19.6899,-19.8239,-19.8288,-19.5932,-26.1692,28.19,-12.0989,-29.1646,11.6487,-17.0544,-0.848,-19.511,-8.3029,-19.6097,-19.8927,-19.4928,-19.7831,-19.548,-19.7029,-20.0759,7.94,39.1648,-20.3113,-20.5709,-20.7468,-20.6403,-20.7969,-5.2416,-20.6426,-10.5365,37.2833,-32.7997,-20.1273,-20.5124,-49.854,-19.2441,12.4029,-20.659,-6.5858,-6.7878,-6.8795,-6.7203,11.642,-7.1033,-7.1799,-11.2701,-11.3677,-11.2753,-11.2941,-20.5664,-11.4633,-11.4721,-11.21,-11.1284,-11.2397,-11.3052,-53.4967,-36.0868,4.5162,-55.0442,-62.8705,-11.1387,17.397000000000002,67.7185,-62.7789,-6.6558,-6.7547,-7.0167,-6.9524,-20.0283,-6.9778,-7.1646,-26.5546,-6.832000000000001,-6.2237,-6.6311,49.6388,-24.0058,-56.3998,-20.752,-1.1669,-21.4542,1.9623,-18.6007,-3.8148,37.852,67.6302,22.276,-24.6108,-25.8072,34.9118,19.6557,-36.1703,-6.9599,17.2349,-18.9616,17.2192,60.0035,-3.4336,-47.8539,-13.8826,-49.9403,7.2096,-22.7239,6.4507,6.4264,9.3832,-22.5327,17.0863,-23.4456,-19.9874,-54.2473,-56.2451,-14.6681,4.2485,-21.3041,-14.8047,3.1506,-4.4173,-4.7721,-57.0334,23.7553,17.121,18.2012,-55.3968,24.9737,18.9494,45.0099,16.526,40.2893,0.6863,18.045,24.9997,-55.3059,9.3864,-21.302,18.7876,2.017,-54.966,59.0268,-29.1504,-14.8641,67.7245,40.3731,50.6829,-46.0293,36.4544,-10.1229,39.4384,36.6041,37.0961,1.6444,67.6973,-19.9749,-13.5585,-19.841,-19.8027,-19.8101,-29.9772,-29.9379,-29.9414,51.8486,51.8246,-30.1701,51.9558,51.9357,-30.1522,-29.9669,51.9593,51.9091,52.2045,52.2488,24.3877,-55.4703,-55.4067,-55.3584,-14.7798,-14.9831,-15.3533,0.0541,28.3404,-56.62,-62.3014,55.2568,55.2557,52.1253,-30.4601,-7.0168,-6.2304,39.648,1.9335,-21.1445,14.724,42.6676,-17.6864,-62.1149,37.0052,-55.4163,-55.3411,-4.0484,-20.2585,-8.8188,5.7144,-4.1115,-4.1972,-4.1785,60.3491,-15.8239,11.7448,44.6419,-19.8015,-20.2267,58.3062,-60.0379,23.724,7.5014,-6.9216,17.6818,-3.422,35.3766,-7.1633,12.4337,36.8561,-9.1421,-55.4278,0.8295,0.9871,28.0487,27.1891,-7.2741,41.1585,5.8688,27.6814,-29.9735,-41.3326,13.9091,-3.4459,32.703,32.72,32.5827,32.636,52.5074,-59.1064,-5.2854,-6.5859,-20.1745,-32.6953,38.215166700000005,-55.323,-14.598,-16.125999999999998,-15.5674,-15.0455,32.0864,36.685,-41.8341,64.681,-15.0604,-15.0246,-14.8901,-26.6424,-21.3869,-26.708,-26.6478,-26.7652,18.7529,64.5442,-0.2422,-0.1835,-0.2002,64.5728,-6.308,36.0873,13.7641,50.5415,-0.7667,27.9401,-56.0228,-5.3952,-23.8009,-9.4618,61.9449,12.5193,-19.1319,64.5075,1.6025,-17.8303,-6.0706,52.3188,40.1565,11.3267,17.418,-49.7979,15.4121,64.5298,23.3834,23.8441,30.3137,-32.1082,-32.0953,-32.6135,-31.9909,-32.1648,41.0272,16.025,57.282,-46.2066,12.5262,-34.8164,64.4814,32.5273,31.7863,-3.3258,-61.9473,0.6623,-63.4595,27.4158,-10.5571,9.7575,-15.2954,-6.9881,-31.9202,-31.852,-19.6903,-61.2203,4.6657,-41.7317,4.78,-5.9873,-22.773000000000003,-21.631,-30.0426,1.1343,-15.2155,-18.4981,1.8929,1.6728,-0.1448,1.7859,-37.6478,-9.5484,-36.0008,-46.3484,7.484,1.8693,37.3226,23.5081,20.6545,2.2999,30.3398,36.6408,45.8977,-5.9626,30.1884,1.9604,1.8122,5.7314,2.3835,-48.8526,6.1572,-2.9324,23.3363,23.3577,7.9824,-6.11,-6.5108,-6.4606,13.7465,13.6717,7.9401,50.3161,1.5378,25.5403,-56.7511,-18.9043,-3.8295,-56.6279,16.1951,37.4017,2.0892,-54.1054,-56.3004,-56.3945,6.5189,-17.9261,8.6341,-56.659,-20.3263,-4.4378,13.7483,6.5739,-43.0546,55.2049,5.9045,-61.6118,-5.655,-21.6328,14.7709,15.4767,-5.587000000000001,-22.237,-5.7726,51.9238,-35.4555,4.6079,14.9801,-5.6549,-17.0309,-54.6751,1.3368,-20.9665,40.3178333,-19.2852,-21.2452,15.241,-12.3801,-21.2735,-49.3181,-1.539,-32.7183,52.2224,-25.7381,5.222,-2.4318,-23.5605,-23.1125,-65.5984,19.3552,52.6487,22.6374,-55.52,39.8558,40.1095,39.5696,8.3227,8.285,-10.7598,-53.4419,-16.4311,39.8244,39.8185,2.7299,18.6766,39.6546,6.0816,31.0659,-7.2968,16.9041,0.0241,13.4392,-59.56100000000001,-0.7789,-41.3157,50.5075,-6.5331,6.5308,6.7757,-22.2789,18.7532,-0.5409,-4.0737,-17.8236,1.6686,-36.1167,-4.7852,13.2251,-18.3534,23.7235,-1.2012,-22.2167,-18.2822,0.4002,1.6535,-4.7294,-5.2049,-15.4296,-15.392,-15.4994,-39.2859,-15.4261,-10.959,-4.915,-4.8946,-16.0213,-17.8607,-23.0158,-6.2934,-5.5476,-15.1676,-13.7935,2.1173,-15.1965,35.1891,-15.8815,24.2026,-5.6841,24.0851,24.0471,-12.039,-42.0602,51.6148,28.2305,27.6285,27.6857,28.2244,27.8822,28.3902,27.7711,-8.3237,-20.8865,17.1089,-60.3933,-5.375,-5.2005,-5.4912,31.5293,-5.6314,-5.5228,-5.5385,-44.5226,-61.4428,-5.4624,-5.3494,-5.4716,-5.5289,-15.3785,-7.2175,1.5404,-6.1204,14.8388,31.2373,27.8087,27.7141,27.625,38.9056,-2.542,27.5603,-12.0807,-41.5553,-7.148,-18.6153,-54.3312,-19.3021,-10.8759,-9.8042,-11.0559,-11.1093,-4.7846,-16.855,-19.3933,-59.653,-22.057,-0.3277,-58.7355,56.594,-47.3578,27.8386,-15.7216,30.7856,44.4584,44.4971,5.9867,-37.1708,41.5615,-56.032,39.6795,-22.4,39.672,39.608,-15.6758,-24.5961,-9.742,4.1537,-20.3944,-35.3639,-36.3601,-36.3656,-59.6293,-23.5295,-20.4307,-19.5686,27.7375,27.707,27.6475,61.6644,-32.0722,29.0402,-16.0251,36.6802,-5.4513,-52.2069,-10.9911,37.4593,11.4234,10.1691,-56.6001,-20.7139,43.9097,-35.4246,-35.4058,-13.329,-13.3864,-22.9379,13.2949,40.3631,-9.307,2.9918,33.0229,13.8769,13.8672,-18.1214,-10.4012,-35.5251,-0.6942,-8.2477,-9.2585,-18.024,52.376000000000005,52.7811,52.208,52.2572,52.3581,52.4977,52.2564,-2.6286,8.2309,59.8935,-25.3727,-27.0321,-56.9716,-16.4701,16.1408,-26.4576,-2.1412,-2.0913,1.0861,1.0467,-18.0441,-27.4539,-9.3438,-9.2998,-19.6389,36.5326,-27.0812,-27.0523,-31.6968,-9.3286,-9.3293,-37.0152,-36.8531,-3.9835,23.9689,-27.315,21.1039,-10.8968,51.6744,21.952,13.7124,0.4854,-8.0603,-29.7191,-30.6502,-57.4999,31.2841,31.1806,4.4132,2.0551,51.371,49.3613,-24.2427,-32.8199,-32.8265,-33.0304,14.337,-33.1147,-49.5321,52.0985,-5.9797,-32.6066,-6.1236,24.8094,24.913,1.8841,-6.0114,-31.5729,-31.618,-31.7502,-31.1055,-31.5743,-31.6,-31.5622,-31.1674,-30.7179,-31.7842,-31.7363,-31.1043,-30.9669,-31.4244,-31.2244,-31.5173,-31.4167,-31.8011,53.2985,-32.9149,-32.1432,-30.9102,-29.9614,-32.2292,-32.3681,15.2767,-29.6411,-31.0999,-32.3335,-30.5256,-31.5757,-31.7275,-31.0458,-31.7819,-31.4441,50.7832,-0.6212,-10.1917,-30.8148,5.2649,-6.278,-57.0947,-7.1772,-23.8028,-56.1948,-37.4557,-30.301,-30.3105,-30.3035,51.9487,-31.7323,-60.7167,-54.4856,-31.1849,-40.5837,48.8595,55.5962,-25.4674,-42.6607,-16.2018,13.8654,27.0743,-57.4332,-14.8595,29.6377,-54.2258,-45.8146,-2.1661,-30.2199,-29.3334,36.459,36.5244,-10.9788,-23.2468,22.7548,51.5815,-8.2825,-8.3381,-3.5489,-3.7259,-29.4642,-30.8796,-30.7227,16.4895,-17.3194,0.7863,6.8782,51.5002,51.5345,6.8431,6.984,6.4078,51.6394,6.2386,-29.5067,-29.5097,-9.1387,-8.9416,-7.2493,-29.8492,31.0009,31.4417,17.8398,48.3334,38.67,40.3762,-8.8994,26.3565,-7.1484,-30.5754,36.4344,16.9762,18.7787,-0.0981,-10.5372,-10.0598,1.4305,-9.1825,13.0906,-24.828000000000003,43.3856,-30.3688,-23.5597,-23.4779,-8.791,-14.8839,-47.6165,-18.1602,38.2107,-31.3985,41.7307,14.2197,-30.8096,-4.1064,-16.7374,-35.8838,-58.88,-41.1083,15.8015,-18.3819,-8.3684,-30.6053,3.6455,-4.4354,-54.1759,-55.755,-7.2182,-40.7281,36.4935,14.6571,-6.2452,11.1535,-50.5575,-28.6278,44.8069,24.8036,30.6132,-54.2906,22.0669,-30.664,-57.6576,3.8965,44.4761,-31.3385,36.5979,-15.1703,-19.7597,41.9723,-15.6408,-53.2602,9.6862,-3.8727,-21.4088,22.8626,37.6709,-30.8839,18.8239,-13.7207,59.6363,-19.5324,35.6493,3.2058,-5.2952,-5.3105,1.0248,53.9776,-3.1401,-2.8659,-63.263000000000005,-30.7539,25.5745,22.9375,-16.9899,-15.2216,-6.6207,-30.5723,-9.6338,-43.4798,30.2966,-20.9981,-49.0481,-16.4442,-55.7841,0.8597,-56.2549,-21.9559,4.6999,24.5533,-30.4242,-63.0433,-62.2092,-51.7897,5.2757,-32.9373,-4.9521,-4.794,-9.7645,-3.3298,-3.0988,-32.9625,-15.1081,51.4497,51.5648,29.8888,-56.4283,-52.6136,4.725,-4.5473,-12.5112,38.0233,49.673,51.5145,-5.5662,11.8676,17.996,54.294,27.7676,-2.6503,52.175,30.2073,52.29,-56.2536,2.3874,33.3807,-3.3585,57.008,-14.3235,4.2073,-14.1516,-14.0683,-14.2026,-8.2036,-6.0292,-13.9805,-4.1489,16.0557,36.4725,51.1243,51.8545,-3.7568,-55.2497,23.0944,7.7917,53.77,-14.4907,32.788000000000004,32.6973,-14.5284,-7.459,2.0125,13.4008,32.7906,32.9241,33.0051,-29.5755,0.3819,-0.2648,-0.3852,-23.4947,-0.2344,33.0143,-19.492,-55.7283,0.5783,0.639,0.7079,13.2,37.8013,-0.2921,-0.2814,0.6128,-59.3074,-17.6976,14.479,-4.5105,14.5178,24.2309,-16.0429,10.2752,-16.3487,-5.0262,-6.0785,43.6954,-55.7642,-14.855,13.7719,-8.9416,18.3754,16.4107,-62.5795,24.6953,24.6833,30.659,-25.4822,8.5599,-22.517,8.5038,0.4261,0.4947,-25.5655,30.9561,26.9924,27.6887,-20.8101,-21.9724,-56.2409,-30.2689,25.5615,47.5484,55.3979,-30.2228,-2.0967,18.0217,-29.3424,-4.587,-17.6471,-30.0235,-30.0433,-45.1528,18.3637,18.5036,1.2789,-4.061,-11.2487,12.8318,-8.6757,-7.4584,-16.4825,-4.4284,27.0107,-18.7609,26.9601,-62.3661,-20.5822,-11.6148,-24.1467,-20.2793,20.1726,-20.2072,22.6582,-3.4199,-60.6729,23.694000000000003,-25.7705,53.9019,39.4793,36.9968,16.5502,39.4745,-14.6436,-16.0558,-10.6273,-56.7696,-0.4071,-35.8108,-15.0284,-15.083,-14.6192,0.5874,0.5812,-6.4391,-28.0101,-28.0052,-28.109,-27.9244,-28.176,35.2083,-30.2523,-18.9285,47.6981,-6.7596,14.8899,58.4734,-15.1308,0.915,-49.4848,-49.4245,-26.1067,-2.969,-0.2711,-16.035999999999998,-44.4113,18.5429,18.7561,-6.9459,-56.2564,-8.1935,-23.9646,-58.7496,-22.3343,24.9447,-23.9235,-22.4765,-25.1758,-27.348000000000003,50.4696,51.5437,-15.6542,37.4115,-19.8352,-55.9035,-55.7274,-55.2852,-55.335,-55.215,-55.201,-22.9455,40.3942,40.3135,-55.3133,29.8814,-7.2872,-7.2131,42.723,42.8413,20.9228,-2.9097,30.6141,-2.7862,-0.0456,-3.6849,-37.132,-37.3586,-37.4395,-37.2263,-37.0174,-37.0522,-37.0274,-37.2309,0.5533,-37.3176,-55.3295,-19.5002,40.3208333,36.4251,20.2816,8.3989,-37.127,54.4153,-10.8889,-54.6136,-31.3775,-5.573,-1.0355,-28.7552,7.3736,-9.329,12.44,-29.1551,-2.0829,-4.4346,-16.0566,-2.0354,30.5017,-59.4722,-21.5525,34.4619,6.5717,45.7275,-32.6081,-1.9534,-1.8499,-18.1706,-19.7819,-32.3987,27.4646,12.4417,-35.6012,-23.6806,27.8519,7.1427,22.6258,-4.0427,-36.0277,-37.1241,1.7703,-15.372,-5.4151,-35.4987,-4.2735,39.8063,-6.0033,32.8959,-23.3265,15.223,-4.8626,13.3118,22.2432,35.3743,44.0505,18.9017,-35.9934,-15.3889,-15.4371,42.858,42.9564,-1.5056,1.3702,53.5855,-33.7771,-4.6721,39.3881,42.8621,3.4466,-6.1039,-35.0945,-8.11,-58.1134,-36.5776,-4.7403,-50.0472,-20.4275,38.4973,-24.966,6.1142,-42.7358,-42.4063,-42.2132,-42.3205,-42.0511,-41.6877,-42.1762,-42.3093,-28.8598,-42.3743,-42.6058,51.0735,-42.3335,-41.7598,-41.7875,-20.2391,-9.0027,-6.2582,-28.1398,-31.6259,-53.7502,37.3931,-40.602,-42.9298,27.1773,37.2143,11.9065,55.2049,54.4632,39.2732,43.3828,-41.8291,-6.9865,-35.2021,-15.3122,52.2532,-22.6371,4.5051,-7.3158,11.0316,5.2834,43.8229,40.4535,-10.6787,-10.2234,-10.8691,-10.8416,-10.749,-11.0704,-10.9719,-10.9552,-10.3938,-10.3301,-10.8829,-5.6593,-9.1237,-10.964,21.2897,21.3697,14.0882,-4.5049,-4.4244,-5.6497,-10.2137,-34.9886,-6.3046,8.3489,-10.1904,-9.964,-10.1773,37.1442,-10.1785,-10.1549,-7.5082,21.5036,-5.2453,-5.146,-43.4029,-43.481,45.7192,38.3754,38.3917,38.3777,36.9179,-9.0283,37.3973],&quot;lon&quot;:[145.616,127.352,-173.972,-23.557,126.427,166.62900000000002,87.867,166.21200000000002,-27.043000000000003,178.487,108.988,125.952,161.703,-177.864,73.251,139.741,178.715,175.055,172.007,175.74599999999998,177.84799999999998,173.975,173.058,172.588,174.368,173.96900000000002,179.605,171.97400000000002,174.696,171.09099999999998,170.87400000000002,175.045,-44.922,174.206,174.84099999999998,174.321,173.84,174.56599999999997,176.558,-162.00799999999998,175.505,172.918,175.213,174.116,-161.859,176.46900000000002,173.393,175.41099999999997,179.092,165.426,169.386,171.90400000000002,172.752,179.325,125.951,142.095,176.446,143.08100000000002,94.186,126.715,179.358,-172.889,-70.679,151.98,173.072,-72.971,-112.208,152.115,121.218,152.055,121.148,173.91099999999997,-92.623,28.226,-177.262,151.819,171.308,146.993,179.511,174.937,-63.214,174.239,-132.923,121.461,-177.968,23.86,-162.33100000000002,70.72399999999999,121.117,143.032,171.821,-175.89,-26.758000000000003,119.836,126.623,-173.25400000000002,-71.57300000000001,-173.19400000000002,126.553,161.904,-71.233,142.915,-173.701,177.959,22.405,125.896,-98.067,175.172,-176.046,22.067,150.871,139.968,120.039,173.437,-178.207,24.318,-173.62099999999998,-178.646,170.37599999999998,174.205,178.628,138.702,122.897,-160.375,-127.416,-26.454,-26.372,138.332,140.231,142.776,126.568,-162.59,120.798,129.504,23.425,-85.075,-122.406,110.332,-146.17600000000002,128.769,-70.569,-89.07,-67.92699999999999,79.414,137.924,130.358,134.946,125.467,121.248,159.083,105.311,152.436,167.34,126.239,-178.537,175.11900000000003,124.604,178.882,-27.875,128.578,-179.917,-46.712,126.552,174.015,149.02200000000002,148.69899999999998,149.255,149.539,149.032,149.87,149.44799999999998,149.351,149.339,-68.944,143.727,29.378,45.55,177.442,173.574,87.78399999999999,149.218,-126.652,55.891000000000005,123.613,-152.94799999999998,126.25,4.965,-141.418,121.56,153.06,126.53,176.53,-163.707,-167.739,101.496,172.93900000000002,22.545,152.467,155.062,105.505,-68.25,123.811,159.888,124.247,170.365,99.276,146.68200000000002,175.894,101.767,-171.28900000000002,-171.607,-171.46599999999998,-72.907,-178.803,157.922,-81.179,151.701,166.98,167.21599999999998,167.097,167.26,167.092,167.399,152.116,167.392,167.43900000000002,166.96,166.96,167.607,167.602,148.543,166.794,166.332,-19.951,95.836,166.67,166.99900000000002,128.493,-68.82,-176.19400000000002,103.993,26.206,-95.867,-96.235,149.06,167.454,104.667,179.922,175.451,153.387,-152.525,-152.263,-84.40799999999999,152.955,151.651,70.726,165.731,-97.6,126.895,126.522,-77.476,141.533,141.53,141.361,126.874,128.227,99.326,151.631,141.46,145.167,143.357,-38.244,175.5,-177.99900000000002,-144.06,178.166,174.48,-24.551,156.417,-75.225,114.485,-25.091,-153.615,128.558,156.287,127.725,174.25400000000002,-165.403,125.787,156.116,145.389,127.735,-71.139,-113.788,143.789,-113.928,140.23,87.84299999999999,-68.166,141.22899999999998,-18.645,126.903,-41.479,125.319,129.347,-177.72099999999998,160.579,129.12,130.40200000000002,-176.092,-179.71599999999998,124.831,-179.7,111.103,141.079,159.797,-72.958,27.318,103.103,-170.604,173.14,-107.176,146.298,177.558,-100.126,-178.062,166.143,149.939,150.195,-141.439,-81.913,160.356,-153.303,-140.766,-178.979,151.583,141.99200000000002,-164.476,-71.111,95.42,120.141,137.244,172.048,172.058,138.151,-153.942,69.60600000000001,-26.465,168.55900000000003,157.119,-64.413,123.555,119.973,121.966,167.91400000000002,21.777,103.187,155.506,69.76100000000001,70.041,-25.965,116.376,142.001,146.16299999999998,132.642,103.222,168.021,78.866,78.999,123.842,-27.079,125.744,151.592,-172.843,173.46200000000002,139.738,130.344,-70.328,154.425,178.06099999999998,80.487,80.554,114.875,166.555,126.334,126.337,-68.842,122.583,-179.093,19.709,29.863000000000003,-174.429,115.039,115.061,122.938,166.829,115.275,115.096,-83.46700000000001,142.248,115.127,141.121,92.483,96.003,-154.60399999999998,127.507,157.703,-84.28200000000001,166.72400000000002,-71.04899999999999,-102.557,-72.695,-73.19800000000001,-153.601,147.221,48.238,142.171,142.037,-73.428,-152.483,122.191,122.235,-74.142,149.735,114.967,122.595,26.455,156.275,156.28799999999998,156.13299999999998,138.983,-178.291,129.352,-75.47800000000001,-109.085,-164.122,146.481,122.147,139.99200000000002,146.41,131.04399999999998,169.81400000000002,160.124,122.631,-174.657,175.957,123.13,152.735,167.83900000000003,71.22399999999999,126.505,-75.835,122.66,139.593,147.766,-178.35,174.342,167.132,161.006,161.149,160.937,160.85,165.171,157.767,124.583,140.19,80.845,80.915,80.935,177.139,166.644,122.414,176.296,179.778,-179.88,125.186,-173.25400000000002,37.272,164.75400000000002,-173.47799999999998,-178.55,-173.67700000000002,-70.082,68.778,68.681,68.58800000000001,162.767,-171.301,161.237,-113.77733329999998,-108.27,-175.22799999999998,-175.808,-161.63,78.961,121.467,64.014,70.903,-114.157,171.484,125.119,175.053,-91.84,125.071,125.026,41.572,-77.166,140.708,41.094,-175.678,126.645,134.06,170.74200000000002,123.228,-177.185,170.04,178.575,-147.781,128.49,150.549,-72.976,170.75,-120.252,-27.199,-26.922,121.507,54.227,-100.985,92.576,100.103,170.59599999999998,-150.126,-177.27900000000002,-26.485,121.601,-177.747,142.66899999999998,-27.62,-78.22800000000001,-15.611,167.58,145.97799999999998,21.242,-67.878,-175.109,-68.301,-169.158,-67.863,144.389,167.25799999999998,-61.885,146.857,-25.518,167.051,-70.497,-82.74600000000001,167.045,128.174,151.655,-91.963,145.703,144.05,94.322,80.82300000000001,-63.152,-116.40833329999998,169.834,148.256,141.202,-70.55,-111.783,166.55200000000002,166.491,-173.608,165.416,28.424,166.22099999999998,165.668,165.53599999999997,166.47299999999998,120.114,-62.33,103.036,103.021,103.013,143.482,126.477,112.803,142.866,120.033,45.738,161.406,165.623,-63.20399999999999,142.15200000000002,120.947,-168.50099999999998,166.49400000000003,103.064,-114.881,-109.129,142.2,-21.081,71.625,-169.60299999999998,-169.35299999999998,-169.468,96.115,-84.363,-25.663,110.478,-157.326,-74.798,-34.14,96.463,171.408,-71.274,-175.078,153.267,113.017,124.213,75.333,169.21599999999998,128.611,123.947,123.969,141.649,-78.595,121.823,-175.28599999999997,24.684,166.19799999999998,166.333,166.388,-95.801,-74.722,38.874,94.248,150.909,146.35399999999998,129.744,151.188,151.30100000000002,151.511,112.225,151.55100000000002,148.623,116.608,168.21400000000003,115.227,151.83,151.789,151.703,151.499,147.311,147.227,147.252,135.67700000000002,155.753,155.833,-167.459,96.286,96.483,-100.125,129.639,126.688,146.268,-178.261,138.694,21.267,-28.129,161.494,127.412,73.78699999999999,-68.821,-65.47,101.313,-27.608,176.105,77.714,143.72899999999998,-165.718,154.934,-151.453,-73.809,35.508,154.23,-73.315,-173.343,154.503,-26.956,-166.912,-167.155,-77.51899999999999,-147.798,-70.39399999999999,130.325,167.74,141.665,141.655,157.752,165.84400000000002,128.596,-158.08700000000002,93.637,142.67,-168.19,125.941,126.855,-82.73200000000001,132.73,134.69,-178.828,30.8,40.445,-73.032,-67.33,30.609,-76.73100000000001,130.54399999999998,150.317,-177.33,166.75599999999997,135.43,-0.731,152.439,93.639,98.876,127.685,125.881,166.65200000000002,-69.044,95.669,-24.301,-23.378,147.578,166.90200000000002,140.765,140.89600000000002,100.262,100.255,151.35299999999998,147.201,-79.67399999999999,-179.422,93.48,124.226,140.953,-63.23,-136.196,172.489,140.738,91.91,-176.222,146.6,145.297,-23.802,164.009,163.812,169.93200000000002,149.487,-70.532,-71.446,153.465,-147.157,129.95,-85.964,153.959,156.309,148.843,154.05700000000002,-179.18599999999998,142.687,-179.146,152.592,129.828,-85.87200000000001,127.493,121.886,2.8510000000000004,-179.34,122.218,122.275,135.649,-178.856,141.846,144.316,144.261,-77.631,-172.636,-85.789,133.93200000000002,178.524,123.752,71.342,-171.847,147.112,-71.369,-43.765,141.27200000000002,171.04,8.011000000000001,170.92,52.099,-0.794,130.138,112.981,-71.396,130.844,20.532,154.435,167.312,164.226,-124.656,73.885,152.727,168.65599999999998,157.619,143.799,-69.939,151.83100000000002,-61.232,-61.31,153.74200000000002,-70.29899999999999,-68.311,-174.673,154.844,153.421,-171.468,148.835,-70.873,153.961,141.938,122.161,-67.006,127.871,-171.445,-171.418,13.033,158.542,-75.278,178.13099999999997,-179.547,-14.249,120.265,70.45100000000001,146.741,147.259,147.701,113.373,146.986,152.761,-99.533,147.283,124.145,-70.999,152.189,153.368,131.26,153.269,24.957,-47.01,130.71200000000002,128.531,-177.479,141.65,121.368,140.638,140.757,137.82,71.374,122.452,126.415,126.196,151.013,154.093,-177.21200000000002,179.575,-173.889,128.18200000000002,-69.119,145.77,116.161,126.317,154.053,133.149,132.269,132.136,176.55,-116.103,141.763,-16.088,-172.705,143.286,-150.086,-172.91,-116.4556667,-103.528,174.533,-69.641,129.915,124.636,-73.002,157.724,-128.135,-81.835,147.107,129.445,26.113000000000003,-179.035,143.435,143.5,143.204,142.815,142.864,143.745,142.19799999999998,142.614,141.471,142.717,143.233,143.516,144.192,143.366,-27.854,141.955,143.458,144.063,-178.11,154.903,-178.08700000000002,150.219,150.255,143.667,150.186,150.244,143.031,142.51,172.02,143.178,118.853,171.99900000000002,143.29,-177.63,139.35299999999998,172.763,150.259,-177.39700000000002,142.39700000000002,158.673,148.584,120.094,120.462,157.558,147.096,31.122,-161.493,143.07,132.909,142.955,143.187,143.097,142.99200000000002,153.351,126.514,-82.54899999999999,159.325,8.766,143.259,166.567,143.918,-77.086,-75.583,-77.184,-77.258,143.767,143.58700000000002,142.89700000000002,171.315,139.34799999999998,-100.273,-177.69,138.891,142.153,133.887,78.413,143.472,143.238,143.27700000000002,125.008,93.626,150.6,1.5,169.011,143.505,-178.217,146.861,176.024,166.565,-174.86,133.409,-80.544,-177.09,122.067,60.979,-97.739,128.49,122.23,126.777,132.192,144.844,141.58700000000002,126.234,126.478,126.182,126.297,-73.92399999999999,-179.955,126.483,126.477,167.662,122.492,-103.232,119.802,166.188,143.57399999999998,-98.03,126.268,159.914,126.1,147.082,-178.766,171.15,-63.554,143.43,143.393,-174.984,178.16099999999997,144.545,176.486,122.058,59.083,58.178,32.463,-62.28,131.907,-25.712,143.07399999999998,-74.434,-75.175,-179.26,53.207,143.338,148.75799999999998,148.843,-175.415,167.30599999999998,-62.748000000000005,142.67600000000002,-66.952,166.562,-92.536,-178.459,-176.812,-177.91400000000002,129.083,143.47299999999998,-76.279,128.493,-27.225,-175.174,140.635,142.759,87.677,-66.582,148.631,-178.69799999999998,117.071,100.575,129.575,122.439,144.299,143.286,143.49200000000002,127.031,156.078,140.984,166.41,141.904,-150.072,126.23,-73.38600000000001,172.113,126.856,143.442,128.483,142.75,175.93200000000002,-72.58800000000001,128.862,-13.862,122.262,125.716,122.553,-175.69299999999998,142.468,126.847,-6.882999999999999,151.953,-94.802,156.118,23.877,26.989,-21.954,146.033,175.614,-80.485,169.428,130.418,125.884,-177.862,175.638,175.767,175.729,-153.058,-177.609,70.085,160.07,-116.4736667,101.772,-153.996,-151.445,-179.392,-27.842,57.899,-179.30599999999998,129.821,158.888,164.479,143.41899999999998,130.667,158.999,29.221,-26.865,143.238,167.345,164.67,166.054,162.96200000000002,-179.498,126.005,162.688,137.85399999999998,-171.604,127.306,128.186,128.231,-174.90900000000002,126.46,128.255,128.371,128.102,127.374,121.631,-79.943,178.82,179.076,79.307,126.581,167.21900000000002,128.351,128.21,128.17600000000002,128.311,118.904,130.946,126.512,-10.613,-10.54,27.572,159.196,128.112,70.74600000000001,139.81,135.504,135.64,147.23,-86.81200000000001,126.589,-179.06799999999998,142.886,150.906,128.435,-114.315,127.217,127.324,143.882,-114.417,-176.013,28.493,28.714,128.299,127.609,28.546,41.208,41.341,56.977,33.895,134.555,173.537,-110.154,169.37,41.338,-85.024,26.631,131.227,30.286,139.85299999999998,131.132,80.775,129.789,143.64700000000002,113.079,151.019,166.976,166.773,143.616,132.69899999999998,-91.058,131.938,-113.955,143.35,58.403,-82.111,-71.569,-71.249,119.99,-25.793000000000003,-177.50599999999997,158.92,-174.666,168.798,-86.27799999999999,140.736,120.792,-179.831,70.82600000000001,-61.24,158.725,125.876,-160.38,-178.696,-25.372,125.786,-76.763,-177.918,-177.984,-174.81900000000002,143.79399999999998,25.169,155.44,159.04399999999998,145.477,160.309,-167.919,129.969,-162.506,109.603,158.499,-179.972,-104.779,146.745,123.149,-178.118,166.68400000000003,147.116,131.523,147.287,126.65,153.32399999999998,143.737,158.845,119.572,-63.472,-72.303,124.813,166.543,141.66899999999998,-75.132,35.059,126.532,111.803,165.192,-145.401,132.423,167.378,-170.05200000000002,150.882,150.942,153.016,123.212,151.626,125.331,126.181,153.708,154.109,70.891,-15.654000000000002,129.569,147.987,147.673,147.385,148.41299999999998,147.731,147.804,126.371,147.707,147.692,148.187,148.424,148.186,147.713,147.672,148.724,126.323,148.187,146.821,147.9,147.482,147.85299999999998,148.24200000000002,152.071,147.64700000000002,147.885,143.05,148.292,147.55,147.648,141.566,-109.188,-109.424,-123.21,-109.117,-109.222,148.5,148.109,153.68,147.19,148.139,148.011,151.194,-173.165,147.769,143.83,-177.59,147.757,147.84799999999998,146.79399999999998,147.78,-66.57300000000001,140.33,153.629,147.45600000000002,121.656,147.485,-12.002,157.882,157.963,157.762,137.063,128.525,-179.222,-179.142,147.648,74.952,74.781,175.366,151.738,127.327,-116.46066670000002,131.458,131.207,125.36,-32.168,141.97299999999998,-101.067,95.795,-32.684,-106.929,-45.74100000000001,147.207,-55.595,128.747,147.77200000000002,19.386,-177.82299999999998,-75.051,-74.942,-75.031,-84.98200000000001,-19.785,-177.933,120.018,20.593000000000004,169.423,94.636,173.41299999999998,-95.198,-179.19299999999998,152.593,-71.411,-121.492,-168.696,147.91899999999998,-173.704,17.339000000000002,23.581,17.253,151.004,-178.975,-107.988,-121.428,-178.77900000000002,60.043,167.58599999999998,151.541,-168.327,-71.794,-153.565,94.489,163.554,71.665,-153.864,167.834,-28.582,-60.698,126.286,144.715,127.282,166.98,-28.097,126.408,126.827,58.377,142.423,130.655,163.178,-59.694,-59.783,-59.854,-160.395,-59.65,147.809,-59.753,129.075,-177.169,102.543,102.732,151.493,-59.808,178.782,117.235,126.682,126.863,126.765,126.857,123.233,-152.734,146.713,-177.21900000000002,154.344,143.05,-104.189,177.215,154.878,166.488,165.955,-72.1,-178.766,167.34,147.667,147.489,147.763,147.929,-99.576,102.302,154.2,154.204,121.952,163.189,121.924,100.771,154.092,153.782,130.638,112.997,-75.633,122.999,125.912,170.363,-176.668,124.062,54.54,103.203,-143.636,122.253,120.466,147.52100000000002,147.547,-179.78799999999998,119.726,-174.915,56.316,143.847,-178.53799999999998,126.891,126.612,143.546,168.672,148.909,122.247,116.567,-154.058,-69.39699999999999,168.386,173.58,125.339,142.874,140.312,129.496,126.691,-116.5341667,119.364,154.667,29.57,168.634,126.451,-80.2,69.61,141.944,-173.861,-173.859,121.63,121.852,121.811,22.682,166.821,121.723,149.24,-92.371,-177.91099999999997,-142.594,-173.545,122.064,122.063,122.443,-174.31099999999998,19.486,122.624,141.629,-142.683,-152.78,147.232,-142.80700000000002,29.753,29.747,169.31799999999998,119.065,119.922,28.808000000000003,171.366,156.373,156.511,146.616,-92.847,-92.653,-124.27,-93.413,-93.254,-93.373,-93.393,121.695,-93.312,-93.689,125.34,79.876,151.83700000000002,145.303,145.239,47.131,47.14,-92.83,91.118,152.296,-28.148000000000003,-178.606,-26.041,140.23,143.043,143.11700000000002,143.095,147.061,-173.42700000000002,166.41099999999997,124.592,-78.737,-78.352,-78.61399999999999,-79.092,-78.616,-78.748,-82.62700000000001,-78.77199999999999,-78.536,78.691,146.14700000000002,159.499,-172.872,149.53,-68.413,158.90200000000002,-152.225,139.129,-74.07,-64.499,-82.682,-71.72399999999999,160.668,-70.27600000000001,-45.907,-156.639,147.55100000000002,-131.325,-131.055,158.804,-78.634,126.215,124.0,160.309,-179.392,-79.148,126.439,-78.543,139.266,126.84,-64.638,148.399,148.421,120.357,125.387,-173.459,-174.64700000000002,-178.50799999999998,152.156,-173.514,131.782,131.873,177.546,77.679,95.34,55.885,51.995,-72.532,-173.82299999999998,158.7,97.867,-79.09,-178.109,126.177,166.67700000000002,-13.887,166.657,-25.255,166.65099999999998,166.72099999999998,-86.63,-86.68299999999999,117.933,123.113,-145.537,161.549,-142.65,120.486,-173.298,-95.758,153.137,-179.615,135.347,159.409,151.613,147.629,167.87400000000002,151.52100000000002,-114.136,142.321,-72.294,127.256,144.537,-71.908,154.61,154.697,162.738,-77.488,-77.476,-77.438,-27.421,158.82,166.602,122.003,155.007,-176.753,130.481,160.351,147.511,86.146,-177.896,-178.011,-177.898,143.091,148.115,147.93200000000002,147.11,140.718,8.693999999999999,-97.337,-97.292,66.374,93.926,2.675,80.434,145.39600000000002,-26.54,-151.024,120.792,-82.609,120.837,126.421,135.54399999999998,56.714,-178.149,145.077,-69.957,123.863,143.227,121.349,148.591,126.814,-35.796,175.408,-112.701,142.61,146.997,128.322,120.047,146.034,152.556,134.16899999999998,-128.03799999999998,122.426,126.791,-69.797,-69.86,142.904,-13.97,152.619,163.362,-175.34799999999998,-172.933,-175.389,163.377,-76.025,126.749,-69.988,129.995,130.077,143.74200000000002,140.175,-71.146,-99.531,-80.542,-169.57,-80.987,127.276,-80.797,-177.794,-80.907,167.38299999999998,-77.501,-27.564,123.547,99.885,116.393,143.02700000000002,116.46,-93.625,-19.24,153.52,161.395,-81.02,99.069,141.183,-2.668,-111.835,137.151,141.231,-173.241,154.247,139.722,139.674,139.757,139.784,140.095,139.89,139.594,139.993,139.834,138.284,139.993,139.575,139.737,-27.657,125.843,142.75,125.855,-108.692,-79.18,147.605,-69.226,122.684,151.421,-177.84599999999998,-174.979,126.416,151.009,-173.044,-175.433,147.046,98.711,-131.13299999999998,-115.51,126.828,154.145,-176.97400000000002,-177.08599999999998,-176.975,-61.377,-118.37,-118.37,-118.37,146.457,121.187,146.248,55.762,178.405,122.238,-73.27600000000001,-67.15100000000001,27.379,126.715,138.374,95.86,161.423,153.10399999999998,138.498,173.655,145.393,-130.358,143.881,167.632,163.705,127.216,139.84,-95.288,126.753,-13.648,142.109,-176.14700000000002,-6.978,79.325,79.243,151.558,98.137,142.257,-141.059,-174.47299999999998,95.112,124.538,-177.41,125.646,125.657,125.597,95.042,-122.622,142.239,124.735,-170.528,145.095,-179.525,179.27900000000002,129.106,-69.016,102.285,139.019,-178.68,55.737,-173.785,-178.674,-112.528,154.744,-91.659,-68.949,126.517,-175.988,101.101,120.679,122.3,171.68599999999998,-177.31799999999998,84.443,161.882,105.407,119.69,-71.793,-104.833,-105.148,-105.284,71.16,126.908,121.097,29.784,29.678,29.696,142.034,-77.66,178.899,-68.778,145.965,129.07399999999998,-173.313,-173.088,40.653,92.1,29.778,131.407,-179.03599999999997,58.307,131.445,-91.383,131.41299999999998,96.389,1.21,96.505,92.497,126.068,-84.245,-76.006,-170.58599999999998,138.549,-80.715,-69.825,175.868,140.986,123.727,79.447,79.408,-68.938,123.736,96.852,178.55599999999998,-68.688,130.159,123.899,111.361,-179.73,-68.899,121.767,129.653,-71.07600000000001,154.39,154.578,-71.778,173.19099999999997,153.85,153.545,153.885,154.153,153.233,153.188,153.232,129.189,178.581,94.66,93.127,-68.318,153.28799999999998,153.868,144.50799999999998,150.562,122.411,120.169,177.438,153.884,154.174,138.976,123.691,129.901,172.953,153.172,77.223,152.235,152.282,152.80200000000002,152.226,151.493,151.936,151.572,151.41,151.499,153.072,151.359,152.256,-77.322,151.60399999999998,95.874,151.498,152.88,151.069,152.864,152.55200000000002,173.257,127.146,152.966,151.50799999999998,-71.619,152.532,143.416,126.489,143.47299999999998,70.808,-22.082,167.16400000000002,52.841,154.282,152.174,152.113,153.499,126.154,155.55,95.084,-106.066,154.114,167.21599999999998,-178.37599999999998,-178.28900000000002,-67.227,103.693,103.734,103.595,-173.264,121.913,155.441,-92.404,-70.51899999999999,145.924,150.90200000000002,91.47,-26.159,-174.584,130.765,127.377,166.233,-175.082,-163.325,141.19899999999998,141.22899999999998,141.164,141.524,141.44899999999998,141.565,141.18,141.07,130.71,150.72799999999998,-174.265,-177.16099999999997,-69.60600000000001,156.061,100.764,151.519,143.525,130.60299999999998,138.748,-93.829,-164.778,143.37,-73.61399999999999,146.636,-73.07600000000001,-27.393,125.822,124.822,145.452,141.144,148.32399999999998,157.44899999999998,-70.007,-110.834,-4.956,140.259,152.906,154.964,171.68,154.136,144.293,-178.21099999999998,143.912,121.987,-91.004,-179.52200000000002,-68.332,2.317,-73.392,154.403,127.154,171.28400000000002,-166.845,121.388,125.24,146.364,142.531,-25.523000000000003,142.405,142.422,166.393,142.632,120.134,167.24599999999998,166.392,153.887,166.429,154.968,137.825,121.404,92.987,100.126,-105.609,54.519,126.433,136.511,66.639,-179.857,-129.651,166.55700000000002,166.56799999999998,174.231,123.995,152.641,159.19899999999998,130.293,-69.428,-77.715,153.314,154.597,126.59,-129.85299999999998,5.837000000000001,127.991,-54.437,-128.817,-70.37100000000001,56.441,173.42,127.32,154.577,163.269,163.664,163.453,163.657,163.045,162.83,-174.989,154.889,-175.727,94.708,151.804,123.288,174.903,-98.335,178.905,122.067,125.012,151.819,138.951,-173.206,120.28,120.308,-28.876,-71.847,75.014,147.0,-174.605,78.92,161.506,144.966,144.905,70.83,-71.902,-91.128,172.94,166.407,166.40599999999998,-177.183,122.269,121.974,102.535,-178.892,169.22,120.063,160.165,151.803,-68.845,141.89600000000002,-83.99600000000001,122.067,-73.917,-173.252,-26.999,-28.534,166.33900000000003,-71.212,166.261,151.856,162.917,149.084,-113.68,-158.33700000000002,-172.68099999999998,-158.214,-25.668000000000003,97.207,140.929,141.092,-173.662,-125.444,-70.094,141.054,-179.329,148.88299999999998,-178.169,131.384,141.105,29.517,176.679,-179.52900000000002,141.42700000000002,141.975,-76.726,-179.233,-176.209,153.582,-174.27900000000002,-172.72299999999998,-157.254,123.643,153.08700000000002,-174.378,150.166,146.00799999999998,-178.48,-179.828,179.665,-71.438,-29.108,164.032,-173.02900000000002,-172.767,166.21400000000003,-35.118,125.544,-26.72,-38.911,-126.542,84.609,52.765,-28.28,-174.72799999999998,122.543,-166.919,-173.463,104.103,-111.174,-179.243,121.539,121.59,120.275,173.06,120.634,122.425,154.191,155.05,120.422,124.622,-100.228,141.217,113.625,167.53799999999998,23.55,121.382,152.618,153.841,-134.352,138.306,-176.118,-178.74400000000003,150.246,122.28,144.678,-178.88,121.624,-178.452,-71.736,122.874,-179.991,-69.686,120.036,-73.92,122.189,-175.06599999999997,171.351,120.297,156.385,116.987,96.755,-178.26,-39.776,128.22899999999998,126.684,120.207,-66.13,-71.699,-173.921,124.221,147.07399999999998,167.048,-78.195,46.184,-166.87,-177.282,143.224,131.882,69.681,127.57,156.162,33.815,-178.393,50.889,145.112,125.865,142.15,122.536,-127.517,126.21,71.433,-97.063,153.099,-178.676,-179.985,100.89,-175.97299999999998,91.444,-129.51,-176.28099999999998,123.445,156.123,152.276,152.32,-135.85299999999998,130.525,141.893,141.80100000000002,102.28,127.543,-177.50599999999997,163.27100000000002,-178.19,-178.183,-177.954,-135.529,155.928,162.001,161.945,162.181,61.278,162.139,162.173,-171.97400000000002,169.118,-174.37099999999998,-179.255,-82.706,-74.095,126.324,144.475,-135.60399999999998,152.93200000000002,152.691,126.939,140.039,147.053,152.986,-153.519,127.302,136.34799999999998,-179.27,-174.243,-175.067,144.934,96.562,136.762,95.479,167.399,130.5,151.18200000000002,73.416,73.347,73.387,166.31900000000002,-80.741,129.69,128.22,169.136,68.09100000000001,148.423,130.547,-10.375,-175.553,168.745,149.92,149.909,130.685,22.485,168.987,168.84099999999998,168.83700000000002,168.628,-96.327,128.225,161.363,20.307,73.4,119.634,-70.26,148.155,-173.667,96.091,-174.33,122.931,121.123,121.091,131.116,131.164,-68.208,-171.99599999999998,-174.476,123.809,-70.89699999999999,154.144,149.814,153.101,-68.708,73.372,121.647,127.431,-163.122,148.862,-178.412,-178.315,171.479,120.478,124.855,-29.738000000000003,-106.788,-150.968,147.135,-6.533,128.535,167.24900000000002,168.97,128.708,146.808,167.553,137.95,154.822,142.998,131.189,168.949,169.41,-69.108,169.12400000000002,144.548,112.212,122.185,146.66899999999998,-67.222,121.541,-178.984,169.47099999999998,121.562,147.43200000000002,144.407,73.176,-95.036,140.217,123.518,69.85300000000001,-88.601,-2.8310000000000004,145.963,121.657,173.43099999999998,167.252,-172.922,-2.633,-179.49200000000002,-174.90099999999998,121.495,126.162,126.556,126.213,126.64,126.626,127.492,127.202,126.967,127.106,140.827,141.056,136.657,136.656,136.627,139.084,67.351,139.08,128.51,99.637,127.134,99.637,127.188,127.292,-45.15,149.289,144.108,150.97299999999998,126.525,89.325,155.8,149.276,153.244,28.017,-179.62400000000002,99.678,148.846,-179.423,-28.344,-172.48,-86.223,167.793,159.39,-176.308,169.912,127.135,70.396,-28.205,-71.15100000000001,-16.211,117.427,-63.261,71.889,175.232,166.384,162.279,162.251,5.297000000000001,5.357,140.10299999999998,135.474,-175.00799999999998,149.993,68.571,-174.055,-104.967,166.49900000000002,122.224,123.931,169.02900000000002,-102.996,139.227,-66.195,-26.774,127.69,100.581,-27.844,100.286,96.288,-103.545,156.084,125.703,-178.50099999999998,121.55,160.93200000000002,126.746,-177.509,-173.322,78.232,148.613,-61.419,128.358,-17.203,-177.611,35.134,166.269,-149.81,-78.21,168.74,-37.881,99.68,156.584,156.936,124.393,157.295,156.278,-28.582,161.599,-179.635,-175.592,127.336,150.266,-173.524,142.012,156.744,126.491,157.10299999999998,154.209,165.27200000000002,152.154,126.643,126.552,126.396,169.359,122.787,103.235,126.58,159.213,173.773,-66.293,117.381,170.245,174.217,130.414,126.832,139.304,174.487,-109.878,123.957,-68.942,172.872,141.815,123.757,-31.282,43.035,-75.628,147.709,147.755,91.384,-13.394,-69.187,167.218,-177.044,152.29399999999998,119.303,127.54,157.44299999999998,-84.759,-178.825,-178.829,134.03,157.548,173.046,-75.813,-82.34299999999999,-78.14399999999999,179.33,140.745,-26.097,-155.1,-79.875,125.243,150.17600000000002,150.183,73.202,126.715,99.851,-176.955,101.24,152.059,152.077,148.22299999999998,175.866,140.101,82.195,140.671,151.82299999999998,150.316,-179.743,65.293,176.239,-163.76,-78.523,93.548,99.661,83.55,167.81400000000002,-116.346,159.398,-92.008,-91.899,167.736,161.362,161.594,150.989,169.69400000000002,173.90599999999998,169.665,120.385,120.53,161.495,-179.392,161.55100000000002,-177.41099999999997,-125.774,145.785,146.409,145.569,146.446,145.375,146.657,146.48,146.33700000000002,146.041,146.38299999999998,145.969,146.035,137.334,-176.761,146.339,-174.263,147.33,-176.9,146.442,146.79,146.815,146.57399999999998,143.14,121.153,125.99,147.11,146.56,146.739,166.685,143.107,145.80100000000002,-137.33,-101.833,125.433,125.33,-138.02100000000002,22.692,147.849,124.699,-71.142,168.821,-72.982,92.583,-71.04,153.764,-71.225,86.48100000000001,86.602,117.107,-100.679,-69.196,-178.27700000000002,168.21,136.35,140.951,-179.22,78.85300000000001,-71.601,160.725,140.04,106.932,-173.09,121.475,148.849,-71.312,-72.128,-73.37899999999999,-71.514,160.991,167.274,-70.999,126.72,-70.222,-173.11,-70.87899999999999,-136.55,-70.896,-70.919,-24.983,125.258,146.433,147.417,104.015,144.042,-70.82,101.11,86.87700000000001,-176.644,-176.62599999999998,121.389,26.477,139.306,-179.208,-154.101,151.491,142.126,156.035,138.423,129.532,168.102,-96.598,-18.027,165.741,179.449,-72.832,84.307,139.55200000000002,143.111,-146.828,151.504,151.105,86.749,-74.178,100.013,143.137,130.907,68.125,124.509,55.161,126.135,-78.03399999999999,-174.343,-76.138,-132.624,123.789,-102.003,-101.939,178.282,-44.669,-44.553,125.293,126.558,160.66899999999998,145.849,146.254,53.872,-12.098,50.722,130.871,136.4,140.447,140.561,115.36,-112.419,166.637,-71.916,-71.47800000000001,-71.877,-21.549,167.22799999999998,-29.514,71.16,-104.975,158.511,120.239,-63.656000000000006,54.177,-179.15099999999998,139.268,-176.351,-67.77,124.686,20.441,179.171,152.422,179.138,-175.40400000000002,-175.247,156.309,30.825,178.35299999999998,-80.971,156.356,52.887,154.459,142.15,-178.13299999999998,-15.791,139.528,69.833,-64.59899999999999,141.91,-70.85300000000001,151.447,135.451,135.378,-28.256,160.532,42.77,122.582,145.94799999999998,23.797,-28.275,168.895,-28.195,167.391,125.927,154.11,-74.48100000000001,146.935,146.865,-28.244,-168.735,-28.092,98.399,165.498,169.75099999999998,169.884,-27.809,146.382,79.01100000000001,-177.868,168.128,154.513,119.452,-176.484,126.709,-139.014,-174.922,140.826,179.96,166.601,166.47099999999998,166.87,166.472,166.77200000000002,166.49900000000002,166.71400000000003,166.896,166.505,-68.335,168.735,-173.084,166.639,-178.503,-68.39699999999999,124.383,166.347,77.645,-76.352,167.235,-91.524,-65.704,46.18,166.863,166.625,166.58900000000003,147.121,127.145,154.955,161.155,-178.928,104.203,117.496,150.453,-20.237,166.955,162.142,143.91299999999998,145.493,-103.401,143.011,128.578,134.07399999999998,134.203,131.641,-168.74,155.894,155.575,-13.427,156.026,155.22899999999998,155.07399999999998,169.491,134.006,155.043,104.259,120.07,155.5,133.84799999999998,-164.672,134.016,170.10299999999998,104.108,120.458,122.74,98.97,92.346,92.357,146.694,122.116,-68.59,136.906,147.799,159.697,143.596,97.669,169.824,176.851,177.113,-84.064,140.599,169.71200000000002,-177.66400000000002,-86.38600000000001,128.97799999999998,131.625,156.179,156.19299999999998,-80.047,-58.838,153.2,150.946,154.66899999999998,166.765,98.555,-172.833,90.807,166.81400000000002,7.105,179.77900000000002,178.759,173.707,144.257,86.11,-175.33599999999998,-179.657,-153.922,139.083,155.28799999999998,-65.192,-160.44,-160.44299999999998,164.21599999999998,148.292,134.317,21.141,126.239,-93.672,178.505,-167.375,171.862,171.69099999999997,145.361,119.171,118.118,-68.86,117.849,-72.21300000000001,-175.912,145.178,172.611,121.49,167.907,141.707,-173.417,-177.342,-44.484,138.74,169.747,35.267,-102.109,104.015,126.381,147.274,-7.267,126.417,-69.046,155.5,70.91199999999999,102.645,27.533,153.63,156.113,-86.046,-75.077,125.555,106.837,153.259,167.752,-178.49900000000002,167.12400000000002,167.491,157.349,-146.016,78.844,-111.238,125.276,-175.101,158.592,149.08700000000002,66.541,-175.315,-82.579,-80.977,-63.382,-21.045,-37.598,178.791,103.954,56.875,-113.589,155.843,-27.451,-149.881,141.072,144.40200000000002,-131.616,-95.468,84.28,124.497,-98.2,139.2,152.505,168.287,168.673,-64.735,-10.674,-175.954,-176.11,94.034,-38.088,141.10399999999998,-77.688,-77.66199999999999,-77.717,-77.612,122.557,-173.592,-98.351,154.92600000000002,-173.56099999999998,169.27200000000002,-28.309,-177.80200000000002,153.099,128.882,153.33,125.671,153.055,153.092,153.326,70.763,127.591,170.635,-152.315,-152.105,-152.265,88.344,139.819,-175.16099999999997,-29.878,122.687,-74.279,-179.158,73.83,73.773,73.652,73.62899999999999,-179.405,-178.112,146.261,150.79399999999998,-178.145,75.899,-69.015,159.13299999999998,-71.002,-177.828,-73.431,174.972,127.505,-76.855,-168.273,142.292,73.833,-66.667,55.094,127.238,141.94,101.214,119.171,119.125,13.567,128.32,70.892,143.489,-60.629,108.356,167.96599999999998,153.934,-26.763,-177.80599999999998,121.937,-25.232,161.97299999999998,-65.547,155.944,107.234,144.954,146.059,128.998,168.14,-175.97799999999998,157.506,12.917,141.128,-71.418,85.49600000000001,146.651,141.115,-81.093,-77.795,66.543,-27.371,-62.0,150.119,143.129,143.112,102.827,-112.303,153.931,143.575,125.989,143.675,143.67700000000002,-178.00599999999997,-32.07,78.968,143.67,148.375,-128.776,123.848,154.785,154.721,-178.612,160.482,-26.17,154.034,143.725,-93.09,152.284,167.176,129.463,130.433,54.063,-174.05200000000002,141.78,-26.746,-77.786,105.342,-178.51,-178.11,-177.56,-70.623,121.129,148.284,-154.62,140.991,127.706,121.188,121.311,150.637,150.619,167.139,-28.345,-114.8,129.446,154.159,167.355,169.362,138.319,-66.67699999999999,-155.4,121.155,153.071,129.779,97.843,-74.453,-170.795,70.479,129.929,128.407,-112.122,143.425,-78.7,-175.232,-175.666,99.043,174.635,79.046,72.87,-69.994,-150.511,-91.824,-155.36,-149.738,129.923,151.563,142.903,159.44899999999998,-28.187,-28.106,130.336,101.776,-178.088,-171.142,130.007,129.99200000000002,129.85399999999998,101.709,112.298,-174.581,126.126,-173.76,78.43,78.521,141.188,96.139,-67.543,131.092,-77.773,119.352,173.446,173.497,146.93200000000002,129.951,122.58,-27.348000000000003,149.513,106.677,146.059,97.902,78.078,-100.482,-179.419,-179.06099999999998,124.075,-71.35600000000001,166.667,149.798,97.969,24.697,154.93200000000002,-69.271,148.235,-178.58,129.244,-81.971,130.026,126.145,168.86700000000002,-69.94800000000001,-27.166,56.26,-71.337,170.52599999999998,-93.385,122.37,26.168000000000003,26.106,122.583,138.225,-75.278,-77.015,86.571,122.802,152.549,68.601,-66.65899999999999,179.507,26.139,-18.185,-112.548,50.738,8.509,122.905,140.374,-175.112,132.128,-178.399,45.103,-69.755,160.185,160.045,-75.695,160.238,160.042,141.654,152.686,72.692,99.81,139.095,-163.248,-178.799,-72.709,125.384,-10.427,154.907,125.26,-124.596,-98.794,131.3,-98.91,78.984,158.031,79.915,80.016,175.799,30.772,140.4,142.07399999999998,92.924,-176.24200000000002,141.756,102.078,-179.31599999999997,-73.232,156.151,126.056,70.89399999999999,136.136,-173.985,80.801,118.922,-131.236,122.574,-173.767,-178.655,166.81400000000002,-150.119,155.599,-17.649,-17.588,122.621,-73.417,179.52700000000002,97.025,139.351,126.498,126.383,79.848,-76.141,-69.098,-179.15099999999998,153.553,126.556,78.089,175.81099999999998,147.734,147.84799999999998,147.851,147.405,147.284,125.382,147.709,-178.00400000000002,-70.683,147.894,-27.029,143.429,147.80100000000002,147.009,148.05200000000002,141.408,147.821,-25.367,167.188,142.116,147.153,147.389,147.265,-70.115,122.997,-107.142,-116.36866670000002,129.99,-110.605,-174.13299999999998,123.034,142.909,140.972,-113.346,94.7,142.219,126.642,-105.018,161.151,-69.354,167.24400000000003,-177.482,138.058,78.443,-177.487,-177.43400000000003,142.093,148.048,144.19299999999998,155.054,154.412,155.15200000000002,154.986,154.88,154.651,127.28,155.312,155.333,51.542,154.912,155.344,154.608,154.993,154.964,155.716,155.572,155.078,-179.775,120.448,-160.377,125.023,154.53799999999998,78.457,123.8,123.952,123.795,51.542,117.185,152.768,152.855,-121.54583329999998,-121.528,-161.485,-75.10600000000001,-39.269,139.263,146.04399999999998,139.743,168.032,-66.589,127.126,-77.751,137.715,147.696,141.007,167.845,-76.07600000000001,-179.044,-175.012,-94.129,-178.385,154.941,137.62,54.641000000000005,160.053,125.791,153.047,155.786,-69.16199999999999,-43.992,167.763,140.083,139.974,139.871,121.738,-179.88099999999997,40.723,78.624,166.328,-104.275,157.219,166.231,165.646,156.006,151.862,81.84899999999999,142.746,154.899,167.047,147.475,31.611,142.285,-173.99400000000003,-14.486,-109.259,127.922,154.92700000000002,124.698,156.141,-74.652,166.40599999999998,102.197,102.198,102.095,102.07,145.886,66.315,126.721,122.852,103.25,160.516,66.35,102.373,-82.515,127.087,166.49900000000002,101.934,167.516,-26.772,-26.495,-68.07300000000001,166.11700000000002,167.548,-175.11900000000003,-175.375,148.515,-175.435,129.016,119.087,128.726,-149.00799999999998,53.69,-177.43,55.078,121.75,121.646,-27.678,121.672,139.469,126.834,110.827,126.671,-70.508,-116.4115,78.975,-103.515,-78.107,142.668,173.75799999999998,126.132,125.993,125.995,-163.366,144.754,125.724,-177.858,-172.66099999999997,167.542,126.073,166.09799999999998,126.83,125.098,145.482,144.195,125.344,-102.185,125.91,129.916,125.869,125.754,166.676,154.475,179.08,161.30200000000002,102.406,-77.566,126.421,147.546,102.881,156.7,-25.304,-174.75799999999998,127.251,-25.339,-155.053,-155.024,145.159,-167.18400000000003,126.031,-11.619000000000002,124.755,146.393,119.682,153.415,123.723,-173.003,148.99200000000002,-74.55199999999999,122.587,-26.055,95.906,155.75,151.282,106.075,164.804,151.577,166.338,55.543,163.30200000000002,78.899,125.474,142.04,-172.467,147.168,-171.907,-171.922,115.07,-68.47800000000001,21.798,-177.638,-177.537,-172.852,167.252,128.804,-116.3331667,109.114,-74.899,159.329,159.209,-69.482,124.832,159.498,159.10399999999998,108.197,167.868,54.36,-101.073,-16.582,-173.515,-177.886,-177.657,-177.41,-176.905,-176.854,-176.42,-176.79,-176.82299999999998,-176.83700000000002,-177.412,-177.59099999999998,-177.243,-178.36,-177.717,-178.237,18.636,170.574,-178.313,20.6,-177.142,149.123,149.501,149.42600000000002,149.309,149.391,-179.209,163.556,149.61700000000002,149.185,119.905,139.562,-177.593,149.183,149.786,-177.079,-176.46099999999998,-172.507,154.886,-176.833,149.304,-179.292,-177.295,127.518,-100.189,123.752,159.49200000000002,-175.232,179.69299999999998,-175.032,161.892,-89.101,125.582,-68.222,145.852,146.30700000000002,-90.61,-88.46600000000001,-106.614,149.286,154.96,-172.271,152.768,-116.4883333,166.368,121.703,120.123,-64.415,140.275,-177.415,108.607,125.788,-69.693,-176.791,-177.209,151.747,-76.878,-92.264,171.812,145.235,99.015,154.778,121.687,-130.442,-69.065,-74.727,157.276,154.797,121.438,167.104,122.6,155.441,165.019,166.392,-61.13,154.716,-116.4715,-116.3118333,67.785,121.8,177.134,-177.873,-27.427,166.204,-90.601,-25.557,78.259,78.328,-178.19799999999998,144.687,105.052,-38.629,-85.88,149.507,166.449,141.576,-25.67,167.398,-173.287,112.219,95.417,152.092,145.547,-70.752,63.773,63.806,-79.804,122.375,154.827,-178.50099999999998,-179.66299999999998,120.753,139.471,-68.774,143.244,124.806,-165.465,155.086,92.875,17.49,52.128,141.591,-70.306,99.919,149.886,-176.877,167.62599999999998,42.855,146.317,-38.015,-175.033,167.57299999999998,-175.547,-177.83700000000002,-68.163,13.275,12.945,-71.322,154.63,154.708,154.595,154.697,139.678,139.683,20.352,130.408,-43.498000000000005,150.34799999999998,19.348,-74.47800000000001,-132.52200000000002,63.472,154.077,-75.783,-177.791,-175.093,125.077,145.845,141.65,154.265,-177.83900000000003,148.293,153.691,-78.322,-177.65099999999998,153.983,-86.845,141.615,159.363,167.787,154.08100000000002,98.953,98.71,127.036,-75.411,98.642,98.771,-160.054,178.30900000000003,153.442,142.667,143.063,161.012,154.733,161.046,124.829,-100.635,167.26,98.752,125.709,151.412,20.551,125.036,-75.415,134.79399999999998,-14.069,12.864,-175.356,-75.49600000000001,-75.441,65.414,125.929,96.318,96.404,134.80700000000002,-26.443,96.387,138.582,140.091,139.862,126.75,140.192,151.618,-177.834,101.947,25.182,78.952,128.201,-114.815,154.333,145.718,-78.47,-78.20100000000001,-78.127,-78.134,-77.991,114.888,114.862,-82.74,139.954,152.755,-113.243,101.822,98.698,148.64700000000002,-114.427,-25.482,139.94899999999998,-113.332,118.308,117.978,118.401,170.00400000000002,170.012,72.79,45.603,-27.284,48.12,-177.96400000000003,169.274,-14.035,94.312,-179.577,-175.045,-79.024,162.487,124.325,97.07,104.157,124.023,123.615,123.69,123.384,125.866,122.939,123.937,123.299,-177.745,123.946,-177.762,123.691,-177.366,123.766,149.781,-69.993,129.567,104.249,-153.304,170.93900000000002,104.181,124.085,-70.694,124.445,79.001,126.983,-111.752,-178.264,147.53,-26.217,-176.63299999999998,169.364,161.094,120.623,129.701,-66.301,96.967,167.24599999999998,124.842,167.238,123.847,13.157,-66.766,-178.005,89.559,-115.067,126.412,138.016,13.197,13.132,0.207,148.139,126.792,32.857,-100.469,149.225,-13.905,106.327,148.19299999999998,123.8,-114.999,-0.59,54.817,124.069,-177.87599999999998,130.89700000000002,-24.807,-179.428,155.642,102.648,-177.533,-177.312,153.002,-78.779,141.27100000000002,121.303,124.834,161.295,-178.69099999999997,-177.76,152.375,123.449,-153.274,153.438,3.959,126.298,139.918,96.278,148.531,149.548,77.65899999999999,77.815,125.22,95.14,101.052,59.155,47.963,126.375,123.875,139.972,142.241,-173.329,126.833,126.115,-78.152,-25.893,117.688,80.209,156.22299999999998,156.941,135.141,128.131,123.579,78.569,79.005,13.083,159.291,44.029,44.267,161.369,-177.705,-91.537,-124.9496667,-178.81099999999998,-78.21,71.042,-68.919,-69.21,139.532,-68.531,-26.781,-26.739,-112.164,78.905,-176.582,-110.793,-129.961,151.976,103.405,124.829,93.811,139.575,101.055,130.69799999999998,130.60299999999998,-173.99400000000003,145.05700000000002,-68.456,133.612,126.027,-83.932,-129.292,126.074,143.721,-125.953,-74.888,-178.19099999999997,-16.711,-68.58800000000001,109.014,126.582,91.007,118.987,56.202,143.71,144.447,114.591,-13.24,120.276,166.108,-179.24599999999998,99.856,125.96,125.927,142.579,-177.233,-68.67399999999999,174.25,95.697,126.553,-178.37900000000002,166.511,168.232,164.66,152.776,168.69400000000002,151.811,70.852,150.439,-63.362,-82.584,-175.259,-23.09,119.155,125.063,-26.258000000000003,125.983,-19.065,142.039,140.817,80.643,170.032,-13.622,-61.485,147.55700000000002,147.529,147.7,126.12,123.976,177.981,123.74,26.761,138.705,123.601,156.22899999999998,-74.202,-74.031,100.021,130.878,127.173,-45.174,131.007,154.963,122.327,152.19899999999998,148.196,122.458,122.354,-138.958,145.28,56.393,56.52,179.1,56.465,-73.045,-177.949,56.446000000000005,-177.957,56.586000000000006,129.993,-168.257,-174.14700000000002,167.10299999999998,124.611,56.32899999999999,125.231,-172.095,-34.857,144.188,50.683,26.656,130.011,-71.181,114.59,142.26,126.756,123.387,125.372,148.343,137.484,160.32299999999998,160.608,160.34799999999998,160.822,160.291,160.132,160.21,158.217,160.17700000000002,159.953,142.44,160.731,160.696,160.72799999999998,160.749,160.657,119.013,-178.27599999999998,160.65200000000002,154.394,123.258,127.347,126.882,117.708,92.99,139.502,-85.265,-85.26299999999999,-177.672,134.924,-176.55599999999998,101.975,160.613,120.82,98.676,142.512,145.352,95.774,120.52,175.687,78.846,-179.05200000000002,-169.707,166.505,31.344,70.762,-70.155,48.086000000000006,141.485,130.095,130.701,-174.05700000000002,124.645,-14.433,-179.09799999999998,145.689,-14.606,159.672,124.933,151.093,-175.9,-175.94400000000002,100.833,102.234,-45.124,-45.139,-45.111,125.058,127.654,160.535,126.435,-82.65100000000001,-178.574,154.579,129.737,127.334,-175.1,-27.558000000000003,168.407,131.05,134.96,67.454,63.682,122.214,-112.301,-176.713,168.21900000000002,158.602,159.594,122.361,153.542,-179.72,-173.15200000000002,155.53799999999998,123.769,169.623,-27.788,166.295,-82.751,161.333,107.644,-174.37,155.011,148.28,-12.752,-12.703,107.567,167.655,153.70600000000002,118.388,118.464,118.386,117.412,118.728,119.174,119.142,119.148,119.229,-86.852,-86.60600000000001,119.053,118.24,119.127,119.135,141.115,119.144,-177.90900000000002,119.221,119.142,117.664,118.137,119.268,119.072,119.284,118.355,119.301,-20.508000000000003,123.067,125.3,125.047,125.1,-177.148,146.23,119.869,141.207,119.123,-76.298,54.581,117.467,126.408,119.149,166.706,178.388,140.661,178.265,178.40200000000002,177.954,178.24900000000002,78.961,128.009,118.256,161.05,126.447,143.085,119.508,127.504,119.356,-91.681,107.088,-173.21400000000003,-173.295,23.029,-173.28900000000002,-25.661,118.053,143.127,56.63,-25.745,166.747,126.627,178.02599999999998,-175.22799999999998,-109.154,155.208,118.217,128.828,117.245,150.585,-174.23,118.021,-172.925,117.497,121.567,98.733,33.411,-176.894,-177.71900000000002,117.383,117.167,117.327,117.656,117.319,119.346,117.318,117.262,117.158,117.29,117.38,117.146,-74.658,124.486,117.29,117.51,-175.40599999999998,119.379,144.721,-173.046,167.41099999999997,-15.941,153.908,-176.85299999999998,117.118,117.155,126.892,173.084,-173.957,54.879,121.614,128.41899999999998,117.667,-62.972,170.3,117.221,-177.28900000000002,-177.395,178.327,78.17399999999999,78.907,154.69899999999998,146.637,118.729,-178.572,166.95,118.225,-74.76100000000001,-175.952,161.0,-175.546,123.28,156.089,154.306,-27.857,104.841,139.874,88.38799999999999,102.022,-27.832,-112.97,123.576,161.126,129.442,-67.767,-66.957,-67.738,-67.82,-67.72399999999999,-67.743,-171.546,-67.695,-67.634,-67.628,-67.57300000000001,-138.959,-67.631,-67.876,-67.666,-178.12,125.472,153.28,120.6,-178.428,27.761,-67.75399999999999,-67.431,-69.084,78.931,-178.422,145.02700000000002,159.714,95.892,-176.077,-175.95,-67.7,-67.706,-67.718,118.256,-175.602,129.341,-67.639,-69.563,-54.848,124.094,58.035,-179.145,34.913000000000004,140.989,-170.025,77.334,56.473,153.015,117.685,143.112,-67.596,159.804,126.719,127.812,55.297,143.162,143.047,126.825,40.278,151.767,15.419,-71.68,-71.096,-70.97,-126.913,121.895,152.27,149.69899999999998,139.259,126.417,-177.489,138.803,-177.554,-177.324,-67.867,159.475,-70.19,123.363,149.718,-68.876,148.874,151.67600000000002,145.032,-177.301,129.509,149.153,152.808,-175.426,-177.22,-27.401,150.246,151.675,-26.478,125.658,124.084,93.016,93.07,122.663,149.898,-177.358,-177.38,-177.544,-177.332,62.399,-177.11900000000003,-32.904,-177.46,124.047,139.311,-77.714,128.695,-125.193,-71.021,102.938,129.007,-91.199,141.94899999999998,128.901,125.247,125.412,125.23,-91.378,130.535,-176.207,-12.37,117.114,-114.564,140.797,164.632,-173.517,164.757,-174.854,153.101,-102.586,151.756,137.61,137.609,-27.721,-25.589,-25.486,-25.533,-25.64,-25.388,119.075,126.014,119.111,16.031,-178.137,126.885,122.638,140.563,66.30199999999999,-168.622,-175.358,-93.766,-99.735,139.681,-29.817,-29.693,149.002,149.016,149.029,148.971,148.819,149.27,148.939,148.731,149.126,148.439,149.144,149.58,-169.465,149.064,149.737,-179.903,-67.4,148.862,148.58700000000002,148.803,78.60600000000001,148.952,148.94899999999998,-178.83599999999998,148.451,125.184,78.074,162.991,-177.97099999999998,125.103,154.918,149.482,169.11900000000003,141.783,-174.011,133.918,82.285,123.783,-67.597,-77.954,141.031,149.342,121.123,116.685,148.94299999999998,-163.731,-173.75799999999998,-152.691,127.76,20.919,-73.514,15.066,178.407,149.166,127.41,128.44,151.899,71.274,-174.38299999999998,124.593,138.95600000000002,103.969,160.45,122.715,-177.498,124.906,-25.786,127.246,117.023,66.208,141.784,-176.1,-2.543,-92.199,167.31900000000002,-25.524,169.672,141.261,141.259,51.412,-78.52,-177.988,-178.111,139.032,0.889,127.371,130.134,-118.348,144.69799999999998,-118.547,23.268,-179.213,125.238,168.593,46.54600000000001,142.661,142.82399999999998,139.11700000000002,-79.413,154.631,57.327,151.159,146.451,-140.888,92.986,63.619,114.237,78.83800000000001,126.613,-173.55900000000003,-129.502,102.808,142.045,142.028,-111.34,142.364,122.403,122.381,-82.664,149.161,128.884,143.264,126.321,-172.264,-179.588,23.229,141.756,148.61,-179.412,126.635,167.267,102.356,102.372,102.278,-174.43099999999998,146.623,142.8,168.17,-27.058000000000003,-175.489,169.361,169.668,131.12,78.906,-100.007,126.196,-71.415,-168.81599999999997,143.792,-175.822,153.16299999999998,-151.64700000000002,146.116,152.842,121.512,150.986,121.574,172.503,-173.043,78.168,-173.329,84.28200000000001,96.892,167.481,-70.544,131.797,151.012,-56.049,152.289,102.409,166.453,166.713,125.321,121.46,166.739,54.792,-17.648,175.67,126.63,-178.352,-119.7,-26.441,156.276,146.891,-178.18200000000002,142.287,125.514,-179.56,-174.322,-91.454,-67.773,126.232,32.54,-85.22200000000001,126.596,163.461,78.99600000000001,126.903,168.00099999999998,-178.017,156.599,156.542,121.985,156.642,38.052,154.355,168.705,-176.729,167.137,-178.89700000000002,-178.15099999999998,-91.497,124.847,129.716,-106.173,143.352,-176.484,126.122,78.925,154.276,57.434,-177.947,-157.733,153.81,105.576,167.209,167.06900000000002,120.297,143.256,54.669,159.793,168.981,-102.262,-177.872,95.857,123.982,151.716,74.718,147.466,140.793,112.216,148.05700000000002,48.114,63.392,143.905,150.782,70.964,146.904,-65.792,155.692,152.005,124.876,122.286,-176.518,72.615,-25.477,78.983,48.901,162.17600000000002,162.085,162.19799999999998,162.253,162.136,162.221,72.568,62.359,161.368,162.06799999999998,-1.784,146.569,154.813,146.911,126.038,-177.69,-25.184,162.132,78.765,168.083,-96.591,-96.63,-138.975,158.862,161.39700000000002,122.206,152.293,-26.413,-89.635,-54.786,146.58100000000002,-92.288,150.114,129.69899999999998,-177.917,117.98,123.492,123.807,49.646,126.022,175.227,48.192,2.073,130.74,-87.35600000000001,126.735,-179.503,-72.46300000000001,162.579,121.492,141.378,122.075,-103.865,-142.571,13.582,-75.72800000000001,-175.46400000000003,-176.59900000000002,135.989,60.925,-93.543,61.013000000000005,101.252,-16.628,-167.921,59.472,96.184,15.005,48.128,161.08,145.988,143.91899999999998,155.225,-177.455,-153.121,-100.877,-100.988,-177.782,168.207,-161.25,-43.727,179.958,131.197,125.997,127.295,-26.887,-178.696,173.919,124.73,-68.62899999999999,125.919,-157.162,57.431,167.57299999999998,166.675,-72.658,-72.656,116.126,40.779,124.696,143.703,143.694,-17.72,132.075,124.599,156.384,167.33,-141.593,-80.07300000000001,177.41,145.785,120.402,147.959,-69.02199999999999,-122.44,46.236,-101.276,-101.283,101.138,-116.45,96.327,-172.843,78.744,78.682,-71.146,154.428,-110.806,-69.044,83.406,96.961,-27.254,131.44799999999998,142.338,130.102,125.487,123.694,102.413,-126.816,126.933,-102.601,19.209,18.682,123.615,129.685,98.215,-39.702,122.967,120.175,159.754,-178.688,141.839,-71.90100000000001,-174.63099999999997,98.779,-70.953,128.274,-178.37599999999998,125.614,169.798,-178.16099999999997,-68.28399999999999,165.50799999999998,-70.985,-173.928,105.957,-108.539,125.591,145.338,123.149,147.588,-69.125,24.437,-16.242,142.40200000000002,126.005,-77.913,-29.392,-156.725,-71.047,80.31,115.934,-70.089,78.97399999999999,-69.13600000000001,-32.095,159.674,164.94799999999998,126.043,18.752,-167.019,142.244,-175.32,154.221,31.751,-70.262,115.949,-177.113,117.179,-93.596,169.235,-75.098,-97.953,-38.086,-132.821,152.086,-27.868,147.254,26.527,24.243,167.217,-173.361,-94.609,78.915,139.82,145.577,-173.09900000000002,103.644,71.218,-82.25299999999999,-68.275,-24.966,-82.943,146.704,83.973,-71.321,79.065,126.213,-112.151,-179.579,119.241,153.305,141.215,-98.03,131.796,48.097,98.757,127.495,-93.427,-27.026,124.537,-174.21200000000002,107.709,-160.886,-138.993,142.576,102.319,146.33100000000002,-161.42700000000002,78.959,-177.49400000000003,-121.51233329999998,108.856,-26.016,18.482,161.296,140.22299999999998,153.48,142.924,130.785,167.84799999999998,167.75,127.87,79.01,70.134,157.329,-83.48299999999999,108.129,-41.688,167.113,167.683,122.096,-175.84599999999998,-165.204,161.061,171.65200000000002,132.314,-63.274,149.672,125.004,136.04,136.22299999999998,135.78799999999998,136.467,136.535,169.729,131.235,-69.559,-177.608,-25.596,103.044,128.088,136.22299999999998,13.061,-155.07,-155.072,174.03400000000002,-50.223,-50.304,54.708,154.33100000000002,-50.306,153.593,77.006,168.717,119.573,-173.358,94.245,-175.709,94.816,128.304,126.254,-76.267,106.035,126.019,165.707,165.78,-115.35916670000002,-115.58,-115.5575,136.416,43.786,145.281,154.369,136.59799999999998,177.12900000000002,-172.84900000000002,54.807,126.58,115.847,128.159,125.921,-170.537,161.312,161.284,161.039,161.232,161.857,161.205,161.453,48.158,-101.26,-25.242,-90.881,-90.73,79.06,140.596,145.132,136.56799999999998,150.214,166.65599999999998,108.252,129.649,-173.084,-68.617,-178.847,159.22,179.204,164.112,-178.72,166.743,-150.892,140.149,-176.149,102.015,-174.858,59.74100000000001,-27.105,-179.984,134.173,-26.296,125.295,-8.029,139.724,-67.385,-76.217,-176.59400000000002,147.292,59.726000000000006,-67.881,-142.451,78.843,121.448,126.125,59.817,129.809,168.31099999999998,147.06799999999998,140.701,-79.358,-79.393,-78.831,-80.514,-79.215,170.112,144.297,102.712,-173.741,-176.76,115.889,-86.458,169.225,97.036,78.827,126.846,129.634,129.36700000000002,67.959,-71.34100000000001,125.99,144.109,-79.017,-27.78,126.188,126.132,67.175,126.023,126.469,156.671,126.038,167.22400000000002,57.191,143.589,-27.081,40.268,-175.035,-69.459,-179.49900000000002,170.585,-73.493,159.628,133.414,-178.488,128.526,129.356,160.132,160.188,160.191,160.31799999999998,-121.815,160.295,-105.869,128.112,-171.18400000000003,-82.652,-7.188,156.236,158.89,158.77,147.231,153.196,146.56799999999998,76.892,149.739,149.59,158.903,168.03099999999998,92.61,-177.21900000000002,-177.236,132.313,88.583,161.601,146.753,146.654,146.9,-178.5,178.304,130.584,146.845,150.189,150.03799999999998,150.22799999999998,146.869,126.881,126.621,144.011,147.328,-82.084,-72.952,-173.606,-173.55700000000002,171.39,171.357,126.588,140.424,126.94,161.484,-139.02,-71.539,-167.67,-167.453,-45.558,-175.95,-175.926,154.09799999999998,154.878,-75.204,135.47299999999998,121.962,-173.803,-173.74,-173.588,97.555,103.167,125.365,142.601,154.955,-67.476,-80.1,171.173,126.299,-177.297,164.076,66.78699999999999,108.793,108.744,57.706,131.57399999999998,137.571,-178.112,78.79899999999999,152.224,-174.338,-173.959,-173.77700000000002,173.679,48.985,154.389,140.25,147.248,154.431,151.467,-177.19400000000002,167.90200000000002,154.513,125.76,154.452,-122.188,20.837,154.545,78.1,129.628,150.28,-118.831,-118.8996667,-118.75,-118.807,-118.8348333,-69.238,-118.8761667,-174.748,-118.75516670000002,-118.8055,14.252,148.161,151.341,141.901,146.991,158.345,-115.1221667,126.611,126.64,147.483,-173.155,147.499,139.86,125.38,141.144,-71.645,79.038,-177.96599999999998,126.527,-68.459,-138.873,128.542,-178.44299999999998,152.111,121.55,-173.57,126.657,126.591,126.789,126.725,-177.987,126.55,126.54,119.103,-10.656,-176.726,-176.687,103.958,-75.779,146.84,151.686,78.84899999999999,139.181,-173.612,-178.388,139.359,125.789,166.38099999999997,165.634,23.041,22.557,166.097,166.017,166.00400000000002,165.87400000000002,-70.15100000000001,-177.15400000000002,143.52100000000002,165.916,166.44,165.222,-176.097,-69.675,-139.019,-91.945,-178.625,154.441,166.458,166.509,169.607,101.199,170.144,-29.601,166.338,81.258,81.092,-82.665,165.433,-169.28400000000002,-88.516,-121.505,120.366,-80.017,140.037,80.508,68.058,-173.674,167.915,94.701,166.46200000000002,73.707,-78.19,-118.3913333,166.294,176.107,127.459,78.889,-56.429,-173.593,120.725,102.41,148.139,167.511,139.964,140.08,142.237,167.295,-27.573,154.809,122.422,-179.359,176.47799999999998,117.571,82.073,123.278,-174.015,103.118,-105.921,-77.686,-173.42,1.354,1.632,1.611,54.997,79.085,121.913,145.52,48.572,140.379,154.838,-98.605,129.621,170.165,169.94099999999997,169.981,-98.24,170.025,169.85299999999998,169.666,170.38,125.502,169.46,169.46400000000003,170.166,-24.85,166.12900000000002,169.509,-177.94,169.46900000000002,93.35,169.546,145.774,-107.628,160.741,122.058,86.141,-124.253,-67.468,28.796,-69.607,126.708,-178.12099999999998,88.75200000000001,131.529,149.286,-176.141,140.04399999999998,15.366,141.30700000000002,56.503,179.96,-175.85,-176.47400000000002,-138.961,-178.012,160.116,1.229,166.838,-175.71400000000003,-68.153,131.746,149.114,123.894,79.005,171.06400000000002,149.792,-172.3,90.384,-175.451,169.875,-129.496,44.67,50.652,-174.359,140.643,138.556,158.42,50.59,178.165,145.496,112.041,-179.59400000000002,-174.34599999999998,79.046,151.453,-173.53400000000002,-79.168,128.136,149.153,-79.232,160.433,-79.29,-70.622,-114.138,121.151,-174.019,71.416,98.07,102.908,-55.426,142.972,142.977,142.75,142.82,142.75,142.877,124.779,139.232,146.13,-172.524,-27.006,-177.638,142.672,142.122,142.775,101.098,60.839,102.933,130.241,158.016,121.939,-27.195,176.274,110.209,176.075,166.421,117.314,176.77700000000002,1.655,162.406,-176.273,107.965,-178.93400000000003,165.993,126.588,-74.529,128.128,-12.98,169.377,39.479,130.216,169.46200000000002,149.342,-178.908,121.448,174.827,71.393,143.339,166.55200000000002,169.162,129.41,148.745,142.895,22.934,23.141,156.248,166.46099999999998,-81.416,121.453,-176.678,23.288,177.301,154.82399999999998,-85.915,23.32,-178.208,-103.907,20.699,-175.291,146.124,120.706,110.428,99.606,146.715,-71.892,172.708,-168.037,-9.919,164.787,-174.263,-68.957,127.998,151.011,79.023,138.849,-179.66,-63.32,118.961,154.50799999999998,-27.382,152.32,150.235,147.484,-175.356,119.194,142.179,-27.442,125.798,78.90100000000001,166.76,166.517,166.421,179.41,166.674,179.41299999999998,95.384,-115.6245,166.5,148.079,179.981,150.222,71.085,-80.885,139.129,-64.911,154.7,127.008,-26.962,-179.196,132.255,53.656000000000006,164.357,127.441,167.28,151.409,78.411,164.743,-173.55900000000003,-107.026,-17.04,-165.199,148.899,145.471,91.444,57.715,154.71200000000002,67.827,-24.814,169.03599999999997,169.451,-70.446,79.929,-178.986,-173.46200000000002,171.74200000000002,-18.837,-179.46900000000002,124.704,134.796,-173.158,78.491,167.601,167.59799999999998,150.076,167.524,167.47299999999998,45.23,169.523,141.681,-73.204,57.794,169.627,-173.553,49.34,151.674,130.585,17.312,127.044,152.657,139.157,-93.784,-179.058,170.502,67.181,140.408,170.955,157.39,-175.854,-175.905,151.476,-173.28799999999998,-173.085,-173.264,-173.301,-173.178,-172.977,140.898,126.198,147.031,140.955,123.21,124.035,-119.11,169.6,141.55100000000002,146.463,144.746,73.594,78.983,-19.751,-46.301,-68.891,130.683,127.927,170.50599999999997,170.493,-74.808,170.764,-176.895,129.523,170.604,170.491,142.215,79.86399999999999,-178.012,143.158,143.17700000000002,140.32,-179.03900000000002,-118.8645,-118.888,-112.008,54.812,-179.61900000000003,160.429,146.123,159.308,-178.632,154.899,66.277,162.046,120.867,142.287,-73.074,-16.512,-27.35,128.974,142.255,-15.18,122.662,78.898,45.308,-179.292,106.448,106.456,-102.084,-110.649,27.297,92.855,-78.436,-127.706,-174.27599999999998,170.14700000000002,-26.238000000000003,143.79,-71.336,66.691,112.154,115.017,153.666,-165.747,-175.57,179.899,-27.272,169.503,-179.695,22.813,-177.22799999999998,131.726,120.839,146.179,170.635,170.558,142.15,-173.308,-178.863,154.905,127.384,131.076,78.857,179.71200000000002,128.80100000000002,142.515,-179.463,88.387,58.09,152.045,-38.411,148.178,125.856,70.145,154.929,154.923,111.761,-26.481,25.227,154.724,-173.75400000000002,-177.61,-176.377,-177.497,-177.741,78.873,139.80100000000002,24.905,168.165,-177.885,-178.49599999999998,142.55700000000002,-21.87,145.626,145.455,-177.312,161.334,166.707,177.56900000000002,-26.531,-66.656,124.358,124.407,27.988000000000003,-87.589,152.161,119.765,152.15200000000002,151.94899999999998,124.249,152.14600000000002,167.81400000000002,24.319000000000003,24.578000000000003,153.475,94.002,93.944,160.549,-155.6,-155.55200000000002,169.172,121.707,82.24600000000001,82.205,-45.477,124.347,-165.71900000000002,146.036,111.673,-71.782,-45.288,-61.43,-179.18400000000003,102.227,-113.053,106.936,-66.46600000000001,117.991,-177.89700000000002,100.073,177.475,177.231,166.015,140.999,102.415,128.179,141.006,160.97799999999998,143.458,-173.53799999999998,117.26,120.31,173.62400000000002,136.255,140.452,72.695,-175.56900000000002,159.804,-27.291,118.479,123.571,177.533,138.811,142.361,142.52,-175.188,175.06400000000002,-46.782,129.399,140.825,162.94299999999998,163.075,-178.66,-76.065,145.624,-179.61,148.942,123.332,168.15099999999998,139.745,-92.082,86.27600000000001,-174.18099999999998,126.245,58.027,58.078,-83.499,-176.3,-177.89,154.061,103.161,-172.985,120.526,130.71200000000002,142.232,177.47400000000002,-114.069,-178.625,120.518,129.9,-179.84400000000002,78.931,167.38,119.035,-27.457,-177.15099999999998,-68.814,71.542,147.19,123.291,-20.877,94.507,128.452,179.22299999999998,-129.747,177.542,168.22,172.158,94.023,177.395,154.969,143.164,152.494,165.40099999999998,135.77700000000002,142.094,-75.10600000000001,-172.49200000000002,-177.333,124.523,148.326,-36.023,-172.37900000000002,-98.149,-98.358,88.306,150.96200000000002,95.384,-174.41400000000002,-174.41099999999997,103.061,99.931,58.37,171.83599999999998,-89.339,167.87599999999998,164.174,126.043,124.532,-15.978,103.437,160.161,151.143,-179.94299999999998,78.85600000000001,136.967,-72.197,-173.81,130.451,-178.8,-178.801,160.513,146.843,177.592,177.581,173.132,161.472,129.417,141.702,141.725,141.643,-138.94299999999998,128.481,-173.635,176.137,149.311,146.34,146.567,165.93099999999998,120.577,120.416,-172.637,115.418,141.864,166.16099999999997,-77.367,123.985,130.30200000000002,153.158,-24.291,177.56900000000002,143.964,-76.352,-84.161,22.961,157.661,169.578,-82.68,169.451,141.484,-79.87100000000001,112.769,176.886,148.47799999999998,148.42,148.42700000000002,-66.605,-173.08900000000003,-173.062,147.58100000000002,-176.245,149.524,140.36,-151.588,169.408,-166.94099999999997,-167.053,147.991,-70.785,169.21099999999998,-172.745,-179.852,-176.373,-175.963,-175.873,143.865,-176.197,143.515,152.04399999999998,152.243,120.679,126.617,166.3,129.726,158.798,152.289,126.304,-176.674,-89.12100000000001,-173.146,167.273,-176.62,-178.514,168.00400000000002,-177.808,171.15,-3.467,125.876,-130.5,54.559,166.926,155.892,-172.888,163.135,121.836,65.855,-71.367,108.744,121.523,130.452,96.1,148.04,-175.955,101.63,-26.873,126.375,158.66899999999998,122.605,168.025,19.59,147.18,-56.217,-76.703,-65.835,-74.699,-56.31100000000001,70.508,163.17600000000002,130.084,-175.821,-90.998,-144.236,147.727,116.914,-170.447,138.951,167.205,78.869,161.168,-175.952,46.077,-87.65,-112.552,177.68200000000002,168.52599999999998,-60.727,-61.161,44.379,-175.622,-175.63,69.01100000000001,122.547,-176.15200000000002,126.644,-178.41099999999997,-178.317,-175.922,-175.864,-176.018,-175.66400000000002,57.524,-175.612,-175.502,-175.627,-25.737,-175.467,-175.977,-175.872,-176.067,-175.685,-175.93900000000002,-175.74900000000002,-175.048,-175.99,-27.588,-176.201,-175.503,123.08,79.043,139.41299999999998,139.434,121.397,-175.592,139.336,-68.464,77.423,-69.11399999999999,103.153,-26.262,101.227,162.829,122.182,-177.9,-173.33,148.195,163.244,133.696,-68.47,-63.301,-102.631,-154.154,124.575,136.04,160.076,-177.155,147.046,20.228,147.446,-24.311,20.225,141.31,102.985,103.027,102.976,7.164,-95.179,-95.232,122.641,176.25099999999998,-95.215,-14.484000000000002,93.582,140.19299999999998,-114.079,-179.33900000000003,-66.96,124.075,165.924,-100.974,-24.206,140.812,177.709,127.294,124.4,-95.093,177.768,-177.643,-98.365,57.562,-177.83700000000002,159.618,156.04,126.297,75.135,144.935,140.924,-159.189,-159.236,-174.179,124.039,126.246,21.08,-95.011,146.878,-69.438,155.601,-76.793,139.916,148.058,-79.062,-77.8,100.7,143.234,177.628,-62.364,147.39700000000002,126.649,147.389,127.893,127.924,168.07299999999998,127.784,-79.997,-1.022,126.566,143.974,142.452,122.94,153.58100000000002,153.572,25.35,126.7,153.161,153.64700000000002,-175.451,128.912,-175.253,154.60299999999998,154.6,20.262,125.976,129.96,122.55,-76.686,-66.6,-83.12299999999999,-83.32700000000001,179.259,94.722,94.746,171.481,159.858,155.602,167.28900000000002,75.26,-175.115,-82.695,57.52,-174.503,-62.764,-179.252,61.619,-78.10300000000001,-74.531,-175.46900000000002,154.938,-75.663,160.311,110.89,169.232,62.054,-138.906,99.023,126.884,118.92,-117.844,-177.817,-175.956,157.66899999999998,168.428,122.589,155.497,-174.27200000000002,-178.06400000000002,-174.252,143.764,153.453,153.435,-178.475,-120.3,-120.312,-120.29,-178.296,179.649,-82.601,121.711,-109.367,-74.90899999999999,161.283,-82.95700000000001,-109.454,121.56,150.89600000000002,152.509,128.34,-173.453,-46.529,-46.567,128.055,-175.641,150.938,-77.122,-69.139,171.308,-138.918,139.102,139.395,139.326,139.256,138.94799999999998,138.984,48.581,139.36700000000002,103.082,120.749,-174.605,-172.812,9.724,-71.249,150.38,29.103,139.023,139.023,-174.111,122.636,122.76,-176.329,78.98100000000001,127.323,-173.63099999999997,-97.524,159.599,156.357,138.944,179.09799999999998,139.099,139.281,122.422,129.395,139.57299999999998,103.282,122.402,102.604,-178.791,-177.451,-178.699,-141.287,147.83700000000002,128.293,-178.345,-25.373,141.115,94.715,122.379,-83.68799999999999,-27.994,-123.404,-174.86700000000002,171.02,27.222,171.018,-25.615,170.89,170.731,27.844,-173.38099999999997,-53.02,-108.293,56.381,-147.38,-147.286,126.452,126.502,129.336,-178.125,121.654,-87.181,127.44,-68.45100000000001,49.18,121.564,-176.382,158.372,119.504,-176.32,142.654,56.967,-126.931,-75.848,122.101,153.485,167.91400000000002,159.734,167.87,-62.153,15.994000000000002,-93.885,24.766,130.119,139.069,-175.967,120.957,127.294,129.472,111.24,169.43900000000002,-174.513,161.287,120.86,54.913,117.563,141.793,126.617,-112.587,-177.138,146.641,151.033,-124.9227,-124.9245,131.484,125.946,151.514,148.799,-172.082,94.711,25.838,-111.905,-69.932,169.801,158.655,-147.5,122.327,-155.122,71.082,126.625,-175.706,-79.245,145.77,-93.153,-179.796,120.766,95.039,-177.476,-27.067,-24.83,-68.47399999999999,122.148,122.228,-83.391,-83.61,151.09,54.495,26.912,115.371,43.267,150.762,154.55200000000002,139.513,121.392,-70.563,-70.654,78.843,88.766,-70.908,130.741,146.02,-70.518,103.163,-44.497,128.13,-82.741,144.391,-46.279,-21.816,156.311,121.052,-70.12899999999999,-25.1,-173.75799999999998,-17.52,-69.194,-25.451,-24.865,-25.392,-25.249,142.513,-76.658,120.858,78.907,122.16,120.833,-179.517,-113.857,-114.115,71.443,42.187,133.899,152.869,119.18,-79.418,104.506,-177.678,115.213,128.164,128.335,128.154,128.137,128.267,123.024,141.796,141.809,141.618,-155.45,-155.454,119.156,148.444,79.036,130.645,144.296,-79.877,-178.40200000000002,-178.333,128.168,155.507,152.003,-76.309,-82.26799999999999,152.16,-75.935,140.003,146.56,-177.783,142.77200000000002,-26.383000000000003,72.11,71.423,-91.924,-172.915,71.417,62.513000000000005,-178.378,-102.581,-179.503,148.958,150.92700000000002,137.239,168.047,151.892,127.288,-92.961,-27.629,-176.524,-70.12,145.393,72.926,71.704,119.728,-125.6465,178.028,145.045,145.08,-63.172,-63.008,151.86,151.965,151.868,-13.529000000000002,69.115,-175.91299999999998,131.615,151.384,78.218,128.47,-27.762,104.14,-164.14,166.78099999999998,70.738,-70.077,141.597,136.894,-66.16,-142.32,-142.655,128.145,145.79,151.414,102.188,118.806,126.927,-36.071,-102.828,27.861,143.39700000000002,-78.494,-43.494,-112.32,117.389,-71.35600000000001,141.227,141.269,-81.425,-179.674,-29.669,65.711,-178.321,146.533,-178.571,-174.227,130.404,123.875,-26.625,-25.087,112.933,-76.85300000000001,71.03399999999999,51.869,-178.553,-1.625,151.55100000000002,146.59,70.484,-71.26,166.25400000000002,150.174,-178.793,160.469,160.268,-112.144,22.094,-60.032,122.412,70.82600000000001,130.11700000000002,-109.086,71.05,78.807,150.662,150.515,128.85399999999998,53.978,170.02200000000002,103.527,31.775,-174.77200000000002,-70.52600000000001,167.951,156.235,176.405,-105.993,-176.44400000000002,145.855,123.762,160.549,139.252,94.661,138.935,142.84,79.003,177.22400000000002,106.957,135.482,-179.97099999999998,118.387,134.41299999999998,-178.07299999999998,105.333,169.924,122.568,120.151,63.35,121.691,-42.261,155.385,77.915,-173.658,-172.19299999999998,71.19800000000001,-154.153,-173.739,148.192,145.468,145.805,-115.357,145.757,122.616,79.017,138.516,-59.633,-61.864,145.659,124.831,149.638,167.222,72.368,149.401,147.076,168.85,125.496,123.05,148.296,126.575,78.163,126.76,-26.829,-174.352,70.89,-71.804,148.745,-172.965,-179.375,-19.857,70.75,146.692,99.136,151.493,138.431,-121.6788333,-121.7,78.94,-177.229,150.861,71.495,70.206,-16.565,-78.101,12.558,-175.695,167.24200000000002,146.099,111.338,-38.577,146.555,93.545,-176.774,-38.497,13.898,-177.722,-98.886,13.961,-138.961,17.734,-179.372,177.81,-104.874,127.139,-67.2,3.107,166.56,52.419,53.54,81.869,121.621,121.509,161.089,-178.21,-26.91,-136.303,-135.688,-135.415,79.06,38.944,39.065,164.183,164.116,147.82399999999998,128.547,97.138,136.32,136.327,151.577,-178.671,-75.711,171.857,-170.99900000000002,124.738,-76.708,125.845,151.741,104.169,-71.179,65.997,-165.218,140.036,130.94799999999998,-174.831,25.723000000000003,-173.354,-72.491,125.693,-66.965,23.238000000000003,-30.41,127.579,-15.786,-69.33800000000001,170.673,-130.361,-69.215,127.259,151.787,126.558,126.561,-129.213,132.129,70.906,-98.441,158.889,69.52199999999999,-178.847,121.072,140.286,166.62099999999998,154.424,-27.399,145.912,70.097,111.298,94.618,154.792,138.917,126.479,126.026,78.96300000000001,-99.601,-129.002,146.29399999999998,-27.388,-12.8,161.387,129.525,-178.41,-179.58,154.994,126.419,-70.47800000000001,126.588,161.257,-176.868,-174.03799999999998,-11.974,-90.156,-32.87,43.274,-92.224,122.517,131.945,166.868,152.115,-173.233,-69.179,120.811,-149.05,-149.10399999999998,136.59799999999998,122.221,-175.268,-141.034,-66.717,43.182,148.365,-114.008,70.487,-86.635,-86.485,-16.521,139.606,-69.506,179.07,99.075,-105.716,128.524,-133.639,-179.359,-87.071,172.149,-93.286,149.577,-178.168,-179.015,121.779,-116.055,174.515,91.758,-126.831,-125.1303333,167.685,-71.872,137.488,137.424,-178.21400000000003,117.503,-175.766,65.643,-178.32,42.219,141.5,72.757,141.333,-178.06900000000002,-178.033,-146.001,132.02200000000002,141.592,147.166,141.554,141.507,-175.96400000000003,-178.264,-178.28900000000002,145.378,120.923,-178.405,-165.424,166.507,141.422,122.582,-150.589,-175.91099999999997,-177.796,-110.841,148.54,167.983,128.505,167.97799999999998,118.787,-60.173,148.97899999999998,-175.262,31.95,-109.01,-105.495,-179.271,130.143,179.72299999999998,177.113,177.21900000000002,-175.606,177.245,-94.304,-174.925,152.67600000000002,-173.643,-173.95,125.713,-178.40900000000002,154.918,-179.697,-66.832,-178.43900000000002,-12.559,-24.973000000000003,-177.72400000000002,54.955,-175.21,122.143,126.291,71.328,78.834,65.55,125.543,-174.076,-177.516,-177.666,-38.794,-175.845,163.692,126.035,126.056,-138.994,-73.043,-13.866,67.352,-175.421,150.58700000000002,-71.46,-170.99900000000002,128.569,166.745,125.191,125.267,179.705,-173.75400000000002,120.851,170.95,-177.421,-179.295,-76.047,-67.962,98.027,154.49200000000002,153.183,-178.032,139.91899999999998,140.80200000000002,-175.701,-175.507,179.09599999999998,-175.27200000000002,125.124,171.162,171.08900000000003,-13.485,154.83700000000002,-178.05,102.255,171.28400000000002,171.328,-118.59,-118.6071667,-76.13,-118.6071667,126.51,154.784,-118.64766670000002,-178.449,124.388,144.314,97.085,152.437,79.072,-115.765,152.037,148.138,43.147,143.334,-13.947,-138.91299999999998,125.341,-15.055,-23.454,149.36700000000002,-75.226,-68.59899999999999,108.018,-96.492,78.862,153.144,149.18,149.197,172.47099999999998,-86.23299999999999,153.148,149.855,149.606,-71.33800000000001,-25.514,78.752,163.46,177.803,179.15900000000002,177.77200000000002,122.04,177.893,177.701,177.493,177.512,92.891,-173.83700000000002,-66.877,153.192,-157.835,-175.35299999999998,-174.11,-177.518,67.29,-80.027,135.55700000000002,177.584,91.986,-178.296,177.685,-179.085,-140.744,-43.446000000000005,143.967,68.0,123.582,122.38,177.71,122.433,170.078,165.03900000000002,141.77200000000002,141.734,-70.793,128.507,-175.296,151.597,130.125,-116.286,-177.296,-68.467,131.184,104.263,128.586,165.092,162.974,-174.37099999999998,147.686,52.997,-174.09900000000002,78.816,-94.968,-32.56,-179.753,-67.881,148.94299999999998,-175.108,134.03799999999998,123.187,-176.687,-71.768,-70.34,-26.657,161.126,30.928,-110.789,119.785,123.45,-14.568,168.74400000000003,128.44899999999998,130.332,119.595,119.67,119.56,119.727,-71.737,-71.87100000000001,-71.215,-71.477,-71.627,-71.663,-71.905,-71.793,-71.93,-71.918,-71.997,-72.283,-71.249,-72.331,-71.818,-136.576,122.826,178.80200000000002,166.52200000000002,162.043,-71.878,126.355,-72.612,106.879,-150.029,-72.304,127.367,123.288,-179.168,-150.148,-89.03200000000001,128.861,125.587,-72.187,-127.561,-26.467,-179.924,-178.218,-28.244,-62.448,-62.512,-71.551,123.544,123.61,-71.653,-63.658,138.91299999999998,105.419,-72.02,-72.20100000000001,158.30200000000002,-72.262,-72.185,165.739,128.767,122.765,-71.727,146.666,140.362,-127.582,-103.202,158.726,-71.656,-179.235,139.525,-16.085,127.511,-122.309,154.062,136.268,-71.618,140.719,138.92700000000002,159.416,179.00099999999998,25.307,165.687,114.185,126.411,145.578,-71.96,159.63,102.871,-86.65100000000001,-77.46,87.28299999999999,130.44299999999998,120.61,120.815,149.167,78.969,154.332,93.653,-177.614,168.34599999999998,-173.503,73.173,-176.82,-71.766,-75.664,-26.149,142.043,145.54,22.81,-71.23,156.329,126.416,-86.93,70.26899999999999,-98.868,179.452,-25.135,155.692,70.31,-139.048,67.67699999999999,126.777,177.91299999999998,178.024,151.045,150.80200000000002,132.509,41.423,41.424,28.263,-25.33,-25.308000000000003,77.735,-178.12599999999998,-69.053,-72.28699999999999,160.526,-71.329,87.17299999999999,-178.43,160.99200000000002,-178.582,154.094,-25.518,140.344,144.28,144.421,162.409,154.761,-73.653,160.50799999999998,-90.138,160.411,-173.516,127.481,-89.87899999999999,-19.541,153.173,-28.432,151.34799999999998,-175.325,140.342,126.858,-78.578,-66.995,-71.86,-93.966,122.078,78.881,146.998,132.681,-175.953,-67.07600000000001,163.584,163.67600000000002,163.738,163.726,163.76,-64.577,-82.304,41.238,179.442,-169.52,78.696,87.18799999999999,126.516,56.337,56.419,146.436,152.828,152.951,167.834,152.577,-72.214,-177.771,-72.15100000000001,117.67,-72.072,-108.464,149.798,110.306,-91.623,-72.11399999999999,-45.041,-45.103,152.877,-71.718,-172.919,78.244,176.97299999999998,78.829,-67.973,148.83,148.783,148.83700000000002,166.338,-113.44,-26.883000000000003,164.57299999999998,70.896,173.487,95.176,-25.32,70.78,123.5,-75.679,-120.1563333,-120.049,121.886,-178.31799999999998,-85.89399999999999,53.04,113.491,113.441,154.34799999999998,151.94,-174.62,120.186,105.393,152.877,140.217,168.731,-73.495,141.773,117.215,125.921,128.545,-178.731,-75.565,67.244,59.31,128.216,-124.161,-75.594,-179.047,-78.887,-174.733,75.22399999999999,-66.83,-177.799,-108.486,148.933,-173.3,-67.498,-178.981,-25.333,-92.051,128.153,-24.583,97.696,130.34799999999998,130.279,21.235,149.865,149.733,139.84799999999998,149.96,-173.535,-132.002,-132.403,75.407,-136.423,136.243,136.16,136.049,-97.158,-175.576,-173.88,128.546,-8.049,-102.533,122.28,-101.647,-13.423,-102.481,-44.316,130.037,-102.74,-84.03299999999999,-178.65599999999998,-71.598,159.85399999999998,-174.606,26.599,179.241,-168.856,-177.149,-178.72099999999998,169.843,139.964,140.093,48.433,-124.266,169.43200000000002,-66.311,107.082,-159.613,-176.382,-89.72,-29.921,69.82300000000001,-34.119,146.27200000000002,-178.773,166.002,-179.16299999999998,125.159,-68.605,-171.35,124.284,6.761,151.613,-175.99,54.75,150.989,-102.548,175.533,-166.93599999999998,-63.17100000000001,146.42700000000002,175.86900000000003,175.88299999999998,120.194,-26.223000000000003,-179.347,137.026,140.607,140.624,123.739,-32.477,-13.165,-98.158,-13.109000000000002,-159.787,78.368,134.911,134.424,-112.171,-13.364,19.388,149.429,146.345,-175.043,125.177,-138.929,-178.988,-90.939,-61.389,166.24,166.39,166.354,166.185,166.291,152.887,166.16299999999998,-63.663,-174.197,139.806,140.494,134.91,-178.53799999999998,-64.756,126.6,57.999,-85.838,166.19400000000002,166.25099999999998,126.758,136.547,53.512,53.46,-173.622,140.311,166.516,166.65400000000002,166.452,-178.44799999999998,-178.4,-124.239,166.32,54.272,-34.824,166.34400000000002,170.011,-175.947,-124.085,-66.711,-178.533,104.191,166.507,104.288,150.686,-150.34,-173.546,-108.386,112.097,126.868,-108.524,9.638,-178.627,-111.326,9.517,166.416,166.43400000000003,69.544,71.024,155.18200000000002,170.327,170.102,126.074,138.662,122.013,-104.475,120.822,-78.434,-173.109,161.006,124.32,124.366,-177.69099999999997,-121.285,161.135,-177.267,94.165,-76.783,166.452,166.69299999999998,139.55200000000002,166.234,170.40400000000002,143.274,141.128,147.29,147.433,-62.32899999999999,166.699,167.315,-178.945,-91.414,121.304,-70.116,-179.56,166.722,174.31799999999998,156.795,-141.964,122.249,-26.278,155.111,130.94899999999998,156.936,179.176,142.296,169.605,51.555,-153.524,155.781,169.96599999999998,151.71,-167.864,70.66,155.616,147.627,-12.953,-176.55900000000003,-67.391,-27.429,139.866,141.762,120.646,-121.854,121.565,122.921,122.778,122.814,-104.701,130.009,138.696,25.145,104.159,-72.005,-26.571,-71.638,-178.041,-178.702,149.60399999999998,-178.58599999999998,-174.602,25.165,132.767,-121.6858,-121.68666670000002,-178.537,161.58,-94.423,-73.86,-27.03,126.863,-167.88299999999998,-173.332,166.831,151.268,-24.373,-174.34799999999998,-173.905,141.645,147.57,139.309,126.537,141.971,-174.08900000000003,76.374,71.11399999999999,-13.482,141.50799999999998,-102.973,-69.453,100.101,130.05,-174.37,170.22799999999998,53.303,163.843,37.806,-102.657,-24.728,-24.855,-24.85,155.975,-174.80900000000003,-174.77599999999998,-174.8,-174.8,-174.8,70.712,-174.15,-174.886,-174.8,-176.667,-176.813,-176.887,-176.442,-175.363,125.499,-176.907,-176.87599999999998,-65.589,-174.243,-174.071,-103.058,-94.085,125.205,-173.736,-174.67,-174.671,43.737,-174.113,141.42600000000002,-175.43200000000002,-174.726,-174.52700000000002,154.109,-174.50400000000002,167.227,121.619,121.594,106.492,-20.141,148.416,26.528,48.179,-173.051,-172.859,-179.079,178.86,177.81400000000002,119.727,124.152,150.80700000000002,-115.881,162.412,-139.026,147.519,154.484,130.60299999999998,93.489,151.76,125.964,-103.629,-97.382,-140.957,37.917,146.491,139.279,-179.227,-62.928,129.497,-23.384,110.343,169.77599999999998,-176.543,-26.805,-178.925,-13.324000000000002,160.388,126.742,125.259,-176.653,-152.914,94.517,-177.757,-179.077,86.84700000000001,-25.122,-25.066,140.595,143.94299999999998,-17.824,-178.127,-178.24599999999998,-176.05599999999998,96.314,-177.957,96.201,-178.107,-177.873,-73.009,29.539,-86.035,-172.452,-172.718,127.989,148.498,148.52700000000002,-179.53400000000002,-26.164,-114.283,-179.74599999999998,140.933,153.77100000000002,-25.86,-92.582,80.161,56.832,124.305,-116.61,-116.608,-176.239,126.525,126.387,166.334,51.582,125.406,126.404,-93.901,169.165,77.997,71.247,-69.428,-165.882,151.127,-167.171,-167.301,-118.4381667,-118.436,-3.577,-174.283,-118.4428333,-118.441,-118.4538333,-118.3425,-178.35,154.774,-176.173,-176.035,125.917,94.177,-177.49,-71.934,-175.301,121.782,17.927,-118.36866670000002,18.43,-103.702,-177.68599999999998,-88.806,-15.319,-176.8,-128.977,-81.241,120.335,128.27100000000002,121.647,121.312,127.192,-82.59100000000001,-82.413,126.519,-178.52,126.993,124.212,126.482,126.522,126.442,126.959,127.113,126.96,-174.207,126.575,126.601,151.33100000000002,126.534,91.633,-109.551,-40.938,179.28799999999998,-177.201,126.873,-173.05,101.496,-173.481,-173.467,-71.104,26.316,144.12,-29.529,-178.457,-26.098000000000003,127.944,157.52200000000002,152.442,125.862,-153.405,-36.779,-179.937,22.176,179.102,154.916,-175.28799999999998,71.092,146.30100000000002,-153.6,128.829,128.811,71.73,56.983,130.42700000000002,128.509,167.265,173.055,-108.061,126.777,128.61700000000002,127.258,128.036,-112.034,-111.993,-127.252,167.31400000000002,107.233,-89.118,28.574,70.848,141.011,41.776,153.616,-178.65400000000002,162.97799999999998,-25.64,131.43200000000002,-175.285,142.88,109.997,126.912,-176.36700000000002,-176.158,-176.389,-176.134,-176.326,-176.28,-176.62400000000002,-176.732,-176.641,-176.27599999999998,-176.386,-176.51,-176.572,-176.467,-176.613,-90.118,166.04,-176.30900000000003,167.56099999999998,146.306,165.204,165.537,165.233,165.179,-70.176,153.875,164.987,165.215,168.135,154.05100000000002,-170.049,60.182,60.06100000000001,126.784,125.331,-176.616,127.822,-176.232,89.26899999999999,-178.40400000000002,126.24,-176.68400000000003,-176.407,-176.615,-176.488,155.898,126.811,31.154,-176.63,-25.266,-176.505,121.574,-173.821,121.711,121.677,-176.449,-179.822,-176.507,168.08700000000002,167.549,-27.338,139.52,167.354,-77.411,16.339000000000002,141.174,-173.93,141.94799999999998,-176.40200000000002,-176.37900000000002,147.25799999999998,-174.63099999999997,-179.92,-176.266,-97.628,139.19899999999998,-176.372,-173.648,-126.777,95.12,25.912,124.362,-107.2,167.655,167.658,71.125,119.201,-176.859,-176.622,-176.737,125.825,121.336,-48.76,-80.105,-78.84,143.82,144.503,-70.06,130.816,78.695,119.88,137.89600000000002,130.704,-174.071,138.363,-18.428,146.227,146.30700000000002,167.929,-176.563,139.466,-82.601,-169.38099999999997,81.319,121.729,141.67700000000002,-176.53799999999998,166.477,-177.524,-78.96600000000001,-78.734,-113.884,142.85,-67.252,-26.227,27.444000000000003,161.27100000000002,129.815,144.885,-175.736,126.531,79.318,79.348,-79.334,-72.082,129.675,153.856,126.232,154.945,-26.916,-17.789,151.827,-72.893,-156.53,-172.933,-179.93099999999998,141.786,141.689,159.015,147.74200000000002,126.588,147.689,147.747,147.708,147.69,147.691,147.722,147.80200000000002,-177.456,147.779,146.991,120.981,167.355,132.286,126.167,167.55900000000003,-178.632,-76.058,161.741,-179.25,-177.204,-178.987,126.186,168.761,-179.304,-25.157,-179.27900000000002,-27.022,147.778,-25.35,167.891,147.329,141.879,147.637,121.08,91.179,-167.291,20.29,141.60299999999998,176.765,176.949,96.212,176.84799999999998,152.013,147.921,-70.161,-70.21600000000001,-70.46600000000001,-70.70100000000001,146.653,-77.653,-77.821,-77.6,-70.104,-77.92699999999999,-70.118,-92.287,179.58700000000002,167.399,-172.71599999999998,-72.035,-71.976,141.662,145.259,145.235,78.82300000000001,-94.597,-18.147,-177.551,-176.42,-87.432,-177.301,-177.325,-177.467,-92.203,127.096,-94.581,-70.557,91.617,151.488,147.65200000000002,147.645,147.60299999999998,165.942,126.571,131.83700000000002,-177.612,167.225,137.907,-176.134,-177.547,-83.404,-173.574,-70.142,137.865,-173.801,167.197,-174.459,131.328,152.563,167.886,-66.205,71.156,78.829,144.216,-18.565,141.796,-66.074,152.928,-86.40100000000001,128.43200000000002,-168.30900000000003,128.46200000000002,78.218,146.951,146.99200000000002,-25.421,171.815,141.47299999999998,145.78,78.691,-179.137,170.261,141.57299999999998,120.226,120.301,98.866,-174.94400000000002,-24.552,47.386,99.086,56.109,-177.736,138.733,74.57300000000001,-178.577,-31.913,-19.152,70.673,78.125,-179.898,152.656,139.232,165.745,145.52100000000002,-65.503,167.326,127.709,141.988,126.701,55.559,151.342,-72.19800000000001,-81.377,-115.082,167.15400000000002,-178.49,94.202,147.69299999999998,147.102,100.033,125.362,178.30200000000002,139.067,-71.484,-174.25400000000002,-138.964,125.41,-19.728,142.31799999999998,-173.555,-177.509,-83.869,151.941,148.838,101.96,142.82,88.73700000000001,141.641,127.534,127.513,127.397,-142.509,126.115,121.366,-19.076,148.832,-44.537,-106.666,138.952,94.81,-26.954,117.337,-179.80700000000002,150.392,-179.585,126.147,126.266,-65.623,-76.73100000000001,125.949,-179.795,-176.727,130.791,121.356,162.326,-68.362,78.735,129.637,126.908,-162.601,-162.597,-66.815,-178.543,-82.219,173.581,173.298,173.64,-26.127,-27.463,169.18,138.17,-75.979,-173.072,169.206,-13.054,-108.788,130.322,72.247,-174.66,-174.72099999999998,-108.285,167.828,167.78099999999998,125.028,178.169,-108.156,129.88299999999998,149.558,-25.642,165.525,-17.555999999999997,142.66899999999998,-25.844,-70.061,147.828,130.567,-97.153,138.096,-27.683000000000003,78.11,-85.3,-74.074,-97.252,151.79,125.582,-153.65,-153.77100000000002,-72.686,165.78099999999998,-124.334,-25.998,-178.208,-178.134,123.605,-124.38266670000002,-124.41,78.917,54.626000000000005,-105.015,-28.557,158.224,178.938,-69.991,-104.064,83.714,-178.697,146.889,125.66,63.84,154.71200000000002,166.649,-59.257,58.453,-70.931,167.985,166.58900000000003,-169.113,-70.884,179.65400000000002,151.686,151.732,154.877,-108.738,-178.46400000000003,-66.529,158.513,159.005,159.27,156.41,156.266,156.221,54.755,-177.968,-177.804,-82.572,-82.522,156.36,123.29,-68.384,-89.979,144.732,-69.971,139.671,153.157,-26.19,145.70600000000002,-69.148,-75.667,-79.059,-78.05,-78.127,134.275,149.519,139.279,139.528,141.30100000000002,-179.454,164.537,-81.094,169.778,168.266,168.058,168.16099999999997,168.122,167.865,166.14700000000002,177.537,-118.079,139.942,-77.954,-69.247,131.012,71.437,-85.926,141.615,161.623,129.91899999999998,-172.225,151.684,159.972,-68.03,-173.111,105.256,113.153,179.685,154.371,154.361,154.312,179.82,133.257,-89.624,129.317,149.06,-27.209,149.226,172.32,-87.073,169.08900000000003,-139.029,166.15400000000002,36.751,138.364,138.122,-178.805,-62.929,36.73,-176.74900000000002,127.688,-80.548,-177.553,-27.846,-177.52700000000002,-173.757,-138.959,151.743,-63.583,126.614,140.162,-177.30599999999998,149.47299999999998,125.14,-109.018,-108.96,78.791,126.225,-87.03,-143.27,-143.096,108.793,-143.19,124.77,142.608,-138.995,153.47799999999998,-141.32299999999998,-115.78,-115.792,-27.481,-178.59599999999998,149.415,-115.85,-115.852,-174.02599999999998,149.39,124.155,168.11900000000003,125.064,-107.036,168.132,168.141,168.11700000000002,124.864,-76.512,175.94400000000002,124.993,-142.786,-142.74200000000002,-172.90400000000002,-142.611,154.555,-172.613,167.393,167.454,-112.034,44.574,-27.81,-173.215,149.889,-174.797,140.025,78.844,-18.499,142.908,-142.774,140.214,114.61,-77.803,56.677,122.9,89.63799999999999,-11.439,124.884,-175.68200000000002,78.758,-70.615,-70.797,148.96,-26.522,142.41899999999998,19.63,-109.234,154.414,-177.423,-174.643,-174.65400000000002,-179.646,-177.033,153.14700000000002,-179.74900000000002,167.265,-175.993,-11.334,140.21200000000002,154.209,-179.59,-179.643,124.64,-70.568,-90.84,-70.521,67.12,168.139,133.803,133.91,133.882,127.236,153.499,-116.194,128.019,-178.737,-78.083,141.606,47.054,-32.674,-32.653,126.369,151.806,133.745,-174.125,96.091,145.862,-174.35,179.638,66.97800000000001,124.111,145.732,-70.433,-70.554,91.57,131.907,-66.958,-173.82,-152.972,-178.486,173.465,-100.965,-70.393,-62.902,-102.268,-113.896,-98.805,122.477,78.91,-70.932,175.041,174.78400000000002,126.534,-67.706,161.381,158.253,127.004,152.59,129.393,145.735,-69.785,159.67600000000002,126.172,124.616,124.811,-91.653,124.632,-69.605,47.989,-172.00099999999998,-173.764,167.43,-84.711,-178.521,114.497,151.233,151.30700000000002,-143.032,-142.803,152.222,125.31,176.862,131.137,-74.154,-60.587,122.281,-178.645,-177.65099999999998,-82.985,-60.569,133.518,-72.21600000000001,51.848,51.878,78.525,143.279,146.488,-60.607,-175.03400000000002,-178.452,-173.884,139.619,146.561,146.57,67.91,153.815,125.451,-176.08,-176.515,-43.556,-169.33900000000003,-177.493,-60.604,-124.182,73.234,-156.445,-102.843,-168.18200000000002,50.194,123.882,-70.461,-177.85299999999998,-173.081,78.945,94.419,131.084,112.874,120.393,121.647,-15.768,120.386,117.498,145.697,145.659,166.829,-179.33599999999998,178.424,56.334,-72.305,-72.518,-72.505,127.108,126.676,-72.387,-25.066,-178.518,126.648,127.279,44.123000000000005,-30.267,-177.135,121.851,158.255,-108.023,-143.07299999999998,-178.457,-103.788,-27.672,170.278,66.62899999999999,78.76899999999999,145.858,140.525,168.169,-113.268,-113.664,115.378,142.77200000000002,-85.911,-76.226,-178.75,147.894,143.751,54.445,120.135,-139.072,116.274,-174.965,147.737,166.335,170.658,-44.857,174.176,148.911,-173.12400000000002,-69.47,-173.892,-38.413,98.223,-71.704,-30.317,-173.632,-163.267,-69.381,152.269,-174.571,-139.009,-178.662,-172.642,128.325,-69.061,116.173,167.59900000000002,167.578,166.74400000000003,72.241,151.139,-173.46900000000002,165.171,165.382,165.22099999999998,77.508,-91.113,-110.996,-177.81400000000002,121.067,121.094,-45.867,148.864,126.594,121.013,-60.559,148.862,-179.43,43.038,169.373,147.14700000000002,-177.71400000000003,-177.62900000000002,167.18,179.38,137.89600000000002,-140.605,-71.718,128.209,148.78,-178.84400000000002,148.789,144.19899999999998,144.17,-15.654000000000002,154.67700000000002,-178.96099999999998,168.763,126.612,123.97,126.953,120.19,51.659,-176.75799999999998,121.916,121.992,142.225,168.487,-175.03799999999998,167.653,-129.924,72.914,121.598,-29.589,90.565,174.9,152.779,153.007,133.667,119.855,152.66,145.59799999999998,167.051,166.967,-65.71600000000001,-115.876,149.89,153.091,171.082,57.448,-25.133000000000003,70.95,-106.48,-85.834,-179.791,147.903,95.127,151.05700000000002,71.043,120.577,2.397,35.379,160.819,160.714,160.855,160.484,-112.648,167.293,160.519,65.418,-85.553,51.575,51.679,74.582,125.74,-175.641,152.678,-71.092,-110.869,126.341,78.824,107.15,-70.94800000000001,-70.985,-71.06,122.511,-23.382,167.171,86.616,-108.379,149.47299999999998,-112.671,-85.773,138.929,-172.933,141.41299999999998,-176.278,-172.067,-20.99,-20.93,-70.377,137.431,154.071,179.65599999999998,-81.547,-134.156,-92.589,179.608,127.046,138.605,-90.85,78.808,-67.997,-77.866,-178.355,169.06099999999998,-175.31400000000002,-77.423,152.205,170.928,-172.113,-44.742,71.811,70.703,141.07,125.118,126.066,-177.479,-68.921,144.692,128.371,-177.49200000000002,-106.048,161.365,150.40200000000002,167.335,-104.263,-172.415,126.544,-103.212,144.44799999999998,166.364,171.84599999999998,-177.553,103.142,169.627,121.699,20.932,159.458,141.703,153.10299999999998,156.096,-175.94099999999997,156.122,156.154,-129.455,156.26,120.295,122.189,-174.233,2.759,-25.135,147.429,-90.45,-55.973,-67.256,-90.645,-29.311,91.88,-174.233,-85.75,170.139,170.10299999999998,-178.148,99.611,99.439,99.558,126.42,175.018,122.073,126.357,138.844,-76.597,122.949,150.12,125.765,-171.10299999999998,-179.745,-179.426,125.633,124.537,126.495,149.785,99.723,153.826,-26.266,-15.094,126.897,-26.142,141.578,-177.97299999999998,99.455,91.93,-71.183,-130.054,99.852,149.917,-27.187,-76.572,99.844,-177.172,-152.27,-138.836,144.792,54.998000000000005,121.93,146.36700000000002,-173.525,51.652,-15.244000000000002,44.185,44.246,-174.352,-174.498,-82.74,-25.983,-10.401,41.102,-82.571,-7.633999999999999,-176.032,-90.855,-173.01,-177.915,142.024,167.475,78.926,153.859,164.507,97.129,-176.613,-111.247,164.769,-29.41,-66.666,-63.156000000000006,149.75799999999998,-174.55900000000003,131.433,153.929,141.751,-179.993,-68.41,-174.88,-174.799,-174.75799999999998,153.47899999999998,130.556,153.81,153.89600000000002,155.355,153.673,-173.608,-71.847,148.947,-105.707,79.93,80.15899999999999,166.134,-26.243,131.512,-173.023,78.831,144.282,142.691,26.734,154.33100000000002,164.375,141.484,149.005,-178.61700000000002,-179.58700000000002,-16.658,-82.697,153.066,140.811,-67.223,179.885,148.809,-26.795,-26.818,-26.527,126.76,126.598,126.637,126.7,126.689,92.269,126.612,126.653,126.603,126.685,78.74,-38.092,126.915,-33.251,142.536,161.372,167.426,167.31,-121.964,126.635,151.805,126.345,126.814,139.78799999999998,167.171,-78.766,-153.642,167.3,-178.601,124.36,-177.885,128.009,127.916,-61.465,127.399,148.968,97.941,-68.65899999999999,140.444,124.885,168.68099999999998,125.874,126.189,34.381,152.797,34.42,152.535,-174.761,-178.00799999999998,-177.986,120.815,127.406,25.45,146.596,-178.394,178.896,-178.68900000000002,148.783,121.111,24.729,-175.84799999999998,146.785,94.652,-69.028,169.002,148.75,-71.545,-173.00099999999998,-178.703,159.185,-75.002,140.099,92.505,39.98,-178.393,99.195,171.926,126.388,120.061,-32.664,-178.942,179.94400000000002,-177.815,-105.228,126.4,-79.033,-75.56,121.976,-102.935,-156.289,167.826,99.419,167.77599999999998,143.501,-99.328,140.361,140.589,28.18,-105.174,28.139,101.413,101.363,-29.397,101.37,-68.325,-178.665,101.366,-28.141,-99.343,-28.025,99.475,99.499,-68.27,-179.305,-71.381,99.526,-178.845,-179.953,159.386,-139.006,105.36,-178.41400000000002,127.669,66.248,-35.037,-173.872,159.531,-127.632,-139.125,122.018,154.634,147.009,-165.574,169.268,-178.27,126.537,-178.593,160.56799999999998,161.451,161.1,160.563,158.679,160.584,123.256,164.264,161.425,164.185,159.833,148.3,159.931,128.539,160.106,-105.27,-133.192,50.92100000000001,130.781,-173.278,147.799,161.395,-70.337,-94.645,167.08599999999998,156.216,-173.736,-4.371,117.517,-138.734,-35.008,89.76299999999999,167.572,-178.918,140.139,38.969,143.351,26.055,-82.309,-153.99200000000002,102.446,137.982,-74.67399999999999,-24.169,-68.811,-67.559,-176.493,-66.312,-79.616,-155.08,-155.083,-28.242,-156.105,-147.44899999999998,148.814,127.342,160.168,-175.208,-177.365,-97.63,-99.25,128.97299999999998,78.80199999999999,159.859,121.476,-15.548,151.316,68.355,-15.546,125.129,94.56,95.635,99.455,128.142,-132.68,71.069,176.78900000000002,176.674,176.81099999999998,122.715,12.927,121.384,139.02200000000002,164.68599999999998,150.695,127.312,126.1,-26.68,121.965,179.12900000000002,128.251,145.11700000000002,152.02200000000002,-104.876,174.33,124.424,154.623,124.379,126.817,125.718,-12.7,-173.929,176.65200000000002,176.674,-93.822,167.187,-27.846,130.028,41.942,41.963,41.812,41.88,21.203000000000003,41.87,41.824,41.87,41.769,41.732,154.459,122.478,-168.095,26.24,-105.667,162.793,161.358,-17.801,152.942,125.263,136.667,-177.64,-178.805,-156.835,127.408,-93.755,128.56,140.316,-103.171,67.6,126.106,-177.96,9.851,-79.76100000000001,-175.805,110.503,110.521,-174.921,-17.063,-70.74600000000001,127.322,-175.8,-173.36700000000002,159.719,51.534,-14.251,-93.671,51.749,153.988,153.62,178.821,102.433,121.971,169.27700000000002,98.822,149.815,98.848,121.761,121.81,169.023,-179.028,-179.234,-179.22099999999998,-179.241,-179.30599999999998,-77.563,171.86900000000003,122.404,-179.009,156.311,150.091,152.407,-121.8798333,-44.928,161.063,161.113,-45.068000000000005,113.99,126.579,78.972,121.435,68.542,128.59799999999998,179.80900000000003,-86.277,143.539,152.828,143.692,162.35,143.458,143.333,143.408,143.412,2.448,2.443,-178.68400000000003,111.962,112.05,-67.954,128.14,162.208,162.13,142.76,143.137,142.997,143.7,143.252,148.713,0.63,143.35399999999998,143.57399999999998,-115.159,142.31799999999998,125.583,162.435,154.31,-65.936,124.743,-19.985,160.031,-178.99,122.132,167.93099999999998,154.107,57.718,148.202,-177.52900000000002,162.592,-19.79,-174.826,126.007,170.701,170.551,48.31100000000001,138.862,114.58,-110.076,-138.836,-73.242,179.62900000000002,178.231,-178.102,167.271,143.089,-74.459,148.211,-173.15599999999998,130.455,58.971,146.38299999999998,93.746,-104.44,126.495,140.917,123.34,168.989,130.827,161.275,162.313,126.729,126.485,126.877,126.951,126.848,131.18,126.873,126.806,126.889,143.291,92.233,126.671,126.794,-28.976,126.847,126.92,126.828,-179.642,126.852,-179.52599999999998,-25.485,96.404,150.108,-155.62,145.78799999999998,-73.445,127.2,-83.954,167.967,-70.507,145.966,127.441,144.439,-172.85,106.442,-69.529,-106.795,92.987,-74.245,-169.446,88.163,-169.38299999999998,95.017,95.241,143.28799999999998,143.306,95.143,-169.236,123.819,-87.48899999999999,126.508,91.971,150.93,150.91299999999998,-177.467,-177.628,-178.085,-177.99599999999998,-178.046,-127.402,-127.443,-177.688,150.609,-178.487,52.95399999999999,142.314,-173.37599999999998,-81.22399999999999,-178.083,96.1,-75.069,119.437,145.46,179.09400000000002,126.712,176.924,-178.30700000000002,151.099,-130.238,110.29,71.25,124.694,124.625,172.798,-71.456,172.595,-80.829,140.916,151.33,-128.92600000000002,-48.919,151.355,-105.583,130.732,147.197,149.43200000000002,176.102,166.385,139.252,153.996,170.437,-116.169,-62.326,66.38,-86.62200000000001,-175.236,165.19,-69.135,-114.726,-64.141,-117.69,-117.697,160.03,121.112,175.16299999999998,175.753,174.16400000000002,66.331,168.063,73.021,73.061,117.44,66.675,-152.96,157.244,168.207,138.654,128.838,-175.032,-174.984,-106.443,165.653,-76.913,39.925,122.62,167.238,-109.035,106.802,141.605,131.595,-179.093,177.197,158.891,165.261,-84.82799999999999,-84.80799999999999,72.942,-84.65899999999999,148.77200000000002,125.606,122.038,146.969,45.783,-72.086,147.664,-86.301,-86.425,-72.97399999999999,147.596,147.553,147.529,147.51,80.72399999999999,147.621,80.906,105.14,-172.12599999999998,147.463,-25.482,-174.213,147.596,-175.955,168.12599999999998,-176.058,129.515,144.048,-177.80599999999998,135.451,-178.71200000000002,139.924,167.278,74.9,-35.286,122.857,123.131,122.645,122.984,123.018,123.441,123.021,123.429,151.178,123.254,-73.303,138.95600000000002,-73.3,100.274,100.245,100.254,154.755,122.825,66.17699999999999,-83.5,-178.021,151.857,1.271,94.308,-112.481,-91.69,-156.858,-156.85,150.164,15.765999999999998,-104.142,-82.62200000000001,168.495,-27.058000000000003,147.586,161.434,146.247,146.80700000000002,130.858,-100.679,141.847,149.775,176.06400000000002,-71.415,70.428,35.891,123.869,161.05100000000002,-178.02700000000002,150.233,-85.475,-69.626,74.363,178.101,127.846,143.841,32.145,147.623,-175.13,179.62400000000002,-163.537,109.043,-97.876,31.829,31.848000000000003,120.363,31.876,130.338,123.371,8.828,-36.963,-177.987,-153.569,-77.229,26.668000000000003,-77.127,26.769,-100.707,140.339,147.722,154.11700000000002,122.776,144.43200000000002,-176.885,-24.419,-71.824,-178.78900000000002,120.264,-77.13600000000001,123.422,138.202,126.396,121.899,121.808,85.07600000000001,122.252,152.082,-176.72,20.528,127.976,65.719,65.548,125.69,-178.855,126.816,49.409,49.799,167.887,-69.128,167.93400000000003,167.93900000000002,146.47299999999998,-176.483,-176.502,131.0,-179.47299999999998,-138.841,-179.332,-84.39200000000001,149.813,124.473,108.12,150.17,150.996,121.5,120.662,-178.903,31.654,-103.127,161.119,166.894,-25.49,-136.47,178.342,178.234,-60.458,154.787,-112.27,70.789,-17.375999999999998,-17.523,143.165,-174.283,121.172,120.412,120.93,120.457,-69.958,121.818,120.838,120.981,-87.38600000000001,121.007,29.595,130.601,120.938,120.919,-179.893,143.75,120.658,-84.546,122.348,127.76,65.508,167.46400000000003,167.40200000000002,-104.519,-88.411,-126.682,166.547,-71.695,105.396,84.961,137.63,141.072,-13.887,-173.572,-103.253,122.954,168.328,126.175,-177.385,60.24,171.138,-28.808000000000003,143.935,169.132,-152.006,65.969,-35.648,-178.90099999999998,-179.706,88.77,161.963,161.997,101.154,78.308,93.975,-107.776,142.289,161.91899999999998,-178.046,-104.266,175.014,144.50799999999998,-77.50399999999999,126.084,110.765,-77.874,-177.553,125.452,-175.735,-47.92,-82.634,140.616,-80.283,-90.129,148.134,148.225,148.174,-69.063,126.506,31.686,155.892,-177.227,66.092,-174.173,139.316,151.72899999999998,123.006,120.909,59.267,-65.029,-164.118,-22.794,51.456,-17.617,146.782,103.796,159.632,177.899,165.984,119.327,-173.632,167.612,130.373,138.643,138.685,167.833,60.906000000000006,-100.795,167.079,145.39,145.27700000000002,160.57,125.215,167.799,-174.646,174.955,175.34400000000002,67.908,-92.058,-66.618,179.02900000000002,147.931,179.135,92.249,155.076,-176.31099999999998,-70.77600000000001,103.781,-173.153,-179.39,153.925,-119.1191667,54.707,70.486,126.462,154.96,-16.426,-16.108,172.65,-143.243,146.894,-70.48100000000001,139.36700000000002,125.636,-104.735,-174.366,-72.619,178.94799999999998,55.462,55.365,169.87099999999998,125.247,-27.538,-85.87200000000001,121.758,78.071,138.637,-138.805,66.092,97.457,97.324,97.291,-26.244,-178.605,97.343,127.01,-174.667,-171.331,150.993,145.791,125.851,-75.574,-175.824,-175.771,-175.77900000000002,-178.99200000000002,16.633,-178.86700000000002,-179.707,123.97,143.466,-114.127,166.7,-28.864,131.37,-177.268,147.415,162.109,142.282,142.26,-173.11700000000002,-173.05200000000002,15.438,121.636,124.034,121.627,142.291,121.625,121.678,-78.982,136.488,43.715,-173.278,51.304,123.188,-81.926,-15.948,121.579,160.716,121.606,70.33800000000001,-177.55599999999998,-174.16099999999997,22.3,-178.574,-177.97099999999998,-69.64699999999999,-84.302,168.03599999999997,167.386,127.387,151.49,-85.765,121.592,127.337,129.542,-70.006,66.777,94.061,178.928,150.967,126.689,174.81799999999998,-105.847,-105.852,-174.149,148.585,-111.805,148.54,148.441,126.731,95.901,-173.53400000000002,151.899,151.83700000000002,151.85,-173.58900000000003,-173.53,105.793,84.566,178.31400000000002,-101.7,154.46,-90.687,151.204,121.346,139.415,121.29,148.33100000000002,170.02900000000002,-129.13,178.838,141.412,139.02,139.20600000000002,139.14,102.63,149.085,125.707,171.701,171.7,129.009,94.223,126.082,70.423,-141.111,-115.893,174.22099999999998,-176.90099999999998,159.139,159.174,-39.854,144.743,179.75,-79.529,-179.55599999999998,159.076,-179.34,154.697,-112.578,124.235,154.328,169.831,126.48,168.493,127.093,-113.022,126.551,-175.45,122.129,70.645,-173.384,128.922,78.959,172.523,-175.83,-84.637,-174.919,-175.03099999999998,-175.05700000000002,-83.34299999999999,102.369,-178.58900000000003,167.023,167.003,167.05700000000002,166.937,-69.90100000000001,166.365,-131.533,144.39600000000002,29.255,-82.561,-26.57,-175.264,-85.184,26.335,-80.89699999999999,-79.774,166.544,154.85399999999998,177.305,121.789,121.826,-70.314,168.015,-80.907,-174.826,-172.59099999999998,95.738,-106.994,152.018,-98.278,147.661,-78.153,-77.13,-77.094,-77.339,-75.51100000000001,-132.516,179.984,-175.521,130.356,157.903,-74.702,151.697,166.787,-88.322,169.055,127.419,128.543,68.273,-179.342,-60.592,-174.953,129.562,143.774,46.416,-83.073,134.43200000000002,-91.652,126.739,-79.747,126.77,-83.51700000000001,126.577,43.673,-77.672,43.764,43.899,-82.61200000000001,147.213,154.912,-151.41299999999998,-173.90099999999998,-77.281,139.585,43.247,-82.41799999999999,140.07399999999998,144.981,125.328,125.253,-177.868,144.714,125.325,-156.267,-74.458,-174.14700000000002,-67.18,47.487,82.824,142.715,119.78,122.957,123.009,-178.457,126.539,-43.821000000000005,-70.70100000000001,-82.694,-138.79399999999998,-161.606,-161.827,130.599,-140.93200000000002,179.924,-74.801,103.914,122.533,-176.218,95.11,-45.368,-103.021,108.249,-178.40900000000002,-78.884,143.329,-175.717,-175.986,44.00899999999999,-24.183000000000003,120.522,120.355,-25.452,125.855,120.585,149.285,-24.837,-177.792,122.787,122.882,-89.618,-108.549,-63.349,-63.272,-137.00799999999998,-108.233,-118.0,-117.993,-114.234,-13.562,-75.016,99.843,-179.12599999999998,124.689,124.681,135.864,114.673,145.796,-72.187,126.623,167.518,-65.524,93.874,21.057,-125.641,154.933,71.119,150.79399999999998,-130.162,-104.094,121.76,94.112,22.407,-161.654,128.434,125.983,95.932,130.227,44.066,-95.046,-101.39,-90.555,-73.945,174.4,-85.26299999999999,129.08100000000002,-80.916,-174.396,95.374,141.04399999999998,161.659,122.631,-179.185,130.32,-14.255,-34.944,-169.296,167.607,-72.233,-72.29899999999999,168.01,-170.78900000000002,-125.8455,-69.94800000000001,-124.2858333,-125.856,-179.79,166.86900000000003,130.368,-174.174,-80.877,144.635,94.531,94.609,133.208,179.639,-115.975,-177.74900000000002,139.709,3.604,95.402,138.778,-116.001,-115.992,120.404,-179.83599999999998,175.053,143.92700000000002,-178.199,144.00799999999998,-116.021,-69.936,167.139,-90.986,100.063,-173.00400000000002,158.62,-173.245,150.959,-178.59099999999998,-178.713,161.064,167.94099999999997,167.887,168.15599999999998,149.049,31.293000000000003,-174.535,153.07,166.673,127.727,-122.633,158.442,158.599,158.356,130.043,135.375,-173.55599999999998,-43.551,-177.56099999999998,122.127,149.595,117.17,78.774,166.403,178.34799999999998,144.351,145.668,152.691,-67.4,-25.37,167.99,153.899,-173.187,134.30700000000002,122.105,-177.981,-177.731,152.782,50.218,148.19799999999998,-105.904,146.444,66.16199999999999,-177.877,128.55,102.806,-26.183000000000003,-177.393,-105.586,142.57,158.32,126.371,176.755,-123.371,-77.442,-80.956,178.385,-177.83700000000002,126.832,174.17700000000002,-114.939,-176.0,142.523,154.80700000000002,49.603,21.115,-69.288,178.715,-174.24,93.986,80.40100000000001,151.391,62.974,151.554,81.632,-175.12400000000002,-116.017,171.044,168.02599999999998,152.516,151.56,151.636,151.53,151.775,151.707,151.571,151.643,151.27,151.42700000000002,-177.921,151.366,-70.422,155.054,151.499,124.075,151.17600000000002,150.99200000000002,-128.77,-128.71,179.87099999999998,151.248,151.02100000000002,151.079,152.083,151.718,151.96200000000002,110.209,151.734,-109.693,-176.4,-25.266,157.894,98.15,-24.614,150.344,150.404,150.24200000000002,-25.325,132.727,-129.233,-73.832,123.462,-109.355,127.442,86.964,-178.717,127.373,-77.041,-70.618,65.994,139.405,140.308,20.324,74.529,-68.032,63.141000000000005,148.528,142.9,139.644,139.406,139.704,150.79399999999998,-178.12,-170.225,-92.591,66.825,103.156,95.521,103.162,146.572,152.968,124.827,-173.071,166.31799999999998,-165.734,146.338,124.482,158.123,170.412,142.519,-177.108,145.245,-179.533,147.613,128.408,-92.216,57.764,147.576,-69.92399999999999,141.24200000000002,176.363,159.886,159.876,167.179,149.058,149.102,-172.891,147.882,42.812,159.619,-84.323,146.316,150.215,148.911,146.734,170.93400000000003,-178.945,39.605,152.394,123.562,39.929,-177.312,-92.867,120.827,-27.121,-18.507,117.464,-124.357,127.008,176.97299999999998,159.435,-179.72299999999998,94.586,-173.988,147.128,-173.542,171.386,-116.107,-113.744,129.023,-17.164,-17.351,-34.047,151.164,-69.612,-178.365,166.051,80.661,166.324,155.77100000000002,-86.366,-130.092,97.741,-129.918,131.005,168.12900000000002,168.264,168.31,-174.43200000000002,131.39600000000002,94.898,-176.049,122.586,-68.479,149.085,103.001,102.881,121.594,170.50799999999998,130.165,-116.317,-130.907,131.364,98.904,98.852,144.849,66.065,141.009,-109.735,-124.22866670000002,123.054,-124.566,-124.555,-87.09100000000001,124.054,166.02900000000002,125.126,26.655,-175.146,-71.59,130.22899999999998,126.103,144.7,72.913,-153.482,-175.93099999999998,-78.748,-172.36700000000002,-175.94400000000002,-176.71,-177.87900000000002,147.572,72.429,-178.46900000000002,169.079,177.852,-76.108,105.284,126.645,126.762,153.237,-72.018,-82.311,55.594,159.316,125.544,71.317,88.81299999999999,141.75799999999998,147.236,117.604,141.738,-71.942,175.66400000000002,-105.89,147.798,144.221,141.905,-89.99700000000001,-176.118,139.734,-77.872,-30.261,135.834,165.239,173.727,-178.162,155.562,121.409,141.731,127.494,141.59,-92.931,141.596,170.803,141.122,140.69899999999998,155.377,92.787,92.844,128.094,178.743,-104.682,128.05100000000002,-88.25200000000001,124.04,126.954,-176.365,111.1,178.521,110.567,124.172,124.089,124.115,140.885,125.687,-177.743,95.932,154.04,123.03,142.263,-57.074,-70.65899999999999,176.861,-21.969,147.009,129.088,172.33700000000002,-101.22,-174.726,-175.467,-173.446,102.974,-176.71599999999998,-178.862,-82.34899999999999,-80.592,-116.437,-116.408,-116.323,-116.852,-116.827,161.44,-87.507,-116.403,139.455,-178.592,-111.131,149.482,-178.41299999999998,-118.067,142.031,149.56799999999998,122.005,157.626,-76.602,125.455,151.063,123.19,121.442,143.225,-106.042,150.286,-78.55,-177.456,147.85,143.191,143.33,143.02700000000002,143.222,143.026,143.19899999999998,143.178,143.124,165.298,142.95600000000002,-175.28099999999998,143.15,143.283,143.011,137.306,5.523,143.744,24.39,149.93200000000002,166.229,143.012,-25.105,146.89600000000002,157.13299999999998,127.496,-128.438,143.282,143.501,90.163,-72.095,-67.38600000000001,-178.28099999999998,-179.18900000000002,127.582,121.748,164.269,-177.21400000000003,-127.014,166.58900000000003,-106.363,102.81,122.282,135.15200000000002,-142.846,-179.997,126.36,-87.309,125.186,-1.048,-87.40700000000001,141.641,141.69799999999998,148.875,-75.607,146.66899999999998,-68.783,-178.324,-174.922,73.575,73.543,73.264,73.237,130.52,140.66,-26.552,153.561,160.204,-174.947,66.74,-179.52599999999998,-13.562,137.975,-178.71,121.685,-87.34,-87.44,-87.931,112.138,-113.47,-113.472,-86.84,-86.725,142.563,-87.319,-87.45700000000001,-173.312,-82.58200000000001,7.286,178.877,-174.97400000000002,-86.494,167.817,-175.09799999999998,-174.87,26.651,-104.65,174.4,-86.72,117.771,166.672,-178.763,-100.224,-86.757,167.269,-87.616,-13.585,130.22899999999998,26.718000000000004,-25.971,154.359,-175.768,-87.57600000000001,-27.643,-17.594,78.298,129.118,-71.589,129.245,129.314,-157.299,-90.675,169.043,122.648,-178.63,-178.037,-178.175,-178.209,-51.661,-177.997,-74.911,-51.684,-177.55700000000002,151.175,-177.872,-176.86700000000002,168.94799999999998,153.167,31.144,166.71099999999998,-178.014,-179.855,169.553,169.47299999999998,-76.806,117.093,130.214,-76.862,-76.744,105.602,-76.775,-82.934,169.593,166.303,-176.054,144.174,-177.205,-177.271,-177.0,-177.074,-4.3180000000000005,-77.193,152.616,152.639,152.661,122.56,45.104,-177.074,-177.27900000000002,152.63299999999998,-177.06599999999997,-177.215,-177.352,154.684,124.006,138.975,-4.372,141.262,141.256,-27.629,154.57299999999998,-102.281,167.641,-71.565,167.602,152.575,26.998,-179.703,-70.38,-26.979,-177.611,160.688,141.56,156.216,-179.238,-51.727,70.852,-178.104,130.616,-173.81900000000002,167.10299999999998,22.452,110.423,22.491,-175.93200000000002,-26.405,-25.49,-173.77200000000002,72.635,179.11700000000002,-101.323,122.828,102.16,128.548,128.541,166.497,166.34400000000002,128.756,-71.992,128.77,-34.584,169.234,174.30700000000002,-151.194,-9.878,72.194,57.291,72.185,147.145,168.012,-103.836,93.479,-142.556,167.96099999999998,141.684,121.896,122.002,121.928,178.761,170.753,179.59,179.553,126.581,61.441,147.144,72.918,166.29,158.411,179.56099999999998,130.393,179.067,130.55,-68.808,130.417,126.581,-173.128,152.834,-78.064,-178.282,-19.318,142.32,113.05,122.914,123.987,159.041,142.421,-178.025,154.003,86.45200000000001,119.679,129.512,128.094,-174.866,-16.972,-178.07299999999998,-178.074,-179.987,49.351000000000006,-178.113,-26.205,-82.564,-82.541,-27.203000000000003,-76.583,139.505,144.165,143.691,-26.177,145.734,90.373,34.996,133.465,125.196,126.072,97.633,-178.178,121.377,128.566,125.638,121.709,-161.63299999999998,73.189,-173.498,101.062,86.132,-176.87,145.391,123.072,141.923,-24.277,141.985,141.882,-25.765,137.245,101.916,-29.666,141.938,105.262,-176.924,166.387,150.60399999999998,-19.454,-174.838,127.636,154.125,154.061,154.064,-68.38600000000001,-177.218,142.333,156.19299999999998,138.536,122.303,147.25799999999998,175.009,174.872,-113.122,164.18099999999998,163.921,-177.355,163.386,164.40599999999998,163.298,131.616,146.999,-25.709,-25.719,-172.71200000000002,149.43,-178.252,-178.19,-178.43,38.799,-70.918,41.987,-74.939,22.155,-70.96600000000001,141.55,-27.803,87.333,-178.528,-172.889,-114.991,143.467,-122.61,-122.6065,175.00099999999998,120.484,27.396,-67.325,179.24900000000002,-100.91,-177.53799999999998,-177.07299999999998,-171.921,-26.312,-26.344,-26.352,-26.203000000000003,-13.591,120.51,-129.65,176.542,126.518,-168.825,-14.293,-178.092,-155.086,-178.864,-177.39700000000002,-76.53,-133.868,128.204,144.086,-178.699,179.84900000000002,-172.96,145.753,147.761,-27.142,127.269,-14.5,-24.491,-27.794,-175.88299999999998,-26.302,-176.67,153.513,-71.485,-118.037,-99.885,-70.464,126.57,-177.812,135.481,-160.458,169.507,126.641,-98.417,-98.395,-176.637,-131.925,-178.669,-173.332,124.846,-160.03799999999998,151.985,152.083,-117.774,152.141,122.45,-178.142,121.992,-90.952,124.793,167.91400000000002,-66.631,-66.543,167.12,-160.513,151.832,-178.271,-77.514,66.47399999999999,-155.171,-26.476,142.703,150.514,127.207,127.248,124.208,174.838,-77.211,33.954,-178.74400000000003,179.597,167.299,126.512,142.493,128.497,-175.928,146.595,141.529,-15.695,157.829,-69.234,-176.082,162.937,148.095,-87.52799999999999,135.118,157.692,155.476,163.113,127.867,145.459,-176.991,-176.86900000000003,-176.753,-176.88099999999997,-176.893,-176.803,-103.627,-176.643,155.776,-56.376000000000005,-176.419,-176.62,-159.578,152.775,172.957,-11.422,-112.393,-102.91,138.808,-111.888,127.992,123.674,169.294,172.317,167.929,-177.486,-83.62200000000001,-70.166,154.156,139.197,139.167,139.183,139.28799999999998,145.63299999999998,21.756,-71.994,-71.59100000000001,126.678,-172.595,-16.71,-97.976,-90.771,-71.21,-119.333,144.261,70.416,-178.104,127.714,167.05599999999998,162.315,154.132,31.69,131.418,-130.797,34.553000000000004,34.668,99.615,151.7,-178.333,125.612,179.84599999999998,139.839,120.368,144.80100000000002,145.657,145.66299999999998,70.711,70.868,166.92700000000002,177.553,-27.533,166.857,145.651,166.518,178.51,-25.956,179.892,144.972,145.531,-171.217,126.807,126.743,142.743,-173.19299999999998,143.064,96.032,-178.023,-90.701,-79.958,178.265,154.19299999999998,94.668,129.56,141.611,102.567,96.122,-92.732,-92.713,-176.732,-92.854,70.812,122.528,153.231,-179.44,-27.332,-92.805,-92.764,-92.645,142.58100000000002,-76.318,-71.565,121.446,-92.312,-90.429,-177.27900000000002,149.908,-177.136,-177.078,-177.108,-86.321,-177.042,-177.095,-93.114,-177.081,-177.28599999999997,-177.243,149.036,126.77,-92.703,71.592,139.154,-93.162,-93.325,-29.354,102.829,-122.0,-122.0266667,-122.02,-122.0583333,-105.723,39.638000000000005,154.901,138.222,145.016,132.121,-51.621,147.601,167.667,121.528,-18.385,149.34799999999998,76.45100000000001,-94.698,88.663,88.605,148.805,88.69,137.671,-174.301,88.695,128.965,-102.778,150.037,153.316,-178.726,137.832,121.484,154.934,146.02,146.153,146.061,139.904,146.202,123.447,163.268,-65.971,151.901,-138.909,-26.557,125.396,-98.717,-128.041,145.933,145.99,146.016,98.655,-177.87400000000002,-93.729,-178.18400000000003,121.785,-176.231,-68.232,161.21,67.916,145.912,148.339,-177.50599999999997,53.744,-177.02900000000002,-177.446,153.14700000000002,-90.437,-177.976,-98.638,158.64700000000002,169.725,-68.571,67.219,124.033,158.659,-164.16400000000002,-93.972,-34.703,-153.003,126.229,-86.135,170.09400000000002,-13.264,158.148,141.164,110.267,126.477,-18.158,75.533,-177.048,-25.685,179.308,114.201,-20.446,131.256,-71.913,154.916,122.702,125.995,125.891,-179.575,121.282,123.035,125.939,125.925,-173.83900000000003,-82.49700000000001,-173.451,-173.491,168.93900000000002,171.382,-173.88299999999998,131.34,-178.646,125.267,169.78900000000002,169.68,169.857,169.75599999999997,78.793,148.518,-126.768,100.104,164.222,135.145,135.22,145.60299999999998,145.631,15.145,159.019,98.601,-69.446,97.203,21.945,75.493,-26.397,126.845,-173.926,-118.537,-118.493,-118.7,-118.698,135.97,-178.495,121.811,-77.05199999999999,127.733,103.664,154.36,149.791,-41.715,143.66899999999998,-177.58900000000003,-155.28799999999998,163.863,161.167,-110.976,166.96099999999998,84.49,-174.153,30.037,-170.145,-19.22,140.644,-174.09099999999998,169.169,154.122,-128.798,169.361,-89.421,168.917,158.894,169.393,104.302,168.886,100.164,168.866,178.273,168.90599999999998,169.011,168.89,168.134,168.875,168.925,125.838,152.025,152.083,96.232,169.072,126.475,-25.627,120.787,170.509,-113.656,60.596,60.519,-97.182,-174.287,146.89600000000002,60.495,-174.287,-174.271,60.549,60.562,-129.94,52.617,-113.701,140.1,154.986,159.60399999999998,-178.41299999999998,-178.257,139.167,150.503,-86.89299999999999,-94.273,-23.929,-23.569000000000003,-92.428,-88.083,159.3,122.367,52.427,-109.109,159.29,164.105,-172.704,126.254,-179.533,-178.982,-172.26,-177.495,78.528,168.233,-173.014,-178.15200000000002,141.505,96.867,167.81599999999997,143.683,-92.004,126.852,42.859,-174.175,123.628,135.968,129.77100000000002,155.885,144.561,-71.247,127.382,155.19799999999998,20.617,167.51,154.934,-178.8,-70.459,-178.40400000000002,154.067,154.12,167.537,167.609,-178.69,43.014,113.058,167.991,-173.667,119.545,154.128,-74.756,-63.252,131.292,67.163,-85.978,97.487,-90.959,-60.758,168.265,-18.55,153.099,159.99,-173.356,147.094,-99.203,99.731,-69.792,120.322,-63.096,120.603,99.77,99.669,-109.294,123.189,169.736,99.521,99.618,149.401,-178.37599999999998,124.766,124.816,128.829,-66.852,-100.527,122.535,122.526,24.727,-172.325,122.56,26.542,-74.735,122.448,122.543,161.16899999999998,135.489,142.372,138.805,94.279,61.528,-4.103,142.30700000000002,94.16,-108.354,-72.033,112.835,112.998,-78.778,112.962,112.892,112.897,70.07,113.588,112.81,113.366,113.225,113.199,121.905,113.398,113.492,112.654,129.099,-76.057,-85.89,-67.553,-68.439,124.281,113.623,88.71,140.7,113.491,113.569,151.841,128.16899999999998,113.621,126.305,113.66,113.686,113.749,128.125,-70.294,171.658,113.632,171.611,52.614,-176.74900000000002,175.22,-176.84400000000002,-98.189,-86.208,93.673,71.13,53.383,135.878,163.063,-178.695,-178.729,131.10299999999998,-82.289,-97.322,-177.472,125.322,65.67,125.929,-95.101,-70.92399999999999,167.518,167.37900000000002,167.24900000000002,127.77,167.452,167.366,-163.814,125.615,167.38299999999998,-177.31799999999998,112.939,-175.47,156.765,132.865,132.31,158.417,-61.367,-173.03,153.983,-172.967,167.574,-25.497,-27.365,113.59,100.224,-168.333,167.739,48.369,158.04399999999998,93.981,-179.925,131.575,174.05599999999998,-179.294,-128.15200000000002,-176.916,-179.172,-68.369,95.2,94.382,168.46,167.18900000000002,-25.538,-176.708,-173.768,150.10299999999998,150.011,142.075,-71.594,-60.739,130.194,142.46200000000002,31.751,-0.106,150.221,150.158,150.279,-63.42100000000001,96.415,149.325,149.17600000000002,117.9,166.452,179.99200000000002,91.814,-104.892,126.729,129.239,-95.844,126.234,150.061,-19.172,150.11700000000002,-173.34,124.111,146.013,-126.3028333,166.24599999999998,21.196,-172.905,130.79,-111.028,173.64,155.226,179.537,166.234,164.86,126.173,126.599,-108.722,166.69,-71.706,106.476,-119.65,-119.652,-172.99,-172.99,129.91,-76.678,174.687,-71.658,-172.998,-8.769,118.711,-71.68,126.748,-71.836,148.537,-79.185,178.388,110.352,110.364,102.2,-179.293,-178.475,167.805,167.68200000000002,167.83,147.321,147.187,147.576,147.76,147.999,147.908,147.21,147.991,147.90200000000002,147.445,147.504,147.292,147.138,121.479,148.078,148.088,147.4,147.45,147.44899999999998,147.336,148.061,-141.923,147.289,88.75299999999999,146.866,127.98,147.916,148.033,148.063,148.237,147.341,-173.89700000000002,-71.447,124.538,124.529,155.781,127.912,152.148,-75.775,149.167,147.097,159.453,-70.811,-175.058,69.708,70.957,126.023,-127.427,179.33900000000003,154.48,-103.755,122.208,26.738000000000003,129.446,96.192,-83.323,-172.88299999999998,67.947,118.643,166.247,-71.334,-172.02700000000002,157.858,141.311,-71.335,126.98,147.144,154.186,-72.535,121.067,121.184,110.186,154.92700000000002,-142.612,147.483,159.71200000000002,172.748,135.93200000000002,97.591,96.657,147.293,159.45600000000002,169.12599999999998,119.324,138.688,159.833,-75.294,-66.639,130.94,120.844,-70.59100000000001,-101.384,-179.112,-69.598,119.199,-98.443,130.534,159.411,128.158,-80.185,177.523,139.842,-176.715,-178.703,143.412,-178.63099999999997,103.933,-178.351,-124.31,179.86,145.724,149.584,143.41899999999998,143.612,143.486,143.626,143.546,143.215,142.687,179.862,143.636,143.583,142.109,80.663,145.363,152.749,142.546,143.549,-178.106,-65.883,-123.232,168.90200000000002,-25.319000000000003,126.179,142.175,142.364,-90.563,141.343,109.153,142.484,-179.53599999999997,-90.567,147.033,147.029,-178.273,128.46,152.04,179.168,179.165,135.018,-179.236,167.40200000000002,146.971,128.26,-72.916,162.145,146.8,-91.868,125.998,126.882,146.72,129.113,-177.929,-72.965,-176.512,-176.472,-176.457,154.49200000000002,-176.548,-176.53799999999998,-92.911,-91.72,134.476,148.139,141.15,-18.458,-42.559,148.795,155.666,66.082,-82.666,178.752,178.81400000000002,178.84400000000002,178.733,142.167,178.81599999999997,-76.622,178.59099999999998,-112.002,178.602,-68.76100000000001,165.153,-81.57600000000001,-76.109,-153.127,178.62900000000002,127.512,127.444,127.429,127.357,127.391,127.438,127.492,-67.688,139.174,148.031,92.371,145.875,126.265,-125.7566667,146.833,127.62,76.172,151.52700000000002,143.661,121.614,143.572,32.279,-112.629,-178.06900000000002,-81.86,155.004,155.00799999999998,-175.486,118.226,-59.559,143.484,148.079,146.731,134.377,95.845,-64.817,-161.339,-176.477,166.821,-108.946,135.013,135.109,116.494,-118.778,135.255,-177.794,174.019,-72.956,169.077,-72.964,155.503,-176.93,166.123,-28.214,-161.393,-79.492,-100.755,137.536,135.012,-175.162,159.043,122.289,-26.129,-178.77,-38.623000000000005,126.975,166.23,-26.733,-173.52900000000002,-173.421,-173.31900000000002,-173.359,170.083,142.691,159.046,126.933,170.43400000000003,124.261,170.54,-103.347,-20.074,-77.507,159.578,156.612,-38.576,-27.425,166.271,151.283,140.457,151.444,-136.596,148.144,126.777,125.688,125.656,125.564,125.58,125.92,161.885,125.86,179.71400000000003,125.396,123.818,125.84,125.386,147.417,125.345,-85.031,167.2,-174.33700000000002,148.004,148.07399999999998,125.982,176.985,161.399,-76.917,84.66,154.042,128.47799999999998,125.297,125.238,118.915,-172.798,111.034,168.77900000000002,95.294,-173.266,148.327,126.059,125.962,-134.304,21.695,108.903,125.127,88.82,70.893,-178.761,169.9,170.047,170.312,96.457,147.844,170.167,170.108,155.016,170.35,125.71,-21.996,147.536,120.505,-27.736,-102.647,-176.468,-87.935,170.01,170.12400000000002,151.507,-176.33,141.736,-3.361,-150.119,139.805,125.701,147.33100000000002,143.364,57.93899999999999,142.827,-176.003,-175.875,121.434,-175.972,-71.217,164.00099999999998,-104.025,171.511,-31.548,67.937,-107.42,95.943,143.57299999999998,-71.296,120.852,131.235,-67.98,125.859,69.68,-88.885,-88.36,-88.339,22.283,-31.203000000000003,-178.01,123.008,-95.391,-176.384,154.766,-77.53,89.949,168.108,-177.263,153.93,150.458,121.7,-27.907,-27.899,-34.342,-27.995,-27.962,-81.719,66.87100000000001,127.467,154.446,169.287,103.099,-110.228,-110.265,-27.654,135.161,-177.58900000000003,-177.627,-178.12400000000002,170.593,9.114,-177.468,137.127,143.352,62.4,-163.74,-176.31599999999997,99.159,141.689,99.196,116.977,170.865,125.058,170.641,170.791,-177.547,170.845,135.266,151.03,169.783,153.237,154.51,137.911,103.123,130.622,-41.212,-174.74200000000002,127.681,79.22800000000001,-175.394,-111.993,126.656,138.381,-70.294,-70.676,-70.318,-70.27600000000001,-70.715,-70.79899999999999,129.38,-70.609,-78.264,-70.67699999999999,-70.405,-70.571,-70.58800000000001,-69.23899999999999,-70.403,152.88,177.893,-10.778,147.27100000000002,-151.161,143.77,169.14700000000002,-70.15100000000001,170.813,138.474,149.13,151.515,179.054,-112.764,-112.634,154.178,167.148,153.447,179.362,153.935,153.83100000000002,153.773,128.067,153.592,154.347,175.998,154.213,88.8,154.3,170.43599999999998,153.447,154.517,154.394,71.12899999999999,-28.832,-28.659,153.755,-75.577,153.012,153.969,-177.37,145.218,-141.654,145.047,145.123,145.042,145.089,-177.85,-175.40900000000002,153.541,126.935,121.548,-110.284,99.467,-174.354,-173.46400000000003,166.426,-174.287,123.235,-172.891,-94.253,-122.267,-122.419,67.322,-69.32300000000001,-101.452,-179.347,-178.96599999999998,-98.597,155.207,-104.034,-74.167,66.707,128.968,123.787,-178.544,-68.672,174.168,-117.64,-117.638,146.543,-90.565,160.804,146.635,104.062,-128.003,-78.581,-173.757,130.493,19.424,143.334,166.997,-174.14700000000002,157.341,142.983,30.134,139.04,-25.128,-174.93400000000003,-77.881,-77.777,-77.851,-71.937,-173.416,127.417,172.412,-104.37,-148.57,-148.565,-175.921,139.08,101.436,-77.82300000000001,72.153,156.275,-144.213,170.176,-104.205,-104.017,-70.46600000000001,-106.266,158.28,140.25799999999998,-177.52200000000002,154.556,154.631,-70.471,70.387,130.175,-104.989,130.211,130.156,130.148,129.954,129.986,145.54399999999998,-93.469,153.31799999999998,98.668,167.294,102.227,123.667,173.965,173.84900000000002,154.966,51.875,125.975,125.886,-179.387,-98.376,-173.481,-71.39,-71.417,130.05200000000002,159.701,130.29,103.22,-29.24,-170.801,-176.4,95.05,121.678,151.406,126.647,-173.47299999999998,-173.502,114.495,150.759,145.247,153.34799999999998,126.877,-79.92399999999999,-175.946,-176.65900000000002,-71.947,34.799,95.915,143.274,34.749,171.793,149.10299999999998,117.327,126.187,166.49599999999998,79.92399999999999,149.143,-176.275,-70.933,145.619,-81.702,149.342,-104.0,149.237,149.375,149.439,149.3,148.989,149.314,150.208,150.674,150.061,150.015,150.30100000000002,150.485,149.49,149.851,150.309,149.722,149.64,150.033,167.509,124.67,127.331,40.153,149.334,149.317,168.80599999999998,24.103,149.52700000000002,3.488,150.328,149.74200000000002,149.80100000000002,-178.077,-105.471,26.714,-105.534,-105.517,-12.657,-179.388,-107.054,129.392,-32.113,97.351,-175.80700000000002,140.233,121.103,-176.794,70.215,-176.828,129.151,-174.53099999999998,151.474,-25.51,-70.10600000000001,-150.605,-104.646,143.339,143.232,143.19,160.45,-174.234,119.931,119.838,159.586,119.912,119.896,-27.072,151.018,-178.84400000000002,155.843,142.738,150.191,133.564,158.69299999999998,119.58,170.797,130.215,-177.493,-177.32,140.06799999999998,171.21900000000002,157.885,-78.748,141.65,-25.901,-102.129,126.416,147.775,-178.253,-178.298,149.372,149.37,-178.34900000000002,146.273,141.58700000000002,100.276,100.299,-179.50400000000002,-179.692,154.85299999999998,100.284,120.115,120.187,-156.47899999999998,122.431,149.892,149.47899999999998,146.629,118.67,150.374,140.446,-179.41099999999997,-15.279000000000002,-173.218,142.38,136.952,136.569,137.188,136.588,136.766,125.194,154.755,135.84,136.088,136.225,135.756,136.464,120.754,135.541,139.743,-14.273,-14.232,-75.283,-179.46599999999998,169.217,-79.587,-71.671,148.542,137.346,-98.07,-175.894,-97.93,-91.063,-97.807,57.059,167.468,126.048,40.337,-84.12,146.565,136.563,-86.85600000000001,-86.896,-86.772,125.167,-172.65400000000002,122.215,122.241,-174.864,138.987,-70.285,124.622,136.863,152.68200000000002,148.009,147.829,-24.374,-69.425,88.14299999999999,126.542,-17.261,138.944,167.297,147.904,147.80700000000002,76.696,-109.329,-97.306,167.912,178.695,178.889,-179.21200000000002,-13.69,-174.81099999999998,164.87599999999998,146.006,-98.079,-87.935,57.805,147.009,-168.778,-168.762,-78.737,122.195,126.186,-14.454,-125.666,-168.639,-168.734,149.434,149.44799999999998,165.644,-93.471,-93.53,165.671,126.286,120.407,143.844,126.218,149.184,154.858,161.83,-174.136,161.543,94.513,154.861,154.832,-177.03599999999997,57.331,87.279,124.982,-70.093,-179.692,-178.42,164.06099999999998,129.05100000000002,-101.363,-178.36,-74.362,179.05599999999998,28.042,-168.364,-79.34100000000001,154.999,154.78,154.84799999999998,154.895,154.934,154.577,120.6,154.816,154.833,155.282,109.661,146.308,146.256,-86.296,178.755,126.558,142.967,147.607,-179.384,-74.467,-2.271,135.856,155.03799999999998,154.859,-178.546,135.814,122.564,-77.584,171.475,-26.311,147.998,-112.055,-41.973,-42.254,128.484,157.17,157.19799999999998,157.239,153.722,-114.775,146.873,101.934,169.175,80.666,88.69,-178.128,145.458,123.299,167.13,-177.632,-176.484,-176.847,-176.759,-177.041,-176.25599999999997,-176.18200000000002,-176.46,-68.281,125.154,125.2,-178.21400000000003,-178.22799999999998,-176.1,-178.31,149.06799999999998,125.055,122.589,178.118,147.783,159.119,8.8,159.239,134.619,159.54399999999998,159.509,139.747,139.526,-175.213,-175.18,139.126,139.268,159.812,-127.084,125.541,88.189,-70.405,141.564,160.898,128.35399999999998,147.657,142.83,157.752,-171.146,145.628,-100.965,164.998,120.254,159.442,27.103,-177.643,120.671,-88.723,120.45,120.459,-177.199,-177.25,-177.162,-126.2343333,-113.538,-177.465,120.196,122.282,119.954,151.305,88.178,65.547,122.939,161.445,-177.171,-173.12599999999998,-81.001,-178.31,-175.46099999999998,-167.09400000000002,125.677,99.675,155.63,151.157,122.598,152.131,140.53,140.556,99.622,140.628,166.692,125.094,125.017,170.351,127.397,-13.2,35.34,35.37,166.838,-25.026,-176.28599999999997,-30.021,-178.36700000000002,80.416,-82.637,155.315,123.275,155.355,-104.37,-104.143,-78.67399999999999,-91.281,-179.792,78.486,-12.724,161.345,149.942,-84.31299999999999,-29.087,151.485,167.331,-178.218,166.618,143.809,155.66899999999998,2.8760000000000003,139.931,-84.266,-113.436,-113.099,-113.083,120.453,17.936,121.498,155.82399999999998,155.887,-126.408,155.828,155.67600000000002,-178.53,-73.04899999999999,127.254,-179.097,-71.56,-104.642,130.726,120.098,140.94299999999998,165.922,122.795,70.706,165.991,154.799,146.351,17.82,-26.37,147.213,141.42,168.688,126.256,-85.471,179.78599999999997,126.293,126.284,126.334,126.544,9.696,126.643,126.529,146.174,-67.531,126.593,123.478,-61.443000000000005,100.373,126.406,108.725,-86.47,125.369,-17.566,160.005,151.828,151.811,58.066,-110.862,-76.813,125.484,151.168,120.406,-86.072,39.181,-44.966,-127.88,-179.577,96.025,152.534,-129.605,32.126,32.208,32.214,97.943,155.471,155.393,155.351,155.488,155.56799999999998,147.106,-152.953,125.945,155.42,131.093,126.221,137.403,165.014,131.804,131.615,131.468,-178.51,131.593,-177.35,-115.855,-145.359,126.195,149.461,-173.229,-69.98899999999999,-176.165,-176.118,126.387,126.396,149.525,149.476,126.322,117.301,126.399,126.414,126.42,126.248,-77.393,-127.356,179.998,126.36,126.622,143.53799999999998,-177.72400000000002,126.34,126.31,-179.22299999999998,179.38299999999998,126.185,123.291,126.321,-179.049,95.013,-75.675,-75.609,-75.556,-75.692,-75.414,-75.512,166.46099999999998,-13.836,-75.74600000000001,-75.47,-176.62099999999998,-75.479,-176.342,127.434,-176.3,-176.18900000000002,-176.217,-86.052,-179.704,78.133,141.132,120.527,96.675,127.435,126.463,146.625,146.868,139.66299999999998,140.116,-24.17,-177.774,-179.675,170.30700000000002,131.314,-172.275,139.48,167.34,-92.202,125.201,-177.555,-151.77700000000002,107.489,-42.855,-30.039,-88.926,125.144,103.195,-171.609,104.104,126.157,-88.789,-32.001999999999995,-80.727,165.317,-88.92299999999999,-70.683,-89.955,139.767,138.92,-175.32,38.712,-19.943,151.357,138.938,178.144,138.95600000000002,131.066,128.105,155.304,-92.971,123.823,-174.838,80.532,-37.284,74.28399999999999,131.542,-102.756,32.326,147.07299999999998,-102.675,123.542,129.953,-13.451,108.403,121.419,-178.22400000000002,76.998,-98.035,-124.3791667,35.951,-65.719,153.836,166.37599999999998,-173.81900000000002,57.295,57.291,-173.28900000000002,158.957,95.819,-76.27600000000001,161.941,119.51,171.338,117.413,-76.494,141.065,142.74200000000002,149.167,-179.58900000000003,-43.612,165.753,169.615,100.282,-174.872,68.208,67.977,147.876,48.05,76.839,156.405,139.03799999999998,129.143,68.79,166.452,-175.895,-71.14699999999999,43.55,-71.14399999999999,-178.863,-177.732,126.345,127.647,-97.671,149.90200000000002,145.445,137.445,-62.839,105.514,-173.898,68.02199999999999,179.62400000000002,157.786,137.07299999999998,168.736,-41.542,125.884,-70.548,-105.265,-71.295,179.533,130.429,128.237,179.338,-173.34099999999998,-178.09,170.86700000000002,-82.40100000000001,-69.52600000000001,-69.347,-60.942,-173.718,130.089,147.408,128.54399999999998,76.865,76.998,-86.61,125.299,-105.045,-171.408,-106.41,-60.785,120.953,128.517,76.941,128.5,-178.36900000000003,164.21200000000002,-71.255,-86.84200000000001,76.992,-91.406,-158.80100000000002,56.894,-143.739,125.821,-69.984,124.073,166.676,166.46400000000003,166.541,166.34400000000002,166.832,166.455,166.426,125.715,166.52200000000002,102.144,-60.892,-60.957,166.45,166.78400000000002,166.39,144.901,153.066,153.108,-10.04,139.709,168.72799999999998,166.465,42.68600000000001,153.877,-107.35,-176.50799999999998,-179.382,-60.975,119.889,92.25,-175.833,-170.799,-87.204,117.769,144.704,59.809,101.547,-97.703,140.914,-107.129,121.657,-107.176,130.281,70.945,-89.775,-173.52,169.878,169.89,162.543,-69.499,-177.41400000000002,-82.37100000000001,150.485,-173.55900000000003,169.287,175.947,80.041,-101.604,121.336,137.484,-70.546,179.791,-136.17,-173.328,-173.063,145.442,-102.511,6.049,129.536,148.282,140.118,-25.466,147.834,157.674,171.542,-108.135,-177.509,-178.83599999999998,97.329,147.026,155.674,-179.332,-64.753,59.957,174.178,127.899,-173.047,131.60299999999998,59.475,-82.611,-114.57,-26.684,-155.07,-155.06799999999998,-80.926,-11.18,-71.872,-87.917,-71.863,147.447,97.599,97.595,142.696,-178.582,-63.486,-70.89399999999999,110.796,146.381,122.448,-71.684,-98.216,169.862,-167.484,-66.301,-71.781,-71.917,154.68200000000002,-72.021,-71.906,-72.016,-71.95,-71.862,21.064,142.733,-90.967,130.917,-16.117,-175.273,-175.43400000000003,-43.766000000000005,155.314,-71.89,179.104,-179.14,124.329,125.77,164.69,121.847,-105.698,-81.03,167.391,-72.006,-173.17700000000002,96.494,80.134,-89.589,68.00399999999999,-177.78099999999998,99.909,-25.332,178.331,148.56799999999998,167.908,-175.576,144.362,126.431,144.826,-15.572,-16.805999999999997,-75.749,-128.989,178.33599999999998,151.39,150.00799999999998,154.458,-174.386,19.715,-16.665,-101.031,-164.321,126.642,126.597,121.225,-179.49900000000002,-24.479,-177.62400000000002,-177.65400000000002,-177.579,163.084,30.37,-93.075,178.813,66.248,166.468,-176.77900000000002,12.879,12.812,-16.923,128.994,119.727,-68.449,145.80700000000002,141.878,136.09,148.49,-125.34333329999998,-46.646,-46.749,-106.708,151.066,-29.198,125.453,125.779,158.819,158.691,12.835,-178.31799999999998,15.166,178.355,144.815,144.749,138.861,158.732,122.451,22.071,-176.77200000000002,12.892,-71.22,-73.587,-177.877,-71.251,147.97,-178.83900000000003,124.066,-175.014,-174.21200000000002,146.211,117.017,-27.505,127.439,-132.967,-129.475,140.461,-178.451,-76.681,104.013,166.92,-172.949,85.383,-178.743,174.885,-71.22399999999999,129.02100000000002,-71.335,-175.356,-179.204,-78.18,73.837,22.284,142.608,-85.79,87.325,-88.80799999999999,-16.893,145.577,140.486,174.864,-105.038,154.819,-27.026,25.795,145.019,-176.06400000000002,167.375,-174.49,-174.32,20.656,-177.65400000000002,-175.88099999999997,149.565,-25.511,92.702,-108.452,170.33700000000002,138.829,174.77900000000002,122.536,153.382,145.602,-68.788,-178.75799999999998,126.646,-86.369,123.561,-175.13,-90.658,-90.618,162.619,162.444,162.035,161.55,162.31799999999998,125.114,161.746,161.596,161.57,162.77200000000002,161.46,161.931,161.909,162.10399999999998,162.882,161.909,167.293,161.778,-68.365,-75.78699999999999,127.061,-8.329,-87.444,-26.186,136.106,-173.173,149.86700000000002,163.188,-42.628,-98.852,-105.92,147.167,178.87099999999998,70.773,178.99,99.618,-88.73899999999999,144.654,147.167,152.762,147.86700000000002,-90.316,119.921,-160.83,-113.382,-92.28,-179.69,178.80200000000002,-4.218,28.096,96.609,141.907,154.87,-16.191,-164.17700000000002,170.91099999999997,166.771,114.5,-72.074,-91.473,20.793000000000003,-112.045,-70.008,-71.41,-179.37599999999998,-28.199,129.115,-179.327,46.364,-179.329,68.094,-179.303,146.392,152.326,45.88399999999999,-20.109,146.308,-79.488,-110.862,146.94,149.137,-178.095,-168.643,-176.30200000000002,-119.306,-100.968,-176.838,165.185,-179.178,164.68099999999998,179.048,179.035,145.471,-70.207,142.02200000000002,-97.058,-96.298,70.089,-70.132,132.96200000000002,141.752,141.746,167.32299999999998,-126.856,149.639,124.99,-178.699,-178.97299999999998,71.105,-33.747,-33.677,155.57,-74.439,129.082,129.248,71.086,166.21400000000003,147.497,176.83,-35.223,167.355,138.124,158.44,158.16,-91.466,165.86,93.126,122.142,126.335,-177.033,-92.901,88.345,57.605,-176.317,141.832,76.73100000000001,163.107,-135.362,1.856,70.133,66.245,141.075,149.52700000000002,147.937,147.862,-66.99,140.606,-25.38,172.303,-17.932000000000002,-179.092,-179.02900000000002,167.94,147.086,99.261,-35.787,-74.874,-178.44099999999997,69.689,-74.238,-91.62,140.82399999999998,67.846,-69.637,59.976000000000006,-15.651,-179.543,-176.111,-176.00400000000002,13.652,-176.041,-71.821,-179.87099999999998,164.45,147.673,-173.19099999999997,-101.203,166.981,-17.326,136.282,113.097,-179.606,21.94,141.963,-28.489,95.311,138.982,125.308,120.938,-90.747,-102.924,-102.987,142.05,152.582,-90.998,153.804,151.714,143.266,143.253,143.842,144.88,-179.519,-176.637,-173.85,15.108,41.809,119.584,41.387,-65.431,-65.141,131.514,123.726,104.906,139.489,149.704,159.526,159.641,27.667,78.843,99.477,99.633,70.11,143.441,160.067,136.08700000000002,-29.02,-69.875,-173.373,-67.833,-93.776,-173.30900000000003,179.829,147.889,140.52,159.83700000000002,130.16299999999998,-13.894,-177.925,129.391,144.445,-76.34899999999999,-45.102,-13.792,-17.391,-61.572,35.306999999999995,153.143,-179.19299999999998,140.001,-108.395,-28.626,48.507,-178.99400000000003,-153.219,-101.349,168.22,-100.29,-100.295,143.236,166.16,168.206,120.736,141.92600000000002,142.09799999999998,142.355,103.065,-70.84100000000001,168.173,-114.336,-175.792,88.17299999999999,122.019,166.86700000000002,-71.286,138.901,169.82,169.919,139.00799999999998,76.999,-148.858,147.434,22.028,-80.393,-135.52100000000002,46.251000000000005,169.815,-150.715,94.305,-24.875,166.21599999999998,147.488,137.644,149.116,148.049,147.745,139.329,175.248,142.036,146.428,120.046,-88.038,88.109,77.343,125.018,-27.045,148.13299999999998,-66.906,-130.66,161.86700000000002,-174.771,-26.533,-173.597,126.764,-178.79,140.76,-71.715,86.941,143.749,155.209,152.041,-111.95,-97.711,152.061,144.007,15.98,-177.115,-67.119,-72.615,-107.981,-173.15,151.637,154.868,-93.623,-174.709,-179.84400000000002,179.958,106.951,122.467,166.791,143.154,106.288,-175.87599999999998,112.413,126.407,20.08,167.832,153.14,-45.565,53.772,-25.502,-25.352,-25.294,127.615,-25.571,-25.452,-76.38,151.628,-71.404,-109.557,-173.392,-86.45100000000001,-72.078,119.859,119.84,-179.11,-142.618,-143.186,143.297,151.036,-163.148,145.341,167.763,-175.222,123.164,141.398,128.623,125.966,98.798,157.859,177.791,-108.787,125.036,-177.99,-79.112,-177.608,127.081,121.421,-152.065,129.02200000000002,128.946,128.659,179.791,-85.275,167.36700000000002,-176.50400000000002,-104.181,-47.477,-113.29,-82.78,130.766,101.029,126.143,125.783,126.543,-70.512,-172.703,-174.75099999999998,158.622,-177.12,-69.328,-177.02599999999998,172.96400000000003,124.891,124.708,151.262,-109.346,67.459,-169.412,126.198,121.45,-71.416,71.021,-172.75799999999998,-44.845,137.654,-71.033,167.313,131.286,126.263,126.175,-85.8,179.627,-179.32,-74.84899999999999,-27.366,123.644,-176.37599999999998,-74.673,-177.075,168.085,-78.07300000000001,-174.067,176.918,147.313,159.626,140.17,151.681,169.757,-147.42700000000002,145.528,170.05200000000002,170.354,153.235,142.904,131.086,-174.65900000000002,74.476,-178.445,-75.72399999999999,-75.682,126.702,-174.207,-179.017,146.764,-82.678,-169.123,153.658,-179.748,169.25099999999998,88.463,46.841,146.96,84.439,87.141,-174.365,104.222,149.279,139.018,95.283,166.96599999999998,147.158,121.265,166.697,147.734,69.36399999999999,150.404,149.678,144.83,167.99599999999998,95.848,133.483,-70.04,147.403,141.81799999999998,154.431,169.68200000000002,122.646,119.541,-174.071,146.523,119.484,104.864,169.428,-7.917999999999999,126.528,86.03399999999999,141.751,-176.486,-68.503,57.193000000000005,57.147,84.906,121.937,-68.90100000000001,-69.6,122.168,-179.465,-179.52599999999998,159.482,159.529,159.52,-177.765,143.645,82.69200000000001,125.674,124.313,142.971,-177.668,126.641,110.214,110.272,128.658,-178.731,128.333,117.089,112.79,-71.747,131.43,-141.05100000000002,79.403,86.259,161.338,87.28399999999999,-70.418,-82.616,152.707,168.19299999999998,-27.078000000000003,-72.66199999999999,-87.634,149.56799999999998,93.678,-46.374,147.007,146.946,122.909,130.35,84.26899999999999,178.22099999999998,148.495,168.575,-176.46,146.976,-155.49,-155.489,-176.38299999999998,168.81,-179.04,-178.47400000000002,26.635,145.142,-77.783,131.148,-102.9,-71.681,-34.268,-151.523,-94.673,-178.97,51.88,31.683000000000003,-152.939,151.63,173.44,-91.945,83.82799999999999,166.28900000000002,150.88,-110.64,-110.588,-110.395,143.835,121.441,129.686,-118.81716670000002,152.486,138.217,152.73,152.877,152.537,148.533,152.764,175.26,123.855,86.146,-24.952,169.88099999999997,152.618,169.438,90.144,-66.934,32.131,-137.184,123.484,-164.06400000000002,-90.768,125.854,5.187,5.452999999999999,-60.42100000000001,-173.55700000000002,125.868,-46.839,-97.436,-173.362,-175.854,126.639,146.879,141.30100000000002,70.707,-101.539,133.947,-27.638,145.575,126.347,69.444,-178.187,147.85399999999998,71.35300000000001,-15.152,-15.351,-129.204,-123.46,-123.46366670000002,164.639,140.482,155.559,-178.13099999999997,-70.50399999999999,154.944,-178.16,-88.33,69.419,126.709,-104.074,-90.42,168.178,179.412,-177.608,120.159,-176.705,141.455,-177.90599999999998,97.211,151.942,141.675,150.494,150.572,-173.324,-177.523,-178.014,69.39699999999999,-82.579,-177.832,-176.273,-116.968,-70.153,167.175,-79.16199999999999,156.261,-176.05900000000003,-143.024,178.062,170.05200000000002,-83.96700000000001,32.939,-176.882,122.456,-76.578,127.273,-169.488,-169.502,122.492,104.711,152.529,29.864,177.333,-84.15899999999999,135.405,-173.757,-83.93799999999999,-13.196,-74.756,168.03900000000002,169.612,126.006,-154.784,145.657,145.611,121.152,73.857,-77.54899999999999,65.855,23.605,-166.56599999999997,123.678,154.334,150.26,-178.27,142.053,149.515,30.045,-27.809,146.22299999999998,-67.275,167.238,-178.21,-104.444,147.799,157.556,169.205,153.377,150.875,153.463,120.982,120.966,121.202,121.299,121.189,121.246,120.964,-167.16299999999998,121.167,121.136,121.158,127.914,168.263,-71.993,-96.931,122.702,143.04,-111.314,-75.635,-103.284,157.61,-177.72,149.287,-174.495,-176.717,134.279,-174.489,150.94799999999998,-161.189,-70.484,-116.265,-116.2895,-117.04,-26.578000000000003,129.336,125.197,120.506,120.508,153.414,149.44,-112.032,-173.88,134.192,142.251,175.803,-111.615,144.68200000000002,-173.72799999999998,-179.54,121.52,96.567,-172.53799999999998,71.24,61.205,-107.233,155.63299999999998,30.266,100.322,31.161,31.12,171.423,142.309,88.976,-125.134,148.82,148.803,148.672,126.066,148.533,148.763,-68.78,-164.52700000000002,-107.168,-173.05700000000002,57.122,121.487,165.364,-177.678,168.21400000000003,167.984,165.475,168.05,167.918,-71.291,-136.384,153.016,165.65900000000002,126.205,89.04299999999999,126.11,-69.171,169.105,-178.662,-82.35600000000001,169.977,-70.34100000000001,164.235,42.346,-32.58,128.088,-71.221,-32.728,138.689,-154.489,-154.401,-154.514,-173.984,159.965,148.144,179.613,-97.316,167.188,-178.793,119.74,-91.186,128.155,127.115,125.119,-85.134,150.974,-13.342,138.989,-161.039,139.423,-37.968,-38.026,139.675,144.571,131.33100000000002,151.234,110.029,105.555,1.974,165.457,-1.281,-91.882,146.72299999999998,147.056,-75.271,-176.792,-82.645,128.28799999999998,165.543,-101.432,165.354,165.25099999999998,165.321,165.25799999999998,165.33,154.50799999999998,134.664,153.67,-178.476,-175.558,-174.236,-174.097,165.378,165.41299999999998,92.7,-58.442,109.592,-136.87,119.484,-55.126000000000005,159.811,105.646,-70.122,-174.248,140.35,174.37,139.97899999999998,-178.74200000000002,-173.525,101.164,101.063,148.43,-179.255,-178.13299999999998,166.317,166.301,-71.971,-177.59599999999998,-177.675,70.37899999999999,-176.563,147.555,-161.869,-127.257,125.755,-17.224,66.857,120.613,130.768,120.646,-149.111,-176.731,-177.226,-174.002,122.678,146.83700000000002,124.496,89.083,118.764,-154.238,121.546,10.195,126.272,150.876,126.242,65.72800000000001,-174.803,155.009,131.572,127.068,145.401,166.57,166.687,-46.584,-84.126,154.75799999999998,-107.074,143.631,154.16,-60.763000000000005,173.81799999999998,174.363,174.195,144.782,-78.532,-175.29,-178.984,-114.201,169.014,-179.361,-179.361,-145.887,128.491,143.80700000000002,149.868,179.13099999999997,145.637,164.669,151.359,106.379,96.007,-92.444,161.27200000000002,160.816,160.116,-117.435,-82.772,-125.2385,25.013,44.239,178.983,147.58700000000002,128.034,65.76899999999999,167.273,-111.303,-172.912,143.73,-176.30900000000003,-178.645,-178.75400000000002,-174.137,122.051,125.61,25.69,129.19299999999998,-175.27200000000002,65.517,120.151,-178.386,-173.333,126.523,-173.68599999999998,-179.35299999999998,128.269,128.215,13.544,128.455,-176.46900000000002,-178.137,135.486,29.328000000000003,-62.99,-62.943000000000005,151.469,-118.008,143.236,-179.012,-77.057,-130.381,146.556,73.053,-177.521,147.516,123.573,-178.493,-178.52200000000002,147.629,123.359,165.43200000000002,-173.614,122.551,124.733,150.004,97.996,124.771,179.83900000000003,-66.452,70.657,123.354,123.164,-130.33,-153.139,125.988,179.956,-8.263,-25.862,-81.096,22.012,139.245,20.64,172.741,-130.08100000000002,158.93200000000002,140.464,102.087,102.102,65.383,-173.062,102.886,102.656,102.011,32.992,102.699,103.791,131.421,135.464,126.82,97.238,101.905,-92.056,152.495,102.754,102.762,102.679,162.062,102.052,137.68200000000002,137.73,-172.615,166.239,153.134,121.225,101.491,139.55,120.2,178.046,-66.747,152.58700000000002,127.722,176.21200000000002,132.082,-70.08800000000001,-178.46400000000003,-20.487,-20.633000000000003,97.453,120.408,120.532,97.577,-20.758000000000003,144.96200000000002,-176.38299999999998,126.266,153.674,131.20600000000002,125.906,139.561,139.359,144.53799999999998,178.605,139.131,139.226,122.163,170.368,179.97799999999998,102.7,139.126,-177.68200000000002,145.422,103.758,-154.20600000000002,-154.269,123.46,-175.583,139.26,-19.595,7.939,128.931,154.6,122.043,150.917,138.912,166.509,70.92399999999999,120.782,140.983,-85.329,105.804,141.066,-85.18,-98.916,-36.045,102.37,139.116,102.886,-3.169,-26.038,139.37,139.248,166.49,120.915,139.35,165.93400000000003,139.376,139.27,174.542,-176.35,174.361,78.419,-174.82,166.44799999999998,131.308,121.286,-71.968,126.438,142.246,130.209,130.309,139.556,131.207,123.357,166.135,167.986,-102.48,174.332,136.112,-103.957,-82.919,153.85399999999998,179.725,146.759,-174.771,-172.65900000000002,94.753,139.18,141.42,147.167,126.549,123.134,-45.966,154.664,57.376000000000005,-108.814,-68.27600000000001,-13.23,102.687,-179.06400000000002,143.76,126.579,127.394,127.325,127.311,127.027,123.212,96.591,133.611,-178.325,-179.135,-177.821,146.773,41.762,122.094,95.456,-175.345,-103.064,120.174,121.526,129.34799999999998,129.332,130.611,-12.961,-173.69099999999997,99.343,101.823,179.801,-176.332,122.073,-178.142,146.765,-80.461,-141.828,-178.38099999999997,102.104,-32.593,-32.607,166.405,37.59,-173.92700000000002,127.442,-80.582,122.381,127.334,30.709,129.388,129.39600000000002,143.124,-128.08100000000002,-62.559,166.91,166.995,-40.958,126.822,133.134,119.378,125.557,92.952,154.627,-177.985,123.305,94.863,124.967,141.833,129.3,-92.071,66.738,-106.044,-175.176,-12.403,-90.911,-90.585,120.729,126.752,-25.423,167.701,127.388,-109.648,105.63,-109.458,-109.37,129.004,94.983,140.46,-24.576,-61.194,146.483,153.96,153.945,-173.417,155.651,-25.586,-61.193000000000005,119.075,136.214,165.764,140.07299999999998,-175.259,-175.312,-74.422,167.009,125.773,102.68,92.978,-153.45600000000002,-29.876,151.592,154.016,-29.617,-77.829,124.15,139.996,127.174,-173.42,4.773,-29.896,154.181,-79.929,92.908,144.765,-179.234,144.785,119.787,170.43900000000002,42.922,166.65599999999998,152.16899999999998,153.472,166.702,166.863,153.238,153.211,153.704,153.221,153.102,153.226,153.134,153.07399999999998,153.32,152.28,153.218,152.968,153.278,152.685,153.543,152.649,152.888,152.89700000000002,153.366,151.781,152.017,153.151,153.181,152.72899999999998,152.88299999999998,151.77100000000002,153.14,153.129,153.334,153.452,153.1,151.655,153.015,151.86700000000002,153.112,152.785,152.153,150.82299999999998,152.688,153.34,166.768,152.567,152.559,144.07,153.058,152.998,153.605,49.946000000000005,49.95399999999999,120.657,-70.88600000000001,-150.15,-35.328,-178.15599999999998,-93.944,140.94799999999998,126.439,-167.847,54.799,152.725,152.786,153.255,-107.552,-98.758,121.554,121.187,127.38,-28.06,-67.093,-82.679,148.33100000000002,-6.882999999999999,31.351,-177.331,-113.342,151.484,-179.12400000000002,-179.097,167.72099999999998,144.76,-74.66199999999999,-85.45200000000001,-176.80200000000002,154.35299999999998,151.122,154.13299999999998,150.75799999999998,150.445,150.743,-158.341,164.22,147.196,135.816,123.247,-179.12400000000002,120.175,179.67,154.593,152.73,152.30700000000002,166.93400000000003,126.579,126.899,126.809,-27.777,162.44,147.813,-61.034,-22.074,126.842,126.867,127.349,-72.233,-92.899,176.054,167.17,-153.211,-129.31,-176.734,-74.809,-174.995,120.908,-125.284,-88.66,143.751,-88.594,-88.792,78.362,-88.58,-88.596,-88.697,101.746,101.776,101.648,101.604,66.187,126.344,-92.718,166.38,-9.472,126.529,126.223,-90.907,-128.79,142.036,-133.80200000000002,99.245,-19.863,-152.363,-88.87899999999999,70.232,69.98100000000001,161.578,-76.872,70.517,133.334,147.048,-177.797,-88.969,-176.111,-88.941,153.84799999999998,125.112,-176.074,147.75799999999998,-88.93799999999999,102.562,102.488,153.297,177.33,177.39,148.304,117.488,-70.475,-88.90899999999999,122.428,-133.61,32.386,-79.28399999999999,-74.514,102.448,126.923,-71.455,-83.588,101.129,-178.263,126.249,126.354,126.431,142.14600000000002,67.789,70.881,144.525,39.283,126.852,155.833,170.207,170.108,169.99200000000002,-88.82700000000001,-122.7266667,170.324,-74.555,117.537,129.002,86.902,157.27100000000002,161.298,-12.911,-177.96599999999998,-179.558,106.116,121.218,121.892,94.013,-71.492,-88.699,-68.743,151.298,-87.399,128.02,127.847,153.114,46.625,148.054,132.526,-88.939,-109.015,-26.263,138.899,55.464,147.325,141.77200000000002,149.09799999999998,132.369,55.464,143.325,-176.33599999999998,102.199,-73.109,99.061,-25.586,145.305,168.386,141.768,-70.476,-179.78,155.964,155.893,155.965,155.865,155.955,95.97,-76.655,-67.52,132.372,-173.834,120.658,155.923,132.023,106.487,145.923,-103.21,-176.937,-104.545,147.392,126.299,-111.878,-116.076,-173.468,-144.471,-104.165,-88.795,-164.31900000000002,161.232,-108.065,-176.898,-66.553,143.422,97.784,155.888,-177.515,-104.446,-95.358,-178.703,101.003,175.392,148.393,110.179,-177.842,132.346,-109.165,155.037,155.003,154.923,-178.63299999999998,145.83,146.388,146.55700000000002,146.41,152.73,25.613000000000003,-173.355,122.397,122.033,-179.46099999999998,-179.85,-179.828,146.81,146.983,51.679,-173.33900000000003,-69.173,169.063,-67.877,-85.161,152.036,28.157,125.691,-159.326,-73.641,-72.166,-71.348,-72.641,-73.60600000000001,-72.646,-73.632,-71.579,-71.958,-71.531,148.51,-73.788,36.206,-70.685,-71.649,-104.469,-140.07,-176.391,-71.529,-66.25399999999999,146.761,152.95600000000002,123.247,154.806,-73.971,142.984,-176.705,139.6,139.497,-65.711,139.545,139.58100000000002,139.53799999999998,-73.987,149.325,66.226,-72.077,152.108,-13.378,-43.437,167.69400000000002,-151.036,-174.676,132.338,-179.683,134.684,-69.255,95.6,122.97,24.244,-155.116,-103.918,-178.826,103.336,179.385,-174.718,126.399,117.466,163.79,126.995,93.352,164.949,-123.422,-123.395,113.832,165.396,-72.683,-178.072,-69.428,149.597,-91.875,167.106,130.07399999999998,94.774,-86.713,166.28,142.308,179.317,78.667,126.19,-179.575,146.311,146.724,179.94799999999998,-82.766,51.793,126.36,-70.108,-90.728,100.017,169.787,82.501,-137.016,-136.622,72.154,178.158,177.998,97.297,-91.571,133.13,150.683,-179.109,-169.245,141.907,-179.108,153.116,-128.71,-128.56,-175.01,21.873,-128.6,-109.517,127.739,-176.65599999999998,-88.76100000000001,115.042,-175.305,-75.968,150.785,178.158,168.15900000000002,151.632,-113.563,168.12099999999998,-25.438,-173.82,141.417,141.775,139.717,148.631,142.934,-99.996,160.32399999999998,160.214,-175.505,155.102,-179.892,-66.831,-132.2,144.98,125.98,110.633,-124.291,176.614,-64.88600000000001,-64.932,-126.907,123.907,123.885,178.982,126.506,139.44,123.917,-179.125,70.885,-70.497,168.108,100.648,-174.94,-176.71599999999998,128.28,-177.49400000000003,150.196,94.359,-179.25099999999998,-25.65,-82.3,-98.054,-45.143,-116.194,-106.973,170.551,-178.705,90.541,93.384,-15.578,-115.864,154.092,93.691,128.921,-176.72400000000002,178.019,178.054,71.506,125.362,-178.57299999999998,81.752,-93.106,-104.214,-178.482,101.903,166.66400000000002,141.089,-177.54,-72.516,120.24,18.349,-88.334,130.74200000000002,168.81900000000002,-72.742,147.387,129.57399999999998,-115.00166670000002,122.87,167.72099999999998,124.688,-44.496,24.724,172.165,122.734,-162.548,-25.024,-70.961,165.863,141.75,159.53,-178.09099999999998,167.262,-100.644,-74.22,-178.78799999999998,102.849,-103.31,-129.0,125.65,73.883,177.921,178.74400000000003,167.856,167.745,102.04,70.687,168.00400000000002,167.78,178.28099999999998,178.887,168.13,-87.67200000000001,-171.06799999999998,144.958,167.91299999999998,142.42700000000002,-130.61700000000002,165.291,-173.955,151.07399999999998,167.81,-69.23100000000001,167.722,105.205,151.097,125.415,-93.133,147.27200000000002,34.891,-85.63799999999999,167.483,170.122,26.617,149.291,95.658,-104.81,-178.763,155.594,-173.225,-95.908,150.887,151.263,169.53099999999998,136.719,152.491,31.271,30.872,30.902,151.248,-128.941,126.288,142.719,-29.004,151.541,121.56,140.94899999999998,144.83700000000002,142.029,-92.638,-100.301,151.418,150.99200000000002,-25.436,31.895,160.937,-115.32,-115.3215,151.982,130.755,-69.707,151.25799999999998,-166.695,-179.389,-17.62,-76.119,70.438,70.482,143.275,128.995,124.249,146.958,-24.481,124.274,-27.332,-177.104,122.105,141.566,-79.7,-173.083,156.02,123.28,151.405,122.32,-173.275,35.105,-179.725,-179.787,-179.74400000000003,-69.003,129.901,141.96200000000002,144.968,142.246,126.319,128.109,-46.355,69.315,124.09,69.33800000000001,-68.329,-45.15,-45.164,122.179,-92.593,-71.384,-116.074,141.851,-173.429,154.25,164.19,139.269,169.285,167.687,69.417,125.379,73.405,126.656,-100.865,-25.843000000000004,-70.586,-101.25,173.259,124.382,162.185,-81.033,166.938,-177.87900000000002,21.466,-122.312,-176.702,160.632,-176.83599999999998,144.619,-102.07,-177.737,31.595,-178.737,124.406,168.665,160.18200000000002,-174.57299999999998,160.774,128.303,-78.506,127.087,121.238,121.238,125.377,78.932,-174.261,121.922,-27.808000000000003,33.733000000000004,-176.449,-81.911,146.619,24.274,-97.908,-71.197,102.064,-70.947,-161.116,127.238,-66.797,122.264,168.995,171.794,139.78,81.44,-36.291,148.33,-77.62100000000001,-96.749,167.545,-87.191,-87.229,140.69,169.87599999999998,140.892,-20.722,99.751,124.022,101.891,-45.136,119.901,-83.992,-178.696,102.559,-105.147,-105.379,166.38299999999998,-71.124,141.816,169.674,146.768,-175.863,-128.371,49.047,-12.384,-94.515,104.181,167.051,130.666,166.524,94.495,179.25,-112.399,-67.76,147.336,-177.16,147.344,-127.169,122.288,69.979,156.97799999999998,132.394,153.261,122.752,-140.69,142.216,118.616,147.548,62.608,-178.342,126.32,-26.871,-23.242,130.311,-82.79299999999999,138.97,-82.822,-14.374,-87.31200000000001,-80.732,-16.238,141.83100000000002,-176.581,-82.895,-77.819,154.946,-176.172,39.813,-71.882,169.03599999999997,104.016,55.85,-177.36700000000002,136.88,146.19899999999998,121.333,155.976,-179.513,178.542,178.495,178.375,-179.445,178.56599999999997,141.966,130.61,-179.1,146.118,135.795,-178.40900000000002,105.705,113.406,121.577,145.766,-84.37799999999999,122.272,51.945,143.09799999999998,-128.243,120.754,147.769,72.007,13.701,-176.03599999999997,179.917,60.926,178.933,142.945,143.023,-6.077999999999999,166.229,93.068,93.157,129.923,122.27,142.679,-18.456,141.775,142.769,93.168,172.893,-173.347,134.013,134.234,134.189,170.435,-176.62599999999998,161.154,-69.2,161.2,161.11,161.21,49.32899999999999,-12.014,-117.504,161.461,161.41299999999998,146.378,-109.45,161.235,161.205,161.45,-108.53,115.663,-179.016,-31.811,118.341,169.293,-31.946,88.37899999999999,161.317,134.297,134.24,134.2,133.97299999999998,133.934,134.143,134.111,-95.697,142.621,-71.738,118.504,-175.416,142.249,157.32299999999998,-173.048,-178.40099999999998,140.226,-142.751,140.312,149.96,141.071,-178.391,-109.512,-147.912,-179.81799999999998,154.38299999999998,29.004,28.979,94.419,179.37900000000002,-174.18,-175.638,148.638,14.872,169.453,14.875,96.085,92.856,96.394,-131.12,141.977,-178.07299999999998,-147.444,-145.634,36.035,142.303,179.334,-91.187,37.768,68.005,-75.506,-179.90200000000002,-27.536,167.30700000000002,96.087,-178.783,-35.782,-36.404,156.562,178.201,-175.607,146.41899999999998,146.209,74.515,-82.22,-173.537,-160.741,142.116,167.827,-63.069,-172.437,179.98,-172.965,117.26,21.087,126.392,-178.817,94.513,153.435,-114.121,-100.909,179.24,141.595,135.123,135.234,153.275,156.216,-83.564,97.443,-174.142,-24.825,125.411,-25.205,-24.981,126.273,147.94299999999998,123.158,-85.57799999999999,154.6,156.164,-178.899,75.25399999999999,69.868,-178.53400000000002,-168.52599999999998,141.241,123.407,-9.789,117.788,-177.66099999999997,121.5,119.658,-70.054,160.936,-174.68200000000002,-77.388,-171.584,-176.295,123.521,98.6,-79.243,153.701,97.957,-174.38,-129.024,-129.351,-129.183,122.682,137.183,153.63299999999998,160.77,-178.42700000000002,-173.53599999999997,-90.774,-104.104,97.568,-104.374,-104.467,118.524,-170.253,39.878,35.056999999999995,-81.815,-92.886,-33.344,154.612,101.196,-90.88,-175.72299999999998,45.104,149.792,-176.34,134.86700000000002,178.84099999999998,144.24200000000002,-179.64,-173.322,56.818000000000005,5.742000000000001,123.921,124.079,-142.8,-164.643,141.799,126.791,-70.994,-178.3,171.56599999999997,77.23,-156.86700000000002,134.313,-20.879,121.917,-28.008000000000003,141.719,130.894,-175.813,-26.9,130.985,127.296,-177.679,153.238,153.16,77.426,-110.587,161.726,132.951,-175.183,134.33700000000002,160.387,-11.203,177.97799999999998,160.306,177.97099999999998,156.58700000000002,160.716,167.639,117.185,125.166,142.506,-179.847,120.743,89.331,92.564,155.68200000000002,-173.50799999999998,70.585,15.464,129.023,127.542,151.429,-35.729,126.682,179.896,-86.14,155.385,167.889,174.06599999999997,174.12400000000002,121.259,141.679,26.958,138.93200000000002,67.262,-82.353,151.263,-109.429,96.476,-128.918,1.432,-128.695,-173.865,-173.793,163.347,154.991,135.283,169.773,-71.592,103.683,103.69,147.805,167.33900000000003,147.751,40.464,122.697,-173.747,31.536,-178.232,166.31400000000002,77.219,-178.29,127.354,127.954,-77.515,150.825,32.272,126.938,98.911,167.74400000000003,-58.633,107.315,129.836,168.824,-69.094,-178.67,-105.473,130.14600000000002,3.634,3.813,123.94,72.764,124.101,-82.65,-71.514,53.813,141.56799999999998,120.495,128.855,123.707,123.88,-179.53799999999998,-68.596,3.5780000000000003,66.116,-77.172,142.361,142.773,-71.969,167.247,-72.807,-103.069,-178.804,130.19299999999998,152.502,122.02,121.628,154.75799999999998,120.514,140.91299999999998,-104.972,156.782,176.923,121.607,159.999,-7.577000000000001,-71.53699999999999,-71.722,-71.637,127.856,176.783,60.974,-43.612,123.85,146.148,-61.14,143.708,122.511,124.898,-108.191,144.842,-174.52200000000002,151.878,151.691,23.282,26.024,167.533,89.475,122.001,145.23,129.968,54.169,54.133,122.044,-134.47,38.963,-90.075,100.822,152.174,68.382,68.329,-107.129,111.227,148.85299999999998,101.29,93.601,123.646,166.142,-13.351,145.017,124.58,149.694,141.003,140.996,-168.21200000000002,-175.09799999999998,-70.937,92.306,168.515,-176.585,139.248,-65.185,92.343,67.58,154.797,-74.31,127.013,1.253,-35.702,-153.32299999999998,-177.009,59.745,-43.411,-42.701,-178.928,128.15200000000002,128.195,-106.036,147.611,93.53,20.605,20.573,-177.984,121.83,95.605,166.21599999999998,59.773,167.144,167.136,167.041,-148.03799999999998,133.697,167.887,-91.069,-106.695,-179.21900000000002,-70.67399999999999,166.805,-28.922,57.575,-114.811,126.051,-143.6,-179.584,126.177,145.335,-24.877,167.238,142.55200000000002,146.352,132.267,122.318,75.325,-173.22299999999998,167.108,-82.20299999999999,95.9,1.089,-106.045,-175.101,-25.639,172.095,172.123,167.09099999999998,110.189,96.818,114.186,114.506,156.159,151.502,-108.77,122.945,53.523,-75.593,121.033,111.255,-68.325,140.172,-27.909,143.224,95.672,-14.059,-70.673,-70.506,153.808,-35.863,143.91,143.764,143.687,143.637,144.231,143.593,-175.282,144.44799999999998,144.67,144.576,87.81299999999999,87.765,128.393,150.34799999999998,144.716,144.38,144.36700000000002,144.151,153.029,-33.401,-177.398,-177.18,167.045,-177.485,87.721,125.407,164.417,144.638,-170.192,144.57,144.72,144.689,143.50799999999998,119.939,144.358,148.20600000000002,143.683,-178.57,-178.426,-178.704,101.254,154.155,102.458,126.103,-26.248,-102.941,147.727,141.602,179.80200000000002,176.687,145.395,100.951,100.975,151.509,-70.58,147.75,124.715,-25.152,151.105,142.619,143.083,166.535,150.329,-86.751,-77.77,127.033,168.892,157.22299999999998,126.88,127.358,-19.689,-179.01,-179.37599999999998,143.246,126.48,-74.868,-113.219,137.072,143.82399999999998,172.331,141.072,103.971,-172.324,121.374,178.65,177.611,178.12400000000002,178.888,125.416,-179.713,111.028,126.411,-173.851,152.71,-67.547,150.88,-75.723,-43.732,-163.259,127.39,-178.19799999999998,123.625,-92.026,80.515,-178.72299999999998,144.732,149.745,165.78,178.261,-179.27200000000002,121.362,-71.322,120.892,121.523,-170.175,126.991,-177.342,151.384,124.53,-102.635,-20.601,144.59799999999998,-121.15716670000002,-121.1005,-20.33,-29.692,125.775,102.028,-82.824,-178.24900000000002,169.488,169.53099999999998,58.31100000000001,-178.877,169.505,169.31400000000002,169.35,169.766,169.835,169.766,170.111,122.35,169.886,144.613,169.622,154.187,154.241,169.859,115.788,-101.303,-101.315,169.72799999999998,169.55,169.641,169.616,169.535,169.683,169.919,169.86900000000003,151.016,-82.69200000000001,122.185,149.30100000000002,149.401,128.041,-71.656,53.352,-176.175,-179.15400000000002,165.67700000000002,170.24599999999998,-96.937,149.684,151.064,132.091,-37.704,-11.282,105.215,-161.45,-151.221,-176.903,-69.891,-139.718,-30.179,-174.196,178.078,-156.757,-71.07,151.80100000000002,138.984,127.4,-104.67,-114.78,126.943,-174.16299999999998,-111.396,142.434,179.701,140.376,-63.461000000000006,-82.87700000000001,135.53799999999998,135.364,136.779,135.023,133.958,135.339,68.259,-112.393,-152.028,135.58100000000002,135.561,-173.518,57.108,73.21600000000001,145.816,-108.821,166.45,-14.963,100.488,145.387,-175.63,-3.997,162.814,-175.033,-92.145,-176.54,123.515,66.419,159.651,-112.516,22.116,-86.76700000000001,-178.59,145.35,-178.83700000000002,152.588,93.135,-178.597,-178.19099999999997,91.236,-178.296,-179.00799999999998,-43.919,125.106,179.71,-177.97,-178.358,-178.11900000000003,-175.09599999999998,70.774,-178.36900000000003,-172.31599999999997,126.695,-65.586,23.326,124.708,-178.082,-66.699,-176.002,55.28,160.468,-64.359,144.735,144.764,118.256,129.121,40.812,144.209,154.76,89.179,40.874,-67.545,124.932,104.077,-71.985,-174.06,141.00799999999998,-175.45,-173.93599999999998,71.029,-84.126,-97.827,-27.874,100.54,167.19799999999998,-176.011,137.215,-176.173,140.08100000000002,144.836,169.71599999999998,-174.55900000000003,162.659,153.578,-7.747000000000001,169.63099999999997,169.549,94.022,164.183,-175.87900000000002,114.65,102.718,165.919,-179.983,128.373,129.977,-32.234,167.888,167.96400000000003,146.85299999999998,122.839,-174.822,-112.289,-112.355,169.576,-174.43200000000002,167.75599999999997,-87.426,-173.041,-85.995,-174.481,-73.406,-90.726,-172.55,96.758,-11.385,14.814,-25.41,149.464,145.02100000000002,-175.071,170.27599999999998,-25.535,121.604,96.604,97.825,-44.49,150.73,144.247,166.24599999999998,-93.076,121.814,-173.423,165.778,166.338,166.345,126.166,121.505,136.41299999999998,-174.21599999999998,-178.25400000000002,126.411,-14.427,51.61,141.881,141.406,-70.546,-177.11700000000002,67.253,-179.447,179.25599999999997,-177.875,-163.852,-173.854,113.109,-83.458,167.519,139.615,-87.652,160.003,142.958,-178.702,-178.57,-174.937,-97.845,-73.155,-68.372,-82.551,166.259,-175.747,130.375,-134.25,80.903,-87.04299999999999,123.36,124.726,163.66899999999998,-173.554,-35.259,-175.416,-179.37900000000002,148.662,67.61399999999999,168.21,151.303,-116.167,-115.964,94.812,83.67200000000001,-126.928,-174.922,-178.61900000000003,-178.76,-126.855,-179.574,140.218,143.787,176.51,-126.967,169.372,146.808,128.894,128.754,103.981,95.016,133.091,133.061,161.168,94.997,95.003,143.036,-25.802,-165.665,-166.71900000000002,-166.666,-112.21,102.623,27.815,159.563,146.366,94.998,-166.313,-95.218,95.666,70.796,150.29399999999998,141.95600000000002,39.261,166.72299999999998,-107.154,-177.926,-94.944,123.995,169.377,-13.715,92.19,-70.805,-70.525,157.35399999999998,157.239,157.253,165.248,157.279,126.957,141.607,160.156,-173.375,-173.34,-173.479,-173.243,169.278,136.618,137.071,137.101,136.804,-28.976,-28.78,-28.893,126.328,-29.193,-28.929,137.227,-65.84,-72.186,137.092,-173.429,137.2,-4.966,-81.55,136.497,-25.342,67.098,151.408,-175.204,127.466,120.411,125.277,95.879,-67.61399999999999,-179.71900000000002,174.02700000000002,166.793,-28.419,-177.278,-26.403,-112.725,-71.743,28.016,-120.366,-74.529,-25.458,-86.52,128.386,173.269,-141.906,146.993,-82.689,139.91899999999998,134.42600000000002,26.796,54.477,162.161,120.534,-26.868,-173.28400000000002,-86.665,-50.88399999999999,130.435,126.437,167.803,-175.076,174.47400000000002,-178.922,130.528,122.694,141.305,166.612,40.296,124.812,138.779,138.866,138.816,138.608,138.808,138.745,138.64,138.655,154.624,130.218,138.701,124.343,-28.991,81.154,160.616,-24.829,-24.679,-24.638,138.885,26.622,119.11,168.082,143.214,-128.77200000000002,-178.84599999999998,146.842,146.812,143.925,168.967,144.477,-29.049,138.862,138.403,122.542,140.695,163.70600000000002,-176.10299999999998,122.226,144.344,162.123,162.208,161.915,124.868,125.23,125.384,124.93,-63.319,162.284,-102.953,-103.002,164.657,-63.361,163.621,144.049,-77.508,151.452,71.857,-178.71,-179.062,126.186,-84.17200000000001,-90.056,-174.908,-61.706,164.72099999999998,20.629,178.99,135.404,135.343,135.358,142.899,135.43200000000002,-113.834,135.445,145.119,145.083,135.528,135.41299999999998,135.452,-61.48,179.32,145.22799999999998,-178.076,-71.223,169.015,141.781,149.779,145.196,125.068,-89.37,141.793,-81.40899999999999,-179.301,156.309,156.174,-174.785,-73.925,-78.82,123.778,-178.85299999999998,-75.17,-174.63099999999997,145.414,-124.997,161.345,161.44799999999998,-178.668,95.982,94.267,93.361,93.985,94.213,97.71,93.708,93.713,94.465,94.667,93.473,92.499,92.467,94.139,92.936,92.353,93.607,92.604,94.377,92.326,93.009,92.924,94.289,94.068,94.334,94.771,94.082,94.72,92.958,94.057,92.282,93.747,93.035,93.428,94.066,92.375,93.738,92.738,92.314,93.834,92.84,94.467,92.91,94.086,94.501,92.953,94.217,138.766,94.162,126.92,96.342,94.467,92.394,92.395,152.796,95.538,94.512,93.279,94.65,92.645,95.11,92.469,92.499,95.606,91.786,94.135,95.205,-173.795,93.156,93.756,93.198,93.088,130.444,142.018,94.277,94.625,92.515,92.533,93.947,92.913,95.14,95.623,94.398,92.304,93.218,94.455,92.765,95.462,92.787,161.866,92.362,91.727,93.655,94.392,-109.111,-109.108,93.249,94.835,125.768,27.612,91.795,-27.956,95.108,92.282,27.804,-21.194000000000003,126.297,152.717,93.922,92.387,105.236,-176.299,140.842,140.68200000000002,-33.811,144.866,179.037,141.491,141.553,-80.829,125.245,141.36700000000002,-178.762,-177.929,92.938,159.475,151.582,66.191,119.933,29.641,92.482,-80.646,-80.785,-80.91,43.703,94.038,129.56799999999998,94.602,94.063,94.059,94.03,94.268,94.002,94.155,94.093,94.107,94.306,93.993,94.033,94.13,-81.499,-81.157,94.114,93.7,-141.032,94.386,-15.515999999999998,-81.065,-175.99599999999998,-175.169,94.056,20.155,-27.403,-175.982,154.532,93.96,144.715,145.04399999999998,93.249,145.86700000000002,94.992,123.337,94.185,140.22799999999998,153.187,167.259,95.117,143.997,120.791,-82.62700000000001,-173.745,169.21900000000002,-139.343,98.729,-61.744,79.44,126.421,139.686,93.945,-16.558,-27.418000000000003,95.156,150.481,-81.046,94.416,122.129,153.108,56.816,123.177,137.154,91.772,-109.97,150.66,150.692,-113.677,95.729,94.101,72.707,142.376,95.592,-178.59400000000002,-104.592,-107.865,-112.124,129.933,126.407,121.935,121.918,163.207,163.045,99.391,162.859,-85.936,92.895,144.674,40.978,61.887,94.595,40.89,73.82600000000001,-86.06700000000001,179.923,102.752,159.579,-91.381,95.089,-174.33700000000002,-179.547,130.131,124.825,-63.47,-63.507,-1.54,40.925,94.374,129.938,97.108,97.005,97.487,96.503,97.867,97.821,97.043,96.411,97.095,96.581,99.207,97.095,161.315,95.414,95.423,-179.75400000000002,176.013,175.99,97.119,98.109,6.098,98.319,120.801,97.942,97.872,102.415,97.424,126.48,83.662,97.38,97.731,169.265,100.337,-154.524,25.316,99.607,99.618,99.779,99.594,99.72,99.641,99.934,99.717,140.401,96.759,96.829,-103.564,145.909,-77.88600000000001,170.612,99.951,171.445,-132.102,97.662,-69.663,97.663,138.891,130.179,-178.40900000000002,149.343,-176.53,97.275,-109.278,-176.352,-176.532,96.799,-74.623,-173.829,66.47399999999999,-82.845,-82.406,-109.194,168.852,103.139,-139.231,156.113,98.459,-176.65,96.051,-179.35299999999998,-26.863000000000003,-173.24,93.271,93.357,-152.69299999999998,97.041,178.84,-80.987,94.797,93.215,144.923,-178.012,131.202,94.432,155.776,94.626,178.885,-67.003,97.146,-173.196,146.846,-108.366,41.08,-179.122,-161.496,96.724,-102.907,-131.125,179.548,97.089,-123.843,143.86700000000002,-27.075,126.572,94.169,-69.197,-174.715,179.601,179.31400000000002,179.433,-125.953,153.191,-80.562,-126.574,-111.983,140.47899999999998,-176.174,-68.807,-100.959,-112.51,125.825,-107.298,-176.28900000000002,162.4,-82.87299999999999,71.32,139.05700000000002,-86.17200000000001,-86.25200000000001,42.37,97.082,93.422,-102.807,-16.637,164.605,126.529,140.825,119.963,-97.264,-111.68,97.226,-176.524,-176.322,131.405,92.903,-70.109,-147.642,124.238,125.148,168.91099999999997,167.56099999999998,139.982,-178.06799999999998,70.718,-85.971,92.19,91.926,-7.432,-27.76,-112.615,160.105,-72.962,-168.64700000000002,93.558,154.249,94.476,153.911,128.819,128.15,-85.541,140.178,-114.504,-25.886,-178.25400000000002,97.163,-175.85,125.646,33.62,-177.293,-177.24200000000002,141.36700000000002,140.156,173.825,94.13,173.87400000000002,169.509,170.282,145.80100000000002,-68.98,140.124,142.039,169.982,-85.212,-104.025,143.154,142.987,-103.548,-179.977,52.365,-82.432,138.219,143.175,-27.104,179.892,98.923,138.32399999999998,-8.955,-82.85799999999999,-176.775,123.073,-142.392,122.191,97.604,128.713,126.283,85.059,-27.102,153.474,-69.13600000000001,-27.905,154.076,95.044,-177.32,91.912,153.592,-82.639,94.781,146.145,-172.655,-87.473,40.634,167.801,167.884,167.774,167.44400000000002,-76.398,151.84,151.865,151.805,151.683,-63.632,151.651,94.368,95.577,-174.27700000000002,-89.34700000000001,73.58800000000001,73.579,73.781,73.477,73.23899999999999,73.32300000000001,73.125,97.853,73.152,73.1,73.187,73.12,73.199,73.182,105.459,125.077,95.098,153.766,-176.024,179.43400000000003,154.113,123.351,97.941,26.505,164.18900000000002,26.5,-69.486,-85.85,20.918000000000003,73.03699999999999,140.839,-169.04,26.751,129.996,140.931,-68.422,134.556,73.042,145.976,96.898,-79.837,-172.77599999999998,127.325,-178.169,53.373000000000005,97.269,148.143,-27.35,155.01,172.924,-76.943,161.037,120.586,-27.063,128.944,144.89600000000002,141.351,144.799,-67.895,141.388,96.786,-164.093,129.221,129.997,66.717,-25.319000000000003,-164.063,145.284,147.704,-176.313,126.386,-177.834,55.858,55.806,97.266,155.023,-70.958,146.055,-79.678,124.029,-179.105,142.122,169.895,130.29,141.00799999999998,142.006,29.83,-177.637,146.953,29.709,179.94799999999998,-45.862,129.02200000000002,-45.835,152.22299999999998,120.761,120.717,71.093,-178.571,167.928,-89.521,141.9,95.916,140.995,179.484,124.672,-82.755,-135.659,-135.868,-77.517,140.64600000000002,-82.266,140.131,95.144,144.31,-21.606,152.343,-178.178,145.287,-112.117,-66.172,-24.954,-82.337,173.613,23.212,-14.133,-127.266,122.597,142.131,-100.496,-41.422,173.967,93.245,167.715,178.31599999999997,-77.793,-77.97399999999999,-135.746,-177.791,179.489,128.131,104.154,96.073,169.609,-178.39,141.44899999999998,-173.747,92.372,-90.46,-142.686,150.013,164.19799999999998,168.09,143.812,127.736,121.646,-141.265,146.18,-173.02,141.489,-15.104,167.207,152.053,-87.561,33.583,33.525,1.765,91.705,164.384,-179.59,-179.989,-176.239,56.865,120.515,-178.408,-63.787,-4.232,-27.879,-89.35600000000001,-175.66099999999997,-129.18,-174.548,78.486,167.368,78.555,70.899,-29.66,-26.125,-46.505,56.95,153.657,151.69799999999998,127.214,167.24200000000002,33.584,125.072,149.744,123.107,-175.732,-25.263,172.392,170.532,151.195,179.893,165.168,143.144,174.50400000000002,55.685,55.78,-34.216,132.157,-178.895,121.401,137.746,48.78,-176.768,-176.74599999999998,126.344,-177.144,121.278,-177.11900000000003,-177.062,-176.773,126.407,165.93400000000003,-106.992,-177.116,20.962,78.278,70.477,176.989,150.373,-70.244,-36.93,20.92,20.91,163.99,20.95,-177.80599999999998,89.669,121.362,-72.003,138.565,125.375,166.50799999999998,-71.225,93.226,90.413,139.207,167.08900000000003,167.007,165.81599999999997,167.525,167.32299999999998,96.995,147.56799999999998,118.349,167.516,102.391,167.44099999999997,-173.22799999999998,-71.02199999999999,-173.101,-71.235,-71.11,-71.217,-71.056,-71.196,-176.852,-176.90400000000002,-82.882,-82.874,-99.035,-174.123,157.92600000000002,-174.03599999999997,-173.866,-174.65200000000002,179.675,78.57,-174.405,78.545,78.57,102.346,165.845,-169.25599999999997,-71.3,94.307,105.395,94.432,-179.30700000000002,97.05,-174.15099999999998,-173.952,-173.972,163.857,124.713,-85.311,165.743,158.447,126.811,-112.793,168.925,168.945,139.154,168.81799999999998,-71.161,110.446,151.13299999999998,-174.537,121.179,-26.235,154.628,88.458,-75.51899999999999,140.065,-178.701,-28.065,-28.162,-178.747,-178.503,32.611999999999995,-179.262,131.145,177.082,177.128,126.304,97.354,-175.135,121.799,143.71200000000002,143.612,-39.702,-130.47299999999998,92.454,149.343,123.195,-68.695,176.158,-178.287,153.711,-68.516,-94.14,92.793,55.86600000000001,154.799,-179.31400000000002,126.919,176.93,-179.387,-179.357,-142.489,-174.125,151.859,71.836,165.11700000000002,-173.61,-67.389,-179.312,-13.432,67.814,148.52,65.76899999999999,-36.471,126.156,-72.543,-178.40099999999998,107.419,107.347,107.516,107.886,107.76,107.733,107.68,107.649,107.833,107.71,108.319,108.774,108.753,124.944,108.779,-178.43400000000003,154.373,108.373,107.241,96.208,105.389,150.684,150.691,123.286,-178.608,142.031,97.146,122.526,68.828,-179.577,-63.923,-111.209,97.182,-103.863,179.57,116.85,171.035,-68.719,74.733,144.011,167.78900000000002,-101.048,96.348,130.016,-124.349,126.734,150.481,179.261,-176.25,149.154,61.736,161.686,141.908,-97.257,156.415,-34.371,-34.056999999999995,135.825,152.815,157.52200000000002,-67.028,-179.57299999999998,-179.54,165.05700000000002,125.123,65.943,125.061,130.03,-128.537,155.512,159.69899999999998,-166.392,-175.146,149.158,178.817,126.433,-34.166,120.106,-86.60600000000001,78.225,-68.898,126.49,150.471,135.697,129.441,-67.145,-173.96099999999998,-175.60299999999998,107.346,110.365,-63.149,-67.687,41.81100000000001,124.83,153.36,-172.033,-176.238,-61.756,-61.758,-34.658,-73.16,153.166,153.16899999999998,153.256,153.24,169.00099999999998,80.641,-114.598,-68.98,-175.271,120.023,119.981,29.024,-122.373,142.664,-103.165,120.084,122.627,-71.368,153.27700000000002,-155.935,-155.983,162.161,-71.325,150.982,-68.27600000000001,167.266,-82.652,-76.67699999999999,121.47,121.527,121.546,121.378,95.987,125.222,-65.595,140.27,125.295,15.39,-76.618,140.197,-70.456,154.925,126.791,126.777,146.637,-68.204,151.195,153.963,148.593,151.05,154.246,-63.283,-178.417,151.23,127.998,-68.32600000000001,162.328,-112.161,153.266,154.61,154.52,153.179,152.64700000000002,154.1,154.475,153.731,155.305,154.726,154.7,154.417,154.668,153.861,155.526,154.97899999999998,155.166,154.996,154.14600000000002,153.51,154.164,154.548,153.3,-160.905,154.468,139.755,139.47299999999998,155.526,129.895,-87.81,94.783,94.771,-24.871,-104.489,154.891,-104.832,-70.22800000000001,154.748,146.784,154.19899999999998,150.483,153.774,-175.572,-163.748,-71.80199999999999,128.283,-35.438,179.66099999999997,-174.67700000000002,-134.359,-111.958,99.079,118.753,-174.31400000000002,-19.738,162.564,-91.207,-86.411,-104.546,158.999,126.704,154.386,147.055,-178.014,140.416,130.516,124.684,-86.00299999999999,153.042,-105.745,-174.57299999999998,-174.472,95.018,99.859,125.806,125.277,-178.576,92.361,105.635,153.161,116.509,139.04399999999998,76.163,120.547,120.493,120.852,154.83700000000002,147.54,120.482,154.424,51.365,-82.48899999999999,-71.11399999999999,-112.33,-156.061,92.437,70.312,-177.847,-137.118,127.283,154.524,155.166,153.765,156.276,-34.069,138.64,-105.145,126.238,139.834,-64.528,58.708,101.454,109.672,130.435,-29.533,126.282,125.888,126.026,125.969,-27.016,126.345,125.849,126.265,136.341,136.332,146.35,41.647,130.031,126.063,167.054,-29.382,125.971,121.926,126.563,126.202,126.502,179.872,126.312,146.298,144.705,-178.002,166.202,107.193,78.066,-35.944,-78.518,-122.721,-123.448,-175.65,-175.487,-175.47,-71.079,39.043,-71.56,144.98,-10.312,126.073,-77.778,124.189,-112.051,-69.82300000000001,97.308,143.553,155.858,155.889,155.76,154.45,-82.706,30.758000000000003,173.088,-70.473,126.976,126.975,127.192,39.275,-72.319,-80.485,-85.206,173.081,-110.421,-177.13299999999998,167.523,35.495,-29.142,-44.594,126.806,-129.33700000000002,-38.473,100.498,100.53,97.908,-31.819000000000003,140.204,-7.615,133.526,66.255,130.168,-87.387,-69.71,8.713,161.859,147.891,-177.00599999999997,85.53299999999999,169.834,151.77,-110.537,126.755,117.863,-86.59,126.216,-78.536,144.004,-78.494,154.09,126.121,86.775,-178.37099999999998,140.789,-70.142,169.357,136.588,169.354,20.42,142.975,125.914,29.673,-71.837,-71.708,146.01,177.766,-123.27,122.631,169.169,137.607,157.043,156.934,155.77700000000002,156.19299999999998,155.55700000000002,155.741,155.68200000000002,156.737,155.409,155.645,156.054,-73.058,156.05100000000002,155.363,156.243,157.62,157.64,156.475,157.528,125.763,154.66299999999998,157.386,155.491,154.629,155.24200000000002,70.688,155.588,155.80100000000002,155.384,155.243,168.99400000000003,154.889,156.047,156.49,154.995,154.835,168.828,169.05599999999998,66.79,141.673,-176.94099999999997,-24.621,-84.669,-123.645,155.77100000000002,46.178,-24.494,95.7,-178.082,154.695,92.525,-173.458,160.96,-100.198,126.956,-108.836,153.435,169.919,147.964,179.761,-66.626,141.861,125.093,125.148,125.108,125.043,125.244,128.379,122.129,151.266,166.843,-72.648,126.44,166.863,94.635,155.938,-20.208,157.173,-179.972,6.081,155.134,155.107,-68.41199999999999,126.362,-178.94799999999998,-178.07299999999998,-14.921,81.96700000000001,120.201,-179.354,-179.315,-179.362,-80.453,97.787,-178.61900000000003,123.911,155.412,146.108,-179.21099999999998,-179.329,97.248,-127.989,100.732,154.768,155.865,136.745,-178.202,141.991,151.906,-31.814,-96.359,118.797,157.433,-67.027,-103.097,-174.519,151.841,166.615,127.343,127.419,-173.885,122.796,-26.457,157.293,148.668,101.052,166.785,-26.728,130.906,146.761,-90.766,-90.802,-16.144000000000002,127.936,-90.618,-68.915,-100.152,125.308,151.563,96.177,-26.244,95.999,30.834,126.413,155.506,138.734,150.96200000000002,166.833,50.833,166.312,99.779,-177.06900000000002,-2.6260000000000003,108.149,154.635,-74.893,171.544,-71.34,-74.928,144.734,-179.582,130.564,-30.272,-93.99,-172.644,-178.08700000000002,-74.37899999999999,-128.519,-176.28,168.597,-168.035,-168.00799999999998,138.446,138.467,134.85,-177.74400000000003,36.362,-177.738,-177.729,82.37799999999999,168.46200000000002,-71.27199999999999,-65.777,-129.418,141.66,141.724,149.85399999999998,-104.235,-104.029,-90.954,-142.499,92.518,127.464,-178.465,155.707,170.93900000000002,7.881,169.702,-103.846,95.611,-27.733,126.897,-17.795,136.613,167.68,141.798,-179.97099999999998,141.722,-179.96099999999998,17.647000000000002,141.77100000000002,47.462,-179.361,126.946,145.306,-105.406,168.718,126.836,107.681,107.419,-45.001000000000005,-179.493,166.273,153.785,-13.408,141.746,-177.548,-76.60300000000001,-76.48899999999999,-75.944,-76.601,-177.56799999999998,-76.587,-76.127,159.465,-76.214,-12.153,-76.127,129.469,129.43200000000002,-76.093,-76.6,-76.291,174.622,-26.863000000000003,-76.617,-178.69,169.702,-76.498,-18.175,127.381,140.874,-39.251,140.638,-177.718,-174.335,-172.24900000000002,154.29,-68.36,129.317,127.117,-109.689,165.762,165.699,150.06,122.219,-123.314,-77.96300000000001,-109.434,101.367,100.221,101.379,101.463,101.396,100.841,99.816,99.668,99.627,99.635,126.342,100.974,101.524,99.947,-147.303,-176.18400000000003,101.169,100.953,179.68,169.043,101.19,179.888,101.348,100.892,100.141,117.006,-76.27600000000001,99.935,100.362,166.18200000000002,179.998,-79.208,153.5,153.626,99.488,-11.713,169.283,169.388,169.26,169.362,169.373,169.403,141.921,169.407,169.19299999999998,169.141,142.668,95.533,95.523,127.474,169.243,169.269,145.718,164.115,164.11,145.585,148.22299999999998,101.212,-161.708,-161.703,92.903,116.811,179.459,147.148,146.748,-177.398,152.892,99.48,164.31,100.509,-82.565,169.195,167.553,167.458,179.53,-107.307,-42.594,66.29,154.77,100.803,100.859,99.896,101.02,154.827,100.794,-68.75399999999999,154.231,139.596,139.57399999999998,-161.71,143.763,-121.77,145.388,-178.38,153.658,154.764,-173.165,-173.06599999999997,-129.214,-128.966,161.363,111.199,73.264,92.388,161.31799999999998,166.27900000000002,100.531,99.473,175.342,145.746,-69.89,-70.52600000000001,166.264,-70.407,-70.237,-70.195,-174.99599999999998,-77.83800000000001,-70.601,-70.28699999999999,-70.598,-66.32300000000001,-70.55,-178.752,173.486,-127.414,-70.76899999999999,155.672,-177.942,-70.483,-173.225,-68.472,147.09799999999998,95.06,151.869,-174.683,-174.768,9.426,-69.012,-172.62099999999998,101.162,118.37,100.413,118.467,141.586,-93.363,-101.703,119.838,162.149,-97.404,-61.274,97.883,148.463,148.623,126.17,-45.113,125.386,141.003,-76.656,-139.29399999999998,-52.382,37.646,125.42,-177.514,144.439,-65.835,-131.554,-70.479,-70.54899999999999,-172.36700000000002,161.2,127.474,131.09,-71.695,-70.182,-179.509,-179.34900000000002,-179.493,155.778,-179.49,-71.788,178.291,33.212,-141.447,-179.009,-178.979,139.067,96.806,142.026,-69.048,-168.22099999999998,-68.627,33.162,-168.38299999999998,166.56599999999997,-173.991,-168.149,-173.847,72.985,146.884,146.967,101.032,-91.479,-68.484,-130.39,-130.746,-130.542,-155.695,22.693,134.012,125.376,-179.6,131.368,85.166,-131.183,-127.264,120.989,92.869,-179.535,85.15799999999999,-179.149,-112.019,166.98,126.816,-111.851,-175.34799999999998,-175.58900000000003,97.442,85.262,-94.037,-82.383,146.619,-25.24,127.688,125.083,129.65,-175.07,-179.352,28.9,-27.043000000000003,-66.902,-70.03699999999999,118.07,122.653,-179.238,116.819,-41.899,125.084,-25.586,101.21,-94.304,128.644,21.67,21.863000000000003,154.249,-68.385,95.964,-46.492,-46.542,21.775,18.571,-114.8721,138.96200000000002,99.88,99.962,-23.433000000000003,99.931,99.972,99.891,99.808,101.067,-178.96599999999998,142.438,141.766,-108.968,93.477,-69.941,-179.299,-179.313,99.823,153.175,121.334,125.63,101.452,-173.72099999999998,128.232,156.546,-69.294,-169.481,167.335,167.183,35.008,-93.462,142.599,94.596,-126.835,-136.082,-177.44,126.934,81.467,81.433,-178.71599999999998,167.03099999999998,-68.96300000000001,-141.903,152.97899999999998,144.879,-84.835,25.345,179.362,121.949,125.684,121.984,42.525,95.296,-177.929,102.717,69.23899999999999,129.203,-172.83599999999998,168.452,143.78799999999998,168.861,168.905,168.892,168.87400000000002,168.937,168.49599999999998,168.866,178.178,144.958,144.885,168.803,168.83900000000003,158.453,147.501,67.075,-127.621,-28.035,-90.599,-175.959,-179.361,-175.699,-179.165,126.081,140.005,144.878,-179.02200000000002,-176.58,125.694,168.796,125.722,125.685,131.446,121.619,168.72,-23.471,164.11700000000002,-16.597,-100.171,-24.714,168.953,168.824,142.03,127.484,168.878,-177.528,155.091,168.83599999999998,141.545,141.756,141.526,141.683,143.181,122.575,103.322,104.032,104.682,103.715,104.092,103.618,103.889,103.194,-142.309,-25.483,103.351,104.982,101.409,31.965,131.872,99.147,178.759,-78.207,101.475,101.272,-34.897,129.483,-30.515,156.069,-73.764,105.423,-153.78,-82.96799999999999,147.41,105.54,-91.02,-21.013,141.523,0.987,80.479,-112.258,0.979,121.35,149.66,-173.672,161.273,120.255,120.265,120.231,139.058,-91.623,-91.613,127.885,-0.6579999999999999,21.525,167.88,167.886,179.91099999999997,-114.169,140.881,140.678,-179.733,-107.45,-82.652,151.754,148.922,21.82,157.804,141.276,153.267,97.158,97.191,151.69,142.486,-173.342,91.824,91.777,91.712,-92.718,88.307,137.446,-22.099,-21.882,-179.778,-60.442,152.886,151.04399999999998,150.965,-174.047,128.334,-71.748,147.821,121.132,121.149,96.518,27.86,-12.17,-172.963,-178.50599999999997,-129.356,-129.417,142.214,164.493,164.53099999999998,164.616,-177.312,150.89600000000002,139.615,142.05100000000002,141.464,105.498,157.584,105.542,178.982,146.658,-18.287,163.162,163.10299999999998,-118.783,-27.806,104.722,120.757,178.16299999999998,156.38,151.796,130.195,105.494,117.665,-111.0,-175.65099999999998,-109.518,101.076,153.77100000000002,-178.44099999999997,153.826,91.814,91.711,-21.843000000000004,166.23,-111.281,114.516,-177.765,-82.726,124.319,98.207,-4.453,-13.449000000000002,-112.842,-173.24599999999998,-173.476,97.697,65.39399999999999,125.252,176.851,83.52,104.469,-74.377,104.158,41.469,47.35,-129.628,-17.358,147.25799999999998,101.889,-67.738,101.97,-177.636,-176.41299999999998,126.041,-63.225,167.101,-177.80599999999998,166.96599999999998,-13.955,70.934,169.108,166.967,122.57,158.261,166.50799999999998,96.323,55.828,-38.705,-69.22399999999999,127.363,143.754,170.47099999999998,164.07,128.95600000000002,-75.517,126.855,-177.329,-28.998,126.844,-105.999,158.363,164.481,140.45,-105.497,83.48700000000001,65.316,120.575,120.548,-3.882,-177.683,138.78,120.444,169.861,171.21,-36.758,-36.882,91.659,-25.903,-91.23,-177.176,73.824,73.663,73.888,69.47,90.35,-115.448,90.328,-174.42,-173.515,46.254,-64.833,-176.90200000000002,-64.971,-92.364,-92.554,147.269,-173.81900000000002,-173.7,120.681,127.732,-175.351,125.778,145.57399999999998,167.255,70.683,123.015,167.183,145.86700000000002,67.351,-108.395,67.455,153.213,-108.246,148.71200000000002,129.227,148.873,-174.366,-176.956,97.253,-176.325,168.458,-174.362,-177.44099999999997,168.032,167.94,168.12,129.07399999999998,-174.232,-174.21099999999998,95.833,-27.234,-140.80100000000002,8.727,-88.75,91.711,122.091,122.106,121.775,128.799,-116.056,169.48,-82.96700000000001,-179.717,159.553,-129.565,101.259,171.199,101.421,171.238,-13.933,-95.065,-175.574,171.322,154.322,-177.87599999999998,146.968,-175.201,167.588,101.764,-126.978,-177.71599999999998,146.994,145.75,142.878,-68.288,143.003,-176.628,124.745,-44.826,-44.795,106.823,-176.924,139.32,168.173,-178.855,67.404,166.572,100.753,123.433,123.398,166.572,-18.762,-178.37099999999998,-179.99599999999998,-71.726,-72.051,-27.29,-71.949,142.425,126.532,138.996,-13.338,142.317,154.94299999999998,-171.90900000000002,176.77900000000002,125.377,-128.621,64.499,71.075,101.217,-107.647,101.298,-26.661,-27.118,132.885,133.363,70.743,132.885,133.305,133.275,133.194,132.757,70.883,-108.757,133.434,-179.22400000000002,132.934,-84.197,56.962,66.078,170.635,170.43,161.211,155.154,170.274,-92.744,-177.951,170.91099999999997,170.80599999999998,170.74,129.814,171.043,148.511,128.56799999999998,-176.697,-179.112,-152.887,-178.59099999999998,-171.15900000000002,98.184,-178.67700000000002,164.298,98.28,124.157,-172.06799999999998,-71.402,-174.47299999999998,-69.065,141.148,-76.558,147.82399999999998,-81.15,-177.298,178.329,126.387,126.606,126.643,126.533,126.783,126.482,126.658,126.65,126.58,126.798,126.411,126.793,126.724,126.548,126.483,-178.111,126.683,142.236,-80.891,20.78,-178.61700000000002,20.909,154.752,-176.33,-178.74900000000002,73.9,130.864,132.67,126.561,146.303,97.165,170.55700000000002,88.634,121.265,127.772,142.10399999999998,-24.796,-176.58,119.868,-179.05599999999998,-1.832,-173.30900000000003,-1.853,-176.362,139.119,-83.219,-83.206,-23.81,-82.76700000000001,-95.124,-70.365,-173.218,-129.7,126.552,126.7,126.655,-174.66,-179.38,57.819,151.82299999999998,-175.77599999999998,73.303,-81.33800000000001,126.702,139.543,-152.743,-178.25799999999998,-178.267,145.716,144.102,101.907,130.22899999999998,-66.593,127.201,155.11700000000002,-174.65599999999998,-27.727,131.417,68.554,13.334,-174.938,151.548,13.464,-6.263,125.093,154.88299999999998,-177.732,58.071000000000005,100.424,100.471,154.151,-26.858,100.317,-70.483,151.704,-177.445,-178.482,151.42700000000002,126.678,129.72899999999998,-173.72400000000002,169.93900000000002,155.009,129.664,166.028,126.815,-178.582,-99.446,-35.028,162.219,-161.52,-91.143,135.5,-67.01,-124.577,-85.169,149.543,145.412,65.138,126.931,-173.49,-178.833,-152.42600000000002,-173.491,-8.628,-74.83800000000001,37.74,126.899,-90.742,-98.457,178.84599999999998,-177.683,88.34899999999999,-103.969,165.062,-177.017,-86.21700000000001,-106.535,168.329,125.776,-26.111,167.949,167.857,167.885,-158.43200000000002,120.592,-109.165,167.762,35.139,143.445,-104.398,167.72099999999998,140.914,-46.105,-179.583,-179.613,171.46900000000002,-126.655,-83.995,-176.87,167.812,117.2,126.438,5.871,-175.234,28.453000000000003,145.19,-150.704,-178.201,142.389,153.782,-15.935,122.204,25.471,125.963,-109.754,-78.96600000000001,-86.49600000000001,176.99200000000002,128.03,67.47800000000001,-72.453,-102.686,101.095,144.722,-70.445,119.32,122.201,-67.087,166.562,165.937,150.506,167.72099999999998,166.13,126.511,-175.075,126.94,85.902,154.97299999999998,-143.662,-177.69299999999998,168.08900000000003,102.895,101.705,143.263,152.629,-174.25599999999997,-143.181,-124.296,132.908,-112.997,-112.903,-113.728,125.095,166.356,-113.789,-177.75599999999997,179.112,153.187,137.944,166.09,143.19799999999998,92.902,138.264,94.793,-25.25,-66.672,126.376,140.395,-114.261,92.821,-85.633,-174.565,166.68200000000002,-100.366,-178.239,99.49,99.433,-179.399,123.499,123.516,123.711,97.95,154.56799999999998,-178.391,99.371,0.944,171.239,127.077,153.73,123.427,95.718,95.709,95.767,-172.571,95.831,107.297,107.393,-178.956,130.014,94.669,-70.248,20.388,110.628,43.443000000000005,120.897,126.012,154.192,-111.824,154.23,-67.92699999999999,-112.267,120.429,124.715,127.189,-108.481,115.593,-7.67,91.437,94.793,141.958,154.70600000000002,159.911,-107.339,130.217,127.821,-172.095,-173.15900000000002,-173.12599999999998,-172.015,-171.66099999999997,-172.976,-173.263,-173.239,-173.372,-172.551,126.711,99.867,169.56099999999998,-69.293,101.524,-173.252,-172.782,166.511,-173.47099999999998,-173.468,174.505,-172.965,121.452,132.974,-173.24,123.378,123.529,-173.255,-104.912,-107.527,178.05200000000002,119.533,122.371,166.51,166.352,166.382,166.641,166.03,166.08599999999998,166.497,165.957,166.399,166.356,165.96,166.17700000000002,165.91,166.489,165.81900000000002,166.31400000000002,166.696,166.282,165.97799999999998,166.503,157.959,166.69099999999997,-70.684,-173.063,152.455,170.248,166.116,66.688,166.498,166.34799999999998,166.253,-166.997,149.129,128.232,-167.118,-174.82299999999998,-166.75,-85.322,139.539,-103.823,123.16,105.223,-171.987,166.417,123.203,123.247,120.655,-172.976,-172.264,-82.579,70.95,134.13299999999998,166.047,130.385,118.793,-179.205,63.879,-65.163,-173.388,-95.538,70.722,129.782,166.37599999999998,-173.753,-175.173,20.491,126.575,-33.878,45.907,120.744,160.703,-64.465,86.008,167.993,118.631,60.263000000000005,39.613,178.331,144.31,91.899,125.531,-178.662,-70.321,-64.095,166.245,-66.641,-131.395,-131.572,6.484,-18.002,-178.425,-74.967,179.467,-105.597,166.25099999999998,-174.035,-174.01,-89.90700000000001,118.885,-177.018,126.288,126.083,126.254,167.643,125.552,-122.321,33.87,33.878,-135.814,170.963,-21.072,95.91,152.756,-174.44799999999998,33.911,156.19,123.661,154.444,-26.898000000000003,-177.84,-9.9,-30.565,179.963,65.867,121.605,96.062,33.818000000000005,99.393,125.676,135.00799999999998,134.719,-73.97800000000001,-173.05900000000003,126.369,131.205,-176.94099999999997,139.653,94.807,126.341,-115.18916670000002,137.452,-150.975,-151.034,91.51,141.94899999999998,145.859,-77.718,157.487,157.35399999999998,157.606,157.08700000000002,-14.695,157.55100000000002,157.892,158.032,164.192,-16.567999999999998,151.746,159.28,157.626,-124.6925,133.731,-72.571,-72.78399999999999,-72.513,-72.861,-72.82600000000001,-72.903,-174.799,133.33,142.082,166.264,-177.612,126.285,-63.475,177.706,143.599,152.58700000000002,-65.87899999999999,153.262,-90.132,21.961,166.293,158.071,-80.804,-72.82300000000001,125.46,-110.357,129.029,157.756,167.89700000000002,130.888,-173.696,-74.46600000000001,-14.554,125.486,-66.712,169.665,-90.281,-90.602,-141.46200000000002,154.463,-173.857,-124.9613333,99.593,152.731,-172.737,123.615,-66.564,-179.877,-179.877,-96.861,-173.49200000000002,154.855,-16.769000000000002,113.845,25.393,-68.789,-174.767,128.72299999999998,-177.83599999999998,130.703,-175.115,166.80599999999998,-173.778,-176.03599999999997,-175.917,-175.915,-91.26,-86.126,-4.758,122.816,126.802,128.425,-72.898,-133.64,-72.033,-69.141,-72.61399999999999,-72.197,-72.107,-71.943,-73.594,-73.393,-72.132,-72.673,-72.176,-75.048,-71.579,-72.42699999999999,-72.433,-72.439,-75.32600000000001,-71.525,-73.652,-72.163,-73.545,-71.955,-73.694,-73.965,-73.257,-65.602,-73.348,-71.805,-73.208,-73.051,-73.55,-73.699,-71.828,-43.406000000000006,-72.832,-71.827,70.074,-71.952,141.468,-71.617,-73.68,-72.487,122.399,-73.301,-72.171,-73.36,-71.868,120.795,-72.125,167.227,-68.328,-73.223,-73.374,100.991,166.687,147.64700000000002,-115.296,-73.3,39.986,40.051,144.743,-66.617,-173.53099999999998,-72.298,-27.931,-71.891,-71.79899999999999,-71.99,-72.00399999999999,-71.979,-71.917,94.623,133.02,-73.465,141.299,97.171,128.135,141.59,-73.653,-73.53399999999999,83.70299999999999,-23.567,-73.158,-73.257,-73.074,142.204,164.672,-177.17700000000002,-73.475,152.245,-75.331,-73.164,120.742,92.708,120.071,130.284,-70.821,-128.373,-73.385,-72.89699999999999,138.379,92.831,153.875,-72.878,-177.05900000000003,-115.29533329999998,-115.0481667,125.009,-68.842,97.048,141.94299999999998,-68.124,-89.89399999999999,-70.667,-176.22299999999998,166.523,161.116,-3.542,147.516,-27.311,96.548,96.449,-112.167,-161.039,-73.732,-73.669,-86.81299999999999,147.291,-73.753,-91.987,67.658,-173.21900000000002,-72.969,128.122,-27.73,123.623,114.702,139.394,-177.877,-177.65,-71.877,140.951,-163.691,-73.454,-103.058,101.096,154.85399999999998,-70.547,-127.942,127.982,-129.467,118.259,122.485,96.018,-176.646,124.657,-67.07,-77.541,-135.252,-135.398,-143.132,-92.159,-84.302,-139.157,-74.352,-71.558,179.875,-35.924,129.944,166.643,166.73,166.745,166.606,96.07,124.025,93.471,-84.206,-73.505,169.10299999999998,-26.446,149.41299999999998,166.59400000000002,-14.384,96.15,146.773,169.485,126.905,51.95,142.503,142.688,91.936,141.625,-115.91133329999998,161.433,136.635,136.543,136.484,179.71900000000002,148.689,93.087,-100.176,-177.553,91.958,151.161,161.447,108.089,-75.038,141.593,160.863,-73.278,154.276,179.116,-97.782,129.385,166.485,-80.471,142.369,154.424,-179.78799999999998,145.026,145.999,158.709,-68.21600000000001,138.795,-73.31,-176.113,-73.23,-69.817,-175.22299999999998,-169.84799999999998,150.428,150.59,-169.71900000000002,-169.333,-169.56099999999998,-13.095999999999998,150.71200000000002,53.861,150.696,171.759,128.222,168.162,123.409,123.571,123.48,123.431,123.765,123.259,123.519,-173.548,154.637,141.4,-66.825,126.393,-169.408,123.222,159.843,154.209,126.583,59.317,-16.025,-34.206,126.213,171.502,-177.245,146.822,-175.03900000000002,-178.649,150.765,153.175,-73.281,-179.451,-178.571,168.06900000000002,143.148,167.345,167.81400000000002,167.78099999999998,167.798,-77.306,-32.874,141.474,139.77,141.487,141.634,141.461,141.566,141.429,160.121,-179.74200000000002,148.342,65.64699999999999,-178.826,141.514,-91.121,154.246,96.717,147.374,19.95,143.558,-107.193,54.47,-107.097,-26.991,149.961,65.93,-175.87,171.83,101.961,138.47,-173.99900000000002,-25.494,179.975,-175.205,162.173,103.461,-176.243,-179.30599999999998,-118.171,169.928,169.81799999999998,149.724,-73.41199999999999,129.24,94.057,141.986,-70.777,-105.93,-173.96,70.774,-76.07300000000001,179.75400000000002,151.54399999999998,-74.373,-149.512,146.46200000000002,133.917,179.732,-32.762,51.666,139.88299999999998,133.71200000000002,133.76,-74.256,133.846,133.498,121.472,128.751,100.249,122.157,125.154,-173.989,-175.361,-175.18,-175.203,128.217,-84.29299999999999,-175.248,133.71,-174.205,-174.065,142.871,-173.916,125.699,-173.84599999999998,-109.098,-109.144,-109.026,-73.726,150.869,-109.156,-68.372,-71.112,-141.952,-73.362,125.059,100.082,100.372,100.504,100.463,-85.758,-108.454,153.744,-142.292,150.161,150.22,-93.793,151.556,146.747,168.56,20.73,134.071,-174.28,-176.5,123.054,141.588,96.394,119.868,-82.571,154.74,130.035,-102.21,43.963,43.716,139.017,68.125,129.446,100.119,-131.47899999999998,121.658,-178.918,148.966,52.56399999999999,131.014,-43.128,128.071,139.187,-169.50599999999997,154.918,99.041,-178.956,149.977,-100.826,142.967,-7.474,-7.502999999999999,169.128,-25.741,126.505,72.86,129.898,-45.733,-179.35299999999998,-177.106,155.64700000000002,104.008,128.786,129.996,126.156,-173.30599999999998,-103.977,-88.64,59.18,111.197,95.893,143.69799999999998,143.215,143.308,143.236,143.535,143.595,171.16099999999997,168.59599999999998,119.951,-167.354,167.947,168.002,-176.162,168.28400000000002,168.261,139.375,167.96,-179.80200000000002,168.14,168.123,177.378,165.37599999999998,-26.045,-63.136,101.428,-73.32600000000001,149.89700000000002,142.17700000000002,171.63099999999997,-45.617,90.414,124.913,168.312,168.435,168.407,168.155,168.009,-176.032,-73.064,143.166,167.208,139.882,179.46,168.47099999999998,168.399,167.285,96.28,130.252,102.647,96.404,63.951,95.516,-176.292,-173.51,72.791,96.829,166.303,-173.11700000000002,166.356,59.015,175.99599999999998,-6.657,-164.22099999999998,142.95600000000002,-175.622,94.109,-160.465,-173.06799999999998,94.68,166.459,-73.44800000000001,104.067,155.184,122.974,123.039,-72.96,-73.19800000000001,-72.954,-17.018,-177.80900000000003,126.833,-175.672,-73.178,-73.176,-73.275,-72.834,121.483,143.162,166.47099999999998,153.157,162.11700000000002,-64.688,178.394,161.415,172.68,172.65,172.62099999999998,143.842,-87.815,-174.43400000000003,-95.007,164.899,-73.695,25.42,-17.012,-112.061,-111.981,-76.855,125.935,157.236,-69.362,-27.063,160.766,142.842,142.91,143.102,142.991,142.434,143.166,142.648,142.808,149.77700000000002,97.957,143.27,116.72,-117.837,142.373,141.184,143.351,142.155,141.763,142.49200000000002,141.84,141.77700000000002,142.29,141.876,143.37,141.696,144.233,141.601,143.80200000000002,141.111,142.269,142.067,142.813,142.284,144.59,144.233,141.86700000000002,141.1,142.404,141.665,142.463,141.576,143.248,142.724,144.237,141.605,143.016,142.855,140.875,144.725,143.755,142.529,142.80200000000002,142.398,143.6,142.98,141.874,141.856,142.681,142.358,141.82299999999998,142.406,142.097,144.529,141.82399999999998,142.349,141.195,142.71,142.309,142.793,141.892,141.813,141.57299999999998,142.226,142.78,142.7,142.208,140.852,141.486,144.541,141.562,143.017,142.657,141.17600000000002,142.967,140.984,142.77100000000002,140.984,140.966,142.451,141.924,143.311,141.601,142.76,142.52100000000002,143.592,143.752,141.496,141.842,141.778,141.809,140.933,143.07299999999998,142.39600000000002,143.166,142.463,142.244,141.171,141.52700000000002,142.08,142.548,142.264,141.602,141.96,141.743,142.827,141.84,144.126,140.761,144.036,141.403,141.54,141.808,141.856,141.864,141.548,143.465,144.159,141.391,142.096,141.628,138.376,142.872,140.884,140.658,138.3,139.055,142.63299999999998,141.605,142.828,144.827,141.768,-173.205,142.83100000000002,141.754,142.648,143.61,142.59799999999998,141.344,139.1,143.202,142.33,151.453,142.279,143.506,141.159,-109.82,142.549,142.405,142.482,141.889,141.72,141.637,142.344,143.181,141.858,142.394,141.1,140.894,142.45600000000002,142.245,142.30100000000002,142.959,142.237,138.582,143.28799999999998,140.994,140.71,142.019,-71.726,167.826,142.168,143.44299999999998,167.899,140.763,141.202,142.335,143.488,142.23,142.904,140.268,141.363,121.246,141.82399999999998,-179.82299999999998,70.92699999999999,120.566,140.997,144.003,141.791,143.437,143.113,143.188,141.404,-15.977,141.549,141.567,140.638,140.679,140.58,142.084,99.822,99.77,141.88,-179.405,-92.347,142.011,142.29,143.455,142.464,-177.517,141.821,141.95,26.56,143.209,153.964,-69.014,-178.585,107.693,-178.595,126.94,97.086,-94.338,141.588,-85.07799999999999,131.78,140.401,140.812,140.356,138.284,140.575,140.368,141.895,143.34,143.191,-178.52599999999998,141.881,-86.337,-173.238,-175.363,123.897,139.653,143.917,-63.201,179.87400000000002,143.549,143.628,140.305,141.219,-73.903,-174.592,161.2,142.87,-16.994,-16.958,122.771,108.477,-111.298,-99.471,160.49200000000002,141.653,-103.614,148.625,-82.33,155.86,-174.343,-178.548,101.848,-98.618,-160.53799999999998,144.032,-177.55200000000002,-160.688,128.398,122.948,142.243,147.411,126.415,143.536,168.226,168.39700000000002,168.451,-105.594,130.938,-105.515,168.34900000000002,143.987,-151.35299999999998,-84.31299999999999,141.341,70.748,-25.647,154.414,155.061,112.585,-175.22099999999998,163.84599999999998,147.893,29.103,140.843,146.909,-27.11,-178.17,140.49200000000002,143.488,120.754,143.247,-173.25599999999997,103.493,-178.53099999999998,-178.523,101.757,-73.691,143.907,92.459,140.912,146.62,-177.886,-16.039,-69.518,149.936,-178.055,41.735,172.743,126.457,99.225,99.109,143.512,57.766000000000005,151.04,41.732,141.664,-91.64,-80.976,-129.493,-68.22800000000001,167.21400000000003,165.551,142.77700000000002,142.205,-171.83599999999998,165.93099999999998,142.553,179.37,146.279,136.631,136.657,-173.692,122.471,-171.762,-171.702,-72.34100000000001,-175.91299999999998,-175.84900000000002,-175.884,146.577,147.85,-87.62,175.75,-176.025,141.618,-176.34,-176.24900000000002,-176.338,-176.71099999999998,-176.942,140.869,-26.419,129.39600000000002,-174.53799999999998,-174.638,-177.12,-177.051,-177.007,143.264,-176.083,-176.579,121.694,-174.74599999999998,-114.076,122.175,-85.2,130.49200000000002,-93.772,139.85,-23.523000000000003,-71.832,-174.99900000000002,127.585,169.364,-161.29,152.944,178.94400000000002,179.03,71.41,162.01,164.452,-178.595,-69.705,141.815,-161.148,145.253,141.39,150.611,140.933,120.043,159.79399999999998,67.113,-109.525,-43.391000000000005,143.236,-73.116,179.75099999999998,143.234,140.955,171.579,142.826,144.828,142.083,138.433,-171.267,179.007,148.161,101.09,154.769,-176.72799999999998,-73.334,168.308,162.339,65.082,-12.618,179.919,77.028,140.893,-177.021,-177.93200000000002,-94.674,-14.653,-76.908,128.011,147.144,-25.452,143.77,-177.00400000000002,141.65200000000002,-174.94400000000002,-179.451,168.143,168.15599999999998,168.218,167.86700000000002,168.165,-27.494,151.024,167.268,-176.676,141.688,104.054,-77.9363333,-74.525,167.727,166.99599999999998,167.615,179.924,-115.945,167.94099999999997,126.752,153.278,-28.902,166.65599999999998,-171.708,-63.029,166.79,-26.847,-74.907,169.71599999999998,168.705,-173.62099999999998,-82.35799999999999,97.893,-178.46099999999998,164.007,-126.893,167.734,144.178,-77.471,-71.797,-178.991,172.984,-179.03900000000002,141.338,-177.957,-179.528,169.79,142.779,143.24,143.00799999999998,143.15,143.145,142.657,143.05200000000002,88.155,-171.982,-90.238,-105.207,38.842,-175.31099999999998,-109.44,-73.85300000000001,164.542,140.429,-32.492,138.245,-64.219,171.222,-179.03799999999998,134.137,-173.222,-115.958,141.257,-116.219,138.838,114.587,-127.135,147.881,123.722,-177.455,151.037,142.47899999999998,-176.238,43.508,43.595,43.446000000000005,43.3,43.077,-171.826,43.623000000000005,-179.53099999999998,-75.96600000000001,-75.998,-75.844,122.866,101.345,-70.959,-114.963,177.93200000000002,82.43700000000001,-109.205,-128.843,167.384,168.304,-70.199,-96.765,-162.549,71.102,170.735,-85.861,125.621,43.229,146.095,-124.439,-173.095,-124.327,126.91,127.849,121.914,140.311,-81.546,-103.158,-91.718,179.989,-38.495,179.418,-174.135,142.138,95.232,-65.09,25.083,141.368,142.639,116.983,153.733,-15.45,118.999,-176.73,93.843,121.974,58.078,120.499,-59.8,133.637,126.514,-70.918,144.55100000000002,-99.789,178.554,-28.184,123.03,-174.826,146.809,-143.727,-179.09900000000002,141.631,-76.056,119.638,-176.863,-179.017,172.8,172.743,27.958,-173.862,168.704,95.911,-142.457,138.072,-173.543,-70.361,-107.312,-176.935,165.16,93.21,141.071,28.152,-27.073,121.156,-56.072,-56.113,-55.965,-56.095,125.837,-71.499,126.829,165.57,165.778,119.701,-93.005,-25.147,-24.899,-73.03,178.52,-27.723000000000003,142.211,-110.517,-177.386,-75.635,149.774,149.718,167.13299999999998,167.179,167.27700000000002,167.187,-174.035,125.754,-127.906,57.56100000000001,168.917,167.226,123.206,123.227,123.095,123.08,-25.816,157.83700000000002,-178.549,132.691,-73.884,126.853,-84.12100000000001,-123.79,141.40200000000002,141.386,161.102,-127.518,65.405,-92.779,-13.193,120.891,-177.5,-177.238,-177.73,95.991,139.391,141.001,170.34,-84.34,169.769,-63.294,123.7,138.888,81.307,169.613,-157.567,73.152,147.609,-93.026,144.944,144.761,144.806,140.695,151.042,139.279,125.633,63.404,-107.644,-175.702,140.266,-98.231,145.955,-136.157,-135.923,-72.217,60.653,-104.228,-104.16,142.017,-140.014,140.957,153.42700000000002,-98.316,153.457,100.426,-13.972,93.063,91.748,-176.097,89.441,91.735,92.463,89.544,90.854,92.092,-127.638,-102.689,89.685,-113.027,-113.104,141.468,141.15200000000002,-65.308,155.651,105.457,168.741,90.269,121.855,21.475,-71.365,147.11700000000002,-177.236,-16.612000000000002,138.77200000000002,93.853,93.821,93.36,134.276,-16.180999999999997,134.197,140.29,-177.412,125.293,154.739,61.511,93.949,-175.95,140.472,93.945,94.459,-174.705,152.11,94.509,140.349,142.037,-71.46,89.598,128.511,-108.44,-101.085,-92.897,143.836,-102.728,-174.227,-75.801,46.789,127.45,-13.6,-112.587,70.354,-69.59100000000001,149.711,-80.15899999999999,-70.562,143.311,11.23,143.248,143.164,22.968000000000004,142.082,139.516,139.536,5.683,140.055,-63.094,-175.976,168.925,-179.61,11.086,11.008,133.181,-148.864,133.269,-63.555,67.21,-82.62899999999999,-82.56299999999999,106.371,-177.919,141.132,121.428,-70.57,-176.34,-72.413,122.248,28.88,69.351,105.494,-28.394,126.828,126.354,119.563,160.356,141.83100000000002,171.61900000000003,171.701,-178.18599999999998,-178.65,158.79,97.896,90.509,163.195,100.781,-89.96700000000001,-173.268,-9.663,84.7,170.99200000000002,94.696,-75.598,163.33100000000002,173.75599999999997,167.34,153.296,151.28799999999998,28.919,130.099,151.424,-177.362,151.665,70.906,129.321,161.234,137.053,-128.893,-178.50799999999998,71.375,155.907,156.132,-179.287,-179.968,173.78900000000002,149.532,96.045,159.727,66.391,-174.491,169.509,153.173,94.299,139.07299999999998,-92.294,131.121,-74.259,153.275,-176.916,-178.358,178.062,-109.332,-167.421,46.826,46.745,82.51799999999999,-157.718,145.064,-89.215,-36.768,-98.905,-103.003,120.096,172.37900000000002,128.697,-173.042,-128.619,144.57,92.056,-176.80700000000002,171.324,-179.533,142.91299999999998,-179.778,126.837,-88.59,-88.61200000000001,-88.654,141.814,114.08,-10.605,126.638,126.719,-92.773,123.875,113.931,125.044,166.513,-85.315,140.252,-105.891,103.983,145.923,135.109,-85.323,155.75,175.01,151.111,143.218,24.11,175.845,100.594,-16.01,113.865,150.119,-178.513,-174.19400000000002,-174.292,-173.90099999999998,-110.173,-178.295,157.45600000000002,-98.393,-76.362,143.099,177.83,97.672,-46.457,-91.504,-108.512,120.939,-68.165,-109.574,129.129,139.224,153.69899999999998,-70.31,134.03,156.048,154.428,46.405,-92.289,159.379,-91.01,156.438,176.167,124.52,144.006,67.057,-176.8,166.56400000000002,-18.666,139.251,148.20600000000002,171.69099999999997,-85.29799999999999,141.69899999999998,-132.101,-131.96200000000002,-132.602,-132.082,123.465,125.185,-131.90200000000002,107.529,162.799,126.161,-34.073,143.61,122.2,122.167,57.203,-104.8,-91.895,-92.156,148.034,-128.477,-75.071,95.885,95.832,95.866,-92.164,-142.855,-77.053,-175.93400000000003,122.472,-71.19,151.341,148.27,-100.382,173.351,-134.75799999999998,155.425,167.46,-172.32,151.602,-71.868,-63.571000000000005,129.219,-76.101,131.134,-81.07,145.562,-92.113,-175.595,167.645,-136.244,-150.76,59.571000000000005,126.638,143.94899999999998,143.764,143.607,176.067,146.954,143.97299999999998,126.166,129.825,126.231,121.383,-119.66,-178.18599999999998,174.011,153.016,155.83700000000002,123.807,-104.495,-104.177,167.28599999999997,94.782,41.075,-144.483,-73.255,122.918,148.899,70.59899999999999,127.386,-134.65200000000002,25.54,179.18,95.048,-141.465,95.095,-110.103,-134.548,-161.43200000000002,146.503,-35.126999999999995,57.467,95.907,-173.235,79.708,-70.653,166.372,166.36700000000002,166.38099999999997,165.438,166.361,-135.018,147.67600000000002,165.532,165.37900000000002,165.378,165.357,143.092,141.99200000000002,165.28400000000002,155.046,165.248,165.114,164.771,165.898,164.882,164.62900000000002,165.588,165.209,165.301,166.015,165.588,165.51,165.385,165.095,165.058,165.08,165.50400000000002,164.551,164.953,165.268,164.765,165.18200000000002,165.72799999999998,165.533,166.46200000000002,166.52599999999998,165.632,164.94,-172.967,164.778,165.655,165.794,165.79,164.74400000000003,165.96900000000002,165.891,166.018,154.737,166.63099999999997,166.76,165.96599999999998,-77.393,165.741,165.91,166.78799999999998,-174.713,165.46099999999998,166.8,165.56900000000002,164.255,130.205,142.50799999999998,-174.465,125.748,177.933,165.673,165.555,-32.96,-178.123,-178.148,-173.451,166.90200000000002,-103.714,-63.097,165.304,127.467,165.023,-178.051,139.245,-179.388,167.338,157.283,165.921,157.453,157.408,145.901,152.559,171.055,121.49,169.377,157.218,-90.64,151.519,148.174,148.455,165.18599999999998,-131.921,163.4,-85.229,-24.331,-176.56799999999998,160.159,173.37,-90.463,-98.152,120.278,121.215,-175.42700000000002,-176.665,126.247,-177.804,143.167,143.155,45.382,131.003,-124.27,130.976,138.476,-123.207,51.593,122.064,95.623,175.05900000000003,134.828,169.535,154.607,154.434,61.996,142.542,62.354,138.75,139.352,141.63,123.356,-109.213,150.78799999999998,121.632,157.65200000000002,102.888,152.111,130.218,1.173,157.148,138.887,-178.239,-102.182,179.392,152.127,70.22,-178.916,140.97899999999998,-24.913,75.863,-136.737,-176.295,175.051,-13.229,57.77,57.926,-175.107,57.522,-91.376,57.765,143.744,145.28799999999998,92.399,-73.33,152.81799999999998,-6.799,165.08,22.073,141.471,57.785,160.065,160.268,-80.74600000000001,160.362,160.29399999999998,160.142,160.063,160.072,160.636,-72.263,-177.232,-175.759,158.939,-121.0595,153.221,152.995,-174.922,151.444,127.916,67.314,53.892,-82.63799999999999,-135.819,-177.185,124.898,155.91299999999998,121.141,124.928,150.91899999999998,166.299,179.085,122.671,-16.182000000000002,126.792,-66.691,128.886,107.236,179.40200000000002,25.02,-86.926,-27.443,-99.203,158.158,25.159,52.413,86.17299999999999,151.4,148.684,148.576,-42.594,125.054,127.13,122.232,96.665,-173.804,96.65,-102.964,-66.516,-167.017,30.894,155.726,100.564,153.92700000000002,-179.908,149.70600000000002,113.002,-89.17200000000001,40.831,100.458,-177.46599999999998,-69.248,-177.535,-173.09,-25.07,154.768,-62.543,-71.74,174.408,167.69,-176.28599999999997,141.625,174.386,174.33700000000002,104.262,34.78,-177.222,167.68900000000002,-23.841,-177.05700000000002,-173.5006,141.8621,-127.4286,145.2582,-91.5958,173.8052,167.3184,167.373,97.9565,129.8088,-179.678,-86.9354,-81.9268,-142.3211,-78.1999,174.15200000000002,174.11700000000002,174.05,174.2623,54.0927,171.6697,-99.498,-68.5927,-175.2417,57.0446,179.6335,-179.136,151.6112,-175.2297,-175.1775,99.3502,-174.9407,-175.2847,128.2209,-176.4039,133.6656,155.1351,-130.3971,-130.2195,138.8325,-130.2245,-174.7671,-174.717,-174.7888,-174.8537,-45.232,-174.583,-86.0997,33.4751,122.3193,-92.1207,122.2235,-104.5783,-174.6365,-174.71599999999998,-124.156,95.9607,120.0106,-178.0226,59.5384,65.5009,65.5674,65.6201,65.471,-113.7439,-113.9877,-74.5112,-93.3857,65.5052,-173.8364,-178.3234,-28.5247,152.7864,57.5902,78.3693,141.6905,-97.4761,149.0414,-178.4838,-62.315,23.2523,122.2107,78.7182,95.8634,124.1167,124.261,123.6885,154.931,-110.3209,-25.6931,-174.7121,154.9657,-177.1425,-178.2171,-12.7964,144.6611,-173.72799999999998,144.6715,144.5734,154.6743,-73.193,-73.395,121.4366,-71.5215,-112.5956,-172.6411,-172.3982,148.8538,-172.5332,123.3471,-25.714,171.5445,67.6827,167.1235,-176.7731,139.9684,-130.5733,162.3024,-178.9984,-47.1233,142.17700000000002,-47.0621,-46.4266,90.0652,140.1529,-46.3687,-46.4011,-45.2114,-44.3839,-11.8343,137.0475,128.4339,138.5332,145.2041,-164.9357,95.1481,45.4824,92.8184,45.6105,-176.5449,151.0047,-54.9796,-55.0033,-53.9107,-76.2025,150.7634,51.31,128.3791,-126.8781,96.8261,170.3154,25.4971,126.1749,178.253,149.1667,-89.0898,140.6546,149.3456,165.9893,-70.521,-178.6609,146.7903,128.3228,140.6497,171.7306,96.133,96.0153,142.1406,143.036,-142.5413,31.31,-15.1711,-174.3201,146.6663,153.9863,126.2455,120.2719,167.24900000000002,-70.795,143.3822,-76.64399999999999,-106.0719,-70.633,166.5235,-179.5728,-92.0592,-66.8096,-179.2252,175.8144,-174.6812,-174.6902,172.5205,120.3147,146.1336,146.1758,109.2653,20.4528,20.5649,-63.9189,161.2282,-69.3735,-27.3391,166.2799,-177.8806,20.3897,153.7404,128.1716,154.4542,169.2569,166.4025,167.3721,-45.1914,154.435,124.5284,82.5864,82.4667,-68.813,169.8532,-114.3303,120.4305,-179.4181,-58.9272,153.7758,-75.5997,-47.2746,62.8765,62.6332,62.5996,62.5227,-171.821,-87.6879,154.8444,127.3674,-93.1535,-71.957,169.8234,167.2548,154.1211,-176.6437,-79.3537,-98.3358,-125.1338,147.9554,-19.9775,148.5531,-175.0857,131.8249,-126.8982,94.3128,25.2378,-76.3113,-80.9709,-70.7022,-70.8837,-32.3157,-70.7961,152.9064,122.2613,-177.1289,-25.3287,152.7899,152.8343,94.3342,94.2698,-70.874,-70.9515,-178.8113,-70.8538,-70.7651,-70.8824,-70.8207,179.2877,131.5108,166.5894,-68.7459,-86.5532,-176.7788,-21.9196,-69.17399999999999,146.9838,-70.7691,-70.9455,-70.166,-70.719,-70.7269,-70.9445,-70.8325,-82.34,141.8049,-70.5756,-70.4931,-70.531,-70.7332,-70.5865,102.2802,-70.654,161.7027,23.8711,-71.5803,-70.8513,-70.9226,-114.2804,-173.37099999999998,-86.3783,-70.6472,155.0485,154.9502,154.9753,154.9626,-85.8779,155.238,155.0491,162.1481,162.237,161.9895,161.9782,-70.747,162.0511,162.3912,161.9284,162.05200000000002,161.8756,161.8184,8.722000000000001,-101.2428,122.9351,-129.5313,155.7431,164.8139,-100.9723,-162.6679,155.5194,155.0869,155.0241,154.7155,154.8133,-70.9196,155.0116,155.3351,-115.0222,154.546,154.4348,154.7467,-127.7316,-176.6671,-143.7774,-174.7068,-13.4579,170.3546,97.9671,-175.3952,127.4008,144.2342,-162.2066,144.0124,179.0856,178.2401,139.4186,99.6696,-97.054,154.9011,-100.7461,-175.5359,-100.8122,-152.1323,146.1109,99.689,167.2398,-114.7995,-82.3045,-66.4407,144.9238,144.9363,122.0604,172.9979,-60.3648,-68.5388,-70.8968,-146.6847,-27.534,-175.53,92.7574,169.8451,-175.9032,93.8608,-105.9421,-105.5478,-25.1486,121.5005,-95.0729,88.0376,-28.2771,97.8437,145.0446,-27.8369,-98.141,25.3889,-26.3229,-68.3509,97.845,-128.5812,126.4726,-69.999,-107.469,89.7759,-129.6226,-136.7479,-112.4834,-175.0007,-162.3749,51.5739,157.0663,-13.8844,70.7174,91.0921,140.9876,141.7237,141.1141,-79.2557,-162.6119,-70.9451,166.8278,-70.8701,-70.9223,-71.0037,-177.7247,-177.5159,-177.6073,178.7352,178.4767,-177.1876,178.4563,178.4288,-177.5733,-177.2485,178.5844,178.4438,176.6981,176.4606,142.6278,-28.3669,-28.106,-28.1075,-175.2589,-175.5096,-175.6595,-17.3427,138.8441,-141.7836,155.1868,166.9008,166.8841,178.4648,-176.4451,155.9036,152.8075,142.0802,96.9388,173.9522,-92.4614,141.3472,168.3982,164.919,142.4525,-27.9709,-27.9186,151.2699,-70.3475,111.2529,126.4776,151.3872,151.3845,151.3765,-140.3333,-174.4517,57.6382,148.7838,-178.4001,-68.6776,-136.9601,-18.6749,-45.5809,136.769,143.873,-95.6533,146.769,-36.2607,154.8448,95.2033,3.181,67.337,-28.3088,146.1688,146.2597,128.0642,103.4086,128.0364,142.1309,127.1348,-111.6319,-176.0965,-84.9562,144.9757,145.4342,47.695,47.69,47.7037,47.736,175.3783,-17.1165,150.6889,146.8182,-69.0385,-71.4416,-122.3123333,-28.5152,-73.5714,-73.1133,-177.8307,167.3911,132.0682,23.706,84.8674,-17.495,-173.3796,-173.5213,-173.0278,-114.7393,-173.3232,-114.2499,-114.5,-114.4718,-107.0488,-17.395,125.104,125.1251,125.0922,-17.3974,151.7171,139.8502,144.4294,150.1349,134.3003,139.597,-27.7792,151.7372,-66.6321,156.4122,-151.8159,95.2254,-176.3434,-17.315,67.7354,-178.5952,149.5329,158.0527,142.7657,122.1187,-94.822,125.7688,147.2265,-17.1994,100.4702,-108.3311,-41.8857,-110.8112,-110.8647,-111.656,-111.1953,-110.836,143.1649,-95.649,-33.2667,165.9628,-88.1225,179.864,-18.0043,47.8065,140.5047,150.8427,161.3242,-77.8895,169.6619,128.5533,-74.0836,126.7514,-174.6752,117.5894,-111.107,-111.2436,-177.7587,154.2778,-32.6801,79.9602,95.0654,148.2315,171.4529,-68.725,-177.8549,-85.3828,173.0845,169.1149,126.5217,126.2983,123.8891,126.5628,179.6621,155.1391,-102.1971,33.8037,94.359,126.4751,141.6082,93.5148,120.0724,127.0562,101.7374,137.8875,27.1505,154.9618,101.7618,126.5751,126.4582,61.381,127.0084,164.4453,123.1261,122.423,100.4736,100.533,-82.7339,130.4829,154.4603,154.2587,-91.3822,-91.4731,-82.6865,158.0836,126.232,122.4503,-25.4248,-176.4443,100.1432,-25.3698,-61.8091,141.5534,126.6483,-146.0942,147.2567,147.336,-82.3463,-179.49,121.5213,-24.8509,-178.5639,144.002,120.6673,60.3653,171.2364,163.2446,-82.6576,161.3346,68.3613,-68.5339,120.2456,-93.3808,133.9223,-63.1461,131.8634,179.578,-105.7571,119.7571,-91.4588,146.3279,168.52,-136.7703,97.2402,-178.3032,-124.60666670000002,-174.171,170.158,147.1244,166.7543,170.2648,-8.1198,145.2141,-67.1231,-168.6035,-175.8779,-82.6217,119.3699,-66.7204,-66.688,-179.601,-105.7405,-31.9016,121.427,-28.2591,142.8808,141.8914,143.5829,-103.159,-103.0536,164.1216,159.3522,168.1483,143.5871,143.4861,-76.5012,-106.848,143.1982,119.8398,141.8201,122.5348,145.8303,124.4702,-90.9992,-150.6522,98.7161,80.6046,-173.29,151.7342,-82.6541,-72.9875,-176.3784,146.4233,122.3067,152.0288,-178.5653,126.5217,-73.5219,154.8778,145.7186,-69.1663,121.75,-77.5836,-68.6175,176.7927,121.9895,126.4846,152.5623,152.6038,-173.049,-172.9409,-173.0293,78.0903,-172.8635,162.4863,152.4751,152.49,-172.8346,-178.5831,-176.3463,147.7519,152.7221,-173.2247,65.858,126.6945,-173.3499,26.8235,-178.6005,122.3158,102.4776,122.453,122.4532,166.43200000000002,173.0066,-130.7714,84.7314,85.5398,86.0213,84.8216,85.7505,87.3173,86.0173,-79.8322,-178.6329,-95.0355,-26.9077,151.7706,151.7773,151.8715,140.213,151.6757,151.8552,151.9265,168.8833,154.2683,151.8751,152.0278,152.1638,152.2351,67.2078,154.5567,97.9026,149.8228,-94.0135,142.0157,86.0655,86.2177,86.1617,142.0317,102.2191,86.0734,165.8102,80.3254,154.4418,168.5853,-132.1618,-175.5247,164.1694,160.3336,163.6959,163.2154,152.5914,-14.1708,-175.9627,-26.4546,-68.5076,135.7341,-25.2138,-156.43,99.9237,140.4931,-173.3817,142.9722,-129.8114,-129.9582,116.5409,78.1817,142.0308,-143.8281,143.319,-68.4323,143.33100000000002,143.3457,-173.0098,-176.15900000000002,125.2517,125.8447,-179.0024,-17.1605,-73.812,-73.7481,-26.5027,-177.0845,-178.3276,-175.0399,139.7254,139.7745,140.0686,-151.96200000000002,-178.3241,34.6672,-74.2558,71.3004,151.5457,159.5935,162.5558,78.1542,95.032,125.8907,-142.1098,-174.5001,147.9748,-179.6208,-179.7237,-111.6323,-111.3022,-177.1329,-90.244,141.4646,158.403,128.1869,131.7493,-58.4736,-58.5479,-178.1887,165.1409,-105.0838,-21.1776,108.9163,112.6695,-174.0685,-169.4458,-169.5781,-169.4223,-169.3458,-169.0816,-169.7473,-169.3455,138.5277,-77.3152,-153.1961,154.2281,-176.0466,-140.9507,-174.3557,-93.664,-178.2511,28.8973,28.9515,-85.2083,-85.2705,-174.141,-176.2457,158.0525,157.9543,-174.8533,71.2147,-176.2405,-176.2728,-71.6227,157.8422,157.8772,78.0623,78.3516,152.8909,122.4897,-176.0525,-45.8517,163.8226,-175.1577,146.6278,51.7823,126.5894,149.553,-71.2958,-178.7298,-25.8754,141.7062,141.6,124.6314,126.6816,-174.3382,155.6819,179.1278,-177.8599,-178.19799999999998,-178.5336,-94.137,-178.2046,-116.3317,-169.5349,146.6564,-178.0287,147.3658,-109.5138,-109.6226,126.4288,151.4768,-71.6744,-71.745,-71.7425,-71.405,-71.6717,-71.9189,-71.4262,-71.77199999999999,-71.8037,-72.0222,-72.0265,-71.6504,-71.5398,-71.6876,-71.926,-71.804,-71.98,-72.1309,159.7085,-71.6064,-72.3779,-71.9829,-71.8851,-72.3678,-72.2292,-45.9886,-72.077,-71.5902,-72.0629,-72.1984,-71.7431,-71.3792,-71.82,-71.6407,-71.2653,-130.2084,131.2622,160.5201,-71.3217,123.7966,151.6661,-142.4382,129.6047,-66.6126,-27.7153,-73.6761,-71.551,-72.1018,-71.5318,-179.2558,-71.7325,-20.8492,-135.708,-71.8227,176.2884,156.2259,159.2114,-64.4839,-82.4526,-173.2608,120.6172,140.2123,-65.8872,167.3028,70.32600000000001,6.1653,37.1711,138.2666,-179.3319,-177.7961,70.6847,70.3676,166.3796,-68.4169,121.6561,-173.3339,124.9069,124.8754,149.7071,150.9036,-72.3015,-71.4519,-71.3904,119.8464,-69.4287,98.8905,94.5455,-172.9113,-172.9785,94.648,94.534,94.8019,-173.0746,147.6443,-72.0068,-72.0585,-108.6442,110.2187,128.93,-64.4985,128.8729,128.8428,-81.8219,154.2439,20.6,73.2038,158.4217,142.6429,129.9375,-71.7676,71.4233,-98.9116,145.2659,-17.834,-70.9437,-71.0184,126.2904,-71.2574,-88.9476,-70.6009,146.4353,-72.15100000000001,-64.6521,-64.5862,67.6967,-176.5573,85.0913,-178.69400000000002,72.7797,-71.2624,74.6053,-90.8905,-71.7519,129.5079,175.2475,-73.2763,-23.9062,-90.0703,-93.633,169.3857,107.0225,-71.3057,117.6359,151.9782,-1.4943,-123.1158,128.9775,-86.4356,71.1263,-61.3454,154.7595,-86.6205,139.4489,-177.28099999999998,129.9406,93.6505,132.7337,-136.2603,143.6108,-71.6383,-147.9486,126.8621,141.0867,58.1916,70.9503,-174.875,-63.3288,142.781,-177.1557,159.7523,126.3095,127.2292,176.1244,121.3206,101.6409,-178.5829,-106.9337,172.06,-153.4051,-173.3833,-3.6818,128.392,153.2454,153.2532,-28.1447,158.5463,146.9814,147.1385,169.1485,-179.9504,123.4476,120.6014,174.9389,-173.3951,154.7421,-71.5838,119.4013,172.7715,138.8823,-175.4788,164.4987,-73.6045,-125.1659,129.0605,-27.5661,-179.4072,-32.6275,142.4073,-72.2967,145.002,155.2569,139.5956,125.3322,-178.3856,94.3299,94.4101,125.316,148.8245,148.8388,-178.2218,-173.4281,-173.9725,-173.9423,128.9567,-27.0089,18.7984,125.1481,153.0955,166.6214,72.4114,-129.8485,-174.1423,129.4922,-88.7677,-60.7019,162.8129,66.0962,68.0253,-168.6554,-114.3078,-168.6929,-27.6408,126.1019,136.3901,144.887,-157.9321,166.8551,126.6515,166.7012,166.6245,166.6391,107.3857,130.4296,166.5943,102.211,-96.2563,71.1311,179.5394,176.6748,-103.9367,146.1742,94.8654,122.0231,160.8036,166.5026,130.7042,130.7204,166.4334,128.1235,127.0004,-92.367,130.7543,130.8091,131.1569,-111.5741,-79.9218,-80.4644,-80.2013,-174.2467,-80.6943,131.0991,169.0934,-27.2307,-80.0247,-80.2104,-80.0352,-55.8867,141.6216,-80.5039,-80.5039,-80.2522,-27.027,-173.2031,-93.1509,140.1922,-93.0882,121.8009,167.3786,-103.7363,167.2001,104.6271,-107.1631,147.5063,-143.9055,166.9341,51.7683,-108.2391,-105.3371,-97.8416,165.34400000000002,121.9839,122.0531,66.3878,179.3397,-102.7916,172.9882,-103.1118,-79.7899,-79.616,129.8841,140.0808,130.1374,128.5829,-178.6481,-178.2038,-26.9353,-177.9791,122.5458,154.3641,-158.5143,-177.9545,100.6654,-105.8338,-71.8594,125.6264,-172.6317,-177.8359,-71.4636,166.8282,-105.1731,-105.2031,126.3712,-104.5531,116.2669,-86.9633,160.559,-13.6003,-177.2142,-104.8111,130.1996,168.8279,130.1941,166.5804,168.9219,166.37,-67.1526,169.0737,121.3782,168.7595,-45.1402,151.8796,-42.912,123.3704,-69.3417,-35.3608,73.3388,142.2226,-97.8332,73.34100000000001,166.4585,167.4701,164.9682,-142.0798,-80.8075,-103.2511,-172.8764,-173.2011,167.3857,-79.6358,-79.638,147.4614,-176.4143,-176.44299999999998,-176.5308,-176.5252,-176.3523,-35.2241,-71.9722,169.0547,146.9212,101.2175,-103.5251,-156.4568,-173.6725,-28.9702,126.2657,126.3706,-70.5111,148.0345,-18.6431,167.45,-79.0594,145.5073,145.4878,155.8087,-27.5372,117.8136,82.5565,-25.5494,-66.0078,142.0141,82.434,173.1167,-177.3433,-176.2612,142.2749,179.5022,-72.0092,141.7203,148.7233,-123.2414,-123.2773,-31.8766,-30.7714,-32.0659,-32.1126,173.2749,143.6796,143.7281,-31.7508,139.1356,122.4345,122.5391,13.1877,13.1533,94.569,100.1775,137.8537,138.4275,-17.8255,152.7915,178.9278,179.1461,179.4941,179.093,178.8907,178.9291,179.0179,178.6028,98.6145,178.7148,-30.9179,-173.7059,-125.6876667,-96.9291,147.3955,125.8874,178.6986,168.5415,165.9801,158.7126,-65.8254,-76.9536,31.6181,-112.3053,-76.1686,159.1673,-86.6423,60.9158,140.5718,102.7537,167.4862,140.4805,142.0478,-27.4883,33.4112,141.6368,126.4918,26.6097,-178.0078,140.5974,140.5604,-174.984,-178.2443,-177.7666,128.578,-86.5146,-103.8967,-174.9261,141.9442,-34.3336,121.436,-103.9169,-101.0092,178.64,127.449,-174.8198,153.5054,-103.9926,150.3606,20.6463,148.8871,94.8768,-179.843,-61.5065,108.1627,-44.8777,143.7548,133.8092,148.1035,-104.5714,-102.634,-174.8281,-174.8622,13.0528,13.0666,-15.5911,125.758,-163.265,-72.5321,153.2156,13.5205,13.0961,-74.4951,148.6588,-71.0457,104.8401,148.1913,-73.5603,149.8713,114.3817,-178.22299999999998,141.5658,178.7853,-82.5906,173.0499,173.6606,173.4319,173.6694,174.3037,174.2061,173.6227,173.6961,-67.4611,173.9374,173.2543,178.8402,173.9064,174.2992,174.3064,-173.0161,113.2445,130.4786,-177.0201,-68.6363,140.5246,141.387,177.0387,173.0041,140.025,141.3209,-88.8957,164.7541,160.5536,73.9776,-127.0346,88.4676,131.8204,54.0219,-70.827,174.1698,-176.3381,127.8342,123.3802,-60.9005,96.1678,86.3451,-126.1936,161.3214,161.0792,161.2302,161.3137,161.1316,161.4548,161.3099,161.3591,161.329,161.3501,161.2789,154.4734,-109.8492,161.5723,144.4037,144.2175,-90.8691,153.5216,153.5419,153.9975,161.2177,-107.8694,154.35299999999998,137.6672,161.2187,-70.9714,161.2236,84.9583,160.9149,160.7816,127.9206,145.4172,153.5754,153.5166,-73.9395,-74.4771,26.523000000000003,-118.8977,-118.8941,-118.8957,140.4262,118.6639,141.4103],&quot;name&quot;:&quot;&quot;,&quot;radius&quot;:10,&quot;subplot&quot;:&quot;mapbox&quot;,&quot;type&quot;:&quot;densitymapbox&quot;,&quot;z&quot;:[6.0,5.8,6.2,5.8,5.8,6.7,5.9,6.0,6.0,5.8,5.9,8.2,5.5,5.6,6.0,6.1,8.7,6.0,5.7,5.8,5.9,5.9,5.7,5.7,5.7,5.6,7.3,6.5,5.6,6.4,5.8,5.8,5.8,5.7,5.7,6.3,5.7,6.0,5.6,6.4,6.2,5.6,5.7,5.7,6.3,5.8,5.7,5.7,5.8,5.9,5.6,6.0,5.8,5.8,5.9,5.7,5.7,5.6,5.6,5.9,5.8,5.8,7.0,6.2,6.2,5.6,6.0,5.9,5.7,5.5,5.6,5.7,5.6,5.8,5.6,6.7,6.3,5.7,5.5,5.6,5.8,5.6,5.6,5.8,6.0,6.1,5.7,7.4,5.8,6.4,6.0,6.3,5.7,6.0,6.3,6.5,6.2,6.2,5.7,5.8,7.4,6.4,5.9,7.6,6.8,5.9,5.8,5.7,5.6,6.1,5.7,5.7,6.2,6.1,6.0,6.2,5.7,6.5,6.3,5.9,5.7,5.6,5.6,6.0,5.9,6.1,6.1,6.0,5.8,6.0,5.7,5.6,6.1,6.0,6.1,5.8,6.7,6.0,5.6,5.8,5.8,5.9,5.7,6.2,5.7,6.1,5.8,5.9,6.7,5.6,5.6,5.5,7.7,5.7,6.1,6.0,5.9,5.8,6.0,5.9,5.7,5.9,5.6,5.6,7.0,7.2,5.5,5.6,5.7,5.6,5.7,5.7,5.5,5.9,6.1,5.9,5.6,5.9,6.2,5.9,5.6,5.5,5.9,6.3,6.5,5.8,5.7,6.5,5.9,6.0,5.8,5.7,6.1,7.8,5.9,5.8,6.3,5.6,6.3,5.7,5.7,6.0,5.9,5.7,5.5,5.5,5.6,5.7,5.6,6.8,5.7,5.6,5.6,5.9,7.3,5.7,6.5,7.2,5.8,6.9,6.0,7.6,6.9,6.8,5.9,5.8,6.1,7.4,7.2,6.2,6.0,6.0,5.7,6.2,6.1,5.8,6.2,6.7,6.7,6.1,5.6,6.0,7.4,5.8,5.7,5.8,5.7,5.8,5.5,5.9,7.0,5.7,6.2,6.2,6.1,6.3,5.9,6.1,5.8,6.0,6.5,5.8,5.9,6.8,6.0,6.7,5.9,5.9,6.3,5.6,5.7,5.8,5.6,6.5,6.1,6.8,6.2,6.0,5.9,5.9,5.9,5.8,5.6,5.7,5.7,6.3,6.1,5.6,5.9,5.6,6.7,5.6,6.7,6.1,5.9,6.2,6.4,6.5,5.7,5.7,6.1,5.9,6.0,5.7,5.6,6.5,6.0,5.8,6.5,5.7,5.9,6.2,5.6,5.8,5.6,5.8,6.2,5.9,5.8,5.8,5.6,6.7,6.3,6.0,6.4,6.2,5.9,6.0,5.6,5.8,6.3,5.8,6.1,5.6,6.2,5.9,5.8,5.6,5.8,5.8,5.9,6.0,5.7,5.8,5.8,6.2,5.8,5.6,6.0,5.6,5.7,5.7,5.7,5.8,6.4,6.2,6.4,5.9,6.5,6.5,6.3,5.8,5.8,6.5,6.0,5.9,6.6,6.6,5.7,5.9,6.0,5.6,6.9,6.0,5.6,5.6,6.0,5.7,5.8,5.9,6.7,6.3,6.5,6.2,6.2,5.6,5.8,7.5,6.7,5.6,6.6,5.6,6.2,6.8,6.2,5.9,6.0,5.9,5.7,6.0,6.0,5.7,5.8,6.3,5.6,5.7,6.2,5.8,5.7,6.1,5.7,6.3,5.9,6.2,6.0,6.0,6.0,5.9,5.9,5.8,6.5,6.1,6.4,6.1,5.6,6.2,6.0,6.2,5.6,5.8,5.7,6.1,5.7,5.6,5.9,6.0,6.1,5.5,5.7,5.7,5.7,5.7,6.1,5.8,5.8,5.5,5.8,6.0,5.6,6.6,6.0,6.2,5.6,6.8,5.7,5.6,6.1,6.7,7.1,6.8,5.9,5.7,5.8,5.5,7.0,5.6,6.0,5.7,6.3,5.6,6.0,6.4,5.8,6.8,5.8,6.1,6.0,5.7,6.4,5.6,6.4,5.7,5.8,6.0,6.2,6.9,5.7,6.9,5.6,6.35,6.0,6.0,5.9,5.8,5.6,6.0,6.0,5.8,5.7,6.2,5.7,5.6,5.8,6.1,6.0,6.8,5.7,5.8,6.2,6.1,6.0,5.9,6.3,5.7,5.8,6.0,5.7,5.6,7.7,5.6,5.9,6.3,5.9,6.7,6.2,6.2,5.7,6.0,5.9,6.3,6.9,5.6,6.1,6.1,6.0,5.8,5.7,5.7,8.1,7.0,5.7,6.7,5.9,6.0,6.4,6.1,5.6,5.6,6.0,6.3,5.6,5.9,5.8,5.9,5.7,5.6,6.8,5.7,5.9,5.7,6.3,6.3,5.7,5.7,6.3,5.62,6.3,6.6,5.6,7.7,5.6,7.8,7.1,6.5,5.9,5.6,6.0,6.1,5.6,5.8,5.6,5.5,7.0,5.8,5.9,5.9,5.6,6.0,5.7,5.7,6.1,6.2,6.0,6.2,6.6,5.5,5.9,5.9,6.4,6.3,6.0,5.7,6.5,6.0,6.8,5.6,5.8,5.6,5.6,6.1,5.6,5.7,7.0,7.0,6.8,5.8,7.0,6.5,5.6,6.3,5.9,5.5,5.8,6.0,5.9,5.9,6.0,6.0,5.7,5.7,6.6,5.9,5.9,5.9,5.9,5.7,5.6,5.7,6.2,5.7,6.2,6.7,5.8,5.7,6.7,5.9,5.7,6.1,6.4,6.2,6.1,5.8,6.1,5.9,5.9,5.7,5.8,6.0,5.7,6.1,6.1,6.7,5.6,5.8,5.7,6.2,5.7,5.7,5.8,6.2,5.9,5.8,5.7,5.6,6.1,5.7,6.7,5.8,5.8,5.9,5.8,5.8,5.6,5.6,5.7,5.8,6.0,5.7,6.2,5.6,6.0,6.1,5.9,5.7,5.7,6.2,5.8,5.6,5.7,5.8,5.6,5.7,5.5,6.5,6.1,5.7,6.1,5.7,5.7,6.1,6.2,6.4,6.1,7.4,6.2,6.8,6.6,5.7,5.7,5.9,5.6,6.7,5.7,6.3,5.7,6.3,5.7,5.7,5.6,6.0,5.7,5.8,6.6,6.6,5.7,5.6,5.8,6.2,5.6,6.4,5.8,6.0,5.7,7.0,6.5,5.7,5.9,6.1,6.7,6.3,5.6,5.8,5.8,5.6,5.8,6.1,6.3,7.0,5.7,6.2,6.2,5.9,6.2,6.2,5.9,5.7,6.2,6.8,5.6,5.7,5.9,7.2,5.6,5.6,5.8,6.0,7.1,5.7,5.7,6.0,5.7,6.8,5.7,5.7,5.6,6.0,6.7,5.6,6.1,5.6,5.6,5.6,5.8,6.2,5.9,6.4,5.9,6.3,5.7,5.8,6.4,5.7,5.9,6.5,6.5,5.7,5.7,5.6,5.6,6.7,6.3,5.6,5.8,5.6,6.6,5.8,5.7,6.0,5.7,7.3,5.9,6.4,6.2,7.2,6.3,6.7,6.5,5.7,5.9,6.1,5.8,6.4,5.7,6.0,6.1,5.7,6.0,5.6,6.2,6.4,6.7,5.7,5.7,6.1,6.5,6.8,5.6,7.4,6.1,5.9,6.3,5.6,5.7,5.8,6.6,5.6,5.6,5.6,7.3,5.7,5.7,7.2,5.8,6.2,5.6,5.7,5.6,7.1,5.8,5.9,6.3,5.9,5.7,6.3,6.1,6.3,5.7,5.5,5.8,6.4,6.1,5.6,5.7,6.1,5.8,5.6,5.7,7.5,6.8,5.9,6.6,5.6,5.8,6.3,6.3,6.2,6.2,5.63,6.1,5.5,5.9,5.7,5.7,5.7,5.6,6.4,5.7,5.8,6.7,5.6,5.6,8.2,6.0,5.8,6.1,7.9,6.5,5.7,6.1,5.7,6.1,6.5,6.1,6.3,6.1,5.8,6.3,6.1,5.9,7.0,5.8,6.9,7.0,5.9,5.6,6.3,5.8,6.0,6.0,7.2,6.6,6.2,5.7,6.1,5.9,7.5,5.7,5.9,6.4,5.8,5.7,5.6,6.7,6.2,5.7,5.9,6.2,5.7,7.0,5.7,6.3,5.6,6.2,5.7,5.7,5.6,6.2,5.7,5.9,6.3,6.3,6.4,6.8,5.8,5.7,5.7,6.1,5.8,5.8,5.9,6.1,6.4,5.7,6.0,6.3,5.8,6.0,5.9,6.0,6.0,5.9,5.8,5.7,6.0,5.6,6.0,7.3,5.8,5.7,6.1,6.3,6.2,6.5,5.7,7.6,5.9,7.3,6.7,6.4,6.1,6.8,5.8,5.8,7.6,5.8,6.5,5.9,5.8,5.7,6.0,5.8,5.7,5.7,6.0,7.2,5.6,5.9,5.6,6.0,7.3,5.8,5.8,6.5,6.2,6.3,5.7,5.7,5.7,5.8,5.5,5.9,6.4,7.1,6.2,6.3,5.5,5.6,5.7,6.3,6.1,5.9,6.1,6.2,6.0,6.8,6.1,6.0,5.8,6.5,6.7,5.7,6.2,6.0,5.6,6.1,7.1,6.0,6.4,6.1,5.8,6.0,6.2,7.3,6.5,6.1,5.6,6.1,6.0,6.5,5.9,5.7,6.2,6.0,7.0,5.7,6.3,5.7,5.6,6.4,5.8,6.7,6.1,5.9,6.5,6.1,5.9,5.8,6.2,5.9,6.1,5.6,6.2,6.1,5.6,5.6,6.4,5.9,6.4,5.6,5.8,6.4,5.8,5.7,6.1,6.0,6.6,5.7,5.8,6.0,5.7,5.9,5.6,5.9,6.2,6.2,6.3,5.8,5.8,6.0,5.52,5.6,5.6,5.6,5.6,6.0,5.5,5.9,5.8,7.0,6.9,5.6,5.9,5.8,6.4,6.4,7.0,7.1,6.2,5.9,5.6,6.7,6.0,6.1,6.2,6.0,7.6,6.4,6.0,5.6,5.7,6.0,5.7,5.8,6.8,6.1,6.2,7.2,5.9,6.1,7.2,5.7,6.3,6.3,6.3,6.0,7.0,6.2,5.7,7.8,6.2,5.8,6.0,6.2,6.2,5.7,6.3,5.7,6.0,5.7,5.8,5.7,6.0,5.6,6.5,5.7,6.1,5.7,5.8,6.0,5.8,5.9,6.1,6.0,6.6,6.7,6.2,6.1,5.6,6.6,6.7,5.7,5.9,5.6,6.1,6.3,5.8,5.5,5.7,5.7,5.8,5.7,6.4,6.1,5.6,6.5,6.2,6.0,5.9,5.7,5.6,7.0,6.2,6.0,5.6,5.8,6.0,6.2,5.6,5.7,5.9,5.7,6.2,6.0,5.7,5.6,6.4,6.9,5.6,6.0,5.6,6.0,5.5,5.6,5.9,6.0,5.7,6.2,6.1,5.8,5.8,6.1,6.4,5.8,6.5,6.8,5.8,5.6,5.6,5.7,5.7,5.8,5.7,5.5,5.9,6.1,6.0,5.8,5.8,5.9,5.6,6.0,6.2,5.9,6.9,5.6,6.4,5.6,5.7,5.6,6.1,6.1,5.6,5.7,5.6,5.7,5.7,5.6,5.7,6.3,5.8,5.9,5.6,5.6,6.3,6.9,6.1,5.6,5.9,6.1,6.6,6.2,6.2,7.5,5.7,5.8,5.6,6.2,6.2,6.1,6.8,6.8,5.6,6.0,6.1,6.8,5.8,5.8,5.6,6.0,5.8,6.1,6.3,5.8,7.1,6.3,6.1,6.1,5.8,5.6,5.9,6.5,6.7,6.1,6.0,5.6,5.8,6.6,6.3,5.9,5.8,5.8,5.8,5.6,5.7,5.6,6.0,5.8,6.4,5.7,6.1,5.7,5.9,6.0,5.7,5.9,5.7,6.1,6.2,6.0,5.7,6.3,5.6,6.7,5.5,5.7,5.8,5.6,5.5,5.5,5.5,5.82,6.0,5.8,5.7,6.1,5.6,6.2,6.0,5.5,6.1,6.8,5.6,6.0,5.8,5.8,6.3,6.2,6.6,5.8,6.0,6.3,5.7,5.7,5.8,5.6,5.9,6.3,5.6,5.6,5.9,5.7,5.7,5.8,5.6,5.6,5.8,6.1,6.3,6.1,5.6,6.6,6.6,6.0,6.0,6.6,5.7,5.6,5.8,6.0,5.7,7.6,7.4,6.1,6.0,6.0,5.8,5.9,5.8,5.7,5.6,6.2,5.6,5.6,6.1,5.8,6.3,5.6,5.9,7.2,5.6,6.1,5.6,5.7,5.7,5.9,6.3,5.6,7.1,5.9,6.3,6.0,6.8,5.8,7.2,5.7,5.7,6.0,6.0,5.6,5.8,6.8,5.7,6.4,6.7,5.7,5.6,6.5,5.7,5.8,6.1,5.9,5.7,6.0,5.8,5.7,6.4,5.8,6.0,5.7,6.7,6.0,6.0,6.1,6.0,6.0,5.8,6.5,5.9,5.9,5.6,5.8,6.0,5.7,5.8,5.6,5.8,6.1,5.8,5.9,6.1,6.1,5.7,7.1,5.6,6.2,5.6,6.1,5.7,5.9,6.6,6.2,5.8,5.7,6.0,6.0,5.8,6.3,5.7,5.6,5.7,5.7,6.0,5.54,6.7,6.0,6.9,6.6,6.8,5.7,5.9,5.7,5.9,6.0,7.4,5.6,5.8,6.3,5.9,6.5,5.7,5.8,5.7,6.1,5.8,6.9,5.7,5.6,5.8,5.7,6.2,6.0,6.7,5.6,6.1,5.9,6.1,6.0,6.6,5.8,5.6,5.7,6.0,5.8,5.7,5.6,6.6,7.3,5.9,5.8,6.6,6.0,5.8,5.9,5.8,5.9,5.6,6.1,6.2,6.1,5.6,6.1,6.7,5.8,6.3,5.7,6.1,5.8,5.8,7.1,5.9,6.2,6.0,5.6,6.0,6.3,5.8,7.9,6.1,5.6,6.2,5.8,5.7,5.8,5.7,6.4,6.3,5.7,5.6,5.9,6.0,6.6,7.3,5.6,5.9,7.0,7.2,5.8,6.0,5.8,6.5,6.2,5.6,6.0,5.8,7.4,6.2,5.7,5.6,6.6,5.5,6.4,5.6,5.6,6.0,6.1,5.8,6.1,5.7,6.1,5.8,5.8,6.1,6.3,6.1,6.2,5.6,7.0,6.2,6.3,6.0,7.0,6.7,6.6,8.0,5.7,5.9,5.6,5.8,6.1,6.0,6.4,6.3,6.9,5.7,6.0,6.5,6.5,5.6,5.8,5.9,6.0,5.8,6.4,5.9,6.0,5.9,6.5,5.9,5.6,5.8,7.3,6.6,6.1,6.5,5.9,6.4,5.7,5.8,6.0,5.7,6.4,6.1,5.7,6.6,5.8,6.5,5.7,5.6,6.3,6.0,6.0,5.6,5.8,5.8,5.9,6.3,6.3,6.5,6.2,5.8,5.7,6.4,6.1,6.2,5.6,5.6,5.7,5.8,6.4,5.7,6.0,6.9,5.9,5.7,5.6,5.8,5.6,6.1,6.7,5.5,5.6,6.3,5.8,6.5,5.8,6.2,5.8,5.6,5.9,5.7,6.0,5.6,5.9,5.6,5.8,5.6,5.6,5.7,5.9,5.7,5.7,5.9,6.0,6.0,6.4,5.6,6.2,6.0,5.6,5.7,7.0,5.7,5.8,6.5,5.8,5.6,6.5,6.7,6.5,5.7,7.2,5.7,5.6,5.7,5.7,5.6,5.9,5.8,5.7,6.0,5.8,6.2,5.9,5.8,5.6,5.9,5.9,6.6,6.7,5.9,5.6,6.0,7.1,5.7,5.8,5.6,5.8,6.2,7.7,6.6,6.0,6.0,6.2,5.8,5.9,6.0,5.7,5.8,5.9,5.9,5.9,5.9,5.7,5.5,5.5,6.0,5.8,5.7,5.5,5.6,6.2,6.4,5.7,5.6,6.9,6.1,5.6,5.6,7.0,5.9,5.9,5.9,5.8,7.0,5.9,5.6,7.0,6.6,5.8,5.8,5.8,5.5,5.7,5.8,6.5,5.8,5.7,6.9,5.6,5.8,5.6,5.7,6.0,5.8,5.9,6.1,6.6,6.2,5.7,5.6,6.4,6.1,5.7,5.5,5.6,5.8,5.5,6.3,6.2,6.2,5.8,5.7,6.0,5.7,5.6,5.9,6.3,5.8,5.6,5.7,5.7,5.5,5.8,6.5,6.1,5.7,6.1,5.5,6.1,5.5,6.6,5.6,7.0,5.6,5.8,6.1,5.5,5.5,5.6,5.9,5.8,5.7,5.7,5.7,6.4,5.5,6.0,5.8,7.0,5.5,6.0,6.4,6.0,6.0,6.6,5.6,5.5,5.7,5.8,5.6,6.2,5.6,5.7,5.6,6.7,5.6,6.0,7.0,5.5,5.7,5.6,6.9,5.6,5.9,6.1,5.6,5.7,6.2,5.6,6.0,6.3,5.8,6.1,5.5,5.7,5.7,5.7,5.5,6.0,5.8,6.5,6.8,5.7,6.0,5.7,6.0,6.3,5.6,6.4,5.5,5.6,5.9,6.1,5.6,5.6,5.5,5.8,6.2,7.8,5.9,5.9,6.4,5.5,8.0,5.8,6.0,5.6,6.1,5.5,6.5,5.6,5.5,6.2,5.5,5.6,6.6,7.0,5.9,6.3,5.5,5.8,5.9,5.7,5.8,5.6,6.4,5.6,6.4,8.1,6.0,6.6,7.0,6.0,6.1,5.9,5.5,5.8,6.3,5.8,5.9,6.0,5.7,7.4,5.8,5.9,5.6,6.6,5.5,6.5,5.8,5.6,5.6,5.8,5.7,5.7,5.9,7.1,5.6,5.5,5.9,6.9,5.6,5.6,6.5,6.3,5.7,6.0,5.5,6.2,5.5,5.8,6.2,5.6,6.6,6.5,5.9,5.7,5.8,5.6,5.6,6.3,6.4,6.0,5.7,6.5,6.2,5.8,5.8,5.5,5.8,5.6,5.6,5.6,5.9,7.3,5.7,5.7,6.1,5.7,5.6,6.8,6.5,5.7,6.2,6.0,6.0,5.5,6.0,5.5,6.3,6.0,7.0,5.5,5.9,5.5,6.4,5.8,6.8,5.7,5.8,5.6,5.8,5.7,6.6,6.2,5.6,5.8,6.5,5.8,6.0,6.0,6.0,6.7,6.8,5.5,5.7,5.5,5.6,5.7,5.5,5.8,6.6,5.5,6.2,5.6,6.1,5.8,5.8,5.5,6.3,6.6,5.7,6.5,6.2,6.4,5.7,5.5,6.8,5.7,6.1,6.7,5.7,5.7,6.2,5.7,5.6,5.9,6.2,5.6,5.8,5.6,6.5,5.8,7.1,6.1,6.1,6.0,5.5,7.3,5.6,5.9,5.8,6.6,6.3,5.5,6.0,6.2,5.8,5.5,5.6,6.1,5.8,6.0,5.6,6.5,7.6,5.6,5.6,6.3,5.8,5.5,5.6,5.8,5.9,5.7,6.0,5.7,6.8,5.8,5.8,6.9,5.7,6.1,6.0,5.6,6.7,5.8,6.0,6.4,5.7,5.9,5.9,6.2,5.7,6.6,6.6,6.2,6.1,5.8,6.3,7.0,6.1,5.7,7.3,7.1,5.5,6.5,6.3,5.7,5.8,5.6,5.6,5.8,5.8,6.1,6.0,6.0,5.9,5.8,7.4,5.8,5.6,5.6,5.5,5.6,5.8,5.8,5.8,5.5,6.3,5.7,7.2,6.0,6.0,5.9,5.7,5.9,5.6,5.7,6.6,5.9,5.6,5.7,5.5,5.7,5.8,6.2,6.4,5.9,5.5,6.8,5.9,5.7,6.4,5.7,6.0,5.7,6.5,6.3,5.5,5.7,7.2,5.8,6.1,6.4,6.0,5.6,6.7,5.7,6.8,5.5,5.6,5.6,5.7,6.6,6.6,5.5,6.3,5.9,6.0,5.7,6.3,5.7,7.0,5.6,7.5,5.8,6.0,5.6,7.2,5.6,6.0,5.6,6.1,5.6,5.6,6.9,6.3,5.6,6.6,5.6,6.3,5.7,5.6,6.0,5.8,5.8,5.7,5.9,5.7,5.7,5.6,5.6,5.8,5.5,6.2,5.5,6.9,7.1,6.0,5.5,5.9,6.3,5.6,5.5,5.7,6.0,5.6,5.7,5.7,6.7,5.7,7.7,5.7,5.5,5.8,5.6,6.2,5.8,5.6,6.0,6.3,5.8,5.8,5.6,5.5,5.6,5.7,5.6,5.7,6.0,5.9,5.6,5.9,5.6,5.6,5.6,5.8,6.0,5.7,5.9,6.5,5.7,6.2,5.5,6.0,6.0,7.6,5.9,5.9,5.9,5.6,6.3,5.5,6.1,6.4,5.6,5.6,5.9,6.6,6.1,6.1,6.0,5.7,6.3,5.7,6.1,5.6,5.6,5.9,5.9,5.8,5.6,5.6,5.8,7.5,6.1,5.7,5.6,6.2,5.8,5.7,5.7,5.7,5.6,6.1,5.7,6.5,5.5,5.8,5.5,6.0,6.2,6.2,6.2,5.8,6.0,6.5,5.5,5.9,6.3,6.3,5.6,5.8,5.8,6.0,6.2,6.3,5.6,5.7,6.1,6.1,6.4,5.7,5.6,5.8,6.0,5.7,5.6,6.5,5.6,5.6,6.1,5.8,5.5,5.5,5.7,5.6,6.3,6.4,6.8,5.5,6.0,6.2,5.9,5.9,5.5,5.5,6.3,5.7,5.7,5.5,5.5,6.1,5.9,5.6,5.9,5.5,6.0,5.9,5.9,6.0,6.7,5.5,5.6,5.6,5.6,5.5,6.3,5.7,6.3,5.9,5.5,6.3,5.5,5.8,7.0,5.5,5.5,6.4,5.8,6.0,6.1,5.8,5.6,5.6,5.9,5.8,6.1,5.9,5.6,6.2,6.6,5.8,5.9,5.9,5.7,5.7,5.5,5.8,5.7,5.9,5.6,5.7,5.7,5.7,5.8,5.6,6.3,5.8,8.0,5.7,6.0,6.1,5.6,5.9,7.4,5.6,6.0,5.7,5.9,5.9,5.8,6.0,5.6,5.8,5.6,6.1,5.5,5.9,6.2,6.1,5.8,5.8,5.7,5.5,5.9,6.4,5.7,5.6,5.6,5.9,5.8,5.5,6.5,6.0,6.3,5.8,5.7,5.5,6.0,6.0,5.6,5.7,6.1,6.0,5.5,5.6,5.5,6.2,6.1,5.8,5.9,5.7,5.7,5.8,5.5,5.7,6.8,5.6,5.5,6.1,5.8,5.6,6.0,5.7,7.5,6.0,6.1,5.6,5.7,7.4,5.7,5.8,6.1,5.6,5.5,5.5,5.5,5.9,5.9,5.7,6.3,5.8,5.6,5.5,5.5,5.5,5.6,5.7,5.6,5.7,5.5,5.7,6.0,6.4,5.9,7.2,5.5,5.5,5.5,5.5,5.5,6.1,5.6,5.6,6.0,5.5,5.6,5.5,5.7,5.5,6.1,5.5,5.8,5.8,6.3,5.5,5.6,6.0,7.0,5.7,6.5,5.5,5.8,5.6,5.7,5.5,5.9,5.9,5.6,5.6,5.7,5.5,6.0,5.7,5.6,5.5,6.0,5.5,5.9,6.2,5.6,5.8,6.6,6.7,5.6,6.4,5.5,5.6,5.8,5.6,6.1,6.5,5.5,5.5,6.4,5.6,5.5,5.5,5.5,6.5,5.7,5.7,6.0,6.1,5.5,5.5,5.9,5.6,5.5,5.9,5.9,5.5,5.5,5.6,5.9,5.5,5.8,5.7,5.5,5.5,5.8,5.5,5.8,5.9,5.7,6.0,5.7,5.9,6.3,5.8,6.1,5.64,5.8,5.5,5.7,5.5,6.3,6.0,5.5,5.5,5.5,5.7,5.8,5.6,5.9,5.8,5.5,5.6,5.6,7.7,5.9,5.5,5.5,5.6,5.5,5.7,5.6,6.0,5.7,5.8,5.6,5.8,5.6,5.5,5.5,5.5,5.5,7.1,5.8,5.5,5.8,5.5,5.7,5.7,5.8,6.6,5.5,5.5,5.7,5.9,6.7,5.6,6.0,6.5,6.0,5.8,5.5,6.0,5.6,5.6,5.7,5.7,5.5,5.7,5.5,6.9,5.9,5.5,5.7,5.7,5.8,5.5,5.5,5.8,5.9,6.3,5.6,5.5,5.6,5.5,5.6,5.6,5.5,5.7,5.5,5.5,6.3,6.0,6.1,5.7,5.6,5.5,6.1,6.1,6.1,5.9,6.3,5.5,5.7,6.0,5.9,6.1,6.0,5.7,6.4,5.5,5.8,5.6,6.1,5.6,5.7,6.0,5.9,5.7,5.7,5.8,5.8,5.6,5.7,6.8,6.8,5.6,5.8,5.7,5.9,5.6,5.8,5.5,5.5,5.6,5.5,5.6,5.5,5.9,6.0,5.5,5.8,6.8,5.8,5.6,5.5,5.8,6.4,6.0,6.1,6.0,5.6,5.9,5.6,5.7,5.6,5.6,6.3,5.5,6.0,5.6,5.5,6.5,5.5,5.9,5.6,5.6,5.5,5.6,6.5,6.7,5.6,7.0,6.4,6.3,5.5,6.0,5.8,5.6,6.1,6.9,5.5,5.7,5.7,5.9,5.5,5.8,5.5,5.5,5.5,6.4,6.3,6.1,5.7,5.6,5.6,6.0,5.5,5.9,5.5,5.6,5.5,5.8,5.5,5.9,6.1,5.7,5.6,5.7,5.7,5.9,5.9,5.9,5.7,5.7,5.7,5.8,5.5,5.6,6.0,5.5,5.5,5.9,5.9,5.9,5.5,5.6,5.5,5.7,5.5,6.8,6.3,5.5,5.5,6.0,5.8,5.6,5.6,6.0,5.8,5.5,5.7,5.7,5.6,6.4,7.5,5.6,5.6,5.5,5.6,5.5,5.6,7.2,5.8,5.5,6.0,6.2,6.6,5.7,6.4,5.7,5.5,5.5,6.3,5.6,5.5,5.8,6.1,7.2,5.7,6.2,5.5,5.5,5.5,5.6,5.6,5.7,5.6,5.7,5.5,5.6,5.7,6.1,5.9,6.1,5.5,5.7,6.3,5.6,5.6,5.6,7.0,7.1,5.7,5.6,5.8,5.6,5.6,5.8,5.5,5.6,5.9,5.6,5.7,6.5,5.8,5.8,5.5,5.5,5.8,5.6,6.0,6.1,5.6,6.1,5.5,6.0,5.9,5.6,5.5,5.9,5.5,6.2,5.7,6.2,5.6,6.1,5.5,5.8,6.3,5.5,6.5,6.6,5.6,5.5,5.9,5.5,5.6,5.8,5.7,6.0,5.5,5.5,5.6,6.1,5.6,6.1,5.9,5.7,5.7,5.6,5.7,5.6,5.7,5.5,5.7,6.0,5.5,5.5,5.5,5.6,5.5,5.5,5.5,5.9,5.5,5.6,5.5,5.5,5.5,5.5,5.6,5.8,6.1,5.5,5.5,5.5,5.6,5.6,5.7,6.0,5.8,6.5,5.5,5.9,6.1,6.8,6.0,6.4,5.9,5.5,5.8,5.6,5.5,5.6,5.7,5.5,6.1,5.6,6.0,5.8,6.0,5.5,6.0,5.7,5.5,6.2,5.6,5.7,5.9,6.3,5.5,6.0,5.5,5.7,5.5,6.0,5.9,5.7,6.1,5.5,5.6,5.7,5.5,6.6,5.9,5.5,6.0,5.5,5.7,5.5,6.1,5.6,6.6,5.5,5.6,5.9,6.1,5.7,5.7,5.9,5.6,7.2,6.6,6.7,5.6,6.0,7.3,5.5,5.7,5.9,5.8,5.9,5.6,5.7,5.5,5.6,5.5,5.8,5.5,5.6,5.9,5.6,5.8,6.2,5.5,6.5,5.6,5.6,6.1,6.3,6.0,5.7,5.6,5.7,5.6,6.0,5.6,5.5,7.3,5.6,5.8,6.1,5.7,5.8,5.7,5.5,5.7,5.5,5.6,5.5,5.6,5.8,7.1,5.6,5.8,5.9,5.7,5.9,5.9,5.5,6.4,5.5,5.7,5.7,5.9,5.6,5.6,5.6,5.6,5.5,5.7,6.5,5.5,5.7,5.5,5.5,5.8,5.5,5.8,5.6,5.5,5.5,5.6,5.8,5.5,5.8,6.3,5.8,6.2,6.1,5.8,5.6,6.7,5.7,5.7,7.6,5.9,6.0,7.5,6.4,6.2,6.2,6.0,5.6,6.1,6.0,5.5,5.7,5.5,5.7,6.9,5.5,5.6,5.7,5.5,5.5,5.7,5.8,6.0,5.7,5.6,7.2,5.6,5.5,5.7,6.3,6.5,5.8,6.7,5.6,6.0,5.5,7.2,6.1,6.1,5.8,5.6,5.5,5.8,5.9,5.6,5.8,5.6,5.5,5.7,6.1,5.6,6.9,6.0,5.55,5.5,6.1,5.8,5.5,6.1,5.5,5.5,5.5,5.8,6.5,6.9,6.0,5.8,5.5,5.7,5.5,5.9,5.8,5.8,6.1,5.6,6.8,5.8,5.6,6.2,5.5,5.6,6.1,5.5,5.9,5.7,5.7,5.6,5.5,5.7,5.5,5.8,6.0,6.0,5.7,5.9,6.5,5.6,6.0,5.8,5.8,5.7,5.6,6.8,6.0,5.9,5.5,5.5,5.8,6.5,5.7,5.9,7.6,5.5,5.6,7.0,5.7,6.4,5.6,5.7,5.9,5.7,5.8,6.5,6.2,5.6,5.6,5.5,5.5,5.6,5.5,5.5,5.7,5.9,5.9,5.5,5.5,5.7,6.6,5.6,5.6,5.9,6.1,6.9,6.1,5.5,5.5,5.5,5.9,5.5,6.0,5.5,6.2,5.8,6.6,5.5,5.5,5.9,5.8,6.7,5.5,6.1,5.6,6.3,5.5,5.6,5.6,5.5,5.5,5.6,6.1,5.5,5.5,5.5,6.2,6.2,5.8,6.3,5.5,5.5,6.3,5.5,5.6,5.9,5.7,6.5,5.8,5.5,5.5,6.2,6.1,6.2,5.6,5.6,6.3,5.9,5.6,5.6,5.5,5.8,6.1,5.6,5.9,5.5,5.8,7.7,5.5,6.3,5.5,5.7,6.0,5.5,5.8,5.6,6.2,5.5,5.5,5.6,5.6,5.6,7.9,5.6,6.1,5.8,5.6,5.6,6.1,5.7,5.8,5.8,5.5,5.6,5.9,5.8,5.8,5.5,5.6,7.0,5.5,5.6,5.8,5.7,5.8,6.4,5.6,5.7,6.0,5.6,6.1,6.2,5.7,5.6,5.5,6.5,5.5,5.5,5.9,6.1,6.2,5.5,5.6,5.5,5.6,5.52,6.2,5.9,5.7,5.6,5.6,5.9,6.5,6.5,5.8,6.2,5.8,5.9,5.5,5.7,5.6,5.6,6.5,6.2,6.1,5.6,5.8,5.5,7.9,5.5,7.7,5.6,5.6,6.7,5.8,6.8,6.1,5.9,5.5,5.5,5.5,5.5,5.5,6.1,5.5,5.7,5.6,5.5,5.8,5.5,5.7,5.5,6.1,5.7,5.5,5.7,5.5,5.8,5.7,5.7,5.8,6.2,5.9,5.7,5.6,6.3,5.6,5.5,6.2,5.6,5.6,5.7,5.8,5.5,6.6,5.7,5.6,5.6,5.8,5.7,5.9,5.8,6.4,5.9,6.0,5.7,5.6,5.7,5.6,5.5,5.7,5.6,5.5,5.9,5.6,6.7,5.5,5.5,6.4,5.6,5.6,5.6,5.6,5.5,6.1,5.8,5.6,5.6,5.5,5.5,5.6,6.5,6.1,5.7,5.6,5.5,6.1,5.7,5.8,5.6,6.0,7.0,6.0,5.8,5.8,6.7,6.0,5.5,5.5,5.8,6.4,5.5,5.8,5.5,7.0,5.6,5.6,6.7,5.6,5.5,5.6,6.0,7.8,6.1,5.7,5.5,5.8,5.6,6.3,5.7,6.7,6.5,6.5,6.1,6.3,5.9,5.8,5.5,6.1,5.7,5.9,6.3,5.67,5.8,5.5,5.5,5.8,5.5,5.7,7.2,5.5,5.7,6.1,5.5,5.8,5.7,5.5,6.1,5.7,5.7,5.8,5.5,5.5,5.6,5.9,6.1,5.5,5.5,5.5,5.9,5.6,5.8,5.5,5.8,5.8,5.7,5.7,5.8,6.1,5.6,5.5,5.6,6.2,5.8,7.1,5.7,6.3,5.6,5.5,5.7,5.8,5.8,5.8,5.7,6.2,5.6,6.0,5.7,5.5,6.2,5.8,5.5,5.6,6.0,6.0,5.5,5.5,5.7,5.8,5.7,6.6,7.8,5.7,5.5,5.6,5.9,6.5,5.5,6.2,5.5,5.7,5.5,5.7,5.84,5.5,6.0,6.0,5.6,5.6,5.7,5.7,5.5,5.8,6.1,5.7,5.6,6.4,5.7,6.3,8.0,5.5,6.2,6.3,5.7,5.7,6.2,5.5,5.5,5.8,6.1,5.6,5.5,5.8,5.9,5.6,5.5,5.7,5.8,7.0,5.8,5.8,5.6,5.7,5.5,5.6,5.6,5.6,6.4,5.9,6.2,5.6,5.9,5.5,6.0,5.5,5.5,5.9,5.6,5.5,5.6,5.5,5.7,5.7,5.6,5.5,5.8,5.7,6.0,7.5,5.5,5.8,5.6,6.0,5.7,5.6,5.5,5.5,5.6,5.9,5.5,5.81,5.6,5.5,5.8,6.0,5.5,5.9,5.9,6.1,5.7,6.2,5.5,5.6,5.9,5.5,5.6,6.0,5.6,5.9,5.8,6.0,5.5,6.0,5.6,5.7,6.0,6.4,5.5,5.8,6.1,5.6,5.9,6.1,5.84,5.52,5.6,5.7,5.5,6.8,5.9,5.8,5.8,5.7,5.5,5.9,5.8,5.5,5.5,5.8,6.5,5.5,5.8,5.5,5.8,5.6,5.5,5.5,5.5,6.4,5.5,5.5,7.0,6.2,6.7,5.5,6.0,5.7,5.5,5.5,6.2,5.6,5.5,5.5,5.5,5.5,5.7,5.5,6.0,5.5,5.5,5.8,5.6,6.1,5.7,5.5,5.5,5.5,5.5,6.6,5.8,6.8,5.6,6.5,5.9,5.5,5.8,5.6,5.9,5.8,6.1,6.6,6.4,5.5,5.7,5.6,5.6,6.6,5.5,7.0,6.2,5.9,5.8,5.5,5.9,5.9,5.5,5.8,5.8,5.9,5.8,5.9,5.7,5.5,5.7,5.7,5.5,5.5,5.6,6.9,7.0,5.5,6.0,6.2,5.5,5.8,5.6,6.2,5.7,5.5,6.2,5.8,5.5,6.4,6.4,5.6,5.9,5.6,5.5,5.5,5.7,5.6,6.3,5.6,6.1,5.6,5.6,5.7,6.1,5.8,7.0,5.8,5.8,5.8,5.5,5.5,7.1,5.9,6.5,5.9,5.6,6.1,5.5,5.9,5.8,5.5,5.7,5.6,5.8,6.7,5.7,7.0,5.5,5.6,6.5,5.9,5.5,5.6,6.6,5.8,5.8,6.3,5.9,5.6,5.6,5.6,6.2,6.2,7.5,7.4,6.0,5.7,6.1,6.1,5.8,5.9,6.2,6.9,5.8,5.6,5.5,5.6,5.6,5.5,5.8,6.4,6.9,7.9,5.8,5.6,5.8,6.0,6.8,5.5,5.6,5.6,5.6,5.7,5.7,5.8,5.5,5.5,5.6,6.0,6.4,5.5,5.9,6.7,5.8,5.6,5.6,5.8,5.5,5.6,5.6,5.9,5.9,5.9,5.7,5.6,5.6,5.7,5.5,5.5,5.5,5.9,5.5,5.5,5.5,5.6,5.5,5.5,5.7,5.5,5.8,6.0,5.9,5.7,5.9,5.5,5.7,5.6,6.1,5.7,5.7,5.5,5.7,5.5,5.6,5.8,6.0,6.5,5.5,5.6,5.5,5.5,5.5,5.5,5.5,6.3,5.7,5.6,5.7,5.5,6.0,5.7,5.5,5.6,5.6,5.5,5.5,5.5,5.8,7.1,5.6,5.7,5.8,6.5,5.7,5.5,5.5,6.5,6.2,5.5,6.8,5.9,5.5,6.0,5.7,5.5,5.5,5.5,5.8,6.3,6.2,5.5,6.5,6.3,5.6,6.0,6.0,5.9,5.7,5.5,7.3,5.5,5.6,6.0,5.5,6.3,5.5,5.7,6.1,6.5,5.5,5.6,5.6,5.5,5.5,5.5,5.9,5.9,5.5,5.5,5.7,5.5,5.5,5.9,5.9,5.9,6.3,5.6,5.5,5.5,5.6,5.8,5.6,5.5,6.7,5.5,5.8,5.5,5.6,5.5,5.8,5.8,5.7,6.1,6.3,6.3,5.5,5.7,6.6,5.5,5.5,5.7,5.6,5.5,5.6,5.6,5.5,5.6,5.9,6.3,6.0,5.9,5.9,5.8,5.6,5.6,5.7,5.7,5.6,5.6,6.1,5.5,6.0,6.2,5.7,6.3,5.7,5.8,5.5,6.1,5.7,5.6,6.0,6.0,6.7,5.5,5.5,5.5,5.9,5.6,5.7,5.5,5.5,6.1,6.4,5.5,5.7,5.8,5.6,5.6,6.0,5.9,5.5,5.6,5.8,5.8,7.0,5.6,6.0,5.5,5.8,5.9,5.6,6.9,5.8,5.6,5.9,5.5,6.3,5.5,6.0,5.8,5.5,6.0,5.6,5.7,5.8,6.2,5.8,7.6,6.0,5.6,5.9,5.5,5.5,5.5,5.6,5.5,5.7,5.5,5.7,5.7,5.5,6.7,5.9,7.5,7.5,5.7,6.1,5.5,5.7,5.5,5.5,6.2,7.5,5.8,6.0,5.6,6.0,5.6,5.5,5.5,5.6,5.7,5.6,5.7,5.8,5.7,5.8,5.7,5.5,5.5,5.6,5.6,5.7,5.7,5.7,5.5,5.7,5.7,5.9,5.9,5.7,5.6,5.5,6.0,5.6,5.7,5.5,5.6,5.8,5.5,5.5,5.5,5.5,5.6,6.0,5.7,5.6,5.5,5.7,5.7,5.6,6.8,5.5,5.5,5.5,5.6,5.7,6.0,5.6,6.0,5.8,5.9,5.5,5.8,5.8,5.6,5.5,5.5,6.1,5.5,5.7,5.6,5.5,5.5,5.7,5.6,5.5,5.6,6.7,5.6,6.9,5.5,6.0,6.2,7.2,5.6,5.5,6.1,5.7,5.7,5.8,5.7,6.3,5.9,5.5,5.7,5.6,5.7,5.5,5.7,6.1,7.9,6.1,5.5,5.6,5.8,5.8,5.8,5.8,5.7,5.9,5.8,6.0,5.8,6.1,5.5,5.7,5.7,5.6,5.5,5.7,5.6,6.1,6.1,5.5,5.5,5.7,7.1,5.6,6.8,5.5,5.5,5.5,5.5,6.2,5.6,5.5,6.4,5.7,5.6,5.6,6.0,6.5,6.4,5.6,6.4,5.5,6.6,5.5,5.9,5.5,5.7,5.5,5.5,5.6,5.5,5.6,5.5,5.6,5.9,5.6,5.6,6.0,6.0,5.9,5.5,6.1,5.6,5.6,5.5,5.9,5.5,5.5,5.7,5.6,6.0,5.5,5.6,5.7,5.6,5.5,5.5,5.6,5.6,5.5,5.8,5.7,5.6,5.5,5.6,5.7,5.6,6.3,5.5,5.6,5.8,5.7,5.8,5.7,5.5,5.5,5.5,5.6,5.6,7.2,5.6,5.7,5.9,5.7,5.5,5.6,5.7,5.8,5.5,5.6,6.7,5.5,5.6,5.5,5.5,5.7,6.1,5.6,5.6,5.5,5.7,5.6,5.5,5.6,5.5,5.9,5.7,5.6,5.6,6.3,5.5,6.7,5.6,5.6,5.5,5.7,5.5,5.6,5.5,5.5,6.5,5.9,5.5,5.6,5.8,5.9,5.6,7.4,6.0,5.6,5.9,5.6,5.7,5.5,5.5,5.8,6.0,6.3,6.0,5.7,5.7,5.5,5.5,5.7,6.0,5.5,5.6,5.6,5.5,5.8,5.5,5.9,5.5,5.7,5.8,5.9,6.2,5.9,5.6,5.6,5.9,5.7,6.1,5.6,5.6,5.6,6.4,5.7,5.6,5.6,5.6,5.6,5.5,5.8,5.8,5.8,5.6,6.8,5.7,5.5,5.6,5.5,5.7,5.9,6.0,5.5,6.6,5.9,5.6,5.9,5.5,5.6,5.5,6.0,5.6,6.0,6.6,5.5,6.3,5.7,6.1,5.6,5.8,5.5,5.7,5.8,5.9,5.7,5.7,6.4,5.5,6.0,5.6,5.5,5.7,5.6,5.7,5.5,5.5,5.8,5.5,5.7,5.9,5.5,5.6,5.7,5.7,7.2,5.5,6.0,6.2,5.5,6.6,6.1,5.7,5.8,5.6,5.5,5.5,5.8,5.7,5.5,5.8,5.6,6.1,5.6,5.9,6.3,5.6,5.7,5.9,5.6,5.5,5.6,5.9,5.5,5.5,6.2,6.2,6.3,6.2,5.7,5.5,6.0,6.9,5.5,5.5,5.9,5.7,5.8,5.7,5.5,5.7,5.5,5.6,5.5,5.5,5.5,6.1,5.9,5.5,5.7,5.6,6.4,5.7,5.7,5.8,6.7,5.6,6.6,6.8,5.6,5.6,6.4,5.8,5.9,7.5,5.5,6.0,5.8,5.9,6.8,5.5,6.1,7.6,5.6,5.5,7.1,5.6,5.7,5.7,5.6,5.5,5.5,5.5,5.5,5.9,5.8,5.5,5.9,5.5,5.7,6.2,6.0,5.6,5.5,6.1,5.9,5.8,5.7,6.7,5.9,5.6,5.6,6.6,5.5,5.7,5.5,5.7,5.6,5.5,6.0,5.5,5.5,5.9,5.8,5.9,5.5,5.8,6.2,5.8,5.5,5.5,5.8,5.7,5.5,5.7,5.5,5.9,5.6,5.5,6.7,5.9,5.6,5.7,5.8,5.5,5.6,5.5,5.5,5.6,5.8,5.9,6.3,5.5,5.6,5.5,5.7,6.7,5.5,5.5,5.6,6.8,5.9,5.6,6.0,5.6,5.5,5.7,5.9,6.0,5.5,6.0,5.5,5.9,5.6,6.2,6.1,5.7,5.7,7.7,5.8,6.3,6.9,5.9,5.7,5.6,5.8,5.6,6.0,7.0,5.6,6.4,5.7,5.9,5.9,5.5,5.5,6.4,5.8,5.6,5.5,5.5,5.7,5.6,5.5,6.4,5.5,5.5,5.7,5.8,5.6,5.8,5.8,5.8,5.5,6.0,5.7,5.7,5.5,6.0,7.4,5.6,5.5,6.1,5.8,5.7,5.5,5.6,5.5,5.7,6.3,6.1,6.1,5.8,5.7,5.9,5.7,5.6,5.6,5.5,5.5,5.9,6.0,5.5,5.5,5.5,5.8,5.6,5.8,5.8,6.4,5.5,5.6,5.6,5.7,5.5,5.6,5.7,6.2,7.0,5.5,5.6,5.9,5.7,5.9,5.6,6.2,5.5,6.1,5.5,5.7,5.5,6.0,5.5,6.0,5.6,5.9,5.6,5.7,5.6,5.9,5.6,5.5,5.5,6.0,6.0,7.4,5.7,5.5,5.5,5.5,6.3,5.6,5.7,5.8,5.6,5.5,5.6,5.5,5.7,5.7,5.6,5.7,5.8,5.5,5.9,5.6,5.8,5.8,5.5,5.5,5.6,5.6,5.5,5.6,5.5,5.9,5.5,5.7,5.6,6.8,5.6,5.6,6.1,6.9,6.0,5.6,5.7,7.1,6.1,5.5,5.7,5.8,5.6,5.7,5.9,5.6,5.7,5.5,5.5,5.6,5.9,6.0,5.5,7.7,5.7,5.9,5.5,6.0,5.8,5.5,5.5,5.9,5.8,6.7,5.7,5.6,5.7,5.5,5.9,6.9,5.6,6.2,6.0,5.6,6.0,6.5,5.6,5.6,5.7,5.6,5.7,6.3,5.8,5.5,7.0,6.5,5.6,5.6,5.7,5.5,5.6,5.5,5.8,5.6,5.9,6.2,5.6,5.5,6.7,6.1,5.5,6.0,5.7,5.5,5.5,5.5,6.4,5.5,6.6,5.6,5.5,6.3,6.0,5.8,5.5,5.7,5.8,6.2,5.6,5.5,5.5,5.5,5.5,6.1,6.7,5.5,5.8,6.2,6.9,5.5,5.5,6.1,5.5,6.4,5.5,5.6,5.5,5.7,5.5,5.6,7.1,5.6,5.9,5.5,6.0,6.1,5.5,6.1,5.5,7.6,5.5,6.2,5.5,5.8,5.5,6.2,6.0,5.5,5.6,5.6,6.1,5.9,5.8,5.5,5.6,5.7,5.6,5.7,5.6,5.5,5.5,6.8,6.5,6.9,5.7,5.9,5.5,5.6,5.8,5.9,5.9,6.0,6.0,5.6,5.8,5.6,5.8,6.1,5.5,5.8,6.0,6.4,5.8,5.6,5.9,5.6,5.6,5.9,5.6,5.5,5.9,5.7,5.6,5.9,5.6,6.2,5.8,6.1,5.7,5.8,6.4,5.6,5.9,5.7,6.0,5.7,5.5,5.5,5.7,5.6,5.5,6.2,6.2,5.5,5.5,5.8,5.9,5.8,6.1,5.6,6.1,5.7,5.6,5.5,6.0,6.0,5.8,5.5,5.8,5.9,5.8,5.6,5.6,5.5,6.3,6.3,5.6,6.2,5.9,5.6,5.7,6.1,5.6,5.6,6.5,6.0,5.6,5.7,5.8,5.6,5.6,5.5,5.5,6.1,5.8,5.5,5.9,5.6,5.7,5.5,5.7,5.7,5.5,5.9,6.9,5.5,6.0,5.5,5.5,5.5,5.8,6.1,6.4,5.8,5.6,5.9,5.8,5.6,5.8,5.8,5.6,6.1,6.1,5.7,5.5,6.1,6.1,5.6,6.4,5.9,6.6,5.5,6.0,7.1,5.5,5.8,5.5,5.6,5.5,5.5,5.8,5.5,7.9,5.6,5.5,5.9,5.6,5.9,5.5,5.6,5.5,5.6,5.6,5.9,5.5,5.9,5.5,5.7,5.8,5.9,6.2,5.7,5.5,5.6,5.8,5.9,5.8,5.9,5.5,6.8,5.6,5.6,5.6,5.5,5.5,5.9,5.6,7.4,5.5,6.4,5.6,5.8,5.7,5.6,6.1,5.8,6.0,6.0,5.5,5.8,5.6,6.2,5.6,6.3,5.5,5.9,7.1,5.6,5.7,5.8,5.5,5.5,5.8,5.5,5.5,6.8,6.6,6.0,5.5,5.6,5.8,5.7,6.1,6.1,5.7,5.5,5.9,5.7,6.1,5.7,5.7,5.5,6.1,5.8,5.6,5.5,6.3,6.6,6.6,5.6,6.9,5.8,5.6,6.1,5.6,5.5,5.8,6.4,6.2,5.5,7.1,5.8,5.5,6.0,5.7,5.6,6.0,5.5,5.6,5.5,6.1,7.7,5.5,5.7,5.5,5.8,5.5,5.5,6.6,5.5,5.5,6.3,5.5,5.5,5.5,6.1,5.8,5.8,5.6,5.6,5.6,5.8,5.5,5.5,6.7,6.0,5.7,5.7,5.8,5.8,5.6,5.7,5.5,5.9,6.0,5.6,5.7,6.0,5.6,5.5,5.6,5.7,5.9,5.5,5.8,5.8,5.5,5.6,5.6,5.7,5.7,5.8,5.5,5.9,5.6,6.4,5.6,6.2,5.8,6.5,5.8,5.5,5.9,5.6,6.1,6.0,5.6,5.5,5.5,5.5,5.5,5.6,5.5,6.2,5.9,7.0,5.6,5.9,5.5,5.5,5.6,5.9,6.6,5.9,5.6,5.6,6.1,6.3,5.7,5.5,5.5,5.9,5.7,5.6,6.0,6.7,5.5,5.5,5.6,5.7,5.7,5.6,6.9,6.1,6.3,5.8,5.6,5.5,5.8,5.9,5.8,6.3,6.2,5.7,6.1,5.9,5.7,5.6,5.7,5.6,5.5,5.5,6.2,5.9,6.7,6.1,5.7,5.8,5.7,6.2,5.6,5.7,5.6,5.5,5.6,5.5,5.5,5.5,5.8,6.2,5.8,5.8,6.4,5.7,5.7,5.5,6.1,6.1,6.1,5.8,5.7,5.8,5.6,5.5,5.8,5.5,6.1,6.0,6.47,6.1,5.7,6.1,5.7,6.1,6.31,6.2,5.7,5.5,5.7,5.7,5.5,5.7,6.3,5.9,6.0,5.6,5.8,5.8,5.6,5.8,5.5,5.5,5.6,5.6,5.6,5.5,5.5,6.0,5.6,6.0,5.8,6.5,6.8,5.5,5.6,5.9,6.1,5.5,5.6,5.6,6.0,5.7,6.2,6.0,5.7,5.7,6.5,5.7,6.2,5.7,5.5,5.5,5.9,7.5,5.6,6.4,6.3,5.9,5.9,6.7,5.6,5.6,6.6,6.5,7.9,5.7,5.6,5.6,6.1,5.9,5.5,6.0,5.7,5.7,5.9,6.1,5.5,5.8,5.5,6.7,5.7,6.5,5.9,6.3,5.5,6.4,5.7,5.5,5.6,5.8,6.3,5.5,6.2,5.5,5.5,5.6,5.5,5.8,5.52,5.5,5.5,5.6,6.2,5.8,5.6,5.7,5.5,5.6,5.6,6.0,5.5,6.5,5.9,5.6,6.0,5.5,6.0,5.6,5.7,5.5,5.5,5.5,6.3,5.6,5.5,6.0,7.3,5.9,6.2,5.8,5.9,5.5,5.8,5.8,5.6,5.7,5.6,5.8,6.7,5.5,5.6,6.4,6.7,7.2,5.5,6.5,6.1,5.6,5.5,5.6,5.5,6.2,5.5,5.6,6.4,6.2,5.8,5.6,6.1,5.9,5.6,5.6,7.2,5.7,6.7,5.9,5.6,5.6,6.1,5.7,5.8,5.7,5.5,6.9,5.8,5.5,5.7,6.0,5.5,5.6,5.6,5.5,5.7,5.9,5.6,6.1,5.6,5.6,5.5,5.9,5.6,5.8,6.3,5.5,5.5,6.0,6.8,5.8,5.8,6.1,6.2,5.5,5.9,5.5,5.9,5.6,5.6,5.5,5.5,5.9,6.5,5.6,5.7,6.1,5.5,5.7,5.6,5.6,5.5,5.7,5.7,5.6,5.5,5.7,5.5,6.0,5.8,5.9,7.0,6.2,6.9,6.1,5.7,6.7,6.1,5.6,5.5,5.5,6.4,6.3,5.9,6.8,6.8,5.6,5.5,5.6,5.6,5.6,7.0,5.7,5.6,5.8,5.6,5.6,5.7,5.9,5.7,5.7,5.6,5.5,5.6,5.6,5.6,5.6,6.7,5.7,5.9,6.0,5.9,5.6,5.7,6.2,5.9,5.7,5.6,5.9,5.9,5.9,5.7,6.7,6.4,5.6,5.7,6.0,5.9,5.5,6.4,5.7,5.7,6.4,5.5,5.7,5.7,5.6,5.5,5.5,5.6,5.6,5.8,6.0,6.2,5.5,5.5,5.6,5.5,5.7,5.8,6.1,5.5,5.6,5.9,5.5,5.9,5.5,5.8,5.6,5.9,6.2,5.8,5.5,5.7,5.7,5.8,5.6,5.9,5.5,5.7,6.9,6.1,5.9,5.7,5.7,5.75,5.5,6.5,6.0,6.1,6.3,6.4,6.0,5.5,5.9,6.0,5.5,5.5,5.8,5.5,7.6,5.7,5.9,6.0,5.6,5.7,6.0,6.0,6.4,5.5,5.9,5.7,6.0,6.7,6.0,5.5,5.6,5.5,5.8,5.6,6.0,5.7,5.6,7.0,6.4,5.5,5.5,5.6,5.5,6.1,7.0,5.5,5.5,5.5,5.8,5.6,5.6,5.5,5.5,7.1,6.2,5.7,5.6,5.9,5.5,5.5,5.5,5.6,5.8,5.6,5.5,5.6,5.8,5.5,5.8,6.0,5.9,5.7,5.7,5.8,7.7,5.6,5.7,5.6,5.5,5.5,5.8,6.6,5.6,6.6,6.0,5.8,6.2,5.8,5.7,5.6,6.2,6.0,5.6,5.8,5.9,5.9,5.8,6.6,5.6,5.6,5.6,5.5,5.6,5.6,6.0,5.7,5.5,5.9,6.1,5.5,5.7,6.0,5.9,6.0,5.9,5.9,5.7,5.9,6.3,5.7,5.8,5.8,6.0,6.4,5.6,6.0,7.2,5.5,5.7,6.1,5.9,6.0,5.8,6.0,5.7,5.6,5.5,5.7,7.3,6.2,5.5,5.7,5.6,6.2,6.3,5.8,5.5,6.9,6.8,6.0,5.8,5.5,5.6,5.5,5.6,6.0,5.5,6.2,5.9,5.8,6.0,5.5,6.5,5.9,6.7,6.2,5.6,5.8,5.9,5.5,5.5,5.8,5.6,5.7,5.7,5.9,5.6,5.7,5.6,6.1,5.5,5.7,6.3,5.5,5.9,5.5,5.7,5.8,7.2,5.5,5.6,6.8,5.5,5.5,7.1,6.2,5.9,6.5,5.6,5.5,5.5,6.7,6.5,6.1,5.8,6.0,5.5,5.8,5.8,5.7,5.7,7.1,5.9,5.8,6.0,6.0,5.5,5.6,5.9,5.6,6.0,5.6,6.8,5.5,5.5,6.3,6.2,5.5,5.7,5.6,5.5,5.9,6.5,6.0,5.8,6.4,6.1,5.7,5.6,6.1,5.8,6.0,5.5,5.5,5.6,5.5,5.9,5.6,5.6,5.7,5.7,5.5,6.8,6.5,5.5,5.5,5.6,5.5,5.9,5.6,5.6,5.5,6.0,5.7,5.6,5.5,5.9,5.6,6.0,6.4,5.7,5.6,5.5,6.7,5.8,5.9,5.6,6.0,5.6,5.7,5.5,5.6,6.0,6.1,5.7,6.3,5.9,6.0,5.5,5.5,6.5,5.5,5.5,5.5,5.6,5.6,5.9,5.6,6.1,5.5,5.5,6.0,6.2,5.5,5.7,5.5,5.9,5.5,5.8,5.7,5.6,6.1,5.7,5.5,5.7,6.5,5.5,5.6,5.5,5.9,6.7,5.5,5.7,5.6,5.7,5.5,5.9,5.6,5.5,5.9,5.9,5.8,5.7,6.4,6.4,5.9,6.1,6.4,5.8,5.7,5.6,5.7,5.5,6.9,7.0,5.6,5.9,5.6,6.3,5.5,5.9,5.6,5.5,5.6,6.2,5.6,5.6,6.3,5.6,5.6,5.8,6.1,6.9,6.0,6.1,7.1,5.5,5.6,5.7,5.6,5.5,7.0,5.5,5.5,5.6,6.2,5.5,5.6,7.1,6.2,5.5,5.6,5.7,5.7,6.4,5.5,5.9,5.6,7.0,5.9,5.5,5.7,6.4,5.5,5.6,5.5,5.5,5.6,6.5,5.6,5.5,5.9,5.5,5.5,6.4,5.7,5.6,6.8,5.7,5.6,6.1,5.8,5.6,6.1,5.8,5.7,5.5,6.3,6.3,5.5,6.1,5.6,6.8,5.7,5.5,5.9,5.5,6.4,6.3,5.5,5.6,6.2,5.6,6.1,5.9,5.8,5.8,5.5,5.9,6.1,5.6,5.5,5.5,5.5,5.5,5.6,5.6,6.4,5.5,5.6,5.6,5.5,5.6,6.0,5.6,5.5,5.8,6.2,5.5,5.6,5.7,5.5,5.5,5.9,5.9,5.5,5.5,5.6,5.5,5.6,5.5,5.7,5.8,6.3,5.6,5.5,5.6,5.5,6.1,5.6,5.5,5.7,6.6,5.6,6.7,5.6,5.7,6.3,5.6,5.5,5.5,5.6,5.6,5.5,5.5,5.6,6.6,6.1,5.7,5.7,5.6,5.5,5.9,5.6,5.5,5.5,5.8,6.3,5.8,5.5,6.6,6.5,5.6,5.5,5.7,5.5,5.7,7.2,5.5,5.6,5.9,5.5,5.5,5.5,5.9,6.0,6.3,5.9,5.5,5.9,6.3,5.8,5.5,5.7,5.5,5.6,5.5,5.9,5.7,5.5,6.3,6.0,5.6,5.5,6.0,5.8,6.3,5.5,5.5,5.5,5.6,5.6,5.8,6.4,6.1,6.1,5.7,5.6,5.7,5.6,5.8,5.6,5.5,5.6,5.7,6.7,7.0,5.5,6.5,5.6,5.5,5.5,6.0,6.1,5.5,5.5,6.3,5.5,5.7,5.5,5.8,6.8,5.8,6.4,7.0,5.6,5.6,5.6,5.5,5.5,5.7,5.6,5.5,5.5,5.5,5.8,5.5,5.5,5.7,6.0,5.7,5.7,6.3,6.2,5.7,6.2,6.5,5.9,5.8,5.8,6.4,5.5,5.7,5.9,6.9,6.4,5.5,5.9,6.1,5.5,5.6,5.5,5.7,5.8,5.9,6.2,5.6,5.7,6.0,6.7,5.8,5.5,5.5,5.5,6.7,5.6,5.6,5.7,7.6,5.5,5.7,5.5,6.4,5.6,6.7,5.6,5.5,6.4,6.0,6.4,5.6,5.5,5.5,5.5,5.5,7.1,5.5,5.6,6.9,5.9,5.6,5.9,6.5,6.2,5.6,5.5,5.5,6.7,5.8,6.1,5.7,5.7,7.0,5.9,5.9,5.8,5.6,5.8,5.7,6.2,7.0,5.6,5.7,5.6,5.5,5.5,5.6,5.6,6.4,5.5,5.7,5.9,5.6,5.6,5.8,6.5,6.2,5.6,5.7,6.3,6.7,5.5,5.5,5.7,5.5,5.6,5.8,6.0,5.5,6.1,6.1,5.6,6.5,6.7,6.2,5.7,5.7,5.6,5.5,6.5,5.7,5.7,5.5,5.7,5.9,7.4,5.7,5.8,5.5,5.6,5.6,5.6,5.6,5.6,5.5,6.6,6.1,5.7,6.2,5.7,5.5,6.0,6.3,6.1,5.5,5.6,5.7,6.1,5.7,5.5,5.6,5.5,5.5,5.5,5.5,6.7,5.5,6.4,5.9,5.6,6.3,6.7,6.9,5.6,5.5,5.5,5.9,5.6,5.5,5.5,5.6,5.5,5.7,5.9,6.5,5.5,5.9,5.5,6.4,6.1,5.6,5.7,5.8,6.2,5.8,5.5,6.9,5.5,5.9,6.4,6.6,6.3,5.7,5.5,5.6,5.5,5.6,5.7,5.5,5.6,5.8,5.5,6.2,6.4,5.6,5.5,5.7,5.7,5.6,6.3,5.5,5.6,5.5,5.7,5.6,5.8,5.7,6.8,6.0,5.7,5.5,5.6,5.7,5.6,5.9,5.9,5.5,7.1,6.5,5.9,5.5,5.9,5.9,5.5,5.5,5.5,5.8,5.7,5.5,6.5,6.0,5.5,5.8,6.1,5.6,5.8,5.5,5.9,5.5,5.5,6.4,5.7,5.5,6.2,5.6,5.5,5.6,6.3,6.3,6.0,5.6,6.1,6.7,5.5,5.5,5.6,6.3,5.8,5.6,5.5,6.1,5.8,5.5,5.6,5.5,5.5,5.6,6.0,5.5,7.4,5.7,6.0,5.5,5.5,6.1,5.8,6.7,5.6,5.7,5.5,5.7,5.5,5.5,5.6,6.5,6.5,6.1,5.9,6.3,6.4,5.5,7.2,6.3,6.5,5.5,5.5,5.6,6.5,6.1,5.6,6.6,5.9,6.9,5.5,5.6,6.8,5.5,5.7,6.4,5.9,5.5,5.6,5.7,6.1,6.6,6.4,5.5,5.6,5.6,5.9,5.9,5.5,6.6,6.7,5.5,6.1,5.5,6.1,5.6,6.6,5.5,5.6,7.3,6.2,6.1,5.5,6.0,5.5,5.6,5.6,5.7,6.0,6.0,5.8,7.3,5.6,7.0,6.2,6.3,5.5,5.5,5.5,5.5,6.3,5.6,6.4,5.5,5.5,6.4,5.5,5.8,6.1,6.2,6.4,5.7,5.5,5.8,5.66,5.5,6.2,5.9,6.9,5.9,6.2,5.5,6.4,6.3,5.6,5.6,5.7,5.6,5.5,5.6,5.8,5.5,5.6,5.6,7.4,5.5,5.5,7.2,6.0,6.4,6.4,5.7,5.7,5.9,5.5,7.0,5.8,5.6,5.5,5.6,5.6,5.7,5.5,6.3,5.5,5.6,5.6,5.7,5.6,5.6,5.6,5.6,6.2,6.1,5.6,5.5,5.9,5.9,5.7,5.5,5.6,5.5,6.1,5.8,5.6,5.6,5.5,6.4,6.1,5.6,5.9,5.6,5.6,7.6,6.4,6.0,5.6,5.7,5.5,6.4,6.0,6.1,5.5,5.8,5.5,5.7,5.6,5.8,5.5,5.7,5.8,5.8,6.1,5.7,5.7,5.7,6.0,5.5,6.0,7.3,5.6,5.7,5.5,7.4,5.7,5.7,6.0,6.0,5.5,6.2,5.7,5.5,6.0,5.5,5.7,5.5,5.5,7.0,5.5,5.5,5.9,6.1,5.7,5.7,5.8,5.6,6.0,7.2,5.5,6.5,5.6,5.7,5.9,5.9,5.8,5.5,5.8,5.5,5.9,5.6,5.5,5.5,5.5,6.1,6.8,5.6,5.5,6.1,5.5,5.7,5.7,5.5,6.5,5.5,5.7,6.3,6.0,6.4,6.2,5.5,6.5,5.9,5.5,6.9,6.2,6.1,5.9,6.3,5.7,5.6,5.7,5.7,5.7,5.7,5.6,5.6,5.5,5.5,5.6,5.6,6.0,5.6,5.6,5.9,6.2,5.6,5.5,5.7,5.5,5.5,5.6,5.6,5.5,5.5,5.7,5.9,6.9,6.9,5.6,5.5,6.0,6.1,5.5,5.6,5.5,6.4,6.2,6.0,6.7,5.6,6.4,5.7,5.6,5.6,5.6,5.6,5.5,7.1,5.5,5.5,5.8,5.5,5.6,5.7,6.2,5.6,6.1,6.2,5.8,5.7,5.7,5.5,6.6,6.1,5.7,6.5,5.5,5.7,6.2,5.6,5.7,6.4,6.9,6.1,5.8,5.5,5.7,5.9,6.2,5.5,5.6,5.6,5.6,6.4,5.5,5.6,5.8,5.5,5.5,5.6,6.6,5.7,5.6,5.5,6.7,5.5,5.5,5.6,5.9,5.5,6.2,5.5,6.2,5.6,6.0,5.5,5.5,5.9,5.5,5.5,5.8,6.4,5.8,5.9,5.6,5.6,5.5,5.8,5.5,5.5,5.5,5.9,7.4,6.9,5.5,6.2,5.5,5.6,5.6,5.8,5.8,5.5,5.5,5.5,5.5,5.5,5.5,5.7,5.6,5.8,5.8,6.2,5.8,5.7,5.6,6.4,5.6,5.8,5.8,5.9,6.1,5.6,6.4,6.3,5.7,5.7,5.5,6.0,5.7,5.8,5.9,6.7,6.6,6.1,5.5,6.2,5.7,5.5,5.7,5.5,6.2,6.3,5.5,6.8,6.0,5.7,5.6,5.8,5.5,5.5,5.5,5.7,5.7,5.7,5.5,5.5,5.7,6.1,5.8,6.1,5.9,5.5,5.7,5.6,5.8,6.6,6.0,6.1,6.0,5.9,5.5,5.5,6.3,5.5,5.5,5.8,5.7,5.6,5.6,5.6,5.5,5.7,6.3,5.8,6.1,6.4,6.1,5.5,5.5,7.2,6.0,5.8,5.6,5.7,5.8,6.2,5.5,5.5,5.5,5.5,5.9,5.5,5.7,6.3,6.1,6.2,5.6,6.6,6.6,5.8,5.5,7.1,5.7,6.3,5.5,5.7,5.7,5.5,5.9,5.9,5.6,5.7,5.6,5.9,5.5,5.7,5.6,5.6,5.6,5.5,5.5,7.1,6.3,5.5,5.5,5.5,7.1,5.7,5.7,6.7,5.6,5.6,6.2,5.8,5.9,5.7,7.5,6.4,6.1,6.0,5.8,6.5,6.4,6.8,6.0,5.82,6.1,5.6,5.5,5.5,5.5,5.6,5.6,5.9,5.7,5.7,5.5,5.8,6.4,6.2,6.4,5.7,5.7,5.6,5.6,5.8,6.1,5.9,5.6,5.7,6.4,5.6,5.5,6.1,5.9,6.2,6.0,5.7,6.0,5.6,6.2,6.2,5.9,5.6,6.0,6.7,5.5,5.7,5.7,5.6,5.5,5.5,5.8,6.8,6.0,5.8,5.6,6.0,6.0,5.7,5.6,5.8,5.6,6.2,5.7,5.6,5.6,5.5,5.7,5.5,5.7,6.1,5.8,5.6,6.2,5.7,5.5,5.5,5.5,5.9,6.1,5.8,6.3,6.9,5.6,5.6,5.6,5.6,5.9,6.2,5.7,6.1,5.6,6.3,5.8,5.8,5.5,5.5,6.0,5.9,5.7,5.6,5.5,5.6,5.6,5.5,5.5,5.6,5.5,5.7,5.6,5.6,6.3,5.7,5.5,6.0,5.7,5.5,5.8,6.1,5.5,5.6,6.4,5.9,6.7,5.5,8.0,6.4,5.9,5.5,7.4,6.2,6.6,6.3,5.6,6.3,5.7,6.3,5.7,6.2,5.6,6.2,5.7,5.7,5.9,5.5,5.9,5.6,5.5,6.2,5.8,5.7,5.5,5.5,5.5,5.8,5.6,5.6,5.8,6.5,5.6,5.5,5.9,5.6,6.5,5.6,6.7,6.5,5.5,6.7,5.8,5.5,6.4,5.7,5.6,5.5,5.7,6.5,5.5,6.2,5.6,5.6,6.1,6.4,5.7,5.7,5.6,6.2,5.5,6.5,5.6,5.5,6.4,5.9,6.0,7.2,6.2,6.3,5.5,5.9,5.7,6.0,5.9,7.0,5.8,5.6,5.8,5.8,6.1,6.3,5.6,6.0,7.0,6.1,5.6,5.9,6.0,5.6,5.6,5.5,5.6,5.6,5.9,5.6,6.0,5.9,5.8,5.6,5.7,6.6,6.4,5.6,5.9,5.9,5.7,6.2,5.5,5.7,5.5,5.7,5.8,5.6,6.3,6.0,7.2,5.8,5.6,6.0,6.4,5.7,6.5,5.5,6.3,5.5,6.0,5.6,5.9,6.3,5.8,6.2,5.8,5.8,5.6,5.7,5.5,6.0,5.6,5.8,5.8,5.9,5.5,6.3,5.5,6.7,6.2,5.5,5.7,6.3,6.6,5.6,5.5,5.5,5.5,5.6,6.4,5.5,5.5,5.9,6.0,5.5,5.6,6.0,5.7,6.5,5.6,6.0,5.5,6.4,5.9,5.5,5.6,5.6,5.6,6.0,5.5,5.5,5.6,5.9,6.4,7.3,5.5,6.5,5.6,5.5,6.3,5.5,5.5,6.0,5.9,6.3,5.7,6.1,5.5,5.5,5.6,6.0,5.5,6.1,6.0,6.0,5.9,5.7,5.8,6.8,5.6,5.7,6.0,6.4,5.6,7.4,5.6,5.7,5.5,6.4,6.4,5.9,5.6,5.66,5.5,5.6,5.9,5.6,6.2,5.6,5.6,5.6,6.1,6.1,5.6,5.7,6.1,6.3,6.2,6.5,5.7,5.6,5.6,5.5,5.5,5.6,5.6,5.5,6.0,5.7,5.9,6.4,5.6,7.0,5.5,5.6,5.6,5.9,5.7,5.6,6.6,5.7,5.5,5.7,5.6,5.5,5.8,5.7,5.5,5.6,6.5,6.4,5.5,5.8,5.9,6.0,6.2,5.9,6.3,5.5,6.3,6.0,5.7,5.9,5.7,5.5,8.0,5.5,7.6,5.5,5.6,5.8,5.9,5.7,5.5,6.9,5.7,6.7,6.1,5.6,5.6,5.7,5.5,5.7,5.5,6.1,5.9,5.6,6.7,6.2,5.8,6.5,6.6,6.3,5.8,6.4,5.8,5.5,5.8,5.9,5.5,5.5,5.7,5.6,6.0,6.0,5.8,5.7,5.9,6.3,6.4,5.9,5.8,6.2,6.5,5.7,6.2,5.5,5.7,6.2,6.5,6.1,6.2,5.7,5.8,5.9,5.6,6.3,5.5,6.1,6.5,7.1,6.0,5.6,5.6,5.5,6.2,5.5,5.5,5.7,5.8,5.6,5.6,5.5,7.0,5.5,5.6,7.0,5.9,5.6,5.5,5.5,6.0,5.5,5.8,6.0,5.5,5.6,6.3,5.8,6.3,5.6,6.6,5.7,5.7,5.8,5.7,5.5,5.8,7.1,6.5,6.3,6.0,6.0,6.9,5.5,6.2,5.9,5.8,5.8,5.7,5.7,5.5,6.1,6.5,6.3,6.2,6.1,5.5,5.8,5.6,5.5,6.1,5.6,5.9,5.7,5.6,5.7,5.5,5.6,5.7,5.5,5.6,6.0,7.1,5.8,5.5,6.0,5.7,5.7,5.5,5.6,6.3,5.6,5.7,5.5,5.5,6.0,5.5,6.0,5.7,5.6,5.9,6.5,5.6,5.5,5.9,6.2,5.9,5.7,5.6,5.8,5.7,5.5,5.9,6.0,5.8,5.8,5.5,5.9,6.2,5.5,5.8,5.5,5.8,5.6,5.7,5.7,5.8,6.1,6.5,5.5,5.9,5.8,6.4,5.7,5.5,6.1,5.5,6.0,6.2,6.3,5.7,5.7,5.5,5.5,5.5,5.9,5.6,5.6,5.8,6.1,6.3,6.7,5.5,5.8,5.5,5.7,6.3,6.0,5.7,5.8,5.5,5.8,5.6,5.7,5.6,5.7,6.0,5.6,5.6,5.7,5.8,6.2,6.0,5.7,6.5,5.7,6.4,5.5,5.5,5.9,6.3,6.8,5.9,5.9,5.5,5.5,5.9,6.0,5.6,7.0,5.6,5.7,5.6,5.8,6.1,5.6,6.8,6.1,5.9,5.5,5.7,5.8,5.5,6.3,8.0,5.6,5.7,5.5,5.6,5.7,5.8,5.7,5.9,5.6,5.5,5.8,6.4,6.4,5.6,5.6,5.9,5.9,5.8,5.6,5.5,6.6,5.7,5.7,5.5,5.8,5.6,5.9,5.5,6.4,5.6,5.9,6.5,5.8,6.2,5.5,5.5,5.5,6.3,5.5,5.7,6.0,5.9,6.8,7.1,5.5,5.5,6.0,5.7,5.5,5.6,5.7,5.6,6.0,5.7,5.9,5.7,6.1,5.6,5.8,5.6,5.8,6.1,5.8,6.0,6.3,5.5,5.6,5.7,5.8,5.7,5.5,7.1,5.8,5.5,6.0,6.6,6.5,6.8,5.9,6.1,5.6,6.1,5.9,5.6,6.6,7.2,6.4,5.8,6.0,6.5,5.5,6.1,5.6,5.6,5.7,5.7,5.8,5.9,6.1,5.7,5.9,5.9,5.8,5.8,5.5,5.7,5.7,5.5,6.1,5.5,6.0,6.0,6.5,5.7,6.0,6.0,5.5,6.8,5.9,5.6,5.7,5.5,5.9,5.9,6.6,5.5,5.6,5.5,5.6,6.3,6.0,6.0,5.9,5.84,5.5,5.5,6.4,6.35,5.7,5.6,5.5,5.9,5.8,5.6,6.1,5.5,5.9,5.7,5.5,5.5,5.7,5.8,5.5,5.5,5.6,5.6,5.5,5.9,5.8,5.7,5.5,6.2,5.5,5.6,5.5,5.8,5.8,7.5,5.7,5.9,5.8,6.3,6.4,6.1,6.4,6.3,5.5,6.2,5.8,5.5,6.3,5.5,6.4,5.5,5.5,6.6,5.5,5.6,5.5,6.0,5.9,5.7,5.7,7.2,5.9,6.1,5.7,5.6,5.6,5.6,6.5,5.8,6.5,6.3,6.5,6.0,5.5,6.1,5.8,5.6,6.7,5.9,5.6,5.5,5.6,6.2,5.7,5.5,5.9,5.6,6.0,6.0,5.6,5.5,5.9,5.5,5.5,5.6,5.6,5.6,5.7,5.7,5.5,5.6,6.2,6.8,5.6,5.6,5.5,6.4,5.6,5.5,5.7,5.5,7.7,5.7,5.7,6.1,5.5,5.9,5.8,5.5,5.8,5.6,5.6,5.7,5.5,5.9,5.9,5.7,6.0,5.6,6.2,6.0,6.7,6.5,5.8,5.8,5.5,6.4,6.0,6.3,6.4,5.6,5.7,5.9,5.5,5.6,5.6,7.2,5.7,5.7,5.6,5.7,5.8,5.9,6.2,5.5,5.6,5.9,6.0,6.0,5.6,5.8,5.5,7.4,5.5,6.3,5.8,5.5,5.5,5.5,5.5,5.6,5.6,6.0,5.8,6.8,5.6,5.8,5.7,6.0,6.1,6.0,5.9,5.5,5.6,5.5,5.8,6.0,5.5,5.7,5.6,5.8,5.6,6.1,6.1,5.8,5.6,5.5,6.5,6.1,5.5,6.5,5.5,5.6,6.4,6.4,6.3,5.8,5.5,5.6,5.7,6.3,5.8,5.6,5.6,6.0,5.6,5.5,6.2,6.3,6.7,5.8,5.9,6.3,6.8,5.7,5.7,6.6,6.5,5.5,5.7,6.0,5.8,6.0,6.8,5.5,5.5,5.6,5.9,5.7,5.9,5.6,5.9,6.2,5.5,5.8,5.5,5.8,5.9,6.4,5.5,7.0,5.6,5.6,5.9,5.5,5.5,5.5,6.4,6.8,5.6,6.2,6.2,7.4,5.5,5.8,5.6,5.7,5.6,6.0,6.5,5.5,5.5,6.0,6.4,6.1,6.8,5.7,5.7,5.9,5.5,5.7,5.7,5.5,6.2,5.7,6.8,5.5,6.2,5.5,5.5,6.2,6.9,6.0,5.6,6.1,5.6,5.8,6.9,5.7,5.6,6.5,5.8,6.2,5.5,5.7,5.5,7.6,5.6,5.6,7.0,5.5,6.4,7.2,5.5,6.1,6.0,6.2,5.6,5.7,5.9,5.7,5.8,5.6,5.6,5.8,5.5,5.5,6.1,5.5,5.5,5.5,5.6,5.6,6.2,5.6,5.9,5.5,5.9,5.5,5.5,5.6,5.5,5.6,6.0,5.7,6.1,6.7,5.6,5.8,5.7,6.6,6.4,5.8,6.2,6.1,5.7,5.6,6.2,6.1,5.7,5.7,5.7,7.0,5.6,6.2,6.0,5.5,6.7,5.5,5.5,6.4,6.3,5.7,5.6,5.7,6.1,5.7,5.7,5.9,6.1,5.5,6.0,5.8,6.1,6.7,5.6,6.9,6.4,5.7,5.8,5.5,5.8,5.7,6.5,5.6,5.7,5.7,5.5,6.2,6.2,5.6,6.8,6.5,6.8,5.6,5.6,5.5,5.5,6.5,5.8,6.7,5.5,6.1,5.8,6.0,5.5,5.6,5.5,6.3,6.8,5.5,6.0,6.3,5.7,5.6,6.2,5.6,5.6,5.7,6.0,5.5,5.7,5.5,5.5,5.6,5.6,5.8,5.5,6.2,5.5,6.1,5.8,5.5,5.6,6.5,6.3,5.8,6.3,5.6,5.6,5.6,5.8,6.2,5.5,5.6,6.0,5.8,6.2,5.6,5.5,5.5,5.6,5.5,5.6,7.1,5.9,6.3,5.7,6.1,5.7,5.5,6.5,5.5,5.5,5.8,5.7,6.5,5.8,5.8,5.8,5.7,6.1,6.6,6.2,5.6,5.6,5.6,5.6,5.8,5.7,5.6,5.9,6.7,6.6,5.7,5.7,5.7,6.5,5.5,5.7,6.0,6.4,5.6,5.6,5.5,6.0,5.9,5.7,6.2,5.9,5.8,5.8,6.2,5.5,5.8,5.6,5.6,5.7,5.6,5.6,5.6,5.9,5.9,5.7,5.7,5.5,5.6,6.0,5.9,5.8,5.7,5.6,5.6,5.7,7.2,5.6,5.6,5.6,5.7,5.7,6.1,5.7,5.9,5.7,5.6,6.6,5.6,6.0,6.0,6.5,6.1,6.1,5.9,5.9,5.5,6.1,6.7,7.4,6.8,5.9,6.3,5.7,5.7,5.7,6.6,5.7,6.0,5.8,5.6,5.5,5.6,5.8,5.5,6.0,5.6,6.0,5.6,6.1,5.6,5.6,5.7,6.4,6.0,5.5,5.8,6.2,6.1,5.9,5.5,5.5,5.5,5.6,6.1,6.8,6.6,5.5,6.5,5.8,5.6,5.9,5.8,5.6,5.9,6.4,6.1,6.2,5.7,5.9,5.6,7.3,5.6,6.5,5.6,6.3,5.5,5.9,5.6,7.0,5.5,5.6,5.5,5.7,5.7,5.9,7.4,5.5,5.5,6.0,5.6,5.7,5.5,5.7,6.3,6.8,5.7,5.8,6.4,6.0,5.6,6.8,5.9,6.2,5.5,5.9,6.2,5.7,5.7,6.0,6.2,5.5,5.8,5.5,5.8,5.9,6.2,6.0,5.6,6.5,6.9,5.5,5.5,5.8,6.4,5.7,5.9,5.5,5.5,6.0,6.2,5.5,5.5,5.5,6.5,6.6,5.9,6.1,6.7,6.2,6.1,5.6,5.5,5.5,6.2,6.3,5.5,5.5,5.6,7.9,5.9,5.5,5.8,6.4,5.5,6.3,6.2,5.6,5.5,5.8,5.6,5.5,6.0,6.4,6.1,5.6,6.0,5.5,6.7,6.0,5.5,5.9,5.5,5.5,5.6,5.6,5.9,6.1,5.9,5.5,5.8,5.5,6.0,5.9,5.6,5.9,6.6,5.5,5.5,5.6,5.6,5.9,5.8,5.5,6.4,5.8,5.5,5.9,5.5,5.6,5.7,7.0,5.9,5.9,5.5,6.2,6.3,6.3,6.7,5.8,5.5,5.5,5.8,5.9,5.5,5.5,5.6,5.5,5.5,6.1,5.9,5.6,6.0,5.7,5.7,5.5,5.5,5.7,5.7,5.5,7.2,6.5,5.9,6.2,6.5,6.2,6.5,5.6,6.4,5.9,5.8,5.5,5.6,5.8,5.5,5.7,6.1,5.6,6.0,5.6,5.7,5.9,5.9,5.5,6.5,5.5,5.5,5.6,6.7,5.9,5.6,7.3,5.6,5.5,5.6,5.5,6.8,5.5,5.5,6.9,5.5,5.9,5.7,5.5,5.7,7.8,6.2,5.6,5.9,5.8,5.5,6.0,6.7,5.6,6.6,5.5,6.0,5.8,5.9,5.9,5.9,5.5,5.5,5.6,5.9,5.7,5.5,5.9,5.9,5.6,6.2,5.8,5.7,5.8,6.5,5.5,5.5,6.2,5.6,5.7,5.5,6.2,5.5,5.5,5.9,5.8,5.9,5.5,6.2,5.7,6.3,6.1,5.9,6.0,5.9,5.8,5.6,5.8,5.6,5.7,6.4,6.1,5.6,5.5,5.5,5.7,7.1,6.2,5.5,5.8,5.7,5.6,6.3,5.5,5.7,5.9,5.5,5.5,5.5,5.5,6.3,5.9,5.8,5.7,5.7,6.2,6.1,5.9,6.1,6.4,5.7,5.6,6.3,6.1,5.7,5.6,6.6,5.9,5.7,5.5,6.0,5.6,5.9,5.5,5.5,5.7,5.5,6.1,6.2,5.8,5.5,5.7,5.5,5.7,5.7,6.1,5.6,6.1,5.9,5.7,6.0,5.5,5.6,5.6,5.6,5.7,5.6,6.9,5.8,5.5,6.7,6.5,5.8,5.6,5.5,6.3,6.5,5.7,5.8,5.7,5.7,6.7,5.5,6.2,5.6,5.7,5.5,5.5,5.7,5.9,5.6,5.7,5.5,6.0,6.0,5.7,5.9,6.3,5.7,6.6,5.5,5.8,5.6,6.8,5.9,5.6,6.3,5.5,5.9,5.6,5.7,5.6,6.0,5.6,5.7,5.7,5.6,5.7,5.5,5.9,5.5,6.0,6.4,5.5,5.6,5.5,5.9,5.5,5.9,6.6,7.0,5.6,7.0,5.6,5.6,5.6,6.7,6.0,6.2,5.6,5.8,5.5,6.6,5.9,5.7,5.6,5.5,5.7,5.5,5.5,7.3,6.1,6.3,5.5,5.6,5.6,7.6,5.9,6.6,5.6,6.0,6.8,5.6,6.2,5.5,5.8,6.1,5.5,5.8,5.7,6.1,6.7,5.5,6.1,5.5,6.0,6.1,5.7,5.5,5.6,5.9,5.9,6.9,5.6,5.5,5.5,5.6,5.8,5.7,5.8,5.8,5.7,5.5,5.5,5.6,6.7,5.9,5.5,5.5,5.8,5.5,5.5,5.6,5.9,5.6,6.1,6.0,6.2,5.6,5.7,5.6,5.8,5.5,5.7,5.6,5.6,5.5,5.9,5.7,5.6,5.5,5.6,5.5,5.7,5.7,5.8,6.3,5.5,6.1,5.6,5.9,7.1,5.9,5.6,5.8,5.6,5.6,6.3,5.7,5.7,6.0,5.9,5.5,5.6,5.6,5.6,5.7,5.9,5.6,5.5,5.5,5.8,5.6,5.9,5.6,6.3,5.7,6.6,5.9,6.0,5.7,5.6,6.2,5.9,5.6,6.2,5.7,5.5,7.7,6.4,5.8,5.9,6.8,5.7,6.0,5.6,5.5,5.7,6.7,5.5,6.0,5.5,5.8,5.5,6.6,5.5,6.6,6.1,5.6,5.5,5.5,5.9,5.9,5.5,5.6,6.3,5.6,5.9,5.6,5.5,5.5,5.6,5.7,6.1,5.9,5.7,5.5,5.5,5.9,5.8,5.8,6.4,5.9,5.8,6.8,5.9,5.6,5.5,6.2,5.9,5.7,5.6,5.7,6.0,5.5,5.8,5.5,6.4,5.5,5.6,5.9,5.6,5.5,5.5,5.6,5.7,5.7,5.7,6.1,5.5,5.8,6.2,5.9,5.8,5.7,5.8,5.6,6.0,5.5,5.8,6.5,6.7,5.5,6.1,5.6,5.9,5.6,5.6,6.4,6.0,5.9,5.9,5.8,5.7,5.5,5.7,6.1,6.2,5.5,5.5,5.9,6.3,5.6,5.5,5.5,5.8,5.8,6.3,6.2,5.5,5.5,5.5,5.6,5.7,5.6,5.7,7.1,5.6,5.5,5.6,5.9,5.8,5.6,5.8,5.8,5.6,5.9,5.5,5.6,5.6,5.5,6.5,5.5,5.6,6.2,5.5,5.5,5.6,5.5,5.6,6.0,5.6,6.0,5.6,5.5,5.7,6.8,6.4,5.9,6.5,6.2,5.9,5.8,5.5,6.1,5.9,5.5,5.7,6.1,5.7,5.8,6.2,5.5,6.9,5.6,6.0,5.5,5.7,5.7,5.9,6.2,5.6,5.5,5.9,5.6,5.5,6.0,5.6,5.6,6.2,6.9,5.6,5.5,6.0,5.5,6.8,5.8,5.9,5.5,5.5,5.7,6.4,5.6,5.5,5.6,5.7,6.3,6.1,5.8,5.8,5.5,5.6,5.5,6.4,5.5,5.5,5.8,6.1,5.6,5.8,6.9,5.5,6.3,5.5,5.6,5.6,6.0,5.7,6.0,6.1,6.0,6.0,5.7,5.5,5.5,5.5,6.2,5.8,5.5,5.7,7.1,5.6,5.6,6.3,5.5,5.6,5.7,7.0,5.6,6.0,5.7,5.5,6.1,5.6,5.9,6.0,5.7,5.6,6.3,5.5,6.3,5.6,5.9,8.2,5.6,5.5,6.0,5.5,5.7,5.8,6.3,5.6,5.9,6.0,5.9,5.8,5.5,5.7,5.6,6.1,6.0,5.8,5.8,5.9,5.7,5.6,5.9,6.4,5.5,5.8,5.6,5.7,5.5,6.2,5.8,5.5,5.6,5.6,5.5,5.7,5.5,5.5,5.8,5.6,6.4,5.6,5.5,5.7,5.7,5.7,5.5,6.3,6.4,6.5,5.9,5.8,5.8,5.5,5.6,6.4,6.1,5.9,5.8,5.8,5.7,5.6,5.5,5.8,5.7,5.5,5.8,5.8,6.7,5.6,5.6,5.6,6.5,5.6,6.0,6.0,5.8,5.9,5.8,5.9,6.8,6.3,5.9,5.7,5.7,5.5,5.8,6.6,6.0,5.8,5.6,5.7,5.7,5.6,6.1,5.8,5.7,6.1,5.9,5.6,5.5,6.3,5.5,5.6,5.6,5.6,5.5,6.5,5.6,6.1,6.1,5.8,5.7,6.1,6.4,6.1,5.8,6.6,6.3,5.5,5.6,6.5,5.5,5.6,5.5,5.9,5.5,6.4,5.5,5.5,7.1,5.7,5.6,5.6,5.7,6.0,5.6,6.0,5.9,5.8,5.9,5.5,5.6,5.5,5.8,6.4,5.5,6.2,5.5,5.7,5.5,6.5,5.9,6.1,6.2,5.9,5.8,6.2,6.1,5.5,6.5,5.8,5.7,5.8,5.5,5.5,6.1,6.8,6.2,6.1,5.6,5.7,5.5,5.8,5.5,5.6,5.6,6.0,6.3,6.9,5.5,6.1,5.7,5.6,5.6,5.6,6.0,5.5,5.6,5.6,6.1,5.5,6.2,5.6,6.4,6.9,5.9,6.9,5.5,5.5,6.0,5.6,5.8,5.6,5.6,6.1,5.6,5.5,5.5,7.4,6.0,5.5,5.5,5.5,6.0,5.5,5.9,5.5,5.9,5.5,5.5,6.1,5.6,5.6,5.8,5.5,5.7,6.2,5.8,5.8,6.1,5.9,5.5,5.9,6.3,5.7,5.5,5.8,5.5,5.6,5.5,6.1,5.6,5.6,5.6,6.3,6.1,5.6,5.6,5.5,5.6,6.6,6.0,5.8,5.6,6.0,7.1,5.5,5.5,6.2,5.6,6.7,5.9,6.1,6.0,5.6,7.6,6.0,5.7,5.6,5.5,5.5,5.5,5.5,5.6,5.7,5.9,5.6,5.9,5.8,5.5,5.5,6.5,5.9,5.8,5.5,5.5,5.6,6.0,5.5,6.3,6.0,5.6,5.9,5.8,5.5,6.7,5.6,5.8,6.5,5.8,5.5,6.0,6.0,5.5,6.0,5.5,5.8,5.7,6.3,5.7,5.8,5.9,5.5,5.5,5.6,5.7,6.0,5.5,5.7,6.1,5.7,5.7,5.6,5.6,5.6,5.7,6.0,5.5,5.7,6.0,5.7,5.8,5.5,5.5,6.2,5.6,5.9,5.5,5.6,5.5,6.0,5.8,5.8,5.5,5.8,6.3,6.8,6.6,6.0,5.9,5.7,5.6,5.7,5.7,5.5,5.5,5.6,5.9,6.1,5.6,5.9,6.3,6.9,6.4,5.6,5.6,5.7,5.8,5.8,5.5,6.2,5.6,5.7,6.1,5.9,5.7,5.51,5.8,5.6,7.6,6.2,6.6,6.1,7.1,6.2,5.7,5.5,5.9,5.7,5.5,5.6,5.5,5.5,6.4,5.7,5.5,5.5,5.6,5.5,5.7,6.5,6.1,5.5,5.8,5.5,6.6,5.6,5.6,5.5,6.4,7.3,6.3,5.7,5.8,5.9,5.6,6.0,5.8,5.7,6.2,6.8,5.9,5.5,7.6,5.7,5.5,5.7,5.7,5.5,5.8,5.8,5.6,5.5,6.0,5.5,6.3,5.8,5.5,6.0,5.5,5.6,5.8,6.1,5.5,5.7,5.7,6.0,6.1,7.8,5.6,5.6,5.7,6.5,5.5,6.0,6.5,5.5,5.5,6.3,5.5,5.7,6.3,6.5,6.3,5.6,6.0,5.5,6.4,5.7,5.6,6.0,5.6,5.6,5.8,6.6,6.6,6.4,5.8,5.7,6.5,5.7,6.0,5.5,5.8,5.9,5.5,6.3,5.6,7.2,5.8,6.4,6.2,6.0,5.5,6.0,5.5,5.7,5.6,5.5,5.8,5.7,5.9,5.8,5.5,7.2,5.7,6.3,6.1,5.5,5.6,6.1,6.5,7.1,7.1,5.5,5.9,5.8,5.8,5.9,5.9,6.1,6.6,7.0,5.7,6.3,6.0,6.3,5.5,5.5,5.5,6.5,5.6,5.6,5.7,6.5,5.5,5.5,5.6,5.6,5.8,7.1,5.6,6.6,5.5,6.0,5.6,5.6,6.0,6.1,5.6,5.5,5.6,5.6,7.4,5.8,5.5,5.5,5.5,5.7,6.2,6.9,5.8,5.7,6.3,5.5,5.7,5.5,5.6,5.6,5.5,5.6,5.6,5.6,5.7,5.9,6.6,5.8,6.4,5.5,5.5,5.6,6.0,6.0,5.8,5.5,5.5,6.4,6.6,5.7,5.6,5.7,7.7,5.6,5.6,5.7,5.7,5.7,6.1,6.5,5.7,5.6,5.5,5.7,5.8,5.7,6.3,5.5,5.6,5.5,5.6,5.5,5.9,7.2,5.6,5.6,5.5,5.8,5.7,6.0,5.8,6.2,6.5,6.1,6.4,5.6,5.5,5.5,5.8,6.2,5.9,5.5,5.5,5.5,5.5,7.1,5.5,5.5,6.3,5.5,5.5,6.2,5.7,6.7,5.7,6.2,6.0,5.7,5.7,5.7,5.9,6.0,5.5,5.5,5.6,6.4,5.5,5.5,5.7,5.9,5.6,5.7,5.5,5.5,6.6,5.6,5.8,6.0,5.5,5.7,5.8,5.6,5.6,5.7,5.5,6.0,5.5,6.0,5.7,5.8,5.5,5.8,5.6,6.0,5.5,5.6,5.5,5.8,6.4,5.7,5.6,5.6,6.0,6.4,6.5,6.5,6.2,5.9,5.6,5.6,6.7,5.6,5.5,5.5,6.1,5.9,5.8,5.6,5.5,5.7,5.5,6.6,6.1,5.9,5.6,6.8,5.9,5.8,7.0,5.7,5.6,5.5,5.5,5.8,5.7,5.8,6.5,5.9,6.1,5.5,5.5,5.5,5.6,5.6,5.7,5.5,5.5,5.6,5.8,5.5,6.6,5.7,7.1,5.7,5.7,5.5,5.5,6.4,5.9,5.5,5.6,6.7,5.8,5.6,5.7,5.6,5.5,5.8,5.6,6.0,6.3,5.7,5.5,6.1,5.7,5.8,5.5,5.6,5.6,5.6,6.1,5.8,5.5,5.9,5.6,5.5,6.1,5.9,5.5,5.5,6.0,5.5,6.4,5.8,5.6,6.3,6.2,6.7,5.5,5.9,5.7,5.6,5.5,5.5,5.7,5.7,5.5,6.3,5.5,5.6,6.0,5.5,5.6,5.9,6.8,6.1,5.5,5.6,5.5,6.0,5.7,5.6,5.6,5.9,5.7,5.9,5.6,5.7,5.5,5.9,6.1,5.6,7.5,5.5,5.6,6.3,5.8,6.0,5.5,5.9,6.2,5.7,5.8,7.0,6.2,5.5,6.2,5.8,5.7,5.6,5.6,5.8,5.8,5.5,6.0,5.5,5.8,5.7,6.3,5.5,5.6,6.0,5.7,6.4,5.5,6.3,6.4,5.5,5.5,5.5,5.5,5.7,5.9,5.6,5.6,5.8,6.9,5.7,5.5,5.7,6.1,6.9,6.4,6.2,6.0,5.8,5.7,5.5,5.5,5.9,5.9,6.0,5.5,6.1,6.0,7.0,5.7,5.6,5.9,5.5,6.7,5.7,5.5,5.7,5.6,6.0,5.6,5.8,6.2,5.5,5.6,6.2,5.7,5.7,5.6,6.6,5.6,5.9,5.7,5.5,5.8,6.0,5.7,6.4,5.7,5.8,5.7,6.3,5.6,6.0,6.2,5.8,5.6,5.5,6.3,5.5,5.8,5.8,5.6,5.5,5.5,6.0,5.6,5.8,5.8,5.6,6.3,6.5,7.1,5.5,6.3,5.8,5.5,6.7,5.9,5.6,5.8,5.8,5.6,5.5,5.8,6.0,5.6,5.5,6.0,5.5,6.1,5.9,5.5,5.6,7.6,5.8,5.8,6.3,6.2,5.5,6.2,5.6,7.0,5.9,5.5,6.1,6.0,5.7,5.5,6.3,5.5,6.0,6.7,5.6,6.2,5.7,5.5,5.7,5.5,5.6,6.1,5.5,5.5,5.6,6.3,5.5,5.5,6.0,6.4,5.5,7.0,5.9,5.5,6.6,5.8,6.8,5.7,5.5,7.0,5.6,5.8,5.6,5.5,5.6,5.6,6.9,7.0,5.5,6.4,5.9,5.5,5.5,5.8,5.8,5.9,5.5,6.3,6.6,5.7,5.6,5.7,6.1,5.5,5.9,5.8,5.5,7.5,5.6,5.8,6.2,7.3,5.6,5.6,5.5,5.6,5.8,5.5,5.7,6.0,6.4,5.7,5.7,6.9,5.6,6.1,5.9,7.0,5.5,5.6,5.8,5.5,5.6,6.9,6.2,6.7,5.6,5.5,5.7,5.8,5.5,5.6,5.9,5.8,5.6,5.6,5.8,5.5,5.7,5.8,5.7,5.5,5.7,5.5,5.7,5.5,6.0,5.9,6.0,5.5,6.7,5.5,5.9,5.7,5.5,6.0,6.5,5.5,5.7,6.3,5.6,6.1,5.6,6.0,7.0,5.5,5.5,5.7,5.5,5.8,5.7,5.8,5.9,5.5,5.9,5.5,5.7,5.5,5.6,5.5,6.4,6.4,6.3,5.5,5.5,5.6,5.5,5.5,5.8,5.8,5.9,5.5,6.2,5.5,6.1,5.5,5.7,6.6,7.0,5.6,5.6,5.7,5.5,5.6,6.0,5.6,5.6,5.6,6.3,5.9,6.3,7.2,6.4,6.1,6.2,5.9,6.1,5.5,6.5,5.6,5.6,5.5,6.8,5.5,5.6,5.5,6.0,5.7,5.5,5.8,5.6,5.5,6.2,5.5,6.0,6.6,5.7,6.0,5.6,6.2,5.7,6.2,6.5,5.8,6.3,5.6,5.5,6.0,5.9,5.8,5.6,6.8,5.5,5.9,7.2,5.6,6.1,5.5,6.3,5.5,5.6,6.0,6.4,5.8,5.6,5.5,5.8,6.3,5.5,5.5,5.9,6.0,5.6,5.5,5.6,5.5,6.4,6.5,5.6,5.7,6.6,5.5,6.0,5.5,6.5,5.5,5.5,6.4,6.3,5.7,5.6,5.9,6.3,5.7,5.5,6.8,5.8,5.6,5.6,5.6,5.7,7.6,5.8,5.5,5.5,5.5,5.5,5.5,5.6,6.0,7.2,5.8,6.4,6.6,5.8,5.6,5.9,5.5,6.4,6.1,5.8,5.6,5.7,5.6,5.7,5.9,6.1,5.6,5.7,5.5,6.7,5.7,5.6,5.5,5.8,5.9,5.9,5.5,5.8,6.0,6.3,5.8,5.7,5.9,5.5,5.5,6.5,5.6,5.7,5.6,5.6,5.7,5.5,6.8,6.0,5.6,6.0,6.2,6.2,5.5,6.0,5.7,5.5,6.0,5.5,5.8,6.0,6.7,5.8,5.6,5.5,6.9,6.0,5.8,5.6,5.9,5.5,6.4,6.2,6.4,6.6,6.2,5.5,5.6,6.1,5.5,6.4,6.7,6.1,5.9,5.9,5.6,5.5,6.3,5.5,5.8,5.6,6.0,6.0,5.6,5.5,6.0,5.6,5.5,5.6,5.5,5.5,5.9,6.3,5.5,5.5,5.6,5.5,6.5,5.5,5.8,5.7,5.7,6.1,5.5,5.8,6.7,5.7,6.0,6.0,6.0,5.7,6.0,5.9,5.6,5.7,5.5,6.1,5.8,5.8,6.6,5.5,6.2,5.7,5.5,6.1,5.6,5.7,6.1,6.2,5.5,6.2,5.6,5.9,7.2,5.6,6.45,6.57,5.7,5.9,5.9,5.5,5.8,5.5,5.5,6.1,5.5,6.0,5.8,5.6,5.5,5.7,6.7,5.6,5.6,5.7,7.2,6.2,5.5,6.1,5.8,6.1,5.7,7.1,7.3,5.9,6.1,6.3,5.6,5.8,5.5,6.3,6.5,5.5,6.0,5.5,5.9,5.6,5.7,5.5,5.6,6.2,5.7,6.0,5.5,5.7,6.8,5.8,5.6,7.0,6.0,5.8,5.8,5.6,6.0,5.5,6.0,6.3,5.9,5.5,5.7,5.5,5.5,5.9,6.2,5.6,6.2,5.7,6.0,5.6,6.0,5.5,5.6,6.1,5.6,5.5,5.7,6.0,5.8,5.5,5.6,5.6,6.3,5.7,5.8,6.0,6.2,5.8,6.2,6.5,5.7,5.8,5.6,6.1,5.7,5.5,5.9,5.7,6.5,5.9,5.9,5.6,7.3,5.77,5.7,5.53,6.3,5.9,5.5,5.69,5.6,5.6,5.8,6.5,7.2,5.67,6.2,5.7,5.8,6.2,6.3,6.0,5.5,5.6,5.7,5.9,5.8,5.6,5.8,5.5,5.5,5.8,6.9,6.1,5.5,6.4,5.9,5.8,5.8,5.5,6.1,5.7,5.5,5.6,6.0,5.5,6.7,5.6,5.5,5.8,5.5,5.9,5.6,5.7,5.7,5.6,5.6,5.6,6.2,6.1,5.5,5.5,5.5,5.8,6.3,6.6,5.6,6.1,5.7,6.4,5.7,5.7,5.6,5.8,6.9,6.2,6.1,5.7,5.5,5.5,5.5,6.4,5.8,6.2,5.9,6.3,5.5,5.9,6.1,7.3,6.1,6.3,6.6,5.5,6.2,6.1,5.5,5.9,5.6,5.6,5.5,6.9,6.3,6.4,5.9,7.7,5.5,5.5,6.7,5.6,5.6,5.7,6.0,5.5,6.0,5.7,5.5,5.6,6.1,5.7,6.0,5.9,5.7,5.6,5.5,6.4,5.6,5.6,5.6,5.5,5.5,5.7,5.5,5.7,6.3,5.6,5.6,5.8,5.6,5.5,6.1,5.6,5.5,5.6,5.6,5.7,6.7,5.5,5.9,5.7,5.8,6.0,5.5,6.4,6.0,6.6,6.1,5.7,5.6,6.1,5.5,5.5,5.5,6.2,5.8,5.5,7.4,5.6,5.8,6.8,5.5,5.6,6.5,5.5,6.7,5.6,6.2,7.2,5.6,5.8,5.5,5.7,6.2,6.0,5.5,6.2,6.6,5.5,6.5,5.6,5.6,5.5,6.4,5.8,5.7,6.2,6.4,5.7,6.6,5.6,5.5,5.5,6.0,5.5,6.2,6.5,5.6,6.5,6.1,5.6,6.4,5.9,6.4,6.0,5.5,6.2,6.1,6.7,5.6,5.5,5.7,5.8,5.8,5.5,6.2,5.9,5.6,6.3,5.8,5.5,5.7,5.9,5.5,5.9,5.5,6.6,5.6,5.8,5.6,5.8,5.7,5.9,5.7,5.5,5.9,5.5,5.7,5.8,6.5,5.8,6.0,6.0,5.5,5.5,5.5,5.8,5.7,5.5,6.0,5.6,5.7,6.0,5.9,5.7,5.6,7.8,5.7,6.1,5.5,5.7,5.9,5.9,5.6,5.7,6.1,5.5,5.8,6.1,5.5,7.3,5.5,5.7,5.7,5.8,5.7,6.3,5.8,5.9,5.7,6.8,5.7,6.0,5.5,5.5,5.6,5.8,6.4,5.6,5.5,5.7,5.8,5.9,6.0,5.7,5.6,5.6,5.5,5.5,5.5,6.7,5.5,5.7,5.5,5.5,6.3,6.1,7.6,5.6,6.4,5.9,5.9,6.6,5.6,5.9,6.2,5.9,5.8,6.4,5.5,5.7,5.6,5.7,5.7,5.6,5.7,5.6,5.7,5.6,5.5,5.5,5.5,5.9,5.7,6.6,5.7,5.5,5.6,5.8,6.2,5.9,5.6,6.3,5.5,5.7,5.7,5.5,5.6,5.7,5.7,5.7,5.5,6.2,5.9,5.6,6.0,5.7,5.7,7.1,6.0,6.6,6.7,5.6,5.6,5.5,6.2,6.3,6.5,5.7,5.6,6.4,5.5,5.5,5.7,6.7,5.6,5.6,5.8,6.0,5.6,6.3,6.2,6.3,5.7,5.5,6.0,5.6,5.6,5.5,5.9,5.7,5.8,5.7,5.5,5.7,5.7,6.0,6.3,5.5,5.8,5.7,5.5,5.6,5.5,5.7,5.8,5.9,5.6,5.6,5.5,6.9,6.3,6.3,6.3,6.8,5.9,5.8,6.3,6.0,5.5,5.5,5.5,5.5,5.6,6.4,5.5,5.7,5.5,5.7,5.7,6.1,5.8,5.6,5.7,7.0,5.5,5.5,6.9,5.6,5.8,6.0,6.1,5.6,5.7,6.9,6.6,5.7,5.7,6.4,5.8,6.1,5.5,6.8,5.5,5.6,5.8,5.7,5.7,6.2,7.0,5.6,6.2,5.7,5.8,5.5,5.6,5.5,6.4,5.8,5.7,6.1,5.6,5.7,5.5,5.9,5.8,5.8,5.7,6.1,5.6,5.6,6.0,5.5,6.5,5.8,5.5,7.5,6.3,5.6,6.1,5.7,5.9,6.1,6.3,5.6,5.5,5.5,6.2,5.6,5.7,6.6,5.9,6.7,6.0,5.8,5.7,5.8,5.8,5.5,5.5,5.5,6.4,6.7,5.7,5.9,5.6,5.6,6.4,5.5,5.7,5.5,6.0,5.9,6.1,5.8,6.6,5.8,7.7,5.6,6.3,6.0,5.8,5.6,5.7,5.7,5.5,5.8,5.5,5.7,5.6,6.1,6.0,5.7,5.7,5.6,5.8,6.0,5.6,6.2,5.5,5.6,6.0,6.1,5.7,6.5,5.5,5.6,6.4,6.7,6.5,5.5,7.8,5.7,5.7,6.4,7.0,7.0,6.4,5.6,5.6,6.2,5.8,6.3,5.8,5.6,6.0,5.5,5.6,5.9,5.5,6.2,5.5,5.5,5.7,6.1,5.8,6.2,5.6,5.7,5.9,5.9,5.9,5.7,6.3,5.5,6.8,5.5,5.6,6.0,6.2,6.6,6.5,5.7,5.8,6.0,7.2,5.5,5.7,5.6,5.6,5.7,6.0,5.9,5.7,6.3,5.6,5.5,5.8,5.9,5.7,5.6,5.5,5.7,5.6,5.5,5.6,5.5,6.3,5.5,5.5,6.4,6.3,5.6,6.0,5.9,5.9,6.0,5.8,5.7,6.1,6.3,5.8,5.6,6.6,5.5,5.5,6.4,6.0,5.9,6.2,6.5,6.1,5.8,6.0,5.6,5.8,6.0,5.9,6.6,5.8,5.5,5.6,6.0,6.9,5.5,5.5,6.9,6.5,6.0,6.0,6.3,5.8,5.5,6.0,5.5,5.6,5.7,5.6,6.7,5.8,5.9,6.7,6.1,5.9,5.8,5.5,5.8,5.5,5.7,5.8,5.7,5.6,5.6,6.2,5.5,5.6,5.9,6.0,6.0,5.6,5.6,6.0,7.0,5.5,5.8,5.6,5.5,6.0,6.5,5.6,5.8,5.9,5.9,5.9,6.0,5.7,6.2,5.8,5.5,5.8,5.9,5.6,5.6,5.7,5.6,5.5,5.5,5.5,5.6,5.9,5.6,6.9,6.8,5.7,6.1,5.6,5.9,5.9,5.8,5.7,6.0,5.7,5.5,6.1,5.7,6.3,5.8,5.9,7.0,5.9,6.5,5.8,5.5,5.6,5.7,5.7,6.1,6.0,5.5,5.5,5.6,5.8,5.7,5.6,6.9,6.1,5.5,5.5,5.7,5.7,5.7,6.7,5.89,5.8,5.58,6.8,6.1,5.5,5.8,7.0,6.0,5.6,5.7,6.3,5.5,6.0,5.6,6.1,5.5,5.8,5.5,5.6,5.6,6.2,5.7,5.5,5.6,5.5,6.9,5.5,6.7,7.0,5.7,5.7,5.9,6.0,6.9,5.6,5.6,6.5,5.7,6.0,5.5,6.3,6.4,5.9,6.1,5.6,5.5,5.8,6.3,6.0,6.0,5.7,5.9,5.5,5.7,6.1,5.5,5.8,5.9,5.7,6.3,6.1,5.7,6.1,5.6,5.6,6.1,5.8,5.6,5.9,5.8,7.6,6.0,5.5,5.5,5.6,5.6,6.0,7.0,6.9,6.4,5.5,5.6,5.7,5.7,5.5,5.5,5.5,5.9,6.5,5.5,5.5,5.8,5.7,5.6,5.8,6.2,5.5,5.9,6.2,6.4,6.0,6.1,5.9,5.5,5.8,6.5,5.7,5.5,5.5,5.6,5.6,5.6,5.5,5.7,6.7,5.9,5.6,5.9,5.8,6.7,6.2,5.5,5.7,5.6,5.8,5.8,6.3,6.0,5.5,5.6,6.9,5.9,6.1,5.8,6.1,5.5,6.2,6.2,5.8,5.9,5.7,5.5,5.5,5.6,5.7,5.9,5.5,6.9,5.7,6.5,6.1,5.6,5.9,5.6,5.9,5.9,6.2,5.7,5.5,5.5,5.5,5.5,6.3,6.2,5.6,6.1,5.6,5.9,5.5,5.6,6.6,5.5,5.8,6.5,5.7,5.6,5.9,5.5,6.0,5.6,6.5,5.6,6.0,7.8,5.6,5.8,5.6,6.6,5.9,5.9,5.6,5.5,6.5,5.6,5.5,6.4,6.1,5.6,5.5,5.6,6.8,5.5,8.2,6.1,6.2,5.8,5.8,5.8,5.6,5.8,6.2,5.6,5.6,5.6,6.2,5.5,6.1,5.9,6.0,6.8,5.5,6.0,5.9,5.7,5.5,5.5,6.1,5.6,5.9,6.3,5.6,5.6,5.6,5.6,5.5,5.8,5.5,6.5,5.9,5.9,5.5,5.9,5.7,5.6,7.2,5.6,6.7,6.5,5.9,5.7,5.5,5.7,5.6,5.7,5.5,5.6,5.5,7.3,5.8,6.0,5.5,5.9,5.6,5.6,6.4,5.6,6.6,5.7,5.8,5.8,5.9,5.6,5.9,5.8,5.6,6.2,5.5,5.5,6.2,5.6,5.5,5.6,6.1,5.5,5.5,5.5,5.5,5.9,5.8,6.0,6.3,5.9,5.5,5.5,5.7,5.8,5.9,5.9,5.7,6.6,5.9,6.5,5.8,5.6,6.2,6.0,6.2,5.6,5.5,5.5,5.5,5.5,5.6,5.6,6.6,5.8,5.7,5.7,6.2,6.2,7.0,5.9,5.8,5.6,5.5,5.7,6.3,5.6,5.6,5.6,5.5,5.7,5.6,5.5,5.7,6.0,5.7,5.9,5.7,6.0,5.5,6.1,6.1,5.8,5.5,5.5,6.0,6.8,5.7,5.8,5.5,6.1,6.2,5.8,6.6,6.0,5.5,5.8,5.5,5.7,6.5,6.2,8.3,6.1,5.6,5.9,5.7,6.3,5.5,6.3,6.0,6.0,6.0,5.7,5.5,5.5,5.8,5.7,5.5,5.7,6.0,6.1,5.6,5.5,5.6,6.0,5.5,6.8,7.3,5.9,6.1,5.6,5.8,5.7,5.8,5.9,6.4,5.5,6.4,6.1,5.6,6.7,5.9,5.5,6.0,5.5,5.5,6.0,5.5,6.3,6.7,5.8,5.9,5.6,5.6,5.9,6.2,5.6,5.5,5.7,5.7,5.8,6.1,5.5,6.5,5.6,5.6,5.5,5.8,5.5,5.8,7.1,5.5,6.5,6.0,5.8,5.5,5.6,5.9,6.3,6.1,5.9,5.6,5.5,5.7,5.5,5.5,5.5,5.5,6.0,5.5,5.7,6.0,6.5,5.7,6.3,5.6,5.5,5.5,6.1,5.7,5.6,6.5,5.8,5.8,5.7,5.7,5.5,5.5,5.5,5.5,6.4,5.5,5.6,7.8,5.6,5.7,5.7,5.7,5.7,6.2,5.7,6.4,5.8,5.5,5.5,6.3,5.5,6.0,6.5,5.6,5.9,6.0,5.7,5.5,5.8,7.0,6.0,5.6,6.0,5.5,5.6,5.6,5.6,6.0,5.6,5.7,5.6,6.0,6.3,5.7,6.9,6.3,5.5,5.6,5.9,6.5,5.8,5.6,5.7,5.9,6.2,6.3,5.6,5.7,5.7,5.5,5.8,5.6,6.2,5.7,5.5,5.5,5.5,6.8,5.6,5.6,5.5,5.8,6.0,6.4,5.5,6.0,7.1,5.6,5.9,5.9,5.7,5.6,6.4,5.7,5.6,6.5,5.6,5.6,5.7,5.6,5.6,6.0,5.9,6.3,6.3,5.7,5.5,6.7,5.6,6.0,5.5,5.9,5.5,5.5,6.0,6.6,5.8,5.5,5.5,6.2,6.2,6.2,6.1,5.9,5.6,5.7,6.0,5.6,5.7,5.9,6.1,6.2,5.7,5.9,6.0,5.8,5.5,5.6,6.2,5.7,5.5,5.5,6.1,6.9,5.8,5.6,5.6,5.5,5.8,5.5,5.8,5.5,5.6,5.6,6.2,6.3,5.5,5.6,5.5,5.8,6.2,5.7,6.0,5.7,5.9,5.6,5.8,5.8,5.7,5.5,7.4,6.1,5.5,5.5,5.9,6.2,5.5,5.6,6.2,5.6,6.1,5.7,6.5,5.5,5.6,5.9,6.2,5.5,5.5,6.8,6.1,5.6,5.7,5.8,6.6,6.0,6.9,6.8,7.2,6.8,5.5,5.7,6.5,6.8,6.1,5.5,5.7,6.0,5.6,6.2,5.5,5.5,6.9,6.2,6.1,5.9,5.7,6.7,5.5,6.2,6.1,7.1,6.1,5.7,5.6,5.9,5.9,6.4,6.0,5.5,5.5,6.4,5.9,6.6,5.9,6.9,6.1,5.9,5.7,7.7,5.8,5.5,6.1,5.5,5.5,6.5,5.6,5.7,5.6,6.8,5.5,5.9,5.5,5.5,5.6,5.5,6.3,5.8,6.1,5.5,5.6,6.8,5.6,5.5,5.9,5.6,5.7,6.5,7.1,5.5,5.5,5.7,5.6,5.7,6.3,5.7,5.5,5.6,5.6,6.4,5.5,5.5,5.6,5.8,5.6,5.5,5.6,5.7,5.5,6.6,5.6,6.5,5.7,5.7,5.6,5.5,5.5,6.7,5.6,5.5,5.8,5.8,6.8,6.2,6.0,5.5,5.6,5.8,5.7,5.5,6.0,5.5,5.8,6.0,6.6,5.8,6.2,5.7,5.7,5.5,7.2,6.1,5.6,5.6,5.7,5.5,6.0,6.0,5.6,6.0,5.8,5.9,5.5,6.8,5.5,6.5,5.9,5.9,5.5,5.8,5.5,5.9,5.5,6.0,5.8,5.6,5.5,5.6,5.5,5.7,5.7,6.4,6.0,6.4,5.5,5.7,5.6,8.0,5.8,5.9,6.0,5.8,5.6,5.5,6.2,5.7,6.0,5.8,5.8,6.4,5.8,5.7,5.6,5.7,5.6,5.5,5.7,6.2,5.5,5.5,5.5,5.5,5.5,6.7,5.7,5.5,5.6,7.7,5.9,5.9,5.7,5.8,5.6,6.6,5.7,5.6,7.2,5.5,6.4,6.0,5.6,6.1,6.4,5.7,5.8,5.6,6.2,5.6,5.9,6.6,5.5,5.6,5.5,7.1,6.3,6.2,5.8,6.1,6.2,5.5,6.0,6.0,5.7,5.7,6.6,6.4,6.1,5.8,6.4,5.6,5.9,5.6,6.0,5.9,6.3,5.6,5.9,5.6,5.6,5.9,7.4,6.1,5.6,5.6,6.0,6.0,5.7,5.6,5.6,5.8,5.5,5.75,6.2,5.5,5.6,6.0,6.0,5.6,6.5,5.7,5.7,5.5,5.9,5.8,5.5,6.0,5.5,6.4,6.1,5.6,6.1,7.0,5.6,6.5,5.7,5.5,5.6,5.9,5.8,6.0,5.8,6.4,5.9,6.8,5.8,5.7,5.7,5.6,6.3,8.0,6.0,5.6,6.0,6.1,5.6,6.2,6.1,6.1,5.7,6.3,7.1,5.5,6.1,6.3,6.8,5.6,5.7,6.1,7.2,5.5,5.7,5.9,6.2,5.6,5.5,5.7,5.8,5.5,5.8,6.0,6.1,5.6,5.8,5.8,6.7,5.7,5.8,5.6,6.3,5.7,5.5,5.8,6.9,6.0,5.7,6.3,6.0,5.5,5.8,5.5,5.5,5.5,5.7,5.8,5.6,5.5,5.7,7.2,5.8,5.5,5.7,6.2,6.6,5.5,5.6,5.8,5.5,6.3,5.8,5.8,6.0,5.6,6.3,6.6,6.6,5.5,5.6,7.9,5.5,5.8,5.7,6.4,5.6,5.9,5.6,5.5,5.6,5.7,5.9,5.7,5.5,6.5,5.6,6.4,5.8,5.8,5.5,5.9,5.9,5.6,6.0,5.5,5.5,6.4,6.2,6.2,6.4,5.7,5.8,6.1,5.6,5.5,5.8,5.5,5.5,5.7,5.5,6.5,5.5,6.1,5.6,5.8,7.1,5.9,5.8,5.7,5.7,5.7,6.1,6.3,5.7,5.7,5.8,6.0,7.9,5.6,6.6,5.5,5.5,5.5,5.5,5.7,5.6,5.6,5.5,5.9,5.9,5.6,5.9,5.9,5.7,5.7,6.1,5.6,5.5,5.6,5.6,6.2,5.5,6.0,5.7,6.1,6.4,5.6,6.0,5.5,6.2,5.8,6.6,5.6,5.9,5.5,5.6,5.5,5.7,6.1,5.6,5.7,7.2,6.0,6.1,6.1,5.8,5.7,5.6,6.6,6.0,6.7,8.2,5.5,5.5,6.0,5.8,5.8,5.5,6.5,5.7,6.5,5.9,6.4,5.6,5.5,5.5,6.6,5.7,6.0,5.5,5.8,7.5,6.0,6.3,6.2,7.1,5.7,6.2,5.9,5.5,5.5,5.8,6.4,5.7,5.5,6.1,5.7,6.6,5.5,6.7,5.9,5.5,6.3,5.9,5.8,5.6,5.5,5.5,5.5,5.6,6.1,5.7,5.7,5.7,5.6,5.9,5.6,6.7,6.7,6.1,5.8,6.3,5.8,5.9,5.6,6.8,5.8,5.8,5.5,5.5,5.8,6.1,5.6,6.0,6.1,5.6,5.8,5.5,6.0,5.8,5.5,5.5,6.1,5.7,6.3,5.5,5.5,6.0,5.5,5.8,5.7,5.9,5.5,5.6,5.6,5.7,5.8,5.5,5.7,5.9,5.8,5.9,5.5,7.2,5.5,5.5,5.8,6.6,5.7,5.5,5.5,5.6,5.6,5.5,5.6,5.5,5.5,5.5,6.2,7.2,5.7,6.1,6.1,5.6,6.0,5.5,5.5,6.6,5.6,6.0,5.7,5.6,5.5,5.5,6.0,5.5,6.2,5.8,5.5,5.7,5.8,6.3,5.6,5.7,5.7,5.7,5.7,6.2,6.0,5.5,5.5,5.6,7.0,5.8,6.0,6.1,6.0,5.6,5.9,5.9,5.5,5.6,6.3,5.9,6.5,6.5,5.6,6.7,7.9,5.6,7.3,5.5,5.6,5.9,5.8,5.6,5.5,7.1,5.5,5.8,5.5,5.6,5.5,5.5,6.1,7.9,6.0,5.6,6.7,6.4,6.2,5.7,5.5,5.9,6.3,5.5,5.6,5.6,5.9,5.8,6.1,5.5,5.5,5.7,5.9,5.9,5.6,5.6,5.6,6.2,5.7,5.9,6.3,6.8,6.5,6.6,5.8,6.2,5.9,5.9,5.6,7.0,5.6,6.5,6.2,5.9,5.7,6.1,5.9,6.0,5.5,6.1,5.5,5.5,5.6,5.6,6.9,5.9,6.7,6.3,7.4,5.6,5.5,5.8,5.8,5.5,5.7,5.7,6.2,6.0,5.5,5.7,5.7,6.1,6.0,5.7,5.7,5.7,5.6,5.8,5.7,6.2,5.5,5.6,5.8,6.0,6.1,5.9,5.5,6.0,5.5,5.9,5.8,5.5,5.7,5.9,6.0,5.6,5.5,5.9,5.9,5.5,5.5,5.6,5.5,5.9,5.9,5.5,5.5,5.7,6.2,6.9,5.6,6.2,5.7,6.0,6.8,5.9,6.2,5.5,5.6,5.8,5.5,5.6,5.6,5.6,6.0,5.8,5.7,5.8,6.2,5.5,5.8,5.9,6.4,5.9,5.9,5.5,5.6,5.5,5.7,5.7,5.7,5.6,5.5,6.4,6.6,6.6,6.1,5.8,5.8,5.7,5.9,5.7,5.6,5.6,5.8,5.5,5.8,5.6,5.7,6.3,5.6,5.5,5.5,5.5,6.4,5.5,5.6,6.4,6.0,5.6,5.6,5.5,5.6,6.2,5.5,6.1,5.6,5.8,6.8,5.7,5.7,6.3,6.1,5.9,5.8,5.9,6.8,5.5,5.5,6.0,5.5,6.6,5.8,5.6,5.5,5.5,5.7,6.7,6.9,5.6,5.6,5.8,5.8,5.6,5.5,6.1,5.7,5.7,5.6,5.5,5.6,5.9,5.7,5.6,5.8,5.7,5.8,5.6,5.9,6.3,5.5,6.8,6.0,5.5,6.6,5.5,6.1,5.5,5.5,5.6,5.5,5.6,5.6,6.2,6.0,7.7,5.6,5.5,6.1,6.0,5.5,6.0,5.5,5.7,5.6,6.2,5.8,5.5,5.7,6.0,5.7,5.6,6.0,6.1,6.9,6.1,5.9,5.8,5.8,5.9,5.6,5.9,5.5,5.6,6.3,5.5,6.2,5.5,6.7,6.2,5.7,5.5,5.8,5.5,5.7,5.5,6.1,6.0,6.7,5.6,5.9,5.5,5.6,5.5,5.6,5.7,5.5,5.5,5.5,5.6,5.5,5.5,5.5,6.5,5.8,5.5,5.8,5.8,6.3,5.5,5.5,5.8,6.0,5.7,6.4,5.8,6.0,5.6,5.5,5.8,5.5,7.2,5.7,5.6,5.5,6.2,6.3,5.8,5.5,5.9,5.7,5.9,5.5,5.6,5.7,7.1,5.6,6.2,5.6,5.5,6.5,6.4,5.7,5.5,6.1,5.9,5.9,5.5,5.6,5.8,5.5,6.0,6.1,5.6,5.6,5.5,5.7,6.1,5.5,7.1,6.0,5.9,6.1,5.6,5.6,5.6,5.6,5.7,5.5,5.9,6.2,5.5,5.6,5.7,6.1,5.7,6.9,5.6,5.9,5.8,5.6,5.5,6.4,5.8,5.9,6.3,5.8,5.7,5.5,5.9,5.7,5.5,5.7,6.1,6.7,6.1,5.8,5.6,5.7,5.5,5.5,6.1,6.2,6.2,6.1,5.7,5.5,6.5,5.5,5.9,6.0,5.6,5.8,5.7,5.5,5.6,5.5,5.8,5.5,6.2,5.5,6.0,5.6,5.5,5.5,5.8,5.5,5.6,5.6,5.5,5.5,5.6,5.5,7.7,6.1,6.2,6.0,5.7,5.5,5.5,5.9,5.5,5.9,6.7,5.6,5.8,5.7,6.0,6.5,5.6,5.9,5.8,5.6,6.1,5.5,6.8,5.5,6.9,5.5,6.9,5.5,5.5,6.0,5.6,6.0,5.6,5.5,6.0,7.3,5.6,6.5,5.9,5.6,5.9,5.6,6.1,6.5,5.5,5.5,6.0,5.7,5.5,5.5,5.6,5.8,5.9,5.6,6.8,6.0,5.8,6.5,6.1,5.8,5.5,7.1,6.1,6.4,5.6,5.6,6.5,5.6,5.6,5.6,5.5,6.1,5.7,5.6,6.0,6.5,5.8,5.5,5.6,6.1,5.5,6.4,5.6,5.6,5.9,6.4,5.8,5.9,5.9,5.8,6.3,5.9,5.6,5.7,5.8,5.5,6.8,6.1,5.8,5.8,5.5,5.9,5.8,5.9,7.0,5.9,6.0,6.1,5.6,5.9,6.9,5.7,6.1,6.1,5.5,6.0,5.5,5.7,6.2,6.1,5.5,6.3,5.8,5.9,5.5,6.0,5.6,6.1,6.0,5.5,5.5,5.6,5.6,6.6,6.3,6.2,5.5,5.5,6.3,5.7,6.0,5.7,5.5,6.0,6.5,5.6,5.6,5.6,5.5,5.6,5.7,5.9,5.5,6.5,6.6,5.5,5.8,5.6,5.5,6.8,6.1,6.8,5.7,5.5,5.8,6.1,5.6,5.5,5.6,5.9,6.2,6.0,5.6,5.6,5.7,7.0,5.6,5.6,5.6,5.9,5.6,5.8,6.0,5.6,5.5,5.7,6.0,5.5,6.0,5.9,5.6,5.6,6.2,5.5,5.6,5.5,5.5,5.7,5.7,5.5,6.3,5.8,6.5,5.6,6.1,5.5,5.9,5.5,5.7,5.9,5.5,5.5,6.0,5.5,6.4,7.8,5.5,7.1,5.7,6.4,5.5,6.2,6.0,5.5,5.8,5.5,5.6,5.7,5.5,5.6,5.8,5.7,5.6,5.9,7.2,5.6,5.9,5.6,5.5,5.6,5.5,6.2,6.1,5.6,5.9,5.6,5.6,5.6,5.6,5.9,5.6,7.5,6.5,5.6,5.5,6.2,5.5,5.6,5.5,5.6,6.0,6.1,5.6,7.0,5.6,5.5,6.6,5.8,5.7,5.5,5.5,6.1,5.5,5.6,5.6,5.7,7.0,5.5,5.5,6.7,5.7,5.8,5.7,5.5,5.5,6.0,5.5,5.5,5.5,7.8,5.7,5.6,5.5,6.4,5.5,5.8,5.5,5.6,5.7,6.1,5.9,6.2,5.6,5.7,5.6,5.7,6.4,5.6,5.6,5.7,5.7,5.6,5.6,5.9,5.9,5.5,6.0,5.7,5.8,6.6,6.3,5.5,5.7,6.1,5.8,5.5,5.9,7.2,6.1,5.6,5.5,5.5,5.8,5.9,5.6,6.2,5.7,5.8,6.3,5.9,6.3,5.8,7.5,5.6,5.7,6.4,6.6,5.5,5.7,5.6,6.6,6.7,5.5,5.9,5.5,5.8,6.6,6.0,5.9,5.9,5.7,5.7,5.7,5.5,6.2,5.8,5.7,5.7,5.6,5.9,5.6,5.5,5.5,5.7,5.9,6.0,5.5,6.3,6.5,5.5,7.1,5.8,6.0,6.4,5.9,5.5,5.5,5.9,6.4,5.9,5.5,5.5,5.5,5.6,5.5,5.5,5.5,6.8,5.5,5.9,6.5,5.6,6.4,5.6,5.6,5.5,5.6,5.8,5.7,5.6,5.5,6.1,5.5,5.5,5.8,5.7,5.7,5.5,5.5,6.6,5.8,5.5,5.6,6.7,5.5,6.2,5.9,6.1,5.5,8.1,6.4,5.8,5.6,5.8,5.7,5.6,6.1,7.2,5.6,5.6,5.7,7.0,5.8,6.7,5.8,5.6,6.6,5.6,5.5,5.8,5.5,5.8,6.2,5.9,6.2,5.5,5.6,5.5,5.8,6.1,5.8,5.5,5.6,6.0,5.7,6.3,6.2,5.7,5.7,5.5,5.6,5.5,5.5,5.6,7.5,5.8,6.3,5.8,5.8,5.7,5.7,5.6,5.5,6.6,5.5,6.0,5.5,6.0,6.9,5.5,5.5,5.5,5.6,6.7,6.3,6.6,5.6,5.5,6.0,5.6,5.7,6.0,6.0,5.7,5.5,5.6,5.5,5.5,6.6,6.2,6.4,5.8,5.5,5.5,5.5,5.9,6.3,5.5,5.5,5.8,5.7,6.2,5.6,6.3,6.0,5.5,5.7,5.7,5.5,5.6,6.0,5.6,6.3,6.3,5.5,5.5,5.5,6.2,6.0,6.9,6.2,5.5,5.5,5.5,5.5,5.6,7.0,5.5,5.7,7.0,5.6,5.9,5.7,5.5,6.1,5.5,6.0,5.8,6.1,6.3,6.4,6.7,6.1,6.0,5.5,5.6,5.5,5.8,5.8,7.2,6.2,5.6,5.5,5.9,6.0,5.5,5.8,5.5,5.5,5.6,5.6,5.7,7.1,6.3,5.6,5.5,6.1,6.7,5.9,6.4,6.1,6.0,6.3,5.7,6.1,5.6,5.6,5.6,5.5,6.8,5.5,5.9,6.6,5.6,5.6,5.8,5.7,5.6,6.1,5.5,5.8,5.6,5.8,5.6,5.6,6.1,6.1,6.3,5.6,5.7,5.5,5.5,5.6,5.5,6.0,6.4,6.0,5.6,5.7,6.6,6.2,5.5,5.8,5.8,6.0,5.7,5.5,5.8,5.6,6.2,5.7,5.5,5.5,5.5,6.2,5.5,5.5,6.0,5.7,5.9,6.0,5.9,6.3,5.5,5.5,5.8,5.5,5.7,5.9,5.5,5.7,5.7,5.9,6.6,5.7,5.5,5.7,5.5,5.9,5.6,5.9,5.5,5.7,6.4,5.7,6.7,7.0,5.6,5.6,5.7,6.0,6.3,5.5,5.5,5.8,5.9,6.0,5.6,5.7,6.3,5.5,5.6,5.5,6.1,6.2,5.7,5.5,5.5,5.9,7.7,5.7,5.8,5.7,5.9,5.8,6.6,5.8,5.5,5.7,5.5,5.5,5.5,6.0,6.0,6.0,5.6,6.2,5.6,5.6,5.6,5.6,5.6,6.1,6.8,5.6,5.6,5.7,5.5,6.0,5.5,5.6,5.6,5.9,6.0,5.8,6.0,5.5,5.5,5.7,7.0,5.8,6.4,6.1,6.3,5.8,6.1,5.5,5.5,5.8,5.5,5.9,5.7,6.6,6.4,5.9,5.5,5.5,5.7,5.7,5.6,5.7,6.3,5.8,5.8,5.7,5.9,5.9,5.8,6.0,7.3,5.9,6.0,5.5,5.6,6.2,6.0,5.5,5.8,5.6,5.5,5.5,5.7,6.4,5.9,6.2,5.5,5.8,5.5,5.9,5.6,5.6,5.7,5.5,5.9,5.6,5.9,6.6,5.6,5.5,7.1,5.8,6.0,5.9,5.7,6.1,5.8,5.8,6.9,5.6,5.5,5.5,5.5,5.8,5.9,6.9,5.5,5.9,5.9,5.8,5.6,5.6,5.5,5.6,5.5,5.6,5.8,6.6,5.8,5.6,5.8,5.8,6.3,6.2,6.2,5.5,6.8,6.0,7.4,5.6,5.9,6.4,5.5,5.5,7.1,5.6,6.2,6.0,5.9,6.8,5.8,5.7,5.8,5.5,5.5,6.5,5.6,5.7,5.7,6.0,5.9,5.8,5.6,5.6,5.8,6.1,5.5,6.2,5.6,6.2,5.9,5.7,6.1,5.7,5.7,7.1,6.0,5.6,5.7,6.2,5.5,5.5,5.5,7.1,6.4,5.5,6.6,5.6,6.1,5.8,5.8,5.9,5.5,5.7,6.1,5.7,5.6,5.6,5.8,5.6,5.6,5.7,5.8,6.3,5.7,5.5,5.5,5.8,5.6,5.5,5.8,7.0,5.8,5.9,6.4,5.7,5.6,5.5,6.3,5.7,5.5,5.6,5.6,5.6,6.0,5.6,5.7,5.5,5.7,6.0,5.8,5.8,5.5,6.1,6.1,5.7,5.6,6.3,5.6,6.7,5.7,5.7,5.6,5.6,5.5,6.0,6.5,5.5,5.5,5.6,5.7,5.6,6.2,5.7,5.6,5.5,5.5,6.1,6.3,5.5,5.5,6.5,5.9,5.94,5.5,5.7,5.9,5.9,5.6,5.6,5.5,5.5,5.6,5.6,5.5,6.2,5.5,5.6,5.5,5.8,5.6,6.4,5.9,7.6,5.7,6.9,5.7,5.7,5.8,6.2,6.4,6.6,5.7,5.9,5.5,6.2,5.8,5.7,5.6,6.3,6.0,6.0,5.5,5.5,5.5,5.8,6.0,5.9,5.6,5.9,5.5,5.5,6.4,6.3,5.5,5.6,5.6,6.0,5.9,5.8,5.9,5.5,7.7,6.3,6.1,6.3,6.1,6.2,6.4,5.6,6.4,5.8,6.5,5.7,6.1,6.0,7.5,5.8,5.7,5.7,5.6,5.7,5.6,5.5,5.7,5.9,5.6,6.1,5.7,5.5,6.4,5.5,7.1,5.77,5.6,6.3,5.8,5.6,5.9,5.6,6.3,6.0,5.6,5.9,5.5,5.8,6.2,5.6,5.5,5.7,5.6,6.3,5.7,5.6,6.5,5.5,5.6,6.1,5.7,6.2,7.2,5.5,5.9,5.7,7.0,6.1,6.9,6.3,5.7,6.0,5.9,7.0,5.9,5.9,6.2,5.5,5.6,5.7,6.0,5.9,7.5,5.7,5.6,5.5,5.9,5.9,5.5,5.9,5.7,5.6,6.4,5.7,6.6,5.8,5.8,6.3,5.6,5.5,5.5,5.7,5.6,5.7,5.7,5.5,5.7,7.0,5.6,6.4,6.4,6.1,6.4,5.6,6.5,5.7,5.7,7.3,5.8,5.7,5.9,5.8,5.7,6.3,5.7,6.0,5.6,6.0,5.5,5.7,6.2,6.0,5.9,5.7,5.5,6.5,5.7,6.0,5.6,5.7,6.3,6.1,5.5,5.8,6.2,5.7,5.9,5.9,6.9,5.9,5.7,5.7,6.2,5.6,5.6,6.0,5.5,5.8,5.8,5.6,6.1,5.5,5.5,5.6,5.8,6.1,6.2,5.5,6.4,5.6,6.4,7.2,5.5,6.5,5.7,6.2,5.5,5.5,5.9,5.8,6.0,5.9,5.7,5.8,5.6,5.8,5.5,6.0,5.8,5.5,5.8,6.1,5.7,5.8,5.5,5.8,5.5,5.6,5.5,5.8,5.5,6.3,5.5,6.8,6.0,5.5,5.6,5.7,5.5,5.5,5.5,6.6,5.5,5.6,5.9,5.9,6.0,5.7,5.9,5.7,5.9,5.6,5.7,5.7,5.7,5.5,5.6,5.5,7.1,5.6,5.5,6.2,6.1,5.7,6.0,6.0,6.0,5.8,5.6,5.5,6.4,6.6,6.4,5.9,6.1,5.5,5.5,5.5,5.5,6.3,5.7,5.6,5.6,5.9,5.5,5.7,5.6,5.5,5.5,5.5,5.9,5.7,5.5,5.6,5.6,7.6,5.8,5.6,5.7,5.6,5.5,6.2,5.5,5.5,5.7,6.3,5.6,5.8,5.7,5.9,5.6,5.6,5.5,5.5,5.8,5.7,6.0,6.0,5.5,5.5,7.0,6.1,5.6,5.6,5.6,5.5,5.7,5.5,5.9,5.6,5.5,6.0,7.6,5.6,6.5,5.5,5.7,6.3,5.7,5.6,5.6,6.1,5.7,5.5,5.6,7.2,6.3,5.6,6.3,5.5,5.9,5.5,5.6,6.0,5.9,5.8,5.7,6.0,5.6,5.9,6.2,5.5,6.2,7.9,6.7,6.0,5.5,5.8,5.8,5.5,6.0,6.2,5.6,6.4,5.9,5.5,6.3,6.7,5.5,6.3,5.5,5.5,6.0,6.1,5.5,5.8,6.3,5.5,5.9,5.5,6.4,5.5,6.6,5.7,6.4,5.9,5.5,6.3,6.0,6.1,6.4,5.6,6.5,5.7,7.9,5.7,5.6,5.8,6.5,5.9,5.5,5.8,5.5,6.0,5.8,5.5,5.6,5.9,5.7,6.1,5.7,5.6,5.5,5.9,5.9,5.9,5.9,5.8,5.8,6.6,5.5,5.6,5.6,6.1,5.6,5.7,5.9,5.6,6.4,6.6,5.8,6.1,6.3,5.7,6.0,6.4,5.5,5.7,5.5,5.9,5.5,5.7,5.6,5.7,5.9,5.5,5.6,5.5,5.8,5.7,5.7,5.6,6.5,5.5,6.2,6.2,5.8,5.9,5.6,6.6,5.6,5.6,5.8,5.6,6.8,5.5,5.5,7.4,5.7,6.5,5.7,6.3,6.5,6.4,6.0,5.6,5.5,6.0,6.6,5.8,5.8,5.6,5.7,5.7,5.5,5.7,5.7,5.5,6.1,5.7,5.9,5.5,5.5,5.5,5.8,5.5,5.6,5.6,6.8,6.1,6.0,6.3,5.7,6.0,5.5,5.7,6.0,5.8,5.5,5.8,5.5,5.7,5.6,5.9,5.5,5.8,5.5,6.1,5.5,5.5,6.3,6.1,6.0,6.2,5.5,5.5,5.6,5.9,5.5,5.6,5.5,6.2,5.5,5.7,5.5,5.9,6.4,5.9,6.4,5.6,5.8,6.5,5.8,5.7,6.3,5.8,6.2,7.0,5.8,6.1,6.1,6.7,5.9,5.7,5.9,5.6,5.8,5.6,5.6,5.5,5.5,5.6,5.8,5.5,5.5,6.3,6.0,5.6,5.9,5.9,5.6,5.5,5.7,5.7,6.0,6.8,6.1,5.5,5.5,5.5,6.1,5.8,5.6,5.7,5.6,7.0,5.8,5.5,5.6,5.8,6.0,5.5,5.6,5.5,5.7,6.2,5.9,6.1,5.8,5.8,5.6,5.9,6.8,6.0,6.2,5.5,6.5,5.7,5.5,5.7,5.9,5.7,5.5,5.7,5.8,5.5,6.0,5.6,5.6,5.5,5.9,5.6,5.7,8.0,5.8,5.7,5.8,6.0,5.6,5.8,5.5,7.8,6.5,5.5,5.7,5.6,5.5,5.5,6.2,5.5,5.5,5.6,5.7,5.5,5.8,5.7,7.8,5.7,5.5,6.6,5.8,5.7,6.8,5.7,5.7,5.5,6.1,5.7,6.0,5.5,6.1,5.9,5.7,6.2,5.8,6.1,5.5,5.7,5.7,5.5,5.6,6.3,5.8,5.6,6.8,6.5,5.5,6.3,5.8,5.8,5.7,6.1,5.7,5.7,5.9,7.0,6.5,5.8,5.5,5.5,5.8,5.5,5.5,5.7,5.7,5.5,6.1,5.7,5.5,6.0,5.6,5.5,5.6,6.6,5.7,5.7,6.2,6.5,5.5,5.7,6.6,6.4,6.0,5.5,5.7,5.5,5.6,5.9,6.2,6.0,5.6,5.7,5.7,5.6,5.9,5.8,6.2,5.5,7.5,6.8,6.4,5.5,6.0,5.9,5.7,5.5,5.5,5.6,5.7,5.9,5.6,5.6,7.1,7.0,6.0,5.9,5.7,5.5,5.5,5.6,7.7,5.9,5.7,5.6,6.4,5.8,5.7,5.7,6.0,6.9,5.6,5.7,5.5,5.6,6.0,6.3,6.0,5.5,5.6,5.9,5.9,5.6,5.6,5.6,5.7,5.5,5.6,7.7,5.5,5.6,5.5,5.8,6.2,5.6,6.0,5.7,5.5,5.8,5.7,5.8,5.8,5.5,6.6,7.4,5.6,5.6,6.1,6.2,5.6,6.1,5.5,5.5,5.5,6.2,6.0,5.8,5.7,5.7,5.5,5.6,5.5,5.6,5.5,7.1,5.8,6.2,5.9,5.6,6.2,6.1,5.6,5.8,5.6,6.7,6.3,5.6,6.1,6.8,5.8,5.9,5.5,5.5,5.9,6.4,5.7,6.0,5.8,5.6,5.8,5.7,6.0,6.0,6.0,5.9,5.8,5.5,5.7,6.5,5.8,5.9,5.5,6.0,6.8,5.8,5.5,5.5,5.5,5.5,5.7,5.5,5.6,6.4,5.5,5.8,6.2,5.5,6.7,5.6,6.2,5.6,5.6,6.0,5.6,5.9,5.9,6.0,6.2,6.7,5.6,5.5,5.6,5.8,5.5,5.8,5.5,5.5,5.7,5.5,6.0,5.7,6.9,6.2,5.5,5.8,5.7,5.6,5.7,6.2,5.5,5.7,5.5,6.3,5.5,5.7,5.6,5.5,5.9,5.6,6.0,6.3,5.5,5.6,5.5,5.5,6.7,6.3,6.4,6.0,5.5,6.4,5.7,5.9,7.2,5.7,6.4,5.5,6.0,5.6,5.6,5.5,5.6,5.9,5.7,5.5,6.5,5.9,6.0,6.0,6.0,5.8,5.5,6.0,5.7,5.7,5.7,5.7,5.5,8.4,5.8,5.8,6.1,5.7,5.5,5.9,5.6,5.5,5.6,6.0,5.7,5.5,5.5,6.7,6.1,5.7,5.5,5.5,6.1,5.9,6.1,5.6,5.9,5.6,6.5,6.5,5.6,5.5,6.2,5.9,5.7,5.6,6.6,5.5,5.6,7.6,6.2,5.7,5.7,5.5,5.9,5.9,6.0,5.6,5.8,6.4,5.5,5.6,6.5,6.8,5.6,5.5,5.7,5.8,5.7,5.7,5.5,6.3,5.9,5.9,5.7,6.7,5.6,5.6,5.6,5.8,5.6,5.6,5.5,5.5,5.7,5.5,5.5,5.6,5.7,6.4,5.6,5.5,5.9,7.1,6.2,5.5,5.8,6.1,5.7,6.1,5.9,5.6,5.6,5.8,6.1,6.3,5.9,5.5,5.8,5.9,5.9,5.6,6.5,5.5,6.5,5.6,5.7,5.5,5.5,6.0,5.5,6.0,5.5,5.8,5.5,6.0,5.5,5.5,5.6,5.6,5.9,5.5,5.9,6.4,5.5,5.6,6.2,5.6,6.2,5.9,5.6,5.7,5.9,6.2,5.9,6.5,6.4,5.5,5.9,5.5,5.5,6.1,7.0,6.0,5.8,5.7,5.5,5.6,6.0,5.6,7.5,5.5,6.7,5.7,5.5,5.7,5.6,5.5,5.8,6.1,5.6,5.6,5.7,5.5,5.6,7.0,5.7,6.3,5.6,6.1,5.5,5.5,5.7,6.1,6.0,5.5,7.8,5.6,6.3,5.7,5.9,5.6,6.2,5.8,6.3,6.2,6.1,5.6,6.0,5.5,6.4,5.6,5.7,5.6,6.0,6.5,6.4,5.8,5.6,5.7,5.7,5.6,5.8,5.6,5.5,6.2,5.7,6.1,6.1,7.1,5.7,5.5,5.5,6.8,5.6,5.5,5.6,6.0,5.9,6.8,5.9,6.2,5.9,6.0,5.7,5.6,5.7,6.0,6.3,5.6,5.5,6.2,7.2,5.7,5.6,6.2,6.6,5.5,5.5,5.5,5.6,5.6,5.7,5.9,5.7,6.7,5.5,5.8,5.6,6.4,5.8,5.8,6.0,6.1,6.2,5.5,6.4,5.7,5.5,5.5,5.8,5.5,6.2,5.5,5.7,5.8,5.7,6.1,6.2,5.9,6.0,5.5,5.8,5.9,5.5,6.5,5.5,6.0,6.6,5.5,5.7,5.5,5.9,5.5,5.7,5.6,5.8,5.5,5.8,6.0,5.5,6.1,5.7,5.5,5.5,5.5,5.7,5.7,5.6,5.6,6.3,5.5,5.5,5.9,5.9,6.3,7.4,5.5,5.5,7.5,5.6,5.6,6.0,6.0,5.6,5.6,5.8,5.7,5.9,5.5,5.5,5.6,5.7,5.9,6.0,5.6,5.6,5.5,5.5,6.1,5.9,5.6,5.5,5.5,5.7,5.5,6.1,6.4,5.6,6.5,5.9,5.5,7.1,5.6,6.4,5.9,5.7,5.7,6.2,5.8,6.2,5.9,6.2,5.9,5.5,5.5,5.6,6.8,5.8,6.7,5.9,6.0,5.7,5.7,5.9,5.6,5.6,5.7,6.2,5.5,5.8,5.7,7.1,5.6,5.5,5.6,5.8,5.7,5.9,5.5,6.2,5.9,5.6,5.7,5.9,5.5,5.8,5.5,6.2,5.9,6.2,5.7,5.5,5.5,5.7,5.5,5.9,5.7,6.0,5.5,5.7,6.4,5.9,6.0,6.1,5.6,5.5,5.9,5.6,5.7,6.3,5.6,5.6,5.6,5.5,5.7,6.1,5.5,5.6,5.6,6.6,5.6,5.5,5.5,5.9,6.4,5.9,5.8,5.8,6.0,6.7,6.6,5.5,5.5,6.0,5.7,5.7,6.5,5.6,5.5,6.5,6.0,7.3,6.2,5.6,6.5,5.8,5.5,6.2,5.7,5.6,5.9,5.8,5.8,5.8,5.5,5.6,5.6,6.1,5.7,5.9,5.7,5.5,5.5,5.6,5.6,6.2,5.5,6.5,6.3,5.8,5.7,5.6,5.9,6.0,5.6,5.8,6.0,5.9,5.5,6.1,5.7,5.5,6.0,5.8,5.8,5.6,6.3,6.5,6.2,5.5,7.7,5.9,7.7,6.1,5.5,5.6,6.3,5.5,5.5,6.1,5.8,5.5,5.8,5.6,5.6,5.8,5.6,5.5,6.0,5.5,5.7,5.8,5.6,5.5,6.0,6.0,5.5,5.7,6.0,7.6,5.6,5.5,5.5,6.5,5.8,6.4,5.5,6.3,5.8,5.6,6.0,5.5,5.7,5.5,6.0,6.4,5.5,5.5,5.7,5.6,6.3,6.1,6.3,6.3,5.6,5.7,5.5,5.6,5.7,5.7,5.5,5.6,5.8,5.9,6.5,6.0,6.3,5.6,6.3,5.7,5.7,6.0,5.5,7.6,5.5,5.5,6.7,6.0,5.9,6.0,5.5,5.5,6.9,6.1,6.1,6.1,6.2,6.0,6.2,6.3,6.1,6.0,6.3,5.5,6.2,5.5,6.7,5.8,5.6,6.2,5.5,5.7,5.5,5.5,5.6,6.1,5.9,5.5,5.8,7.4,5.8,6.3,5.6,6.4,5.6,7.9,5.6,5.5,5.6,6.6,6.0,5.5,5.7,5.6,5.7,6.2,5.8,5.6,5.6,5.9,6.6,5.6,5.5,5.5,5.8,7.3,6.3,5.8,6.1,5.6,5.5,5.9,5.5,5.5,5.9,5.9,5.5,5.7,5.9,5.6,5.6,5.6,6.0,5.5,6.1,5.5,6.3,5.8,6.7,5.5,5.5,5.6,5.6,6.2,5.7,5.6,6.1,5.6,6.3,5.7,6.0,5.7,5.5,5.5,5.7,5.5,5.9,5.6,5.5,6.3,5.6,5.5,6.5,5.6,6.0,5.7,5.7,5.7,5.7,5.5,6.0,5.5,5.5,5.9,6.7,5.7,5.5,6.3,5.7,5.5,5.8,5.5,5.5,7.3,5.6,5.8,6.5,7.6,5.7,5.9,5.5,5.5,5.5,6.1,6.4,5.6,5.8,5.6,5.6,5.6,5.6,5.5,5.7,6.3,5.6,5.5,5.5,6.2,5.6,5.7,5.6,5.7,5.8,6.3,5.6,6.6,5.9,5.6,5.6,5.9,5.5,6.3,5.5,6.0,6.2,5.5,5.6,5.8,5.6,5.8,5.5,6.0,6.4,5.9,6.8,5.7,5.7,6.4,5.9,6.3,6.4,5.9,6.1,5.8,7.1,5.5,6.2,6.2,5.6,5.5,5.6,5.5,5.5,5.8,6.5,5.5,5.9,5.7,6.2,5.9,5.5,5.6,6.2,6.2,6.3,5.6,5.7,5.5,5.5,5.9,5.8,5.5,5.7,5.8,5.8,5.5,5.6,6.2,5.6,5.5,6.4,5.5,6.5,5.6,5.6,5.6,5.6,6.1,5.6,6.3,6.0,5.8,5.5,6.0,5.5,5.5,6.4,5.6,6.2,5.5,6.7,6.0,5.8,6.4,6.4,6.2,5.7,5.9,6.3,6.1,5.5,6.3,6.7,6.0,5.8,5.5,5.5,6.0,6.1,5.5,6.8,5.7,5.5,5.5,5.6,5.9,5.6,5.9,7.0,5.5,7.0,6.9,5.9,5.5,5.7,5.8,6.2,5.6,5.7,5.6,5.5,5.6,6.0,5.8,5.8,5.6,6.6,5.8,6.0,6.3,5.5,5.7,5.8,5.8,6.5,5.5,6.9,5.5,5.6,7.1,6.8,5.9,6.9,5.6,5.7,6.0,6.3,5.7,5.5,6.0,6.0,5.6,5.9,6.0,5.7,6.1,5.5,5.7,5.8,5.8,5.6,5.6,5.5,5.8,5.7,5.9,6.0,5.6,5.5,5.7,6.5,7.6,5.6,6.0,5.9,6.4,6.0,5.6,5.5,6.0,5.8,5.5,5.8,6.4,5.5,6.1,5.5,5.7,5.5,5.7,5.5,6.6,6.8,6.0,5.5,5.7,5.5,5.6,5.5,5.5,5.8,5.7,5.5,5.6,7.6,5.6,5.5,6.0,5.5,5.7,6.0,6.0,6.3,5.5,5.9,5.5,5.5,5.5,5.9,7.2,5.7,5.9,5.5,5.5,5.5,6.0,5.8,5.6,5.7,5.5,5.5,5.7,6.2,6.0,5.5,5.5,5.5,5.5,5.5,6.0,5.5,5.5,6.2,5.8,5.7,6.4,5.5,5.7,5.9,5.5,6.1,5.6,5.7,5.9,6.4,5.9,5.9,5.8,5.5,5.5,6.0,6.0,5.5,5.5,5.9,5.6,5.7,5.6,5.8,5.7,5.5,5.5,6.6,6.0,6.4,5.6,5.8,5.7,8.3,5.5,5.6,5.7,5.5,7.4,5.6,5.6,5.9,6.0,7.3,6.4,5.7,5.6,5.6,6.5,5.5,5.6,5.6,6.0,6.4,6.0,5.6,5.6,6.7,5.9,5.8,5.5,6.2,6.7,5.9,5.8,5.6,6.2,5.8,5.7,5.6,5.7,6.0,6.0,5.6,6.4,5.8,6.4,5.6,5.8,6.3,5.6,5.8,5.6,5.9,5.8,5.8,6.0,5.6,5.9,5.5,5.9,5.7,7.0,5.9,6.4,5.5,5.6,6.0,5.8,6.6,5.5,5.6,5.8,6.6,6.1,6.1,6.0,6.2,5.6,5.6,6.4,6.0,6.1,5.7,5.6,5.8,5.5,7.8,5.5,5.5,5.8,6.5,5.6,5.9,5.5,5.7,5.8,5.6,6.6,5.5,5.6,5.7,5.6,5.5,5.5,5.5,6.0,5.6,5.9,5.5,6.7,5.6,6.2,6.8,5.8,5.5,5.5,5.7,5.7,5.7,5.9,5.5,5.6,6.6,5.6,6.48,6.5,5.8,5.6,5.7,5.5,6.5,6.0,6.5,6.0,6.6,5.5,5.7,6.8,6.1,7.3,6.7,6.3,5.5,5.9,5.5,6.1,5.7,5.9,5.9,5.5,5.8,6.1,5.7,6.0,6.1,5.8,6.4,5.5,7.1,6.1,5.6,5.6,5.5,5.6,5.8,6.3,5.5,5.7,6.2,5.9,6.0,5.5,5.8,5.5,5.6,6.2,5.6,6.2,5.6,5.6,5.5,5.5,5.5,5.9,5.5,5.9,6.7,5.6,5.6,5.8,5.5,5.7,6.7,5.5,6.1,5.5,5.7,5.5,5.5,5.8,5.9,5.8,6.1,7.0,5.9,5.6,7.3,5.6,6.7,5.5,5.5,5.6,5.7,5.7,5.8,5.5,5.5,5.5,5.9,6.0,6.6,6.0,5.7,6.3,6.4,5.5,5.8,5.9,5.6,5.5,6.3,6.0,5.7,5.6,6.2,5.5,5.6,5.6,5.5,5.5,5.6,6.0,5.6,5.8,5.6,6.0,5.6,5.9,5.8,6.2,5.7,6.0,5.8,5.6,6.1,5.5,6.1,6.1,5.5,5.5,5.5,6.2,5.7,5.6,5.8,5.5,5.7,5.5,5.6,5.6,5.8,5.9,6.0,5.6,5.5,5.6,5.5,5.5,5.8,6.0,5.8,6.2,6.6,5.5,6.4,5.5,5.5,6.5,5.5,5.8,5.7,6.2,6.1,5.5,6.0,6.2,5.7,6.0,6.3,5.7,5.6,5.7,6.0,5.5,6.0,5.6,5.6,5.8,5.7,5.6,6.0,5.7,6.0,6.7,6.1,5.8,5.6,5.8,5.8,6.0,5.6,5.7,6.2,5.6,6.6,5.7,5.7,5.5,5.9,5.5,5.5,5.6,5.5,5.7,6.3,5.5,5.6,5.6,6.1,5.5,6.4,5.8,5.5,5.5,5.6,5.8,5.6,5.8,5.9,5.8,6.2,5.6,5.5,5.8,5.7,5.5,6.3,5.8,6.5,5.5,5.9,5.7,6.2,5.6,5.8,5.6,5.6,5.9,5.9,5.5,6.4,5.9,6.9,5.8,5.6,5.7,5.8,5.9,6.1,5.7,5.8,5.9,5.6,6.1,6.8,5.6,6.3,5.5,6.3,6.2,5.8,5.6,5.6,5.7,5.6,5.7,5.8,6.4,5.7,6.0,5.7,6.2,6.1,5.5,5.5,7.1,5.9,6.2,5.6,5.7,5.6,6.4,5.8,5.9,6.1,5.5,7.3,5.6,6.5,5.5,5.7,5.9,5.6,5.7,5.5,5.6,5.6,6.0,5.8,5.6,5.6,5.6,5.5,5.6,6.0,5.9,5.6,6.0,5.5,5.7,5.7,5.8,5.6,5.7,5.9,5.5,5.5,5.5,5.5,5.9,6.5,5.6,5.6,5.7,5.5,5.7,5.7,5.7,5.8,5.6,6.2,5.6,5.7,5.9,7.2,7.4,6.5,5.7,6.9,5.8,5.7,5.5,5.6,5.6,6.6,6.4,5.7,5.6,5.9,6.1,5.6,6.0,5.6,6.1,5.6,6.1,5.6,5.5,6.0,5.5,5.7,5.7,5.6,6.2,5.5,5.5,5.9,5.9,5.9,5.5,6.4,5.97,5.8,5.5,5.6,5.6,5.9,5.5,6.0,5.5,5.8,6.2,5.5,5.6,6.8,6.5,5.8,5.9,7.0,5.9,5.5,5.8,5.9,5.7,5.5,5.5,5.8,6.7,5.8,6.1,5.5,5.6,6.6,5.7,6.1,5.8,6.3,5.6,5.7,5.7,5.5,5.5,5.7,5.5,5.6,5.6,5.5,6.0,6.4,5.5,6.0,5.9,5.5,5.7,5.7,6.7,5.6,6.0,5.9,6.0,5.7,6.2,5.8,5.5,5.6,6.3,5.5,6.9,5.6,5.7,6.1,5.9,6.7,5.5,7.5,5.5,5.5,6.4,6.1,5.8,5.6,5.6,5.9,5.8,5.6,5.5,7.2,6.1,5.8,6.6,5.7,5.5,6.4,6.3,6.0,6.3,7.1,5.5,5.9,7.1,5.9,5.5,5.7,5.8,6.6,6.2,7.0,5.9,5.6,5.6,5.7,5.8,5.7,6.8,6.1,5.8,5.8,5.5,5.5,5.5,5.5,6.0,5.8,6.8,5.8,6.2,5.6,5.8,5.8,5.5,5.7,5.8,5.5,5.8,5.6,6.1,8.1,5.6,5.8,9.1,5.5,6.1,6.0,6.1,5.8,5.5,5.5,5.7,6.0,5.6,5.7,5.7,5.7,5.8,5.6,5.7,5.8,5.7,5.5,5.9,5.6,5.5,5.8,5.6,5.7,5.5,5.8,7.2,5.7,5.5,5.6,5.7,6.0,5.5,6.6,5.5,6.3,5.5,5.5,6.2,5.9,5.7,6.0,5.5,5.5,5.6,5.7,6.1,5.5,5.5,5.8,5.5,5.8,5.6,5.6,5.5,5.6,6.1,5.7,5.7,5.6,5.5,5.8,5.7,5.5,5.8,5.8,5.9,6.1,6.2,5.9,5.7,5.7,5.7,5.6,5.7,6.1,5.6,6.0,5.9,5.7,5.7,6.7,5.5,6.1,5.5,5.9,6.4,6.1,6.1,5.7,5.5,5.9,5.7,5.5,5.5,5.7,5.5,5.6,5.5,6.0,6.1,5.5,5.5,6.8,5.5,6.1,5.6,5.5,6.0,6.2,6.6,6.1,5.7,6.3,5.8,6.6,5.7,6.0,5.9,5.8,5.5,5.7,5.5,6.4,5.5,5.5,6.3,5.8,6.3,5.6,6.1,5.8,5.9,5.6,5.6,6.2,5.5,5.7,5.5,5.5,5.5,5.5,5.9,5.6,5.5,5.5,5.7,5.6,6.1,6.2,5.5,5.5,5.6,5.6,5.5,5.7,5.6,5.5,5.5,5.7,5.6,5.5,5.5,5.5,6.3,5.6,5.5,6.6,6.0,7.1,5.9,5.6,6.1,6.7,6.0,6.3,5.5,5.7,5.6,6.3,5.5,5.8,5.8,6.1,6.5,5.5,5.9,6.6,5.6,5.7,5.5,5.5,5.6,6.5,5.5,6.4,5.8,5.6,5.5,5.6,6.0,5.6,5.7,5.6,5.6,5.7,5.7,6.8,5.7,5.6,5.9,5.6,7.1,5.9,5.7,5.7,5.9,6.1,6.3,5.6,5.6,5.5,5.5,5.6,6.0,5.5,5.8,5.6,5.8,5.5,5.5,5.6,6.1,5.7,6.1,6.3,6.6,5.8,6.9,6.4,5.8,5.7,5.8,6.1,8.6,5.8,5.9,5.5,6.1,5.8,5.7,5.6,5.5,5.9,5.5,5.7,5.7,6.3,5.6,6.1,5.9,6.0,5.8,5.6,6.1,6.0,5.6,6.3,5.6,5.6,5.6,5.9,6.3,5.7,6.1,6.1,5.8,6.0,5.7,6.7,5.7,6.5,5.5,5.8,5.6,5.5,6.4,5.9,6.1,5.5,5.5,6.6,6.0,6.7,5.7,5.6,5.9,6.4,5.8,5.5,5.9,5.5,5.9,5.5,5.6,5.6,5.6,5.6,5.6,6.2,5.9,5.9,5.5,6.5,5.9,5.9,5.5,6.3,6.5,5.7,6.7,5.7,5.9,6.6,6.0,6.2,5.7,6.1,5.5,6.9,6.0,6.3,5.6,5.7,5.5,5.9,5.7,5.5,5.7,5.8,5.6,6.1,5.8,5.5,6.1,5.6,5.6,5.7,5.8,6.1,5.6,5.8,5.6,5.5,5.6,5.6,6.0,5.9,5.8,7.8,5.7,5.6,6.8,5.6,7.2,6.2,6.4,6.6,5.7,5.7,5.8,5.5,5.8,5.5,5.7,6.2,5.8,5.6,5.9,5.6,5.5,6.6,5.8,6.3,6.7,5.6,5.9,5.6,5.6,5.9,5.8,5.9,6.1,5.7,5.6,5.6,6.0,5.7,5.5,5.9,5.7,5.5,5.8,5.5,5.5,5.9,6.0,5.5,5.6,7.2,5.6,5.5,5.6,5.6,5.8,5.9,5.6,5.5,6.0,5.8,5.7,5.6,5.9,6.3,5.8,5.8,5.6,5.8,5.5,6.0,5.5,6.2,6.0,5.8,5.5,5.9,6.1,5.5,6.1,6.2,5.6,6.0,5.8,5.6,7.2,5.5,5.5,5.8,5.9,6.1,5.7,5.7,6.2,6.1,5.6,6.1,5.5,5.6,5.5,5.7,5.7,5.6,5.6,6.0,6.2,5.8,5.6,5.5,5.7,5.5,5.7,7.6,5.8,5.6,5.6,5.8,5.7,5.5,5.7,5.6,5.7,6.1,5.8,5.9,5.5,6.1,5.6,5.6,5.6,7.5,6.6,6.2,5.7,5.8,5.6,5.8,5.5,5.7,5.9,5.7,7.6,5.9,5.7,5.8,5.6,5.6,5.7,5.6,5.5,6.4,5.6,5.7,5.7,5.7,5.5,5.8,5.9,5.7,5.5,5.7,6.1,6.4,5.7,5.5,5.7,5.8,5.7,5.7,5.7,5.6,6.3,5.6,5.9,5.7,5.5,5.5,5.9,5.5,5.9,6.5,5.5,5.7,5.7,5.7,5.6,5.5,6.4,5.5,5.5,5.5,5.9,5.5,5.9,5.9,5.9,7.0,5.7,5.7,6.8,5.7,6.5,6.2,5.5,6.1,5.6,5.5,5.7,6.2,5.5,5.6,5.8,5.5,5.9,5.5,5.6,5.7,5.5,6.0,5.5,6.4,5.5,6.5,5.7,5.9,5.7,5.5,6.8,6.4,6.1,5.5,5.6,5.6,5.5,5.7,6.6,5.6,5.6,6.5,6.7,5.6,5.7,6.0,5.7,6.1,5.5,6.3,6.0,5.5,6.3,6.1,5.7,6.1,5.6,5.5,5.7,7.4,5.6,7.2,5.8,6.6,5.5,5.7,6.1,5.5,6.7,5.5,5.6,6.1,5.7,5.8,5.7,5.7,5.6,6.4,5.6,6.2,5.5,5.5,5.6,5.6,7.6,5.7,5.9,5.6,6.7,5.7,5.6,6.1,5.9,5.5,5.6,5.7,5.6,5.9,5.5,5.5,5.5,6.3,5.8,5.6,5.8,5.9,6.2,5.5,7.0,5.7,6.2,5.8,5.5,6.1,6.4,6.0,6.0,5.8,5.5,5.6,6.0,5.6,5.7,6.1,5.6,5.6,6.2,6.2,5.8,5.5,5.9,6.0,6.1,5.6,5.8,5.5,6.7,5.6,5.6,5.6,5.6,5.6,5.6,5.5,5.9,5.5,5.5,5.8,5.7,6.1,6.0,5.9,5.5,5.5,5.5,5.6,5.6,5.9,6.1,6.5,5.5,6.2,5.7,6.1,5.5,5.5,5.6,5.6,5.5,6.0,5.6,5.5,5.8,5.5,6.5,5.5,5.8,5.7,5.5,5.5,6.0,5.7,5.5,5.6,5.9,6.0,5.7,5.7,6.1,5.6,6.2,5.7,5.6,7.6,6.1,6.1,6.1,5.5,6.3,6.1,5.8,6.6,5.7,6.1,5.5,6.7,6.0,5.7,5.8,5.9,6.5,5.8,5.7,5.7,5.9,5.5,5.7,8.0,5.9,6.0,5.5,5.9,5.6,6.0,5.6,6.1,5.5,5.9,5.8,6.4,5.5,5.6,5.5,5.7,7.4,6.8,5.7,6.0,5.8,5.7,6.3,6.0,6.6,6.2,6.1,5.6,5.5,5.5,5.7,5.5,5.6,6.3,6.5,5.7,5.7,5.7,5.5,5.6,5.7,5.9,6.0,6.0,5.7,6.1,5.5,5.9,5.9,6.3,6.5,6.0,5.6,5.8,5.6,5.6,5.5,5.5,6.0,5.6,6.0,6.0,6.3,5.5,6.2,6.3,5.7,5.5,5.8,6.3,5.8,5.6,5.5,5.5,5.8,5.5,5.6,5.8,5.6,5.5,5.8,5.7,6.0,5.5,6.6,5.5,5.7,5.7,5.5,5.7,5.8,6.2,5.7,7.7,5.6,5.5,5.7,6.0,5.9,5.5,5.9,5.7,5.5,6.1,5.9,5.7,5.5,5.6,5.7,5.6,5.5,5.7,5.5,6.1,6.4,5.9,6.0,5.8,5.5,6.3,5.9,5.6,5.5,5.8,5.9,5.6,5.5,5.7,5.9,5.5,5.6,5.6,5.9,6.8,6.1,6.2,5.5,5.6,5.9,5.7,5.7,6.1,5.9,5.9,5.7,5.6,5.6,6.0,7.0,5.9,5.5,5.6,6.5,6.6,5.7,5.7,5.6,5.8,5.7,5.8,5.5,5.5,6.8,5.7,5.9,5.7,5.5,5.9,5.8,5.7,6.3,5.9,5.5,6.0,5.5,5.8,5.9,6.3,6.2,5.8,5.7,5.9,6.0,6.0,5.7,5.7,5.7,5.9,6.9,5.6,6.1,5.5,5.5,6.0,6.6,6.0,5.5,6.5,6.3,5.7,5.7,5.7,5.8,6.3,5.9,5.7,6.0,6.0,5.8,5.7,5.7,6.4,5.9,6.7,6.1,5.8,5.5,6.7,5.9,6.4,5.7,6.7,5.8,5.8,5.6,5.9,6.1,5.7,5.8,6.4,6.1,5.8,6.0,5.6,5.5,5.5,5.5,5.6,6.0,5.8,6.6,5.6,5.9,6.2,5.9,6.8,5.5,6.2,6.1,5.7,5.5,5.5,8.3,5.6,5.6,5.5,6.0,6.0,6.2,5.5,6.4,6.7,5.5,5.7,5.9,5.7,5.5,6.0,5.5,5.5,5.9,5.7,5.5,5.6,5.5,5.7,6.0,5.5,6.1,5.6,6.2,5.5,5.9,5.9,5.7,5.5,5.5,6.1,5.6,5.6,5.6,5.5,5.9,5.5,5.7,5.5,5.7,6.2,5.6,5.5,6.0,6.2,5.6,6.3,6.3,5.8,5.6,5.7,6.0,5.5,5.8,5.8,5.7,6.4,5.8,5.5,5.5,5.7,6.3,5.5,5.6,5.8,5.5,5.8,5.8,5.8,5.6,5.5,5.5,6.2,5.5,5.7,5.6,5.8,5.8,7.1,6.9,5.5,6.0,5.7,5.6,6.0,6.6,5.5,5.6,5.6,5.8,6.1,6.0,6.3,5.7,6.0,8.1,5.5,5.8,6.0,5.5,5.9,5.6,5.6,6.0,5.6,6.2,5.9,5.8,5.7,6.2,7.5,5.6,5.5,5.5,5.6,6.2,5.5,5.5,5.7,5.9,5.8,5.5,5.7,5.5,5.9,5.6,5.6,6.0,5.5,5.6,5.6,5.6,5.8,6.9,6.6,6.5,5.5,5.5,5.5,5.6,6.2,6.2,5.6,5.8,5.5,5.5,5.5,5.5,5.5,5.9,6.0,6.1,5.6,5.5,5.9,5.6,5.7,6.0,5.7,5.6,5.7,5.5,5.7,5.6,5.8,5.5,6.7,6.0,5.5,5.7,5.7,6.3,5.5,5.5,5.9,5.7,5.5,5.7,6.2,6.0,5.9,5.7,5.6,6.4,6.3,5.9,5.5,6.1,6.2,6.0,5.7,5.6,5.6,5.5,5.7,5.8,5.8,5.6,5.5,5.8,5.6,6.0,5.5,5.6,5.5,6.2,6.0,5.5,6.2,5.7,5.5,5.9,5.8,5.8,5.7,7.1,6.7,6.9,5.7,5.5,5.5,5.8,5.6,5.8,5.5,5.7,6.2,5.6,5.7,5.7,8.1,6.1,6.6,5.5,5.5,6.9,6.0,5.8,5.6,5.7,5.7,6.1,5.6,5.9,6.1,6.2,5.6,5.6,5.6,5.5,5.6,6.2,5.5,5.5,5.6,6.2,5.5,6.1,5.5,5.6,6.2,5.6,6.0,6.4,5.6,5.5,6.2,6.5,5.9,5.7,5.7,6.3,5.5,5.9,5.9,5.9,6.1,6.1,5.9,5.8,5.5,5.5,6.0,6.0,5.5,6.1,5.5,5.8,6.4,5.6,5.6,5.5,6.1,5.7,6.3,6.0,5.5,5.7,5.5,6.1,6.1,6.2,5.7,6.4,5.9,5.8,6.1,5.5,6.2,5.6,5.7,5.8,5.5,5.6,5.6,5.5,6.2,6.1,5.5,6.5,6.1,5.6,6.1,5.5,5.7,5.6,5.5,5.9,5.5,5.8,5.5,5.6,6.3,5.5,5.7,5.5,6.0,5.5,5.7,5.7,5.6,5.6,5.5,5.9,5.5,5.6,6.1,5.7,6.1,5.5,5.5,5.5,5.5,6.4,5.5,6.1,5.8,5.7,5.8,6.2,5.8,5.5,5.5,5.6,6.7,5.5,5.9,5.5,5.8,5.6,5.5,5.6,5.9,5.7,5.8,5.7,6.3,5.8,5.5,5.5,5.6,5.6,6.5,6.0,6.7,5.8,5.5,5.7,5.6,5.8,5.6,5.9,6.3,6.1,5.7,5.6,6.1,5.7,6.0,6.1,6.1,5.9,6.6,5.7,6.8,6.1,5.9,6.1,5.7,5.6,5.6,6.1,6.4,5.7,5.8,5.8,5.9,5.5,5.7,5.5,5.8,6.1,6.9,5.7,5.7,6.1,5.5,5.9,5.5,5.6,5.6,5.9,6.2,5.5,7.2,6.2,6.7,5.8,5.6,5.5,5.5,5.7,5.6,5.6,5.9,6.1,6.0,6.0,6.1,7.5,5.6,5.7,6.0,6.1,5.5,5.5,6.5,8.0,5.6,5.8,5.8,5.8,5.6,6.4,6.5,6.0,5.5,5.5,5.8,6.4,5.6,5.9,6.0,5.7,5.5,5.8,5.5,5.6,5.6,5.7,6.4,5.7,6.5,5.6,5.7,6.1,5.7,5.6,5.5,5.5,5.6,6.1,7.2,6.3,6.2,6.2,5.9,6.8,5.5,8.4,5.5,5.6,5.9,5.8,7.9,5.7,6.5,7.0,5.5,6.3,5.5,6.0,5.5,6.0,5.7,6.4,5.8,5.9,5.6,5.5,5.5,5.6,6.0,6.7,5.7,5.5,5.5,5.7,5.6,6.2,5.9,6.8,5.6,6.1,5.6,6.1,5.5,5.7,6.3,6.5,5.5,5.5,5.5,5.8,5.9,7.5,5.7,6.0,5.5,5.7,5.6,6.9,7.4,6.6,5.5,5.9,5.9,6.3,5.6,6.2,5.7,6.5,6.1,5.8,5.7,6.0,5.9,5.6,5.7,5.5,6.1,6.8,6.1,6.6,5.5,5.7,5.5,6.0,5.5,5.6,5.8,6.8,5.6,5.5,5.6,6.1,5.5,5.5,5.5,5.6,5.6,7.2,6.0,5.5,5.6,5.7,5.8,5.6,6.1,5.6,5.7,5.5,5.5,6.6,5.7,5.9,5.5,5.5,5.7,7.7,5.7,5.5,6.3,6.8,5.6,5.8,6.8,5.5,5.5,5.9,6.0,5.7,6.3,6.0,5.8,5.9,6.0,5.9,6.1,5.7,5.8,6.8,5.8,5.9,5.5,5.6,5.5,5.6,5.6,5.9,6.5,6.0,6.5,5.9,5.7,5.8,5.9,6.6,6.3,7.4,5.9,5.9,5.7,5.6,5.8,5.9,5.9,5.6,5.5,5.8,5.6,5.6,7.8,5.7,5.9,5.8,6.0,6.2,6.2,5.5,6.0,6.4,5.9,6.7,7.2,5.6,5.5,5.9,5.6,5.5,6.6,5.7,5.6,5.7,6.3,6.2,6.1,6.1,5.8,6.4,5.5,5.6,5.6,5.6,5.6,5.9,5.7,5.6,6.3,5.8,6.0,5.6,5.7,5.7,6.6,6.4,5.7,6.2,5.9,5.6,5.6,5.8,6.4,6.1,6.3,5.7,5.9,6.5,5.9,5.5,5.6,5.5,6.1,5.8,6.0,6.1,6.2,5.5,5.5,5.9,5.9,5.6,6.2,5.5,5.8,5.5,6.0,5.9,5.6,5.5,6.3,5.9,5.8,5.6,5.7,6.9,6.0,6.6,5.5,6.5,6.2,6.9,6.5,5.7,6.1,7.4,5.5,5.6,6.2,6.1,6.2,5.6,5.7,5.6,6.8,6.5,7.2,6.6,6.7,5.9,5.5,6.2,5.6,5.7,5.6,5.7,5.6,5.8,6.2,6.5,6.0,6.9,5.6,5.5,5.9,5.5,5.6,5.6,6.4,6.3,6.0,5.7,6.0,6.0,5.7,5.6,6.2,6.1,7.2,5.6,6.2,5.5,6.2,5.5,5.6,5.6,5.6,5.6,5.7,5.8,5.7,5.5,5.5,6.3,5.5,5.7,5.7,5.7,5.5,5.8,5.5,6.4,6.3,7.3,6.3,5.8,5.5,5.5,5.5,5.5,5.5,5.9,6.1,7.1,5.7,5.5,5.5,6.0,6.1,5.7,6.4,6.3,6.6,5.7,5.8,5.5,6.3,5.8,6.1,6.3,6.0,5.6,5.5,6.0,5.7,6.5,6.1,5.6,5.8,6.1,6.4,6.1,5.8,5.9,5.7,6.6,5.8,5.5,6.2,6.1,6.9,5.6,6.8,5.6,7.9,5.7,5.7,5.8,5.5,6.1,5.6,5.8,5.7,5.9,5.6,5.8,5.7,5.9,5.7,6.0,6.3,5.6,5.7,5.5,6.5,5.7,5.5,5.9,5.9,6.1,6.0,5.6,5.9,5.7,5.7,6.3,5.8,5.7,6.4,5.8,5.5,6.3,6.5,5.6,6.2,5.9,5.8,6.0,5.7,6.0,5.8,6.0,5.5,6.4,5.9,5.6,5.5,5.9,6.9,5.5,5.9,6.0,5.9,5.5,5.5,5.6,5.8,6.1,5.6,5.5,5.7,5.7,5.5,6.2,6.6,5.9,6.1,5.5,5.5,6.0,7.0,5.6,6.2,5.8,7.7,5.7,5.7,5.5,6.0,6.2,5.7,5.5,6.2,5.6,6.4,5.7,5.7,5.5,5.5,5.7,7.0,6.6,5.5,6.2,6.4,5.5,5.8,6.0,6.8,5.5,6.2,5.7,5.9,5.5,5.9,5.9,6.0,5.8,5.6,5.7,5.6,5.5,5.8,5.5,6.3,6.0,5.9,5.5,5.8,5.6,5.8,6.5,5.5,6.3,6.2,5.7,6.0,5.9,5.7,5.7,5.5,5.5,6.0,5.7,5.6,5.5,5.7,5.7,6.1,6.0,6.0,5.8,5.5,6.7,5.7,6.4,6.3,5.7,5.8,5.9,6.3,6.4,6.0,5.5,5.6,6.0,5.7,5.6,6.3,5.7,5.8,5.6,5.8,5.8,6.2,6.9,5.5,5.9,5.6,5.5,6.1,6.6,5.7,6.6,6.8,5.8,5.9,5.6,5.7,5.6,5.5,5.8,5.7,6.0,5.9,5.6,5.6,6.4,6.0,5.7,5.7,5.9,5.5,7.0,5.7,5.5,5.8,5.6,5.7,5.6,5.6,5.7,5.5,6.1,6.7,5.9,5.6,6.0,6.3,5.7,5.5,5.9,5.6,5.8,6.1,5.5,6.2,6.7,5.8,5.7,6.9,5.6,5.9,5.6,6.4,5.7,6.3,5.7,5.7,5.6,5.6,6.0,6.4,5.7,6.4,5.5,6.1,6.0,5.8,5.7,6.1,5.7,5.7,5.6,6.3,5.7,5.9,6.4,5.7,5.5,6.2,6.0,5.5,6.3,5.6,5.5,5.9,5.8,5.5,7.4,5.6,5.5,5.6,5.7,5.5,6.3,5.8,6.1,5.6,6.3,6.4,5.7,5.7,6.3,5.7,5.5,5.6,7.3,5.6,5.6,5.6,5.5,5.9,5.9,6.0,5.6,5.9,5.8,5.5,5.5,5.7,6.4,5.6,5.5,6.3,6.8,5.7,6.1,5.7,5.7,6.0,5.7,5.9,5.9,5.6,5.5,5.8,5.6,6.2,6.0,5.9,5.7,6.3,5.6,5.5,5.8,5.9,5.9,6.0,5.5,6.3,5.8,5.8,5.8,5.9,5.8,5.5,5.6,5.5,7.7,5.6,6.6,5.6,7.4,5.5,5.7,5.9,5.7,5.5,6.0,5.6,5.5,6.1,5.7,6.0,6.7,5.6,5.7,7.4,5.8,5.8,6.4,6.6,6.0,5.6,5.5,6.1,6.1,6.1,5.9,5.6,5.8,5.8,5.8,5.7,5.9,5.5,5.7,5.7,5.5,5.6,5.7,5.5,5.7,6.0,5.6,6.0,5.5,5.7,7.2,5.5,5.5,5.6,6.0,5.5,5.5,5.9,5.5,5.6,6.0,5.6,6.0,6.3,5.7,5.8,5.6,5.7,6.1,5.5,6.0,5.9,5.6,7.0,5.6,5.5,5.5,5.5,6.0,5.9,5.6,5.7,5.5,5.5,5.5,5.5,6.3,5.5,5.6,5.9,5.5,5.8,6.5,5.5,5.5,5.9,5.9,5.5,6.3,5.8,5.7,5.5,5.9,6.3,5.7,5.5,7.6,5.5,5.5,5.8,5.5,5.7,5.8,5.9,6.0,6.0,5.7,5.8,5.5,6.4,5.6,5.6,5.7,6.3,5.9,5.5,5.5,5.8,5.6,6.3,5.6,6.9,5.5,5.6,5.6,5.5,5.9,5.7,5.7,6.3,5.8,6.7,5.5,6.1,5.7,5.8,5.7,6.6,6.1,5.6,5.6,5.8,6.2,5.7,5.7,5.5,6.1,5.8,5.6,5.9,5.6,6.3,5.5,5.5,5.5,6.1,6.1,5.5,5.8,5.7,5.8,6.5,5.9,5.6,5.5,5.8,5.7,5.7,5.5,5.6,5.5,6.0,5.6,5.6,5.5,5.5,7.3,5.5,5.7,5.7,5.5,6.3,5.7,5.5,5.5,5.7,5.6,5.6,6.0,6.4,5.7,5.7,5.8,6.0,5.5,5.5,5.5,5.6,5.7,5.5,6.0,5.5,6.1,6.1,5.6,5.8,5.5,5.5,5.7,5.6,6.7,5.6,5.7,6.4,5.8,6.0,6.1,5.5,6.1,5.7,5.7,6.1,6.0,5.7,5.5,6.1,5.9,6.3,5.7,7.8,5.7,6.1,5.8,5.7,5.6,5.7,5.5,5.8,5.9,5.6,5.6,5.8,5.7,5.6,5.5,5.5,5.8,5.7,6.1,6.1,5.5,6.9,6.2,6.1,6.1,5.8,5.6,5.5,5.5,7.1,6.6,5.7,7.5,6.2,5.5,5.5,5.5,5.7,6.6,5.5,5.9,5.8,5.6,5.8,5.5,5.6,6.7,5.8,5.5,6.7,6.1,5.7,5.9,5.6,6.3,5.5,6.0,5.7,5.5,5.5,6.9,6.3,5.6,5.6,6.6,5.8,7.0,5.5,6.2,6.2,5.9,5.8,5.5,6.2,6.0,5.8,5.7,6.0,5.5,5.6,6.4,6.2,5.9,5.7,5.8,5.6,5.7,5.6,6.1,5.7,5.6,5.6,6.0,6.4,5.6,5.8,8.1,6.0,5.6,5.6,5.6,5.8,5.7,5.5,5.5,6.0,5.5,7.6,5.5,5.9,6.6,5.8,5.5,5.5,6.1,5.5,6.0,5.5,6.1,5.5,5.5,6.6,5.6,5.5,5.7,5.5,5.7,5.8,6.8,7.7,5.8,7.8,5.6,5.5,6.8,7.4,5.5,5.7,5.8,5.9,5.8,6.8,6.0,6.1,6.0,5.7,5.6,5.6,5.6,5.6,5.8,5.6,5.9,6.0,6.0,5.7,6.2,6.2,5.5,5.7,6.5,5.7,6.0,6.4,6.3,5.5,5.5,6.0,6.0,5.7,6.1,5.7,5.6,5.6,5.5,5.7,5.8,6.0,6.0,6.2,5.8,6.0,6.9,5.6,6.0,5.6,6.0,5.5,5.7,6.2,6.8,5.9,5.8,6.2,5.8,5.5,5.9,5.6,5.6,6.0,5.5,5.5,5.5,6.6,5.6,5.5,7.3,5.7,6.0,5.7,5.8,6.5,5.8,5.6,6.2,6.6,5.8,5.5,5.5,6.4,5.9,6.2,5.6,5.7,6.8,5.6,5.9,6.0,6.0,6.1,5.5,5.7,5.6,5.5,6.0,5.8,5.9,5.6,6.4,6.4,6.0,6.3,5.6,5.5,5.6,5.5,6.0,5.5,5.5,5.6,5.5,5.8,5.8,6.4,5.5,6.0,6.0,5.7,5.7,6.3,5.6,5.6,5.6,6.1,5.6,5.7,5.6,5.5,5.8,5.6,6.0,5.6,5.5,6.1,5.8,5.7,6.6,7.1,5.6,5.8,6.8,6.8,6.0,5.7,5.7,5.6,5.6,5.6,6.2,6.5,5.5,7.0,6.0,5.7,5.6,5.6,5.8,5.5,5.8,5.8,5.5,5.9,5.7,5.6,5.5,5.6,5.7,6.3,5.6,5.9,5.5,5.7,5.6,5.9,5.9,5.5,5.6,5.5,5.5,5.6,5.5,5.6,5.9,5.8,5.9,5.9,5.8,5.5,5.6,5.6,6.2,5.6,5.88,6.2,6.0,5.5,6.3,5.6,5.9,5.6,5.7,6.1,5.5,5.5,5.8,5.5,5.8,6.1,6.2,5.9,6.9,5.8,5.5,5.7,6.0,5.6,5.5,5.6,5.7,5.6,5.5,5.7,7.0,8.8,5.6,5.6,6.0,6.2,5.6,5.8,6.0,5.6,5.6,5.5,6.0,5.5,7.4,5.6,6.1,5.7,5.5,5.6,5.6,5.8,5.6,6.0,6.0,5.9,5.5,5.5,6.3,5.5,5.5,6.1,5.5,5.6,5.7,6.2,5.8,5.9,6.0,5.7,5.9,5.6,6.2,5.9,5.7,5.8,5.5,5.6,6.1,5.8,6.3,6.0,6.5,6.3,6.1,6.6,6.8,5.5,5.7,6.3,5.9,6.1,5.6,6.1,5.8,5.8,5.6,5.6,6.9,7.0,5.6,6.0,5.6,5.8,5.5,5.9,5.8,5.6,5.8,6.4,6.5,5.5,5.6,5.8,5.6,6.2,6.7,5.9,5.8,5.6,5.6,5.5,6.6,5.6,5.5,5.9,5.7,6.0,5.7,6.3,5.7,6.0,5.6,5.7,6.6,5.6,6.0,5.6,7.2,5.7,6.2,5.8,7.8,6.0,5.8,5.8,5.5,6.0,5.8,6.9,6.3,5.7,5.5,6.9,6.1,5.6,5.7,5.7,5.7,5.5,6.2,5.6,5.6,5.6,6.1,6.0,6.0,5.6,6.5,5.6,5.8,6.5,6.3,5.9,6.1,5.5,6.3,5.9,6.5,5.7,6.2,5.8,5.6,5.5,5.9,5.7,7.2,5.7,5.8,5.8,6.0,6.0,6.0,5.6,5.9,5.9,5.7,6.1,6.5,5.5,6.3,6.5,7.2,5.6,6.1,5.8,5.8,6.0,6.5,6.0,5.6,5.7,5.9,5.9,5.6,5.6,5.5,5.5,6.0,5.6,5.8,5.7,5.5,7.5,5.9,5.72,5.6,6.2,7.0,6.6,6.0,6.2,5.9,5.6,5.8,5.5,6.1,6.7,5.9,5.6,5.8,5.8,5.5,5.5,6.4,6.3,5.8,6.3,5.7,6.3,5.9,5.8,5.6,6.3,5.7,6.3,5.7,6.6,5.6,5.8,5.5,5.6,6.7,6.9,7.3,6.0,5.7,5.5,5.8,6.3,5.8,5.6,5.5,6.1,6.1,7.3,5.5,7.6,5.8,5.8,7.5,6.6,5.9,5.6,5.6,5.6,5.5,5.6,6.6,6.3,5.5,5.5,5.5,5.5,5.8,6.3,5.6,6.0,6.5,5.5,6.4,7.0,6.0,5.9,5.5,5.5,7.3,5.9,5.9,5.9,5.5,5.5,7.1,5.5,6.9,5.6,6.2,5.7,5.6,5.6,6.6,5.5,5.5,6.3,6.3,6.2,6.3,5.5,6.1,5.9,5.6,5.5,5.5,6.2,5.8,5.5,5.5,5.5,5.7,6.5,7.0,5.6,5.5,6.1,5.5,5.6,5.5,5.7,5.5,5.5,6.3,5.5,5.6,6.3,5.5,6.2,5.8,5.8,5.8,5.9,5.6,5.8,6.3,5.7,5.6,5.6,5.5,5.5,5.6,6.0,5.8,5.5,5.9,5.5,6.2,7.0,5.8,5.5,5.6,5.8,5.5,5.5,5.5,6.3,5.7,6.4,6.0,5.7,6.2,5.8,5.5,5.9,5.9,5.9,5.6,5.6,5.9,5.9,5.9,5.9,5.8,5.9,5.5,6.7,5.8,5.6,5.8,5.5,5.8,7.8,6.3,5.7,5.9,5.6,5.6,5.8,6.4,5.8,5.5,5.6,5.8,5.5,5.5,5.5,6.0,6.1,5.5,5.8,5.6,6.5,5.5,5.7,5.6,5.5,5.8,5.5,5.5,5.9,5.5,5.9,5.7,6.0,5.6,5.9,6.1,5.5,5.8,5.7,5.7,6.8,5.5,5.7,5.6,6.1,6.6,5.9,5.7,5.9,5.7,5.8,6.3,5.9,5.5,5.5,5.5,5.6,5.6,6.2,5.7,6.0,5.5,5.6,5.9,5.9,5.7,6.7,5.6,5.8,7.4,5.5,5.5,5.6,5.6,6.4,6.4,5.6,5.5,5.9,7.3,5.5,5.6,6.0,5.5,5.6,5.5,6.3,6.4,5.5,5.5,5.6,5.5,7.0,5.7,7.2,5.6,5.6,6.1,5.5,5.5,5.6,6.5,5.7,5.5,6.1,5.5,5.6,5.9,5.6,5.5,6.4,5.5,7.0,5.9,5.8,5.7,5.7,6.0,5.9,7.2,5.6,5.9,5.7,6.0,6.1,5.7,5.6,5.5,6.2,5.6,6.2,5.5,5.5,6.0,5.6,5.9,5.9,6.2,5.9,5.8,5.6,6.4,6.5,6.6,6.9,5.9,6.1,5.7,5.6,5.6,6.1,5.8,6.0,5.5,6.7,6.1,5.5,5.6,5.5,6.1,5.6,6.5,5.5,6.1,5.5,5.6,5.5,5.7,5.6,5.9,5.9,5.8,5.7,5.6,5.5,6.0,5.7,5.5,5.6,6.3,6.5,6.3,7.3,5.7,5.7,5.6,6.0,5.9,6.0,6.5,6.4,5.5,5.6,6.5,5.7,9.1,6.3,6.4,6.3,5.9,6.2,5.9,5.8,6.3,6.4,6.7,5.9,6.2,6.2,6.3,7.9,6.6,6.5,6.2,6.2,7.7,6.1,5.9,5.8,5.6,5.8,5.5,5.8,5.9,6.2,6.1,5.8,5.5,5.9,6.0,6.3,5.7,5.8,5.6,5.8,5.7,5.6,5.7,5.6,5.8,5.9,6.3,5.8,5.9,6.1,6.1,6.3,6.0,5.7,5.7,5.8,5.7,5.8,5.7,5.6,5.7,5.9,5.7,5.6,6.2,6.1,6.5,6.1,6.0,6.0,6.0,5.6,5.5,5.9,5.6,5.6,5.5,5.5,5.5,6.0,5.7,5.9,5.6,5.6,5.5,5.5,5.5,5.7,5.8,5.7,5.8,6.6,5.7,5.8,5.5,5.6,5.9,5.8,5.6,5.5,5.6,5.5,5.5,5.7,5.5,5.5,5.8,5.5,6.3,5.5,6.0,5.5,5.5,5.6,5.5,5.7,5.8,6.2,6.0,5.5,5.5,5.7,6.2,6.1,5.7,5.5,5.7,5.5,5.8,5.8,5.5,6.5,5.9,5.8,5.9,5.5,5.7,5.5,5.6,5.7,5.9,6.1,5.6,5.6,5.8,5.8,5.8,6.1,6.1,5.8,5.7,5.6,5.7,5.6,5.5,6.0,5.6,5.8,5.5,6.0,6.0,6.1,5.7,5.7,5.7,5.5,6.2,6.2,5.6,5.8,5.5,5.8,5.5,5.5,5.5,5.9,5.7,5.6,6.0,5.8,5.7,5.8,5.5,5.7,6.4,6.1,6.4,5.6,5.6,5.7,5.8,5.9,5.6,5.5,5.5,5.5,5.8,6.9,5.7,6.2,6.0,5.6,6.2,6.1,5.5,5.7,6.3,6.0,5.9,6.0,5.5,5.5,5.9,6.4,6.7,5.8,5.9,6.0,6.6,7.1,5.8,5.9,6.6,5.8,5.5,5.5,6.2,5.9,5.6,6.0,5.5,5.5,5.7,5.7,5.8,5.7,5.7,5.8,5.5,5.7,6.6,5.7,5.8,6.2,5.6,5.6,5.5,6.8,5.9,5.6,5.6,6.1,5.6,5.5,5.5,5.7,5.5,5.8,5.7,6.1,5.8,5.5,5.5,5.6,5.7,5.7,6.0,5.6,5.8,5.5,5.5,5.7,5.9,5.7,5.6,6.8,5.9,5.5,5.5,5.7,5.5,5.6,5.5,5.7,5.9,6.1,5.9,6.1,6.4,5.5,5.7,5.7,5.5,5.5,5.8,5.8,5.7,5.9,5.9,5.6,5.6,5.7,5.8,5.5,5.7,5.5,5.5,5.9,6.3,6.1,5.5,5.5,6.4,5.9,5.6,5.9,5.5,5.6,5.6,5.9,6.3,5.5,5.6,5.7,5.5,6.4,5.6,5.7,5.5,5.5,5.5,6.4,5.7,6.0,5.7,6.7,7.3,6.1,5.5,5.6,5.5,6.3,5.6,5.5,5.5,5.8,5.8,5.5,5.6,5.7,5.5,5.6,5.6,5.7,5.5,5.7,5.7,7.6,5.6,5.5,5.7,5.8,5.5,5.6,5.5,5.9,5.6,5.9,6.0,6.0,7.0,5.7,5.9,5.5,5.6,5.7,6.4,5.5,5.6,5.5,5.5,6.1,6.0,5.8,5.9,5.6,6.1,5.5,5.8,5.5,6.1,6.0,6.0,5.9,5.5,6.3,5.7,5.5,6.3,6.3,5.6,5.9,5.6,5.8,6.0,5.9,5.6,5.7,6.7,5.5,6.3,6.1,5.5,6.6,5.7,5.9,5.6,5.7,5.7,5.8,6.1,5.7,5.5,5.6,5.6,5.7,6.0,5.7,5.6,5.8,5.5,5.5,5.8,5.6,5.7,6.1,5.6,5.7,6.1,6.2,6.2,5.6,5.5,7.2,6.5,7.1,5.6,5.5,5.6,5.8,5.7,5.7,5.9,6.1,5.8,7.0,6.2,5.9,5.5,5.7,5.6,5.6,6.9,5.6,5.5,6.0,6.9,6.7,5.8,6.4,5.8,7.0,5.8,6.2,5.8,6.7,5.5,5.9,6.4,5.8,5.9,5.7,5.8,5.7,6.0,6.1,6.1,5.5,7.3,5.5,6.7,5.7,5.9,5.8,5.7,5.7,5.6,6.9,5.6,5.6,5.7,5.5,6.4,5.9,5.6,5.6,5.6,5.5,5.8,5.9,5.6,6.1,5.7,5.9,5.5,5.6,5.5,5.7,6.1,5.6,6.5,6.0,5.5,6.1,6.1,7.4,7.1,5.6,5.6,5.7,5.9,5.7,5.6,6.0,6.9,5.6,5.6,5.7,5.6,5.7,5.5,5.8,5.6,6.3,6.1,5.8,5.9,5.7,5.7,5.7,5.6,5.8,6.0,6.9,5.6,5.7,6.0,5.6,5.6,6.3,5.5,5.7,5.7,6.0,5.6,5.8,5.6,5.7,5.8,5.5,5.7,5.7,6.6,5.5,6.1,6.2,5.8,6.1,5.9,6.0,5.6,5.6,5.5,5.6,5.5,5.6,5.7,5.8,6.1,5.7,6.5,5.7,6.2,6.0,5.8,7.1,5.5,6.0,5.6,5.8,5.7,5.7,5.5,5.8,5.9,5.9,6.0,5.5,6.6,5.7,6.8,5.6,5.5,5.5,5.7,6.4,7.2,5.5,5.5,5.6,5.8,5.9,6.6,6.0,5.6,5.7,5.6,5.8,5.7,5.9,5.7,6.2,6.0,5.5,6.1,6.3,5.5,5.6,5.6,5.9,6.4,5.6,5.6,7.1,5.5,6.1,5.7,5.8,5.6,5.6,5.5,6.1,6.1,6.7,5.6,6.0,5.8,5.5,5.9,5.9,5.7,5.6,5.5,5.9,5.6,5.5,5.8,6.4,5.8,5.8,5.6,5.5,5.9,5.5,6.0,5.6,6.7,5.6,5.6,6.6,5.5,5.7,6.1,5.6,5.6,5.9,6.7,5.5,5.6,5.5,5.5,6.9,6.1,5.6,6.0,6.2,5.5,5.8,5.5,5.8,5.9,6.1,7.4,6.6,5.5,5.7,7.1,5.6,5.5,6.0,6.1,5.5,5.7,5.7,6.0,6.1,5.5,5.8,8.6,5.8,5.5,5.9,6.0,8.2,5.7,5.5,5.5,6.0,6.5,5.8,6.0,7.0,5.5,5.7,6.2,5.6,5.8,6.2,6.2,5.8,5.8,6.7,6.8,5.6,6.2,5.5,5.7,5.9,5.8,6.7,5.7,6.0,5.6,6.0,5.7,5.6,5.6,5.5,5.6,5.5,5.7,5.6,6.6,5.6,5.7,5.8,5.6,5.6,5.7,5.5,5.5,5.7,6.0,5.8,5.5,5.7,5.6,5.6,5.5,5.5,5.9,5.7,6.2,5.7,6.3,5.8,5.9,6.0,5.6,6.3,5.6,5.9,6.0,5.9,6.1,6.0,6.7,5.9,5.6,5.8,5.8,5.5,5.6,5.5,5.8,5.9,5.5,6.3,6.3,5.9,5.7,6.1,5.5,6.0,5.8,6.1,5.9,6.0,5.7,5.5,5.5,5.5,5.7,5.9,5.7,6.3,6.0,5.6,5.5,5.5,5.7,6.1,5.5,6.0,5.5,5.7,5.5,5.8,6.3,5.5,5.6,5.7,5.5,6.3,6.3,5.7,6.0,5.6,5.6,5.7,5.7,5.8,5.7,5.5,5.5,5.6,5.9,5.9,5.6,6.0,5.8,5.6,5.6,5.9,5.6,6.4,6.4,6.7,5.5,5.6,6.5,5.7,5.6,5.9,5.5,6.1,6.1,5.5,5.8,5.9,5.6,6.2,6.4,6.2,6.2,5.5,7.7,5.5,5.6,5.8,5.5,6.3,5.7,5.8,5.7,5.6,6.2,5.6,5.7,5.5,5.6,5.9,5.6,6.6,7.3,5.5,5.5,5.5,5.6,6.8,7.6,5.6,5.5,5.8,6.1,5.7,6.0,7.6,5.6,5.7,5.5,5.7,6.1,5.7,5.9,5.5,5.6,5.9,5.5,5.5,6.2,5.5,5.7,5.5,5.7,5.5,5.5,5.6,6.3,6.4,5.8,5.5,7.3,6.1,5.5,5.7,5.7,5.5,5.5,5.6,5.7,5.9,6.1,5.6,6.6,5.5,6.6,5.8,5.7,5.5,5.5,5.6,5.5,5.6,5.6,6.0,5.9,5.6,5.5,6.2,5.5,5.9,5.6,5.8,6.5,5.6,7.8,5.5,6.3,5.6,5.5,5.7,6.2,5.7,5.5,6.1,5.6,5.6,5.7,5.6,5.6,5.5,7.4,5.7,5.6,6.1,6.0,6.8,5.8,5.5,6.5,6.3,6.1,5.6,5.7,6.1,5.6,5.9,6.1,5.5,5.6,6.5,5.6,5.9,6.0,5.9,5.9,5.7,5.6,5.6,5.5,5.9,5.5,5.7,6.1,5.6,5.8,5.8,5.5,7.3,6.2,5.5,6.3,5.7,5.6,5.6,7.1,6.0,5.5,6.3,5.8,6.0,6.1,5.6,6.1,5.9,5.7,6.7,5.5,5.7,5.5,5.9,5.5,5.7,5.5,5.6,7.5,5.7,5.7,5.8,5.6,5.7,5.7,5.5,6.1,5.5,5.5,5.5,6.1,5.7,6.1,6.8,6.1,6.1,5.8,5.5,5.5,5.9,5.8,6.0,6.3,6.4,5.8,6.9,5.5,6.0,5.5,6.0,8.0,5.9,5.6,7.1,5.5,5.5,5.6,5.5,5.5,7.0,5.6,5.5,5.6,5.5,5.6,5.5,6.1,5.9,5.9,6.0,5.8,6.0,5.9,5.6,5.8,5.6,6.0,5.8,5.8,6.7,5.8,5.5,5.5,6.8,5.8,7.1,5.7,5.7,5.5,5.5,6.9,6.6,5.5,5.6,5.6,6.0,5.7,5.7,5.5,5.6,6.6,5.7,6.1,5.8,5.5,5.7,5.5,5.9,5.5,5.7,5.6,5.6,6.1,5.9,5.9,5.6,5.5,5.8,5.7,5.9,6.9,5.8,6.4,6.5,5.6,5.8,5.5,5.5,5.5,5.8,5.5,5.7,6.5,5.5,5.5,5.5,5.8,5.5,5.9,5.5,5.9,6.1,6.2,5.5,5.5,5.9,5.5,5.6,5.5,5.6,6.0,5.5,5.9,6.3,5.5,5.8,7.0,5.5,6.4,5.8,5.5,5.7,5.8,6.0,6.6,5.7,7.7,6.6,5.6,5.5,5.6,5.9,5.5,5.5,7.2,5.8,6.1,6.6,5.7,5.9,5.8,6.1,6.1,5.6,6.0,5.5,6.5,5.5,6.1,5.6,5.9,5.7,5.5,5.5,6.0,5.7,6.1,5.5,6.4,5.5,5.8,5.5,5.5,6.8,5.6,5.5,5.7,5.6,5.7,5.6,6.0,5.5,6.1,5.5,6.4,6.0,5.9,5.7,5.7,6.1,5.5,5.8,7.4,6.3,5.6,5.7,8.3,5.5,5.9,6.7,5.5,5.7,5.9,5.7,5.6,5.5,5.6,5.5,6.2,5.5,5.5,6.1,5.9,5.8,5.6,5.5,5.6,5.6,6.7,6.0,6.2,6.5,5.5,5.8,5.7,6.0,5.6,5.6,5.5,5.7,5.7,6.6,5.5,5.7,5.7,6.1,5.5,5.5,5.5,5.6,5.8,5.7,6.1,6.0,7.3,5.6,6.6,5.7,5.7,5.5,5.6,5.5,5.6,5.6,5.8,7.3,5.9,5.7,6.0,5.5,5.5,5.7,5.5,5.9,6.5,5.9,6.3,5.9,6.1,6.3,5.5,6.0,5.8,5.5,5.8,5.6,5.8,5.7,5.7,5.7,6.0,6.1,5.5,6.2,5.7,6.7,6.5,5.5,5.9,5.9,6.1,5.7,6.2,5.8,5.8,5.8,6.2,5.7,5.8,7.0,5.5,5.6,6.0,5.5,6.5,5.7,5.7,5.9,6.1,5.5,6.5,6.0,6.5,5.8,5.7,6.0,6.0,5.6,5.9,5.5,5.9,6.4,5.6,6.1,5.9,6.1,5.5,5.7,6.1,5.8,5.5,7.7,5.8,5.6,5.5,6.1,5.5,7.1,5.5,6.8,5.5,6.5,5.5,6.7,5.7,6.4,6.0,6.2,5.7,6.2,6.0,6.6,5.5,5.5,5.6,7.1,5.6,5.7,6.8,6.6,5.6,5.5,5.5,6.0,5.5,6.7,7.1,5.7,5.5,5.5,5.9,5.8,6.2,6.3,6.6,6.0,6.2,5.7,5.8,5.6,5.9,5.5,5.7,5.5,5.5,5.5,5.6,5.6,6.4,5.8,6.1,5.5,6.9,5.5,5.7,5.5,5.5,7.7,5.8,5.7,5.5,5.6,6.0,5.9,6.0,5.7,5.5,5.6,5.5,5.8,6.5,6.0,5.6,7.0,6.0,5.5,5.5,5.8,6.4,5.5,6.0,5.6,5.5,5.6,5.7,6.0,5.6,5.5,5.5,5.8,5.5,5.7,6.2,5.7,5.5,5.5,5.5,5.6,5.6,5.8,5.6,5.9,5.8,5.9,5.6,5.5,5.7,5.7,6.5,5.7,5.5,5.5,5.7,5.7,5.8,5.6,5.5,6.4,5.5,6.1,6.1,5.5,5.6,5.5,5.8,5.7,6.1,6.1,5.6,5.6,5.6,5.6,6.1,5.7,6.5,6.0,5.6,5.8,5.9,5.5,5.5,6.5,5.7,6.0,5.5,6.9,5.7,5.6,5.6,5.6,5.5,5.6,6.5,5.8,5.9,5.5,5.6,5.6,5.5,5.5,6.1,6.2,5.8,6.5,6.0,5.7,6.3,5.6,5.6,5.7,5.6,5.8,6.8,5.9,6.4,6.1,5.6,6.3,5.5,5.5,5.5,6.1,6.3,6.7,6.4,5.8,5.8,5.8,5.8,5.8,5.5,5.6,5.8,6.4,5.5,6.2,5.6,5.9,6.3,5.7,5.6,5.7,6.3,5.5,6.0,5.7,5.6,5.5,5.9,5.6,5.6,8.2,6.9,5.8,5.7,5.6,5.6,5.5,6.0,5.5,6.5,7.7,5.5,5.5,6.4,5.7,6.3,6.0,5.6,5.6,5.7,5.6,5.6,5.8,6.1,6.2,7.1,6.5,5.7,5.7,6.6,6.1,5.8,7.6,5.8,5.6,5.7,5.5,7.4,5.7,5.6,6.6,5.8,5.6,6.8,5.6,5.8,5.6,6.2,6.1,7.2,5.6,5.8,6.6,7.5,5.8,5.6,5.8,5.5,6.2,5.9,5.8,5.6,5.6,6.5,5.9,5.7,6.1,5.7,6.6,5.9,5.6,5.7,5.6,5.5,5.6,6.6,6.3,6.0,6.1,6.3,6.0,6.4,5.9,6.0,5.6,5.9,5.8,5.6,6.5,6.5,5.6,6.1,6.3,6.3,5.5,5.9,5.5,5.6,5.7,5.5,5.7,6.0,5.6,5.6,5.5,5.8,5.5,5.7,5.6,5.8,6.0,5.5,5.8,5.7,5.5,5.7,6.9,5.9,5.8,5.9,5.5,5.7,5.6,6.2,5.7,5.6,5.7,5.9,5.5,5.5,5.5,5.5,5.8,5.6,6.5,5.5,5.5,5.6,5.7,5.7,5.7,6.2,5.8,5.6,5.8,6.9,6.5,6.7,7.9,5.7,5.6,6.0,6.0,5.6,5.9,6.0,5.8,6.3,5.7,6.2,6.9,5.8,6.0,6.4,6.7,5.9,5.6,6.2,5.6,6.0,5.7,5.8,5.7,6.3,5.5,6.5,5.7,6.0,5.8,6.9,5.5,6.2,5.8,6.5,5.6,5.6,5.8,5.5,5.5,6.3,5.8,5.7,5.6,6.0,6.2,6.0,6.2,6.9,5.6,6.1,5.8,6.0,5.6,5.6,6.3,6.0,5.5,5.9,5.8,5.5,5.5,5.6,6.9,5.7,5.7,6.2,6.2,6.1,5.6,5.5,5.5,5.5,5.6,5.6,6.2,5.6,6.0,5.6,5.5,5.5,5.9,5.5,5.6,6.4,6.02,5.5,6.8,5.5,5.6,5.9,5.8,5.8,5.5,5.5,5.8,5.5,5.7,5.9,6.0,5.8,6.1,5.9,6.2,5.5,6.2,5.9,5.6,5.5,5.5,5.5,6.7,5.5,5.5,5.5,5.7,5.5,6.2,6.1,6.2,5.5,5.7,5.6,5.5,5.5,6.0,5.7,5.5,5.5,5.6,5.5,5.7,5.5,6.1,6.1,5.6,7.0,6.6,5.7,5.7,5.6,6.1,5.5,5.6,5.8,7.3,5.7,5.5,5.7,5.5,5.8,5.7,5.6,5.6,5.8,5.7,5.5,6.0,5.7,5.8,6.0,7.1,6.0,5.5,6.3,5.5,6.6,5.9,5.6,5.7,5.5,6.0,5.5,7.1,5.9,5.9,5.5,6.7,5.8,5.5,6.1,5.6,5.8,5.6,5.6,5.8,6.5,5.9,6.2,5.6,5.6,5.6,6.8,5.6,5.6,5.8,5.7,6.6,5.5,5.6,5.6,6.0,6.0,6.6,5.6,5.9,6.1,6.6,5.6,5.7,6.1,5.5,5.8,5.9,5.5,5.6,5.9,6.3,5.8,5.5,5.9,5.9,5.5,6.1,5.6,6.0,5.8,5.5,5.5,5.6,5.6,6.5,5.7,5.6,5.5,5.9,5.5,5.6,5.6,5.5,5.5,5.7,5.5,5.5,5.7,6.8,5.6,5.7,6.2,5.73,5.6,6.0,5.5,5.5,5.7,5.6,5.9,6.3,5.5,5.5,5.7,5.6,5.5,6.7,5.8,5.5,7.1,6.2,6.2,6.7,5.5,5.5,5.5,5.5,6.1,5.5,6.4,6.2,6.0,5.5,6.2,5.8,5.7,5.9,7.0,5.7,5.6,5.5,5.5,6.1,6.0,5.6,5.6,5.8,6.2,5.5,5.8,6.1,5.9,5.5,6.2,6.2,5.6,5.5,6.4,5.5,5.5,5.6,5.5,5.9,5.6,7.5,5.7,6.0,6.4,6.5,5.9,5.8,5.6,5.7,6.0,5.5,5.9,5.5,5.9,5.5,6.3,5.7,5.5,5.6,6.0,6.5,6.4,5.7,6.0,6.1,6.2,6.1,6.2,7.8,6.1,5.6,6.6,5.5,5.7,6.7,5.6,6.1,5.5,5.8,6.7,6.8,6.0,5.7,6.0,5.5,5.9,5.6,5.7,7.5,5.8,5.6,5.8,5.5,7.1,5.7,5.9,5.6,6.0,7.3,5.5,6.3,6.8,6.0,5.5,5.6,5.7,5.7,5.8,6.7,6.0,6.8,5.7,6.9,6.8,5.9,6.3,6.2,5.8,5.6,5.8,5.7,6.7,5.9,7.8,6.0,6.2,5.8,5.9,6.0,5.6,6.1,5.6,5.8,6.0,5.7,5.7,6.0,5.5,5.8,5.7,5.9,7.0,6.4,5.5,5.7,5.9,6.0,5.5,6.5,5.5,5.6,5.7,6.0,5.5,5.8,5.5,6.0,5.7,6.0,6.4,5.5,6.1,5.6,5.8,6.3,5.6,5.6,5.9,5.7,5.8,5.6,5.5,6.7,5.5,5.5,5.7,6.5,5.8,7.0,5.7,5.5,5.5,5.9,5.8,6.9,5.9,5.7,5.9,5.5,5.6,5.7,7.0,5.9,6.3,5.5,5.6,5.7,5.7,5.7,6.0,5.8,5.5,5.6,5.6,5.7,5.8,6.6,5.9,5.6,5.9,5.5,5.7,5.5,5.6,6.5,6.0,5.6,5.6,5.6,5.7,5.5,6.4,5.7,5.7,5.7,5.8,5.5,5.7,6.0,5.8,5.6,6.0,5.7,5.5,5.5,5.8,6.0,6.3,5.9,5.8,5.7,5.5,5.9,6.0,5.5,5.9,5.5,5.6,6.7,6.3,6.1,8.3,6.4,6.1,5.6,5.7,6.1,7.0,5.7,5.5,5.9,5.8,6.4,5.5,6.5,5.7,6.7,5.5,5.5,5.5,5.9,5.9,5.7,5.5,5.6,6.2,6.0,6.1,5.7,6.2,5.6,6.1,6.6,5.5,5.6,6.0,5.7,6.6,5.8,6.3,5.5,5.5,5.9,5.5,5.9,5.7,5.8,5.9,5.5,5.9,5.7,5.5,5.5,6.1,5.6,5.6,6.0,5.6,5.8,5.6,6.0,5.8,5.7,5.6,7.1,5.6,6.2,6.0,5.8,5.5,5.8,5.9,7.5,5.8,5.8,5.5,5.8,5.7,6.5,5.6,5.5,6.2,6.8,5.7,5.5,5.7,5.7,5.5,5.6,5.7,6.6,5.6,5.5,6.5,5.6,6.9,6.9,5.6,5.5,5.8,5.6,6.7,5.7,5.8,5.9,6.5,5.6,6.8,5.8,6.1,5.8,5.7,5.6,6.0,5.5,7.6,7.6,5.7,6.7,5.6,6.2,5.6,5.6,5.8,5.5,5.5,5.8,7.1,5.6,7.2,5.5,5.5,5.7,5.6,6.9,6.1,5.5,5.7,5.5,6.6,6.0,5.7,5.8,6.1,5.7,5.8,6.2,5.8,5.8,6.3,5.6,5.8,5.8,6.3,5.8,5.8,6.7,5.8,6.0,5.7,5.7,5.6,6.5,6.2,5.9,5.7,5.9,6.1,6.7,5.6,5.5,5.6,5.6,5.8,5.6,5.9,5.5,6.6,5.6,7.1,5.7,6.3,5.5,6.1,5.5,5.7,7.2,5.5,5.7,6.1,6.2,5.7,6.4,5.7,5.8,6.4,6.3,6.3,5.8,5.7,6.0,5.9,5.7,6.1,6.0,5.6,5.8,5.5,5.6,6.0,5.8,5.7,6.1,5.5,5.6,7.8,5.6,5.6,5.9,5.6,5.5,5.9,5.6,6.3,5.5,5.6,5.6,5.5,5.6,5.5,5.6,5.5,6.0,5.7,5.6,6.0,6.4,5.6,5.6,5.8,5.5,5.5,5.5,5.5,5.9,6.2,5.9,6.9,5.9,5.8,6.7,5.9,6.1,5.5,6.7,5.7,5.5,6.6,5.6,5.6,5.8,5.5,6.9,6.0,5.8,5.9,6.2,6.0,6.4,5.6,5.6,6.1,7.0,5.7,5.5,5.5,7.8,5.5,5.8,5.7,5.6,5.5,5.9,6.2,5.6,6.2,6.0,5.6,5.9,6.0,5.9,5.7,5.5,5.7,6.0,5.6,6.0,5.5,7.0,6.6,5.8,5.7,5.6,5.7,5.5,5.7,5.5,5.6,5.6,5.8,5.5,5.8,5.7,5.5,5.6,5.8,5.8,5.5,6.7,6.9,6.0,5.5,5.9,5.5,6.4,6.9,7.2,5.7,6.4,5.9,5.7,5.5,6.6,5.8,5.8,6.3,5.6,6.1,5.5,5.5,6.3,5.5,6.3,5.9,6.1,6.1,6.2,5.5,5.8,5.7,5.6,6.2,5.6,5.7,5.7,5.7,5.7,6.3,5.6,6.0,6.1,6.3,5.5,5.8,5.5,5.5,6.4,5.7,5.7,5.5,5.8,6.0,5.9,5.8,5.5,5.6,5.8,6.0,5.6,5.9,6.3,5.6,5.9,6.3,5.9,5.8,5.6,5.5,5.8,6.1,5.8,5.5,5.5,5.6,5.9,5.7,5.8,5.5,6.1,6.4,5.9,5.8,5.9,7.7,5.6,5.6,5.9,5.6,5.6,5.6,6.2,6.3,5.5,7.2,6.1,5.5,5.7,5.6,5.5,5.6,5.7,6.0,5.5,7.4,5.7,5.8,5.5,5.5,6.0,5.8,6.1,5.6,6.0,5.8,6.2,5.6,6.8,5.6,5.9,5.5,7.1,6.8,5.8,7.0,5.5,5.5,5.7,6.1,5.5,5.5,5.5,5.5,5.5,5.5,5.64,5.8,5.5,5.8,5.9,6.1,5.6,6.1,5.6,6.1,5.9,5.8,6.0,6.0,5.7,5.5,6.0,5.5,5.8,5.8,6.1,5.5,5.6,6.2,6.3,5.6,5.6,5.9,5.7,6.4,6.9,5.6,5.7,5.5,5.5,5.6,5.7,5.5,5.8,5.6,5.6,5.8,5.8,5.6,5.6,5.5,6.3,5.5,6.8,5.9,5.9,5.6,6.6,5.6,5.6,6.2,5.9,5.6,5.5,5.8,6.1,5.5,6.1,5.6,5.8,5.9,6.0,5.9,5.8,6.6,5.6,6.0,6.3,5.8,5.7,6.0,5.9,5.7,5.6,6.1,5.9,5.6,7.8,5.7,5.5,6.5,5.8,5.7,6.1,6.2,5.7,5.7,6.5,5.6,5.7,5.5,5.5,5.8,5.7,5.5,5.6,6.4,5.5,6.9,5.9,5.5,5.8,5.9,6.9,5.5,5.6,6.6,5.5,5.5,5.7,5.5,6.2,5.9,5.5,5.7,6.3,5.9,6.5,6.0,6.6,7.8,5.7,5.5,6.5,6.9,5.5,5.5,5.8,5.5,5.6,5.8,6.0,5.8,5.5,6.0,5.5,5.5,7.9,5.6,6.3,5.9,5.5,5.9,6.2,5.5,6.4,6.4,5.6,6.0,5.5,6.7,5.9,6.0,5.8,7.6,5.6,5.6,5.6,5.6,5.5,5.9,6.3,5.5]}],                        {&quot;coloraxis&quot;:{&quot;colorbar&quot;:{&quot;title&quot;:{&quot;text&quot;:&quot;Magnitude&quot;}},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]},&quot;legend&quot;:{&quot;tracegroupgap&quot;:0},&quot;mapbox&quot;:{&quot;center&quot;:{&quot;lat&quot;:0,&quot;lon&quot;:180},&quot;domain&quot;:{&quot;x&quot;:[0.0,1.0],&quot;y&quot;:[0.0,1.0]},&quot;style&quot;:&quot;stamen-terrain&quot;,&quot;zoom&quot;:0},&quot;margin&quot;:{&quot;t&quot;:60},&quot;template&quot;:{&quot;data&quot;:{&quot;bar&quot;:[{&quot;error_x&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;error_y&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;bar&quot;}],&quot;barpolar&quot;:[{&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#E5ECF6&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;barpolar&quot;}],&quot;carpet&quot;:[{&quot;aaxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;baxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;minorgridcolor&quot;:&quot;white&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;type&quot;:&quot;carpet&quot;}],&quot;choropleth&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;type&quot;:&quot;choropleth&quot;}],&quot;contour&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;contour&quot;}],&quot;contourcarpet&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;type&quot;:&quot;contourcarpet&quot;}],&quot;heatmap&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;heatmap&quot;}],&quot;heatmapgl&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;heatmapgl&quot;}],&quot;histogram&quot;:[{&quot;marker&quot;:{&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;histogram&quot;}],&quot;histogram2d&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;histogram2d&quot;}],&quot;histogram2dcontour&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;histogram2dcontour&quot;}],&quot;mesh3d&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;type&quot;:&quot;mesh3d&quot;}],&quot;parcoords&quot;:[{&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;parcoords&quot;}],&quot;pie&quot;:[{&quot;automargin&quot;:true,&quot;type&quot;:&quot;pie&quot;}],&quot;scatter&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatter&quot;}],&quot;scatter3d&quot;:[{&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatter3d&quot;}],&quot;scattercarpet&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattercarpet&quot;}],&quot;scattergeo&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattergeo&quot;}],&quot;scattergl&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattergl&quot;}],&quot;scattermapbox&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattermapbox&quot;}],&quot;scatterpolar&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatterpolar&quot;}],&quot;scatterpolargl&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatterpolargl&quot;}],&quot;scatterternary&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatterternary&quot;}],&quot;surface&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;surface&quot;}],&quot;table&quot;:[{&quot;cells&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#EBF0F8&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;header&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#C8D4E3&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;type&quot;:&quot;table&quot;}]},&quot;layout&quot;:{&quot;annotationdefaults&quot;:{&quot;arrowcolor&quot;:&quot;#2a3f5f&quot;,&quot;arrowhead&quot;:0,&quot;arrowwidth&quot;:1},&quot;autotypenumbers&quot;:&quot;strict&quot;,&quot;coloraxis&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;colorscale&quot;:{&quot;diverging&quot;:[[0,&quot;#8e0152&quot;],[0.1,&quot;#c51b7d&quot;],[0.2,&quot;#de77ae&quot;],[0.3,&quot;#f1b6da&quot;],[0.4,&quot;#fde0ef&quot;],[0.5,&quot;#f7f7f7&quot;],[0.6,&quot;#e6f5d0&quot;],[0.7,&quot;#b8e186&quot;],[0.8,&quot;#7fbc41&quot;],[0.9,&quot;#4d9221&quot;],[1,&quot;#276419&quot;]],&quot;sequential&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;sequentialminus&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]},&quot;colorway&quot;:[&quot;#636efa&quot;,&quot;#EF553B&quot;,&quot;#00cc96&quot;,&quot;#ab63fa&quot;,&quot;#FFA15A&quot;,&quot;#19d3f3&quot;,&quot;#FF6692&quot;,&quot;#B6E880&quot;,&quot;#FF97FF&quot;,&quot;#FECB52&quot;],&quot;font&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;geo&quot;:{&quot;bgcolor&quot;:&quot;white&quot;,&quot;lakecolor&quot;:&quot;white&quot;,&quot;landcolor&quot;:&quot;#E5ECF6&quot;,&quot;showlakes&quot;:true,&quot;showland&quot;:true,&quot;subunitcolor&quot;:&quot;white&quot;},&quot;hoverlabel&quot;:{&quot;align&quot;:&quot;left&quot;},&quot;hovermode&quot;:&quot;closest&quot;,&quot;mapbox&quot;:{&quot;style&quot;:&quot;light&quot;},&quot;paper_bgcolor&quot;:&quot;white&quot;,&quot;plot_bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;polar&quot;:{&quot;angularaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;radialaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;scene&quot;:{&quot;xaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;},&quot;yaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;},&quot;zaxis&quot;:{&quot;backgroundcolor&quot;:&quot;#E5ECF6&quot;,&quot;gridcolor&quot;:&quot;white&quot;,&quot;gridwidth&quot;:2,&quot;linecolor&quot;:&quot;white&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;white&quot;}},&quot;shapedefaults&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;}},&quot;ternary&quot;:{&quot;aaxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;baxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;bgcolor&quot;:&quot;#E5ECF6&quot;,&quot;caxis&quot;:{&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;title&quot;:{&quot;x&quot;:0.05},&quot;xaxis&quot;:{&quot;automargin&quot;:true,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;zerolinewidth&quot;:2},&quot;yaxis&quot;:{&quot;automargin&quot;:true,&quot;gridcolor&quot;:&quot;white&quot;,&quot;linecolor&quot;:&quot;white&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;white&quot;,&quot;zerolinewidth&quot;:2}}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;p&gt;The above figure is pretty cool, but you can also embed heavier/more complex figures.
For brevity, the following figure is generated from the figure produced in 
&lt;a href=&quot;https://plotly.com/python/dropdowns/&quot;&gt;this plotly tutorial&lt;/a&gt;.&lt;/p&gt;

&lt;html&gt;
&lt;head&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;                        &lt;script type=&quot;text/javascript&quot;&gt;window.PlotlyConfig = {MathJaxConfig: 'local'};&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;/**
* plotly.js v2.4.2
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if(&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module)module.exports=t();else if(&quot;function&quot;==typeof define&amp;&amp;define.amd)define([],t);else{(&quot;undefined&quot;!=typeof window?window:&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:this).Plotly=t()}}((function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=&quot;function&quot;==typeof require&amp;&amp;require;if(!s&amp;&amp;l)return l(o,!0);if(a)return a(o,!0);var c=new Error(&quot;Cannot find module '&quot;+o+&quot;'&quot;);throw c.code=&quot;MODULE_NOT_FOUND&quot;,c}var u=r[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,r,n)}return r[o].exports}for(var a=&quot;function&quot;==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)i(n[o]);return i}({1:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../src/lib&quot;),i={&quot;X,X div&quot;:'direction:ltr;font-family:&quot;Open Sans&quot;,verdana,arial,sans-serif;margin:0;padding:0;',&quot;X input,X button&quot;:'font-family:&quot;Open Sans&quot;,verdana,arial,sans-serif;',&quot;X input:focus,X button:focus&quot;:&quot;outline:none;&quot;,&quot;X a&quot;:&quot;text-decoration:none;&quot;,&quot;X a:hover&quot;:&quot;text-decoration:none;&quot;,&quot;X .crisp&quot;:&quot;shape-rendering:crispEdges;&quot;,&quot;X .user-select-none&quot;:&quot;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;&quot;,&quot;X svg&quot;:&quot;overflow:hidden;&quot;,&quot;X svg a&quot;:&quot;fill:#447adb;&quot;,&quot;X svg a:hover&quot;:&quot;fill:#3c6dc5;&quot;,&quot;X .main-svg&quot;:&quot;position:absolute;top:0;left:0;pointer-events:none;&quot;,&quot;X .main-svg .draglayer&quot;:&quot;pointer-events:all;&quot;,&quot;X .cursor-default&quot;:&quot;cursor:default;&quot;,&quot;X .cursor-pointer&quot;:&quot;cursor:pointer;&quot;,&quot;X .cursor-crosshair&quot;:&quot;cursor:crosshair;&quot;,&quot;X .cursor-move&quot;:&quot;cursor:move;&quot;,&quot;X .cursor-col-resize&quot;:&quot;cursor:col-resize;&quot;,&quot;X .cursor-row-resize&quot;:&quot;cursor:row-resize;&quot;,&quot;X .cursor-ns-resize&quot;:&quot;cursor:ns-resize;&quot;,&quot;X .cursor-ew-resize&quot;:&quot;cursor:ew-resize;&quot;,&quot;X .cursor-sw-resize&quot;:&quot;cursor:sw-resize;&quot;,&quot;X .cursor-s-resize&quot;:&quot;cursor:s-resize;&quot;,&quot;X .cursor-se-resize&quot;:&quot;cursor:se-resize;&quot;,&quot;X .cursor-w-resize&quot;:&quot;cursor:w-resize;&quot;,&quot;X .cursor-e-resize&quot;:&quot;cursor:e-resize;&quot;,&quot;X .cursor-nw-resize&quot;:&quot;cursor:nw-resize;&quot;,&quot;X .cursor-n-resize&quot;:&quot;cursor:n-resize;&quot;,&quot;X .cursor-ne-resize&quot;:&quot;cursor:ne-resize;&quot;,&quot;X .cursor-grab&quot;:&quot;cursor:-webkit-grab;cursor:grab;&quot;,&quot;X .modebar&quot;:&quot;position:absolute;top:2px;right:2px;&quot;,&quot;X .ease-bg&quot;:&quot;-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;&quot;,&quot;X .modebar--hover&gt;:not(.watermark)&quot;:&quot;opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;&quot;,&quot;X:hover .modebar--hover .modebar-group&quot;:&quot;opacity:1;&quot;,&quot;X .modebar-group&quot;:&quot;float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;&quot;,&quot;X .modebar-btn&quot;:&quot;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;&quot;,&quot;X .modebar-btn svg&quot;:&quot;position:relative;top:2px;&quot;,&quot;X .modebar.vertical&quot;:&quot;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;&quot;,&quot;X .modebar.vertical svg&quot;:&quot;top:-1px;&quot;,&quot;X .modebar.vertical .modebar-group&quot;:&quot;display:block;float:none;padding-left:0px;padding-bottom:8px;&quot;,&quot;X .modebar.vertical .modebar-group .modebar-btn&quot;:&quot;display:block;text-align:center;&quot;,&quot;X [data-title]:before,X [data-title]:after&quot;:&quot;position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;&quot;,&quot;X [data-title]:hover:before,X [data-title]:hover:after&quot;:&quot;display:block;opacity:1;&quot;,&quot;X [data-title]:before&quot;:'content:&quot;&quot;;position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',&quot;X [data-title]:after&quot;:&quot;content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;&quot;,&quot;X .vertical [data-title]:before,X .vertical [data-title]:after&quot;:&quot;top:0%;right:200%;&quot;,&quot;X .vertical [data-title]:before&quot;:&quot;border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;&quot;,&quot;X .select-outline&quot;:&quot;fill:none;stroke-width:1;shape-rendering:crispEdges;&quot;,&quot;X .select-outline-1&quot;:&quot;stroke:#fff;&quot;,&quot;X .select-outline-2&quot;:&quot;stroke:#000;stroke-dasharray:2px 2px;&quot;,Y:'font-family:&quot;Open Sans&quot;,verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',&quot;Y p&quot;:&quot;margin:0;&quot;,&quot;Y .notifier-note&quot;:&quot;min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;&quot;,&quot;Y .notifier-close&quot;:&quot;color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;&quot;,&quot;Y .notifier-close:hover&quot;:&quot;color:#444;text-decoration:none;cursor:pointer;&quot;};for(var a in i){var o=a.replace(/^,/,&quot; ,&quot;).replace(/X/g,&quot;.js-plotly-plot .plotly&quot;).replace(/Y/g,&quot;.plotly-notifier&quot;);n.addStyleRule(o,i[a])}},{&quot;../src/lib&quot;:803}],2:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/aggregate&quot;)},{&quot;../src/transforms/aggregate&quot;:1399}],3:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/bar&quot;)},{&quot;../src/traces/bar&quot;:949}],4:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/barpolar&quot;)},{&quot;../src/traces/barpolar&quot;:962}],5:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/box&quot;)},{&quot;../src/traces/box&quot;:972}],6:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/components/calendars&quot;)},{&quot;../src/components/calendars&quot;:664}],7:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/candlestick&quot;)},{&quot;../src/traces/candlestick&quot;:981}],8:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/carpet&quot;)},{&quot;../src/traces/carpet&quot;:1e3}],9:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choropleth&quot;)},{&quot;../src/traces/choropleth&quot;:1014}],10:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choroplethmapbox&quot;)},{&quot;../src/traces/choroplethmapbox&quot;:1021}],11:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/cone&quot;)},{&quot;../src/traces/cone&quot;:1027}],12:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contour&quot;)},{&quot;../src/traces/contour&quot;:1042}],13:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contourcarpet&quot;)},{&quot;../src/traces/contourcarpet&quot;:1053}],14:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/core&quot;)},{&quot;../src/core&quot;:781}],15:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/densitymapbox&quot;)},{&quot;../src/traces/densitymapbox&quot;:1061}],16:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/filter&quot;)},{&quot;../src/transforms/filter&quot;:1400}],17:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnel&quot;)},{&quot;../src/traces/funnel&quot;:1071}],18:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnelarea&quot;)},{&quot;../src/traces/funnelarea&quot;:1080}],19:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/groupby&quot;)},{&quot;../src/transforms/groupby&quot;:1401}],20:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmap&quot;)},{&quot;../src/traces/heatmap&quot;:1093}],21:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmapgl&quot;)},{&quot;../src/traces/heatmapgl&quot;:1103}],22:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram&quot;)},{&quot;../src/traces/histogram&quot;:1115}],23:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2d&quot;)},{&quot;../src/traces/histogram2d&quot;:1121}],24:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2dcontour&quot;)},{&quot;../src/traces/histogram2dcontour&quot;:1125}],25:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/icicle&quot;)},{&quot;../src/traces/icicle&quot;:1131}],26:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/image&quot;)},{&quot;../src/traces/image&quot;:1144}],27:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./core&quot;);n.register([t(&quot;./bar&quot;),t(&quot;./box&quot;),t(&quot;./heatmap&quot;),t(&quot;./histogram&quot;),t(&quot;./histogram2d&quot;),t(&quot;./histogram2dcontour&quot;),t(&quot;./contour&quot;),t(&quot;./scatterternary&quot;),t(&quot;./violin&quot;),t(&quot;./funnel&quot;),t(&quot;./waterfall&quot;),t(&quot;./image&quot;),t(&quot;./pie&quot;),t(&quot;./sunburst&quot;),t(&quot;./treemap&quot;),t(&quot;./icicle&quot;),t(&quot;./funnelarea&quot;),t(&quot;./scatter3d&quot;),t(&quot;./surface&quot;),t(&quot;./isosurface&quot;),t(&quot;./volume&quot;),t(&quot;./mesh3d&quot;),t(&quot;./cone&quot;),t(&quot;./streamtube&quot;),t(&quot;./scattergeo&quot;),t(&quot;./choropleth&quot;),t(&quot;./scattergl&quot;),t(&quot;./splom&quot;),t(&quot;./pointcloud&quot;),t(&quot;./heatmapgl&quot;),t(&quot;./parcoords&quot;),t(&quot;./parcats&quot;),t(&quot;./scattermapbox&quot;),t(&quot;./choroplethmapbox&quot;),t(&quot;./densitymapbox&quot;),t(&quot;./sankey&quot;),t(&quot;./indicator&quot;),t(&quot;./table&quot;),t(&quot;./carpet&quot;),t(&quot;./scattercarpet&quot;),t(&quot;./contourcarpet&quot;),t(&quot;./ohlc&quot;),t(&quot;./candlestick&quot;),t(&quot;./scatterpolar&quot;),t(&quot;./scatterpolargl&quot;),t(&quot;./barpolar&quot;),t(&quot;./aggregate&quot;),t(&quot;./filter&quot;),t(&quot;./groupby&quot;),t(&quot;./sort&quot;),t(&quot;./calendars&quot;)]),e.exports=n},{&quot;./aggregate&quot;:2,&quot;./bar&quot;:3,&quot;./barpolar&quot;:4,&quot;./box&quot;:5,&quot;./calendars&quot;:6,&quot;./candlestick&quot;:7,&quot;./carpet&quot;:8,&quot;./choropleth&quot;:9,&quot;./choroplethmapbox&quot;:10,&quot;./cone&quot;:11,&quot;./contour&quot;:12,&quot;./contourcarpet&quot;:13,&quot;./core&quot;:14,&quot;./densitymapbox&quot;:15,&quot;./filter&quot;:16,&quot;./funnel&quot;:17,&quot;./funnelarea&quot;:18,&quot;./groupby&quot;:19,&quot;./heatmap&quot;:20,&quot;./heatmapgl&quot;:21,&quot;./histogram&quot;:22,&quot;./histogram2d&quot;:23,&quot;./histogram2dcontour&quot;:24,&quot;./icicle&quot;:25,&quot;./image&quot;:26,&quot;./indicator&quot;:28,&quot;./isosurface&quot;:29,&quot;./mesh3d&quot;:30,&quot;./ohlc&quot;:31,&quot;./parcats&quot;:32,&quot;./parcoords&quot;:33,&quot;./pie&quot;:34,&quot;./pointcloud&quot;:35,&quot;./sankey&quot;:36,&quot;./scatter3d&quot;:37,&quot;./scattercarpet&quot;:38,&quot;./scattergeo&quot;:39,&quot;./scattergl&quot;:40,&quot;./scattermapbox&quot;:41,&quot;./scatterpolar&quot;:42,&quot;./scatterpolargl&quot;:43,&quot;./scatterternary&quot;:44,&quot;./sort&quot;:45,&quot;./splom&quot;:46,&quot;./streamtube&quot;:47,&quot;./sunburst&quot;:48,&quot;./surface&quot;:49,&quot;./table&quot;:50,&quot;./treemap&quot;:51,&quot;./violin&quot;:52,&quot;./volume&quot;:53,&quot;./waterfall&quot;:54}],28:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/indicator&quot;)},{&quot;../src/traces/indicator&quot;:1152}],29:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/isosurface&quot;)},{&quot;../src/traces/isosurface&quot;:1158}],30:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/mesh3d&quot;)},{&quot;../src/traces/mesh3d&quot;:1163}],31:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/ohlc&quot;)},{&quot;../src/traces/ohlc&quot;:1168}],32:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcats&quot;)},{&quot;../src/traces/parcats&quot;:1177}],33:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcoords&quot;)},{&quot;../src/traces/parcoords&quot;:1187}],34:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pie&quot;)},{&quot;../src/traces/pie&quot;:1198}],35:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pointcloud&quot;)},{&quot;../src/traces/pointcloud&quot;:1207}],36:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sankey&quot;)},{&quot;../src/traces/sankey&quot;:1213}],37:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatter3d&quot;)},{&quot;../src/traces/scatter3d&quot;:1251}],38:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattercarpet&quot;)},{&quot;../src/traces/scattercarpet&quot;:1258}],39:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergeo&quot;)},{&quot;../src/traces/scattergeo&quot;:1266}],40:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergl&quot;)},{&quot;../src/traces/scattergl&quot;:1279}],41:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattermapbox&quot;)},{&quot;../src/traces/scattermapbox&quot;:1289}],42:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolar&quot;)},{&quot;../src/traces/scatterpolar&quot;:1297}],43:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolargl&quot;)},{&quot;../src/traces/scatterpolargl&quot;:1304}],44:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterternary&quot;)},{&quot;../src/traces/scatterternary&quot;:1312}],45:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/sort&quot;)},{&quot;../src/transforms/sort&quot;:1403}],46:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/splom&quot;)},{&quot;../src/traces/splom&quot;:1321}],47:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/streamtube&quot;)},{&quot;../src/traces/streamtube&quot;:1329}],48:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sunburst&quot;)},{&quot;../src/traces/sunburst&quot;:1337}],49:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/surface&quot;)},{&quot;../src/traces/surface&quot;:1346}],50:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/table&quot;)},{&quot;../src/traces/table&quot;:1354}],51:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/treemap&quot;)},{&quot;../src/traces/treemap&quot;:1365}],52:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/violin&quot;)},{&quot;../src/traces/violin&quot;:1378}],53:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/volume&quot;)},{&quot;../src/traces/volume&quot;:1386}],54:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/waterfall&quot;)},{&quot;../src/traces/waterfall&quot;:1394}],55:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||&quot;turntable&quot;,u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(&quot;turntable-camera-controller&quot;),i=t(&quot;orbit-camera-controller&quot;),a=t(&quot;matrix-camera-controller&quot;);function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map((function(e){return t[e]})),this._mode=e,this._active=t[e],this._active||(this._mode=&quot;turntable&quot;,this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;[[&quot;flush&quot;,1],[&quot;idle&quot;,1],[&quot;lookAt&quot;,4],[&quot;rotate&quot;,4],[&quot;pan&quot;,4],[&quot;translate&quot;,4],[&quot;setMatrix&quot;,2],[&quot;setDistanceLimits&quot;,2],[&quot;setDistance&quot;,2]].forEach((function(t){for(var e=t[0],r=[],n=0;n&lt;t[1];++n)r.push(&quot;a&quot;+n);var i=&quot;var cc=this._controllerList;for(var i=0;i&lt;cc.length;++i){cc[i].&quot;+t[0]+&quot;(&quot;+r.join()+&quot;)}&quot;;s[e]=Function.apply(null,r.concat(i))})),s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e&lt;0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{&quot;matrix-camera-controller&quot;:468,&quot;orbit-camera-controller&quot;:489,&quot;turntable-camera-controller&quot;:603}],56:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;),t(&quot;elementary-circuits-directed-graph&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&amp;&amp;i.hasOwnProperty(&quot;default&quot;)?i.default:i;var l=&quot;function&quot;==typeof Symbol&amp;&amp;&quot;symbol&quot;==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;&quot;function&quot;==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?&quot;symbol&quot;:typeof t};function c(t,e){return f(t.source,e.source)||t.index-e.index}function u(t,e){return f(t.target,e.target)||t.index-e.index}function f(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:&quot;top&quot;===t.circularLinkType||&quot;bottom&quot;===e.circularLinkType?-1:1}function h(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function g(t){return p(t.target)}function m(t){return t.index}function v(t){return t.nodes}function y(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function b(t,e){return e(t)}function _(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o&lt;t.links.length;o++){var s=t.links[o],l=s.source.index,c=s.target.index;a[l]||(a[l]=[]),a[c]||(a[c]=[]),-1===a[l].indexOf(c)&amp;&amp;a[l].push(c)}var u=i(a);u.sort((function(t,e){return t.length-e.length}));var f={};for(o=0;o&lt;u.length;o++){var h=u[o].slice(-2);f[h[0]]||(f[h[0]]={}),f[h[0]][h[1]]=!0}t.links.forEach((function(t){var e=t.target.index,r=t.source.index;e===r||f[r]&amp;&amp;f[r][e]?(t.circular=!0,t.circularLinkID=n,n+=1):t.circular=!1}))}else t.links.forEach((function(t){t.source[r]&lt;t.target[r]?t.circular=!1:(t.circular=!0,t.circularLinkID=n,n+=1)}))}function w(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&amp;&amp;(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=r&lt;n?&quot;top&quot;:&quot;bottom&quot;,&quot;top&quot;==i.circularLinkType?r+=1:n+=1,t.nodes.forEach((function(t){b(t,e)!=b(i.source,e)&amp;&amp;b(t,e)!=b(i.target,e)||(t.circularLinkType=i.circularLinkType)})))})),t.links.forEach((function(t){t.circular&amp;&amp;(t.source.circularLinkType==t.target.circularLinkType&amp;&amp;(t.circularLinkType=t.source.circularLinkType),H(t,e)&amp;&amp;(t.circularLinkType=t.source.circularLinkType))}))}function T(t){var e=Math.abs(t.y1-t.y0),r=Math.abs(t.target.x0-t.source.x1);return Math.atan(r/e)}function k(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&amp;&amp;!H(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&amp;&amp;!H(t,e)?n+1:n})),r+n}function A(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r&gt;1||i&gt;1)}function M(t,e,r){return t.sort(E),t.forEach((function(n,i){var a,o,s=0;if(H(n,r)&amp;&amp;A(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;l&lt;i;l++)if(a=t[i],o=t[l],!(a.source.column&lt;o.target.column||a.target.column&gt;o.source.column)){var c=t[l].circularPathData.verticalBuffer+t[l].width/2+e;s=c&gt;s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),t}function S(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&amp;&amp;(t.circularPathData={})})),M(t.links.filter((function(t){return&quot;top&quot;==t.circularLinkType})),r,a),M(t.links.filter((function(t){return&quot;bottom&quot;==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+10,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,H(e,a)&amp;&amp;A(e))e.circularPathData.leftSmallArcRadius=10+e.width/2,e.circularPathData.leftLargeArcRadius=10+e.width/2,e.circularPathData.rightSmallArcRadius=10+e.width/2,e.circularPathData.rightLargeArcRadius=10+e.width/2,&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,c=t.links.filter((function(t){return t.source.column==s&amp;&amp;t.circularLinkType==l}));&quot;bottom&quot;==e.circularLinkType?c.sort(C):c.sort(L);var u=0;c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.leftSmallArcRadius=10+e.width/2+u,e.circularPathData.leftLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),s=e.target.column,c=t.links.filter((function(t){return t.target.column==s&amp;&amp;t.circularLinkType==l})),&quot;bottom&quot;==e.circularLinkType?c.sort(I):c.sort(P),u=0,c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.rightSmallArcRadius=10+e.width/2+u,e.circularPathData.rightLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){var e=&quot;&quot;;e=&quot;top&quot;==t.circularLinkType?&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY:&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY;return e}(e);else{var f=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=f(e)}}))}function E(t,e){return O(t)==O(e)?&quot;bottom&quot;==t.circularLinkType?C(t,e):L(t,e):O(e)-O(t)}function L(t,e){return t.y0-e.y0}function C(t,e){return e.y0-t.y0}function P(t,e){return t.y1-e.y1}function I(t,e){return e.y1-t.y1}function O(t){return t.target.column-t.source.column}function z(t){return t.target.x0-t.source.x1}function D(t,e){var r=T(t),n=z(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1+n:t.y1-n}function R(t,e){var r=T(t),n=z(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1-n:t.y1+n}function F(t,e,r,n){t.links.forEach((function(i){if(!i.circular&amp;&amp;i.target.column-i.source.column&gt;1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a&lt;=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),h=3*u*Math.pow(1-u,2),p=3*Math.pow(u,2)*(1-u),d=Math.pow(u,3),g=f*i.y0+h*i.y0+p*i.y1+d*i.y1,m=g-i.width/2,v=g+i.width/2;m&gt;o.y0&amp;&amp;m&lt;o.y1?(c=o.y1-m+10,c=&quot;bottom&quot;==o.circularLinkType?c:-c,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;B(o,t)&amp;&amp;N(t,c,e,r)}))):(v&gt;o.y0&amp;&amp;v&lt;o.y1||m&lt;o.y0&amp;&amp;v&gt;o.y1)&amp;&amp;(c=v-o.y0+10,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;t.y0&lt;o.y1&amp;&amp;t.y1&gt;o.y1&amp;&amp;N(t,c,e,r)})))}}))}}))}function B(t,e){return t.y0&gt;e.y0&amp;&amp;t.y0&lt;e.y1||(t.y1&gt;e.y0&amp;&amp;t.y1&lt;e.y1||t.y0&lt;e.y0&amp;&amp;t.y1&gt;e.y1)}function N(t,e,r,n){return t.y0+e&gt;=r&amp;&amp;t.y1+e&lt;=n&amp;&amp;(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function j(t,e,r,n){t.nodes.forEach((function(i){n&amp;&amp;i.y+(i.y1-i.y0)&gt;e&amp;&amp;(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return b(t.source,r)==b(i,r)})),o=a.length;o&gt;1&amp;&amp;a.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!V(t,e))return t.y1-e.y1;if(t.target.column&gt;e.target.column){var r=R(e,t);return t.y1-r}if(e.target.column&gt;t.target.column)return R(t,e)-e.y1}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if(&quot;bottom&quot;==t.circularLinkType){for(var r=e+1,n=0;r&lt;o;r++)n+=a[r].width;t.y0=i.y1-n-t.width/2}}))}))}function U(t,e,r){t.nodes.forEach((function(e){var n=t.links.filter((function(t){return b(t.target,r)==b(e,r)})),i=n.length;i&gt;1&amp;&amp;n.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!V(t,e))return t.y0-e.y0;if(e.source.column&lt;t.source.column){var r=D(e,t);return t.y0-r}if(t.source.column&lt;e.source.column)return D(t,e)-e.y0}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:t.source.column-e.source.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:e.source.column-t.source.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var a=e.y0;n.forEach((function(t){t.y1=a+t.width/2,a+=t.width})),n.forEach((function(t,r){if(&quot;bottom&quot;==t.circularLinkType){for(var a=r+1,o=0;a&lt;i;a++)o+=n[a].width;t.y1=e.y1-o-t.width/2}}))}))}function V(t,e){return q(t)==q(e)}function q(t){return t.y0-t.y1&gt;0?&quot;up&quot;:&quot;down&quot;}function H(t,e){return b(t.source,e)==b(t.target,e)}function G(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){&quot;top&quot;==t.circularLinkType?o=!0:&quot;bottom&quot;==t.circularLinkType&amp;&amp;(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=function(){var t,n,i=0,a=0,b=1,T=1,A=24,M=m,E=o,L=v,C=y,P=32,I=2,O=null;function z(){var t={nodes:L.apply(null,arguments),links:C.apply(null,arguments)};D(t),_(t,M,O),R(t),B(t),w(t,M),N(t,P,M),V(t);for(var e=4,r=0;r&lt;e;r++)j(t,T,M),U(t,T,M),F(t,a,T,M),j(t,T,M),U(t,T,M);return G(t,a,T),S(t,I,T,M),t}function D(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,M);return t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!==(void 0===n?&quot;undefined&quot;:l(n))&amp;&amp;(n=t.source=x(e,n)),&quot;object&quot;!==(void 0===i?&quot;undefined&quot;:l(i))&amp;&amp;(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),t}function R(t){t.nodes.forEach((function(t){t.partOfCycle=!1,t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h)),t.sourceLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)})),t.targetLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)}))}))}function B(t){var e,r,n;for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.depth=n,t.sourceLinks.forEach((function(t){r.indexOf(t.target)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.target)}))}));for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.height=n,t.targetLinks.forEach((function(t){r.indexOf(t.source)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.source)}))}));t.nodes.forEach((function(t){t.column=Math.floor(E.call(null,t,n))}))}function N(o,s,l){var c=r.nest().key((function(t){return t.column})).sortKeys(e.ascending).entries(o.nodes).map((function(t){return t.values}));!function(r){if(n){var s=1/0;c.forEach((function(t){var e=T*n/(t.length+1);s=e&lt;s?e:s})),t=s}var l=e.min(c,(function(r){return(T-a-(r.length-1)*t)/e.sum(r,h)}));l*=.3,o.links.forEach((function(t){t.width=t.value*l}));var u=function(t){var r=0,n=0,i=0,a=0,o=e.max(t.nodes,(function(t){return t.column}));return t.links.forEach((function(t){t.circular&amp;&amp;(&quot;top&quot;==t.circularLinkType?r+=t.width:n+=t.width,0==t.target.column&amp;&amp;(a+=t.width),t.source.column==o&amp;&amp;(i+=t.width))})),{top:r=r&gt;0?r+25+10:r,bottom:n=n&gt;0?n+25+10:n,left:a=a&gt;0?a+25+10:a,right:i=i&gt;0?i+25+10:i}}(o),f=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),o=b-i,s=T-a,l=o/(o+r.right+r.left),c=s/(s+r.top+r.bottom);return i=i*l+r.left,b=0==r.right?b:b*l,a=a*c+r.top,T*=c,t.nodes.forEach((function(t){t.x0=i+t.column*((b-i-A)/n),t.x1=t.x0+A})),c}(o,u);l*=f,o.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&amp;&amp;1==e||0==t.depth&amp;&amp;1==e?(t.y0=T/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==k(t,r)?(t.y0=T/2+n,t.y1=t.y0+t.value*l):&quot;top&quot;==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=T-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(T-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(T-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}(l),y();for(var u=1,m=s;m&gt;0;--m)v(u*=.99,l),y();function v(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&amp;&amp;k(i,r)&gt;0);else if(0==o&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else if(o==n-1&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else{var l=e.mean(i.sourceLinks,g),c=e.mean(i.targetLinks,d),u=((l&amp;&amp;c?(l+c)/2:l||c)-p(i))*t;i.y0+=u,i.y1+=u}}))}))}function y(){c.forEach((function(e){var r,n,i,o=a,s=e.length;for(e.sort(f),i=0;i&lt;s;++i)(n=o-(r=e[i]).y0)&gt;0&amp;&amp;(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-T)&gt;0)for(o=r.y0-=n,r.y1-=n,i=s-2;i&gt;=0;--i)(n=(r=e[i]).y1+t-o)&gt;0&amp;&amp;(r.y0-=n,r.y1-=n),o=r.y0}))}}function V(t){t.nodes.forEach((function(t){t.sourceLinks.sort(u),t.targetLinks.sort(c)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return z.nodeId=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:s(t),z):M},z.nodeAlign=function(t){return arguments.length?(E=&quot;function&quot;==typeof t?t:s(t),z):E},z.nodeWidth=function(t){return arguments.length?(A=+t,z):A},z.nodePadding=function(e){return arguments.length?(t=+e,z):t},z.nodes=function(t){return arguments.length?(L=&quot;function&quot;==typeof t?t:s(t),z):L},z.links=function(t){return arguments.length?(C=&quot;function&quot;==typeof t?t:s(t),z):C},z.size=function(t){return arguments.length?(i=a=0,b=+t[0],T=+t[1],z):[b-i,T-a]},z.extent=function(t){return arguments.length?(i=+t[0][0],b=+t[1][0],a=+t[0][1],T=+t[1][1],z):[[i,a],[b,T]]},z.iterations=function(t){return arguments.length?(P=+t,z):P},z.circularLinkGap=function(t){return arguments.length?(I=+t,z):I},z.nodePaddingRatio=function(t){return arguments.length?(n=+t,z):n},z.sortNodes=function(t){return arguments.length?(O=t,z):O},z.update=function(t){return w(t,M),V(t),t.links.forEach((function(t){t.circular&amp;&amp;(t.circularLinkType=t.y0+t.y1&lt;T?&quot;top&quot;:&quot;bottom&quot;,t.source.circularLinkType=t.circularLinkType,t.target.circularLinkType=t.circularLinkType)})),j(t,T,M,!1),U(t,T,M),S(t,I,T,M),t},z},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=o,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:162,&quot;d3-collection&quot;:163,&quot;d3-shape&quot;:174,&quot;elementary-circuits-directed-graph&quot;:188}],57:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)}(this,(function(t,e,r,n){&quot;use strict&quot;;function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function o(t){return function(){return t}}function s(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function u(t){return t.value}function f(t){return(t.y0+t.y1)/2}function h(t){return f(t.source)*t.value}function p(t){return f(t.target)*t.value}function d(t){return t.index}function g(t){return t.nodes}function m(t){return t.links}function v(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function y(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}t.sankey=function(){var t=0,n=0,i=1,y=1,x=24,b=8,_=d,w=a,T=g,k=m,A=32;function M(){var t={nodes:T.apply(null,arguments),links:k.apply(null,arguments)};return S(t),E(t),L(t),C(t),P(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,_);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!=typeof n&amp;&amp;(n=t.source=v(e,n)),&quot;object&quot;!=typeof i&amp;&amp;(i=t.target=v(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}function E(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,u),e.sum(t.targetLinks,u))}))}function L(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)&lt;0&amp;&amp;n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)&lt;0&amp;&amp;n.push(t.source)}))}));var o=(i-t-x)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*o)+x}))}function C(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));!function(){var r=e.max(i,(function(t){return t.length})),a=2/3*(y-n)/(r-1);b&gt;a&amp;&amp;(b=a);var o=e.min(i,(function(t){return(y-n-(t.length-1)*b)/e.sum(t,u)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))}(),d();for(var a=1,o=A;o&gt;0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,h)/e.sum(r.targetLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(c),i=0;i&lt;o;++i)(r=a-(e=t[i]).y0)&gt;0&amp;&amp;(e.y0+=r,e.y1+=r),a=e.y1+b;if((r=a-b-y)&gt;0)for(a=e.y0-=r,e.y1-=r,i=o-2;i&gt;=0;--i)(r=(e=t[i]).y1+b-a)&gt;0&amp;&amp;(e.y0-=r,e.y1-=r),a=e.y0}))}}function P(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return M.update=function(t){return P(t),t},M.nodeId=function(t){return arguments.length?(_=&quot;function&quot;==typeof t?t:o(t),M):_},M.nodeAlign=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:o(t),M):w},M.nodeWidth=function(t){return arguments.length?(x=+t,M):x},M.nodePadding=function(t){return arguments.length?(b=+t,M):b},M.nodes=function(t){return arguments.length?(T=&quot;function&quot;==typeof t?t:o(t),M):T},M.links=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:o(t),M):k},M.size=function(e){return arguments.length?(t=n=0,i=+e[0],y=+e[1],M):[i-t,y-n]},M.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],y=+e[1][1],M):[[t,n],[i,y]]},M.iterations=function(t){return arguments.length?(A=+t,M):A},M},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(y).target(x)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:162,&quot;d3-collection&quot;:163,&quot;d3-shape&quot;:174}],58:[function(t,e,r){(function(){var t={version:&quot;3.8.0&quot;},r=[].slice,n=function(t){return r.call(t)},i=self.document;function a(t){return t&amp;&amp;(t.ownerDocument||t.document||t).documentElement}function o(t){return t&amp;&amp;(t.ownerDocument&amp;&amp;t.ownerDocument.defaultView||t.document&amp;&amp;t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(&quot;DIV&quot;).style.setProperty(&quot;opacity&quot;,0,&quot;&quot;)}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+&quot;&quot;)},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+&quot;&quot;)},u.setProperty=function(t,e,r){f.call(this,t,e+&quot;&quot;,r)}}function h(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;r&gt;n&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;r&gt;n&amp;&amp;(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;n&gt;r&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;r&amp;&amp;(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a&lt;o;)if(null!=(n=t[a])&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=t[a])&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}else{for(;++a&lt;o;)if(null!=(n=e.call(t,t[a],a))&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=e.call(t,t[a],a))&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a&lt;i;)d(r=+t[a])&amp;&amp;(n+=r);else for(;++a&lt;i;)d(r=+e.call(t,t[a],a))&amp;&amp;(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a&lt;i;)d(r=p(t[a]))?n+=r:--o;else for(;++a&lt;i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o&lt;a;)d(n=p(e[o]))&amp;&amp;i.push(n);else for(;++o&lt;a;)d(n=p(r.call(e,e[o],o)))&amp;&amp;i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s&lt;i;)d(r=p(t[s]))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s&lt;i;)d(r=p(e.call(t,t[s],s)))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));if(l&gt;1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var m=g(h);function v(t){return t.length}t.bisectLeft=m.left,t.bisect=t.bisectRight=m.right,t.bisector=function(t){return g(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)&lt;3&amp;&amp;(r=t.length,a&lt;2&amp;&amp;(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r&lt;0?0:r);e&lt;r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,v),i=new Array(n);++r&lt;n;)for(var a,o=-1,s=i[r]=new Array(a);++o&lt;a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=1,arguments.length&lt;2&amp;&amp;(e=t,t=0)),(e-t)/r==1/0)throw new Error(&quot;infinite range&quot;);var n,i=[],a=x(y(r)),o=-1;if(t*=a,e*=a,(r*=a)&lt;0)for(;(n=t+r*++o)&gt;e;)i.push(n/a);else for(;(n=t+r*++o)&lt;e;)i.push(n/a);return i},t.map=function(t,e){var r=new _;if(t instanceof _)t.forEach((function(t,e){r.set(t,e)}));else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i&lt;a;)r.set(i,t[i]);else for(;++i&lt;a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};function w(t){return&quot;__proto__&quot;==(t+=&quot;&quot;)||&quot;\0&quot;===t[0]?&quot;\0&quot;+t:t}function T(t){return&quot;\0&quot;===(t+=&quot;&quot;)[0]?t.slice(1):t}function k(t){return w(t)in this._}function A(t){return(t=w(t))in this._&amp;&amp;delete this._[t]}function M(){var t=[];for(var e in this._)t.push(T(e));return t}function S(){var t=0;for(var e in this._)++t;return t}function E(){for(var t in this._)return!1;return!0}function L(){this._=Object.create(null)}function C(t){return t}function P(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function I(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=O.length;r&lt;n;++r){var i=O[r]+e;if(i in t)return i}}b(_,{has:k,get:function(t){return this._[w(t)]},set:function(t,e){return this._[w(t)]=e},remove:A,keys:M,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:T(e),value:this._[e]});return t},size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s&gt;=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],g=new _;++h&lt;p;)(f=g.get(l=d(c=a[h])))?f.push(c):g.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),g.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r&gt;=i.length)return e;var n=[],o=a[r++];return e.forEach((function(e,i){n.push({key:e,values:t(i,r)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new L;if(t)for(var r=0,n=t.length;r&lt;n;++r)e.add(t[r]);return e},b(L,{has:k,add:function(t){return this._[w(t+=&quot;&quot;)]=!0,t},remove:A,values:M,size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n&lt;i;)t[r=arguments[n]]=P(t,e,e[r]);return t};var O=[&quot;webkit&quot;,&quot;ms&quot;,&quot;moz&quot;,&quot;Moz&quot;,&quot;o&quot;,&quot;O&quot;];function z(){}function D(){}function R(t){var e=[],r=new _;function n(){for(var r,n=e,i=-1,a=n.length;++i&lt;a;)(r=n[i].on)&amp;&amp;r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length&lt;2?o&amp;&amp;o.on:(o&amp;&amp;(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&amp;&amp;e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function B(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function N(e){for(var r=new D,n=0,i=arguments.length;++n&lt;i;)r[arguments[n]]=R(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new D,e=-1,r=arguments.length;++e&lt;r;)t[arguments[e]]=R(t);return t},D.prototype.on=function(t,e){var r=t.indexOf(&quot;.&quot;),n=&quot;&quot;;if(r&gt;=0&amp;&amp;(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length&lt;2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&amp;&amp;this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(j,&quot;\\$&amp;&quot;)};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function V(t){return U(t,Y),t}var q=function(t,e){return e.querySelector(t)},H=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var r=t.matches||t[I(t,&quot;matchesSelector&quot;)];return(G=function(t,e){return r.call(t,e)})(t,e)};&quot;function&quot;==typeof Sizzle&amp;&amp;(q=function(t,e){return Sizzle(t,e)[0]||null},H=Sizzle,G=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function W(t){return&quot;function&quot;==typeof t?t:function(){return q(t,this)}}function X(t){return&quot;function&quot;==typeof t?t:function(){return H(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=W(t);for(var o=-1,s=this.length;++o&lt;s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l&lt;c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&amp;&amp;&quot;__data__&quot;in i&amp;&amp;(r.__data__=i.__data__)):e.push(null)}return V(a)},Y.selectAll=function(t){var e,r,i=[];t=X(t);for(var a=-1,o=this.length;++a&lt;o;)for(var s=this[a],l=-1,c=s.length;++l&lt;c;)(r=s[l])&amp;&amp;(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return V(i)};var Z=&quot;http://www.w3.org/1999/xhtml&quot;,J={svg:&quot;http://www.w3.org/2000/svg&quot;,xhtml:Z,xlink:&quot;http://www.w3.org/1999/xlink&quot;,xml:&quot;http://www.w3.org/XML/1998/namespace&quot;,xmlns:&quot;http://www.w3.org/2000/xmlns/&quot;};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:&quot;function&quot;==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\s+/g,&quot; &quot;)}function $(e){return new RegExp(&quot;(?:^|\\s+)&quot;+t.requote(e)+&quot;(?:\\s+|$)&quot;,&quot;g&quot;)}function tt(t){return(t+&quot;&quot;).trim().split(/^|\s+/)}function et(t,e){var r=(t=tt(t).map(rt)).length;return&quot;function&quot;==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n&lt;r;)t[n](this,i)}:function(){for(var n=-1;++n&lt;r;)t[n](this,e)}}function rt(t){var e=$(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(&quot;class&quot;)||&quot;&quot;;n?(e.lastIndex=0,e.test(i)||r.setAttribute(&quot;class&quot;,Q(i+&quot; &quot;+t))):r.setAttribute(&quot;class&quot;,Q(i.replace(e,&quot; &quot;)))}}function nt(t,e,r){return null==e?function(){this.style.removeProperty(t)}:&quot;function&quot;==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function it(t,e){return null==e?function(){delete this[t]}:&quot;function&quot;==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function at(e){return&quot;function&quot;==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Z&amp;&amp;t.documentElement.namespaceURI===Z?t.createElement(e):t.createElementNS(r,e)}}function ot(){var t=this.parentNode;t&amp;&amp;t.removeChild(this)}function st(t){return{__data__:t}}function lt(t){return function(){return G(this,t)}}function ct(t){return arguments.length||(t=h),function(e,r){return e&amp;&amp;r?t(e.__data__,r.__data__):!e-!r}}function ut(t,e){for(var r=0,n=t.length;r&lt;n;r++)for(var i,a=t[r],o=0,s=a.length;o&lt;s;o++)(i=a[o])&amp;&amp;e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(&quot;:&quot;),r=t;return e&gt;=0&amp;&amp;&quot;xmlns&quot;!==(r=t.slice(0,e))&amp;&amp;(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length&lt;2){if(&quot;string&quot;==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t){var r=this.node(),n=(t=tt(t)).length,i=-1;if(e=r.classList){for(;++i&lt;n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(&quot;class&quot;);++i&lt;n;)if(!$(t[i]).test(e))return!1;return!0}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.each(nt(r,t[r],e));return this}if(n&lt;2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=&quot;&quot;}return this.each(nt(t,e,r))},Y.property=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t)return this.node()[t];for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},Y.text=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?&quot;&quot;:e}:null==t?function(){this.textContent=&quot;&quot;}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?&quot;&quot;:e}:null==t?function(){this.innerHTML=&quot;&quot;}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=at(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},Y.insert=function(t,e){return t=at(t),e=W(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},Y.remove=function(){return this.each(ot)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i&lt;a;)(n=r[i])&amp;&amp;(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var g,m=new _,v=new Array(o);for(n=-1;++n&lt;o;)(i=t[n])&amp;&amp;(m.has(g=e.call(i,i.__data__,n))?d[n]=i:m.set(g,i),v[n]=g);for(n=-1;++n&lt;u;)(i=m.get(g=e.call(r,a=r[n],n)))?!0!==i&amp;&amp;(h[n]=i,i.__data__=a):p[n]=st(a),m.set(g,!0);for(n=-1;++n&lt;o;)n in v&amp;&amp;!0!==m.get(v[n])&amp;&amp;(d[n]=t[n])}else{for(n=-1;++n&lt;f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=st(a);for(;n&lt;u;++n)p[n]=st(r[n]);for(;n&lt;o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=V([]),c=V([]);if(&quot;function&quot;==typeof t)for(;++i&lt;a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i&lt;a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(&quot;__data__&quot;,t):this.property(&quot;__data__&quot;)},Y.filter=function(t){var e,r,n,i=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var a=0,o=this.length;a&lt;o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s&lt;l;s++)(n=r[s])&amp;&amp;t.call(n,n.__data__,s,a)&amp;&amp;e.push(n)}return V(i)},Y.order=function(){for(var t=-1,e=this.length;++t&lt;e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i&gt;=0;)(r=n[i])&amp;&amp;(a&amp;&amp;a!==r.nextSibling&amp;&amp;a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=ct.apply(this,arguments);for(var e=-1,r=this.length;++e&lt;r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,(function(e,r,n){t.call(e,e.__data__,r,n)}))},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t&lt;e;t++)for(var r=this[t],n=0,i=r.length;n&lt;i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,(function(){++t})),t};var ht=[];function pt(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&amp;&amp;(r=a,e=0),i&gt;=e&amp;&amp;(e=i+1);!(o=s[e])&amp;&amp;++e&lt;l;);return o}}function dt(e,r,i){var a=&quot;__on&quot;+e,o=e.indexOf(&quot;.&quot;),s=mt;o&gt;0&amp;&amp;(e=e.slice(0,o));var l=gt.get(e);function c(){var t=this[a];t&amp;&amp;(this.removeEventListener(e,t,t.$),delete this[a])}return l&amp;&amp;(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?z:function(){var r,n=new RegExp(&quot;^__on([^.]+)&quot;+t.requote(e)+&quot;$&quot;);for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s&lt;l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c&lt;u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return V(o)},ht.insert=function(t,e){return arguments.length&lt;2&amp;&amp;(e=pt(this)),Y.insert.call(this,t,e)},t.select=function(t){var e;return&quot;string&quot;==typeof t?(e=[q(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),V([e])},t.selectAll=function(t){var e;return&quot;string&quot;==typeof t?(e=n(H(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,V([e])},Y.on=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=!1),t)this.each(dt(r,t[r],e));return this}if(n&lt;2)return(n=this.node()[&quot;__on&quot;+t])&amp;&amp;n._;r=!1}return this.each(dt(t,e,r))};var gt=t.map({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;});function mt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=mt(t,e);return function(t){var e=t.relatedTarget;e&amp;&amp;(e===this||8&amp;e.compareDocumentPosition(this))||r.call(this,t)}}i&amp;&amp;gt.forEach((function(t){&quot;on&quot;+t in i&amp;&amp;gt.remove(t)}));var yt,xt=0;function bt(e){var r=&quot;.dragsuppress-&quot;+ ++xt,n=&quot;click&quot;+r,i=t.select(o(e)).on(&quot;touchmove&quot;+r,F).on(&quot;dragstart&quot;+r,F).on(&quot;selectstart&quot;+r,F);if(null==yt&amp;&amp;(yt=!(&quot;onselectstart&quot;in e)&amp;&amp;I(e.style,&quot;userSelect&quot;)),yt){var s=a(e).style,l=s[yt];s[yt]=&quot;none&quot;}return function(t){if(i.on(r,null),yt&amp;&amp;(s[yt]=l),t){var e=function(){i.on(n,null)};i.on(n,(function(){F(),e()}),!0),setTimeout(e,0)}}}t.mouse=function(t){return wt(t,B())};var _t=this.navigator&amp;&amp;/WebKit/.test(this.navigator.userAgent)?-1:0;function wt(e,r){r.changedTouches&amp;&amp;(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(_t&lt;0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(&quot;body&quot;).append(&quot;svg&quot;).style({position:&quot;absolute&quot;,top:0,left:0,margin:0,padding:0,border:&quot;none&quot;},&quot;important&quot;))[0][0].getScreenCTM();_t=!(s.f||s.e),n.remove()}}return _t?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function Tt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=e,e=B().changedTouches),e)for(var n,i=0,a=e.length;i&lt;a;++i)if((n=e[i]).identifier===r)return wt(t,n)},t.behavior.drag=function(){var e=N(a,&quot;drag&quot;,&quot;dragstart&quot;,&quot;dragend&quot;),r=null,n=s(z,t.mouse,o,&quot;mousemove&quot;,&quot;mouseup&quot;),i=s(Tt,t.touch,C,&quot;touchmove&quot;,&quot;touchend&quot;);function a(){this.on(&quot;mousedown.drag&quot;,n).on(&quot;touchstart.drag&quot;,i)}function s(n,i,a,o,s){return function(){var l,c=this,u=t.event.target.correspondingElement||t.event.target,f=c.parentNode,h=e.of(c,arguments),p=0,d=n(),g=&quot;.drag&quot;+(null==d?&quot;&quot;:&quot;-&quot;+d),m=t.select(a(u)).on(o+g,x).on(s+g,b),v=bt(u),y=i(f,d);function x(){var t,e,r=i(f,d);r&amp;&amp;(t=r[0]-y[0],e=r[1]-y[1],p|=t|e,y=r,h({type:&quot;drag&quot;,x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function b(){i(f,d)&amp;&amp;(m.on(o+g,null).on(s+g,null),v(p),h({type:&quot;dragend&quot;}))}l=r?[(l=r.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],h({type:&quot;dragstart&quot;})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,&quot;on&quot;)},t.touches=function(t,e){return arguments.length&lt;2&amp;&amp;(e=B().touches),e?n(e).map((function(e){var r=wt(t,e);return r.identifier=e.identifier,r})):[]};var kt=1e-6,At=Math.PI,Mt=2*At,St=Mt-kt,Et=At/2,Lt=At/180,Ct=180/At;function Pt(t){return t&gt;1?Et:t&lt;-1?-Et:Math.asin(t)}function It(t){return((t=Math.exp(t))+1/t)/2}var Ot=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/Ot,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Ot*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/Ot,r=function(t){var e,r=t*n,s=It(m),l=o/(2*p)*(s*(e=Ot*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/It(Ot*r+m)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=Rt,g=250,m=0,v=&quot;mousedown.zoom&quot;,y=&quot;mousemove.zoom&quot;,x=&quot;mouseup.zoom&quot;,b=&quot;touchstart.zoom&quot;,_=N(w,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;);function w(t){t.on(v,P).on(Dt+&quot;.zoom&quot;,O).on(&quot;dblclick.zoom&quot;,z).on(b,I)}function T(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(d[0],Math.min(d[1],t))}function A(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function M(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,a)),A(r=n,i),e=t.select(e),g&gt;0&amp;&amp;(e=e.transition().duration(g)),e.call(w.event)}function S(){c&amp;&amp;c.domain(l.range().map((function(t){return(t-h.x)/h.k})).map(l.invert)),f&amp;&amp;f.domain(u.range().map((function(t){return(t-h.y)/h.k})).map(u.invert))}function E(t){m++||t({type:&quot;zoomstart&quot;})}function L(t){S(),t({type:&quot;zoom&quot;,scale:h.k,translate:[h.x,h.y]})}function C(t){--m||(t({type:&quot;zoomend&quot;}),r=null)}function P(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,l).on(x,c),a=T(t.mouse(e)),s=bt(e);function l(){n=1,A(t.mouse(e),a),L(r)}function c(){i.on(y,null).on(x,null),s(n),C(r)}Di.call(e),E(r)}function I(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=&quot;.zoom-&quot;+t.event.changedTouches[0].identifier,l=&quot;touchmove&quot;+o,c=&quot;touchend&quot;+o,u=[],f=t.select(r),p=bt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach((function(t){t.identifier in i&amp;&amp;(i[t.identifier]=T(t))})),n}function g(){var e=t.event.target;t.select(e).on(l,m).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o&lt;f;++o)i[n[o].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-s&lt;500){var v=p[0];M(r,v,i[v.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=g}else if(p.length&gt;1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];a=b*b+_*_}}function m(){var o,l,c,u,f=t.touches(r);Di.call(r);for(var h=0,p=f.length;h&lt;p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,g=a&amp;&amp;Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],k(g*e)}s=null,A(o,l),L(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r&lt;a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(v,P).on(b,I),p(),C(n)}g(),E(n),f.on(v,null).on(b,g)}function O(){var i=_.of(this,arguments);a?clearTimeout(a):(Di.call(this),e=T(r=n||t.mouse(this)),E(i)),a=setTimeout((function(){a=null,C(i)}),50),F(),k(Math.pow(2,.002*zt())*h.k),A(r,e),L(i)}function z(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;M(this,e,T(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return Dt||(Dt=&quot;onwheel&quot;in i?(zt=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},&quot;wheel&quot;):&quot;onmousewheel&quot;in i?(zt=function(){return t.event.wheelDelta},&quot;mousewheel&quot;):(zt=function(){return-t.event.detail},&quot;MozMousePixelScroll&quot;)),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=h;Bi?t.select(this).transition().each(&quot;start.zoom&quot;,(function(){h=this.__chart__||{x:0,y:0,k:1},E(e)})).tween(&quot;zoom:zoom&quot;,(function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},L(e)}})).each(&quot;interrupt.zoom&quot;,(function(){C(e)})).each(&quot;end.zoom&quot;,(function(){C(e)})):(this.__chart__=h,E(e),L(e),C(e))}))},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},k(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?Rt:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&amp;&amp;[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&amp;&amp;[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,&quot;on&quot;)};var zt,Dt,Rt=[0,1/0];function Ft(){}function Bt(t,e,r){return this instanceof Bt?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length&lt;2?t instanceof Bt?new Bt(t.h,t.s,t.l):ne(&quot;&quot;+t,ie,Bt):new Bt(t,e,r)}t.color=Ft,Ft.prototype.toString=function(){return this.rgb()+&quot;&quot;},t.hsl=Bt;var Nt=Bt.prototype=new Ft;function jt(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t&gt;360?t-=360:t&lt;0&amp;&amp;(t+=360),t&lt;60?n+(i-n)*t/60:t&lt;180?i:t&lt;240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)&lt;0?t+360:t,e=isNaN(e)||e&lt;0?0:e&gt;1?1:e,n=2*(r=r&lt;0?0:r&gt;1?1:r)-(i=r&lt;=.5?r*(1+e):r+e-r*e),new Qt(a(t+120),a(t),a(t-120))}function Ut(e,r,n){return this instanceof Ut?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length&lt;2?e instanceof Ut?new Ut(e.h,e.c,e.l):Xt(e instanceof Ht?e.l:(e=ae((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ut(e,r,n)}Nt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Bt(this.h,this.s,this.l/t)},Nt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Bt(this.h,this.s,t*this.l)},Nt.rgb=function(){return jt(this.h,this.s,this.l)},t.hcl=Ut;var Vt=Ut.prototype=new Ft;function qt(t,e,r){return isNaN(t)&amp;&amp;(t=0),isNaN(e)&amp;&amp;(e=0),new Ht(r,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function Ht(t,e,r){return this instanceof Ht?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length&lt;2?t instanceof Ht?new Ht(t.l,t.a,t.b):t instanceof Ut?qt(t.h,t.c,t.l):ae((t=Qt(t)).r,t.g,t.b):new Ht(t,e,r)}Vt.brighter=function(t){return new Ut(this.h,this.c,Math.min(100,this.l+Gt*(arguments.length?t:1)))},Vt.darker=function(t){return new Ut(this.h,this.c,Math.max(0,this.l-Gt*(arguments.length?t:1)))},Vt.rgb=function(){return qt(this.h,this.c,this.l).rgb()},t.lab=Ht;var Gt=18,Yt=Ht.prototype=new Ft;function Wt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new Qt(Kt(3.2404542*(i=.95047*Zt(i))-1.5371385*(n=1*Zt(n))-.4985314*(a=1.08883*Zt(a))),Kt(-.969266*i+1.8760108*n+.041556*a),Kt(.0556434*i-.2040259*n+1.0572252*a))}function Xt(t,e,r){return t&gt;0?new Ut(Math.atan2(r,e)*Ct,Math.sqrt(e*e+r*r),t):new Ut(NaN,NaN,t)}function Zt(t){return t&gt;.206893034?t*t*t:(t-4/29)/7.787037}function Jt(t){return t&gt;.008856?Math.pow(t,1/3):7.787037*t+4/29}function Kt(t){return Math.round(255*(t&lt;=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Qt(t,e,r){return this instanceof Qt?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length&lt;2?t instanceof Qt?new Qt(t.r,t.g,t.b):ne(&quot;&quot;+t,Qt,jt):new Qt(t,e,r)}function $t(t){return new Qt(t&gt;&gt;16,t&gt;&gt;8&amp;255,255&amp;t)}function te(t){return $t(t)+&quot;&quot;}Yt.brighter=function(t){return new Ht(Math.min(100,this.l+Gt*(arguments.length?t:1)),this.a,this.b)},Yt.darker=function(t){return new Ht(Math.max(0,this.l-Gt*(arguments.length?t:1)),this.a,this.b)},Yt.rgb=function(){return Wt(this.l,this.a,this.b)},t.rgb=Qt;var ee=Qt.prototype=new Ft;function re(t){return t&lt;16?&quot;0&quot;+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ne(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(&quot;,&quot;),n[1]){case&quot;hsl&quot;:return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case&quot;rgb&quot;:return e(se(i[0]),se(i[1]),se(i[2]))}return(a=le.get(t))?e(a.r,a.g,a.b):(null==t||&quot;#&quot;!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&amp;a)&gt;&gt;4,o|=o&gt;&gt;4,s=240&amp;a,s|=s&gt;&gt;4,l=15&amp;a,l|=l&lt;&lt;4):7===t.length&amp;&amp;(o=(16711680&amp;a)&gt;&gt;16,s=(65280&amp;a)&gt;&gt;8,l=255&amp;a)),e(o,s,l))}function ie(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l&lt;.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e&lt;r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l&gt;0&amp;&amp;l&lt;1?0:n),new Bt(n,i,l)}function ae(t,e,r){var n=Jt((.4124564*(t=oe(t))+.3575761*(e=oe(e))+.1804375*(r=oe(r)))/.95047),i=Jt((.2126729*t+.7151522*e+.072175*r)/1);return Ht(116*i-16,500*(n-i),200*(i-Jt((.0193339*t+.119192*e+.9503041*r)/1.08883)))}function oe(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function se(t){var e=parseFloat(t);return&quot;%&quot;===t.charAt(t.length-1)?Math.round(2.55*e):e}ee.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&amp;&amp;e&lt;i&amp;&amp;(e=i),r&amp;&amp;r&lt;i&amp;&amp;(r=i),n&amp;&amp;n&lt;i&amp;&amp;(n=i),new Qt(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new Qt(i,i,i)},ee.darker=function(t){return new Qt((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},ee.hsl=function(){return ie(this.r,this.g,this.b)},ee.toString=function(){return&quot;#&quot;+re(this.r)+re(this.g)+re(this.b)};var le=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function ce(t){return&quot;function&quot;==typeof t?t:function(){return t}}function ue(t){return function(e,r,n){return 2===arguments.length&amp;&amp;&quot;function&quot;==typeof r&amp;&amp;(n=r,r=null),fe(e,r,t,n)}}function fe(e,r,i,a){var o={},s=t.dispatch(&quot;beforesend&quot;,&quot;progress&quot;,&quot;load&quot;,&quot;error&quot;),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&amp;&amp;function(t){var e=t.responseType;return e&amp;&amp;&quot;text&quot;!==e?t.response:t.responseText}(c)||e&gt;=200&amp;&amp;e&lt;300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return self.XDomainRequest&amp;&amp;!(&quot;withCredentials&quot;in c)&amp;&amp;/^(http(s)?:)?\/\//.test(e)&amp;&amp;(c=new XDomainRequest),&quot;onload&quot;in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState&gt;3&amp;&amp;f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+&quot;&quot;).toLowerCase(),arguments.length&lt;2?l[t]:(null==e?delete l[t]:l[t]=e+&quot;&quot;,o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+&quot;&quot;,o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[&quot;get&quot;,&quot;post&quot;].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&amp;&amp;&quot;function&quot;==typeof n&amp;&amp;(i=n,n=null),c.open(t,e,!0),null==r||&quot;accept&quot;in l||(l.accept=r+&quot;,*/*&quot;),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&amp;&amp;c.overrideMimeType&amp;&amp;c.overrideMimeType(r),null!=u&amp;&amp;(c.responseType=u),null!=i&amp;&amp;o.on(&quot;error&quot;,i).on(&quot;load&quot;,(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,&quot;on&quot;),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}le.forEach((function(t,e){le.set(t,$t(e))})),t.functor=ce,t.xhr=ue(C),t.dsv=function(t,e){var r=new RegExp('[&quot;'+t+&quot;\n]&quot;),n=t.charCodeAt(0);function i(t,r,n){arguments.length&lt;3&amp;&amp;(n=r,r=null);var i=fe(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'&quot;'+t.replace(/\&quot;/g,'&quot;&quot;')+'&quot;':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=function(e){for(var r={},n=t.length,i=0;i&lt;n;++i)r[t[i]]=e[i];return r};r=e?function(t,r){return e(i(t),r)}:i}))},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c&gt;=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++&lt;l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&amp;&amp;++c):10===s&amp;&amp;(i=!0),t.slice(e+1,r).replace(/&quot;&quot;/g,'&quot;')}for(;c&lt;l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&amp;&amp;(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&amp;&amp;r!==o;)h.push(r),r=f();e&amp;&amp;null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new L,n=[];return e.forEach((function(t){for(var e in t)r.has(e)||n.push(r.add(e))})),[n.map(l).join(t)].concat(e.map((function(e){return n.map((function(t){return l(e[t])})).join(t)}))).join(&quot;\n&quot;)},i.formatRows=function(t){return t.map(s).join(&quot;\n&quot;)},i},t.csv=t.dsv(&quot;,&quot;,&quot;text/csv&quot;),t.tsv=t.dsv(&quot;\t&quot;,&quot;text/tab-separated-values&quot;);var he,pe,de,ge,me=this[I(this,&quot;requestAnimationFrame&quot;)]||function(t){setTimeout(t,17)};function ve(t,e,r){var n=arguments.length;n&lt;2&amp;&amp;(e=0),n&lt;3&amp;&amp;(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return pe?pe.n=a:he=a,pe=a,de||(ge=clearTimeout(ge),de=1,me(ye)),a}function ye(){var t=xe(),e=be()-t;e&gt;24?(isFinite(e)&amp;&amp;(clearTimeout(ge),ge=setTimeout(ye,e)),de=0):(de=1,me(ye))}function xe(){for(var t=Date.now(),e=he;e;)t&gt;=e.t&amp;&amp;e.c(t-e.t)&amp;&amp;(e.c=null),e=e.n;return t}function be(){for(var t,e=he,r=1/0;e;)e.c?(e.t&lt;r&amp;&amp;(r=e.t),e=(t=e).n):e=t?t.n=e.n:he=e.n;return pe=t,r}function _e(t){return t[0]}function we(t){return t[1]}function Te(t){for(var e,r,n,i=t.length,a=[0,1],o=2,s=2;s&lt;i;s++){for(;o&gt;1&amp;&amp;(e=t[a[o-2]],r=t[a[o-1]],n=t[s],(r[0]-e[0])*(n[1]-e[1])-(r[1]-e[1])*(n[0]-e[0])&lt;=0);)--o;a[o++]=s}return a.slice(0,o)}function ke(t,e){return t[0]-e[0]||t[1]-e[1]}t.timer=function(){ve.apply(this,arguments)},t.timer.flush=function(){xe(),be()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)},t.geom={},t.geom.hull=function(t){var e=_e,r=we;if(arguments.length)return n(t);function n(t){if(t.length&lt;3)return[];var n,i=ce(e),a=ce(r),o=t.length,s=[],l=[];for(n=0;n&lt;o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ke),n=0;n&lt;o;n++)l.push([s[n][0],-s[n][1]]);var c=Te(s),u=Te(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n&gt;=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n&lt;u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,Ae),t};var Ae=t.geom.polygon.prototype=[];function Me(t,e,r){return(r[0]-e[0])*(t[1]-e[1])&lt;(r[1]-e[1])*(t[0]-e[0])}function Se(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function Ee(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}Ae.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e&lt;r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},Ae.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n&lt;i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},Ae.clip=function(t){for(var e,r,n,i,a,o,s=Ee(t),l=-1,c=this.length-Ee(this),u=this[c-1];++l&lt;c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r&lt;n;)Me(o=e[r],u,i)?(Me(a,u,i)||t.push(Se(a,o,u,i)),t.push(o)):Me(a,u,i)&amp;&amp;t.push(Se(a,o,u,i)),a=o;s&amp;&amp;t.push(t[0]),u=i}return t};var Le,Ce,Pe,Ie,Oe,ze=[],De=[];function Re(){er(this),this.edge=this.site=this.circle=null}function Fe(t){var e=ze.pop()||new Re;return e.site=t,e}function Be(t){We(t),Pe.remove(t),ze.push(t),er(t)}function Ne(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];Be(t);for(var l=a;l.circle&amp;&amp;y(r-l.circle.x)&lt;kt&amp;&amp;y(n-l.circle.cy)&lt;kt;)a=l.P,s.unshift(l),Be(l),l=a;s.unshift(l),We(l);for(var c=o;c.circle&amp;&amp;y(r-c.circle.x)&lt;kt&amp;&amp;y(n-c.circle.cy)&lt;kt;)o=c.N,s.push(c),Be(c),c=o;s.push(c),We(c);var u,f=s.length;for(u=1;u&lt;f;++u)c=s[u],l=s[u-1],Qe(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Je(l.site,c.site,null,i),Ye(l),Ye(c)}function je(t){for(var e,r,n,i,a=t.x,o=t.y,s=Pe._;s;)if((n=Ue(s,o)-a)&gt;kt)s=s.L;else{if(!((i=a-Ve(s,o))&gt;kt)){n&gt;-kt?(e=s.P,r=s):i&gt;-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=Fe(t);if(Pe.insert(e,l),e||r){if(e===r)return We(e),r=Fe(e.site),Pe.insert(l,r),l.edge=r.edge=Je(e.site,l.site),Ye(e),void Ye(r);if(r){We(e),We(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,g=d.x-u,m=d.y-f,v=2*(h*m-p*g),y=h*h+p*p,x=g*g+m*m,b={x:(m*y-p*x)/v+u,y:(h*x-g*y)/v+f};Qe(r.edge,c,d,b),l.edge=Je(c,t,null,b),r.edge=Je(t,d,null,b),Ye(e),Ye(r)}else l.edge=Je(e.site,l.site)}}function Ue(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function Ve(t,e){var r=t.N;if(r)return Ue(r,e);var n=t.site;return n.y===e?n.x:1/0}function qe(t){this.site=t,this.edges=[]}function He(t,e){return e.angle-t.angle}function Ge(){er(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ye(t){var e=t.P,r=t.N;if(e&amp;&amp;r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(m=a.y-s)-c*u);if(!(f&gt;=-1e-12)){var h=l*l+c*c,p=u*u+m*m,d=(m*h-c*p)/f,g=(l*p-u*h)/f,m=g+s,v=De.pop()||new Ge;v.arc=t,v.site=i,v.x=d+o,v.y=m+Math.sqrt(d*d+g*g),v.cy=m,t.circle=v;for(var y=null,x=Oe._;x;)if(v.y&lt;x.y||v.y===x.y&amp;&amp;v.x&lt;=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}Oe.insert(y,v),y||(Ie=v)}}}}function We(t){var e=t.circle;e&amp;&amp;(e.P||(Ie=e.N),Oe.remove(e),De.push(e),er(e),t.circle=null)}function Xe(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,g=f.y,m=(h+d)/2,v=(p+g)/2;if(g===p){if(m&lt;o||m&gt;=s)return;if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:m,y:l};r={x:m,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:m,y:c};r={x:m,y:l}}}else if(i=v-(n=(h-d)/(g-p))*m,n&lt;-1||n&gt;1)if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p&lt;g){if(a){if(a.x&gt;=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x&lt;o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Ze(t,e){this.l=t,this.r=e,this.a=this.b=null}function Je(t,e,r,n){var i=new Ze(t,e);return Le.push(i),r&amp;&amp;Qe(i,t,e,r),n&amp;&amp;Qe(i,e,t,n),Ce[t.i].edges.push(new $e(i,t,e)),Ce[e.i].edges.push(new $e(i,e,t)),i}function Ke(t,e,r){var n=new Ze(t,null);return n.a=e,n.b=r,Le.push(n),n}function Qe(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function $e(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function tr(){this._=null}function er(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function rr(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&amp;&amp;(r.R.U=r),n.L=r}function nr(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&amp;&amp;(r.L.U=r),n.R=r}function ir(t){for(;t.L;)t=t.L;return t}function ar(t,e){var r,n,i,a=t.sort(or).pop();for(Le=[],Ce=new Array(t.length),Pe=new tr,Oe=new tr;;)if(i=Ie,a&amp;&amp;(!i||a.y&lt;i.y||a.y===i.y&amp;&amp;a.x&lt;i.x))a.x===r&amp;&amp;a.y===n||(Ce[a.i]=new qe(a),je(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;Ne(i.arc)}e&amp;&amp;(function(t){for(var e,r,n,i,a,o=Le,s=(r=t[0][0],n=t[0][1],i=t[1][0],a=t[1][1],function(t){var e,o=t.a,s=t.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(e=r-l,h||!(e&gt;0)){if(e/=h,h&lt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}else if(h&gt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}if(e=i-l,h||!(e&lt;0)){if(e/=h,h&lt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}else if(h&gt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}if(e=n-c,p||!(e&gt;0)){if(e/=p,p&lt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}else if(p&gt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}if(e=a-c,p||!(e&lt;0)){if(e/=p,p&lt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}else if(p&gt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}return u&gt;0&amp;&amp;(t.a={x:l+u*h,y:c+u*p}),f&lt;1&amp;&amp;(t.b={x:l+f*h,y:c+f*p}),t}}}}}),l=o.length;l--;)(!Xe(e=o[l],t)||!s(e)||y(e.a.x-e.b.x)&lt;kt&amp;&amp;y(e.a.y-e.b.y)&lt;kt)&amp;&amp;(e.a=e.b=null,o.splice(l,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=Ce,m=g.length;m--;)if((a=g[m])&amp;&amp;a.prepare())for(l=(s=a.edges).length,o=0;o&lt;l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)&gt;kt||y(i-r)&gt;kt)&amp;&amp;(s.splice(o,0,new $e(Ke(a.site,u,y(n-f)&lt;kt&amp;&amp;d-i&gt;kt?{x:f,y:y(e-f)&lt;kt?r:d}:y(i-d)&lt;kt&amp;&amp;h-n&gt;kt?{x:y(r-d)&lt;kt?e:h,y:d}:y(n-h)&lt;kt&amp;&amp;i-p&gt;kt?{x:h,y:y(e-h)&lt;kt?r:p}:y(i-p)&lt;kt&amp;&amp;n-f&gt;kt?{x:y(r-p)&lt;kt?e:f,y:p}:null),a.site,null)),++l)}(e));var o={cells:Ce,edges:Le};return Pe=Oe=Le=Ce=null,o}function or(t,e){return e.y-t.y||e.x-t.x}qe.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&amp;&amp;t.a||e.splice(r,1);return e.sort(He),e.length},$e.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},tr.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&amp;&amp;(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=ir(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&amp;&amp;r.C;)r===(n=r.U).L?(i=n.R)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&amp;&amp;(rr(this,r),r=(t=r).U),r.C=!1,n.C=!0,nr(this,n)):(i=n.L)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&amp;&amp;(nr(this,r),r=(t=r).U),r.C=!1,n.C=!0,rr(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&amp;&amp;(t.N.P=t.P),t.P&amp;&amp;(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?ir(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&amp;&amp;o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&amp;&amp;(t.U=i),!n)if(t&amp;&amp;t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&amp;&amp;(e.C=!1,i.C=!0,rr(this,i),e=i.R),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.R&amp;&amp;e.R.C||(e.L.C=!1,e.C=!0,nr(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,rr(this,i),t=this._;break}}else if((e=i.L).C&amp;&amp;(e.C=!1,i.C=!0,nr(this,i),e=i.L),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.L&amp;&amp;e.L.C||(e.R.C=!1,e.C=!0,rr(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,nr(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&amp;&amp;(t.C=!1)}}},t.geom.voronoi=function(t){var e=_e,r=we,n=e,i=r,a=sr;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return ar(s(t),a).cells.forEach((function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):c.x&gt;=r&amp;&amp;c.x&lt;=i&amp;&amp;c.y&gt;=n&amp;&amp;c.y&lt;=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return o.links=function(t){return ar(s(t)).edges.filter((function(t){return t.l&amp;&amp;t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return ar(s(t)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(He),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u&lt;f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n&lt;i.i&amp;&amp;n&lt;p.i&amp;&amp;(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)&lt;0)&amp;&amp;e.push([t[n],t[i.i],t[p.i]])})),e},o.x=function(t){return arguments.length?(n=ce(e=t),o):e},o.y=function(t){return arguments.length?(i=ce(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?sr:t,o):a===sr?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&amp;&amp;[[0,0],t]):a===sr?null:a&amp;&amp;a[1]},o};var sr=[[-1e6,-1e6],[1e6,1e6]];function lr(t){return t.x}function cr(t){return t.y}function ur(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&amp;&amp;ur(t,l[0],r,n,o,s),l[1]&amp;&amp;ur(t,l[1],o,n,i,s),l[2]&amp;&amp;ur(t,l[2],r,s,o,a),l[3]&amp;&amp;ur(t,l[3],o,s,i,a)}}function fr(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u&gt;a||f&gt;o||h&lt;n||p&lt;i)){if(d=c.point){var d,g=e-c.x,m=r-c.y,v=g*g+m*m;if(v&lt;l){var y=Math.sqrt(l=v);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r&gt;=_)&lt;&lt;1|e&gt;=b,T=w+4;w&lt;T;++w)if(c=x[3&amp;w])switch(3&amp;w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}function hr(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return&quot;#&quot;+re(Math.round(n+o*t))+re(Math.round(i+s*t))+re(Math.round(a+l*t))}}function pr(t,e){var r,n={},i={};for(r in t)r in e?n[r]=yr(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function dr(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function gr(t,e){var r,n,i,a=mr.lastIndex=vr.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=mr.exec(t))&amp;&amp;(n=vr.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:dr(r,n)})),a=vr.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?(e=l[0].x,function(t){return e(t)+&quot;&quot;}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=_e,s=we;if(a=arguments.length)return o=lr,s=cr,3===a&amp;&amp;(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,g,m,v=ce(o),x=ce(s);if(null!=e)p=e,d=r,g=n,m=i;else if(g=m=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f&lt;h;++f)(l=t[f]).x&lt;p&amp;&amp;(p=l.x),l.y&lt;d&amp;&amp;(d=l.y),l.x&gt;g&amp;&amp;(g=l.x),l.y&gt;m&amp;&amp;(m=l.y),c.push(l.x),u.push(l.y);else for(f=0;f&lt;h;++f){var b=+v(l=t[f],f),_=+x(l,f);b&lt;p&amp;&amp;(p=b),_&lt;d&amp;&amp;(d=_),b&gt;g&amp;&amp;(g=b),_&gt;m&amp;&amp;(m=_),c.push(b),u.push(_)}var w=g-p,T=m-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&amp;&amp;!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)&lt;.01)A(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,A(t,u,l,c,i,a,o,s),A(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else A(t,e,r,n,i,a,o,s)}function A(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r&gt;=l,f=n&gt;=c,h=f&lt;&lt;1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,k(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w&gt;T?m=d+w:g=p+T;var M={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(M,t,+v(t,++f),+x(t,f),p,d,g,m)},visit:function(t){ur(t,M,p,d,g,m)},find:function(t){return fr(M,t[0],t[1],p,d,g,m)}};if(f=-1,null==e){for(;++f&lt;h;)k(M,t[f],c[f],u[f],p,d,g,m);--f}else t.forEach(M.add);return c=u=t=l=null,M}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=hr,t.interpolateObject=pr,t.interpolateNumber=dr,t.interpolateString=gr;var mr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vr=new RegExp(mr.source,&quot;g&quot;);function yr(e,r){for(var n,i=t.interpolators.length;--i&gt;=0&amp;&amp;!(n=t.interpolators[i](e,r)););return n}function xr(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r&lt;s;++r)n.push(yr(t[r],e[r]));for(;r&lt;a;++r)i[r]=t[r];for(;r&lt;o;++r)i[r]=e[r];return function(t){for(r=0;r&lt;s;++r)i[r]=n[r](t);return i}}t.interpolate=yr,t.interpolators=[function(t,e){var r=typeof e;return(&quot;string&quot;===r?le.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?hr:gr:e instanceof Ft?hr:Array.isArray(e)?xr:&quot;object&quot;===r&amp;&amp;isNaN(e)?pr:dr)(t,e)}],t.interpolateArray=xr;var br=function(){return C},_r=t.map({linear:br,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return Mr},cubic:function(){return Sr},sin:function(){return Lr},exp:function(){return Cr},circle:function(){return Pr},elastic:function(t,e){var r;arguments.length&lt;2&amp;&amp;(e=.45);arguments.length?r=e/Mt*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*Mt/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return Ir}}),wr=t.map({in:C,out:kr,&quot;in-out&quot;:Ar,&quot;out-in&quot;:function(t){return Ar(kr(t))}});function Tr(t){return function(e){return e&lt;=0?0:e&gt;=1?1:t(e)}}function kr(t){return function(e){return 1-t(1-e)}}function Ar(t){return function(e){return.5*(e&lt;.5?t(2*e):2-t(2-2*e))}}function Mr(t){return t*t}function Sr(t){return t*t*t}function Er(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}function Lr(t){return 1-Math.cos(t*Et)}function Cr(t){return Math.pow(2,10*(t-1))}function Pr(t){return 1-Math.sqrt(1-t*t)}function Ir(t){return t&lt;1/2.75?7.5625*t*t:t&lt;2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t&lt;2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Or(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function zr(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=Rr(i),s=Dr(i,a),l=Rr(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]&lt;a[0]*i[1]&amp;&amp;(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*Ct,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*Ct:0}function Dr(t,e){return t[0]*e[0]+t[1]*e[1]}function Rr(t){var e=Math.sqrt(Dr(t,t));return e&amp;&amp;(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e=t.indexOf(&quot;-&quot;),n=e&gt;=0?t.slice(0,e):t,i=e&gt;=0?t.slice(e+1):&quot;in&quot;;return n=_r.get(n)||br,Tr((i=wr.get(i)||C)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return qt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return jt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Wt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateRound=Or,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,&quot;g&quot;);return(t.transform=function(t){if(null!=t){r.setAttribute(&quot;transform&quot;,t);var e=r.transform.baseVal.consolidate()}return new zr(e?e.matrix:Fr)})(e)},zr.prototype.toString=function(){return&quot;translate(&quot;+this.translate+&quot;)rotate(&quot;+this.rotate+&quot;)skewX(&quot;+this.skew+&quot;)scale(&quot;+this.scale+&quot;)&quot;};var Fr={a:1,b:0,c:0,d:1,e:0,f:0};function Br(t){return t.length?t.pop()+&quot;,&quot;:&quot;&quot;}function Nr(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(&quot;translate(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:dr(t[0],e[0])},{i:i-2,x:dr(t[1],e[1])})}else(e[0]||e[1])&amp;&amp;r.push(&quot;translate(&quot;+e+&quot;)&quot;)}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),n.push({i:r.push(Br(r)+&quot;rotate(&quot;,null,&quot;)&quot;)-2,x:dr(t,e)})):e&amp;&amp;r.push(Br(r)+&quot;rotate(&quot;+e+&quot;)&quot;)}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(Br(r)+&quot;skewX(&quot;,null,&quot;)&quot;)-2,x:dr(t,e)}):e&amp;&amp;r.push(Br(r)+&quot;skewX(&quot;+e+&quot;)&quot;)}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(Br(r)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:dr(t[0],e[0])},{i:i-2,x:dr(t[1],e[1])})}else 1===e[0]&amp;&amp;1===e[1]||r.push(Br(r)+&quot;scale(&quot;+e+&quot;)&quot;)}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r&lt;a;)n[(e=i[r]).i]=e.x(t);return n.join(&quot;&quot;)}}function jr(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function Ur(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Vr(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=qr(t),n=qr(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function qr(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function Hr(t){t.fixed|=2}function Gr(t){t.fixed&amp;=-7}function Yr(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Wr(t){t.fixed&amp;=-5}t.interpolateTransform=Nr,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r&lt;n;)e.push(Vr(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,g={},m=[],v=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p&lt;i;){for(u=0,d=-1;++d&lt;i;)u+=n[p][d];m.push(u),y.push(t.range(i)),l+=u}for(a&amp;&amp;v.sort((function(t,e){return a(m[t],m[e])})),o&amp;&amp;y.forEach((function(t,e){t.sort((function(t,r){return o(n[e][t],n[e][r])}))})),l=(Mt-c*i)/l,u=0,p=-1;++p&lt;i;){for(h=u,d=-1;++d&lt;i;){var x=v[p],b=y[x][d],_=n[x][b],w=u,T=u+=_*l;g[x+&quot;-&quot;+b]={index:x,subindex:b,startAngle:w,endAngle:T,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:m[x]},u+=c}for(p=-1;++p&lt;i;)for(d=p-1;++d&lt;i;){var k=g[p+&quot;-&quot;+d],A=g[d+&quot;-&quot;+p];(k.value||A.value)&amp;&amp;e.push(k.value&lt;A.value?{source:A,target:k}:{source:k,target:A})}s&amp;&amp;f()}function f(){e.sort((function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(t){return arguments.length?(i=(n=t)&amp;&amp;n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&amp;&amp;f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(&quot;start&quot;,&quot;tick&quot;,&quot;end&quot;),c=[1,1],u=.9,f=Xr,h=Zr,p=-30,d=Jr,g=.1,m=.64,v=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/m&lt;l){if(l&lt;d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&amp;&amp;l&amp;&amp;l&lt;d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)&lt;.005)return e=null,l.end({type:&quot;end&quot;,alpha:n=0}),!0;var r,s,f,h,d,m,b,_,w,T=v.length,k=y.length;for(s=0;s&lt;k;++s)h=(f=y[s]).source,(m=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&amp;&amp;(_*=m=n*a[s]*((m=Math.sqrt(m))-i[s])/m,w*=m,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*g)&amp;&amp;(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s&lt;T;)(f=v[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;if(e.charge=0,!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c&lt;l;)null!=(o=s[c])&amp;&amp;(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge,e.cy=a/e.charge}(r=t.geom.quadtree(v),n,o),s=-1;++s&lt;T;)(f=v[s]).fixed||r.visit(x(f));for(s=-1;++s&lt;T;)(f=v[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:&quot;tick&quot;,alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=&quot;function&quot;==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,n?t&gt;0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:&quot;end&quot;,alpha:n=0})):t&gt;0&amp;&amp;(l.start({type:&quot;start&quot;,alpha:n=t}),e=ve(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],d=c[1];for(t=0;t&lt;n;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t&lt;l;++t)&quot;number&quot;==typeof(r=y[t]).source&amp;&amp;(r.source=v[r.source]),&quot;number&quot;==typeof r.target&amp;&amp;(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t&lt;n;++t)r=v[t],isNaN(r.x)&amp;&amp;(r.x=g(&quot;x&quot;,u)),isNaN(r.y)&amp;&amp;(r.y=g(&quot;y&quot;,d)),isNaN(r.px)&amp;&amp;(r.px=r.x),isNaN(r.py)&amp;&amp;(r.py=r.y);if(i=[],&quot;function&quot;==typeof f)for(t=0;t&lt;l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t&lt;l;++t)i[t]=f;if(a=[],&quot;function&quot;==typeof h)for(t=0;t&lt;l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t&lt;l;++t)a[t]=h;if(o=[],&quot;function&quot;==typeof p)for(t=0;t&lt;n;++t)o[t]=+p.call(this,v[t],t);else for(t=0;t&lt;n;++t)o[t]=p;function g(r,i){if(!e){for(e=new Array(n),c=0;c&lt;n;++c)e[c]=[];for(c=0;c&lt;l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c&lt;u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(C).on(&quot;dragstart.force&quot;,Hr).on(&quot;drag.force&quot;,b).on(&quot;dragend.force&quot;,Gr)),!arguments.length)return r;this.on(&quot;mouseover.force&quot;,Yr).on(&quot;mouseout.force&quot;,Wr).call(r)},t.rebind(s,l,&quot;on&quot;)};var Xr=20,Zr=1,Jr=1/0;function Kr(e,r){return t.rebind(e,r,&quot;sort&quot;,&quot;children&quot;,&quot;value&quot;),e.nodes=e,e.links=nn,e}function Qr(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&amp;&amp;(n=i.length))for(var n,i;--n&gt;=0;)r.push(i[n])}function $r(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&amp;&amp;(i=a.length))for(var i,a,o=-1;++o&lt;i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function tn(t){return t.children}function en(t){return t.value}function rn(t,e){return e.value-t.value}function nn(e){return t.merge(e.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}t.layout.hierarchy=function(){var t=rn,e=tn,r=en;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&amp;&amp;(l=c.length)){for(var l,c,u;--l&gt;=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&amp;&amp;(a.value=0),a.children=c}else r&amp;&amp;(a.value=+r.call(n,a,a.depth)||0),delete a.children;return $r(i,(function(e){var n,i;t&amp;&amp;(n=e.children)&amp;&amp;n.sort(t),r&amp;&amp;(i=e.parent)&amp;&amp;(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&amp;&amp;(Qr(t,(function(t){t.children&amp;&amp;(t.value=0)})),$r(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&amp;&amp;(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&amp;&amp;(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c&lt;o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&amp;&amp;(i=r.length))for(var i,a=-1;++a&lt;i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Kr(n,e)},t.layout.pie=function(){var e=Number,r=an,n=0,i=Mt,a=0;function o(s){var l,c=s.length,u=s.map((function(t,r){return+e.call(o,t,r)})),f=+(&quot;function&quot;==typeof n?n.apply(this,arguments):n),h=(&quot;function&quot;==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(&quot;function&quot;==typeof a?a.apply(this,arguments):a)),d=p*(h&lt;0?-1:1),g=t.sum(u),m=g?(h-c*d)/g:0,v=t.range(c),y=[];return null!=r&amp;&amp;v.sort(r===an?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),v.forEach((function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*m+d,padAngle:p}})),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var an={};function on(t){return t.x}function sn(t){return t.y}function ln(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=C,r=fn,n=hn,i=ln,a=on,o=sn;function s(l,c){if(!(p=l.length))return l;var u=l.map((function(t,r){return e.call(s,t,r)})),f=u.map((function(t){return t.map((function(t,e){return[a.call(s,t,e),o.call(s,t,e)]}))})),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,g,m,v=n.call(s,f,c),y=u[0].length;for(g=0;g&lt;y;++g)for(i.call(s,u[0][g],m=v[g],f[0][g][1]),d=1;d&lt;p;++d)i.call(s,u[d][g],m+=f[d-1][g][1],f[d][g][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:cn.get(t)||fn,s):r},s.offset=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:un.get(t)||hn,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var cn=t.map({&quot;inside-out&quot;:function(e){var r,n,i=e.length,a=e.map(pn),o=e.map(dn),s=t.range(i).sort((function(t,e){return a[t]-a[e]})),l=0,c=0,u=[],f=[];for(r=0;r&lt;i;++r)n=s[r],l&lt;c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:fn}),un=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];n&gt;s&amp;&amp;(s=n),o.push(n)}for(r=0;r&lt;a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r&lt;h;++r){for(e=0,i=0;e&lt;u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e&lt;u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n&lt;e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l&lt;c&amp;&amp;(c=l)}for(r=0;r&lt;h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];if(n)for(e=0;e&lt;i;e++)t[e][r][1]/=n;else for(e=0;e&lt;i;e++)t[e][r][1]=o}for(r=0;r&lt;a;++r)s[r]=0;return s},zero:hn});function fn(e){return t.range(e.length)}function hn(t){for(var e=-1,r=t[0].length,n=[];++e&lt;r;)n[e]=0;return n}function pn(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r&lt;a;++r)(e=t[r][1])&gt;i&amp;&amp;(n=r,i=e);return n}function dn(t){return t.reduce(gn,0)}function gn(t,e){return t+e[1]}function mn(t,e){return vn(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function vn(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r&lt;=e;)a[r]=i*r+n;return a}function yn(e){return[t.min(e),t.max(e)]}function xn(t,e){return t.value-e.value}function bn(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function _n(t,e){t._pack_next=e,e._pack_prev=t}function wn(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i&gt;r*r+n*n}function Tn(t){if((e=t.children)&amp;&amp;(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(kn),(r=e[0]).x=-r.r,r.y=0,x(r),l&gt;1&amp;&amp;((n=e[1]).x=n.r,n.y=0,x(n),l&gt;2))for(Mn(r,n,i=e[2]),x(i),bn(r,i),r._pack_prev=i,bn(i,n),n=r._pack_next,a=3;a&lt;l;a++){Mn(r,n,i=e[a]);var p=0,d=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(wn(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&amp;&amp;!wn(s,i);s=s._pack_prev,g++);p?(d&lt;g||d==g&amp;&amp;n.r&lt;r.r?_n(r,n=o):_n(r=s,n),a--):(bn(r,i),n=i,x(i))}var m=(c+u)/2,v=(f+h)/2,y=0;for(a=0;a&lt;l;a++)(i=e[a]).x-=m,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(An)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function kn(t){t._pack_next=t._pack_prev=t}function An(t){delete t._pack_next,delete t._pack_prev}function Mn(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&amp;&amp;(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function Sn(t,e){return t.parent==e.parent?1:2}function En(t){var e=t.children;return e.length?e[0]:t.t}function Ln(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function Cn(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function Pn(t,e,r){return t.a.parent===e.parent?t.a:r}function In(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function On(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i&lt;0&amp;&amp;(r+=i/2,i=0),a&lt;0&amp;&amp;(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function zn(t){var e=t[0],r=t[t.length-1];return e&lt;r?[e,r]:[r,e]}function Dn(t){return t.rangeExtent?t.rangeExtent():zn(t.range())}function Rn(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function Fn(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o&lt;a&amp;&amp;(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function Bn(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:Nn}t.layout.histogram=function(){var e=!0,r=Number,n=yn,i=mn;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,g=e?1:1/p;++o&lt;d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d&gt;0)for(o=-1;++o&lt;p;)(l=u[o])&gt;=f[0]&amp;&amp;l&lt;=f[1]&amp;&amp;((s=c[t.bisect(h,l,1,d)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=ce(t),a):n},a.bins=function(t){return arguments.length?(i=&quot;number&quot;==typeof t?function(e){return vn(e,t)}:ce(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort(xn),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:&quot;function&quot;==typeof e?e:function(){return e};if(s.x=s.y=0,$r(s,(function(t){t.r=+u(t.value)})),$r(s,Tn),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;$r(s,(function(t){t.r+=f})),$r(s,Tn),$r(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++o&lt;s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||&quot;function&quot;==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Kr(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=Sn,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o&lt;s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&amp;&amp;i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if($r(f,o),f.parent.m=-f.z,Qr(f,s),i)Qr(u,l);else{var h=u,p=u,d=u;Qr(u,(function(t){t.x&lt;h.x&amp;&amp;(h=t),t.x&gt;p.x&amp;&amp;(p=t),t.depth&gt;d.depth&amp;&amp;(d=t)}));var g=r(h,p)/2-h.x,m=n[0]/(p.x+r(p,h)/2+g),v=n[1]/(d.depth||1);Qr(u,(function(t){t.x=(t.x+g)*m,t.y=t.depth*v}))}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&amp;&amp;(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=Ln(s),a=En(a),s&amp;&amp;a;)l=En(l),(o=Ln(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))&gt;0&amp;&amp;(Cn(Pn(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!Ln(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!En(l)&amp;&amp;(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Kr(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=Sn,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;$r(c,(function(e){var n=e.children;n&amp;&amp;n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)}));var f=function t(e){var r=e.children;return r&amp;&amp;r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&amp;&amp;(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return $r(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Kr(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=In,s=!1,l=&quot;squarify&quot;,c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i&lt;a;)n=(r=t[i]).value*(e&lt;0?0:e),r.area=isNaN(n)||n&lt;=0?0:n}function f(t){var e=t.children;if(e&amp;&amp;e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,g=&quot;slice&quot;===l?a.dx:&quot;dice&quot;===l?a.dy:&quot;slice-dice&quot;===l?1&amp;t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)&gt;0;)s.push(r=c[i-1]),s.area+=r.area,&quot;squarify&quot;!==l||(n=p(s,g))&lt;=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&amp;&amp;(d(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&amp;&amp;e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&amp;&amp;(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o&lt;s;)(r=t[o].area)&amp;&amp;(r&lt;a&amp;&amp;(a=r),r&gt;i&amp;&amp;(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u&gt;r.dy)&amp;&amp;(u=r.dy);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u&gt;r.dx)&amp;&amp;(u=r.dx);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&amp;&amp;r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&amp;&amp;(e=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){var r=t.call(g,e,e.depth);return null==r?In(e):On(e,&quot;number&quot;==typeof r?[r,r,r,r]:r)}function r(e){return On(e,t)}var n;return o=null==(a=t)?In:&quot;function&quot;==(n=typeof t)?e:&quot;number&quot;===n?(t=[t,t,t,t],r):r,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+&quot;&quot;,g):l},Kr(g,r)},t.random={normal:function(t,e){var r=arguments.length;return r&lt;2&amp;&amp;(e=1),r&lt;1&amp;&amp;(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i&gt;1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r&lt;t;r++)e+=Math.random();return e}}},t.scale={};var Nn={floor:C,ceil:C};function jn(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]&lt;e[0]&amp;&amp;(e=e.slice().reverse(),r=r.slice().reverse());++s&lt;=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function Un(e,r){return t.rebind(e,r,&quot;range&quot;,&quot;rangeRound&quot;,&quot;interpolate&quot;,&quot;clamp&quot;)}function Vn(t,e){return Fn(t,Bn(qn(t,e)[2])),Fn(t,Bn(qn(t,e)[2])),t}function qn(t,e){null==e&amp;&amp;(e=10);var r=zn(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a&lt;=.15?i*=10:a&lt;=.35?i*=5:a&lt;=.75&amp;&amp;(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function Hn(e,r){return t.range.apply(t,qn(e,r))}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)&gt;2?jn:Rn,s=i?Ur:jr;return a=t(e,r,s,n),o=t(r,e,s,yr),l}function l(t){return a(t)}return l.invert=function(t){return o(t)},l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e},l.range=function(t){return arguments.length?(r=t,s()):r},l.rangeRound=function(t){return l.range(t).interpolate(Or)},l.clamp=function(t){return arguments.length?(i=t,s()):i},l.interpolate=function(t){return arguments.length?(n=t,s()):n},l.ticks=function(t){return Hn(e,t)},l.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},l.nice=function(t){return Vn(e,t),s()},l.copy=function(){return t(e,r,n,i)},s()}([0,1],[0,1],yr,!1)};t.scale.log=function(){return function t(e,r,n,i){function a(t){return(n?Math.log(t&lt;0?0:t):-Math.log(t&gt;0?0:-t))/Math.log(r)}function o(t){return n?Math.pow(r,t):-Math.pow(r,-t)}function s(t){return e(a(t))}return s.invert=function(t){return o(e.invert(t))},s.domain=function(t){return arguments.length?(n=t[0]&gt;=0,e.domain((i=t.map(Number)).map(a)),s):i},s.base=function(t){return arguments.length?(r=+t,e.domain(i.map(a)),s):r},s.nice=function(){var t=Fn(i.map(a),n?Math:Gn);return e.domain(t),i=t.map(o),s},s.ticks=function(){var t=zn(i),e=[],s=t[0],l=t[1],c=Math.floor(a(s)),u=Math.ceil(a(l)),f=r%1?2:r;if(isFinite(u-c)){if(n){for(;c&lt;u;c++)for(var h=1;h&lt;f;h++)e.push(o(c)*h);e.push(o(c))}else for(e.push(o(c));c++&lt;u;)for(h=f-1;h&gt;0;h--)e.push(o(c)*h);for(c=0;e[c]&lt;s;c++);for(u=e.length;e[u-1]&gt;l;u--);e=e.slice(c,u)}return e},s.copy=function(){return t(e.copy(),r,n,i)},Un(s,e)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Gn={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Yn(t){return function(e){return e&lt;0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=Yn(r),a=Yn(1/r);function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n},o.ticks=function(t){return Hn(n,t)},o.tickFormat=function(t,e){return d3_scale_linearTickFormat(n,t,e)},o.nice=function(t){return o.domain(Vn(n,t))},o.exponent=function(t){return arguments.length?(i=Yn(r=t),a=Yn(1/r),e.domain(n.map(i)),o):r},o.copy=function(){return t(e.copy(),r,n)},Un(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(&quot;range&quot;===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map((function(t){return e+n*t}))}return s.domain=function(t){if(!arguments.length)return r;r=[],i=new _;for(var e,a=-1,o=t.length;++a&lt;o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)},s.range=function(t){return arguments.length?(a=t,o=0,n={t:&quot;range&quot;,a:arguments},s):a},s.rangePoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:&quot;rangePoints&quot;,a:arguments},s},s.rangeRoundPoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:&quot;rangeRoundPoints&quot;,a:arguments},s},s.rangeBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&amp;&amp;a.reverse(),o=h*(1-e),n={t:&quot;rangeBands&quot;,a:arguments},s},s.rangeRoundBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&amp;&amp;a.reverse(),o=Math.round(h*(1-e)),n={t:&quot;rangeRoundBands&quot;,a:arguments},s},s.rangeBand=function(){return o},s.rangeExtent=function(){return zn(n.a[0])},s.copy=function(){return e(r,n)},s.domain(r)}([],{t:&quot;range&quot;,a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(Wn)},t.scale.category20=function(){return t.scale.ordinal().range(Xn)},t.scale.category20b=function(){return t.scale.ordinal().range(Zn)},t.scale.category20c=function(){return t.scale.ordinal().range(Jn)};var Wn=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(te),Xn=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(te),Zn=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(te),Jn=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(te);function Kn(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e&lt;a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}return o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r},o.range=function(t){return arguments.length?(n=t,a()):n},o.quantiles=function(){return i},o.invertExtent=function(t){return(t=n.indexOf(t))&lt;0?[NaN,NaN]:[t&gt;0?i[t-1]:r[0],t&lt;i.length?i[t]:r[r.length-1]]},o.copy=function(){return e(r,n)},a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}return o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]},o.range=function(t){return arguments.length?(n=t,s()):n},o.invertExtent=function(t){return[t=(t=n.indexOf(t))&lt;0?NaN:t/i+e,t+1/i]},o.copy=function(){return t(e,r,n)},s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e&lt;=e)return n[t.bisect(r,e)]}return i.domain=function(t){return arguments.length?(r=t,i):r},i.range=function(t){return arguments.length?(n=t,i):n},i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]},i.copy=function(){return e(r,n)},i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e},r.ticks=function(t){return Hn(e,t)},r.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},r.copy=function(){return t(e)},r}([0,1])},t.svg={},t.svg.arc=function(){var t=$n,e=ti,r=Kn,n=Qn,i=ei,a=ri,o=ni;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Et,f=a.apply(this,arguments)-Et,h=Math.abs(f-u),p=u&gt;f?0:1;if(c&lt;s&amp;&amp;(d=c,c=s,s=d),h&gt;=St)return l(c,p)+(s?l(s,1-p):&quot;&quot;)+&quot;Z&quot;;var d,g,m,v,y,x,b,_,w,T,k,A,M=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&amp;&amp;(m=n===Qn?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&amp;&amp;(S=Pt(m/c*Math.sin(v))),s&amp;&amp;(M=Pt(m/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var L=Math.abs(f-u-2*S)&lt;=At?0:1;if(S&amp;&amp;ii(y,x,b,_)===p^L){var C=(u+f)/2;y=c*Math.cos(C),x=c*Math.sin(C),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-M),T=s*Math.sin(f-M),k=s*Math.cos(u+M),A=s*Math.sin(u+M);var P=Math.abs(u-f+2*M)&lt;=At?0:1;if(M&amp;&amp;ii(w,T,k,A)===1-p^P){var I=(u+f)/2;w=s*Math.cos(I),T=s*Math.sin(I),k=A=null}}else w=T=0;if(h&gt;kt&amp;&amp;(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))&gt;.001){g=s&lt;c^p?0:1;var O=d,z=d;if(h&lt;At){var D=null==k?[w,T]:null==b?[y,x]:Se([y,x],[k,A],[b,_],[w,T]),R=y-D[0],F=x-D[1],B=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*B+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(B*B+N*N)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);z=Math.min(d,(s-U)/(j-1)),O=Math.min(d,(c-U)/(j+1))}if(null!=b){var V=ai(null==k?[w,T]:[k,A],[y,x],c,O,p),q=ai([b,_],[w,T],c,O,p);d===O?E.push(&quot;M&quot;,V[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,V[1],&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,1-p^ii(V[1][0],V[1][1],q[1][0],q[1][1]),&quot;,&quot;,p,&quot; &quot;,q[1],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,q[0]):E.push(&quot;M&quot;,V[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 1,&quot;,g,&quot; &quot;,q[0])}else E.push(&quot;M&quot;,y,&quot;,&quot;,x);if(null!=k){var H=ai([y,x],[k,A],s,-z,p),G=ai([w,T],null==b?[y,x]:[b,_],s,-z,p);d===z?E.push(&quot;L&quot;,G[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,G[1],&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,p^ii(G[1][0],G[1][1],H[1][0],H[1][1]),&quot;,&quot;,1-p,&quot; &quot;,H[1],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,H[0]):E.push(&quot;L&quot;,G[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,H[0])}else E.push(&quot;L&quot;,w,&quot;,&quot;,T)}else E.push(&quot;M&quot;,y,&quot;,&quot;,x),null!=b&amp;&amp;E.push(&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,L,&quot;,&quot;,p,&quot; &quot;,b,&quot;,&quot;,_),E.push(&quot;L&quot;,w,&quot;,&quot;,T),null!=k&amp;&amp;E.push(&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,P,&quot;,&quot;,1-p,&quot; &quot;,k,&quot;,&quot;,A);return E.push(&quot;Z&quot;),E.join(&quot;&quot;)}function l(t,e){return&quot;M0,&quot;+t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+-t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+t}return s.innerRadius=function(e){return arguments.length?(t=ce(e),s):t},s.outerRadius=function(t){return arguments.length?(e=ce(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=ce(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Qn?Qn:ce(t),s):n},s.startAngle=function(t){return arguments.length?(i=ce(t),s):i},s.endAngle=function(t){return arguments.length?(a=ce(t),s):a},s.padAngle=function(t){return arguments.length?(o=ce(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Et;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Qn=&quot;auto&quot;;function $n(t){return t.innerRadius}function ti(t){return t.outerRadius}function ei(t){return t.startAngle}function ri(t){return t.endAngle}function ni(t){return t&amp;&amp;t.padAngle}function ii(t,e,r,n){return(t-r)*e-(e-n)*t&gt;0?0:1}function ai(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,g=(f+p)/2,m=h-u,v=p-f,y=m*m+v*v,x=r-n,b=u*p-h*f,_=(v&lt;0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-m*_)/y,T=(-b*m-v*_)/y,k=(b*v+m*_)/y,A=(-b*m+v*_)/y,M=w-d,S=T-g,E=k-d,L=A-g;return M*M+S*S&gt;E*E+L*L&amp;&amp;(w=k,T=A),[[w-l,T-c],[w*r/x,T*r/x]]}function oi(){return!0}function si(t){var e=_e,r=we,n=oi,i=ci,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=ce(e),p=ce(r);function d(){l.push(&quot;M&quot;,i(t(c),o))}for(;++u&lt;f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&amp;&amp;(d(),c=[]);return c.length&amp;&amp;d(),l.length?l.join(&quot;&quot;):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?i=t:(i=li.get(t)||ci).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return si(C)};var li=t.map({linear:ci,&quot;linear-closed&quot;:ui,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];for(;++e&lt;r;)i.push(&quot;H&quot;,(n[0]+(n=t[e])[0])/2,&quot;V&quot;,n[1]);r&gt;1&amp;&amp;i.push(&quot;H&quot;,n[0]);return i.join(&quot;&quot;)},&quot;step-before&quot;:fi,&quot;step-after&quot;:hi,basis:gi,&quot;basis-open&quot;:function(t){if(t.length&lt;4)return ci(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n&lt;3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(mi(xi,a)+&quot;,&quot;+mi(xi,o)),--n;for(;++n&lt;i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),bi(r,a,o);return r.join(&quot;&quot;)},&quot;basis-closed&quot;:function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n&lt;4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[mi(xi,o),&quot;,&quot;,mi(xi,s)],--n;for(;++n&lt;a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),bi(e,o,s);return e.join(&quot;&quot;)},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c&lt;=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return gi(t)},cardinal:function(t,e){return t.length&lt;3?ci(t):t[0]+pi(t,di(t,e))},&quot;cardinal-open&quot;:function(t,e){return t.length&lt;4?ci(t):t[1]+pi(t.slice(1,-1),di(t,e))},&quot;cardinal-closed&quot;:function(t,e){return t.length&lt;3?ui(t):t[0]+pi((t.push(t[0]),t),di([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length&lt;3?ci(t):t[0]+pi(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=_i(i,a);for(;++e&lt;r;)n[e]=(o+(o=_i(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s&lt;l;)e=_i(t[s],t[s+1]),y(e)&lt;kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)&gt;9&amp;&amp;(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s&lt;=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function ci(t){return t.length&gt;1?t.join(&quot;L&quot;):t+&quot;Z&quot;}function ui(t){return t.join(&quot;L&quot;)+&quot;Z&quot;}function fi(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;V&quot;,(n=t[e])[1],&quot;H&quot;,n[0]);return i.join(&quot;&quot;)}function hi(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;H&quot;,(n=t[e])[0],&quot;V&quot;,n[1]);return i.join(&quot;&quot;)}function pi(t,e){if(e.length&lt;1||t.length!=e.length&amp;&amp;t.length!=e.length+2)return ci(t);var r=t.length!=e.length,n=&quot;&quot;,i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&amp;&amp;(n+=&quot;Q&quot;+(a[0]-2*o[0]/3)+&quot;,&quot;+(a[1]-2*o[1]/3)+&quot;,&quot;+a[0]+&quot;,&quot;+a[1],i=t[1],l=2),e.length&gt;1){s=e[1],a=t[l],l++,n+=&quot;C&quot;+(i[0]+o[0])+&quot;,&quot;+(i[1]+o[1])+&quot;,&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1];for(var c=2;c&lt;e.length;c++,l++)a=t[l],s=e[c],n+=&quot;S&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1]}if(r){var u=t[l];n+=&quot;Q&quot;+(a[0]+2*s[0]/3)+&quot;,&quot;+(a[1]+2*s[1]/3)+&quot;,&quot;+u[0]+&quot;,&quot;+u[1]}return n}function di(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s&lt;l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function gi(t){if(t.length&lt;3)return ci(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,&quot;,&quot;,a,&quot;L&quot;,mi(xi,o),&quot;,&quot;,mi(xi,s)];for(t.push(t[r-1]);++e&lt;=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),bi(l,o,s);return t.pop(),l.push(&quot;L&quot;,n),l.join(&quot;&quot;)}function mi(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}li.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var vi=[0,2/3,1/3,0],yi=[0,1/3,2/3,0],xi=[0,1/6,2/3,1/6];function bi(t,e,r){t.push(&quot;C&quot;,mi(vi,e),&quot;,&quot;,mi(vi,r),&quot;,&quot;,mi(yi,e),&quot;,&quot;,mi(yi,r),&quot;,&quot;,mi(xi,e),&quot;,&quot;,mi(xi,r))}function _i(t,e){return(e[1]-t[1])/(e[0]-t[0])}function wi(t){for(var e,r,n,i=-1,a=t.length;++i&lt;a;)r=(e=t[i])[0],n=e[1]-Et,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function Ti(t){var e=_e,r=_e,n=0,i=we,a=oi,o=ci,s=o.key,l=o,c=&quot;L&quot;,u=.7;function f(s){var f,h,p,d=[],g=[],m=[],v=-1,y=s.length,x=ce(e),b=ce(n),_=e===r?function(){return h}:ce(r),w=n===i?function(){return p}:ce(i);function T(){d.push(&quot;M&quot;,o(t(m),u),c,l(t(g.reverse()),u),&quot;Z&quot;)}for(;++v&lt;y;)a.call(this,f=s[v],v)?(g.push([h=+x.call(this,f,v),p=+b.call(this,f,v)]),m.push([+_.call(this,f,v),+w.call(this,f,v)])):g.length&amp;&amp;(T(),g=[],m=[]);return g.length&amp;&amp;T(),d.length?d.join(&quot;&quot;):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?o=t:(o=li.get(t)||ci).key,l=o.reverse||o,c=o.closed?&quot;M&quot;:&quot;L&quot;,f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ki(t){return t.source}function Ai(t){return t.target}function Mi(t){return t.radius}function Si(t){return[t.x,t.y]}function Ei(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Et;return[r*Math.cos(n),r*Math.sin(n)]}}function Li(){return 64}function Ci(){return&quot;circle&quot;}function Pi(t){var e=Math.sqrt(t/At);return&quot;M0,&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+-e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+e+&quot;Z&quot;}t.svg.line.radial=function(){var t=si(wi);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},fi.reverse=hi,hi.reverse=fi,t.svg.area=function(){return Ti(C)},t.svg.area.radial=function(){var t=Ti(wi);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=ki,e=Ai,r=Mi,n=ei,i=ri;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return&quot;M&quot;+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,((i=c).a0==a.a0&amp;&amp;i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+&quot;Z&quot;)}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Et,u=i.call(t,s,o)-Et;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 &quot;+ +(r&gt;At)+&quot;,1 &quot;+e}function l(t,e,r,n){return&quot;Q 0,0 &quot;+n}return a.radius=function(t){return arguments.length?(r=ce(t),a):r},a.source=function(e){return arguments.length?(t=ce(e),a):t},a.target=function(t){return arguments.length?(e=ce(t),a):e},a.startAngle=function(t){return arguments.length?(n=ce(t),a):n},a.endAngle=function(t){return arguments.length?(i=ce(t),a):i},a},t.svg.diagonal=function(){var t=ki,e=Ai,r=Si;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return&quot;M&quot;+(l=l.map(r))[0]+&quot;C&quot;+l[1]+&quot; &quot;+l[2]+&quot; &quot;+l[3]}return n.source=function(e){return arguments.length?(t=ce(e),n):t},n.target=function(t){return arguments.length?(e=ce(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=Si,n=e.projection;return e.projection=function(t){return arguments.length?n(Ei(r=t)):r},e},t.svg.symbol=function(){var t=Ci,e=Li;function r(r,n){return(Ii.get(t.call(this,r,n))||Pi)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=ce(e),r):t},r.size=function(t){return arguments.length?(e=ce(t),r):e},r};var Ii=t.map({circle:Pi,cross:function(t){var e=Math.sqrt(t/5)/2;return&quot;M&quot;+-3*e+&quot;,&quot;+-e+&quot;H&quot;+-e+&quot;V&quot;+-3*e+&quot;H&quot;+e+&quot;V&quot;+-e+&quot;H&quot;+3*e+&quot;V&quot;+e+&quot;H&quot;+e+&quot;V&quot;+3*e+&quot;H&quot;+-e+&quot;V&quot;+e+&quot;H&quot;+-3*e+&quot;Z&quot;},diamond:function(t){var e=Math.sqrt(t/(2*zi)),r=e*zi;return&quot;M0,&quot;+-e+&quot;L&quot;+r+&quot;,0 0,&quot;+e+&quot; &quot;+-r+&quot;,0Z&quot;},square:function(t){var e=Math.sqrt(t)/2;return&quot;M&quot;+-e+&quot;,&quot;+-e+&quot;L&quot;+e+&quot;,&quot;+-e+&quot; &quot;+e+&quot;,&quot;+e+&quot; &quot;+-e+&quot;,&quot;+e+&quot;Z&quot;},&quot;triangle-down&quot;:function(t){var e=Math.sqrt(t/Oi),r=e*Oi/2;return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,&quot;+-r+&quot; &quot;+-e+&quot;,&quot;+-r+&quot;Z&quot;},&quot;triangle-up&quot;:function(t){var e=Math.sqrt(t/Oi),r=e*Oi/2;return&quot;M0,&quot;+-r+&quot;L&quot;+e+&quot;,&quot;+r+&quot; &quot;+-e+&quot;,&quot;+r+&quot;Z&quot;}});t.svg.symbolTypes=Ii.keys();var Oi=Math.sqrt(3),zi=Math.tan(30*Lt);Y.transition=function(t){for(var e,r,n=Bi||++Ui,i=Hi(t),a=[],o=Ni||{time:Date.now(),ease:Er,delay:0,duration:250},s=-1,l=this.length;++s&lt;l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(r=c[u])&amp;&amp;Gi(r,u,i,n,o),e.push(r)}return Fi(a,i,n)},Y.interrupt=function(t){return this.each(null==t?Di:Ri(Hi(t)))};var Di=Ri(Hi());function Ri(t){return function(){var e,r,n;(e=this[t])&amp;&amp;(n=e[r=e.active])&amp;&amp;(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&amp;&amp;n.event.interrupt.call(this,this.__data__,n.index))}}function Fi(t,e,r){return U(t,ji),t.namespace=e,t.id=r,t}var Bi,Ni,ji=[],Ui=0;function Vi(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,&quot;function&quot;==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function qi(t){return null==t&amp;&amp;(t=&quot;&quot;),function(){this.textContent=t}}function Hi(t){return null==t?&quot;__transition__&quot;:&quot;__transition_&quot;+t+&quot;__&quot;}function Gi(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&amp;&amp;(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&amp;&amp;h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d&lt;n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=p,ve((function(){return o.c&amp;&amp;p(r||1)&amp;&amp;(o.c=null,o.t=NaN),1}),0,a),u.active=n,f.event&amp;&amp;f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach((function(r,n){(n=n.call(t,t.__data__,e))&amp;&amp;c.push(n)})),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h&gt;0;)c[--h].call(t,o);if(a&gt;=1)return f.event&amp;&amp;f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=ve((function(t){var e=f.delay;if(o.t=e+a,e&lt;=t)return h(t-e);o.c=h}),0,a),f=u[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}ji.call=Y.call,ji.empty=Y.empty,ji.node=Y.node,ji.size=Y.size,t.transition=function(e,r){return e&amp;&amp;e.transition?Bi?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=ji,ji.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=W(t);for(var s=-1,l=this.length;++s&lt;l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(n=c[u])&amp;&amp;(r=t.call(n,n.__data__,u,s))?(&quot;__data__&quot;in n&amp;&amp;(r.__data__=n.__data__),Gi(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return Fi(o,a,i)},ji.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=X(t);for(var c=-1,u=this.length;++c&lt;u;)for(var f=this[c],h=-1,p=f.length;++h&lt;p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,g=r.length;++d&lt;g;)(i=r[d])&amp;&amp;Gi(i,d,s,o,a),e.push(i)}return Fi(l,s,o)},ji.filter=function(t){var e,r,n=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var i=0,a=this.length;i&lt;a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s&lt;l;s++)(r=o[s])&amp;&amp;t.call(r,r.__data__,s,i)&amp;&amp;e.push(r)}return Fi(n,this.namespace,this.id)},ji.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length&lt;2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},ji.attr=function(e,r){if(arguments.length&lt;2){for(r in e)this.attr(r,e[r]);return this}var n=&quot;transform&quot;==e?Nr:yr,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}function s(t){return null==t?a:(t+=&quot;&quot;,function(){var e,r=this.getAttribute(i);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttribute(i,e(t))})})}function l(t){return null==t?o:(t+=&quot;&quot;,function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}return Vi(this,&quot;attr.&quot;+e,r,i.local?l:s)},ji.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(&quot;attr.&quot;+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&amp;&amp;function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&amp;&amp;function(t){this.setAttribute(n,i(t))}})},ji.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.style(r,t[r],e);return this}r=&quot;&quot;}function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=&quot;&quot;,function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&amp;&amp;(n=yr(i,e),function(e){this.style.setProperty(t,n(e),r)})})}return Vi(this,&quot;style.&quot;+t,e,a)},ji.styleTween=function(t,e,r){function n(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&amp;&amp;function(e){this.style.setProperty(t,a(e),r)}}return arguments.length&lt;3&amp;&amp;(r=&quot;&quot;),this.tween(&quot;style.&quot;+t,n)},ji.text=function(t){return Vi(this,&quot;text&quot;,t,qi)},ji.remove=function(){var t=this.namespace;return this.each(&quot;end.transition&quot;,(function(){var e;this[t].count&lt;2&amp;&amp;(e=this.parentNode)&amp;&amp;e.removeChild(this)}))},ji.ease=function(e){var r=this.id,n=this.namespace;return arguments.length&lt;1?this.node()[n][r].ease:(&quot;function&quot;!=typeof e&amp;&amp;(e=t.ease.apply(t,arguments)),ut(this,(function(t){t[n][r].ease=e})))},ji.delay=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].delay:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},ji.duration=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].duration:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},ji.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length&lt;2){var a=Ni,o=Bi;try{Bi=n,ut(this,(function(t,r,a){Ni=t[i][n],e.call(t,t.__data__,r,a)}))}finally{Ni=a,Bi=o}}else ut(this,(function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(&quot;start&quot;,&quot;end&quot;,&quot;interrupt&quot;))).on(e,r)}));return this},ji.transition=function(){for(var t,e,r,n=this.id,i=++Ui,a=this.namespace,o=[],s=0,l=this.length;s&lt;l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u&lt;f;u++)(e=c[u])&amp;&amp;Gi(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return Fi(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=Yi,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each((function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):C:e,g=u.selectAll(&quot;.tick&quot;).data(p,h),m=g.enter().insert(&quot;g&quot;,&quot;.domain&quot;).attr(&quot;class&quot;,&quot;tick&quot;).style(&quot;opacity&quot;,kt),v=t.transition(g.exit()).style(&quot;opacity&quot;,kt).remove(),y=t.transition(g.order()).style(&quot;opacity&quot;,1),x=Math.max(a,0)+s,b=Dn(h),_=u.selectAll(&quot;.domain&quot;).data([0]),w=(_.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;domain&quot;),t.transition(_));m.append(&quot;line&quot;),m.append(&quot;text&quot;);var T,k,A,M,S=m.select(&quot;line&quot;),E=y.select(&quot;line&quot;),L=g.select(&quot;text&quot;).text(d),P=m.select(&quot;text&quot;),I=y.select(&quot;text&quot;),O=&quot;top&quot;===i||&quot;left&quot;===i?-1:1;if(&quot;bottom&quot;===i||&quot;top&quot;===i?(n=Xi,T=&quot;x&quot;,A=&quot;y&quot;,k=&quot;x2&quot;,M=&quot;y2&quot;,L.attr(&quot;dy&quot;,O&lt;0?&quot;0em&quot;:&quot;.71em&quot;).style(&quot;text-anchor&quot;,&quot;middle&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+b[0]+&quot;,&quot;+O*o+&quot;V0H&quot;+b[1]+&quot;V&quot;+O*o)):(n=Zi,T=&quot;y&quot;,A=&quot;x&quot;,k=&quot;y2&quot;,M=&quot;x2&quot;,L.attr(&quot;dy&quot;,&quot;.32em&quot;).style(&quot;text-anchor&quot;,O&lt;0?&quot;end&quot;:&quot;start&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+O*o+&quot;,&quot;+b[0]+&quot;H0V&quot;+b[1]+&quot;H&quot;+O*o)),S.attr(M,O*a),P.attr(A,O*x),E.attr(k,0).attr(M,O*a),I.attr(T,0).attr(A,O*x),h.rangeBand){var z=h,D=z.rangeBand()/2;f=h=function(t){return z(t)+D}}else f.rangeBand?f=h:v.call(n,h,f);m.call(n,f,h),y.call(n,h,h)}))}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in Wi?t+&quot;&quot;:Yi,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&amp;&amp;u},u};var Yi=&quot;bottom&quot;,Wi={top:1,right:1,bottom:1,left:1};function Xi(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(&quot;+(isFinite(n)?n:r(t))+&quot;,0)&quot;}))}function Zi(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(0,&quot;+(isFinite(n)?n:r(t))+&quot;)&quot;}))}t.svg.brush=function(){var e,r,n=N(h,&quot;brushstart&quot;,&quot;brush&quot;,&quot;brushend&quot;),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=Ki[0];function h(e){e.each((function(){var e=t.select(this).style(&quot;pointer-events&quot;,&quot;all&quot;).style(&quot;-webkit-tap-highlight-color&quot;,&quot;rgba(0,0,0,0)&quot;).on(&quot;mousedown.brush&quot;,m).on(&quot;touchstart.brush&quot;,m),r=e.selectAll(&quot;.background&quot;).data([0]);r.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;background&quot;).style(&quot;visibility&quot;,&quot;hidden&quot;).style(&quot;cursor&quot;,&quot;crosshair&quot;),e.selectAll(&quot;.extent&quot;).data([0]).enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;extent&quot;).style(&quot;cursor&quot;,&quot;move&quot;);var n=e.selectAll(&quot;.resize&quot;).data(f,C);n.exit().remove(),n.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;resize &quot;+t})).style(&quot;cursor&quot;,(function(t){return Ji[t]})).append(&quot;rect&quot;).attr(&quot;x&quot;,(function(t){return/[ew]$/.test(t)?-3:null})).attr(&quot;y&quot;,(function(t){return/^[ns]/.test(t)?-3:null})).attr(&quot;width&quot;,6).attr(&quot;height&quot;,6).style(&quot;visibility&quot;,&quot;hidden&quot;),n.style(&quot;display&quot;,h.empty()?&quot;none&quot;:null);var o,s=t.transition(e),l=t.transition(r);i&amp;&amp;(o=Dn(i),l.attr(&quot;x&quot;,o[0]).attr(&quot;width&quot;,o[1]-o[0]),d(s)),a&amp;&amp;(o=Dn(a),l.attr(&quot;y&quot;,o[0]).attr(&quot;height&quot;,o[1]-o[0]),g(s)),p(s)}))}function p(t){t.selectAll(&quot;.resize&quot;).attr(&quot;transform&quot;,(function(t){return&quot;translate(&quot;+s[+/e$/.test(t)]+&quot;,&quot;+l[+/^s/.test(t)]+&quot;)&quot;}))}function d(t){t.select(&quot;.extent&quot;).attr(&quot;x&quot;,s[0]),t.selectAll(&quot;.extent,.n&gt;rect,.s&gt;rect&quot;).attr(&quot;width&quot;,s[1]-s[0])}function g(t){t.select(&quot;.extent&quot;).attr(&quot;y&quot;,l[0]),t.selectAll(&quot;.extent,.e&gt;rect,.w&gt;rect&quot;).attr(&quot;height&quot;,l[1]-l[0])}function m(){var f,m,v=this,y=t.select(t.event.target),x=n.of(v,arguments),b=t.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&amp;&amp;i,T=!/^(e|w)$/.test(_)&amp;&amp;a,k=y.classed(&quot;extent&quot;),A=bt(v),M=t.mouse(v),S=t.select(o(v)).on(&quot;keydown.brush&quot;,C).on(&quot;keyup.brush&quot;,P);if(t.event.changedTouches?S.on(&quot;touchmove.brush&quot;,I).on(&quot;touchend.brush&quot;,z):S.on(&quot;mousemove.brush&quot;,I).on(&quot;mouseup.brush&quot;,z),b.interrupt().selectAll(&quot;*&quot;).interrupt(),k)M[0]=s[0]-M[0],M[1]=l[0]-M[1];else if(_){var E=+/w$/.test(_),L=+/^n/.test(_);m=[s[1-E]-M[0],l[1-L]-M[1]],M[0]=s[E],M[1]=l[L]}else t.event.altKey&amp;&amp;(f=M.slice());function C(){32==t.event.keyCode&amp;&amp;(k||(f=null,M[0]-=s[1],M[1]-=l[1],k=2),F())}function P(){32==t.event.keyCode&amp;&amp;2==k&amp;&amp;(M[0]+=s[1],M[1]+=l[1],k=0,F())}function I(){var e=t.mouse(v),r=!1;m&amp;&amp;(e[0]+=m[0],e[1]+=m[1]),k||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),M[0]=s[+(e[0]&lt;f[0])],M[1]=l[+(e[1]&lt;f[1])]):f=null),w&amp;&amp;O(e,i,0)&amp;&amp;(d(b),r=!0),T&amp;&amp;O(e,a,1)&amp;&amp;(g(b),r=!0),r&amp;&amp;(p(b),x({type:&quot;brush&quot;,mode:k?&quot;move&quot;:&quot;resize&quot;}))}function O(t,n,i){var a,o,h=Dn(n),p=h[0],d=h[1],g=M[i],m=i?l:s,v=m[1]-m[0];if(k&amp;&amp;(p-=g,d-=v+g),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],k?o=(a+=g)+v:(f&amp;&amp;(g=Math.max(p,Math.min(d,2*f[i]-a))),g&lt;a?(o=a,a=g):o=g),m[0]!=a||m[1]!=o)return i?r=null:e=null,m[0]=a,m[1]=o,!0}function z(){I(),b.style(&quot;pointer-events&quot;,&quot;all&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,h.empty()?&quot;none&quot;:null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,null),S.on(&quot;mousemove.brush&quot;,null).on(&quot;mouseup.brush&quot;,null).on(&quot;touchmove.brush&quot;,null).on(&quot;touchend.brush&quot;,null).on(&quot;keydown.brush&quot;,null).on(&quot;keyup.brush&quot;,null),A(),x({type:&quot;brushend&quot;})}b.style(&quot;pointer-events&quot;,&quot;none&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,y.style(&quot;cursor&quot;)),x({type:&quot;brushstart&quot;}),I()}return h.event=function(i){i.each((function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,Bi?t.select(this).transition().each(&quot;start.brush&quot;,(function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:&quot;brushstart&quot;})})).tween(&quot;brush:brush&quot;,(function(){var t=xr(s,a.x),n=xr(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:&quot;brush&quot;,mode:&quot;resize&quot;})}})).each(&quot;end.brush&quot;,(function(){e=a.i,r=a.j,i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;})})):(i({type:&quot;brushstart&quot;}),i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;}))}))},h.x=function(t){return arguments.length?(f=Ki[!(i=t)&lt;&lt;1|!a],h):i},h.y=function(t){return arguments.length?(f=Ki[!i&lt;&lt;1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&amp;&amp;a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&amp;&amp;(u=!!t),h):i&amp;&amp;a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&amp;&amp;(n=t[0],o=t[1],a&amp;&amp;(n=n[0],o=o[0]),e=[n,o],i.invert&amp;&amp;(n=i(n),o=i(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f),n==s[0]&amp;&amp;o==s[1]||(s=[n,o])),a&amp;&amp;(c=t[0],u=t[1],i&amp;&amp;(c=c[1],u=u[1]),r=[c,u],a.invert&amp;&amp;(c=a(c),u=a(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f),c==l[0]&amp;&amp;u==l[1]||(l=[c,u])),h):(i&amp;&amp;(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&amp;&amp;(n=i.invert(n),o=i.invert(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f))),a&amp;&amp;(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&amp;&amp;(c=a.invert(c),u=a.invert(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f))),i&amp;&amp;a?[[n,c],[o,u]]:i?[n,o]:a&amp;&amp;[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&amp;&amp;s[0]==s[1]||!!a&amp;&amp;l[0]==l[1]},t.rebind(h,n,&quot;on&quot;)};var Ji={n:&quot;ns-resize&quot;,e:&quot;ew-resize&quot;,s:&quot;ns-resize&quot;,w:&quot;ew-resize&quot;,nw:&quot;nwse-resize&quot;,ne:&quot;nesw-resize&quot;,se:&quot;nwse-resize&quot;,sw:&quot;nesw-resize&quot;},Ki=[[&quot;n&quot;,&quot;e&quot;,&quot;s&quot;,&quot;w&quot;,&quot;nw&quot;,&quot;ne&quot;,&quot;se&quot;,&quot;sw&quot;],[&quot;e&quot;,&quot;w&quot;],[&quot;n&quot;,&quot;s&quot;],[]];function Qi(t){return JSON.parse(t.responseText)}function $i(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}t.text=ue((function(t){return t.responseText})),t.json=function(t,e){return fe(t,&quot;application/json&quot;,Qi,e)},t.html=function(t,e){return fe(t,&quot;text/html&quot;,$i,e)},t.xml=ue((function(t){return t.responseXML})),&quot;object&quot;==typeof e&amp;&amp;e.exports?e.exports=t:this.d3=t}).apply(self)},{}],59:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./quad&quot;)},{&quot;./quad&quot;:60}],60:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;clamp&quot;),a=t(&quot;parse-rect&quot;),o=t(&quot;array-bounds&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;defined&quot;),c=t(&quot;flatten-vertex-data&quot;),u=t(&quot;is-obj&quot;),f=t(&quot;dtype&quot;),h=t(&quot;math-log2&quot;);function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l&lt;c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,&quot;float64&quot;),e=s(e,{bounds:&quot;range bounds dataBox databox&quot;,maxDepth:&quot;depth maxDepth maxdepth level maxLevel maxlevel levels&quot;,dtype:&quot;type dtype format out dst output destination&quot;});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&amp;&amp;i[2]++,i[1]===i[3]&amp;&amp;i[3]++;var d,g=p(t,i),m=t.length&gt;&gt;&gt;1;e.dtype||(e.dtype=&quot;array&quot;),&quot;string&quot;==typeof e.dtype?d=new(f(e.dtype))(m):e.dtype&amp;&amp;(d=e.dtype,Array.isArray(d)&amp;&amp;(d.length=m));for(var v=0;v&lt;m;++v)d[v]=v;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]),c=b[o]||(b[o]=[]),u=x[o]||(x[o]=[]),f=l.length;if(++o&gt;r||s&gt;1073741824){for(var h=0;h&lt;a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}if(l.push(a[0]),c.push(s),a.length&lt;=1)return u.push(null,null,null,null),f;for(var p=.5*i,d=e+p,m=n+p,v=[],_=[],w=[],T=[],k=1,A=a.length;k&lt;A;k++){var M=a[k],S=g[2*M],E=g[2*M+1];S&lt;d?E&lt;m?v.push(M):_.push(M):E&lt;m?w.push(M):T.push(M)}return s&lt;&lt;=2,u.push(t(e,n,p,v,o,s),t(e,m,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,m,p,T,o,s+3)),f}(0,0,1,d,0,1);for(var w=0,T=0;T&lt;y.length;T++){var k=y[T];if(d.set)d.set(k,w);else for(var A=0,M=k.length;A&lt;M;A++)d[A+w]=k[A];var S=w+y[T].length;_[T]=[w,S],w=S}return d.range=function(){var e,r=[],n=arguments.length;for(;n--;)r[n]=arguments[n];if(u(r[r.length-1])){var o=r.pop();r.length||null==o.x&amp;&amp;null==o.l&amp;&amp;null==o.left||(r=[o],e={}),e=s(o,{level:&quot;level maxLevel&quot;,d:&quot;d diam diameter r radius px pxSize pixel pixelSize maxD size minSize&quot;,lod:&quot;lod details ranges offsets&quot;})}else e={};r.length||(r=i);var c=a.apply(void 0,r),f=[Math.min(c.x,c.x+c.width),Math.min(c.y,c.y+c.height),Math.max(c.x,c.x+c.width),Math.max(c.y,c.y+c.height)],d=f[0],g=f[1],m=f[2],v=f[3],b=p([d,g,m,v],i),_=b[0],w=b[1],T=b[2],k=b[3],A=l(e.level,y.length);if(null!=e.d){var M;&quot;number&quot;==typeof e.d?M=[e.d,e.d]:e.d.length&amp;&amp;(M=e.d),A=Math.min(Math.max(Math.ceil(-h(Math.abs(M[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(M[1])/(i[3]-i[1])))),A)}if(A=Math.min(A,y.length),e.lod)return E(_,w,T,k,A);var S=[];function L(e,r,n,i,a,o){if(null!==a&amp;&amp;null!==o&amp;&amp;!(_&gt;e+n||w&gt;r+n||T&lt;e||k&lt;r||i&gt;=A||a===o)){var s=y[i];void 0===o&amp;&amp;(o=s.length);for(var l=a;l&lt;o;l++){var c=s[l],u=t[2*c],f=t[2*c+1];u&gt;=d&amp;&amp;u&lt;=m&amp;&amp;f&gt;=g&amp;&amp;f&lt;=v&amp;&amp;S.push(c)}var h=x[i],p=h[4*a+0],b=h[4*a+1],M=h[4*a+2],E=h[4*a+3],P=C(h,a+1),I=.5*n,O=i+1;L(e,r,I,O,p,b||M||E||P),L(e,r+I,I,O,b,M||E||P),L(e+I,r,I,O,M,E||P),L(e+I,r+I,I,O,E,P)}}function C(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n&gt;t.length)return null;return r}return L(0,0,1,0,0,1),S},d;function E(t,e,r,i,a){for(var o=[],s=0;s&lt;a;s++){var l=b[s],c=_[s][0],u=L(t,e,s),f=L(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}function L(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s&lt;r;s++)n&lt;&lt;=2,n+=t&lt;i?e&lt;a?0:1:e&lt;a?2:3,o*=.5,i+=t&lt;i?-o:o,a+=e&lt;a?-o:o;return n}}},{&quot;array-bounds&quot;:76,&quot;binary-search-bounds&quot;:103,clamp:126,defined:179,dtype:184,&quot;flatten-vertex-data&quot;:252,&quot;is-obj&quot;:456,&quot;math-log2&quot;:467,&quot;parse-rect&quot;:492,&quot;pick-by-alias&quot;:498}],61:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=0;if(t&amp;&amp;t.length&gt;0){e+=Math.abs(a(t[0]));for(var r=1;r&lt;t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e,r,n,i,a,s,l=0,c=t.length;if(c&gt;2){for(s=0;s&lt;c;s++)s===c-2?(n=c-2,i=c-1,a=0):s===c-1?(n=c-1,i=0,a=1):(n=s,i=s+1,a=s+2),e=t[n],r=t[i],l+=(o(t[a][0])-o(e[0]))*Math.sin(o(r[1]));l=6378137*l*6378137/2}return l}function o(t){return t*Math.PI/180}r.default=function(t){return n.geomReduce(t,(function(t,e){return t+function(t){var e,r=0;switch(t.type){case&quot;Polygon&quot;:return i(t.coordinates);case&quot;MultiPolygon&quot;:for(e=0;e&lt;t.coordinates.length;e++)r+=i(t.coordinates[e]);return r;case&quot;Point&quot;:case&quot;MultiPoint&quot;:case&quot;LineString&quot;:case&quot;MultiLineString&quot;:return 0}return 0}(e)}),0)}},{&quot;@turf/meta&quot;:63}],62:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){if(void 0===r&amp;&amp;(r={}),!t)throw new Error(&quot;coordinates is required&quot;);if(!Array.isArray(t))throw new Error(&quot;coordinates must be an Array&quot;);if(t.length&lt;2)throw new Error(&quot;coordinates must be at least 2 numbers long&quot;);if(!d(t[0])||!d(t[1]))throw new Error(&quot;coordinates must contain numbers&quot;);return n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:1.0936*r.earthRadius},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1.0936133},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)}},{}],63:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,g=&quot;FeatureCollection&quot;===d,m=&quot;Feature&quot;===d,v=g?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,g=p?t.features.length:1;for(r=0;r&lt;g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:62}],64:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,(function(t){e[0]&gt;t[0]&amp;&amp;(e[0]=t[0]),e[1]&gt;t[1]&amp;&amp;(e[1]=t[1]),e[2]&lt;t[0]&amp;&amp;(e[2]=t[0]),e[3]&lt;t[1]&amp;&amp;(e[3]=t[1])})),e}i.default=i,r.default=i},{&quot;@turf/meta&quot;:66}],65:[function(t,e,r){arguments[4][62][0].apply(r,arguments)},{dup:62}],66:[function(t,e,r){arguments[4][63][0].apply(r,arguments)},{&quot;@turf/helpers&quot;:65,dup:63}],67:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;),i=t(&quot;@turf/helpers&quot;);r.default=function(t,e){void 0===e&amp;&amp;(e={});var r=0,a=0,o=0;return n.coordEach(t,(function(t){r+=t[0],a+=t[1],o++})),i.point([r/o,a/o],e.properties)}},{&quot;@turf/helpers&quot;:68,&quot;@turf/meta&quot;:69}],68:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)&amp;&amp;!/^\s*$/.test(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:r.earthRadius/1.0936},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1/1.0936},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)},r.radians2degrees=function(){throw new Error(&quot;method has been renamed to `radiansToDegrees`&quot;)},r.degrees2radians=function(){throw new Error(&quot;method has been renamed to `degreesToRadians`&quot;)},r.distanceToDegrees=function(){throw new Error(&quot;method has been renamed to `lengthToDegrees`&quot;)},r.distanceToRadians=function(){throw new Error(&quot;method has been renamed to `lengthToRadians`&quot;)},r.radiansToDistance=function(){throw new Error(&quot;method has been renamed to `radiansToLength`&quot;)},r.bearingToAngle=function(){throw new Error(&quot;method has been renamed to `bearingToAzimuth`&quot;)},r.convertDistance=function(){throw new Error(&quot;method has been renamed to `convertLength`&quot;)}},{}],69:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,g=&quot;FeatureCollection&quot;===d,m=&quot;Feature&quot;===d,v=g?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,g=p?t.features.length:1;for(r=0;r&lt;g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:68}],70:[function(t,e,r){&quot;use strict&quot;;var n=&quot;undefined&quot;==typeof WeakMap?t(&quot;weak-map&quot;):WeakMap,i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=new n;e.exports=function(t){var e=o.get(t),r=e&amp;&amp;(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361,&quot;weak-map&quot;:625}],71:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case&quot;a&quot;:t[6]+=n,t[7]+=i;break;case&quot;v&quot;:t[1]+=i;break;case&quot;h&quot;:t[1]+=n;break;default:for(var s=1;s&lt;t.length;)t[s++]+=n,t[s++]+=i}switch(o){case&quot;Z&quot;:n=e,i=r;break;case&quot;H&quot;:n=t[1];break;case&quot;V&quot;:i=t[1];break;case&quot;M&quot;:n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}},{}],72:[function(t,e,r){var n=t(&quot;pad-left&quot;);e.exports=function(t,e,r){e=&quot;number&quot;==typeof e?e:1,r=r||&quot;: &quot;;var i=t.split(/\r?\n/),a=String(i.length+e-1).length;return i.map((function(t,i){var o=i+e,s=String(o).length;return n(o,a-s)+r+t})).join(&quot;\n&quot;)}},{&quot;pad-left&quot;:490}],73:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o&lt;e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(&quot;robust-orientation&quot;);function i(t,e){for(var r=new Array(e+1),i=0;i&lt;t.length;++i)r[i]=t[i];for(i=0;i&lt;=t.length;++i){for(var a=t.length;a&lt;=e;++a){for(var o=new Array(e),s=0;s&lt;e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{&quot;robust-orientation&quot;:548}],74:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return n(e).filter((function(r){for(var n=new Array(r.length),a=0;a&lt;r.length;++a)n[a]=e[r[a]];return i(n)*t&lt;1}))};var n=t(&quot;delaunay-triangulate&quot;),i=t(&quot;circumradius&quot;)},{circumradius:125,&quot;delaunay-triangulate&quot;:180}],75:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(&quot;alpha-complex&quot;),i=t(&quot;simplicial-complex-boundary&quot;)},{&quot;alpha-complex&quot;:74,&quot;simplicial-complex-boundary&quot;:556}],76:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n&lt;e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o&lt;s;o+=e)t[o]&gt;i&amp;&amp;(i=t[o]),t[o]&lt;a&amp;&amp;(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],77:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(&quot;function&quot;==typeof Array.prototype.findIndex)return t.findIndex(e,r);if(&quot;function&quot;!=typeof e)throw new TypeError(&quot;predicate must be a function&quot;);var n=Object(t),i=n.length;if(0===i)return-1;for(var a=0;a&lt;i;a++)if(e.call(r,n[a],a,n))return a;return-1}},{}],78:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;);e.exports=function(t,e,r){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);null==e&amp;&amp;(e=1);null==r&amp;&amp;(r=n(t,e));for(var i=0;i&lt;e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&amp;&amp;o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s&lt;l;s+=e)isNaN(t[s])||(t[s]=0===c?.5:(t[s]-o)/c)}}return t}},{&quot;array-bounds&quot;:76}],79:[function(t,e,r){e.exports=function(t,e){var r=&quot;number&quot;==typeof t,n=&quot;number&quot;==typeof e;r&amp;&amp;!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i&lt;0)throw new Error(&quot;array length must be positive&quot;);for(var a=new Array(i),o=0,s=t;o&lt;i;o++,s++)a[o]=s;return a}},{}],80:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;object-assign&quot;);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;feross@feross.org&gt; &lt;http://feross.org&gt;
 * @license  MIT
 */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i&lt;a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0}function a(t){return r.Buffer&amp;&amp;&quot;function&quot;==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var o=t(&quot;util/&quot;),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c=&quot;foo&quot;===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&amp;&amp;(&quot;function&quot;==typeof r.ArrayBuffer&amp;&amp;(&quot;function&quot;==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&amp;&amp;(t instanceof DataView||!!(t.buffer&amp;&amp;t.buffer instanceof ArrayBuffer))))}var h=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(o.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&amp;&amp;e[1]}}function g(t,e){return&quot;string&quot;==typeof t?t.length&lt;e?t:t.slice(0,e):t}function m(t){if(c||!o.isFunction(t))return o.inspect(t);var e=d(t);return&quot;[Function&quot;+(e?&quot;: &quot;+e:&quot;&quot;)+&quot;]&quot;}function v(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function y(t,e){t||v(t,!0,e,&quot;==&quot;,h.ok)}function x(t,e,r,n){if(t===e)return!0;if(a(t)&amp;&amp;a(e))return 0===i(t,e);if(o.isDate(t)&amp;&amp;o.isDate(e))return t.getTime()===e.getTime();if(o.isRegExp(t)&amp;&amp;o.isRegExp(e))return t.source===e.source&amp;&amp;t.global===e.global&amp;&amp;t.multiline===e.multiline&amp;&amp;t.lastIndex===e.lastIndex&amp;&amp;t.ignoreCase===e.ignoreCase;if(null!==t&amp;&amp;&quot;object&quot;==typeof t||null!==e&amp;&amp;&quot;object&quot;==typeof e){if(f(t)&amp;&amp;f(e)&amp;&amp;u(t)===u(e)&amp;&amp;!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&amp;&amp;s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(o.isPrimitive(t)||o.isPrimitive(e))return t===e;if(r&amp;&amp;Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),a=b(e);if(i&amp;&amp;!a||!i&amp;&amp;a)return!1;if(i)return t=l.call(t),e=l.call(e),x(t,e,r);var s,c,u=T(t),f=T(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c&gt;=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c&gt;=0;c--)if(s=u[c],!x(t[s],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function b(t){return&quot;[object Arguments]&quot;==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if(&quot;[object RegExp]&quot;==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&amp;&amp;!0===e.call({},t)}function w(t,e,r,n){var i;if(&quot;function&quot;!=typeof e)throw new TypeError('&quot;block&quot; argument must be a function');&quot;string&quot;==typeof r&amp;&amp;(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&amp;&amp;r.name?&quot; (&quot;+r.name+&quot;).&quot;:&quot;.&quot;)+(n?&quot; &quot;+n:&quot;.&quot;),t&amp;&amp;!i&amp;&amp;v(i,r,&quot;Missing expected exception&quot;+n);var a=&quot;string&quot;==typeof n,s=!t&amp;&amp;i&amp;&amp;!r;if((!t&amp;&amp;o.isError(i)&amp;&amp;a&amp;&amp;_(i,r)||s)&amp;&amp;v(i,r,&quot;Got unwanted exception&quot;+n),t&amp;&amp;i&amp;&amp;r&amp;&amp;!_(i,r)||!t&amp;&amp;i)throw i}h.AssertionError=function(t){this.name=&quot;AssertionError&quot;,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(m(t.actual),128)+&quot; &quot;+t.operator+&quot; &quot;+g(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf(&quot;\n&quot;+i);if(a&gt;=0){var o=n.indexOf(&quot;\n&quot;,a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(t,e,r){t!=e&amp;&amp;v(t,e,r,&quot;==&quot;,h.equal)},h.notEqual=function(t,e,r){t==e&amp;&amp;v(t,e,r,&quot;!=&quot;,h.notEqual)},h.deepEqual=function(t,e,r){x(t,e,!1)||v(t,e,r,&quot;deepEqual&quot;,h.deepEqual)},h.deepStrictEqual=function(t,e,r){x(t,e,!0)||v(t,e,r,&quot;deepStrictEqual&quot;,h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){x(t,e,!1)&amp;&amp;v(t,e,r,&quot;notDeepEqual&quot;,h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&amp;&amp;v(e,r,n,&quot;notDeepStrictEqual&quot;,t)},h.strictEqual=function(t,e,r){t!==e&amp;&amp;v(t,e,r,&quot;===&quot;,h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&amp;&amp;v(t,e,r,&quot;!==&quot;,h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n((function t(e,r){e||v(e,!0,r,&quot;==&quot;,t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&amp;&amp;e.push(r);return e}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;object-assign&quot;:487,&quot;util/&quot;:83}],81:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],82:[function(t,e,r){e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;function&quot;==typeof t.copy&amp;&amp;&quot;function&quot;==typeof t.fill&amp;&amp;&quot;function&quot;==typeof t.readUInt8}},{}],83:[function(t,e,r){(function(e,n){(function(){var i=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r&lt;arguments.length;r++)e.push(s(arguments[r]));return e.join(&quot; &quot;)}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if(&quot;%%&quot;===t)return&quot;%&quot;;if(r&gt;=a)return t;switch(t){case&quot;%s&quot;:return String(n[r++]);case&quot;%d&quot;:return Number(n[r++]);case&quot;%j&quot;:try{return JSON.stringify(n[r++])}catch(t){return&quot;[Circular]&quot;}default:return t}})),l=n[r];r&lt;a;l=n[++r])g(l)||!b(l)?o+=&quot; &quot;+l:o+=&quot; &quot;+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length&gt;=3&amp;&amp;(n.depth=arguments[2]),arguments.length&gt;=4&amp;&amp;(n.colors=arguments[3]),d(e)?n.showHidden=e:e&amp;&amp;r._extend(n,e),y(n.showHidden)&amp;&amp;(n.showHidden=!1),y(n.depth)&amp;&amp;(n.depth=2),y(n.colors)&amp;&amp;(n.colors=!1),y(n.customInspect)&amp;&amp;(n.customInspect=!0),n.colors&amp;&amp;(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?&quot;\x1b[&quot;+s.colors[r][0]+&quot;m&quot;+t+&quot;\x1b[&quot;+s.colors[r][1]+&quot;m&quot;:t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&amp;&amp;e&amp;&amp;T(e.inspect)&amp;&amp;e.inspect!==r.inspect&amp;&amp;(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(&quot;undefined&quot;,&quot;undefined&quot;);if(v(e)){var r=&quot;'&quot;+JSON.stringify(e).replace(/^&quot;|&quot;$/g,&quot;&quot;).replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;')+&quot;'&quot;;return t.stylize(r,&quot;string&quot;)}if(m(e))return t.stylize(&quot;&quot;+e,&quot;number&quot;);if(d(e))return t.stylize(&quot;&quot;+e,&quot;boolean&quot;);if(g(e))return t.stylize(&quot;null&quot;,&quot;null&quot;)}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&amp;&amp;(o=Object.getOwnPropertyNames(e)),w(e)&amp;&amp;(o.indexOf(&quot;message&quot;)&gt;=0||o.indexOf(&quot;description&quot;)&gt;=0))return f(e);if(0===o.length){if(T(e)){var l=e.name?&quot;: &quot;+e.name:&quot;&quot;;return t.stylize(&quot;[Function&quot;+l+&quot;]&quot;,&quot;special&quot;)}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;);if(_(e))return t.stylize(Date.prototype.toString.call(e),&quot;date&quot;);if(w(e))return f(e)}var c,b=&quot;&quot;,k=!1,A=[&quot;{&quot;,&quot;}&quot;];(p(e)&amp;&amp;(k=!0,A=[&quot;[&quot;,&quot;]&quot;]),T(e))&amp;&amp;(b=&quot; [Function&quot;+(e.name?&quot;: &quot;+e.name:&quot;&quot;)+&quot;]&quot;);return x(e)&amp;&amp;(b=&quot; &quot;+RegExp.prototype.toString.call(e)),_(e)&amp;&amp;(b=&quot; &quot;+Date.prototype.toUTCString.call(e)),w(e)&amp;&amp;(b=&quot; &quot;+f(e)),0!==o.length||k&amp;&amp;0!=e.length?n&lt;0?x(e)?t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;):t.stylize(&quot;[Object]&quot;,&quot;special&quot;):(t.seen.push(e),c=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o&lt;s;++o)E(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(&quot;&quot;);return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(t,e,r,n,i,!0))})),a}(t,e,n,s,o):o.map((function(r){return h(t,e,n,s,r,k)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf(&quot;\n&quot;)&gt;=0&amp;&amp;0,t+e.replace(/\u001b\[\d\d?m/g,&quot;&quot;).length+1}),0)&gt;60)return r[0]+(&quot;&quot;===e?&quot;&quot;:e+&quot;\n &quot;)+&quot; &quot;+t.join(&quot;,\n  &quot;)+&quot; &quot;+r[1];return r[0]+e+&quot; &quot;+t.join(&quot;, &quot;)+&quot; &quot;+r[1]}(c,b,A)):A[0]+b+A[1]}function f(t){return&quot;[&quot;+Error.prototype.toString.call(t)+&quot;]&quot;}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(&quot;[Getter/Setter]&quot;,&quot;special&quot;):t.stylize(&quot;[Getter]&quot;,&quot;special&quot;):l.set&amp;&amp;(s=t.stylize(&quot;[Setter]&quot;,&quot;special&quot;)),E(n,i)||(o=&quot;[&quot;+i+&quot;]&quot;),s||(t.seen.indexOf(l.value)&lt;0?(s=g(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(&quot;\n&quot;)&gt;-1&amp;&amp;(s=a?s.split(&quot;\n&quot;).map((function(t){return&quot;  &quot;+t})).join(&quot;\n&quot;).substr(2):&quot;\n&quot;+s.split(&quot;\n&quot;).map((function(t){return&quot;   &quot;+t})).join(&quot;\n&quot;)):s=t.stylize(&quot;[Circular]&quot;,&quot;special&quot;)),y(o)){if(a&amp;&amp;i.match(/^\d+$/))return s;(o=JSON.stringify(&quot;&quot;+i)).match(/^&quot;([a-zA-Z_][a-zA-Z_0-9]*)&quot;$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,&quot;name&quot;)):(o=o.replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;').replace(/(^&quot;|&quot;$)/g,&quot;'&quot;),o=t.stylize(o,&quot;string&quot;))}return o+&quot;: &quot;+s}function p(t){return Array.isArray(t)}function d(t){return&quot;boolean&quot;==typeof t}function g(t){return null===t}function m(t){return&quot;number&quot;==typeof t}function v(t){return&quot;string&quot;==typeof t}function y(t){return void 0===t}function x(t){return b(t)&amp;&amp;&quot;[object RegExp]&quot;===k(t)}function b(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t}function _(t){return b(t)&amp;&amp;&quot;[object Date]&quot;===k(t)}function w(t){return b(t)&amp;&amp;(&quot;[object Error]&quot;===k(t)||t instanceof Error)}function T(t){return&quot;function&quot;==typeof t}function k(t){return Object.prototype.toString.call(t)}function A(t){return t&lt;10?&quot;0&quot;+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&amp;&amp;(a=e.env.NODE_DEBUG||&quot;&quot;),t=t.toUpperCase(),!o[t])if(new RegExp(&quot;\\b&quot;+t+&quot;\\b&quot;,&quot;i&quot;).test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(&quot;%s %d: %s&quot;,t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:&quot;cyan&quot;,number:&quot;yellow&quot;,boolean:&quot;yellow&quot;,undefined:&quot;grey&quot;,null:&quot;bold&quot;,string:&quot;green&quot;,date:&quot;magenta&quot;,regexp:&quot;red&quot;},r.isArray=p,r.isBoolean=d,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=m,r.isString=v,r.isSymbol=function(t){return&quot;symbol&quot;==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=T,r.isPrimitive=function(t){return null===t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||&quot;symbol&quot;==typeof t||void 0===t},r.isBuffer=t(&quot;./support/isBuffer&quot;);var M=[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;];function S(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(&quot;:&quot;);return[t.getDate(),M[t.getMonth()],e].join(&quot; &quot;)}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){console.log(&quot;%s - %s&quot;,S(),r.format.apply(r,arguments))},r.inherits=t(&quot;inherits&quot;),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./support/isBuffer&quot;:82,_process:528,inherits:81}],84:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],85:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o&lt;r;++o){for(var s=new Array(r+1),l=0;l&lt;=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(o=0;o&lt;=r;++o)a[r][o]=1;var c=new Array(r+1);for(o=0;o&lt;r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&amp;&amp;(f=1);var h=new Array(r+1);for(o=0;o&lt;=r;++o)h[o]=i(u[o])/f;return h};var n=t(&quot;robust-linear-solve&quot;);function i(t){for(var e=0,r=0;r&lt;t.length;++r)e+=t[r];return e}},{&quot;robust-linear-solve&quot;:547}],86:[function(t,e,r){&quot;use strict&quot;;r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s&gt;0?o-4:o;for(r=0;r&lt;f;r+=4)e=i[t.charCodeAt(r)]&lt;&lt;18|i[t.charCodeAt(r+1)]&lt;&lt;12|i[t.charCodeAt(r+2)]&lt;&lt;6|i[t.charCodeAt(r+3)],l[u++]=e&gt;&gt;16&amp;255,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e;2===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;2|i[t.charCodeAt(r+1)]&gt;&gt;4,l[u++]=255&amp;e);1===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;10|i[t.charCodeAt(r+1)]&lt;&lt;4|i[t.charCodeAt(r+2)]&gt;&gt;2,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o&lt;s;o+=16383)a.push(u(t,o,o+16383&gt;s?s:o+16383));1===i?(e=t[r-1],a.push(n[e&gt;&gt;2]+n[e&lt;&lt;4&amp;63]+&quot;==&quot;)):2===i&amp;&amp;(e=(t[r-2]&lt;&lt;8)+t[r-1],a.push(n[e&gt;&gt;10]+n[e&gt;&gt;4&amp;63]+n[e&lt;&lt;2&amp;63]+&quot;=&quot;));return a.join(&quot;&quot;)};for(var n=[],i=[],a=&quot;undefined&quot;!=typeof Uint8Array?Uint8Array:Array,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,s=0,l=o.length;s&lt;l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var r=t.indexOf(&quot;=&quot;);return-1===r&amp;&amp;(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s&lt;r;s+=3)i=(t[s]&lt;&lt;16&amp;16711680)+(t[s+1]&lt;&lt;8&amp;65280)+(255&amp;t[s+2]),o.push(n[(a=i)&gt;&gt;18&amp;63]+n[a&gt;&gt;12&amp;63]+n[a&gt;&gt;6&amp;63]+n[63&amp;a]);return o.join(&quot;&quot;)}i[&quot;-&quot;.charCodeAt(0)]=62,i[&quot;_&quot;.charCodeAt(0)]=63},{}],87:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:97}],88:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],89:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{&quot;./lib/rationalize&quot;:97}],90:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-rat&quot;),i=t(&quot;./lib/is-bn&quot;),a=t(&quot;./lib/num-to-bn&quot;),o=t(&quot;./lib/str-to-bn&quot;),s=t(&quot;./lib/rationalize&quot;),l=t(&quot;./div&quot;);e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c,u,f=0;if(i(e))c=e.clone();else if(&quot;string&quot;==typeof e)c=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))c=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),f-=256;c=a(e)}}if(n(r))c.mul(r[1]),u=r[0].clone();else if(i(r))u=r.clone();else if(&quot;string&quot;==typeof r)u=o(r);else if(r)if(r===Math.floor(r))u=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),f+=256;u=a(r)}else u=a(1);f&gt;0?c=c.ushln(f):f&lt;0&amp;&amp;(u=u.ushln(-f));return s(c,u)}},{&quot;./div&quot;:89,&quot;./is-rat&quot;:91,&quot;./lib/is-bn&quot;:95,&quot;./lib/num-to-bn&quot;:96,&quot;./lib/rationalize&quot;:97,&quot;./lib/str-to-bn&quot;:98}],91:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/is-bn&quot;);e.exports=function(t){return Array.isArray(t)&amp;&amp;2===t.length&amp;&amp;n(t[0])&amp;&amp;n(t[1])}},{&quot;./lib/is-bn&quot;:95}],92:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return t.cmp(new n(0))}},{&quot;bn.js&quot;:106}],93:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./bn-sign&quot;);e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a&lt;e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{&quot;./bn-sign&quot;:92}],94:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=t(&quot;bit-twiddle&quot;).countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e&lt;32)return e;var r=i(n.hi(t));if(r&gt;20)return 52;return r+32}},{&quot;bit-twiddle&quot;:104,&quot;double-bits&quot;:182}],95:[function(t,e,r){&quot;use strict&quot;;t(&quot;bn.js&quot;);e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Boolean(t.words)}},{&quot;bn.js&quot;:106}],96:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;),i=t(&quot;double-bits&quot;);e.exports=function(t){var e=i.exponent(t);return e&lt;52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{&quot;bn.js&quot;:106,&quot;double-bits&quot;:182}],97:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./num-to-bn&quot;),i=t(&quot;./bn-sign&quot;);e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a&lt;0&amp;&amp;(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{&quot;./bn-sign&quot;:92,&quot;./num-to-bn&quot;:96}],98:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return new n(t)}},{&quot;bn.js&quot;:106}],99:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:97}],100:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-sign&quot;);e.exports=function(t){return n(t[0])*n(t[1])}},{&quot;./lib/bn-sign&quot;:92}],101:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:97}],102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-to-num&quot;),i=t(&quot;./lib/ctz&quot;);e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53;f=n(l.ushln(h).divRound(r));return h&lt;1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{&quot;./lib/bn-to-num&quot;:93,&quot;./lib/ctz&quot;:94}],103:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){for(var a=i+1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&gt;=0?(a=o,i=o-1):n=o+1}return a}function i(t,e,r,n,i){for(var a=i+1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&gt;0?(a=o,i=o-1):n=o+1}return a}function a(t,e,r,n,i){for(var a=n-1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&lt;0?(a=o,n=o+1):i=o-1}return a}function o(t,e,r,n,i){for(var a=n-1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&lt;=0?(a=o,n=o+1):i=o-1}return a}function s(t,e,r,n,i){for(;n&lt;=i;){var a=n+i&gt;&gt;&gt;1,o=t[a],s=void 0!==r?r(o,e):o-e;if(0===s)return a;s&lt;=0?n=a+1:i=a-1}return-1}function l(t,e,r,n,i,a){return&quot;function&quot;==typeof r?a(t,e,r,void 0===n?0:0|n,void 0===i?t.length-1:0|i):a(t,e,void 0,void 0===r?0:0|r,void 0===n?t.length-1:0|n)}e.exports={ge:function(t,e,r,i,a){return l(t,e,r,i,a,n)},gt:function(t,e,r,n,a){return l(t,e,r,n,a,i)},lt:function(t,e,r,n,i){return l(t,e,r,n,i,a)},le:function(t,e,r,n,i){return l(t,e,r,n,i,o)},eq:function(t,e,r,n,i){return l(t,e,r,n,i,s)}}},{}],104:[function(t,e,r){&quot;use strict&quot;;function n(t){var e=32;return(t&amp;=-t)&amp;&amp;e--,65535&amp;t&amp;&amp;(e-=16),16711935&amp;t&amp;&amp;(e-=8),252645135&amp;t&amp;&amp;(e-=4),858993459&amp;t&amp;&amp;(e-=2),1431655765&amp;t&amp;&amp;(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1&lt;&lt;31,r.sign=function(t){return(t&gt;0)-(t&lt;0)},r.abs=function(t){var e=t&gt;&gt;31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&amp;-(t&lt;e)},r.max=function(t,e){return t^(t^e)&amp;-(t&lt;e)},r.isPow2=function(t){return!(t&amp;t-1||!t)},r.log2=function(t){var e,r;return e=(t&gt;65535)&lt;&lt;4,e|=r=((t&gt;&gt;&gt;=e)&gt;255)&lt;&lt;3,e|=r=((t&gt;&gt;&gt;=r)&gt;15)&lt;&lt;2,(e|=r=((t&gt;&gt;&gt;=r)&gt;3)&lt;&lt;1)|(t&gt;&gt;&gt;=r)&gt;&gt;1},r.log10=function(t){return t&gt;=1e9?9:t&gt;=1e8?8:t&gt;=1e7?7:t&gt;=1e6?6:t&gt;=1e5?5:t&gt;=1e4?4:t&gt;=1e3?3:t&gt;=100?2:t&gt;=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&amp;(t-=t&gt;&gt;&gt;1&amp;1431655765))+(t&gt;&gt;&gt;2&amp;858993459))+(t&gt;&gt;&gt;4)&amp;252645135)&gt;&gt;&gt;24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)+1},r.prevPow2=function(t){return t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)-(t&gt;&gt;&gt;1)},r.parity=function(t){return t^=t&gt;&gt;&gt;16,t^=t&gt;&gt;&gt;8,t^=t&gt;&gt;&gt;4,27030&gt;&gt;&gt;(t&amp;=15)&amp;1};var i=new Array(256);!function(t){for(var e=0;e&lt;256;++e){var r=e,n=e,i=7;for(r&gt;&gt;&gt;=1;r;r&gt;&gt;&gt;=1)n&lt;&lt;=1,n|=1&amp;r,--i;t[e]=n&lt;&lt;i&amp;255}}(i),r.reverse=function(t){return i[255&amp;t]&lt;&lt;24|i[t&gt;&gt;&gt;8&amp;255]&lt;&lt;16|i[t&gt;&gt;&gt;16&amp;255]&lt;&lt;8|i[t&gt;&gt;&gt;24&amp;255]},r.interleave2=function(t,e){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t&amp;=65535)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e&amp;=65535)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1},r.deinterleave2=function(t,e){return(t=65535&amp;((t=16711935&amp;((t=252645135&amp;((t=858993459&amp;((t=t&gt;&gt;&gt;e&amp;1431655765)|t&gt;&gt;&gt;1))|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;16))&lt;&lt;16&gt;&gt;16},r.interleave3=function(t,e,r){return t=1227133513&amp;((t=3272356035&amp;((t=251719695&amp;((t=4278190335&amp;((t&amp;=1023)|t&lt;&lt;16))|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2),(t|=(e=1227133513&amp;((e=3272356035&amp;((e=251719695&amp;((e=4278190335&amp;((e&amp;=1023)|e&lt;&lt;16))|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))&lt;&lt;1)|(r=1227133513&amp;((r=3272356035&amp;((r=251719695&amp;((r=4278190335&amp;((r&amp;=1023)|r&lt;&lt;16))|r&lt;&lt;8))|r&lt;&lt;4))|r&lt;&lt;2))&lt;&lt;2},r.deinterleave3=function(t,e){return(t=1023&amp;((t=4278190335&amp;((t=251719695&amp;((t=3272356035&amp;((t=t&gt;&gt;&gt;e&amp;1227133513)|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;8))|t&gt;&gt;&gt;16))&lt;&lt;22&gt;&gt;22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&amp;-~e)-1&gt;&gt;&gt;n(t)+1}},{}],105:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,g,m=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(&quot;For raw data width and height should be provided by options&quot;);r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&amp;&amp;t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(&quot;2d&quot;),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&amp;&amp;t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&amp;&amp;t instanceof window.ImageData&amp;&amp;(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&amp;&amp;l instanceof window.Uint8ClampedArray||window.Uint8Array&amp;&amp;l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,g=c.length;d&lt;g;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(&quot;Raw data can have only 1 value per pixel&quot;);var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),T=Array(s+1),k=Array(s);for(d=0,g=r*o;d&lt;g;d++){var A=l[d];x[d]=1===A?0:0===A?i:Math.pow(Math.max(0,.5-A),2),b[d]=1===A?i:0===A?0:Math.pow(Math.max(0,A-.5),2)}a(x,r,o,_,w,k,T),a(b,r,o,_,w,k,T);var M=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,g=r*o;d&lt;g;d++)M[d]=n(1-((x[d]-b[d])/v+m),0,1);return M};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l&lt;e;l++){for(var c=0;c&lt;r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c&lt;r;c++)t[c*e+l]=i[c]}for(c=0;c&lt;r;c++){for(l=0;l&lt;e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l&lt;e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o&lt;a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l&lt;=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o&lt;a;o++){for(;n[s+1]&lt;o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:126}],106:[function(t,e,r){!function(e,r){&quot;use strict&quot;;function n(t,e){if(!t)throw new Error(e||&quot;Assertion failed&quot;)}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&amp;&amp;(&quot;le&quot;!==e&amp;&amp;&quot;be&quot;!==e||(r=e,e=10),this._init(t||0,e||10,r||&quot;be&quot;))}var o;&quot;object&quot;==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=t(&quot;buffer&quot;).Buffer}catch(t){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a&lt;i;a++){var o=t.charCodeAt(a)-48;n&lt;&lt;=4,n|=o&gt;=49&amp;&amp;o&lt;=54?o-49+10:o&gt;=17&amp;&amp;o&lt;=22?o-17+10:15&amp;o}return n}function l(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o&lt;a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s&gt;=49?s-49+10:s&gt;=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)&gt;0?t:e},a.min=function(t,e){return t.cmp(e)&lt;0?t:e},a.prototype._init=function(t,e,r){if(&quot;number&quot;==typeof t)return this._initNumber(t,e,r);if(&quot;object&quot;==typeof t)return this._initArray(t,e,r);&quot;hex&quot;===e&amp;&amp;(e=16),n(e===(0|e)&amp;&amp;e&gt;=2&amp;&amp;e&lt;=36);var i=0;&quot;-&quot;===(t=t.toString().replace(/\s+/g,&quot;&quot;))[0]&amp;&amp;i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),&quot;-&quot;===t[0]&amp;&amp;(this.negative=1),this.strip(),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t&lt;0&amp;&amp;(this.negative=1,t=-t),t&lt;67108864?(this.words=[67108863&amp;t],this.length=1):t&lt;4503599627370496?(this.words=[67108863&amp;t,t/67108864&amp;67108863],this.length=2):(n(t&lt;9007199254740992),this.words=[67108863&amp;t,t/67108864&amp;67108863,1],this.length=3),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(&quot;number&quot;==typeof t.length),t.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i&lt;this.length;i++)this.words[i]=0;var a,o,s=0;if(&quot;be&quot;===r)for(i=t.length-1,a=0;i&gt;=0;i-=3)o=t[i]|t[i-1]&lt;&lt;8|t[i-2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);else if(&quot;le&quot;===r)for(i=0,a=0;i&lt;t.length;i+=3)o=t[i]|t[i+1]&lt;&lt;8|t[i+2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r&lt;this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r&gt;=e;r-=6)i=s(t,r,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303,(a+=24)&gt;=26&amp;&amp;(a-=26,n++);r+6!==e&amp;&amp;(i=s(t,e,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i&lt;=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u&lt;s;u+=n)c=l(t,u,u+n,e),this.imuln(i),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=l(t,u,t.length,e),u=0;u&lt;o;u++)f*=e;this.imuln(f),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e&lt;this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length&lt;t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length&gt;1&amp;&amp;0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&amp;&amp;0===this.words[0]&amp;&amp;(this.negative=0),this},a.prototype.inspect=function(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;};var c=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&amp;o,l=o/67108864|0;r.words[0]=s;for(var c=1;c&lt;n;c++){for(var u=l&gt;&gt;&gt;26,f=67108863&amp;l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p&lt;=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&amp;o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||&quot;hex&quot;===t){r=&quot;&quot;;for(var i=0,a=0,o=0;o&lt;this.length;o++){var s=this.words[o],l=(16777215&amp;(s&lt;&lt;i|a)).toString(16);r=0!==(a=s&gt;&gt;&gt;24-i&amp;16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)&gt;=26&amp;&amp;(i-=26,o--)}for(0!==a&amp;&amp;(r=a.toString(16)+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}if(t===(0|t)&amp;&amp;t&gt;=2&amp;&amp;t&lt;=36){var h=u[t],p=f[t];r=&quot;&quot;;var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?g+r:c[h-g.length]+g+r}for(this.isZero()&amp;&amp;(r=&quot;0&quot;+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}n(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&amp;&amp;1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;n(!1,&quot;Number can only safely store up to 53 bits&quot;),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i&lt;=a,&quot;byte array longer than desired length&quot;),n(a&gt;0,&quot;Requested array length &lt;= 0&quot;),this.strip();var o,s,l=&quot;le&quot;===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s&lt;a;s++)c[s]=0}else{for(s=0;s&lt;a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e&gt;=4096&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),e&gt;=64&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),e&gt;=8&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),e&gt;=2&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&amp;e)&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),0==(127&amp;e)&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),0==(15&amp;e)&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),0==(3&amp;e)&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),0==(1&amp;e)&amp;&amp;r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e&lt;this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length&lt;t.length;)this.words[this.length++]=0;for(var e=0;e&lt;t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length&gt;t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length&gt;t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length&gt;t.length?t:this;for(var r=0;r&lt;e.length;r++)this.words[r]=this.words[r]&amp;t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length&gt;t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length&gt;t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length&gt;t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n&lt;r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n&lt;e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length&gt;t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length&gt;t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r&gt;0&amp;&amp;e--;for(var i=0;i&lt;e;i++)this.words[i]=67108863&amp;~this.words[i];return r&gt;0&amp;&amp;(this.words[i]=~this.words[i]&amp;67108863&gt;&gt;26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1&lt;&lt;i:this.words[r]&amp;~(1&lt;&lt;i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&amp;&amp;0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&amp;&amp;0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length&gt;t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a&lt;n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;for(;0!==i&amp;&amp;a&lt;r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a&lt;r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&amp;&amp;0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&amp;&amp;0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length&gt;t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i&gt;0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o&lt;n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;for(;0!==a&amp;&amp;o&lt;r.length;o++)a=(e=(0|r.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;if(0===a&amp;&amp;o&lt;r.length&amp;&amp;r!==this)for(;o&lt;r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&amp;&amp;(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&amp;u,h=u&gt;&gt;&gt;13,p=0|o[1],d=8191&amp;p,g=p&gt;&gt;&gt;13,m=0|o[2],v=8191&amp;m,y=m&gt;&gt;&gt;13,x=0|o[3],b=8191&amp;x,_=x&gt;&gt;&gt;13,w=0|o[4],T=8191&amp;w,k=w&gt;&gt;&gt;13,A=0|o[5],M=8191&amp;A,S=A&gt;&gt;&gt;13,E=0|o[6],L=8191&amp;E,C=E&gt;&gt;&gt;13,P=0|o[7],I=8191&amp;P,O=P&gt;&gt;&gt;13,z=0|o[8],D=8191&amp;z,R=z&gt;&gt;&gt;13,F=0|o[9],B=8191&amp;F,N=F&gt;&gt;&gt;13,j=0|s[0],U=8191&amp;j,V=j&gt;&gt;&gt;13,q=0|s[1],H=8191&amp;q,G=q&gt;&gt;&gt;13,Y=0|s[2],W=8191&amp;Y,X=Y&gt;&gt;&gt;13,Z=0|s[3],J=8191&amp;Z,K=Z&gt;&gt;&gt;13,Q=0|s[4],$=8191&amp;Q,tt=Q&gt;&gt;&gt;13,et=0|s[5],rt=8191&amp;et,nt=et&gt;&gt;&gt;13,it=0|s[6],at=8191&amp;it,ot=it&gt;&gt;&gt;13,st=0|s[7],lt=8191&amp;st,ct=st&gt;&gt;&gt;13,ut=0|s[8],ft=8191&amp;ut,ht=ut&gt;&gt;&gt;13,pt=0|s[9],dt=8191&amp;pt,gt=pt&gt;&gt;&gt;13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,U))|0)+((8191&amp;(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))&lt;&lt;13)|0;c=((a=Math.imul(h,V))+(i&gt;&gt;&gt;13)|0)+(mt&gt;&gt;&gt;26)|0,mt&amp;=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(g,U)|0,a=Math.imul(g,V);var vt=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,H)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,G)|0)+(i&gt;&gt;&gt;13)|0)+(vt&gt;&gt;&gt;26)|0,vt&amp;=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,W)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,X)|0)+(i&gt;&gt;&gt;13)|0)+(yt&gt;&gt;&gt;26)|0,yt&amp;=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(g,W)|0,a=a+Math.imul(g,X)|0;var xt=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,J)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,K)|0)+(i&gt;&gt;&gt;13)|0)+(xt&gt;&gt;&gt;26)|0,xt&amp;=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,K)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,tt)|0)+(i&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,nt)|0)+(i&gt;&gt;&gt;13)|0)+(_t&gt;&gt;&gt;26)|0,_t&amp;=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,V))+Math.imul(C,U)|0,a=Math.imul(C,V),n=n+Math.imul(M,H)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ot)|0)+(i&gt;&gt;&gt;13)|0)+(wt&gt;&gt;&gt;26)|0,wt&amp;=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,V))+Math.imul(O,U)|0,a=Math.imul(O,V),n=n+Math.imul(L,H)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(C,H)|0,a=a+Math.imul(C,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var Tt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ct)|0)+(i&gt;&gt;&gt;13)|0)+(Tt&gt;&gt;&gt;26)|0,Tt&amp;=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(I,H)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,G)|0,n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var kt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ht)|0)+(i&gt;&gt;&gt;13)|0)+(kt&gt;&gt;&gt;26)|0,kt&amp;=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,K)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,ht)|0;var At=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,gt)|0)+Math.imul(h,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,gt)|0)+(i&gt;&gt;&gt;13)|0)+(At&gt;&gt;&gt;26)|0,At&amp;=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,K)|0,n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(C,$)|0,a=a+Math.imul(C,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var Mt=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(g,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Mt&gt;&gt;&gt;26)|0,Mt&amp;=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,X))+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,tt)|0,n=n+Math.imul(L,rt)|0,i=(i=i+Math.imul(L,nt)|0)+Math.imul(C,rt)|0,a=a+Math.imul(C,nt)|0,n=n+Math.imul(M,at)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(v,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(v,gt)|0)+Math.imul(y,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(y,gt)|0)+(i&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,K))+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(O,rt)|0,a=a+Math.imul(O,nt)|0,n=n+Math.imul(L,at)|0,i=(i=i+Math.imul(L,ot)|0)+Math.imul(C,at)|0,a=a+Math.imul(C,ot)|0,n=n+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(b,gt)|0)+Math.imul(_,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(_,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Et&gt;&gt;&gt;26)|0,Et&amp;=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(I,at)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(O,at)|0,a=a+Math.imul(O,ot)|0,n=n+Math.imul(L,lt)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(C,lt)|0,a=a+Math.imul(C,ct)|0,n=n+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Lt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(T,gt)|0)+Math.imul(k,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(k,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Lt&gt;&gt;&gt;26)|0,Lt&amp;=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(O,lt)|0,a=a+Math.imul(O,ct)|0,n=n+Math.imul(L,ft)|0,i=(i=i+Math.imul(L,ht)|0)+Math.imul(C,ft)|0,a=a+Math.imul(C,ht)|0;var Ct=(c+(n=n+Math.imul(M,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(M,gt)|0)+Math.imul(S,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(S,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Ct&gt;&gt;&gt;26)|0,Ct&amp;=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,ht)|0)+Math.imul(O,ft)|0,a=a+Math.imul(O,ht)|0;var Pt=(c+(n=n+Math.imul(L,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(L,gt)|0)+Math.imul(C,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(C,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Pt&gt;&gt;&gt;26)|0,Pt&amp;=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var It=(c+(n=n+Math.imul(I,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(I,gt)|0)+Math.imul(O,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(O,gt)|0)+(i&gt;&gt;&gt;13)|0)+(It&gt;&gt;&gt;26)|0,It&amp;=67108863,n=Math.imul(B,ft),i=(i=Math.imul(B,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var Ot=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(D,gt)|0)+Math.imul(R,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(R,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Ot&gt;&gt;&gt;26)|0,Ot&amp;=67108863;var zt=(c+(n=Math.imul(B,dt))|0)+((8191&amp;(i=(i=Math.imul(B,gt))+Math.imul(N,dt)|0))&lt;&lt;13)|0;return c=((a=Math.imul(N,gt))+(i&gt;&gt;&gt;13)|0)+(zt&gt;&gt;&gt;26)|0,zt&amp;=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=At,l[10]=Mt,l[11]=St,l[12]=Et,l[13]=Lt,l[14]=Ct,l[15]=Pt,l[16]=It,l[17]=Ot,l[18]=zt,0!==c&amp;&amp;(l[19]=c,r.length++),r};function d(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&amp;&amp;10===t.length?p(this,t,e):r&lt;63?h(this,t,e):r&lt;1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a&lt;r.length-1;a++){var o=i;i=0;for(var s=67108863&amp;n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c&lt;=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&amp;f;s=67108863&amp;(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,o&amp;=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):d(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n&lt;t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i&lt;e;i++)n|=(1&amp;t)&lt;&lt;e-i-1,t&gt;&gt;=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o&lt;a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o&lt;i;o&lt;&lt;=1)for(var s=o&lt;&lt;1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u&lt;i;u+=s)for(var f=l,h=c,p=0;p&lt;o;p++){var d=r[u+p],g=n[u+p],m=r[u+p+o],v=n[u+p+o],y=f*m-h*v;v=f*v+h*m,m=y,r[u+p]=d+m,n[u+p]=g+v,r[u+p+o]=d-m,n[u+p+o]=g-v,p!==s&amp;&amp;(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&amp;r,i=0;for(r=r/2|0;r;r&gt;&gt;&gt;=1)i++;return 1&lt;&lt;i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r&lt;=1))for(var n=0;n&lt;r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n&lt;e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&amp;i,r=i&lt;67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o&lt;e;o++)a+=0|t[o],r[2*o]=8191&amp;a,a&gt;&gt;&gt;=13,r[2*o+1]=8191&amp;a,a&gt;&gt;&gt;=13;for(o=2*e;o&lt;i;++o)r[o]=0;n(0===a),n(0==(-8192&amp;a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p&lt;n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),d(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(&quot;number&quot;==typeof t),n(t&lt;67108864);for(var e=0,r=0;r&lt;this.length;r++){var i=(0|this.words[r])*t,a=(67108863&amp;i)+(67108863&amp;e);e&gt;&gt;=26,e+=i/67108864|0,e+=a&gt;&gt;&gt;26,this.words[r]=67108863&amp;a}return 0!==e&amp;&amp;(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r&lt;e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&amp;1&lt;&lt;i)&gt;&gt;&gt;i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n&lt;e.length&amp;&amp;0===e[n];n++,r=r.sqr());if(++n&lt;e.length)for(var i=r.sqr();n&lt;e.length;n++,i=i.sqr())0!==e[n]&amp;&amp;(r=r.mul(i));return r},a.prototype.iushln=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e,r=t%26,i=(t-r)/26,a=67108863&gt;&gt;&gt;26-r&lt;&lt;26-r;if(0!==r){var o=0;for(e=0;e&lt;this.length;e++){var s=this.words[e]&amp;a,l=(0|this.words[e])-s&lt;&lt;r;this.words[e]=l|o,o=s&gt;&gt;&gt;26-r}o&amp;&amp;(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e&gt;=0;e--)this.words[e+i]=this.words[e];for(e=0;e&lt;i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863&gt;&gt;&gt;a&lt;&lt;a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c&lt;o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length&gt;o)for(this.length-=o,c=0;c&lt;this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c&gt;=0&amp;&amp;(0!==u||c&gt;=i);c--){var f=0|this.words[c];this.words[c]=u&lt;&lt;26-a|f&gt;&gt;&gt;a,u=f&amp;s}return l&amp;&amp;0!==u&amp;&amp;(l.words[l.length++]=u),0===this.length&amp;&amp;(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;return!(this.length&lt;=r)&amp;&amp;!!(this.words[r]&amp;i)},a.prototype.imaskn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=r)return this;if(0!==e&amp;&amp;r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863&gt;&gt;&gt;e&lt;&lt;e;this.words[this.length-1]&amp;=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0?this.isubn(-t):0!==this.negative?1===this.length&amp;&amp;(0|this.words[0])&lt;t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&gt;=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&lt;0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i&lt;t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&amp;l)&gt;&gt;26)-(l/67108864|0),this.words[i+r]=67108863&amp;a}for(;i&lt;this.length-r;i++)s=(a=(0|this.words[i+r])+s)&gt;&gt;26,this.words[i+r]=67108863&amp;a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i&lt;this.length;i++)s=(a=-(0|this.words[i])+s)&gt;&gt;26,this.words[i]=67108863&amp;a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&amp;&amp;(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(&quot;mod&quot;!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c&lt;s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&amp;&amp;(n=u,s&amp;&amp;(s.words[l]=1));for(var f=l-1;f&gt;=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&amp;&amp;(s.words[f]=h)}return s&amp;&amp;s.strip(),n.strip(),&quot;div&quot;!==e&amp;&amp;0!==r&amp;&amp;n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&amp;&amp;0===t.negative?(s=this.neg().divmod(t,e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.iadd(t)),{div:i,mod:o}):0===this.negative&amp;&amp;0!==t.negative?(s=this.divmod(t.neg(),e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&amp;t.negative)?(s=this.neg().divmod(t.neg(),e),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.isub(t)),{div:s.div,mod:o}):t.length&gt;this.length||this.cmp(t)&lt;0?{div:new a(0),mod:this}:1===t.length?&quot;div&quot;===e?{div:this.divn(t.words[0]),mod:null}:&quot;mod&quot;===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,&quot;div&quot;,!1).div},a.prototype.mod=function(t){return this.divmod(t,&quot;mod&quot;,!1).mod},a.prototype.umod=function(t){return this.divmod(t,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a&lt;0||1===i&amp;&amp;0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t&lt;=67108863);for(var e=(1&lt;&lt;26)%t,r=0,i=this.length-1;i&gt;=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t&lt;=67108863);for(var e=0,r=this.length-1;r&gt;=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&amp;&amp;r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&amp;p)&amp;&amp;h&lt;26;++h,p&lt;&lt;=1);if(h&gt;0)for(e.iushrn(h);h-- &gt;0;)(i.isOdd()||o.isOdd())&amp;&amp;(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,g=1;0==(r.words[0]&amp;g)&amp;&amp;d&lt;26;++d,g&lt;&lt;=1);if(d&gt;0)for(r.iushrn(d);d-- &gt;0;)(s.isOdd()||l.isOdd())&amp;&amp;(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)&gt;0&amp;&amp;r.cmpn(1)&gt;0;){for(var c=0,u=1;0==(e.words[0]&amp;u)&amp;&amp;c&lt;26;++c,u&lt;&lt;=1);if(c&gt;0)for(e.iushrn(c);c-- &gt;0;)o.isOdd()&amp;&amp;o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&amp;h)&amp;&amp;f&lt;26;++f,h&lt;&lt;=1);if(f&gt;0)for(r.iushrn(f);f-- &gt;0;)s.isOdd()&amp;&amp;s.iadd(l),s.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)&lt;0&amp;&amp;i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&amp;&amp;r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i&lt;0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&amp;this.words[0])},a.prototype.isOdd=function(){return 1==(1&amp;this.words[0])},a.prototype.andln=function(t){return this.words[0]&amp;t},a.prototype.bincn=function(t){n(&quot;number&quot;==typeof t);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;if(this.length&lt;=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&amp;&amp;o&lt;this.length;o++){var s=0|this.words[o];a=(s+=a)&gt;&gt;&gt;26,s&amp;=67108863,this.words[o]=s}return 0!==a&amp;&amp;(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&amp;&amp;0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t&lt;0;if(0!==this.negative&amp;&amp;!r)return-1;if(0===this.negative&amp;&amp;r)return 1;if(this.strip(),this.length&gt;1)e=1;else{r&amp;&amp;(t=-t),n(t&lt;=67108863,&quot;Number is too big&quot;);var i=0|this.words[0];e=i===t?0:i&lt;t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&amp;&amp;0===t.negative)return-1;if(0===this.negative&amp;&amp;0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length&gt;t.length)return 1;if(this.length&lt;t.length)return-1;for(var e=0,r=this.length-1;r&gt;=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n&lt;i?e=-1:n&gt;i&amp;&amp;(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)&gt;=0},a.prototype.gte=function(t){return this.cmp(t)&gt;=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)&lt;=0},a.prototype.lte=function(t){return this.cmp(t)&lt;=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new w(t)},a.prototype.toRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),n(0===this.negative,&quot;red works only with positives&quot;),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&amp;&amp;!t.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function x(){v.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function b(){v.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function _(){v.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function w(t){if(&quot;string&quot;==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=t,this.prime=null}function T(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e&gt;this.n);var n=e&lt;this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n&gt;0?r.isub(this.p):r.strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(y,v),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n&lt;r;n++)e.words[n]=t.words[n];if(e.length=r,t.length&lt;=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&amp;i,n=10;n&lt;t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&amp;a)&lt;&lt;4|i&gt;&gt;&gt;22,i=a}i&gt;&gt;&gt;=22,t.words[n-10]=i,0===i&amp;&amp;t.length&gt;10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r&lt;t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&amp;e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&amp;&amp;(t.length--,0===t.words[t.length-1]&amp;&amp;t.length--),t},i(x,v),i(b,v),i(_,v),_.prototype.imulK=function(t){for(var e=0,r=0;r&lt;t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&amp;n;n&gt;&gt;&gt;=26,t.words[r]=i,e=n}return 0!==e&amp;&amp;(t.words[t.length++]=e),t},a._prime=function(t){if(m[t])return m[t];var e;if(&quot;k256&quot;===t)e=new y;else if(&quot;p224&quot;===t)e=new x;else if(&quot;p192&quot;===t)e=new b;else{if(&quot;p25519&quot;!==t)throw new Error(&quot;Unknown prime &quot;+t);e=new _}return m[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,&quot;red works only with positives&quot;),n(t.red,&quot;red works only with red numbers&quot;)},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),&quot;red works only with positives&quot;),n(t.red&amp;&amp;t.red===e.red,&quot;red works only with red numbers&quot;)},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r},w.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&amp;&amp;0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var g=p,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m&lt;d);var v=this.pow(f,new a(1).iushln(d-m-1));h=h.redMul(v),f=v.redSqr(),p=p.redMul(f),d=m}return h},w.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n&lt;r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&amp;&amp;(l=26),n=e.length-1;n&gt;=0;n--){for(var c=e.words[n],u=l-1;u&gt;=0;u--){var f=c&gt;&gt;u&amp;1;i!==r[0]&amp;&amp;(i=this.sqr(i)),0!==f||0!==o?(o&lt;&lt;=1,o|=f,(4===++s||0===n&amp;&amp;0===u)&amp;&amp;(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new T(t)},i(T,w),T.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},T.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},T.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)&gt;=0?a=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)&gt;=0?o=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:115}],107:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e&lt;i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e&lt;i;++e){var l=t[e],c=l.length;for(r=0;r&lt;c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n&lt;c;++n)n!==r&amp;&amp;(u[f++]=l[n]);if(1&amp;r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],108:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 1:return f(t);case 2:return&quot;function&quot;==typeof e?c(t,t,e,!0):h(t,e);case 3:return c(t,e,r,!1);default:throw new Error(&quot;box-intersect: Invalid arguments&quot;)}};var n,i=t(&quot;typedarray-pool&quot;),a=t(&quot;./lib/sweep&quot;),o=t(&quot;./lib/intersect&quot;);function s(t,e){for(var r=0;r&lt;t;++r)if(!(e[r]&lt;=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o&lt;l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u&lt;2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s&lt;=0||c&lt;=0)){var u=t[0].length&gt;&gt;&gt;1;if(!(u&lt;=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))&gt;0){if(1===u&amp;&amp;n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,d,g))&gt;0&amp;&amp;(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,g):o(u,r,n,s,h,p,c,d,g),i.free(d),i.free(g))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function h(t,e){return n=[],c(t,e,u,!1),n}},{&quot;./lib/intersect&quot;:110,&quot;./lib/sweep&quot;:114,&quot;typedarray-pool&quot;:617}],109:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;d&quot;,&quot;ax&quot;,&quot;vv&quot;,&quot;rs&quot;,&quot;re&quot;,&quot;rb&quot;,&quot;ri&quot;,&quot;bs&quot;,&quot;be&quot;,&quot;bb&quot;,&quot;bi&quot;];function i(t){var e=&quot;bruteForce&quot;+(t?&quot;Full&quot;:&quot;Partial&quot;),r=[],i=n.slice();t||i.splice(3,0,&quot;fp&quot;);var a=[&quot;function &quot;+e+&quot;(&quot;+i.join()+&quot;){&quot;];function o(e,i){var o=function(t,e,r){var i=&quot;bruteForce&quot;+(t?&quot;Red&quot;:&quot;Blue&quot;)+(e?&quot;Flip&quot;:&quot;&quot;)+(r?&quot;Full&quot;:&quot;&quot;),a=[&quot;function &quot;,i,&quot;(&quot;,n.join(),&quot;){&quot;,&quot;var &quot;,&quot;es&quot;,&quot;=2*&quot;,&quot;d&quot;,&quot;;&quot;],o=&quot;for(var i=rs,rp=es*rs;i&lt;re;++i,rp+=es){var x0=rb[ax+rp],x1=rb[ax+rp+d],xi=ri[i];&quot;,s=&quot;for(var j=bs,bp=es*bs;j&lt;be;++j,bp+=es){var y0=bb[ax+bp],&quot;+(r?&quot;y1=bb[ax+bp+d],&quot;:&quot;&quot;)+&quot;yi=bi[j];&quot;;return t?a.push(o,&quot;Q&quot;,&quot;:&quot;,s):a.push(s,&quot;Q&quot;,&quot;:&quot;,o),r?a.push(&quot;if(y1&lt;x0||x1&lt;y0)continue;&quot;):e?a.push(&quot;if(y0&lt;=x0||x1&lt;y0)continue;&quot;):a.push(&quot;if(y0&lt;x0||x1&lt;y0)continue;&quot;),a.push(&quot;for(var k=ax+1;k&lt;d;++k){var r0=rb[k+rp],r1=rb[k+d+rp],b0=bb[k+bp],b1=bb[k+d+bp];if(r1&lt;b0||b1&lt;r0)continue Q;}var rv=vv(&quot;),e?a.push(&quot;yi,xi&quot;):a.push(&quot;xi,yi&quot;),a.push(&quot;);if(rv!==void 0)return rv;}}}&quot;),{name:i,code:a.join(&quot;&quot;)}}(e,i,t);r.push(o.code),a.push(&quot;return &quot;+o.name+&quot;(&quot;+n.join()+&quot;);&quot;)}a.push(&quot;if(re-rs&gt;be-bs){&quot;),t?(o(!0,!1),a.push(&quot;}else{&quot;),o(!1,!1)):(a.push(&quot;if(fp){&quot;),o(!0,!0),a.push(&quot;}else{&quot;),o(!0,!1),a.push(&quot;}}else{if(fp){&quot;),o(!1,!0),a.push(&quot;}else{&quot;),o(!1,!1),a.push(&quot;}&quot;)),a.push(&quot;}}return &quot;+e);var s=r.join(&quot;&quot;)+a.join(&quot;&quot;);return new Function(s)()}r.partial=i(!1),r.full=i(!0)},{}],110:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,u,w,T,k,A){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(6*r);v.length&lt;a&amp;&amp;(n.free(v),v=n.mallocInt32(a));var o=i.nextPow2(2*r);y.length&lt;o&amp;&amp;(n.free(y),y=n.mallocDouble(o))}(t,a+T);var M,S=0,E=2*t;x(S++,0,0,a,0,T,r?16:0,-1/0,1/0),r||x(S++,0,0,T,0,a,1,-1/0,1/0);for(;S&gt;0;){var L=6*(S-=1),C=v[L],P=v[L+1],I=v[L+2],O=v[L+3],z=v[L+4],D=v[L+5],R=2*S,F=y[R],B=y[R+1],N=1&amp;D,j=!!(16&amp;D),U=u,V=w,q=k,H=A;if(N&amp;&amp;(U=k,V=A,q=u,H=w),!(2&amp;D&amp;&amp;(I=p(t,C,P,I,U,V,B),P&gt;=I)||4&amp;D&amp;&amp;(P=d(t,C,P,I,U,V,F))&gt;=I)){var G=I-P,Y=z-O;if(j){if(t*G*(G+Y)&lt;1&lt;&lt;22){if(void 0!==(M=l.scanComplete(t,C,e,P,I,U,V,O,z,q,H)))return M;continue}}else{if(t*Math.min(G,Y)&lt;128){if(void 0!==(M=o(t,C,e,N,P,I,U,V,O,z,q,H)))return M;continue}if(t*G*Y&lt;1&lt;&lt;22){if(void 0!==(M=l.scanBipartite(t,C,e,N,P,I,U,V,O,z,q,H)))return M;continue}}var W=f(t,C,P,I,U,V,F,B);if(P&lt;W)if(t*(W-P)&lt;128){if(void 0!==(M=s(t,C+1,e,P,W,U,V,O,z,q,H)))return M}else if(C===t-2){if(void 0!==(M=N?l.sweepBipartite(t,e,O,z,q,H,P,W,U,V):l.sweepBipartite(t,e,P,W,U,V,O,z,q,H)))return M}else x(S++,C+1,P,W,O,z,N,-1/0,1/0),x(S++,C+1,O,z,P,W,1^N,-1/0,1/0);if(W&lt;I){var X=c(t,C,O,z,q,H),Z=q[E*X+C],J=h(t,C,X,z,q,H,Z);if(J&lt;z&amp;&amp;x(S++,C,W,I,J,z,(4|N)+(j?16:0),Z,B),O&lt;X&amp;&amp;x(S++,C,W,I,O,X,(2|N)+(j?16:0),F,Z),X+1===J){if(void 0!==(M=j?_(t,C,e,W,I,U,V,X,q,H[X]):b(t,C,e,N,W,I,U,V,X,q,H[X])))return M}else if(X&lt;J){var K;if(j){if(K=g(t,C,W,I,U,V,Z),W&lt;K){var Q=h(t,C,W,K,U,V,Z);if(C===t-2){if(W&lt;Q&amp;&amp;void 0!==(M=l.sweepComplete(t,e,W,Q,U,V,X,J,q,H)))return M;if(Q&lt;K&amp;&amp;void 0!==(M=l.sweepBipartite(t,e,Q,K,U,V,X,J,q,H)))return M}else W&lt;Q&amp;&amp;x(S++,C+1,W,Q,X,J,16,-1/0,1/0),Q&lt;K&amp;&amp;(x(S++,C+1,Q,K,X,J,0,-1/0,1/0),x(S++,C+1,X,J,Q,K,1,-1/0,1/0))}}else K=N?m(t,C,W,I,U,V,Z):g(t,C,W,I,U,V,Z),W&lt;K&amp;&amp;(C===t-2?M=N?l.sweepBipartite(t,e,X,J,q,H,W,K,U,V):l.sweepBipartite(t,e,W,K,U,V,X,J,q,H):(x(S++,C+1,W,K,X,J,N,-1/0,1/0),x(S++,C+1,X,J,W,K,1^N,-1/0,1/0)))}}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./brute&quot;),o=a.partial,s=a.full,l=t(&quot;./sweep&quot;),c=t(&quot;./median&quot;),u=t(&quot;./partition&quot;),f=u(&quot;!(lo&gt;=p0)&amp;&amp;!(p1&gt;=hi)&quot;,[&quot;p0&quot;,&quot;p1&quot;]),h=u(&quot;lo===p0&quot;,[&quot;p0&quot;]),p=u(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]),d=u(&quot;hi&lt;=p0&quot;,[&quot;p0&quot;]),g=u(&quot;lo&lt;=p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),m=u(&quot;lo&lt;p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),v=n.mallocInt32(1024),y=n.mallocDouble(1024);function x(t,e,r,n,i,a,o,s,l){var c=6*t;v[c]=e,v[c+1]=r,v[c+2]=n,v[c+3]=i,v[c+4]=a,v[c+5]=o;var u=2*t;y[u]=s,y[u+1]=l}function b(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,g=i*f;d&lt;a;++d,g+=f){var m=o[g+e],v=o[g+e+t];if(!(p&lt;m||v&lt;p)&amp;&amp;(!n||p!==m)){for(var y,x=s[d],b=e+1;b&lt;t;++b){m=o[g+b],v=o[g+b+t];var _=c[h+b],w=c[h+b+t];if(v&lt;_||w&lt;m)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function _(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p&lt;i;++p,d+=u){var g=o[p];if(g!==c){var m=a[d+e],v=a[d+e+t];if(!(h&lt;m||v&lt;h)){for(var y=e+1;y&lt;t;++y){m=a[d+y],v=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(v&lt;x||b&lt;m)continue t}var _=r(g,c);if(void 0!==_)return _}}}}},{&quot;./brute&quot;:109,&quot;./median&quot;:111,&quot;./partition&quot;:112,&quot;./sweep&quot;:114,&quot;bit-twiddle&quot;:104,&quot;typedarray-pool&quot;:617}],111:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,o,s){if(a&lt;=r+1)return r;var l=r,c=a,u=a+r&gt;&gt;&gt;1,f=2*t,h=u,p=o[f*u+e];for(;l&lt;c;){if(c-l&lt;8){i(t,e,l,c,o,s),p=o[f*u+e];break}var d=c-l,g=Math.random()*d+l|0,m=o[f*g+e],v=Math.random()*d+l|0,y=o[f*v+e],x=Math.random()*d+l|0,b=o[f*x+e];m&lt;=y?b&gt;=y?(h=v,p=y):m&gt;=b?(h=g,p=m):(h=x,p=b):y&gt;=b?(h=v,p=y):b&gt;=m?(h=g,p=m):(h=x,p=b);for(var _=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){var k=o[_];o[_]=o[w],o[w]=k}var A=s[c-1];s[c-1]=s[h],s[h]=A,h=n(t,e,l,c-1,o,s,p);for(_=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){k=o[_];o[_]=o[w],o[w]=k}A=s[c-1];if(s[c-1]=s[h],s[h]=A,u&lt;h){for(c=h-1;l&lt;c&amp;&amp;o[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(h&lt;u))break;for(l=h+1;l&lt;c&amp;&amp;o[f*l+e]===p;)l+=1}}return n(t,e,r,u,o,s,o[f*u+e])};var n=t(&quot;./partition&quot;)(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]);function i(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l&lt;n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u&gt;r&amp;&amp;i[f+e]&gt;c;--u,f-=o){for(var h=f,p=f+o,d=0;d&lt;o;++d,++h,++p){var g=i[h];i[h]=i[p],i[p]=g}var m=a[u];a[u]=a[u-1],a[u-1]=m}}},{&quot;./partition&quot;:112}],112:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=&quot;abcdef&quot;.split(&quot;&quot;).concat(e),n=[];t.indexOf(&quot;lo&quot;)&gt;=0&amp;&amp;n.push(&quot;lo=e[k+n]&quot;);t.indexOf(&quot;hi&quot;)&gt;=0&amp;&amp;n.push(&quot;hi=e[k+o]&quot;);return r.push(&quot;for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d&gt;p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j&gt;s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m&quot;.replace(&quot;_&quot;,n.join()).replace(&quot;$&quot;,t)),Function.apply(void 0,r)}},{}],113:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e&lt;=128?n(0,e-1,t):function t(e,r,u){var f=(r-e+1)/6|0,h=e+f,p=r-f,d=e+r&gt;&gt;1,g=d-f,m=d+f,v=h,y=g,x=d,b=m,_=p,w=e+1,T=r-1,k=0;l(v,y,u)&amp;&amp;(k=v,v=y,y=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);l(v,x,u)&amp;&amp;(k=v,v=x,x=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(v,b,u)&amp;&amp;(k=v,v=b,b=k);l(x,b,u)&amp;&amp;(k=x,x=b,b=k);l(y,_,u)&amp;&amp;(k=y,y=_,_=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);for(var A=u[2*y],M=u[2*y+1],S=u[2*b],E=u[2*b+1],L=2*v,C=2*x,P=2*_,I=2*h,O=2*d,z=2*p,D=0;D&lt;2;++D){var R=u[L+D],F=u[C+D],B=u[P+D];u[I+D]=R,u[O+D]=F,u[z+D]=B}a(g,e,u),a(m,r,u);for(var N=w;N&lt;=T;++N)if(c(N,A,M,u))N!==w&amp;&amp;i(N,w,u),++w;else if(!c(N,S,E,u))for(;;){if(c(T,S,E,u)){c(T,A,M,u)?(o(N,w,T,u),++w,--T):(i(N,T,u),--T);break}if(--T&lt;N)break}s(e,w-1,A,M,u),s(r,T+1,S,E,u),w-2-e&lt;=32?n(e,w-2,u):t(e,w-2,u);r-(T+2)&lt;=32?n(T+2,r,u):t(T+2,r,u);T-w&lt;=32?n(w,T,u):t(w,T,u)}(0,e-1,t)};function n(t,e,r){for(var n=2*(t+1),i=t+1;i&lt;=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- &gt;t;){var c=r[l-2],u=r[l-1];if(c&lt;a)break;if(c===a&amp;&amp;u&lt;o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function i(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function a(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function o(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function s(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function l(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n&lt;i)&amp;&amp;(n!==i||r[t+1]&gt;r[e+1])}function c(t,e,r,n){var i=n[t*=2];return i&lt;e||i===e&amp;&amp;n[t+1]&lt;r}},{}],114:[function(t,e,r){&quot;use strict&quot;;e.exports={init:function(t){var e=i.nextPow2(t);o.length&lt;e&amp;&amp;(n.free(o),o=n.mallocInt32(e));s.length&lt;e&amp;&amp;(n.free(s),s=n.mallocInt32(e));l.length&lt;e&amp;&amp;(n.free(l),l=n.mallocInt32(e));c.length&lt;e&amp;&amp;(n.free(c),c=n.mallocInt32(e));u.length&lt;e&amp;&amp;(n.free(u),u=n.mallocInt32(e));f.length&lt;e&amp;&amp;(n.free(f),f=n.mallocInt32(e));var r=8*e;h.length&lt;r&amp;&amp;(n.free(h),h=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,u,f,g,m,v){for(var y=0,x=2*t,b=t-1,_=x-1,w=r;w&lt;n;++w){var T=u[w],k=x*w;h[y++]=i[k+b],h[y++]=-(T+1),h[y++]=i[k+_],h[y++]=T}for(w=f;w&lt;g;++w){T=v[w]+(1&lt;&lt;28);var A=x*w;h[y++]=m[A+b],h[y++]=-T,h[y++]=m[A+_],h[y++]=T}var M=y&gt;&gt;&gt;1;a(h,M);var S=0,E=0;for(w=0;w&lt;M;++w){var L=0|h[2*w+1];if(L&gt;=1&lt;&lt;28)p(l,c,E--,L=L-(1&lt;&lt;28)|0);else if(L&gt;=0)p(o,s,S--,L);else if(L&lt;=-(1&lt;&lt;28)){L=-L-(1&lt;&lt;28)|0;for(var C=0;C&lt;S;++C){if(void 0!==(P=e(o[C],L)))return P}d(l,c,E++,L)}else{L=-L-1|0;for(C=0;C&lt;E;++C){var P;if(void 0!==(P=e(L,l[C])))return P}d(o,s,S++,L)}}},sweepComplete:function(t,e,r,n,i,g,m,v,y,x){for(var b=0,_=2*t,w=t-1,T=_-1,k=r;k&lt;n;++k){var A=g[k]+1&lt;&lt;1,M=_*k;h[b++]=i[M+w],h[b++]=-A,h[b++]=i[M+T],h[b++]=A}for(k=m;k&lt;v;++k){A=x[k]+1&lt;&lt;1;var S=_*k;h[b++]=y[S+w],h[b++]=1|-A,h[b++]=y[S+T],h[b++]=1|A}var E=b&gt;&gt;&gt;1;a(h,E);var L=0,C=0,P=0;for(k=0;k&lt;E;++k){var I=0|h[2*k+1],O=1&amp;I;if(k&lt;E-1&amp;&amp;I&gt;&gt;1==h[2*k+3]&gt;&gt;1&amp;&amp;(O=2,k+=1),I&lt;0){for(var z=-(I&gt;&gt;1)-1,D=0;D&lt;P;++D){if(void 0!==(R=e(u[D],z)))return R}if(0!==O)for(D=0;D&lt;L;++D){if(void 0!==(R=e(o[D],z)))return R}if(1!==O)for(D=0;D&lt;C;++D){var R;if(void 0!==(R=e(l[D],z)))return R}0===O?d(o,s,L++,z):1===O?d(l,c,C++,z):2===O&amp;&amp;d(u,f,P++,z)}else{z=(I&gt;&gt;1)-1;0===O?p(o,s,L--,z):1===O?p(l,c,C--,z):2===O&amp;&amp;p(u,f,P--,z)}}},scanBipartite:function(t,e,r,n,i,l,c,u,f,g,m,v){var y=0,x=2*t,b=e,_=e+t,w=1,T=1;n?T=1&lt;&lt;28:w=1&lt;&lt;28;for(var k=i;k&lt;l;++k){var A=k+w,M=x*k;h[y++]=c[M+b],h[y++]=-A,h[y++]=c[M+_],h[y++]=A}for(k=f;k&lt;g;++k){A=k+T;var S=x*k;h[y++]=m[S+b],h[y++]=-A}var E=y&gt;&gt;&gt;1;a(h,E);var L=0;for(k=0;k&lt;E;++k){var C=0|h[2*k+1];if(C&lt;0){var P=!1;if((A=-C)&gt;=1&lt;&lt;28?(P=!n,A-=1&lt;&lt;28):(P=!!n,A-=1),P)d(o,s,L++,A);else{var I=v[A],O=x*A,z=m[O+e+1],D=m[O+e+1+t];t:for(var R=0;R&lt;L;++R){var F=o[R],B=x*F;if(!(D&lt;c[B+e+1]||c[B+e+1+t]&lt;z)){for(var N=e+2;N&lt;t;++N)if(m[O+N+t]&lt;c[B+N]||c[B+N+t]&lt;m[O+N])continue t;var j,U=u[F];if(void 0!==(j=n?r(I,U):r(U,I)))return j}}}}else p(o,s,L--,C-w)}},scanComplete:function(t,e,r,n,i,s,l,c,u,f,p){for(var d=0,g=2*t,m=e,v=e+t,y=n;y&lt;i;++y){var x=y+(1&lt;&lt;28),b=g*y;h[d++]=s[b+m],h[d++]=-x,h[d++]=s[b+v],h[d++]=x}for(y=c;y&lt;u;++y){x=y+1;var _=g*y;h[d++]=f[_+m],h[d++]=-x}var w=d&gt;&gt;&gt;1;a(h,w);var T=0;for(y=0;y&lt;w;++y){var k=0|h[2*y+1];if(k&lt;0){if((x=-k)&gt;=1&lt;&lt;28)o[T++]=x-(1&lt;&lt;28);else{var A=p[x-=1],M=g*x,S=f[M+e+1],E=f[M+e+1+t];t:for(var L=0;L&lt;T;++L){var C=o[L],P=l[C];if(P===A)break;var I=g*C;if(!(E&lt;s[I+e+1]||s[I+e+1+t]&lt;S)){for(var O=e+2;O&lt;t;++O)if(f[M+O+t]&lt;s[I+O]||s[I+O+t]&lt;f[M+O])continue t;var z=r(P,A);if(void 0!==z)return z}}}}else{for(x=k-(1&lt;&lt;28),L=T-1;L&gt;=0;--L)if(o[L]===x){for(O=L+1;O&lt;T;++O)o[O-1]=o[O];break}--T}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./sort&quot;),o=n.mallocInt32(1024),s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocDouble(8192);function p(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function d(t,e,r,n){t[r]=n,e[n]=r}},{&quot;./sort&quot;:113,&quot;bit-twiddle&quot;:104,&quot;typedarray-pool&quot;:617}],115:[function(t,e,r){},{}],116:[function(t,e,r){&quot;use strict&quot;;var n,i=&quot;object&quot;==typeof Reflect?Reflect:null,a=i&amp;&amp;&quot;function&quot;==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&amp;&amp;&quot;function&quot;==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(){void 0!==a&amp;&amp;t.removeListener(&quot;error&quot;,a),r([].slice.call(arguments))}var a;&quot;error&quot;!==e&amp;&amp;(a=function(r){t.removeListener(e,i),n(r)},t.once(&quot;error&quot;,a)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){if(&quot;function&quot;!=typeof t)throw new TypeError('The &quot;listener&quot; argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,a,o,s;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&amp;&amp;(t.emit(&quot;newListener&quot;,e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(&quot;function&quot;==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))&gt;0&amp;&amp;o.length&gt;i&amp;&amp;!o.warned){o.warned=!0;var l=new Error(&quot;Possible EventEmitter memory leak detected. &quot;+o.length+&quot; &quot;+String(e)+&quot; listeners added. Use emitter.setMaxListeners() to increase limit&quot;);l.name=&quot;MaxListenersExceededWarning&quot;,l.emitter=t,l.type=e,l.count=o.length,s=l,console&amp;&amp;console.warn&amp;&amp;console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:&quot;function&quot;==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r&lt;e.length;++r)e[r]=t[r].listener||t[r];return e}(i):m(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var r=e[t];if(&quot;function&quot;==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n];return r}Object.defineProperty(s,&quot;defaultMaxListeners&quot;,{enumerable:!0,get:function(){return l},set:function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;defaultMaxListeners&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);l=t}}),s.init=function(){void 0!==this._events&amp;&amp;this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;n&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(t){for(var e=[],r=1;r&lt;arguments.length;r++)e.push(arguments[r]);var n=&quot;error&quot;===t,i=this._events;if(void 0!==i)n=n&amp;&amp;void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length&gt;0&amp;&amp;(o=e[0]),o instanceof Error)throw o;var s=new Error(&quot;Unhandled error.&quot;+(o?&quot; (&quot;+o.message+&quot;)&quot;:&quot;&quot;));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if(&quot;function&quot;==typeof l)a(l,this,e);else{var c=l.length,u=m(l,c);for(r=0;r&lt;c;++r)a(u[r],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,r.listener||e));else if(&quot;function&quot;!=typeof r){for(i=-1,a=r.length-1;a&gt;=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i&lt;0)return this;0===i?r.shift():function(t,e){for(;e+1&lt;t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&amp;&amp;(n[t]=r[0]),void 0!==n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,o||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&amp;&amp;(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n&lt;a.length;++n)&quot;removeListener&quot;!==(i=a[n])&amp;&amp;this.removeAllListeners(i);return this.removeAllListeners(&quot;removeListener&quot;),this._events=Object.create(null),this._eventsCount=0,this}if(&quot;function&quot;==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n&gt;=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return&quot;function&quot;==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount&gt;0?n(this._events):[]}},{}],117:[function(t,e,r){(function(e){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
&quot;use strict&quot;;var e=t(&quot;base64-js&quot;),n=t(&quot;ieee754&quot;);r.Buffer=a,r.SlowBuffer=function(t){+t!=t&amp;&amp;(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t&gt;2147483647)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if(&quot;number&quot;==typeof t){if(&quot;string&quot;==typeof e)throw new TypeError('The &quot;string&quot; argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if(&quot;string&quot;==typeof t)return function(t,e){&quot;string&quot;==typeof e&amp;&amp;&quot;&quot;!==e||(e=&quot;utf8&quot;);if(!a.isEncoding(e))throw new TypeError(&quot;Unknown encoding: &quot;+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&amp;&amp;(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t);if(B(t,ArrayBuffer)||t&amp;&amp;B(t.buffer,ArrayBuffer))return function(t,e,r){if(e&lt;0||t.byteLength&lt;e)throw new RangeError('&quot;offset&quot; is outside of buffer bounds');if(t.byteLength&lt;e+(r||0))throw new RangeError('&quot;length&quot; is outside of buffer bounds');var n;n=void 0===e&amp;&amp;void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=a.prototype,n}(t,e,r);if(&quot;number&quot;==typeof t)throw new TypeError('The &quot;value&quot; argument must not be of type number. Received type number');var n=t.valueOf&amp;&amp;t.valueOf();if(null!=n&amp;&amp;n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|u(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return&quot;number&quot;!=typeof t.length||N(t.length)?i(0):c(t);if(&quot;Buffer&quot;===t.type&amp;&amp;Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.toPrimitive&amp;&amp;&quot;function&quot;==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive](&quot;string&quot;),e,r);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t)}function s(t){if(&quot;number&quot;!=typeof t)throw new TypeError('&quot;size&quot; argument must be of type number');if(t&lt;0)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;')}function l(t){return s(t),i(t&lt;0?0:0|u(t))}function c(t){for(var e=t.length&lt;0?0:0|u(t.length),r=i(e),n=0;n&lt;e;n+=1)r[n]=255&amp;t[n];return r}function u(t){if(t&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x&quot;+2147483647..toString(16)+&quot; bytes&quot;);return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(&quot;string&quot;!=typeof t)throw new TypeError('The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length&gt;2&amp;&amp;!0===arguments[2];if(!n&amp;&amp;0===r)return 0;for(var i=!1;;)switch(e){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return r;case&quot;utf8&quot;:case&quot;utf-8&quot;:return D(t).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*r;case&quot;hex&quot;:return r&gt;&gt;&gt;1;case&quot;base64&quot;:return R(t).length;default:if(i)return n?-1:D(t).length;e=(&quot;&quot;+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e&lt;0)&amp;&amp;(e=0),e&gt;this.length)return&quot;&quot;;if((void 0===r||r&gt;this.length)&amp;&amp;(r=this.length),r&lt;=0)return&quot;&quot;;if((r&gt;&gt;&gt;=0)&lt;=(e&gt;&gt;&gt;=0))return&quot;&quot;;for(t||(t=&quot;utf8&quot;);;)switch(t){case&quot;hex&quot;:return M(this,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return T(this,e,r);case&quot;ascii&quot;:return k(this,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return A(this,e,r);case&quot;base64&quot;:return w(this,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return S(this,e,r);default:if(n)throw new TypeError(&quot;Unknown encoding: &quot;+t);t=(t+&quot;&quot;).toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if(&quot;string&quot;==typeof r?(n=r,r=0):r&gt;2147483647?r=2147483647:r&lt;-2147483648&amp;&amp;(r=-2147483648),N(r=+r)&amp;&amp;(r=i?0:t.length-1),r&lt;0&amp;&amp;(r=t.length+r),r&gt;=t.length){if(i)return-1;r=t.length-1}else if(r&lt;0){if(!i)return-1;r=0}if(&quot;string&quot;==typeof e&amp;&amp;(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(&quot;number&quot;==typeof e)return e&amp;=255,&quot;function&quot;==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function g(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&amp;&amp;(&quot;ucs2&quot;===(n=String(n).toLowerCase())||&quot;ucs-2&quot;===n||&quot;utf16le&quot;===n||&quot;utf-16le&quot;===n)){if(t.length&lt;2||e.length&lt;2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a&lt;s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&amp;&amp;(u=a),a-u+1===l)return u*o}else-1!==u&amp;&amp;(a-=a-u),u=-1}else for(r+l&gt;s&amp;&amp;(r=s-l),a=r;a&gt;=0;a--){for(var f=!0,h=0;h&lt;l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))&gt;i&amp;&amp;(n=i):n=i;var a=e.length;n&gt;a/2&amp;&amp;(n=a/2);for(var o=0;o&lt;n;++o){var s=parseInt(e.substr(2*o,2),16);if(N(s))return o;t[r+o]=s}return o}function v(t,e,r,n){return F(D(e,t.length-r),t,r,n)}function y(t,e,r,n){return F(function(t){for(var e=[],r=0;r&lt;t.length;++r)e.push(255&amp;t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return y(t,e,r,n)}function b(t,e,r,n){return F(R(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,a=[],o=0;o&lt;t.length&amp;&amp;!((e-=2)&lt;0);++o)r=t.charCodeAt(o),n=r&gt;&gt;8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&amp;&amp;n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i&lt;r;){var a,o,s,l,c=t[i],u=null,f=c&gt;239?4:c&gt;223?3:c&gt;191?2:1;if(i+f&lt;=r)switch(f){case 1:c&lt;128&amp;&amp;(u=c);break;case 2:128==(192&amp;(a=t[i+1]))&amp;&amp;(l=(31&amp;c)&lt;&lt;6|63&amp;a)&gt;127&amp;&amp;(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;(l=(15&amp;c)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&gt;2047&amp;&amp;(l&lt;55296||l&gt;57343)&amp;&amp;(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;(l=(15&amp;c)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&gt;65535&amp;&amp;l&lt;1114112&amp;&amp;(u=l)}null===u?(u=65533,f=1):u&gt;65535&amp;&amp;(u-=65536,n.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),n.push(u),i+=f}return function(t){var e=t.length;if(e&lt;=4096)return String.fromCharCode.apply(String,t);var r=&quot;&quot;,n=0;for(;n&lt;e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||&quot;undefined&quot;==typeof console||&quot;function&quot;!=typeof console.error||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.species&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return o(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return s(t),t&lt;=0?i(t):void 0!==e?&quot;string&quot;==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&amp;&amp;!0===t._isBuffer&amp;&amp;t!==a.prototype},a.compare=function(t,e){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&amp;&amp;(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i&lt;o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r&lt;t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r&lt;t.length;++r){var o=t[r];if(B(o,Uint8Array)&amp;&amp;(o=a.from(o)),!a.isBuffer(o))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var e=0;e&lt;t;e+=2)p(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var e=0;e&lt;t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var e=0;e&lt;t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?&quot;&quot;:0===arguments.length?T(this,0,t):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t=&quot;&quot;,e=r.INSPECT_MAX_BYTES;return t=this.toString(&quot;hex&quot;,0,e).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;e&amp;&amp;(t+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+t+&quot;&gt;&quot;},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=t?t.length:0),void 0===n&amp;&amp;(n=0),void 0===i&amp;&amp;(i=this.length),e&lt;0||r&gt;t.length||n&lt;0||i&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(n&gt;=i&amp;&amp;e&gt;=r)return 0;if(n&gt;=i)return-1;if(e&gt;=r)return 1;if(this===t)return 0;for(var o=(i&gt;&gt;&gt;=0)-(n&gt;&gt;&gt;=0),s=(r&gt;&gt;&gt;=0)-(e&gt;&gt;&gt;=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f&lt;l;++f)if(c[f]!==u[f]){o=c[f],s=u[f];break}return o&lt;s?-1:s&lt;o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n=&quot;utf8&quot;,r=this.length,e=0;else if(void 0===r&amp;&amp;&quot;string&quot;==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);e&gt;&gt;&gt;=0,isFinite(r)?(r&gt;&gt;&gt;=0,void 0===n&amp;&amp;(n=&quot;utf8&quot;)):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r&gt;i)&amp;&amp;(r=i),t.length&gt;0&amp;&amp;(r&lt;0||e&lt;0)||e&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);n||(n=&quot;utf8&quot;);for(var a=!1;;)switch(n){case&quot;hex&quot;:return m(this,t,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return v(this,t,e,r);case&quot;ascii&quot;:return y(this,t,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return x(this,t,e,r);case&quot;base64&quot;:return b(this,t,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return _(this,t,e,r);default:if(a)throw new TypeError(&quot;Unknown encoding: &quot;+n);n=(&quot;&quot;+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(127&amp;t[i]);return n}function A(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(t[i]);return n}function M(t,e,r){var n=t.length;(!e||e&lt;0)&amp;&amp;(e=0),(!r||r&lt;0||r&gt;n)&amp;&amp;(r=n);for(var i=&quot;&quot;,a=e;a&lt;r;++a)i+=z(t[a]);return i}function S(t,e,r){for(var n=t.slice(e,r),i=&quot;&quot;,a=0;a&lt;n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function E(t,e,r){if(t%1!=0||t&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if(t+e&gt;r)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function L(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('&quot;buffer&quot; argument must be a Buffer instance');if(e&gt;i||e&lt;o)throw new RangeError('&quot;value&quot; argument is out of bounds');if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;)}function C(t,e,r,n,i,a){if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;);if(r&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function P(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||C(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function I(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||C(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)&lt;0?(t+=r)&lt;0&amp;&amp;(t=0):t&gt;r&amp;&amp;(t=r),(e=void 0===e?r:~~e)&lt;0?(e+=r)&lt;0&amp;&amp;(e=0):e&gt;r&amp;&amp;(e=r),e&lt;t&amp;&amp;(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n},a.prototype.readUIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e&gt;0&amp;&amp;(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]|this[t+1]&lt;&lt;8},a.prototype.readUInt16BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]&lt;&lt;8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),(this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n&gt;=(i*=128)&amp;&amp;(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n&gt;0&amp;&amp;(i*=256);)a+=this[t+--n]*i;return a&gt;=(i*=128)&amp;&amp;(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),128&amp;this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t]|this[t+1]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t+1]|this[t]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16|this[t+3]&lt;&lt;24},a.prototype.readInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]&lt;&lt;24|this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(i*=256);)this[e+a]=t/i&amp;255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&amp;t;--i&gt;=0&amp;&amp;(a*=256);)this[e+i]=t/a&amp;255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,1,255,0),this[e]=255&amp;t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,65535,0),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,65535,0),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,4294967295,0),this[e+3]=t&gt;&gt;&gt;24,this[e+2]=t&gt;&gt;&gt;16,this[e+1]=t&gt;&gt;&gt;8,this[e]=255&amp;t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,4294967295,0),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a-1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&amp;t;--a&gt;=0&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a+1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,1,127,-128),t&lt;0&amp;&amp;(t=255+t+1),this[e]=255&amp;t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,32767,-32768),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,32767,-32768),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,2147483647,-2147483648),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,this[e+2]=t&gt;&gt;&gt;16,this[e+3]=t&gt;&gt;&gt;24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,2147483647,-2147483648),t&lt;0&amp;&amp;(t=4294967295+t+1),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError(&quot;argument should be a Buffer&quot;);if(r||(r=0),n||0===n||(n=this.length),e&gt;=t.length&amp;&amp;(e=t.length),e||(e=0),n&gt;0&amp;&amp;n&lt;r&amp;&amp;(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(r&lt;0||r&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(n&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);n&gt;this.length&amp;&amp;(n=this.length),t.length-e&lt;n-r&amp;&amp;(n=t.length-e+r);var i=n-r;if(this===t&amp;&amp;&quot;function&quot;==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&amp;&amp;r&lt;e&amp;&amp;e&lt;n)for(var o=i-1;o&gt;=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if(&quot;string&quot;==typeof t){if(&quot;string&quot;==typeof e?(n=e,e=0,r=this.length):&quot;string&quot;==typeof r&amp;&amp;(n=r,r=this.length),void 0!==n&amp;&amp;&quot;string&quot;!=typeof n)throw new TypeError(&quot;encoding must be a string&quot;);if(&quot;string&quot;==typeof n&amp;&amp;!a.isEncoding(n))throw new TypeError(&quot;Unknown encoding: &quot;+n);if(1===t.length){var i=t.charCodeAt(0);(&quot;utf8&quot;===n&amp;&amp;i&lt;128||&quot;latin1&quot;===n)&amp;&amp;(t=i)}}else&quot;number&quot;==typeof t&amp;&amp;(t&amp;=255);if(e&lt;0||this.length&lt;e||this.length&lt;r)throw new RangeError(&quot;Out of range index&quot;);if(r&lt;=e)return this;var o;if(e&gt;&gt;&gt;=0,r=void 0===r?this.length:r&gt;&gt;&gt;0,t||(t=0),&quot;number&quot;==typeof t)for(o=e;o&lt;r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;if(0===l)throw new TypeError('The value &quot;'+t+'&quot; is invalid for argument &quot;value&quot;');for(o=0;o&lt;r-e;++o)this[o+e]=s[o%l]}return this};var O=/[^+/0-9A-Za-z-_]/g;function z(t){return t&lt;16?&quot;0&quot;+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o&lt;n;++o){if((r=t.charCodeAt(o))&gt;55295&amp;&amp;r&lt;57344){if(!i){if(r&gt;56319){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}if(o+1===n){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}i=r;continue}if(r&lt;56320){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189),i=r;continue}r=65536+(i-55296&lt;&lt;10|r-56320)}else i&amp;&amp;(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);if(i=null,r&lt;128){if((e-=1)&lt;0)break;a.push(r)}else if(r&lt;2048){if((e-=2)&lt;0)break;a.push(r&gt;&gt;6|192,63&amp;r|128)}else if(r&lt;65536){if((e-=3)&lt;0)break;a.push(r&gt;&gt;12|224,r&gt;&gt;6&amp;63|128,63&amp;r|128)}else{if(!(r&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((e-=4)&lt;0)break;a.push(r&gt;&gt;18|240,r&gt;&gt;12&amp;63|128,r&gt;&gt;6&amp;63|128,63&amp;r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split(&quot;=&quot;)[0]).trim().replace(O,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;t.length%4!=0;)t+=&quot;=&quot;;return t}(t))}function F(t,e,r,n){for(var i=0;i&lt;n&amp;&amp;!(i+r&gt;=e.length||i&gt;=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&amp;&amp;null!=t.constructor&amp;&amp;null!=t.constructor.name&amp;&amp;t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:86,buffer:117,ieee754:445}],118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/monotone&quot;),i=t(&quot;./lib/triangulation&quot;),a=t(&quot;./lib/delaunay&quot;),o=t(&quot;./lib/filter&quot;);function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,&quot;delaunay&quot;,!0),f=!!c(r,&quot;interior&quot;,!0),h=!!c(r,&quot;exterior&quot;,!0),p=!!c(r,&quot;infinity&quot;,!1);if(!f&amp;&amp;!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var g=i(t.length,function(t){return t.map(s).sort(l)}(e)),m=0;m&lt;d.length;++m){var v=d[m];g.addTriangle(v[0],v[1],v[2])}return u&amp;&amp;a(t,g),h?f?p?o(g,0,p):g.cells():o(g,1,p):o(g,-1)}return d}},{&quot;./lib/delaunay&quot;:119,&quot;./lib/filter&quot;:120,&quot;./lib/monotone&quot;:121,&quot;./lib/triangulation&quot;:122}],119:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-in-sphere&quot;)[4];t(&quot;binary-search-bounds&quot;);function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s&lt;0)){if(a&lt;i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])&lt;0&amp;&amp;r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s&lt;a;++s)for(var l=o[s],c=1;c&lt;l.length;c+=2){if(!((p=l[c])&lt;s)&amp;&amp;!e.isConstraint(s,p)){for(var u=l[c-1],f=-1,h=1;h&lt;l.length;h+=2)if(l[h-1]===p){f=l[h];break}f&lt;0||n(t[s],t[p],t[u],t[f])&lt;0&amp;&amp;r.push(s,p)}}for(;r.length&gt;0;){for(var p=r.pop(),d=(s=r.pop(),u=-1,f=-1,l=o[s],1);d&lt;l.length;d+=2){var g=l[d-1],m=l[d];g===p?f=m:m===p&amp;&amp;(u=g)}u&lt;0||f&lt;0||(n(t[s],t[p],t[u],t[f])&gt;=0||(e.flip(s,p),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,p,u),i(t,e,r,p,u,f)))}}},{&quot;binary-search-bounds&quot;:103,&quot;robust-in-sphere&quot;:546}],120:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;binary-search-bounds&quot;);function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i&lt;n;++i){var s=(v=r[i])[0],l=v[1],c=v[2];l&lt;c?l&lt;s&amp;&amp;(v[0]=l,v[1]=c,v[2]=s):c&lt;s&amp;&amp;(v[0]=c,v[1]=s,v[2]=l)}r.sort(o);var u=new Array(n);for(i=0;i&lt;u.length;++i)u[i]=0;var f=[],h=[],p=new Array(3*n),d=new Array(3*n),g=null;e&amp;&amp;(g=[]);var m=new a(r,p,d,u,f,h,g);for(i=0;i&lt;n;++i)for(var v=r[i],y=0;y&lt;3;++y){s=v[y],l=v[(y+1)%3];var x=p[3*i+y]=m.locate(l,s,t.opposite(l,s)),b=d[3*i+y]=t.isConstraint(s,l);x&lt;0&amp;&amp;(b?h.push(i):(f.push(i),u[i]=1),e&amp;&amp;g.push([l,s,-1]))}return m}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length&gt;0||l.length&gt;0;){for(;s.length&gt;0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d&lt;3;++d){var g=h[3*p+d];g&gt;=0&amp;&amp;0===c[g]&amp;&amp;(f[3*p+d]?l.push(g):(s.push(g),c[g]=i))}}}var m=l;l=s,s=m,l.length=0,i=-i}var v=function(t,e,r){for(var n=0,i=0;i&lt;t.length;++i)e[i]===r&amp;&amp;(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return v.concat(n.boundary);return v},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e&lt;r?e&lt;t&amp;&amp;(a=e,s=r,l=t):r&lt;t&amp;&amp;(a=r,s=t,l=e),a&lt;0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{&quot;binary-search-bounds&quot;:103}],121:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;robust-orientation&quot;)[3];function a(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function o(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function s(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(0!==t.type&amp;&amp;(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function l(t,e){return i(t.a,t.b,e)}function c(t,e,r,a,o){for(var s=n.lt(e,a,l),c=n.gt(e,a,l),u=s;u&lt;c;++u){for(var f=e[u],h=f.lowerIds,p=h.length;p&gt;1&amp;&amp;i(r[h[p-2]],r[h[p-1]],a)&gt;0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=f.upperIds;for(p=d.length;p&gt;1&amp;&amp;i(r[d[p-2]],r[d[p-1]],a)&lt;0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function u(t,e){var r;return(r=t.a[0]&lt;e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]&lt;t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function f(t,e,r){var i=n.le(t,r,u),o=t[i],s=o.upperIds,l=s[s.length-1];o.upperIds=[l],t.splice(i+1,0,new a(r.a,r.b,r.idx,[l],s))}function h(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,u),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],l=0;l&lt;r;++l)i.push(new o(t[l],null,0,l));for(l=0;l&lt;n;++l){var u=e[l],p=t[u[0]],d=t[u[1]];p[0]&lt;d[0]?i.push(new o(p,d,2,l),new o(d,p,1,l)):p[0]&gt;d[0]&amp;&amp;i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var g=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),m=[new a([g,1],[g,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l&lt;y;++l){var x=i[l],b=x.type;0===b?c(v,m,t,x.a,x.idx):2===b?f(m,t,x):h(m,t,x)}return v}},{&quot;binary-search-bounds&quot;:103,&quot;robust-orientation&quot;:548}],122:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n&lt;i;n+=2)if(t[n-1]===e&amp;&amp;t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)&gt;=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n&lt;i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2){var s=i[a],l=i[a+1];r&lt;Math.min(s,l)&amp;&amp;e.push([r,s,l])}return e}},{&quot;binary-search-bounds&quot;:103}],123:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1,r=1;r&lt;t.length;++r)for(var n=0;n&lt;r;++n)if(t[r]&lt;t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],124:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;dup&quot;),i=t(&quot;robust-linear-solve&quot;);function a(t,e){for(var r=0,n=t.length,i=0;i&lt;n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s&lt;e;++s){for(var l=0;l&lt;=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s&lt;f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s&lt;e;++s){f=c[s];var p=0;for(l=0;l&lt;f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a&lt;t.length;++a)for(var s=0;s&lt;e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:185,&quot;robust-linear-solve&quot;:547}],125:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i&lt;t.length;++i)for(var a=t[i],o=0;o&lt;e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(&quot;circumcenter&quot;)},{circumcenter:124}],126:[function(t,e,r){e.exports=function(t,e,r){return e&lt;r?t&lt;e?e:t&gt;r?r:t:t&lt;r?r:t&gt;e?e:t}},{}],127:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a&lt;e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return v(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&amp;&amp;s){n.length=0,r.length=0;for(a=0;a&lt;e.length;++a){o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(&quot;union-find&quot;),i=t(&quot;box-intersect&quot;),a=t(&quot;robust-segment-intersect&quot;),o=t(&quot;big-rat&quot;),s=t(&quot;big-rat/cmp&quot;),l=t(&quot;big-rat/to-float&quot;),c=t(&quot;rat-vec&quot;),u=t(&quot;nextafter&quot;),f=t(&quot;./lib/rat-seg-intersect&quot;);function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l&lt;e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,(function(t,e){o.link(t,e)}));var d=!0,g=new Array(a);for(l=0;l&lt;a;++l){(v=o.find(l))!==l&amp;&amp;(d=!1,t[v]=[Math.min(t[l][0],t[v][0]),Math.min(t[l][1],t[v][1])])}if(d)return null;var m=0;for(l=0;l&lt;a;++l){var v;(v=o.find(l))===l?(g[l]=m,t[m++]=t[l]):g[l]=-1}t.length=m;for(l=0;l&lt;a;++l)g[l]&lt;0&amp;&amp;(g[l]=g[o.find(l)]);return g}function g(t,e){return t[0]-e[0]||t[1]-e[1]}function m(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]&lt;e[2]?-1:t[2]&gt;e[2]?1:0)}function v(t,e,r){if(0!==t.length){if(e)for(var n=0;n&lt;t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n&lt;t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(m):t.sort(g);var s=1;for(n=1;n&lt;t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&amp;&amp;c[2]!==l[2])&amp;&amp;(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n&lt;e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,(function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&amp;&amp;o[0]!==s[1]&amp;&amp;o[1]!==s[0]&amp;&amp;o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&amp;&amp;n.push([r,i])}})),n}(t,e,n),g=p(t),m=function(t,e,r,n){var o=[];return i(r,n,(function(r,n){var i=e[r];if(i[0]!==n&amp;&amp;i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&amp;&amp;o.push([r,n])}})),o}(t,e,n,g),y=d(t,function(t,e,r,n,i){var a,u,h=t.map((function(t){return[o(t[0]),o(t[1])]}));for(a=0;a&lt;r.length;++a){var p=r[a];u=p[0];var d=p[1],g=e[u],m=e[d],v=f(c(t[g[0]]),c(t[g[1]]),c(t[m[0]]),c(t[m[1]]));if(v){var y=t.length;t.push([l(v[0]),l(v[1])]),h.push(v),n.push([u,y],[d,y])}}for(n.sort((function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])})),a=n.length-1;a&gt;=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],T=t[_];if((w[0]-T[0]||w[1]-T[1])&lt;0){var k=b;b=_,_=k}x[0]=b;var A,M=x[1]=S[1];for(i&amp;&amp;(A=x[2]);a&gt;0&amp;&amp;n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([M,E,A]):e.push([M,E]),M=E}i?e.push([M,_,A]):e.push([M,_])}return h}(t,e,h,m,r));return v(e,y,r),!!y||(h.length&gt;0||m.length&gt;0)}},{&quot;./lib/rat-seg-intersect&quot;:128,&quot;big-rat&quot;:90,&quot;big-rat/cmp&quot;:88,&quot;big-rat/to-float&quot;:102,&quot;box-intersect&quot;:108,nextafter:484,&quot;rat-vec&quot;:532,&quot;robust-segment-intersect&quot;:551,&quot;union-find&quot;:618}],128:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),g=i(d,h),m=c(a,g);return l(t,m)};var n=t(&quot;big-rat/mul&quot;),i=t(&quot;big-rat/div&quot;),a=t(&quot;big-rat/sub&quot;),o=t(&quot;big-rat/sign&quot;),s=t(&quot;rat-vec/sub&quot;),l=t(&quot;rat-vec/add&quot;),c=t(&quot;rat-vec/muls&quot;);function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{&quot;big-rat/div&quot;:89,&quot;big-rat/mul&quot;:99,&quot;big-rat/sign&quot;:100,&quot;big-rat/sub&quot;:101,&quot;rat-vec/add&quot;:531,&quot;rat-vec/muls&quot;:533,&quot;rat-vec/sub&quot;:534}],129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);function i(t,e){null==e&amp;&amp;(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&amp;&amp;(o=e?1:255),e&amp;&amp;(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&amp;n(r,0,255))+((i=255&amp;n(i,0,255))&lt;&lt;16)+((a=255&amp;n(a,0,255))&lt;&lt;8)+(o=255&amp;n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)&gt;&gt;&gt;24,n=(16711680&amp;t)&gt;&gt;&gt;16,i=(65280&amp;t)&gt;&gt;&gt;8,a=255&amp;t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:126}],130:[function(t,e,r){&quot;use strict&quot;;e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-rgba&quot;),i=t(&quot;clamp&quot;),a=t(&quot;dtype&quot;);e.exports=function(t,e){&quot;float&quot;!==e&amp;&amp;e||(e=&quot;array&quot;),&quot;uint&quot;===e&amp;&amp;(e=&quot;uint8&quot;),&quot;uint_clamped&quot;===e&amp;&amp;(e=&quot;uint8_clamped&quot;);var r=new(a(e))(4),o=&quot;uint8&quot;!==e&amp;&amp;&quot;uint8_clamped&quot;!==e;return t.length&amp;&amp;&quot;string&quot;!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&amp;&amp;(t[0]&gt;1||0===t[0])&amp;&amp;(t[1]&gt;1||0===t[1])&amp;&amp;(t[2]&gt;1||0===t[2])&amp;&amp;(!t[3]||t[3]&gt;1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&amp;&amp;(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:126,&quot;color-rgba&quot;:133,dtype:184}],132:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;color-name&quot;),i=t(&quot;is-plain-obj&quot;),a=t(&quot;defined&quot;);e.exports=function(t){var e,s,l=[],c=1;if(&quot;string&quot;==typeof t)if(n[t])l=n[t].slice(),s=&quot;rgb&quot;;else if(&quot;transparent&quot;===t)c=0,s=&quot;rgb&quot;,l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=(p=t.slice(1)).length;c=1,u&lt;=4?(l=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&amp;&amp;(c=parseInt(p[3]+p[3],16)/255)):(l=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&amp;&amp;(c=parseInt(p[6]+p[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=&quot;rgb&quot;}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],h=&quot;rgb&quot;===f,p=f.replace(/a$/,&quot;&quot;);s=p;u=&quot;cmyk&quot;===p?4:&quot;gray&quot;===p?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===u?parseFloat(t)/100:&quot;rgb&quot;===p?255*parseFloat(t)/100:parseFloat(t);if(&quot;h&quot;===p[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===p&amp;&amp;l.push(1),c=h||void 0===l[u]?1:l[u],l=l.slice(0,u)}else t.length&gt;10&amp;&amp;/[0-9](?:\s|\/)/.test(t)&amp;&amp;(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join(&quot;&quot;).toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=&quot;rgb&quot;,l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=&quot;hsl&quot;,l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&amp;&amp;(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&amp;&amp;ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t))&amp;&amp;(l=[t[0],t[1],t[2]],s=&quot;rgb&quot;,c=4===t.length?t[3]:1);else s=&quot;rgb&quot;,l=[t&gt;&gt;&gt;16,(65280&amp;t)&gt;&gt;&gt;8,255&amp;t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;color-name&quot;:130,defined:179,&quot;is-plain-obj&quot;:457}],133:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-parse&quot;),i=t(&quot;color-space/hsl&quot;),a=t(&quot;clamp&quot;);e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),&quot;h&quot;===r.space[0]&amp;&amp;(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:126,&quot;color-parse&quot;:132,&quot;color-space/hsl&quot;:134}],134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./rgb&quot;);e.exports={name:&quot;hsl&quot;,min:[0,0,0],max:[360,100,100],channel:[&quot;hue&quot;,&quot;saturation&quot;,&quot;lightness&quot;],alias:[&quot;HSL&quot;],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l&lt;.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c&lt;3;c++)(n=o+1/3*-(c-1))&lt;0?n++:n&gt;1&amp;&amp;n--,a=6*n&lt;1?e+6*(r-e)*n:2*n&lt;1?r:3*n&lt;2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&amp;&amp;(e=4+(n-i)/l),(e=Math.min(60*e,360))&lt;0&amp;&amp;(e+=360),r=(o+s)/2,[e,100*(s===o?0:r&lt;=.5?l/(s+o):l/(2-s-o)),100*r]}},{&quot;./rgb&quot;:135}],135:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rgb&quot;,min:[0,0,0],max:[255,255,255],channel:[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;],alias:[&quot;RGB&quot;]}},{}],136:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],&quot;rainbow-soft&quot;:[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],&quot;freesurface-blue&quot;:[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],&quot;freesurface-red&quot;:[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],&quot;velocity-blue&quot;:[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],&quot;velocity-green&quot;:[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],137:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./colorScale&quot;),i=t(&quot;lerp&quot;);function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=&quot;#&quot;,n=0;n&lt;3;++n)r+=(&quot;00&quot;+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return&quot;rgba(&quot;+t.join(&quot;,&quot;)+&quot;)&quot;}e.exports=function(t){var e,r,l,c,u,f,h,p,d,g;t||(t={});p=(t.nshades||72)-1,h=t.format||&quot;hex&quot;,(f=t.colormap)||(f=&quot;jet&quot;);if(&quot;string&quot;==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+&quot; not a supported colorscale&quot;);u=n[f]}else{if(!Array.isArray(f))throw Error(&quot;unsupported colormap option&quot;,f);u=f.slice()}if(u.length&gt;p+1)throw new Error(f+&quot; map requires nshades to be at least size &quot;+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():&quot;number&quot;==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var m=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&amp;&amp;n[3]&gt;=0&amp;&amp;n[3]&lt;=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),v=[];for(g=0;g&lt;e.length-1;++g){c=e[g+1]-e[g],r=m[g],l=m[g+1];for(var y=0;y&lt;c;y++){var x=y/c;v.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}v.push(u[u.length-1].rgb.concat(d[1])),&quot;hex&quot;===h?v=v.map(o):&quot;rgbaString&quot;===h?v=v.map(s):&quot;float&quot;===h&amp;&amp;(v=v.map(a));return v}},{&quot;./colorScale&quot;:136,lerp:460}],138:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s&gt;0||l(t,e,a)?-1:1:0===s?c&gt;0||l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);return h&gt;0?o&gt;0&amp;&amp;n(t,e,a)&gt;0?1:-1:h&lt;0?o&gt;0||n(t,e,a)&gt;0?1:-1:n(t,e,a)&gt;0||l(t,e,r)?1:-1};var n=t(&quot;robust-orientation&quot;),i=t(&quot;signum&quot;),a=t(&quot;two-sum&quot;),o=t(&quot;robust-product&quot;),s=t(&quot;robust-sum&quot;);function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]&gt;=0}},{&quot;robust-orientation&quot;:548,&quot;robust-product&quot;:549,&quot;robust-sum&quot;:553,signum:555,&quot;two-sum&quot;:605}],139:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],g=e[1],m=e[2],v=e[3];return u+f+h+p-(d+g+m+v)||n(u,f,h,p)-n(d,g,m,v,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+g,d+m,d+v,g+m,g+v,m+v)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+g+m,d+g+v,d+m+v,g+m+v);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b&lt;r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],140:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;cell-orientation&quot;);e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{&quot;cell-orientation&quot;:123,&quot;compare-cell&quot;:139}],141:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/ch1d&quot;),i=t(&quot;./lib/ch2d&quot;),a=t(&quot;./lib/chnd&quot;);e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{&quot;./lib/ch1d&quot;:142,&quot;./lib/ch2d&quot;:143,&quot;./lib/chnd&quot;:144}],142:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0,r=0,n=1;n&lt;t.length;++n)t[n][0]&lt;t[e][0]&amp;&amp;(e=n),t[n][0]&gt;t[r][0]&amp;&amp;(r=n);return e&lt;r?[[e],[r]]:e&gt;r?[[r],[e]]:[[e]]}},{}],143:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=n(t),r=e.length;if(r&lt;=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o&lt;r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(&quot;monotone-convex-hull-2d&quot;)},{&quot;monotone-convex-hull-2d&quot;:469}],144:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){try{return n(t,!0)}catch(o){var r=i(t);if(r.length&lt;=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i&lt;e.length;++i)n[i]=t[e[i]];var a=e.length;for(i=0;i&lt;r;++i)e.indexOf(i)&lt;0&amp;&amp;(n[a++]=t[i]);return n}(t,r);return function(t,e){for(var r=t.length,n=e.length,i=0;i&lt;r;++i)for(var a=t[i],o=0;o&lt;a.length;++o){var s=a[o];if(s&lt;n)a[o]=e[s];else{s-=n;for(var l=0;l&lt;n;++l)s&gt;=e[l]&amp;&amp;(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;affine-hull&quot;)},{&quot;affine-hull&quot;:73,&quot;incremental-convex-hull&quot;:446}],145:[function(t,e,r){e.exports={AFG:&quot;afghan&quot;,ALA:&quot;\\b\\wland&quot;,ALB:&quot;albania&quot;,DZA:&quot;algeria&quot;,ASM:&quot;^(?=.*americ).*samoa&quot;,AND:&quot;andorra&quot;,AGO:&quot;angola&quot;,AIA:&quot;anguill?a&quot;,ATA:&quot;antarctica&quot;,ATG:&quot;antigua&quot;,ARG:&quot;argentin&quot;,ARM:&quot;armenia&quot;,ABW:&quot;^(?!.*bonaire).*\\baruba&quot;,AUS:&quot;australia&quot;,AUT:&quot;^(?!.*hungary).*austria|\\baustri.*\\bemp&quot;,AZE:&quot;azerbaijan&quot;,BHS:&quot;bahamas&quot;,BHR:&quot;bahrain&quot;,BGD:&quot;bangladesh|^(?=.*east).*paki?stan&quot;,BRB:&quot;barbados&quot;,BLR:&quot;belarus|byelo&quot;,BEL:&quot;^(?!.*luxem).*belgium&quot;,BLZ:&quot;belize|^(?=.*british).*honduras&quot;,BEN:&quot;benin|dahome&quot;,BMU:&quot;bermuda&quot;,BTN:&quot;bhutan&quot;,BOL:&quot;bolivia&quot;,BES:&quot;^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands&quot;,BIH:&quot;herzegovina|bosnia&quot;,BWA:&quot;botswana|bechuana&quot;,BVT:&quot;bouvet&quot;,BRA:&quot;brazil&quot;,IOT:&quot;british.?indian.?ocean&quot;,BRN:&quot;brunei&quot;,BGR:&quot;bulgaria&quot;,BFA:&quot;burkina|\\bfaso|upper.?volta&quot;,BDI:&quot;burundi&quot;,CPV:&quot;verde&quot;,KHM:&quot;cambodia|kampuchea|khmer&quot;,CMR:&quot;cameroon&quot;,CAN:&quot;canada&quot;,CYM:&quot;cayman&quot;,CAF:&quot;\\bcentral.african.republic&quot;,TCD:&quot;\\bchad&quot;,CHL:&quot;\\bchile&quot;,CHN:&quot;^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china&quot;,CXR:&quot;christmas&quot;,CCK:&quot;\\bcocos|keeling&quot;,COL:&quot;colombia&quot;,COM:&quot;comoro&quot;,COG:&quot;^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo&quot;,COK:&quot;\\bcook&quot;,CRI:&quot;costa.?rica&quot;,CIV:&quot;ivoire|ivory&quot;,HRV:&quot;croatia&quot;,CUB:&quot;\\bcuba&quot;,CUW:&quot;^(?!.*bonaire).*\\bcura(c|\xe7)ao&quot;,CYP:&quot;cyprus&quot;,CSK:&quot;czechoslovakia&quot;,CZE:&quot;^(?=.*rep).*czech|czechia|bohemia&quot;,COD:&quot;\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc&quot;,DNK:&quot;denmark&quot;,DJI:&quot;djibouti&quot;,DMA:&quot;dominica(?!n)&quot;,DOM:&quot;dominican.rep&quot;,ECU:&quot;ecuador&quot;,EGY:&quot;egypt&quot;,SLV:&quot;el.?salvador&quot;,GNQ:&quot;guine.*eq|eq.*guine|^(?=.*span).*guinea&quot;,ERI:&quot;eritrea&quot;,EST:&quot;estonia&quot;,ETH:&quot;ethiopia|abyssinia&quot;,FLK:&quot;falkland|malvinas&quot;,FRO:&quot;faroe|faeroe&quot;,FJI:&quot;fiji&quot;,FIN:&quot;finland&quot;,FRA:&quot;^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul&quot;,GUF:&quot;^(?=.*french).*guiana&quot;,PYF:&quot;french.?polynesia|tahiti&quot;,ATF:&quot;french.?southern&quot;,GAB:&quot;gabon&quot;,GMB:&quot;gambia&quot;,GEO:&quot;^(?!.*south).*georgia&quot;,DDR:&quot;german.?democratic.?republic|democratic.?republic.*germany|east.germany&quot;,DEU:&quot;^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german&quot;,GHA:&quot;ghana|gold.?coast&quot;,GIB:&quot;gibraltar&quot;,GRC:&quot;greece|hellenic|hellas&quot;,GRL:&quot;greenland&quot;,GRD:&quot;grenada&quot;,GLP:&quot;guadeloupe&quot;,GUM:&quot;\\bguam&quot;,GTM:&quot;guatemala&quot;,GGY:&quot;guernsey&quot;,GIN:&quot;^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea&quot;,GNB:&quot;bissau|^(?=.*portu).*guinea&quot;,GUY:&quot;guyana|british.?guiana&quot;,HTI:&quot;haiti&quot;,HMD:&quot;heard.*mcdonald&quot;,VAT:&quot;holy.?see|vatican|papal.?st&quot;,HND:&quot;^(?!.*brit).*honduras&quot;,HKG:&quot;hong.?kong&quot;,HUN:&quot;^(?!.*austr).*hungary&quot;,ISL:&quot;iceland&quot;,IND:&quot;india(?!.*ocea)&quot;,IDN:&quot;indonesia&quot;,IRN:&quot;\\biran|persia&quot;,IRQ:&quot;\\biraq|mesopotamia&quot;,IRL:&quot;(^ireland)|(^republic.*ireland)&quot;,IMN:&quot;^(?=.*isle).*\\bman&quot;,ISR:&quot;israel&quot;,ITA:&quot;italy&quot;,JAM:&quot;jamaica&quot;,JPN:&quot;japan&quot;,JEY:&quot;jersey&quot;,JOR:&quot;jordan&quot;,KAZ:&quot;kazak&quot;,KEN:&quot;kenya|british.?east.?africa|east.?africa.?prot&quot;,KIR:&quot;kiribati&quot;,PRK:&quot;^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)&quot;,KWT:&quot;kuwait&quot;,KGZ:&quot;kyrgyz|kirghiz&quot;,LAO:&quot;\\blaos?\\b&quot;,LVA:&quot;latvia&quot;,LBN:&quot;lebanon&quot;,LSO:&quot;lesotho|basuto&quot;,LBR:&quot;liberia&quot;,LBY:&quot;libya&quot;,LIE:&quot;liechtenstein&quot;,LTU:&quot;lithuania&quot;,LUX:&quot;^(?!.*belg).*luxem&quot;,MAC:&quot;maca(o|u)&quot;,MDG:&quot;madagascar|malagasy&quot;,MWI:&quot;malawi|nyasa&quot;,MYS:&quot;malaysia&quot;,MDV:&quot;maldive&quot;,MLI:&quot;\\bmali\\b&quot;,MLT:&quot;\\bmalta&quot;,MHL:&quot;marshall&quot;,MTQ:&quot;martinique&quot;,MRT:&quot;mauritania&quot;,MUS:&quot;mauritius&quot;,MYT:&quot;\\bmayotte&quot;,MEX:&quot;\\bmexic&quot;,FSM:&quot;fed.*micronesia|micronesia.*fed&quot;,MCO:&quot;monaco&quot;,MNG:&quot;mongolia&quot;,MNE:&quot;^(?!.*serbia).*montenegro&quot;,MSR:&quot;montserrat&quot;,MAR:&quot;morocco|\\bmaroc&quot;,MOZ:&quot;mozambique&quot;,MMR:&quot;myanmar|burma&quot;,NAM:&quot;namibia&quot;,NRU:&quot;nauru&quot;,NPL:&quot;nepal&quot;,NLD:&quot;^(?!.*\\bant)(?!.*\\bcarib).*netherlands&quot;,ANT:&quot;^(?=.*\\bant).*(nether|dutch)&quot;,NCL:&quot;new.?caledonia&quot;,NZL:&quot;new.?zealand&quot;,NIC:&quot;nicaragua&quot;,NER:&quot;\\bniger(?!ia)&quot;,NGA:&quot;nigeria&quot;,NIU:&quot;niue&quot;,NFK:&quot;norfolk&quot;,MNP:&quot;mariana&quot;,NOR:&quot;norway&quot;,OMN:&quot;\\boman|trucial&quot;,PAK:&quot;^(?!.*east).*paki?stan&quot;,PLW:&quot;palau&quot;,PSE:&quot;palestin|\\bgaza|west.?bank&quot;,PAN:&quot;panama&quot;,PNG:&quot;papua|new.?guinea&quot;,PRY:&quot;paraguay&quot;,PER:&quot;peru&quot;,PHL:&quot;philippines&quot;,PCN:&quot;pitcairn&quot;,POL:&quot;poland&quot;,PRT:&quot;portugal&quot;,PRI:&quot;puerto.?rico&quot;,QAT:&quot;qatar&quot;,KOR:&quot;^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)&quot;,MDA:&quot;moldov|b(a|e)ssarabia&quot;,REU:&quot;r(e|\xe9)union&quot;,ROU:&quot;r(o|u|ou)mania&quot;,RUS:&quot;\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics&quot;,RWA:&quot;rwanda&quot;,BLM:&quot;barth(e|\xe9)lemy&quot;,SHN:&quot;helena&quot;,KNA:&quot;kitts|\\bnevis&quot;,LCA:&quot;\\blucia&quot;,MAF:&quot;^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)&quot;,SPM:&quot;miquelon&quot;,VCT:&quot;vincent&quot;,WSM:&quot;^(?!.*amer).*samoa&quot;,SMR:&quot;san.?marino&quot;,STP:&quot;\\bs(a|\xe3)o.?tom(e|\xe9)&quot;,SAU:&quot;\\bsa\\w*.?arabia&quot;,SEN:&quot;senegal&quot;,SRB:&quot;^(?!.*monte).*serbia&quot;,SYC:&quot;seychell&quot;,SLE:&quot;sierra&quot;,SGP:&quot;singapore&quot;,SXM:&quot;^(?!.*martin)(?!.*saba).*maarten&quot;,SVK:&quot;^(?!.*cze).*slovak&quot;,SVN:&quot;slovenia&quot;,SLB:&quot;solomon&quot;,SOM:&quot;somali&quot;,ZAF:&quot;south.africa|s\\\\..?africa&quot;,SGS:&quot;south.?georgia|sandwich&quot;,SSD:&quot;\\bs\\w*.?sudan&quot;,ESP:&quot;spain&quot;,LKA:&quot;sri.?lanka|ceylon&quot;,SDN:&quot;^(?!.*\\bs(?!u)).*sudan&quot;,SUR:&quot;surinam|dutch.?guiana&quot;,SJM:&quot;svalbard&quot;,SWZ:&quot;swaziland&quot;,SWE:&quot;sweden&quot;,CHE:&quot;switz|swiss&quot;,SYR:&quot;syria&quot;,TWN:&quot;taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china&quot;,TJK:&quot;tajik&quot;,THA:&quot;thailand|\\bsiam&quot;,MKD:&quot;macedonia|fyrom&quot;,TLS:&quot;^(?=.*leste).*timor|^(?=.*east).*timor&quot;,TGO:&quot;togo&quot;,TKL:&quot;tokelau&quot;,TON:&quot;tonga&quot;,TTO:&quot;trinidad|tobago&quot;,TUN:&quot;tunisia&quot;,TUR:&quot;turkey&quot;,TKM:&quot;turkmen&quot;,TCA:&quot;turks&quot;,TUV:&quot;tuvalu&quot;,UGA:&quot;uganda&quot;,UKR:&quot;ukrain&quot;,ARE:&quot;emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em&quot;,GBR:&quot;united.?kingdom|britain|^u\\.?k\\.?$&quot;,TZA:&quot;tanzania&quot;,USA:&quot;united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)&quot;,UMI:&quot;minor.?outlying.?is&quot;,URY:&quot;uruguay&quot;,UZB:&quot;uzbek&quot;,VUT:&quot;vanuatu|new.?hebrides&quot;,VEN:&quot;venezuela&quot;,VNM:&quot;^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam&quot;,VGB:&quot;^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin&quot;,VIR:&quot;^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin&quot;,WLF:&quot;futuna|wallis&quot;,ESH:&quot;western.sahara&quot;,YEM:&quot;^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen&quot;,YMD:&quot;^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen&quot;,YUG:&quot;yugoslavia&quot;,ZMB:&quot;zambia|northern.?rhodesia&quot;,EAZ:&quot;zanzibar&quot;,ZWE:&quot;zimbabwe|^(?!.*northern).*rhodesia&quot;}},{}],146:[function(t,e,r){e.exports=[&quot;xx-small&quot;,&quot;x-small&quot;,&quot;small&quot;,&quot;medium&quot;,&quot;large&quot;,&quot;x-large&quot;,&quot;xx-large&quot;,&quot;larger&quot;,&quot;smaller&quot;]},{}],147:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;condensed&quot;,&quot;semi-condensed&quot;,&quot;extra-condensed&quot;,&quot;ultra-condensed&quot;,&quot;expanded&quot;,&quot;semi-expanded&quot;,&quot;extra-expanded&quot;,&quot;ultra-expanded&quot;]},{}],148:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;italic&quot;,&quot;oblique&quot;]},{}],149:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;bold&quot;,&quot;bolder&quot;,&quot;lighter&quot;,&quot;100&quot;,&quot;200&quot;,&quot;300&quot;,&quot;400&quot;,&quot;500&quot;,&quot;600&quot;,&quot;700&quot;,&quot;800&quot;,&quot;900&quot;]},{}],150:[function(t,e,r){&quot;use strict&quot;;e.exports={parse:t(&quot;./parse&quot;),stringify:t(&quot;./stringify&quot;)}},{&quot;./parse&quot;:152,&quot;./stringify&quot;:153}],151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font-size-keywords&quot;);e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf(&quot;/&quot;)||-1!==n.indexOf(t)}}},{&quot;css-font-size-keywords&quot;:146}],152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;unquote&quot;),i=t(&quot;css-global-keywords&quot;),a=t(&quot;css-system-font-keywords&quot;),o=t(&quot;css-font-weight-keywords&quot;),s=t(&quot;css-font-style-keywords&quot;),l=t(&quot;css-font-stretch-keywords&quot;),c=t(&quot;string-split-by&quot;),u=t(&quot;./lib/util&quot;).isSize;e.exports=h;var f=h.cache={};function h(t){if(&quot;string&quot;!=typeof t)throw new Error(&quot;Font argument must be a string.&quot;);if(f[t])return f[t];if(&quot;&quot;===t)throw new Error(&quot;Cannot parse an empty string.&quot;);if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:&quot;normal&quot;,variant:&quot;normal&quot;,weight:&quot;normal&quot;,stretch:&quot;normal&quot;,lineHeight:&quot;normal&quot;,size:&quot;1rem&quot;,family:[&quot;serif&quot;]},h=c(t,/\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[&quot;style&quot;,&quot;variant&quot;,&quot;weight&quot;,&quot;stretch&quot;].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if(&quot;normal&quot;!==e&amp;&amp;&quot;small-caps&quot;!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,&quot;/&quot;);if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):&quot;/&quot;===h[0]&amp;&amp;(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(&quot;Missing required font-family.&quot;);return r.family=c(h.join(&quot; &quot;),/\s*,\s*/).map(n),f[t]=r}throw new Error(&quot;Unknown or unsupported font token: &quot;+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(&quot;Missing required font-size.&quot;)}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{&quot;./lib/util&quot;:151,&quot;css-font-stretch-keywords&quot;:147,&quot;css-font-style-keywords&quot;:148,&quot;css-font-weight-keywords&quot;:149,&quot;css-global-keywords&quot;:154,&quot;css-system-font-keywords&quot;:155,&quot;string-split-by&quot;:589,unquote:620}],153:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;),i=t(&quot;./lib/util&quot;).isSize,a=g(t(&quot;css-global-keywords&quot;)),o=g(t(&quot;css-system-font-keywords&quot;)),s=g(t(&quot;css-font-weight-keywords&quot;)),l=g(t(&quot;css-font-style-keywords&quot;)),c=g(t(&quot;css-font-stretch-keywords&quot;)),u={normal:1,&quot;small-caps&quot;:1},f={serif:1,&quot;sans-serif&quot;:1,monospace:1,cursive:1,fantasy:1,&quot;system-ui&quot;:1},h=&quot;1rem&quot;,p=&quot;serif&quot;;function d(t,e){if(t&amp;&amp;!e[t]&amp;&amp;!a[t])throw Error(&quot;Unknown keyword `&quot;+t+&quot;`&quot;);return t}function g(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:&quot;style fontstyle fontStyle font-style slope distinction&quot;,variant:&quot;variant font-variant fontVariant fontvariant var capitalization&quot;,weight:&quot;weight w font-weight fontWeight fontweight&quot;,stretch:&quot;stretch font-stretch fontStretch fontstretch width&quot;,size:&quot;size s font-size fontSize fontsize height em emSize&quot;,lineHeight:&quot;lh line-height lineHeight lineheight leading&quot;,family:&quot;font family fontFamily font-family fontfamily type typeface face&quot;,system:&quot;system reserved default global&quot;})).system)return t.system&amp;&amp;d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&amp;&amp;(t.size=h),&quot;number&quot;==typeof t.size&amp;&amp;(t.size+=&quot;px&quot;),!i)throw Error(&quot;Bad size value `&quot;+t.size+&quot;`&quot;);t.family||(t.family=p),Array.isArray(t.family)&amp;&amp;(t.family.length||(t.family=[p]),t.family=t.family.map((function(t){return f[t]?t:'&quot;'+t+'&quot;'})).join(&quot;, &quot;));var e=[];return e.push(t.style),t.variant!==t.style&amp;&amp;e.push(t.variant),t.weight!==t.variant&amp;&amp;t.weight!==t.style&amp;&amp;e.push(t.weight),t.stretch!==t.weight&amp;&amp;t.stretch!==t.variant&amp;&amp;t.stretch!==t.style&amp;&amp;e.push(t.stretch),e.push(t.size+(null==t.lineHeight||&quot;normal&quot;===t.lineHeight||t.lineHeight+&quot;&quot;==&quot;1&quot;?&quot;&quot;:&quot;/&quot;+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(&quot; &quot;)}},{&quot;./lib/util&quot;:151,&quot;css-font-stretch-keywords&quot;:147,&quot;css-font-style-keywords&quot;:148,&quot;css-font-weight-keywords&quot;:149,&quot;css-global-keywords&quot;:154,&quot;css-system-font-keywords&quot;:155,&quot;pick-by-alias&quot;:498}],154:[function(t,e,r){e.exports=[&quot;inherit&quot;,&quot;initial&quot;,&quot;unset&quot;]},{}],155:[function(t,e,r){e.exports=[&quot;caption&quot;,&quot;icon&quot;,&quot;menu&quot;,&quot;message-box&quot;,&quot;small-caption&quot;,&quot;status-bar&quot;]},{}],156:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p&gt;=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u&gt;=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],157:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/thunk.js&quot;);function i(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=&quot;&quot;,this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(t){var e=new i;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var a=0;a&lt;r.length;++a){var o=r[a];if(&quot;array&quot;===o||&quot;object&quot;==typeof o&amp;&amp;o.blockIndices){if(e.argTypes[a]=&quot;array&quot;,e.arrayArgs.push(a),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(&quot;array&quot;+a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array args&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array args&quot;)}else if(&quot;scalar&quot;===o)e.scalarArgs.push(a),e.shimArgs.push(&quot;scalar&quot;+a);else if(&quot;index&quot;===o){if(e.indexArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array index&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array index&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array index&quot;)}else if(&quot;shape&quot;===o){if(e.shapeArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].lvalue)throw new Error(&quot;cwise: pre() block may not write to array shape&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array shape&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].lvalue)throw new Error(&quot;cwise: post() block may not write to array shape&quot;)}else{if(&quot;object&quot;!=typeof o||!o.offset)throw new Error(&quot;cwise: Unknown argument type &quot;+r[a]);e.argTypes[a]=&quot;offset&quot;,e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(a)}}if(e.arrayArgs.length&lt;=0)throw new Error(&quot;cwise: No array arguments specified&quot;);if(e.pre.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in pre() block&quot;);if(e.body.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in body() block&quot;);if(e.post.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in post() block&quot;);return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||&quot;cwise&quot;,e.blockSize=t.blockSize||64,n(e)}},{&quot;./lib/thunk.js&quot;:159}],158:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;uniq&quot;);function i(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length&gt;0,l=[],c=[],u=0,f=0;for(n=0;n&lt;a;++n)c.push([&quot;i&quot;,n,&quot;=0&quot;].join(&quot;&quot;));for(i=0;i&lt;o;++i)for(n=0;n&lt;a;++n)f=u,u=t[n],0===n?c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=t&quot;,i,&quot;p&quot;,u].join(&quot;&quot;)):c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=(t&quot;,i,&quot;p&quot;,u,&quot;-s&quot;,f,&quot;*t&quot;,i,&quot;p&quot;,f,&quot;)&quot;].join(&quot;&quot;));for(c.length&gt;0&amp;&amp;l.push(&quot;var &quot;+c.join(&quot;,&quot;)),n=a-1;n&gt;=0;--n)u=t[n],l.push([&quot;for(i&quot;,n,&quot;=0;i&quot;,n,&quot;&lt;s&quot;,u,&quot;;++i&quot;,n,&quot;){&quot;].join(&quot;&quot;));for(l.push(r),n=0;n&lt;a;++n){for(f=u,u=t[n],i=0;i&lt;o;++i)l.push([&quot;p&quot;,i,&quot;+=d&quot;,i,&quot;s&quot;,n].join(&quot;&quot;));s&amp;&amp;(n&gt;0&amp;&amp;l.push([&quot;index[&quot;,f,&quot;]-=s&quot;,f].join(&quot;&quot;)),l.push([&quot;++index[&quot;,u,&quot;]&quot;].join(&quot;&quot;))),l.push(&quot;}&quot;)}return l.join(&quot;\n&quot;)}function a(t,e,r){for(var n=t.body,i=[],a=[],o=0;o&lt;t.args.length;++o){var s=t.args[o];if(!(s.count&lt;=0)){var l=new RegExp(s.name,&quot;g&quot;),c=&quot;&quot;,u=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case&quot;offset&quot;:var f=e.offsetArgIndex.indexOf(o);u=e.offsetArgs[f].array,c=&quot;+q&quot;+f;case&quot;array&quot;:c=&quot;p&quot;+u+c;var h=&quot;l&quot;+o,p=&quot;a&quot;+u;if(0===e.arrayBlockIndices[u])1===s.count?&quot;generic&quot;===r[u]?s.lvalue?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):n=n.replace(l,[p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)):n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)):&quot;generic&quot;===r[u]?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;[&quot;,c,&quot;]=&quot;,h].join(&quot;&quot;)));else{for(var d=[s.name],g=[c],m=0;m&lt;Math.abs(e.arrayBlockIndices[u]);m++)d.push(&quot;\\s*\\[([^\\]]+)\\]&quot;),g.push(&quot;$&quot;+(m+1)+&quot;*t&quot;+u+&quot;b&quot;+m);if(l=new RegExp(d.join(&quot;&quot;),&quot;g&quot;),c=g.join(&quot;+&quot;),&quot;generic&quot;===r[u])throw new Error(&quot;cwise: Generic arrays not supported in combination with blocks!&quot;);n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;))}break;case&quot;scalar&quot;:n=n.replace(l,&quot;Y&quot;+e.scalarArgs.indexOf(o));break;case&quot;index&quot;:n=n.replace(l,&quot;index&quot;);break;case&quot;shape&quot;:n=n.replace(l,&quot;shape&quot;)}}}return[i.join(&quot;\n&quot;),n,a.join(&quot;\n&quot;)].join(&quot;\n&quot;).trim()}function o(t){for(var e=new Array(t.length),r=!0,n=0;n&lt;t.length;++n){var i=t[n],a=i.match(/\d+/);a=a?a[0]:&quot;&quot;,0===i.charAt(0)?e[n]=&quot;u&quot;+i.charAt(1)+a:e[n]=i.charAt(0)+a,n&gt;0&amp;&amp;(r=r&amp;&amp;e[n]===e[n-1])}return r?e[0]:e.join(&quot;&quot;)}e.exports=function(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,s=new Array(t.arrayArgs.length),l=new Array(t.arrayArgs.length),c=0;c&lt;t.arrayArgs.length;++c)l[c]=e[2*c],s[c]=e[2*c+1];var u=[],f=[],h=[],p=[],d=[];for(c=0;c&lt;t.arrayArgs.length;++c){t.arrayBlockIndices[c]&lt;0?(h.push(0),p.push(r),u.push(r),f.push(r+t.arrayBlockIndices[c])):(h.push(t.arrayBlockIndices[c]),p.push(t.arrayBlockIndices[c]+r),u.push(0),f.push(t.arrayBlockIndices[c]));for(var g=[],m=0;m&lt;s[c].length;m++)h[c]&lt;=s[c][m]&amp;&amp;s[c][m]&lt;p[c]&amp;&amp;g.push(s[c][m]-h[c]);d.push(g)}var v=[&quot;SS&quot;],y=[&quot;'use strict'&quot;],x=[];for(m=0;m&lt;r;++m)x.push([&quot;s&quot;,m,&quot;=SS[&quot;,m,&quot;]&quot;].join(&quot;&quot;));for(c=0;c&lt;t.arrayArgs.length;++c){v.push(&quot;a&quot;+c),v.push(&quot;t&quot;+c),v.push(&quot;p&quot;+c);for(m=0;m&lt;r;++m)x.push([&quot;t&quot;,c,&quot;p&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,h[c]+m,&quot;]&quot;].join(&quot;&quot;));for(m=0;m&lt;Math.abs(t.arrayBlockIndices[c]);++m)x.push([&quot;t&quot;,c,&quot;b&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,u[c]+m,&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.scalarArgs.length;++c)v.push(&quot;Y&quot;+c);if(t.shapeArgs.length&gt;0&amp;&amp;x.push(&quot;shape=SS.slice(0)&quot;),t.indexArgs.length&gt;0){var b=new Array(r);for(c=0;c&lt;r;++c)b[c]=&quot;0&quot;;x.push([&quot;index=[&quot;,b.join(&quot;,&quot;),&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.offsetArgs.length;++c){var _=t.offsetArgs[c],w=[];for(m=0;m&lt;_.offset.length;++m)0!==_.offset[m]&amp;&amp;(1===_.offset[m]?w.push([&quot;t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)):w.push([_.offset[m],&quot;*t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)));0===w.length?x.push(&quot;q&quot;+c+&quot;=0&quot;):x.push([&quot;q&quot;,c,&quot;=&quot;,w.join(&quot;+&quot;)].join(&quot;&quot;))}var T=n([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));for((x=x.concat(T)).length&gt;0&amp;&amp;y.push(&quot;var &quot;+x.join(&quot;,&quot;)),c=0;c&lt;t.arrayArgs.length;++c)y.push(&quot;p&quot;+c+&quot;|=0&quot;);t.pre.body.length&gt;3&amp;&amp;y.push(a(t.pre,t,l));var k=a(t.body,t,l),A=function(t){for(var e=0,r=t[0].length;e&lt;r;){for(var n=1;n&lt;t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}(d);A&lt;r?y.push(function(t,e,r,n){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length&gt;0,c=[],u=0;u&lt;o;++u)c.push([&quot;var offset&quot;,u,&quot;=p&quot;,u].join(&quot;&quot;));for(u=t;u&lt;a;++u)c.push([&quot;for(var j&quot;+u+&quot;=SS[&quot;,e[u],&quot;]|0;j&quot;,u,&quot;&gt;0;){&quot;].join(&quot;&quot;)),c.push([&quot;if(j&quot;,u,&quot;&lt;&quot;,s,&quot;){&quot;].join(&quot;&quot;)),c.push([&quot;s&quot;,e[u],&quot;=j&quot;,u].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;=0&quot;].join(&quot;&quot;)),c.push([&quot;}else{s&quot;,e[u],&quot;=&quot;,s].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;-=&quot;,s,&quot;}&quot;].join(&quot;&quot;)),l&amp;&amp;c.push([&quot;index[&quot;,e[u],&quot;]=j&quot;,u].join(&quot;&quot;));for(u=0;u&lt;o;++u){for(var f=[&quot;offset&quot;+u],h=t;h&lt;a;++h)f.push([&quot;j&quot;,h,&quot;*t&quot;,u,&quot;p&quot;,e[h]].join(&quot;&quot;));c.push([&quot;p&quot;,u,&quot;=(&quot;,f.join(&quot;+&quot;),&quot;)&quot;].join(&quot;&quot;))}for(c.push(i(e,r,n)),u=t;u&lt;a;++u)c.push(&quot;}&quot;);return c.join(&quot;\n&quot;)}(A,d[0],t,k)):y.push(i(d[0],t,k)),t.post.body.length&gt;3&amp;&amp;y.push(a(t.post,t,l)),t.debug&amp;&amp;console.log(&quot;-----Generated cwise routine for &quot;,e,&quot;:\n&quot;+y.join(&quot;\n&quot;)+&quot;\n----------&quot;);var M=[t.funcName||&quot;unnamed&quot;,&quot;_cwise_loop_&quot;,s[0].join(&quot;s&quot;),&quot;m&quot;,A,o(l)].join(&quot;&quot;);return new Function([&quot;function &quot;,M,&quot;(&quot;,v.join(&quot;,&quot;),&quot;){&quot;,y.join(&quot;\n&quot;),&quot;} return &quot;,M].join(&quot;&quot;))()}},{uniq:619}],159:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./compile.js&quot;);e.exports=function(t){var e=[&quot;'use strict'&quot;,&quot;var CACHED={}&quot;],r=[],i=t.funcName+&quot;_cwise_thunk&quot;;e.push([&quot;return function &quot;,i,&quot;(&quot;,t.shimArgs.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var a=[],o=[],s=[[&quot;array&quot;,t.arrayArgs[0],&quot;.shape.slice(&quot;,Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]&lt;0?&quot;,&quot;+t.arrayBlockIndices[0]+&quot;)&quot;:&quot;)&quot;].join(&quot;&quot;)],l=[],c=[],u=0;u&lt;t.arrayArgs.length;++u){var f=t.arrayArgs[u];r.push([&quot;t&quot;,f,&quot;=array&quot;,f,&quot;.dtype,&quot;,&quot;r&quot;,f,&quot;=array&quot;,f,&quot;.order&quot;].join(&quot;&quot;)),a.push(&quot;t&quot;+f),a.push(&quot;r&quot;+f),o.push(&quot;t&quot;+f),o.push(&quot;r&quot;+f+&quot;.join()&quot;),s.push(&quot;array&quot;+f+&quot;.data&quot;),s.push(&quot;array&quot;+f+&quot;.stride&quot;),s.push(&quot;array&quot;+f+&quot;.offset|0&quot;),u&gt;0&amp;&amp;(l.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape.length===array&quot;+f+&quot;.shape.length+&quot;+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[u]))),c.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[0])+&quot;]===array&quot;+f+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[u])+&quot;]&quot;))}for(t.arrayArgs.length&gt;1&amp;&amp;(e.push(&quot;if (!(&quot;+l.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same dimensionality!')&quot;),e.push(&quot;for(var shapeIndex=array&quot;+t.arrayArgs[0]+&quot;.shape.length-&quot;+Math.abs(t.arrayBlockIndices[0])+&quot;; shapeIndex--\x3e0;) {&quot;),e.push(&quot;if (!(&quot;+c.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same shape!')&quot;),e.push(&quot;}&quot;)),u=0;u&lt;t.scalarArgs.length;++u)s.push(&quot;scalar&quot;+t.scalarArgs[u]);return r.push([&quot;type=[&quot;,o.join(&quot;,&quot;),&quot;].join()&quot;].join(&quot;&quot;)),r.push(&quot;proc=CACHED[type]&quot;),e.push(&quot;var &quot;+r.join(&quot;,&quot;)),e.push([&quot;if(!proc){&quot;,&quot;CACHED[type]=proc=compile([&quot;,a.join(&quot;,&quot;),&quot;])}&quot;,&quot;return proc(&quot;,s.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),t.debug&amp;&amp;console.log(&quot;-----Generated thunk:\n&quot;+e.join(&quot;\n&quot;)+&quot;\n----------&quot;),new Function(&quot;compile&quot;,e.join(&quot;\n&quot;))(n.bind(void 0,t))}},{&quot;./compile.js&quot;:158}],160:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;type/value/is&quot;),a=t(&quot;type/value/ensure&quot;),o=t(&quot;type/plain-function/ensure&quot;),s=t(&quot;es5-ext/object/copy&quot;),l=t(&quot;es5-ext/object/normalize-options&quot;),c=t(&quot;es5-ext/object/map&quot;),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,i=a(e)&amp;&amp;o(e.value);return delete(n=s(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&amp;&amp;h.call(this,t)?i:(e.value=u.call(i,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=l(arguments[1]);return i(e.resolveContext)&amp;&amp;o(e.resolveContext),c(t,(function(t,r){return n(r,t,e)}))}},{&quot;es5-ext/object/copy&quot;:205,&quot;es5-ext/object/map&quot;:213,&quot;es5-ext/object/normalize-options&quot;:214,&quot;type/plain-function/ensure&quot;:611,&quot;type/value/ensure&quot;:615,&quot;type/value/is&quot;:616}],161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;type/value/is&quot;),i=t(&quot;type/plain-function/is&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/normalize-options&quot;),s=t(&quot;es5-ext/string/#/contains&quot;);(e.exports=function(t,e){var r,i,l,c,u;return arguments.length&lt;2||&quot;string&quot;!=typeof t?(c=e,e=t,t=null):c=arguments[2],n(t)?(r=s.call(t,&quot;c&quot;),i=s.call(t,&quot;e&quot;),l=s.call(t,&quot;w&quot;)):(r=l=!0,i=!1),u={value:e,configurable:r,enumerable:i,writable:l},c?a(o(c),u):u}).gs=function(t,e,r){var l,c,u,f;return&quot;string&quot;!=typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],n(e)?i(e)?n(r)?i(r)||(u=r,r=void 0):r=void 0:(u=e,e=r=void 0):e=void 0,n(t)?(l=s.call(t,&quot;c&quot;),c=s.call(t,&quot;e&quot;)):(l=!0,c=!1),f={get:e,set:r,configurable:l,enumerable:c},u?a(o(u),f):f}},{&quot;es5-ext/object/assign&quot;:202,&quot;es5-ext/object/normalize-options&quot;:214,&quot;es5-ext/string/#/contains&quot;:221,&quot;type/plain-function/is&quot;:612,&quot;type/value/is&quot;:616}],162:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;void 0!==e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function r(t){var r;return 1===t.length&amp;&amp;(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o&lt;i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o&lt;i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a&gt;1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o&lt;a;)if(null!=(r=t[o])&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=t[o])&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r))}else for(;++o&lt;a;)if(null!=(r=e(t[o],o,t))&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=e(t[o],o,t))&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function g(t){return t}function m(t,e,r){t=+t,e=+e,r=(i=arguments.length)&lt;2?(e=t,t=0,1):i&lt;3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n&lt;i;)a[n]=t+n*r;return a}var v=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i&gt;=0?(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a&gt;=v?i*=10:a&gt;=y?i*=5:a&gt;=x&amp;&amp;(i*=2),e&lt;t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function T(t,e,r){if(null==r&amp;&amp;(r=s),n=t.length){if((e=+e)&lt;=0||n&lt;2)return+r(t[0],0,t);if(e&gt;=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;n&gt;r&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;n&gt;r&amp;&amp;(n=r);return n}function A(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,M),n=new Array(r);++e&lt;r;)for(var i,a=-1,o=n[e]=new Array(i);++a&lt;i;)o[a]=t[a][e];return n}function M(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&amp;&amp;(r=o),n=a=0;n&lt;l;++n)for(s=t[n],i=0;i&lt;c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=g,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a&lt;s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=m(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]&lt;=u;)h.shift(),--p;for(;h[p-1]&gt;f;)h.pop(),--p;var d,g=new Array(p+1);for(a=0;a&lt;=p;++a)(d=g[a]=[]).x0=a&gt;0?h[a-1]:u,d.x1=a&lt;p?h[a]:f;for(a=0;a&lt;s;++a)u&lt;=(o=l[a])&amp;&amp;o&lt;=f&amp;&amp;g[i(h,o,0,p)].push(n[a]);return g}return n.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=&quot;function&quot;==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;r&gt;n&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;r&gt;n&amp;&amp;(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a&lt;n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a&lt;n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a&lt;i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a&lt;i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return T(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&amp;&amp;(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=T,t.range=m,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&amp;&amp;(r=e);++a&lt;n;)(r(i=t[a],s)&lt;0||0!==r(s,s))&amp;&amp;(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i&lt;n;)(r=+t[i])&amp;&amp;(a+=r);else for(;++i&lt;n;)(r=+e(t[i],i,t))&amp;&amp;(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)===(e=+e)&amp;&amp;r&gt;0)return[t];if((n=e&lt;t)&amp;&amp;(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o&gt;0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s&lt;i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s&lt;i;)a[s]=(t-s)/o;return n&amp;&amp;a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=A,t.variance=l,t.zip=function(){return A(arguments)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],163:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;void 0!==e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a&lt;o;)n.set(a,t[a]);else for(;++a&lt;o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}e.prototype=r.prototype={constructor:e,has:function(t){return&quot;$&quot;+t in this},get:function(t){return this[&quot;$&quot;+t]},set:function(t,e){return this[&quot;$&quot;+t]=e,this},remove:function(t){var e=&quot;$&quot;+t;return e in this&amp;&amp;delete this[e]},clear:function(){for(var t in this)&quot;$&quot;===t[0]&amp;&amp;delete this[t]},keys:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)&quot;$&quot;===e[0]&amp;&amp;++t;return t},empty:function(){for(var t in this)if(&quot;$&quot;===t[0])return!1;return!0},each:function(t){for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t(this[e],e.slice(1),this)}};var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each((function(t){r.add(t)}));else if(t){var n=-1,i=t.length;if(null==e)for(;++n&lt;i;)r.add(t[n]);else for(;++n&lt;i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[&quot;$&quot;+(t+=&quot;&quot;)]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each},t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i&gt;=l.length)return null!=t&amp;&amp;n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=r(),m=a();++h&lt;p;)(f=g.get(s=d(c=n[h])+&quot;&quot;))?f.push(c):g.set(s,[c]);return g.each((function(t,e){o(m,e,u(t,i,a,o))})),m}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n&gt;l.length)return r;var i,a=c[n-1];return null!=e&amp;&amp;n&gt;=l.length?i=r.entries():(i=[],r.each((function(e,r){i.push({key:r,values:t(e,n)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],164:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=&quot;\\s*([+-]?\\d+)\\s*&quot;,a=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*&quot;,o=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*&quot;,s=/^#([0-9a-f]{3,8})$/,l=new RegExp(&quot;^rgb\\(&quot;+[i,i,i]+&quot;\\)$&quot;),c=new RegExp(&quot;^rgb\\(&quot;+[o,o,o]+&quot;\\)$&quot;),u=new RegExp(&quot;^rgba\\(&quot;+[i,i,i,a]+&quot;\\)$&quot;),f=new RegExp(&quot;^rgba\\(&quot;+[o,o,o,a]+&quot;\\)$&quot;),h=new RegExp(&quot;^hsl\\(&quot;+[a,o,o]+&quot;\\)$&quot;),p=new RegExp(&quot;^hsla\\(&quot;+[a,o,o,a]+&quot;\\)$&quot;),d={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function g(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function v(t){var e,r;return t=(t+&quot;&quot;).trim().toLowerCase(),(e=s.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?y(e):3===r?new w(e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,(15&amp;e)&lt;&lt;4|15&amp;e,1):8===r?x(e&gt;&gt;24&amp;255,e&gt;&gt;16&amp;255,e&gt;&gt;8&amp;255,(255&amp;e)/255):4===r?x(e&gt;&gt;12&amp;15|e&gt;&gt;8&amp;240,e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,((15&amp;e)&lt;&lt;4|15&amp;e)/255):null):(e=l.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?M(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?M(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?y(d[t]):&quot;transparent&quot;===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t&gt;&gt;16&amp;255,t&gt;&gt;8&amp;255,255&amp;t,1)}function x(t,e,r,n){return n&lt;=0&amp;&amp;(t=e=r=NaN),new w(t,e,r,n)}function b(t){return t instanceof n||(t=v(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,r,n){return 1===arguments.length?b(t):new w(t,e,r,null==n?1:n)}function w(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function T(){return&quot;#&quot;+A(this.r)+A(this.g)+A(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;rgb(&quot;:&quot;rgba(&quot;)+Math.max(0,Math.min(255,Math.round(this.r)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.g)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}function A(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))&lt;16?&quot;0&quot;:&quot;&quot;)+t.toString(16)}function M(t,e,r,n){return n&lt;=0?t=e=r=NaN:r&lt;=0||r&gt;=1?t=e=NaN:e&lt;=0&amp;&amp;(t=NaN),new L(t,e,r,n)}function S(t){if(t instanceof L)return new L(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new L;if(t instanceof L)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r&lt;i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c&lt;.5?o+a:2-o-a,s*=60):l=c&gt;0&amp;&amp;c&lt;1?0:s,new L(s,l,c,t.opacity)}function E(t,e,r,n){return 1===arguments.length?S(t):new L(t,e,r,null==n?1:n)}function L(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function C(t,e,r){return 255*(t&lt;60?e+(r-e)*t/60:t&lt;180?r:t&lt;240?e+(r-e)*(240-t)/60:e)}e(n,v,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return S(this).formatHsl()},formatRgb:m,toString:m}),e(w,_,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5&lt;=this.r&amp;&amp;this.r&lt;255.5&amp;&amp;-.5&lt;=this.g&amp;&amp;this.g&lt;255.5&amp;&amp;-.5&lt;=this.b&amp;&amp;this.b&lt;255.5&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},hex:T,formatHex:T,formatRgb:k,toString:k})),e(L,E,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new L(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new L(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h&lt;0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r&lt;.5?r:1-r)*e,i=2*r-n;return new w(C(t&gt;=240?t-240:t+120,i,n),C(t,i,n),C(t&lt;120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0&lt;=this.s&amp;&amp;this.s&lt;=1||isNaN(this.s))&amp;&amp;0&lt;=this.l&amp;&amp;this.l&lt;=1&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;hsl(&quot;:&quot;hsla(&quot;)+(this.h||0)+&quot;, &quot;+100*(this.s||0)+&quot;%, &quot;+100*(this.l||0)+&quot;%&quot;+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}}));var P=Math.PI/180,I=180/Math.PI,O=6/29,z=3*O*O;function D(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof H)return G(t);t instanceof w||(t=b(t));var e,r,n=U(t.r),i=U(t.g),a=U(t.b),o=B((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&amp;&amp;i===a?e=r=o:(e=B((.4360747*n+.3850649*i+.1430804*a)/.96422),r=B((.0139322*n+.0971045*i+.7141733*a)/.82521)),new F(116*o-16,500*(e-o),200*(o-r),t.opacity)}function R(t,e,r,n){return 1===arguments.length?D(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function B(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/z+4/29}function N(t){return t&gt;O?t*t*t:z*(t-4/29)}function j(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof H)return new H(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=D(t)),0===t.a&amp;&amp;0===t.b)return new H(NaN,0&lt;t.l&amp;&amp;t.l&lt;100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*I;return new H(e&lt;0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function q(t,e,r,n){return 1===arguments.length?V(t):new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function G(t){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*P;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(F,R,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new w(j(3.1338561*(e=.96422*N(e))-1.6168667*(t=1*N(t))-.4906146*(r=.82521*N(r))),j(-.9787684*e+1.9161415*t+.033454*r),j(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(H,q,r(n,{brighter:function(t){return new H(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new H(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return G(this).rgb()}}));var Y=-.14861,W=1.78277,X=-.29227,Z=-.90649,J=1.97294,K=J*Z,Q=J*W,$=W*X-Z*Y;function tt(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);t instanceof w||(t=b(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=($*n+K*e-Q*r)/($+K-Q),a=n-i,o=(J*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/(J*i*(1-i)),l=s?Math.atan2(o,a)*I-120:NaN;return new rt(l&lt;0?l+360:l,s,i,t.opacity)}function et(t,e,r,n){return 1===arguments.length?tt(t):new rt(t,e,r,null==n?1:n)}function rt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(rt,et,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*P,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new w(255*(e+r*(Y*n+W*i)),255*(e+r*(X*n+Z*i)),255*(e+r*(J*n)),this.opacity)}})),t.color=v,t.cubehelix=et,t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.hcl=q,t.hsl=E,t.lab=R,t.lch=function(t,e,r,n){return 1===arguments.length?V(t):new H(r,e,t,null==n?1:n)},t.rgb=_,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],165:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e&lt;r;++e){if(!(t=arguments[e]+&quot;&quot;)||t in i||/[\s.]/.test(t))throw new Error(&quot;illegal type: &quot;+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){return t.trim().split(/^|\s+/).map((function(t){var r=&quot;&quot;,n=t.indexOf(&quot;.&quot;);if(n&gt;=0&amp;&amp;(r=t.slice(n+1),t=t.slice(0,n)),t&amp;&amp;!e.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n&lt;i;++n)if((r=t[n]).name===e)return r.value}function o(t,r,n){for(var i=0,a=t.length;i&lt;a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&amp;&amp;t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n=this._,s=i(t+&quot;&quot;,n),l=-1,c=s.length;if(!(arguments.length&lt;2)){if(null!=e&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;invalid callback: &quot;+e);for(;++l&lt;c;)if(r=(t=s[l]).type)n[r]=o(n[r],t.name,e);else if(null==e)for(r in n)n[r]=o(n[r],t.name,null);return this}for(;++l&lt;c;)if((r=(t=s[l]).type)&amp;&amp;(r=a(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)&gt;0)for(var r,n,i=new Array(r),a=0;a&lt;r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(a=0,r=(n=this._[t]).length;a&lt;r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(var n=this._[t],i=0,a=n.length;i&lt;a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],166:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-quadtree&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-dispatch&quot;),t(&quot;d3-timer&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return function(){return t}}function o(){return 1e-6*(Math.random()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function f(t){return t.x}function h(t){return t.y}var p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n&lt;a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n&lt;a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&amp;&amp;(t=0),null==e&amp;&amp;(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,g,m=r.length,v=0;v&lt;c;++v)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t&lt;m;++t)u=r[t],d=n[u.index],g=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e&gt;h+c||n&lt;h-c||r&gt;p+c||a&lt;p-c;if(s.index&gt;u.index){var f=h-s.x-s.vx,m=p-s.y-s.vy,v=f*f+m*m;v&lt;c*c&amp;&amp;(0===f&amp;&amp;(v+=(f=o())*f),0===m&amp;&amp;(v+=(m=o())*m),v=(c-(v=Math.sqrt(v)))/v*i,u.vx+=(f*=v)*(c=(l*=l)/(g+l)),u.vy+=(m*=v)*c,s.vx-=f*(c=1-c),s.vy-=m*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e&lt;4;++e)t[e]&amp;&amp;t[e].r&gt;t.r&amp;&amp;(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e&lt;a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function g(r){for(var i=0,a=t.length;i&lt;d;++i)for(var s,c,u,f,h,p,g,m=0;m&lt;a;++m)c=(s=t[m]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[m])/p*r*e[m],h*=p,u.vx-=f*(g=l[m]),u.vy-=h*g,c.vx+=f*(g=1-g),c.vy+=h*g}function m(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a&lt;h;++a)(o=t[a]).index=a,&quot;object&quot;!=typeof o.source&amp;&amp;(o.source=u(p,o.source)),&quot;object&quot;!=typeof o.target&amp;&amp;(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a&lt;h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),v(),n=new Array(h),y()}}function v(){if(i)for(var r=0,n=t.length;r&lt;n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e&lt;r;++e)n[e]=+p(t[e],e,t)}return null==t&amp;&amp;(t=[]),g.initialize=function(t){i=t,m()},g.links=function(e){return arguments.length?(t=e,m(),g):t},g.id=function(t){return arguments.length?(f=t,g):f},g.iterations=function(t){return arguments.length?(d=+t,g):d},g.strength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:a(+t),v(),g):h},g.distance=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:a(+t),y(),g):p},g},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(g);for(n=i,a=0;a&lt;o;++a)r=t[a],s.visit(m)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e&lt;n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function g(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o&lt;4;++o)(e=t[o])&amp;&amp;(r=Math.abs(e.value))&amp;&amp;(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function m(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u&lt;d)return d&lt;c&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d&gt;=c)){(t.data!==r||t.next)&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)));do{t.data!==r&amp;&amp;(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a&lt;s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e&lt;r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(+t)),null==e&amp;&amp;(e=0),null==r&amp;&amp;(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(d),h=n.dispatch(&quot;tick&quot;,&quot;end&quot;);function d(){g(),h.call(&quot;tick&quot;,e),a&lt;o&amp;&amp;(f.stop(),h.call(&quot;end&quot;,e))}function g(r){var n,i,o=t.length;void 0===r&amp;&amp;(r=1);for(var f=0;f&lt;r;++f)for(a+=(l-a)*s,u.each((function(t){t(a)})),n=0;n&lt;o;++n)null==(i=t[n]).fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return e}function m(){for(var e,r=0,n=t.length;r&lt;n;++r){if((e=t[r]).index=r,null!=e.fx&amp;&amp;(e.x=e.fx),null!=e.fy&amp;&amp;(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(r),a=r*p;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&amp;&amp;(e.vx=e.vy=0)}}function v(e){return e.initialize&amp;&amp;e.initialize(t),e}return null==t&amp;&amp;(t=[]),m(),e={tick:g,restart:function(){return f.restart(d),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,m(),u.each(v),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length&gt;1?(null==r?u.remove(t):u.set(t,v(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c&lt;u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)&lt;n&amp;&amp;(l=s,n=o);return l},on:function(t,r){return arguments.length&gt;1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-collection&quot;:163,&quot;d3-dispatch&quot;:165,&quot;d3-quadtree&quot;:173,&quot;d3-timer&quot;:178}],167:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=&quot;undefined&quot;!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf(&quot;e&quot;))&lt;0)return null;var r,n=t.slice(0,r);return[n.length&gt;1?n[0]+n.slice(2):n,+t.slice(r+1)]}function r(t){return(t=e(Math.abs(t)))?t[1]:NaN}var n,i=/^(?:(.)?([&lt;&gt;=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(t){if(!(e=i.exec(t)))throw new Error(&quot;invalid format: &quot;+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&amp;&amp;e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?&quot; &quot;:t.fill+&quot;&quot;,this.align=void 0===t.align?&quot;&gt;&quot;:t.align+&quot;&quot;,this.sign=void 0===t.sign?&quot;-&quot;:t.sign+&quot;&quot;,this.symbol=void 0===t.symbol?&quot;&quot;:t.symbol+&quot;&quot;,this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?&quot;&quot;:t.type+&quot;&quot;}function s(t,r){var n=e(t,r);if(!n)return t+&quot;&quot;;var i=n[0],a=n[1];return a&lt;0?&quot;0.&quot;+new Array(-a).join(&quot;0&quot;)+i:i.length&gt;a+1?i.slice(0,a+1)+&quot;.&quot;+i.slice(a+1):i+new Array(a-i.length+2).join(&quot;0&quot;)}a.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?&quot;0&quot;:&quot;&quot;)+(void 0===this.width?&quot;&quot;:Math.max(1,0|this.width))+(this.comma?&quot;,&quot;:&quot;&quot;)+(void 0===this.precision?&quot;&quot;:&quot;.&quot;+Math.max(0,0|this.precision))+(this.trim?&quot;~&quot;:&quot;&quot;)+this.type};var l={&quot;%&quot;:function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+&quot;&quot;},d:function(t){return Math.abs(t=Math.round(t))&gt;=1e21?t.toLocaleString(&quot;en&quot;).replace(/,/g,&quot;&quot;):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,r){var i=e(t,r);if(!i)return t+&quot;&quot;;var a=i[0],o=i[1],s=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=a.length;return s===l?a:s&gt;l?a+new Array(s-l+1).join(&quot;0&quot;):s&gt;0?a.slice(0,s)+&quot;.&quot;+a.slice(s):&quot;0.&quot;+new Array(1-s).join(&quot;0&quot;)+e(t,Math.max(0,r+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var u,f=Array.prototype.map,h=[&quot;y&quot;,&quot;z&quot;,&quot;a&quot;,&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\xb5&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;,&quot;E&quot;,&quot;Z&quot;,&quot;Y&quot;];function p(t){var e,i,o=void 0===t.grouping||void 0===t.thousands?c:(e=f.call(t.grouping,Number),i=t.thousands+&quot;&quot;,function(t,r){for(var n=t.length,a=[],o=0,s=e[0],l=0;n&gt;0&amp;&amp;s&gt;0&amp;&amp;(l+s+1&gt;r&amp;&amp;(s=Math.max(1,r-l)),a.push(t.substring(n-=s,n+s)),!((l+=s+1)&gt;r));)s=e[o=(o+1)%e.length];return a.reverse().join(i)}),s=void 0===t.currency?&quot;&quot;:t.currency[0]+&quot;&quot;,u=void 0===t.currency?&quot;&quot;:t.currency[1]+&quot;&quot;,p=void 0===t.decimal?&quot;.&quot;:t.decimal+&quot;&quot;,d=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(f.call(t.numerals,String)),g=void 0===t.percent?&quot;%&quot;:t.percent+&quot;&quot;,m=void 0===t.minus?&quot;-&quot;:t.minus+&quot;&quot;,v=void 0===t.nan?&quot;NaN&quot;:t.nan+&quot;&quot;;function y(t){var e=(t=a(t)).fill,r=t.align,i=t.sign,c=t.symbol,f=t.zero,y=t.width,x=t.comma,b=t.precision,_=t.trim,w=t.type;&quot;n&quot;===w?(x=!0,w=&quot;g&quot;):l[w]||(void 0===b&amp;&amp;(b=12),_=!0,w=&quot;g&quot;),(f||&quot;0&quot;===e&amp;&amp;&quot;=&quot;===r)&amp;&amp;(f=!0,e=&quot;0&quot;,r=&quot;=&quot;);var T=&quot;$&quot;===c?s:&quot;#&quot;===c&amp;&amp;/[boxX]/.test(w)?&quot;0&quot;+w.toLowerCase():&quot;&quot;,k=&quot;$&quot;===c?u:/[%p]/.test(w)?g:&quot;&quot;,A=l[w],M=/[defgprs%]/.test(w);function S(t){var a,s,l,c=T,u=k;if(&quot;c&quot;===w)u=A(t)+u,t=&quot;&quot;;else{var g=(t=+t)&lt;0||1/t&lt;0;if(t=isNaN(t)?v:A(Math.abs(t),b),_&amp;&amp;(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n&lt;r;++n)switch(t[n]){case&quot;.&quot;:i=e=n;break;case&quot;0&quot;:0===i&amp;&amp;(i=n),e=n;break;default:if(!+t[n])break t;i&gt;0&amp;&amp;(i=0)}return i&gt;0?t.slice(0,i)+t.slice(e+1):t}(t)),g&amp;&amp;0==+t&amp;&amp;&quot;+&quot;!==i&amp;&amp;(g=!1),c=(g?&quot;(&quot;===i?i:m:&quot;-&quot;===i||&quot;(&quot;===i?&quot;&quot;:i)+c,u=(&quot;s&quot;===w?h[8+n/3]:&quot;&quot;)+u+(g&amp;&amp;&quot;(&quot;===i?&quot;)&quot;:&quot;&quot;),M)for(a=-1,s=t.length;++a&lt;s;)if(48&gt;(l=t.charCodeAt(a))||l&gt;57){u=(46===l?p+t.slice(a+1):t.slice(a))+u,t=t.slice(0,a);break}}x&amp;&amp;!f&amp;&amp;(t=o(t,1/0));var S=c.length+t.length+u.length,E=S&lt;y?new Array(y-S+1).join(e):&quot;&quot;;switch(x&amp;&amp;f&amp;&amp;(t=o(E+t,E.length?y-u.length:1/0),E=&quot;&quot;),r){case&quot;&lt;&quot;:t=c+t+u+E;break;case&quot;=&quot;:t=c+E+t+u;break;case&quot;^&quot;:t=E.slice(0,S=E.length&gt;&gt;1)+c+t+u+E.slice(S);break;default:t=E+c+t+u}return d(t)}return b=void 0===b?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return t+&quot;&quot;},S}return{format:y,formatPrefix:function(t,e){var n=y(((t=a(t)).type=&quot;f&quot;,t)),i=3*Math.max(-8,Math.min(8,Math.floor(r(e)/3))),o=Math.pow(10,-i),s=h[8+i/3];return function(t){return n(o*t)+s}}}}function d(e){return u=p(e),t.format=u.format,t.formatPrefix=u.formatPrefix,u}d({decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],minus:&quot;-&quot;}),t.FormatSpecifier=o,t.formatDefaultLocale=d,t.formatLocale=p,t.formatSpecifier=a,t.precisionFixed=function(t){return Math.max(0,-r(Math.abs(t)))},t.precisionPrefix=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(e)/3)))-r(Math.abs(t)))},t.precisionRound=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,r(e)-r(t))+1},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],168:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-geo&quot;),t(&quot;d3-array&quot;)):i(n.d3=n.d3||{},n.d3,n.d3)}(this,(function(t,e,r){&quot;use strict&quot;;var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,c=Math.log,u=Math.max,f=Math.min,h=Math.pow,p=Math.round,d=Math.sign||function(t){return t&gt;0?1:t&lt;0?-1:0},g=Math.sin,m=Math.tan,v=1e-6,y=Math.PI,x=y/2,b=y/4,_=Math.SQRT1_2,w=L(2),T=L(y),k=2*y,A=180/y,M=y/180;function S(t){return t&gt;1?x:t&lt;-1?-x:Math.asin(t)}function E(t){return t&gt;1?0:t&lt;-1?y:Math.acos(t)}function L(t){return t&gt;0?Math.sqrt(t):0}function C(t){return(s(t)-s(-t))/2}function P(t){return(s(t)+s(-t))/2}function I(t){var e=m(t/2),r=2*c(o(t/2))/(e*e);function i(t,e){var n=o(t),i=o(e),a=g(e),s=i*n,l=-((1-s?c((1+s)/2)/(1-s):-.5)+r/(1+s));return[l*i*g(t),l*a]}return i.invert=function(e,i){var s,l=L(e*e+i*i),u=-t/2,f=50;if(!l)return[0,0];do{var h=u/2,p=o(h),d=g(h),m=d/p,y=-c(n(p));u-=s=(2/m*y-r*m-l)/(-y/(d*d)+1-r/(2*p*p))*(p&lt;0?.7:1)}while(n(s)&gt;v&amp;&amp;--f&gt;0);var x=g(u);return[a(e*x,l*o(u)),S(i*x/l)]},i}function O(t,e){var r=o(e),n=function(t){return t?t/Math.sin(t):1}(E(r*o(t/=2)));return[2*r*g(t)*n,g(e)*n]}function z(t){var e=g(t),r=o(t),i=t&gt;=0?1:-1,s=m(i*t),l=(1+e-r)/2;function c(t,n){var c=o(n),u=o(t/=2);return[(1+c)*g(t),(i*n&gt;-a(u,s)-.001?0:10*-i)+l+g(n)*r-(1+c)*e*u]}return c.invert=function(t,c){var u=0,f=0,h=50;do{var p=o(u),d=g(u),m=o(f),y=g(f),x=1+m,b=x*d-t,_=l+y*r-x*e*p-c,w=x*p/2,T=-d*y,k=e*x*d/2,A=r*m+e*p*y,M=T*k-A*w,S=(_*T-b*A)/M/2,E=(b*k-_*w)/M;n(E)&gt;2&amp;&amp;(E/=2),u-=S,f-=E}while((n(S)&gt;v||n(E)&gt;v)&amp;&amp;--h&gt;0);return i*f&gt;-a(o(u),s)-.001?[2*u,f]:null},c}function D(t,e){var r=m(e/2),n=L(1-r*r),i=1+n*o(t/=2),a=g(t)*n/i,s=r/i,l=a*a,c=s*s;return[4/3*a*(3+l-3*c),4/3*s*(3+3*l-c)]}O.invert=function(t,e){if(!(t*t+4*e*e&gt;y*y+v)){var r=t,i=e,a=25;do{var s,l=g(r),c=g(r/2),u=o(r/2),f=g(i),h=o(i),p=g(2*i),d=f*f,m=h*h,x=c*c,b=1-m*u*u,_=b?E(h*u)*L(s=1/b):s=0,w=2*_*h*c-t,T=_*f-e,k=s*(m*x+_*h*u*d),A=s*(.5*l*p-2*_*f*c),M=.25*s*(p*c-_*f*m*l),S=s*(d*u+_*x*h),C=A*M-S*k;if(!C)break;var P=(T*A-w*S)/C,I=(w*M-T*k)/C;r-=P,i-=I}while((n(P)&gt;v||n(I)&gt;v)&amp;&amp;--a&gt;0);return[r,i]}},D.invert=function(t,e){if(e*=3/8,!(t*=3/8)&amp;&amp;n(e)&gt;1)return null;var r=1+t*t+e*e,i=L((r-L(r*r-4*e*e))/2),s=S(i)/3,l=i?function(t){return c(t+L(t*t-1))}(n(e/i))/3:function(t){return c(t+L(t*t+1))}(n(t))/3,u=o(s),f=P(l),h=f*f-u*u;return[2*d(t)*a(C(l)*u,.25-h),2*d(e)*a(f*g(s),.25+h)]};var R=L(8),F=c(1+w);function B(t,e){var r=n(e);return r&lt;b?[t,c(m(b+e/2))]:[t*o(r)*(2*w-1/g(r)),d(e)*(2*w*(r-b)-c(m(r/2)))]}function N(t){var r=2*y/t;function s(t,i){var s=e.geoAzimuthalEquidistantRaw(t,i);if(n(t)&gt;x){var l=a(s[1],s[0]),c=L(s[0]*s[0]+s[1]*s[1]),u=r*p((l-x)/r)+x,f=a(g(l-=u),2-o(l));l=u+S(y/c*g(f))-f,s[0]=c*o(l),s[1]=c*g(l)}return s}return s.invert=function(t,n){var s=L(t*t+n*n);if(s&gt;x){var l=a(n,t),c=r*p((l-x)/r)+x,u=l&gt;c?-1:1,f=s*o(c-l),h=1/m(u*E((f-y)/L(y*(y-2*f)+s*s)));l=c+2*i((h+u*L(h*h-3))/3),t=s*o(l),n=s*g(l)}return e.geoAzimuthalEquidistantRaw.invert(t,n)},s}function j(t,r){if(arguments.length&lt;2&amp;&amp;(r=t),1===r)return e.geoAzimuthalEqualAreaRaw;if(r===1/0)return U;function n(n,i){var a=e.geoAzimuthalEqualAreaRaw(n/r,i);return a[0]*=t,a}return n.invert=function(n,i){var a=e.geoAzimuthalEqualAreaRaw.invert(n/t,i);return a[0]*=r,a},n}function U(t,e){return[t*o(e)/o(e/=2),2*g(e)]}function V(t,e,r){var i,a,o,s=100;r=void 0===r?0:+r,e=+e;do{(a=t(r))===(o=t(r+v))&amp;&amp;(o=a+v),r-=i=-1*v*(a-e)/(a-o)}while(s-- &gt;0&amp;&amp;n(i)&gt;v);return s&lt;0?NaN:r}function q(t,e,r){return void 0===e&amp;&amp;(e=40),void 0===r&amp;&amp;(r=1e-12),function(i,a,o,s){var l,c,u;o=void 0===o?0:+o,s=void 0===s?0:+s;for(var f=0;f&lt;e;f++){var h=t(o,s),p=h[0]-i,d=h[1]-a;if(n(p)&lt;r&amp;&amp;n(d)&lt;r)break;var g=p*p+d*d;if(g&gt;l)o-=c/=2,s-=u/=2;else{l=g;var m=(o&gt;0?-1:1)*r,v=(s&gt;0?-1:1)*r,y=t(o+m,s),x=t(o,s+v),b=(y[0]-h[0])/m,_=(y[1]-h[1])/m,w=(x[0]-h[0])/v,T=(x[1]-h[1])/v,k=T*b-_*w,A=(n(k)&lt;.5?.5:1)/k;if(o+=c=(d*w-p*T)*A,s+=u=(p*_-d*b)*A,n(c)&lt;r&amp;&amp;n(u)&lt;r)break}}return[o,s]}}function H(){var t=j(1.68,2);function e(e,r){if(e+r&lt;-1.4){var n=(e-r+1.6)*(e+r+1.4)/8;e+=n,r-=.8*n*g(r+y/2)}var i=t(e,r),a=(1-o(e*r))/12;return i[1]&lt;0&amp;&amp;(i[0]*=1+a),i[1]&gt;0&amp;&amp;(i[1]*=1+a/1.5*i[0]*i[0]),i}return e.invert=q(e),e}function G(t,e){var r,i=t*g(e),a=30;do{e-=r=(e+g(e)-i)/(1+o(e))}while(n(r)&gt;v&amp;&amp;--a&gt;0);return e/2}function Y(t,e,r){function n(n,i){return[t*n*o(i=G(r,i)),e*g(i)]}return n.invert=function(n,i){return i=S(i/e),[n/(t*o(i)),S((2*i+g(2*i))/r)]},n}B.invert=function(t,e){if((a=n(e))&lt;F)return[t,2*i(s(e))-x];var r,a,l=b,u=25;do{var f=o(l/2),h=m(l/2);l-=r=(R*(l-b)-c(h)-a)/(R-f*f/(2*h))}while(n(r)&gt;1e-12&amp;&amp;--u&gt;0);return[t/(o(l)*(R-1/g(l))),d(e)*l]},U.invert=function(t,e){var r=2*S(e/2);return[t*o(r/2)/o(r),r]};var W=Y(w/x,w,y);var X=2.00276,Z=1.11072;function J(t,e){var r=G(y,e);return[X*t/(1/o(e)+Z/o(r)),(e+w*g(r))/X]}function K(t){var r=0,n=e.geoProjectionMutator(t),i=n(r);return i.parallel=function(t){return arguments.length?n(r=t*M):r*A},i}function Q(t,e){return[t*o(e),e]}function $(t){if(!t)return Q;var e=1/m(t);function r(r,n){var i=e+t-n,a=i?r*o(n)/i:i;return[i*g(a),e-i*o(a)]}return r.invert=function(r,n){var i=L(r*r+(n=e-n)*n),s=e+t-i;return[i/o(s)*a(r,n),s]},r}function tt(t){function e(e,r){var n=x-r,i=n?e*t*g(n)/n:n;return[n*g(i)/t,x-n*o(i)]}return e.invert=function(e,r){var n=e*t,i=x-r,o=L(n*n+i*i),s=a(n,i);return[(o?o/g(o):1)*s/t,x-o]},e}J.invert=function(t,e){var r,i,a=X*e,s=e&lt;0?-b:b,l=25;do{i=a-w*g(s),s-=r=(g(2*s)+2*s-y*g(i))/(2*o(2*s)+2+y*o(i)*w*o(s))}while(n(r)&gt;v&amp;&amp;--l&gt;0);return i=a-w*g(s),[t*(1/o(i)+Z/o(s))/X,i]},Q.invert=function(t,e){return[t/o(e),e]};var et=Y(1,4/y,y);function rt(t,e,r,i,s,l){var c,u=o(l);if(n(t)&gt;1||n(l)&gt;1)c=E(r*s+e*i*u);else{var f=g(t/2),h=g(l/2);c=2*S(L(f*f+e*i*h*h))}return n(c)&gt;v?[c,a(i*g(l),e*s-r*i*u)]:[0,0]}function nt(t,e,r){return E((t*t+e*e-r*r)/(2*t*e))}function it(t){return t-2*y*l((t+y)/(2*y))}function at(t,e,r){for(var n,i=[[t[0],t[1],g(t[1]),o(t[1])],[e[0],e[1],g(e[1]),o(e[1])],[r[0],r[1],g(r[1]),o(r[1])]],a=i[2],s=0;s&lt;3;++s,a=n)n=i[s],a.v=rt(n[1]-a[1],a[3],a[2],n[3],n[2],n[0]-a[0]),a.point=[0,0];var l=nt(i[0].v[0],i[2].v[0],i[1].v[0]),c=nt(i[0].v[0],i[1].v[0],i[2].v[0]),u=y-l;i[2].point[1]=0,i[0].point[0]=-(i[1].point[0]=i[0].v[0]/2);var f=[i[2].point[0]=i[0].point[0]+i[2].v[0]*o(l),2*(i[0].point[1]=i[1].point[1]=i[2].v[0]*g(l))];return function(t,e){var r,n=g(e),a=o(e),s=new Array(3);for(r=0;r&lt;3;++r){var l=i[r];if(s[r]=rt(e-l[1],l[3],l[2],a,n,t-l[0]),!s[r][0])return l.point;s[r][1]=it(s[r][1]-l.v[1])}var h=f.slice();for(r=0;r&lt;3;++r){var p=2==r?0:r+1,d=nt(i[r].v[0],s[r][0],s[p][0]);s[r][1]&lt;0&amp;&amp;(d=-d),r?1==r?(d=c-d,h[0]-=s[r][0]*o(d),h[1]-=s[r][0]*g(d)):(d=u-d,h[0]+=s[r][0]*o(d),h[1]+=s[r][0]*g(d)):(h[0]+=s[r][0]*o(d),h[1]-=s[r][0]*g(d))}return h[0]/=3,h[1]/=3,h}}function ot(t){return t[0]*=M,t[1]*=M,t}function st(t,r,n){var i=e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:[t,r,n]}),a=[-i[0],-i[1]],o=e.geoRotation(a),s=at(ot(o(t)),ot(o(r)),ot(o(n)));s.invert=q(s);var l=e.geoProjection(s).rotate(a),c=l.center;return delete l.rotate,l.center=function(t){return arguments.length?c(o(t)):o.invert(c())},l.clipAngle(90)}function lt(t,e){var r=L(1-g(e));return[2/T*t*r,T*(1-r)]}function ct(t){var e=m(t);function r(t,r){return[t,(t?t/g(t):1)*(g(r)*o(t)-e*o(r))]}return r.invert=e?function(t,r){t&amp;&amp;(r*=g(t)/t);var n=o(t);return[t,2*a(L(n*n+e*e-r*r)-n,e-r)]}:function(t,e){return[t,S(t?e*m(t)/t:e)]},r}lt.invert=function(t,e){var r=(r=e/T-1)*r;return[r&gt;0?t*L(y/r)/2:0,S(1-r)]};var ut=L(3);function ft(t,e){return[ut*t*(2*o(2*e/3)-1)/T,ut*T*g(e/3)]}function ht(t){var e=o(t);function r(t,r){return[t*e,g(r)/e]}return r.invert=function(t,r){return[t/e,S(r*e)]},r}function pt(t){var e=o(t);function r(t,r){return[t*e,(1+e)*m(r/2)]}return r.invert=function(t,r){return[t/e,2*i(r/(1+e))]},r}function dt(t,e){var r=L(8/(3*y));return[r*t*(1-n(e)/y),r*e]}function gt(t,e){var r=L(4-3*g(n(e)));return[2/L(6*y)*t*r,d(e)*L(2*y/3)*(2-r)]}function mt(t,e){var r=L(y*(4+y));return[2/r*t*(1+L(1-4*e*e/(y*y))),4/r*e]}function vt(t,e){var r=(2+x)*g(e);e/=2;for(var i=0,a=1/0;i&lt;10&amp;&amp;n(a)&gt;v;i++){var s=o(e);e-=a=(e+g(e)*(s+2)-r)/(2*s*(1+s))}return[2/L(y*(4+y))*t*(1+o(e)),2*L(y/(4+y))*g(e)]}function yt(t,e){return[t*(1+o(e))/L(2+y),2*e/L(2+y)]}function xt(t,e){for(var r=(1+x)*g(e),i=0,a=1/0;i&lt;10&amp;&amp;n(a)&gt;v;i++)e-=a=(e+g(e)-r)/(1+o(e));return r=L(2+y),[t*(1+o(e))/r,2*e/r]}ft.invert=function(t,e){var r=3*S(e/(ut*T));return[T*t/(ut*(2*o(2*r/3)-1)),r]},dt.invert=function(t,e){var r=L(8/(3*y)),i=e/r;return[t/(r*(1-n(i)/y)),i]},gt.invert=function(t,e){var r=2-n(e)/L(2*y/3);return[t*L(6*y)/(2*r),d(e)*S((4-r*r)/3)]},mt.invert=function(t,e){var r=L(y*(4+y))/2;return[t*r/(1+L(1-e*e*(4+y)/(4*y))),e*r/2]},vt.invert=function(t,e){var r=e*L((4+y)/y)/2,n=S(r),i=o(n);return[t/(2/L(y*(4+y))*(1+i)),S((n+r*(i+2))/(2+x))]},yt.invert=function(t,e){var r=L(2+y),n=e*r/2;return[r*t/(1+o(n)),n]},xt.invert=function(t,e){var r=1+x,n=L(r/2);return[2*t*n/(1+o(e*=n)),S((e+g(e))/r)]};var bt=3+2*w;function _t(t,e){var r=g(t/=2),n=o(t),a=L(o(e)),s=o(e/=2),l=g(e)/(s+w*n*a),u=L(2/(1+l*l)),f=L((w*s+(n+r)*a)/(w*s+(n-r)*a));return[bt*(u*(f-1/f)-2*c(f)),bt*(u*l*(f+1/f)-2*i(l))]}_t.invert=function(t,e){if(!(r=D.invert(t/1.2,1.065*e)))return null;var r,a=r[0],s=r[1],l=20;t/=bt,e/=bt;do{var h=a/2,p=s/2,d=g(h),m=o(h),y=g(p),b=o(p),T=o(s),k=L(T),A=y/(b+w*m*k),M=A*A,S=L(2/(1+M)),E=(w*b+(m+d)*k)/(w*b+(m-d)*k),C=L(E),P=C-1/C,I=C+1/C,O=S*P-2*c(C)-t,z=S*A*I-2*i(A)-e,R=y&amp;&amp;_*k*d*M/y,F=(w*m*b+k)/(2*(b+w*m*k)*(b+w*m*k)*k),B=-.5*A*S*S*S,N=B*R,j=B*F,U=(U=2*b+w*k*(m-d))*U*C,V=(w*m*b*k+T)/U,q=-w*d*y/(k*U),H=P*N-2*V/C+S*(V+V/E),G=P*j-2*q/C+S*(q+q/E),Y=A*I*N-2*R/(1+M)+S*I*R+S*A*(V-V/E),W=A*I*j-2*F/(1+M)+S*I*F+S*A*(q-q/E),X=G*Y-W*H;if(!X)break;var Z=(z*G-O*W)/X,J=(O*Y-z*H)/X;a-=Z,s=u(-x,f(x,s-J))}while((n(Z)&gt;v||n(J)&gt;v)&amp;&amp;--l&gt;0);return n(n(s)-x)&lt;v?[0,s]:l&amp;&amp;[a,s]};var wt=o(35*M);function Tt(t,e){var r=m(e/2);return[t*wt*L(1-r*r),(1+wt)*r]}function kt(t,e){var r=e/2,n=o(r);return[2*t/T*o(e)*n*n,T*m(r)]}function At(t){var e=1-t,r=i(y,0)[0]-i(-y,0)[0],n=L(2*(i(0,x)[1]-i(0,-x)[1])/r);function i(r,n){var i=o(n),a=g(n);return[i/(e+t*i)*r,e*n+t*a]}function a(t,e){var r=i(t,e);return[r[0]*n,r[1]/n]}function s(t){return a(0,t)[1]}return a.invert=function(r,i){var a=V(s,i);return[r/n*(t+e/o(a)),a]},a}function Mt(t){return[t[0]/2,S(m(t[1]/2*M))*A]}function St(t){return[2*t[0],2*i(g(t[1]*M))*A]}function Et(t,r){var i=2*y/r,s=t*t;function l(r,l){var c=e.geoAzimuthalEquidistantRaw(r,l),u=c[0],f=c[1],h=u*u+f*f;if(h&gt;s){var d=L(h),m=a(f,u),b=i*p(m/i),_=m-b,w=t*o(_),T=(t*g(_)-_*g(w))/(x-w),k=Lt(_,T),A=(y-t)/Ct(k,w,y);u=d;var M,S=50;do{u-=M=(t+Ct(k,w,u)*A-d)/(k(u)*A)}while(n(M)&gt;v&amp;&amp;--S&gt;0);f=_*g(u),u&lt;x&amp;&amp;(f-=T*(u-x));var E=g(b),C=o(b);c[0]=u*C-f*E,c[1]=u*E+f*C}return c}return l.invert=function(r,l){var c=r*r+l*l;if(c&gt;s){var u=L(c),f=a(l,r),h=i*p(f/i),d=f-h;r=u*o(d),l=u*g(d);for(var m=r-x,v=g(r),b=l/v,_=r&lt;x?1/0:0,w=10;;){var T=t*g(b),k=t*o(b),A=g(k),M=x-k,S=(T-b*A)/M,E=Lt(b,S);if(n(_)&lt;1e-12||!--w)break;b-=_=(b*v-S*m-l)/(v-2*m*(M*(k+b*T*o(k)-A)-T*(T-b*A))/(M*M))}r=(u=t+Ct(E,k,r)*(y-t)/Ct(E,k,y))*o(f=h+b),l=u*g(f)}return e.geoAzimuthalEquidistantRaw.invert(r,l)},l}function Lt(t,e){return function(r){var n=t*o(r);return r&lt;x&amp;&amp;(n-=e),L(1+n*n)}}function Ct(t,e,r){for(var n=(r-e)/50,i=t(e)+t(r),a=1,o=e;a&lt;50;++a)i+=2*t(o+=n);return.5*i*n}function Pt(t,e,r,i,a,s,l,c){function u(n,u){if(!u)return[t*n/y,0];var f=u*u,h=t+f*(e+f*(r+f*i)),p=u*(a-1+f*(s-c+f*l)),d=(h*h+p*p)/(2*p),m=n*S(h/d)/y;return[d*g(m),u*(1+f*c)+d*(1-o(m))]}return arguments.length&lt;8&amp;&amp;(c=0),u.invert=function(u,f){var h,p,d=y*u/t,m=f,x=50;do{var b=m*m,_=t+b*(e+b*(r+b*i)),w=m*(a-1+b*(s-c+b*l)),T=_*_+w*w,k=2*w,A=T/k,M=A*A,E=S(_/A)/y,C=d*E,P=_*_,I=(2*e+b*(4*r+6*b*i))*m,O=a+b*(3*s+5*b*l),z=(2*(_*I+w*(O-1))*k-T*(2*(O-1)))/(k*k),D=o(C),R=g(C),F=A*D,B=A*R,N=d/y*(1/L(1-P/M))*(I*A-_*z)/M,j=B-u,U=m*(1+b*c)+A-F-f,V=z*R+F*N,q=F*E,H=1+z-(z*D-B*N),G=B*E,Y=V*G-H*q;if(!Y)break;d-=h=(U*V-j*H)/Y,m-=p=(j*G-U*q)/Y}while((n(h)&gt;v||n(p)&gt;v)&amp;&amp;--x&gt;0);return[d,m]},u}Tt.invert=function(t,e){var r=e/(1+wt);return[t&amp;&amp;t/(wt*L(1-r*r)),2*i(r)]},kt.invert=function(t,e){var r=i(e/T),n=o(r),a=2*r;return[t*T/2/(o(a)*n*n),a]};var It=Pt(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);var Ot=Pt(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);var zt=Pt(5/6*y,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Dt(t,e){var r=t*t,n=e*e;return[t*(1-.162388*n)*(.87-952426e-9*r*r),e*(1+n/12)]}Dt.invert=function(t,e){var r,i=t,a=e,o=50;do{var s=a*a;a-=r=(a*(1+s/12)-e)/(1+s/4)}while(n(r)&gt;v&amp;&amp;--o&gt;0);o=50,t/=1-.162388*s;do{var l=(l=i*i)*l;i-=r=(i*(.87-952426e-9*l)-t)/(.87-.00476213*l)}while(n(r)&gt;v&amp;&amp;--o&gt;0);return[i,a]};var Rt=Pt(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ft(t){var e=t(x,0)[0]-t(-x,0)[0];function r(r,n){var i=r&gt;0?-.5:.5,a=t(r+i*y,n);return a[0]-=i*e,a}return t.invert&amp;&amp;(r.invert=function(r,n){var i=r&gt;0?-.5:.5,a=t.invert(r+i*e,n),o=a[0]-i*y;return o&lt;-y?o+=2*y:o&gt;y&amp;&amp;(o-=2*y),a[0]=o,a}),r}function Bt(t,e){var r=d(t),i=d(e),s=o(e),l=o(t)*s,c=g(t)*s,u=g(i*e);t=n(a(c,u)),e=S(l),n(t-x)&gt;v&amp;&amp;(t%=x);var f=function(t,e){if(e===x)return[0,0];var r,i,a=g(e),s=a*a,l=s*s,c=1+l,u=1+3*l,f=1-l,h=S(1/L(c)),p=f+s*c*h,d=(1-a)/p,m=L(d),b=d*c,_=L(b),w=m*f;if(0===t)return[0,-(w+s*_)];var T,k=o(e),A=1/k,M=2*a*k,E=(-p*k-(-3*s+h*u)*M*(1-a))/(p*p),C=-A*M,P=-A*(s*c*E+d*u*M),I=-2*A*(f*(.5*E/m)-2*s*m*M),O=4*t/y;if(t&gt;.222*y||e&lt;y/4&amp;&amp;t&gt;.175*y){if(r=(w+s*L(b*(1+l)-w*w))/(1+l),t&gt;y/4)return[r,r];var z=r,D=.5*r;r=.5*(D+z),i=50;do{var R=L(b-r*r),F=r*(I+C*R)+P*S(r/_)-O;if(!F)break;F&lt;0?D=r:z=r,r=.5*(D+z)}while(n(z-D)&gt;v&amp;&amp;--i&gt;0)}else{r=v,i=25;do{var B=r*r,N=L(b-B),j=I+C*N,U=r*j+P*S(r/_)-O,V=j+(P-C*B)/N;r-=T=N?U/V:0}while(n(T)&gt;v&amp;&amp;--i&gt;0)}return[r,-w-s*L(b-r*r)]}(t&gt;y/4?x-t:t,e);return t&gt;y/4&amp;&amp;(u=f[0],f[0]=-f[1],f[1]=-u),f[0]*=r,f[1]*=-i,f}function Nt(t,e){var r,a,l,c,u,f;if(e&lt;v)return[(c=g(t))-(r=e*(t-c*(a=o(t)))/4)*a,a+r*c,1-e*c*c/2,t-r];if(e&gt;=1-v)return r=(1-e)/4,l=1/(a=P(t)),[(c=((f=s(2*(f=t)))-1)/(f+1))+r*((u=a*C(t))-t)/(a*a),l-r*c*l*(u-t),l+r*c*l*(u+t),2*i(s(t))-x+r*(u-t)/a];var h=[1,0,0,0,0,0,0,0,0],p=[L(e),0,0,0,0,0,0,0,0],d=0;for(a=L(1-e),u=1;n(p[d]/h[d])&gt;v&amp;&amp;d&lt;8;)r=h[d++],p[d]=(r-a)/2,h[d]=(r+a)/2,a=L(r*a),u*=2;l=u*h[d]*t;do{l=(S(c=p[d]*g(a=l)/h[d])+l)/2}while(--d);return[g(l),c=o(l),c/o(l-a),l]}function jt(t,e){if(!e)return t;if(1===e)return c(m(t/2+b));for(var r=1,a=L(1-e),o=L(e),s=0;n(o)&gt;v;s++){if(t%y){var l=i(a*m(t)/r);l&lt;0&amp;&amp;(l+=y),t+=l+~~(t/y)*y}else t+=t;o=(r+a)/2,a=L(r*a),o=((r=o)-a)/2}return t/(h(2,s)*r)}function Ut(t,e){var r=(w-1)/(w+1),l=L(1-r*r),u=jt(x,l*l),f=c(m(y/4+n(e)/2)),h=s(-1*f)/L(r),p=function(t,e){var r=t*t,n=e+1,i=1-r-e*e;return[.5*((t&gt;=0?x:-x)-a(i,2*t)),-.25*c(i*i+4*r)+.5*c(n*n+r)]}(h*o(-1*t),h*g(-1*t)),v=function(t,e,r){var a=n(t),o=C(n(e));if(a){var s=1/g(a),l=1/(m(a)*m(a)),c=-(l+r*(o*o*s*s)-1+r),u=(-c+L(c*c-4*((r-1)*l)))/2;return[jt(i(1/L(u)),r)*d(t),jt(i(L((u/l-1)/r)),1-r)*d(e)]}return[0,jt(i(o),1-r)*d(e)]}(p[0],p[1],l*l);return[-v[1],(e&gt;=0?1:-1)*(.5*u-v[0])]}function Vt(t){var e=g(t),r=o(t),i=qt(t);function s(t,a){var s=i(t,a);t=s[0],a=s[1];var l=g(a),c=o(a),u=o(t),f=E(e*l+r*c*u),h=g(f),p=n(h)&gt;v?f/h:1;return[p*r*g(t),(n(t)&gt;x?p:-p)*(e*c-r*l*u)]}return i.invert=qt(-t),s.invert=function(t,r){var n=L(t*t+r*r),s=-g(n),l=o(n),c=n*l,u=-r*s,f=n*e,h=L(c*c+u*u-f*f),p=a(c*f+u*h,u*f-c*h),d=(n&gt;x?-1:1)*a(t*s,n*o(p)*l+r*g(p)*s);return i.invert(d,p)},s}function qt(t){var e=g(t),r=o(t);return function(t,n){var i=o(n),s=o(t)*i,l=g(t)*i,c=g(n);return[a(l,s*r-c*e),S(c*r+s*e)]}}Bt.invert=function(t,e){n(t)&gt;1&amp;&amp;(t=2*d(t)-t),n(e)&gt;1&amp;&amp;(e=2*d(e)-e);var r=d(t),i=d(e),s=-r*t,l=-i*e,c=l/s&lt;1,u=function(t,e){var r=0,i=1,a=.5,s=50;for(;;){var l=a*a,c=L(a),u=S(1/L(1+l)),f=1-l+a*(1+l)*u,h=(1-c)/f,p=L(h),d=h*(1+l),g=p*(1-l),m=L(d-t*t),v=e+g+a*m;if(n(i-r)&lt;1e-12||0==--s||0===v)break;v&gt;0?r=a:i=a,a=.5*(r+i)}if(!s)return null;var x=S(c),b=o(x),_=1/b,w=2*c*b,T=(-f*b-(-3*a+u*(1+3*l))*w*(1-c))/(f*f);return[y/4*(t*(-2*_*(.5*T/p*(1-l)-2*a*p*w)+-_*w*m)+-_*(a*(1+l)*T+h*(1+3*l)*w)*S(t/L(d))),x]}(c?l:s,c?s:l),f=u[0],h=u[1],p=o(h);return c&amp;&amp;(f=-x-f),[r*(a(g(f)*p,-g(h))+y),i*S(o(f)*p)]},Ut.invert=function(t,e){var r,n,o,l,u,f,h=(w-1)/(w+1),p=L(1-h*h),d=jt(x,p*p),g=(n=-t,o=p*p,(r=.5*d-e)?(l=Nt(r,o),n?(f=(u=Nt(n,1-o))[1]*u[1]+o*l[0]*l[0]*u[0]*u[0],[[l[0]*u[2]/f,l[1]*l[2]*u[0]*u[1]/f],[l[1]*u[1]/f,-l[0]*l[2]*u[0]*u[2]/f],[l[2]*u[1]*u[2]/f,-o*l[0]*l[1]*u[0]/f]]):[[l[0],0],[l[1],0],[l[2],0]]):[[0,(u=Nt(n,1-o))[0]/u[1]],[1/u[1],0],[u[2]/u[1],0]]),m=function(t,e){var r=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/r,(t[1]*e[0]-t[0]*e[1])/r]}(g[0],g[1]);return[a(m[1],m[0])/-1,2*i(s(-.5*c(h*m[0]*m[0]+h*m[1]*m[1])))-x]};var Ht=S(1-1/3)*A,Gt=ht(0);function Yt(t){var e=Ht*M,r=lt(y,e)[0]-lt(-y,e)[0],i=Gt(0,e)[1],a=lt(0,e)[1],o=T-a,s=k/t,c=4/k,h=i+o*o*4/k;function p(p,d){var g,m=n(d);if(m&gt;e){var v=f(t-1,u(0,l((p+y)/s)));(g=lt(p+=y*(t-1)/t-v*s,m))[0]=g[0]*k/r-k*(t-1)/(2*t)+v*k/t,g[1]=i+4*(g[1]-a)*o/k,d&lt;0&amp;&amp;(g[1]=-g[1])}else g=Gt(p,d);return g[0]*=c,g[1]/=h,g}return p.invert=function(e,p){e/=c;var d=n(p*=h);if(d&gt;i){var g=f(t-1,u(0,l((e+y)/s)));e=(e+y*(t-1)/t-g*s)*r/k;var m=lt.invert(e,.25*(d-i)*k/o+a);return m[0]-=y*(t-1)/t-g*s,p&lt;0&amp;&amp;(m[1]=-m[1]),m}return Gt.invert(e,p)},p}function Wt(t,e){return[t,1&amp;e?90-v:Ht]}function Xt(t,e){return[t,1&amp;e?-90+v:-Ht]}function Zt(t){return[t[0]*(1-v),t[1]]}function Jt(t){var e,r=1+t,i=S(g(1/r)),s=2*L(y/(e=y+4*i*r)),l=.5*s*(r+L(t*(2+t))),c=t*t,u=r*r;function f(f,h){var p,d,m=1-g(h);if(m&amp;&amp;m&lt;2){var v,b=x-h,_=25;do{var w=g(b),T=o(b),k=i+a(w,r-T),A=1+u-2*r*T;b-=v=(b-c*i-r*w+A*k-.5*m*e)/(2*r*w*k)}while(n(v)&gt;1e-12&amp;&amp;--_&gt;0);p=s*L(A),d=f*k/y}else p=s*(t+m),d=f*i/y;return[p*g(d),l-p*o(d)]}return f.invert=function(t,n){var o=t*t+(n-=l)*n,f=(1+u-o/(s*s))/(2*r),h=E(f),p=g(h),d=i+a(p,r-f);return[S(t/L(o))*y/d,S(1-2*(h-c*i-r*p+(1+u-2*r*f)*d)/e)]},f}function Kt(t,e){return e&gt;-.7109889596207567?((t=W(t,e))[1]+=.0528035274542,t):Q(t,e)}function Qt(t,e){return n(e)&gt;.7109889596207567?((t=W(t,e))[1]-=e&gt;0?.0528035274542:-.0528035274542,t):Q(t,e)}function $t(t,e,r,n){var i=L(4*y/(2*r+(1+t-e/2)*g(2*r)+(t+e)/2*g(4*r)+e/2*g(6*r))),a=L(n*g(r)*L((1+t*o(2*r)+e*o(4*r))/(1+t+e))),s=r*c(1);function l(r){return L(1+t*o(2*r)+e*o(4*r))}function c(n){var i=n*r;return(2*i+(1+t-e/2)*g(2*i)+(t+e)/2*g(4*i)+e/2*g(6*i))/r}function u(t){return l(t)*g(t)}var f=function(t,e){var n=r*V(c,s*g(e)/r,e/y);isNaN(n)&amp;&amp;(n=r*d(e));var u=i*l(n);return[u*a*t/y*o(n),u/a*g(n)]};return f.invert=function(t,e){var n=V(u,e*a/i);return[t*y/(o(n)*i*a*l(n)),S(r*c(n/r)/s)]},0===r&amp;&amp;(i=L(n/y),(f=function(t,e){return[t*i,g(e)/i]}).invert=function(t,e){return[t/i,S(e*i)]}),f}function te(t,e,r,n,i){void 0===n&amp;&amp;(n=1e-8),void 0===i&amp;&amp;(i=20);var a=t(e),o=t(.5*(e+r)),s=t(r);return function t(e,r,n,i,a,o,s,l,c,u,f){if(f.nanEncountered)return NaN;var h,p,d,g,m,v,y,x,b,_;if(p=e(r+.25*(h=n-r)),d=e(n-.25*h),isNaN(p))f.nanEncountered=!0;else{if(!isNaN(d))return _=((v=(g=h*(i+4*p+a)/12)+(m=h*(a+4*d+o)/12))-s)/15,u&gt;c?(f.maxDepthCount++,v+_):Math.abs(_)&lt;l?v+_:(x=t(e,r,y=r+.5*h,i,p,a,g,.5*l,c,u+1,f),isNaN(x)?(f.nanEncountered=!0,NaN):(b=t(e,y,n,a,d,o,m,.5*l,c,u+1,f),isNaN(b)?(f.nanEncountered=!0,NaN):x+b));f.nanEncountered=!0}}(t,e,r,a,o,s,(a+4*o+s)*(r-e)/6,n,i,1,{maxDepthCount:0,nanEncountered:!1})}function ee(t,e,r){function i(r){return t+(1-t)*h(1-h(r,e),1/e)}function a(t){return te(i,0,t,1e-4)}for(var o=1/a(1),s=1e3,l=(1+1e-8)*o,c=[],u=0;u&lt;=s;u++)c.push(a(u/s)*l);function f(t){var e=0,r=s,n=500;do{c[n]&gt;t?r=n:e=n,n=e+r&gt;&gt;1}while(n&gt;e);var i=c[n+1]-c[n];return i&amp;&amp;(i=(t-c[n+1])/i),(n+1+i)/s}var p=2*f(1)/y*o/r,m=function(t,e){var r=f(n(g(e))),a=i(r)*t;return r/=p,[a,e&gt;=0?r:-r]};return m.invert=function(t,e){var r;return n(e*=p)&lt;1&amp;&amp;(r=d(e)*S(a(n(e))*o)),[t/i(n(e)),r]},m}function re(t,e){return n(t[0]-e[0])&lt;v&amp;&amp;n(t[1]-e[1])&lt;v}function ne(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a&lt;o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c&lt;e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function ie(t){var e,n,i,a,o,s,l,c=[],u=t[0].length;for(l=0;l&lt;u;++l)n=(e=t[0][l])[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],c.push(ne([[n+v,i+v],[n+v,a-v],[o-v,a-v],[o-v,s+v]],30));for(l=t[1].length-1;l&gt;=0;--l)n=(e=t[1][l])[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],c.push(ne([[o-v,s-v],[o-v,a+v],[n+v,a+v],[n+v,i-v]],30));return{type:&quot;Polygon&quot;,coordinates:[r.merge(c)]}}function ae(t,r,n){var i,a;function o(e,n){for(var i=n&lt;0?-1:1,a=r[+(n&lt;0)],o=0,s=a.length-1;o&lt;s&amp;&amp;e&gt;a[o][2][0];++o);var l=t(e-a[o][1][0],n);return l[0]+=t(a[o][1][0],i*n&gt;i*a[o][0][1]?a[o][0][1]:n)[0],l}n?o.invert=n(o):t.invert&amp;&amp;(o.invert=function(e,n){for(var i=a[+(n&lt;0)],s=r[+(n&lt;0)],l=0,c=i.length;l&lt;c;++l){var u=i[l];if(u[0][0]&lt;=e&amp;&amp;e&lt;u[1][0]&amp;&amp;u[0][1]&lt;=n&amp;&amp;n&lt;u[1][1]){var f=t.invert(e-t(s[l][1][0],0)[0],n);return f[0]+=s[l][1][0],re(o(f[0],f[1]),[e,n])?f:null}}});var s=e.geoProjection(o),l=s.stream;return s.stream=function(t){var r=s.rotate(),n=l(t),a=(s.rotate([0,0]),l(t));return s.rotate(r),n.sphere=function(){e.geoStream(i,a)},n},s.lobes=function(e){return arguments.length?(i=ie(e),r=e.map((function(t){return t.map((function(t){return[[t[0][0]*M,t[0][1]*M],[t[1][0]*M,t[1][1]*M],[t[2][0]*M,t[2][1]*M]]}))})),a=r.map((function(e){return e.map((function(e){var r,n=t(e[0][0],e[0][1])[0],i=t(e[2][0],e[2][1])[0],a=t(e[1][0],e[0][1])[1],o=t(e[1][0],e[1][1])[1];return a&gt;o&amp;&amp;(r=a,a=o,o=r),[[n,a],[i,o]]}))})),s):r.map((function(t){return t.map((function(t){return[[t[0][0]*A,t[0][1]*A],[t[1][0]*A,t[1][1]*A],[t[2][0]*A,t[2][1]*A]]}))}))},null!=r&amp;&amp;s.lobes(r),s}Kt.invert=function(t,e){return e&gt;-.7109889596207567?W.invert(t,e-.0528035274542):Q.invert(t,e)},Qt.invert=function(t,e){return n(e)&gt;.7109889596207567?W.invert(t,e+(e&gt;0?.0528035274542:-.0528035274542)):Q.invert(t,e)};var oe=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var se=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var le=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var ce=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];var ue=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];var fe=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function he(t,e){return[3/k*t*L(y*y/3-e*e),e]}function pe(t){function e(e,r){if(n(n(r)-x)&lt;v)return[0,r&lt;0?-2:2];var i=g(r),a=h((1+i)/(1-i),t/2),s=.5*(a+1/a)+o(e*=t);return[2*g(e)/s,(a-1/a)/s]}return e.invert=function(e,r){var i=n(r);if(n(i-2)&lt;v)return e?null:[0,d(r)*x];if(i&gt;2)return null;var o=(e/=2)*e,s=(r/=2)*r,l=2*r/(1+o+s);return l=h((1+l)/(1-l),1/t),[a(2*e,1-o-s)/t,S((l-1)/(l+1))]},e}he.invert=function(t,e){return[k/3*t/L(y*y/3-e*e),e]};var de=y/w;function ge(t,e){return[t*(1+L(o(e)))/2,e/(o(e/2)*o(t/6))]}function me(t,e){var r=t*t,n=e*e;return[t*(.975534+n*(-.0143059*r-.119161+-.0547009*n)),e*(1.00384+r*(.0802894+-.02855*n+199025e-9*r)+n*(.0998909+-.0491032*n))]}function ve(t,e){return[g(t)/o(e),m(e)*o(t)]}function ye(t){var e=o(t),r=m(b+t/2);function i(i,a){var o=a-t,s=n(o)&lt;v?i*e:n(s=b+a/2)&lt;v||n(n(s)-x)&lt;v?0:i*o/c(m(s)/r);return[s,o]}return i.invert=function(i,a){var o,s=a+t;return[n(a)&lt;v?i/e:n(o=b+s/2)&lt;v||n(n(o)-x)&lt;v?0:i*c(m(o)/r)/a,s]},i}function xe(t,e){return[t,1.25*c(m(b+.4*e))]}function be(t){var e=t.length-1;function r(r,n){for(var i,a=o(n),s=2/(1+a*o(r)),l=s*a*g(r),c=s*g(n),u=e,f=t[u],h=f[0],p=f[1];--u&gt;=0;)h=(f=t[u])[0]+l*(i=h)-c*p,p=f[1]+l*p+c*i;return[h=l*(i=h)-c*p,p=l*p+c*i]}return r.invert=function(r,s){var l=20,c=r,u=s;do{for(var f,h=e,p=t[h],d=p[0],m=p[1],v=0,y=0;--h&gt;=0;)v=d+c*(f=v)-u*y,y=m+c*y+u*f,d=(p=t[h])[0]+c*(f=d)-u*m,m=p[1]+c*m+u*f;var x,b,_=(v=d+c*(f=v)-u*y)*v+(y=m+c*y+u*f)*y;c-=x=((d=c*(f=d)-u*m-r)*v+(m=c*m+u*f-s)*y)/_,u-=b=(m*v-d*y)/_}while(n(x)+n(b)&gt;1e-12&amp;&amp;--l&gt;0);if(l){var w=L(c*c+u*u),T=2*i(.5*w),k=g(T);return[a(c*k,w*o(T)),w?S(u*k/w):0]}},r}ge.invert=function(t,e){var r=n(t),i=n(e),a=v,s=x;i&lt;de?s*=i/de:a+=6*E(de/i);for(var l=0;l&lt;25;l++){var c=g(s),u=L(o(s)),f=g(s/2),h=o(s/2),p=g(a/6),d=o(a/6),m=.5*a*(1+u)-r,y=s/(h*d)-i,b=u?-.25*a*c/u:0,_=.5*(1+u),w=(1+.5*s*f/h)/(h*d),T=s/h*(p/6)/(d*d),k=b*T-w*_,A=(m*T-y*_)/k,M=(y*b-m*w)/k;if(s-=A,a-=M,n(A)&lt;v&amp;&amp;n(M)&lt;v)break}return[t&lt;0?-a:a,e&lt;0?-s:s]},me.invert=function(t,e){var r=d(t)*y,i=e/2,a=50;do{var o=r*r,s=i*i,l=r*i,c=r*(.975534+s*(-.0143059*o-.119161+-.0547009*s))-t,u=i*(1.00384+o*(.0802894+-.02855*s+199025e-9*o)+s*(.0998909+-.0491032*s))-e,f=.975534-s*(.119161+3*o*.0143059+.0547009*s),h=-l*(.238322+.2188036*s+.0286118*o),p=l*(.1605788+7961e-7*o+-.0571*s),g=1.00384+o*(.0802894+199025e-9*o)+s*(3*(.0998909-.02855*o)-.245516*s),m=h*p-g*f,x=(u*h-c*g)/m,b=(c*p-u*f)/m;r-=x,i-=b}while((n(x)&gt;v||n(b)&gt;v)&amp;&amp;--a&gt;0);return a&amp;&amp;[r,i]},ve.invert=function(t,e){var r=t*t,n=e*e+1,i=r+n,a=t?_*L((i-L(i*i-4*r))/r):1/L(n);return[S(t*a),d(e)*E(a)]},xe.invert=function(t,e){return[t,2.5*i(s(.8*e))-.625*y]};var _e=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],we=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Te=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],ke=[[.9245,0],[0,0],[.01943,0]],Ae=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Me(t,r){var n=e.geoProjection(be(t)).rotate(r).clipAngle(90),i=e.geoRotation(r),a=n.center;return delete n.rotate,n.center=function(t){return arguments.length?a(i(t)):i.invert(a())},n}var Se=L(6),Ee=L(7);function Le(t,e){var r=S(7*g(e)/(3*Se));return[Se*t*(2*o(2*r/3)-1)/Ee,9*g(r/3)/Ee]}function Ce(t,e){for(var r,i=(1+_)*g(e),a=e,s=0;s&lt;25&amp;&amp;(a-=r=(g(a/2)+g(a)-i)/(.5*o(a/2)+o(a)),!(n(r)&lt;v));s++);return[t*(1+2*o(a)/o(a/2))/(3*w),2*L(3)*g(a/2)/L(2+w)]}function Pe(t,e){for(var r,i=L(6/(4+y)),a=(1+y/4)*g(e),s=e/2,l=0;l&lt;25&amp;&amp;(s-=r=(s/2+g(s)-a)/(.5+o(s)),!(n(r)&lt;v));l++);return[i*(.5+o(s))*t/1.5,i*s]}function Ie(t,e){var r=e*e,n=r*r,i=r*n;return[t*(.84719-.13063*r+i*i*(.05494*r-.04515-.02326*n+.00331*i)),e*(1.01183+n*n*(.01926*r-.02625-.00396*n))]}function Oe(t,e){return[t*(1+o(e))/2,2*(e-m(e/2))]}Le.invert=function(t,e){var r=3*S(e*Ee/9);return[t*Ee/(Se*(2*o(2*r/3)-1)),S(3*g(r)*Se/7)]},Ce.invert=function(t,e){var r=e*L(2+w)/(2*L(3)),n=2*S(r);return[3*w*t/(1+2*o(n)/o(n/2)),S((r+g(n))/(1+_))]},Pe.invert=function(t,e){var r=L(6/(4+y)),i=e/r;return n(n(i)-x)&lt;v&amp;&amp;(i=i&lt;0?-x:x),[1.5*t/(r*(.5+o(i))),S((i/2+g(i))/(1+y/4))]},Ie.invert=function(t,e){var r,i,a,o,s=e,l=25;do{s-=r=(s*(1.01183+(a=(i=s*s)*i)*a*(.01926*i-.02625-.00396*a))-e)/(1.01183+a*a*(.21186*i-.23625+-.05148*a))}while(n(r)&gt;1e-12&amp;&amp;--l&gt;0);return[t/(.84719-.13063*(i=s*s)+(o=i*(a=i*i))*o*(.05494*i-.04515-.02326*a+.00331*o)),s]},Oe.invert=function(t,e){for(var r=e/2,i=0,a=1/0;i&lt;10&amp;&amp;n(a)&gt;v;++i){var s=o(e/2);e-=a=(e-m(e/2)-r)/(1-.5/(s*s))}return[2*t/(1+o(e)),e]};var ze=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function De(t,e){var r=g(e),i=o(e),a=d(t);if(0===t||n(e)===x)return[0,e];if(0===e)return[t,0];if(n(t)===x)return[t*i,x*r];var s=y/(2*t)-2*t/y,l=2*e/y,c=(1-l*l)/(r-l),u=s*s,f=c*c,h=1+u/f,p=1+f/u,m=(s*r/c-s/2)/h,v=(f*r/u+c/2)/p,b=v*v-(f*r*r/u+c*r-1)/p;return[x*(m+L(m*m+i*i/h)*a),x*(v+L(b&lt;0?0:b)*d(-e*s)*a)]}De.invert=function(t,e){var r=(t/=x)*t,n=r+(e/=x)*e,i=y*y;return[t?(n-1+L((1-n)*(1-n)+4*r))/(2*t)*x:0,V((function(t){return n*(y*g(t)-2*t)*y+4*t*t*(e-g(t))+2*y*t-i*e}),0)]};function Re(t,e){var r=e*e;return[t,e*(1.0148+r*r*(.23185+r*(.02406*r-.14499)))]}function Fe(t,e){if(n(e)&lt;v)return[t,0];var r=m(e),i=t*g(e);return[g(i)/r,e+(1-o(i))/r]}function Be(t,e){var r=je(t[1],t[0]),n=je(e[1],e[0]),i=function(t,e){return a(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}(r,n),s=Ue(r)/Ue(n);return Ne([1,0,t[0][0],0,1,t[0][1]],Ne([s,0,0,0,s,0],Ne([o(i),g(i),0,-g(i),o(i),0],[1,0,-e[0][0],0,1,-e[0][1]])))}function Ne(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function je(t,e){return[t[0]-e[0],t[1]-e[1]]}function Ue(t){return L(t[0]*t[0]+t[1]*t[1])}function Ve(t,r,i){function a(t,e){var n,i=r(t,e),a=i.project([t*A,e*A]);return(n=i.transform)?[n[0]*a[0]+n[1]*a[1]+n[2],-(n[3]*a[0]+n[4]*a[1]+n[5])]:(a[1]=-a[1],a)}!function t(e,r){if(e.edges=function(t){for(var e=t.length,r=[],n=t[e-1],i=0;i&lt;e;++i)r.push([n,n=t[i]]);return r}(e.face),r.face){var n=e.shared=function(t,e){for(var r,n,i=t.length,a=null,o=0;o&lt;i;++o){r=t[o];for(var s=e.length;--s&gt;=0;)if(n=e[s],r[0]===n[0]&amp;&amp;r[1]===n[1]){if(a)return[a,r];a=r}}}(e.face,r.face),i=Be(n.map(r.project),n.map(e.project));e.transform=r.transform?Ne(r.transform,i):i;for(var a=r.edges,o=0,s=a.length;o&lt;s;++o)qe(n[0],a[o][1])&amp;&amp;qe(n[1],a[o][0])&amp;&amp;(a[o]=e),qe(n[0],a[o][0])&amp;&amp;qe(n[1],a[o][1])&amp;&amp;(a[o]=e);for(a=e.edges,o=0,s=a.length;o&lt;s;++o)qe(n[0],a[o][0])&amp;&amp;qe(n[1],a[o][1])&amp;&amp;(a[o]=r),qe(n[0],a[o][1])&amp;&amp;qe(n[1],a[o][0])&amp;&amp;(a[o]=r)}else e.transform=r.transform;e.children&amp;&amp;e.children.forEach((function(r){t(r,e)}));return e}(t,{transform:null}),He(t)&amp;&amp;(a.invert=function(e,n){var i=function t(e,n){var i=e.project.invert,a=e.transform,o=n;a&amp;&amp;(a=function(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}(a),o=[a[0]*o[0]+a[1]*o[1]+a[2],a[3]*o[0]+a[4]*o[1]+a[5]]);if(i&amp;&amp;e===function(t){return r(t[0]*M,t[1]*M)}(s=i(o)))return s;for(var s,l=e.children,c=0,u=l&amp;&amp;l.length;c&lt;u;++c)if(s=t(l[c],n))return s}(t,[e,-n]);return i&amp;&amp;(i[0]*=M,i[1]*=M,i)});var o=e.geoProjection(a),s=o.stream;return o.stream=function(r){var i=o.rotate(),a=s(r),l=(o.rotate([0,0]),s(r));return o.rotate(i),a.sphere=function(){l.polygonStart(),l.lineStart(),function t(r,i,a){var o,s,l=i.edges,c=l.length,u={type:&quot;MultiPoint&quot;,coordinates:i.face},f=i.face.filter((function(t){return 90!==n(t[1])})),h=e.geoBounds({type:&quot;MultiPoint&quot;,coordinates:f}),p=!1,d=-1,g=h[1][0]-h[0][0],m=180===g||360===g?[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]:e.geoCentroid(u);if(a)for(;++d&lt;c&amp;&amp;l[d]!==a;);++d;for(var y=0;y&lt;c;++y)s=l[(y+d)%c],Array.isArray(s)?(p||(r.point((o=e.geoInterpolate(s[0],m)(v))[0],o[1]),p=!0),r.point((o=e.geoInterpolate(s[1],m)(v))[0],o[1])):(p=!1,s!==a&amp;&amp;t(r,s,i))}(l,t),l.lineEnd(),l.polygonEnd()},a},o.angle(null==i?-30:i*A)}function qe(t,e){return t&amp;&amp;e&amp;&amp;t[0]===e[0]&amp;&amp;t[1]===e[1]}function He(t){return t.project.invert||t.children&amp;&amp;t.children.some(He)}Re.invert=function(t,e){e&gt;1.790857183?e=1.790857183:e&lt;-1.790857183&amp;&amp;(e=-1.790857183);var r,i=e;do{var a=i*i;i-=r=(i*(1.0148+a*a*(.23185+a*(.02406*a-.14499)))-e)/(1.0148+a*a*(5*.23185+a*(.21654*a-1.01493)))}while(n(r)&gt;v);return[t,i]},Fe.invert=function(t,e){if(n(e)&lt;v)return[t,0];var r,i=t*t+e*e,a=.5*e,s=10;do{var l=m(a),c=1/o(a),u=i-2*e*a+a*a;a-=r=(l*u+2*(a-e))/(2+u*c*c+2*(a-e)*l)}while(n(r)&gt;v&amp;&amp;--s&gt;0);return l=m(a),[(n(e)&lt;n(a+1/l)?S(t*l):d(e)*d(t)*(E(n(t*l))+x))/g(a),a]};var Ge=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Ye=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(t){return t.map((function(t){return Ge[t]}))}));var We=2/L(3);function Xe(t,e){var r=lt(t,e);return[r[0]*We,r[1]]}function Ze(t,e){for(var r=0,n=t.length,i=0;r&lt;n;++r)i+=t[r]*e[r];return i}function Je(t){return[a(t[1],t[0])*A,S(u(-1,f(1,t[2])))*A]}function Ke(t){var e=t[0]*M,r=t[1]*M,n=o(r);return[n*o(e),n*g(e),g(r)]}function Qe(){}function $e(t,e){return{type:&quot;FeatureCollection&quot;,features:t.features.map((function(t){return tr(t,e)}))}}function tr(t,e){return{type:&quot;Feature&quot;,id:t.id,properties:t.properties,geometry:er(t.geometry,e)}}function er(t,r){if(!t)return null;if(&quot;GeometryCollection&quot;===t.type)return function(t,e){return{type:&quot;GeometryCollection&quot;,geometries:t.geometries.map((function(t){return er(t,e)}))}}(t,r);var n;switch(t.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:n=ir;break;case&quot;LineString&quot;:case&quot;MultiLineString&quot;:n=ar;break;case&quot;Polygon&quot;:case&quot;MultiPolygon&quot;:case&quot;Sphere&quot;:n=or;break;default:return null}return e.geoStream(t,r(n)),n.result()}Xe.invert=function(t,e){return lt.invert(t/We,e)};var rr=[],nr=[],ir={point:function(t,e){rr.push([t,e])},result:function(){var t=rr.length?rr.length&lt;2?{type:&quot;Point&quot;,coordinates:rr[0]}:{type:&quot;MultiPoint&quot;,coordinates:rr}:null;return rr=[],t}},ar={lineStart:Qe,point:function(t,e){rr.push([t,e])},lineEnd:function(){rr.length&amp;&amp;(nr.push(rr),rr=[])},result:function(){var t=nr.length?nr.length&lt;2?{type:&quot;LineString&quot;,coordinates:nr[0]}:{type:&quot;MultiLineString&quot;,coordinates:nr}:null;return nr=[],t}},or={polygonStart:Qe,lineStart:Qe,point:function(t,e){rr.push([t,e])},lineEnd:function(){var t=rr.length;if(t){do{rr.push(rr[0].slice())}while(++t&lt;4);nr.push(rr),rr=[]}},polygonEnd:Qe,result:function(){if(!nr.length)return null;var t=[],e=[];return nr.forEach((function(r){!function(t){if((e=t.length)&lt;4)return!1;for(var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r&lt;e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n&lt;=0}(r)?e.push(r):t.push([r])})),e.forEach((function(e){var r=e[0];t.some((function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a&lt;o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u&gt;n^p&gt;n&amp;&amp;r&lt;(h-c)*(n-u)/(p-u)+c&amp;&amp;(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),nr=[],t.length?t.length&gt;1?{type:&quot;MultiPolygon&quot;,coordinates:t}:{type:&quot;Polygon&quot;,coordinates:t[0]}:null}};function sr(t){var r=t(x,0)[0]-t(-x,0)[0];function i(e,i){var a=n(e)&lt;x,o=t(a?e:e&gt;0?e-y:e+y,i),s=(o[0]-o[1])*_,l=(o[0]+o[1])*_;if(a)return[s,l];var c=r*_,u=s&gt;0^l&gt;0?-1:1;return[u*s-d(l)*c,u*l-d(s)*c]}return t.invert&amp;&amp;(i.invert=function(e,i){var a=(e+i)*_,o=(i-e)*_,s=n(a)&lt;.5*r&amp;&amp;n(o)&lt;.5*r;if(!s){var l=r*_,c=a&gt;0^o&gt;0?-1:1,u=-c*e+(o&gt;0?1:-1)*l,f=-c*i+(a&gt;0?1:-1)*l;a=(-u-f)*_,o=(u-f)*_}var h=t.invert(a,o);return s||(h[0]+=a&gt;0?y:-y),h}),e.geoProjection(i).rotate([-90,-90,45]).clipAngle(179.999)}function lr(){return sr(Ut).scale(111.48)}function cr(t){var e=g(t);function r(r,n){var a=e?m(r*e/2)/e:r/2;if(!n)return[2*a,-t];var s=2*i(a*g(n)),l=1/m(n);return[g(s)*l,n+(1-o(s))*l-t]}return r.invert=function(r,a){if(n(a+=t)&lt;v)return[e?2*i(e*r/2)/e:r,0];var s,l=r*r+a*a,c=0,u=10;do{var f=m(c),h=1/o(c),p=l-2*a*c+c*c;c-=s=(f*p+2*(c-a))/(2+p*h*h+2*(c-a)*f)}while(n(s)&gt;v&amp;&amp;--u&gt;0);var d=r*(f=m(c)),x=m(n(a)&lt;n(c+1/f)?.5*S(d):.5*E(d)+y/4)/g(c);return[e?2*i(e*x)/e:2*x,c]},r}var ur=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function fr(t,e){var r,i=f(18,36*n(e)/y),a=l(i),o=i-a,s=(r=ur[a])[0],c=r[1],u=(r=ur[++a])[0],h=r[1],p=(r=ur[f(19,++a)])[0],d=r[1];return[t*(u+o*(p-s)/2+o*o*(p-2*u+s)/2),(e&gt;0?x:-x)*(h+o*(d-c)/2+o*o*(d-2*h+c)/2)]}function hr(t,e){var r=function(t){function e(e,r){var n=o(r),i=(t-1)/(t-n*o(e));return[i*n*g(e),i*g(r)]}return e.invert=function(e,r){var n=e*e+r*r,i=L(n),o=(t-L(1-n*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[a(e*o,i*L(1-o*o)),i?S(r*o/i):0]},e}(t);if(!e)return r;var n=o(e),i=g(e);function s(e,a){var o=r(e,a),s=o[1],l=s*i/(t-1)+n;return[o[0]*n/l,s/l]}return s.invert=function(e,a){var o=(t-1)/(t-1-a*i);return r.invert(o*e,o*a*n)},s}ur.forEach((function(t){t[1]*=1.0144})),fr.invert=function(t,e){var r=e/x,i=90*r,a=f(18,n(i/5)),o=u(0,l(a));do{var s=ur[o][1],c=ur[o+1][1],h=ur[f(19,o+2)][1],p=h-s,d=h-2*c+s,g=2*(n(r)-c)/p,m=d/p,v=g*(1-m*g*(1-2*m*g));if(v&gt;=0||1===o){i=(e&gt;=0?5:-5)*(v+a);var y,b=50;do{v=(a=f(18,n(i)/5))-(o=l(a)),s=ur[o][1],c=ur[o+1][1],h=ur[f(19,o+2)][1],i-=(y=(e&gt;=0?x:-x)*(c+v*(h-s)/2+v*v*(h-2*c+s)/2)-e)*A}while(n(y)&gt;1e-12&amp;&amp;--b&gt;0);break}}while(--o&gt;=0);var _=ur[o][0],w=ur[o+1][0],T=ur[f(19,o+2)][0];return[t/(w+v*(T-_)/2+v*v*(T-2*w+_)/2),i*M]};var pr=-179.9999,dr=179.9999,gr=-89.9999;function mr(t){return t.length&gt;0}function vr(t){return-90===t||90===t?[0,t]:[-180,(e=t,Math.floor(1e4*e)/1e4)];var e}function yr(t){var e=t[0],r=t[1],n=!1;return e&lt;=pr?(e=-180,n=!0):e&gt;=dr&amp;&amp;(e=180,n=!0),r&lt;=gr?(r=-90,n=!0):r&gt;=89.9999&amp;&amp;(r=90,n=!0),n?[e,r]:t}function xr(t){return t.map(yr)}function br(t,e,r){for(var n=0,i=t.length;n&lt;i;++n){var a=t[n].slice();r.push({index:-1,polygon:e,ring:a});for(var o=0,s=a.length;o&lt;s;++o){var l=a[o],c=l[0],u=l[1];if(c&lt;=pr||c&gt;=dr||u&lt;=gr||u&gt;=89.9999){a[o]=yr(l);for(var f=o+1;f&lt;s;++f){var h=a[f],p=h[0],d=h[1];if(p&gt;pr&amp;&amp;p&lt;dr&amp;&amp;d&gt;gr&amp;&amp;d&lt;89.9999)break}if(f===o+1)continue;if(o){var g={index:-1,polygon:e,ring:a.slice(0,o+1)};g.ring[g.ring.length-1]=vr(u),r[r.length-1]=g}else r.pop();if(f&gt;=s)break;r.push({index:-1,polygon:e,ring:a=a.slice(f-1)}),a[0]=vr(a[0][1]),o=-1,s=a.length}}}}function _r(t){var e,r,n,i,a,o,s=t.length,l={},c={};for(e=0;e&lt;s;++e)n=(r=t[e]).ring[0],a=r.ring[r.ring.length-1],n[0]!==a[0]||n[1]!==a[1]?(r.index=e,l[n]=c[a]=r):(r.polygon.push(r.ring),t[e]=null);for(e=0;e&lt;s;++e)if(r=t[e]){if(n=r.ring[0],a=r.ring[r.ring.length-1],i=c[n],o=l[a],delete l[n],delete c[a],n[0]===a[0]&amp;&amp;n[1]===a[1]){r.polygon.push(r.ring);continue}i?(delete c[n],delete l[i.ring[0]],i.ring.pop(),t[i.index]=null,r={index:-1,polygon:i.polygon,ring:i.ring.concat(r.ring)},i===o?r.polygon.push(r.ring):(r.index=s++,t.push(l[r.ring[0]]=c[r.ring[r.ring.length-1]]=r))):o?(delete l[a],delete c[o.ring[o.ring.length-1]],r.ring.pop(),r={index:s++,polygon:o.polygon,ring:r.ring.concat(o.ring)},t[o.index]=null,t.push(l[r.ring[0]]=c[r.ring[r.ring.length-1]]=r)):(r.ring.push(r.ring[0]),r.polygon.push(r.ring))}}function wr(t){var e={type:&quot;Feature&quot;,geometry:Tr(t.geometry)};return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}function Tr(t){if(null==t)return t;var e,r,n,i;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(Tr)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:yr(t.coordinates)};break;case&quot;MultiPoint&quot;:case&quot;LineString&quot;:e={type:t.type,coordinates:xr(t.coordinates)};break;case&quot;MultiLineString&quot;:e={type:&quot;MultiLineString&quot;,coordinates:t.coordinates.map(xr)};break;case&quot;Polygon&quot;:var a=[];br(t.coordinates,a,r=[]),_r(r),e={type:&quot;Polygon&quot;,coordinates:a};break;case&quot;MultiPolygon&quot;:r=[],n=-1,i=t.coordinates.length;for(var o=new Array(i);++n&lt;i;)br(t.coordinates[n],o[n]=[],r);_r(r),e={type:&quot;MultiPolygon&quot;,coordinates:o.filter(mr)};break;default:return t}return null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e}function kr(t,e){var r=m(e/2),n=g(b*r);return[t*(.74482-.34588*n*n),1.70711*r]}function Ar(t,r,n){var i=e.geoInterpolate(r,n),a=i(.5),o=e.geoRotation([-a[0],-a[1]])(r),s=i.distance/2,l=-S(g(o[1]*M)/g(s)),c=[-a[0],-a[1],-(o[0]&gt;0?y-l:l)*A],u=e.geoProjection(t(s)).rotate(c),f=e.geoRotation(c),h=u.center;return delete u.rotate,u.center=function(t){return arguments.length?h(f(t)):f.invert(h())},u.clipAngle(90)}function Mr(t){var r=o(t);function n(t,n){var i=e.geoGnomonicRaw(t,n);return i[0]*=r,i}return n.invert=function(t,n){return e.geoGnomonicRaw.invert(t/r,n)},n}function Sr(t,e){return Ar(Mr,t,e)}function Er(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var r=-t/2,n=-r,i=t*t,s=m(n),l=.5/g(n);function c(e,a){var s=E(o(a)*o(e-r)),l=E(o(a)*o(e-n));return[((s*=s)-(l*=l))/(2*t),(a&lt;0?-1:1)*L(4*i*l-(i-s+l)*(i-s+l))/(2*t)]}return c.invert=function(t,e){var i,c,u=e*e,f=o(L(u+(i=t+r)*i)),h=o(L(u+(i=t+n)*i));return[a(c=f-h,i=(f+h)*s),(e&lt;0?-1:1)*E(L(i*i+c*c)*l)]},c}function Lr(t,e){return Ar(Er,t,e)}function Cr(t,e){if(n(e)&lt;v)return[t,0];var r=n(e/x),i=S(r);if(n(t)&lt;v||n(n(e)-x)&lt;v)return[0,d(e)*y*m(i/2)];var a=o(i),s=n(y/t-t/y)/2,l=s*s,c=a/(r+a-1),u=c*(2/r-1),f=u*u,h=f+l,p=c-f,g=l+c;return[d(t)*y*(s*p+L(l*p*p-h*(c*c-f)))/h,d(e)*y*(u*g-s*L((l+1)*h-g*g))/h]}function Pr(t,e){if(n(e)&lt;v)return[t,0];var r=n(e/x),i=S(r);if(n(t)&lt;v||n(n(e)-x)&lt;v)return[0,d(e)*y*m(i/2)];var a=o(i),s=n(y/t-t/y)/2,l=s*s,c=a*(L(1+l)-s*a)/(1+l*r*r);return[d(t)*y*c,d(e)*y*L(1-c*(2*s+c))]}function Ir(t,e){if(n(e)&lt;v)return[t,0];var r=e/x,i=S(r);if(n(t)&lt;v||n(n(e)-x)&lt;v)return[0,y*m(i/2)];var a=(y/t-t/y)/2,s=r/(1+o(i));return[y*(d(t)*L(a*a+1-s*s)-a),y*s]}function Or(t,e){if(!e)return[t,0];var r=n(e);if(!t||r===x)return[0,e];var i=r/x,a=i*i,o=(8*i-a*(a+2)-5)/(2*a*(i-1)),s=o*o,l=i*o,c=a+s+2*l,u=i+3*o,f=t/x,h=f+1/f,p=d(n(t)-x)*L(h*h-4),g=p*p,m=(p*(c+s-1)+2*L(c*(a+s*g-1)+(1-a)*(a*(u*u+4*s)+12*l*s+4*s*s)))/(4*c+g);return[d(t)*x*m,d(e)*x*L(1+p*n(m)-m*m)]}function zr(t,e,r,n){var i=y/3;t=u(t,v),e=u(e,v),t=f(t,x),e=f(e,y-v),r=u(r,0),r=f(r,100-v);var s=(n=u(n,v))/100,l=E((r/100+1)*o(i))/i,c=g(t)/g(l*x),h=e/y,p=L(s*g(t/2)/g(e/2));return function(t,e,r,n,i){function s(a,s){var l=r*g(n*s),c=L(1-l*l),u=L(2/(1+c*o(a*=i)));return[t*c*u*g(a),e*l*u]}return s.invert=function(o,s){var l=o/t,c=s/e,u=L(l*l+c*c),f=2*S(u/2);return[a(o*m(f),t*u)/i,u&amp;&amp;S(s*g(f)/(e*r*u))/n]},s}(p/L(h*c*l),1/(p*L(h*c*l)),c,l,h)}function Dr(){var t=65*M,r=60*M,n=20,i=200,a=e.geoProjectionMutator(zr),o=a(t,r,n,i);return o.poleline=function(e){return arguments.length?a(t=+e*M,r,n,i):t*A},o.parallels=function(e){return arguments.length?a(t,r=+e*M,n,i):r*A},o.inflation=function(e){return arguments.length?a(t,r,n=+e,i):n},o.ratio=function(e){return arguments.length?a(t,r,n,i=+e):i},o.scale(163.775)}kr.invert=function(t,e){var r=e/1.70711,n=g(b*r);return[t/(.74482-.34588*n*n),2*i(r)]},Cr.invert=function(t,e){if(n(e)&lt;v)return[t,0];if(n(t)&lt;v)return[0,x*g(2*i(e/y))];var r=(t/=y)*t,a=(e/=y)*e,s=r+a,l=s*s,c=-n(e)*(1+s),u=c-2*a+r,f=-2*c+1+2*a+l,h=a/f+(2*u*u*u/(f*f*f)-9*c*u/(f*f))/27,p=(c-u*u/(3*f))/f,m=2*L(-p/3),b=E(3*h/(p*m))/3;return[y*(s-1+L(1+2*(r-a)+l))/(2*t),d(e)*y*(-m*o(b+y/3)-u/(3*f))]},Pr.invert=function(t,e){if(!t)return[0,x*g(2*i(e/y))];var r=n(t/y),o=(1-r*r-(e/=y)*e)/(2*r),s=L(o*o+1);return[d(t)*y*(s-o),d(e)*x*g(2*a(L((1-2*o*r)*(o+s)-r),L(s+o+r)))]},Ir.invert=function(t,e){if(!e)return[t,0];var r=e/y,n=(y*y*(1-r*r)-t*t)/(2*y*t);return[t?y*(d(t)*L(n*n+1)-n):0,x*g(2*i(r))]},Or.invert=function(t,e){var r;if(!t||!e)return[t,e];e/=y;var i=d(t)*t/x,a=(i*i-1+4*e*e)/n(i),o=a*a,s=2*e,l=50;do{var c=s*s,u=(8*s-c*(c+2)-5)/(2*c*(s-1)),f=(3*s-c*s-10)/(2*c*s),h=u*u,p=s*u,g=s+u,m=g*g,b=s+3*u,_=-2*g*(4*p*h+(1-4*c+3*c*c)*(1+f)+h*(14*c-6-o+(8*c-8-2*o)*f)+p*(12*c-8+(10*c-10-o)*f)),w=L(m*(c+h*o-1)+(1-c)*(c*(b*b+4*h)+h*(12*p+4*h)));s-=r=(a*(m+h-1)+2*w-i*(4*m+o))/(a*(2*u*f+2*g*(1+f))+_/w-8*g*(a*(-1+h+m)+2*w)*(1+f)/(o+4*m))}while(r&gt;v&amp;&amp;--l&gt;0);return[d(t)*(L(a*a+4)+a)*y/4,x*s]};var Rr=4*y+3*L(3),Fr=2*L(2*y*L(3)/Rr),Br=Y(Fr*L(3)/y,Fr,Rr/6);function Nr(t,e){return[t*L(1-3*e*e/(y*y)),e]}function jr(t,e){var r=o(e),n=o(t)*r,i=1-n,s=o(t=a(g(t)*r,-g(e))),l=g(t);return[l*(r=L(1-n*n))-s*i,-s*r-l*i]}function Ur(t,e){var r=O(t,e);return[(r[0]+t/x)/2,(r[1]+e)/2]}Nr.invert=function(t,e){return[t/L(1-3*e*e/(y*y)),e]},jr.invert=function(t,e){var r=(t*t+e*e)/-2,n=L(-r*(2+r)),i=e*r+t*n,o=t*r-e*n,s=L(o*o+i*i);return[a(n*i,s*(1+r)),s?-S(n*o/s):0]},Ur.invert=function(t,e){var r=t,i=e,a=25;do{var s,l=o(i),c=g(i),u=g(2*i),f=c*c,h=l*l,p=g(r),d=o(r/2),m=g(r/2),y=m*m,b=1-h*d*d,_=b?E(l*d)*L(s=1/b):s=0,w=.5*(2*_*l*m+r/x)-t,T=.5*(_*c+i)-e,k=.5*s*(h*y+_*l*d*f)+.5/x,A=s*(p*u/4-_*c*m),M=.125*s*(u*m-_*c*h*p),S=.5*s*(f*d+_*y*l)+.5,C=A*M-S*k,P=(T*A-w*S)/C,I=(w*M-T*k)/C;r-=P,i-=I}while((n(P)&gt;v||n(I)&gt;v)&amp;&amp;--a&gt;0);return[r,i]},t.geoNaturalEarth=e.geoNaturalEarth1,t.geoNaturalEarthRaw=e.geoNaturalEarth1Raw,t.geoAiry=function(){var t=x,r=e.geoProjectionMutator(I),n=r(t);return n.radius=function(e){return arguments.length?r(t=e*M):t*A},n.scale(179.976).clipAngle(147)},t.geoAiryRaw=I,t.geoAitoff=function(){return e.geoProjection(O).scale(152.63)},t.geoAitoffRaw=O,t.geoArmadillo=function(){var t=20*M,r=t&gt;=0?1:-1,n=m(r*t),i=e.geoProjectionMutator(z),s=i(t),l=s.stream;return s.parallel=function(e){return arguments.length?(n=m((r=(t=e*M)&gt;=0?1:-1)*t),i(t)):t*A},s.stream=function(e){var i=s.rotate(),c=l(e),u=(s.rotate([0,0]),l(e)),f=s.precision();return s.rotate(i),c.sphere=function(){u.polygonStart(),u.lineStart();for(var e=-180*r;r*e&lt;180;e+=90*r)u.point(e,90*r);if(t)for(;r*(e-=3*r*f)&gt;=-180;)u.point(e,r*-a(o(e*M/2),n)*A);u.lineEnd(),u.polygonEnd()},c},s.scale(218.695).center([0,28.0974])},t.geoArmadilloRaw=z,t.geoAugust=function(){return e.geoProjection(D).scale(66.1603)},t.geoAugustRaw=D,t.geoBaker=function(){return e.geoProjection(B).scale(112.314)},t.geoBakerRaw=B,t.geoBerghaus=function(){var t=5,r=e.geoProjectionMutator(N),n=r(t),i=n.stream,s=-o(.01*M),l=g(.01*M);return n.lobes=function(e){return arguments.length?r(t=+e):t},n.stream=function(e){var r=n.rotate(),c=i(e),u=(n.rotate([0,0]),i(e));return n.rotate(r),c.sphere=function(){u.polygonStart(),u.lineStart();for(var e=0,r=360/t,n=2*y/t,i=90-180/t,c=x;e&lt;t;++e,i-=r,c-=n)u.point(a(l*o(c),s)*A,S(l*g(c))*A),i&lt;-90?(u.point(-90,-180-i-.01),u.point(-90,-180-i+.01)):(u.point(90,i+.01),u.point(90,i-.01));u.lineEnd(),u.polygonEnd()},c},n.scale(87.8076).center([0,17.1875]).clipAngle(179.999)},t.geoBerghausRaw=N,t.geoBertin1953=function(){return e.geoProjection(H()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])},t.geoBertin1953Raw=H,t.geoBoggs=function(){return e.geoProjection(J).scale(160.857)},t.geoBoggsRaw=J,t.geoBonne=function(){return K($).scale(123.082).center([0,26.1441]).parallel(45)},t.geoBonneRaw=$,t.geoBottomley=function(){var t=.5,r=e.geoProjectionMutator(tt),n=r(t);return n.fraction=function(e){return arguments.length?r(t=+e):t},n.scale(158.837)},t.geoBottomleyRaw=tt,t.geoBromley=function(){return e.geoProjection(et).scale(152.63)},t.geoBromleyRaw=et,t.geoChamberlin=st,t.geoChamberlinRaw=at,t.geoChamberlinAfrica=function(){return st([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])},t.geoCollignon=function(){return e.geoProjection(lt).scale(95.6464).center([0,30])},t.geoCollignonRaw=lt,t.geoCraig=function(){return K(ct).scale(249.828).clipAngle(90)},t.geoCraigRaw=ct,t.geoCraster=function(){return e.geoProjection(ft).scale(156.19)},t.geoCrasterRaw=ft,t.geoCylindricalEqualArea=function(){return K(ht).parallel(38.58).scale(195.044)},t.geoCylindricalEqualAreaRaw=ht,t.geoCylindricalStereographic=function(){return K(pt).scale(124.75)},t.geoCylindricalStereographicRaw=pt,t.geoEckert1=function(){return e.geoProjection(dt).scale(165.664)},t.geoEckert1Raw=dt,t.geoEckert2=function(){return e.geoProjection(gt).scale(165.664)},t.geoEckert2Raw=gt,t.geoEckert3=function(){return e.geoProjection(mt).scale(180.739)},t.geoEckert3Raw=mt,t.geoEckert4=function(){return e.geoProjection(vt).scale(180.739)},t.geoEckert4Raw=vt,t.geoEckert5=function(){return e.geoProjection(yt).scale(173.044)},t.geoEckert5Raw=yt,t.geoEckert6=function(){return e.geoProjection(xt).scale(173.044)},t.geoEckert6Raw=xt,t.geoEisenlohr=function(){return e.geoProjection(_t).scale(62.5271)},t.geoEisenlohrRaw=_t,t.geoFahey=function(){return e.geoProjection(Tt).scale(137.152)},t.geoFaheyRaw=Tt,t.geoFoucaut=function(){return e.geoProjection(kt).scale(135.264)},t.geoFoucautRaw=kt,t.geoFoucautSinusoidal=function(){var t=.5,r=e.geoProjectionMutator(At),n=r(t);return n.alpha=function(e){return arguments.length?r(t=+e):t},n.scale(168.725)},t.geoFoucautSinusoidalRaw=At,t.geoGilbert=function(t){null==t&amp;&amp;(t=e.geoOrthographic);var r=t(),n=e.geoEquirectangular().scale(A).precision(0).clipAngle(null).translate([0,0]);function i(t){return r(Mt(t))}function a(t){i[t]=function(){return arguments.length?(r[t].apply(r,arguments),i):r[t]()}}return r.invert&amp;&amp;(i.invert=function(t){return St(r.invert(t))}),i.stream=function(t){var e=r.stream(t),i=n.stream({point:function(t,r){e.point(t/2,S(m(-r/2*M))*A)},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}});return i.sphere=e.sphere,i},i.rotate=function(t){return arguments.length?(n.rotate(t),i):n.rotate()},i.center=function(t){return arguments.length?(r.center(Mt(t)),i):St(r.center())},a(&quot;angle&quot;),a(&quot;clipAngle&quot;),a(&quot;clipExtent&quot;),a(&quot;fitExtent&quot;),a(&quot;fitHeight&quot;),a(&quot;fitSize&quot;),a(&quot;fitWidth&quot;),a(&quot;scale&quot;),a(&quot;translate&quot;),a(&quot;precision&quot;),i.scale(249.5)},t.geoGingery=function(){var t=6,r=30*M,n=o(r),i=g(r),s=e.geoProjectionMutator(Et),l=s(r,t),c=l.stream,u=-o(.01*M),f=g(.01*M);return l.radius=function(e){return arguments.length?(n=o(r=e*M),i=g(r),s(r,t)):r*A},l.lobes=function(e){return arguments.length?s(r,t=+e):t},l.stream=function(e){var r=l.rotate(),s=c(e),h=(l.rotate([0,0]),c(e));return l.rotate(r),s.sphere=function(){h.polygonStart(),h.lineStart();for(var e=0,r=2*y/t,s=0;e&lt;t;++e,s-=r)h.point(a(f*o(s),u)*A,S(f*g(s))*A),h.point(a(i*o(s-r/2),n)*A,S(i*g(s-r/2))*A);h.lineEnd(),h.polygonEnd()},s},l.rotate([90,-40]).scale(91.7095).clipAngle(179.999)},t.geoGingeryRaw=Et,t.geoGinzburg4=function(){return e.geoProjection(It).scale(149.995)},t.geoGinzburg4Raw=It,t.geoGinzburg5=function(){return e.geoProjection(Ot).scale(153.93)},t.geoGinzburg5Raw=Ot,t.geoGinzburg6=function(){return e.geoProjection(zt).scale(130.945)},t.geoGinzburg6Raw=zt,t.geoGinzburg8=function(){return e.geoProjection(Dt).scale(131.747)},t.geoGinzburg8Raw=Dt,t.geoGinzburg9=function(){return e.geoProjection(Rt).scale(131.087)},t.geoGinzburg9Raw=Rt,t.geoGringorten=function(){return e.geoProjection(Ft(Bt)).scale(239.75)},t.geoGringortenRaw=Bt,t.geoGuyou=function(){return e.geoProjection(Ft(Ut)).scale(151.496)},t.geoGuyouRaw=Ut,t.geoHammer=function(){var t=2,r=e.geoProjectionMutator(j),n=r(t);return n.coefficient=function(e){return arguments.length?r(t=+e):t},n.scale(169.529)},t.geoHammerRaw=j,t.geoHammerRetroazimuthal=function(){var t=0,r=e.geoProjectionMutator(Vt),n=r(t),i=n.rotate,a=n.stream,o=e.geoCircle();return n.parallel=function(e){if(!arguments.length)return t*A;var i=n.rotate();return r(t=e*M).rotate(i)},n.rotate=function(e){return arguments.length?(i.call(n,[e[0],e[1]-t*A]),o.center([-e[0],-e[1]]),n):((e=i.call(n))[1]+=t*A,e)},n.stream=function(t){return(t=a(t)).sphere=function(){t.polygonStart();var e,r=o.radius(89.99)().coordinates[0],n=r.length-1,i=-1;for(t.lineStart();++i&lt;n;)t.point((e=r[i])[0],e[1]);for(t.lineEnd(),n=(r=o.radius(90.01)().coordinates[0]).length-1,t.lineStart();--i&gt;=0;)t.point((e=r[i])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},n.scale(79.4187).parallel(45).clipAngle(179.999)},t.geoHammerRetroazimuthalRaw=Vt,t.geoHealpix=function(){var t=4,n=e.geoProjectionMutator(Yt),i=n(t),a=i.stream;return i.lobes=function(e){return arguments.length?n(t=+e):t},i.stream=function(n){var o=i.rotate(),s=a(n),l=(i.rotate([0,0]),a(n));return i.rotate(o),s.sphere=function(){var n,i;e.geoStream((n=180/t,i=[].concat(r.range(-180,180+n/2,n).map(Wt),r.range(180,-180-n/2,-n).map(Xt)),{type:&quot;Polygon&quot;,coordinates:[180===n?i.map(Zt):i]}),l)},s},i.scale(239.75)},t.geoHealpixRaw=Yt,t.geoHill=function(){var t=1,r=e.geoProjectionMutator(Jt),n=r(t);return n.ratio=function(e){return arguments.length?r(t=+e):t},n.scale(167.774).center([0,18.67])},t.geoHillRaw=Jt,t.geoHomolosine=function(){return e.geoProjection(Qt).scale(152.63)},t.geoHomolosineRaw=Qt,t.geoHufnagel=function(){var t=1,r=0,n=45*M,i=2,a=e.geoProjectionMutator($t),o=a(t,r,n,i);return o.a=function(e){return arguments.length?a(t=+e,r,n,i):t},o.b=function(e){return arguments.length?a(t,r=+e,n,i):r},o.psiMax=function(e){return arguments.length?a(t,r,n=+e*M,i):n*A},o.ratio=function(e){return arguments.length?a(t,r,n,i=+e):i},o.scale(180.739)},t.geoHufnagelRaw=$t,t.geoHyperelliptical=function(){var t=0,r=2.5,n=1.183136,i=e.geoProjectionMutator(ee),a=i(t,r,n);return a.alpha=function(e){return arguments.length?i(t=+e,r,n):t},a.k=function(e){return arguments.length?i(t,r=+e,n):r},a.gamma=function(e){return arguments.length?i(t,r,n=+e):n},a.scale(152.63)},t.geoHyperellipticalRaw=ee,t.geoInterrupt=ae,t.geoInterruptedBoggs=function(){return ae(J,oe).scale(160.857)},t.geoInterruptedHomolosine=function(){return ae(Qt,se).scale(152.63)},t.geoInterruptedMollweide=function(){return ae(W,le).scale(169.529)},t.geoInterruptedMollweideHemispheres=function(){return ae(W,ce).scale(169.529).rotate([20,0])},t.geoInterruptedSinuMollweide=function(){return ae(Kt,ue,q).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoInterruptedSinusoidal=function(){return ae(Q,fe).scale(152.63).rotate([-20,0])},t.geoKavrayskiy7=function(){return e.geoProjection(he).scale(158.837)},t.geoKavrayskiy7Raw=he,t.geoLagrange=function(){var t=.5,r=e.geoProjectionMutator(pe),n=r(t);return n.spacing=function(e){return arguments.length?r(t=+e):t},n.scale(124.75)},t.geoLagrangeRaw=pe,t.geoLarrivee=function(){return e.geoProjection(ge).scale(97.2672)},t.geoLarriveeRaw=ge,t.geoLaskowski=function(){return e.geoProjection(me).scale(139.98)},t.geoLaskowskiRaw=me,t.geoLittrow=function(){return e.geoProjection(ve).scale(144.049).clipAngle(89.999)},t.geoLittrowRaw=ve,t.geoLoximuthal=function(){return K(ye).parallel(40).scale(158.837)},t.geoLoximuthalRaw=ye,t.geoMiller=function(){return e.geoProjection(xe).scale(108.318)},t.geoMillerRaw=xe,t.geoModifiedStereographic=Me,t.geoModifiedStereographicRaw=be,t.geoModifiedStereographicAlaska=function(){return Me(_e,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)},t.geoModifiedStereographicGs48=function(){return Me(we,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},t.geoModifiedStereographicGs50=function(){return Me(Te,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},t.geoModifiedStereographicMiller=function(){return Me(ke,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},t.geoModifiedStereographicLee=function(){return Me(Ae,[165,10]).scale(250).clipAngle(130).center([-165,-10])},t.geoMollweide=function(){return e.geoProjection(W).scale(169.529)},t.geoMollweideRaw=W,t.geoMtFlatPolarParabolic=function(){return e.geoProjection(Le).scale(164.859)},t.geoMtFlatPolarParabolicRaw=Le,t.geoMtFlatPolarQuartic=function(){return e.geoProjection(Ce).scale(188.209)},t.geoMtFlatPolarQuarticRaw=Ce,t.geoMtFlatPolarSinusoidal=function(){return e.geoProjection(Pe).scale(166.518)},t.geoMtFlatPolarSinusoidalRaw=Pe,t.geoNaturalEarth2=function(){return e.geoProjection(Ie).scale(175.295)},t.geoNaturalEarth2Raw=Ie,t.geoNellHammer=function(){return e.geoProjection(Oe).scale(152.63)},t.geoNellHammerRaw=Oe,t.geoInterruptedQuarticAuthalic=function(){return ae(j(1/0),ze).rotate([20,0]).scale(152.63)},t.geoNicolosi=function(){return e.geoProjection(De).scale(127.267)},t.geoNicolosiRaw=De,t.geoPatterson=function(){return e.geoProjection(Re).scale(139.319)},t.geoPattersonRaw=Re,t.geoPolyconic=function(){return e.geoProjection(Fe).scale(103.74)},t.geoPolyconicRaw=Fe,t.geoPolyhedral=Ve,t.geoPolyhedralButterfly=function(t){t=t||function(t){var r=e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-r[0],-r[1]])};var r=Ye.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&amp;&amp;(n.children||(n.children=[])).push(r[e])})),Ve(r[0],(function(t,e){return r[t&lt;-y/2?e&lt;0?6:4:t&lt;0?e&lt;0?2:0:t&lt;y/2?e&lt;0?3:1:e&lt;0?7:5]})).angle(-30).scale(101.858).center([0,45])},t.geoPolyhedralCollignon=function(t){t=t||function(t){var r=e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:t});return e.geoProjection(Xe).translate([0,0]).scale(1).rotate(r[1]&gt;0?[-r[0],0]:[180-r[0],180])};var r=Ye.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&amp;&amp;(n.children||(n.children=[])).push(r[e])})),Ve(r[0],(function(t,e){return r[t&lt;-y/2?e&lt;0?6:4:t&lt;0?e&lt;0?2:0:t&lt;y/2?e&lt;0?3:1:e&lt;0?7:5]})).angle(-30).scale(121.906).center([0,48.5904])},t.geoPolyhedralWaterman=function(t){t=t||function(t){var r=6===t.length?e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:t}):t[0];return e.geoGnomonic().scale(1).translate([0,0]).rotate([-r[0],-r[1]])};var r=Ye.map((function(t){for(var e,r=t.map(Ke),n=r.length,i=r[n-1],a=[],o=0;o&lt;n;++o)e=r[o],a.push(Je([.9486832980505138*i[0]+.31622776601683794*e[0],.9486832980505138*i[1]+.31622776601683794*e[1],.9486832980505138*i[2]+.31622776601683794*e[2]]),Je([.9486832980505138*e[0]+.31622776601683794*i[0],.9486832980505138*e[1]+.31622776601683794*i[1],.9486832980505138*e[2]+.31622776601683794*i[2]])),i=e;return a})),n=[],i=[-1,0,0,1,0,1,4,5];r.forEach((function(t,e){for(var a,o,s=Ye[e],l=s.length,c=n[e]=[],u=0;u&lt;l;++u)r.push([s[u],t[(2*u+2)%(2*l)],t[(2*u+1)%(2*l)]]),i.push(e),c.push((a=Ke(t[(2*u+2)%(2*l)]),o=Ke(t[(2*u+1)%(2*l)]),[a[1]*o[2]-a[2]*o[1],a[2]*o[0]-a[0]*o[2],a[0]*o[1]-a[1]*o[0]]))}));var a=r.map((function(e){return{project:t(e),face:e}}));return i.forEach((function(t,e){var r=a[t];r&amp;&amp;(r.children||(r.children=[])).push(a[e])})),Ve(a[0],(function(t,e){var r=o(e),i=[r*o(t),r*g(t),g(e)],s=t&lt;-y/2?e&lt;0?6:4:t&lt;0?e&lt;0?2:0:t&lt;y/2?e&lt;0?3:1:e&lt;0?7:5,l=n[s];return a[Ze(l[0],i)&lt;0?8+3*s:Ze(l[1],i)&lt;0?8+3*s+1:Ze(l[2],i)&lt;0?8+3*s+2:s]})).angle(-30).scale(110.625).center([0,45])},t.geoProject=function(t,e){var r,n=e.stream;if(!n)throw new Error(&quot;invalid projection&quot;);switch(t&amp;&amp;t.type){case&quot;Feature&quot;:r=tr;break;case&quot;FeatureCollection&quot;:r=$e;break;default:r=er}return r(t,n)},t.geoGringortenQuincuncial=function(){return sr(Bt).scale(176.423)},t.geoPeirceQuincuncial=lr,t.geoPierceQuincuncial=lr,t.geoQuantize=function(t,e){if(!(0&lt;=(e=+e)&amp;&amp;e&lt;=20))throw new Error(&quot;invalid digits&quot;);function r(t){var r=t.length,n=2,i=new Array(r);for(i[0]=+t[0].toFixed(e),i[1]=+t[1].toFixed(e);n&lt;r;)i[n]=t[n],++n;return i}function n(t){return t.map(r)}function i(t){for(var e=r(t[0]),n=[e],i=1;i&lt;t.length;i++){var a=r(t[i]);(a.length&gt;2||a[0]!=e[0]||a[1]!=e[1])&amp;&amp;(n.push(a),e=a)}return 1===n.length&amp;&amp;t.length&gt;1&amp;&amp;n.push(r(t[t.length-1])),n}function a(t){return t.map(i)}function o(t){if(null==t)return t;var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(o)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:r(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:t.type,coordinates:n(t.coordinates)};break;case&quot;LineString&quot;:e={type:t.type,coordinates:i(t.coordinates)};break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:e={type:t.type,coordinates:a(t.coordinates)};break;case&quot;MultiPolygon&quot;:e={type:&quot;MultiPolygon&quot;,coordinates:t.coordinates.map(a)};break;default:return t}return null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e}function s(t){var e={type:&quot;Feature&quot;,properties:t.properties,geometry:o(t.geometry)};return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case&quot;Feature&quot;:return s(t);case&quot;FeatureCollection&quot;:var l={type:&quot;FeatureCollection&quot;,features:t.features.map(s)};return null!=t.bbox&amp;&amp;(l.bbox=t.bbox),l;default:return o(t)}return t},t.geoQuincuncial=sr,t.geoRectangularPolyconic=function(){return K(cr).scale(131.215)},t.geoRectangularPolyconicRaw=cr,t.geoRobinson=function(){return e.geoProjection(fr).scale(152.63)},t.geoRobinsonRaw=fr,t.geoSatellite=function(){var t=2,r=0,n=e.geoProjectionMutator(hr),i=n(t,r);return i.distance=function(e){return arguments.length?n(t=+e,r):t},i.tilt=function(e){return arguments.length?n(t,r=e*M):r*A},i.scale(432.147).clipAngle(E(1/t)*A-1e-6)},t.geoSatelliteRaw=hr,t.geoSinuMollweide=function(){return e.geoProjection(Kt).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoSinuMollweideRaw=Kt,t.geoSinusoidal=function(){return e.geoProjection(Q).scale(152.63)},t.geoSinusoidalRaw=Q,t.geoStitch=function(t){if(null==t)return t;switch(t.type){case&quot;Feature&quot;:return wr(t);case&quot;FeatureCollection&quot;:var e={type:&quot;FeatureCollection&quot;,features:t.features.map(wr)};return null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e;default:return Tr(t)}},t.geoTimes=function(){return e.geoProjection(kr).scale(146.153)},t.geoTimesRaw=kr,t.geoTwoPointAzimuthal=Sr,t.geoTwoPointAzimuthalRaw=Mr,t.geoTwoPointAzimuthalUsa=function(){return Sr([-158,21.5],[-77,39]).clipAngle(60).scale(400)},t.geoTwoPointEquidistant=Lr,t.geoTwoPointEquidistantRaw=Er,t.geoTwoPointEquidistantUsa=function(){return Lr([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)},t.geoVanDerGrinten=function(){return e.geoProjection(Cr).scale(79.4183)},t.geoVanDerGrintenRaw=Cr,t.geoVanDerGrinten2=function(){return e.geoProjection(Pr).scale(79.4183)},t.geoVanDerGrinten2Raw=Pr,t.geoVanDerGrinten3=function(){return e.geoProjection(Ir).scale(79.4183)},t.geoVanDerGrinten3Raw=Ir,t.geoVanDerGrinten4=function(){return e.geoProjection(Or).scale(127.16)},t.geoVanDerGrinten4Raw=Or,t.geoWagner=Dr,t.geoWagner7=function(){return Dr().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)},t.geoWagnerRaw=zr,t.geoWagner4=function(){return e.geoProjection(Br).scale(176.84)},t.geoWagner4Raw=Br,t.geoWagner6=function(){return e.geoProjection(Nr).scale(152.63)},t.geoWagner6Raw=Nr,t.geoWiechel=function(){return e.geoProjection(jr).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)},t.geoWiechelRaw=jr,t.geoWinkel3=function(){return e.geoProjection(Ur).scale(158.837)},t.geoWinkel3Raw=Ur,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:162,&quot;d3-geo&quot;:169}],169:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-array&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(t){a(i,t,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(t,e,r){var n=t.s=e+r,i=n-e,a=n-i;t.t=e-a+(r-i)}var o=1e-6,s=Math.PI,l=s/2,c=s/4,u=2*s,f=180/s,h=s/180,p=Math.abs,d=Math.atan,g=Math.atan2,m=Math.cos,v=Math.ceil,y=Math.exp,x=Math.log,b=Math.pow,_=Math.sin,w=Math.sign||function(t){return t&gt;0?1:t&lt;0?-1:0},T=Math.sqrt,k=Math.tan;function A(t){return t&gt;1?0:t&lt;-1?s:Math.acos(t)}function M(t){return t&gt;1?l:t&lt;-1?-l:Math.asin(t)}function S(t){return(t=_(t/2))*t}function E(){}function L(t,e){t&amp;&amp;P.hasOwnProperty(t.type)&amp;&amp;P[t.type](t,e)}var C={Feature:function(t,e){L(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)L(r[n].geometry,e)}},P={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){I(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)I(r[n],e,0)},Polygon:function(t,e){O(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)O(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)L(r[n],e)}};function I(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i&lt;a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function O(t,e){var r=-1,n=t.length;for(e.polygonStart();++r&lt;n;)I(t[r],e,1);e.polygonEnd()}function z(t,e){t&amp;&amp;C.hasOwnProperty(t.type)?C[t.type](t,e):L(t,e)}var D,R,F,B,N,j=r(),U=r(),V={point:E,lineStart:E,lineEnd:E,polygonStart:function(){j.reset(),V.lineStart=q,V.lineEnd=H},polygonEnd:function(){var t=+j;U.add(t&lt;0?u+t:t),this.lineStart=this.lineEnd=this.point=E},sphere:function(){U.add(u)}};function q(){V.point=G}function H(){Y(D,R)}function G(t,e){V.point=Y,D=t,R=e,F=t*=h,B=m(e=(e*=h)/2+c),N=_(e)}function Y(t,e){var r=(t*=h)-F,n=r&gt;=0?1:-1,i=n*r,a=m(e=(e*=h)/2+c),o=_(e),s=N*o,l=B*a+s*m(i),u=s*n*_(i);j.add(g(u,l)),F=t,B=a,N=o}function W(t){return[g(t[1],t[0]),M(t[2])]}function X(t){var e=t[0],r=t[1],n=m(r);return[n*m(e),n*_(e),_(r)]}function Z(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function J(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function K(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Q(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function $(t){var e=T(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt,gt,mt,vt,yt,xt,bt,_t,wt,Tt,kt,At,Mt=r(),St={point:Et,lineStart:Ct,lineEnd:Pt,polygonStart:function(){St.point=It,St.lineStart=Ot,St.lineEnd=zt,Mt.reset(),V.polygonStart()},polygonEnd:function(){V.polygonEnd(),St.point=Et,St.lineStart=Ct,St.lineEnd=Pt,j&lt;0?(tt=-(rt=180),et=-(nt=90)):Mt&gt;o?nt=90:Mt&lt;-o&amp;&amp;(et=-90),ct[0]=tt,ct[1]=rt},sphere:function(){tt=-(rt=180),et=-(nt=90)}};function Et(t,e){lt.push(ct=[tt=t,rt=t]),e&lt;et&amp;&amp;(et=e),e&gt;nt&amp;&amp;(nt=e)}function Lt(t,e){var r=X([t*h,e*h]);if(st){var n=J(st,r),i=J([n[1],-n[0],0],n);$(i),i=W(i);var a,o=t-it,s=o&gt;0?1:-1,l=i[0]*f*s,c=p(o)&gt;180;c^(s*it&lt;l&amp;&amp;l&lt;s*t)?(a=i[1]*f)&gt;nt&amp;&amp;(nt=a):c^(s*it&lt;(l=(l+360)%360-180)&amp;&amp;l&lt;s*t)?(a=-i[1]*f)&lt;et&amp;&amp;(et=a):(e&lt;et&amp;&amp;(et=e),e&gt;nt&amp;&amp;(nt=e)),c?t&lt;it?Dt(tt,t)&gt;Dt(tt,rt)&amp;&amp;(rt=t):Dt(t,rt)&gt;Dt(tt,rt)&amp;&amp;(tt=t):rt&gt;=tt?(t&lt;tt&amp;&amp;(tt=t),t&gt;rt&amp;&amp;(rt=t)):t&gt;it?Dt(tt,t)&gt;Dt(tt,rt)&amp;&amp;(rt=t):Dt(t,rt)&gt;Dt(tt,rt)&amp;&amp;(tt=t)}else lt.push(ct=[tt=t,rt=t]);e&lt;et&amp;&amp;(et=e),e&gt;nt&amp;&amp;(nt=e),st=r,it=t}function Ct(){St.point=Lt}function Pt(){ct[0]=tt,ct[1]=rt,St.point=Et,st=null}function It(t,e){if(st){var r=t-it;Mt.add(p(r)&gt;180?r+(r&gt;0?360:-360):r)}else at=t,ot=e;V.point(t,e),Lt(t,e)}function Ot(){V.lineStart()}function zt(){It(at,ot),V.lineEnd(),p(Mt)&gt;o&amp;&amp;(tt=-(rt=180)),ct[0]=tt,ct[1]=rt,st=null}function Dt(t,e){return(e-=t)&lt;0?e+360:e}function Rt(t,e){return t[0]-e[0]}function Ft(t,e){return t[0]&lt;=t[1]?t[0]&lt;=e&amp;&amp;e&lt;=t[1]:e&lt;t[0]||t[1]&lt;e}var Bt={sphere:E,point:Nt,lineStart:Ut,lineEnd:Ht,polygonStart:function(){Bt.lineStart=Gt,Bt.lineEnd=Yt},polygonEnd:function(){Bt.lineStart=Ut,Bt.lineEnd=Ht}};function Nt(t,e){t*=h;var r=m(e*=h);jt(r*m(t),r*_(t),_(e))}function jt(t,e,r){++ut,ht+=(t-ht)/ut,pt+=(e-pt)/ut,dt+=(r-dt)/ut}function Ut(){Bt.point=Vt}function Vt(t,e){t*=h;var r=m(e*=h);Tt=r*m(t),kt=r*_(t),At=_(e),Bt.point=qt,jt(Tt,kt,At)}function qt(t,e){t*=h;var r=m(e*=h),n=r*m(t),i=r*_(t),a=_(e),o=g(T((o=kt*a-At*i)*o+(o=At*n-Tt*a)*o+(o=Tt*i-kt*n)*o),Tt*n+kt*i+At*a);ft+=o,gt+=o*(Tt+(Tt=n)),mt+=o*(kt+(kt=i)),vt+=o*(At+(At=a)),jt(Tt,kt,At)}function Ht(){Bt.point=Nt}function Gt(){Bt.point=Wt}function Yt(){Xt(_t,wt),Bt.point=Nt}function Wt(t,e){_t=t,wt=e,t*=h,e*=h,Bt.point=Xt;var r=m(e);Tt=r*m(t),kt=r*_(t),At=_(e),jt(Tt,kt,At)}function Xt(t,e){t*=h;var r=m(e*=h),n=r*m(t),i=r*_(t),a=_(e),o=kt*a-At*i,s=At*n-Tt*a,l=Tt*i-kt*n,c=T(o*o+s*s+l*l),u=M(c),f=c&amp;&amp;-u/c;yt+=f*o,xt+=f*s,bt+=f*l,ft+=u,gt+=u*(Tt+(Tt=n)),mt+=u*(kt+(kt=i)),vt+=u*(At+(At=a)),jt(Tt,kt,At)}function Zt(t){return function(){return t}}function Jt(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&amp;&amp;e.invert&amp;&amp;(r.invert=function(r,n){return(r=e.invert(r,n))&amp;&amp;t.invert(r[0],r[1])}),r}function Kt(t,e){return[p(t)&gt;s?t+Math.round(-t/u)*u:t,e]}function Qt(t,e,r){return(t%=u)?e||r?Jt(te(t),ee(e,r)):te(t):e||r?ee(e,r):Kt}function $t(t){return function(e,r){return[(e+=t)&gt;s?e-u:e&lt;-s?e+u:e,r]}}function te(t){var e=$t(t);return e.invert=$t(-t),e}function ee(t,e){var r=m(t),n=_(t),i=m(e),a=_(e);function o(t,e){var o=m(e),s=m(t)*o,l=_(t)*o,c=_(e),u=c*r+s*n;return[g(l*i-u*a,s*r-c*n),M(u*i+l*a)]}return o.invert=function(t,e){var o=m(e),s=m(t)*o,l=_(t)*o,c=_(e),u=c*i-l*a;return[g(l*i+c*a,s*r+u*n),M(u*r-s*n)]},o}function re(t){function e(e){return(e=t(e[0]*h,e[1]*h))[0]*=f,e[1]*=f,e}return t=Qt(t[0]*h,t[1]*h,t.length&gt;2?t[2]*h:0),e.invert=function(e){return(e=t.invert(e[0]*h,e[1]*h))[0]*=f,e[1]*=f,e},e}function ne(t,e,r,n,i,a){if(r){var o=m(e),s=_(e),l=n*r;null==i?(i=e+n*u,a=e-l/2):(i=ie(o,i),a=ie(o,a),(n&gt;0?i&lt;a:i&gt;a)&amp;&amp;(i+=n*u));for(var c,f=i;n&gt;0?f&gt;a:f&lt;a;f-=l)c=W([o,-s*m(f),-s*_(f)]),t.point(c[0],c[1])}}function ie(t,e){(e=X(e))[0]-=t,$(e);var r=A(-e[1]);return((-e[2]&lt;0?-r:r)+u-o)%u}function ae(){var t,e=[];return{point:function(e,r,n){t.push([e,r,n])},lineStart:function(){e.push(t=[])},lineEnd:E,rejoin:function(){e.length&gt;1&amp;&amp;e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function oe(t,e){return p(t[0]-e[0])&lt;o&amp;&amp;p(t[1]-e[1])&lt;o}function se(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function le(t,e,r,n,i){var a,s,l=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)&lt;=0)){var e,r,n=t[0],s=t[e];if(oe(n,s)){if(!n[2]&amp;&amp;!s[2]){for(i.lineStart(),a=0;a&lt;e;++a)i.point((n=t[a])[0],n[1]);return void i.lineEnd()}s[0]+=2*o}l.push(r=new se(n,t,null,!0)),c.push(r.o=new se(n,null,r,!1)),l.push(r=new se(s,t,null,!1)),c.push(r.o=new se(s,null,r,!0))}})),l.length){for(c.sort(e),ce(l),ce(c),a=0,s=c.length;a&lt;s;++a)c[a].e=r=!r;for(var u,f,h=l[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(a=0,s=u.length;a&lt;s;++a)i.point((f=u[a])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(u=p.p.z,a=u.length-1;a&gt;=0;--a)i.point((f=u[a])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function ce(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n&lt;e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}Kt.invert=Kt;var ue=r();function fe(t){return p(t[0])&lt;=s?t[0]:w(t[0])*((p(t[0])+s)%u-s)}function he(t,e){var r=fe(e),n=e[1],i=_(n),a=[_(r),-m(r),0],f=0,h=0;ue.reset(),1===i?n=l+o:-1===i&amp;&amp;(n=-l-o);for(var p=0,d=t.length;p&lt;d;++p)if(y=(v=t[p]).length)for(var v,y,x=v[y-1],b=fe(x),w=x[1]/2+c,T=_(w),k=m(w),A=0;A&lt;y;++A,b=E,T=C,k=P,x=S){var S=v[A],E=fe(S),L=S[1]/2+c,C=_(L),P=m(L),I=E-b,O=I&gt;=0?1:-1,z=O*I,D=z&gt;s,R=T*C;if(ue.add(g(R*O*_(z),k*P+R*m(z))),f+=D?I+O*u:I,D^b&gt;=r^E&gt;=r){var F=J(X(x),X(S));$(F);var B=J(a,F);$(B);var N=(D^I&gt;=0?-1:1)*M(B[2]);(n&gt;N||n===N&amp;&amp;(F[0]||F[1]))&amp;&amp;(h+=D^I&gt;=0?1:-1)}}return(f&lt;-o||f&lt;o&amp;&amp;ue&lt;-o)^1&amp;h}function pe(t,r,n,i){return function(a){var o,s,l,c=r(a),u=ae(),f=r(u),h=!1,p={point:d,lineStart:m,lineEnd:v,polygonStart:function(){p.point=y,p.lineStart=x,p.lineEnd=b,s=[],o=[]},polygonEnd:function(){p.point=d,p.lineStart=m,p.lineEnd=v,s=e.merge(s);var t=he(o,i);s.length?(h||(a.polygonStart(),h=!0),le(s,ge,t,n,a)):t&amp;&amp;(h||(a.polygonStart(),h=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),h&amp;&amp;(a.polygonEnd(),h=!1),s=o=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function d(e,r){t(e,r)&amp;&amp;a.point(e,r)}function g(t,e){c.point(t,e)}function m(){p.point=g,c.lineStart()}function v(){p.point=d,c.lineEnd()}function y(t,e){l.push([t,e]),f.point(t,e)}function x(){f.lineStart(),l=[]}function b(){y(l[0][0],l[0][1]),f.lineEnd();var t,e,r,n,i=f.clean(),c=u.result(),p=c.length;if(l.pop(),o.push(l),l=null,p)if(1&amp;i){if((e=(r=c[0]).length-1)&gt;0){for(h||(a.polygonStart(),h=!0),a.lineStart(),t=0;t&lt;e;++t)a.point((n=r[t])[0],n[1]);a.lineEnd()}}else p&gt;1&amp;&amp;2&amp;i&amp;&amp;c.push(c.pop().concat(c.shift())),s.push(c.filter(de))}return p}}function de(t){return t.length&gt;1}function ge(t,e){return((t=t.x)[0]&lt;0?t[1]-l-o:l-t[1])-((e=e.x)[0]&lt;0?e[1]-l-o:l-e[1])}var me=pe((function(){return!0}),(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,c){var u=a&gt;0?s:-s,f=p(a-r);p(f-s)&lt;o?(t.point(r,n=(n+c)/2&gt;0?l:-l),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(u,n),t.point(a,n),e=0):i!==u&amp;&amp;f&gt;=s&amp;&amp;(p(r-i)&lt;o&amp;&amp;(r-=i*o),p(a-u)&lt;o&amp;&amp;(a-=u*o),n=function(t,e,r,n){var i,a,s=_(t-r);return p(s)&gt;o?d((_(e)*(a=m(n))*_(r)-_(n)*(i=m(e))*_(t))/(i*a*s)):(e+n)/2}(r,n,a,c),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(u,n),e=0),t.point(r=a,n=c),i=u},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*l,n.point(-s,i),n.point(0,i),n.point(s,i),n.point(s,0),n.point(s,-i),n.point(0,-i),n.point(-s,-i),n.point(-s,0),n.point(-s,i);else if(p(t[0]-e[0])&gt;o){var a=t[0]&lt;e[0]?s:-s;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}),[-s,-l]);function ve(t){var e=m(t),r=6*h,n=e&gt;0,i=p(e)&gt;o;function a(t,r){return m(t)*m(r)&gt;e}function l(t,r,n){var i=[1,0,0],a=J(X(t),X(r)),l=Z(a,a),c=a[0],u=l-c*c;if(!u)return!n&amp;&amp;t;var f=e*l/u,h=-e*c/u,d=J(i,a),g=Q(i,f);K(g,Q(a,h));var m=d,v=Z(g,m),y=Z(m,m),x=v*v-y*(Z(g,g)-1);if(!(x&lt;0)){var b=T(x),_=Q(m,(-v-b)/y);if(K(_,g),_=W(_),!n)return _;var w,k=t[0],A=r[0],M=t[1],S=r[1];A&lt;k&amp;&amp;(w=k,k=A,A=w);var E=A-k,L=p(E-s)&lt;o;if(!L&amp;&amp;S&lt;M&amp;&amp;(w=M,M=S,S=w),L||E&lt;o?L?M+S&gt;0^_[1]&lt;(p(_[0]-k)&lt;o?M:S):M&lt;=_[1]&amp;&amp;_[1]&lt;=S:E&gt;s^(k&lt;=_[0]&amp;&amp;_[0]&lt;=A)){var C=Q(m,(-v+b)/y);return K(C,g),[_,W(C)]}}}function c(e,r){var i=n?t:s-t,a=0;return e&lt;-i?a|=1:e&gt;i&amp;&amp;(a|=2),r&lt;-i?a|=4:r&gt;i&amp;&amp;(a|=8),a}return pe(a,(function(t){var e,r,o,u,f;return{lineStart:function(){u=o=!1,f=1},point:function(h,p){var d,g=[h,p],m=a(h,p),v=n?m?0:c(h,p):m?c(h+(h&lt;0?s:-s),p):0;if(!e&amp;&amp;(u=o=m)&amp;&amp;t.lineStart(),m!==o&amp;&amp;(!(d=l(e,g))||oe(e,d)||oe(g,d))&amp;&amp;(g[2]=1),m!==o)f=0,m?(t.lineStart(),d=l(g,e),t.point(d[0],d[1])):(d=l(e,g),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&amp;&amp;e&amp;&amp;n^m){var y;v&amp;r||!(y=l(g,e,!0))||(f=0,n?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!m||e&amp;&amp;oe(e,g)||t.point(g[0],g[1]),e=g,o=m,r=v},lineEnd:function(){o&amp;&amp;t.lineEnd(),e=null},clean:function(){return f|(u&amp;&amp;o)&lt;&lt;1}}}),(function(e,n,i,a){ne(a,t,r,i,e,n)}),n?[0,-t]:[-s,t-s])}function ye(t,r,n,i){function a(e,a){return t&lt;=e&amp;&amp;e&lt;=n&amp;&amp;r&lt;=a&amp;&amp;a&lt;=i}function s(e,a,o,s){var c=0,f=0;if(null==e||(c=l(e,o))!==(f=l(a,o))||u(e,a)&lt;0^o&gt;0)do{s.point(0===c||3===c?t:n,c&gt;1?i:r)}while((c=(c+o+4)%4)!==f);else s.point(a[0],a[1])}function l(e,i){return p(e[0]-t)&lt;o?i&gt;0?0:3:p(e[0]-n)&lt;o?i&gt;0?2:1:p(e[1]-r)&lt;o?i&gt;0?1:0:i&gt;0?3:2}function c(t,e){return u(t.x,e.x)}function u(t,e){var r=l(t,1),n=l(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(o){var l,u,f,h,p,d,g,m,v,y,x,b=o,_=ae(),w={point:T,lineStart:function(){w.point=k,u&amp;&amp;u.push(f=[]);y=!0,v=!1,g=m=NaN},lineEnd:function(){l&amp;&amp;(k(h,p),d&amp;&amp;v&amp;&amp;_.rejoin(),l.push(_.result()));w.point=T,v&amp;&amp;b.lineEnd()},polygonStart:function(){b=_,l=[],u=[],x=!0},polygonEnd:function(){var r=function(){for(var e=0,r=0,n=u.length;r&lt;n;++r)for(var a,o,s=u[r],l=1,c=s.length,f=s[0],h=f[0],p=f[1];l&lt;c;++l)a=h,o=p,f=s[l],h=f[0],p=f[1],o&lt;=i?p&gt;i&amp;&amp;(h-a)*(i-o)&gt;(p-o)*(t-a)&amp;&amp;++e:p&lt;=i&amp;&amp;(h-a)*(i-o)&lt;(p-o)*(t-a)&amp;&amp;--e;return e}(),n=x&amp;&amp;r,a=(l=e.merge(l)).length;(n||a)&amp;&amp;(o.polygonStart(),n&amp;&amp;(o.lineStart(),s(null,null,1,o),o.lineEnd()),a&amp;&amp;le(l,c,r,s,o),o.polygonEnd());b=o,l=u=f=null}};function T(t,e){a(t,e)&amp;&amp;b.point(t,e)}function k(e,o){var s=a(e,o);if(u&amp;&amp;f.push([e,o]),y)h=e,p=o,d=s,y=!1,s&amp;&amp;(b.lineStart(),b.point(e,o));else if(s&amp;&amp;v)b.point(e,o);else{var l=[g=Math.max(-1e9,Math.min(1e9,g)),m=Math.max(-1e9,Math.min(1e9,m))],c=[e=Math.max(-1e9,Math.min(1e9,e)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,e,r,n,i,a){var o,s=t[0],l=t[1],c=0,u=1,f=e[0]-s,h=e[1]-l;if(o=r-s,f||!(o&gt;0)){if(o/=f,f&lt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}else if(f&gt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}if(o=i-s,f||!(o&lt;0)){if(o/=f,f&lt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}else if(f&gt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}if(o=n-l,h||!(o&gt;0)){if(o/=h,h&lt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}else if(h&gt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}if(o=a-l,h||!(o&lt;0)){if(o/=h,h&lt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}else if(h&gt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}return c&gt;0&amp;&amp;(t[0]=s+c*f,t[1]=l+c*h),u&lt;1&amp;&amp;(e[0]=s+u*f,e[1]=l+u*h),!0}}}}}(l,c,t,r,n,i)?s&amp;&amp;(b.lineStart(),b.point(e,o),x=!1):(v||(b.lineStart(),b.point(l[0],l[1])),b.point(c[0],c[1]),s||b.lineEnd(),x=!1)}g=e,m=o,v=s}return w}}var xe,be,_e,we=r(),Te={sphere:E,point:E,lineStart:function(){Te.point=Ae,Te.lineEnd=ke},lineEnd:E,polygonStart:E,polygonEnd:E};function ke(){Te.point=Te.lineEnd=E}function Ae(t,e){xe=t*=h,be=_(e*=h),_e=m(e),Te.point=Me}function Me(t,e){t*=h;var r=_(e*=h),n=m(e),i=p(t-xe),a=m(i),o=n*_(i),s=_e*r-be*n*a,l=be*r+_e*n*a;we.add(g(T(o*o+s*s),l)),xe=t,be=r,_e=n}function Se(t){return we.reset(),z(t,Te),+we}var Ee=[null,null],Le={type:&quot;LineString&quot;,coordinates:Ee};function Ce(t,e){return Ee[0]=t,Ee[1]=e,Se(Le)}var Pe={Feature:function(t,e){return Oe(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)if(Oe(r[n].geometry,e))return!0;return!1}},Ie={Sphere:function(){return!0},Point:function(t,e){return ze(t.coordinates,e)},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)if(ze(r[n],e))return!0;return!1},LineString:function(t,e){return De(t.coordinates,e)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)if(De(r[n],e))return!0;return!1},Polygon:function(t,e){return Re(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)if(Re(r[n],e))return!0;return!1},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)if(Oe(r[n],e))return!0;return!1}};function Oe(t,e){return!(!t||!Ie.hasOwnProperty(t.type))&amp;&amp;Ie[t.type](t,e)}function ze(t,e){return 0===Ce(t,e)}function De(t,e){for(var r,n,i,a=0,o=t.length;a&lt;o;a++){if(0===(n=Ce(t[a],e)))return!0;if(a&gt;0&amp;&amp;(i=Ce(t[a],t[a-1]))&gt;0&amp;&amp;r&lt;=i&amp;&amp;n&lt;=i&amp;&amp;(r+n-i)*(1-Math.pow((r-n)/i,2))&lt;1e-12*i)return!0;r=n}return!1}function Re(t,e){return!!he(t.map(Fe),Be(e))}function Fe(t){return(t=t.map(Be)).pop(),t}function Be(t){return[t[0]*h,t[1]*h]}function Ne(t,r,n){var i=e.range(t,r-o,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function je(t,r,n){var i=e.range(t,r-o,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function Ue(){var t,r,n,i,a,s,l,c,u,f,h,d,g=10,m=g,y=90,x=360,b=2.5;function _(){return{type:&quot;MultiLineString&quot;,coordinates:w()}}function w(){return e.range(v(i/y)*y,n,y).map(h).concat(e.range(v(c/x)*x,l,x).map(d)).concat(e.range(v(r/g)*g,t,g).filter((function(t){return p(t%y)&gt;o})).map(u)).concat(e.range(v(s/m)*m,a,m).filter((function(t){return p(t%x)&gt;o})).map(f))}return _.lines=function(){return w().map((function(t){return{type:&quot;LineString&quot;,coordinates:t}}))},_.outline=function(){return{type:&quot;Polygon&quot;,coordinates:[h(i).concat(d(l).slice(1),h(n).reverse().slice(1),d(c).reverse().slice(1))]}},_.extent=function(t){return arguments.length?_.extentMajor(t).extentMinor(t):_.extentMinor()},_.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],c=+t[0][1],l=+t[1][1],i&gt;n&amp;&amp;(t=i,i=n,n=t),c&gt;l&amp;&amp;(t=c,c=l,l=t),_.precision(b)):[[i,c],[n,l]]},_.extentMinor=function(e){return arguments.length?(r=+e[0][0],t=+e[1][0],s=+e[0][1],a=+e[1][1],r&gt;t&amp;&amp;(e=r,r=t,t=e),s&gt;a&amp;&amp;(e=s,s=a,a=e),_.precision(b)):[[r,s],[t,a]]},_.step=function(t){return arguments.length?_.stepMajor(t).stepMinor(t):_.stepMinor()},_.stepMajor=function(t){return arguments.length?(y=+t[0],x=+t[1],_):[y,x]},_.stepMinor=function(t){return arguments.length?(g=+t[0],m=+t[1],_):[g,m]},_.precision=function(e){return arguments.length?(b=+e,u=Ne(s,a,90),f=je(r,t,b),h=Ne(c,l,90),d=je(i,n,b),_):b},_.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ve(t){return t}var qe,He,Ge,Ye,We=r(),Xe=r(),Ze={point:E,lineStart:E,lineEnd:E,polygonStart:function(){Ze.lineStart=Je,Ze.lineEnd=$e},polygonEnd:function(){Ze.lineStart=Ze.lineEnd=Ze.point=E,We.add(p(Xe)),Xe.reset()},result:function(){var t=We/2;return We.reset(),t}};function Je(){Ze.point=Ke}function Ke(t,e){Ze.point=Qe,qe=Ge=t,He=Ye=e}function Qe(t,e){Xe.add(Ye*t-Ge*e),Ge=t,Ye=e}function $e(){Qe(qe,He)}var tr=1/0,er=tr,rr=-tr,nr=rr,ir={point:function(t,e){t&lt;tr&amp;&amp;(tr=t);t&gt;rr&amp;&amp;(rr=t);e&lt;er&amp;&amp;(er=e);e&gt;nr&amp;&amp;(nr=e)},lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E,result:function(){var t=[[tr,er],[rr,nr]];return rr=nr=-(er=tr=1/0),t}};var ar,or,sr,lr,cr=0,ur=0,fr=0,hr=0,pr=0,dr=0,gr=0,mr=0,vr=0,yr={point:xr,lineStart:br,lineEnd:Tr,polygonStart:function(){yr.lineStart=kr,yr.lineEnd=Ar},polygonEnd:function(){yr.point=xr,yr.lineStart=br,yr.lineEnd=Tr},result:function(){var t=vr?[gr/vr,mr/vr]:dr?[hr/dr,pr/dr]:fr?[cr/fr,ur/fr]:[NaN,NaN];return cr=ur=fr=hr=pr=dr=gr=mr=vr=0,t}};function xr(t,e){cr+=t,ur+=e,++fr}function br(){yr.point=_r}function _r(t,e){yr.point=wr,xr(sr=t,lr=e)}function wr(t,e){var r=t-sr,n=e-lr,i=T(r*r+n*n);hr+=i*(sr+t)/2,pr+=i*(lr+e)/2,dr+=i,xr(sr=t,lr=e)}function Tr(){yr.point=xr}function kr(){yr.point=Mr}function Ar(){Sr(ar,or)}function Mr(t,e){yr.point=Sr,xr(ar=sr=t,or=lr=e)}function Sr(t,e){var r=t-sr,n=e-lr,i=T(r*r+n*n);hr+=i*(sr+t)/2,pr+=i*(lr+e)/2,dr+=i,gr+=(i=lr*t-sr*e)*(sr+t),mr+=i*(lr+e),vr+=3*i,xr(sr=t,lr=e)}function Er(t){this._context=t}Er.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&amp;&amp;this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,u)}},result:E};var Lr,Cr,Pr,Ir,Or,zr=r(),Dr={point:E,lineStart:function(){Dr.point=Rr},lineEnd:function(){Lr&amp;&amp;Fr(Cr,Pr),Dr.point=E},polygonStart:function(){Lr=!0},polygonEnd:function(){Lr=null},result:function(){var t=+zr;return zr.reset(),t}};function Rr(t,e){Dr.point=Fr,Cr=Ir=t,Pr=Or=e}function Fr(t,e){Ir-=t,Or-=e,zr.add(T(Ir*Ir+Or*Or)),Ir=t,Or=e}function Br(){this._string=[]}function Nr(t){return&quot;m0,&quot;+t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+-2*t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+2*t+&quot;z&quot;}function jr(t){return function(e){var r=new Ur;for(var n in t)r[n]=t[n];return r.stream=e,r}}function Ur(){}function Vr(t,e,r){var n=t.clipExtent&amp;&amp;t.clipExtent();return t.scale(150).translate([0,0]),null!=n&amp;&amp;t.clipExtent(null),z(r,t.stream(ir)),e(ir.result()),null!=n&amp;&amp;t.clipExtent(n),t}function qr(t,e,r){return Vr(t,(function(r){var n=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(n/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),o=+e[0][0]+(n-a*(r[1][0]+r[0][0]))/2,s=+e[0][1]+(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])}),r)}function Hr(t,e,r){return qr(t,[[0,0],e],r)}function Gr(t,e,r){return Vr(t,(function(r){var n=+e,i=n/(r[1][0]-r[0][0]),a=(n-i*(r[1][0]+r[0][0]))/2,o=-i*r[0][1];t.scale(150*i).translate([a,o])}),r)}function Yr(t,e,r){return Vr(t,(function(r){var n=+e,i=n/(r[1][1]-r[0][1]),a=-i*r[0][0],o=(n-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([a,o])}),r)}Br.prototype={_radius:4.5,_circle:Nr(4.5),pointRadius:function(t){return(t=+t)!==this._radius&amp;&amp;(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&amp;&amp;this._string.push(&quot;Z&quot;),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push(&quot;M&quot;,t,&quot;,&quot;,e),this._point=1;break;case 1:this._string.push(&quot;L&quot;,t,&quot;,&quot;,e);break;default:null==this._circle&amp;&amp;(this._circle=Nr(this._radius)),this._string.push(&quot;M&quot;,t,&quot;,&quot;,e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join(&quot;&quot;);return this._string=[],t}return null}},Ur.prototype={constructor:Ur,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Wr=m(30*h);function Xr(t,e){return+e?function(t,e){function r(n,i,a,s,l,c,u,f,h,d,m,v,y,x){var b=u-n,_=f-i,w=b*b+_*_;if(w&gt;4*e&amp;&amp;y--){var k=s+d,A=l+m,S=c+v,E=T(k*k+A*A+S*S),L=M(S/=E),C=p(p(S)-1)&lt;o||p(a-h)&lt;o?(a+h)/2:g(A,k),P=t(C,L),I=P[0],O=P[1],z=I-n,D=O-i,R=_*z-b*D;(R*R/w&gt;e||p((b*z+_*D)/w-.5)&gt;.3||s*d+l*m+c*v&lt;Wr)&amp;&amp;(r(n,i,a,s,l,c,I,O,C,k/=E,A/=E,S,y,x),x.point(I,O),r(I,O,C,k,A,S,u,f,h,d,m,v,y,x))}}return function(e){var n,i,a,o,s,l,c,u,f,h,p,d,g={point:m,lineStart:v,lineEnd:x,polygonStart:function(){e.polygonStart(),g.lineStart=b},polygonEnd:function(){e.polygonEnd(),g.lineStart=v}};function m(r,n){r=t(r,n),e.point(r[0],r[1])}function v(){u=NaN,g.point=y,e.lineStart()}function y(n,i){var a=X([n,i]),o=t(n,i);r(u,f,c,h,p,d,u=o[0],f=o[1],c=n,h=a[0],p=a[1],d=a[2],16,e),e.point(u,f)}function x(){g.point=m,e.lineEnd()}function b(){v(),g.point=_,g.lineEnd=w}function _(t,e){y(n=t,e),i=u,a=f,o=h,s=p,l=d,g.point=y}function w(){r(u,f,c,h,p,d,i,a,n,o,s,l,16,e),g.lineEnd=x,x()}return g}}(t,e):function(t){return jr({point:function(e,r){e=t(e,r),this.stream.point(e[0],e[1])}})}(t)}var Zr=jr({point:function(t,e){this.stream.point(t*h,e*h)}});function Jr(t,e,r,n,i){function a(a,o){return[e+t*(a*=n),r-t*(o*=i)]}return a.invert=function(a,o){return[(a-e)/t*n,(r-o)/t*i]},a}function Kr(t,e,r,n,i,a){var o=m(a),s=_(a),l=o*t,c=s*t,u=o/t,f=s/t,h=(s*r-o*e)/t,p=(s*e+o*r)/t;function d(t,a){return[l*(t*=n)-c*(a*=i)+e,r-c*t-l*a]}return d.invert=function(t,e){return[n*(u*t-f*e+h),i*(p-f*t-u*e)]},d}function Qr(t){return $r((function(){return t}))()}function $r(t){var e,r,n,i,a,o,s,l,c,u,p=150,d=480,g=250,m=0,v=0,y=0,x=0,b=0,_=0,w=1,k=1,A=null,M=me,S=null,E=Ve,L=.5;function C(t){return l(t[0]*h,t[1]*h)}function P(t){return(t=l.invert(t[0],t[1]))&amp;&amp;[t[0]*f,t[1]*f]}function I(){var t=Kr(p,0,0,w,k,_).apply(null,e(m,v)),n=(_?Kr:Jr)(p,d-t[0],g-t[1],w,k,_);return r=Qt(y,x,b),s=Jt(e,n),l=Jt(r,s),o=Xr(s,L),O()}function O(){return c=u=null,C}return C.stream=function(t){return c&amp;&amp;u===t?c:c=Zr(function(t){return jr({point:function(e,r){var n=t(e,r);return this.stream.point(n[0],n[1])}})}(r)(M(o(E(u=t)))))},C.preclip=function(t){return arguments.length?(M=t,A=void 0,O()):M},C.postclip=function(t){return arguments.length?(E=t,S=n=i=a=null,O()):E},C.clipAngle=function(t){return arguments.length?(M=+t?ve(A=t*h):(A=null,me),O()):A*f},C.clipExtent=function(t){return arguments.length?(E=null==t?(S=n=i=a=null,Ve):ye(S=+t[0][0],n=+t[0][1],i=+t[1][0],a=+t[1][1]),O()):null==S?null:[[S,n],[i,a]]},C.scale=function(t){return arguments.length?(p=+t,I()):p},C.translate=function(t){return arguments.length?(d=+t[0],g=+t[1],I()):[d,g]},C.center=function(t){return arguments.length?(m=t[0]%360*h,v=t[1]%360*h,I()):[m*f,v*f]},C.rotate=function(t){return arguments.length?(y=t[0]%360*h,x=t[1]%360*h,b=t.length&gt;2?t[2]%360*h:0,I()):[y*f,x*f,b*f]},C.angle=function(t){return arguments.length?(_=t%360*h,I()):_*f},C.reflectX=function(t){return arguments.length?(w=t?-1:1,I()):w&lt;0},C.reflectY=function(t){return arguments.length?(k=t?-1:1,I()):k&lt;0},C.precision=function(t){return arguments.length?(o=Xr(s,L=t*t),O()):T(L)},C.fitExtent=function(t,e){return qr(C,t,e)},C.fitSize=function(t,e){return Hr(C,t,e)},C.fitWidth=function(t,e){return Gr(C,t,e)},C.fitHeight=function(t,e){return Yr(C,t,e)},function(){return e=t.apply(this,arguments),C.invert=e.invert&amp;&amp;P,I()}}function tn(t){var e=0,r=s/3,n=$r(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*h,r=t[1]*h):[e*f,r*f]},i}function en(t,e){var r=_(t),n=(r+_(e))/2;if(p(n)&lt;o)return function(t){var e=m(t);function r(t,r){return[t*e,_(r)/e]}return r.invert=function(t,r){return[t/e,M(r*e)]},r}(t);var i=1+r*(2*n-r),a=T(i)/n;function l(t,e){var r=T(i-2*n*_(e))/n;return[r*_(t*=n),a-r*m(t)]}return l.invert=function(t,e){var r=a-e,o=g(t,p(r))*w(r);return r*n&lt;0&amp;&amp;(o-=s*w(t)*w(r)),[o/n,M((i-(t*t+r*r)*n*n)/(2*n))]},l}function rn(){return tn(en).scale(155.424).center([0,33.6442])}function nn(){return rn().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function an(t){return function(e,r){var n=m(e),i=m(r),a=t(n*i);return[a*i*_(e),a*_(r)]}}function on(t){return function(e,r){var n=T(e*e+r*r),i=t(n),a=_(i),o=m(i);return[g(e*a,n*o),M(n&amp;&amp;r*a/n)]}}var sn=an((function(t){return T(2/(1+t))}));sn.invert=on((function(t){return 2*M(t/2)}));var ln=an((function(t){return(t=A(t))&amp;&amp;t/_(t)}));function cn(t,e){return[t,x(k((l+e)/2))]}function un(t){var e,r,n,i=Qr(t),a=i.center,o=i.scale,l=i.translate,c=i.clipExtent,u=null;function f(){var a=s*o(),l=i(re(i.rotate()).invert([0,0]));return c(null==u?[[l[0]-a,l[1]-a],[l[0]+a,l[1]+a]]:t===cn?[[Math.max(l[0]-a,u),e],[Math.min(l[0]+a,r),n]]:[[u,Math.max(l[1]-a,e)],[r,Math.min(l[1]+a,n)]])}return i.scale=function(t){return arguments.length?(o(t),f()):o()},i.translate=function(t){return arguments.length?(l(t),f()):l()},i.center=function(t){return arguments.length?(a(t),f()):a()},i.clipExtent=function(t){return arguments.length?(null==t?u=e=r=n=null:(u=+t[0][0],e=+t[0][1],r=+t[1][0],n=+t[1][1]),f()):null==u?null:[[u,e],[r,n]]},f()}function fn(t){return k((l+t)/2)}function hn(t,e){var r=m(t),n=t===e?_(t):x(r/m(e))/x(fn(e)/fn(t)),i=r*b(fn(t),n)/n;if(!n)return cn;function a(t,e){i&gt;0?e&lt;-l+o&amp;&amp;(e=-l+o):e&gt;l-o&amp;&amp;(e=l-o);var r=i/b(fn(e),n);return[r*_(n*t),i-r*m(n*t)]}return a.invert=function(t,e){var r=i-e,a=w(n)*T(t*t+r*r),o=g(t,p(r))*w(r);return r*n&lt;0&amp;&amp;(o-=s*w(t)*w(r)),[o/n,2*d(b(i/a,1/n))-l]},a}function pn(t,e){return[t,e]}function dn(t,e){var r=m(t),n=t===e?_(t):(r-m(e))/(e-t),i=r/n+t;if(p(n)&lt;o)return pn;function a(t,e){var r=i-e,a=n*t;return[r*_(a),i-r*m(a)]}return a.invert=function(t,e){var r=i-e,a=g(t,p(r))*w(r);return r*n&lt;0&amp;&amp;(a-=s*w(t)*w(r)),[a/n,i-w(n)*T(t*t+r*r)]},a}ln.invert=on((function(t){return t})),cn.invert=function(t,e){return[t,2*d(y(e))-l]},pn.invert=pn;var gn=1.340264,mn=-.081106,vn=893e-6,yn=.003796,xn=T(3)/2;function bn(t,e){var r=M(xn*_(e)),n=r*r,i=n*n*n;return[t*m(r)/(xn*(gn+3*mn*n+i*(7*vn+9*yn*n))),r*(gn+mn*n+i*(vn+yn*n))]}function _n(t,e){var r=m(e),n=m(t)*r;return[r*_(t)/n,_(e)/n]}function wn(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}function Tn(t,e){return[m(e)*_(t),_(e)]}function kn(t,e){var r=m(e),n=1+m(t)*r;return[r*_(t)/n,_(e)/n]}function An(t,e){return[x(k((l+e)/2)),-t]}bn.invert=function(t,e){for(var r,n=e,i=n*n,a=i*i*i,o=0;o&lt;12&amp;&amp;(a=(i=(n-=r=(n*(gn+mn*i+a*(vn+yn*i))-e)/(gn+3*mn*i+a*(7*vn+9*yn*i)))*n)*i*i,!(p(r)&lt;1e-12));++o);return[xn*t*(gn+3*mn*i+a*(7*vn+9*yn*i))/m(n),M(_(n)/xn)]},_n.invert=on(d),wn.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,s=a*a;n-=r=(n*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(p(r)&gt;o&amp;&amp;--i&gt;0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},Tn.invert=on(M),kn.invert=on((function(t){return 2*d(t)})),An.invert=function(t,e){return[-e,2*d(y(t))-l]},t.geoAlbers=nn,t.geoAlbersUsa=function(){var t,e,r,n,i,a,s=nn(),l=rn().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=rn().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){a=[t,e]}};function f(t){var e=t[0],o=t[1];return a=null,r.point(e,o),a||(n.point(e,o),a)||(i.point(e,o),a)}function h(){return t=e=null,f}return f.invert=function(t){var e=s.scale(),r=s.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i&gt;=.12&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.425&amp;&amp;n&lt;-.214?l:i&gt;=.166&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.214&amp;&amp;n&lt;-.115?c:s).invert(t)},f.stream=function(r){return t&amp;&amp;e===r?t:(n=[s.stream(e=r),l.stream(r),c.stream(r)],i=n.length,t={point:function(t,e){for(var r=-1;++r&lt;i;)n[r].point(t,e)},sphere:function(){for(var t=-1;++t&lt;i;)n[t].sphere()},lineStart:function(){for(var t=-1;++t&lt;i;)n[t].lineStart()},lineEnd:function(){for(var t=-1;++t&lt;i;)n[t].lineEnd()},polygonStart:function(){for(var t=-1;++t&lt;i;)n[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t&lt;i;)n[t].polygonEnd()}});var n,i},f.precision=function(t){return arguments.length?(s.precision(t),l.precision(t),c.precision(t),h()):s.precision()},f.scale=function(t){return arguments.length?(s.scale(t),l.scale(.35*t),c.scale(t),f.translate(s.translate())):s.scale()},f.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),a=+t[0],f=+t[1];return r=s.translate(t).clipExtent([[a-.455*e,f-.238*e],[a+.455*e,f+.238*e]]).stream(u),n=l.translate([a-.307*e,f+.201*e]).clipExtent([[a-.425*e+o,f+.12*e+o],[a-.214*e-o,f+.234*e-o]]).stream(u),i=c.translate([a-.205*e,f+.212*e]).clipExtent([[a-.214*e+o,f+.166*e+o],[a-.115*e-o,f+.234*e-o]]).stream(u),h()},f.fitExtent=function(t,e){return qr(f,t,e)},f.fitSize=function(t,e){return Hr(f,t,e)},f.fitWidth=function(t,e){return Gr(f,t,e)},f.fitHeight=function(t,e){return Yr(f,t,e)},f.scale(1070)},t.geoArea=function(t){return U.reset(),z(t,V),2*U},t.geoAzimuthalEqualArea=function(){return Qr(sn).scale(124.75).clipAngle(179.999)},t.geoAzimuthalEqualAreaRaw=sn,t.geoAzimuthalEquidistant=function(){return Qr(ln).scale(79.4188).clipAngle(179.999)},t.geoAzimuthalEquidistantRaw=ln,t.geoBounds=function(t){var e,r,n,i,a,o,s;if(nt=rt=-(tt=et=1/0),lt=[],z(t,St),r=lt.length){for(lt.sort(Rt),e=1,a=[n=lt[0]];e&lt;r;++e)Ft(n,(i=lt[e])[0])||Ft(n,i[1])?(Dt(n[0],i[1])&gt;Dt(n[0],n[1])&amp;&amp;(n[1]=i[1]),Dt(i[0],n[1])&gt;Dt(n[0],n[1])&amp;&amp;(n[0]=i[0])):a.push(n=i);for(o=-1/0,e=0,n=a[r=a.length-1];e&lt;=r;n=i,++e)i=a[e],(s=Dt(n[1],i[0]))&gt;o&amp;&amp;(o=s,tt=i[0],rt=n[1])}return lt=ct=null,tt===1/0||et===1/0?[[NaN,NaN],[NaN,NaN]]:[[tt,et],[rt,nt]]},t.geoCentroid=function(t){ut=ft=ht=pt=dt=gt=mt=vt=yt=xt=bt=0,z(t,Bt);var e=yt,r=xt,n=bt,i=e*e+r*r+n*n;return i&lt;1e-12&amp;&amp;(e=gt,r=mt,n=vt,ft&lt;o&amp;&amp;(e=ht,r=pt,n=dt),(i=e*e+r*r+n*n)&lt;1e-12)?[NaN,NaN]:[g(r,e)*f,M(n/T(i))*f]},t.geoCircle=function(){var t,e,r=Zt([0,0]),n=Zt(90),i=Zt(6),a={point:function(r,n){t.push(r=e(r,n)),r[0]*=f,r[1]*=f}};function o(){var o=r.apply(this,arguments),s=n.apply(this,arguments)*h,l=i.apply(this,arguments)*h;return t=[],e=Qt(-o[0]*h,-o[1]*h,0).invert,ne(a,s,l,1),o={type:&quot;Polygon&quot;,coordinates:[t]},t=e=null,o}return o.center=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Zt([+t[0],+t[1]]),o):r},o.radius=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:Zt(+t),o):n},o.precision=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:Zt(+t),o):i},o},t.geoClipAntimeridian=me,t.geoClipCircle=ve,t.geoClipExtent=function(){var t,e,r,n=0,i=0,a=960,o=500;return r={stream:function(r){return t&amp;&amp;e===r?t:t=ye(n,i,a,o)(e=r)},extent:function(s){return arguments.length?(n=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,r):[[n,i],[a,o]]}}},t.geoClipRectangle=ye,t.geoConicConformal=function(){return tn(hn).scale(109.5).parallels([30,30])},t.geoConicConformalRaw=hn,t.geoConicEqualArea=rn,t.geoConicEqualAreaRaw=en,t.geoConicEquidistant=function(){return tn(dn).scale(131.154).center([0,13.9389])},t.geoConicEquidistantRaw=dn,t.geoContains=function(t,e){return(t&amp;&amp;Pe.hasOwnProperty(t.type)?Pe[t.type]:Oe)(t,e)},t.geoDistance=Ce,t.geoEqualEarth=function(){return Qr(bn).scale(177.158)},t.geoEqualEarthRaw=bn,t.geoEquirectangular=function(){return Qr(pn).scale(152.63)},t.geoEquirectangularRaw=pn,t.geoGnomonic=function(){return Qr(_n).scale(144.049).clipAngle(60)},t.geoGnomonicRaw=_n,t.geoGraticule=Ue,t.geoGraticule10=function(){return Ue()()},t.geoIdentity=function(){var t,e,r,n,i,a,o,s=1,l=0,c=0,u=1,p=1,d=0,g=null,v=1,y=1,x=jr({point:function(t,e){var r=T([t,e]);this.stream.point(r[0],r[1])}}),b=Ve;function w(){return v=s*u,y=s*p,a=o=null,T}function T(r){var n=r[0]*v,i=r[1]*y;if(d){var a=i*t-n*e;n=n*t+i*e,i=a}return[n+l,i+c]}return T.invert=function(r){var n=r[0]-l,i=r[1]-c;if(d){var a=i*t+n*e;n=n*t-i*e,i=a}return[n/v,i/y]},T.stream=function(t){return a&amp;&amp;o===t?a:a=x(b(o=t))},T.postclip=function(t){return arguments.length?(b=t,g=r=n=i=null,w()):b},T.clipExtent=function(t){return arguments.length?(b=null==t?(g=r=n=i=null,Ve):ye(g=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),w()):null==g?null:[[g,r],[n,i]]},T.scale=function(t){return arguments.length?(s=+t,w()):s},T.translate=function(t){return arguments.length?(l=+t[0],c=+t[1],w()):[l,c]},T.angle=function(r){return arguments.length?(e=_(d=r%360*h),t=m(d),w()):d*f},T.reflectX=function(t){return arguments.length?(u=t?-1:1,w()):u&lt;0},T.reflectY=function(t){return arguments.length?(p=t?-1:1,w()):p&lt;0},T.fitExtent=function(t,e){return qr(T,t,e)},T.fitSize=function(t,e){return Hr(T,t,e)},T.fitWidth=function(t,e){return Gr(T,t,e)},T.fitHeight=function(t,e){return Yr(T,t,e)},T},t.geoInterpolate=function(t,e){var r=t[0]*h,n=t[1]*h,i=e[0]*h,a=e[1]*h,o=m(n),s=_(n),l=m(a),c=_(a),u=o*m(r),p=o*_(r),d=l*m(i),v=l*_(i),y=2*M(T(S(a-n)+o*l*S(i-r))),x=_(y),b=y?function(t){var e=_(t*=y)/x,r=_(y-t)/x,n=r*u+e*d,i=r*p+e*v,a=r*s+e*c;return[g(i,n)*f,g(a,T(n*n+i*i))*f]}:function(){return[r*f,n*f]};return b.distance=y,b},t.geoLength=Se,t.geoMercator=function(){return un(cn).scale(961/u)},t.geoMercatorRaw=cn,t.geoNaturalEarth1=function(){return Qr(wn).scale(175.295)},t.geoNaturalEarth1Raw=wn,t.geoOrthographic=function(){return Qr(Tn).scale(249.5).clipAngle(90+o)},t.geoOrthographicRaw=Tn,t.geoPath=function(t,e){var r,n,i=4.5;function a(t){return t&amp;&amp;(&quot;function&quot;==typeof i&amp;&amp;n.pointRadius(+i.apply(this,arguments)),z(t,r(n))),n.result()}return a.area=function(t){return z(t,r(Ze)),Ze.result()},a.measure=function(t){return z(t,r(Dr)),Dr.result()},a.bounds=function(t){return z(t,r(ir)),ir.result()},a.centroid=function(t){return z(t,r(yr)),yr.result()},a.projection=function(e){return arguments.length?(r=null==e?(t=null,Ve):(t=e).stream,a):t},a.context=function(t){return arguments.length?(n=null==t?(e=null,new Br):new Er(e=t),&quot;function&quot;!=typeof i&amp;&amp;n.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:(n.pointRadius(+t),+t),a):i},a.projection(t).context(e)},t.geoProjection=Qr,t.geoProjectionMutator=$r,t.geoRotation=re,t.geoStereographic=function(){return Qr(kn).scale(250).clipAngle(142)},t.geoStereographicRaw=kn,t.geoStream=z,t.geoTransform=function(t){return{stream:jr(t)}},t.geoTransverseMercator=function(){var t=un(An),e=t.center,r=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?r([t[0],t[1],t.length&gt;2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=An,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:162}],170:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&amp;&amp;r.length;if(n)for(;--n&gt;=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,u=new c(t),f=+t.value&amp;&amp;(u.value=t.value),h=[u];for(null==e&amp;&amp;(e=o);r=h.pop();)if(f&amp;&amp;(r.value=+r.data.value),(i=e(r.data))&amp;&amp;(s=i.length))for(r.children=new Array(s),a=s-1;a&gt;=0;--a)h.push(n=r.children[a]=new c(i[a])),n.parent=r,n.depth=r.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&amp;&amp;t.height&lt;++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=a.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n&lt;i;++n)o.push(r[n])}while(o.length);return this},eachAfter:function(t){for(var e,r,n,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(r=0,n=e.length;r&lt;n;++r)a.push(e[r]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,r,n=this,i=[n];n=i.pop();)if(t(n),e=n.children)for(r=e.length-1;r&gt;=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&amp;&amp;n.length;--i&gt;=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&amp;&amp;e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;t=r.pop(),e=n.pop();for(;t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&amp;&amp;e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var u=Array.prototype.slice;function f(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(u.call(t))).length,a=[];n&lt;i;)e=t[n],r&amp;&amp;d(r,e)?++n:(r=m(a=h(a,e)),n=0);return r}function h(t,e){var r,n;if(g(e,t))return[e];for(r=0;r&lt;t.length;++r)if(p(e,t[r])&amp;&amp;g(v(t[r],e),t))return[t[r],e];for(r=0;r&lt;t.length-1;++r)for(n=r+1;n&lt;t.length;++n)if(p(v(t[r],t[n]),e)&amp;&amp;p(v(t[r],e),t[n])&amp;&amp;p(v(t[n],e),t[r])&amp;&amp;g(y(t[r],t[n],e),t))return[t[r],t[n],e];throw new Error}function p(t,e){var r=t.r-e.r,n=e.x-t.x,i=e.y-t.y;return r&lt;0||r*r&lt;n*n+i*i}function d(t,e){var r=t.r-e.r+1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function g(t,e){for(var r=0;r&lt;e.length;++r)if(!d(t,e[r]))return!1;return!0}function m(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return v(t[0],t[1]);case 3:return y(t[0],t[1],t[2])}var e}function v(t,e){var r=t.x,n=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-r,c=o-n,u=s-i,f=Math.sqrt(l*l+c*c);return{x:(r+a+l/f*u)/2,y:(n+o+c/f*u)/2,r:(f+i+s)/2}}function y(t,e,r){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=r.x,u=r.y,f=r.r,h=n-o,p=n-c,d=i-s,g=i-u,m=l-a,v=f-a,y=n*n+i*i-a*a,x=y-o*o-s*s+l*l,b=y-c*c-u*u+f*f,_=p*d-h*g,w=(d*b-g*x)/(2*_)-n,T=(g*m-d*v)/_,k=(p*x-h*b)/(2*_)-i,A=(h*v-p*m)/_,M=T*T+A*A-1,S=2*(a+w*T+k*A),E=w*w+k*k-a*a,L=-(M?(S+Math.sqrt(S*S-4*M*E))/(2*M):E/S);return{x:n+w+T*L,y:i+k+A*L,r:L}}function x(t,e,r){var n,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+r.r,i*=i,o=t.r+r.r,i&gt;(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function b(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function _(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i&gt;1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i&gt;2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;s&lt;i;++s){x(e._,r._,n=t[s]),n=new w(n),l=r.next,c=e.previous,u=r._.r,h=e._.r;do{if(u&lt;=h){if(b(l._,n._)){r=l,e.next=r,r.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(b(c._,n._)){(e=c).next=r,r.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);for(n.previous=e,n.next=r,e.next=r.previous=r=n,a=_(e);(n=n.next)!==r;)(o=_(n))&lt;a&amp;&amp;(e=n,a=o);r=e.next}for(e=[r._],n=r;(n=n.next)!==r;)e.push(n._);for(n=f(e),s=0;s&lt;i;++s)(e=t[s]).x-=n.x,e.y-=n.y;return n.r}function k(t){return null==t?null:A(t)}function A(t){if(&quot;function&quot;!=typeof t)throw new Error;return t}function M(){return 0}function S(t){return function(){return t}}function E(t){return Math.sqrt(t.value)}function L(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function C(t,e){return function(r){if(n=r.children){var n,i,a,o=n.length,s=t(r)*e||0;if(s)for(i=0;i&lt;o;++i)n[i].r+=s;if(a=T(n),s)for(i=0;i&lt;o;++i)n[i].r-=s;r.r=a+s}}}function P(t){return function(e){var r=e.parent;e.r*=t,r&amp;&amp;(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function I(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function O(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(n-e)/t.value;++s&lt;l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}var z={depth:-1},D={};function R(t){return t.id}function F(t){return t.parentId}function B(t,e){return t.parent===e.parent?1:2}function N(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function U(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function V(t,e,r){return t.a.parent===e.parent?t.a:r}function q(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function H(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(i-r)/t.value;++s&lt;l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}q.prototype=Object.create(c.prototype);var G=(1+Math.sqrt(5))/2;function Y(t,e,r,n,i,a){for(var o,s,l,c,u,f,h,p,d,g,m,v=[],y=e.children,x=0,b=0,_=y.length,w=e.value;x&lt;_;){l=i-r,c=a-n;do{u=y[b++].value}while(!u&amp;&amp;b&lt;_);for(f=h=u,m=u*u*(g=Math.max(c/l,l/c)/(w*t)),d=Math.max(h/m,m/f);b&lt;_;++b){if(u+=s=y[b].value,s&lt;f&amp;&amp;(f=s),s&gt;h&amp;&amp;(h=s),m=u*u*g,(p=Math.max(h/m,m/f))&gt;d){u-=s;break}d=p}v.push(o={value:u,dice:l&lt;c,children:y.slice(x,b)}),o.dice?O(o,r,n,i,w?n+=c*u/w:a):H(o,r,n,w?r+=l*u/w:i,a),w-=u,x=b}return v}var W=function t(e){function r(t,r,n,i,a){Y(e,t,r,n,i,a)}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);var X=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&amp;&amp;o.ratio===e)for(var o,s,l,c,u,f=-1,h=o.length,p=t.value;++f&lt;h;){for(l=(s=o[f]).children,c=s.value=0,u=l.length;c&lt;u;++c)s.value+=l[c].value;s.dice?O(s,r,n,i,n+=(a-n)*s.value/p):H(s,r,n,r+=(i-r)*s.value/p,a),p-=s.value}else t._squarify=o=Y(e,t,r,n,i,a),o.ratio=e}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=c.x-t(c,u)/2,h=u.x+t(u,c)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-f)/(h-f)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=M;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(L(t)).eachAfter(C(n,.5)).eachBefore(P(1)):i.eachBefore(L(E)).eachAfter(C(M,1)).eachAfter(C(n,i.r/Math.min(e,r))).eachBefore(P(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=k(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:S(+t),i):n},i},t.packEnclose=f,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&amp;&amp;O(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o&lt;i&amp;&amp;(i=o=(i+o)/2),s&lt;a&amp;&amp;(a=s=(a+s)/2),n.x0=i,n.y0=a,n.x1=o,n.y1=s}}(e,a)),n&amp;&amp;i.eachBefore(I),i}return i.round=function(t){return arguments.length?(n=!!t,i):n},i.size=function(r){return arguments.length?(t=+r[0],e=+r[1],i):[t,e]},i.padding=function(t){return arguments.length?(r=+t,i):r},i},t.stratify=function(){var t=R,e=F;function r(r){var n,i,a,o,s,u,f,h=r.length,p=new Array(h),d={};for(i=0;i&lt;h;++i)n=r[i],s=p[i]=new c(n),null!=(u=t(n,i,r))&amp;&amp;(u+=&quot;&quot;)&amp;&amp;(d[f=&quot;$&quot;+(s.id=u)]=f in d?D:s);for(i=0;i&lt;h;++i)if(s=p[i],null!=(u=e(r[i],i,r))&amp;&amp;(u+=&quot;&quot;)){if(!(o=d[&quot;$&quot;+u]))throw new Error(&quot;missing: &quot;+u);if(o===D)throw new Error(&quot;ambiguous: &quot;+u);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error(&quot;multiple roots&quot;);a=s}if(!a)throw new Error(&quot;no root&quot;);if(a.parent=z,a.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(l),a.parent=null,h&gt;0)throw new Error(&quot;cycle&quot;);return a}return r.id=function(e){return arguments.length?(t=A(e),r):t},r.parentId=function(t){return arguments.length?(e=A(t),r):e},r},t.tree=function(){var t=B,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new q(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i&gt;=0;--i)s.push(r=e.children[i]=new q(n[i],i)),r.parent=e;return(o.parent=new q(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.x&lt;c.x&amp;&amp;(c=t),t.x&gt;u.x&amp;&amp;(u=t),t.depth&gt;f.depth&amp;&amp;(f=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,d=e/(u.x+h+p),g=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&amp;&amp;(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=j(s),a=N(a),s&amp;&amp;a;)l=N(l),(o=j(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))&gt;0&amp;&amp;(U(V(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!j(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!N(l)&amp;&amp;(l.t=a,l.m+=c-h,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=W,e=!1,r=1,n=1,i=[0],a=M,o=M,s=M,l=M,c=M;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&amp;&amp;t.eachBefore(I),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,h=e.y1-r;f&lt;n&amp;&amp;(n=f=(n+f)/2),h&lt;u&amp;&amp;(u=h=(u+h)/2),e.x0=n,e.y0=u,e.x1=f,e.y1=h,e.children&amp;&amp;(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,(f-=s(e)-r)&lt;n&amp;&amp;(n=f=(n+f)/2),(h-=l(e)-r)&lt;u&amp;&amp;(u=h=(u+h)/2),t(e,n,u,f,h))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=A(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:S(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:S(+t),u):o},u.paddingRight=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:S(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l=&quot;function&quot;==typeof t?t:S(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c=&quot;function&quot;==typeof t?t:S(+t),u):c},u},t.treemapBinary=function(t,e,r,n,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a&lt;l;++a)c[a+1]=o+=s[a].value;!function t(e,r,n,i,a,o,l){if(e&gt;=r-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var f=c[e],h=n/2+f,p=e+1,d=r-1;for(;p&lt;d;){var g=p+d&gt;&gt;&gt;1;c[g]&lt;h?p=g+1:d=g}h-c[p-1]&lt;c[p]-h&amp;&amp;e+1&lt;p&amp;&amp;--p;var m=c[p]-f,v=n-m;if(o-i&gt;l-a){var y=(i*v+o*m)/n;t(e,p,m,i,a,y,l),t(p,r,v,y,a,o,l)}else{var x=(a*v+l*m)/n;t(e,p,m,i,a,o,x),t(p,r,v,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=O,t.treemapResquarify=X,t.treemapSlice=H,t.treemapSliceDice=function(t,e,r,n,i){(1&amp;t.depth?H:O)(t,e,r,n,i)},t.treemapSquarify=W,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],171:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-color&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n&lt;=0?n=0:n&gt;=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i&gt;0?t[i-1]:2*a-o,l=i&lt;e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)&lt;0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r&gt;180||r&lt;-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+&quot;&quot;}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n&lt;a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+&quot;&quot;}}}var h=f(n),p=f(i);function d(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r&lt;n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function g(t){return ArrayBuffer.isView(t)&amp;&amp;!(t instanceof DataView)}function m(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r&lt;i;++r)a[r]=T(t[r],e[r]);for(;r&lt;n;++r)o[r]=e[r];return function(t){for(r=0;r&lt;i;++r)o[r]=a[r](t);return o}}function v(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function y(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function x(t,e){var r,n={},i={};for(r in null!==t&amp;&amp;&quot;object&quot;==typeof t||(t={}),null!==e&amp;&amp;&quot;object&quot;==typeof e||(e={}),e)r in t?n[r]=T(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(b.source,&quot;g&quot;);function w(t,e){var r,n,i,a=b.lastIndex=_.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=b.exec(t))&amp;&amp;(n=_.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:y(r,n)})),a=_.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?function(t){return function(e){return t(e)+&quot;&quot;}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}function T(t,r){var n,i=typeof r;return null==r||&quot;boolean&quot;===i?a(r):(&quot;number&quot;===i?y:&quot;string&quot;===i?(n=e.color(r))?(r=n,u):w:r instanceof e.color?u:r instanceof Date?v:g(r)?d:Array.isArray(r)?m:&quot;function&quot;!=typeof r.valueOf&amp;&amp;&quot;function&quot;!=typeof r.toString||isNaN(r)?x:y)(t,r)}var k,A,M,S,E=180/Math.PI,L={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function C(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&amp;&amp;(t/=o,e/=o),(l=t*r+e*n)&amp;&amp;(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&amp;&amp;(r/=s,n/=s,l/=s),t*n&lt;e*r&amp;&amp;(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*E,skewX:Math.atan(l)*E,scaleX:o,scaleY:s}}function P(t,e,r,n){function i(t){return t.length?t.pop()+&quot; &quot;:&quot;&quot;}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(&quot;translate(&quot;,null,e,null,r);s.push({i:l-4,x:y(t,i)},{i:l-2,x:y(n,a)})}else(i||a)&amp;&amp;o.push(&quot;translate(&quot;+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),a.push({i:r.push(i(r)+&quot;rotate(&quot;,null,n)-2,x:y(t,e)})):e&amp;&amp;r.push(i(r)+&quot;rotate(&quot;+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+&quot;skewX(&quot;,null,n)-2,x:y(t,e)}):e&amp;&amp;r.push(i(r)+&quot;skewX(&quot;+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);o.push({i:s-4,x:y(t,r)},{i:s-2,x:y(e,n)})}else 1===r&amp;&amp;1===n||a.push(i(a)+&quot;scale(&quot;+r+&quot;,&quot;+n+&quot;)&quot;)}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r&lt;n;)s[(e=l[r]).i]=e.x(t);return s.join(&quot;&quot;)}}}var I=P((function(t){return&quot;none&quot;===t?L:(k||(k=document.createElement(&quot;DIV&quot;),A=document.documentElement,M=document.defaultView),k.style.transform=t,t=M.getComputedStyle(A.appendChild(k),null).getPropertyValue(&quot;transform&quot;),A.removeChild(k),C(+(t=t.slice(7,-1).split(&quot;,&quot;))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),&quot;px, &quot;,&quot;px)&quot;,&quot;deg)&quot;),O=P((function(t){return null==t?L:(S||(S=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;)),S.setAttribute(&quot;transform&quot;,t),(t=S.transform.baseVal.consolidate())?C((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):L)}),&quot;, &quot;,&quot;)&quot;,&quot;)&quot;),z=Math.SQRT2;function D(t){return((t=Math.exp(t))+1/t)/2}function R(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var F=R(s),B=R(c);function N(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var j=N(s),U=N(c);function V(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+&quot;&quot;}}return n=+n,i.gamma=r,i}(1)}var q=V(s),H=V(c);t.interpolate=T,t.interpolateArray=function(t,e){return(g(e)?d:m)(t,e)},t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateCubehelix=q,t.interpolateCubehelixLong=H,t.interpolateDate=v,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHcl=j,t.interpolateHclLong=U,t.interpolateHsl=F,t.interpolateHslLong=B,t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+&quot;&quot;}},t.interpolateNumber=y,t.interpolateNumberArray=d,t.interpolateObject=x,t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateRound=function(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}},t.interpolateString=w,t.interpolateTransformCss=I,t.interpolateTransformSvg=O,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/z,r=function(t){return[i+t*u,a+t*f,o*Math.exp(z*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/z,r=function(t){var e,r=t*n,s=D(m),l=o/(2*p)*(s*(e=z*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/D(z*r+m)]}}return r.duration=1e3*n,r},t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-color&quot;:164}],172:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=Math.PI,r=2*e,n=r-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=&quot;&quot;}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(t,e){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&amp;&amp;(this._x1=this._x0,this._y1=this._y0,this._+=&quot;Z&quot;)},lineTo:function(t,e){this._+=&quot;L&quot;+(this._x1=+t)+&quot;,&quot;+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+=&quot;Q&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+(this._x1=+r)+&quot;,&quot;+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+=&quot;C&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+ +r+&quot;,&quot;+ +n+&quot;,&quot;+(this._x1=+i)+&quot;,&quot;+(this._y1=+a)},arcTo:function(t,r,n,i,a){t=+t,r=+r,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,h=u*u+f*f;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);if(null===this._x1)this._+=&quot;M&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else if(h&gt;1e-6)if(Math.abs(f*l-c*u)&gt;1e-6&amp;&amp;a){var p=n-o,d=i-s,g=l*l+c*c,m=p*p+d*d,v=Math.sqrt(g),y=Math.sqrt(h),x=a*Math.tan((e-Math.acos((g+h-m)/(2*v*y)))/2),b=x/y,_=x/v;Math.abs(b-1)&gt;1e-6&amp;&amp;(this._+=&quot;L&quot;+(t+b*u)+&quot;,&quot;+(r+b*f)),this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,0,&quot;+ +(f*p&gt;u*d)+&quot;,&quot;+(this._x1=t+_*l)+&quot;,&quot;+(this._y1=r+_*c)}else this._+=&quot;L&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else;},arc:function(t,i,a,o,s,l){t=+t,i=+i,l=!!l;var c=(a=+a)*Math.cos(o),u=a*Math.sin(o),f=t+c,h=i+u,p=1^l,d=l?o-s:s-o;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);null===this._x1?this._+=&quot;M&quot;+f+&quot;,&quot;+h:(Math.abs(this._x1-f)&gt;1e-6||Math.abs(this._y1-h)&gt;1e-6)&amp;&amp;(this._+=&quot;L&quot;+f+&quot;,&quot;+h),a&amp;&amp;(d&lt;0&amp;&amp;(d=d%r+r),d&gt;n?this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(t-c)+&quot;,&quot;+(i-u)+&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(this._x1=f)+&quot;,&quot;+(this._y1=h):d&gt;1e-6&amp;&amp;(this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,&quot;+ +(d&gt;=e)+&quot;,&quot;+p+&quot;,&quot;+(this._x1=t+a*Math.cos(s))+&quot;,&quot;+(this._y1=i+a*Math.sin(s))))},rect:function(t,e,r,n){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)+&quot;h&quot;+ +r+&quot;v&quot;+ +n+&quot;h&quot;+-r+&quot;Z&quot;},toString:function(){return this._}},t.path=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],173:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o,i=p,!(p=p[f=u&lt;&lt;1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&amp;&amp;r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o}while((f=u&lt;&lt;1|c)==(h=(l&gt;=o)&lt;&lt;1|s&gt;=a));return i[h]=p,i[f]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i&lt;4;++i)(e=n.source[i])&amp;&amp;(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n&lt;o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i&lt;c&amp;&amp;(c=i),i&gt;f&amp;&amp;(f=i),a&lt;u&amp;&amp;(u=a),a&gt;h&amp;&amp;(h=a));if(c&gt;f||u&gt;h)return this;for(this.cover(c,u).cover(f,h),n=0;n&lt;o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var o,s,l=i-r,c=this._root;r&gt;t||t&gt;=i||n&gt;e||e&gt;=a;)switch(s=(e&lt;n)&lt;&lt;1|t&lt;r,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=r+l,a=n+l;break;case 1:r=i-l,a=n+l;break;case 2:i=r+l,n=a-l;break;case 3:r=i-l,n=a-l}this._root&amp;&amp;this._root.length&amp;&amp;(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,g=[],m=this._root;for(m&amp;&amp;g.push(new r(m,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=g.pop();)if(!(!(m=c.node)||(a=c.x0)&gt;p||(o=c.y0)&gt;d||(s=c.x1)&lt;f||(l=c.y1)&lt;h))if(m.length){var v=(a+s)/2,y=(o+l)/2;g.push(new r(m[3],v,y,s,l),new r(m[2],a,y,v,l),new r(m[1],v,o,s,y),new r(m[0],a,o,v,y)),(u=(e&gt;=y)&lt;&lt;1|t&gt;=v)&amp;&amp;(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),_=x*x+b*b;if(_&lt;n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=m.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a&gt;=(s=(d+m)/2))?d=s:m=s,(u=o&gt;=(l=(g+v)/2))?g=l:v=l,e=p,!(p=p[f=u&lt;&lt;1|c]))return this;if(!p.length)break;(e[f+1&amp;3]||e[f+2&amp;3]||e[f+3&amp;3])&amp;&amp;(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&amp;&amp;delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&amp;&amp;p===(e[3]||e[2]||e[1]||e[0])&amp;&amp;!p.length&amp;&amp;(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e&lt;r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&amp;&amp;l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&amp;&amp;c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&amp;&amp;l.push(new r(n,u,f,o,s)),(n=c[2])&amp;&amp;l.push(new r(n,i,f,u,s)),(n=c[1])&amp;&amp;l.push(new r(n,u,a,o,f)),(n=c[0])&amp;&amp;l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&amp;&amp;n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&amp;&amp;n.push(new r(o,s,l,f,h)),(o=a[1])&amp;&amp;n.push(new r(o,f,l,c,h)),(o=a[2])&amp;&amp;n.push(new r(o,s,h,f,u)),(o=a[3])&amp;&amp;n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],174:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-path&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=Math.PI,f=u/2,h=2*u;function p(t){return t&gt;1?0:t&lt;-1?u:Math.acos(t)}function d(t){return t&gt;=1?f:t&lt;=-1?-f:Math.asin(t)}function g(t){return t.innerRadius}function m(t){return t.outerRadius}function v(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&amp;&amp;t.padAngle}function b(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,f=s-a,h=f*l-u*c;if(!(h*h&lt;1e-12))return[t+(h=(u*(e-a)-f*(t-i))/h)*l,e+h*c]}function _(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),h=f*u,p=-f*l,d=t+h,g=e+p,m=r+h,v=n+p,y=(d+m)/2,x=(g+v)/2,b=m-d,_=v-g,w=b*b+_*_,T=i-a,k=d*v-m*g,A=(_&lt;0?-1:1)*c(o(0,T*T*w-k*k)),M=(k*_-b*A)/w,S=(-k*b-_*A)/w,E=(k*_+b*A)/w,L=(-k*b+_*A)/w,C=M-y,P=S-x,I=E-y,O=L-x;return C*C+P*P&gt;I*I+O*O&amp;&amp;(M=E,S=L),{cx:M,cy:S,x01:-h,y01:-p,x11:M*(i/T-1),y11:S*(i/T-1)}}function w(t){this._context=t}function T(t){return new w(t)}function k(t){return t[0]}function A(t){return t[1]}function M(){var t=k,n=A,i=r(!0),a=null,o=T,s=null;function l(r){var l,c,u,f=r.length,h=!1;for(null==a&amp;&amp;(s=o(u=e.path())),l=0;l&lt;=f;++l)!(l&lt;f&amp;&amp;i(c=r[l],l,r))===h&amp;&amp;((h=!h)?s.lineStart():s.lineEnd()),h&amp;&amp;s.point(+t(c,l,r),+n(c,l,r));if(u)return s=null,u+&quot;&quot;||null}return l.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),l):t},l.y=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),l):n},l.defined=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&amp;&amp;(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function S(){var t=k,n=null,i=r(0),a=A,o=r(!0),s=null,l=T,c=null;function u(r){var u,f,h,p,d,g=r.length,m=!1,v=new Array(g),y=new Array(g);for(null==s&amp;&amp;(c=l(d=e.path())),u=0;u&lt;=g;++u){if(!(u&lt;g&amp;&amp;o(p=r[u],u,r))===m)if(m=!m)f=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=u-1;h&gt;=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}m&amp;&amp;(v[u]=+t(p,u,r),y[u]=+i(p,u,r),c.point(n?+n(p,u,r):v[u],a?+a(p,u,r):y[u]))}if(d)return c=null,d+&quot;&quot;||null}function f(){return M().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&amp;&amp;(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function E(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN}function L(t){return t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var C=I(T);function P(t){this._curve=t}function I(t){function e(e){return new P(t(e))}return e._curve=t,e}function O(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(I(t)):e()._curve},t}function z(){return O(M().curve(C))}function D(){var t=S().curve(C),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return O(r())},delete t.lineX0,t.lineEndAngle=function(){return O(n())},delete t.lineX1,t.lineInnerRadius=function(){return O(i())},delete t.lineY0,t.lineOuterRadius=function(){return O(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(I(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}P.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var F=Array.prototype.slice;function B(t){return t.source}function N(t){return t.target}function j(t){var n=B,i=N,a=k,o=A,s=null;function l(){var r,l=F.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+&quot;&quot;||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function V(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function q(t,e,r,n,i){var a=R(e,r),o=R(e,r=(r+i)/2),s=R(n,r),l=R(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var H={draw:function(t,e){var r=Math.sqrt(e/u);t.moveTo(r,0),t.arc(0,0,r,0,h)}},G={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Y=Math.sqrt(1/3),W=2*Y,X={draw:function(t,e){var r=Math.sqrt(e/W),n=r*Y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Z=Math.sin(u/10)/Math.sin(7*u/10),J=Math.sin(h/10)*Z,K=-Math.cos(h/10)*Z,Q={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=J*r,i=K*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a&lt;5;++a){var o=h*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},$={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},tt=Math.sqrt(3),et={draw:function(t,e){var r=-Math.sqrt(e/(3*tt));t.moveTo(0,2*r),t.lineTo(-tt*r,-r),t.lineTo(tt*r,-r),t.closePath()}},rt=-.5,nt=Math.sqrt(3)/2,it=1/Math.sqrt(12),at=3*(it/2+1),ot={draw:function(t,e){var r=Math.sqrt(e/at),n=r/2,i=r*it,a=n,o=r*it+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(rt*n-nt*i,nt*n+rt*i),t.lineTo(rt*a-nt*o,nt*a+rt*o),t.lineTo(rt*s-nt*l,nt*s+rt*l),t.lineTo(rt*n+nt*i,rt*i-nt*n),t.lineTo(rt*a+nt*o,rt*o-nt*a),t.lineTo(rt*s+nt*l,rt*l-nt*s),t.closePath()}},st=[H,G,X,$,Q,et,ot];function lt(){}function ct(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ut(t){this._context=t}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t,e){this._basis=new ut(t),this._beta=e}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ct(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},pt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r&gt;0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l&lt;=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function r(t){return 1===e?new ut(t):new pt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function gt(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function mt(t,e){this._context=t,this._k=(1-e)/6}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gt(this,this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new mt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function wt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a&gt;1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a&gt;1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function r(t){return e?new Tt(t,e):new mt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function At(t,e){this._context=t,this._alpha=e}At.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Mt=function t(e){function r(t){return e?new At(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return e?new St(t,e):new bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Lt(t){this._context=t}function Ct(t){return t&lt;0?-1:1}function Pt(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i&lt;0&amp;&amp;-0),o=(r-t._y1)/(i||n&lt;0&amp;&amp;-0),s=(a*i+o*n)/(n+i);return(Ct(a)+Ct(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function It(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Ot(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function zt(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Ft(t){this._context=t}function Bt(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e&lt;n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e&lt;n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e&gt;=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e&lt;n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Nt(t,e){this._context=t,this._t=e}function jt(t,e){if((i=t.length)&gt;1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a&lt;i;++a)for(n=o,o=t[e[a]],r=0;r&lt;s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Ut(t){for(var e=t.length,r=new Array(e);--e&gt;=0;)r[e]=e;return r}function Vt(t,e){return t[e]}function qt(t){var e=t.map(Ht);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Ht(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++r&lt;i;)(e=+t[r][1])&gt;a&amp;&amp;(a=e,n=r);return n}function Gt(t){var e=t.map(Yt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Yt(t){for(var e,r=0,n=-1,i=t.length;++n&lt;i;)(e=+t[n][1])&amp;&amp;(r+=e);return r}Lt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&amp;&amp;this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},zt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ot(this,this._t0,It(this,this._t0))}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ot(this,It(this,r=Pt(this,t,e)),r);break;default:Ot(this,this._t0,r=Pt(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Dt.prototype=Object.create(zt.prototype)).point=function(t,e){zt.prototype.point.call(this,e,t)},Rt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Bt(t),i=Bt(e),a=0,o=1;o&lt;r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&amp;&amp;1===r)&amp;&amp;this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0&lt;this._t&amp;&amp;this._t&lt;1&amp;&amp;2===this._point&amp;&amp;this._context.lineTo(this._x,this._y),(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line&gt;=0&amp;&amp;(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t&lt;=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=g,o=m,w=r(0),T=null,k=v,A=y,M=x,S=null;function E(){var r,g,m=+t.apply(this,arguments),v=+o.apply(this,arguments),y=k.apply(this,arguments)-f,x=A.apply(this,arguments)-f,E=n(x-y),L=x&gt;y;if(S||(S=r=e.path()),v&lt;m&amp;&amp;(g=v,v=m,m=g),v&gt;1e-12)if(E&gt;h-1e-12)S.moveTo(v*a(y),v*l(y)),S.arc(0,0,v,y,x,!L),m&gt;1e-12&amp;&amp;(S.moveTo(m*a(x),m*l(x)),S.arc(0,0,m,x,y,L));else{var C,P,I=y,O=x,z=y,D=x,R=E,F=E,B=M.apply(this,arguments)/2,N=B&gt;1e-12&amp;&amp;(T?+T.apply(this,arguments):c(m*m+v*v)),j=s(n(v-m)/2,+w.apply(this,arguments)),U=j,V=j;if(N&gt;1e-12){var q=d(N/m*l(B)),H=d(N/v*l(B));(R-=2*q)&gt;1e-12?(z+=q*=L?1:-1,D-=q):(R=0,z=D=(y+x)/2),(F-=2*H)&gt;1e-12?(I+=H*=L?1:-1,O-=H):(F=0,I=O=(y+x)/2)}var G=v*a(I),Y=v*l(I),W=m*a(D),X=m*l(D);if(j&gt;1e-12){var Z,J=v*a(O),K=v*l(O),Q=m*a(z),$=m*l(z);if(E&lt;u&amp;&amp;(Z=b(G,Y,Q,$,J,K,W,X))){var tt=G-Z[0],et=Y-Z[1],rt=J-Z[0],nt=K-Z[1],it=1/l(p((tt*rt+et*nt)/(c(tt*tt+et*et)*c(rt*rt+nt*nt)))/2),at=c(Z[0]*Z[0]+Z[1]*Z[1]);U=s(j,(m-at)/(it-1)),V=s(j,(v-at)/(it+1))}}F&gt;1e-12?V&gt;1e-12?(C=_(Q,$,G,Y,v,V,L),P=_(J,K,W,X,v,V,L),S.moveTo(C.cx+C.x01,C.cy+C.y01),V&lt;j?S.arc(C.cx,C.cy,V,i(C.y01,C.x01),i(P.y01,P.x01),!L):(S.arc(C.cx,C.cy,V,i(C.y01,C.x01),i(C.y11,C.x11),!L),S.arc(0,0,v,i(C.cy+C.y11,C.cx+C.x11),i(P.cy+P.y11,P.cx+P.x11),!L),S.arc(P.cx,P.cy,V,i(P.y11,P.x11),i(P.y01,P.x01),!L))):(S.moveTo(G,Y),S.arc(0,0,v,I,O,!L)):S.moveTo(G,Y),m&gt;1e-12&amp;&amp;R&gt;1e-12?U&gt;1e-12?(C=_(W,X,J,K,m,-U,L),P=_(G,Y,Q,$,m,-U,L),S.lineTo(C.cx+C.x01,C.cy+C.y01),U&lt;j?S.arc(C.cx,C.cy,U,i(C.y01,C.x01),i(P.y01,P.x01),!L):(S.arc(C.cx,C.cy,U,i(C.y01,C.x01),i(C.y11,C.x11),!L),S.arc(0,0,m,i(C.cy+C.y11,C.cx+C.x11),i(P.cy+P.y11,P.cx+P.x11),L),S.arc(P.cx,P.cy,U,i(P.y11,P.x11),i(P.y01,P.x01),!L))):S.arc(0,0,m,D,z,L):S.lineTo(W,X)}else S.moveTo(0,0);if(S.closePath(),r)return S=null,r+&quot;&quot;||null}return E.centroid=function(){var e=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,r=(+k.apply(this,arguments)+ +A.apply(this,arguments))/2-u/2;return[a(r)*e,l(r)*e]},E.innerRadius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),E):t},E.outerRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),E):o},E.cornerRadius=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:r(+t),E):w},E.padRadius=function(t){return arguments.length?(T=null==t?null:&quot;function&quot;==typeof t?t:r(+t),E):T},E.startAngle=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:r(+t),E):k},E.endAngle=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:r(+t),E):A},E.padAngle=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:r(+t),E):M},E.context=function(t){return arguments.length?(S=null==t?null:t,E):S},E},t.area=S,t.areaRadial=D,t.curveBasis=function(t){return new ut(t)},t.curveBasisClosed=function(t){return new ft(t)},t.curveBasisOpen=function(t){return new ht(t)},t.curveBundle=dt,t.curveCardinal=vt,t.curveCardinalClosed=xt,t.curveCardinalOpen=_t,t.curveCatmullRom=kt,t.curveCatmullRomClosed=Mt,t.curveCatmullRomOpen=Et,t.curveLinear=T,t.curveLinearClosed=function(t){return new Lt(t)},t.curveMonotoneX=function(t){return new zt(t)},t.curveMonotoneY=function(t){return new Dt(t)},t.curveNatural=function(t){return new Ft(t)},t.curveStep=function(t){return new Nt(t,.5)},t.curveStepAfter=function(t){return new Nt(t,1)},t.curveStepBefore=function(t){return new Nt(t,0)},t.line=M,t.lineRadial=z,t.linkHorizontal=function(){return j(U)},t.linkRadial=function(){var t=j(q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return j(V)},t.pie=function(){var t=L,e=E,n=null,i=r(0),a=r(h),o=r(0);function s(r){var s,l,c,u,f,p=r.length,d=0,g=new Array(p),m=new Array(p),v=+i.apply(this,arguments),y=Math.min(h,Math.max(-h,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/p,o.apply(this,arguments)),b=x*(y&lt;0?-1:1);for(s=0;s&lt;p;++s)(f=m[g[s]=s]=+t(r[s],s,r))&gt;0&amp;&amp;(d+=f);for(null!=e?g.sort((function(t,r){return e(m[t],m[r])})):null!=n&amp;&amp;g.sort((function(t,e){return n(r[t],r[e])})),s=0,c=d?(y-p*b)/d:0;s&lt;p;++s,v=u)l=g[s],u=v+((f=m[l])&gt;0?f*c:0)+b,m[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:x};return m}return s.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),s):o},s},t.pointRadial=R,t.radialArea=D,t.radialLine=z,t.stack=function(){var t=r([]),e=Ut,n=jt,i=Vt;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a&lt;c;++a){for(var f,h=s[a],p=u[a]=new Array(l),d=0;d&lt;l;++d)p[d]=f=[0,+i(r[d],h,d,r)],f.data=r[d];p.key=h}for(a=0,o=e(u);a&lt;c;++a)u[o[a]].index=a;return n(u,o),u}return a.keys=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(F.call(e)),a):t},a.value=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a):i},a.order=function(t){return arguments.length?(e=null==t?Ut:&quot;function&quot;==typeof t?t:r(F.call(t)),a):e},a.offset=function(t){return arguments.length?(n=null==t?jt:t,a):n},a},t.stackOffsetDiverging=function(t,e){if((s=t.length)&gt;0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l&lt;c;++l)for(a=o=0,r=0;r&lt;s;++r)(i=(n=t[e[r]][l])[1]-n[0])&gt;0?(n[0]=a,n[1]=a+=i):i&lt;0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)&gt;0){for(var r,n,i,a=0,o=t[0].length;a&lt;o;++a){for(i=r=0;r&lt;n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r&lt;n;++r)t[r][a][1]/=i}jt(t,e)}},t.stackOffsetNone=jt,t.stackOffsetSilhouette=function(t,e){if((r=t.length)&gt;0){for(var r,n=0,i=t[e[0]],a=i.length;n&lt;a;++n){for(var o=0,s=0;o&lt;r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}jt(t,e)}},t.stackOffsetWiggle=function(t,e){if((i=t.length)&gt;0&amp;&amp;(n=(r=t[e[0]]).length)&gt;0){for(var r,n,i,a=0,o=1;o&lt;n;++o){for(var s=0,l=0,c=0;s&lt;i;++s){for(var u=t[e[s]],f=u[o][1]||0,h=(f-(u[o-1][1]||0))/2,p=0;p&lt;s;++p){var d=t[e[p]];h+=(d[o][1]||0)-(d[o-1][1]||0)}l+=f,c+=h*f}r[o-1][1]+=r[o-1][0]=a,l&amp;&amp;(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,jt(t,e)}},t.stackOrderAppearance=qt,t.stackOrderAscending=Gt,t.stackOrderDescending=function(t){return Gt(t).reverse()},t.stackOrderInsideOut=function(t){var e,r,n=t.length,i=t.map(Yt),a=qt(t),o=0,s=0,l=[],c=[];for(e=0;e&lt;n;++e)r=a[e],o&lt;s?(o+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)},t.stackOrderNone=Ut,t.stackOrderReverse=function(t){return Ut(t).reverse()},t.symbol=function(){var t=r(H),n=r(64),i=null;function a(){var r;if(i||(i=r=e.path()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),r)return i=null,r+&quot;&quot;||null}return a.type=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(e),a):t},a.size=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),a):n},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a},t.symbolCircle=H,t.symbolCross=G,t.symbolDiamond=X,t.symbolSquare=$,t.symbolStar=Q,t.symbolTriangle=et,t.symbolWye=ot,t.symbols=st,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-path&quot;:172}],175:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-time&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,c=t.periods,u=t.days,f=t.shortDays,h=t.months,yt=t.shortMonths,xt=p(c),bt=d(c),_t=p(u),wt=d(u),Tt=p(f),kt=d(f),At=p(h),Mt=d(h),St=p(yt),Et=d(yt),Lt={a:function(t){return f[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return yt[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:D,e:D,f:j,H:R,I:F,j:B,L:N,m:U,M:V,p:function(t){return c[+(t.getHours()&gt;=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:mt,s:vt,S:q,u:H,U:G,V:Y,w:W,W:X,x:null,X:null,y:Z,Y:J,Z:K,&quot;%&quot;:gt},Ct={a:function(t){return f[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return yt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:Q,e:Q,f:nt,H:$,I:tt,j:et,L:rt,m:it,M:at,p:function(t){return c[+(t.getUTCHours()&gt;=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:mt,s:vt,S:ot,u:st,U:lt,V:ct,w:ut,W:ft,x:null,X:null,y:ht,Y:pt,Z:dt,&quot;%&quot;:gt},Pt={a:function(t,e,r){var n=Tt.exec(e.slice(r));return n?(t.w=kt[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=_t.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=At.exec(e.slice(r));return n?(t.m=Mt[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return zt(t,a,e,r)},d:A,e:A,f:P,H:S,I:S,j:M,L:C,m:k,M:E,p:function(t,e,r){var n=xt.exec(e.slice(r));return n?(t.p=bt[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:O,s:z,S:L,u:m,U:v,V:y,w:g,W:x,x:function(t,e,r){return zt(t,o,e,r)},X:function(t,e,r){return zt(t,l,e,r)},y:_,Y:b,Z:w,&quot;%&quot;:I};function It(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l&lt;u;)37===t.charCodeAt(l)&amp;&amp;(o.push(t.slice(c,l)),null!=(i=s[n=t.charAt(++l)])?n=t.charAt(++l):i=&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;,(a=e[n])&amp;&amp;(n=a(r,i)),o.push(n),c=l+1);return o.push(t.slice(c,l)),o.join(&quot;&quot;)}}function Ot(t,a){return function(o){var s,l,c=i(1900,void 0,1);if(zt(c,t,o+=&quot;&quot;,0)!=o.length)return null;if(&quot;Q&quot;in c)return new Date(c.Q);if(&quot;s&quot;in c)return new Date(1e3*c.s+(&quot;L&quot;in c?c.L:0));if(a&amp;&amp;!(&quot;Z&quot;in c)&amp;&amp;(c.Z=0),&quot;p&quot;in c&amp;&amp;(c.H=c.H%12+12*c.p),void 0===c.m&amp;&amp;(c.m=&quot;q&quot;in c?c.q:0),&quot;V&quot;in c){if(c.V&lt;1||c.V&gt;53)return null;&quot;w&quot;in c||(c.w=1),&quot;Z&quot;in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l&gt;4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l&gt;4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else(&quot;W&quot;in c||&quot;U&quot;in c)&amp;&amp;(&quot;w&quot;in c||(c.w=&quot;u&quot;in c?c.u%7:&quot;W&quot;in c?1:0),l=&quot;Z&quot;in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d=&quot;W&quot;in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return&quot;Z&quot;in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function zt(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=Pt[i in s?e.charAt(o++):i])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Lt.x=It(o,Lt),Lt.X=It(l,Lt),Lt.c=It(a,Lt),Ct.x=It(o,Ct),Ct.X=It(l,Ct),Ct.c=It(a,Ct),{format:function(t){var e=It(t+=&quot;&quot;,Lt);return e.toString=function(){return t},e},parse:function(t){var e=Ot(t+=&quot;&quot;,!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=It(t+=&quot;&quot;,Ct);return e.toString=function(){return t},e},utcParse:function(t){var e=Ot(t+=&quot;&quot;,!0);return e.toString=function(){return t},e}}}var o,s={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function h(t){return t.replace(u,&quot;\\$&amp;&quot;)}function p(t){return new RegExp(&quot;^(?:&quot;+t.map(h).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function d(t){for(var e={},r=-1,n=t.length;++r&lt;n;)e[t[r].toLowerCase()]=r;return e}function g(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function m(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function v(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function y(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function x(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function b(t,e,r){var n=l.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]&gt;68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||&quot;00&quot;)),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function P(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function I(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return f(t.getDate(),e,2)}function R(t,e){return f(t.getHours(),e,2)}function F(t,e){return f(t.getHours()%12||12,e,2)}function B(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+&quot;000&quot;}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function q(t,e){return f(t.getSeconds(),e,2)}function H(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Y(t,r){var n=t.getDay();return t=n&gt;=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function W(t){return t.getDay()}function X(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function Z(t,e){return f(t.getFullYear()%100,e,2)}function J(t,e){return f(t.getFullYear()%1e4,e,4)}function K(t){var e=t.getTimezoneOffset();return(e&gt;0?&quot;-&quot;:(e*=-1,&quot;+&quot;))+f(e/60|0,&quot;0&quot;,2)+f(e%60,&quot;0&quot;,2)}function Q(t,e){return f(t.getUTCDate(),e,2)}function $(t,e){return f(t.getUTCHours(),e,2)}function tt(t,e){return f(t.getUTCHours()%12||12,e,2)}function et(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return f(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+&quot;000&quot;}function it(t,e){return f(t.getUTCMonth()+1,e,2)}function at(t,e){return f(t.getUTCMinutes(),e,2)}function ot(t,e){return f(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ct(t,r){var n=t.getUTCDay();return t=n&gt;=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ut(t){return t.getUTCDay()}function ft(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function ht(t,e){return f(t.getUTCFullYear()%100,e,2)}function pt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function dt(){return&quot;+0000&quot;}function gt(){return&quot;%&quot;}function mt(t){return+t}function vt(t){return Math.floor(+t/1e3)}function yt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}yt({dateTime:&quot;%x, %X&quot;,date:&quot;%-m/%-d/%Y&quot;,time:&quot;%-I:%M:%S %p&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});var xt=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);var bt=+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);t.isoFormat=xt,t.isoParse=bt,t.timeFormatDefaultLocale=yt,t.timeFormatLocale=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-time&quot;:176}],176:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e&lt;r-t?e:r},s.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(e,r,n){var a,o=[];if(e=s.ceil(e),n=null==n?1:Math.floor(n),!(e&lt;r&amp;&amp;n&gt;0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a&lt;e&amp;&amp;e&lt;r);return o},s.filter=function(e){return n((function(r){if(r&gt;=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t&gt;=t)if(r&lt;0)for(;++r&lt;=0;)for(;i(t,-1),!e(t););else for(;--r&gt;=0;)for(;i(t,1),!e(t););}))},a&amp;&amp;(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),s=o.range,l=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),c=l.range,u=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),f=u.range,h=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),p=h.range;function d(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var g=d(0),m=d(1),v=d(2),y=d(3),x=d(4),b=d(5),_=d(6),w=g.range,T=m.range,k=v.range,A=y.range,M=x.range,S=b.range,E=_.range,L=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),C=L.range,P=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));P.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var I=P.range,O=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),z=O.range,D=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),R=D.range,F=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),B=F.range;function N(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var j=N(0),U=N(1),V=N(2),q=N(3),H=N(4),G=N(5),Y=N(6),W=j.range,X=U.range,Z=V.range,J=q.range,K=H.range,Q=G.range,$=Y.range,tt=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),et=tt.range,rt=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));rt.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var nt=rt.range;t.timeDay=h,t.timeDays=p,t.timeFriday=b,t.timeFridays=S,t.timeHour=u,t.timeHours=f,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=l,t.timeMinutes=c,t.timeMonday=m,t.timeMondays=T,t.timeMonth=L,t.timeMonths=C,t.timeSaturday=_,t.timeSaturdays=E,t.timeSecond=o,t.timeSeconds=s,t.timeSunday=g,t.timeSundays=w,t.timeThursday=x,t.timeThursdays=M,t.timeTuesday=v,t.timeTuesdays=k,t.timeWednesday=y,t.timeWednesdays=A,t.timeWeek=g,t.timeWeeks=w,t.timeYear=P,t.timeYears=I,t.utcDay=F,t.utcDays=B,t.utcFriday=G,t.utcFridays=Q,t.utcHour=D,t.utcHours=R,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=O,t.utcMinutes=z,t.utcMonday=U,t.utcMondays=X,t.utcMonth=tt,t.utcMonths=et,t.utcSaturday=Y,t.utcSaturdays=$,t.utcSecond=o,t.utcSeconds=s,t.utcSunday=j,t.utcSundays=W,t.utcThursday=H,t.utcThursdays=K,t.utcTuesday=V,t.utcTuesdays=Z,t.utcWednesday=q,t.utcWednesdays=J,t.utcWeek=j,t.utcWeeks=W,t.utcYear=rt,t.utcYears=nt,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],177:[function(t,e,r){arguments[4][176][0].apply(r,arguments)},{dup:176}],178:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e,r,n=0,i=0,a=0,o=0,s=0,l=0,c=&quot;object&quot;==typeof performance&amp;&amp;performance.now?performance:Date,u=&quot;object&quot;==typeof window&amp;&amp;window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return s||(u(h),s=c.now()+l)}function h(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function g(){f(),++n;for(var t,r=e;r;)(t=s-r._time)&gt;=0&amp;&amp;r._call.call(null,t),r=r._next;--n}function m(){s=(o=c.now())+l,n=i=0;try{g()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a&gt;i._time&amp;&amp;(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,y(a)}(),s=0}}function v(){var t=c.now(),e=t-o;e&gt;1e3&amp;&amp;(l-=e,o=t)}function y(t){n||(i&amp;&amp;(i=clearTimeout(i)),t-s&gt;24?(t&lt;1/0&amp;&amp;(i=setTimeout(m,t-c.now()-l)),a&amp;&amp;(a=clearInterval(a))):(a||(o=c.now(),a=setInterval(v,1e3)),n=1,u(m)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if(&quot;function&quot;!=typeof t)throw new TypeError(&quot;callback is not a function&quot;);i=(null==i?f():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,y()},stop:function(){this._call&amp;&amp;(this._call=null,this._time=1/0,y())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?f():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=f,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=g,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],179:[function(t,e,r){e.exports=function(){for(var t=0;t&lt;arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;uniq&quot;);function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a&lt;i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s&lt;1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map((function(t,e){return[t[0],e]}));n.sort((function(t,e){return t[0]-e[0]}));for(var i=new Array(t-1),a=1;a&lt;t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&amp;&amp;i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u&lt;r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d&lt;s;++d){var g=f[d];h[d]=g,p+=g*g}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;var m=new Array(r+s+1),v=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1);for(u=0;u&lt;=s;++u)x[u]=0;x[s]=y,m[0]=x.slice(),v[0]=-1;for(u=0;u&lt;=s;++u){(h=x.slice())[u]=1,m[u+1]=h,v[u+1]=-1}for(u=0;u&lt;r;++u){var b=l[u];m[u+s+1]=b.point,v[u+s+1]=b.index}var _=n(m,!1);_=e?_.filter((function(t){for(var e=0,r=0;r&lt;=s;++r){var n=v[t[r]];if(n&lt;0&amp;&amp;++e&gt;=2)return!1;t[r]=n}return!0})):_.filter((function(t){for(var e=0;e&lt;=s;++e){var r=v[t[e]];if(r&lt;0)return!1;t[e]=r}return!0}));if(1&amp;s)for(u=0;u&lt;_.length;++u){h=(b=_[u])[0];b[0]=b[1],b[1]=h}return _}},{&quot;incremental-convex-hull&quot;:446,uniq:619}],181:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=(a.canvas=document.createElement(&quot;canvas&quot;)).getContext(&quot;2d&quot;),i=o([32,126]);function a(t,e){Array.isArray(t)&amp;&amp;(t=t.join(&quot;, &quot;));var r,a={},s=16,l=.05;e&amp;&amp;(2===e.length&amp;&amp;&quot;number&quot;==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&amp;&amp;(r=e.pairs),e.fontSize&amp;&amp;(s=e.fontSize),null!=e.threshold&amp;&amp;(l=e.threshold))),r||(r=i),n.font=s+&quot;px &quot;+t;for(var c=0;c&lt;r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)&gt;s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r&lt;=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i&lt;t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],182:[function(t,e,r){(function(t){(function(){var r=!1;if(&quot;undefined&quot;!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)&gt;&gt;&gt;31},e.exports.exponent=function(t){return(e.exports.hi(t)&lt;&lt;1&gt;&gt;&gt;21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&amp;n;return 2146435072&amp;n&amp;&amp;(i+=1&lt;&lt;20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&amp;e.exports.hi(t))}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:117}],183:[function(t,e,r){var n=t(&quot;abs-svg-path&quot;),i=t(&quot;normalize-svg-path&quot;),a={M:&quot;moveTo&quot;,C:&quot;bezierCurveTo&quot;};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)})),t.closePath()}},{&quot;abs-svg-path&quot;:71,&quot;normalize-svg-path&quot;:485}],184:[function(t,e,r){e.exports=function(t){switch(t){case&quot;int8&quot;:return Int8Array;case&quot;int16&quot;:return Int16Array;case&quot;int32&quot;:return Int32Array;case&quot;uint8&quot;:return Uint8Array;case&quot;uint16&quot;:return Uint16Array;case&quot;uint32&quot;:return Uint32Array;case&quot;float32&quot;:return Float32Array;case&quot;float64&quot;:return Float64Array;case&quot;array&quot;:return Array;case&quot;uint8_clamped&quot;:return Uint8ClampedArray}}},{}],185:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){switch(void 0===e&amp;&amp;(e=0),typeof t){case&quot;number&quot;:if(t&gt;0)return function(t,e){var r,n;for(r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}(0|t,e);break;case&quot;object&quot;:if(&quot;number&quot;==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i&lt;=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a&lt;i;++a)o[a]=r;else for(a=0;a&lt;i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],186:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){r=r||2;var n,s,l,c,u,p,d,m=e&amp;&amp;e.length,v=m?e[0]*r:t.length,y=i(t,0,v,r,!0),x=[];if(!y||y.next===y.prev)return x;if(m&amp;&amp;(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o&lt;s;o++)l=e[o]*n,c=o&lt;s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&amp;&amp;(u.steiner=!0),p.push(g(u));for(p.sort(f),o=0;o&lt;p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length&gt;80*r){n=l=t[0],s=c=t[1];for(var b=r;b&lt;v;b+=r)(u=t[b])&lt;n&amp;&amp;(n=u),(p=t[b+1])&lt;s&amp;&amp;(s=p),u&gt;l&amp;&amp;(l=u),p&gt;c&amp;&amp;(c=p);d=0!==(d=Math.max(l-n,c-s))?1/d:0}return o(y,x,r,n,s,d),x}function i(t,e,r,n,i){var a,o;if(i===E(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=A(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=A(a,t[a],t[a+1],o);return o&amp;&amp;x(o,o.next)&amp;&amp;(M(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!x(n,n.next)&amp;&amp;0!==y(n.prev,n,n.next))n=n.next;else{if(M(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&amp;&amp;f&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,f);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,f?l(t,n,i,f):s(t))e.push(p.i/r),e.push(t.i/r),e.push(g.i/r),M(t),t=g.next,m=g.next;else if((t=g)===m){h?1===h?o(t=c(a(t),e,r),e,r,n,i,f,2):2===h&amp;&amp;u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;y(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=d(s,l,e,r,n),h=d(c,u,e,r,n),p=t.prevZ,g=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;g&amp;&amp;g.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;g&amp;&amp;g.z&lt;=h;){if(g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!x(i,o)&amp;&amp;b(i,n,n.next,o)&amp;&amp;T(i,o)&amp;&amp;T(o,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),M(n),M(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&amp;&amp;v(l,c)){var u=k(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;m(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),T(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;p(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=k(e,t);a(e,e.next),a(r,r.next)}}function p(t,e){return y(t.prev,t,e.prev)&lt;0&amp;&amp;y(e.next,t,t.next)&lt;0}function d(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function g(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function m(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function v(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(T(t,e)&amp;&amp;T(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(y(t.prev,t,e.prev)||y(t,e.prev,e))||x(t,e)&amp;&amp;y(t.prev,t,t.next)&gt;0&amp;&amp;y(e.prev,e,e.next)&gt;0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function x(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function b(t,e,r,n){var i=w(y(t,e,r)),a=w(y(t,e,n)),o=w(y(r,n,t)),s=w(y(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!_(t,r,e))||(!(0!==a||!_(t,n,e))||(!(0!==o||!_(r,t,n))||!(0!==s||!_(r,e,n)))))}function _(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function w(t){return t&gt;0?1:t&lt;0?-1:0}function T(t,e){return y(t.prev,t,t.next)&lt;0?y(t,e,t.next)&gt;=0&amp;&amp;y(t,t.prev,e)&gt;=0:y(t,e,t.prev)&lt;0||y(t,t.next,e)&lt;0}function k(t,e){var r=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function A(t,e,r,n){var i=new S(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function M(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function S(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(E(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(E(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r}},{}],187:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(&quot;number&quot;!=typeof e){e=0;for(var i=0;i&lt;r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;var o=new Array(e);for(i=0;i&lt;e;++i)o[i]=[];for(i=0;i&lt;r;++i){a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s&lt;e;++s)n(o[s],(function(t,e){return t-e}));return o};var n=t(&quot;uniq&quot;)},{uniq:619}],188:[function(t,e,r){var n=t(&quot;strongly-connected-components&quot;);e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e&lt;l[t].length;e++)(n=l[t][e])===r?(u(r,a),i=!0):o[n]||(i=c(n));if(i)!function t(e){o[e]=!1,s.hasOwnProperty(e)&amp;&amp;Object.keys(s[e]).forEach((function(r){delete s[e][r],o[r]&amp;&amp;t(r)}))}(t);else for(e=0;e&lt;l[t].length;e++){n=l[t][e];var f=s[n];f||(f={},s[n]=f),f[n]=!0}return a.pop(),i}function u(t,r){var n=[].concat(r).concat(t);e?e(c):i.push(n)}function f(e){!function(e){for(var r=0;r&lt;t.length;r++)r&lt;e&amp;&amp;(t[r]=[]),t[r]=t[r].filter((function(t){return t&gt;=e}))}(e);for(var r,i=n(t).components.filter((function(t){return t.length&gt;1})),a=1/0,o=0;o&lt;i.length;o++)for(var s=0;s&lt;i[o].length;s++)i[o][s]&lt;a&amp;&amp;(a=i[o][s],r=o);var l=i[r];return!!l&amp;&amp;{leastVertex:a,adjList:t.map((function(t,e){return-1===l.indexOf(e)?[]:t.filter((function(t){return-1!==l.indexOf(t)}))}))}}r=0;for(var h=t.length;r&lt;h;){var p=f(r);if(r=p.leastVertex,l=p.adjList){for(var d=0;d&lt;l.length;d++)for(var g=0;g&lt;l[d].length;g++){var m=l[d][g];o[+m]=!1,s[m]={}}c(r),r+=1}else r=h}return e?void 0:i}},{&quot;strongly-connected-components&quot;:590}],189:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../object/valid-value&quot;);e.exports=function(){return n(this).length=0,this}},{&quot;../../object/valid-value&quot;:220}],190:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Array.from:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:191,&quot;./shim&quot;:192}],191:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e,r=Array.from;return&quot;function&quot;==typeof r&amp;&amp;(e=r(t=[&quot;raz&quot;,&quot;dwa&quot;]),Boolean(e&amp;&amp;e!==t&amp;&amp;&quot;dwa&quot;===e[1]))}},{}],192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es6-symbol&quot;).iterator,i=t(&quot;../../function/is-arguments&quot;),a=t(&quot;../../function/is-function&quot;),o=t(&quot;../../number/to-pos-integer&quot;),s=t(&quot;../../object/valid-callable&quot;),l=t(&quot;../../object/valid-value&quot;),c=t(&quot;../../object/is-value&quot;),u=t(&quot;../../string/is-string&quot;),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,g,m,v,y,x,b,_,w,T=arguments[1],k=arguments[2];if(t=Object(l(t)),c(T)&amp;&amp;s(T),this&amp;&amp;this!==Array&amp;&amp;a(this))e=this;else{if(!T){if(i(t))return 1!==(v=t.length)?Array.apply(null,t):((m=new Array(1))[0]=t[0],m);if(f(t)){for(m=new Array(v=t.length),r=0;r&lt;v;++r)m[r]=t[r];return m}}m=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&amp;&amp;(m=new e),b=x.next(),r=0;!b.done;)w=T?h.call(T,k,b.value,r):b.value,e?(p.value=w,d(m,r,p)):m[r]=w,b=x.next(),++r;v=r}else if(u(t)){for(v=t.length,e&amp;&amp;(m=new e),r=0,g=0;r&lt;v;++r)w=t[r],r+1&lt;v&amp;&amp;(y=w.charCodeAt(0))&gt;=55296&amp;&amp;y&lt;=56319&amp;&amp;(w+=t[++r]),w=T?h.call(T,k,w,g):w,e?(p.value=w,d(m,g,p)):m[g]=w,++g;v=g}if(void 0===v)for(v=o(t.length),e&amp;&amp;(m=new e(v)),r=0;r&lt;v;++r)w=T?h.call(T,k,t[r],r):t[r],e?(p.value=w,d(m,r,p)):m[r]=w;return e&amp;&amp;(p.value=null,m.length=v),m}},{&quot;../../function/is-arguments&quot;:193,&quot;../../function/is-function&quot;:194,&quot;../../number/to-pos-integer&quot;:200,&quot;../../object/is-value&quot;:209,&quot;../../object/valid-callable&quot;:218,&quot;../../object/valid-value&quot;:220,&quot;../../string/is-string&quot;:224,&quot;es6-symbol&quot;:233}],193:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],194:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return&quot;function&quot;==typeof t&amp;&amp;i(n.call(t))}},{}],195:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],196:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Math.sign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:197,&quot;./shim&quot;:198}],197:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t=Math.sign;return&quot;function&quot;==typeof t&amp;&amp;(1===t(10)&amp;&amp;-1===t(-20))}},{}],198:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t&gt;0?1:-1}},{}],199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../math/sign&quot;),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&amp;&amp;isFinite(t)?n(t)*a(i(t)):t}},{&quot;../math/sign&quot;:196}],200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./to-integer&quot;),i=Math.max;e.exports=function(t){return i(0,n(t))}},{&quot;./to-integer&quot;:199}],201:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./valid-value&quot;),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&amp;&amp;u.sort(&quot;function&quot;==typeof h?a.call(h,r):void 0),&quot;function&quot;!=typeof t&amp;&amp;(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{&quot;./valid-callable&quot;:218,&quot;./valid-value&quot;:220}],202:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.assign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:203,&quot;./shim&quot;:204}],203:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=Object.assign;return&quot;function&quot;==typeof e&amp;&amp;(e(t={foo:&quot;raz&quot;},{bar:&quot;dwa&quot;},{trzy:&quot;trzy&quot;}),t.foo+t.bar+t.trzy===&quot;razdwatrzy&quot;)}},{}],204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../keys&quot;),i=t(&quot;../valid-value&quot;),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o&lt;l;++o)n(e=arguments[o]).forEach(s);if(void 0!==r)throw r;return t}},{&quot;../keys&quot;:210,&quot;../valid-value&quot;:220}],205:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../array/from&quot;),i=t(&quot;./assign&quot;),a=t(&quot;./valid-value&quot;);e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&amp;&amp;!r)return e;var s={};return r?n(r,(function(e){(o.ensure||e in t)&amp;&amp;(s[e]=t[e])})):i(s,t),s}},{&quot;../array/from&quot;:190,&quot;./assign&quot;:202,&quot;./valid-value&quot;:220}],206:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o,s=Object.create;t(&quot;./set-prototype-of/is-implemented&quot;)()||(n=t(&quot;./set-prototype-of/shim&quot;)),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){a[t]=&quot;__proto__&quot;!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(i,a),Object.defineProperty(n,&quot;nullPolyfill&quot;,{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{&quot;./set-prototype-of/is-implemented&quot;:216,&quot;./set-prototype-of/shim&quot;:217}],207:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./_iterate&quot;)(&quot;forEach&quot;)},{&quot;./_iterate&quot;:201}],208:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i={function:!0,object:!0};e.exports=function(t){return n(t)&amp;&amp;i[typeof t]||!1}},{&quot;./is-value&quot;:209}],209:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/noop&quot;)();e.exports=function(t){return t!==n&amp;&amp;null!==t}},{&quot;../function/noop&quot;:195}],210:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.keys:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:211,&quot;./shim&quot;:212}],211:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){try{return Object.keys(&quot;primitive&quot;),!0}catch(t){return!1}}},{}],212:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../is-value&quot;),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{&quot;../is-value&quot;:209}],213:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./for-each&quot;),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,(function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)})),r}},{&quot;./for-each&quot;:207,&quot;./valid-callable&quot;:218}],214:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i=Array.prototype.forEach,a=Object.create,o=function(t,e){var r;for(r in t)e[r]=t[r]};e.exports=function(t){var e=a(null);return i.call(arguments,(function(t){n(t)&amp;&amp;o(Object(t),e)})),e}},{&quot;./is-value&quot;:209}],215:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.setPrototypeOf:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:216,&quot;./shim&quot;:217}],216:[function(t,e,r){&quot;use strict&quot;;var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return&quot;function&quot;==typeof t&amp;&amp;i(t(e(null),a))===a}},{}],217:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../is-object&quot;),a=t(&quot;../valid-value&quot;),o=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(a(t),null===e||i(e))return t;throw new TypeError(&quot;Prototype must be null or an object&quot;)},e.exports=function(t){var e,r;return t?(2===t.level?t.set?(r=t.set,e=function(t,e){return r.call(n(t,e),e),t}):e=function(t,e){return n(t,e).__proto__=e,t}:e=function t(e,r){var i;return n(e,r),(i=o.call(t.nullPolyfill,e))&amp;&amp;delete t.nullPolyfill.__proto__,null===r&amp;&amp;(r=t.nullPolyfill),e.__proto__=r,i&amp;&amp;s(t.nullPolyfill,&quot;__proto__&quot;,l),e},Object.defineProperty(e,&quot;level&quot;,{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,&quot;__proto__&quot;);if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&amp;&amp;{level:1})}()),t(&quot;../create&quot;)},{&quot;../create&quot;:206,&quot;../is-object&quot;:208,&quot;../valid-value&quot;:220}],218:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(&quot;function&quot;!=typeof t)throw new TypeError(t+&quot; is not a function&quot;);return t}},{}],219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-object&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not an Object&quot;);return t}},{&quot;./is-object&quot;:208}],220:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;);e.exports=function(t){if(!n(t))throw new TypeError(&quot;Cannot use null or undefined&quot;);return t}},{&quot;./is-value&quot;:209}],221:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?String.prototype.contains:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:222,&quot;./shim&quot;:223}],222:[function(t,e,r){&quot;use strict&quot;;var n=&quot;razdwatrzy&quot;;e.exports=function(){return&quot;function&quot;==typeof n.contains&amp;&amp;(!0===n.contains(&quot;dwa&quot;)&amp;&amp;!1===n.contains(&quot;foo&quot;))}},{}],223:[function(t,e,r){&quot;use strict&quot;;var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])&gt;-1}},{}],224:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(&quot;&quot;);e.exports=function(t){return&quot;string&quot;==typeof t||t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;(t instanceof String||n.call(t)===i)||!1}},{}],225:[function(t,e,r){&quot;use strict&quot;;var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],226:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;es5-ext/string/#/contains&quot;),o=t(&quot;d&quot;),s=t(&quot;es6-symbol&quot;),l=t(&quot;./&quot;),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);l.call(this,t),e=e?a.call(e,&quot;key+value&quot;)?&quot;key+value&quot;:a.call(e,&quot;key&quot;)?&quot;key&quot;:&quot;value&quot;:&quot;value&quot;,c(this,&quot;__kind__&quot;,o(&quot;&quot;,e))},i&amp;&amp;i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return&quot;value&quot;===this.__kind__?this.__list__[t]:&quot;key+value&quot;===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o(&quot;c&quot;,&quot;Array Iterator&quot;))},{&quot;./&quot;:229,d:161,&quot;es5-ext/object/set-prototype-of&quot;:215,&quot;es5-ext/string/#/contains&quot;:221,&quot;es6-symbol&quot;:233}],227:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/valid-callable&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;./get&quot;),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,g,m,v=arguments[2];if(s(t)||n(t)?r=&quot;array&quot;:a(t)?r=&quot;string&quot;:t=o(t),i(e),f=function(){h=!0},&quot;array&quot;!==r)if(&quot;string&quot;!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p&lt;d&amp;&amp;(g=t[p],p+1&lt;d&amp;&amp;(m=g.charCodeAt(0))&gt;=55296&amp;&amp;m&lt;=56319&amp;&amp;(g+=t[++p]),l.call(e,v,g,f),!h);++p);else c.call(t,(function(t){return l.call(e,v,t,f),h}))}},{&quot;./get&quot;:228,&quot;es5-ext/function/is-arguments&quot;:193,&quot;es5-ext/object/valid-callable&quot;:218,&quot;es5-ext/string/is-string&quot;:224}],228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/string/is-string&quot;),a=t(&quot;./array&quot;),o=t(&quot;./string&quot;),s=t(&quot;./valid-iterable&quot;),l=t(&quot;es6-symbol&quot;).iterator;e.exports=function(t){return&quot;function&quot;==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{&quot;./array&quot;:226,&quot;./string&quot;:231,&quot;./valid-iterable&quot;:232,&quot;es5-ext/function/is-arguments&quot;:193,&quot;es5-ext/string/is-string&quot;:224,&quot;es6-symbol&quot;:233}],229:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/array/#/clear&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/valid-callable&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;d&quot;),c=t(&quot;d/auto-bind&quot;),u=t(&quot;es6-symbol&quot;),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);h(this,{__list__:l(&quot;w&quot;,s(t)),__context__:l(&quot;w&quot;,e),__nextIndex__:l(&quot;w&quot;,0)}),e&amp;&amp;(o(e.on),e.on(&quot;_add&quot;,this._onAdd),e.on(&quot;_delete&quot;,this._onDelete),e.on(&quot;_clear&quot;,this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&amp;&amp;void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__&lt;this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:l((function(){return this._createResult(this._next())})),_createResult:l((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:l((function(t){return this.__list__[t]})),_unBind:l((function(){this.__list__=null,delete this.__redo__,this.__context__&amp;&amp;(this.__context__.off(&quot;_add&quot;,this._onAdd),this.__context__.off(&quot;_delete&quot;,this._onDelete),this.__context__.off(&quot;_clear&quot;,this._onClear),this.__context__=null)})),toString:l((function(){return&quot;[object &quot;+(this[u.toStringTag]||&quot;Object&quot;)+&quot;]&quot;}))},c({_onAdd:l((function(t){t&gt;=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e&gt;=t&amp;&amp;(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,&quot;__redo__&quot;,l(&quot;c&quot;,[t])))})),_onDelete:l((function(t){var e;t&gt;=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&amp;&amp;(-1!==(e=this.__redo__.indexOf(t))&amp;&amp;this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e&gt;t&amp;&amp;(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&amp;&amp;i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:161,&quot;d/auto-bind&quot;:160,&quot;es5-ext/array/#/clear&quot;:189,&quot;es5-ext/object/assign&quot;:202,&quot;es5-ext/object/valid-callable&quot;:218,&quot;es5-ext/object/valid-value&quot;:220,&quot;es6-symbol&quot;:233}],230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;es6-symbol&quot;).iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&amp;&amp;(!!s(t)||(!!a(t)||(!!n(t)||&quot;function&quot;==typeof t[o])))}},{&quot;es5-ext/function/is-arguments&quot;:193,&quot;es5-ext/object/is-value&quot;:209,&quot;es5-ext/string/is-string&quot;:224,&quot;es6-symbol&quot;:233}],231:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;d&quot;),o=t(&quot;es6-symbol&quot;),s=t(&quot;./&quot;),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);t=String(t),s.call(this,t),l(this,&quot;__length__&quot;,a(&quot;&quot;,t.length))},i&amp;&amp;i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__&lt;this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:a((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))&gt;=55296&amp;&amp;e&lt;=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a(&quot;c&quot;,&quot;String Iterator&quot;))},{&quot;./&quot;:229,d:161,&quot;es5-ext/object/set-prototype-of&quot;:215,&quot;es6-symbol&quot;:233}],232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-iterable&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not iterable&quot;);return t}},{&quot;./is-iterable&quot;:230}],233:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?t(&quot;ext/global-this&quot;).Symbol:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:234,&quot;./polyfill&quot;:239,&quot;ext/global-this&quot;:246}],234:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ext/global-this&quot;),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if(&quot;function&quot;!=typeof e)return!1;t=e(&quot;test symbol&quot;);try{String(t)}catch(t){return!1}return!!i[typeof e.iterator]&amp;&amp;(!!i[typeof e.toPrimitive]&amp;&amp;!!i[typeof e.toStringTag])}},{&quot;ext/global-this&quot;:246}],235:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return!!t&amp;&amp;(&quot;symbol&quot;==typeof t||!!t.constructor&amp;&amp;(&quot;Symbol&quot;===t.constructor.name&amp;&amp;&quot;Symbol&quot;===t[t.constructor.toStringTag]))}},{}],236:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||&quot;&quot;)];)++i;return s[t+=i||&quot;&quot;]=!0,a(o,e=&quot;@@&quot;+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:161}],237:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;ext/global-this&quot;).Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n(&quot;&quot;,i&amp;&amp;i.hasInstance||t(&quot;hasInstance&quot;)),isConcatSpreadable:n(&quot;&quot;,i&amp;&amp;i.isConcatSpreadable||t(&quot;isConcatSpreadable&quot;)),iterator:n(&quot;&quot;,i&amp;&amp;i.iterator||t(&quot;iterator&quot;)),match:n(&quot;&quot;,i&amp;&amp;i.match||t(&quot;match&quot;)),replace:n(&quot;&quot;,i&amp;&amp;i.replace||t(&quot;replace&quot;)),search:n(&quot;&quot;,i&amp;&amp;i.search||t(&quot;search&quot;)),species:n(&quot;&quot;,i&amp;&amp;i.species||t(&quot;species&quot;)),split:n(&quot;&quot;,i&amp;&amp;i.split||t(&quot;split&quot;)),toPrimitive:n(&quot;&quot;,i&amp;&amp;i.toPrimitive||t(&quot;toPrimitive&quot;)),toStringTag:n(&quot;&quot;,i&amp;&amp;i.toStringTag||t(&quot;toStringTag&quot;)),unscopables:n(&quot;&quot;,i&amp;&amp;i.unscopables||t(&quot;unscopables&quot;))})}},{d:161,&quot;ext/global-this&quot;:246}],238:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;../../../validate-symbol&quot;),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{&quot;../../../validate-symbol&quot;:240,d:161}],239:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;d&quot;),s=t(&quot;./validate-symbol&quot;),l=t(&quot;ext/global-this&quot;).Symbol,c=t(&quot;./lib/private/generate-name&quot;),u=t(&quot;./lib/private/setup/standard-symbols&quot;),f=t(&quot;./lib/private/setup/symbol-registry&quot;),h=Object.create,p=Object.defineProperties,d=Object.defineProperty;if(&quot;function&quot;==typeof l)try{String(l()),a=!0}catch(t){}else l=null;i=function(t){if(this instanceof i)throw new TypeError(&quot;Symbol is not a constructor&quot;);return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError(&quot;Symbol is not a constructor&quot;);return a?l(e):(r=h(i.prototype),e=void 0===e?&quot;&quot;:String(e),p(r,{__description__:o(&quot;&quot;,e),__name__:o(&quot;&quot;,c(e))}))},u(n),f(n),p(i.prototype,{constructor:o(n),toString:o(&quot;&quot;,(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return&quot;Symbol (&quot;+s(this).__description__+&quot;)&quot;})),valueOf:o((function(){return s(this)}))}),d(n.prototype,n.toPrimitive,o(&quot;&quot;,(function(){var t=s(this);return&quot;symbol&quot;==typeof t?t:t.toString()}))),d(n.prototype,n.toStringTag,o(&quot;c&quot;,&quot;Symbol&quot;)),d(i.prototype,n.toStringTag,o(&quot;c&quot;,n.prototype[n.toStringTag])),d(i.prototype,n.toPrimitive,o(&quot;c&quot;,n.prototype[n.toPrimitive]))},{&quot;./lib/private/generate-name&quot;:236,&quot;./lib/private/setup/standard-symbols&quot;:237,&quot;./lib/private/setup/symbol-registry&quot;:238,&quot;./validate-symbol&quot;:240,d:161,&quot;ext/global-this&quot;:246}],240:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-symbol&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not a symbol&quot;);return t}},{&quot;./is-symbol&quot;:235}],241:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?WeakMap:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:242,&quot;./polyfill&quot;:244}],242:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e;if(&quot;function&quot;!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},&quot;one&quot;],[{},&quot;two&quot;],[{},&quot;three&quot;]])}catch(t){return!1}return&quot;[object WeakMap]&quot;===String(t)&amp;&amp;(&quot;function&quot;==typeof t.set&amp;&amp;(t.set({},1)===t&amp;&amp;(&quot;function&quot;==typeof t.delete&amp;&amp;(&quot;function&quot;==typeof t.has&amp;&amp;&quot;one&quot;===t.get(e)))))}},{}],243:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;function&quot;==typeof WeakMap&amp;&amp;&quot;[object WeakMap]&quot;===Object.prototype.toString.call(new WeakMap)},{}],244:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/object/set-prototype-of&quot;),o=t(&quot;es5-ext/object/valid-object&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;es5-ext/string/random-uniq&quot;),c=t(&quot;d&quot;),u=t(&quot;es6-iterator/get&quot;),f=t(&quot;es6-iterator/for-of&quot;),h=t(&quot;es6-symbol&quot;).toStringTag,p=t(&quot;./is-native-implemented&quot;),d=Array.isArray,g=Object.defineProperty,m=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);return t=p&amp;&amp;a&amp;&amp;WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&amp;&amp;(d(e)||(e=u(e))),g(t,&quot;__weakMapData__&quot;,c(&quot;c&quot;,&quot;$weakMap$&quot;+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},p&amp;&amp;(a&amp;&amp;a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!m.call(o(t),this.__weakMapData__)&amp;&amp;(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(m.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return m.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return g(o(t),this.__weakMapData__,c(&quot;c&quot;,e)),this})),toString:c((function(){return&quot;[object WeakMap]&quot;}))}),g(n.prototype,h,c(&quot;c&quot;,&quot;WeakMap&quot;))},{&quot;./is-native-implemented&quot;:243,d:161,&quot;es5-ext/object/is-value&quot;:209,&quot;es5-ext/object/set-prototype-of&quot;:215,&quot;es5-ext/object/valid-object&quot;:219,&quot;es5-ext/object/valid-value&quot;:220,&quot;es5-ext/string/random-uniq&quot;:225,&quot;es6-iterator/for-of&quot;:227,&quot;es6-iterator/get&quot;:228,&quot;es6-symbol&quot;:233}],245:[function(t,e,r){var n=function(){if(&quot;object&quot;==typeof self&amp;&amp;self)return self;if(&quot;object&quot;==typeof window&amp;&amp;window)return window;throw new Error(&quot;Unable to resolve global `this`&quot;)};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,&quot;__global__&quot;,{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],246:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?globalThis:t(&quot;./implementation&quot;)},{&quot;./implementation&quot;:245,&quot;./is-implemented&quot;:247}],247:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){return&quot;object&quot;==typeof globalThis&amp;&amp;(!!globalThis&amp;&amp;globalThis.Array===Array)}},{}],248:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;);e.exports=function(t){var e=typeof t;if(&quot;string&quot;===e){var r=t;if(0===(t=+t)&amp;&amp;n(r))return!1}else if(&quot;number&quot;!==e)return!1;return t-t&lt;1}},{&quot;is-string-blank&quot;:458}],250:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:return&quot;number&quot;==typeof t?new o(n=l(t),n,0):new o(t,l(t.length),0);case 2:if(&quot;number&quot;==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(&quot;state and velocity lengths must match&quot;);return new o(t,e,r)}};var n=t(&quot;cubic-hermite&quot;),i=t(&quot;binary-search-bounds&quot;);function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n&lt;this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e&lt;=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o&lt;0)for(var h=u-1,p=0;p&lt;u;++p,--h)s[p]=l[h];else if(o&gt;=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p&lt;u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var g=e[o],m=e[o+1]-g||1,v=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p&lt;u;++p,--h)v[p]=l[h],x[p]=c[h]*m,y[p]=l[h+u],b[p]=c[h+u]*m,_=_&amp;&amp;v[p]===y[p]&amp;&amp;x[p]===b[p]&amp;&amp;0===x[p];if(_)for(p=0;p&lt;u;++p)s[p]=v[p];else n(v,x,y,b,(t-g)/m,s)}var w=f[0],T=f[1];for(p=0;p&lt;u;++p)s[p]=a(w[p],T[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a&gt;=r-1)for(var u=s.length-1,f=(e[r-1],0);f&lt;c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],g=this._scratch[2],m=this._scratch[3],v=this._scratch[4],y=!0;for(f=0;f&lt;c;++f,--u)d[f]=s[u],m[f]=l[u]*p,g[f]=s[u+c],v[f]=l[u+c]*p,y=y&amp;&amp;d[f]===g[f]&amp;&amp;m[f]===v[f]&amp;&amp;0===m[f];if(y)for(f=0;f&lt;c;++f)o[f]=0;else{n.derivative(d,m,g,v,(t-h)/p,o);for(f=0;f&lt;c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r&gt;=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u&lt;2;++u)for(var f=0;f&lt;r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f&gt;0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s&gt;1e-6?1/s:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t&lt;this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l&gt;0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u&gt;1e-6?1/u:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t&lt;e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f&gt;=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{&quot;binary-search-bounds&quot;:251,&quot;cubic-hermite&quot;:156}],251:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i,a){var o=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,a?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a&quot;,i?&quot;.get(m)&quot;:&quot;[m]&quot;];return a?e.indexOf(&quot;c&quot;)&lt;0?o.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):o.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):o.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?o.push(&quot;l=m+1}else{h=m-1}&quot;):o.push(&quot;h=m-1}else{l=m+1}&quot;),o.push(&quot;}&quot;),a?o.push(&quot;return -1};&quot;):o.push(&quot;return i};&quot;),o.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!1,i),n(&quot;B&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!0,i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!1,i),n(&quot;Q&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!0,i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],252:[function(t,e,r){var n=t(&quot;dtype&quot;);e.exports=function(t,e,r){if(!t)throw new TypeError(&quot;must specify data as first parameter&quot;);if(r=0|+(r||0),Array.isArray(t)&amp;&amp;t[0]&amp;&amp;&quot;number&quot;==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&amp;&amp;&quot;string&quot;!=typeof e||(e=new(n(e||&quot;float32&quot;))(c+r));var u=e.length-r;if(c!==u)throw new Error(&quot;source length &quot;+c+&quot; (&quot;+l+&quot;x&quot;+t.length+&quot;) does not match destination length &quot;+u);for(i=0,o=r;i&lt;t.length;i++)for(a=0;a&lt;l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&amp;&amp;&quot;string&quot;!=typeof e)e.set(t,r);else{var f=n(e||&quot;float32&quot;);if(Array.isArray(t)||&quot;array&quot;===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o&lt;s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:184}],253:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font/stringify&quot;),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(&quot;canvas&quot;),a=t.font,o=&quot;number&quot;==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&amp;&amp;&quot;string&quot;!=typeof a&amp;&amp;(a=n(a));if(Array.isArray(s)){if(2===s.length&amp;&amp;&quot;number&quot;==typeof s[0]&amp;&amp;&quot;number&quot;==typeof s[1]){for(var l=[],c=s[0],u=0;c&lt;=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(&quot;&quot;);e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(&quot;2d&quot;);f.fillStyle=&quot;#000&quot;,f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=&quot;center&quot;,f.textBaseline=&quot;middle&quot;,f.fillStyle=&quot;#fff&quot;;var h=o[0]/2,p=o[1]/2;for(c=0;c&lt;s.length;c++)f.fillText(s[c],h,p),(h+=o[0])&gt;e[0]-o[0]/2&amp;&amp;(h=o[0]/2,p+=o[1]);return r}},{&quot;css-font/stringify&quot;:153}],254:[function(t,e,r){&quot;use strict&quot;;function n(t,e){e||(e={}),(&quot;string&quot;==typeof t||Array.isArray(t))&amp;&amp;(e.family=t);var r=Array.isArray(e.family)?e.family.join(&quot;, &quot;):e.family;if(!r)throw Error(&quot;`family` must be defined&quot;);var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||&quot;&quot;,c=(t=[e.style||e.fontStyle||&quot;&quot;,l,s].join(&quot; &quot;)+&quot;px &quot;+r,e.origin||&quot;top&quot;);if(n.cache[r]&amp;&amp;s&lt;=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(&quot;2d&quot;),h={upper:void 0!==e.upper?e.upper:&quot;H&quot;,lower:void 0!==e.lower?e.lower:&quot;x&quot;,descent:void 0!==e.descent?e.descent:&quot;p&quot;,ascent:void 0!==e.ascent?e.ascent:&quot;h&quot;,tittle:void 0!==e.tittle?e.tittle:&quot;i&quot;,overshoot:void 0!==e.overshoot?e.overshoot:&quot;O&quot;},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillStyle=&quot;black&quot;,f.fillText(&quot;H&quot;,0,0);var g=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=&quot;bottom&quot;,f.fillText(&quot;H&quot;,0,p);var m=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-m+g,f.clearRect(0,0,p,p),f.textBaseline=&quot;alphabetic&quot;,f.fillText(&quot;H&quot;,0,p);var v=p-a(f.getImageData(0,0,p,p))-1+g;d.baseline=d.alphabetic=v,f.clearRect(0,0,p,p),f.textBaseline=&quot;middle&quot;,f.fillText(&quot;H&quot;,0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;hanging&quot;,f.fillText(&quot;H&quot;,0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;ideographic&quot;,f.fillText(&quot;H&quot;,0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+g,h.upper&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-v}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in&quot;string&quot;==typeof e&amp;&amp;(e=t[e]),t)&quot;em&quot;!==n&amp;&amp;(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n&lt;r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n&gt;0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(&quot;canvas&quot;),n.cache={}},{}],255:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return new s(t||g,null)};function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}var l=s.prototype;function c(t,e){var r;if(e.left&amp;&amp;(r=c(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?c(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)&lt;=0){var i;if(n.left)if(i=u(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return u(t,e,r,n.right)}function f(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o&lt;=0){if(i.left&amp;&amp;(a=f(t,e,r,n,i.left)))return a;if(s&gt;0&amp;&amp;(a=n(i.key,i.value)))return a}if(s&gt;0&amp;&amp;i.right)return f(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(l,&quot;keys&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(l,&quot;values&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(l,&quot;length&quot;,{get:function(){return this.root?this.root._count:0}}),l.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],c=[];i;){var u=r(t,i.key);l.push(i),c.push(u),i=u&lt;=0?i.left:i.right}l.push(new n(0,t,e,null,null,1));for(var f=l.length-2;f&gt;=0;--f){i=l[f];c[f]&lt;=0?l[f]=new n(i._color,i.key,i.value,l[f+1],i.right,i._count+1):l[f]=new n(i._color,i.key,i.value,i.left,l[f+1],i._count+1)}for(f=l.length-1;f&gt;1;--f){var h=l[f-1];i=l[f];if(1===h._color||1===i._color)break;var p=l[f-2];if(p.left===h)if(h.left===i){if(!(d=p.right)||0!==d._color){if(p._color=0,p.left=h.right,h._color=1,h.right=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).left===p?g.left=h:g.right=h;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else{if(!(d=p.right)||0!==d._color){if(h.right=i.left,p._color=0,p.left=i.right,i._color=1,i.left=h,i.right=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).left===p?g.left=i:g.right=i;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else if(h.right===i){if(!(d=p.left)||0!==d._color){if(p._color=0,p.right=h.left,h._color=1,h.left=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).right===p?g.right=h:g.left=h;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}else{var d;if(!(d=p.left)||0!==d._color){var g;if(h.left=i.right,p._color=0,p.right=i.left,i._color=1,i.right=h,i.left=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).right===p?g.right=i:g.left=i;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}}return l[0]._color=1,new s(r,l[0])},l.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return c(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)&gt;=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(l,&quot;begin&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(l,&quot;end&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),l.at=function(t){if(t&lt;0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t&lt;e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t&gt;=e.right._count)break;e=e.right}return new h(this,[])},l.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;=0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;=0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i&lt;=0?r.left:r.right}return new h(this,[])},l.remove=function(t){var e=this.find(t);return e?e.remove():this},l.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n&lt;=0?r.left:r.right}};var p=h.prototype;function d(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function g(t,e){return t&lt;e?-1:t&gt;e?1:0}Object.defineProperty(p,&quot;valid&quot;,{get:function(){return this._stack.length&gt;0}}),Object.defineProperty(p,&quot;node&quot;,{get:function(){return this._stack.length&gt;0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new h(this.tree,this._stack.slice())},p.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var l=t.length-2;l&gt;=0;--l){(r=t[l]).left===t[l+1]?e[l]=new n(r._color,r.key,r.value,e[l+1],r.right,r._count):e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count)}if((r=e[e.length-1]).left&amp;&amp;r.right){var c=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var u=e[c-1];e.push(new n(r._color,u.key,u.value,r.left,r.right,r._count)),e[c-1].key=r.key,e[c-1].value=r.value;for(l=e.length-2;l&gt;=c;--l)r=e[l],e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count);e[c-1].left=e[c]}if(0===(r=e[e.length-1])._color){var f=e[e.length-2];f.left===r?f.left=null:f.right===r&amp;&amp;(f.right=null),e.pop();for(l=0;l&lt;e.length;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?d(r,r.left):r.right&amp;&amp;d(r,r.right),r._color=1;for(l=0;l&lt;e.length-1;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(l=0;l&lt;e.length;++l)e[l]._count--;var h=e[e.length-2];return function(t){for(var e,r,n,s,l=t.length-1;l&gt;=0;--l){if(e=t[l],0===l)return void(e._color=1);if((r=t[l-1]).left===e){if((n=r.right).right&amp;&amp;0===n.right._color){if(s=(n=r.right=i(n)).right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).left===r?c.left=n:c.right=n;return void(t[l-1]=n)}if(n.left&amp;&amp;0===n.left._color){if(s=(n=r.right=i(n)).left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).left===r?c.left=s:c.right=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.right=a(0,n));r.right=a(0,n);continue}n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).left===r?c.left=n:c.right=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}else{if((n=r.left).left&amp;&amp;0===n.left._color){if(s=(n=r.left=i(n)).left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).right===r?c.right=n:c.left=n;return void(t[l-1]=n)}if(n.right&amp;&amp;0===n.right._color){if(s=(n=r.left=i(n)).right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).right===r?c.right=s:c.left=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.left=a(0,n));r.left=a(0,n);continue}var c;n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).right===r?c.right=n:c.left=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}}}(e),h.left===r?h.left=null:h.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(p,&quot;key&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,&quot;value&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,&quot;index&quot;,{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&amp;&amp;(t=e[e.length-1].left._count);for(var n=e.length-2;n&gt;=0;--n)e[n+1]===e[n].right&amp;&amp;(++t,e[n].left&amp;&amp;(t+=e[n].left._count));return t},enumerable:!0}),p.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasNext&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].left===t[e])return!0;return!1}}),p.update=function(t){var e=this._stack;if(0===e.length)throw new Error(&quot;Can't update empty node!&quot;);var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a&gt;=0;--a)(i=e[a]).left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},p.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasPrev&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],256:[function(t,e,r){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],i=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function a(t){if(t&lt;0)return Number(&quot;0/0&quot;);for(var e=i[0],r=i.length-1;r&gt;0;--r)e+=i[r]/(t+r);var n=t+607/128+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}e.exports=function t(e){if(e&lt;.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e&gt;100)return Math.exp(a(e));e-=1;for(var r=n[0],i=1;i&lt;9;i++)r+=n[i]/(e+i);var o=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,e+.5)*Math.exp(-o)*r},e.exports.log=a},{}],257:[function(t,e,r){e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;must specify type string&quot;);if(e=e||{},&quot;undefined&quot;==typeof document&amp;&amp;!e.canvas)return null;var r=e.canvas||document.createElement(&quot;canvas&quot;);&quot;number&quot;==typeof e.width&amp;&amp;(r.width=e.width);&quot;number&quot;==typeof e.height&amp;&amp;(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(&quot;webgl&quot;)&amp;&amp;a.push(&quot;experimental-&quot;+t);for(var o=0;o&lt;a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],258:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(&quot;./lib/text.js&quot;),i=t(&quot;./lib/lines.js&quot;),a=t(&quot;./lib/background.js&quot;),o=t(&quot;./lib/cube.js&quot;),s=t(&quot;./lib/ticks.js&quot;),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=&quot;sans-serif&quot;,this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&amp;&amp;Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s&lt;3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if(&quot;bounds&quot;in t)for(var h=t.bounds,p=0;p&lt;2;++p)for(var d=0;d&lt;3;++d)h[p][d]!==this.bounds[p][d]&amp;&amp;(f=!0),this.bounds[p][d]=h[p][d];if(&quot;ticks&quot;in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p&lt;3;++p)this.tickSpacing[p]=0}else a(&quot;tickSpacing&quot;)&amp;&amp;(this.autoTicks=!0,f=!0);if(this._firstInit&amp;&amp;(&quot;ticks&quot;in t||&quot;tickSpacing&quot;in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&amp;&amp;this.autoTicks&amp;&amp;(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p&lt;3;++p)r[p].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o(&quot;tickEnable&quot;),l(&quot;tickFont&quot;)&amp;&amp;(u=!0),a(&quot;tickSize&quot;),a(&quot;tickAngle&quot;),a(&quot;tickPad&quot;),c(&quot;tickColor&quot;);var g=l(&quot;labels&quot;);l(&quot;labelFont&quot;)&amp;&amp;(g=!0),o(&quot;labelEnable&quot;),a(&quot;labelSize&quot;),a(&quot;labelPad&quot;),c(&quot;labelColor&quot;),o(&quot;lineEnable&quot;),o(&quot;lineMirror&quot;),a(&quot;lineWidth&quot;),c(&quot;lineColor&quot;),o(&quot;lineTickEnable&quot;),o(&quot;lineTickMirror&quot;),a(&quot;lineTickLength&quot;),a(&quot;lineTickWidth&quot;),c(&quot;lineTickColor&quot;),o(&quot;gridEnable&quot;),a(&quot;gridWidth&quot;),c(&quot;gridColor&quot;),o(&quot;zeroEnable&quot;),c(&quot;zeroLineColor&quot;),a(&quot;zeroLineWidth&quot;),o(&quot;backgroundEnable&quot;),c(&quot;backgroundColor&quot;),this._text?this._text&amp;&amp;(g||u)&amp;&amp;this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&amp;&amp;u&amp;&amp;(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u&lt;3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&amp;1&lt;&lt;u&amp;&amp;(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]&gt;0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var g=[0,0,0],m={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||m;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,h=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/e.drawingBufferHeight,A=0;A&lt;3;++A)this.lastCubeProps.cubeEdges[A]=f[A],this.lastCubeProps.axis[A]=h[A];var M=p;for(A=0;A&lt;3;++A)d(p[A],A,this.bounds,f,h);e=this.gl;var S,E=g;for(A=0;A&lt;3;++A)this.backgroundEnable[A]?E[A]=h[A]:E[A]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(A=0;A&lt;3;++A){var L=[0,0,0];h[A]&gt;0?L[A]=a[1][A]:L[A]=a[0][A];for(var C=0;C&lt;2;++C){var P=(A+1+C)%3,I=(A+1+(1^C))%3;this.gridEnable[P]&amp;&amp;this._lines.drawGrid(P,I,this.bounds,L,this.gridColor[P],this.gridWidth[P]*this.pixelRatio)}for(C=0;C&lt;2;++C){P=(A+1+C)%3,I=(A+1+(1^C))%3;this.zeroEnable[I]&amp;&amp;Math.min(a[0][I],a[1][I])&lt;=0&amp;&amp;Math.max(a[0][I],a[1][I])&gt;=0&amp;&amp;this._lines.drawZero(P,I,this.bounds,L,this.zeroLineColor[I],this.zeroLineWidth[I]*this.pixelRatio)}}for(A=0;A&lt;3;++A){this.lineEnable[A]&amp;&amp;this._lines.drawAxisLine(A,this.bounds,M[A].primalOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio),this.lineMirror[A]&amp;&amp;this._lines.drawAxisLine(A,this.bounds,M[A].mirrorOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio);var O=c(v,M[A].primalMinor),z=c(y,M[A].mirrorMinor),D=this.lineTickLength;for(C=0;C&lt;3;++C){var R=k/r[5*C];O[C]*=D[C]*R,z[C]*=D[C]*R}this.lineTickEnable[A]&amp;&amp;this._lines.drawAxisTicks(A,M[A].primalOffset,O,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio),this.lineTickMirror[A]&amp;&amp;this._lines.drawAxisTicks(A,M[A].mirrorOffset,z,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B;function N(t){(B=[0,0,0])[t]=1}function j(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a&gt;0&amp;&amp;l&gt;0||a&gt;0&amp;&amp;l&lt;0||a&lt;0&amp;&amp;l&gt;0||a&lt;0&amp;&amp;l&lt;0?N(n):(o&gt;0&amp;&amp;s&gt;0||o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0||o&lt;0&amp;&amp;s&lt;0)&amp;&amp;N(i)}for(A=0;A&lt;3;++A){var U=M[A].primalMinor,V=M[A].mirrorMinor,q=c(x,M[A].primalOffset);for(C=0;C&lt;3;++C)this.lineTickEnable[A]&amp;&amp;(q[C]+=k*U[C]*Math.max(this.lineTickLength[C],0)/r[5*C]);var H=[0,0,0];if(H[A]=1,this.tickEnable[A]){-3600===this.tickAngle[A]?(this.tickAngle[A]=0,this.tickAlign[A]=&quot;auto&quot;):this.tickAlign[A]=-1,F=1,&quot;auto&quot;===(S=[this.tickAlign[A],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]),B=[0,0,0],j(A,U,V);for(C=0;C&lt;3;++C)q[C]+=k*U[C]*this.tickPad[C]/r[5*C];this._text.drawTicks(A,this.tickSize[A],this.tickAngle[A],q,this.tickColor[A],H,B,S)}if(this.labelEnable[A]){F=0,B=[0,0,0],this.labels[A].length&gt;4&amp;&amp;(N(A),F=1),&quot;auto&quot;===(S=[this.labelAlign[A],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]);for(C=0;C&lt;3;++C)q[C]+=k*U[C]*this.labelPad[C]/r[5*C];q[A]+=.5*(a[0][A]+a[1][A]),this._text.drawLabel(A,this.labelSize[A],this.labelAngle[A],q,this.labelColor[A],[0,0,0],B,S)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{&quot;./lib/background.js&quot;:259,&quot;./lib/cube.js&quot;:260,&quot;./lib/lines.js&quot;:261,&quot;./lib/text.js&quot;:263,&quot;./lib/ticks.js&quot;:264}],259:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=[],r=[],s=0,l=0;l&lt;3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p&lt;=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d&lt;=1;d+=2){f[c]=d;for(var g=-1;g&lt;=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var m=c;c=u,u=m}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,v,x,b)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s&lt;3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:262,&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361}],260:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var y=0,x=0;x&lt;2;++x){u[2]=a[x][2];for(var b=0;b&lt;2;++b){u[1]=a[b][1];for(var _=0;_&lt;2;++_)u[0]=a[_][0],h(l[y],u,s),y+=1}}var w=-1;for(x=0;x&lt;8;++x){for(var T=l[x][3],k=0;k&lt;3;++k)c[x][k]=l[x][k]/T;p&amp;&amp;(c[x][2]*=-1),T&lt;0&amp;&amp;(w&lt;0||c[x][2]&lt;c[w][2])&amp;&amp;(w=x)}if(w&lt;0){w=0;for(var A=0;A&lt;3;++A){for(var M=(A+2)%3,S=(A+1)%3,E=-1,L=-1,C=0;C&lt;2;++C){var P=(O=C&lt;&lt;A)+(C&lt;&lt;M)+(1-C&lt;&lt;S),I=O+(1-C&lt;&lt;M)+(C&lt;&lt;S);o(c[O],c[P],c[I],f)&lt;0||(C?E=1:L=1)}if(E&lt;0||L&lt;0)L&gt;E&amp;&amp;(w|=1&lt;&lt;A);else{for(C=0;C&lt;2;++C){P=(O=C&lt;&lt;A)+(C&lt;&lt;M)+(1-C&lt;&lt;S),I=O+(1-C&lt;&lt;M)+(C&lt;&lt;S);var O,z=d([l[O],l[P],l[I],l[O+(1&lt;&lt;M)+(1&lt;&lt;S)]]);C?E=z:L=z}L&gt;E&amp;&amp;(w|=1&lt;&lt;A)}}}var D=7^w,R=-1;for(x=0;x&lt;8;++x)x!==w&amp;&amp;x!==D&amp;&amp;(R&lt;0||c[R][1]&gt;c[x][1])&amp;&amp;(R=x);var F=-1;for(x=0;x&lt;3;++x){if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D)F&lt;0&amp;&amp;(F=N),(S=c[N])[0]&lt;c[F][0]&amp;&amp;(F=N)}var B=-1;for(x=0;x&lt;3;++x){var N;if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D&amp;&amp;N!==F)B&lt;0&amp;&amp;(B=N),(S=c[N])[0]&gt;c[B][0]&amp;&amp;(B=N)}var j=g;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&amp;F,j[n.log2(R^B)]=R&amp;B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&amp;B):j[n.log2(F^U)]=U&amp;F;var V=m,q=w;for(A=0;A&lt;3;++A)V[A]=q&amp;1&lt;&lt;A?-1:1;return v};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-mat4/multiply&quot;),a=t(&quot;split-polygon&quot;),o=t(&quot;robust-orientation&quot;),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n&lt;4;++n){t[n]=r[12+n];for(var i=0;i&lt;3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t&lt;8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e&lt;p.length;++e)if((t=a.positive(t,p[e])).length&lt;3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1&lt;t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var g=[1,1,1],m=[0,0,0],v={cubeEdges:g,axis:m}},{&quot;bit-twiddle&quot;:104,&quot;gl-mat4/multiply&quot;:301,&quot;robust-orientation&quot;:548,&quot;split-polygon&quot;:567}],261:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f&lt;3;++f){for(var h=o.length/3|0,d=0;d&lt;r[f].length;++d){var g=+r[f][d].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var m=o.length/3|0;s[f]=h,l[f]=m-h;h=o.length/3|0;for(var v=0;v&lt;r[f].length;++v){g=+r[f][v].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}m=o.length/3|0;c[f]=h,u[f]=m-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var g=f(l);g[t]=1,this.shader.uniforms.screenAxis=g,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:262,&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361}],262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n  vec3 major = position.x * majorAxis;\n  vec3 minor = position.y * minorAxis;\n\n  vec3 vPosition = major + minor + offset;\n  vec3 pPosition = project(vPosition);\n  vec3 offset = project(vPosition + screenAxis * position.z);\n\n  vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n  gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.line=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n  vec3 A = project(a);\n  vec3 B = project(b);\n\n  return atan(\n    (B.y - A.y) * resolution.y,\n    (B.x - A.x) * resolution.x\n  );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio =       alignOpt.y;\nbool enableAlign =    (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n  return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n  return mod_angle((a &lt; 0.0) ?\n    a + TWO_PI :\n    a\n  );\n}\n\nfloat look_upwards(float a) {\n  float b = positive_angle(a);\n  return ((b &gt; HALF_PI) &amp;&amp; (b &lt;= ONE_AND_HALF_PI)) ?\n    b - PI :\n    b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n  // ratio controls the ratio between being horizontal to (vertical + horizontal)\n  // if ratio is set to 0.5 then it is 50%, 50%.\n  // when using a higher ratio e.g. 0.75 the result would\n  // likely be more horizontal than vertical.\n\n  float b = positive_angle(a);\n\n  return\n    (b &lt; (      ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n    (b &lt; (2.0 + ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (4.0 - ratio) * HALF_PI) ? HALF_PI :\n                                    0.0;\n}\n\nfloat roundTo(float a, float b) {\n  return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n  float b = positive_angle(a);\n  float div = TWO_PI / float(n);\n  float c = roundTo(b, div);\n  return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n  return\n    (option &gt;  2) ? look_round_n_directions(rawAngle + delta, option) :       // option 3-n: round to n directions\n    (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n    (option == 1) ? rawAngle + delta :       // use free angle, and flip to align with one direction of the axis\n    (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n    (option ==-1) ? 0.0 :                    // useful for backward compatibility, all texts remains horizontal\n                    rawAngle;                // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &amp;&amp;\n                   (axis.y == 0.0) &amp;&amp;\n                   (axis.z == 0.0);\n\nvoid main() {\n  //Compute world offset\n  float axisDistance = position.z;\n  vec3 dataPosition = axisDistance * axis + offset;\n\n  float beta = angle; // i.e. user defined attributes for each tick\n\n  float axisAngle;\n  float clipAngle;\n  float flip;\n\n  if (enableAlign) {\n    axisAngle = (isAxisTitle) ? HALF_PI :\n                      computeViewAngle(dataPosition, dataPosition + axis);\n    clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n    axisAngle += (sin(axisAngle) &lt; 0.0) ? PI : 0.0;\n    clipAngle += (sin(clipAngle) &lt; 0.0) ? PI : 0.0;\n\n    flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n                vec2(sin(clipAngle),-cos(clipAngle))) &gt; 0.0) ? 1.0 : 0.0;\n\n    beta += applyAlignOption(clipAngle, flip * PI);\n  }\n\n  //Compute plane offset\n  vec2 planeCoord = position.xy * pixelScale;\n\n  mat2 planeXform = scale * mat2(\n     cos(beta), sin(beta),\n    -sin(beta), cos(beta)\n  );\n\n  vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n  //Compute clip position\n  vec3 clipPosition = project(dataPosition);\n\n  //Apply text offset in clip coordinates\n  clipPosition += vec3(viewOffset, 0.0);\n\n  //Done\n  gl_Position = vec4(clipPosition, 1.0);\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.text=function(t){return i(t,s,l,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n  vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n  vec3 realNormal = signAxis * normal;\n\n  if(dot(realNormal, enable) &gt; 0.0) {\n    vec3 minRange = min(bounds[0], bounds[1]);\n    vec3 maxRange = max(bounds[0], bounds[1]);\n    vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n    gl_Position = projection * view * model * vec4(nPosition, 1.0);\n  } else {\n    gl_Position = vec4(0,0,0,0);\n  }\n\n  colorChannel = abs(realNormal);\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n  gl_FragColor = colorChannel.x * colors[0] +\n                 colorChannel.y * colors[1] +\n                 colorChannel.z * colors[2];\n}&quot;]);r.bg=function(t){return i(t,c,u,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:339,glslify:265}],263:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;vectorize-text&quot;),o=t(&quot;./shaders&quot;).text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[e];u||(u=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:&quot;'+t+'&quot; error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineSpacing:i,styletags:s}));for(var f=(n||12)/12,h=u.positions,p=u.cells,d=0,g=p.length;d&lt;g;++d)for(var m=p[d],v=2;v&gt;=0;--v){var y=h[m[v]];o.push(f*y[0],-f*y[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d&lt;3;++d){f[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),h[d]=(o.length/3|0)-f[d],c[d]=o.length/3|0;for(var g=0;g&lt;n[d].length;++g)n[d][g].text&amp;&amp;s(n[d][g].x,n[d][g].text,n[d][g].font||i,n[d][g].fontSize||12,1.25,p);u[d]=(o.length/3|0)-c[d]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./shaders&quot;:262,_process:528,&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361,&quot;vectorize-text&quot;:623}],264:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t+&quot;&quot;,n=r.indexOf(&quot;.&quot;),i=0;n&gt;=0&amp;&amp;(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+&quot;&quot;;if(s.indexOf(&quot;e&quot;)&gt;=0)return s;var l=o/a,c=o%a;o&lt;0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=&quot;&quot;+l;if(o&lt;0&amp;&amp;(u=&quot;-&quot;+u),i){for(var f=&quot;&quot;+c;f.length&lt;i;)f=&quot;0&quot;+f;return u+&quot;.&quot;+f}return u}r.create=function(t,e){for(var r=[],i=0;i&lt;3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]&lt;=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(o=-1;o*e[i]&gt;=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r&lt;3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],265:[function(t,e,r){e.exports=function(t){&quot;string&quot;==typeof t&amp;&amp;(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n&lt;t.length-1;n++)r.push(t[n],e[n]||&quot;&quot;);return r.push(t[n]),r.join(&quot;&quot;)}},{}],266:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,v=e.projection||c,y=e._ortho||!1,x=t.bounds,b=(f=f||a(h,p,v,x,y)).axis;o(u,p,h),o(u,v,u);for(var _=g,w=0;w&lt;3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var T=n(s(u,u));s(u,u);for(var k=0;k&lt;3;++k){var A=(k+1)%3,M=(k+2)%3,S=m;t:for(w=0;w&lt;2;++w){var E=[];if(b[k]&lt;0!=!!w){S[k]=x[w][k];for(var L=0;L&lt;2;++L){S[A]=x[L^w][A];for(var C=0;C&lt;2;++C)S[M]=x[C^L^w][M],E.push(S.slice())}var P=y?5:4;for(L=P;L===P;++L){if(0===E.length)continue t;E=i.positive(E,T[L])}for(L=0;L&lt;E.length;++L){M=E[L];var I=d(m,u,M,r,l);for(C=0;C&lt;3;++C)_[C].lo=Math.min(_[C].lo,M[C]),_[C].hi=Math.max(_[C].hi,M[C]),C!==k&amp;&amp;(_[C].pixelsPerDataUnit=Math.min(_[C].pixelsPerDataUnit,Math.abs(I[C])))}}}}return _};var n=t(&quot;extract-frustum-planes&quot;),i=t(&quot;split-polygon&quot;),a=t(&quot;./lib/cube.js&quot;),o=t(&quot;gl-mat4/multiply&quot;),s=t(&quot;gl-mat4/transpose&quot;),l=t(&quot;gl-vec4/transformMat4&quot;),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a&lt;3;++a){for(var o=h,s=p,c=0;c&lt;3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]&lt;0&amp;&amp;(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]&lt;0&amp;&amp;(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var g=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],m=[0,0,0]},{&quot;./lib/cube.js&quot;:260,&quot;extract-frustum-planes&quot;:248,&quot;gl-mat4/multiply&quot;:301,&quot;gl-mat4/transpose&quot;:312,&quot;gl-vec4/transformMat4&quot;:432,&quot;split-polygon&quot;:567}],267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;ndarray&quot;),o=[&quot;uint8&quot;,&quot;uint8_clamped&quot;,&quot;uint16&quot;,&quot;uint32&quot;,&quot;int8&quot;,&quot;int16&quot;,&quot;int32&quot;,&quot;float32&quot;];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a&lt;0)return t.bufferData(e,i,n),o;if(o+a&gt;r)throw new Error(&quot;gl-buffer: If resizing buffer, must not specify offset&quot;);return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a&lt;i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(&quot;number&quot;!=typeof e&amp;&amp;(e=-1),this.bind(),&quot;object&quot;==typeof t&amp;&amp;void 0!==t.shape){var r=t.dtype;if(o.indexOf(r)&lt;0&amp;&amp;(r=&quot;float32&quot;),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(&quot;OES_element_index_uint&quot;)&amp;&amp;&quot;uint16&quot;!==r?&quot;uint32&quot;:&quot;uint16&quot;;if(r===t.dtype&amp;&amp;function(t,e){for(var r=1,n=e.length-1;n&gt;=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&amp;&amp;t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,&quot;uint16&quot;):u(t,&quot;float32&quot;),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?f:f.subarray(0,t.length),e),n.free(f)}else if(&quot;object&quot;==typeof t&amp;&amp;&quot;number&quot;==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(&quot;number&quot;!=typeof t&amp;&amp;void 0!==t)throw new Error(&quot;gl-buffer: Invalid data type&quot;);if(e&gt;=0)throw new Error(&quot;gl-buffer: Cannot specify offset when resizing buffer&quot;);(t|=0)&lt;=0&amp;&amp;(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&amp;&amp;r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(&quot;gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER&quot;);if(n!==t.DYNAMIC_DRAW&amp;&amp;n!==t.STATIC_DRAW&amp;&amp;n!==t.STREAM_DRAW)throw new Error(&quot;gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW&quot;);var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:483,&quot;ndarray-ops&quot;:478,&quot;typedarray-pool&quot;:617}],268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;);e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&amp;&amp;(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=null,d=null,g=[],m=1/0,v=!1,y=0;y&lt;r.length;y++){var x=r[y];s=Math.min(x[0],s),l=Math.max(x[0],l),c=Math.min(x[1],c),u=Math.max(x[1],u),f=Math.min(x[2],f),h=Math.max(x[2],h);var b=i[y];if(n.length(b)&gt;o&amp;&amp;(o=n.length(b)),y){var _=2*n.distance(p,x)/(n.length(d)+n.length(b));_?(m=Math.min(m,_),v=!1):v=!0}v||(p=x,d=b),g.push(b)}var w=[s,c,f],T=[l,u,h];e&amp;&amp;(e[0]=w,e[1]=T),0===o&amp;&amp;(o=1);var k=1/o;isFinite(m)||(m=1),a.vectorScale=m;var A=t.coneSize||.5;t.absoluteConeSize&amp;&amp;(A=t.absoluteConeSize*k),a.coneScale=A;y=0;for(var M=0;y&lt;r.length;y++)for(var S=(x=r[y])[0],E=x[1],L=x[2],C=g[y],P=n.length(C)*k,I=0;I&lt;8;I++){a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vertexIntensity.push(P,P,P),a.vertexIntensity.push(P,P,P);var O=a.positions.length;a.cells.push([O-6,O-5,O-4],[O-3,O-2,O-1])}return a};var i=t(&quot;./lib/shaders&quot;);e.exports.createMesh=t(&quot;./create_mesh&quot;),e.exports.createConeMesh=function(t,r){return e.exports.createMesh(t,r,{shaders:i,traceType:&quot;cone&quot;})}},{&quot;./create_mesh&quot;:269,&quot;./lib/shaders&quot;:270,&quot;gl-vec3&quot;:380}],269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;gl-mat4/invert&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;colormap&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e,r,n,i,a,o,s,l,c,u){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.pickShader=n,this.trianglePositions=i,this.triangleVectors=a,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=o,this.triangleVAO=c,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=f,this._view=f,this._projection=f,this._resolution=[1,1]}var p=h.prototype;function d(t,e){var r=n(t,e.meshShader.vertex,e.meshShader.fragment,null,e.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}function g(t,e){var r=n(t,e.pickShader.vertex,e.pickShader.fragment,null,e.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}p.isOpaque=function(){return this.opacity&gt;=1},p.isTransparent=function(){return this.opacity&lt;1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),void 0!==t.tubeScale&amp;&amp;(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&amp;&amp;(this.vectorScale=t.vectorScale),void 0!==t.coneScale&amp;&amp;(this.coneScale=t.coneScale),void 0!==t.coneOffset&amp;&amp;(this.coneOffset=t.coneOffset),t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=u({colormap:t,nshades:256,format:&quot;rgba&quot;}),r=new Uint8Array(1024),n=0;n&lt;256;++n){for(var i=e[n],a=0;a&lt;3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&amp;&amp;r&amp;&amp;i){var a=[],o=[],s=[],l=[],f=[];this.cells=r,this.positions=n,this.vectors=i;var h=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,g=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],g=+t.vertexIntensityBounds[1];else for(var m=0;m&lt;p.length;++m){var v=p[m];d=Math.min(d,v),g=Math.max(g,v)}else for(m=0;m&lt;n.length;++m){v=n[m][2];d=Math.min(d,v),g=Math.max(g,v)}this.intensity=p||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(m=0;m&lt;n.length;++m)for(var y=n[m],x=0;x&lt;3;++x)!isNaN(y[x])&amp;&amp;isFinite(y[x])&amp;&amp;(this.bounds[0][x]=Math.min(this.bounds[0][x],y[x]),this.bounds[1][x]=Math.max(this.bounds[1][x],y[x]));var b=0;t:for(m=0;m&lt;r.length;++m){var _=r[m];switch(_.length){case 3:for(x=0;x&lt;3;++x){y=n[T=_[x]];for(var w=0;w&lt;3;++w)if(isNaN(y[w])||!isFinite(y[w]))continue t}for(x=0;x&lt;3;++x){var T;y=n[T=_[2-x]];a.push(y[0],y[1],y[2],y[3]);var k=i[T];o.push(k[0],k[1],k[2],k[3]||0);var A,M=h;3===M.length?s.push(M[0],M[1],M[2],1):s.push(M[0],M[1],M[2],M[3]),A=p?[(p[T]-d)/(g-d),0]:[(y[2]-d)/(g-d),0],l.push(A[0],A[1]),f.push(m)}b+=1}}this.triangleCount=b,this.trianglePositions.update(a),this.triangleVectors.update(o),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(f))}},p.drawTransparent=p.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var c={model:r,view:n,projection:i,inverseModel:f.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};c.inverseModel=l(c.inverseModel,c.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(o=0;o&lt;3;++o)c.eyePosition[o]=u[12+o]/u[15];var h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];c.lightPosition[o]=p/h}if(this.triangleCount&gt;0){var g=this.triShader;g.bind(),g.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return&quot;cone&quot;===this.traceType?i.index=Math.floor(r[1]/48):&quot;streamtube&quot;===this.traceType&amp;&amp;(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(t,e,r){var n=r.shaders;1===arguments.length&amp;&amp;(t=(e=t).gl);var s=d(t,n),l=g(t,n),u=o(t,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=t.LINEAR_MIPMAP_LINEAR,u.magFilter=t.LINEAR;var f=i(t),p=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:f,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:t.FLOAT,size:4},{buffer:v,type:t.FLOAT,size:2},{buffer:p,type:t.FLOAT,size:4}]),b=new h(t,u,s,l,f,p,y,m,v,x,r.traceType||&quot;cone&quot;);return b.update(e),b}},{colormap:137,&quot;gl-buffer&quot;:267,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/multiply&quot;:301,&quot;gl-shader&quot;:339,&quot;gl-texture2d&quot;:356,&quot;gl-vao&quot;:361,ndarray:483}],270:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * conePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(conePosition, 1.0);\n  vec4 t_position  = view * conePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = conePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n  gl_Position = projection * view * conePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]}},{glslify:442}],271:[function(t,e,r){e.exports={0:&quot;NONE&quot;,1:&quot;ONE&quot;,2:&quot;LINE_LOOP&quot;,3:&quot;LINE_STRIP&quot;,4:&quot;TRIANGLES&quot;,5:&quot;TRIANGLE_STRIP&quot;,6:&quot;TRIANGLE_FAN&quot;,256:&quot;DEPTH_BUFFER_BIT&quot;,512:&quot;NEVER&quot;,513:&quot;LESS&quot;,514:&quot;EQUAL&quot;,515:&quot;LEQUAL&quot;,516:&quot;GREATER&quot;,517:&quot;NOTEQUAL&quot;,518:&quot;GEQUAL&quot;,519:&quot;ALWAYS&quot;,768:&quot;SRC_COLOR&quot;,769:&quot;ONE_MINUS_SRC_COLOR&quot;,770:&quot;SRC_ALPHA&quot;,771:&quot;ONE_MINUS_SRC_ALPHA&quot;,772:&quot;DST_ALPHA&quot;,773:&quot;ONE_MINUS_DST_ALPHA&quot;,774:&quot;DST_COLOR&quot;,775:&quot;ONE_MINUS_DST_COLOR&quot;,776:&quot;SRC_ALPHA_SATURATE&quot;,1024:&quot;STENCIL_BUFFER_BIT&quot;,1028:&quot;FRONT&quot;,1029:&quot;BACK&quot;,1032:&quot;FRONT_AND_BACK&quot;,1280:&quot;INVALID_ENUM&quot;,1281:&quot;INVALID_VALUE&quot;,1282:&quot;INVALID_OPERATION&quot;,1285:&quot;OUT_OF_MEMORY&quot;,1286:&quot;INVALID_FRAMEBUFFER_OPERATION&quot;,2304:&quot;CW&quot;,2305:&quot;CCW&quot;,2849:&quot;LINE_WIDTH&quot;,2884:&quot;CULL_FACE&quot;,2885:&quot;CULL_FACE_MODE&quot;,2886:&quot;FRONT_FACE&quot;,2928:&quot;DEPTH_RANGE&quot;,2929:&quot;DEPTH_TEST&quot;,2930:&quot;DEPTH_WRITEMASK&quot;,2931:&quot;DEPTH_CLEAR_VALUE&quot;,2932:&quot;DEPTH_FUNC&quot;,2960:&quot;STENCIL_TEST&quot;,2961:&quot;STENCIL_CLEAR_VALUE&quot;,2962:&quot;STENCIL_FUNC&quot;,2963:&quot;STENCIL_VALUE_MASK&quot;,2964:&quot;STENCIL_FAIL&quot;,2965:&quot;STENCIL_PASS_DEPTH_FAIL&quot;,2966:&quot;STENCIL_PASS_DEPTH_PASS&quot;,2967:&quot;STENCIL_REF&quot;,2968:&quot;STENCIL_WRITEMASK&quot;,2978:&quot;VIEWPORT&quot;,3024:&quot;DITHER&quot;,3042:&quot;BLEND&quot;,3088:&quot;SCISSOR_BOX&quot;,3089:&quot;SCISSOR_TEST&quot;,3106:&quot;COLOR_CLEAR_VALUE&quot;,3107:&quot;COLOR_WRITEMASK&quot;,3317:&quot;UNPACK_ALIGNMENT&quot;,3333:&quot;PACK_ALIGNMENT&quot;,3379:&quot;MAX_TEXTURE_SIZE&quot;,3386:&quot;MAX_VIEWPORT_DIMS&quot;,3408:&quot;SUBPIXEL_BITS&quot;,3410:&quot;RED_BITS&quot;,3411:&quot;GREEN_BITS&quot;,3412:&quot;BLUE_BITS&quot;,3413:&quot;ALPHA_BITS&quot;,3414:&quot;DEPTH_BITS&quot;,3415:&quot;STENCIL_BITS&quot;,3553:&quot;TEXTURE_2D&quot;,4352:&quot;DONT_CARE&quot;,4353:&quot;FASTEST&quot;,4354:&quot;NICEST&quot;,5120:&quot;BYTE&quot;,5121:&quot;UNSIGNED_BYTE&quot;,5122:&quot;SHORT&quot;,5123:&quot;UNSIGNED_SHORT&quot;,5124:&quot;INT&quot;,5125:&quot;UNSIGNED_INT&quot;,5126:&quot;FLOAT&quot;,5386:&quot;INVERT&quot;,5890:&quot;TEXTURE&quot;,6401:&quot;STENCIL_INDEX&quot;,6402:&quot;DEPTH_COMPONENT&quot;,6406:&quot;ALPHA&quot;,6407:&quot;RGB&quot;,6408:&quot;RGBA&quot;,6409:&quot;LUMINANCE&quot;,6410:&quot;LUMINANCE_ALPHA&quot;,7680:&quot;KEEP&quot;,7681:&quot;REPLACE&quot;,7682:&quot;INCR&quot;,7683:&quot;DECR&quot;,7936:&quot;VENDOR&quot;,7937:&quot;RENDERER&quot;,7938:&quot;VERSION&quot;,9728:&quot;NEAREST&quot;,9729:&quot;LINEAR&quot;,9984:&quot;NEAREST_MIPMAP_NEAREST&quot;,9985:&quot;LINEAR_MIPMAP_NEAREST&quot;,9986:&quot;NEAREST_MIPMAP_LINEAR&quot;,9987:&quot;LINEAR_MIPMAP_LINEAR&quot;,10240:&quot;TEXTURE_MAG_FILTER&quot;,10241:&quot;TEXTURE_MIN_FILTER&quot;,10242:&quot;TEXTURE_WRAP_S&quot;,10243:&quot;TEXTURE_WRAP_T&quot;,10497:&quot;REPEAT&quot;,10752:&quot;POLYGON_OFFSET_UNITS&quot;,16384:&quot;COLOR_BUFFER_BIT&quot;,32769:&quot;CONSTANT_COLOR&quot;,32770:&quot;ONE_MINUS_CONSTANT_COLOR&quot;,32771:&quot;CONSTANT_ALPHA&quot;,32772:&quot;ONE_MINUS_CONSTANT_ALPHA&quot;,32773:&quot;BLEND_COLOR&quot;,32774:&quot;FUNC_ADD&quot;,32777:&quot;BLEND_EQUATION_RGB&quot;,32778:&quot;FUNC_SUBTRACT&quot;,32779:&quot;FUNC_REVERSE_SUBTRACT&quot;,32819:&quot;UNSIGNED_SHORT_4_4_4_4&quot;,32820:&quot;UNSIGNED_SHORT_5_5_5_1&quot;,32823:&quot;POLYGON_OFFSET_FILL&quot;,32824:&quot;POLYGON_OFFSET_FACTOR&quot;,32854:&quot;RGBA4&quot;,32855:&quot;RGB5_A1&quot;,32873:&quot;TEXTURE_BINDING_2D&quot;,32926:&quot;SAMPLE_ALPHA_TO_COVERAGE&quot;,32928:&quot;SAMPLE_COVERAGE&quot;,32936:&quot;SAMPLE_BUFFERS&quot;,32937:&quot;SAMPLES&quot;,32938:&quot;SAMPLE_COVERAGE_VALUE&quot;,32939:&quot;SAMPLE_COVERAGE_INVERT&quot;,32968:&quot;BLEND_DST_RGB&quot;,32969:&quot;BLEND_SRC_RGB&quot;,32970:&quot;BLEND_DST_ALPHA&quot;,32971:&quot;BLEND_SRC_ALPHA&quot;,33071:&quot;CLAMP_TO_EDGE&quot;,33170:&quot;GENERATE_MIPMAP_HINT&quot;,33189:&quot;DEPTH_COMPONENT16&quot;,33306:&quot;DEPTH_STENCIL_ATTACHMENT&quot;,33635:&quot;UNSIGNED_SHORT_5_6_5&quot;,33648:&quot;MIRRORED_REPEAT&quot;,33901:&quot;ALIASED_POINT_SIZE_RANGE&quot;,33902:&quot;ALIASED_LINE_WIDTH_RANGE&quot;,33984:&quot;TEXTURE0&quot;,33985:&quot;TEXTURE1&quot;,33986:&quot;TEXTURE2&quot;,33987:&quot;TEXTURE3&quot;,33988:&quot;TEXTURE4&quot;,33989:&quot;TEXTURE5&quot;,33990:&quot;TEXTURE6&quot;,33991:&quot;TEXTURE7&quot;,33992:&quot;TEXTURE8&quot;,33993:&quot;TEXTURE9&quot;,33994:&quot;TEXTURE10&quot;,33995:&quot;TEXTURE11&quot;,33996:&quot;TEXTURE12&quot;,33997:&quot;TEXTURE13&quot;,33998:&quot;TEXTURE14&quot;,33999:&quot;TEXTURE15&quot;,34e3:&quot;TEXTURE16&quot;,34001:&quot;TEXTURE17&quot;,34002:&quot;TEXTURE18&quot;,34003:&quot;TEXTURE19&quot;,34004:&quot;TEXTURE20&quot;,34005:&quot;TEXTURE21&quot;,34006:&quot;TEXTURE22&quot;,34007:&quot;TEXTURE23&quot;,34008:&quot;TEXTURE24&quot;,34009:&quot;TEXTURE25&quot;,34010:&quot;TEXTURE26&quot;,34011:&quot;TEXTURE27&quot;,34012:&quot;TEXTURE28&quot;,34013:&quot;TEXTURE29&quot;,34014:&quot;TEXTURE30&quot;,34015:&quot;TEXTURE31&quot;,34016:&quot;ACTIVE_TEXTURE&quot;,34024:&quot;MAX_RENDERBUFFER_SIZE&quot;,34041:&quot;DEPTH_STENCIL&quot;,34055:&quot;INCR_WRAP&quot;,34056:&quot;DECR_WRAP&quot;,34067:&quot;TEXTURE_CUBE_MAP&quot;,34068:&quot;TEXTURE_BINDING_CUBE_MAP&quot;,34069:&quot;TEXTURE_CUBE_MAP_POSITIVE_X&quot;,34070:&quot;TEXTURE_CUBE_MAP_NEGATIVE_X&quot;,34071:&quot;TEXTURE_CUBE_MAP_POSITIVE_Y&quot;,34072:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Y&quot;,34073:&quot;TEXTURE_CUBE_MAP_POSITIVE_Z&quot;,34074:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Z&quot;,34076:&quot;MAX_CUBE_MAP_TEXTURE_SIZE&quot;,34338:&quot;VERTEX_ATTRIB_ARRAY_ENABLED&quot;,34339:&quot;VERTEX_ATTRIB_ARRAY_SIZE&quot;,34340:&quot;VERTEX_ATTRIB_ARRAY_STRIDE&quot;,34341:&quot;VERTEX_ATTRIB_ARRAY_TYPE&quot;,34342:&quot;CURRENT_VERTEX_ATTRIB&quot;,34373:&quot;VERTEX_ATTRIB_ARRAY_POINTER&quot;,34466:&quot;NUM_COMPRESSED_TEXTURE_FORMATS&quot;,34467:&quot;COMPRESSED_TEXTURE_FORMATS&quot;,34660:&quot;BUFFER_SIZE&quot;,34661:&quot;BUFFER_USAGE&quot;,34816:&quot;STENCIL_BACK_FUNC&quot;,34817:&quot;STENCIL_BACK_FAIL&quot;,34818:&quot;STENCIL_BACK_PASS_DEPTH_FAIL&quot;,34819:&quot;STENCIL_BACK_PASS_DEPTH_PASS&quot;,34877:&quot;BLEND_EQUATION_ALPHA&quot;,34921:&quot;MAX_VERTEX_ATTRIBS&quot;,34922:&quot;VERTEX_ATTRIB_ARRAY_NORMALIZED&quot;,34930:&quot;MAX_TEXTURE_IMAGE_UNITS&quot;,34962:&quot;ARRAY_BUFFER&quot;,34963:&quot;ELEMENT_ARRAY_BUFFER&quot;,34964:&quot;ARRAY_BUFFER_BINDING&quot;,34965:&quot;ELEMENT_ARRAY_BUFFER_BINDING&quot;,34975:&quot;VERTEX_ATTRIB_ARRAY_BUFFER_BINDING&quot;,35040:&quot;STREAM_DRAW&quot;,35044:&quot;STATIC_DRAW&quot;,35048:&quot;DYNAMIC_DRAW&quot;,35632:&quot;FRAGMENT_SHADER&quot;,35633:&quot;VERTEX_SHADER&quot;,35660:&quot;MAX_VERTEX_TEXTURE_IMAGE_UNITS&quot;,35661:&quot;MAX_COMBINED_TEXTURE_IMAGE_UNITS&quot;,35663:&quot;SHADER_TYPE&quot;,35664:&quot;FLOAT_VEC2&quot;,35665:&quot;FLOAT_VEC3&quot;,35666:&quot;FLOAT_VEC4&quot;,35667:&quot;INT_VEC2&quot;,35668:&quot;INT_VEC3&quot;,35669:&quot;INT_VEC4&quot;,35670:&quot;BOOL&quot;,35671:&quot;BOOL_VEC2&quot;,35672:&quot;BOOL_VEC3&quot;,35673:&quot;BOOL_VEC4&quot;,35674:&quot;FLOAT_MAT2&quot;,35675:&quot;FLOAT_MAT3&quot;,35676:&quot;FLOAT_MAT4&quot;,35678:&quot;SAMPLER_2D&quot;,35680:&quot;SAMPLER_CUBE&quot;,35712:&quot;DELETE_STATUS&quot;,35713:&quot;COMPILE_STATUS&quot;,35714:&quot;LINK_STATUS&quot;,35715:&quot;VALIDATE_STATUS&quot;,35716:&quot;INFO_LOG_LENGTH&quot;,35717:&quot;ATTACHED_SHADERS&quot;,35718:&quot;ACTIVE_UNIFORMS&quot;,35719:&quot;ACTIVE_UNIFORM_MAX_LENGTH&quot;,35720:&quot;SHADER_SOURCE_LENGTH&quot;,35721:&quot;ACTIVE_ATTRIBUTES&quot;,35722:&quot;ACTIVE_ATTRIBUTE_MAX_LENGTH&quot;,35724:&quot;SHADING_LANGUAGE_VERSION&quot;,35725:&quot;CURRENT_PROGRAM&quot;,36003:&quot;STENCIL_BACK_REF&quot;,36004:&quot;STENCIL_BACK_VALUE_MASK&quot;,36005:&quot;STENCIL_BACK_WRITEMASK&quot;,36006:&quot;FRAMEBUFFER_BINDING&quot;,36007:&quot;RENDERBUFFER_BINDING&quot;,36048:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE&quot;,36049:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_NAME&quot;,36050:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL&quot;,36051:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE&quot;,36053:&quot;FRAMEBUFFER_COMPLETE&quot;,36054:&quot;FRAMEBUFFER_INCOMPLETE_ATTACHMENT&quot;,36055:&quot;FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT&quot;,36057:&quot;FRAMEBUFFER_INCOMPLETE_DIMENSIONS&quot;,36061:&quot;FRAMEBUFFER_UNSUPPORTED&quot;,36064:&quot;COLOR_ATTACHMENT0&quot;,36096:&quot;DEPTH_ATTACHMENT&quot;,36128:&quot;STENCIL_ATTACHMENT&quot;,36160:&quot;FRAMEBUFFER&quot;,36161:&quot;RENDERBUFFER&quot;,36162:&quot;RENDERBUFFER_WIDTH&quot;,36163:&quot;RENDERBUFFER_HEIGHT&quot;,36164:&quot;RENDERBUFFER_INTERNAL_FORMAT&quot;,36168:&quot;STENCIL_INDEX8&quot;,36176:&quot;RENDERBUFFER_RED_SIZE&quot;,36177:&quot;RENDERBUFFER_GREEN_SIZE&quot;,36178:&quot;RENDERBUFFER_BLUE_SIZE&quot;,36179:&quot;RENDERBUFFER_ALPHA_SIZE&quot;,36180:&quot;RENDERBUFFER_DEPTH_SIZE&quot;,36181:&quot;RENDERBUFFER_STENCIL_SIZE&quot;,36194:&quot;RGB565&quot;,36336:&quot;LOW_FLOAT&quot;,36337:&quot;MEDIUM_FLOAT&quot;,36338:&quot;HIGH_FLOAT&quot;,36339:&quot;LOW_INT&quot;,36340:&quot;MEDIUM_INT&quot;,36341:&quot;HIGH_INT&quot;,36346:&quot;SHADER_COMPILER&quot;,36347:&quot;MAX_VERTEX_UNIFORM_VECTORS&quot;,36348:&quot;MAX_VARYING_VECTORS&quot;,36349:&quot;MAX_FRAGMENT_UNIFORM_VECTORS&quot;,37440:&quot;UNPACK_FLIP_Y_WEBGL&quot;,37441:&quot;UNPACK_PREMULTIPLY_ALPHA_WEBGL&quot;,37442:&quot;CONTEXT_LOST_WEBGL&quot;,37443:&quot;UNPACK_COLORSPACE_CONVERSION_WEBGL&quot;,37444:&quot;BROWSER_DEFAULT_WEBGL&quot;}},{}],272:[function(t,e,r){var n=t(&quot;./1.0/numbers&quot;);e.exports=function(t){return n[t]}},{&quot;./1.0/numbers&quot;:271}],273:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r&lt;3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho||!1?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f&lt;3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&amp;&amp;e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e&lt;3;++e){for(var r=[],n=1;n&lt;=2;++n)for(var i=-1;i&lt;=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a&lt;i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){&quot;lineWidth&quot;in(t=t||{})&amp;&amp;(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),&quot;capSize&quot;in t&amp;&amp;(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&amp;&amp;n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s&lt;3;++s){this.lineOffset[s]=o;t:for(var l=0;l&lt;a;++l){for(var u=r[l],h=0;h&lt;3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&amp;&amp;(d=e[l]),3===d.length?d=[d[0],d[1],d[2],1]:4===d.length&amp;&amp;(d=[d[0],d[1],d[2],d[3]],!this.hasAlpha&amp;&amp;d[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),!isNaN(p[0][s])&amp;&amp;!isNaN(p[1][s])){var g;if(p[0][s]&lt;0)(g=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s);if(p[1][s]&gt;0)(g=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{&quot;./shaders/index&quot;:275,&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361}],274:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n  vec4 worldPosition  = model * vec4(position, 1.0);\n  worldPosition       = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n  gl_Position         = projection * view * worldPosition;\n  fragColor           = color;\n  fragPosition        = position;\n}&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  gl_FragColor = opacity * fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;offset&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:339,glslify:274}],276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-texture2d&quot;);e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(&quot;WEBGL_draw_buffers&quot;);!l&amp;&amp;c&amp;&amp;function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n&lt;=r;++n){for(var i=new Array(r),a=0;a&lt;n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(a=n;a&lt;r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&amp;&amp;(n=r,r=0|e[1],e=0|e[0]);if(&quot;number&quot;!=typeof e)throw new Error(&quot;gl-fbo: Missing shape parameter&quot;);var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;u||r&lt;0||r&gt;u)throw new Error(&quot;gl-fbo: Parameters are too large for FBO&quot;);var f=1;if(&quot;color&quot;in(n=n||{})){if((f=Math.max(0|n.color,0))&lt;0)throw new Error(&quot;gl-fbo: Must specify a nonnegative number of colors&quot;);if(f&gt;1){if(!c)throw new Error(&quot;gl-fbo: Multiple draw buffer extension not supported&quot;);if(f&gt;t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(&quot;gl-fbo: Context does not support &quot;+f+&quot; draw buffers&quot;)}}var h=t.UNSIGNED_BYTE,p=t.getExtension(&quot;OES_texture_float&quot;);if(n.float&amp;&amp;f&gt;0){if(!p)throw new Error(&quot;gl-fbo: Context does not support floating point textures&quot;);h=t.FLOAT}else n.preferFloat&amp;&amp;f&gt;0&amp;&amp;p&amp;&amp;(h=t.FLOAT);var g=!0;&quot;depth&quot;in n&amp;&amp;(g=!!n.depth);var m=!1;&quot;stencil&quot;in n&amp;&amp;(m=!!n.stencil);return new d(t,e,r,h,f,g,m,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(&quot;gl-fbo: Framebuffer unsupported&quot;);case a:throw new Error(&quot;gl-fbo: Framebuffer incomplete attachment&quot;);case o:throw new Error(&quot;gl-fbo: Framebuffer incomplete dimensions&quot;);case s:throw new Error(&quot;gl-fbo: Framebuffer incomplete missing attachment&quot;);default:throw new Error(&quot;gl-fbo: Framebuffer failed for unspecified reason&quot;)}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d&lt;i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var g=this,m=[0|e,0|r];Object.defineProperties(m,{0:{get:function(){return g._shape[0]},set:function(t){return g.width=t}},1:{get:function(){return g._shape[1]},set:function(t){return g.height=t}}}),this._shapeVector=m,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,g=t._useDepth,m=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var v=0;v&lt;o;++v)t.color[v]=h(r,i,a,m,r.RGBA,r.COLOR_ATTACHMENT0+v);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&amp;&amp;s.drawBuffersWEBGL(l[0])):o&gt;1&amp;&amp;s.drawBuffersWEBGL(l[o]);var y=r.getExtension(&quot;WEBGL_depth_texture&quot;);y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&amp;&amp;(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&amp;&amp;d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&amp;&amp;(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&amp;&amp;(t.depth.dispose(),t.depth=null),t._depth_rb&amp;&amp;(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(v=0;v&lt;t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&amp;&amp;(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var g=d.prototype;function m(t,e,r){if(t._destroyed)throw new Error(&quot;gl-fbo: Can't resize destroyed FBO&quot;);if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-fbo: Can't resize FBO, invalid dimensions&quot;);t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o&lt;t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&amp;&amp;(t.depth.shape=t._shape),t._depth_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&amp;&amp;t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&amp;&amp;n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&amp;&amp;(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(g,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(&quot;gl-fbo: Shape vector must be length 2&quot;);var e=0|t[0],r=0|t[1];return m(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return m(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,m(this,this._shape[0],t),t},enumerable:!1}}),g.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},g.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&amp;&amp;(this.depth.dispose(),this.depth=null),this._depth_rb&amp;&amp;(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e&lt;this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&amp;&amp;(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{&quot;gl-texture2d&quot;:356}],277:[function(t,e,r){var n=t(&quot;sprintf-js&quot;).sprintf,i=t(&quot;gl-constants/lookup&quot;),a=t(&quot;glsl-shader-name&quot;),o=t(&quot;add-line-numbers&quot;);e.exports=function(t,e,r){&quot;use strict&quot;;var s=a(e)||&quot;of unknown name (see npm glsl-shader-name)&quot;,l=&quot;unknown type&quot;;void 0!==r&amp;&amp;(l=r===i.FRAGMENT_SHADER?&quot;fragment&quot;:&quot;vertex&quot;);for(var c=n(&quot;Error compiling %s shader %s:\n&quot;,l,s),u=n(&quot;%s%s&quot;,c,t),f=t.split(&quot;\n&quot;),h={},p=0;p&lt;f.length;p++){var d=f[p];if(&quot;&quot;!==d&amp;&amp;&quot;\0&quot;!==d){var g=parseInt(d.split(&quot;:&quot;)[2]);if(isNaN(g))throw new Error(n(&quot;Could not parse error: %s&quot;,d));h[g]=d}}var m=o(e).split(&quot;\n&quot;);for(p=0;p&lt;m.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var v=m[p];if(c+=v+&quot;\n&quot;,h[p+1]){var y=h[p+1];y=y.substr(y.split(&quot;:&quot;,3).join(&quot;:&quot;).length+1).trim(),c+=n(&quot;^^^ %s\n\n&quot;,y)}}return{long:c.trim(),short:u.trim()}}},{&quot;add-line-numbers&quot;:72,&quot;gl-constants/lookup&quot;:272,&quot;glsl-shader-name&quot;:434,&quot;sprintf-js&quot;:568}],278:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;iota-array&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;gl-shader&quot;),s=t(&quot;gl-buffer&quot;),l=t(&quot;./lib/shaders&quot;);function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n&lt;=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o&lt;=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p&lt;4;++p)e[p]=r&gt;&gt;8*p&amp;255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,f,p,d=t.colorLevels||[0],g=t.colorValues||[0,0,0,1],m=d.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],p=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,p=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(p-u),b=e[0],_=e[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length&gt;&gt;&gt;1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),A=a.mallocUint8(2*w),M=a.mallocUint32(w),S=0,E=l?b-1:b,L=l?_-1:_,C=0;C&lt;L;++C){var P,I;l?(P=x*(o[C]-u),I=x*(o[C+1]-u)):(P=C&lt;_-1?x*(o[C]-(o[C+1]-o[C])/2-u):x*(o[C]-(o[C]-o[C-1])/2-u),I=C&lt;_-1?x*(o[C]+(o[C+1]-o[C])/2-u):x*(o[C]+(o[C]-o[C-1])/2-u));for(var O=0;O&lt;E;++O){var z,D;l?(z=y*(r[O]-c),D=y*(r[O+1]-c)):(z=O&lt;b-1?y*(r[O]-(r[O+1]-r[O])/2-c):y*(r[O]-(r[O]-r[O-1])/2-c),D=O&lt;b-1?y*(r[O]+(r[O+1]-r[O])/2-c):y*(r[O]+(r[O]-r[O-1])/2-c));for(var R=0;R&lt;h.length;R+=2){var F,B,N,j,U=h[R],V=h[R+1],q=s[l?(C+V)*b+(O+U):C*b+O],H=n.le(d,q);if(H&lt;0)F=g[0],B=g[1],N=g[2],j=g[3];else if(H===m-1)F=g[4*m-4],B=g[4*m-3],N=g[4*m-2],j=g[4*m-1];else{var G=(q-d[H])/(d[H+1]-d[H]),Y=1-G,W=4*H,X=4*(H+1);F=Y*g[W]+G*g[X],B=Y*g[W+1]+G*g[X+1],N=Y*g[W+2]+G*g[X+2],j=Y*g[W+3]+G*g[X+3]}T[4*S]=255*F,T[4*S+1]=255*B,T[4*S+2]=255*N,T[4*S+3]=255*j,k[2*S]=.5*z+.5*D,k[2*S+1]=.5*P+.5*I,A[2*S]=U,A[2*S+1]=V,M[S]=C*b+O,S+=1}}}this.positionBuffer.update(k),this.weightBuffer.update(A),this.colorBuffer.update(T),this.idBuffer.update(M),a.free(k),a.free(T),a.free(A),a.free(M)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{&quot;./lib/shaders&quot;:279,&quot;binary-search-bounds&quot;:103,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339,&quot;iota-array&quot;:451,&quot;typedarray-pool&quot;:617}],279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);e.exports={fragment:n([&quot;precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n  gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n&quot;]),vertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  fragColor = color;\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;]),pickFragment:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n  vec2 d = step(.5, vWeight);\n  vec4 id = fragId + pickOffset;\n  id.x += d.x + d.y*shape.x;\n\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  gl_FragColor = id/255.;\n}\n&quot;]),pickVertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n  vWeight = weight;\n\n  fragId = pickId;\n\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;])}},{glslify:442}],280:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  vec4 startPoint = project(position);\n  vec4 endPoint   = project(nextPosition);\n\n  vec2 A = startPoint.xy / startPoint.w;\n  vec2 B =   endPoint.xy /   endPoint.w;\n\n  float clipAngle = atan(\n    (B.y - A.y) * screenShape.y,\n    (B.x - A.x) * screenShape.x\n  );\n\n  vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n    sin(clipAngle),\n    -cos(clipAngle)\n  ) / screenShape;\n\n  gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n  worldPosition = position;\n  pixelArcLength = arcLength;\n  fragColor = color;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3      clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float     dashScale;\nuniform float     opacity;\n\nvarying vec3    worldPosition;\nvarying float   pixelArcLength;\nvarying vec4    fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n  if(dashWeight &lt; 0.5) {\n    discard;\n  }\n  gl_FragColor = fragColor * opacity;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX  1.70141184e38\n#define FLOAT_MIN  1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n  float av = abs(v);\n\n  //Handle special cases\n  if(av &lt; FLOAT_MIN) {\n    return vec4(0.0, 0.0, 0.0, 0.0);\n  } else if(v &gt; FLOAT_MAX) {\n    return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n  } else if(v &lt; -FLOAT_MAX) {\n    return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n  }\n\n  vec4 c = vec4(0,0,0,0);\n\n  //Compute exponent and mantissa\n  float e = floor(log2(av));\n  float m = av * pow(2.0, -e) - 1.0;\n\n  //Unpack mantissa\n  c[1] = floor(128.0 * m);\n  m -= c[1] / 128.0;\n  c[2] = floor(32768.0 * m);\n  m -= c[2] / 32768.0;\n  c[3] = floor(8388608.0 * m);\n\n  //Unpack exponent\n  float ebias = e + 127.0;\n  c[0] = floor(ebias / 2.0);\n  ebias -= c[0] * 2.0;\n  c[1] += floor(ebias) * 128.0;\n\n  //Unpack sign bit\n  c[0] += 128.0 * step(0.0, -v);\n\n  //Scale back to range\n  return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n  gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}&quot;]),l=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;nextPosition&quot;,type:&quot;vec3&quot;},{name:&quot;arcLength&quot;,type:&quot;float&quot;},{name:&quot;lineWidth&quot;,type:&quot;float&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{&quot;gl-shader&quot;:339,glslify:282}],281:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl||t.scene&amp;&amp;t.scene.gl,r=f(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=h(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),p=0;p&lt;1024;++p)u.data[p]=255;var d=a(e,u);d.wrap=e.REPEAT;var g=new v(e,r,o,s,l,d);return g.update(t),g};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;gl-texture2d&quot;),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=t(&quot;binary-search-bounds&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;./lib/shaders&quot;),f=u.createShader,h=u.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n&lt;3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function g(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r&lt;3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function m(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:g(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:g(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;&quot;dashScale&quot;in t&amp;&amp;(this.dashScale=t.dashScale),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var p=t.color||t.colors||[0,0,0,1],g=t.lineWidth||1,m=!1;t:for(e=1;e&lt;h.length;++e){var v,y,x,b=h[e-1],_=h[e];for(a.push(s),o.push(b.slice()),r=0;r&lt;3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&amp;&amp;i.length&gt;0){for(var w=0;w&lt;24;++w)i.push(i[i.length-12]);u+=2,m=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(p[0])?(v=p.length&gt;e-1?p[e-1]:p.length&gt;0?p[p.length-1]:[0,0,0,1],y=p.length&gt;e?p[e]:p.length&gt;0?p[p.length-1]:[0,0,0,1]):v=y=p,3===v.length&amp;&amp;(v=[v[0],v[1],v[2],1]),3===y.length&amp;&amp;(y=[y[0],y[1],y[2],1]),!this.hasAlpha&amp;&amp;v[3]&lt;1&amp;&amp;(this.hasAlpha=!0),x=Array.isArray(g)?g.length&gt;e-1?g[e-1]:g.length&gt;0?g[g.length-1]:[0,0,0,1]:g;var T=s;if(s+=d(b,_),m){for(r=0;r&lt;2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,m=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,&quot;dashes&quot;in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e&lt;k.length;++e)k[e]=k[e-1]+k[e];var A=c(new Array(1024),[256,1,4]);for(e=0;e&lt;256;++e){for(r=0;r&lt;4;++r)A.set(e,0,r,0);1&amp;l.le(k,k[k.length-1]*e/255)?A.set(e,0,0,0):A.set(e,0,0,255)}this.texture.setPixels(A)}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=function(t,e,r,n){return o[0]=n,o[1]=r,o[2]=e,o[3]=t,s[0]}(t.value[0],t.value[1],t.value[2],0),r=l.le(this.arcLength,e);if(r&lt;0)return null;if(r===this.arcLength.length-1)return new m(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),c=1-a,u=[0,0,0],f=0;f&lt;3;++f)u[f]=c*n[f]+a*i[f];var h=Math.min(a&lt;.5?r:r+1,this.points.length-1);return new m(e,u,h,this.points[h])}},{&quot;./lib/shaders&quot;:280,&quot;binary-search-bounds&quot;:103,&quot;gl-buffer&quot;:267,&quot;gl-texture2d&quot;:356,&quot;gl-vao&quot;:361,ndarray:483}],282:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],283:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(h*v-p*m)-f*(l*v-c*m)+g*(l*p-c*h),t[1]=-(n*(h*v-p*m)-f*(i*v-a*m)+g*(i*p-a*h)),t[2]=n*(l*v-c*m)-s*(i*v-a*m)+g*(i*c-a*l),t[3]=-(n*(l*p-c*h)-s*(i*p-a*h)+f*(i*c-a*l)),t[4]=-(o*(h*v-p*m)-u*(l*v-c*m)+d*(l*p-c*h)),t[5]=r*(h*v-p*m)-u*(i*v-a*m)+d*(i*p-a*h),t[6]=-(r*(l*v-c*m)-o*(i*v-a*m)+d*(i*c-a*l)),t[7]=r*(l*p-c*h)-o*(i*p-a*h)+u*(i*c-a*l),t[8]=o*(f*v-p*g)-u*(s*v-c*g)+d*(s*p-c*f),t[9]=-(r*(f*v-p*g)-u*(n*v-a*g)+d*(n*p-a*f)),t[10]=r*(s*v-c*g)-o*(n*v-a*g)+d*(n*c-a*s),t[11]=-(r*(s*p-c*f)-o*(n*p-a*f)+u*(n*c-a*s)),t[12]=-(o*(f*m-h*g)-u*(s*m-l*g)+d*(s*h-l*f)),t[13]=r*(f*m-h*g)-u*(n*m-i*g)+d*(n*h-i*f),t[14]=-(r*(s*m-l*g)-o*(n*m-i*g)+d*(n*l-i*s)),t[15]=r*(s*h-l*f)-o*(n*h-i*f)+u*(n*l-i*s),t}},{}],284:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],285:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],286:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],287:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],m=t[15];return(e*o-r*a)*(f*m-h*g)-(e*s-n*a)*(u*m-h*d)+(e*l-i*a)*(u*g-f*d)+(r*s-n*o)*(c*m-h*p)-(r*l-i*o)*(c*g-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],288:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,g=a*o,m=a*s,v=a*l;return t[0]=1-f-d,t[1]=u+v,t[2]=h-m,t[3]=0,t[4]=u-v,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=h+m,t[9]=p-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],289:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);if(Math.abs(c)&lt;1e-6)return null;return o*=c=1/c,s*=c,l*=c,n=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],290:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,g=a*c,m=o*s,v=o*l,y=o*c;return t[0]=1-(p+g),t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=d+m,t[7]=0,t[8]=h+v,t[9]=d-m,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],291:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],292:[function(t,e,r){e.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},{}],293:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],294:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],295:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],296:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}},{}],297:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],298:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),copy:t(&quot;./copy&quot;),identity:t(&quot;./identity&quot;),transpose:t(&quot;./transpose&quot;),invert:t(&quot;./invert&quot;),adjoint:t(&quot;./adjoint&quot;),determinant:t(&quot;./determinant&quot;),multiply:t(&quot;./multiply&quot;),translate:t(&quot;./translate&quot;),scale:t(&quot;./scale&quot;),rotate:t(&quot;./rotate&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),fromRotation:t(&quot;./fromRotation&quot;),fromRotationTranslation:t(&quot;./fromRotationTranslation&quot;),fromScaling:t(&quot;./fromScaling&quot;),fromTranslation:t(&quot;./fromTranslation&quot;),fromXRotation:t(&quot;./fromXRotation&quot;),fromYRotation:t(&quot;./fromYRotation&quot;),fromZRotation:t(&quot;./fromZRotation&quot;),fromQuat:t(&quot;./fromQuat&quot;),frustum:t(&quot;./frustum&quot;),perspective:t(&quot;./perspective&quot;),perspectiveFromFieldOfView:t(&quot;./perspectiveFromFieldOfView&quot;),ortho:t(&quot;./ortho&quot;),lookAt:t(&quot;./lookAt&quot;),str:t(&quot;./str&quot;)}},{&quot;./adjoint&quot;:283,&quot;./clone&quot;:284,&quot;./copy&quot;:285,&quot;./create&quot;:286,&quot;./determinant&quot;:287,&quot;./fromQuat&quot;:288,&quot;./fromRotation&quot;:289,&quot;./fromRotationTranslation&quot;:290,&quot;./fromScaling&quot;:291,&quot;./fromTranslation&quot;:292,&quot;./fromXRotation&quot;:293,&quot;./fromYRotation&quot;:294,&quot;./fromZRotation&quot;:295,&quot;./frustum&quot;:296,&quot;./identity&quot;:297,&quot;./invert&quot;:299,&quot;./lookAt&quot;:300,&quot;./multiply&quot;:301,&quot;./ortho&quot;:302,&quot;./perspective&quot;:303,&quot;./perspectiveFromFieldOfView&quot;:304,&quot;./rotate&quot;:305,&quot;./rotateX&quot;:306,&quot;./rotateY&quot;:307,&quot;./rotateZ&quot;:308,&quot;./scale&quot;:309,&quot;./str&quot;:310,&quot;./translate&quot;:311,&quot;./transpose&quot;:312}],299:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,A=u*m-h*d,M=u*v-p*d,S=f*m-h*g,E=f*v-p*g,L=h*v-p*m,C=y*L-x*E+b*S+_*M-w*A+T*k;if(!C)return null;return C=1/C,t[0]=(s*L-l*E+c*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(g*T-m*w+v*_)*C,t[3]=(h*w-f*T-p*_)*C,t[4]=(l*M-o*L-c*A)*C,t[5]=(r*L-i*M+a*A)*C,t[6]=(m*b-d*T-v*x)*C,t[7]=(u*T-h*b+p*x)*C,t[8]=(o*E-s*M+c*k)*C,t[9]=(n*M-r*E-a*k)*C,t[10]=(d*w-g*b+v*y)*C,t[11]=(f*b-u*w-p*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(g*x-d*_-m*y)*C,t[15]=(u*_-f*x+h*y)*C,t}},{}],300:[function(t,e,r){var n=t(&quot;./identity&quot;);e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g=e[0],m=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],T=r[2];if(Math.abs(g-_)&lt;1e-6&amp;&amp;Math.abs(m-w)&lt;1e-6&amp;&amp;Math.abs(v-T)&lt;1e-6)return n(t);f=g-_,h=m-w,p=v-T,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*g+o*m+s*v),t[13]=-(l*g+c*m+u*v),t[14]=-(f*g+h*m+p*v),t[15]=1,t}},{&quot;./identity&quot;:297}],301:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}},{}],302:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}},{}],303:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],304:[function(t,e,r){e.exports=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}},{}],305:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,A,M,S,E=n[0],L=n[1],C=n[2],P=Math.sqrt(E*E+L*L+C*C);if(Math.abs(P)&lt;1e-6)return null;E*=P=1/P,L*=P,C*=P,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],g=e[8],m=e[9],v=e[10],y=e[11],x=E*E*o+a,b=L*E*o+C*i,_=C*E*o-L*i,w=E*L*o-C*i,T=L*L*o+a,k=C*L*o+E*i,A=E*C*o+L*i,M=L*C*o-E*i,S=C*C*o+a,t[0]=s*x+f*b+g*_,t[1]=l*x+h*b+m*_,t[2]=c*x+p*b+v*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*T+g*k,t[5]=l*w+h*T+m*k,t[6]=c*w+p*T+v*k,t[7]=u*w+d*T+y*k,t[8]=s*A+f*M+g*S,t[9]=l*A+h*M+m*S,t[10]=c*A+p*M+v*S,t[11]=u*A+d*M+y*S,e!==t&amp;&amp;(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],306:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],307:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],308:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],309:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],310:[function(t,e,r){e.exports=function(t){return&quot;mat4(&quot;+t[0]+&quot;, &quot;+t[1]+&quot;, &quot;+t[2]+&quot;, &quot;+t[3]+&quot;, &quot;+t[4]+&quot;, &quot;+t[5]+&quot;, &quot;+t[6]+&quot;, &quot;+t[7]+&quot;, &quot;+t[8]+&quot;, &quot;+t[9]+&quot;, &quot;+t[10]+&quot;, &quot;+t[11]+&quot;, &quot;+t[12]+&quot;, &quot;+t[13]+&quot;, &quot;+t[14]+&quot;, &quot;+t[15]+&quot;)&quot;}},{}],311:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]);return t}},{}],312:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],313:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;barycentric&quot;),i=t(&quot;polytope-closest-point/lib/closest_point_2d.js&quot;);function a(t,e){for(var r=[0,0,0,0],n=0;n&lt;4;++n)for(var i=0;i&lt;4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s&lt;3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}function s(t,e){for(var r=[0,0,0],n=0;n&lt;t.length;++n)for(var i=t[n],a=e[n],o=0;o&lt;3;++o)r[o]+=a*i[o];return r}e.exports=function(t,e,r,a,l,c){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),f=0;f&lt;t.length;++f)u[f]=o(t[f],r,a,l,c);var h=0,p=1/0;for(f=0;f&lt;u.length;++f){for(var d=0,g=0;g&lt;2;++g)d+=Math.pow(u[f][g]-e[g],2);d&lt;p&amp;&amp;(p=d,h=f)}var m=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o&lt;2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a&lt;1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(u,e),v=0;for(f=0;f&lt;3;++f){if(m[f]&lt;-.001||m[f]&gt;1.0001)return null;v+=m[f]}if(Math.abs(v-1)&gt;.001)return null;return[h,s(t,m),m]}},{barycentric:85,&quot;polytope-closest-point/lib/closest_point_2d.js&quot;:512}],314:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n           , view\n           , projection\n           , inverseModel;\nuniform vec3 eyePosition\n           , lightPosition;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  gl_Position      = project(position);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * vec4(position , 1.0);\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal  = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  f_color          = color;\n  f_data           = position;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n            , fresnel\n            , kambient\n            , kdiffuse\n            , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (f_color.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], f_data)\n  ) discard;\n\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * f_color.a;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_color = color;\n  f_data  = position;\n  f_uv    = uv;\n}&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n  } else {\n    gl_Position = projection * view * model * vec4(position, 1.0);\n  }\n  gl_PointSize = pointSize;\n  f_color = color;\n  f_uv = uv;\n}&quot;]),c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n  if(dot(pointR, pointR) &gt; 0.25) {\n    discard;\n  }\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_id        = id;\n  f_position  = position;\n}&quot;]),f=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]),h=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3  position;\nattribute float pointSize;\nattribute vec4  id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n  } else {\n    gl_Position  = projection * view * model * vec4(position, 1.0);\n    gl_PointSize = pointSize;\n  }\n  f_id         = id;\n  f_position   = position;\n}&quot;]),p=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n}&quot;]),d=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n  gl_FragColor = vec4(contourColor, 1.0);\n}\n&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;}]}},{glslify:442}],315:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;normals&quot;),l=t(&quot;gl-mat4/multiply&quot;),c=t(&quot;gl-mat4/invert&quot;),u=t(&quot;ndarray&quot;),f=t(&quot;colormap&quot;),h=t(&quot;simplicial-complex-contour&quot;),p=t(&quot;typedarray-pool&quot;),d=t(&quot;./lib/shaders&quot;),g=t(&quot;./lib/closest-point&quot;),m=d.meshShader,v=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,T,k,A,M,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=m,this.edgeUVs=v,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=T,this.pointSizes=k,this.pointIds=b,this.pointVAO=A,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=M,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function A(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function M(t){var e=n(t,m.vertex,m.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function S(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function E(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function L(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function C(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function P(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&amp;&amp;this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l&lt;a;++l)for(var c=r[l],u=0;u&lt;2;++u){var f=c[0];2===c.length&amp;&amp;(f=c[u]);for(var d=n[f][0],g=n[f][1],m=i[f],v=1-m,y=this.positions[d],x=this.positions[g],b=0;b&lt;3;++b)o[s++]=m*y[b]+v*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},k.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;contourEnable&quot;in t&amp;&amp;(this.contourEnable=t.contourEnable),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=t.contourColor),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale,this.hasAlpha=!0),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t,e){for(var r=f({colormap:t,nshades:256,format:&quot;rgba&quot;}),n=new Uint8Array(1024),i=0;i&lt;256;++i){for(var a=r[i],o=0;o&lt;3;++o)n[4*i+o]=a[o];n[4*i+3]=e?255*A(i/255,e):255*a[3]}return u(n,[256,256,4],[4,0,1])}(t.colormap,this.opacityscale)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&amp;&amp;r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],g=[],m=[],v=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,T=t.cellNormals,k=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,M=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&amp;&amp;!T&amp;&amp;(T=s.faceNormals(r,n,M)),T||w||(w=s.vertexNormals(r,n,k));var S=t.vertexColors,E=t.cellColors,L=t.meshColor||[1,1,1,1],C=t.vertexUVs,P=t.vertexIntensity,I=t.cellUVs,O=t.cellIntensity,z=1/0,D=-1/0;if(!C&amp;&amp;!I)if(P)if(t.vertexIntensityBounds)z=+t.vertexIntensityBounds[0],D=+t.vertexIntensityBounds[1];else for(var R=0;R&lt;P.length;++R){var F=P[R];z=Math.min(z,F),D=Math.max(D,F)}else if(O)if(t.cellIntensityBounds)z=+t.cellIntensityBounds[0],D=+t.cellIntensityBounds[1];else for(R=0;R&lt;O.length;++R){F=O[R];z=Math.min(z,F),D=Math.max(D,F)}else for(R=0;R&lt;n.length;++R){F=n[R][2];z=Math.min(z,F),D=Math.max(D,F)}this.intensity=P||(O||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n)),this.pickVertex=!(O||E);var B=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(R=0;R&lt;n.length;++R)for(var j=n[R],U=0;U&lt;3;++U)!isNaN(j[U])&amp;&amp;isFinite(j[U])&amp;&amp;(this.bounds[0][U]=Math.min(this.bounds[0][U],j[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],j[U]));var V=0,q=0,H=0;t:for(R=0;R&lt;r.length;++R){var G=r[R];switch(G.length){case 1:for(j=n[W=G[0]],U=0;U&lt;3;++U)if(isNaN(j[U])||!isFinite(j[U]))continue t;v.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:L,this.opacityscale&amp;&amp;P?a.push(X[0],X[1],X[2],this.opacity*A((P[W]-z)/(D-z),this.opacityscale)):3===X.length?y.push(X[0],X[1],X[2],this.opacity):(y.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=C?C[W]:P?[(P[W]-z)/(D-z),0]:I?I[R]:O?[(O[R]-z)/(D-z),0]:[(j[2]-z)/(D-z),0],x.push(Z[0],Z[1]),B?b.push(B[W]):b.push(N),_.push(R),H+=1;break;case 2:for(U=0;U&lt;2;++U){j=n[W=G[U]];for(var Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t}for(U=0;U&lt;2;++U){j=n[W=G[U]];p.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:L,this.opacityscale&amp;&amp;P?a.push(X[0],X[1],X[2],this.opacity*A((P[W]-z)/(D-z),this.opacityscale)):3===X.length?d.push(X[0],X[1],X[2],this.opacity):(d.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=C?C[W]:P?[(P[W]-z)/(D-z),0]:I?I[R]:O?[(O[R]-z)/(D-z),0]:[(j[2]-z)/(D-z),0],g.push(Z[0],Z[1]),m.push(R)}q+=1;break;case 3:for(U=0;U&lt;3;++U)for(j=n[W=G[U]],Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t;for(U=0;U&lt;3;++U){var W,X,Z,J;j=n[W=G[2-U]];i.push(j[0],j[1],j[2]),(X=S?S[W]:E?E[R]:L)?this.opacityscale&amp;&amp;P?a.push(X[0],X[1],X[2],this.opacity*A((P[W]-z)/(D-z),this.opacityscale)):3===X.length?a.push(X[0],X[1],X[2],this.opacity):(a.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)):a.push(.5,.5,.5,1),Z=C?C[W]:P?[(P[W]-z)/(D-z),0]:I?I[R]:O?[(O[R]-z)/(D-z),0]:[(j[2]-z)/(D-z),0],c.push(Z[0],Z[1]),J=w?w[W]:T[R],l.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=H,this.edgeCount=q,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(g),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},k.drawTransparent=k.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,inverseModel:w.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};s.inverseModel=c(s.inverseModel,s.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o&lt;3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount&gt;0&amp;&amp;((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount&gt;0&amp;&amp;this.lineWidth&gt;0&amp;&amp;((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount&gt;0&amp;&amp;((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&amp;&amp;this.contourCount&gt;0&amp;&amp;this.contourLineWidth&gt;0&amp;&amp;((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount&gt;0&amp;&amp;(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount&gt;0)&amp;&amp;((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a&lt;r.length;++a)i[a]=n[r[a]];var o=t.coord[0],s=t.coord[1];if(!this.pickVertex){var l=this.positions[r[0]],c=this.positions[r[1]],u=this.positions[r[2]],f=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[o,s],index:e,cell:r,cellId:e,intensity:this.intensity[e],dataCoordinate:f}}var h=g(i,[o*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!h)return null;var p=h[2],d=0;for(a=0;a&lt;r.length;++a)d+=p[a]*this.intensity[r[a]];return{position:h[1],index:r[h[0]],cell:r,cellId:e,intensity:d,dataCoordinate:this.positions[r[h[0]]]}},k.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){1===arguments.length&amp;&amp;(t=(e=t).gl);var r=t.getExtension(&quot;OES_standard_derivatives&quot;)||t.getExtension(&quot;MOZ_OES_standard_derivatives&quot;)||t.getExtension(&quot;WEBKIT_OES_standard_derivatives&quot;);if(!r)throw new Error(&quot;derivatives not supported&quot;);var n=M(t),s=S(t),l=E(t),c=L(t),f=C(t),h=P(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),g=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:m,type:t.FLOAT,size:2},{buffer:v,type:t.FLOAT,size:3}]),b=i(t),_=i(t),w=i(t),k=i(t),A=a(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),I=i(t),O=i(t),z=i(t),D=i(t),R=i(t),F=a(t,[{buffer:I,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:O,type:t.FLOAT,size:4},{buffer:z,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),B=i(t),N=a(t,[{buffer:B,type:t.FLOAT,size:3}]),j=new T(t,p,n,s,l,c,f,h,d,y,g,m,v,x,b,k,_,w,A,I,R,O,z,D,F,B,N);return j.update(e),j}},{&quot;./lib/closest-point&quot;:313,&quot;./lib/shaders&quot;:314,colormap:137,&quot;gl-buffer&quot;:267,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/multiply&quot;:301,&quot;gl-shader&quot;:339,&quot;gl-texture2d&quot;:356,&quot;gl-vao&quot;:361,ndarray:483,normals:486,&quot;simplicial-complex-contour&quot;:557,&quot;typedarray-pool&quot;:617}],316:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:319,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339}],317:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;binary-search-bounds&quot;),o=t(&quot;./shaders&quot;);function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,g=0;g&lt;2;++g){var m=a[g],v=a[g+2]-m,y=.5*(o[g+2]+o[g]),x=o[g+2]-o[g];u[g]=2*v/x,c[g]=2*(m-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(g=0;g&lt;2;++g){f[0]=f[1]=0,f[g]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[g]/(s[g+2]-s[g])*d,r.uniforms.color=h[g];var _=6*n[g].length;p[g]&amp;&amp;_&amp;&amp;i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,g=s.viewBox,m=s.pixelRatio,v=s.screenBox,y=v[2]-v[0],x=v[3]-v[1],b=g[2]-g[0],_=g[3]-g[1],w=0;w&lt;2;++w){var T=p[w],k=p[w+2]-T,A=.5*(d[w+2]+d[w]),M=d[w+2]-d[w];e[w]=2*k/M,t[w]=2*(T-A)/M}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,L=s.tickMarkWidth,C=s.tickMarkColor,P=6*f[0].length,I=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),O=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),z=0+6*I,D=6*Math.max(0,O-I),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),F=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),B=P+6*R,N=6*Math.max(0,F-R);i[0]=2*(g[0]-E[1])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[1]*m/y,o[1]=L[1]*m/x,N&amp;&amp;(S.color=C[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[1]-E[0])/x-1,o[0]=L[0]*m/y,o[1]=E[0]*m/x,D&amp;&amp;(S.color=C[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,z,D)),i[0]=2*(g[2]+E[3])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[3]*m/y,o[1]=L[3]*m/x,N&amp;&amp;(S.color=C[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[3]+E[2])/x-1,o[0]=L[2]*m/y,o[1]=E[2]*m/x,D&amp;&amp;(S.color=C[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,z,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o&lt;2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f&lt;l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var g=0;g&lt;6;++g)n[i++]=d,n[i++]=h[g],n[i++]=p[g]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{&quot;./shaders&quot;:319,&quot;binary-search-bounds&quot;:103,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339}],318:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:319,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339}],319:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n&quot;]);e.exports={lineVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n  return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  vec2 delta = normalize(perp(start - end));\n  vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n  gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n&quot;]),lineFrag:i,textVert:n([&quot;#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n  float dataOffset  = textCoordinate.z;\n  vec2 glyphOffset  = textCoordinate.xy;\n  mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n  vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n    glyphMatrix * glyphOffset * textScale + screenOffset;\n  gl_Position = vec4(screenCoordinate, 0, 1);\n}\n&quot;]),textFrag:i,gridVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n  gl_Position = vec4(pos, 0, 1);\n}\n&quot;]),gridFrag:i,boxVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n&quot;]),tickVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n&quot;])}},{glslify:321}],320:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;text-cache&quot;),o=t(&quot;binary-search-bounds&quot;),s=t(&quot;./shaders&quot;);function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,g=l.prototype;g.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,g=e.tickPad,m=e.tickColor,v=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],T=this.labelCount[t],k=o.lt(n,l[t]),A=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var M=2/h[2+(1^t)]-h[1^t];u[1^t]=M*s[1^t]-1,d[t]&amp;&amp;(u[1^t]-=M*p*g[t],k&lt;A&amp;&amp;i[A]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t],r.uniforms.angle=v[t],a.drawArrays(a.TRIANGLES,i[k],i[A]-i[k]))),y[t]&amp;&amp;T&amp;&amp;(u[1^t]-=M*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,T)),u[1^t]=M*s[2+(1^t)]-1,d[t+2]&amp;&amp;(u[1^t]+=M*p*g[t+2],k&lt;A&amp;&amp;i[A]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t+2],r.uniforms.angle=v[t+2],a.drawArrays(a.TRIANGLES,i[k],i[A]-i[k]))),y[t+2]&amp;&amp;T&amp;&amp;(u[1^t]+=M*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,T))}),g.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u&lt;2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),g.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o&lt;2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],g=a[o+2]-f,m=i[o],v=i[o+2]-m;p[o]=2*l/u*g/v,h[o]=2*(s-c)/u*g/v}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),g.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o&lt;2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e&lt;h.length;++e){var p=h[e],d=p.x,g=p.text,m=p.font||&quot;sans-serif&quot;;i=p.fontSize||12;for(var v=1/(c[o+2]-c[o]),y=c[o],x=g.split(&quot;\n&quot;),b=0;b&lt;x.length;b++)for(n=a(m,x[b]).data,r=0;r&lt;n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*v);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o&lt;2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:&quot;center&quot;}).data,i=t.labelSize[o],e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},g.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:319,&quot;binary-search-bounds&quot;:103,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339,&quot;text-cache&quot;:596}],321:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],322:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(&quot;gl-select-static&quot;),i=t(&quot;./lib/grid&quot;),a=t(&quot;./lib/text&quot;),o=t(&quot;./lib/line&quot;),s=t(&quot;./lib/box&quot;);function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r&lt;e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&amp;&amp;(this._pickTimeout&amp;&amp;clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d&lt;2;++d)if(f[d]&amp;&amp;n[d]&lt;=0&amp;&amp;n[d+2]&gt;=0){var g=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(g,e[1],g,e[3],p[d],h[d]):o.drawLine(e[0],g,e[2],g,p[d],h[d])}}for(d=0;d&lt;l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var m=this.borderLineEnable,v=this.borderLineWidth,y=this.borderLineColor;for(m[1]&amp;&amp;o.drawLine(r[0],r[1]-.5*v[1]*i,r[0],r[3]+.5*v[3]*i,v[1],y[1]),m[0]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[1],r[2]+.5*v[2]*i,r[1],v[0],y[0]),m[3]&amp;&amp;o.drawLine(r[2],r[1]-.5*v[1]*i,r[2],r[3]+.5*v[3]*i,v[3],y[3]),m[2]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[3],r[2]+.5*v[2]*i,r[3],v[2],y[2]),s.bind(),d=0;d&lt;2;++d)s.drawTicks(d);this.titleEnable&amp;&amp;s.drawTitle();var x=this.overlays;for(d=0;d&lt;x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl,this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n&lt;r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]&lt;&lt;8)+(s.value[1]&lt;&lt;16)+(s.value[2]&lt;&lt;24),c=this.objects,u=0;u&lt;c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&amp;&amp;(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&amp;&amp;(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(&quot;titleEnable&quot;in t)||!!t.titleEnable,this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s&lt;2;++s){var l=a[s].slice(0);0!==l.length&amp;&amp;(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[&quot;x&quot;,&quot;y&quot;],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[&quot;sans-serif&quot;,&quot;sans-serif&quot;],title:t.title||&quot;&quot;,titleSize:t.titleSize||18,titleFont:t.titleFont||&quot;sans-serif&quot;}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t&gt;=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t&gt;=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)&lt;0&amp;&amp;(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)&lt;0&amp;&amp;(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{&quot;./lib/box&quot;:316,&quot;./lib/grid&quot;:317,&quot;./lib/line&quot;:318,&quot;./lib/text&quot;:320,&quot;gl-select-static&quot;:338}],323:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];&quot;distanceLimits&quot;in e&amp;&amp;(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);&quot;zoomMin&quot;in e&amp;&amp;(r[0]=e.zoomMin);&quot;zoomMax&quot;in e&amp;&amp;(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||&quot;orbit&quot;,distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:&quot;rotate&quot;,enableWheel:!0,view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,_ortho:e._ortho||e.projection&amp;&amp;&quot;orthographic&quot;===e.projection.type||!1,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s&lt;16;++s)a=a&amp;&amp;u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&amp;&amp;t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};return Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),&quot;turntable&quot;===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault(),!1})),d._lastX=-1,d._lastY=-1,d._lastMods={shift:!1,control:!1,alt:!1,meta:!1},d.enableMouseListeners=function(){function e(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=&quot;rotate&quot;===o,l=&quot;pan&quot;===o,u=&quot;zoom&quot;===o,h=!!a.control,p=!!a.alt,g=!!a.shift,m=!!(1&amp;e),v=!!(2&amp;e),y=!!(4&amp;e),x=1/t.clientHeight,b=x*(r-d._lastX),_=x*(i-d._lastY),w=d.flipX?1:-1,T=d.flipY?1:-1,k=Math.PI*d.rotateSpeed,A=n();if(-1!==d._lastX&amp;&amp;-1!==d._lastY&amp;&amp;((s&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||m&amp;&amp;!h&amp;&amp;!p&amp;&amp;g)&amp;&amp;c.rotate(A,w*k*b,-T*k*_,0),(l&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||v||m&amp;&amp;h&amp;&amp;!p&amp;&amp;!g)&amp;&amp;c.pan(A,-d.translateSpeed*b*f,d.translateSpeed*_*f,0),u&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||y||m&amp;&amp;!h&amp;&amp;p&amp;&amp;!g)){var M=-d.zoomSpeed*_/window.innerHeight*(A-c.lastT())*100;c.pan(A,0,0,f*(Math.exp(M)-1))}return d._lastX=r,d._lastY=i,d._lastMods=a,!0}}d.mouseListener=a(t,e),t.addEventListener(&quot;touchstart&quot;,(function(r){var n=s(r.changedTouches[0],t);e(0,n[0],n[1],d._lastMods),e(1,n[0],n[1],d._lastMods)}),!!l&amp;&amp;{passive:!0}),t.addEventListener(&quot;touchmove&quot;,(function(r){var n=s(r.changedTouches[0],t);e(1,n[0],n[1],d._lastMods),r.preventDefault()}),!!l&amp;&amp;{passive:!1}),t.addEventListener(&quot;touchend&quot;,(function(t){e(0,d._lastX,d._lastY,d._lastMods)}),!!l&amp;&amp;{passive:!0}),d.wheelListener=o(t,(function(t,e){if(!1!==d.keyBindingMode&amp;&amp;d.enableWheel){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)&gt;Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=t(&quot;right-now&quot;),i=t(&quot;3d-view&quot;),a=t(&quot;mouse-change&quot;),o=t(&quot;mouse-wheel&quot;),s=t(&quot;mouse-event-offset&quot;),l=t(&quot;has-passive-events&quot;)},{&quot;3d-view&quot;:55,&quot;has-passive-events&quot;:444,&quot;mouse-change&quot;:470,&quot;mouse-event-offset&quot;:471,&quot;mouse-wheel&quot;:473,&quot;right-now&quot;:542}],324:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n  uv = position;\n  gl_Position = vec4(position, 0, 1);\n}&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n  vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n  gl_FragColor = min(vec4(1,1,1,1), accum);\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec2&quot;}])}},{&quot;gl-shader&quot;:339,glslify:325}],325:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],326:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./camera.js&quot;),i=t(&quot;gl-axes3d&quot;),a=t(&quot;gl-axes3d/properties&quot;),o=t(&quot;gl-spikes3d&quot;),s=t(&quot;gl-select-static&quot;),l=t(&quot;gl-fbo&quot;),c=t(&quot;a-big-triangle&quot;),u=t(&quot;mouse-change&quot;),f=t(&quot;gl-mat4/perspective&quot;),h=t(&quot;gl-mat4/ortho&quot;),p=t(&quot;./lib/shader&quot;),d=t(&quot;is-mobile&quot;)({tablet:!0,featureDetect:!0});function g(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function m(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e&lt;0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e&gt;0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return&quot;boolean&quot;!=typeof t||t}e.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;if(!e){if(e=document.createElement(&quot;canvas&quot;),t.container)t.container.appendChild(e);else document.body.appendChild(e)}var r=t.gl;r||(t.glOptions&amp;&amp;(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext(&quot;webgl&quot;,e))||(r=t.getContext(&quot;experimental-webgl&quot;,e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}));if(!r)throw new Error(&quot;webgl not supported&quot;);var y=t.bounds||[[-10,-10,-10],[10,10,10]],x=new g,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),_=p(r),w=t.cameraObject&amp;&amp;!0===t.cameraObject._ortho||t.camera.projection&amp;&amp;&quot;orthographic&quot;===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||&quot;turntable&quot;,_ortho:w},k=t.axes||{},A=i(r,k);A.enable=!k.disable;var M=t.spikes||{},S=o(r,M),E=[],L=[],C=[],P=[],I=!0,O=!0,z=new Array(16),D=new Array(16),R={view:null,projection:z,model:D,_ortho:!1},F=(O=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),B=t.cameraObject||n(e,T),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:B,axes:A,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,O=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},j=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&amp;&amp;N.autoResize){var t=e.parentNode,r=1,n=1;t&amp;&amp;t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||&quot;absolute&quot;,o.left=&quot;0px&quot;,o.top=&quot;0px&quot;,o.width=r+&quot;px&quot;,o.height=n+&quot;px&quot;,I=!0}}}N.autoResize&amp;&amp;U();function V(){for(var t=E.length,e=P.length,n=0;n&lt;e;++n)C[n]=0;t:for(n=0;n&lt;t;++n){var i=E[n],a=i.pickSlots;if(a){for(var o=0;o&lt;e;++o)if(C[o]+a&lt;255){L[n]=o,i.setPickBase(C[o]+1),C[o]+=a;continue t}var l=s(r,F);L[n]=e,P.push(l),C.push(a),i.setPickBase(1),e+=1}else L[n]=-1}for(;e&gt;0&amp;&amp;0===C[e-1];)C.pop(),P.pop().dispose()}function q(){if(N.contextLost)return!0;r.isContextLost()&amp;&amp;(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&amp;&amp;N.oncontextloss())}window.addEventListener(&quot;resize&quot;,U),N.update=function(t){N._stopped||(t=t||{},I=!0,O=!0)},N.add=function(t){N._stopped||(t.axes=A,E.push(t),L.push(-1),I=!0,O=!0,V())},N.remove=function(t){if(!N._stopped){var e=E.indexOf(t);e&lt;0||(E.splice(e,1),L.pop(),I=!0,O=!0,V())}},N.dispose=function(){if(!N._stopped&amp;&amp;(N._stopped=!0,window.removeEventListener(&quot;resize&quot;,U),e.removeEventListener(&quot;webglcontextlost&quot;,q),N.mouseListener.enabled=!1,!N.contextLost)){A.dispose(),S.dispose();for(var t=0;t&lt;E.length;++t)E[t].dispose();b.dispose();for(t=0;t&lt;P.length;++t)P[t].dispose();_.dispose(),r=null,A=null,S=null,E=[]}},N._mouseRotating=!1,N._prevButtons=0,N.enableMouseListeners=function(){N.mouseListener=u(e,(function(t,e,r){if(!N._stopped){var n=P.length,i=E.length,a=x.object;x.distance=1/0,x.mouse[0]=e,x.mouse[1]=r,x.object=null,x.screen=null,x.dataCoordinate=x.dataPosition=null;var o=!1;if(t&amp;&amp;N._prevButtons)N._mouseRotating=!0;else{N._mouseRotating&amp;&amp;(O=!0),N._mouseRotating=!1;for(var s=0;s&lt;n;++s){var l=P[s].query(e,j[1]-r-1,N.pickRadius);if(l){if(l.distance&gt;x.distance)continue;for(var c=0;c&lt;i;++c){var u=E[c];if(L[c]===s){var f=u.pick(l);f&amp;&amp;(x.buttons=t,x.screen=l.coord,x.distance=l.distance,x.object=u,x.index=f.distance,x.dataPosition=f.position,x.dataCoordinate=f.dataCoordinate,x.data=f,o=!0)}}}}}a&amp;&amp;a!==x.object&amp;&amp;(a.highlight&amp;&amp;a.highlight(null),I=!0),x.object&amp;&amp;(x.object.highlight&amp;&amp;x.object.highlight(x.data),I=!0),(o=o||x.object!==a)&amp;&amp;N.onselect&amp;&amp;N.onselect(x),1&amp;t&amp;&amp;!(1&amp;N._prevButtons)&amp;&amp;N.onclick&amp;&amp;N.onclick(x),N._prevButtons=t}}))},e.addEventListener(&quot;webglcontextlost&quot;,q);var H=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],G=[H[0].slice(),H[1].slice()];function Y(){if(!q()){U();var t=N.camera.tick();R.view=N.camera.matrix,I=I||t,O=O||t,A.pixelRatio=N.pixelRatio,S.pixelRatio=N.pixelRatio;var e=E.length,n=H[0],i=H[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o&lt;e;++o){(C=E[o]).pixelRatio=N.pixelRatio,C.axes=N.axes,I=I||!!C.dirty,O=O||!!C.dirty;var s=C.bounds;if(s)for(var l=s[0],u=s[1],p=0;p&lt;3;++p)n[p]=Math.min(n[p],l[p]),i[p]=Math.max(i[p],u[p])}var d=N.bounds;if(N.autoBounds)for(p=0;p&lt;3;++p){if(i[p]&lt;n[p])n[p]=-1,i[p]=1;else{n[p]===i[p]&amp;&amp;(n[p]-=1,i[p]+=1);var g=.05*(i[p]-n[p]);n[p]=n[p]-g,i[p]=i[p]+g}d[0][p]=n[p],d[1][p]=i[p]}var v=!1;for(p=0;p&lt;3;++p)v=v||G[0][p]!==d[0][p]||G[1][p]!==d[1][p],G[0][p]=d[0][p],G[1][p]=d[1][p];if(O=O||v,I=I||v){if(v){var y=[0,0,0];for(o=0;o&lt;3;++o)y[o]=m((d[1][o]-d[0][o])/10);A.autoTicks?A.update({bounds:d,tickSpacing:y}):A.update({bounds:d})}var T=r.drawingBufferWidth,k=r.drawingBufferHeight;F[0]=T,F[1]=k,j[0]=0|Math.max(T/N.pixelRatio,1),j[1]=0|Math.max(k/N.pixelRatio,1),function(t,e){var r=t.bounds,n=t.cameraParams,i=n.projection,a=n.model,o=t.gl.drawingBufferWidth,s=t.gl.drawingBufferHeight,l=t.zNear,c=t.zFar,u=t.fovy,p=o/s;e?(h(i,-p,p,-1,1,l,c),n._ortho=!0):(f(i,u,p,l,c),n._ortho=!1);for(var d=0;d&lt;16;++d)a[d]=0;a[15]=1;var g=0;for(d=0;d&lt;3;++d)g=Math.max(g,r[1][d]-r[0][d]);for(d=0;d&lt;3;++d)t.autoScale?a[5*d]=t.aspect[d]/(r[1][d]-r[0][d]):a[5*d]=1/g,t.autoCenter&amp;&amp;(a[12+d]=.5*-a[5*d]*(r[0][d]+r[1][d]))}(N,w);for(o=0;o&lt;e;++o){(C=E[o]).axesBounds=d,N.clipToBounds&amp;&amp;(C.clipBounds=d)}x.object&amp;&amp;(N.snapToData?S.position=x.dataCoordinate:S.position=x.dataPosition,S.bounds=d),O&amp;&amp;(O=!1,function(){if(!q()){r.colorMask(!0,!0,!0,!0),r.depthMask(!0),r.disable(r.BLEND),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL);for(var t=E.length,e=P.length,n=0;n&lt;e;++n){var i=P[n];i.shape=j,i.begin();for(var a=0;a&lt;t;++a)if(L[a]===n){var o=E[a];o.drawPick&amp;&amp;(o.pixelRatio=1,o.drawPick(R))}i.end()}}}()),N.axesPixels=a(N.axes,R,T,k),N.onrender&amp;&amp;N.onrender(),r.bindFramebuffer(r.FRAMEBUFFER,null),r.viewport(0,0,T,k),N.clearRGBA(),r.depthMask(!0),r.colorMask(!0,!0,!0,!0),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.disable(r.BLEND),r.disable(r.CULL_FACE);var M=!1;A.enable&amp;&amp;(M=M||A.isTransparent(),A.draw(R)),S.axes=A,x.object&amp;&amp;S.draw(R),r.disable(r.CULL_FACE);for(o=0;o&lt;e;++o){(C=E[o]).axes=A,C.pixelRatio=N.pixelRatio,C.isOpaque&amp;&amp;C.isOpaque()&amp;&amp;C.draw(R),C.isTransparent&amp;&amp;C.isTransparent()&amp;&amp;(M=!0)}if(M){b.shape=F,b.bind(),r.clear(r.DEPTH_BUFFER_BIT),r.colorMask(!1,!1,!1,!1),r.depthMask(!0),r.depthFunc(r.LESS),A.enable&amp;&amp;A.isTransparent()&amp;&amp;A.drawTransparent(R);for(o=0;o&lt;e;++o){(C=E[o]).isOpaque&amp;&amp;C.isOpaque()&amp;&amp;C.draw(R)}r.enable(r.BLEND),r.blendEquation(r.FUNC_ADD),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.colorMask(!0,!0,!0,!0),r.depthMask(!1),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),A.isTransparent()&amp;&amp;A.drawTransparent(R);for(o=0;o&lt;e;++o){var C;(C=E[o]).isTransparent&amp;&amp;C.isTransparent()&amp;&amp;C.drawTransparent(R)}r.bindFramebuffer(r.FRAMEBUFFER,null),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),_.bind(),b.color[0].bind(0),_.uniforms.accumBuffer=0,c(r),r.disable(r.BLEND)}I=!1;for(o=0;o&lt;e;++o)E[o].dirty=!1}}}return N.enableMouseListeners(),function t(){if(N._stopped||N.contextLost)return;Y(),requestAnimationFrame(t)}(),N.redraw=function(){N._stopped||(I=!0,Y())},N},createCamera:n}},{&quot;./camera.js&quot;:323,&quot;./lib/shader&quot;:324,&quot;a-big-triangle&quot;:70,&quot;gl-axes3d&quot;:258,&quot;gl-axes3d/properties&quot;:266,&quot;gl-fbo&quot;:276,&quot;gl-mat4/ortho&quot;:302,&quot;gl-mat4/perspective&quot;:303,&quot;gl-select-static&quot;:338,&quot;gl-spikes3d&quot;:349,&quot;is-mobile&quot;:455,&quot;mouse-change&quot;:470}],327:[function(t,e,r){var n=t(&quot;glslify&quot;);r.pointVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n  highp float a = 12.9898;\n  highp float b = 78.233;\n  highp float c = 43758.5453;\n  highp float d = dot(co.xy, vec2(a, b));\n  highp float e = mod(d, 3.14);\n  return fract(sin(e) * c);\n}\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n    // if we don't jitter the point size a bit, overall point cloud\n    // saturation 'jumps' on zooming, which is disturbing and confusing\n  gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    // get the same square surface as circle would be\n    gl_PointSize *= 0.886;\n  }\n}&quot;]),r.pointFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n  float radius;\n  vec4 baseColor;\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    if(centerFraction == 1.0) {\n      gl_FragColor = color;\n    } else {\n      gl_FragColor = mix(borderColor, color, centerFraction);\n    }\n  } else {\n    radius = length(2.0 * gl_PointCoord.xy - 1.0);\n    if(radius &gt; 1.0) {\n      discard;\n    }\n    baseColor = mix(borderColor, color, step(radius, centerFraction));\n    gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n  }\n}\n&quot;]),r.pickVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n  gl_PointSize = pointSize;\n\n  vec4 id = pickId + pickOffset;\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  fragId = id;\n}\n&quot;]),r.pickFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n  float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n  if(radius &gt; 1.0) {\n    discard;\n  }\n  gl_FragColor = fragId / 255.0;\n}\n&quot;])},{glslify:442}],328:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;./lib/shader&quot;);function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(&quot;sizeMin&quot;,.5),this.sizeMax=r(&quot;sizeMax&quot;,20),this.color=r(&quot;color&quot;,[1,0,0,1]).slice(),this.areaRatio=r(&quot;areaRatio&quot;,1),this.borderColor=r(&quot;borderColor&quot;,[0,0,0,1]).slice(),this.blend=r(&quot;blend&quot;,!1);var n=t.positions.length&gt;&gt;&gt;1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&amp;&amp;t.idToIndex.length&gt;=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e&lt;n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length&gt;&gt;&gt;1;for(r=0;r&lt;i;r++){var a=t[2*r],o=t[2*r+1];a&gt;=e[0]&amp;&amp;a&lt;=e[2]&amp;&amp;o&gt;=e[1]&amp;&amp;o&lt;=e[3]&amp;&amp;n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u&lt;5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&amp;&amp;(c[0]=255&amp;t,c[1]=t&gt;&gt;8&amp;255,c[2]=t&gt;&gt;16&amp;255,c[3]=t&gt;&gt;24&amp;255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&amp;&amp;!this.blend&amp;&amp;n.disable(n.BLEND),h&amp;&amp;n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&amp;&amp;!this.blend&amp;&amp;n.enable(n.BLEND),h&amp;&amp;n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{&quot;./lib/shader&quot;:327,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339,&quot;typedarray-pool&quot;:617}],329:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],g=r[2],m=r[3];(a=c*p+u*d+f*g+h*m)&lt;0&amp;&amp;(a=-a,p=-p,d=-d,g=-g,m=-m);1-a&gt;1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*g,t[3]=s*h+l*m,t}},{}],330:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t||0===t?t.toString():&quot;&quot;}},{}],331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;vectorize-text&quot;);e.exports=function(t,e,r){var a=i[e];a||(a=i[e]={});if(t in a)return a[t];var o={textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&amp;&amp;1!==r){for(l=0;l&lt;s.positions.length;++l)for(c=0;c&lt;s.positions[l].length;++c)s.positions[l][c]/=r;for(l=0;l&lt;u.positions.length;++l)for(c=0;c&lt;u.positions[l].length;++c)u.positions[l][c]/=r}var f=[[1/0,1/0],[-1/0,-1/0]],h=u.positions.length;for(l=0;l&lt;h;++l){var p=u.positions[l];for(c=0;c&lt;2;++c)f[0][c]=Math.min(f[0][c],p[c]),f[1][c]=Math.max(f[1][c],p[c])}return a[t]=[s,u,f]};var i={}},{&quot;vectorize-text&quot;:623}],332:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = 1.0;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      scale = highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1);\n    vec4 viewPosition = view * worldPosition;\n    viewPosition = viewPosition / viewPosition.w;\n    vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = pixelRatio;\n    if(distance(highlightId.bgr, id.bgr) &lt; 0.001) {\n      scale *= highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1.0);\n    vec4 viewPosition = view * worldPosition;\n    vec4 clipPosition = projection * viewPosition;\n    clipPosition /= clipPosition.w;\n\n    gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float lscale = pixelRatio * scale;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      lscale *= highlightScale;\n    }\n\n    vec4 clipCenter   = projection * view * model * vec4(position, 1);\n    vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n    vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = dataPosition;\n  }\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (\n    outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n    interpColor.a * opacity == 0.\n  ) discard;\n  gl_FragColor = interpColor * opacity;\n}\n&quot;]),c=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n  gl_FragColor = vec4(pickGroup, pickId.bgr);\n}&quot;]),u=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;glyph&quot;,type:&quot;vec2&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},m={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,h)},r.createProject=function(t){return v(t,p)},r.createPickPerspective=function(t){return v(t,d)},r.createPickOrtho=function(t){return v(t,g)},r.createPickProject=function(t){return v(t,m)}},{&quot;gl-shader&quot;:339,glslify:333}],333:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],334:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;typedarray-pool&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;./lib/shaders&quot;),c=t(&quot;./lib/glyphs&quot;),u=t(&quot;./lib/get-simple-string&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t){return!0===t||t&gt;1?1:t}function m(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),g=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new m(e,r,n,o,f,h,p,d,g,s,c,u);return v.update(t),v};var v=m.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=f.slice(),k=[0,0,0],A=[[0,0,0],[0,0,0]];function M(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function L(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,h=r.projection||f,d=e.axesBounds,g=function(t){for(var e=A,r=0;r&lt;2;++r)for(var n=0;n&lt;3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&amp;&amp;e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=h,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=g,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var m=0;m&lt;3;++m)if(a[m]){l.scale=e.projectScale[m],l.opacity=e.projectOpacity[m];for(var v=T,L=0;L&lt;16;++L)v[L]=0;for(L=0;L&lt;4;++L)v[5*L]=1;v[5*m]=0,i[m]&lt;0?v[12+m]=d[0][m]:v[12+m]=d[1][m],s(v,c,v),l.model=v;var C=(m+1)%3,P=(m+2)%3,I=M(x),O=M(b);I[C]=1,O[P]=1;var z=p(0,0,0,S(_,I)),D=p(0,0,0,S(w,O));if(Math.abs(z[1])&gt;Math.abs(D[1])){var R=z;z=D,D=R,R=I,I=O,O=R;var F=C;C=P,P=F}z[0]&lt;0&amp;&amp;(I[C]=-1),D[1]&gt;0&amp;&amp;(O[P]=-1);var B=0,N=0;for(L=0;L&lt;4;++L)B+=Math.pow(c[4*C+L],2),N+=Math.pow(c[4*P+L],2);I[C]/=Math.sqrt(B),O[P]/=Math.sqrt(N),l.axes[0]=I,l.axes[1]=O,l.fragClipBounds[0]=E(k,g[0],m,-1e8),l.fragClipBounds[1]=E(k,g[1],m,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth&gt;0&amp;&amp;(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var C=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function P(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&amp;&amp;L(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=C,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth&gt;0&amp;&amp;(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function I(t,e,r,i){var a;a=Array.isArray(t)?e&lt;t.length?t[e]:void 0:t,a=u(a);var o=!0;n(a)&amp;&amp;(a=&quot;\u25bc&quot;,o=!1);var s=c(a,r,i);return{mesh:s[0],lines:s[1],bounds:s[2],visible:o}}v.draw=function(t){P(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!1,!1)},v.drawTransparent=function(t){P(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!0,!1)},v.drawPick=function(t){P(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,1,!0,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]&lt;&lt;8)+(t.value[0]&lt;&lt;16);if(e&gt;=this.pointCount||e&lt;0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i&lt;3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&amp;e,n=e&gt;&gt;8&amp;255,i=e&gt;&gt;16&amp;255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(&quot;perspective&quot;in(t=t||{})&amp;&amp;(this.useOrtho=!t.perspective),&quot;orthographic&quot;in t&amp;&amp;(this.useOrtho=!!t.orthographic),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;project&quot;in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(&quot;projectScale&quot;in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,&quot;projectOpacity&quot;in t){if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n&lt;3;++n)this.projectOpacity[n]=g(this.projectOpacity[n]),this.projectOpacity[n]&lt;1&amp;&amp;(this.projectHasAlpha=!0)}this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=g(t.opacity),this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||&quot;normal&quot;,c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n&lt;c.length;++n)i[n]=c[n][0],a[n]=c[n][1]}var u=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0],h=t.glyph,p=t.color,d=t.size,m=t.angle,v=t.lineColor,y=-1,x=0,b=0,_=0;if(s.length){_=s.length;t:for(n=0;n&lt;_;++n){for(var w=s[n],T=0;T&lt;3;++T)if(isNaN(w[T])||!isFinite(w[T]))continue t;var k=(N=I(h,n,l,this.pixelRatio)).mesh,A=N.lines,M=N.bounds;x+=3*k.cells.length,b+=2*A.edges.length}}var S=x+b,E=o.mallocFloat(3*S),L=o.mallocFloat(4*S),C=o.mallocFloat(2*S),P=o.mallocUint32(S);if(S&gt;0){var O=0,z=x,D=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(p)&amp;&amp;Array.isArray(p[0]),B=Array.isArray(v)&amp;&amp;Array.isArray(v[0]);t:for(n=0;n&lt;_;++n){y+=1;for(w=s[n],T=0;T&lt;3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue t;f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=I(h,n,l,this.pixelRatio)).mesh,A=N.lines,M=N.bounds;var N,j=N.visible;if(j)if(Array.isArray(p)){if(3===(U=F?n&lt;p.length?p[n]:[0,0,0,0]:p).length){for(T=0;T&lt;3;++T)D[T]=U[T];D[3]=1}else if(4===U.length){for(T=0;T&lt;4;++T)D[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else D[0]=D[1]=D[2]=0,D[3]=1;else D=[1,1,1,0];if(j)if(Array.isArray(v)){var U;if(3===(U=B?n&lt;v.length?v[n]:[0,0,0,0]:v).length){for(T=0;T&lt;3;++T)R[T]=U[T];R[T]=1}else if(4===U.length){for(T=0;T&lt;4;++T)R[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else R[0]=R[1]=R[2]=0,R[3]=1;else R=[1,1,1,0];var V=.5;j?Array.isArray(d)?V=n&lt;d.length?+d[n]:12:d?V=+d:this.useOrtho&amp;&amp;(V=12):V=0;var q=0;Array.isArray(m)?q=n&lt;m.length?+m[n]:0:m&amp;&amp;(q=+m);var H=Math.cos(q),G=Math.sin(q);for(w=s[n],T=0;T&lt;3;++T)f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T]);var Y=i,W=a;Y=0;Array.isArray(i)?Y=n&lt;i.length?i[n]:0:i&amp;&amp;(Y=i);W=0;Array.isArray(a)?W=n&lt;a.length?a[n]:0:a&amp;&amp;(W=a);var X=[Y*=Y&gt;0?1-M[0][0]:Y&lt;0?1+M[1][0]:1,W*=W&gt;0?1-M[0][1]:W&lt;0?1+M[1][1]:1],Z=k.cells||[],J=k.positions||[];for(T=0;T&lt;Z.length;++T)for(var K=Z[T],Q=0;Q&lt;3;++Q){for(var $=0;$&lt;3;++$)E[3*O+$]=w[$];for($=0;$&lt;4;++$)L[4*O+$]=D[$];P[O]=y;var tt=J[K[Q]];C[2*O]=V*(H*tt[0]-G*tt[1]+X[0]),C[2*O+1]=V*(G*tt[0]+H*tt[1]+X[1]),O+=1}for(Z=A.edges,J=A.positions,T=0;T&lt;Z.length;++T)for(K=Z[T],Q=0;Q&lt;2;++Q){for($=0;$&lt;3;++$)E[3*z+$]=w[$];for($=0;$&lt;4;++$)L[4*z+$]=R[$];P[z]=y;tt=J[K[Q]];C[2*z]=V*(H*tt[0]-G*tt[1]+X[0]),C[2*z+1]=V*(G*tt[0]+H*tt[1]+X[1]),z+=1}}}this.bounds=[u,f],this.points=s,this.pointCount=s.length,this.vertexCount=x,this.lineVertexCount=b,this.pointBuffer.update(E),this.colorBuffer.update(L),this.glyphBuffer.update(C),this.idBuffer.update(P),o.free(E),o.free(L),o.free(C),o.free(P)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{&quot;./lib/get-simple-string&quot;:330,&quot;./lib/glyphs&quot;:331,&quot;./lib/shaders&quot;:332,&quot;gl-buffer&quot;:267,&quot;gl-mat4/multiply&quot;:301,&quot;gl-vao&quot;:361,&quot;is-string-blank&quot;:458,&quot;typedarray-pool&quot;:617}],335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);r.boxVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n  gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n&quot;]),r.boxFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n  gl_FragColor = color;\n}\n&quot;])},{glslify:336}],336:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],337:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;./lib/shaders&quot;);function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p&lt;f||d&lt;h)){o.bind();var g=s[2]-s[0],m=s[3]-s[1];if(this.outerFill&amp;&amp;(o.drawBox(0,0,g,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,g,m,i),o.drawBox(p,h,g,d,i)),this.innerFill&amp;&amp;o.drawBox(f,h,p,d,n),r&gt;0){var v=r*u;o.drawBox(f-v,h-v,p+v,h+v,a),o.drawBox(f-v,d-v,p+v,d+v,a),o.drawBox(f-v,h-v,f+v,d+v,a),o.drawBox(p-v,h-v,p+v,d+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{&quot;./lib/shaders&quot;:335,&quot;gl-buffer&quot;:267,&quot;gl-shader&quot;:339}],338:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=e[0],a=e[1],o=n(t,r,a,{}),s=i.mallocUint8(r*a*4);return new l(t,o,s)};var n=t(&quot;gl-fbo&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray&quot;),o=t(&quot;bit-twiddle&quot;).nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&amp;&amp;(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,&quot;shape&quot;,{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4&gt;this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a&lt;r*e*4;++a)n[a]=255}return t}}}),c.begin=function(){var t=this.gl;this.shape;t&amp;&amp;(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},c.end=function(){var t=this.gl;t&amp;&amp;(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,&quot;number&quot;!=typeof r&amp;&amp;(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),l=0|Math.min(Math.max(e-r,0),n[1]),c=0|Math.min(Math.max(e+r,0),n[1]);if(o&lt;=i||c&lt;=l)return null;var u=[o-i,c-l],f=a(this.buffer,[u[0],u[1],4],[4,4*n[0],1],4*(i+n[0]*l)),h=function(t,e,r){for(var n=1e8,i=-1,a=-1,o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++){var u=t.get(l,c,0),f=t.get(l,c,1),h=t.get(l,c,2),p=t.get(l,c,3);if(u&lt;255||f&lt;255||h&lt;255||p&lt;255){var d=e-l,g=r-c,m=d*d+g*g;m&lt;n&amp;&amp;(n=m,i=l,a=c)}}return[i,a,n]}(f.hi(u[0],u[1],1),r,r),p=h[0],d=h[1];return p&lt;0||Math.pow(this.radius,2)&lt;h[2]?null:new s(p+i|0,d+l|0,f.get(p,d,0),[f.get(p,d,1),f.get(p,d,2),f.get(p,d,3)],Math.sqrt(h[2]))},c.dispose=function(){this.gl&amp;&amp;(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&amp;&amp;clearTimeout(this._readTimeout))}},{&quot;bit-twiddle&quot;:104,&quot;gl-fbo&quot;:276,ndarray:483,&quot;typedarray-pool&quot;:617}],339:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/create-uniforms&quot;),i=t(&quot;./lib/create-attributes&quot;),a=t(&quot;./lib/reflect&quot;),o=t(&quot;./lib/shader-cache&quot;),s=t(&quot;./lib/runtime-reflect&quot;),l=t(&quot;./lib/GLError&quot;);function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name&lt;e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e&gt;r)for(t=r;t&lt;e;t++)this.gl.enableVertexAttribArray(t);else if(r&gt;e)for(t=e;t&lt;r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e&lt;t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&amp;&amp;this._fref.dispose(),this._vref&amp;&amp;this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&amp;&amp;d.dispose(),h.vertShader=h._vref.shader;var g=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),g&amp;&amp;g.dispose(),h.fragShader=h._fref.shader,!r||!c){var m=p.createProgram();if(p.attachShader(m,h.fragShader),p.attachShader(m,h.vertShader),p.linkProgram(m),!p.getProgramParameter(m,p.LINK_STATUS)){var v=p.getProgramInfoLog(m);throw new l(v,&quot;Error linking program:&quot;+v)}r=r||s.uniforms(p,m),c=c||s.attributes(p,m),p.deleteProgram(m)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y&lt;c.length;++y){var w=c[y];if(w.type.indexOf(&quot;mat&quot;)&gt;=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),A=0;A&lt;T;++A)k[A]=_.length,b.push(w.name+&quot;[&quot;+A+&quot;]&quot;),&quot;number&quot;==typeof w.location?_.push(w.location+A):Array.isArray(w.location)&amp;&amp;w.location.length===T&amp;&amp;&quot;number&quot;==typeof w.location[A]?_.push(0|w.location[A]):_.push(-1);x.push({name:w.name,type:w.type,locations:k})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),&quot;number&quot;==typeof w.location?_.push(0|w.location):_.push(-1)}var M=0;for(y=0;y&lt;_.length;++y)if(_[y]&lt;0){for(;_.indexOf(M)&gt;=0;)M+=1;_[y]=M}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t&lt;r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,&quot;uniforms&quot;,n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{&quot;./lib/GLError&quot;:340,&quot;./lib/create-attributes&quot;:341,&quot;./lib/create-uniforms&quot;:342,&quot;./lib/reflect&quot;:343,&quot;./lib/runtime-reflect&quot;:344,&quot;./lib/shader-cache&quot;:345}],340:[function(t,e,r){function n(t,e,r){this.shortMessage=e||&quot;&quot;,this.longMessage=r||&quot;&quot;,this.rawError=t||&quot;&quot;,this.message=&quot;gl-shader: &quot;+(e||t||&quot;&quot;)+(r?&quot;\n&quot;+r:&quot;&quot;),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=&quot;GLError&quot;,n.prototype.constructor=n,e.exports=n},{}],341:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){for(var a={},l=0,c=r.length;l&lt;c;++l){var u=r[l],f=u.name,h=u.type,p=u.locations;switch(h){case&quot;bool&quot;:case&quot;int&quot;:case&quot;float&quot;:o(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(&quot;vec&quot;)&gt;=0){if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);o(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(&quot;mat&quot;)&gt;=0))throw new n(&quot;&quot;,&quot;Unknown data type for attribute &quot;+f+&quot;: &quot;+h);var d;if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);s(t,e,p,i,d,a,f)}}}return a};var n=t(&quot;./GLError&quot;);function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(t,e,r,n,a,o,s){for(var l=[&quot;gl&quot;,&quot;v&quot;],c=[],u=0;u&lt;a;++u)l.push(&quot;x&quot;+u),c.push(&quot;x&quot;+u);l.push(&quot;if(x0.length===void 0){return gl.vertexAttrib&quot;+a+&quot;f(v,&quot;+c.join()+&quot;)}else{return gl.vertexAttrib&quot;+a+&quot;fv(v,x0)}&quot;);var f=Function.apply(null,l),h=new i(t,e,r,n,a,f);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(n[r]),f(t,n[r],e),e},get:function(){return h},enumerable:!0})}function s(t,e,r,n,i,a,s){for(var l=new Array(i),c=new Array(i),u=0;u&lt;i;++u)o(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,&quot;location&quot;,{set:function(t){if(Array.isArray(t))for(var e=0;e&lt;i;++e)c[e].location=t[e];else for(e=0;e&lt;i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e&lt;i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l&lt;i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[&quot;vertexAttrib&quot;+i+&quot;fv&quot;];Object.defineProperty(a,s,{set:function(e){for(var a=0;a&lt;i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s&lt;i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,&quot;location&quot;,{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&amp;&amp;(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{&quot;./GLError&quot;:340}],342:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./reflect&quot;),i=t(&quot;./GLError&quot;);function a(t){return new Function(&quot;y&quot;,&quot;return function(){return y}&quot;)(t)}function o(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(t,e,r){switch(r){case&quot;bool&quot;:case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:return&quot;gl.uniform1i(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;float&quot;:return&quot;gl.uniform1f(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:var n=r.indexOf(&quot;vec&quot;);if(!(0&lt;=n&amp;&amp;n&lt;=1&amp;&amp;r.length===4+n)){if(0===r.indexOf(&quot;mat&quot;)&amp;&amp;4===r.length){var a;if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+r);return&quot;gl.uniformMatrix&quot;+a+&quot;fv(locations[&quot;+e+&quot;],false,obj&quot;+t+&quot;)&quot;}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+r)}if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);switch(r.charAt(0)){case&quot;b&quot;:case&quot;i&quot;:return&quot;gl.uniform&quot;+a+&quot;iv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;v&quot;:return&quot;gl.uniform&quot;+a+&quot;fv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:throw new i(&quot;&quot;,&quot;Unrecognized data type for vector &quot;+name+&quot;: &quot;+r)}}}function c(e){for(var n=[&quot;return function updateProperty(obj){&quot;],i=function t(e,r){if(&quot;object&quot;!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+&quot;&quot;===i?o+=&quot;[&quot;+i+&quot;]&quot;:o+=&quot;.&quot;+i,&quot;object&quot;==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(&quot;&quot;,e),a=0;a&lt;i.length;++a){var o=i[a],c=o[0],u=o[1];s[u]&amp;&amp;n.push(l(c,u,r[u].type))}return n.push(&quot;return obj}&quot;),new Function(&quot;gl&quot;,&quot;locations&quot;,n.join(&quot;\n&quot;))(t,s)}function u(n,l,u){if(&quot;object&quot;==typeof u){var h=f(u);Object.defineProperty(n,l,{get:a(h),set:c(u),enumerable:!0,configurable:!1})}else s[u]?Object.defineProperty(n,l,{get:(p=u,new Function(&quot;gl&quot;,&quot;wrapper&quot;,&quot;locations&quot;,&quot;return function(){return gl.getUniform(wrapper.program,locations[&quot;+p+&quot;])}&quot;)(t,e,s)),set:c(u),enumerable:!0,configurable:!1}):n[l]=function(t){switch(t){case&quot;bool&quot;:return!1;case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:case&quot;float&quot;:return 0;default:var e=t.indexOf(&quot;vec&quot;);if(0&lt;=e&amp;&amp;e&lt;=1&amp;&amp;t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);return&quot;b&quot;===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(&quot;mat&quot;)&amp;&amp;4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+t);return o(r*r,0)}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+t)}}(r[u].type);var p}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r&lt;t.length;++r)u(e,r,t[r])}else for(var n in e={},t)u(e,n,t[n]);return e}var h=n(r,!0);return{get:a(f(h)),set:c(h),enumerable:!0,configurable:!0}}},{&quot;./GLError&quot;:340,&quot;./reflect&quot;:343}],343:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r={},n=0;n&lt;t.length;++n)for(var i=t[n].name.split(&quot;.&quot;),a=r,o=0;o&lt;i.length;++o){var s=i[o].split(&quot;[&quot;);if(s.length&gt;1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l&lt;s.length;++l){var c=parseInt(s[l]);l&lt;s.length-1||o&lt;i.length-1?(c in a||(l&lt;s.length-1?a[c]=[]:a[c]={}),a=a[c]):a[c]=e?n:t[n].type}}else o&lt;i.length-1?(s[0]in a||(a[s[0]]={}),a=a[s[0]]):a[s[0]]=e?n:t[n].type}return r}},{}],344:[function(t,e,r){&quot;use strict&quot;;r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i&lt;r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size&gt;1)for(var l=0;l&lt;o.size;++l)n.push({name:o.name.replace(&quot;[0]&quot;,&quot;[&quot;+l+&quot;]&quot;),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i&lt;r;++i){var o=t.getActiveAttrib(e,i);o&amp;&amp;n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:&quot;float&quot;,FLOAT_VEC2:&quot;vec2&quot;,FLOAT_VEC3:&quot;vec3&quot;,FLOAT_VEC4:&quot;vec4&quot;,INT:&quot;int&quot;,INT_VEC2:&quot;ivec2&quot;,INT_VEC3:&quot;ivec3&quot;,INT_VEC4:&quot;ivec4&quot;,BOOL:&quot;bool&quot;,BOOL_VEC2:&quot;bvec2&quot;,BOOL_VEC3:&quot;bvec3&quot;,BOOL_VEC4:&quot;bvec4&quot;,FLOAT_MAT2:&quot;mat2&quot;,FLOAT_MAT3:&quot;mat3&quot;,FLOAT_MAT4:&quot;mat4&quot;,SAMPLER_2D:&quot;sampler2D&quot;,SAMPLER_CUBE:&quot;samplerCube&quot;},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a&lt;r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],345:[function(t,e,r){&quot;use strict&quot;;r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(&quot;./GLError&quot;),i=t(&quot;gl-format-compiler-error&quot;),a=new(&quot;undefined&quot;==typeof WeakMap?t(&quot;weakmap-shim&quot;):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n&lt;i;++n){var a=t.programs[r[n]];a&amp;&amp;(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&amp;&amp;r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(&quot;Failed to format compiler error: &quot;+t),new n(o,&quot;Error compiling shader:\n&quot;+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(&quot;:&quot;),i.join(&quot;:&quot;)].join(&quot;@&quot;),o=this.programs[a];return o&amp;&amp;this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s&lt;i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,&quot;Error linking program: &quot;+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{&quot;./GLError&quot;:340,&quot;gl-format-compiler-error&quot;:277,&quot;weakmap-shim&quot;:628}],346:[function(t,e,r){&quot;use strict&quot;;function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(t){return t.slice()})),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]&lt;=n[0]&amp;&amp;n[0]&lt;=o[2]&amp;&amp;o[1]&lt;=n[1]&amp;&amp;n[1]&lt;=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&amp;&amp;a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&amp;&amp;a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&amp;&amp;a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&amp;&amp;a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],347:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vertexPosition = mix(coordinates[0],\n    mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n  vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\n  vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\n  vec2 delta = weight * clipOffset * screenShape;\n  vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n  gl_Position   = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n  fragColor     = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n  gl_FragColor = fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec3&quot;},{name:&quot;weight&quot;,type:&quot;float&quot;}])}},{&quot;gl-shader&quot;:339,glslify:347}],349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;);e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&amp;&amp;(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d&lt;3;++d)i&amp;&amp;i[d]&lt;0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d&lt;3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&amp;&amp;(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&amp;&amp;r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&amp;&amp;(&quot;bounds&quot;in t&amp;&amp;(this.bounds=t.bounds),&quot;position&quot;in t&amp;&amp;(this.position=t.position),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;colors&quot;in t&amp;&amp;(this.colors=t.colors),&quot;enabled&quot;in t&amp;&amp;(this.enabled=t.enabled),&quot;drawSides&quot;in t&amp;&amp;(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders/index&quot;:348,&quot;gl-buffer&quot;:267,&quot;gl-vao&quot;:361}],350:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * tubePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(tubePosition, 1.0);\n  vec4 t_position  = view * tubePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = tubePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  gl_Position = projection * view * tubePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]}},{glslify:351}],351:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;),i=t(&quot;gl-vec4&quot;),a=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;],o=function(t,e,r,a){for(var o=0,s=0;s&lt;t.length;s++)for(var l=t[s].velocities,c=0;c&lt;l.length;c++)o=Math.max(o,n.length(l[c]));var u=t.map((function(t){return function(t,e,r,a){for(var o=t.points,s=t.velocities,l=t.divergences,c=[],u=[],f=[],h=[],p=[],d=[],g=0,m=0,v=i.create(),y=i.create(),x=0;x&lt;o.length;x++){var b=o[x],_=s[x],w=l[x];0===e&amp;&amp;(w=.05*r),m=n.length(_)/a,v=i.create(),n.copy(v,_),v[3]=w;for(var T=0;T&lt;8;T++)p[T]=[b[0],b[1],b[2],T];if(h.length&gt;0)for(T=0;T&lt;8;T++){var k=(T+1)%8;c.push(h[T],p[T],p[k],p[k],h[k],h[T]),f.push(y,v,v,v,y,y),d.push(g,m,m,m,g,g);var A=c.length;u.push([A-6,A-5,A-4],[A-3,A-2,A-1])}var M=h;h=p,p=M;var S=y;y=v,v=S;var E=g;g=m,m=E}return{positions:c,cells:u,vectors:f,vertexIntensity:d}}(t,r,a,o)})),f=[],h=[],p=[],d=[];for(s=0;s&lt;u.length;s++){var g=u[s],m=f.length;f=f.concat(g.positions),p=p.concat(g.vectors),d=d.concat(g.vertexIntensity);for(c=0;c&lt;g.cells.length;c++){var v=g.cells[c],y=[];h.push(y);for(var x=0;x&lt;v.length;x++)y.push(v[x]+m)}}return{positions:f,cells:h,vectors:p,vertexIntensity:d,colormap:e}},s=function(t,e){var r,n=t.length;for(r=0;r&lt;n;r++){var i=t[r];if(i===e)return r;if(i&gt;e)return r-1}return r},l=function(t,e,r){return t&lt;e?e:t&gt;r?r:t},c=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;n&lt;r;n++){var i=Math.abs(t[n]-t[n-1]);i&lt;e&amp;&amp;(e=i)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,u=t.tubeSize||1,f=t.absoluteTubeSize,h=t.gridFill||&quot;+x+y+z&quot;,p={};-1!==h.indexOf(&quot;-x&quot;)&amp;&amp;(p.reversedX=!0),-1!==h.indexOf(&quot;-y&quot;)&amp;&amp;(p.reversedY=!0),-1!==h.indexOf(&quot;-z&quot;)&amp;&amp;(p.reversedZ=!0),p.filled=a.indexOf(h.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;));var d=t.getVelocity||function(e){return function(t,e,r){var i=e.vectors,a=e.meshgrid,o=t[0],c=t[1],u=t[2],f=a[0].length,h=a[1].length,p=a[2].length,d=s(a[0],o),g=s(a[1],c),m=s(a[2],u),v=d+1,y=g+1,x=m+1;if(d=l(d,0,f-1),v=l(v,0,f-1),g=l(g,0,h-1),y=l(y,0,h-1),m=l(m,0,p-1),x=l(x,0,p-1),d&lt;0||g&lt;0||m&lt;0||v&gt;f-1||y&gt;h-1||x&gt;p-1)return n.create();var b,_,w,T,k,A,M=a[0][d],S=a[0][v],E=a[1][g],L=a[1][y],C=a[2][m],P=(o-M)/(S-M),I=(c-E)/(L-E),O=(u-C)/(a[2][x]-C);switch(isFinite(P)||(P=.5),isFinite(I)||(I=.5),isFinite(O)||(O=.5),r.reversedX&amp;&amp;(d=f-1-d,v=f-1-v),r.reversedY&amp;&amp;(g=h-1-g,y=h-1-y),r.reversedZ&amp;&amp;(m=p-1-m,x=p-1-x),r.filled){case 5:k=m,A=x,w=g*p,T=y*p,b=d*p*h,_=v*p*h;break;case 4:k=m,A=x,b=d*p,_=v*p,w=g*p*f,T=y*p*f;break;case 3:w=g,T=y,k=m*h,A=x*h,b=d*h*p,_=v*h*p;break;case 2:w=g,T=y,b=d*h,_=v*h,k=m*h*f,A=x*h*f;break;case 1:b=d,_=v,k=m*f,A=x*f,w=g*f*p,T=y*f*p;break;default:b=d,_=v,w=g*f,T=y*f,k=m*f*h,A=x*f*h}var z=i[b+w+k],D=i[b+w+A],R=i[b+T+k],F=i[b+T+A],B=i[_+w+k],N=i[_+w+A],j=i[_+T+k],U=i[_+T+A],V=n.create(),q=n.create(),H=n.create(),G=n.create();n.lerp(V,z,B,P),n.lerp(q,D,N,P),n.lerp(H,R,j,P),n.lerp(G,F,U,P);var Y=n.create(),W=n.create();n.lerp(Y,V,H,I),n.lerp(W,q,G,I);var X=n.create();return n.lerp(X,Y,W,O),X}(e,t,p)},g=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=d(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=d(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=d(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},m=[],v=e[0][0],y=e[0][1],x=e[0][2],b=e[1][0],_=e[1][1],w=e[1][2],T=function(t){var e=t[0],r=t[1],n=t[2];return!(e&lt;v||e&gt;b||r&lt;y||r&gt;_||n&lt;x||n&gt;w)},k=10*n.distance(e[0],e[1])/i,A=k*k,M=1,S=0,E=r.length;E&gt;1&amp;&amp;(M=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,l=0;l&lt;s;l++){var u=t[l],f=u[0],h=u[1],p=u[2];i[f]||(e.push(f),i[f]=!0),a[h]||(r.push(h),a[h]=!0),o[p]||(n.push(p),o[p]=!0)}var d=c(e),g=c(r),m=c(n),v=Math.min(d,g,m);return isFinite(v)?v:1}(r));for(var L=0;L&lt;E;L++){var C=n.create();n.copy(C,r[L]);var P=[C],I=[],O=d(C),z=C;I.push(O);var D=[],R=g(C,O),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F),m.push({points:P,velocities:I,divergences:D});for(var B=0;B&lt;100*i&amp;&amp;P.length&lt;i&amp;&amp;T(C);){B++;var N=n.clone(O),j=n.squaredLength(N);if(0===j)break;if(j&gt;A&amp;&amp;n.scale(N,N,k/Math.sqrt(j)),n.add(N,N,C),O=d(N),n.squaredDistance(z,N)-A&gt;-1e-4*A){P.push(N),z=N,I.push(O);R=g(N,O),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F)}C=N}}var U=o(m,t.colormap,S,M);return f?U.tubeScale=f:(0===S&amp;&amp;(S=1),U.tubeScale=.5*u*M/S),U};var u=t(&quot;./lib/shaders&quot;),f=t(&quot;gl-cone3d&quot;).createMesh;e.exports.createTubeMesh=function(t,e){return f(t,e,{shaders:u,traceType:&quot;streamtube&quot;})}},{&quot;./lib/shaders&quot;:350,&quot;gl-cone3d&quot;:268,&quot;gl-vec3&quot;:380,&quot;gl-vec4&quot;:416}],353:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 localCoordinate = vec3(uv.zw, f.x);\n  worldCoordinate = objectOffset + localCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n  vec4 clipPosition = projection * view * worldPosition;\n  gl_Position = clipPosition;\n  kill = f.y;\n  value = f.z;\n  planeCoordinate = uv.xy;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * worldPosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  lightDirection = lightPosition - cameraCoordinate.xyz;\n  eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  surfaceNormal  = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness) {\n  return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  if (\n    kill &gt; 0.0 ||\n    vColor.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n  ) discard;\n\n  vec3 N = normalize(surfaceNormal);\n  vec3 V = normalize(eyeDirection);\n  vec3 L = normalize(lightDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  //decide how to interpolate color \u2014 in vertex or in fragment\n  vec4 surfaceColor =\n    step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n    step(.5, vertexColor) * vColor;\n\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n  worldCoordinate = objectOffset + dataCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n  vec4 clipPosition = projection * view * worldPosition;\n  clipPosition.z += zOffset;\n\n  gl_Position = clipPosition;\n  value = f + objectOffset.z;\n  kill = -1.0;\n  planeCoordinate = uv.zw;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Don't do lighting for contours\n  surfaceNormal   = vec3(1,0,0);\n  eyeDirection    = vec3(0,1,0);\n  lightDirection  = vec3(0,0,1);\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n  float vh = 255.0 * v;\n  float upper = floor(vh);\n  float lower = fract(vh);\n  return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n  if ((kill &gt; 0.0) ||\n      (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n  vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n  vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n  gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n&quot;]);r.createShader=function(t){var e=n(t,a,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{&quot;gl-shader&quot;:339,glslify:442}],354:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),g=o(e,1,256,e.RGBA,e.UNSIGNED_BYTE);g.minFilter=e.LINEAR,g.magFilter=e.LINEAR;var m=new M(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,g,s,l,f,h,p,d,[0,0,0]),v={levels:[[],[],[]]};for(var w in t)v[w]=t[w];return v.colormap=v.colormap||&quot;jet&quot;,m.update(v),m};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;typedarray-pool&quot;),l=t(&quot;colormap&quot;),c=t(&quot;ndarray-ops&quot;),u=t(&quot;ndarray-pack&quot;),f=t(&quot;ndarray&quot;),h=t(&quot;surface-nets&quot;),p=t(&quot;gl-mat4/multiply&quot;),d=t(&quot;gl-mat4/invert&quot;),g=t(&quot;binary-search-bounds&quot;),m=t(&quot;ndarray-gradient&quot;),v=t(&quot;./lib/shaders&quot;),y=v.createShader,x=v.createContourShader,b=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function A(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t&lt;3;++t){var e=k[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();function M(t,e,r,n,i,a,o,l,c,u,h,p,d,g,m){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=m,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new A([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=M.prototype;S.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:256,format:&quot;rgba&quot;}).map((function(t,n){var i=e?function(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i&lt;1&amp;&amp;(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},S.isTransparent=function(){return this.opacity&lt;1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(t){this.pickId=t};var E=[0,0,0],L={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function C(t,e){var r,n,i,a=e.axes&amp;&amp;e.axes.lastCubeProps.axis||E,o=e.showSurface,s=e.showContour;for(r=0;r&lt;3;++r)for(o=o||e.surfaceProject[r],n=0;n&lt;3;++n)s=s||e.contourProject[r][n];for(r=0;r&lt;3;++r){var l=L.projections[r];for(n=0;n&lt;16;++n)l[n]=0;for(n=0;n&lt;4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]&gt;0)][r],p(l,t.model,l);var c=L.clipBounds[r];for(i=0;i&lt;2;++i)for(n=0;n&lt;3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return L.showSurface=o,L.showContour=s,L}var P={model:w,view:w,projection:w,inverseModel:w.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},I=w.slice(),O=[1,0,0,0,1,0,0,0,1];function z(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=P;n.model=t.model||w,n.view=t.view||w,n.projection=t.projection||w,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i&lt;2;++i)for(var a=n.clipBounds[i],o=0;o&lt;3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=O,n.vertexColor=this.vertexColor;var s=I;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i&lt;3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i&lt;3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i&lt;3;++i){var c=s[12+i];for(o=0;o&lt;3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=C(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&amp;&amp;this._vertexCount&amp;&amp;this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i&lt;3;++i)this.surfaceProject[i]&amp;&amp;this.vertexCount&amp;&amp;(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i&lt;3;++i)for(f.uniforms.permutation=k[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o&lt;this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&amp;&amp;o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&amp;&amp;(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i&lt;3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o&lt;3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=k[o],r.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var g=0;g&lt;this.contourLevels[o].length;++g)g===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==g&amp;&amp;g-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][g]&amp;&amp;(f.uniforms.height=this.contourLevels[o][g],h.draw(r.LINES,this._contourCounts[o][g],this._contourOffsets[o][g]))}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i&lt;3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=k[i],r.lineWidth(this.dynamicWidth[i]*this.pixelRatio),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o&lt;3;++o)this.contourProject[o][i]&amp;&amp;(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}S.draw=function(t){return z.call(this,t,!1)},S.drawTransparent=function(t){return z.call(this,t,!0)};var D={model:w,view:w,projection:w,inverseModel:w,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function R(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function F(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function B(t){if(Array.isArray(t)){if(Array.isArray(t))return[F(t[0]),F(t[1]),F(t[2])];var e=F(t);return[e.slice(),e.slice(),e.slice()]}}S.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=D;r.model=t.model||w,r.view=t.view||w,r.projection=t.projection||w,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.objectOffset=this.objectOffset,r.permutation=O;for(var n=0;n&lt;2;++n)for(var i=r.clipBounds[n],a=0;a&lt;3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=C(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n&lt;3;++n)this.surfaceProject[n]&amp;&amp;(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a&lt;3;++a)for(e.lineWidth(this.contourWidth[a]*this.pixelRatio),s.uniforms.permutation=k[a],n=0;n&lt;this.contourLevels[a].length;++n)this._contourCounts[a][n]&amp;&amp;(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n&lt;3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a&lt;3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=k[a],e.lineWidth(this.contourWidth[a]*this.pixelRatio);for(var c=0;c&lt;this.contourLevels[a].length;++c)this._contourCounts[a][c]&amp;&amp;(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},S.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]&gt;&gt;4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&amp;t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u&lt;2;++u)for(var f=u?a:1-a,h=0;h&lt;2;++h)for(var p=i+u,d=s+h,m=f*(h?l:1-l),v=0;v&lt;3;++v)c[v]+=this._field[v].get(p,d)*m;for(var y=this._pickResult.level,x=0;x&lt;3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]&lt;0)this.contourLevels[x].length&gt;0&amp;&amp;(y[x]=0);else if(y[x]&lt;this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])&gt;Math.abs(_-c[x])&amp;&amp;(y[x]+=1)}for(r.index[0]=a&lt;.5?i:i+1,r.index[1]=l&lt;.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v&lt;3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},S.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},S.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,&quot;contourWidth&quot;in t&amp;&amp;(this.contourWidth=R(t.contourWidth,Number)),&quot;showContour&quot;in t&amp;&amp;(this.showContour=R(t.showContour,Boolean)),&quot;showSurface&quot;in t&amp;&amp;(this.showSurface=!!t.showSurface),&quot;contourTint&quot;in t&amp;&amp;(this.contourTint=R(t.contourTint,Boolean)),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=B(t.contourColor)),&quot;contourProject&quot;in t&amp;&amp;(this.contourProject=R(t.contourProject,(function(t){return R(t,Boolean)}))),&quot;surfaceProject&quot;in t&amp;&amp;(this.surfaceProject=t.surfaceProject),&quot;dynamicColor&quot;in t&amp;&amp;(this.dynamicColor=B(t.dynamicColor)),&quot;dynamicTint&quot;in t&amp;&amp;(this.dynamicTint=R(t.dynamicTint,Number)),&quot;dynamicWidth&quot;in t&amp;&amp;(this.dynamicWidth=R(t.dynamicWidth,Number)),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale),&quot;colorBounds&quot;in t&amp;&amp;(this.colorBounds=t.colorBounds),&quot;vertexColor&quot;in t&amp;&amp;(this.vertexColor=t.vertexColor?1:0),&quot;colormap&quot;in t&amp;&amp;this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&amp;&amp;t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),&quot;field&quot;in t||&quot;coords&quot;in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i&gt;this._field[2].data.length&amp;&amp;(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o&lt;2;++o)this._field[2].size&gt;this._field[o].data.length&amp;&amp;(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error(&quot;gl-surface: invalid coordinates for x/y&quot;);for(o=0;o&lt;2;++o){var c=l[o];for(v=0;v&lt;2;++v)if(c.shape[v]!==a[v])throw new Error(&quot;gl-surface: coords have incorrect shape&quot;);this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error(&quot;gl-surface: invalid ticks&quot;);for(o=0;o&lt;2;++o){var p=u[o];if((Array.isArray(p)||p.length)&amp;&amp;(p=f(p)),p.shape[0]!==a[o])throw new Error(&quot;gl-surface: invalid tick length&quot;);var d=f(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o&lt;2;++o){var g=[0,0];g[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],g,0)}this._field[0].set(0,0,0);for(var v=0;v&lt;a[0];++v)this._field[0].set(v+1,0,v);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),v=0;v&lt;a[1];++v)this._field[1].set(0,v+1,v);this._field[1].set(0,a[1]+1,a[1]-1)}var y=this._field,x=f(s.mallocFloat(3*y[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o&lt;3;++o)m(x.pick(o),y[o],&quot;mirror&quot;);var b=f(s.mallocFloat(3*y[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o&lt;a[0]+2;++o)for(v=0;v&lt;a[1]+2;++v){var _=x.get(0,o,v,0),w=x.get(0,o,v,1),k=x.get(1,o,v,0),A=x.get(1,o,v,1),M=x.get(2,o,v,0),S=x.get(2,o,v,1),E=k*S-A*M,L=M*w-S*_,C=_*A-w*k,P=Math.sqrt(E*E+L*L+C*C);P&lt;1e-8?(P=Math.max(Math.abs(E),Math.abs(L),Math.abs(C)))&lt;1e-8?(C=1,L=E=0,P=1):P=1/P:P=1/Math.sqrt(P),b.set(o,v,0,E*P),b.set(o,v,1,L*P),b.set(o,v,2,C*P)}s.free(x.data);var I=[1/0,1/0,1/0],O=[-1/0,-1/0,-1/0],z=1/0,D=-1/0,F=(a[0]-1)*(a[1]-1)*6,N=s.mallocFloat(n.nextPow2(10*F)),j=0,U=0;for(o=0;o&lt;a[0]-1;++o)t:for(v=0;v&lt;a[1]-1;++v){for(var V=0;V&lt;2;++V)for(var q=0;q&lt;2;++q)for(var H=0;H&lt;3;++H){var G=this._field[H].get(1+o+V,1+v+q);if(isNaN(G)||!isFinite(G))continue t}for(H=0;H&lt;6;++H){var Y=o+T[H][0],W=v+T[H][1],X=this._field[0].get(Y+1,W+1),Z=this._field[1].get(Y+1,W+1);G=this._field[2].get(Y+1,W+1),E=b.get(Y+1,W+1,0),L=b.get(Y+1,W+1,1),C=b.get(Y+1,W+1,2),t.intensity&amp;&amp;(J=t.intensity.get(Y,W));var J=t.intensity?t.intensity.get(Y,W):G+this.objectOffset[2];N[j++]=Y,N[j++]=W,N[j++]=X,N[j++]=Z,N[j++]=G,N[j++]=0,N[j++]=J,N[j++]=E,N[j++]=L,N[j++]=C,I[0]=Math.min(I[0],X+this.objectOffset[0]),I[1]=Math.min(I[1],Z+this.objectOffset[1]),I[2]=Math.min(I[2],G+this.objectOffset[2]),z=Math.min(z,J),O[0]=Math.max(O[0],X+this.objectOffset[0]),O[1]=Math.max(O[1],Z+this.objectOffset[1]),O[2]=Math.max(O[2],G+this.objectOffset[2]),D=Math.max(D,J),U+=1}}for(t.intensityBounds&amp;&amp;(z=+t.intensityBounds[0],D=+t.intensityBounds[1]),o=6;o&lt;j;o+=10)N[o]=(N[o]-z)/(D-z);this._vertexCount=U,this._coordinateBuffer.update(N.subarray(0,j)),s.freeFloat(N),s.free(b.data),this.bounds=[I,O],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===z&amp;&amp;this.intensityBounds[1]===D||(r=!0),this.intensityBounds=[z,D]}if(&quot;levels&quot;in t){var K=t.levels;for(K=Array.isArray(K[0])?K.slice():[[],[],K],o=0;o&lt;3;++o)K[o]=K[o].slice(),K[o].sort((function(t,e){return t-e}));for(o=0;o&lt;3;++o)for(v=0;v&lt;K[o].length;++v)K[o][v]-=this.objectOffset[o];t:for(o=0;o&lt;3;++o){if(K[o].length!==this.contourLevels[o].length){r=!0;break}for(v=0;v&lt;K[o].length;++v)if(K[o][v]!==this.contourLevels[o][v]){r=!0;break t}}this.contourLevels=K}if(r){y=this._field,a=this.shape;for(var Q=[],$=0;$&lt;3;++$){var tt=this.contourLevels[$],et=[],rt=[],nt=[0,0,0];for(o=0;o&lt;tt.length;++o){var it=h(this._field[$],tt[o]);et.push(Q.length/5|0),U=0;t:for(v=0;v&lt;it.cells.length;++v){var at=it.cells[v];for(H=0;H&lt;2;++H){var ot=it.positions[at[H]],st=ot[0],lt=0|Math.floor(st),ct=st-lt,ut=ot[1],ft=0|Math.floor(ut),ht=ut-ft,pt=!1;e:for(var dt=0;dt&lt;3;++dt){nt[dt]=0;var gt=($+dt+1)%3;for(V=0;V&lt;2;++V){var mt=V?ct:1-ct;for(Y=0|Math.min(Math.max(lt+V,0),a[0]),q=0;q&lt;2;++q){var vt=q?ht:1-ht;if(W=0|Math.min(Math.max(ft+q,0),a[1]),G=dt&lt;2?this._field[gt].get(Y,W):(this.intensity.get(Y,W)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(G)||isNaN(G)){pt=!0;break e}var yt=mt*vt;nt[dt]+=yt*G}}}if(pt){if(H&gt;0){for(var xt=0;xt&lt;5;++xt)Q.pop();U-=1}continue t}Q.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[$]=et,this._contourCounts[$]=rt}var bt=s.mallocFloat(Q.length);for(o=0;o&lt;Q.length;++o)bt[o]=Q[o];this._contourBuffer.update(bt),s.freeFloat(bt)}},S.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t&lt;3;++t)s.freeFloat(this._field[t].data)},S.highlight=function(t){var e,r;if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(e=0;e&lt;3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;for(r=this.snapToData?t.dataCoordinate:t.position,e=0;e&lt;3;++e)r[e]-=this.objectOffset[e];if(this.enableDynamic[0]&amp;&amp;r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&amp;&amp;r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&amp;&amp;r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o&lt;3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=h(u,r[o]),g=d.cells,m=d.positions;for(this._dynamicOffsets[o]=n,e=0;e&lt;g.length;++e)for(var v=g[e],y=0;y&lt;2;++y){var x=m[v[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),T=b-_,k=1-T,A=+x[1],M=0|A,S=0|Math.min(M+1,i[1]),E=A-M,L=1-E,C=k*L,P=k*E,I=T*L,O=T*E,z=C*f.get(_,M)+P*f.get(_,S)+I*f.get(w,M)+O*f.get(w,S),D=C*p.get(_,M)+P*p.get(_,S)+I*p.get(w,M)+O*p.get(w,S);if(isNaN(z)||isNaN(D)){y&amp;&amp;(n-=1);break}a[2*n+0]=z,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{&quot;./lib/shaders&quot;:353,&quot;binary-search-bounds&quot;:103,&quot;bit-twiddle&quot;:104,colormap:137,&quot;gl-buffer&quot;:267,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/multiply&quot;:301,&quot;gl-texture2d&quot;:356,&quot;gl-vao&quot;:361,ndarray:483,&quot;ndarray-gradient&quot;:476,&quot;ndarray-ops&quot;:478,&quot;ndarray-pack&quot;:479,&quot;surface-nets&quot;:591,&quot;typedarray-pool&quot;:617}],355:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;regl&quot;),o=t(&quot;gl-util/context&quot;),s=t(&quot;es6-weak-map&quot;),l=t(&quot;color-normalize&quot;),c=t(&quot;font-atlas&quot;),u=t(&quot;typedarray-pool&quot;),f=t(&quot;parse-rect&quot;),h=t(&quot;is-plain-obj&quot;),p=t(&quot;parse-unit&quot;),d=t(&quot;to-px&quot;),g=t(&quot;detect-kerning&quot;),m=t(&quot;object-assign&quot;),v=t(&quot;font-measure&quot;),y=t(&quot;flatten-vertex-data&quot;),x=t(&quot;bit-twiddle&quot;).nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(&quot;div&quot;));w.style.font=&quot;italic small-caps bold condensed 16px/2 cursive&quot;,getComputedStyle(w).fontStretch&amp;&amp;(_=!0),document.body.removeChild(w)}var T=function(t){!function(t){return&quot;function&quot;==typeof t&amp;&amp;t._gl&amp;&amp;t.prop&amp;&amp;t.texture&amp;&amp;t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer=this.regl.buffer({type:&quot;float&quot;,usage:&quot;stream&quot;}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};T.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},width:{offset:0,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},char:t.this(&quot;charBuffer&quot;),position:t.this(&quot;position&quot;)},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(&quot;color&quot;),opacity:t.prop(&quot;opacity&quot;),viewport:t.this(&quot;viewportArray&quot;),scale:t.this(&quot;scale&quot;),align:t.prop(&quot;align&quot;),baseline:t.prop(&quot;baseline&quot;),translate:t.this(&quot;translate&quot;),positionOffset:t.prop(&quot;positionOffset&quot;)},primitive:&quot;points&quot;,viewport:t.this(&quot;viewport&quot;),vert:&quot;\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\t&quot;+(T.normalViewport?&quot;&quot;:&quot;vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);&quot;)+&quot;\n\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ positionOffset))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\t&quot;+(T.normalViewport?&quot;position.y = 1. - position.y;&quot;:&quot;&quot;)+&quot;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}&quot;,frag:&quot;\n\t\t\tprecision highp float;\n\t\t\tuniform sampler2D atlas;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) &gt; halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) &lt; halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}&quot;});return{regl:t,draw:e,atlas:{}}},T.prototype.update=function(t){var e=this;if(&quot;string&quot;==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:&quot;position positions coord coords coordinates&quot;,font:&quot;font fontFace fontface typeface cssFont css-font family fontFamily&quot;,fontSize:&quot;fontSize fontsize size font-size&quot;,text:&quot;text texts chars characters value values symbols&quot;,align:&quot;align alignment textAlign textbaseline&quot;,baseline:&quot;baseline textBaseline textbaseline&quot;,direction:&quot;dir direction textDirection&quot;,color:&quot;color colour fill fill-color fillColor textColor textcolor&quot;,kerning:&quot;kerning kern&quot;,range:&quot;range dataBox&quot;,viewport:&quot;vp viewport viewBox viewbox viewPort&quot;,opacity:&quot;opacity alpha transparency visible visibility opaque&quot;,offset:&quot;offset positionOffset padding shift indent indentation&quot;},!0)).opacity&amp;&amp;(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&amp;&amp;(this.viewport=f(t.viewport),T.normalViewport&amp;&amp;(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&amp;&amp;(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&amp;&amp;(this.kerning=t.kerning),null!=t.offset&amp;&amp;(&quot;number&quot;==typeof t.offset&amp;&amp;(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&amp;&amp;(this.direction=t.direction),t.range&amp;&amp;(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&amp;&amp;(this.scale=t.scale),t.translate&amp;&amp;(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=T.baseFontSize+&quot;px sans-serif&quot;);var r,a=!1,o=!1;if(t.font&amp;&amp;(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if(&quot;string&quot;==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(T.baseFontSize+&quot;px &quot;+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:T.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&amp;&amp;(o=!0,e.fontSize[r]=l),!(e.font[r]&amp;&amp;i==e.font[r].baseString||(a=!0,e.font[r]=T.fonts[i],e.font[r]))){var c=t.family.join(&quot;, &quot;),u=[t.style];t.style!=t.variant&amp;&amp;u.push(t.variant),t.variant!=t.weight&amp;&amp;u.push(t.weight),_&amp;&amp;t.weight!=t.stretch&amp;&amp;u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:&quot;top&quot;,fontSize:T.baseFontSize,fontStyle:u.join(&quot; &quot;)})},T.fonts[i]=e.font[r]}})),(a||o)&amp;&amp;this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&amp;&amp;(t.text=e.text)})),&quot;string&quot;==typeof t.text&amp;&amp;t.position&amp;&amp;t.position.length&gt;2){for(var s=Array(.5*t.position.length),h=0;h&lt;s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b&lt;t.text.length;b++)this.textOffsets[b]=this.textOffsets[b-1]+t.text[b-1].length,this.count+=t.text[b].length,this.counts.push(t.text[b].length);this.text=t.text.join(&quot;&quot;)}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(t,n){T.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a&lt;e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&amp;&amp;(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&amp;&amp;(t.width[o]=T.atlasContext.measureText(o).width/T.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);m(t.kerning,g(t.family,{pairs:s}))}}}))}if(t.position)if(t.position.length&gt;2){for(var w=!t.position[0].length,k=u.mallocFloat(2*this.count),A=0,M=0;A&lt;this.counts.length;A++){var S=this.counts[A];if(w)for(var E=0;E&lt;S;E++)k[M++]=t.position[2*A],k[M++]=t.position[2*A+1];else for(var L=0;L&lt;S;L++)k[M++]=t.position[A][0],k[M++]=t.position[A][1]}this.position.call?this.position({type:&quot;float&quot;,data:k}):this.position=this.regl.buffer({type:&quot;float&quot;,data:k}),u.freeFloat(k)}else this.position.destroy&amp;&amp;this.position.destroy(),this.position={constant:t.position};if(t.text||a){var C=u.mallocUint8(this.count),P=u.mallocFloat(2*this.count);this.textWidth=[];for(var I=0,O=0;I&lt;this.counts.length;I++){for(var z=this.counts[I],D=this.font[I]||this.font[0],R=this.fontAtlas[I]||this.fontAtlas[0],F=0;F&lt;z;F++){var B=this.text.charAt(O),N=this.text.charAt(O-1);if(C[O]=R.ids[B],P[2*O]=D.width[B],F){var j=P[2*O-2],U=P[2*O],V=P[2*O-1]+.5*j+.5*U;if(this.kerning){var q=D.kerning[N+B];q&amp;&amp;(V+=.001*q)}P[2*O+1]=V}else P[2*O+1]=.5*P[2*O];O++}this.textWidth.push(P.length?.5*P[2*O-2]+P[2*O-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:C,type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer({data:P,type:&quot;float&quot;,usage:&quot;stream&quot;}),u.freeUint8(C),u.freeFloat(P),r.length&amp;&amp;this.font.forEach((function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(T.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&amp;&amp;n.texture({data:c({canvas:T.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})}))}if(t.align&amp;&amp;(this.align=t.align,this.alignOffset=this.textWidth.map((function(t,r){var n=Array.isArray(e.align)?e.align.length&gt;1?e.align[r]:e.align[0]:e.align;if(&quot;number&quot;==typeof n)return n;switch(n){case&quot;right&quot;:case&quot;end&quot;:return-t;case&quot;center&quot;:case&quot;centre&quot;:case&quot;middle&quot;:return.5*-t}return 0}))),null==this.baseline&amp;&amp;null==t.baseline&amp;&amp;(t.baseline=0),null!=t.baseline&amp;&amp;(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=&quot;number&quot;==typeof t?t-n.baseline:-n[t],T.normalViewport||(i*=-1),i}))),null!=t.color)if(t.color||(t.color=&quot;transparent&quot;),&quot;string&quot;!=typeof t.color&amp;&amp;isNaN(t.color)){var H;if(&quot;number&quot;==typeof t.color[0]&amp;&amp;t.color.length&gt;this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var Y=(t.color.subarray||t.color.slice).bind(t.color),W=0;W&lt;G;W+=4)H.set(l(Y(W,W+4),&quot;uint8&quot;),W)}else{var X=t.color.length;H=u.mallocUint8(4*X);for(var Z=0;Z&lt;X;Z++)H.set(l(t.color[Z]||0,&quot;uint8&quot;),4*Z)}this.color=H}else this.color=l(t.color,&quot;uint8&quot;);if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length&gt;4||this.baselineOffset.length&gt;1||this.align&amp;&amp;this.align.length&gt;1||this.fontAtlas.length&gt;1||this.positionOffset.length&gt;2){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var K=0;K&lt;this.batch.length;K++)this.batch[K]={count:this.counts.length&gt;1?this.counts[K]:this.counts[0],offset:this.textOffsets.length&gt;1?this.textOffsets[K]:this.textOffsets[0],color:this.color?this.color.length&lt;=4?this.color:this.color.subarray(4*K,4*K+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[K]:this.opacity,baseline:null!=this.baselineOffset[K]?this.baselineOffset[K]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[K]?this.alignOffset[K]:this.alignOffset[0]:0,atlas:this.fontAtlas[K]||this.fontAtlas[0],positionOffset:this.positionOffset.length&gt;2?this.positionOffset.subarray(2*K,2*K+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text=&quot;&quot;,T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.normalViewport=!1,T.maxAtlasSize=1024,T.atlasCanvas=document.createElement(&quot;canvas&quot;),T.atlasContext=T.atlasCanvas.getContext(&quot;2d&quot;,{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},{&quot;bit-twiddle&quot;:104,&quot;color-normalize&quot;:131,&quot;css-font&quot;:150,&quot;detect-kerning&quot;:181,&quot;es6-weak-map&quot;:241,&quot;flatten-vertex-data&quot;:252,&quot;font-atlas&quot;:253,&quot;font-measure&quot;:254,&quot;gl-util/context&quot;:357,&quot;is-plain-obj&quot;:457,&quot;object-assign&quot;:487,&quot;parse-rect&quot;:492,&quot;parse-unit&quot;:494,&quot;pick-by-alias&quot;:498,regl:540,&quot;to-px&quot;:600,&quot;typedarray-pool&quot;:617}],356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;typedarray-pool&quot;);e.exports=function(t){if(arguments.length&lt;=1)throw new Error(&quot;gl-texture2d: Missing arguments for texture2d constructor&quot;);o||c(t);if(&quot;number&quot;==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(&quot;object&quot;==typeof arguments[1]){var e=arguments[1],r=u(e)?e:e.raw;if(r)return y(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&amp;&amp;e.data&amp;&amp;e.stride)return x(t,e)}throw new Error(&quot;gl-texture2d: Invalid arguments for texture2d constructor&quot;)};var o=null,s=null,l=null;function c(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function u(t){return&quot;undefined&quot;!=typeof HTMLCanvasElement&amp;&amp;t instanceof HTMLCanvasElement||&quot;undefined&quot;!=typeof HTMLImageElement&amp;&amp;t instanceof HTMLImageElement||&quot;undefined&quot;!=typeof HTMLVideoElement&amp;&amp;t instanceof HTMLVideoElement||&quot;undefined&quot;!=typeof ImageData&amp;&amp;t instanceof ImageData}var f=function(t,e){i.muls(t,e,255)};function h(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function p(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var d=p.prototype;function g(t,e){return 3===t.length?1===e[2]&amp;&amp;e[1]===t[0]*t[2]&amp;&amp;e[0]===t[2]:1===e[0]&amp;&amp;e[1]===t[0]}function m(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;a||r&lt;0||r&gt;a)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;);if(i===t.FLOAT&amp;&amp;!t.getExtension(&quot;OES_texture_float&quot;))throw new Error(&quot;gl-texture2d: Floating point textures not supported on this platform&quot;);var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new p(t,o,e,r,n,i)}function y(t,e,r,n,i,a){var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new p(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]&lt;0||o[0]&gt;s||o[1]&lt;0||o[1]&gt;s)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);var l=g(o,e.stride.slice()),c=0;&quot;float32&quot;===r?c=t.FLOAT:&quot;float64&quot;===r?(c=t.FLOAT,l=!1,r=&quot;float32&quot;):&quot;uint8&quot;===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=&quot;uint8&quot;);var u,h,d=0;if(2===o.length)d=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===o[2])d=t.ALPHA;else if(2===o[2])d=t.LUMINANCE_ALPHA;else if(3===o[2])d=t.RGB;else{if(4!==o[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);d=t.RGBA}}c!==t.FLOAT||t.getExtension(&quot;OES_texture_float&quot;)||(c=t.UNSIGNED_BYTE,l=!1);var v=e.size;if(l)u=0===e.offset&amp;&amp;e.data.length===v?e.data:e.data.subarray(e.offset,e.offset+v);else{var y=[o[2],o[2]*o[0],1];h=a.malloc(v,r);var x=n(h,o,y,0);&quot;float32&quot;!==r&amp;&amp;&quot;float64&quot;!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):f(x,e),u=h.subarray(0,v)}var b=m(t);return t.texImage2D(t.TEXTURE_2D,0,d,o[0],o[1],0,d,c,u),l||a.free(h),new p(t,b,o[0],o[1],d,c)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(&quot;EXT_texture_filter_anisotropic&quot;);r&amp;&amp;this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(&quot;gl-texture2d: Must specify wrap mode for rows and columns&quot;);for(var e=0;e&lt;2;++e)if(l.indexOf(t[e])&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;)}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),d.bind=function(t){var e=this.gl;return void 0!==t&amp;&amp;e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t&gt;0;++e,t&gt;&gt;&gt;=1)this._mipLevels.indexOf(e)&lt;0&amp;&amp;this._mipLevels.push(e)},d.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)&lt;0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&amp;&amp;t.stride&amp;&amp;t.data))throw new Error(&quot;gl-texture2d: Unsupported data type&quot;);if(t.shape.length&lt;2||e+t.shape[1]&gt;this._shape[1]&gt;&gt;&gt;o||r+t.shape[0]&gt;this._shape[0]&gt;&gt;&gt;o||e&lt;0||r&lt;0)throw new Error(&quot;gl-texture2d: Texture dimensions are out of bounds&quot;);!function(t,e,r,o,s,l,c,u){var h=u.dtype,p=u.shape.slice();if(p.length&lt;2||p.length&gt;3)throw new Error(&quot;gl-texture2d: Invalid ndarray, must be 2d or 3d&quot;);var d=0,m=0,v=g(p,u.stride.slice());&quot;float32&quot;===h?d=t.FLOAT:&quot;float64&quot;===h?(d=t.FLOAT,v=!1,h=&quot;float32&quot;):&quot;uint8&quot;===h?d=t.UNSIGNED_BYTE:(d=t.UNSIGNED_BYTE,v=!1,h=&quot;uint8&quot;);if(2===p.length)m=t.LUMINANCE,p=[p[0],p[1],1],u=n(u.data,p,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==p.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===p[2])m=t.ALPHA;else if(2===p[2])m=t.LUMINANCE_ALPHA;else if(3===p[2])m=t.RGB;else{if(4!==p[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);m=t.RGBA}p[2]}m!==t.LUMINANCE&amp;&amp;m!==t.ALPHA||s!==t.LUMINANCE&amp;&amp;s!==t.ALPHA||(m=s);if(m!==s)throw new Error(&quot;gl-texture2d: Incompatible texture format for setPixels&quot;);var y=u.size,x=c.indexOf(o)&lt;0;x&amp;&amp;c.push(o);if(d===l&amp;&amp;v)0===u.offset&amp;&amp;u.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);d===t.FLOAT&amp;&amp;l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:483,&quot;ndarray-ops&quot;:478,&quot;typedarray-pool&quot;:617}],357:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return&quot;function&quot;==typeof t.getContext&amp;&amp;&quot;width&quot;in t&amp;&amp;&quot;height&quot;in t}function o(){var t=document.createElement(&quot;canvas&quot;);return t.style.position=&quot;absolute&quot;,t.style.top=0,t.style.left=0,t}e.exports=function(t){var e;if(t?&quot;string&quot;==typeof t&amp;&amp;(t={container:t}):t={},a(t)?t={container:t}:t=&quot;string&quot;==typeof(e=t).nodeName&amp;&amp;&quot;function&quot;==typeof e.appendChild&amp;&amp;&quot;function&quot;==typeof e.getBoundingClientRect?{container:t}:function(t){return&quot;function&quot;==typeof t.drawArrays||&quot;function&quot;==typeof t.drawElements}(t)?{gl:t}:n(t,{container:&quot;container target element el canvas holder parent parentNode wrapper use ref root node&quot;,gl:&quot;gl context webgl glContext&quot;,attrs:&quot;attributes attrs contextAttributes&quot;,pixelRatio:&quot;pixelRatio pxRatio px ratio pxratio pixelratio&quot;,width:&quot;w width&quot;,height:&quot;h height&quot;},!0),t.pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&amp;&amp;(t.container=t.canvas.parentNode),t.container){if(&quot;string&quot;==typeof t.container){var s=document.querySelector(t.container);if(!s)throw Error(&quot;Element &quot;+t.container+&quot; is not found&quot;);t.container=s}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=o(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if(&quot;undefined&quot;==typeof document)throw Error(&quot;Not DOM environment. Use headless-gl.&quot;);t.container=document.body||document.documentElement,t.canvas=o(),t.container.appendChild(t.canvas),i(t)}return t.gl||[&quot;webgl&quot;,&quot;experimental-webgl&quot;,&quot;webgl-experimental&quot;].some((function(e){try{t.gl=t.canvas.getContext(e,t.attrs)}catch(t){}return t.gl})),t.gl}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;pick-by-alias&quot;:498}],358:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length&gt;n)throw new Error(&quot;gl-vao: Too many vertex attributes&quot;);for(var i=0;i&lt;r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(&quot;number&quot;==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(&quot;gl-vao: Invalid vertex attribute&quot;);t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i&lt;n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(i=0;i&lt;n;++i)t.disableVertexAttribArray(i)}}},{}],359:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{&quot;./do-bind.js&quot;:358}],360:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t&lt;this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a&lt;t.length;++a){var o=t[a];&quot;number&quot;==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&amp;&amp;this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{&quot;./do-bind.js&quot;:358}],361:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/vao-native.js&quot;),i=t(&quot;./lib/vao-emulated.js&quot;);function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(&quot;OES_vertex_array_object&quot;);return(s=l?n(t,l):i(t)).update(e,r,o),s}},{&quot;./lib/vao-emulated.js&quot;:359,&quot;./lib/vao-native.js&quot;:360}],362:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],363:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s&gt;1?0:Math.acos(s)};var n=t(&quot;./fromValues&quot;),i=t(&quot;./normalize&quot;),a=t(&quot;./dot&quot;)},{&quot;./dot&quot;:373,&quot;./fromValues&quot;:379,&quot;./normalize&quot;:390}],364:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],365:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],366:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],367:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],368:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],369:[function(t,e,r){e.exports=t(&quot;./distance&quot;)},{&quot;./distance&quot;:370}],370:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],371:[function(t,e,r){e.exports=t(&quot;./divide&quot;)},{&quot;./divide&quot;:372}],372:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],373:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],374:[function(t,e,r){e.exports=1e-6},{}],375:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)&lt;=n*Math.max(1,Math.abs(r),Math.abs(o))&amp;&amp;Math.abs(i-s)&lt;=n*Math.max(1,Math.abs(i),Math.abs(s))&amp;&amp;Math.abs(a-l)&lt;=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(&quot;./epsilon&quot;)},{&quot;./epsilon&quot;:374}],376:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&amp;&amp;t[1]===e[1]&amp;&amp;t[2]===e[2]}},{}],377:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],378:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s&lt;l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(&quot;./create&quot;)()},{&quot;./create&quot;:367}],379:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],380:[function(t,e,r){e.exports={EPSILON:t(&quot;./epsilon&quot;),create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),angle:t(&quot;./angle&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),equals:t(&quot;./equals&quot;),exactEquals:t(&quot;./exactEquals&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),sub:t(&quot;./sub&quot;),multiply:t(&quot;./multiply&quot;),mul:t(&quot;./mul&quot;),divide:t(&quot;./divide&quot;),div:t(&quot;./div&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),floor:t(&quot;./floor&quot;),ceil:t(&quot;./ceil&quot;),round:t(&quot;./round&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),dist:t(&quot;./dist&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),sqrDist:t(&quot;./sqrDist&quot;),length:t(&quot;./length&quot;),len:t(&quot;./len&quot;),squaredLength:t(&quot;./squaredLength&quot;),sqrLen:t(&quot;./sqrLen&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),cross:t(&quot;./cross&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformMat3:t(&quot;./transformMat3&quot;),transformQuat:t(&quot;./transformQuat&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),forEach:t(&quot;./forEach&quot;)}},{&quot;./add&quot;:362,&quot;./angle&quot;:363,&quot;./ceil&quot;:364,&quot;./clone&quot;:365,&quot;./copy&quot;:366,&quot;./create&quot;:367,&quot;./cross&quot;:368,&quot;./dist&quot;:369,&quot;./distance&quot;:370,&quot;./div&quot;:371,&quot;./divide&quot;:372,&quot;./dot&quot;:373,&quot;./epsilon&quot;:374,&quot;./equals&quot;:375,&quot;./exactEquals&quot;:376,&quot;./floor&quot;:377,&quot;./forEach&quot;:378,&quot;./fromValues&quot;:379,&quot;./inverse&quot;:381,&quot;./len&quot;:382,&quot;./length&quot;:383,&quot;./lerp&quot;:384,&quot;./max&quot;:385,&quot;./min&quot;:386,&quot;./mul&quot;:387,&quot;./multiply&quot;:388,&quot;./negate&quot;:389,&quot;./normalize&quot;:390,&quot;./random&quot;:391,&quot;./rotateX&quot;:392,&quot;./rotateY&quot;:393,&quot;./rotateZ&quot;:394,&quot;./round&quot;:395,&quot;./scale&quot;:396,&quot;./scaleAndAdd&quot;:397,&quot;./set&quot;:398,&quot;./sqrDist&quot;:399,&quot;./sqrLen&quot;:400,&quot;./squaredDistance&quot;:401,&quot;./squaredLength&quot;:402,&quot;./sub&quot;:403,&quot;./subtract&quot;:404,&quot;./transformMat3&quot;:405,&quot;./transformMat4&quot;:406,&quot;./transformQuat&quot;:407}],381:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],382:[function(t,e,r){e.exports=t(&quot;./length&quot;)},{&quot;./length&quot;:383}],383:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],384:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],385:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],386:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],387:[function(t,e,r){e.exports=t(&quot;./multiply&quot;)},{&quot;./multiply&quot;:388}],388:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],389:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],390:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a&gt;0&amp;&amp;(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],391:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],392:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],393:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],394:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],395:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],396:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],397:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],398:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],399:[function(t,e,r){e.exports=t(&quot;./squaredDistance&quot;)},{&quot;./squaredDistance&quot;:401}],400:[function(t,e,r){e.exports=t(&quot;./squaredLength&quot;)},{&quot;./squaredLength&quot;:402}],401:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],402:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],403:[function(t,e,r){e.exports=t(&quot;./subtract&quot;)},{&quot;./subtract&quot;:404}],404:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],405:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],406:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],407:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],408:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],409:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],410:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],411:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],412:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],413:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],414:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],415:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],416:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),multiply:t(&quot;./multiply&quot;),divide:t(&quot;./divide&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),length:t(&quot;./length&quot;),squaredLength:t(&quot;./squaredLength&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformQuat:t(&quot;./transformQuat&quot;)}},{&quot;./add&quot;:408,&quot;./clone&quot;:409,&quot;./copy&quot;:410,&quot;./create&quot;:411,&quot;./distance&quot;:412,&quot;./divide&quot;:413,&quot;./dot&quot;:414,&quot;./fromValues&quot;:415,&quot;./inverse&quot;:417,&quot;./length&quot;:418,&quot;./lerp&quot;:419,&quot;./max&quot;:420,&quot;./min&quot;:421,&quot;./multiply&quot;:422,&quot;./negate&quot;:423,&quot;./normalize&quot;:424,&quot;./random&quot;:425,&quot;./scale&quot;:426,&quot;./scaleAndAdd&quot;:427,&quot;./set&quot;:428,&quot;./squaredDistance&quot;:429,&quot;./squaredLength&quot;:430,&quot;./subtract&quot;:431,&quot;./transformMat4&quot;:432,&quot;./transformQuat&quot;:433}],417:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],418:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],419:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],420:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],421:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],422:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],423:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],424:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o&gt;0&amp;&amp;(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],425:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;./scale&quot;);e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{&quot;./normalize&quot;:424,&quot;./scale&quot;:426}],426:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],427:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],428:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],429:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],430:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],431:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],432:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],433:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],434:[function(t,e,r){var n=t(&quot;glsl-tokenizer&quot;),i=t(&quot;atob-lite&quot;);e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r&lt;e.length;r++){var a=e[r];if(&quot;preprocessor&quot;===a.type){var o=a.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(o&amp;&amp;o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{&quot;atob-lite&quot;:84,&quot;glsl-tokenizer&quot;:441}],435:[function(t,e,r){e.exports=function(t){var e,r,c,u=0,f=0,h=999,p=[],d=[],g=1,m=0,v=0,y=!1,x=!1,b=&quot;&quot;,_=a,w=n;&quot;300 es&quot;===(t=t||{}).version&amp;&amp;(_=s,w=o);var T={},k={};for(u=0;u&lt;_.length;u++)T[_[u]]=!0;for(u=0;u&lt;w.length;u++)k[w[u]]=!0;return function(t){return d=[],null!==t?function(t){u=0,t.toString&amp;&amp;(t=t.toString());var r;b+=t.replace(/\r\n/g,&quot;\n&quot;),c=b.length;for(;e=b[u],u&lt;c;){switch(r=u,h){case 0:u=L();break;case 1:case 2:u=E();break;case 3:u=C();break;case 4:u=O();break;case 11:u=I();break;case 5:u=z();break;case 9999:u=D();break;case 9:u=S();break;case 999:u=M()}if(r!==u)switch(b[r]){case&quot;\n&quot;:m=0,++g;break;default:++m}}return f+=u,b=b.slice(u),d}(t):function(t){p.length&amp;&amp;A(p.join(&quot;&quot;));return h=10,A(&quot;(eof)&quot;),d}()};function A(t){t.length&amp;&amp;d.push({type:l[h],data:t,position:v,line:g,column:m})}function M(){return p=p.length?[]:p,&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e?(v=f+u-1,h=0,r=e,u+1):&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e?(v=f+u-1,h=1,r=e,u+1):&quot;#&quot;===e?(h=2,v=f+u,u):/\s/.test(e)?(h=9,v=f+u,u):(y=/\d/.test(e),x=/[^\w_]/.test(e),v=f+u,h=y?4:x?3:9999,u)}function S(){return/[^\s]/g.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function E(){return&quot;\r&quot;!==e&amp;&amp;&quot;\n&quot;!==e||&quot;\\&quot;===r?(p.push(e),r=e,u+1):(A(p.join(&quot;&quot;)),h=999,u)}function L(){return&quot;/&quot;===e&amp;&amp;&quot;*&quot;===r?(p.push(e),A(p.join(&quot;&quot;)),h=999,u+1):(p.push(e),r=e,u+1)}function C(){if(&quot;.&quot;===r&amp;&amp;/\d/.test(e))return h=5,u;if(&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e)return h=0,u;if(&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e)return h=1,u;if(&quot;.&quot;===e&amp;&amp;p.length){for(;P(p););return h=5,u}if(&quot;;&quot;===e||&quot;)&quot;===e||&quot;(&quot;===e){if(p.length)for(;P(p););return A(e),h=999,u+1}var t=2===p.length&amp;&amp;&quot;=&quot;!==e;if(/[\w_\d\s]/.test(e)||t){for(;P(p););return h=999,u}return p.push(e),r=e,u+1}function P(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(&quot;&quot;)),r=i[e],-1===e){if(n--+t.length&gt;0)continue;r=t.slice(0,1).join(&quot;&quot;)}return A(r),v+=r.length,(p=p.slice(r.length)).length}}function I(){return/[^a-fA-F0-9]/.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function O(){return&quot;.&quot;===e||/[eE]/.test(e)?(p.push(e),h=5,r=e,u+1):&quot;x&quot;===e&amp;&amp;1===p.length&amp;&amp;&quot;0&quot;===p[0]?(h=11,p.push(e),r=e,u+1):/[^\d]/.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function z(){return&quot;f&quot;===e&amp;&amp;(p.push(e),r=e,u+=1),/[eE]/.test(e)?(p.push(e),r=e,u+1):(&quot;-&quot;!==e&amp;&amp;&quot;+&quot;!==e||!/[eE]/.test(r))&amp;&amp;/[^\d]/.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function D(){if(/[^\d\w_]/.test(e)){var t=p.join(&quot;&quot;);return h=k[t]?8:T[t]?7:6,A(p.join(&quot;&quot;)),h=999,u}return p.push(e),r=e,u+1}};var n=t(&quot;./lib/literals&quot;),i=t(&quot;./lib/operators&quot;),a=t(&quot;./lib/builtins&quot;),o=t(&quot;./lib/literals-300es&quot;),s=t(&quot;./lib/builtins-300es&quot;),l=[&quot;block-comment&quot;,&quot;line-comment&quot;,&quot;preprocessor&quot;,&quot;operator&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;ident&quot;,&quot;builtin&quot;,&quot;keyword&quot;,&quot;whitespace&quot;,&quot;eof&quot;,&quot;integer&quot;]},{&quot;./lib/builtins&quot;:437,&quot;./lib/builtins-300es&quot;:436,&quot;./lib/literals&quot;:439,&quot;./lib/literals-300es&quot;:438,&quot;./lib/operators&quot;:440}],436:[function(t,e,r){var n=t(&quot;./builtins&quot;);n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat([&quot;gl_VertexID&quot;,&quot;gl_InstanceID&quot;,&quot;gl_Position&quot;,&quot;gl_PointSize&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FragDepth&quot;,&quot;gl_PointCoord&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexUniformVectors&quot;,&quot;gl_MaxVertexOutputVectors&quot;,&quot;gl_MaxFragmentInputVectors&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxFragmentUniformVectors&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MinProgramTexelOffset&quot;,&quot;gl_MaxProgramTexelOffset&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_DepthRange&quot;,&quot;trunc&quot;,&quot;round&quot;,&quot;roundEven&quot;,&quot;isnan&quot;,&quot;isinf&quot;,&quot;floatBitsToInt&quot;,&quot;floatBitsToUint&quot;,&quot;intBitsToFloat&quot;,&quot;uintBitsToFloat&quot;,&quot;packSnorm2x16&quot;,&quot;unpackSnorm2x16&quot;,&quot;packUnorm2x16&quot;,&quot;unpackUnorm2x16&quot;,&quot;packHalf2x16&quot;,&quot;unpackHalf2x16&quot;,&quot;outerProduct&quot;,&quot;transpose&quot;,&quot;determinant&quot;,&quot;inverse&quot;,&quot;texture&quot;,&quot;textureSize&quot;,&quot;textureProj&quot;,&quot;textureLod&quot;,&quot;textureOffset&quot;,&quot;texelFetch&quot;,&quot;texelFetchOffset&quot;,&quot;textureProjOffset&quot;,&quot;textureLodOffset&quot;,&quot;textureProjLod&quot;,&quot;textureProjLodOffset&quot;,&quot;textureGrad&quot;,&quot;textureGradOffset&quot;,&quot;textureProjGrad&quot;,&quot;textureProjGradOffset&quot;])},{&quot;./builtins&quot;:437}],437:[function(t,e,r){e.exports=[&quot;abs&quot;,&quot;acos&quot;,&quot;all&quot;,&quot;any&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;clamp&quot;,&quot;cos&quot;,&quot;cross&quot;,&quot;dFdx&quot;,&quot;dFdy&quot;,&quot;degrees&quot;,&quot;distance&quot;,&quot;dot&quot;,&quot;equal&quot;,&quot;exp&quot;,&quot;exp2&quot;,&quot;faceforward&quot;,&quot;floor&quot;,&quot;fract&quot;,&quot;gl_BackColor&quot;,&quot;gl_BackLightModelProduct&quot;,&quot;gl_BackLightProduct&quot;,&quot;gl_BackMaterial&quot;,&quot;gl_BackSecondaryColor&quot;,&quot;gl_ClipPlane&quot;,&quot;gl_ClipVertex&quot;,&quot;gl_Color&quot;,&quot;gl_DepthRange&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_EyePlaneQ&quot;,&quot;gl_EyePlaneR&quot;,&quot;gl_EyePlaneS&quot;,&quot;gl_EyePlaneT&quot;,&quot;gl_Fog&quot;,&quot;gl_FogCoord&quot;,&quot;gl_FogFragCoord&quot;,&quot;gl_FogParameters&quot;,&quot;gl_FragColor&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FragData&quot;,&quot;gl_FragDepth&quot;,&quot;gl_FragDepthEXT&quot;,&quot;gl_FrontColor&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FrontLightModelProduct&quot;,&quot;gl_FrontLightProduct&quot;,&quot;gl_FrontMaterial&quot;,&quot;gl_FrontSecondaryColor&quot;,&quot;gl_LightModel&quot;,&quot;gl_LightModelParameters&quot;,&quot;gl_LightModelProducts&quot;,&quot;gl_LightProducts&quot;,&quot;gl_LightSource&quot;,&quot;gl_LightSourceParameters&quot;,&quot;gl_MaterialParameters&quot;,&quot;gl_MaxClipPlanes&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MaxFragmentUniformComponents&quot;,&quot;gl_MaxLights&quot;,&quot;gl_MaxTextureCoords&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxTextureUnits&quot;,&quot;gl_MaxVaryingFloats&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxVertexUniformComponents&quot;,&quot;gl_ModelViewMatrix&quot;,&quot;gl_ModelViewMatrixInverse&quot;,&quot;gl_ModelViewMatrixInverseTranspose&quot;,&quot;gl_ModelViewMatrixTranspose&quot;,&quot;gl_ModelViewProjectionMatrix&quot;,&quot;gl_ModelViewProjectionMatrixInverse&quot;,&quot;gl_ModelViewProjectionMatrixInverseTranspose&quot;,&quot;gl_ModelViewProjectionMatrixTranspose&quot;,&quot;gl_MultiTexCoord0&quot;,&quot;gl_MultiTexCoord1&quot;,&quot;gl_MultiTexCoord2&quot;,&quot;gl_MultiTexCoord3&quot;,&quot;gl_MultiTexCoord4&quot;,&quot;gl_MultiTexCoord5&quot;,&quot;gl_MultiTexCoord6&quot;,&quot;gl_MultiTexCoord7&quot;,&quot;gl_Normal&quot;,&quot;gl_NormalMatrix&quot;,&quot;gl_NormalScale&quot;,&quot;gl_ObjectPlaneQ&quot;,&quot;gl_ObjectPlaneR&quot;,&quot;gl_ObjectPlaneS&quot;,&quot;gl_ObjectPlaneT&quot;,&quot;gl_Point&quot;,&quot;gl_PointCoord&quot;,&quot;gl_PointParameters&quot;,&quot;gl_PointSize&quot;,&quot;gl_Position&quot;,&quot;gl_ProjectionMatrix&quot;,&quot;gl_ProjectionMatrixInverse&quot;,&quot;gl_ProjectionMatrixInverseTranspose&quot;,&quot;gl_ProjectionMatrixTranspose&quot;,&quot;gl_SecondaryColor&quot;,&quot;gl_TexCoord&quot;,&quot;gl_TextureEnvColor&quot;,&quot;gl_TextureMatrix&quot;,&quot;gl_TextureMatrixInverse&quot;,&quot;gl_TextureMatrixInverseTranspose&quot;,&quot;gl_TextureMatrixTranspose&quot;,&quot;gl_Vertex&quot;,&quot;greaterThan&quot;,&quot;greaterThanEqual&quot;,&quot;inversesqrt&quot;,&quot;length&quot;,&quot;lessThan&quot;,&quot;lessThanEqual&quot;,&quot;log&quot;,&quot;log2&quot;,&quot;matrixCompMult&quot;,&quot;max&quot;,&quot;min&quot;,&quot;mix&quot;,&quot;mod&quot;,&quot;normalize&quot;,&quot;not&quot;,&quot;notEqual&quot;,&quot;pow&quot;,&quot;radians&quot;,&quot;reflect&quot;,&quot;refract&quot;,&quot;sign&quot;,&quot;sin&quot;,&quot;smoothstep&quot;,&quot;sqrt&quot;,&quot;step&quot;,&quot;tan&quot;,&quot;texture2D&quot;,&quot;texture2DLod&quot;,&quot;texture2DProj&quot;,&quot;texture2DProjLod&quot;,&quot;textureCube&quot;,&quot;textureCubeLod&quot;,&quot;texture2DLodEXT&quot;,&quot;texture2DProjLodEXT&quot;,&quot;textureCubeLodEXT&quot;,&quot;texture2DGradEXT&quot;,&quot;texture2DProjGradEXT&quot;,&quot;textureCubeGradEXT&quot;]},{}],438:[function(t,e,r){var n=t(&quot;./literals&quot;);e.exports=n.slice().concat([&quot;layout&quot;,&quot;centroid&quot;,&quot;smooth&quot;,&quot;case&quot;,&quot;mat2x2&quot;,&quot;mat2x3&quot;,&quot;mat2x4&quot;,&quot;mat3x2&quot;,&quot;mat3x3&quot;,&quot;mat3x4&quot;,&quot;mat4x2&quot;,&quot;mat4x3&quot;,&quot;mat4x4&quot;,&quot;uvec2&quot;,&quot;uvec3&quot;,&quot;uvec4&quot;,&quot;samplerCubeShadow&quot;,&quot;sampler2DArray&quot;,&quot;sampler2DArrayShadow&quot;,&quot;isampler2D&quot;,&quot;isampler3D&quot;,&quot;isamplerCube&quot;,&quot;isampler2DArray&quot;,&quot;usampler2D&quot;,&quot;usampler3D&quot;,&quot;usamplerCube&quot;,&quot;usampler2DArray&quot;,&quot;coherent&quot;,&quot;restrict&quot;,&quot;readonly&quot;,&quot;writeonly&quot;,&quot;resource&quot;,&quot;atomic_uint&quot;,&quot;noperspective&quot;,&quot;patch&quot;,&quot;sample&quot;,&quot;subroutine&quot;,&quot;common&quot;,&quot;partition&quot;,&quot;active&quot;,&quot;filter&quot;,&quot;image1D&quot;,&quot;image2D&quot;,&quot;image3D&quot;,&quot;imageCube&quot;,&quot;iimage1D&quot;,&quot;iimage2D&quot;,&quot;iimage3D&quot;,&quot;iimageCube&quot;,&quot;uimage1D&quot;,&quot;uimage2D&quot;,&quot;uimage3D&quot;,&quot;uimageCube&quot;,&quot;image1DArray&quot;,&quot;image2DArray&quot;,&quot;iimage1DArray&quot;,&quot;iimage2DArray&quot;,&quot;uimage1DArray&quot;,&quot;uimage2DArray&quot;,&quot;image1DShadow&quot;,&quot;image2DShadow&quot;,&quot;image1DArrayShadow&quot;,&quot;image2DArrayShadow&quot;,&quot;imageBuffer&quot;,&quot;iimageBuffer&quot;,&quot;uimageBuffer&quot;,&quot;sampler1DArray&quot;,&quot;sampler1DArrayShadow&quot;,&quot;isampler1D&quot;,&quot;isampler1DArray&quot;,&quot;usampler1D&quot;,&quot;usampler1DArray&quot;,&quot;isampler2DRect&quot;,&quot;usampler2DRect&quot;,&quot;samplerBuffer&quot;,&quot;isamplerBuffer&quot;,&quot;usamplerBuffer&quot;,&quot;sampler2DMS&quot;,&quot;isampler2DMS&quot;,&quot;usampler2DMS&quot;,&quot;sampler2DMSArray&quot;,&quot;isampler2DMSArray&quot;,&quot;usampler2DMSArray&quot;])},{&quot;./literals&quot;:439}],439:[function(t,e,r){e.exports=[&quot;precision&quot;,&quot;highp&quot;,&quot;mediump&quot;,&quot;lowp&quot;,&quot;attribute&quot;,&quot;const&quot;,&quot;uniform&quot;,&quot;varying&quot;,&quot;break&quot;,&quot;continue&quot;,&quot;do&quot;,&quot;for&quot;,&quot;while&quot;,&quot;if&quot;,&quot;else&quot;,&quot;in&quot;,&quot;out&quot;,&quot;inout&quot;,&quot;float&quot;,&quot;int&quot;,&quot;uint&quot;,&quot;void&quot;,&quot;bool&quot;,&quot;true&quot;,&quot;false&quot;,&quot;discard&quot;,&quot;return&quot;,&quot;mat2&quot;,&quot;mat3&quot;,&quot;mat4&quot;,&quot;vec2&quot;,&quot;vec3&quot;,&quot;vec4&quot;,&quot;ivec2&quot;,&quot;ivec3&quot;,&quot;ivec4&quot;,&quot;bvec2&quot;,&quot;bvec3&quot;,&quot;bvec4&quot;,&quot;sampler1D&quot;,&quot;sampler2D&quot;,&quot;sampler3D&quot;,&quot;samplerCube&quot;,&quot;sampler1DShadow&quot;,&quot;sampler2DShadow&quot;,&quot;struct&quot;,&quot;asm&quot;,&quot;class&quot;,&quot;union&quot;,&quot;enum&quot;,&quot;typedef&quot;,&quot;template&quot;,&quot;this&quot;,&quot;packed&quot;,&quot;goto&quot;,&quot;switch&quot;,&quot;default&quot;,&quot;inline&quot;,&quot;noinline&quot;,&quot;volatile&quot;,&quot;public&quot;,&quot;static&quot;,&quot;extern&quot;,&quot;external&quot;,&quot;interface&quot;,&quot;long&quot;,&quot;short&quot;,&quot;double&quot;,&quot;half&quot;,&quot;fixed&quot;,&quot;unsigned&quot;,&quot;input&quot;,&quot;output&quot;,&quot;hvec2&quot;,&quot;hvec3&quot;,&quot;hvec4&quot;,&quot;dvec2&quot;,&quot;dvec3&quot;,&quot;dvec4&quot;,&quot;fvec2&quot;,&quot;fvec3&quot;,&quot;fvec4&quot;,&quot;sampler2DRect&quot;,&quot;sampler3DRect&quot;,&quot;sampler2DRectShadow&quot;,&quot;sizeof&quot;,&quot;cast&quot;,&quot;namespace&quot;,&quot;using&quot;]},{}],440:[function(t,e,r){e.exports=[&quot;&lt;&lt;=&quot;,&quot;&gt;&gt;=&quot;,&quot;++&quot;,&quot;--&quot;,&quot;&lt;&lt;&quot;,&quot;&gt;&gt;&quot;,&quot;&lt;=&quot;,&quot;&gt;=&quot;,&quot;==&quot;,&quot;!=&quot;,&quot;&amp;&amp;&quot;,&quot;||&quot;,&quot;+=&quot;,&quot;-=&quot;,&quot;*=&quot;,&quot;/=&quot;,&quot;%=&quot;,&quot;&amp;=&quot;,&quot;^^&quot;,&quot;^=&quot;,&quot;|=&quot;,&quot;(&quot;,&quot;)&quot;,&quot;[&quot;,&quot;]&quot;,&quot;.&quot;,&quot;!&quot;,&quot;~&quot;,&quot;*&quot;,&quot;/&quot;,&quot;%&quot;,&quot;+&quot;,&quot;-&quot;,&quot;&lt;&quot;,&quot;&gt;&quot;,&quot;&amp;&quot;,&quot;^&quot;,&quot;|&quot;,&quot;?&quot;,&quot;:&quot;,&quot;=&quot;,&quot;,&quot;,&quot;;&quot;,&quot;{&quot;,&quot;}&quot;]},{}],441:[function(t,e,r){var n=t(&quot;./index&quot;);e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{&quot;./index&quot;:435}],442:[function(t,e,r){arguments[4][265][0].apply(r,arguments)},{dup:265}],443:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n,i=t(&quot;is-browser&quot;);n=&quot;function&quot;==typeof r.matchMedia?!r.matchMedia(&quot;(hover: none)&quot;).matches:i,e.exports=n}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;is-browser&quot;:452}],444:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-browser&quot;);e.exports=n&amp;&amp;function(){var t=!1;try{var e=Object.defineProperty({},&quot;passive&quot;,{get:function(){t=!0}});window.addEventListener(&quot;test&quot;,null,e),window.removeEventListener(&quot;test&quot;,null,e)}catch(e){t=!1}return t}()},{&quot;is-browser&quot;:452}],445:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},{}],446:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(&quot;Must have at least d+1 points&quot;);var i=t[0].length;if(r&lt;=i)throw new Error(&quot;Must input at least d+1 points&quot;);var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(&quot;Input not in general position&quot;);for(var l=new Array(i+1),u=0;u&lt;=i;++u)l[u]=u;s&lt;0&amp;&amp;(l[0]=1,l[1]=0);var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2);for(u=0;u&lt;=i;++u){for(var d=l.slice(),g=0;g&lt;=i;++g)g===u&amp;&amp;(d[g]=-1);var m=d[0];d[0]=d[1],d[1]=m;var v=new a(d,new Array(i+1),!0);h[u]=v,p[u]=v}p[i+1]=f;for(u=0;u&lt;=i;++u){d=h[u].vertices;var y=h[u].adjacent;for(g=0;g&lt;=i;++g){var x=d[g];if(x&lt;0)y[g]=f;else for(var b=0;b&lt;=i;++b)h[b].vertices.indexOf(x)&lt;0&amp;&amp;(y[g]=h[b])}}var _=new c(i,o,p),w=!!e;for(u=i+1;u&lt;r;++u)_.insert(t[u],w);return _.boundary()};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;).compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter((function(t){return!t.boundary})),this.tuple=new Array(t+1);for(var i=0;i&lt;=t;++i)this.tuple[i]=this.vertices[i];var a=l[t];a||(a=l[t]=function(t){for(var e=[&quot;function orient(){var tuple=this.tuple;return test(&quot;],r=0;r&lt;=t;++r)r&gt;0&amp;&amp;e.push(&quot;,&quot;),e.push(&quot;tuple[&quot;,r,&quot;]&quot;);e.push(&quot;)}return orient&quot;);var i=new Function(&quot;test&quot;,e.join(&quot;&quot;)),a=n[t+1];return a||(a=n),i(a)}(t)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length&gt;0;){(t=o.pop()).vertices;for(var s=t.adjacent,l=0;l&lt;=r;++l){var c=s[l];if(c.boundary&amp;&amp;!(c.lastVisited&lt;=-n)){for(var u=c.vertices,f=0;f&lt;=r;++f){var h=u[f];i[f]=h&lt;0?e:a[h]}var p=this.orient();if(p&gt;0)return c;c.lastVisited=-n,0===p&amp;&amp;o.push(c)}}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u&lt;=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u&lt;=n;++u){var f=c[u];if(!(f.lastVisited&gt;=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p&lt;0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length&gt;0;){var p=(e=f.pop()).vertices,d=e.adjacent,g=p.indexOf(r);if(!(g&lt;0))for(var m=0;m&lt;=n;++m)if(m!==g){var v=d[m];if(v.boundary&amp;&amp;!(v.lastVisited&gt;=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b&lt;=n;++b)y[b]&lt;0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()&gt;0){y[x]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);u.push(k);var A=_.indexOf(e);if(!(A&lt;0)){_[A]=k,T[g]=v,w[m]=-1,T[m]=e,d[m]=k,k.flip();for(b=0;b&lt;=n;++b){var M=w[b];if(!(M&lt;0||M===r)){for(var S=new Array(n-1),E=0,L=0;L&lt;=n;++L){var C=w[L];C&lt;0||L===b||(S[E++]=C)}h.push(new o(S,k,b))}}}}}}h.sort(s);for(m=0;m+1&lt;h.length;m+=2){var P=h[m],I=h[m+1],O=P.index,z=I.index;O&lt;0||z&lt;0||(P.cell.adjacent[P.index]=I.cell,I.cell.adjacent[I.index]=P.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o&lt;=i;++o){var s=n.vertices[o];a[o]=s&lt;0?t:r[s]}var l=this.orient(a);l&lt;0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&amp;&amp;this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i&lt;n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u&lt;=t;++u)s[u]&gt;=0?o[l++]=s[u]:c=1&amp;u;if(c===(1&amp;t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:559}],447:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){e&amp;&amp;(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],448:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new v(null);return new v(m(t))};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=m(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function c(t,e){var r=t.intervals([]),n=r.indexOf(e);return n&lt;0?0:(r.splice(n,1),s(t,r),1)}function u(t,e,r){for(var n=0;n&lt;t.length&amp;&amp;t[n][0]&lt;=e;++n){var i=r(t[n]);if(i)return i}}function f(t,e,r){for(var n=t.length-1;n&gt;=0&amp;&amp;t[n][1]&gt;=e;--n){var i=r(t[n]);if(i)return i}}function h(t,e){for(var r=0;r&lt;t.length;++r){var n=e(t[r]);if(n)return n}}function p(t,e){return t-e}function d(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function g(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function m(t){if(0===t.length)return null;for(var e=[],r=0;r&lt;t.length;++r)e.push(t[r][0],t[r][1]);e.sort(p);var n=e[e.length&gt;&gt;1],a=[],o=[],s=[];for(r=0;r&lt;t.length;++r){var l=t[r];l[1]&lt;n?a.push(l):n&lt;l[0]?o.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(d),u.sort(g),new i(n,m(a),m(o),c,u)}function v(t){this.root=t}a.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&amp;&amp;this.left.intervals(t),this.right&amp;&amp;this.right.intervals(t),t},a.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]&lt;this.mid)this.left?4*(this.left.count+1)&gt;3*(e+1)?l(this,t):this.left.insert(t):this.left=m([t]);else if(t[0]&gt;this.mid)this.right?4*(this.right.count+1)&gt;3*(e+1)?l(this,t):this.right.insert(t):this.right=m([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,g);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]&lt;this.mid)return this.left?4*(this.right?this.right.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(t[0]&gt;this.mid)return this.right?4*(this.left?this.left.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&amp;&amp;this.leftPoints[0]===t){if(this.left&amp;&amp;this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);a&lt;this.leftPoints.length&amp;&amp;this.leftPoints[a][0]===t[0];++a)if(this.leftPoints[a]===t){this.count-=1,this.leftPoints.splice(a,1);for(s=n.ge(this.rightPoints,t,g);s&lt;this.rightPoints.length&amp;&amp;this.rightPoints[s][1]===t[1];++s)if(this.rightPoints[s]===t)return this.rightPoints.splice(s,1),1}return 0},a.queryPoint=function(t,e){if(t&lt;this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return u(this.leftPoints,t,e)}if(t&gt;this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return f(this.rightPoints,t,e)}return h(this.leftPoints,e)},a.queryInterval=function(t,e,r){var n;if(t&lt;this.mid&amp;&amp;this.left&amp;&amp;(n=this.left.queryInterval(t,e,r)))return n;if(e&gt;this.mid&amp;&amp;this.right&amp;&amp;(n=this.right.queryInterval(t,e,r)))return n;return e&lt;this.mid?u(this.leftPoints,e,r):t&gt;this.mid?f(this.rightPoints,t,r):h(this.leftPoints,r)};var y=v.prototype;y.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},y.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&amp;&amp;(this.root=null),0!==e}return!1},y.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},y.queryInterval=function(t,e,r){if(t&lt;=e&amp;&amp;this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(y,&quot;count&quot;,{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,&quot;intervals&quot;,{get:function(){return this.root?this.root.intervals([]):[]}})},{&quot;binary-search-bounds&quot;:449}],449:[function(t,e,r){arguments[4][251][0].apply(r,arguments)},{dup:251}],450:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e=e||new Array(t.length);for(var r=0;r&lt;t.length;++r)e[t[r]]=r;return e}},{}],451:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=r;return e}},{}],452:[function(t,e,r){e.exports=!0},{}],453:[function(t,e,r){function n(t){return!!t.constructor&amp;&amp;&quot;function&quot;==typeof t.constructor.isBuffer&amp;&amp;t.constructor.isBuffer(t)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
e.exports=function(t){return null!=t&amp;&amp;(n(t)||function(t){return&quot;function&quot;==typeof t.readFloatLE&amp;&amp;&quot;function&quot;==typeof t.slice&amp;&amp;n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],454:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],455:[function(t,e,r){&quot;use strict&quot;;e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||&quot;undefined&quot;==typeof navigator||(e=navigator.userAgent),e&amp;&amp;e.headers&amp;&amp;&quot;string&quot;==typeof e.headers[&quot;user-agent&quot;]&amp;&amp;(e=e.headers[&quot;user-agent&quot;]),&quot;string&quot;!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&amp;&amp;t.tablet&amp;&amp;t.featureDetect&amp;&amp;navigator&amp;&amp;navigator.maxTouchPoints&gt;1&amp;&amp;-1!==e.indexOf(&quot;Macintosh&quot;)&amp;&amp;-1!==e.indexOf(&quot;Safari&quot;)&amp;&amp;(r=!0),r}},{}],456:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=typeof t;return null!==t&amp;&amp;(&quot;object&quot;===e||&quot;function&quot;===e)}},{}],457:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString;e.exports=function(t){var e;return&quot;[object Object]&quot;===n.call(t)&amp;&amp;(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],458:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=t.length,n=0;n&lt;r;n++)if(((e=t.charCodeAt(n))&lt;9||e&gt;13)&amp;&amp;32!==e&amp;&amp;133!==e&amp;&amp;160!==e&amp;&amp;5760!==e&amp;&amp;6158!==e&amp;&amp;(e&lt;8192||e&gt;8205)&amp;&amp;8232!==e&amp;&amp;8233!==e&amp;&amp;8239!==e&amp;&amp;8287!==e&amp;&amp;8288!==e&amp;&amp;12288!==e&amp;&amp;65279!==e)return!1;return!0}},{}],459:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&amp;&amp;/[\dz]$/i.test(t)&amp;&amp;t.length&gt;4))}},{}],460:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],461:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?e.exports=n():(t=t||self).mapboxgl=n()}(this,(function(){&quot;use strict&quot;;var t,e,r;function n(n,i){if(t)if(e){var a=&quot;var sharedChunk = {}; (&quot;+t+&quot;)(sharedChunk); (&quot;+e+&quot;)(sharedChunk);&quot;,o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:&quot;text/javascript&quot;}))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&amp;&amp;(e=1e-6),i=t,o=0;o&lt;8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)&lt;e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)&lt;1e-6)break;i-=a/s}if((i=t)&lt;(r=0))return r;if(i&gt;(n=1))return n;for(;r&lt;n;){if(a=this.sampleCurveX(i),Math.abs(a-t)&lt;e)return i;t&gt;a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=a;function a(t,e){this.x=t,this.y=e}function o(t,e,n,i){var a=new r(t,e,n,i);return function(t){return a.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&amp;&amp;this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.x+r*(this.x-e.x)-n*(this.y-e.y),a=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=i,this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var s=o(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function u(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var f=1;function h(){return f++}function p(){return function t(e){return e?(e^16*Math.random()&gt;&gt;e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(t){return!!t&amp;&amp;/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function g(t,e){t.forEach((function(t){e[t]&amp;&amp;(e[t]=e[t].bind(e))}))}function m(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&amp;&amp;(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):&quot;object&quot;==typeof t&amp;&amp;t?v(t,x):t}var b={};function _(t){b[t]||(&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)&gt;(e.y-t.y)*(r.x-t.x)}function T(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r&lt;n;i=r++)a=t[r],e+=((o=t[i]).x-a.x)*(a.y+o.y);return e}function k(){return&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;&quot;undefined&quot;!=typeof self&amp;&amp;self instanceof WorkerGlobalScope}function A(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)|(?:\&quot;((?:[^&quot;\\]|\\.)*)\&quot;)))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),&quot;&quot;})),e[&quot;max-age&quot;]){var r=parseInt(e[&quot;max-age&quot;],10);isNaN(r)?delete e[&quot;max-age&quot;]:e[&quot;max-age&quot;]=r}return e}var M=null;function S(t){if(null==M){var e=t.navigator?t.navigator.userAgent:null;M=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match(&quot;Safari&quot;)&amp;&amp;!e.match(&quot;Chrome&quot;)))}return M}function E(t){try{var e=self[t];return e.setItem(&quot;_mapbox_test_&quot;,1),e.removeItem(&quot;_mapbox_test_&quot;),!0}catch(t){return!1}}var L,C,P,I,O=self.performance&amp;&amp;self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),z=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:O,frame:function(t){var e=z(t);return{cancel:function(){return D(e)}}},getImageData:function(t,e){void 0===e&amp;&amp;(e=0);var r=self.document.createElement(&quot;canvas&quot;),n=r.getContext(&quot;2d&quot;);if(!n)throw new Error(&quot;failed to create canvas 2d context&quot;);return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return L||(L=self.document.createElement(&quot;a&quot;)),L.href=t,L.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&amp;&amp;(null==C&amp;&amp;(C=self.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;)),C.matches)}},F={API_URL:&quot;https://api.mapbox.com&quot;,get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf(&quot;https://api.mapbox.cn&quot;)?&quot;https://events.mapbox.cn/events/v2&quot;:0===this.API_URL.indexOf(&quot;https://api.mapbox.com&quot;)?&quot;https://events.mapbox.com/events/v2&quot;:null:null},FEEDBACK_URL:&quot;https://apps.mapbox.com/feedback&quot;,REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){if(N||!I)return;j?U(t):P=t}},N=!1,j=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,I),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),N=!0}self.document&amp;&amp;((I=self.document.createElement(&quot;img&quot;)).onload=function(){P&amp;&amp;U(P),P=null,j=!0},I.onerror=function(){N=!0,P=null},I.src=&quot;data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=&quot;);var V=&quot;01&quot;;var q=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function H(t){return 0===t.indexOf(&quot;mapbox:&quot;)}q.prototype._createSkuToken=function(){var t=function(){for(var t=&quot;&quot;,e=0;e&lt;10;e++)t+=&quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;[Math.floor(62*Math.random())];return{token:[&quot;1&quot;,V,t].join(&quot;&quot;),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},q.prototype._isSkuTokenExpired=function(){return Date.now()&gt;this._skuTokenExpiresAt},q.prototype.transformRequest=function(t,e){return this._transformRequestFn&amp;&amp;this._transformRequestFn(t,e)||{url:t}},q.prototype.normalizeStyleURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/styles/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeGlyphsURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/fonts/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSourceURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/v4/&quot;+r.authority+&quot;.json&quot;,r.params.push(&quot;secure&quot;),this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSpriteURL=function(t,e,r,n){var i=X(t);return H(t)?(i.path=&quot;/styles/v1&quot;+i.path+&quot;/sprite&quot;+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=&quot;&quot;+e+r,Z(i))},q.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&amp;&amp;this._createSkuToken(),t&amp;&amp;!H(t))return t;var r=X(t),n=R.devicePixelRatio&gt;=2||512===e?&quot;@2x&quot;:&quot;&quot;,i=B.supported?&quot;.webp&quot;:&quot;$1&quot;;r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,&quot;&quot;+n+i),r.path=r.path.replace(/^.+\/v4\//,&quot;/&quot;),r.path=&quot;/v4&quot;+r.path;var a=this._customAccessToken||function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}(r.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&amp;&amp;a&amp;&amp;this._skuToken&amp;&amp;r.params.push(&quot;sku=&quot;+this._skuToken),this._makeAPIURL(r,a)},q.prototype.canonicalizeTileURL=function(t,e){var r=X(t);if(!r.path.match(/(^\/v4\/)/)||!r.path.match(/\.[\w]+$/))return t;var n=&quot;mapbox://tiles/&quot;;n+=r.path.replace(&quot;/v4/&quot;,&quot;&quot;);var i=r.params;return e&amp;&amp;(i=i.filter((function(t){return!t.match(/^access_token=/)}))),i.length&amp;&amp;(n+=&quot;?&quot;+i.join(&quot;&amp;&quot;)),n},q.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&amp;&amp;H(e),n=[],i=0,a=t.tiles||[];i&lt;a.length;i+=1){var o=a[i];Y(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o)}return n},q.prototype._makeAPIURL=function(t,e){var r=&quot;See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;,n=X(F.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,&quot;/&quot;!==n.path&amp;&amp;(t.path=&quot;&quot;+n.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return Z(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error(&quot;An API access token is required to use Mapbox GL. &quot;+r);if(&quot;s&quot;===e[0])throw new Error(&quot;Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). &quot;+r);return t.params=t.params.filter((function(t){return-1===t.indexOf(&quot;access_token&quot;)})),t.params.push(&quot;access_token=&quot;+e),Z(t)};var G=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Y(t){return G.test(t)}var W=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(t){var e=t.match(W);if(!e)throw new Error(&quot;Unable to parse URL object&quot;);return{protocol:e[1],authority:e[2],path:e[3]||&quot;/&quot;,params:e[4]?e[4].split(&quot;&amp;&quot;):[]}}function Z(t){var e=t.params.length?&quot;?&quot;+t.params.join(&quot;&amp;&quot;):&quot;&quot;;return t.protocol+&quot;://&quot;+t.authority+t.path+e}function J(t){if(!t)return null;var e,r=t.split(&quot;.&quot;);if(!r||3!==r.length)return null;try{return JSON.parse((e=r[1],decodeURIComponent(self.atob(e).split(&quot;&quot;).map((function(t){return&quot;%&quot;+(&quot;00&quot;+t.charCodeAt(0).toString(16)).slice(-2)})).join(&quot;&quot;))))}catch(t){return null}}var K=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};K.prototype.getStorageKey=function(t){var e,r=J(F.ACCESS_TOKEN),n=&quot;&quot;;return r&amp;&amp;r.u?(e=r.u,n=self.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number(&quot;0x&quot;+e))})))):n=F.ACCESS_TOKEN||&quot;&quot;,t?&quot;mapbox.eventData.&quot;+t+&quot;:&quot;+n:&quot;mapbox.eventData:&quot;+n},K.prototype.fetchEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{var n=self.localStorage.getItem(e);n&amp;&amp;(this.eventData=JSON.parse(n));var i=self.localStorage.getItem(r);i&amp;&amp;(this.anonId=i)}catch(t){_(&quot;Unable to read from LocalStorage&quot;)}},K.prototype.saveEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length&gt;=1&amp;&amp;self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){_(&quot;Unable to write to LocalStorage&quot;)}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,r,n){var i=this;if(F.EVENTS_URL){var a=X(F.EVENTS_URL);a.params.push(&quot;access_token=&quot;+(n||F.ACCESS_TOKEN||&quot;&quot;));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:&quot;mapbox-gl-js&quot;,sdkVersion:&quot;1.10.1&quot;,skuId:V,userId:this.anonId},s=e?u(o,e):o,l={url:Z(a),headers:{&quot;Content-Type&quot;:&quot;text/plain&quot;},body:JSON.stringify([s])};this.pendingRequest=bt(l,(function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests(n)}))}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Q,$,tt=function(t){function e(){t.call(this,&quot;map.load&quot;),this.success={},this.skuToken=&quot;&quot;}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(F.EVENTS_URL&amp;&amp;n||F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)})))&amp;&amp;this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&amp;&amp;this.success[n]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=p()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&amp;&amp;(e.success[n]=!0)}),t))}},e}(K),et=new(function(t){function e(e){t.call(this,&quot;appUserTurnstile&quot;),this._customAccessToken=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&amp;&amp;F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)}))&amp;&amp;this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){this.anonId&amp;&amp;this.eventData.lastSuccess&amp;&amp;this.eventData.tokenU||this.fetchEventData();var r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,i=n!==this.eventData.tokenU;d(this.anonId)||(this.anonId=p(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l&gt;=1||l&lt;-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{&quot;enabled.telemetry&quot;:!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(K)),rt=et.postTurnstileEvent.bind(et),nt=new tt,it=nt.postMapLoadEvent.bind(nt),at=500,ot=50;function st(){self.caches&amp;&amp;!Q&amp;&amp;(Q=self.caches.open(&quot;mapbox-tiles&quot;))}function lt(t,e,r){if(st(),Q){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=A(e.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);if(!i[&quot;no-store&quot;])i[&quot;max-age&quot;]&amp;&amp;n.headers.set(&quot;Expires&quot;,new Date(r+1e3*i[&quot;max-age&quot;]).toUTCString()),new Date(n.headers.get(&quot;Expires&quot;)).getTime()-r&lt;42e4||function(t,e){if(void 0===$)try{new Response(new ReadableStream),$=!0}catch(t){$=!1}$?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,n);st(),Q&amp;&amp;Q.then((function(e){return e.put(ct(t.url),r)})).catch((function(t){return _(t.message)}))}))}}function ct(t){var e=t.indexOf(&quot;?&quot;);return e&lt;0?t:t.slice(0,e)}function ut(t,e){if(st(),!Q)return e(null);var r=ct(t.url);Q.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get(&quot;Expires&quot;)||0),r=A(t.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);return e&gt;Date.now()&amp;&amp;!r[&quot;no-cache&quot;]}(n);t.delete(r),i&amp;&amp;t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}var ft,ht=1/0;function pt(){return null==ft&amp;&amp;(ft=self.OffscreenCanvas&amp;&amp;new self.OffscreenCanvas(1,1).getContext(&quot;2d&quot;)&amp;&amp;&quot;function&quot;==typeof self.createImageBitmap),ft}var dt={Unknown:&quot;Unknown&quot;,Style:&quot;Style&quot;,Source:&quot;Source&quot;,Tile:&quot;Tile&quot;,Glyphs:&quot;Glyphs&quot;,SpriteImage:&quot;SpriteImage&quot;,SpriteJSON:&quot;SpriteJSON&quot;,Image:&quot;Image&quot;};&quot;function&quot;==typeof Object.freeze&amp;&amp;Object.freeze(dt);var gt=function(t){function e(e,r,n){401===r&amp;&amp;Y(n)&amp;&amp;(e+=&quot;: you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+&quot;: &quot;+this.message+&quot; (&quot;+this.status+&quot;): &quot;+this.url},e}(Error),mt=k()?function(){return self.worker&amp;&amp;self.worker.referrer}:function(){return(&quot;blob:&quot;===self.location.protocol?self.parent:self).location.href};function vt(t,e){var r,n=new self.AbortController,i=new self.Request(t.url,{method:t.method||&quot;GET&quot;,body:t.body,credentials:t.credentials,headers:t.headers,referrer:mt(),signal:n.signal}),a=!1,o=!1,s=(r=i.url).indexOf(&quot;sku=&quot;)&gt;0&amp;&amp;Y(r);&quot;json&quot;===t.type&amp;&amp;i.headers.set(&quot;Accept&quot;,&quot;application/json&quot;);var l=function(r,n,a){if(!o){if(r&amp;&amp;&quot;SecurityError&quot;!==r.message&amp;&amp;_(r),n&amp;&amp;a)return c(n);var l=Date.now();self.fetch(i).then((function(r){if(r.ok){var n=s?r.clone():null;return c(r,n,l)}return e(new gt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&amp;&amp;e(new Error(t.message))}))}},c=function(r,n,s){(&quot;arrayBuffer&quot;===t.type?r.arrayBuffer():&quot;json&quot;===t.type?r.json():r.text()).then((function(t){o||(n&amp;&amp;s&amp;&amp;lt(i,n,s),a=!0,e(null,t,r.headers.get(&quot;Cache-Control&quot;),r.headers.get(&quot;Expires&quot;)))})).catch((function(t){o||e(new Error(t.message))}))};return s?ut(i,l):l(null,null),{cancel:function(){o=!0,a||n.abort()}}}var yt=function(t,e){if(r=t.url,!(/^file:/.test(r)||/^file:/.test(mt())&amp;&amp;!/^\w+:/.test(r))){if(self.fetch&amp;&amp;self.Request&amp;&amp;self.AbortController&amp;&amp;self.Request.prototype.hasOwnProperty(&quot;signal&quot;))return vt(t,e);if(k()&amp;&amp;self.worker&amp;&amp;self.worker.actor){return self.worker.actor.send(&quot;getResource&quot;,t,e,void 0,!0)}}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||&quot;GET&quot;,t.url,!0),&quot;arrayBuffer&quot;===t.type&amp;&amp;(r.responseType=&quot;arraybuffer&quot;),t.headers)r.setRequestHeader(n,t.headers[n]);return&quot;json&quot;===t.type&amp;&amp;(r.responseType=&quot;text&quot;,r.setRequestHeader(&quot;Accept&quot;,&quot;application/json&quot;)),r.withCredentials=&quot;include&quot;===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status&gt;=200&amp;&amp;r.status&lt;300||0===r.status)&amp;&amp;null!==r.response){var n=r.response;if(&quot;json&quot;===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader(&quot;Cache-Control&quot;),r.getResponseHeader(&quot;Expires&quot;))}else e(new gt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},xt=function(t,e){return yt(u(t,{type:&quot;arrayBuffer&quot;}),e)},bt=function(t,e){return yt(u(t,{method:&quot;POST&quot;}),e)};var _t,wt;_t=[],wt=0;var Tt=function(t,e){if(B.supported&amp;&amp;(t.headers||(t.headers={}),t.headers.accept=&quot;image/webp,*/*&quot;),wt&gt;=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return _t.push(r),r}wt++;var n=!1,i=function(){if(!n)for(n=!0,wt--;_t.length&amp;&amp;wt&lt;F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=_t.shift(),e=t.requestParameters,r=t.callback;t.cancelled||(t.cancel=Tt(e,r).cancel)}},a=xt(t,(function(t,r,n,a){i(),t?e(t):r&amp;&amp;(pt()?function(t,e){var r=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});self.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error(&quot;Could not load image because of &quot;+t.message+&quot;. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))}))}(r,e):function(t,e,r,n){var i=new self.Image,a=self.URL;i.onload=function(){e(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return e(new Error(&quot;Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))};var o=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});i.cacheControl=r,i.expires=n,i.src=t.byteLength?a.createObjectURL(o):&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=&quot;}(r,e,n,a))}));return{cancel:function(){a.cancel(),i()}}};function kt(t,e,r){r[t]&amp;&amp;-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function At(t,e,r){if(r&amp;&amp;r[t]){var n=r[t].indexOf(e);-1!==n&amp;&amp;r[t].splice(n,1)}}var Mt=function(t,e){void 0===e&amp;&amp;(e={}),u(this,e),this.type=t},St=function(t){function e(e,r){void 0===r&amp;&amp;(r={}),t.call(this,&quot;error&quot;,u({error:e},r))}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Mt),Et=function(){};Et.prototype.on=function(t,e){return this._listeners=this._listeners||{},kt(t,e,this._listeners),this},Et.prototype.off=function(t,e){return At(t,e,this._listeners),At(t,e,this._oneTimeListeners),this},Et.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},kt(t,e,this._oneTimeListeners),this},Et.prototype.fire=function(t,e){&quot;string&quot;==typeof t&amp;&amp;(t=new Mt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,i=this._listeners&amp;&amp;this._listeners[r]?this._listeners[r].slice():[];n&lt;i.length;n+=1){i[n].call(this,t)}for(var a=0,o=this._oneTimeListeners&amp;&amp;this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];a&lt;o.length;a+=1){var s=o[a];At(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&amp;&amp;(u(t,&quot;function&quot;==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof St&amp;&amp;console.error(t.error);return this},Et.prototype.listens=function(t){return this._listeners&amp;&amp;this._listeners[t]&amp;&amp;this._listeners[t].length&gt;0||this._oneTimeListeners&amp;&amp;this._oneTimeListeners[t]&amp;&amp;this._oneTimeListeners[t].length&gt;0||this._eventedParent&amp;&amp;this._eventedParent.listens(t)},Et.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var Lt={$version:8,$root:{version:{required:!0,type:&quot;enum&quot;,values:[8]},name:{type:&quot;string&quot;},metadata:{type:&quot;*&quot;},center:{type:&quot;array&quot;,value:&quot;number&quot;},zoom:{type:&quot;number&quot;},bearing:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;},pitch:{type:&quot;number&quot;,default:0,units:&quot;degrees&quot;},light:{type:&quot;light&quot;},sources:{required:!0,type:&quot;sources&quot;},sprite:{type:&quot;string&quot;},glyphs:{type:&quot;string&quot;},transition:{type:&quot;transition&quot;},layers:{required:!0,type:&quot;array&quot;,value:&quot;layer&quot;}},sources:{&quot;*&quot;:{type:&quot;source&quot;}},source:[&quot;source_vector&quot;,&quot;source_raster&quot;,&quot;source_raster_dem&quot;,&quot;source_geojson&quot;,&quot;source_video&quot;,&quot;source_image&quot;],source_vector:{type:{required:!0,type:&quot;enum&quot;,values:{vector:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},attribution:{type:&quot;string&quot;},promoteId:{type:&quot;promoteId&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster:{type:{required:!0,type:&quot;enum&quot;,values:{raster:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},attribution:{type:&quot;string&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster_dem:{type:{required:!0,type:&quot;enum&quot;,values:{&quot;raster-dem&quot;:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},attribution:{type:&quot;string&quot;},encoding:{type:&quot;enum&quot;,values:{terrarium:{},mapbox:{}},default:&quot;mapbox&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_geojson:{type:{required:!0,type:&quot;enum&quot;,values:{geojson:{}}},data:{type:&quot;*&quot;},maxzoom:{type:&quot;number&quot;,default:18},attribution:{type:&quot;string&quot;},buffer:{type:&quot;number&quot;,default:128,maximum:512,minimum:0},tolerance:{type:&quot;number&quot;,default:.375},cluster:{type:&quot;boolean&quot;,default:!1},clusterRadius:{type:&quot;number&quot;,default:50,minimum:0},clusterMaxZoom:{type:&quot;number&quot;},clusterProperties:{type:&quot;*&quot;},lineMetrics:{type:&quot;boolean&quot;,default:!1},generateId:{type:&quot;boolean&quot;,default:!1},promoteId:{type:&quot;promoteId&quot;}},source_video:{type:{required:!0,type:&quot;enum&quot;,values:{video:{}}},urls:{required:!0,type:&quot;array&quot;,value:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},source_image:{type:{required:!0,type:&quot;enum&quot;,values:{image:{}}},url:{required:!0,type:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},layer:{id:{type:&quot;string&quot;,required:!0},type:{type:&quot;enum&quot;,values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},&quot;fill-extrusion&quot;:{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:&quot;*&quot;},source:{type:&quot;string&quot;},&quot;source-layer&quot;:{type:&quot;string&quot;},minzoom:{type:&quot;number&quot;,minimum:0,maximum:24},maxzoom:{type:&quot;number&quot;,minimum:0,maximum:24},filter:{type:&quot;filter&quot;},layout:{type:&quot;layout&quot;},paint:{type:&quot;paint&quot;}},layout:[&quot;layout_fill&quot;,&quot;layout_line&quot;,&quot;layout_circle&quot;,&quot;layout_heatmap&quot;,&quot;layout_fill-extrusion&quot;,&quot;layout_symbol&quot;,&quot;layout_raster&quot;,&quot;layout_hillshade&quot;,&quot;layout_background&quot;],layout_background:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_fill:{&quot;fill-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_circle:{&quot;circle-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_heatmap:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},&quot;layout_fill-extrusion&quot;:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_line:{&quot;line-cap&quot;:{type:&quot;enum&quot;,values:{butt:{},round:{},square:{}},default:&quot;butt&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-join&quot;:{type:&quot;enum&quot;,values:{bevel:{},round:{},miter:{}},default:&quot;miter&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-miter-limit&quot;:{type:&quot;number&quot;,default:2,requires:[{&quot;line-join&quot;:&quot;miter&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-round-limit&quot;:{type:&quot;number&quot;,default:1.05,requires:[{&quot;line-join&quot;:&quot;round&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_symbol:{&quot;symbol-placement&quot;:{type:&quot;enum&quot;,values:{point:{},line:{},&quot;line-center&quot;:{}},default:&quot;point&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-spacing&quot;:{type:&quot;number&quot;,default:250,minimum:1,units:&quot;pixels&quot;,requires:[{&quot;symbol-placement&quot;:&quot;line&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-avoid-edges&quot;:{type:&quot;boolean&quot;,default:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;symbol-z-order&quot;:{type:&quot;enum&quot;,values:{auto:{},&quot;viewport-y&quot;:{},source:{}},default:&quot;auto&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-size&quot;:{type:&quot;number&quot;,default:1,minimum:0,units:&quot;factor of the original icon size&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-text-fit&quot;:{type:&quot;enum&quot;,values:{none:{},width:{},height:{},both:{}},default:&quot;none&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-text-fit-padding&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[0,0,0,0],units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;,{&quot;icon-text-fit&quot;:[&quot;both&quot;,&quot;width&quot;,&quot;height&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-image&quot;:{type:&quot;resolvedImage&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-keep-upright&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,{&quot;icon-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-field&quot;:{type:&quot;formatted&quot;,default:&quot;&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-font&quot;:{type:&quot;array&quot;,value:&quot;string&quot;,default:[&quot;Open Sans Regular&quot;,&quot;Arial Unicode MS Regular&quot;],requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-size&quot;:{type:&quot;number&quot;,default:16,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-width&quot;:{type:&quot;number&quot;,default:10,minimum:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-line-height&quot;:{type:&quot;number&quot;,default:1.2,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-letter-spacing&quot;:{type:&quot;number&quot;,default:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-justify&quot;:{type:&quot;enum&quot;,values:{auto:{},left:{},center:{},right:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-radial-offset&quot;:{type:&quot;number&quot;,units:&quot;ems&quot;,default:0,requires:[&quot;text-field&quot;],&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}},&quot;text-variable-anchor&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-variable-anchor&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-angle&quot;:{type:&quot;number&quot;,default:45,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-writing-mode&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{horizontal:{},vertical:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-keep-upright&quot;:{type:&quot;boolean&quot;,default:!0,requires:[&quot;text-field&quot;,{&quot;text-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-transform&quot;:{type:&quot;enum&quot;,values:{none:{},uppercase:{},lowercase:{}},default:&quot;none&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,units:&quot;ems&quot;,length:2,default:[0,0],requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-radial-offset&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;,&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_raster:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_hillshade:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},filter:{type:&quot;array&quot;,value:&quot;*&quot;},filter_operator:{type:&quot;enum&quot;,values:{&quot;==&quot;:{},&quot;!=&quot;:{},&quot;&gt;&quot;:{},&quot;&gt;=&quot;:{},&quot;&lt;&quot;:{},&quot;&lt;=&quot;:{},in:{},&quot;!in&quot;:{},all:{},any:{},none:{},has:{},&quot;!has&quot;:{},within:{}}},geometry_type:{type:&quot;enum&quot;,values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:&quot;expression&quot;},stops:{type:&quot;array&quot;,value:&quot;function_stop&quot;},base:{type:&quot;number&quot;,default:1,minimum:0},property:{type:&quot;string&quot;,default:&quot;$zoom&quot;},type:{type:&quot;enum&quot;,values:{identity:{},exponential:{},interval:{},categorical:{}},default:&quot;exponential&quot;},colorSpace:{type:&quot;enum&quot;,values:{rgb:{},lab:{},hcl:{}},default:&quot;rgb&quot;},default:{type:&quot;*&quot;,required:!1}},function_stop:{type:&quot;array&quot;,minimum:0,maximum:24,value:[&quot;number&quot;,&quot;color&quot;],length:2},expression:{type:&quot;array&quot;,value:&quot;*&quot;,minimum:1},expression_name:{type:&quot;enum&quot;,values:{let:{group:&quot;Variable binding&quot;},var:{group:&quot;Variable binding&quot;},literal:{group:&quot;Types&quot;},array:{group:&quot;Types&quot;},at:{group:&quot;Lookup&quot;},in:{group:&quot;Lookup&quot;},&quot;index-of&quot;:{group:&quot;Lookup&quot;},slice:{group:&quot;Lookup&quot;},case:{group:&quot;Decision&quot;},match:{group:&quot;Decision&quot;},coalesce:{group:&quot;Decision&quot;},step:{group:&quot;Ramps, scales, curves&quot;},interpolate:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-hcl&quot;:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-lab&quot;:{group:&quot;Ramps, scales, curves&quot;},ln2:{group:&quot;Math&quot;},pi:{group:&quot;Math&quot;},e:{group:&quot;Math&quot;},typeof:{group:&quot;Types&quot;},string:{group:&quot;Types&quot;},number:{group:&quot;Types&quot;},boolean:{group:&quot;Types&quot;},object:{group:&quot;Types&quot;},collator:{group:&quot;Types&quot;},format:{group:&quot;Types&quot;},image:{group:&quot;Types&quot;},&quot;number-format&quot;:{group:&quot;Types&quot;},&quot;to-string&quot;:{group:&quot;Types&quot;},&quot;to-number&quot;:{group:&quot;Types&quot;},&quot;to-boolean&quot;:{group:&quot;Types&quot;},&quot;to-rgba&quot;:{group:&quot;Color&quot;},&quot;to-color&quot;:{group:&quot;Types&quot;},rgb:{group:&quot;Color&quot;},rgba:{group:&quot;Color&quot;},get:{group:&quot;Lookup&quot;},has:{group:&quot;Lookup&quot;},length:{group:&quot;Lookup&quot;},properties:{group:&quot;Feature data&quot;},&quot;feature-state&quot;:{group:&quot;Feature data&quot;},&quot;geometry-type&quot;:{group:&quot;Feature data&quot;},id:{group:&quot;Feature data&quot;},zoom:{group:&quot;Zoom&quot;},&quot;heatmap-density&quot;:{group:&quot;Heatmap&quot;},&quot;line-progress&quot;:{group:&quot;Feature data&quot;},accumulated:{group:&quot;Feature data&quot;},&quot;+&quot;:{group:&quot;Math&quot;},&quot;*&quot;:{group:&quot;Math&quot;},&quot;-&quot;:{group:&quot;Math&quot;},&quot;/&quot;:{group:&quot;Math&quot;},&quot;%&quot;:{group:&quot;Math&quot;},&quot;^&quot;:{group:&quot;Math&quot;},sqrt:{group:&quot;Math&quot;},log10:{group:&quot;Math&quot;},ln:{group:&quot;Math&quot;},log2:{group:&quot;Math&quot;},sin:{group:&quot;Math&quot;},cos:{group:&quot;Math&quot;},tan:{group:&quot;Math&quot;},asin:{group:&quot;Math&quot;},acos:{group:&quot;Math&quot;},atan:{group:&quot;Math&quot;},min:{group:&quot;Math&quot;},max:{group:&quot;Math&quot;},round:{group:&quot;Math&quot;},abs:{group:&quot;Math&quot;},ceil:{group:&quot;Math&quot;},floor:{group:&quot;Math&quot;},distance:{group:&quot;Math&quot;},&quot;==&quot;:{group:&quot;Decision&quot;},&quot;!=&quot;:{group:&quot;Decision&quot;},&quot;&gt;&quot;:{group:&quot;Decision&quot;},&quot;&lt;&quot;:{group:&quot;Decision&quot;},&quot;&gt;=&quot;:{group:&quot;Decision&quot;},&quot;&lt;=&quot;:{group:&quot;Decision&quot;},all:{group:&quot;Decision&quot;},any:{group:&quot;Decision&quot;},&quot;!&quot;:{group:&quot;Decision&quot;},within:{group:&quot;Decision&quot;},&quot;is-supported-script&quot;:{group:&quot;String&quot;},upcase:{group:&quot;String&quot;},downcase:{group:&quot;String&quot;},concat:{group:&quot;String&quot;},&quot;resolved-locale&quot;:{group:&quot;String&quot;}}},light:{anchor:{type:&quot;enum&quot;,default:&quot;viewport&quot;,values:{map:{},viewport:{}},&quot;property-type&quot;:&quot;data-constant&quot;,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]}},position:{type:&quot;array&quot;,default:[1.15,210,30],length:3,value:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]}},color:{type:&quot;color&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:&quot;#ffffff&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0},intensity:{type:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0}},paint:[&quot;paint_fill&quot;,&quot;paint_line&quot;,&quot;paint_circle&quot;,&quot;paint_heatmap&quot;,&quot;paint_fill-extrusion&quot;,&quot;paint_symbol&quot;,&quot;paint_raster&quot;,&quot;paint_hillshade&quot;,&quot;paint_background&quot;],paint_fill:{&quot;fill-antialias&quot;:{type:&quot;boolean&quot;,default:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-outline-color&quot;:{type:&quot;color&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;},{&quot;fill-antialias&quot;:!0}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;}},&quot;paint_fill-extrusion&quot;:{&quot;fill-extrusion-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-extrusion-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-extrusion-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;fill-extrusion-height&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-base&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,requires:[&quot;fill-extrusion-height&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-vertical-gradient&quot;:{type:&quot;boolean&quot;,default:!0,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_line:{&quot;line-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;line-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-width&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-gap-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-offset&quot;:{type:&quot;number&quot;,default:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-dasharray&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,minimum:0,transition:!0,units:&quot;line widths&quot;,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;line-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;line-gradient&quot;:{type:&quot;color&quot;,transition:!1,requires:[{&quot;!&quot;:&quot;line-dasharray&quot;},{&quot;!&quot;:&quot;line-pattern&quot;},{source:&quot;geojson&quot;,has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[&quot;line-progress&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;}},paint_circle:{&quot;circle-radius&quot;:{type:&quot;number&quot;,default:5,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-blur&quot;:{type:&quot;number&quot;,default:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;circle-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-scale&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-stroke-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;}},paint_heatmap:{&quot;heatmap-radius&quot;:{type:&quot;number&quot;,default:30,minimum:1,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-weight&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-intensity&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;heatmap-color&quot;:{type:&quot;color&quot;,default:[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,&quot;rgba(0, 0, 255, 0)&quot;,.1,&quot;royalblue&quot;,.3,&quot;cyan&quot;,.5,&quot;lime&quot;,.7,&quot;yellow&quot;,1,&quot;red&quot;],transition:!1,expression:{interpolated:!0,parameters:[&quot;heatmap-density&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;},&quot;heatmap-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_symbol:{&quot;icon-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;icon-image&quot;,&quot;icon-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,overridable:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;text-field&quot;,&quot;text-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_raster:{&quot;raster-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-hue-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,transition:!0,units:&quot;degrees&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-min&quot;:{type:&quot;number&quot;,default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-max&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-saturation&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-contrast&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-resampling&quot;:{type:&quot;enum&quot;,values:{linear:{},nearest:{}},default:&quot;linear&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-fade-duration&quot;:{type:&quot;number&quot;,default:300,minimum:0,transition:!1,units:&quot;milliseconds&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_hillshade:{&quot;hillshade-illumination-direction&quot;:{type:&quot;number&quot;,default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-illumination-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-exaggeration&quot;:{type:&quot;number&quot;,default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-shadow-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-highlight-color&quot;:{type:&quot;color&quot;,default:&quot;#FFFFFF&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-accent-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_background:{&quot;background-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;background-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;background-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;background-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},transition:{duration:{type:&quot;number&quot;,default:300,minimum:0,units:&quot;milliseconds&quot;},delay:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;milliseconds&quot;}},&quot;property-type&quot;:{&quot;data-driven&quot;:{type:&quot;property-type&quot;},&quot;cross-faded&quot;:{type:&quot;property-type&quot;},&quot;cross-faded-data-driven&quot;:{type:&quot;property-type&quot;},&quot;color-ramp&quot;:{type:&quot;property-type&quot;},&quot;data-constant&quot;:{type:&quot;property-type&quot;},constant:{type:&quot;property-type&quot;}},promoteId:{&quot;*&quot;:{type:&quot;string&quot;}}},Ct=function(t,e,r,n){this.message=(t?t+&quot;: &quot;:&quot;&quot;)+r,n&amp;&amp;(this.identifier=n),null!=e&amp;&amp;e.__line__&amp;&amp;(this.line=e.__line__)};function Pt(t){var e=t.key,r=t.value;return r?[new Ct(e,r,&quot;constants have been deprecated as of v8&quot;)]:[]}function It(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function Ot(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function zt(t){if(Array.isArray(t))return t.map(zt);if(t instanceof Object&amp;&amp;!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=zt(t[r]);return e}return Ot(t)}var Dt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Error),Rt=function(t,e){void 0===e&amp;&amp;(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r],a=i[0],o=i[1];this.bindings[a]=o}};Rt.prototype.concat=function(t){return new Rt(this,t)},Rt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+&quot; not found in scope.&quot;)},Rt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&amp;&amp;this.parent.has(t)};var Ft={kind:&quot;null&quot;},Bt={kind:&quot;number&quot;},Nt={kind:&quot;string&quot;},jt={kind:&quot;boolean&quot;},Ut={kind:&quot;color&quot;},Vt={kind:&quot;object&quot;},qt={kind:&quot;value&quot;},Ht={kind:&quot;collator&quot;},Gt={kind:&quot;formatted&quot;},Yt={kind:&quot;resolvedImage&quot;};function Wt(t,e){return{kind:&quot;array&quot;,itemType:t,N:e}}function Xt(t){if(&quot;array&quot;===t.kind){var e=Xt(t.itemType);return&quot;number&quot;==typeof t.N?&quot;array&lt;&quot;+e+&quot;, &quot;+t.N+&quot;&gt;&quot;:&quot;value&quot;===t.itemType.kind?&quot;array&quot;:&quot;array&lt;&quot;+e+&quot;&gt;&quot;}return t.kind}var Zt=[Ft,Bt,Nt,jt,Ut,Gt,Vt,Wt(qt),Yt];function Jt(t,e){if(&quot;error&quot;===e.kind)return null;if(&quot;array&quot;===t.kind){if(&quot;array&quot;===e.kind&amp;&amp;(0===e.N&amp;&amp;&quot;value&quot;===e.itemType.kind||!Jt(t.itemType,e.itemType))&amp;&amp;(&quot;number&quot;!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(&quot;value&quot;===t.kind)for(var r=0,n=Zt;r&lt;n.length;r+=1){if(!Jt(n[r],e))return null}}return&quot;Expected &quot;+Xt(t)+&quot; but found &quot;+Xt(e)+&quot; instead.&quot;}function Kt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Qt(t,e){return e.some((function(e){return&quot;null&quot;===e?null===t:&quot;array&quot;===e?Array.isArray(t):&quot;object&quot;===e?t&amp;&amp;!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t:e===typeof t}))}var $t=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))&lt;0?0:t&gt;255?255:t}function i(t){return t&lt;0?0:t&gt;1?1:t}function a(t){return&quot;%&quot;===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function o(t){return&quot;%&quot;===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,r){return r&lt;0?r+=1:r&gt;1&amp;&amp;(r-=1),6*r&lt;1?t+(e-t)*r*6:2*r&lt;1?e:3*r&lt;2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,i=t.replace(/ /g,&quot;&quot;).toLowerCase();if(i in r)return r[i].slice();if(&quot;#&quot;===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))&gt;=0&amp;&amp;e&lt;=4095?[(3840&amp;e)&gt;&gt;4|(3840&amp;e)&gt;&gt;8,240&amp;e|(240&amp;e)&gt;&gt;4,15&amp;e|(15&amp;e)&lt;&lt;4,1]:null:7===i.length&amp;&amp;(e=parseInt(i.substr(1),16))&gt;=0&amp;&amp;e&lt;=16777215?[(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,1]:null;var l=i.indexOf(&quot;(&quot;),c=i.indexOf(&quot;)&quot;);if(-1!==l&amp;&amp;c+1===i.length){var u=i.substr(0,l),f=i.substr(l+1,c-(l+1)).split(&quot;,&quot;),h=1;switch(u){case&quot;rgba&quot;:if(4!==f.length)return null;h=o(f.pop());case&quot;rgb&quot;:return 3!==f.length?null:[a(f[0]),a(f[1]),a(f[2]),h];case&quot;hsla&quot;:if(4!==f.length)return null;h=o(f.pop());case&quot;hsl&quot;:if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=o(f[1]),g=o(f[2]),m=g&lt;=.5?g*(d+1):g+d-g*d,v=2*g-m;return[n(255*s(v,m,p+1/3)),n(255*s(v,m,p)),n(255*s(v,m,p-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,te=function(t,e,r,n){void 0===n&amp;&amp;(n=1),this.r=t,this.g=e,this.b=r,this.a=n};te.parse=function(t){if(t){if(t instanceof te)return t;if(&quot;string&quot;==typeof t){var e=$t(t);if(e)return new te(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},te.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return&quot;rgba(&quot;+Math.round(e)+&quot;,&quot;+Math.round(r)+&quot;,&quot;+Math.round(n)+&quot;,&quot;+i+&quot;)&quot;},te.prototype.toArray=function(){var t=this.r,e=this.g,r=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*t/n,255*e/n,255*r/n,n]},te.black=new te(0,0,0,1),te.white=new te(1,1,1,1),te.transparent=new te(0,0,0,0),te.red=new te(1,0,0,1);var ee=function(t,e,r){this.sensitivity=t?e?&quot;variant&quot;:&quot;case&quot;:e?&quot;accent&quot;:&quot;base&quot;,this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:&quot;search&quot;})};ee.prototype.compare=function(t,e){return this.collator.compare(t,e)},ee.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var re=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},ne=function(t){this.sections=t};ne.fromString=function(t){return new ne([new re(t,null,null,null,null)])},ne.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&amp;&amp;0!==t.image.name.length}))},ne.factory=function(t){return t instanceof ne?t:ne.fromString(t)},ne.prototype.toString=function(){return 0===this.sections.length?&quot;&quot;:this.sections.map((function(t){return t.text})).join(&quot;&quot;)},ne.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];if(n.image)t.push([&quot;image&quot;,n.image.name]);else{t.push(n.text);var i={};n.fontStack&amp;&amp;(i[&quot;text-font&quot;]=[&quot;literal&quot;,n.fontStack.split(&quot;,&quot;)]),n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=[&quot;rgba&quot;].concat(n.textColor.toArray())),t.push(i)}}return t};var ie=function(t){this.name=t.name,this.available=t.available};function ae(t,e,r,n){return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=255&amp;&amp;&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=255&amp;&amp;&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;r&lt;=255?void 0===n||&quot;number&quot;==typeof n&amp;&amp;n&gt;=0&amp;&amp;n&lt;=1?null:&quot;Invalid rgba value [&quot;+[t,e,r,n].join(&quot;, &quot;)+&quot;]: 'a' must be between 0 and 1.&quot;:&quot;Invalid rgba value [&quot;+(&quot;number&quot;==typeof n?[t,e,r,n]:[t,e,r]).join(&quot;, &quot;)+&quot;]: 'r', 'g', and 'b' must be between 0 and 255.&quot;}function oe(t){if(null===t)return!0;if(&quot;string&quot;==typeof t)return!0;if(&quot;boolean&quot;==typeof t)return!0;if(&quot;number&quot;==typeof t)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(t instanceof ne)return!0;if(t instanceof ie)return!0;if(Array.isArray(t)){for(var e=0,r=t;e&lt;r.length;e+=1){if(!oe(r[e]))return!1}return!0}if(&quot;object&quot;==typeof t){for(var n in t)if(!oe(t[n]))return!1;return!0}return!1}function se(t){if(null===t)return Ft;if(&quot;string&quot;==typeof t)return Nt;if(&quot;boolean&quot;==typeof t)return jt;if(&quot;number&quot;==typeof t)return Bt;if(t instanceof te)return Ut;if(t instanceof ee)return Ht;if(t instanceof ne)return Gt;if(t instanceof ie)return Yt;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n&lt;i.length;n+=1){var a=se(i[n]);if(e){if(e===a)continue;e=qt;break}e=a}return Wt(e||qt,r)}return Vt}function le(t){var e=typeof t;return null===t?&quot;&quot;:&quot;string&quot;===e||&quot;number&quot;===e||&quot;boolean&quot;===e?String(t):t instanceof te||t instanceof ne||t instanceof ie?t.toString():JSON.stringify(t)}ie.prototype.toString=function(){return this.name},ie.fromString=function(t){return t?new ie({name:t,available:!1}):null},ie.prototype.serialize=function(){return[&quot;image&quot;,this.name]};var ce=function(t,e){this.type=t,this.value=e};ce.parse=function(t,e){if(2!==t.length)return e.error(&quot;'literal' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(!oe(t[1]))return e.error(&quot;invalid value&quot;);var r=t[1],n=se(r),i=e.expectedType;return&quot;array&quot;!==n.kind||0!==n.N||!i||&quot;array&quot;!==i.kind||&quot;number&quot;==typeof i.N&amp;&amp;0!==i.N||(n=i),new ce(n,r)},ce.prototype.evaluate=function(){return this.value},ce.prototype.eachChild=function(){},ce.prototype.outputDefined=function(){return!0},ce.prototype.serialize=function(){return&quot;array&quot;===this.type.kind||&quot;object&quot;===this.type.kind?[&quot;literal&quot;,this.value]:this.value instanceof te?[&quot;rgba&quot;].concat(this.value.toArray()):this.value instanceof ne?this.value.serialize():this.value};var ue=function(t){this.name=&quot;ExpressionEvaluationError&quot;,this.message=t};ue.prototype.toJSON=function(){return this.message};var fe={string:Nt,number:Bt,boolean:jt,object:Vt},he=function(t,e){this.type=t,this.args=e};he.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r,n=1,i=t[0];if(&quot;array&quot;===i){var a,o;if(t.length&gt;2){var s=t[1];if(&quot;string&quot;!=typeof s||!(s in fe)||&quot;object&quot;===s)return e.error('The item type argument of &quot;array&quot; must be one of string, number, boolean',1);a=fe[s],n++}else a=qt;if(t.length&gt;3){if(null!==t[2]&amp;&amp;(&quot;number&quot;!=typeof t[2]||t[2]&lt;0||t[2]!==Math.floor(t[2])))return e.error('The length argument to &quot;array&quot; must be a positive integer literal',2);o=t[2],n++}r=Wt(a,o)}else r=fe[i];for(var l=[];n&lt;t.length;n++){var c=e.parse(t[n],n,qt);if(!c)return null;l.push(c)}return new he(r,l)},he.prototype.evaluate=function(t){for(var e=0;e&lt;this.args.length;e++){var r=this.args[e].evaluate(t);if(!Jt(this.type,se(r)))return r;if(e===this.args.length-1)throw new ue(&quot;Expected value to be of type &quot;+Xt(this.type)+&quot;, but found &quot;+Xt(se(r))+&quot; instead.&quot;)}return null},he.prototype.eachChild=function(t){this.args.forEach(t)},he.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},he.prototype.serialize=function(){var t=this.type,e=[t.kind];if(&quot;array&quot;===t.kind){var r=t.itemType;if(&quot;string&quot;===r.kind||&quot;number&quot;===r.kind||&quot;boolean&quot;===r.kind){e.push(r.kind);var n=t.N;(&quot;number&quot;==typeof n||this.args.length&gt;1)&amp;&amp;e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var pe=function(t){this.type=Gt,this.sections=t};pe.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[1];if(!Array.isArray(r)&amp;&amp;&quot;object&quot;==typeof r)return e.error(&quot;First argument must be an image or text section.&quot;);for(var n=[],i=!1,a=1;a&lt;=t.length-1;++a){var o=t[a];if(i&amp;&amp;&quot;object&quot;==typeof o&amp;&amp;!Array.isArray(o)){i=!1;var s=null;if(o[&quot;font-scale&quot;]&amp;&amp;!(s=e.parse(o[&quot;font-scale&quot;],1,Bt)))return null;var l=null;if(o[&quot;text-font&quot;]&amp;&amp;!(l=e.parse(o[&quot;text-font&quot;],1,Wt(Nt))))return null;var c=null;if(o[&quot;text-color&quot;]&amp;&amp;!(c=e.parse(o[&quot;text-color&quot;],1,Ut)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,qt);if(!f)return null;var h=f.type.kind;if(&quot;string&quot;!==h&amp;&amp;&quot;value&quot;!==h&amp;&amp;&quot;null&quot;!==h&amp;&amp;&quot;resolvedImage&quot;!==h)return e.error(&quot;Formatted text type must be 'string', 'value', 'image' or 'null'.&quot;);i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new pe(n)},pe.prototype.evaluate=function(t){return new ne(this.sections.map((function(e){var r=e.content.evaluate(t);return se(r)===Yt?new re(&quot;&quot;,r,null,null,null):new re(le(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(&quot;,&quot;):null,e.textColor?e.textColor.evaluate(t):null)})))},pe.prototype.eachChild=function(t){for(var e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t(n.content),n.scale&amp;&amp;t(n.scale),n.font&amp;&amp;t(n.font),n.textColor&amp;&amp;t(n.textColor)}},pe.prototype.outputDefined=function(){return!1},pe.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale.serialize()),n.font&amp;&amp;(i[&quot;text-font&quot;]=n.font.serialize()),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=n.textColor.serialize()),t.push(i)}return t};var de=function(t){this.type=Yt,this.input=t};de.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Nt);return r?new de(r):e.error(&quot;No image name provided.&quot;)},de.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=ie.fromString(e);return r&amp;&amp;t.availableImages&amp;&amp;(r.available=t.availableImages.indexOf(e)&gt;-1),r},de.prototype.eachChild=function(t){t(this.input)},de.prototype.outputDefined=function(){return!1},de.prototype.serialize=function(){return[&quot;image&quot;,this.input.serialize()]};var ge={&quot;to-boolean&quot;:jt,&quot;to-color&quot;:Ut,&quot;to-number&quot;:Bt,&quot;to-string&quot;:Nt},me=function(t,e){this.type=t,this.args=e};me.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[0];if((&quot;to-boolean&quot;===r||&quot;to-string&quot;===r)&amp;&amp;2!==t.length)return e.error(&quot;Expected one argument.&quot;);for(var n=ge[r],i=[],a=1;a&lt;t.length;a++){var o=e.parse(t[a],a,qt);if(!o)return null;i.push(o)}return new me(n,i)},me.prototype.evaluate=function(t){if(&quot;boolean&quot;===this.type.kind)return Boolean(this.args[0].evaluate(t));if(&quot;color&quot;===this.type.kind){for(var e,r,n=0,i=this.args;n&lt;i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof te)return e;if(&quot;string&quot;==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&amp;&amp;!(r=e.length&lt;3||e.length&gt;4?&quot;Invalid rbga value &quot;+JSON.stringify(e)+&quot;: expected an array containing either three or four numeric values.&quot;:ae(e[0],e[1],e[2],e[3])))return new te(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ue(r||&quot;Could not parse color from value '&quot;+(&quot;string&quot;==typeof e?e:String(JSON.stringify(e)))+&quot;'&quot;)}if(&quot;number&quot;===this.type.kind){for(var o=null,s=0,l=this.args;s&lt;l.length;s+=1){if(null===(o=l[s].evaluate(t)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new ue(&quot;Could not convert &quot;+JSON.stringify(o)+&quot; to number.&quot;)}return&quot;formatted&quot;===this.type.kind?ne.fromString(le(this.args[0].evaluate(t))):&quot;resolvedImage&quot;===this.type.kind?ie.fromString(le(this.args[0].evaluate(t))):le(this.args[0].evaluate(t))},me.prototype.eachChild=function(t){this.args.forEach(t)},me.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},me.prototype.serialize=function(){if(&quot;formatted&quot;===this.type.kind)return new pe([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(&quot;resolvedImage&quot;===this.type.kind)return new de(this.args[0]).serialize();var t=[&quot;to-&quot;+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var ve=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ye=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ye.prototype.id=function(){return this.feature&amp;&amp;&quot;id&quot;in this.feature?this.feature.id:null},ye.prototype.geometryType=function(){return this.feature?&quot;number&quot;==typeof this.feature.type?ve[this.feature.type]:this.feature.type:null},ye.prototype.geometry=function(){return this.feature&amp;&amp;&quot;geometry&quot;in this.feature?this.feature.geometry:null},ye.prototype.canonicalID=function(){return this.canonical},ye.prototype.properties=function(){return this.feature&amp;&amp;this.feature.properties||{}},ye.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=te.parse(t)),e};var xe=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};xe.prototype.evaluate=function(t){return this._evaluate(t,this.args)},xe.prototype.eachChild=function(t){this.args.forEach(t)},xe.prototype.outputDefined=function(){return!1},xe.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},xe.parse=function(t,e){var r,n=t[0],i=xe.definitions[n];if(!i)return e.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0);for(var a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=0,u=s;c&lt;u.length;c+=1){var f=u[c],h=f[0],p=f[1];l=new Ue(e.registry,e.path,null,e.scope);for(var d=[],g=!1,m=1;m&lt;t.length;m++){var v=t[m],y=Array.isArray(h)?h[m-1]:h.type,x=l.parse(v,1+d.length,y);if(!x){g=!0;break}d.push(x)}if(!g)if(Array.isArray(h)&amp;&amp;h.length!==d.length)l.error(&quot;Expected &quot;+h.length+&quot; arguments, but found &quot;+d.length+&quot; instead.&quot;);else{for(var b=0;b&lt;d.length;b++){var _=Array.isArray(h)?h[b]:h.type,w=d[b];l.concat(b+1).checkSubtype(_,w.type)}if(0===l.errors.length)return new xe(n,a,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var T=(s.length?s:o).map((function(t){var e,r=t[0];return e=r,Array.isArray(e)?&quot;(&quot;+e.map(Xt).join(&quot;, &quot;)+&quot;)&quot;:&quot;(&quot;+Xt(e.type)+&quot;...)&quot;})).join(&quot; | &quot;),k=[],A=1;A&lt;t.length;A++){var M=e.parse(t[A],1+k.length);if(!M)return null;k.push(Xt(M.type))}e.error(&quot;Expected arguments of type &quot;+T+&quot;, but found (&quot;+k.join(&quot;, &quot;)+&quot;) instead.&quot;)}return null},xe.register=function(t,e){for(var r in xe.definitions=e,e)t[r]=xe};var be=function(t,e,r){this.type=Ht,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};be.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected one argument.&quot;);var r=t[1];if(&quot;object&quot;!=typeof r||Array.isArray(r))return e.error(&quot;Collator options argument must be an object.&quot;);var n=e.parse(void 0!==r[&quot;case-sensitive&quot;]&amp;&amp;r[&quot;case-sensitive&quot;],1,jt);if(!n)return null;var i=e.parse(void 0!==r[&quot;diacritic-sensitive&quot;]&amp;&amp;r[&quot;diacritic-sensitive&quot;],1,jt);if(!i)return null;var a=null;return r.locale&amp;&amp;!(a=e.parse(r.locale,1,Nt))?null:new be(n,i,a)},be.prototype.evaluate=function(t){return new ee(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},be.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&amp;&amp;t(this.locale)},be.prototype.outputDefined=function(){return!1},be.prototype.serialize=function(){var t={};return t[&quot;case-sensitive&quot;]=this.caseSensitive.serialize(),t[&quot;diacritic-sensitive&quot;]=this.diacriticSensitive.serialize(),this.locale&amp;&amp;(t.locale=this.locale.serialize()),[&quot;collator&quot;,t]};function _e(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function we(t,e){return!(t[0]&lt;=e[0])&amp;&amp;(!(t[2]&gt;=e[2])&amp;&amp;(!(t[1]&lt;=e[1])&amp;&amp;!(t[3]&gt;=e[3])))}function Te(t,e){var r,n=(180+t[0])/360,i=(r=t[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360),a=Math.pow(2,e.z);return[Math.round(n*a*8192),Math.round(i*a*8192)]}function ke(t,e,r){return e[1]&gt;t[1]!=r[1]&gt;t[1]&amp;&amp;t[0]&lt;(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function Ae(t,e){for(var r,n,i,a,o,s,l,c=!1,u=0,f=e.length;u&lt;f;u++)for(var h=e[u],p=0,d=h.length;p&lt;d-1;p++){if(r=t,n=h[p],i=h[p+1],a=void 0,o=void 0,s=void 0,l=void 0,a=r[0]-n[0],o=r[1]-n[1],s=r[0]-i[0],l=r[1]-i[1],a*l-s*o==0&amp;&amp;a*s&lt;=0&amp;&amp;o*l&lt;=0)return!1;ke(t,h[p],h[p+1])&amp;&amp;(c=!c)}return c}function Me(t,e){for(var r=0;r&lt;e.length;r++)if(Ae(t,e[r]))return!0;return!1}function Se(t,e,r,n){var i=t[0]-r[0],a=t[1]-r[1],o=e[0]-r[0],s=e[1]-r[1],l=n[0]-r[0],c=n[1]-r[1],u=i*c-l*a,f=o*c-l*s;return u&gt;0&amp;&amp;f&lt;0||u&lt;0&amp;&amp;f&gt;0}function Ee(t,e,r){for(var n=0,i=r;n&lt;i.length;n+=1)for(var a=i[n],o=0;o&lt;a.length-1;++o)if(s=t,l=e,c=a[o],u=a[o+1],f=void 0,h=void 0,p=void 0,d=void 0,p=[l[0]-s[0],l[1]-s[1]],d=[u[0]-c[0],u[1]-c[1]],0!=(f=d)[0]*(h=p)[1]-f[1]*h[0]&amp;&amp;Se(s,l,c,u)&amp;&amp;Se(c,u,s,l))return!0;var s,l,c,u,f,h,p,d;return!1}function Le(t,e){for(var r=0;r&lt;t.length;++r)if(!Ae(t[r],e))return!1;for(var n=0;n&lt;t.length-1;++n)if(Ee(t[n],t[n+1],e))return!1;return!0}function Ce(t,e){for(var r=0;r&lt;e.length;r++)if(Le(t,e[r]))return!0;return!1}function Pe(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){for(var a=[],o=0;o&lt;t[i].length;o++){var s=Te(t[i][o],r);_e(e,s),a.push(s)}n.push(a)}return n}function Ie(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){var a=Pe(t[i],e,r);n.push(a)}return n}function Oe(t,e,r,n){if(t[0]&lt;r[0]||t[0]&gt;r[2]){var i=.5*n,a=t[0]-r[0]&gt;i?-n:r[0]-t[0]&gt;i?n:0;0===a&amp;&amp;(a=t[0]-r[2]&gt;i?-n:r[2]-t[0]&gt;i?n:0),t[0]+=a}_e(e,t)}function ze(t,e,r,n){for(var i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],o=[],s=0,l=t;s&lt;l.length;s+=1)for(var c=0,u=l[s];c&lt;u.length;c+=1){var f=u[c],h=[f.x+a[0],f.y+a[1]];Oe(h,e,r,i),o.push(h)}return o}function De(t,e,r,n){for(var i,a=8192*Math.pow(2,n.z),o=[8192*n.x,8192*n.y],s=[],l=0,c=t;l&lt;c.length;l+=1){for(var u=[],f=0,h=c[l];f&lt;h.length;f+=1){var p=h[f],d=[p.x+o[0],p.y+o[1]];_e(e,d),u.push(d)}s.push(u)}if(e[2]-e[0]&lt;=a/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var g=0,m=s;g&lt;m.length;g+=1)for(var v=0,y=m[g];v&lt;y.length;v+=1){Oe(y[v],e,r,a)}}return s}var Re=function(t,e){this.type=jt,this.geojson=t,this.geometries=e};function Fe(t){if(t instanceof xe){if(&quot;get&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;feature-state&quot;===t.name)return!1;if(&quot;has&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;properties&quot;===t.name||&quot;geometry-type&quot;===t.name||&quot;id&quot;===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof Re)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Fe(t)&amp;&amp;(e=!1)})),e}function Be(t){if(t instanceof xe&amp;&amp;&quot;feature-state&quot;===t.name)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Be(t)&amp;&amp;(e=!1)})),e}function Ne(t,e){if(t instanceof xe&amp;&amp;e.indexOf(t.name)&gt;=0)return!1;var r=!0;return t.eachChild((function(t){r&amp;&amp;!Ne(t,e)&amp;&amp;(r=!1)})),r}Re.parse=function(t,e){if(2!==t.length)return e.error(&quot;'within' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(oe(t[1])){var r=t[1];if(&quot;FeatureCollection&quot;===r.type)for(var n=0;n&lt;r.features.length;++n){var i=r.features[n].geometry.type;if(&quot;Polygon&quot;===i||&quot;MultiPolygon&quot;===i)return new Re(r,r.features[n].geometry)}else if(&quot;Feature&quot;===r.type){var a=r.geometry.type;if(&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a)return new Re(r,r.geometry)}else if(&quot;Polygon&quot;===r.type||&quot;MultiPolygon&quot;===r.type)return new Re(r,r)}return e.error(&quot;'within' expression requires valid geojson object that contains polygon geometry type.&quot;)},Re.prototype.evaluate=function(t){if(null!=t.geometry()&amp;&amp;null!=t.canonicalID()){if(&quot;Point&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Pe(e.coordinates,n,i),o=ze(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1){if(!Ae(l[s],a))return!1}}if(&quot;MultiPolygon&quot;===e.type){var c=Ie(e.coordinates,n,i),u=ze(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1){if(!Me(h[f],c))return!1}}return!0}(t,this.geometries);if(&quot;LineString&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Pe(e.coordinates,n,i),o=De(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1){if(!Le(l[s],a))return!1}}if(&quot;MultiPolygon&quot;===e.type){var c=Ie(e.coordinates,n,i),u=De(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1){if(!Ce(h[f],c))return!1}}return!0}(t,this.geometries)}return!1},Re.prototype.eachChild=function(){},Re.prototype.outputDefined=function(){return!0},Re.prototype.serialize=function(){return[&quot;within&quot;,this.geojson]};var je=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};je.parse=function(t,e){if(2!==t.length||&quot;string&quot;!=typeof t[1])return e.error(&quot;'var' expression requires exactly one string literal argument.&quot;);var r=t[1];return e.scope.has(r)?new je(r,e.scope.get(r)):e.error('Unknown variable &quot;'+r+'&quot;. Make sure &quot;'+r+'&quot; has been bound in an enclosing &quot;let&quot; expression before using it.',1)},je.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},je.prototype.eachChild=function(){},je.prototype.outputDefined=function(){return!1},je.prototype.serialize=function(){return[&quot;var&quot;,this.name]};var Ue=function(t,e,r,n,i){void 0===e&amp;&amp;(e=[]),void 0===n&amp;&amp;(n=new Rt),void 0===i&amp;&amp;(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;),this.scope=n,this.errors=i,this.expectedType=r};function Ve(t,e){for(var r,n,i=t.length-1,a=0,o=i,s=0;a&lt;=o;)if(r=t[s=Math.floor((a+o)/2)],n=t[s+1],r&lt;=e){if(s===i||e&lt;n)return s;a=s+1}else{if(!(r&gt;e))throw new ue(&quot;Input is not a number.&quot;);o=s-1}return 0}Ue.prototype.parse=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Ue.prototype._parse=function(t,e){function r(t,e,r){return&quot;assert&quot;===r?new he(e,[t]):&quot;coerce&quot;===r?new me(e,[t]):t}if(null!==t&amp;&amp;&quot;string&quot;!=typeof t&amp;&amp;&quot;boolean&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t||(t=[&quot;literal&quot;,t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [&quot;literal&quot;, []].');var n=t[0];if(&quot;string&quot;!=typeof n)return this.error(&quot;Expression name must be a string, but found &quot;+typeof n+' instead. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if(&quot;string&quot;!==o.kind&amp;&amp;&quot;number&quot;!==o.kind&amp;&amp;&quot;boolean&quot;!==o.kind&amp;&amp;&quot;object&quot;!==o.kind&amp;&amp;&quot;array&quot;!==o.kind||&quot;value&quot;!==s.kind)if(&quot;color&quot;!==o.kind&amp;&amp;&quot;formatted&quot;!==o.kind&amp;&amp;&quot;resolvedImage&quot;!==o.kind||&quot;value&quot;!==s.kind&amp;&amp;&quot;string&quot;!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||&quot;coerce&quot;);else a=r(a,o,e.typeAnnotation||&quot;assert&quot;)}if(!(a instanceof ce)&amp;&amp;&quot;resolvedImage&quot;!==a.type.kind&amp;&amp;function t(e){if(e instanceof je)return t(e.boundExpression);if(e instanceof xe&amp;&amp;&quot;error&quot;===e.name)return!1;if(e instanceof be)return!1;if(e instanceof Re)return!1;var r=e instanceof me||e instanceof he,n=!0;if(e.eachChild((function(e){n=r?n&amp;&amp;t(e):n&amp;&amp;e instanceof ce})),!n)return!1;return Fe(e)&amp;&amp;Ne(e,[&quot;zoom&quot;,&quot;heatmap-density&quot;,&quot;line-progress&quot;,&quot;accumulated&quot;,&quot;is-supported-script&quot;])}(a)){var l=new ye;try{a=new ce(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0)}return void 0===t?this.error(&quot;'undefined' value invalid. Use null instead.&quot;):&quot;object&quot;==typeof t?this.error('Bare objects invalid. Use [&quot;literal&quot;, {...}] instead.'):this.error(&quot;Expected an array, but found &quot;+typeof t+&quot; instead.&quot;)},Ue.prototype.concat=function(t,e,r){var n=&quot;number&quot;==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Ue(this.registry,n,e||null,i,this.errors)},Ue.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];var n=&quot;&quot;+this.key+e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;);this.errors.push(new Dt(n,t))},Ue.prototype.checkSubtype=function(t,e){var r=Jt(t,e);return r&amp;&amp;this.error(r),r};var qe=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n&lt;i.length;n+=1){var a=i[n],o=a[0],s=a[1];this.labels.push(o),this.outputs.push(s)}};function He(t,e,r){return t*(1-r)+e*r}qe.parse=function(t,e){if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);var r=e.parse(t[1],1,Bt);if(!r)return null;var n=[],i=null;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(i=e.expectedType);for(var a=1;a&lt;t.length;a+=2){var o=1===a?-1/0:t[a],s=t[a+1],l=a,c=a+1;if(&quot;number&quot;!=typeof o)return e.error('Input/output pairs for &quot;step&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&amp;&amp;n[n.length-1][0]&gt;=o)return e.error('Input/output pairs for &quot;step&quot; expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new qe(i,r,n)},qe.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;return n&gt;=e[i-1]?r[i-1].evaluate(t):r[Ve(e,n)].evaluate(t)},qe.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1){t(r[e])}},qe.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},qe.prototype.serialize=function(){for(var t=[&quot;step&quot;,this.input.serialize()],e=0;e&lt;this.labels.length;e++)e&gt;0&amp;&amp;t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ge=Object.freeze({__proto__:null,number:He,color:function(t,e,r){return new te(He(t.r,e.r,r),He(t.g,e.g,r),He(t.b,e.b,r),He(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return He(t,e[n],r)}))}}),Ye=6/29,We=3*Ye*Ye,Xe=Math.PI/180,Ze=180/Math.PI;function Je(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/We+4/29}function Ke(t){return t&gt;Ye?t*t*t:We*(t-4/29)}function Qe(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $e(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function tr(t){var e=$e(t.r),r=$e(t.g),n=$e(t.b),i=Je((.4124564*e+.3575761*r+.1804375*n)/.95047),a=Je((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-Je((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function er(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*Ke(e),r=.95047*Ke(r),n=1.08883*Ke(n),new te(Qe(3.2404542*r-1.5371385*e-.4985314*n),Qe(-.969266*r+1.8760108*e+.041556*n),Qe(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function rr(t,e,r){var n=e-t;return t+r*(n&gt;180||n&lt;-180?n-360*Math.round(n/360):n)}var nr={forward:tr,reverse:er,interpolate:function(t,e,r){return{l:He(t.l,e.l,r),a:He(t.a,e.a,r),b:He(t.b,e.b,r),alpha:He(t.alpha,e.alpha,r)}}},ir={forward:function(t){var e=tr(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Ze;return{h:a&lt;0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*Xe,r=t.c;return er({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:rr(t.h,e.h,r),c:He(t.c,e.c,r),l:He(t.l,e.l,r),alpha:He(t.alpha,e.alpha,r)}}},ar=Object.freeze({__proto__:null,lab:nr,hcl:ir}),or=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a],l=s[0],c=s[1];this.labels.push(l),this.outputs.push(c)}};function sr(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}or.interpolationFactor=function(t,e,n,i){var a=0;if(&quot;exponential&quot;===t.name)a=sr(e,t.base,n,i);else if(&quot;linear&quot;===t.name)a=sr(e,1,n,i);else if(&quot;cubic-bezier&quot;===t.name){var o=t.controlPoints;a=new r(o[0],o[1],o[2],o[3]).solve(sr(e,1,n,i))}return a},or.parse=function(t,e){var r=t[0],n=t[1],i=t[2],a=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error(&quot;Expected an interpolation type expression.&quot;,1);if(&quot;linear&quot;===n[0])n={name:&quot;linear&quot;};else if(&quot;exponential&quot;===n[0]){var o=n[1];if(&quot;number&quot;!=typeof o)return e.error(&quot;Exponential interpolation requires a numeric base.&quot;,1,1);n={name:&quot;exponential&quot;,base:o}}else{if(&quot;cubic-bezier&quot;!==n[0])return e.error(&quot;Unknown interpolation type &quot;+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return&quot;number&quot;!=typeof t||t&lt;0||t&gt;1})))return e.error(&quot;Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.&quot;,1);n={name:&quot;cubic-bezier&quot;,controlPoints:s}}if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);if(!(i=e.parse(i,2,Bt)))return null;var l=[],c=null;&quot;interpolate-hcl&quot;===r||&quot;interpolate-lab&quot;===r?c=Ut:e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(c=e.expectedType);for(var u=0;u&lt;a.length;u+=2){var f=a[u],h=a[u+1],p=u+3,d=u+4;if(&quot;number&quot;!=typeof f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&amp;&amp;l[l.length-1][0]&gt;=f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(h,d,c);if(!g)return null;c=c||g.type,l.push([f,g])}return&quot;number&quot;===c.kind||&quot;color&quot;===c.kind||&quot;array&quot;===c.kind&amp;&amp;&quot;number&quot;===c.itemType.kind&amp;&amp;&quot;number&quot;==typeof c.N?new or(c,r,n,i,l):e.error(&quot;Type &quot;+Xt(c)+&quot; is not interpolatable.&quot;)},or.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;if(n&gt;=e[i-1])return r[i-1].evaluate(t);var a=Ve(e,n),o=e[a],s=e[a+1],l=or.interpolationFactor(this.interpolation,n,o,s),c=r[a].evaluate(t),u=r[a+1].evaluate(t);return&quot;interpolate&quot;===this.operator?Ge[this.type.kind.toLowerCase()](c,u,l):&quot;interpolate-hcl&quot;===this.operator?ir.reverse(ir.interpolate(ir.forward(c),ir.forward(u),l)):nr.reverse(nr.interpolate(nr.forward(c),nr.forward(u),l))},or.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1){t(r[e])}},or.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},or.prototype.serialize=function(){var t;t=&quot;linear&quot;===this.interpolation.name?[&quot;linear&quot;]:&quot;exponential&quot;===this.interpolation.name?1===this.interpolation.base?[&quot;linear&quot;]:[&quot;exponential&quot;,this.interpolation.base]:[&quot;cubic-bezier&quot;].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r&lt;this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var lr=function(t,e){this.type=t,this.args=e};lr.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expectected at least one argument.&quot;);var r=null,n=e.expectedType;n&amp;&amp;&quot;value&quot;!==n.kind&amp;&amp;(r=n);for(var i=[],a=0,o=t.slice(1);a&lt;o.length;a+=1){var s=o[a],l=e.parse(s,1+i.length,r,void 0,{typeAnnotation:&quot;omit&quot;});if(!l)return null;r=r||l.type,i.push(l)}var c=n&amp;&amp;i.some((function(t){return Jt(n,t.type)}));return new lr(c?qt:r,i)},lr.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,a=this.args;i&lt;a.length;i+=1){if(n++,(r=a[i].evaluate(t))&amp;&amp;r instanceof ie&amp;&amp;!r.available&amp;&amp;(e||(e=r.name),r=null,n===this.args.length&amp;&amp;(r=e)),null!==r)break}return r},lr.prototype.eachChild=function(t){this.args.forEach(t)},lr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},lr.prototype.serialize=function(){var t=[&quot;coalesce&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var cr=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};cr.prototype.evaluate=function(t){return this.result.evaluate(t)},cr.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e&lt;r.length;e+=1){t(r[e][1])}t(this.result)},cr.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);for(var r=[],n=1;n&lt;t.length-1;n+=2){var i=t[n];if(&quot;string&quot;!=typeof i)return e.error(&quot;Expected string, but found &quot;+typeof i+&quot; instead.&quot;,n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(&quot;Variable names must contain only alphanumeric characters or '_'.&quot;,n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new cr(r,o):null},cr.prototype.outputDefined=function(){return this.result.outputDefined()},cr.prototype.serialize=function(){for(var t=[&quot;let&quot;],e=0,r=this.bindings;e&lt;r.length;e+=1){var n=r[e],i=n[0],a=n[1];t.push(i,a.serialize())}return t.push(this.result.serialize()),t};var ur=function(t,e,r){this.type=t,this.index=e,this.input=r};ur.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Bt),n=e.parse(t[2],2,Wt(e.expectedType||qt));if(!r||!n)return null;var i=n.type;return new ur(i.itemType,r,n)},ur.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e&lt;0)throw new ue(&quot;Array index out of bounds: &quot;+e+&quot; &lt; 0.&quot;);if(e&gt;=r.length)throw new ue(&quot;Array index out of bounds: &quot;+e+&quot; &gt; &quot;+(r.length-1)+&quot;.&quot;);if(e!==Math.floor(e))throw new ue(&quot;Array index must be an integer, but found &quot;+e+&quot; instead.&quot;);return r[e]},ur.prototype.eachChild=function(t){t(this.index),t(this.input)},ur.prototype.outputDefined=function(){return!1},ur.prototype.serialize=function(){return[&quot;at&quot;,this.index.serialize(),this.input.serialize()]};var fr=function(t,e){this.type=jt,this.needle=t,this.haystack=e};fr.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,qt),n=e.parse(t[2],2,qt);return r&amp;&amp;n?Kt(r.type,[jt,Nt,Bt,Ft,qt])?new fr(r,n):e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(r.type)+&quot; instead&quot;):null},fr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Qt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new ue(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(se(e))+&quot; instead.&quot;);if(!Qt(r,[&quot;string&quot;,&quot;array&quot;]))throw new ue(&quot;Expected second argument to be of type array or string, but found &quot;+Xt(se(r))+&quot; instead.&quot;);return r.indexOf(e)&gt;=0},fr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},fr.prototype.outputDefined=function(){return!0},fr.prototype.serialize=function(){return[&quot;in&quot;,this.needle.serialize(),this.haystack.serialize()]};var hr=function(t,e,r){this.type=Bt,this.needle=t,this.haystack=e,this.fromIndex=r};hr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,qt),n=e.parse(t[2],2,qt);if(!r||!n)return null;if(!Kt(r.type,[jt,Nt,Bt,Ft,qt]))return e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Bt);return i?new hr(r,n,i):null}return new hr(r,n)},hr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Qt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new ue(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(se(e))+&quot; instead.&quot;);if(!Qt(r,[&quot;string&quot;,&quot;array&quot;]))throw new ue(&quot;Expected second argument to be of type array or string, but found &quot;+Xt(se(r))+&quot; instead.&quot;);if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},hr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&amp;&amp;t(this.fromIndex)},hr.prototype.outputDefined=function(){return!1},hr.prototype.serialize=function(){if(null!=this.fromIndex&amp;&amp;void 0!==this.fromIndex){var t=this.fromIndex.serialize();return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize(),t]}return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize()]};var pr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};pr.parse=function(t,e){if(t.length&lt;5)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=1)return e.error(&quot;Expected an even number of arguments.&quot;);var r,n;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(n=e.expectedType);for(var i={},a=[],o=2;o&lt;t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(&quot;Expected at least one branch label.&quot;);for(var u=0,f=s;u&lt;f.length;u+=1){var h=f[u];if(&quot;number&quot;!=typeof h&amp;&amp;&quot;string&quot;!=typeof h)return c.error(&quot;Branch labels must be numbers or strings.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.abs(h)&gt;Number.MAX_SAFE_INTEGER)return c.error(&quot;Branch labels must be integers no larger than &quot;+Number.MAX_SAFE_INTEGER+&quot;.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.floor(h)!==h)return c.error(&quot;Numeric branch labels must be integer values.&quot;);if(r){if(c.checkSubtype(r,se(h)))return null}else r=se(h);if(void 0!==i[String(h)])return c.error(&quot;Branch labels must be unique.&quot;);i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,qt);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?&quot;value&quot;!==d.type.kind&amp;&amp;e.concat(1).checkSubtype(r,d.type)?null:new pr(r,n,d,i,a,g):null},pr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(se(e)===this.inputType&amp;&amp;this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},pr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},pr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},pr.prototype.serialize=function(){for(var t=this,e=[&quot;match&quot;,this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i&lt;a.length;i+=1){var o=a[i];void 0===(f=n[this.cases[o]])?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[f][1].push(o)}for(var s=function(e){return&quot;number&quot;===t.inputType.kind?Number(e):e},l=0,c=r;l&lt;c.length;l+=1){var u=c[l],f=u[0],h=u[1];1===h.length?e.push(s(h[0])):e.push(h.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var dr=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};dr.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=0)return e.error(&quot;Expected an odd number of arguments.&quot;);var r;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(r=e.expectedType);for(var n=[],i=1;i&lt;t.length-1;i+=2){var a=e.parse(t[i],i,jt);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new dr(r,n,s):null},dr.prototype.evaluate=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[0],a=n[1];if(i.evaluate(t))return a.evaluate(t)}return this.otherwise.evaluate(t)},dr.prototype.eachChild=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[0],a=n[1];t(i),t(a)}t(this.otherwise)},dr.prototype.outputDefined=function(){return this.branches.every((function(t){t[0];return t[1].outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},dr.prototype.serialize=function(){var t=[&quot;case&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var gr=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function mr(t,e){return&quot;==&quot;===t||&quot;!=&quot;===t?&quot;boolean&quot;===e.kind||&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;null&quot;===e.kind||&quot;value&quot;===e.kind:&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;value&quot;===e.kind}function vr(t,e,r,n){return 0===n.compare(e,r)}function yr(t,e,r){var n=&quot;==&quot;!==t&amp;&amp;&quot;!=&quot;!==t;return function(){function i(t,e,r){this.type=jt,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument=&quot;value&quot;===t.type.kind||&quot;value&quot;===e.type.kind}return i.parse=function(t,e){if(3!==t.length&amp;&amp;4!==t.length)return e.error(&quot;Expected two or three arguments.&quot;);var r=t[0],a=e.parse(t[1],1,qt);if(!a)return null;if(!mr(r,a.type))return e.concat(1).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Xt(a.type)+&quot;'.&quot;);var o=e.parse(t[2],2,qt);if(!o)return null;if(!mr(r,o.type))return e.concat(2).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Xt(o.type)+&quot;'.&quot;);if(a.type.kind!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot compare types '&quot;+Xt(a.type)+&quot;' and '&quot;+Xt(o.type)+&quot;'.&quot;);n&amp;&amp;(&quot;value&quot;===a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind?a=new he(o.type,[a]):&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;===o.type.kind&amp;&amp;(o=new he(a.type,[o])));var s=null;if(4===t.length){if(&quot;string&quot;!==a.type.kind&amp;&amp;&quot;string&quot;!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot use collator to compare non-string types.&quot;);if(!(s=e.parse(t[3],3,Ht)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&amp;&amp;this.hasUntypedArgument){var s=se(a),l=se(o);if(s.kind!==l.kind||&quot;string&quot;!==s.kind&amp;&amp;&quot;number&quot;!==s.kind)throw new ue('Expected arguments for &quot;'+t+'&quot; to be (string, string) or (number, number), but found ('+s.kind+&quot;, &quot;+l.kind+&quot;) instead.&quot;)}if(this.collator&amp;&amp;!n&amp;&amp;this.hasUntypedArgument){var c=se(a),u=se(o);if(&quot;string&quot;!==c.kind||&quot;string&quot;!==u.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&amp;&amp;t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}gr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,qt),n=e.parse(t[2],2,Bt);if(!r||!n)return null;if(!Kt(r.type,[Wt(qt),Nt,qt]))return e.error(&quot;Expected first argument to be of type array or string, but found &quot;+Xt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Bt);return i?new gr(r.type,r,n,i):null}return new gr(r.type,r,n)},gr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Qt(e,[&quot;string&quot;,&quot;array&quot;]))throw new ue(&quot;Expected first argument to be of type array or string, but found &quot;+Xt(se(e))+&quot; instead.&quot;);if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},gr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&amp;&amp;t(this.endIndex)},gr.prototype.outputDefined=function(){return!1},gr.prototype.serialize=function(){if(null!=this.endIndex&amp;&amp;void 0!==this.endIndex){var t=this.endIndex.serialize();return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize(),t]}return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize()]};var xr=yr(&quot;==&quot;,(function(t,e,r){return e===r}),vr),br=yr(&quot;!=&quot;,(function(t,e,r){return e!==r}),(function(t,e,r,n){return!vr(0,e,r,n)})),_r=yr(&quot;&lt;&quot;,(function(t,e,r){return e&lt;r}),(function(t,e,r,n){return n.compare(e,r)&lt;0})),wr=yr(&quot;&gt;&quot;,(function(t,e,r){return e&gt;r}),(function(t,e,r,n){return n.compare(e,r)&gt;0})),Tr=yr(&quot;&lt;=&quot;,(function(t,e,r){return e&lt;=r}),(function(t,e,r,n){return n.compare(e,r)&lt;=0})),kr=yr(&quot;&gt;=&quot;,(function(t,e,r){return e&gt;=r}),(function(t,e,r,n){return n.compare(e,r)&gt;=0})),Ar=function(t,e,r,n,i){this.type=Nt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Ar.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Bt);if(!r)return null;var n=t[2];if(&quot;object&quot;!=typeof n||Array.isArray(n))return e.error(&quot;NumberFormat options argument must be an object.&quot;);var i=null;if(n.locale&amp;&amp;!(i=e.parse(n.locale,1,Nt)))return null;var a=null;if(n.currency&amp;&amp;!(a=e.parse(n.currency,1,Nt)))return null;var o=null;if(n[&quot;min-fraction-digits&quot;]&amp;&amp;!(o=e.parse(n[&quot;min-fraction-digits&quot;],1,Bt)))return null;var s=null;return n[&quot;max-fraction-digits&quot;]&amp;&amp;!(s=e.parse(n[&quot;max-fraction-digits&quot;],1,Bt))?null:new Ar(r,i,a,o,s)},Ar.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?&quot;currency&quot;:&quot;decimal&quot;,currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Ar.prototype.eachChild=function(t){t(this.number),this.locale&amp;&amp;t(this.locale),this.currency&amp;&amp;t(this.currency),this.minFractionDigits&amp;&amp;t(this.minFractionDigits),this.maxFractionDigits&amp;&amp;t(this.maxFractionDigits)},Ar.prototype.outputDefined=function(){return!1},Ar.prototype.serialize=function(){var t={};return this.locale&amp;&amp;(t.locale=this.locale.serialize()),this.currency&amp;&amp;(t.currency=this.currency.serialize()),this.minFractionDigits&amp;&amp;(t[&quot;min-fraction-digits&quot;]=this.minFractionDigits.serialize()),this.maxFractionDigits&amp;&amp;(t[&quot;max-fraction-digits&quot;]=this.maxFractionDigits.serialize()),[&quot;number-format&quot;,this.number.serialize(),t]};var Mr=function(t){this.type=Bt,this.input=t};Mr.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected 1 argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1);return r?&quot;array&quot;!==r.type.kind&amp;&amp;&quot;string&quot;!==r.type.kind&amp;&amp;&quot;value&quot;!==r.type.kind?e.error(&quot;Expected argument of type string or array, but found &quot;+Xt(r.type)+&quot; instead.&quot;):new Mr(r):null},Mr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(&quot;string&quot;==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ue(&quot;Expected value to be of type string or array, but found &quot;+Xt(se(e))+&quot; instead.&quot;)},Mr.prototype.eachChild=function(t){t(this.input)},Mr.prototype.outputDefined=function(){return!1},Mr.prototype.serialize=function(){var t=[&quot;length&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var Sr={&quot;==&quot;:xr,&quot;!=&quot;:br,&quot;&gt;&quot;:wr,&quot;&lt;&quot;:_r,&quot;&gt;=&quot;:kr,&quot;&lt;=&quot;:Tr,array:he,at:ur,boolean:he,case:dr,coalesce:lr,collator:be,format:pe,image:de,in:fr,&quot;index-of&quot;:hr,interpolate:or,&quot;interpolate-hcl&quot;:or,&quot;interpolate-lab&quot;:or,length:Mr,let:cr,literal:ce,match:pr,number:he,&quot;number-format&quot;:Ar,object:he,slice:gr,step:qe,string:he,&quot;to-boolean&quot;:me,&quot;to-color&quot;:me,&quot;to-number&quot;:me,&quot;to-string&quot;:me,var:je,within:Re};function Er(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=ae(r,n,i,o);if(s)throw new ue(s);return new te(r/255*o,n/255*o,i/255*o,o)}function Lr(t,e){return t in e}function Cr(t,e){var r=e[t];return void 0===r?null:r}function Pr(t){return{type:t}}function Ir(t){return{result:&quot;success&quot;,value:t}}function Or(t){return{result:&quot;error&quot;,value:t}}function zr(t){return&quot;data-driven&quot;===t[&quot;property-type&quot;]||&quot;cross-faded-data-driven&quot;===t[&quot;property-type&quot;]}function Dr(t){return!!t.expression&amp;&amp;t.expression.parameters.indexOf(&quot;zoom&quot;)&gt;-1}function Rr(t){return!!t.expression&amp;&amp;t.expression.interpolated}function Fr(t){return t instanceof Number?&quot;number&quot;:t instanceof String?&quot;string&quot;:t instanceof Boolean?&quot;boolean&quot;:Array.isArray(t)?&quot;array&quot;:null===t?&quot;null&quot;:typeof t}function Br(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}function Nr(t){return t}function jr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Ur(t,e,r,n,i){return jr(typeof r===i?n[r]:void 0,t.default,e.default)}function Vr(t,e,r){if(&quot;number&quot;!==Fr(r))return jr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[n-1][0])return t.stops[n-1][1];var i=Ve(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function qr(t,e,r){var n=void 0!==t.base?t.base:1;if(&quot;number&quot;!==Fr(r))return jr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[i-1][0])return t.stops[i-1][1];var a=Ve(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Ge[e.type]||Nr;if(t.colorSpace&amp;&amp;&quot;rgb&quot;!==t.colorSpace){var u=ar[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return&quot;function&quot;==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&amp;&amp;void 0!==n)return c(r,n,o)}}:c(s,l,o)}function Hr(t,e,r){return&quot;color&quot;===e.type?r=te.parse(r):&quot;formatted&quot;===e.type?r=ne.fromString(r.toString()):&quot;resolvedImage&quot;===e.type?r=ie.fromString(r.toString()):Fr(r)===e.type||&quot;enum&quot;===e.type&amp;&amp;e.values[r]||(r=void 0),jr(r,t.default,e.default)}xe.register(Sr,{error:[{kind:&quot;error&quot;},[Nt],function(t,e){var r=e[0];throw new ue(r.evaluate(t))}],typeof:[Nt,[qt],function(t,e){return Xt(se(e[0].evaluate(t)))}],&quot;to-rgba&quot;:[Wt(Bt,4),[Ut],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Ut,[Bt,Bt,Bt],Er],rgba:[Ut,[Bt,Bt,Bt,Bt],Er],has:{type:jt,overloads:[[[Nt],function(t,e){return Lr(e[0].evaluate(t),t.properties())}],[[Nt,Vt],function(t,e){var r=e[0],n=e[1];return Lr(r.evaluate(t),n.evaluate(t))}]]},get:{type:qt,overloads:[[[Nt],function(t,e){return Cr(e[0].evaluate(t),t.properties())}],[[Nt,Vt],function(t,e){var r=e[0],n=e[1];return Cr(r.evaluate(t),n.evaluate(t))}]]},&quot;feature-state&quot;:[qt,[Nt],function(t,e){return Cr(e[0].evaluate(t),t.featureState||{})}],properties:[Vt,[],function(t){return t.properties()}],&quot;geometry-type&quot;:[Nt,[],function(t){return t.geometryType()}],id:[qt,[],function(t){return t.id()}],zoom:[Bt,[],function(t){return t.globals.zoom}],&quot;heatmap-density&quot;:[Bt,[],function(t){return t.globals.heatmapDensity||0}],&quot;line-progress&quot;:[Bt,[],function(t){return t.globals.lineProgress||0}],accumulated:[qt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],&quot;+&quot;:[Bt,Pr(Bt),function(t,e){for(var r=0,n=0,i=e;n&lt;i.length;n+=1){r+=i[n].evaluate(t)}return r}],&quot;*&quot;:[Bt,Pr(Bt),function(t,e){for(var r=1,n=0,i=e;n&lt;i.length;n+=1){r*=i[n].evaluate(t)}return r}],&quot;-&quot;:{type:Bt,overloads:[[[Bt,Bt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[Bt],function(t,e){return-e[0].evaluate(t)}]]},&quot;/&quot;:[Bt,[Bt,Bt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],&quot;%&quot;:[Bt,[Bt,Bt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[Bt,[],function(){return Math.LN2}],pi:[Bt,[],function(){return Math.PI}],e:[Bt,[],function(){return Math.E}],&quot;^&quot;:[Bt,[Bt,Bt],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[Bt,[Bt],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[Bt,[Bt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[Bt,[Bt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[Bt,[Bt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[Bt,[Bt],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[Bt,[Bt],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[Bt,[Bt],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[Bt,[Bt],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[Bt,[Bt],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[Bt,[Bt],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[Bt,Pr(Bt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Bt,Pr(Bt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Bt,[Bt],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[Bt,[Bt],function(t,e){var r=e[0].evaluate(t);return r&lt;0?-Math.round(-r):Math.round(r)}],floor:[Bt,[Bt],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[Bt,[Bt],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],&quot;filter-==&quot;:[jt,[Nt,qt],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],&quot;filter-id-==&quot;:[jt,[qt],function(t,e){var r=e[0];return t.id()===r.value}],&quot;filter-type-==&quot;:[jt,[Nt],function(t,e){var r=e[0];return t.geometryType()===r.value}],&quot;filter-&lt;&quot;:[jt,[Nt,qt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;a}],&quot;filter-id-&lt;&quot;:[jt,[qt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;i}],&quot;filter-&gt;&quot;:[jt,[Nt,qt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;a}],&quot;filter-id-&gt;&quot;:[jt,[qt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;i}],&quot;filter-&lt;=&quot;:[jt,[Nt,qt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;=a}],&quot;filter-id-&lt;=&quot;:[jt,[qt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;=i}],&quot;filter-&gt;=&quot;:[jt,[Nt,qt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;=a}],&quot;filter-id-&gt;=&quot;:[jt,[qt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;=i}],&quot;filter-has&quot;:[jt,[qt],function(t,e){return e[0].value in t.properties()}],&quot;filter-has-id&quot;:[jt,[],function(t){return null!==t.id()&amp;&amp;void 0!==t.id()}],&quot;filter-type-in&quot;:[jt,[Wt(Nt)],function(t,e){return e[0].value.indexOf(t.geometryType())&gt;=0}],&quot;filter-id-in&quot;:[jt,[Wt(qt)],function(t,e){return e[0].value.indexOf(t.id())&gt;=0}],&quot;filter-in-small&quot;:[jt,[Nt,Wt(qt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])&gt;=0}],&quot;filter-in-large&quot;:[jt,[Nt,Wt(qt)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r&lt;=n;){var i=r+n&gt;&gt;1;if(e[i]===t)return!0;e[i]&gt;t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:jt,overloads:[[[jt,jt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&amp;&amp;n.evaluate(t)}],[Pr(jt),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1){if(!n[r].evaluate(t))return!1}return!0}]]},any:{type:jt,overloads:[[[jt,jt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Pr(jt),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1){if(n[r].evaluate(t))return!0}return!1}]]},&quot;!&quot;:[jt,[jt],function(t,e){return!e[0].evaluate(t)}],&quot;is-supported-script&quot;:[jt,[Nt],function(t,e){var r=e[0],n=t.globals&amp;&amp;t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[Nt,[Nt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Nt,[Nt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Nt,Pr(qt),function(t,e){return e.map((function(e){return le(e.evaluate(t))})).join(&quot;&quot;)}],&quot;resolved-locale&quot;:[Nt,[Ht],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Gr=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ye,this._defaultValue=e?function(t){return&quot;color&quot;===t.type&amp;&amp;Br(t.default)?new te(0,0,0,0):&quot;color&quot;===t.type?te.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&amp;&amp;&quot;enum&quot;===e.type?e.values:null};function Yr(t){return Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;t[0]in Sr}function Wr(t,e){var r=new Ue(Sr,[],e?function(t){var e={color:Ut,string:Nt,number:Bt,enum:Nt,boolean:jt,formatted:Gt,resolvedImage:Yt};if(&quot;array&quot;===t.type)return Wt(e[t.value]||qt,t.length);return e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&amp;&amp;&quot;string&quot;===e.type?{typeAnnotation:&quot;coerce&quot;}:void 0);return n?Ir(new Gr(n,e)):Or(r.errors)}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},Gr.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||&quot;number&quot;==typeof o&amp;&amp;o!=o)return this._defaultValue;if(this._enumValues&amp;&amp;!(o in this._enumValues))throw new ue(&quot;Expected value to be one of &quot;+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(&quot;, &quot;)+&quot;, but found &quot;+JSON.stringify(o)+&quot; instead.&quot;);return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t.message)),this._defaultValue}};var Xr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent=&quot;constant&quot;!==t&amp;&amp;!Be(e.expression)};Xr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Xr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var Zr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=&quot;camera&quot;!==t&amp;&amp;!Be(e.expression),this.interpolationType=n};function Jr(t,e){if(&quot;error&quot;===(t=Wr(t,e)).result)return t;var r=t.value.expression,n=Fe(r);if(!n&amp;&amp;!zr(e))return Or([new Dt(&quot;&quot;,&quot;data expressions not supported&quot;)]);var i=Ne(r,[&quot;zoom&quot;]);if(!i&amp;&amp;!Dr(e))return Or([new Dt(&quot;&quot;,&quot;zoom expressions not supported&quot;)]);var a=function t(e){var r=null;if(e instanceof cr)r=t(e.result);else if(e instanceof lr)for(var n=0,i=e.args;n&lt;i.length;n+=1){var a=i[n];if(r=t(a))break}else(e instanceof qe||e instanceof or)&amp;&amp;e.input instanceof xe&amp;&amp;&quot;zoom&quot;===e.input.name&amp;&amp;(r=e);if(r instanceof Dt)return r;return e.eachChild((function(e){var n=t(e);n instanceof Dt?r=n:!r&amp;&amp;n?r=new Dt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.'):r&amp;&amp;n&amp;&amp;r!==n&amp;&amp;(r=new Dt(&quot;&quot;,'Only one zoom-based &quot;step&quot; or &quot;interpolate&quot; subexpression may be used in an expression.'))})),r}(r);if(!a&amp;&amp;!i)return Or([new Dt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.')]);if(a instanceof Dt)return Or([a]);if(a instanceof or&amp;&amp;!Rr(e))return Or([new Dt(&quot;&quot;,'&quot;interpolate&quot; expressions cannot be used with this property')]);if(!a)return Ir(new Xr(n?&quot;constant&quot;:&quot;source&quot;,t.value));var o=a instanceof or?a.interpolation:void 0;return Ir(new Zr(n?&quot;camera&quot;:&quot;composite&quot;,t.value,a.labels,o))}Zr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Zr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},Zr.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?or.interpolationFactor(this.interpolationType,t,e,r):0};var Kr=function(t,e){this._parameters=t,this._specification=e,It(this,function t(e,r){var n,i,a,o=&quot;color&quot;===r.type,s=e.stops&amp;&amp;&quot;object&quot;==typeof e.stops[0][0],l=s||void 0!==e.property,c=s||!l,u=e.type||(Rr(r)?&quot;exponential&quot;:&quot;interval&quot;);if(o&amp;&amp;((e=It({},e)).stops&amp;&amp;(e.stops=e.stops.map((function(t){return[t[0],te.parse(t[1])]}))),e.default?e.default=te.parse(e.default):e.default=te.parse(r.default)),e.colorSpace&amp;&amp;&quot;rgb&quot;!==e.colorSpace&amp;&amp;!ar[e.colorSpace])throw new Error(&quot;Unknown color space: &quot;+e.colorSpace);if(&quot;exponential&quot;===u)n=qr;else if(&quot;interval&quot;===u)n=Vr;else if(&quot;categorical&quot;===u){n=Ur,i=Object.create(null);for(var f=0,h=e.stops;f&lt;h.length;f+=1){var p=h[f];i[p[0]]=p[1]}a=typeof e.stops[0][0]}else{if(&quot;identity&quot;!==u)throw new Error('Unknown function type &quot;'+u+'&quot;');n=Hr}if(s){for(var d={},g=[],m=0;m&lt;e.stops.length;m++){var v=e.stops[m],y=v[0].zoom;void 0===d[y]&amp;&amp;(d[y]={zoom:y,type:e.type,property:e.property,default:e.default,stops:[]},g.push(y)),d[y].stops.push([v[0].value,v[1]])}for(var x=[],b=0,_=g;b&lt;_.length;b+=1){var w=_[b];x.push([d[w].zoom,t(d[w],r)])}var T={name:&quot;linear&quot;};return{kind:&quot;composite&quot;,interpolationType:T,interpolationFactor:or.interpolationFactor.bind(void 0,T),zoomStops:x.map((function(t){return t[0]})),evaluate:function(t,n){var i=t.zoom;return qr({stops:x,base:e.base},r,i).evaluate(i,n)}}}if(c){var k=&quot;exponential&quot;===u?{name:&quot;exponential&quot;,base:void 0!==e.base?e.base:1}:null;return{kind:&quot;camera&quot;,interpolationType:k,interpolationFactor:or.interpolationFactor.bind(void 0,k),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){var o=t.zoom;return n(e,r,o,i,a)}}}return{kind:&quot;source&quot;,evaluate:function(t,o){var s=o&amp;&amp;o.properties?o.properties[e.property]:void 0;return void 0===s?jr(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Qr(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=Fr(r);if(&quot;object&quot;!==l)return[new Ct(e,r,&quot;object expected, &quot;+l+&quot; found&quot;)];for(var c in r){var u=c.split(&quot;.&quot;)[0],f=n[u]||n[&quot;*&quot;],h=void 0;if(i[u])h=i[u];else if(n[u])h=kn;else if(i[&quot;*&quot;])h=i[&quot;*&quot;];else{if(!n[&quot;*&quot;]){s.push(new Ct(e,r[c],'unknown property &quot;'+c+'&quot;'));continue}h=kn}s=s.concat(h({key:(e?e+&quot;.&quot;:e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&amp;&amp;void 0===n[p].default&amp;&amp;void 0===r[p]&amp;&amp;s.push(new Ct(e,r,'missing required property &quot;'+p+'&quot;'));return s}function $r(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||kn;if(&quot;array&quot;!==Fr(e))return[new Ct(a,e,&quot;array expected, &quot;+Fr(e)+&quot; found&quot;)];if(r.length&amp;&amp;e.length!==r.length)return[new Ct(a,e,&quot;array length &quot;+r.length+&quot; expected, length &quot;+e.length+&quot; found&quot;)];if(r[&quot;min-length&quot;]&amp;&amp;e.length&lt;r[&quot;min-length&quot;])return[new Ct(a,e,&quot;array length at least &quot;+r[&quot;min-length&quot;]+&quot; expected, length &quot;+e.length+&quot; found&quot;)];var s={type:r.value,values:r.values};i.$version&lt;7&amp;&amp;(s.function=r.function),&quot;object&quot;===Fr(r.value)&amp;&amp;(s=r.value);for(var l=[],c=0;c&lt;e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+&quot;[&quot;+c+&quot;]&quot;}));return l}function tn(t){var e=t.key,r=t.value,n=t.valueSpec,i=Fr(r);return&quot;number&quot;===i&amp;&amp;r!=r&amp;&amp;(i=&quot;NaN&quot;),&quot;number&quot;!==i?[new Ct(e,r,&quot;number expected, &quot;+i+&quot; found&quot;)]:&quot;minimum&quot;in n&amp;&amp;r&lt;n.minimum?[new Ct(e,r,r+&quot; is less than the minimum value &quot;+n.minimum)]:&quot;maximum&quot;in n&amp;&amp;r&gt;n.maximum?[new Ct(e,r,r+&quot; is greater than the maximum value &quot;+n.maximum)]:[]}function en(t){var e,r,n,i=t.valueSpec,a=Ot(t.value.type),o={},s=&quot;categorical&quot;!==a&amp;&amp;void 0===t.value.property,l=!s,c=&quot;array&quot;===Fr(t.value.stops)&amp;&amp;&quot;array&quot;===Fr(t.value.stops[0])&amp;&amp;&quot;object&quot;===Fr(t.value.stops[0][0]),u=Qr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(&quot;identity&quot;===a)return[new Ct(t.key,t.value,'identity function may not have a &quot;stops&quot; property')];var e=[],r=t.value;e=e.concat($r({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),&quot;array&quot;===Fr(r)&amp;&amp;0===r.length&amp;&amp;e.push(new Ct(t.key,r,&quot;array must have at least one stop&quot;));return e},default:function(t){return kn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return&quot;identity&quot;===a&amp;&amp;s&amp;&amp;u.push(new Ct(t.key,t.value,'missing required property &quot;property&quot;')),&quot;identity&quot;===a||t.value.stops||u.push(new Ct(t.key,t.value,'missing required property &quot;stops&quot;')),&quot;exponential&quot;===a&amp;&amp;t.valueSpec.expression&amp;&amp;!Rr(t.valueSpec)&amp;&amp;u.push(new Ct(t.key,t.value,&quot;exponential functions not supported&quot;)),t.styleSpec.$version&gt;=8&amp;&amp;(l&amp;&amp;!zr(t.valueSpec)?u.push(new Ct(t.key,t.value,&quot;property functions not supported&quot;)):s&amp;&amp;!Dr(t.valueSpec)&amp;&amp;u.push(new Ct(t.key,t.value,&quot;zoom functions not supported&quot;))),&quot;categorical&quot;!==a&amp;&amp;!c||void 0!==t.value.property||u.push(new Ct(t.key,t.value,'&quot;property&quot; property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(&quot;array&quot;!==Fr(a))return[new Ct(s,a,&quot;array expected, &quot;+Fr(a)+&quot; found&quot;)];if(2!==a.length)return[new Ct(s,a,&quot;array length 2 expected, length &quot;+a.length+&quot; found&quot;)];if(c){if(&quot;object&quot;!==Fr(a[0]))return[new Ct(s,a,&quot;object expected, &quot;+Fr(a[0])+&quot; found&quot;)];if(void 0===a[0].zoom)return[new Ct(s,a,&quot;object stop key must have zoom&quot;)];if(void 0===a[0].value)return[new Ct(s,a,&quot;object stop key must have value&quot;)];if(n&amp;&amp;n&gt;Ot(a[0].zoom))return[new Ct(s,a[0].zoom,&quot;stop zoom values must appear in ascending order&quot;)];Ot(a[0].zoom)!==n&amp;&amp;(n=Ot(a[0].zoom),r=void 0,o={}),e=e.concat(Qr({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:tn,value:h}}))}else e=e.concat(h({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return Yr(zt(a[1]))?e.concat([new Ct(s+&quot;[1]&quot;,a[1],&quot;expressions are not allowed in function stops.&quot;)]):e.concat(kn({key:s+&quot;[1]&quot;,value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=Fr(t.value),l=Ot(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new Ct(t.key,c,s+&quot; stop domain type must match previous stop domain type &quot;+e)]}else e=s;if(&quot;number&quot;!==s&amp;&amp;&quot;string&quot;!==s&amp;&amp;&quot;boolean&quot;!==s)return[new Ct(t.key,c,&quot;stop domain value must be a number, string, or boolean&quot;)];if(&quot;number&quot;!==s&amp;&amp;&quot;categorical&quot;!==a){var u=&quot;number expected, &quot;+s+&quot; found&quot;;return zr(i)&amp;&amp;void 0===a&amp;&amp;(u+='\nIf you intended to use a categorical function, specify `&quot;type&quot;: &quot;categorical&quot;`.'),[new Ct(t.key,c,u)]}return&quot;categorical&quot;!==a||&quot;number&quot;!==s||isFinite(l)&amp;&amp;Math.floor(l)===l?&quot;categorical&quot;!==a&amp;&amp;&quot;number&quot;===s&amp;&amp;void 0!==r&amp;&amp;l&lt;r?[new Ct(t.key,c,&quot;stop domain values must appear in ascending order&quot;)]:(r=l,&quot;categorical&quot;===a&amp;&amp;l in o?[new Ct(t.key,c,&quot;stop domain values must be unique&quot;)]:(o[l]=!0,[])):[new Ct(t.key,c,&quot;integer expected, found &quot;+l)]}}function rn(t){var e=(&quot;property&quot;===t.expressionContext?Jr:Wr)(zt(t.value),t.valueSpec);if(&quot;error&quot;===e.result)return e.value.map((function(e){return new Ct(&quot;&quot;+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;text-font&quot;===t.propertyKey&amp;&amp;!r.outputDefined())return[new Ct(t.key,t.value,'Invalid data expression for &quot;'+t.propertyKey+'&quot;. Output values must be contained as literals within the expression.')];if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;layout&quot;===t.propertyType&amp;&amp;!Be(r))return[new Ct(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with layout properties.')];if(&quot;filter&quot;===t.expressionContext&amp;&amp;!Be(r))return[new Ct(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with filters.')];if(t.expressionContext&amp;&amp;0===t.expressionContext.indexOf(&quot;cluster&quot;)){if(!Ne(r,[&quot;zoom&quot;,&quot;feature-state&quot;]))return[new Ct(t.key,t.value,'&quot;zoom&quot; and &quot;feature-state&quot; expressions are not supported with cluster properties.')];if(&quot;cluster-initial&quot;===t.expressionContext&amp;&amp;!Fe(r))return[new Ct(t.key,t.value,&quot;Feature data expressions are not supported with initial expression part of cluster properties.&quot;)]}return[]}function nn(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(Ot(r))&amp;&amp;i.push(new Ct(e,r,&quot;expected one of [&quot;+n.values.join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)):-1===Object.keys(n.values).indexOf(Ot(r))&amp;&amp;i.push(new Ct(e,r,&quot;expected one of [&quot;+Object.keys(n.values).join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)),i}function an(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case&quot;has&quot;:return t.length&gt;=2&amp;&amp;&quot;$id&quot;!==t[1]&amp;&amp;&quot;$type&quot;!==t[1];case&quot;in&quot;:return t.length&gt;=3&amp;&amp;(&quot;string&quot;!=typeof t[1]||Array.isArray(t[2]));case&quot;!in&quot;:case&quot;!has&quot;:case&quot;none&quot;:return!1;case&quot;==&quot;:case&quot;!=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:case&quot;&lt;&quot;:case&quot;&lt;=&quot;:return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case&quot;any&quot;:case&quot;all&quot;:for(var e=0,r=t.slice(1);e&lt;r.length;e+=1){var n=r[e];if(!an(n)&amp;&amp;&quot;boolean&quot;!=typeof n)return!1}return!0;default:return!0}}Kr.deserialize=function(t){return new Kr(t._parameters,t._specification)},Kr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var on={type:&quot;boolean&quot;,default:!1,transition:!1,&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}};function sn(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};an(t)||(t=cn(t));var e=Wr(t,on);if(&quot;error&quot;===e.result)throw new Error(e.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if(&quot;within&quot;===e[0])return!0;for(var r=1;r&lt;e.length;r++)if(t(e[r]))return!0;return!1}(t)}}function ln(t,e){return t&lt;e?-1:t&gt;e?1:0}function cn(t){if(!t)return!0;var e,r=t[0];return t.length&lt;=1?&quot;any&quot;!==r:&quot;==&quot;===r?un(t[1],t[2],&quot;==&quot;):&quot;!=&quot;===r?pn(un(t[1],t[2],&quot;==&quot;)):&quot;&lt;&quot;===r||&quot;&gt;&quot;===r||&quot;&lt;=&quot;===r||&quot;&gt;=&quot;===r?un(t[1],t[2],r):&quot;any&quot;===r?(e=t.slice(1),[&quot;any&quot;].concat(e.map(cn))):&quot;all&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(cn)):&quot;none&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(cn).map(pn)):&quot;in&quot;===r?fn(t[1],t.slice(2)):&quot;!in&quot;===r?pn(fn(t[1],t.slice(2))):&quot;has&quot;===r?hn(t[1]):&quot;!has&quot;===r?pn(hn(t[1])):&quot;within&quot;!==r||t}function un(t,e,r){switch(t){case&quot;$type&quot;:return[&quot;filter-type-&quot;+r,e];case&quot;$id&quot;:return[&quot;filter-id-&quot;+r,e];default:return[&quot;filter-&quot;+r,t,e]}}function fn(t,e){if(0===e.length)return!1;switch(t){case&quot;$type&quot;:return[&quot;filter-type-in&quot;,[&quot;literal&quot;,e]];case&quot;$id&quot;:return[&quot;filter-id-in&quot;,[&quot;literal&quot;,e]];default:return e.length&gt;200&amp;&amp;!e.some((function(t){return typeof t!=typeof e[0]}))?[&quot;filter-in-large&quot;,t,[&quot;literal&quot;,e.sort(ln)]]:[&quot;filter-in-small&quot;,t,[&quot;literal&quot;,e]]}}function hn(t){switch(t){case&quot;$type&quot;:return!0;case&quot;$id&quot;:return[&quot;filter-has-id&quot;];default:return[&quot;filter-has&quot;,t]}}function pn(t){return[&quot;!&quot;,t]}function dn(t){return an(zt(t.value))?rn(It({},t,{expressionContext:&quot;filter&quot;,valueSpec:{value:&quot;boolean&quot;}})):function t(e){var r=e.value,n=e.key;if(&quot;array&quot;!==Fr(r))return[new Ct(n,r,&quot;array expected, &quot;+Fr(r)+&quot; found&quot;)];var i,a=e.styleSpec,o=[];if(r.length&lt;1)return[new Ct(n,r,&quot;filter array must have at least 1 element&quot;)];switch(o=o.concat(nn({key:n+&quot;[0]&quot;,value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Ot(r[0])){case&quot;&lt;&quot;:case&quot;&lt;=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:r.length&gt;=2&amp;&amp;&quot;$type&quot;===Ot(r[1])&amp;&amp;o.push(new Ct(n,r,'&quot;$type&quot; cannot be use with operator &quot;'+r[0]+'&quot;'));case&quot;==&quot;:case&quot;!=&quot;:3!==r.length&amp;&amp;o.push(new Ct(n,r,'filter array for operator &quot;'+r[0]+'&quot; must have 3 elements'));case&quot;in&quot;:case&quot;!in&quot;:r.length&gt;=2&amp;&amp;&quot;string&quot;!==(i=Fr(r[1]))&amp;&amp;o.push(new Ct(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));for(var s=2;s&lt;r.length;s++)i=Fr(r[s]),&quot;$type&quot;===Ot(r[1])?o=o.concat(nn({key:n+&quot;[&quot;+s+&quot;]&quot;,value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):&quot;string&quot;!==i&amp;&amp;&quot;number&quot;!==i&amp;&amp;&quot;boolean&quot;!==i&amp;&amp;o.push(new Ct(n+&quot;[&quot;+s+&quot;]&quot;,r[s],&quot;string, number, or boolean expected, &quot;+i+&quot; found&quot;));break;case&quot;any&quot;:case&quot;all&quot;:case&quot;none&quot;:for(var l=1;l&lt;r.length;l++)o=o.concat(t({key:n+&quot;[&quot;+l+&quot;]&quot;,value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case&quot;has&quot;:case&quot;!has&quot;:i=Fr(r[1]),2!==r.length?o.push(new Ct(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;string&quot;!==i&amp;&amp;o.push(new Ct(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));break;case&quot;within&quot;:i=Fr(r[1]),2!==r.length?o.push(new Ct(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;object&quot;!==i&amp;&amp;o.push(new Ct(n+&quot;[1]&quot;,r[1],&quot;object expected, &quot;+i+&quot; found&quot;))}return o}(t)}function gn(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+&quot;_&quot;+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(&quot;paint&quot;===e&amp;&amp;l&amp;&amp;s[l[1]]&amp;&amp;s[l[1]].transition)return kn({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new Ct(r,a,'unknown property &quot;'+o+'&quot;')];if(&quot;string&quot;===Fr(a)&amp;&amp;zr(u)&amp;&amp;!u.tokens&amp;&amp;(c=/^{([^}]+)}$/.exec(a)))return[new Ct(r,a,'&quot;'+o+'&quot; does not support interpolation syntax\nUse an identity property function instead: `{ &quot;type&quot;: &quot;identity&quot;, &quot;property&quot;: '+JSON.stringify(c[1])+&quot; }`.&quot;)];var f=[];return&quot;symbol&quot;===t.layerType&amp;&amp;(&quot;text-field&quot;===o&amp;&amp;n&amp;&amp;!n.glyphs&amp;&amp;f.push(new Ct(r,a,'use of &quot;text-field&quot; requires a style &quot;glyphs&quot; property')),&quot;text-font&quot;===o&amp;&amp;Br(zt(a))&amp;&amp;&quot;identity&quot;===Ot(a.type)&amp;&amp;f.push(new Ct(r,a,'&quot;text-font&quot; does not support identity functions'))),f.concat(kn({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:&quot;property&quot;,propertyType:e,propertyKey:o}))}function mn(t){return gn(t,&quot;paint&quot;)}function vn(t){return gn(t,&quot;layout&quot;)}function yn(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new Ct(n,r,'either &quot;type&quot; or &quot;ref&quot; is required'));var o,s=Ot(r.type),l=Ot(r.ref);if(r.id)for(var c=Ot(r.id),u=0;u&lt;t.arrayIndex;u++){var f=i.layers[u];Ot(f.id)===c&amp;&amp;e.push(new Ct(n,r.id,'duplicate layer id &quot;'+r.id+'&quot;, previously used at line '+f.id.__line__))}if(&quot;ref&quot;in r)[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;filter&quot;,&quot;layout&quot;].forEach((function(t){t in r&amp;&amp;e.push(new Ct(n,r[t],'&quot;'+t+'&quot; is prohibited for ref layers'))})),i.layers.forEach((function(t){Ot(t.id)===l&amp;&amp;(o=t)})),o?o.ref?e.push(new Ct(n,r.ref,&quot;ref cannot reference another ref layer&quot;)):s=Ot(o.type):e.push(new Ct(n,r.ref,'ref layer &quot;'+l+'&quot; not found'));else if(&quot;background&quot;!==s)if(r.source){var h=i.sources&amp;&amp;i.sources[r.source],p=h&amp;&amp;Ot(h.type);h?&quot;vector&quot;===p&amp;&amp;&quot;raster&quot;===s?e.push(new Ct(n,r.source,'layer &quot;'+r.id+'&quot; requires a raster source')):&quot;raster&quot;===p&amp;&amp;&quot;raster&quot;!==s?e.push(new Ct(n,r.source,'layer &quot;'+r.id+'&quot; requires a vector source')):&quot;vector&quot;!==p||r[&quot;source-layer&quot;]?&quot;raster-dem&quot;===p&amp;&amp;&quot;hillshade&quot;!==s?e.push(new Ct(n,r.source,&quot;raster-dem source can only be used with layer type 'hillshade'.&quot;)):&quot;line&quot;!==s||!r.paint||!r.paint[&quot;line-gradient&quot;]||&quot;geojson&quot;===p&amp;&amp;h.lineMetrics||e.push(new Ct(n,r,'layer &quot;'+r.id+'&quot; specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new Ct(n,r,'layer &quot;'+r.id+'&quot; must specify a &quot;source-layer&quot;')):e.push(new Ct(n,r.source,'source &quot;'+r.source+'&quot; not found'))}else e.push(new Ct(n,r,'missing required property &quot;source&quot;'));return e=e.concat(Qr({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(){return[]},type:function(){return kn({key:n+&quot;.type&quot;,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:&quot;type&quot;})},filter:dn,layout:function(t){return Qr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return vn(It({layerType:s},t))}}})},paint:function(t){return Qr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return mn(It({layerType:s},t))}}})}}}))}function xn(t){var e=t.value,r=t.key,n=Fr(e);return&quot;string&quot;!==n?[new Ct(r,e,&quot;string expected, &quot;+n+&quot; found&quot;)]:[]}var bn={promoteId:function(t){var e=t.key,r=t.value;if(&quot;string&quot;===Fr(r))return xn({key:e,value:r});var n=[];for(var i in r)n.push.apply(n,xn({key:e+&quot;.&quot;+i,value:r[i]}));return n}};function _n(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new Ct(r,e,'&quot;type&quot; is required')];var a,o=Ot(e.type);switch(o){case&quot;vector&quot;:case&quot;raster&quot;:case&quot;raster-dem&quot;:return a=Qr({key:r,value:e,valueSpec:n[&quot;source_&quot;+o.replace(&quot;-&quot;,&quot;_&quot;)],style:t.style,styleSpec:n,objectElementValidators:bn});case&quot;geojson&quot;:if(a=Qr({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:bn}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],c=l[0],u=l[1],f=&quot;string&quot;==typeof c?[c,[&quot;accumulated&quot;],[&quot;get&quot;,s]]:c;a.push.apply(a,rn({key:r+&quot;.&quot;+s+&quot;.map&quot;,value:u,expressionContext:&quot;cluster-map&quot;})),a.push.apply(a,rn({key:r+&quot;.&quot;+s+&quot;.reduce&quot;,value:f,expressionContext:&quot;cluster-reduce&quot;}))}return a;case&quot;video&quot;:return Qr({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case&quot;image&quot;:return Qr({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case&quot;canvas&quot;:return[new Ct(r,null,&quot;Please use runtime APIs to add canvas sources, rather than including them in stylesheets.&quot;,&quot;source.canvas&quot;)];default:return nn({key:r+&quot;.type&quot;,value:e.type,valueSpec:{values:[&quot;vector&quot;,&quot;raster&quot;,&quot;raster-dem&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;]},style:i,styleSpec:n})}}function wn(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=Fr(e);if(void 0===e)return a;if(&quot;object&quot;!==o)return a=a.concat([new Ct(&quot;light&quot;,e,&quot;object expected, &quot;+o+&quot; found&quot;)]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=l&amp;&amp;n[l[1]]&amp;&amp;n[l[1]].transition?a.concat(kn({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r})):n[s]?a.concat(kn({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r})):a.concat([new Ct(s,e[s],'unknown property &quot;'+s+'&quot;')])}return a}var Tn={&quot;*&quot;:function(){return[]},array:$r,boolean:function(t){var e=t.value,r=t.key,n=Fr(e);return&quot;boolean&quot;!==n?[new Ct(r,e,&quot;boolean expected, &quot;+n+&quot; found&quot;)]:[]},number:tn,color:function(t){var e=t.key,r=t.value,n=Fr(r);return&quot;string&quot;!==n?[new Ct(e,r,&quot;color expected, &quot;+n+&quot; found&quot;)]:null===$t(r)?[new Ct(e,r,'color expected, &quot;'+r+'&quot; found')]:[]},constants:Pt,enum:nn,filter:dn,function:en,layer:yn,object:Qr,source:_n,light:wn,string:xn,formatted:function(t){return 0===xn(t).length?[]:rn(t)},resolvedImage:function(t){return 0===xn(t).length?[]:rn(t)}};function kn(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&amp;&amp;Br(Ot(e))?en(t):r.expression&amp;&amp;Yr(zt(e))?rn(t):r.type&amp;&amp;Tn[r.type]?Tn[r.type](t):Qr(It({},t,{valueSpec:r.type?n[r.type]:r}))}function An(t){var e=t.value,r=t.key,n=xn(t);return n.length||(-1===e.indexOf(&quot;{fontstack}&quot;)&amp;&amp;n.push(new Ct(r,e,'&quot;glyphs&quot; url must include a &quot;{fontstack}&quot; token')),-1===e.indexOf(&quot;{range}&quot;)&amp;&amp;n.push(new Ct(r,e,'&quot;glyphs&quot; url must include a &quot;{range}&quot; token'))),n}function Mn(t,e){void 0===e&amp;&amp;(e=Lt);var r=[];return r=r.concat(kn({key:&quot;&quot;,value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:An,&quot;*&quot;:function(){return[]}}})),t.constants&amp;&amp;(r=r.concat(Pt({key:&quot;constants&quot;,value:t.constants,style:t,styleSpec:e}))),Sn(r)}function Sn(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function En(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return Sn(t.apply(this,e))}}Mn.source=En(_n),Mn.light=En(wn),Mn.layer=En(yn),Mn.filter=En(dn),Mn.paintProperty=En(mn),Mn.layoutProperty=En(vn);var Ln=Mn,Cn=Ln.light,Pn=Ln.paintProperty,In=Ln.layoutProperty;function On(t,e){var r=!1;if(e&amp;&amp;e.length)for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];t.fire(new St(new Error(a.message))),r=!0}return r}var zn=Dn;function Dn(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],e=i[1],r=i[2],this.d=e+2*r;for(var a=0;a&lt;this.d*this.d;a++){var o=i[3+a],s=i[3+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[3+n.length],c=i[3+n.length+1];this.keys=i.subarray(l,c),this.bboxes=i.subarray(c),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var u=0;u&lt;this.d*this.d;u++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var f=r/e*t;this.min=-f,this.max=t+f}Dn.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Dn.prototype._insertReadonly=function(){throw&quot;Cannot insert into a GridIndex created from an ArrayBuffer.&quot;},Dn.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},Dn.prototype.query=function(t,e,r,n,i){var a=this.min,o=this.max;if(t&lt;=a&amp;&amp;e&lt;=a&amp;&amp;o&lt;=r&amp;&amp;o&lt;=n&amp;&amp;!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},i),s},Dn.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,f=0;f&lt;l.length;f++){var h=l[f];if(void 0===o[h]){var p=4*h;(s?s(u[p+0],u[p+1],u[p+2],u[p+3]):t&lt;=u[p+2]&amp;&amp;e&lt;=u[p+3]&amp;&amp;r&gt;=u[p+0]&amp;&amp;n&gt;=u[p+1])?(o[h]=!0,a.push(c[h])):o[h]=!1}}},Dn.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&amp;&amp;i.call(this,t,e,r,n,d,a,o,s))return}},Dn.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Dn.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Dn.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n&lt;this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o&lt;t.length;o++){var s=t[o];i[3+o]=a,i.set(s,a),a+=s.length}return i[3+t.length]=a,i.set(this.keys,a),a+=this.keys.length,i[3+t.length+1]=a,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var Rn=self.ImageData,Fn=self.ImageBitmap,Bn={};function Nn(t,e,r){void 0===r&amp;&amp;(r={}),Object.defineProperty(e,&quot;_classRegistryKey&quot;,{value:t,writeable:!1}),Bn[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var jn in Nn(&quot;Object&quot;,Object),zn.serialize=function(t,e){var r=t.toArrayBuffer();return e&amp;&amp;e.push(r),{buffer:r}},zn.deserialize=function(t){return new zn(t.buffer)},Nn(&quot;Grid&quot;,zn),Nn(&quot;Color&quot;,te),Nn(&quot;Error&quot;,Error),Nn(&quot;ResolvedImage&quot;,ie),Nn(&quot;StylePropertyFunction&quot;,Kr),Nn(&quot;StyleExpression&quot;,Gr,{omit:[&quot;_evaluator&quot;]}),Nn(&quot;ZoomDependentExpression&quot;,Zr),Nn(&quot;ZoomConstantExpression&quot;,Xr),Nn(&quot;CompoundExpression&quot;,xe,{omit:[&quot;_evaluate&quot;]}),Sr)Sr[jn]._classRegistryKey||Nn(&quot;Expression_&quot;+jn,Sr[jn]);function Un(t){return t&amp;&amp;&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;(t instanceof ArrayBuffer||t.constructor&amp;&amp;&quot;ArrayBuffer&quot;===t.constructor.name)}function Vn(t){return Fn&amp;&amp;t instanceof Fn}function qn(t,e){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Un(t)||Vn(t))return e&amp;&amp;e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&amp;&amp;e.push(r.buffer),r}if(t instanceof Rn)return e&amp;&amp;e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n.push(qn(o,e))}return n}if(&quot;object&quot;==typeof t){var s=t.constructor,l=s._classRegistryKey;if(!l)throw new Error(&quot;can't serialize object of unregistered class&quot;);var c=s.serialize?s.serialize(t,e):{};if(!s.serialize){for(var u in t)if(t.hasOwnProperty(u)&amp;&amp;!(Bn[l].omit.indexOf(u)&gt;=0)){var f=t[u];c[u]=Bn[l].shallow.indexOf(u)&gt;=0?f:qn(f,e)}t instanceof Error&amp;&amp;(c.message=t.message)}if(c.$name)throw new Error(&quot;$name property is reserved for worker serialization logic.&quot;);return&quot;Object&quot;!==l&amp;&amp;(c.$name=l),c}throw new Error(&quot;can't serialize object of type &quot;+typeof t)}function Hn(t){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Un(t)||Vn(t)||ArrayBuffer.isView(t)||t instanceof Rn)return t;if(Array.isArray(t))return t.map(Hn);if(&quot;object&quot;==typeof t){var e=t.$name||&quot;Object&quot;,r=Bn[e].klass;if(!r)throw new Error(&quot;can't deserialize unregistered class &quot;+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i&lt;a.length;i+=1){var o=a[i];if(&quot;$name&quot;!==o){var s=t[o];n[o]=Bn[e].shallow.indexOf(o)&gt;=0?s:Hn(s)}}return n}throw new Error(&quot;can't deserialize object of type &quot;+typeof t)}var Gn=function(){this.first=!0};Gn.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom&gt;r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom&lt;r&amp;&amp;(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&amp;&amp;(this.lastZoom=t,this.lastFloorZoom=r,!0))};var Yn={&quot;Latin-1 Supplement&quot;:function(t){return t&gt;=128&amp;&amp;t&lt;=255},Arabic:function(t){return t&gt;=1536&amp;&amp;t&lt;=1791},&quot;Arabic Supplement&quot;:function(t){return t&gt;=1872&amp;&amp;t&lt;=1919},&quot;Arabic Extended-A&quot;:function(t){return t&gt;=2208&amp;&amp;t&lt;=2303},&quot;Hangul Jamo&quot;:function(t){return t&gt;=4352&amp;&amp;t&lt;=4607},&quot;Unified Canadian Aboriginal Syllabics&quot;:function(t){return t&gt;=5120&amp;&amp;t&lt;=5759},Khmer:function(t){return t&gt;=6016&amp;&amp;t&lt;=6143},&quot;Unified Canadian Aboriginal Syllabics Extended&quot;:function(t){return t&gt;=6320&amp;&amp;t&lt;=6399},&quot;General Punctuation&quot;:function(t){return t&gt;=8192&amp;&amp;t&lt;=8303},&quot;Letterlike Symbols&quot;:function(t){return t&gt;=8448&amp;&amp;t&lt;=8527},&quot;Number Forms&quot;:function(t){return t&gt;=8528&amp;&amp;t&lt;=8591},&quot;Miscellaneous Technical&quot;:function(t){return t&gt;=8960&amp;&amp;t&lt;=9215},&quot;Control Pictures&quot;:function(t){return t&gt;=9216&amp;&amp;t&lt;=9279},&quot;Optical Character Recognition&quot;:function(t){return t&gt;=9280&amp;&amp;t&lt;=9311},&quot;Enclosed Alphanumerics&quot;:function(t){return t&gt;=9312&amp;&amp;t&lt;=9471},&quot;Geometric Shapes&quot;:function(t){return t&gt;=9632&amp;&amp;t&lt;=9727},&quot;Miscellaneous Symbols&quot;:function(t){return t&gt;=9728&amp;&amp;t&lt;=9983},&quot;Miscellaneous Symbols and Arrows&quot;:function(t){return t&gt;=11008&amp;&amp;t&lt;=11263},&quot;CJK Radicals Supplement&quot;:function(t){return t&gt;=11904&amp;&amp;t&lt;=12031},&quot;Kangxi Radicals&quot;:function(t){return t&gt;=12032&amp;&amp;t&lt;=12255},&quot;Ideographic Description Characters&quot;:function(t){return t&gt;=12272&amp;&amp;t&lt;=12287},&quot;CJK Symbols and Punctuation&quot;:function(t){return t&gt;=12288&amp;&amp;t&lt;=12351},Hiragana:function(t){return t&gt;=12352&amp;&amp;t&lt;=12447},Katakana:function(t){return t&gt;=12448&amp;&amp;t&lt;=12543},Bopomofo:function(t){return t&gt;=12544&amp;&amp;t&lt;=12591},&quot;Hangul Compatibility Jamo&quot;:function(t){return t&gt;=12592&amp;&amp;t&lt;=12687},Kanbun:function(t){return t&gt;=12688&amp;&amp;t&lt;=12703},&quot;Bopomofo Extended&quot;:function(t){return t&gt;=12704&amp;&amp;t&lt;=12735},&quot;CJK Strokes&quot;:function(t){return t&gt;=12736&amp;&amp;t&lt;=12783},&quot;Katakana Phonetic Extensions&quot;:function(t){return t&gt;=12784&amp;&amp;t&lt;=12799},&quot;Enclosed CJK Letters and Months&quot;:function(t){return t&gt;=12800&amp;&amp;t&lt;=13055},&quot;CJK Compatibility&quot;:function(t){return t&gt;=13056&amp;&amp;t&lt;=13311},&quot;CJK Unified Ideographs Extension A&quot;:function(t){return t&gt;=13312&amp;&amp;t&lt;=19903},&quot;Yijing Hexagram Symbols&quot;:function(t){return t&gt;=19904&amp;&amp;t&lt;=19967},&quot;CJK Unified Ideographs&quot;:function(t){return t&gt;=19968&amp;&amp;t&lt;=40959},&quot;Yi Syllables&quot;:function(t){return t&gt;=40960&amp;&amp;t&lt;=42127},&quot;Yi Radicals&quot;:function(t){return t&gt;=42128&amp;&amp;t&lt;=42191},&quot;Hangul Jamo Extended-A&quot;:function(t){return t&gt;=43360&amp;&amp;t&lt;=43391},&quot;Hangul Syllables&quot;:function(t){return t&gt;=44032&amp;&amp;t&lt;=55215},&quot;Hangul Jamo Extended-B&quot;:function(t){return t&gt;=55216&amp;&amp;t&lt;=55295},&quot;Private Use Area&quot;:function(t){return t&gt;=57344&amp;&amp;t&lt;=63743},&quot;CJK Compatibility Ideographs&quot;:function(t){return t&gt;=63744&amp;&amp;t&lt;=64255},&quot;Arabic Presentation Forms-A&quot;:function(t){return t&gt;=64336&amp;&amp;t&lt;=65023},&quot;Vertical Forms&quot;:function(t){return t&gt;=65040&amp;&amp;t&lt;=65055},&quot;CJK Compatibility Forms&quot;:function(t){return t&gt;=65072&amp;&amp;t&lt;=65103},&quot;Small Form Variants&quot;:function(t){return t&gt;=65104&amp;&amp;t&lt;=65135},&quot;Arabic Presentation Forms-B&quot;:function(t){return t&gt;=65136&amp;&amp;t&lt;=65279},&quot;Halfwidth and Fullwidth Forms&quot;:function(t){return t&gt;=65280&amp;&amp;t&lt;=65519}};function Wn(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(Zn(r[e].charCodeAt(0)))return!0}return!1}function Xn(t){return!Yn.Arabic(t)&amp;&amp;(!Yn[&quot;Arabic Supplement&quot;](t)&amp;&amp;(!Yn[&quot;Arabic Extended-A&quot;](t)&amp;&amp;(!Yn[&quot;Arabic Presentation Forms-A&quot;](t)&amp;&amp;!Yn[&quot;Arabic Presentation Forms-B&quot;](t))))}function Zn(t){return 746===t||747===t||!(t&lt;4352)&amp;&amp;(!!Yn[&quot;Bopomofo Extended&quot;](t)||(!!Yn.Bopomofo(t)||(!(!Yn[&quot;CJK Compatibility Forms&quot;](t)||t&gt;=65097&amp;&amp;t&lt;=65103)||(!!Yn[&quot;CJK Compatibility Ideographs&quot;](t)||(!!Yn[&quot;CJK Compatibility&quot;](t)||(!!Yn[&quot;CJK Radicals Supplement&quot;](t)||(!!Yn[&quot;CJK Strokes&quot;](t)||(!(!Yn[&quot;CJK Symbols and Punctuation&quot;](t)||t&gt;=12296&amp;&amp;t&lt;=12305||t&gt;=12308&amp;&amp;t&lt;=12319||12336===t)||(!!Yn[&quot;CJK Unified Ideographs Extension A&quot;](t)||(!!Yn[&quot;CJK Unified Ideographs&quot;](t)||(!!Yn[&quot;Enclosed CJK Letters and Months&quot;](t)||(!!Yn[&quot;Hangul Compatibility Jamo&quot;](t)||(!!Yn[&quot;Hangul Jamo Extended-A&quot;](t)||(!!Yn[&quot;Hangul Jamo Extended-B&quot;](t)||(!!Yn[&quot;Hangul Jamo&quot;](t)||(!!Yn[&quot;Hangul Syllables&quot;](t)||(!!Yn.Hiragana(t)||(!!Yn[&quot;Ideographic Description Characters&quot;](t)||(!!Yn.Kanbun(t)||(!!Yn[&quot;Kangxi Radicals&quot;](t)||(!!Yn[&quot;Katakana Phonetic Extensions&quot;](t)||(!(!Yn.Katakana(t)||12540===t)||(!(!Yn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||65288===t||65289===t||65293===t||t&gt;=65306&amp;&amp;t&lt;=65310||65339===t||65341===t||65343===t||t&gt;=65371&amp;&amp;t&lt;=65503||65507===t||t&gt;=65512&amp;&amp;t&lt;=65519)||(!(!Yn[&quot;Small Form Variants&quot;](t)||t&gt;=65112&amp;&amp;t&lt;=65118||t&gt;=65123&amp;&amp;t&lt;=65126)||(!!Yn[&quot;Unified Canadian Aboriginal Syllabics&quot;](t)||(!!Yn[&quot;Unified Canadian Aboriginal Syllabics Extended&quot;](t)||(!!Yn[&quot;Vertical Forms&quot;](t)||(!!Yn[&quot;Yijing Hexagram Symbols&quot;](t)||(!!Yn[&quot;Yi Syllables&quot;](t)||!!Yn[&quot;Yi Radicals&quot;](t))))))))))))))))))))))))))))))}function Jn(t){return!(Zn(t)||function(t){return!(!Yn[&quot;Latin-1 Supplement&quot;](t)||167!==t&amp;&amp;169!==t&amp;&amp;174!==t&amp;&amp;177!==t&amp;&amp;188!==t&amp;&amp;189!==t&amp;&amp;190!==t&amp;&amp;215!==t&amp;&amp;247!==t)||(!(!Yn[&quot;General Punctuation&quot;](t)||8214!==t&amp;&amp;8224!==t&amp;&amp;8225!==t&amp;&amp;8240!==t&amp;&amp;8241!==t&amp;&amp;8251!==t&amp;&amp;8252!==t&amp;&amp;8258!==t&amp;&amp;8263!==t&amp;&amp;8264!==t&amp;&amp;8265!==t&amp;&amp;8273!==t)||(!!Yn[&quot;Letterlike Symbols&quot;](t)||(!!Yn[&quot;Number Forms&quot;](t)||(!(!Yn[&quot;Miscellaneous Technical&quot;](t)||!(t&gt;=8960&amp;&amp;t&lt;=8967||t&gt;=8972&amp;&amp;t&lt;=8991||t&gt;=8996&amp;&amp;t&lt;=9e3||9003===t||t&gt;=9085&amp;&amp;t&lt;=9114||t&gt;=9150&amp;&amp;t&lt;=9165||9167===t||t&gt;=9169&amp;&amp;t&lt;=9179||t&gt;=9186&amp;&amp;t&lt;=9215))||(!(!Yn[&quot;Control Pictures&quot;](t)||9251===t)||(!!Yn[&quot;Optical Character Recognition&quot;](t)||(!!Yn[&quot;Enclosed Alphanumerics&quot;](t)||(!!Yn[&quot;Geometric Shapes&quot;](t)||(!(!Yn[&quot;Miscellaneous Symbols&quot;](t)||t&gt;=9754&amp;&amp;t&lt;=9759)||(!(!Yn[&quot;Miscellaneous Symbols and Arrows&quot;](t)||!(t&gt;=11026&amp;&amp;t&lt;=11055||t&gt;=11088&amp;&amp;t&lt;=11097||t&gt;=11192&amp;&amp;t&lt;=11243))||(!!Yn[&quot;CJK Symbols and Punctuation&quot;](t)||(!!Yn.Katakana(t)||(!!Yn[&quot;Private Use Area&quot;](t)||(!!Yn[&quot;CJK Compatibility Forms&quot;](t)||(!!Yn[&quot;Small Form Variants&quot;](t)||(!!Yn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||(8734===t||8756===t||8757===t||t&gt;=9984&amp;&amp;t&lt;=10087||t&gt;=10102&amp;&amp;t&lt;=10131||65532===t||65533===t)))))))))))))))))}(t))}function Kn(t){return t&gt;=1424&amp;&amp;t&lt;=2303||Yn[&quot;Arabic Presentation Forms-A&quot;](t)||Yn[&quot;Arabic Presentation Forms-B&quot;](t)}function Qn(t,e){return!(!e&amp;&amp;Kn(t))&amp;&amp;!(t&gt;=2304&amp;&amp;t&lt;=3583||t&gt;=3840&amp;&amp;t&lt;=4255||Yn.Khmer(t))}function $n(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(Kn(r[e].charCodeAt(0)))return!0}return!1}var ti=&quot;deferred&quot;,ei=&quot;loading&quot;,ri=&quot;loaded&quot;,ni=&quot;error&quot;,ii=null,ai=&quot;unavailable&quot;,oi=null,si=function(t){t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;t.indexOf(&quot;NetworkError&quot;)&gt;-1&amp;&amp;(ai=ni),ii&amp;&amp;ii(t)};function li(){ci.fire(new Mt(&quot;pluginStateChange&quot;,{pluginStatus:ai,pluginURL:oi}))}var ci=new Et,ui=function(){return ai},fi=function(){if(ai!==ti||!oi)throw new Error(&quot;rtl-text-plugin cannot be downloaded unless a pluginURL is specified&quot;);ai=ei,li(),oi&amp;&amp;xt({url:oi},(function(t){t?si(t):(ai=ri,li())}))},hi={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ai===ri||null!=hi.applyArabicShaping},isLoading:function(){return ai===ei},setState:function(t){ai=t.pluginStatus,oi=t.pluginURL},isParsed:function(){return null!=hi.applyArabicShaping&amp;&amp;null!=hi.processBidirectionalText&amp;&amp;null!=hi.processStyledBidirectionalText},getPluginURL:function(){return oi}},pi=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Gn,this.transition={})};pi.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){if(!Qn(n[r].charCodeAt(0),e))return!1}return!0}(t,hi.isLoaded())},pi.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},pi.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t&gt;this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var di=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Br(t))return new Kr(t,e);if(Yr(t)){var r=Jr(t,e);if(&quot;error&quot;===r.result)throw new Error(r.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return r.value}var n=t;return&quot;string&quot;==typeof t&amp;&amp;&quot;color&quot;===e.type&amp;&amp;(n=te.parse(t)),{kind:&quot;constant&quot;,evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};di.prototype.isDataDriven=function(){return&quot;source&quot;===this.expression.kind||&quot;composite&quot;===this.expression.kind},di.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var gi=function(t){this.property=t,this.value=new di(t,void 0)};gi.prototype.transitioned=function(t,e){return new vi(this.property,this.value,e,u({},t.transition,this.transition),t.now)},gi.prototype.untransitioned=function(){return new vi(this.property,this.value,null,{},0)};var mi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};mi.prototype.getValue=function(t){return x(this._values[t].value.value)},mi.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new gi(this._values[t].property)),this._values[t].value=new di(this._values[t].property,null===e?void 0:x(e))},mi.prototype.getTransition=function(t){return x(this._values[t].transition)},mi.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new gi(this._values[t].property)),this._values[t].transition=x(e)||void 0},mi.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i);var a=this.getTransition(n);void 0!==a&amp;&amp;(t[n+&quot;-transition&quot;]=a)}return t},mi.prototype.transitioned=function(t,e){for(var r=new yi(this._properties),n=0,i=Object.keys(this._values);n&lt;i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},mi.prototype.untransitioned=function(){for(var t=new yi(this._properties),e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var vi=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&amp;&amp;(n.delay||n.duration)&amp;&amp;(this.prior=r)};vi.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n&gt;this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n&lt;this.begin)return a.possiblyEvaluate(t,e,r);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(t,e,r),i,function(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}(o))}return i};var yi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};yi.prototype.possiblyEvaluate=function(t,e,r){for(var n=new _i(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n},yi.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t&lt;e.length;t+=1){var r=e[t];if(this._values[r].prior)return!0}return!1};var xi=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};xi.prototype.getValue=function(t){return x(this._values[t].value)},xi.prototype.setValue=function(t,e){this._values[t]=new di(this._values[t].property,null===e?void 0:x(e))},xi.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i)}return t},xi.prototype.possiblyEvaluate=function(t,e,r){for(var n=new _i(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n};var bi=function(t,e,r){this.property=t,this.value=e,this.parameters=r};bi.prototype.isConstant=function(){return&quot;constant&quot;===this.value.kind},bi.prototype.constantOr=function(t){return&quot;constant&quot;===this.value.kind?this.value.value:t},bi.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var _i=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};_i.prototype.get=function(t){return this._values[t]};var wi=function(t){this.specification=t};wi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},wi.prototype.interpolate=function(t,e,r){var n=Ge[this.specification.type];return n?n(t,e,r):t};var Ti=function(t,e){this.specification=t,this.overrides=e};Ti.prototype.possiblyEvaluate=function(t,e,r,n){return&quot;constant&quot;===t.expression.kind||&quot;camera&quot;===t.expression.kind?new bi(this,{kind:&quot;constant&quot;,value:t.expression.evaluate(e,null,{},r,n)},e):new bi(this,t.expression,e)},Ti.prototype.interpolate=function(t,e,r){if(&quot;constant&quot;!==t.value.kind||&quot;constant&quot;!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new bi(this,{kind:&quot;constant&quot;,value:void 0},t.parameters);var n=Ge[this.specification.type];return n?new bi(this,{kind:&quot;constant&quot;,value:n(t.value.value,e.value.value,r)},t.parameters):t},Ti.prototype.evaluate=function(t,e,r,n,i,a){return&quot;constant&quot;===t.kind?t.value:t.evaluate(e,r,n,i,a)};var ki=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new bi(this,{kind:&quot;constant&quot;,value:void 0},e);if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n),a=&quot;resolvedImage&quot;===t.property.specification.type&amp;&amp;&quot;string&quot;!=typeof i?i.name:i,o=this._calculate(a,a,a,e);return new bi(this,{kind:&quot;constant&quot;,value:o},e)}if(&quot;camera&quot;===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new bi(this,{kind:&quot;constant&quot;,value:s},e)}return new bi(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,i,a){if(&quot;source&quot;===t.kind){var o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return&quot;composite&quot;===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(Ti),Ai=function(t){this.specification=t};Ai.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new pi(Math.floor(e.zoom-1),e)),t.expression.evaluate(new pi(Math.floor(e.zoom),e)),t.expression.evaluate(new pi(Math.floor(e.zoom+1),e)),e)}},Ai.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},Ai.prototype.interpolate=function(t){return t};var Mi=function(t){this.specification=t};Mi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},Mi.prototype.interpolate=function(){return!1};var Si=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&amp;&amp;this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new di(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new gi(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Nn(&quot;DataDrivenProperty&quot;,Ti),Nn(&quot;DataConstantProperty&quot;,wi),Nn(&quot;CrossFadedDataDrivenProperty&quot;,ki),Nn(&quot;CrossFadedProperty&quot;,Ai),Nn(&quot;ColorRampProperty&quot;,Mi);var Ei=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},&quot;custom&quot;!==e.type&amp;&amp;(e=e,this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,&quot;background&quot;!==e.type&amp;&amp;(this.source=e.source,this.sourceLayer=e[&quot;source-layer&quot;],this.filter=e.filter),r.layout&amp;&amp;(this._unevaluatedLayout=new xi(r.layout)),r.paint)){for(var n in this._transitionablePaint=new mi(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new _i(r.paint)}}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return&quot;visibility&quot;===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e){var n=&quot;layers.&quot;+this.id+&quot;.layout.&quot;+t;if(this._validate(In,n,t,e,r))return}&quot;visibility&quot;!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e},e.prototype.getPaintProperty=function(t){return m(t,&quot;-transition&quot;)?this._transitionablePaint.getTransition(t.slice(0,-&quot;-transition&quot;.length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e){var n=&quot;layers.&quot;+this.id+&quot;.paint.&quot;+t;if(this._validate(Pn,n,t,e,r))return!1}if(m(t,&quot;-transition&quot;))return this._transitionablePaint.setTransition(t.slice(0,-&quot;-transition&quot;.length),e||void 0),!1;var i=this._transitionablePaint._values[t],a=&quot;cross-faded-data-driven&quot;===i.property.specification[&quot;property-type&quot;],o=i.value.isDataDriven(),s=i.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var l=this._transitionablePaint._values[t].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(t,s,l)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&amp;&amp;t&lt;this.minzoom)||(!!(this.maxzoom&amp;&amp;t&gt;=this.maxzoom)||&quot;none&quot;===this.visibility)},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&amp;&amp;(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&amp;&amp;(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,&quot;source-layer&quot;:this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&amp;&amp;this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&amp;&amp;this._transitionablePaint.serialize()};return this.visibility&amp;&amp;(t.layout=t.layout||{},t.layout.visibility=this.visibility),y(t,(function(t,e){return!(void 0===t||&quot;layout&quot;===e&amp;&amp;!Object.keys(t).length||&quot;paint&quot;===e&amp;&amp;!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),(!i||!1!==i.validate)&amp;&amp;On(this,t.call(Ln,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:Lt,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof bi&amp;&amp;zr(e.property.specification)&amp;&amp;((&quot;source&quot;===e.value.kind||&quot;composite&quot;===e.value.kind)&amp;&amp;e.value.isStateDependent))return!0}return!1},e}(Et),Li={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ci=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Pi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ii(t,e){void 0===e&amp;&amp;(e=1);var r=0,n=0;return{members:t.map((function(t){var i,a=(i=t.type,Li[i].BYTES_PER_ELEMENT),o=r=Oi(r,Math.max(e,a)),s=t.components||1;return n=Math.max(n,a),r+=a*s,{name:t.name,type:t.type,components:s,offset:o}})),size:Oi(r,Math.max(n,e)),alignment:e}}function Oi(t,e){return Math.ceil(t/e)*e}Pi.serialize=function(t,e){return t._trim(),e&amp;&amp;(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Pi.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Pi.prototype._trim=function(){this.length!==this.capacity&amp;&amp;(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Pi.prototype.clear=function(){this.length=0},Pi.prototype.resize=function(t){this.reserve(t),this.length=t},Pi.prototype.reserve=function(t){if(t&gt;this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&amp;&amp;this.uint8.set(e)}},Pi.prototype._refreshViews=function(){throw new Error(&quot;_refreshViews() must be implemented by each concrete StructArray layout&quot;)};var zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(Pi);zi.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout2i4&quot;,zi);var Di=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(Pi);Di.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout4i8&quot;,Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(Pi);Ri.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout2i4i12&quot;,Ri);var Fi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(Pi);Fi.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout2i4ub8&quot;,Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,h=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[h+16]=c,this.uint8[h+17]=u,t},e}(Pi);Bi.prototype.bytesPerElement=18,Nn(&quot;StructArrayLayout8ui2ub18&quot;,Bi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=f,this.int16[p+11]=h,t},e}(Pi);Ni.prototype.bytesPerElement=24,Nn(&quot;StructArrayLayout4i4ui4i24&quot;,Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(Pi);ji.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout3f12&quot;,ji);var Ui=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint32[r+0]=e,t},e}(Pi);Ui.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout1ul4&quot;,Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(Pi);Vi.prototype.bytesPerElement=20,Nn(&quot;StructArrayLayout6i1ul2ui20&quot;,Vi);var qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(Pi);qi.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout2i2i2i12&quot;,qi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(Pi);Hi.prototype.bytesPerElement=16,Nn(&quot;StructArrayLayout2f1f2i16&quot;,Hi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(Pi);Gi.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout2ub2f12&quot;,Gi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(Pi);Yi.prototype.bytesPerElement=6,Nn(&quot;StructArrayLayout3ui6&quot;,Yi);var Wi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v){var y=24*t,x=12*t,b=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=f,this.float32[x+8]=h,this.uint8[b+36]=p,this.uint8[b+37]=d,this.uint8[b+38]=g,this.uint32[x+10]=m,this.int16[y+22]=v,t},e}(Pi);Wi.prototype.bytesPerElement=48,Nn(&quot;StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48&quot;,Wi);var Xi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,A,M,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,A,M,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,A,M,S,E){var L=34*t,C=17*t;return this.int16[L+0]=e,this.int16[L+1]=r,this.int16[L+2]=n,this.int16[L+3]=i,this.int16[L+4]=a,this.int16[L+5]=o,this.int16[L+6]=s,this.int16[L+7]=l,this.uint16[L+8]=c,this.uint16[L+9]=u,this.uint16[L+10]=f,this.uint16[L+11]=h,this.uint16[L+12]=p,this.uint16[L+13]=d,this.uint16[L+14]=g,this.uint16[L+15]=m,this.uint16[L+16]=v,this.uint16[L+17]=y,this.uint16[L+18]=x,this.uint16[L+19]=b,this.uint16[L+20]=_,this.uint16[L+21]=w,this.uint16[L+22]=T,this.uint32[C+12]=k,this.float32[C+13]=A,this.float32[C+14]=M,this.float32[C+15]=S,this.float32[C+16]=E,t},e}(Pi);Xi.prototype.bytesPerElement=68,Nn(&quot;StructArrayLayout8i15ui1ul4f68&quot;,Xi);var Zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.float32[r+0]=e,t},e}(Pi);Zi.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout1f4&quot;,Zi);var Ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(Pi);Ji.prototype.bytesPerElement=6,Nn(&quot;StructArrayLayout3i6&quot;,Ji);var Ki=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=2*t,a=4*t;return this.uint32[i+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=n,t},e}(Pi);Ki.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout1ul2ui8&quot;,Ki);var Qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(Pi);Qi.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout2ui4&quot;,Qi);var $i=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint16[r+0]=e,t},e}(Pi);$i.prototype.bytesPerElement=2,Nn(&quot;StructArrayLayout1ui2&quot;,$i);var ta=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(Pi);ta.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout2f8&quot;,ta);var ea=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(Pi);ea.prototype.bytesPerElement=16,Nn(&quot;StructArrayLayout4f16&quot;,ea);var ra=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(Ci);ra.prototype.size=20;var na=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ra(this,t)},e}(Vi);Nn(&quot;CollisionBoxArray&quot;,na);var ia=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(Ci);ia.prototype.size=48;var aa=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ia(this,t)},e}(Wi);Nn(&quot;PlacedSymbolArray&quot;,aa);var oa=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(Ci);oa.prototype.size=68;var sa=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new oa(this,t)},e}(Xi);Nn(&quot;SymbolInstanceArray&quot;,sa);var la=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(Zi);Nn(&quot;GlyphOffsetArray&quot;,la);var ca=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Ji);Nn(&quot;SymbolLineVertexArray&quot;,ca);var ua=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(Ci);ua.prototype.size=8;var fa=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ua(this,t)},e}(Ki);Nn(&quot;FeatureIndexArray&quot;,fa);var ha=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,pa=function(t){void 0===t&amp;&amp;(t=[]),this.segments=t};function da(t,e){return 256*(t=l(Math.floor(t),0,255))+(e=l(Math.floor(e),0,255))}pa.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t&gt;pa.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;_(&quot;Max vertices per segment is &quot;+pa.MAX_VERTEX_ARRAY_LENGTH+&quot;: bucket requested &quot;+t),(!i||i.vertexLength+t&gt;pa.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&amp;&amp;(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&amp;&amp;(i.sortKey=n),this.segments.push(i)),i},pa.prototype.get=function(){return this.segments},pa.prototype.destroy=function(){for(var t=0,e=this.segments;t&lt;e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},pa.simpleSegment=function(t,e,r,n){return new pa([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},pa.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Nn(&quot;SegmentVector&quot;,pa);var ga=Ii([{name:&quot;a_pattern_from&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pattern_to&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixel_ratio_from&quot;,components:1,type:&quot;Uint8&quot;},{name:&quot;a_pixel_ratio_to&quot;,components:1,type:&quot;Uint8&quot;}]),ma=e((function(t){t.exports=function(t,e){var r,n,i,a,o,s,l,c;for(r=3&amp;t.length,n=t.length-r,i=e,o=3432918353,s=461845907,c=0;c&lt;n;)l=255&amp;t.charCodeAt(c)|(255&amp;t.charCodeAt(++c))&lt;&lt;8|(255&amp;t.charCodeAt(++c))&lt;&lt;16|(255&amp;t.charCodeAt(++c))&lt;&lt;24,++c,i=27492+(65535&amp;(a=5*(65535&amp;(i=(i^=l=(65535&amp;(l=(l=(65535&amp;l)*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;13|i&gt;&gt;&gt;19))+((5*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295))+((58964+(a&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16);switch(l=0,r){case 3:l^=(255&amp;t.charCodeAt(c+2))&lt;&lt;16;case 2:l^=(255&amp;t.charCodeAt(c+1))&lt;&lt;8;case 1:i^=l=(65535&amp;(l=(l=(65535&amp;(l^=255&amp;t.charCodeAt(c)))*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295}return i^=t.length,i=2246822507*(65535&amp;(i^=i&gt;&gt;&gt;16))+((2246822507*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,i=3266489909*(65535&amp;(i^=i&gt;&gt;&gt;13))+((3266489909*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,(i^=i&gt;&gt;&gt;16)&gt;&gt;&gt;0}})),va=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n&gt;=4;)r=1540483477*(65535&amp;(r=255&amp;t.charCodeAt(a)|(255&amp;t.charCodeAt(++a))&lt;&lt;8|(255&amp;t.charCodeAt(++a))&lt;&lt;16|(255&amp;t.charCodeAt(++a))&lt;&lt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),i=1540483477*(65535&amp;i)+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)^(r=1540483477*(65535&amp;(r^=r&gt;&gt;&gt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)),n-=4,++a;switch(n){case 3:i^=(255&amp;t.charCodeAt(a+2))&lt;&lt;16;case 2:i^=(255&amp;t.charCodeAt(a+1))&lt;&lt;8;case 1:i=1540483477*(65535&amp;(i^=255&amp;t.charCodeAt(a)))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)}return i=1540483477*(65535&amp;(i^=i&gt;&gt;&gt;13))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),(i^=i&gt;&gt;&gt;15)&gt;&gt;&gt;0}})),ya=ma,xa=ma,ba=va;ya.murmur3=xa,ya.murmur2=ba;var _a=function(){this.ids=[],this.positions=[],this.indexed=!1};_a.prototype.add=function(t,e,r,n){this.ids.push(Ta(t)),this.positions.push(e,r,n)},_a.prototype.getPositions=function(t){for(var e=Ta(t),r=0,n=this.ids.length-1;r&lt;n;){var i=r+n&gt;&gt;1;this.ids[i]&gt;=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;){var o=this.positions[3*r],s=this.positions[3*r+1],l=this.positions[3*r+2];a.push({index:o,start:s,end:l}),r++}return a},_a.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,i){for(;n&lt;i;){for(var a=e[n+i&gt;&gt;1],o=n-1,s=i+1;;){do{o++}while(e[o]&lt;a);do{s--}while(e[s]&gt;a);if(o&gt;=s)break;ka(e,o,s),ka(r,3*o,3*s),ka(r,3*o+1,3*s+1),ka(r,3*o+2,3*s+2)}s-n&lt;i-s?(t(e,r,n,s),n=s+1):(t(e,r,s+1,i),i=s)}}(r,n,0,r.length-1),e&amp;&amp;e.push(r.buffer,n.buffer),{ids:r,positions:n}},_a.deserialize=function(t){var e=new _a;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var wa=Math.pow(2,53)-1;function Ta(t){var e=+t;return!isNaN(e)&amp;&amp;e&lt;=wa?e:ya(String(t))}function ka(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Nn(&quot;FeaturePositionMap&quot;,_a);var Aa=function(t,e){this.gl=t.gl,this.location=e},Ma=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1i(this.location,t))},e}(Aa),Sa=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1f(this.location,t))},e}(Aa),Ea=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(Aa),La=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(Aa),Ca=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]&amp;&amp;t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(Aa),Pa=function(t){function e(e,r){t.call(this,e,r),this.current=te.transparent}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t.r===this.current.r&amp;&amp;t.g===this.current.g&amp;&amp;t.b===this.current.b&amp;&amp;t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(Aa),Ia=new Float32Array(16),Oa=function(t){function e(e,r){t.call(this,e,r),this.current=Ia}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e&lt;16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(Aa);function za(t){return[da(255*t.r,255*t.g),da(255*t.b,255*t.a)]}var Da=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.type=r};Da.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},Da.prototype.getBinding=function(t,e,r){return&quot;color&quot;===this.type?new Pa(t,e):new Sa(t,e)};var Ra=function(t,e){this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Ra.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Ra.prototype.setUniform=function(t,e,r,n){var i=&quot;u_pattern_to&quot;===n?this.patternTo:&quot;u_pattern_from&quot;===n?this.patternFrom:&quot;u_pixel_ratio_to&quot;===n?this.pixelRatioTo:&quot;u_pixel_ratio_from&quot;===n?this.pixelRatioFrom:null;i&amp;&amp;t.set(i)},Ra.prototype.getBinding=function(t,e,r){return&quot;u_pattern&quot;===r.substr(0,9)?new Ca(t,e):new Sa(t,e)};var Fa=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?2:1,offset:0}})),this.paintVertexArray=new n};Fa.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.paintVertexArray.length,o=this.expression.evaluate(new pi(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)},Fa.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)},Fa.prototype._setPaintValue=function(t,e,r){if(&quot;color&quot;===this.type)for(var n=za(r),i=t;i&lt;e;i++)this.paintVertexArray.emplace(i,n[0],n[1]);else{for(var a=t;a&lt;e;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Fa.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Fa.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()};var Ba=function(t,e,r,n,i,a){this.expression=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t+&quot;_t&quot;})),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?4:2,offset:0}})),this.paintVertexArray=new a};Ba.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.expression.evaluate(new pi(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new pi(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)},Ba.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)},Ba.prototype._setPaintValue=function(t,e,r,n){if(&quot;color&quot;===this.type)for(var i=za(r),a=za(n),o=t;o&lt;e;o++)this.paintVertexArray.emplace(o,i[0],i[1],a[0],a[1]);else{for(var s=t;s&lt;e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ba.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ba.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Ba.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=l(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ba.prototype.getBinding=function(t,e,r){return new Sa(t,e)};var Na=function(t,e,r,n,i,a){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Na.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&amp;&amp;e.patterns[this.layerId],r)},Na.prototype.updatePaintArray=function(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&amp;&amp;r.patterns[this.layerId],i)},Na.prototype._setPaintValues=function(t,e,r,n){if(n&amp;&amp;r){var i=r.min,a=r.mid,o=r.max,s=n[i],l=n[a],c=n[o];if(s&amp;&amp;l&amp;&amp;c)for(var u=t;u&lt;e;u++)this.zoomInPaintVertexArray.emplace(u,l.tl[0],l.tl[1],l.br[0],l.br[1],s.tl[0],s.tl[1],s.br[0],s.br[1],l.pixelRatio,s.pixelRatio),this.zoomOutPaintVertexArray.emplace(u,l.tl[0],l.tl[1],l.br[0],l.br[1],c.tl[0],c.tl[1],c.br[0],c.br[1],l.pixelRatio,c.pixelRatio)}},Na.prototype.upload=function(t){this.zoomInPaintVertexArray&amp;&amp;this.zoomInPaintVertexArray.arrayBuffer&amp;&amp;this.zoomOutPaintVertexArray&amp;&amp;this.zoomOutPaintVertexArray.arrayBuffer&amp;&amp;(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,ga.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,ga.members,this.expression.isStateDependent))},Na.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&amp;&amp;this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&amp;&amp;this.zoomInPaintVertexBuffer.destroy()};var ja=function(t,e,r,n){this.binders={},this.layoutAttributes=n,this._buffers=[];var i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof bi&amp;&amp;zr(o.property.specification)){var s=Va(a,t.type),l=o.value,c=o.property.specification.type,u=o.property.useIntegerZoom,f=o.property.specification[&quot;property-type&quot;],h=&quot;cross-faded&quot;===f||&quot;cross-faded-data-driven&quot;===f;if(&quot;constant&quot;===l.kind)this.binders[a]=h?new Ra(l.value,s):new Da(l.value,s,c),i.push(&quot;/u_&quot;+a);else if(&quot;source&quot;===l.kind||h){var p=qa(a,c,&quot;source&quot;);this.binders[a]=h?new Na(l,c,u,e,p,t.id):new Fa(l,s,c,p),i.push(&quot;/a_&quot;+a)}else{var d=qa(a,c,&quot;composite&quot;);this.binders[a]=new Ba(l,s,c,u,e,d),i.push(&quot;/z_&quot;+a)}}}this.cacheKey=i.sort().join(&quot;&quot;)};ja.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Fa||e instanceof Ba?e.maxValue:0},ja.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a in this.binders){var o=this.binders[a];(o instanceof Fa||o instanceof Ba||o instanceof Na)&amp;&amp;o.populatePaintArray(t,e,r,n,i)}},ja.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof Ra&amp;&amp;n.setConstantPatternPositions(t,e)}},ja.prototype.updatePaintArrays=function(t,e,r,n,i){var a=!1;for(var o in t)for(var s=0,l=e.getPositions(o);s&lt;l.length;s+=1){var c=l[s],u=r.feature(c.index);for(var f in this.binders){var h=this.binders[f];if((h instanceof Fa||h instanceof Ba||h instanceof Na)&amp;&amp;!0===h.expression.isStateDependent){var p=n.paint.get(f);h.expression=p.value,h.updatePaintArray(c.start,c.end,u,t[o],i),a=!0}}}return a},ja.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof Da||r instanceof Ra)&amp;&amp;t.push.apply(t,r.uniformNames.map((function(t){return&quot;#define HAS_UNIFORM_&quot;+t})))}return t},ja.prototype.getPaintVertexBuffers=function(){return this._buffers},ja.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var i=this.binders[n];if(i instanceof Da||i instanceof Ra||i instanceof Ba)for(var a=0,o=i.uniformNames;a&lt;o.length;a+=1){var s=o[a];if(e[s]){var l=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:l})}}}return r},ja.prototype.setUniforms=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.name,l=o.property,c=o.binding;this.binders[l].setUniform(c,n,r.get(l),s)}},ja.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&amp;&amp;r instanceof Na){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&amp;&amp;this._buffers.push(n)}else(r instanceof Fa||r instanceof Ba)&amp;&amp;r.paintVertexBuffer&amp;&amp;this._buffers.push(r.paintVertexBuffer)}},ja.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Fa||r instanceof Ba||r instanceof Na)&amp;&amp;r.upload(t)}this.updatePaintBuffers()},ja.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Fa||e instanceof Ba||e instanceof Na)&amp;&amp;e.destroy()}};var Ua=function(t,e,r,n){void 0===n&amp;&amp;(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=new ja(o,r,n,t)}this.needsUpload=!1,this._featureMap=new _a,this._bufferOffset=0};function Va(t,e){return{&quot;text-opacity&quot;:[&quot;opacity&quot;],&quot;icon-opacity&quot;:[&quot;opacity&quot;],&quot;text-color&quot;:[&quot;fill_color&quot;],&quot;icon-color&quot;:[&quot;fill_color&quot;],&quot;text-halo-color&quot;:[&quot;halo_color&quot;],&quot;icon-halo-color&quot;:[&quot;halo_color&quot;],&quot;text-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;icon-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;text-halo-width&quot;:[&quot;halo_width&quot;],&quot;icon-halo-width&quot;:[&quot;halo_width&quot;],&quot;line-gap-width&quot;:[&quot;gapwidth&quot;],&quot;line-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-extrusion-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;]}[t]||[t.replace(e+&quot;-&quot;,&quot;&quot;).replace(/-/g,&quot;_&quot;)]}function qa(t,e,r){var n={color:{source:ta,composite:ea},number:{source:Zi,composite:ta}},i=function(t){return{&quot;line-pattern&quot;:{source:Bi,composite:Bi},&quot;fill-pattern&quot;:{source:Bi,composite:Bi},&quot;fill-extrusion-pattern&quot;:{source:Bi,composite:Bi}}[t]}(t);return i&amp;&amp;i[r]||n[e][r]}Ua.prototype.populatePaintArrays=function(t,e,r,n,i,a){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,n,i,a);void 0!==e.id&amp;&amp;this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ua.prototype.updatePaintArrays=function(t,e,r,n){for(var i=0,a=r;i&lt;a.length;i+=1){var o=a[i];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n)||this.needsUpload}},Ua.prototype.get=function(t){return this.programConfigurations[t]},Ua.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ua.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Nn(&quot;ConstantBinder&quot;,Da),Nn(&quot;CrossFadedConstantBinder&quot;,Ra),Nn(&quot;SourceExpressionBinder&quot;,Fa),Nn(&quot;CrossFadedCompositeBinder&quot;,Na),Nn(&quot;CompositeExpressionBinder&quot;,Ba),Nn(&quot;ProgramConfiguration&quot;,ja,{omit:[&quot;_buffers&quot;]}),Nn(&quot;ProgramConfigurationSet&quot;,Ua);var Ha,Ga=(Ha=15,{min:-1*Math.pow(2,Ha-1),max:Math.pow(2,Ha-1)-1});function Ya(t){for(var e=8192/t.extent,r=t.loadGeometry(),n=0;n&lt;r.length;n++)for(var i=r[n],a=0;a&lt;i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x&lt;Ga.min||o.x&gt;Ga.max||o.y&lt;Ga.min||o.y&gt;Ga.max)&amp;&amp;(_(&quot;Geometry exceeds allowed extent, reduce your vector tile buffer size&quot;),o.x=l(o.x,Ga.min,Ga.max),o.y=l(o.y,Ga.min,Ga.max))}return r}function Wa(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Xa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new zi,this.indexArray=new Yi,this.segments=new pa,this.programConfigurations=new Ua(ha,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Za(t,e){for(var r=0;r&lt;t.length;r++)if(io(e,t[r]))return!0;for(var n=0;n&lt;e.length;n++)if(io(t,e[n]))return!0;return!!$a(t,e)}function Ja(t,e,r){return!!io(t,e)||!!eo(e,t,r)}function Ka(t,e){if(1===t.length)return no(e,t[0]);for(var r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++)if(io(t,n[i]))return!0;for(var a=0;a&lt;t.length;a++)if(no(e,t[a]))return!0;for(var o=0;o&lt;e.length;o++)if($a(t,e[o]))return!0;return!1}function Qa(t,e,r){if(t.length&gt;1){if($a(t,e))return!0;for(var n=0;n&lt;e.length;n++)if(eo(e[n],t,r))return!0}for(var i=0;i&lt;t.length;i++)if(eo(t[i],e,r))return!0;return!1}function $a(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r&lt;t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a&lt;e.length-1;a++){if(to(n,i,e[a],e[a+1]))return!0}return!1}function to(t,e,r,n){return w(t,r,n)!==w(e,r,n)&amp;&amp;w(t,e,r)!==w(t,e,n)}function eo(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])&lt;n;for(var i=1;i&lt;e.length;i++){if(ro(t,e[i-1],e[i])&lt;n)return!0}return!1}function ro(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return i&lt;0?t.distSqr(e):i&gt;1?t.distSqr(r):t.distSqr(r.sub(e)._mult(i)._add(e))}function no(t,e){for(var r,n,i,a=!1,o=0;o&lt;t.length;o++)for(var s=0,l=(r=t[o]).length-1;s&lt;r.length;l=s++)n=r[s],i=r[l],n.y&gt;e.y!=i.y&gt;e.y&amp;&amp;e.x&lt;(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&amp;&amp;(a=!a);return a}function io(t,e){for(var r=!1,n=0,i=t.length-1;n&lt;t.length;i=n++){var a=t[n],o=t[i];a.y&gt;e.y!=o.y&gt;e.y&amp;&amp;e.x&lt;(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&amp;&amp;(r=!r)}return r}function ao(t,e,r){var n=r[0],i=r[2];if(t.x&lt;n.x&amp;&amp;e.x&lt;n.x||t.x&gt;i.x&amp;&amp;e.x&gt;i.x||t.y&lt;n.y&amp;&amp;e.y&lt;n.y||t.y&gt;i.y&amp;&amp;e.y&gt;i.y)return!1;var a=w(t,e,r[0]);return a!==w(t,e,r[1])||a!==w(t,e,r[2])||a!==w(t,e,r[3])}function oo(t,e,r){var n=e.paint.get(t).value;return&quot;constant&quot;===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function so(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function lo(t,e,r,n,a){if(!e[0]&amp;&amp;!e[1])return t;var o=i.convert(e)._mult(a);&quot;viewport&quot;===r&amp;&amp;o._rotate(-n);for(var s=[],l=0;l&lt;t.length;l++){var c=t[l];s.push(c.sub(o))}return s}Xa.prototype.populate=function(t,e,r){var n=this.layers[0],i=[],a=null;&quot;circle&quot;===n.type&amp;&amp;(a=n.layout.get(&quot;circle-sort-key&quot;));for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=l.feature,u=l.id,f=l.index,h=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:c.type,id:u,properties:c.properties,geometry:p?Ya(c):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),d,r)){p||(d.geometry=Ya(c));var g=a?a.evaluate(d,{},r):void 0,m={id:u,properties:c.properties,type:c.type,sourceLayerIndex:h,index:f,geometry:d.geometry,patterns:{},sortKey:g};i.push(m)}}a&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var v=0,y=i;v&lt;y.length;v+=1){var x=y[v],b=x,_=b.geometry,w=b.index,T=b.sourceLayerIndex,k=t[w].feature;this.addFeature(x,_,w,r),e.featureIndex.insert(k,_,w,T,this.index)}},Xa.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Xa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Xa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Xa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ha),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Xa.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Xa.prototype.addFeature=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1)for(var o=0,s=a[i];o&lt;s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c&lt;0||c&gt;=8192||u&lt;0||u&gt;=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;Wa(this.layoutVertexArray,c,u,-1,-1),Wa(this.layoutVertexArray,c,u,1,-1),Wa(this.layoutVertexArray,c,u,1,1),Wa(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Nn(&quot;CircleBucket&quot;,Xa,{omit:[&quot;layers&quot;]});var co=new Si({&quot;circle-sort-key&quot;:new Ti(Lt.layout_circle[&quot;circle-sort-key&quot;])}),uo={paint:new Si({&quot;circle-radius&quot;:new Ti(Lt.paint_circle[&quot;circle-radius&quot;]),&quot;circle-color&quot;:new Ti(Lt.paint_circle[&quot;circle-color&quot;]),&quot;circle-blur&quot;:new Ti(Lt.paint_circle[&quot;circle-blur&quot;]),&quot;circle-opacity&quot;:new Ti(Lt.paint_circle[&quot;circle-opacity&quot;]),&quot;circle-translate&quot;:new wi(Lt.paint_circle[&quot;circle-translate&quot;]),&quot;circle-translate-anchor&quot;:new wi(Lt.paint_circle[&quot;circle-translate-anchor&quot;]),&quot;circle-pitch-scale&quot;:new wi(Lt.paint_circle[&quot;circle-pitch-scale&quot;]),&quot;circle-pitch-alignment&quot;:new wi(Lt.paint_circle[&quot;circle-pitch-alignment&quot;]),&quot;circle-stroke-width&quot;:new Ti(Lt.paint_circle[&quot;circle-stroke-width&quot;]),&quot;circle-stroke-color&quot;:new Ti(Lt.paint_circle[&quot;circle-stroke-color&quot;]),&quot;circle-stroke-opacity&quot;:new Ti(Lt.paint_circle[&quot;circle-stroke-opacity&quot;])}),layout:co},fo=&quot;undefined&quot;!=typeof Float32Array?Float32Array:Array;function ho(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function po(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var go=po;var mo,vo,yo=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t};mo=new fo(3),fo!=Float32Array&amp;&amp;(mo[0]=0,mo[1]=0,mo[2]=0),vo=mo;function xo(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}!function(){var t=function(){var t=new fo(4);return fo!=Float32Array&amp;&amp;(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}()}();var bo=function(t){var e=t[0],r=t[1];return e*e+r*r},_o=(function(){var t=function(){var t=new fo(2);return fo!=Float32Array&amp;&amp;(t[0]=0,t[1]=0),t}()}(),function(t){function e(e){t.call(this,e,uo)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Xa(t)},e.prototype.queryRadius=function(t){var e=t;return oo(&quot;circle-radius&quot;,this,e)+oo(&quot;circle-stroke-width&quot;,this,e)+so(this.paint.get(&quot;circle-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=lo(t,this.paint.get(&quot;circle-translate&quot;),this.paint.get(&quot;circle-translate-anchor&quot;),a.angle,o),c=this.paint.get(&quot;circle-radius&quot;).evaluate(e,r)+this.paint.get(&quot;circle-stroke-width&quot;).evaluate(e,r),u=&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;),f=u?l:function(t,e){return t.map((function(t){return wo(t,e)}))}(l,s),h=u?c*o:c,p=0,d=n;p&lt;d.length;p+=1)for(var g=0,m=d[p];g&lt;m.length;g+=1){var v=m[g],y=u?v:wo(v,s),x=h,b=xo([],[v.x,v.y,0,1],s);if(&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)?x*=b[3]/a.cameraToCenterDistance:&quot;map&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)&amp;&amp;(x*=a.cameraToCenterDistance/b[3]),Ja(f,y,x))return!0}return!1},e}(Ei));function wo(t,e){var r=xo([],[t.x,t.y,0,1],e);return new i(r[0]/r[3],r[1]/r[3])}var To=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Xa);function ko(t,e,r,n){var i=e.width,a=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*a*r)throw new RangeError(&quot;mismatched image size&quot;)}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function Ao(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=ko({},{width:n,height:i},r);Mo(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function Mo(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width&gt;t.width||i.height&gt;t.height||r.x&gt;t.width-i.width||r.y&gt;t.height-i.height)throw new RangeError(&quot;out of range source coordinates for image copy&quot;);if(i.width&gt;e.width||i.height&gt;e.height||n.x&gt;e.width-i.width||n.y&gt;e.height-i.height)throw new RangeError(&quot;out of range destination coordinates for image copy&quot;);for(var o=t.data,s=e.data,l=0;l&lt;i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f&lt;i.width*a;f++)s[u+f]=o[c+f];return e}Nn(&quot;HeatmapBucket&quot;,To,{omit:[&quot;layers&quot;]});var So=function(t,e){ko(this,t,1,e)};So.prototype.resize=function(t){Ao(this,t,1)},So.prototype.clone=function(){return new So({width:this.width,height:this.height},new Uint8Array(this.data))},So.copy=function(t,e,r,n,i){Mo(t,e,r,n,i,1)};var Eo=function(t,e){ko(this,t,4,e)};Eo.prototype.resize=function(t){Ao(this,t,4)},Eo.prototype.replace=function(t,e){e?this.data.set(t):t instanceof Uint8ClampedArray?this.data=new Uint8Array(t.buffer):this.data=t},Eo.prototype.clone=function(){return new Eo({width:this.width,height:this.height},new Uint8Array(this.data))},Eo.copy=function(t,e,r,n,i){Mo(t,e,r,n,i,4)},Nn(&quot;AlphaImage&quot;,So),Nn(&quot;RGBAImage&quot;,Eo);var Lo={paint:new Si({&quot;heatmap-radius&quot;:new Ti(Lt.paint_heatmap[&quot;heatmap-radius&quot;]),&quot;heatmap-weight&quot;:new Ti(Lt.paint_heatmap[&quot;heatmap-weight&quot;]),&quot;heatmap-intensity&quot;:new wi(Lt.paint_heatmap[&quot;heatmap-intensity&quot;]),&quot;heatmap-color&quot;:new Mi(Lt.paint_heatmap[&quot;heatmap-color&quot;]),&quot;heatmap-opacity&quot;:new wi(Lt.paint_heatmap[&quot;heatmap-opacity&quot;])})};function Co(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i&lt;256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new Eo({width:256,height:1},r)}var Po=function(t){function e(e){t.call(this,e,Lo),this._updateColorRamp()}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new To(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;heatmap-color&quot;===t&amp;&amp;this._updateColorRamp()},e.prototype._updateColorRamp=function(){var t=this._transitionablePaint._values[&quot;heatmap-color&quot;].value.expression;this.colorRamp=Co(t,&quot;heatmapDensity&quot;),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&amp;&amp;(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;heatmap-opacity&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(Ei),Io={paint:new Si({&quot;hillshade-illumination-direction&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-illumination-direction&quot;]),&quot;hillshade-illumination-anchor&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-illumination-anchor&quot;]),&quot;hillshade-exaggeration&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-exaggeration&quot;]),&quot;hillshade-shadow-color&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-shadow-color&quot;]),&quot;hillshade-highlight-color&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-highlight-color&quot;]),&quot;hillshade-accent-color&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-accent-color&quot;])})},Oo=function(t){function e(e){t.call(this,e,Io)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;hillshade-exaggeration&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(Ei),zo=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,Do=Fo,Ro=Fo;function Fo(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&amp;&amp;e.length,f=u?e[0]*r:t.length,h=Bo(t,0,f,r,!0),p=[];if(!h||h.next===h.prev)return p;if(u&amp;&amp;(h=function(t,e,r,n){var i,a,o,s,l,c=[];for(i=0,a=e.length;i&lt;a;i++)o=e[i]*n,s=i&lt;a-1?e[i+1]*n:t.length,(l=Bo(t,o,s,n,!1))===l.next&amp;&amp;(l.steiner=!0),c.push(Zo(l));for(c.sort(Go),i=0;i&lt;c.length;i++)Yo(c[i],r),r=No(r,r.next);return r}(t,e,h,r)),t.length&gt;80*r){n=a=t[0],i=o=t[1];for(var d=r;d&lt;f;d+=r)(s=t[d])&lt;n&amp;&amp;(n=s),(l=t[d+1])&lt;i&amp;&amp;(i=l),s&gt;a&amp;&amp;(a=s),l&gt;o&amp;&amp;(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return jo(h,p,r,n,i,c),p}function Bo(t,e,r,n,i){var a,o;if(i===ls(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=as(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=as(a,t[a],t[a+1],o);return o&amp;&amp;$o(o,o.next)&amp;&amp;(os(o),o=o.next),o}function No(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!$o(n,n.next)&amp;&amp;0!==Qo(n.prev,n,n.next))n=n.next;else{if(os(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function jo(t,e,r,n,i,a,o){if(t){!o&amp;&amp;a&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=Xo(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Vo(t,n,i,a):Uo(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),os(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?jo(t=qo(No(t),e,r),e,r,n,i,a,2):2===o&amp;&amp;Ho(t,e,r,n,i,a):jo(No(t),e,r,n,i,a,1);break}}}function Uo(t){var e=t.prev,r=t,n=t.next;if(Qo(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Jo(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;Qo(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function Vo(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Qo(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=Xo(s,l,e,r,n),h=Xo(c,u,e,r,n),p=t.prevZ,d=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;d&amp;&amp;d.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;Qo(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,d!==t.prev&amp;&amp;d!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&amp;&amp;Qo(d.prev,d,d.next)&gt;=0)return!1;d=d.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;Qo(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;d&amp;&amp;d.z&lt;=h;){if(d!==t.prev&amp;&amp;d!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&amp;&amp;Qo(d.prev,d,d.next)&gt;=0)return!1;d=d.nextZ}return!0}function qo(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!$o(i,a)&amp;&amp;ts(i,n,n.next,a)&amp;&amp;ns(i,a)&amp;&amp;ns(a,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),os(n),os(n.next),n=t=a),n=n.next}while(n!==t);return No(n)}function Ho(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&amp;&amp;Ko(o,s)){var l=is(o,s);return o=No(o,o.next),l=No(l,l.next),jo(o,e,r,n,i,a),void jo(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Go(t,e){return t.x-e.x}function Yo(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;Jo(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),ns(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;Wo(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=is(e,t);No(e,e.next),No(r,r.next)}}function Wo(t,e){return Qo(t.prev,t,e.prev)&lt;0&amp;&amp;Qo(e.next,t,t.next)&lt;0}function Xo(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function Zo(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function Jo(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function Ko(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;ts(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(ns(t,e)&amp;&amp;ns(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(Qo(t.prev,t,e.prev)||Qo(t,e.prev,e))||$o(t,e)&amp;&amp;Qo(t.prev,t,t.next)&gt;0&amp;&amp;Qo(e.prev,e,e.next)&gt;0)}function Qo(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function $o(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function ts(t,e,r,n){var i=rs(Qo(t,e,r)),a=rs(Qo(t,e,n)),o=rs(Qo(r,n,t)),s=rs(Qo(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!es(t,r,e))||(!(0!==a||!es(t,n,e))||(!(0!==o||!es(r,t,n))||!(0!==s||!es(r,e,n)))))}function es(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function rs(t){return t&gt;0?1:t&lt;0?-1:0}function ns(t,e){return Qo(t.prev,t,t.next)&lt;0?Qo(t,e,t.next)&gt;=0&amp;&amp;Qo(t,t.prev,e)&gt;=0:Qo(t,e,t.prev)&lt;0||Qo(t,t.next,e)&lt;0}function is(t,e){var r=new ss(t.i,t.x,t.y),n=new ss(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function as(t,e,r,n){var i=new ss(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function os(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function ss(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ls(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function cs(t,e,r,n,i){!function t(e,r,n,i,a){for(;i&gt;n;){if(i-n&gt;600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2&lt;0?-1:1),f=Math.max(n,Math.floor(r-s*c/o+u)),h=Math.min(i,Math.floor(r+(o-s)*c/o+u));t(e,r,f,h,a)}var p=e[r],d=n,g=i;for(us(e,n,r),a(e[i],p)&gt;0&amp;&amp;us(e,n,i);d&lt;g;){for(us(e,d,g),d++,g--;a(e[d],p)&lt;0;)d++;for(;a(e[g],p)&gt;0;)g--}0===a(e[n],p)?us(e,n,g):(g++,us(e,g,i)),g&lt;=r&amp;&amp;(n=g+1),r&lt;=g&amp;&amp;(i=g-1)}}(t,e,r||0,n||t.length-1,i||fs)}function us(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function fs(t,e){return t&lt;e?-1:t&gt;e?1:0}function hs(t,e){var r=t.length;if(r&lt;=1)return[t];for(var n,i,a=[],o=0;o&lt;r;o++){var s=T(t[o]);0!==s&amp;&amp;(t[o].area=Math.abs(s),void 0===i&amp;&amp;(i=s&lt;0),i===s&lt;0?(n&amp;&amp;a.push(n),n=[t[o]]):n.push(t[o]))}if(n&amp;&amp;a.push(n),e&gt;1)for(var l=0;l&lt;a.length;l++)a[l].length&lt;=e||(cs(a[l],e,1,a[l].length-1,ps),a[l]=a[l].slice(0,e));return a}function ps(t,e){return e.area-t.area}function ds(t,e,r){for(var n=r.patternDependencies,i=!1,a=0,o=e;a&lt;o.length;a+=1){var s=o[a].paint.get(t+&quot;-pattern&quot;);s.isConstant()||(i=!0);var l=s.constantOr(null);l&amp;&amp;(i=!0,n[l.to]=!0,n[l.from]=!0)}return i}function gs(t,e,r,n,i){for(var a=i.patternDependencies,o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.paint.get(t+&quot;-pattern&quot;).value;if(&quot;constant&quot;!==c.kind){var u=c.evaluate({zoom:n-1},r,{},i.availableImages),f=c.evaluate({zoom:n},r,{},i.availableImages),h=c.evaluate({zoom:n+1},r,{},i.availableImages);u=u&amp;&amp;u.name?u.name:u,f=f&amp;&amp;f.name?f.name:f,h=h&amp;&amp;h.name?h.name:h,a[u]=!0,a[f]=!0,a[h]=!0,r.patterns[l.id]={min:u,mid:f,max:h}}}return r}Fo.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(ls(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(ls(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},Fo.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r},Do.default=Ro;var ms=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new zi,this.indexArray=new Yi,this.indexArray2=new Qi,this.programConfigurations=new Ua(zo,t.layers,t.zoom),this.segments=new pa,this.segments2=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};ms.prototype.populate=function(t,e,r){this.hasPattern=ds(&quot;fill&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;fill-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Ya(l):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),p,r)){h||(p.geometry=Ya(l));var d=n?n.evaluate(p,{},r,e.availableImages):void 0,g={id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d};i.push(g)}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m&lt;v.length;m+=1){var y=v[m],x=y,b=x.geometry,_=x.index,w=x.sourceLayerIndex;if(this.hasPattern){var T=gs(&quot;fill&quot;,this.layers,y,this.zoom,e);this.patternFeatures.push(T)}else this.addFeature(y,b,_,r,{});var k=t[_].feature;e.featureIndex.insert(k,b,_,w,this.index)}},ms.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},ms.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},ms.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},ms.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},ms.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,zo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},ms.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},ms.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=hs(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1){l+=u[c].length}for(var f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),h=f.vertexLength,p=[],d=[],g=0,m=s;g&lt;m.length;g+=1){var v=m[g];if(0!==v.length){v!==s[0]&amp;&amp;d.push(p.length/2);var y=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),x=y.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(x+v.length-1,x),p.push(v[0].x),p.push(v[0].y);for(var b=1;b&lt;v.length;b++)this.layoutVertexArray.emplaceBack(v[b].x,v[b].y),this.indexArray2.emplaceBack(x+b-1,x+b),p.push(v[b].x),p.push(v[b].y);y.vertexLength+=v.length,y.primitiveLength+=v.length}}for(var _=Do(p,d),w=0;w&lt;_.length;w+=3)this.indexArray.emplaceBack(h+_[w],h+_[w+1],h+_[w+2]);f.vertexLength+=l,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Nn(&quot;FillBucket&quot;,ms,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var vs=new Si({&quot;fill-sort-key&quot;:new Ti(Lt.layout_fill[&quot;fill-sort-key&quot;])}),ys={paint:new Si({&quot;fill-antialias&quot;:new wi(Lt.paint_fill[&quot;fill-antialias&quot;]),&quot;fill-opacity&quot;:new Ti(Lt.paint_fill[&quot;fill-opacity&quot;]),&quot;fill-color&quot;:new Ti(Lt.paint_fill[&quot;fill-color&quot;]),&quot;fill-outline-color&quot;:new Ti(Lt.paint_fill[&quot;fill-outline-color&quot;]),&quot;fill-translate&quot;:new wi(Lt.paint_fill[&quot;fill-translate&quot;]),&quot;fill-translate-anchor&quot;:new wi(Lt.paint_fill[&quot;fill-translate-anchor&quot;]),&quot;fill-pattern&quot;:new ki(Lt.paint_fill[&quot;fill-pattern&quot;])}),layout:vs},xs=function(t){function e(e){t.call(this,e,ys)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values[&quot;fill-outline-color&quot;];&quot;constant&quot;===n.value.kind&amp;&amp;void 0===n.value.value&amp;&amp;(this.paint._values[&quot;fill-outline-color&quot;]=this.paint._values[&quot;fill-color&quot;])},e.prototype.createBucket=function(t){return new ms(t)},e.prototype.queryRadius=function(){return so(this.paint.get(&quot;fill-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){return Ka(lo(t,this.paint.get(&quot;fill-translate&quot;),this.paint.get(&quot;fill-translate-anchor&quot;),a.angle,o),n)},e.prototype.isTileClipped=function(){return!0},e}(Ei),bs=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_normal_ed&quot;,components:4,type:&quot;Int16&quot;}],4).members,_s=ws;function ws(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(Ts,this,e)}function Ts(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){var r=t.readVarint()+t.pos;for(;t.pos&lt;r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&amp;&amp;(e._geometry=r.pos)}function ks(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i&lt;a;o=i++)e=t[i],n+=((r=t[o]).x-e.x)*(e.y+r.y);return n}ws.types=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ws.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,a=0,o=0,s=0,l=[];t.pos&lt;r;){if(a&lt;=0){var c=t.readVarint();n=7&amp;c,a=c&gt;&gt;3}if(a--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&amp;&amp;(e&amp;&amp;l.push(e),e=[]),e.push(new i(o,s));else{if(7!==n)throw new Error(&quot;unknown command &quot;+n);e&amp;&amp;e.push(e[0].clone())}}return e&amp;&amp;l.push(e),l},ws.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos&lt;e;){if(n&lt;=0){var u=t.readVarint();r=7&amp;u,n=u&gt;&gt;3}if(n--,1===r||2===r)(i+=t.readSVarint())&lt;o&amp;&amp;(o=i),i&gt;s&amp;&amp;(s=i),(a+=t.readSVarint())&lt;l&amp;&amp;(l=a),a&gt;c&amp;&amp;(c=a);else if(7!==r)throw new Error(&quot;unknown command &quot;+r)}return[o,l,s,c]},ws.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=ws.types[this.type];function u(t){for(var e=0;e&lt;t.length;e++){var r=t[e],n=180-360*(r.y+s)/a;t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n&lt;l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n&lt;l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e&lt;=1)return[t];for(var r,n,i=[],a=0;a&lt;e;a++){var o=ks(t[a]);0!==o&amp;&amp;(void 0===n&amp;&amp;(n=o&lt;0),n===o&lt;0?(r&amp;&amp;i.push(r),r=[t[a]]):r.push(t[a]))}r&amp;&amp;i.push(r);return i}(l),n=0;n&lt;l.length;n++)for(i=0;i&lt;l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=&quot;Multi&quot;+c;var h={type:&quot;Feature&quot;,geometry:{type:c,coordinates:l},properties:this.properties};return&quot;id&quot;in this&amp;&amp;(h.id=this.id),h};var As=Ms;function Ms(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Ss,this,e),this.length=this._features.length}function Ss(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&amp;&amp;e._values.push(function(t){var e=null,r=t.readVarint()+t.pos;for(;t.pos&lt;r;){var n=t.readVarint()&gt;&gt;3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function Es(t,e,r){if(3===t){var n=new As(r,r.readVarint()+r.pos);n.length&amp;&amp;(e[n.name]=n)}}Ms.prototype.feature=function(t){if(t&lt;0||t&gt;=this._features.length)throw new Error(&quot;feature index out of bounds&quot;);this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new _s(this._pbf,e,this.extent,this._keys,this._values)};var Ls={VectorTile:function(t,e){this.layers=t.readFields(Es,{},e)},VectorTileFeature:_s,VectorTileLayer:As},Cs=Ls.VectorTileFeature.types,Ps=Math.pow(2,13);function Is(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*Ps)+o,i*Ps*2,a*Ps*2,Math.round(s))}var Os=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ri,this.indexArray=new Yi,this.programConfigurations=new Ua(bs,t.layers,t.zoom),this.segments=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function zs(t,e){return t.x===e.x&amp;&amp;(t.x&lt;0||t.x&gt;8192)||t.y===e.y&amp;&amp;(t.y&lt;0||t.y&gt;8192)}function Ds(t){return t.every((function(t){return t.x&lt;0}))||t.every((function(t){return t.x&gt;8192}))||t.every((function(t){return t.y&lt;0}))||t.every((function(t){return t.y&gt;8192}))}Os.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=ds(&quot;fill-extrusion&quot;,this.layers,e);for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.feature,s=a.id,l=a.index,c=a.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,f={type:o.type,id:s,properties:o.properties,geometry:u?Ya(o):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),f,r)){var h={id:s,sourceLayerIndex:c,index:l,geometry:u?f.geometry:Ya(o),properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&amp;&amp;(h.id=o.id),this.hasPattern?this.features.push(gs(&quot;fill-extrusion&quot;,this.layers,h,this.zoom,e)):this.addFeature(h,h.geometry,l,r,{}),e.featureIndex.insert(o,h.geometry,l,c,this.index,!0)}}},Os.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.features;n&lt;i.length;n+=1){var a=i[n],o=a.geometry;this.addFeature(a,o,a.index,e,r)}},Os.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Os.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Os.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Os.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,bs),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Os.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Os.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=hs(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1){l+=u[c].length}for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=s;h&lt;p.length;h+=1){var d=p[h];if(0!==d.length&amp;&amp;!Ds(d))for(var g=0,m=0;m&lt;d.length;m++){var v=d[m];if(m&gt;=1){var y=d[m-1];if(!zs(v,y)){f.vertexLength+4&gt;pa.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);g+b&gt;32768&amp;&amp;(g=0),Is(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,g),Is(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,g),g+=b,Is(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,g),Is(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,g);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l&gt;pa.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),&quot;Polygon&quot;===Cs[t.type]){for(var w=[],T=[],k=f.vertexLength,A=0,M=s;A&lt;M.length;A+=1){var S=M[A];if(0!==S.length){S!==s[0]&amp;&amp;T.push(w.length/2);for(var E=0;E&lt;S.length;E++){var L=S[E];Is(this.layoutVertexArray,L.x,L.y,0,0,1,1,0),w.push(L.x),w.push(L.y)}}}for(var C=Do(w,T),P=0;P&lt;C.length;P+=3)this.indexArray.emplaceBack(k+C[P],k+C[P+2],k+C[P+1]);f.primitiveLength+=C.length/3,f.vertexLength+=l}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Nn(&quot;FillExtrusionBucket&quot;,Os,{omit:[&quot;layers&quot;,&quot;features&quot;]});var Rs={paint:new Si({&quot;fill-extrusion-opacity&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-opacity&quot;]),&quot;fill-extrusion-color&quot;:new Ti(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-color&quot;]),&quot;fill-extrusion-translate&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate&quot;]),&quot;fill-extrusion-translate-anchor&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate-anchor&quot;]),&quot;fill-extrusion-pattern&quot;:new ki(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-pattern&quot;]),&quot;fill-extrusion-height&quot;:new Ti(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-height&quot;]),&quot;fill-extrusion-base&quot;:new Ti(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-base&quot;]),&quot;fill-extrusion-vertical-gradient&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-vertical-gradient&quot;])})},Fs=function(t){function e(e){t.call(this,e,Rs)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Os(t)},e.prototype.queryRadius=function(){return so(this.paint.get(&quot;fill-extrusion-translate&quot;))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s,l){var c=lo(t,this.paint.get(&quot;fill-extrusion-translate&quot;),this.paint.get(&quot;fill-extrusion-translate-anchor&quot;),o.angle,s),u=this.paint.get(&quot;fill-extrusion-height&quot;).evaluate(e,r),f=this.paint.get(&quot;fill-extrusion-base&quot;).evaluate(e,r),h=function(t,e,r,n){for(var a=[],o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=[l.x,l.y,n,1];xo(c,c,e),a.push(new i(c[0]/c[3],c[1]/c[3]))}return a}(c,l,0,0),p=function(t,e,r,n){for(var a=[],o=[],s=n[8]*e,l=n[9]*e,c=n[10]*e,u=n[11]*e,f=n[8]*r,h=n[9]*r,p=n[10]*r,d=n[11]*r,g=0,m=t;g&lt;m.length;g+=1){for(var v=m[g],y=[],x=[],b=0,_=v;b&lt;_.length;b+=1){var w=_[b],T=w.x,k=w.y,A=n[0]*T+n[4]*k+n[12],M=n[1]*T+n[5]*k+n[13],S=n[2]*T+n[6]*k+n[14],E=n[3]*T+n[7]*k+n[15],L=S+c,C=E+u,P=A+f,I=M+h,O=S+p,z=E+d,D=new i((A+s)/C,(M+l)/C);D.z=L/C,y.push(D);var R=new i(P/z,I/z);R.z=O/z,x.push(R)}a.push(y),o.push(x)}return[a,o]}(n,f,u,l);return function(t,e,r){var n=1/0;Ka(r,e)&amp;&amp;(n=Ns(r,e[0]));for(var i=0;i&lt;e.length;i++)for(var a=e[i],o=t[i],s=0;s&lt;a.length-1;s++){var l=a[s],c=a[s+1],u=o[s],f=o[s+1],h=[l,c,f,u,l];Za(r,h)&amp;&amp;(n=Math.min(n,Ns(r,h)))}return n!==1/0&amp;&amp;n}(p[0],p[1],h)},e}(Ei);function Bs(t,e){return t.x*e.x+t.y*e.y}function Ns(t,e){if(1===t.length){for(var r,n=0,i=e[n++];!r||i.equals(r);)if(!(r=e[n++]))return 1/0;for(;n&lt;e.length;n++){var a=e[n],o=t[0],s=r.sub(i),l=a.sub(i),c=o.sub(i),u=Bs(s,s),f=Bs(s,l),h=Bs(l,l),p=Bs(c,s),d=Bs(c,l),g=u*h-f*f,m=(h*p-f*d)/g,v=(u*d-f*p)/g,y=1-m-v,x=i.z*y+r.z*m+a.z*v;if(isFinite(x))return x}return 1/0}for(var b=1/0,_=0,w=e;_&lt;w.length;_+=1){var T=w[_];b=Math.min(b,T.z)}return b}var js=Ii([{name:&quot;a_pos_normal&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint8&quot;}],4).members,Us=Ls.VectorTileFeature.types,Vs=Math.cos(Math.PI/180*37.5),qs=Math.pow(2,14)/.5,Hs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Fi,this.indexArray=new Yi,this.programConfigurations=new Ua(js,t.layers,t.zoom),this.segments=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Hs.prototype.populate=function(t,e,r){this.hasPattern=ds(&quot;line&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;line-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Ya(l):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),p,r)){h||(p.geometry=Ya(l));var d=n?n.evaluate(p,{},r):void 0,g={id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d};i.push(g)}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m&lt;v.length;m+=1){var y=v[m],x=y,b=x.geometry,_=x.index,w=x.sourceLayerIndex;if(this.hasPattern){var T=gs(&quot;line&quot;,this.layers,y,this.zoom,e);this.patternFeatures.push(T)}else this.addFeature(y,b,_,r,{});var k=t[_].feature;e.featureIndex.insert(k,b,_,w,this.index)}},Hs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Hs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},Hs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Hs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Hs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,js),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Hs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Hs.prototype.addFeature=function(t,e,r,n,i){for(var a=this.layers[0].layout,o=a.get(&quot;line-join&quot;).evaluate(t,{}),s=a.get(&quot;line-cap&quot;),l=a.get(&quot;line-miter-limit&quot;),c=a.get(&quot;line-round-limit&quot;),u=0,f=e;u&lt;f.length;u+=1){var h=f[u];this.addLine(h,t,o,s,l,c)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Hs.prototype.addLine=function(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_start&quot;)&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_end&quot;)){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var o=0;o&lt;t.length-1;o++)this.totalDistance+=t[o].dist(t[o+1]);this.updateScaledDistance()}for(var s=&quot;Polygon&quot;===Us[e.type],l=t.length;l&gt;=2&amp;&amp;t[l-1].equals(t[l-2]);)l--;for(var c=0;c&lt;l-1&amp;&amp;t[c].equals(t[c+1]);)c++;if(!(l&lt;(s?3:2))){&quot;bevel&quot;===r&amp;&amp;(i=1.05);var u,f=this.overscaling&lt;=16?122880/(512*this.overscaling):0,h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),p=void 0,d=void 0,g=void 0,m=void 0;this.e1=this.e2=-1,s&amp;&amp;(u=t[l-2],m=t[c].sub(u)._unit()._perp());for(var v=c;v&lt;l;v++)if(!(d=v===l-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(d)){m&amp;&amp;(g=m),u&amp;&amp;(p=u),u=t[v],m=d?d.sub(u)._unit()._perp():g;var y=(g=g||m).add(m);0===y.x&amp;&amp;0===y.y||y._unit();var x=g.x*m.x+g.y*m.y,b=y.x*m.x+y.y*m.y,_=0!==b?1/b:1/0,w=2*Math.sqrt(2-2*b),T=b&lt;Vs&amp;&amp;p&amp;&amp;d,k=g.x*m.y-g.y*m.x&gt;0;if(T&amp;&amp;v&gt;c){var A=u.dist(p);if(A&gt;2*f){var M=u.sub(u.sub(p)._mult(f/A)._round());this.updateDistance(p,M),this.addCurrentVertex(M,g,0,0,h),p=M}}var S=p&amp;&amp;d,E=S?r:s?&quot;butt&quot;:n;if(S&amp;&amp;&quot;round&quot;===E&amp;&amp;(_&lt;a?E=&quot;miter&quot;:_&lt;=2&amp;&amp;(E=&quot;fakeround&quot;)),&quot;miter&quot;===E&amp;&amp;_&gt;i&amp;&amp;(E=&quot;bevel&quot;),&quot;bevel&quot;===E&amp;&amp;(_&gt;2&amp;&amp;(E=&quot;flipbevel&quot;),_&lt;i&amp;&amp;(E=&quot;miter&quot;)),p&amp;&amp;this.updateDistance(p,u),&quot;miter&quot;===E)y._mult(_),this.addCurrentVertex(u,y,0,0,h);else if(&quot;flipbevel&quot;===E){if(_&gt;100)y=m.mult(-1);else{var L=_*g.add(m).mag()/g.sub(m).mag();y._perp()._mult(L*(k?-1:1))}this.addCurrentVertex(u,y,0,0,h),this.addCurrentVertex(u,y.mult(-1),0,0,h)}else if(&quot;bevel&quot;===E||&quot;fakeround&quot;===E){var C=-Math.sqrt(_*_-1),P=k?C:0,I=k?0:C;if(p&amp;&amp;this.addCurrentVertex(u,g,P,I,h),&quot;fakeround&quot;===E)for(var O=Math.round(180*w/Math.PI/20),z=1;z&lt;O;z++){var D=z/O;if(.5!==D){var R=D-.5;D+=D*R*(D-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*R*R+(.848013+x*(.215638*x-1.06021)))}var F=m.sub(g)._mult(D)._add(g)._unit()._mult(k?-1:1);this.addHalfVertex(u,F.x,F.y,!1,k,0,h)}d&amp;&amp;this.addCurrentVertex(u,m,-P,-I,h)}else if(&quot;butt&quot;===E)this.addCurrentVertex(u,y,0,0,h);else if(&quot;square&quot;===E){var B=p?1:-1;this.addCurrentVertex(u,y,B,B,h)}else&quot;round&quot;===E&amp;&amp;(p&amp;&amp;(this.addCurrentVertex(u,g,0,0,h),this.addCurrentVertex(u,g,1,1,h,!0)),d&amp;&amp;(this.addCurrentVertex(u,m,-1,-1,h,!0),this.addCurrentVertex(u,m,0,0,h)));if(T&amp;&amp;v&lt;l-1){var N=u.dist(d);if(N&gt;2*f){var j=u.add(d.sub(u)._mult(f/N)._round());this.updateDistance(u,j),this.addCurrentVertex(j,m,0,0,h),u=j}}}}},Hs.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&amp;&amp;(a=!1);var o=e.x+e.y*r,s=e.y-e.x*r,l=-e.x+e.y*n,c=-e.y-e.x*n;this.addHalfVertex(t,o,s,a,!1,r,i),this.addHalfVertex(t,l,c,a,!0,-n,i),this.distance&gt;qs/2&amp;&amp;0===this.totalDistance&amp;&amp;(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},Hs.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=t.x,l=t.y,c=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((s&lt;&lt;1)+(n?1:0),(l&lt;&lt;1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a&lt;0?-1:1)|(63&amp;c)&lt;&lt;2,c&gt;&gt;6);var u=o.vertexLength++;this.e1&gt;=0&amp;&amp;this.e2&gt;=0&amp;&amp;(this.indexArray.emplaceBack(this.e1,this.e2,u),o.primitiveLength++),i?this.e2=u:this.e1=u},Hs.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance&gt;0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(qs-1):this.distance},Hs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Nn(&quot;LineBucket&quot;,Hs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var Gs=new Si({&quot;line-cap&quot;:new wi(Lt.layout_line[&quot;line-cap&quot;]),&quot;line-join&quot;:new Ti(Lt.layout_line[&quot;line-join&quot;]),&quot;line-miter-limit&quot;:new wi(Lt.layout_line[&quot;line-miter-limit&quot;]),&quot;line-round-limit&quot;:new wi(Lt.layout_line[&quot;line-round-limit&quot;]),&quot;line-sort-key&quot;:new Ti(Lt.layout_line[&quot;line-sort-key&quot;])}),Ys={paint:new Si({&quot;line-opacity&quot;:new Ti(Lt.paint_line[&quot;line-opacity&quot;]),&quot;line-color&quot;:new Ti(Lt.paint_line[&quot;line-color&quot;]),&quot;line-translate&quot;:new wi(Lt.paint_line[&quot;line-translate&quot;]),&quot;line-translate-anchor&quot;:new wi(Lt.paint_line[&quot;line-translate-anchor&quot;]),&quot;line-width&quot;:new Ti(Lt.paint_line[&quot;line-width&quot;]),&quot;line-gap-width&quot;:new Ti(Lt.paint_line[&quot;line-gap-width&quot;]),&quot;line-offset&quot;:new Ti(Lt.paint_line[&quot;line-offset&quot;]),&quot;line-blur&quot;:new Ti(Lt.paint_line[&quot;line-blur&quot;]),&quot;line-dasharray&quot;:new Ai(Lt.paint_line[&quot;line-dasharray&quot;]),&quot;line-pattern&quot;:new ki(Lt.paint_line[&quot;line-pattern&quot;]),&quot;line-gradient&quot;:new Mi(Lt.paint_line[&quot;line-gradient&quot;])}),layout:Gs},Ws=new(function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new pi(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=u({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(Ti))(Ys.paint.properties[&quot;line-width&quot;].specification);Ws.useIntegerZoom=!0;var Xs=function(t){function e(e){t.call(this,e,Ys)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;line-gradient&quot;===t&amp;&amp;this._updateGradient()},e.prototype._updateGradient=function(){var t=this._transitionablePaint._values[&quot;line-gradient&quot;].value.expression;this.gradient=Co(t,&quot;lineProgress&quot;),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values[&quot;line-floorwidth&quot;]=Ws.possiblyEvaluate(this._transitioningPaint._values[&quot;line-width&quot;].value,e)},e.prototype.createBucket=function(t){return new Hs(t)},e.prototype.queryRadius=function(t){var e=t,r=Zs(oo(&quot;line-width&quot;,this,e),oo(&quot;line-gap-width&quot;,this,e)),n=oo(&quot;line-offset&quot;,this,e);return r/2+Math.abs(n)+so(this.paint.get(&quot;line-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s){var l=lo(t,this.paint.get(&quot;line-translate&quot;),this.paint.get(&quot;line-translate-anchor&quot;),o.angle,s),c=s/2*Zs(this.paint.get(&quot;line-width&quot;).evaluate(e,r),this.paint.get(&quot;line-gap-width&quot;).evaluate(e,r)),u=this.paint.get(&quot;line-offset&quot;).evaluate(e,r);return u&amp;&amp;(n=function(t,e){for(var r=[],n=new i(0,0),a=0;a&lt;t.length;a++){for(var o=t[a],s=[],l=0;l&lt;o.length;l++){var c=o[l-1],u=o[l],f=o[l+1],h=0===l?n:u.sub(c)._unit()._perp(),p=l===o.length-1?n:f.sub(u)._unit()._perp(),d=h._add(p)._unit(),g=d.x*p.x+d.y*p.y;d._mult(1/g),s.push(d._mult(e)._add(u))}r.push(s)}return r}(n,u*s)),function(t,e,r){for(var n=0;n&lt;e.length;n++){var i=e[n];if(t.length&gt;=3)for(var a=0;a&lt;i.length;a++)if(io(t,i[a]))return!0;if(Qa(t,i,r))return!0}return!1}(l,n,c)},e.prototype.isTileClipped=function(){return!0},e}(Ei);function Zs(t,e){return e&gt;0?e+2*t:t}var Js=Ii([{name:&quot;a_pos_offset&quot;,components:4,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixeloffset&quot;,components:4,type:&quot;Int16&quot;}],4),Ks=Ii([{name:&quot;a_projected_pos&quot;,components:3,type:&quot;Float32&quot;}],4),Qs=(Ii([{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint32&quot;}],4),Ii([{name:&quot;a_placed&quot;,components:2,type:&quot;Uint8&quot;},{name:&quot;a_shift&quot;,components:2,type:&quot;Float32&quot;}])),$s=(Ii([{type:&quot;Int16&quot;,name:&quot;anchorPointX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorPointY&quot;},{type:&quot;Int16&quot;,name:&quot;x1&quot;},{type:&quot;Int16&quot;,name:&quot;y1&quot;},{type:&quot;Int16&quot;,name:&quot;x2&quot;},{type:&quot;Int16&quot;,name:&quot;y2&quot;},{type:&quot;Uint32&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;sourceLayerIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;bucketIndex&quot;}]),Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_anchor_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_extrude&quot;,components:2,type:&quot;Int16&quot;}],4)),tl=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Float32&quot;},{name:&quot;a_radius&quot;,components:1,type:&quot;Float32&quot;},{name:&quot;a_flags&quot;,components:2,type:&quot;Int16&quot;}],4);Ii([{name:&quot;triangle&quot;,components:3,type:&quot;Uint16&quot;}]),Ii([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Uint16&quot;,name:&quot;glyphStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numGlyphs&quot;},{type:&quot;Uint32&quot;,name:&quot;vertexStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineLength&quot;},{type:&quot;Uint16&quot;,name:&quot;segment&quot;},{type:&quot;Uint16&quot;,name:&quot;lowerSize&quot;},{type:&quot;Uint16&quot;,name:&quot;upperSize&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetX&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetY&quot;},{type:&quot;Uint8&quot;,name:&quot;writingMode&quot;},{type:&quot;Uint8&quot;,name:&quot;placedOrientation&quot;},{type:&quot;Uint8&quot;,name:&quot;hidden&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Int16&quot;,name:&quot;associatedIconIndex&quot;}]),Ii([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Int16&quot;,name:&quot;rightJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;centerJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;leftJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;placedIconSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedIconSymbolIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;key&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numHorizontalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;useRuntimeCollisionCircles&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Float32&quot;,name:&quot;textBoxScale&quot;},{type:&quot;Float32&quot;,components:2,name:&quot;textOffset&quot;},{type:&quot;Float32&quot;,name:&quot;collisionCircleDiameter&quot;}]),Ii([{type:&quot;Float32&quot;,name:&quot;offsetX&quot;}]),Ii([{type:&quot;Int16&quot;,name:&quot;x&quot;},{type:&quot;Int16&quot;,name:&quot;y&quot;},{type:&quot;Int16&quot;,name:&quot;tileUnitDistanceFromAnchor&quot;}]);function el(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get(&quot;text-transform&quot;).evaluate(r,{});return&quot;uppercase&quot;===n?t=t.toLocaleUpperCase():&quot;lowercase&quot;===n&amp;&amp;(t=t.toLocaleLowerCase()),hi.applyArabicShaping&amp;&amp;(t=hi.applyArabicShaping(t)),t}(t.text,e,r)})),t}var rl={&quot;!&quot;:&quot;\ufe15&quot;,&quot;#&quot;:&quot;\uff03&quot;,$:&quot;\uff04&quot;,&quot;%&quot;:&quot;\uff05&quot;,&quot;&amp;&quot;:&quot;\uff06&quot;,&quot;(&quot;:&quot;\ufe35&quot;,&quot;)&quot;:&quot;\ufe36&quot;,&quot;*&quot;:&quot;\uff0a&quot;,&quot;+&quot;:&quot;\uff0b&quot;,&quot;,&quot;:&quot;\ufe10&quot;,&quot;-&quot;:&quot;\ufe32&quot;,&quot;.&quot;:&quot;\u30fb&quot;,&quot;/&quot;:&quot;\uff0f&quot;,&quot;:&quot;:&quot;\ufe13&quot;,&quot;;&quot;:&quot;\ufe14&quot;,&quot;&lt;&quot;:&quot;\ufe3f&quot;,&quot;=&quot;:&quot;\uff1d&quot;,&quot;&gt;&quot;:&quot;\ufe40&quot;,&quot;?&quot;:&quot;\ufe16&quot;,&quot;@&quot;:&quot;\uff20&quot;,&quot;[&quot;:&quot;\ufe47&quot;,&quot;\\&quot;:&quot;\uff3c&quot;,&quot;]&quot;:&quot;\ufe48&quot;,&quot;^&quot;:&quot;\uff3e&quot;,_:&quot;\ufe33&quot;,&quot;`&quot;:&quot;\uff40&quot;,&quot;{&quot;:&quot;\ufe37&quot;,&quot;|&quot;:&quot;\u2015&quot;,&quot;}&quot;:&quot;\ufe38&quot;,&quot;~&quot;:&quot;\uff5e&quot;,&quot;\xa2&quot;:&quot;\uffe0&quot;,&quot;\xa3&quot;:&quot;\uffe1&quot;,&quot;\xa5&quot;:&quot;\uffe5&quot;,&quot;\xa6&quot;:&quot;\uffe4&quot;,&quot;\xac&quot;:&quot;\uffe2&quot;,&quot;\xaf&quot;:&quot;\uffe3&quot;,&quot;\u2013&quot;:&quot;\ufe32&quot;,&quot;\u2014&quot;:&quot;\ufe31&quot;,&quot;\u2018&quot;:&quot;\ufe43&quot;,&quot;\u2019&quot;:&quot;\ufe44&quot;,&quot;\u201c&quot;:&quot;\ufe41&quot;,&quot;\u201d&quot;:&quot;\ufe42&quot;,&quot;\u2026&quot;:&quot;\ufe19&quot;,&quot;\u2027&quot;:&quot;\u30fb&quot;,&quot;\u20a9&quot;:&quot;\uffe6&quot;,&quot;\u3001&quot;:&quot;\ufe11&quot;,&quot;\u3002&quot;:&quot;\ufe12&quot;,&quot;\u3008&quot;:&quot;\ufe3f&quot;,&quot;\u3009&quot;:&quot;\ufe40&quot;,&quot;\u300a&quot;:&quot;\ufe3d&quot;,&quot;\u300b&quot;:&quot;\ufe3e&quot;,&quot;\u300c&quot;:&quot;\ufe41&quot;,&quot;\u300d&quot;:&quot;\ufe42&quot;,&quot;\u300e&quot;:&quot;\ufe43&quot;,&quot;\u300f&quot;:&quot;\ufe44&quot;,&quot;\u3010&quot;:&quot;\ufe3b&quot;,&quot;\u3011&quot;:&quot;\ufe3c&quot;,&quot;\u3014&quot;:&quot;\ufe39&quot;,&quot;\u3015&quot;:&quot;\ufe3a&quot;,&quot;\u3016&quot;:&quot;\ufe17&quot;,&quot;\u3017&quot;:&quot;\ufe18&quot;,&quot;\uff01&quot;:&quot;\ufe15&quot;,&quot;\uff08&quot;:&quot;\ufe35&quot;,&quot;\uff09&quot;:&quot;\ufe36&quot;,&quot;\uff0c&quot;:&quot;\ufe10&quot;,&quot;\uff0d&quot;:&quot;\ufe32&quot;,&quot;\uff0e&quot;:&quot;\u30fb&quot;,&quot;\uff1a&quot;:&quot;\ufe13&quot;,&quot;\uff1b&quot;:&quot;\ufe14&quot;,&quot;\uff1c&quot;:&quot;\ufe3f&quot;,&quot;\uff1e&quot;:&quot;\ufe40&quot;,&quot;\uff1f&quot;:&quot;\ufe16&quot;,&quot;\uff3b&quot;:&quot;\ufe47&quot;,&quot;\uff3d&quot;:&quot;\ufe48&quot;,&quot;\uff3f&quot;:&quot;\ufe33&quot;,&quot;\uff5b&quot;:&quot;\ufe37&quot;,&quot;\uff5c&quot;:&quot;\u2015&quot;,&quot;\uff5d&quot;:&quot;\ufe38&quot;,&quot;\uff5f&quot;:&quot;\ufe35&quot;,&quot;\uff60&quot;:&quot;\ufe36&quot;,&quot;\uff61&quot;:&quot;\ufe12&quot;,&quot;\uff62&quot;:&quot;\ufe41&quot;,&quot;\uff63&quot;:&quot;\ufe42&quot;};var nl=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},il=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g},al=ol;function ol(t){this.buf=ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}ol.Varint=0,ol.Fixed64=1,ol.Bytes=2,ol.Fixed32=5;var sl=&quot;undefined&quot;==typeof TextDecoder?null:new TextDecoder(&quot;utf8&quot;);function ll(t){return t.type===ol.Bytes?t.readVarint()+t.pos:t.pos+1}function cl(t,e,r){return r?4294967296*e+(t&gt;&gt;&gt;0):4294967296*(e&gt;&gt;&gt;0)+(t&gt;&gt;&gt;0)}function ul(t,e,r){var n=e&lt;=16383?1:e&lt;=2097151?2:e&lt;=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i&gt;=t;i--)r.buf[i+n]=r.buf[i]}function fl(t,e){for(var r=0;r&lt;t.length;r++)e.writeVarint(t[r])}function hl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSVarint(t[r])}function pl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFloat(t[r])}function dl(t,e){for(var r=0;r&lt;t.length;r++)e.writeDouble(t[r])}function gl(t,e){for(var r=0;r&lt;t.length;r++)e.writeBoolean(t[r])}function ml(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed32(t[r])}function vl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed32(t[r])}function yl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed64(t[r])}function xl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed64(t[r])}function bl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+16777216*t[e+3]}function _l(t,e,r){t[r]=e,t[r+1]=e&gt;&gt;&gt;8,t[r+2]=e&gt;&gt;&gt;16,t[r+3]=e&gt;&gt;&gt;24}function wl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+(t[e+3]&lt;&lt;24)}ol.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos&lt;r;){var n=this.readVarint(),i=n&gt;&gt;3,a=this.pos;this.type=7&amp;n,t(i,e,this),this.pos===a&amp;&amp;this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=bl(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=wl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=bl(this.buf,this.pos)+4294967296*bl(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=bl(this.buf,this.pos)+4294967296*wl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=nl(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=nl(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&amp;(r=n[this.pos++]),r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;7,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;14,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;21,r&lt;128?e:function(t,e,r){var n,i,a=r.buf;if(i=a[r.pos++],n=(112&amp;i)&gt;&gt;4,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;3,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;10,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;17,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;24,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(1&amp;i)&lt;&lt;31,i&lt;128)return cl(t,n,e);throw new Error(&quot;Expected varint not more than 10 bytes&quot;)}(e|=(15&amp;(r=n[this.pos]))&lt;&lt;28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e&gt;=12&amp;&amp;sl?function(t,e,r){return sl.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){var n=&quot;&quot;,i=e;for(;i&lt;r;){var a,o,s,l=t[i],c=null,u=l&gt;239?4:l&gt;223?3:l&gt;191?2:1;if(i+u&gt;r)break;1===u?l&lt;128&amp;&amp;(c=l):2===u?128==(192&amp;(a=t[i+1]))&amp;&amp;(c=(31&amp;l)&lt;&lt;6|63&amp;a)&lt;=127&amp;&amp;(c=null):3===u?(a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;((c=(15&amp;l)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&lt;=2047||c&gt;=55296&amp;&amp;c&lt;=57343)&amp;&amp;(c=null)):4===u&amp;&amp;(a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;((c=(15&amp;l)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&lt;=65535||c&gt;=1114112)&amp;&amp;(c=null)),null===c?(c=65533,u=1):c&gt;65535&amp;&amp;(c-=65536,n+=String.fromCharCode(c&gt;&gt;&gt;10&amp;1023|55296),c=56320|1023&amp;c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==ol.Bytes)return t.push(this.readVarint(e));var r=ll(this);for(t=t||[];this.pos&lt;r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==ol.Bytes)return t.push(this.readSVarint());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==ol.Bytes)return t.push(this.readBoolean());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==ol.Bytes)return t.push(this.readFloat());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==ol.Bytes)return t.push(this.readDouble());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==ol.Bytes)return t.push(this.readFixed32());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==ol.Bytes)return t.push(this.readSFixed32());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==ol.Bytes)return t.push(this.readFixed64());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==ol.Bytes)return t.push(this.readSFixed64());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&amp;t;if(e===ol.Varint)for(;this.buf[this.pos++]&gt;127;);else if(e===ol.Bytes)this.pos=this.readVarint()+this.pos;else if(e===ol.Fixed32)this.pos+=4;else{if(e!==ol.Fixed64)throw new Error(&quot;Unimplemented type: &quot;+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t&lt;&lt;3|e)},realloc:function(t){for(var e=this.length||16;e&lt;this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),_l(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),_l(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),_l(this.buf,-1&amp;t,this.pos),_l(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),_l(this.buf,-1&amp;t,this.pos),_l(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)&gt;268435455||t&lt;0?function(t,e){var r,n;t&gt;=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0));if(t&gt;=0x10000000000000000||t&lt;-0x10000000000000000)throw new Error(&quot;Given varint doesn't fit into 10 bytes&quot;);e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos]=127&amp;t}(r,0,e),function(t,e){var r=(7&amp;t)&lt;&lt;4;if(e.buf[e.pos++]|=r|((t&gt;&gt;&gt;=3)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;e.buf[e.pos++]=127&amp;t}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&amp;t|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=t&gt;&gt;&gt;7&amp;127))))},writeSVarint:function(t){this.writeVarint(t&lt;0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a&lt;e.length;a++){if((n=e.charCodeAt(a))&gt;55295&amp;&amp;n&lt;57344){if(!i){n&gt;56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n&lt;56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296&lt;&lt;10|n-56320|65536,i=null}else i&amp;&amp;(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n&lt;128?t[r++]=n:(n&lt;2048?t[r++]=n&gt;&gt;6|192:(n&lt;65536?t[r++]=n&gt;&gt;12|224:(t[r++]=n&gt;&gt;18|240,t[r++]=n&gt;&gt;12&amp;63|128),t[r++]=n&gt;&gt;6&amp;63|128),t[r++]=63&amp;n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r&gt;=128&amp;&amp;ul(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),il(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),il(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r&lt;e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n&gt;=128&amp;&amp;ul(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,ol.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,fl,e)},writePackedSVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,hl,e)},writePackedBoolean:function(t,e){e.length&amp;&amp;this.writeMessage(t,gl,e)},writePackedFloat:function(t,e){e.length&amp;&amp;this.writeMessage(t,pl,e)},writePackedDouble:function(t,e){e.length&amp;&amp;this.writeMessage(t,dl,e)},writePackedFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,ml,e)},writePackedSFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,vl,e)},writePackedFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,yl,e)},writePackedSFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,xl,e)},writeBytesField:function(t,e){this.writeTag(t,ol.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,ol.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,ol.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,ol.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,ol.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,ol.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,ol.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,ol.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,ol.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,ol.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};function Tl(t,e,r){1===t&amp;&amp;r.readMessage(kl,e)}function kl(t,e,r){if(3===t){var n=r.readMessage(Al,{}),i=n.id,a=n.bitmap,o=n.width,s=n.height,l=n.left,c=n.top,u=n.advance;e.push({id:i,bitmap:new So({width:o+6,height:s+6},a),metrics:{width:o,height:s,left:l,top:c,advance:u}})}}function Al(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&amp;&amp;(e.advance=r.readVarint())}function Ml(t){for(var e=0,r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];e+=a.w*a.h,r=Math.max(r,a.w)}t.sort((function(t,e){return e.h-t.h}));for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,c=0,u=t;c&lt;u.length;c+=1)for(var f=u[c],h=o.length-1;h&gt;=0;h--){var p=o[h];if(!(f.w&gt;p.w||f.h&gt;p.h)){if(f.x=p.x,f.y=p.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===p.w&amp;&amp;f.h===p.h){var d=o.pop();h&lt;o.length&amp;&amp;(o[h]=d)}else f.h===p.h?(p.x+=f.w,p.w-=f.w):f.w===p.w?(p.y+=f.h,p.h-=f.h):(o.push({x:p.x+f.w,y:p.y,w:p.w-f.w,h:f.h}),p.y+=f.h,p.h-=f.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}var Sl=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},El={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};El.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},El.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},El.tlbr.get=function(){return this.tl.concat(this.br)},El.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Sl.prototype,El);var Ll=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=Ml(i),o=a.w,s=a.h,l=new Eo({width:o||1,height:s||1});for(var c in t){var u=t[c],f=r[c].paddedRect;Eo.copy(u.data,l,{x:0,y:0},{x:f.x+1,y:f.y+1},u.data)}for(var h in e){var p=e[h],d=n[h].paddedRect,g=d.x+1,m=d.y+1,v=p.data.width,y=p.data.height;Eo.copy(p.data,l,{x:0,y:0},{x:g,y:m},p.data),Eo.copy(p.data,l,{x:0,y:y-1},{x:g,y:m-1},{width:v,height:1}),Eo.copy(p.data,l,{x:0,y:0},{x:g,y:m+y},{width:v,height:1}),Eo.copy(p.data,l,{x:v-1,y:0},{x:g-1,y:m},{width:1,height:y}),Eo.copy(p.data,l,{x:0,y:0},{x:g+v,y:m},{width:1,height:y})}this.image=l,this.iconPositions=r,this.patternPositions=n};Ll.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(a),e[n]=new Sl(a,i),i.hasRenderCallback&amp;&amp;this.haveRenderCallbacks.push(n)}},Ll.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},Ll.prototype.patchUpdatedImage=function(t,e,r){if(t&amp;&amp;e&amp;&amp;t.version!==e.version){t.version=e.version;var n=t.tl,i=n[0],a=n[1];r.update(e.data,void 0,{x:i,y:a})}},Nn(&quot;ImagePosition&quot;,Sl),Nn(&quot;ImageAtlas&quot;,Ll);var Cl={horizontal:1,vertical:2,horizontalOnly:3};var Pl=function(){this.scale=1,this.fontStack=&quot;&quot;,this.imageName=null};Pl.forText=function(t,e){var r=new Pl;return r.scale=t||1,r.fontStack=e,r},Pl.forImage=function(t){var e=new Pl;return e.imageName=t,e};var Il=function(){this.text=&quot;&quot;,this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Ol(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=Il.fromFeature(t,i);f===Cl.vertical&amp;&amp;v.verticalizePunctuation();var y=hi.processBidirectionalText,x=hi.processStyledBidirectionalText;if(y&amp;&amp;1===v.sections.length){m=[];for(var b=0,_=y(v.toString(),jl(v,c,a,e,n,p,d));b&lt;_.length;b+=1){var w=_[b],T=new Il;T.text=w,T.sections=v.sections;for(var k=0;k&lt;w.length;k++)T.sectionIndex.push(0);m.push(T)}}else if(x){m=[];for(var A=0,M=x(v.text,v.sectionIndex,jl(v,c,a,e,n,p,d));A&lt;M.length;A+=1){var S=M[A],E=new Il;E.text=S[0],E.sectionIndex=S[1],E.sections=v.sections,m.push(E)}}else m=function(t,e){for(var r=[],n=t.text,i=0,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];r.push(t.substring(i,s)),i=s}return i&lt;n.length&amp;&amp;r.push(t.substring(i,n.length)),r}(v,jl(v,c,a,e,n,p,d));var L=[],C={positionedLines:L,text:v.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:f,iconsInText:!1,verticalizable:!1};return function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=0,p=-17,d=0,g=0,m=&quot;right&quot;===s?1:&quot;left&quot;===s?0:.5,v=0,y=0,x=i;y&lt;x.length;y+=1){var b=x[y];b.trim();var _=b.getMaxScale(),w=24*(_-1),T={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=T;var k=T.positionedGlyphs,A=0;if(b.length()){for(var M=0;M&lt;b.length();M++){var S=b.getSection(M),E=b.getSectionIndex(M),L=b.getCharCode(M),C=0,P=null,I=null,O=null,z=24,D=!(l===Cl.horizontal||!u&amp;&amp;!Zn(L)||u&amp;&amp;(zl[L]||(Y=L,Yn.Arabic(Y)||Yn[&quot;Arabic Supplement&quot;](Y)||Yn[&quot;Arabic Extended-A&quot;](Y)||Yn[&quot;Arabic Presentation Forms-A&quot;](Y)||Yn[&quot;Arabic Presentation Forms-B&quot;](Y))));if(S.imageName){var R=n[S.imageName];if(!R)continue;O=S.imageName,t.iconsInText=t.iconsInText||!0,I=R.paddedRect;var F=R.displaySize;S.scale=24*S.scale/f,P={width:F[0],height:F[1],left:1,top:-3,advance:D?F[1]:F[0]};var B=24-F[1]*S.scale;C=w+B,z=P.advance;var N=D?F[0]*S.scale-24*_:F[1]*S.scale-24*_;N&gt;0&amp;&amp;N&gt;A&amp;&amp;(A=N)}else{var j=r[S.fontStack],U=j&amp;&amp;j[L];if(U&amp;&amp;U.rect)I=U.rect,P=U.metrics;else{var V=e[S.fontStack],q=V&amp;&amp;V[L];if(!q)continue;P=q.metrics}C=24*(_-S.scale)}D?(t.verticalizable=!0,k.push({glyph:L,imageName:O,x:h,y:p+C,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:P,rect:I}),h+=z*S.scale+c):(k.push({glyph:L,imageName:O,x:h,y:p+C,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:P,rect:I}),h+=P.advance*S.scale+c)}if(0!==k.length){var H=h-c;d=Math.max(H,d),Vl(k,0,k.length-1,m,A)}h=0;var G=a*_+A;T.lineOffset=Math.max(A,w),p+=G,g=Math.max(G,g),++v}else p+=a,++v}var Y;var W=p- -17,X=Ul(o),Z=X.horizontalAlign,J=X.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var c=(e-r)*i,u=0;u=a!==o?-s*n- -17:(-n*l+.5)*o;for(var f=0,h=t;f&lt;h.length;f+=1)for(var p=h[f],d=0,g=p.positionedGlyphs;d&lt;g.length;d+=1){var m=g[d];m.x+=c,m.y+=u}})(t.positionedLines,m,Z,J,d,g,a,W,i.length),t.top+=-J*W,t.bottom=t.top+W,t.left+=-Z*d,t.right=t.left+d}(C,e,r,n,m,o,s,l,f,c,h,g),!function(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(0!==r[e].positionedGlyphs.length)return!1}return!0}(L)&amp;&amp;C}Il.fromFeature=function(t,e){for(var r=new Il,n=0;n&lt;t.sections.length;n++){var i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e)}return r},Il.prototype.length=function(){return this.text.length},Il.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},Il.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},Il.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},Il.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;(!n||!Jn(n)||rl[t[r+1]])&amp;&amp;(!i||!Jn(i)||rl[t[r-1]])&amp;&amp;rl[t[r]]?e+=rl[t[r]]:e+=t[r]}return e}(this.text)},Il.prototype.trim=function(){for(var t=0,e=0;e&lt;this.text.length&amp;&amp;zl[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n&gt;=0&amp;&amp;n&gt;=t&amp;&amp;zl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},Il.prototype.substring=function(t,e){var r=new Il;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},Il.prototype.toString=function(){return this.text},Il.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},Il.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(Pl.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n&lt;t.text.length;++n)this.sectionIndex.push(r)},Il.prototype.addImageSection=function(t){var e=t.image?t.image.name:&quot;&quot;;if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(Pl.forImage(e)),this.sectionIndex.push(this.sections.length-1)):_(&quot;Reached maximum number of images 6401&quot;)}else _(&quot;Can't add FormattedSection with an empty image.&quot;)},Il.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID&gt;=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var zl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Dl={};function Rl(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*24/a+i:0}var s=r[e.fontStack],l=s&amp;&amp;s[t];return l?l.metrics.advance*e.scale+i:0}function Fl(t,e,r,n){var i=Math.pow(t-e,2);return n?t&lt;e?i/2:2*i:i+Math.abs(r)*r}function Bl(t,e,r){var n=0;return 10===t&amp;&amp;(n-=1e4),r&amp;&amp;(n+=150),40!==t&amp;&amp;65288!==t||(n+=50),41!==e&amp;&amp;65289!==e||(n+=50),n}function Nl(t,e,r,n,i,a){for(var o=null,s=Fl(e,r,i,a),l=0,c=n;l&lt;c.length;l+=1){var u=c[l],f=Fl(e-u.x,r,i,a)+u.badness;f&lt;=s&amp;&amp;(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function jl(t,e,r,n,i,a,o){if(&quot;point&quot;!==a)return[];if(!t)return[];for(var s,l=[],c=function(t,e,r,n,i,a){for(var o=0,s=0;s&lt;t.length();s++){var l=t.getSection(s);o+=Rl(t.getCharCode(s),l,n,i,e,a)}return o/Math.max(1,Math.ceil(o/r))}(t,e,r,n,i,o),u=t.text.indexOf(&quot;\u200b&quot;)&gt;=0,f=0,h=0;h&lt;t.length();h++){var p=t.getSection(h),d=t.getCharCode(h);if(zl[d]||(f+=Rl(d,p,n,i,e,o)),h&lt;t.length()-1){var g=!!(!((s=d)&lt;11904)&amp;&amp;(Yn[&quot;Bopomofo Extended&quot;](s)||Yn.Bopomofo(s)||Yn[&quot;CJK Compatibility Forms&quot;](s)||Yn[&quot;CJK Compatibility Ideographs&quot;](s)||Yn[&quot;CJK Compatibility&quot;](s)||Yn[&quot;CJK Radicals Supplement&quot;](s)||Yn[&quot;CJK Strokes&quot;](s)||Yn[&quot;CJK Symbols and Punctuation&quot;](s)||Yn[&quot;CJK Unified Ideographs Extension A&quot;](s)||Yn[&quot;CJK Unified Ideographs&quot;](s)||Yn[&quot;Enclosed CJK Letters and Months&quot;](s)||Yn[&quot;Halfwidth and Fullwidth Forms&quot;](s)||Yn.Hiragana(s)||Yn[&quot;Ideographic Description Characters&quot;](s)||Yn[&quot;Kangxi Radicals&quot;](s)||Yn[&quot;Katakana Phonetic Extensions&quot;](s)||Yn.Katakana(s)||Yn[&quot;Vertical Forms&quot;](s)||Yn[&quot;Yi Radicals&quot;](s)||Yn[&quot;Yi Syllables&quot;](s)));(Dl[d]||g||p.imageName)&amp;&amp;l.push(Nl(h+1,f,c,l,Bl(d,t.getCharCode(h+1),g&amp;&amp;u),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(Nl(t.length(),f,c,l,0,!0))}function Ul(t){var e=.5,r=.5;switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:e=1;break;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:e=0}switch(t){case&quot;bottom&quot;:case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:r=1;break;case&quot;top&quot;:case&quot;top-right&quot;:case&quot;top-left&quot;:r=0}return{horizontalAlign:e,verticalAlign:r}}function Vl(t,e,r,n,i){if(n||i)for(var a=t[r],o=a.metrics.advance*a.scale,s=(t[r].x+o)*n,l=e;l&lt;=r;l++)t[l].x-=s,t[l].y+=i}function ql(t,e,r,n,i,a){var o,s=t.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,f,h,p,d=e.left*a,g=e.right*a;&quot;width&quot;===r||&quot;both&quot;===r?(p=i[0]+d-n[3],f=i[0]+g+n[1]):f=(p=i[0]+(d+g-s.displaySize[0])/2)+s.displaySize[0];var m=e.top*a,v=e.bottom*a;return&quot;height&quot;===r||&quot;both&quot;===r?(u=i[1]+m-n[0],h=i[1]+v+n[2]):h=(u=i[1]+(m+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:f,bottom:h,left:p,collisionPadding:o}}Dl[10]=!0,Dl[32]=!0,Dl[38]=!0,Dl[40]=!0,Dl[41]=!0,Dl[43]=!0,Dl[45]=!0,Dl[47]=!0,Dl[173]=!0,Dl[183]=!0,Dl[8203]=!0,Dl[8208]=!0,Dl[8211]=!0,Dl[8231]=!0;var Hl=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&amp;&amp;(this.segment=i)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(i);Nn(&quot;Anchor&quot;,Hl);function Gl(t,e){var r=e.expression;if(&quot;constant&quot;===r.kind)return{kind:&quot;constant&quot;,layoutSize:r.evaluate(new pi(t+1))};if(&quot;source&quot;===r.kind)return{kind:&quot;source&quot;};for(var n=r.zoomStops,i=r.interpolationType,a=0;a&lt;n.length&amp;&amp;n[a]&lt;=t;)a++;for(var o=a=Math.max(0,a-1);o&lt;n.length&amp;&amp;n[o]&lt;t+1;)o++;o=Math.min(n.length-1,o);var s=n[a],l=n[o];return&quot;composite&quot;===r.kind?{kind:&quot;composite&quot;,minZoom:s,maxZoom:l,interpolationType:i}:{kind:&quot;camera&quot;,minZoom:s,maxZoom:l,minSize:r.evaluate(new pi(s)),maxSize:r.evaluate(new pi(l)),interpolationType:i}}function Yl(t,e,r){var n=e.uSize,i=e.uSizeT,a=r.lowerSize,o=r.upperSize;return&quot;source&quot;===t.kind?a/128:&quot;composite&quot;===t.kind?He(a/128,o/128,i):n}function Wl(t,e){var r=0,n=0;if(&quot;constant&quot;===t.kind)n=t.layoutSize;else if(&quot;source&quot;!==t.kind){var i=t.interpolationType,a=t.minZoom,o=t.maxZoom,s=i?l(or.interpolationFactor(i,e,a,o),0,1):0;&quot;camera&quot;===t.kind?n=He(t.minSize,t.maxSize,s):r=s}return{uSizeT:r,uSize:n}}var Xl=Object.freeze({__proto__:null,getSizeData:Gl,evaluateSizeForFeature:Yl,evaluateSizeForZoom:Wl,SIZE_PACK_FACTOR:128});function Zl(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s&gt;-r/2;){if(--o&lt;0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s&lt;r/2;){var u=t[o-1],f=t[o],h=t[o+1];if(!h)return!1;var p=u.angleTo(f)-f.angleTo(h);for(p=Math.abs((p+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:p}),c+=p;s-l[0].distance&gt;n;)c-=l.shift().angleDelta;if(c&gt;i)return!1;o++,s+=f.dist(h)}return!0}function Jl(t){for(var e=0,r=0;r&lt;t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Kl(t,e,r){return t?.6*e*r:0}function Ql(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function $l(t,e,r,n,i,a){for(var o=Kl(r,i,a),s=Ql(r,n)*a,l=0,c=Jl(t)/2,u=0;u&lt;t.length-1;u++){var f=t[u],h=t[u+1],p=f.dist(h);if(l+p&gt;c){var d=(c-l)/p,g=He(f.x,h.x,d),m=He(f.y,h.y,d),v=new Hl(g,m,h.angleTo(f),u);return v._round(),!o||Zl(t,v,s,o,e)?v:void 0}l+=p}}function tc(t,e,r,n,i,a,o,s,l){var c=Kl(n,a,o),u=Ql(n,i),f=u*o,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f&lt;e/4&amp;&amp;(e=f+e/4),function t(e,r,n,i,a,o,s,l,c){for(var u=o/2,f=Jl(e),h=0,p=r-n,d=[],g=0;g&lt;e.length-1;g++){for(var m=e[g],v=e[g+1],y=m.dist(v),x=v.angleTo(m);p+n&lt;h+y;){var b=((p+=n)-h)/y,_=He(m.x,v.x,b),w=He(m.y,v.y,b);if(_&gt;=0&amp;&amp;_&lt;c&amp;&amp;w&gt;=0&amp;&amp;w&lt;c&amp;&amp;p-u&gt;=0&amp;&amp;p+u&lt;=f){var T=new Hl(_,w,x,g);T._round(),i&amp;&amp;!Zl(e,T,o,i,a)||d.push(T)}}h+=y}l||d.length||s||(d=t(e,h/2,n,i,a,o,s,!0,c));return d}(t,h?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,h,!1,l)}function ec(t,e,r,n,a){for(var o=[],s=0;s&lt;t.length;s++)for(var l=t[s],c=void 0,u=0;u&lt;l.length-1;u++){var f=l[u],h=l[u+1];f.x&lt;e&amp;&amp;h.x&lt;e||(f.x&lt;e?f=new i(e,f.y+(h.y-f.y)*((e-f.x)/(h.x-f.x)))._round():h.x&lt;e&amp;&amp;(h=new i(e,f.y+(h.y-f.y)*((e-f.x)/(h.x-f.x)))._round()),f.y&lt;r&amp;&amp;h.y&lt;r||(f.y&lt;r?f=new i(f.x+(h.x-f.x)*((r-f.y)/(h.y-f.y)),r)._round():h.y&lt;r&amp;&amp;(h=new i(f.x+(h.x-f.x)*((r-f.y)/(h.y-f.y)),r)._round()),f.x&gt;=n&amp;&amp;h.x&gt;=n||(f.x&gt;=n?f=new i(n,f.y+(h.y-f.y)*((n-f.x)/(h.x-f.x)))._round():h.x&gt;=n&amp;&amp;(h=new i(n,f.y+(h.y-f.y)*((n-f.x)/(h.x-f.x)))._round()),f.y&gt;=a&amp;&amp;h.y&gt;=a||(f.y&gt;=a?f=new i(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round():h.y&gt;=a&amp;&amp;(h=new i(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round()),c&amp;&amp;f.equals(c[c.length-1])||(c=[f],o.push(c)),c.push(h)))))}return o}function rc(t,e,r,n){var a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,f=t.bottom-t.top,h=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},g=h.reduce(d,0),m=p.reduce(d,0),v=l-g,y=c-m,x=0,b=g,_=0,w=m,T=0,k=v,A=0,M=y;if(o.content&amp;&amp;n){var S=o.content;x=nc(h,0,S[0]),_=nc(p,0,S[1]),b=nc(h,S[0],S[2]),w=nc(p,S[1],S[3]),T=S[0]-x,A=S[1]-_,k=S[2]-S[0]-b,M=S[3]-S[1]-w}var E=function(n,a,l,c){var h=ac(n.stretch-x,b,u,t.left),p=oc(n.fixed-T,k,n.stretch,g),d=ac(a.stretch-_,w,f,t.top),v=oc(a.fixed-A,M,a.stretch,m),y=ac(l.stretch-x,b,u,t.left),S=oc(l.fixed-T,k,l.stretch,g),E=ac(c.stretch-_,w,f,t.top),L=oc(c.fixed-A,M,c.stretch,m),C=new i(h,d),P=new i(y,d),I=new i(y,E),O=new i(h,E),z=new i(p/s,v/s),D=new i(S/s,L/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];C._matMult(N),P._matMult(N),O._matMult(N),I._matMult(N)}var j=n.stretch+n.fixed,U=l.stretch+l.fixed,V=a.stretch+a.fixed,q=c.stretch+c.fixed;return{tl:C,tr:P,bl:O,br:I,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+V,w:U-j,h:q-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:z,pixelOffsetBR:D,minFontScaleX:k/s/u,minFontScaleY:M/s/f,isSDF:r}};if(n&amp;&amp;(o.stretchX||o.stretchY))for(var L=ic(h,v,g),C=ic(p,y,m),P=0;P&lt;L.length-1;P++)for(var I=L[P],O=L[P+1],z=0;z&lt;C.length-1;z++){var D=C[z],R=C[z+1];a.push(E(I,D,O,R))}else a.push(E({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function nc(t,e,r){for(var n=0,i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n+=Math.max(e,Math.min(r,o[1]))-Math.max(e,Math.min(r,o[0]))}return n}function ic(t,e,r){for(var n=[{fixed:-1,stretch:0}],i=0,a=t;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return n.push({fixed:e+1,stretch:r}),n}function ac(t,e,r,n){return t/e*r+n}function oc(t,e,r,n){return t-e*r/n}var sc=function(t,e,r,n,a,o,s,l,c,u){if(this.boxStartIndex=t.length,c){var f=o.top,h=o.bottom,p=o.collisionPadding;p&amp;&amp;(f-=p[1],h+=p[3]);var d=h-f;d&gt;0&amp;&amp;(d=Math.max(10,d),this.circleDiameter=d)}else{var g=o.top*s-l,m=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&amp;&amp;(v-=x[0]*s,g-=x[1]*s,y+=x[2]*s,m+=x[3]*s),u){var b=new i(v,g),_=new i(y,g),w=new i(v,m),T=new i(y,m),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),g=Math.min(b.y,_.y,w.y,T.y),m=Math.max(b.y,_.y,w.y,T.y)}t.emplaceBack(e.x,e.y,v,g,y,m,r,n,a)}this.boxEndIndex=t.length},lc=function(t,e){if(void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=cc),this.data=t,this.length=this.data.length,this.compare=e,this.length&gt;0)for(var r=(this.length&gt;&gt;1)-1;r&gt;=0;r--)this._down(r)};function cc(t,e){return t&lt;e?-1:t&gt;e?1:0}function uc(t,e,r){void 0===e&amp;&amp;(e=1),void 0===r&amp;&amp;(r=!1);for(var n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0],c=0;c&lt;l.length;c++){var u=l[c];(!c||u.x&lt;n)&amp;&amp;(n=u.x),(!c||u.y&lt;a)&amp;&amp;(a=u.y),(!c||u.x&gt;o)&amp;&amp;(o=u.x),(!c||u.y&gt;s)&amp;&amp;(s=u.y)}var f=o-n,h=s-a,p=Math.min(f,h),d=p/2,g=new lc([],fc);if(0===p)return new i(n,a);for(var m=n;m&lt;o;m+=p)for(var v=a;v&lt;s;v+=p)g.push(new hc(m+d,v+d,d,t));for(var y=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a&lt;o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new hc(r/e,n/e,0,t)}(t),x=g.length;g.length;){var b=g.pop();(b.d&gt;y.d||!y.d)&amp;&amp;(y=b,r&amp;&amp;console.log(&quot;found best %d after %d probes&quot;,Math.round(1e4*b.d)/1e4,x)),b.max-y.d&lt;=e||(d=b.h/2,g.push(new hc(b.p.x-d,b.p.y-d,d,t)),g.push(new hc(b.p.x+d,b.p.y-d,d,t)),g.push(new hc(b.p.x-d,b.p.y+d,d,t)),g.push(new hc(b.p.x+d,b.p.y+d,d,t)),x+=4)}return r&amp;&amp;(console.log(&quot;num probes: &quot;+x),console.log(&quot;best distance: &quot;+y.d)),y.p}function fc(t,e){return e.max-t.max}function hc(t,e,r,n){this.p=new i(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;i&lt;e.length;i++)for(var a=e[i],o=0,s=a.length,l=s-1;o&lt;s;l=o++){var c=a[o],u=a[l];c.y&gt;t.y!=u.y&gt;t.y&amp;&amp;t.x&lt;(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&amp;&amp;(r=!r),n=Math.min(n,ro(t,c,u))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}lc.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},lc.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length&gt;0&amp;&amp;(this.data[0]=e,this._down(0)),t}},lc.prototype.peek=function(){return this.data[0]},lc.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t&gt;0;){var i=t-1&gt;&gt;1,a=e[i];if(r(n,a)&gt;=0)break;e[t]=a,t=i}e[t]=n},lc.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length&gt;&gt;1,i=e[t];t&lt;n;){var a=1+(t&lt;&lt;1),o=e[a],s=a+1;if(s&lt;this.length&amp;&amp;r(e[s],o)&lt;0&amp;&amp;(a=s,o=e[s]),r(o,i)&gt;=0)break;e[t]=o,t=a}e[t]=i};var pc=Number.POSITIVE_INFINITY;function dc(t,e){return e[1]!==pc?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case&quot;top-right&quot;:case&quot;top-left&quot;:case&quot;top&quot;:i=r-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:case&quot;bottom&quot;:i=7-r}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:case&quot;right&quot;:n=-e;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:case&quot;left&quot;:n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e&lt;0&amp;&amp;(e=0);var i=e/Math.sqrt(2);switch(t){case&quot;top-right&quot;:case&quot;top-left&quot;:n=i-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:n=7-i;break;case&quot;bottom&quot;:n=7-e;break;case&quot;top&quot;:n=e-7}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:r=-i;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:r=i;break;case&quot;left&quot;:r=e;break;case&quot;right&quot;:r=-e}return[r,n]}(t,e[0])}function gc(t){switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:return&quot;right&quot;;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:return&quot;left&quot;}return&quot;center&quot;}function mc(t,e,r,n,a,o,s,l,c,u,f,h,p,d,g){var m=function(t,e,r,n,a,o,s,l){for(var c=n.layout.get(&quot;text-rotate&quot;).evaluate(o,{})*Math.PI/180,u=[],f=0,h=e.positionedLines;f&lt;h.length;f+=1)for(var p=h[f],d=0,g=p.positionedGlyphs;d&lt;g.length;d+=1){var m=g[d];if(m.rect){var v=m.rect||{},y=4,x=!0,b=1,_=0,w=(a||l)&amp;&amp;m.vertical,T=m.metrics.advance*m.scale/2;if(l&amp;&amp;e.verticalizable){var k=24*(m.scale-1),A=(24-m.metrics.width*m.scale)/2;_=p.lineOffset/2-(m.imageName?-A:k)}if(m.imageName){var M=s[m.imageName];x=M.sdf,y=1/(b=M.pixelRatio)}var S=a?[m.x+T,m.y]:[0,0],E=a?[0,0]:[m.x+T+r[0],m.y+r[1]-_],L=[0,0];w&amp;&amp;(L=E,E=[0,0]);var C=(m.metrics.left-y)*m.scale-T+E[0],P=(-m.metrics.top-y)*m.scale+E[1],I=C+v.w*m.scale/b,O=P+v.h*m.scale/b,z=new i(C,P),D=new i(I,P),R=new i(C,O),F=new i(I,O);if(w){var B=new i(-T,T- -17),N=-Math.PI/2,j=12-T,U=m.imageName?j:0,V=new i(22-j,-U),q=new(Function.prototype.bind.apply(i,[null].concat(L)));z._rotateAround(N,B)._add(V)._add(q),D._rotateAround(N,B)._add(V)._add(q),R._rotateAround(N,B)._add(V)._add(q),F._rotateAround(N,B)._add(V)._add(q)}if(c){var H=Math.sin(c),G=Math.cos(c),Y=[G,-H,H,G];z._matMult(Y),D._matMult(Y),R._matMult(Y),F._matMult(Y)}var W=new i(0,0),X=new i(0,0);u.push({tl:z,tr:D,bl:R,br:F,tex:v,writingMode:e.writingMode,glyphOffset:S,sectionIndex:m.sectionIndex,isSDF:x,pixelOffsetTL:W,pixelOffsetBR:X,minFontScaleX:0,minFontScaleY:0})}}return u}(0,r,l,a,o,s,n,t.allowVerticalPlacement),v=t.textSizeData,y=null;&quot;source&quot;===v.kind?(y=[128*a.layout.get(&quot;text-size&quot;).evaluate(s,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'):&quot;composite&quot;===v.kind&amp;&amp;((y=[128*d.compositeTextSizes[0].evaluate(s,{},g),128*d.compositeTextSizes[1].evaluate(s,{},g)])[0]&gt;32640||y[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'),t.addSymbols(t.text,m,y,l,o,s,u,e,c.lineStartIndex,c.lineLength,p,g);for(var x=0,b=f;x&lt;b.length;x+=1){h[b[x]]=t.text.placedSymbolArray.length-1}return 4*m.length}function vc(t){for(var e in t)return t[e];return null}function yc(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o&gt;=0;o--)if(n.dist(a[o])&lt;r)return!0}else i[e]=[];return i[e].push(n),!1}var xc=Ls.VectorTileFeature.types,bc=[{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint8&quot;,offset:0}];function _c(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,(p&lt;&lt;1)+(l?1:0),d,16*c,16*u,256*f,256*h)}function wc(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function Tc(t){for(var e=0,r=t.sections;e&lt;r.length;e+=1){if($n(r[e].text))return!0}return!1}var kc=function(t){this.layoutVertexArray=new Ni,this.indexArray=new Yi,this.programConfigurations=t,this.segments=new pa,this.dynamicLayoutVertexArray=new ji,this.opacityVertexArray=new Ui,this.placedSymbolArray=new aa};kc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&amp;&amp;0===this.indexArray.length&amp;&amp;0===this.dynamicLayoutVertexArray.length&amp;&amp;0===this.opacityVertexArray.length},kc.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&amp;&amp;(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Js.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Ks.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,bc,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&amp;&amp;this.programConfigurations.upload(t))},kc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Nn(&quot;SymbolBuffers&quot;,kc);var Ac=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new pa,this.collisionVertexArray=new Gi};Ac.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Qs.members,!0)},Ac.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Nn(&quot;CollisionBuffers&quot;,Ac);var Mc=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=ho([]),this.placementViewportMatrix=ho([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Gl(this.zoom,e[&quot;text-size&quot;]),this.iconSizeData=Gl(this.zoom,e[&quot;icon-size&quot;]);var r=this.layers[0].layout,n=r.get(&quot;symbol-sort-key&quot;),i=r.get(&quot;symbol-z-order&quot;);this.sortFeaturesByKey=&quot;viewport-y&quot;!==i&amp;&amp;void 0!==n.constantOr(1);var a=&quot;viewport-y&quot;===i||&quot;auto&quot;===i&amp;&amp;!this.sortFeaturesByKey;this.sortFeaturesByY=a&amp;&amp;(r.get(&quot;text-allow-overlap&quot;)||r.get(&quot;icon-allow-overlap&quot;)||r.get(&quot;text-ignore-placement&quot;)||r.get(&quot;icon-ignore-placement&quot;)),&quot;point&quot;===r.get(&quot;symbol-placement&quot;)&amp;&amp;(this.writingModes=r.get(&quot;text-writing-mode&quot;).map((function(t){return Cl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};Mc.prototype.createArrays=function(){this.text=new kc(new Ua(Js.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new kc(new Ua(Js.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new la,this.lineVertexArray=new ca,this.symbolInstances=new sa},Mc.prototype.calculateGlyphDependencies=function(t,e,r,n,i){for(var a=0;a&lt;t.length;a++)if(e[t.charCodeAt(a)]=!0,(r||n)&amp;&amp;i){var o=rl[t.charAt(a)];o&amp;&amp;(e[o.charCodeAt(0)]=!0)}},Mc.prototype.populate=function(t,e,r){var n=this.layers[0],i=n.layout,a=i.get(&quot;text-font&quot;),o=i.get(&quot;text-field&quot;),s=i.get(&quot;icon-image&quot;),l=(&quot;constant&quot;!==o.value.kind||o.value.value instanceof ne&amp;&amp;!o.value.value.isEmpty()||o.value.value.toString().length&gt;0)&amp;&amp;(&quot;constant&quot;!==a.value.kind||a.value.value.length&gt;0),c=&quot;constant&quot;!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length&gt;0,u=i.get(&quot;symbol-sort-key&quot;);if(this.features=[],l||c){for(var f=e.iconDependencies,h=e.glyphDependencies,p=e.availableImages,d=new pi(this.zoom),g=0,m=t;g&lt;m.length;g+=1){var v=m[g],y=v.feature,x=v.id,b=v.index,_=v.sourceLayerIndex,w=n._featureFilter.needGeometry,T={type:y.type,id:x,properties:y.properties,geometry:w?Ya(y):[]};if(n._featureFilter.filter(d,T,r)){w||(T.geometry=Ya(y));var k=void 0;if(l){var A=n.getValueAndResolveTokens(&quot;text-field&quot;,T,r,p),M=ne.factory(A);Tc(M)&amp;&amp;(this.hasRTLText=!0),(!this.hasRTLText||&quot;unavailable&quot;===ui()||this.hasRTLText&amp;&amp;hi.isParsed())&amp;&amp;(k=el(M,n,T))}var S=void 0;if(c){var E=n.getValueAndResolveTokens(&quot;icon-image&quot;,T,r,p);S=E instanceof ie?E:ie.fromString(E)}if(k||S){var L=this.sortFeaturesByKey?u.evaluate(T,{},r):void 0,C={id:x,text:k,icon:S,index:b,sourceLayerIndex:_,geometry:Ya(y),properties:y.properties,type:xc[y.type],sortKey:L};if(this.features.push(C),S&amp;&amp;(f[S.name]=!0),k){var P=a.evaluate(T,{},r).join(&quot;,&quot;),I=&quot;map&quot;===i.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==i.get(&quot;symbol-placement&quot;);this.allowVerticalPlacement=this.writingModes&amp;&amp;this.writingModes.indexOf(Cl.vertical)&gt;=0;for(var O=0,z=k.sections;O&lt;z.length;O+=1){var D=z[O];if(D.image)f[D.image.name]=!0;else{var R=Wn(k.toString()),F=D.fontStack||P,B=h[F]=h[F]||{};this.calculateGlyphDependencies(D.text,B,I,this.allowVerticalPlacement,R)}}}}}}&quot;line&quot;===i.get(&quot;symbol-placement&quot;)&amp;&amp;(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+&quot;:&quot;+n.x+&quot;:&quot;+n.y}for(var c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.text?u.text.toString():null;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&amp;&amp;d in e&amp;&amp;r[p]!==e[d]){var g=s(p,d,f),m=o(p,d,n[g].geometry);delete e[p],delete r[d],r[l(h,n[m].geometry,!0)]=m,n[g].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&amp;&amp;this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},Mc.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},Mc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&amp;&amp;!this.hasRTLText},Mc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},Mc.prototype.upload=function(t){!this.uploaded&amp;&amp;this.hasDebugData()&amp;&amp;(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},Mc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},Mc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&amp;&amp;this.destroyDebugData()},Mc.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o&lt;e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o&lt;e.length-1&amp;&amp;(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s&gt;=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s&gt;0&amp;&amp;(i+=e[s-1].dist(e[s]));for(var l=0;l&lt;e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},Mc.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=t.indexArray,p=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,p,h,a.sortKey),g=this.glyphOffsetArray.length,m=d.vertexLength,v=this.allowVerticalPlacement&amp;&amp;o===Cl.vertical?Math.PI/2:0,y=a.text&amp;&amp;a.text.sections,x=0;x&lt;e.length;x++){var b=e[x],_=b.tl,w=b.tr,T=b.bl,k=b.br,A=b.tex,M=b.pixelOffsetTL,S=b.pixelOffsetBR,E=b.minFontScaleX,L=b.minFontScaleY,C=b.glyphOffset,P=b.isSDF,I=b.sectionIndex,O=d.vertexLength,z=C[1];_c(p,s.x,s.y,_.x,z+_.y,A.x,A.y,r,P,M.x,M.y,E,L),_c(p,s.x,s.y,w.x,z+w.y,A.x+A.w,A.y,r,P,S.x,M.y,E,L),_c(p,s.x,s.y,T.x,z+T.y,A.x,A.y+A.h,r,P,M.x,S.y,E,L),_c(p,s.x,s.y,k.x,z+k.y,A.x+A.w,A.y+A.h,r,P,S.x,S.y,E,L),wc(t.dynamicLayoutVertexArray,s,v),h.emplaceBack(O,O+1,O+2),h.emplaceBack(O+1,O+2,O+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(C[0]),x!==e.length-1&amp;&amp;I===e[x+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,a,a.index,{},f,y&amp;&amp;y[I])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,m,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,0,!1,0,u)},Mc.prototype._addCollisionDebugVertex=function(t,e,r,n,i,a){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(a.x),Math.round(a.y))},Mc.prototype.addCollisionDebugVertices=function(t,e,r,n,a,o,s){var l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,f=a.collisionVertexArray,h=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(u,f,o,h,p,new i(t,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,n)),this._addCollisionDebugVertex(u,f,o,h,p,new i(t,n)),l.vertexLength+=4;var d=a.indexArray;d.emplaceBack(c,c+1),d.emplaceBack(c+1,c+2),d.emplaceBack(c+2,c+3),d.emplaceBack(c+3,c),l.primitiveLength+=4},Mc.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var i=t;i&lt;e;i++){var a=this.collisionBoxArray.get(i),o=a.x1,s=a.y1,l=a.x2,c=a.y2;this.addCollisionDebugVertices(o,s,l,c,n?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,r)}},Mc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&amp;&amp;this.destroyDebugData(),this.textCollisionBox=new Ac(qi,$s.members,Qi),this.iconCollisionBox=new Ac(qi,$s.members,Qi);for(var t=0;t&lt;this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},Mc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,i,a,o,s,l){for(var c={},u=e;u&lt;r;u++){var f=t.get(u);c.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},c.textFeatureIndex=f.featureIndex;break}for(var h=n;h&lt;i;h++){var p=t.get(h);c.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},c.verticalTextFeatureIndex=p.featureIndex;break}for(var d=a;d&lt;o;d++){var g=t.get(d);c.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},c.iconFeatureIndex=g.featureIndex;break}for(var m=s;m&lt;l;m++){var v=t.get(m);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},Mc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e&lt;this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},Mc.prototype.hasTextData=function(){return this.text.segments.get().length&gt;0},Mc.prototype.hasIconData=function(){return this.icon.segments.get().length&gt;0},Mc.prototype.hasDebugData=function(){return this.textCollisionBox&amp;&amp;this.iconCollisionBox},Mc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.textCollisionBox.segments.get().length&gt;0},Mc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.iconCollisionBox.segments.get().length&gt;0},Mc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i&lt;n;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},Mc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&amp;&amp;void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],i=[],a=[],o=0;o&lt;this.symbolInstances.length;++o){a.push(o);var s=this.symbolInstances.get(o);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),i.push(s.featureIndex)}return a.sort((function(t,e){return n[t]-n[e]||i[e]-i[t]})),a},Mc.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&amp;&amp;r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},Mc.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&amp;&amp;this.sortedAngle!==t&amp;&amp;!(this.text.segments.get().length&gt;1||this.icon.segments.get().length&gt;1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r&lt;n.length;r+=1){var i=n[r],a=this.symbolInstances.get(i);this.featureSortOrder.push(a.featureIndex),[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t&gt;=0&amp;&amp;n.indexOf(t)===r&amp;&amp;e.addIndicesForPlacedSymbol(e.text,t)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.text,a.verticalPlacedTextSymbolIndex),a.placedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,a.placedIconSymbolIndex),a.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,a.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&amp;&amp;this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&amp;&amp;this.icon.indexBuffer.updateData(this.icon.indexArray)}},Nn(&quot;SymbolBucket&quot;,Mc,{omit:[&quot;layers&quot;,&quot;collisionBoxArray&quot;,&quot;features&quot;,&quot;compareText&quot;]}),Mc.MAX_GLYPHS=65535,Mc.addDynamicAttributes=wc;var Sc=new Si({&quot;symbol-placement&quot;:new wi(Lt.layout_symbol[&quot;symbol-placement&quot;]),&quot;symbol-spacing&quot;:new wi(Lt.layout_symbol[&quot;symbol-spacing&quot;]),&quot;symbol-avoid-edges&quot;:new wi(Lt.layout_symbol[&quot;symbol-avoid-edges&quot;]),&quot;symbol-sort-key&quot;:new Ti(Lt.layout_symbol[&quot;symbol-sort-key&quot;]),&quot;symbol-z-order&quot;:new wi(Lt.layout_symbol[&quot;symbol-z-order&quot;]),&quot;icon-allow-overlap&quot;:new wi(Lt.layout_symbol[&quot;icon-allow-overlap&quot;]),&quot;icon-ignore-placement&quot;:new wi(Lt.layout_symbol[&quot;icon-ignore-placement&quot;]),&quot;icon-optional&quot;:new wi(Lt.layout_symbol[&quot;icon-optional&quot;]),&quot;icon-rotation-alignment&quot;:new wi(Lt.layout_symbol[&quot;icon-rotation-alignment&quot;]),&quot;icon-size&quot;:new Ti(Lt.layout_symbol[&quot;icon-size&quot;]),&quot;icon-text-fit&quot;:new wi(Lt.layout_symbol[&quot;icon-text-fit&quot;]),&quot;icon-text-fit-padding&quot;:new wi(Lt.layout_symbol[&quot;icon-text-fit-padding&quot;]),&quot;icon-image&quot;:new Ti(Lt.layout_symbol[&quot;icon-image&quot;]),&quot;icon-rotate&quot;:new Ti(Lt.layout_symbol[&quot;icon-rotate&quot;]),&quot;icon-padding&quot;:new wi(Lt.layout_symbol[&quot;icon-padding&quot;]),&quot;icon-keep-upright&quot;:new wi(Lt.layout_symbol[&quot;icon-keep-upright&quot;]),&quot;icon-offset&quot;:new Ti(Lt.layout_symbol[&quot;icon-offset&quot;]),&quot;icon-anchor&quot;:new Ti(Lt.layout_symbol[&quot;icon-anchor&quot;]),&quot;icon-pitch-alignment&quot;:new wi(Lt.layout_symbol[&quot;icon-pitch-alignment&quot;]),&quot;text-pitch-alignment&quot;:new wi(Lt.layout_symbol[&quot;text-pitch-alignment&quot;]),&quot;text-rotation-alignment&quot;:new wi(Lt.layout_symbol[&quot;text-rotation-alignment&quot;]),&quot;text-field&quot;:new Ti(Lt.layout_symbol[&quot;text-field&quot;]),&quot;text-font&quot;:new Ti(Lt.layout_symbol[&quot;text-font&quot;]),&quot;text-size&quot;:new Ti(Lt.layout_symbol[&quot;text-size&quot;]),&quot;text-max-width&quot;:new Ti(Lt.layout_symbol[&quot;text-max-width&quot;]),&quot;text-line-height&quot;:new wi(Lt.layout_symbol[&quot;text-line-height&quot;]),&quot;text-letter-spacing&quot;:new Ti(Lt.layout_symbol[&quot;text-letter-spacing&quot;]),&quot;text-justify&quot;:new Ti(Lt.layout_symbol[&quot;text-justify&quot;]),&quot;text-radial-offset&quot;:new Ti(Lt.layout_symbol[&quot;text-radial-offset&quot;]),&quot;text-variable-anchor&quot;:new wi(Lt.layout_symbol[&quot;text-variable-anchor&quot;]),&quot;text-anchor&quot;:new Ti(Lt.layout_symbol[&quot;text-anchor&quot;]),&quot;text-max-angle&quot;:new wi(Lt.layout_symbol[&quot;text-max-angle&quot;]),&quot;text-writing-mode&quot;:new wi(Lt.layout_symbol[&quot;text-writing-mode&quot;]),&quot;text-rotate&quot;:new Ti(Lt.layout_symbol[&quot;text-rotate&quot;]),&quot;text-padding&quot;:new wi(Lt.layout_symbol[&quot;text-padding&quot;]),&quot;text-keep-upright&quot;:new wi(Lt.layout_symbol[&quot;text-keep-upright&quot;]),&quot;text-transform&quot;:new Ti(Lt.layout_symbol[&quot;text-transform&quot;]),&quot;text-offset&quot;:new Ti(Lt.layout_symbol[&quot;text-offset&quot;]),&quot;text-allow-overlap&quot;:new wi(Lt.layout_symbol[&quot;text-allow-overlap&quot;]),&quot;text-ignore-placement&quot;:new wi(Lt.layout_symbol[&quot;text-ignore-placement&quot;]),&quot;text-optional&quot;:new wi(Lt.layout_symbol[&quot;text-optional&quot;])}),Ec={paint:new Si({&quot;icon-opacity&quot;:new Ti(Lt.paint_symbol[&quot;icon-opacity&quot;]),&quot;icon-color&quot;:new Ti(Lt.paint_symbol[&quot;icon-color&quot;]),&quot;icon-halo-color&quot;:new Ti(Lt.paint_symbol[&quot;icon-halo-color&quot;]),&quot;icon-halo-width&quot;:new Ti(Lt.paint_symbol[&quot;icon-halo-width&quot;]),&quot;icon-halo-blur&quot;:new Ti(Lt.paint_symbol[&quot;icon-halo-blur&quot;]),&quot;icon-translate&quot;:new wi(Lt.paint_symbol[&quot;icon-translate&quot;]),&quot;icon-translate-anchor&quot;:new wi(Lt.paint_symbol[&quot;icon-translate-anchor&quot;]),&quot;text-opacity&quot;:new Ti(Lt.paint_symbol[&quot;text-opacity&quot;]),&quot;text-color&quot;:new Ti(Lt.paint_symbol[&quot;text-color&quot;],{runtimeType:Ut,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),&quot;text-halo-color&quot;:new Ti(Lt.paint_symbol[&quot;text-halo-color&quot;]),&quot;text-halo-width&quot;:new Ti(Lt.paint_symbol[&quot;text-halo-width&quot;]),&quot;text-halo-blur&quot;:new Ti(Lt.paint_symbol[&quot;text-halo-blur&quot;]),&quot;text-translate&quot;:new wi(Lt.paint_symbol[&quot;text-translate&quot;]),&quot;text-translate-anchor&quot;:new wi(Lt.paint_symbol[&quot;text-translate-anchor&quot;])}),layout:Sc},Lc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ft,this.defaultValue=t};Lc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&amp;&amp;e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&amp;&amp;t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},Lc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},Lc.prototype.outputDefined=function(){return!1},Lc.prototype.serialize=function(){return null},Nn(&quot;FormatSectionOverride&quot;,Lc,{omit:[&quot;defaultValue&quot;]});var Cc=function(t){function e(e){t.call(this,e,Ec)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),&quot;auto&quot;===this.layout.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;(&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;map&quot;:this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-rotation-alignment&quot;)&amp;&amp;(&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;map&quot;:this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-pitch-alignment&quot;]=this.layout.get(&quot;text-rotation-alignment&quot;)),&quot;auto&quot;===this.layout.get(&quot;icon-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-pitch-alignment&quot;]=this.layout.get(&quot;icon-rotation-alignment&quot;)),&quot;point&quot;===this.layout.get(&quot;symbol-placement&quot;)){var n=this.layout.get(&quot;text-writing-mode&quot;);if(n){for(var i=[],a=0,o=n;a&lt;o.length;a+=1){var s=o[a];i.indexOf(s)&lt;0&amp;&amp;i.push(s)}this.layout._values[&quot;text-writing-mode&quot;]=i}else this.layout._values[&quot;text-writing-mode&quot;]=[&quot;horizontal&quot;]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||Yr(a.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):&quot;&quot;}))}(e.properties,i)},e.prototype.createBucket=function(t){return new Mc(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=Ec.paint.overridableProperties;t&lt;r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var i=this.paint.get(n),a=new Lc(i),o=new Gr(a,i.property.specification),s=null;s=&quot;constant&quot;===i.value.kind||&quot;source&quot;===i.value.kind?new Xr(&quot;source&quot;,o):new Zr(&quot;composite&quot;,o,i.value.zoomStops,i.value._interpolationType),this.paint._values[n]=new bi(i.property,s,i.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&amp;&amp;e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get(&quot;text-field&quot;),n=Ec.paint.properties[e],i=!1,a=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var a=r[e];if(n.overrides&amp;&amp;n.overrides.hasOverride(a))return void(i=!0)}};if(&quot;constant&quot;===r.value.kind&amp;&amp;r.value.value instanceof ne)a(r.value.value.sections);else if(&quot;source&quot;===r.value.kind){var o=function(t){if(!i)if(t instanceof ce&amp;&amp;se(t.value)===Gt){var e=t.value;a(e.sections)}else t instanceof pe?a(t.sections):t.eachChild(o)},s=r.value;s._styleExpression&amp;&amp;o(s._styleExpression.expression)}return i},e}(Ei),Pc={paint:new Si({&quot;background-color&quot;:new wi(Lt.paint_background[&quot;background-color&quot;]),&quot;background-pattern&quot;:new Ai(Lt.paint_background[&quot;background-pattern&quot;]),&quot;background-opacity&quot;:new wi(Lt.paint_background[&quot;background-opacity&quot;])})},Ic=function(t){function e(e){t.call(this,e,Pc)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Ei),Oc={paint:new Si({&quot;raster-opacity&quot;:new wi(Lt.paint_raster[&quot;raster-opacity&quot;]),&quot;raster-hue-rotate&quot;:new wi(Lt.paint_raster[&quot;raster-hue-rotate&quot;]),&quot;raster-brightness-min&quot;:new wi(Lt.paint_raster[&quot;raster-brightness-min&quot;]),&quot;raster-brightness-max&quot;:new wi(Lt.paint_raster[&quot;raster-brightness-max&quot;]),&quot;raster-saturation&quot;:new wi(Lt.paint_raster[&quot;raster-saturation&quot;]),&quot;raster-contrast&quot;:new wi(Lt.paint_raster[&quot;raster-contrast&quot;]),&quot;raster-resampling&quot;:new wi(Lt.paint_raster[&quot;raster-resampling&quot;]),&quot;raster-fade-duration&quot;:new wi(Lt.paint_raster[&quot;raster-fade-duration&quot;])})},zc=function(t){function e(e){t.call(this,e,Oc)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Ei);var Dc=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.is3D=function(){return&quot;3d&quot;===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&amp;&amp;this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&amp;&amp;this.implementation.onRemove(t,t.painter.context.gl)},e}(Ei),Rc={circle:_o,heatmap:Po,hillshade:Oo,fill:xs,&quot;fill-extrusion&quot;:Fs,line:Xs,symbol:Cc,background:Ic,raster:zc};var Fc=self.HTMLImageElement,Bc=self.HTMLCanvasElement,Nc=self.HTMLVideoElement,jc=self.ImageData,Uc=self.ImageBitmap,Vc=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};Vc.prototype.update=function(t,e,r){var n=t.width,i=t.height,a=!(this.size&amp;&amp;this.size[0]===n&amp;&amp;this.size[1]===i||r),o=this.context,s=o.gl;if(this.useMipmap=Boolean(e&amp;&amp;e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&amp;&amp;(!e||!1!==e.premultiply)),a)this.size=[n,i],t instanceof Fc||t instanceof Bc||t instanceof Nc||t instanceof jc||Uc&amp;&amp;t instanceof Uc?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},c=l.x,u=l.y;t instanceof Fc||t instanceof Bc||t instanceof Nc||t instanceof jc||Uc&amp;&amp;t instanceof Uc?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,u,n,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&amp;&amp;this.isSizePowerOfTwo()&amp;&amp;s.generateMipmap(s.TEXTURE_2D)},Vc.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Vc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&amp;&amp;Math.log(this.size[0])/Math.LN2%1==0},Vc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var qc=function(t){var e=this;this._callback=t,this._triggered=!1,&quot;undefined&quot;!=typeof MessageChannel&amp;&amp;(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};qc.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},qc.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Hc=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g([&quot;receive&quot;,&quot;process&quot;],this),this.invoker=new qc(this.process),this.target.addEventListener(&quot;message&quot;,this.receive,!1),this.globalScope=k()?t:self};function Gc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}Hc.prototype.send=function(t,e,r,n,i){var a=this;void 0===i&amp;&amp;(i=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&amp;&amp;(this.callbacks[o]=r);var s=S(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:qn(e,s)},s),{cancel:function(){r&amp;&amp;delete a.callbacks[o],a.target.postMessage({id:o,type:&quot;&lt;cancel&gt;&quot;,targetMapId:n,sourceMapId:a.mapId})}}},Hc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&amp;&amp;(!e.targetMapId||this.mapId===e.targetMapId))if(&quot;&lt;cancel&gt;&quot;===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&amp;&amp;n()}else k()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},Hc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&amp;&amp;this.invoker.trigger(),e&amp;&amp;this.processTask(t,e)}},Hc.prototype.processTask=function(t,e){var r=this;if(&quot;&lt;response&gt;&quot;===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&amp;&amp;(e.error?n(Hn(e.error)):n(null,Hn(e.data)))}else{var i=!1,a=S(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:&quot;&lt;response&gt;&quot;,sourceMapId:r.mapId,error:e?qn(e):null,data:qn(n,a)},a)}:function(t){i=!0},s=null,l=Hn(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(&quot;.&quot;);s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error(&quot;Could not find function &quot;+e.type));!i&amp;&amp;s&amp;&amp;s.cancel&amp;&amp;(this.cancelCallbacks[t]=s.cancel)}},Hc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener(&quot;message&quot;,this.receive,!1)};var Yc=function(t,e){t&amp;&amp;(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Yc.prototype.setNorthEast=function(t){return this._ne=t instanceof Wc?new Wc(t.lng,t.lat):Wc.convert(t),this},Yc.prototype.setSouthWest=function(t){return this._sw=t instanceof Wc?new Wc(t.lng,t.lat):Wc.convert(t),this},Yc.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Wc)e=t,r=t;else{if(!(t instanceof Yc)){if(Array.isArray(t)){if(4===t.length||t.every(Array.isArray)){var a=t;return this.extend(Yc.convert(a))}var o=t;return this.extend(Wc.convert(o))}return this}if(e=t._sw,r=t._ne,!e||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Wc(e.lng,e.lat),this._ne=new Wc(r.lng,r.lat)),this},Yc.prototype.getCenter=function(){return new Wc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Yc.prototype.getSouthWest=function(){return this._sw},Yc.prototype.getNorthEast=function(){return this._ne},Yc.prototype.getNorthWest=function(){return new Wc(this.getWest(),this.getNorth())},Yc.prototype.getSouthEast=function(){return new Wc(this.getEast(),this.getSouth())},Yc.prototype.getWest=function(){return this._sw.lng},Yc.prototype.getSouth=function(){return this._sw.lat},Yc.prototype.getEast=function(){return this._ne.lng},Yc.prototype.getNorth=function(){return this._ne.lat},Yc.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Yc.prototype.toString=function(){return&quot;LngLatBounds(&quot;+this._sw.toString()+&quot;, &quot;+this._ne.toString()+&quot;)&quot;},Yc.prototype.isEmpty=function(){return!(this._sw&amp;&amp;this._ne)},Yc.prototype.contains=function(t){var e=Wc.convert(t),r=e.lng,n=e.lat,i=this._sw.lat&lt;=n&amp;&amp;n&lt;=this._ne.lat,a=this._sw.lng&lt;=r&amp;&amp;r&lt;=this._ne.lng;return this._sw.lng&gt;this._ne.lng&amp;&amp;(a=this._sw.lng&gt;=r&amp;&amp;r&gt;=this._ne.lng),i&amp;&amp;a},Yc.convert=function(t){return!t||t instanceof Yc?t:new Yc(t)};var Wc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(&quot;Invalid LngLat object: (&quot;+t+&quot;, &quot;+e+&quot;)&quot;);if(this.lng=+t,this.lat=+e,this.lat&gt;90||this.lat&lt;-90)throw new Error(&quot;Invalid LngLat latitude value: must be between -90 and 90&quot;)};Wc.prototype.wrap=function(){return new Wc(c(this.lng,-180,180),this.lat)},Wc.prototype.toArray=function(){return[this.lng,this.lat]},Wc.prototype.toString=function(){return&quot;LngLat(&quot;+this.lng+&quot;, &quot;+this.lat+&quot;)&quot;},Wc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Wc.prototype.toBounds=function(t){void 0===t&amp;&amp;(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Yc(new Wc(this.lng-r,this.lat-e),new Wc(this.lng+r,this.lat+e))},Wc.convert=function(t){if(t instanceof Wc)return t;if(Array.isArray(t)&amp;&amp;(2===t.length||3===t.length))return new Wc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;null!==t)return new Wc(Number(&quot;lng&quot;in t?t.lng:t.lon),Number(t.lat));throw new Error(&quot;`LngLatLike` argument must be specified as a LngLat instance, an object {lng: &lt;lng&gt;, lat: &lt;lat&gt;}, an object {lon: &lt;lng&gt;, lat: &lt;lat&gt;}, or an array of [&lt;lng&gt;, &lt;lat&gt;]&quot;)};var Xc=2*Math.PI*6371008.8;function Zc(t){return Xc*Math.cos(t*Math.PI/180)}function Jc(t){return(180+t)/360}function Kc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Qc(t,e){return t/Zc(e)}function $c(t){var e=180-360*t;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}var tu=function(t,e,r){void 0===r&amp;&amp;(r=0),this.x=+t,this.y=+e,this.z=+r};tu.fromLngLat=function(t,e){void 0===e&amp;&amp;(e=0);var r=Wc.convert(t);return new tu(Jc(r.lng),Kc(r.lat),Qc(e,r.lat))},tu.prototype.toLngLat=function(){return new Wc(360*this.x-180,$c(this.y))},tu.prototype.toAltitude=function(){return t=this.z,e=this.y,t*Zc($c(e));var t,e},tu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Xc*(t=$c(this.y),1/Math.cos(t*Math.PI/180));var t};var eu=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=iu(0,t,t,e,r)};eu.prototype.equals=function(t){return this.z===t.z&amp;&amp;this.x===t.x&amp;&amp;this.y===t.y},eu.prototype.url=function(t,e){var r,n,i,a,o,s=(r=this.x,n=this.y,i=this.z,a=Gc(256*r,256*(n=Math.pow(2,i)-n-1),i),o=Gc(256*(r+1),256*(n+1),i),a[0]+&quot;,&quot;+a[1]+&quot;,&quot;+o[0]+&quot;,&quot;+o[1]),l=function(t,e,r){for(var n,i=&quot;&quot;,a=t;a&gt;0;a--)i+=(e&amp;(n=1&lt;&lt;a-1)?1:0)+(r&amp;n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(&quot;{prefix}&quot;,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(&quot;{z}&quot;,String(this.z)).replace(&quot;{x}&quot;,String(this.x)).replace(&quot;{y}&quot;,String(&quot;tms&quot;===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(&quot;{quadkey}&quot;,l).replace(&quot;{bbox-epsg-3857}&quot;,s)},eu.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new i(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},eu.prototype.toString=function(){return this.z+&quot;/&quot;+this.x+&quot;/&quot;+this.y};var ru=function(t,e){this.wrap=t,this.canonical=e,this.key=iu(t,e.z,e.z,e.x,e.y)},nu=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new eu(r,+n,+i),this.key=iu(e,t,r,n,i)};function iu(t,e,r,n,i){(t*=2)&lt;0&amp;&amp;(t=-1*t-1);var a=1&lt;&lt;r;return(a*a*t+a*i+n).toString(36)+r.toString(36)+e.toString(36)}nu.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&amp;&amp;this.wrap===t.wrap&amp;&amp;this.canonical.equals(t.canonical)},nu.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t&gt;this.canonical.z?new nu(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new nu(t,this.wrap,t,this.canonical.x&gt;&gt;e,this.canonical.y&gt;&gt;e)},nu.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t&gt;this.canonical.z?iu(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):iu(this.wrap*+e,t,t,this.canonical.x&gt;&gt;r,this.canonical.y&gt;&gt;r)},nu.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ&lt;this.overscaledZ&amp;&amp;t.canonical.x===this.canonical.x&gt;&gt;e&amp;&amp;t.canonical.y===this.canonical.y&gt;&gt;e},nu.prototype.children=function(t){if(this.overscaledZ&gt;=t)return[new nu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new nu(e,this.wrap,e,r,n),new nu(e,this.wrap,e,r+1,n),new nu(e,this.wrap,e,r,n+1),new nu(e,this.wrap,e,r+1,n+1)]},nu.prototype.isLessThan=function(t){return this.wrap&lt;t.wrap||!(this.wrap&gt;t.wrap)&amp;&amp;(this.overscaledZ&lt;t.overscaledZ||!(this.overscaledZ&gt;t.overscaledZ)&amp;&amp;(this.canonical.x&lt;t.canonical.x||!(this.canonical.x&gt;t.canonical.x)&amp;&amp;this.canonical.y&lt;t.canonical.y))},nu.prototype.wrapped=function(){return new nu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},nu.prototype.unwrapTo=function(t){return new nu(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},nu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},nu.prototype.toUnwrapped=function(){return new ru(this.wrap,this.canonical)},nu.prototype.toString=function(){return this.overscaledZ+&quot;/&quot;+this.canonical.x+&quot;/&quot;+this.canonical.y},nu.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new tu(t.x-this.wrap,t.y))},Nn(&quot;CanonicalTileID&quot;,eu),Nn(&quot;OverscaledTileID&quot;,nu,{omit:[&quot;posMatrix&quot;]});var au=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError(&quot;DEM tiles must be square&quot;);if(r&amp;&amp;&quot;mapbox&quot;!==r&amp;&amp;&quot;terrarium&quot;!==r)return _('&quot;'+r+'&quot; is not a valid encoding type. Valid types include &quot;mapbox&quot; and &quot;terrarium&quot;.');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||&quot;mapbox&quot;;for(var i=0;i&lt;n;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(n,i)]=this.data[this._idx(n-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,n)]=this.data[this._idx(i,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};au.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return(&quot;terrarium&quot;===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},au.prototype.getUnpackVector=function(){return&quot;terrarium&quot;===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},au.prototype._idx=function(t,e){if(t&lt;-1||t&gt;=this.dim+1||e&lt;-1||e&gt;=this.dim+1)throw new RangeError(&quot;out of range source coordinates for DEM data&quot;);return(e+1)*this.stride+(t+1)},au.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},au.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},au.prototype.getPixels=function(){return new Eo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},au.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error(&quot;dem dimension mismatch&quot;);var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c&lt;o;c++)for(var u=n;u&lt;i;u++)this.data[this._idx(u,c)]=t.data[this._idx(u+s,c+l)]},Nn(&quot;DEMData&quot;,au);var ou=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e&lt;t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};ou.prototype.encode=function(t){return this._stringToNumber[t]},ou.prototype.decode=function(t){return this._numberToString[t]};var su=function(t,e,r,n,i){this.type=&quot;Feature&quot;,this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i},lu={geometry:{configurable:!0}};lu.geometry.get=function(){return void 0===this._geometry&amp;&amp;(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},lu.geometry.set=function(t){this._geometry=t},su.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)&quot;_geometry&quot;!==e&amp;&amp;&quot;_vectorTileFeature&quot;!==e&amp;&amp;(t[e]=this[e]);return t},Object.defineProperties(su.prototype,lu);var cu=function(){this.state={},this.stateChanges={},this.deletedStates={}};cu.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},u(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==n&amp;&amp;(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&amp;&amp;null===this.deletedStates[t][n])for(var a in this.deletedStates[t][n]={},this.state[t][n])r[a]||(this.deletedStates[t][n][a]=null);else for(var o in r){this.deletedStates[t]&amp;&amp;this.deletedStates[t][n]&amp;&amp;null===this.deletedStates[t][n][o]&amp;&amp;delete this.deletedStates[t][n][o]}},cu.prototype.removeFeatureState=function(t,e,r){if(!(null===this.deletedStates[t])){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&amp;&amp;void 0!==e)null!==this.deletedStates[t][n]&amp;&amp;(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e){if(this.stateChanges[t]&amp;&amp;this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null}else this.deletedStates[t]=null}},cu.prototype.getState=function(t,e){var r=String(e),n=this.state[t]||{},i=this.stateChanges[t]||{},a=u({},n[r],i[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var o=this.deletedStates[t][e];if(null===o)return{};for(var s in o)delete a[s]}return a},cu.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},cu.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var i={};for(var a in this.stateChanges[n])this.state[n][a]||(this.state[n][a]={}),u(this.state[n][a],this.stateChanges[n][a]),i[a]=this.state[n][a];r[n]=i}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var f=0,h=Object.keys(this.deletedStates[o][c]);f&lt;h.length;f+=1){var p=h[f];delete this.state[o][c][p]}s[c]=this.state[o][c]}r[o]=r[o]||{},u(r[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var d in t){t[d].setFeatureState(r,e)}};var uu=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new zn(8192,16,0),this.grid3D=new zn(8192,16,0),this.featureIndexArray=new fa,this.promoteId=e};function fu(t,e,r,n,i){return v(t,(function(t,a){var o=e instanceof _i?e.get(a):null;return o&amp;&amp;o.evaluate?o.evaluate(r,n,i):o}))}function hu(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0,o=t;a&lt;o.length;a+=1){var s=o[a];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y)}return{minX:e,minY:r,maxX:n,maxY:i}}function pu(t,e){return e-t}uu.prototype.insert=function(t,e,r,n,i,a){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var s=a?this.grid3D:this.grid,l=0;l&lt;e.length;l++){for(var c=e[l],u=[1/0,1/0,-1/0,-1/0],f=0;f&lt;c.length;f++){var h=c[f];u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y)}u[0]&lt;8192&amp;&amp;u[1]&lt;8192&amp;&amp;u[2]&gt;=0&amp;&amp;u[3]&gt;=0&amp;&amp;s.insert(o,u[0],u[1],u[2],u[3])}},uu.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Ls.VectorTile(new al(this.rawTileData)).layers,this.sourceLayerCoder=new ou(this.vtLayers?Object.keys(this.vtLayers).sort():[&quot;_geojsonTileLayer&quot;])),this.vtLayers},uu.prototype.query=function(t,e,r,n){var a=this;this.loadVTLayers();for(var o=t.params||{},s=8192/t.tileSize/t.scale,l=sn(o.filter),c=t.queryGeometry,u=t.queryPadding*s,f=hu(c),h=this.grid.query(f.minX-u,f.minY-u,f.maxX+u,f.maxY+u),p=hu(t.cameraQueryGeometry),d=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(e,r,n,a){return function(t,e,r,n,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o];if(e&lt;=l.x&amp;&amp;r&lt;=l.y&amp;&amp;n&gt;=l.x&amp;&amp;a&gt;=l.y)return!0}var c=[new i(e,r),new i(e,a),new i(n,a),new i(n,r)];if(t.length&gt;2)for(var u=0,f=c;u&lt;f.length;u+=1){if(io(t,f[u]))return!0}for(var h=0;h&lt;t.length-1;h++){if(ao(t[h],t[h+1],c))return!0}return!1}(t.cameraQueryGeometry,e-u,r-u,n+u,a+u)})),g=0,m=d;g&lt;m.length;g+=1){var v=m[g];h.push(v)}h.sort(pu);for(var y,x={},b=function(i){var u=h[i];if(u!==y){y=u;var f=a.featureIndexArray.get(u),p=null;a.loadMatchingFeature(x,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,l,o.layers,o.availableImages,e,r,n,(function(e,r,n){return p||(p=Ya(e)),r.queryIntersectsFeature(c,e,n,p,a.z,t.transform,s,t.pixelPosMatrix)}))}},_=0;_&lt;h.length;_++)b(_);return x},uu.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r&lt;t.length;r++)if(e.indexOf(t[r])&gt;=0)return!0;return!1}(a,f)){var h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(n);if(i.filter(new pi(this.tileID.overscaledZ),p))for(var d=this.getId(p,h),g=0;g&lt;f.length;g++){var m=f[g];if(!(a&amp;&amp;a.indexOf(m)&lt;0)){var v=s[m];if(v){var y={};void 0!==d&amp;&amp;c&amp;&amp;(y=c.getState(v.sourceLayer||&quot;_geojsonTileLayer&quot;,d));var x=l[m];x.paint=fu(x.paint,v.paint,p,y,o),x.layout=fu(x.layout,v.layout,p,y,o);var b=!u||u(p,v,y);if(b){var _=new su(p,this.z,this.x,this.y,d);_.layer=x;var w=t[m];void 0===w&amp;&amp;(w=t[m]=[]),w.push({featureIndex:n,feature:_,intersectionZ:b})}}}}}},uu.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a,o,s){var l={};this.loadVTLayers();for(var c=sn(i),u=0,f=t;u&lt;f.length;u+=1){var h=f[u];this.loadMatchingFeature(l,r,n,h,c,a,o,s,e)}return l},uu.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e&lt;r.length;e+=1)for(var n=0,i=r[e];n&lt;i.length;n+=1){if(t===i[n])return!0}return!1},uu.prototype.getId=function(t,e){var r=t.id;if(this.promoteId){var n=&quot;string&quot;==typeof this.promoteId?this.promoteId:this.promoteId[e];&quot;boolean&quot;==typeof(r=t.properties[n])&amp;&amp;(r=Number(r))}return r},Nn(&quot;FeatureIndex&quot;,uu,{omit:[&quot;rawTileData&quot;,&quot;sourceLayerCoder&quot;]});var du=function(t,e){this.tileID=t,this.uid=h(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state=&quot;loading&quot;};du.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e&lt;R.now()||this.fadeEndTime&amp;&amp;e&lt;this.fadeEndTime||(this.fadeEndTime=e)},du.prototype.wasRequested=function(){return&quot;errored&quot;===this.state||&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state},du.prototype.loadVectorData=function(t,e,r){if(this.hasData()&amp;&amp;this.unloadVectorData(),this.state=&quot;loaded&quot;,t){for(var n in t.featureIndex&amp;&amp;(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&amp;&amp;(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=function(){var t=a[i],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&amp;&amp;(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var o=0,s=n;o&lt;s.length;o+=1){var l=s[o];r[l.id]=t}}},i=0,a=t;i&lt;a.length;i+=1)n();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[n];if(i instanceof Mc){if(this.hasSymbolBuckets=!0,!r)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var a in this.buckets){var o=this.buckets[a];if(o instanceof Mc&amp;&amp;o.hasRTLText){this.hasRTLText=!0,hi.isLoading()||hi.isLoaded()||&quot;deferred&quot;!==ui()||fi();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&amp;&amp;(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&amp;&amp;(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new na},du.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&amp;&amp;this.imageAtlasTexture.destroy(),this.imageAtlas&amp;&amp;(this.imageAtlas=null),this.glyphAtlasTexture&amp;&amp;this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=&quot;unloaded&quot;},du.prototype.getBucket=function(t){return this.buckets[t.id]},du.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&amp;&amp;r.upload(t)}var n=t.gl;this.imageAtlas&amp;&amp;!this.imageAtlas.uploaded&amp;&amp;(this.imageAtlasTexture=new Vc(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&amp;&amp;(this.glyphAtlasTexture=new Vc(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},du.prototype.prepare=function(t){this.imageAtlas&amp;&amp;this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},du.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o,s,l,c){return this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}},du.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&amp;&amp;r.rawTileData){var n=r.loadVTLayers(),i=e?e.sourceLayer:&quot;&quot;,a=n._geojsonTileLayer||n[i];if(a)for(var o=sn(e&amp;&amp;e.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,f={z:l,x:c,y:u},h=0;h&lt;a.length;h++){var p=a.feature(h);if(o.filter(new pi(this.tileID.overscaledZ),p)){var d=r.getId(p,i),g=new su(p,l,c,u,d);g.tile=f,t.push(g)}}}},du.prototype.hasData=function(){return&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state||&quot;expired&quot;===this.state},du.prototype.patternsLoaded=function(){return this.imageAtlas&amp;&amp;!!Object.keys(this.imageAtlas.patternPositions).length},du.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=A(t.cacheControl);r[&quot;max-age&quot;]&amp;&amp;(this.expirationTime=Date.now()+1e3*r[&quot;max-age&quot;])}else t.expires&amp;&amp;(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),i=!1;if(this.expirationTime&gt;n)i=!1;else if(e)if(this.expirationTime&lt;e)i=!0;else{var a=this.expirationTime-e;a?this.expirationTime=n+Math.max(a,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state=&quot;expired&quot;):this.expiredRequestCount=0}},du.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1&lt;&lt;Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},du.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData&amp;&amp;0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var i=this.buckets[n],a=i.layers[0].sourceLayer||&quot;_geojsonTileLayer&quot;,o=r[a],s=t[a];if(o&amp;&amp;s&amp;&amp;0!==Object.keys(s).length){i.update(s,o,this.imageAtlas&amp;&amp;this.imageAtlas.patternPositions||{});var l=e&amp;&amp;e.style&amp;&amp;e.style.getLayer(n);l&amp;&amp;(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},du.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},du.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil&lt;R.now()},du.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},du.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=R.now()+t},du.prototype.setDependencies=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){r[i[n]]=!0}this.dependencies[t]=r},du.prototype.hasDependency=function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){var i=n[r],a=this.dependencies[i];if(a)for(var o=0,s=e;o&lt;s.length;o+=1){if(a[s[o]])return!0}}return!1};var gu=self.performance,mu=function(t){this._marks={start:[t.url,&quot;start&quot;].join(&quot;#&quot;),end:[t.url,&quot;end&quot;].join(&quot;#&quot;),measure:t.url.toString()},gu.mark(this._marks.start)};mu.prototype.finish=function(){gu.mark(this._marks.end);var t=gu.getEntriesByName(this._marks.measure);return 0===t.length&amp;&amp;(gu.measure(this._marks.measure,this._marks.start,this._marks.end),t=gu.getEntriesByName(this._marks.measure),gu.clearMarks(this._marks.start),gu.clearMarks(this._marks.end),gu.clearMeasures(this._marks.measure)),t},t.Actor=Hc,t.AlphaImage=So,t.CanonicalTileID=eu,t.CollisionBoxArray=na,t.Color=te,t.DEMData=au,t.DataConstantProperty=wi,t.DictionaryCoder=ou,t.EXTENT=8192,t.ErrorEvent=St,t.EvaluationParameters=pi,t.Event=Mt,t.Evented=Et,t.FeatureIndex=uu,t.FillBucket=ms,t.FillExtrusionBucket=Os,t.ImageAtlas=Ll,t.ImagePosition=Sl,t.LineBucket=Hs,t.LngLat=Wc,t.LngLatBounds=Yc,t.MercatorCoordinate=tu,t.ONE_EM=24,t.OverscaledTileID=nu,t.Point=i,t.Point$1=i,t.Properties=Si,t.Protobuf=al,t.RGBAImage=Eo,t.RequestManager=q,t.RequestPerformance=mu,t.ResourceType=dt,t.SegmentVector=pa,t.SourceFeatureState=cu,t.StructArrayLayout1ui2=$i,t.StructArrayLayout2f1f2i16=Hi,t.StructArrayLayout2i4=zi,t.StructArrayLayout3ui6=Yi,t.StructArrayLayout4i8=Di,t.SymbolBucket=Mc,t.Texture=Vc,t.Tile=du,t.Transitionable=mi,t.Uniform1f=Sa,t.Uniform1i=Ma,t.Uniform2f=Ea,t.Uniform3f=La,t.Uniform4f=Ca,t.UniformColor=Pa,t.UniformMatrix4f=Oa,t.UnwrappedTileID=ru,t.ValidationError=Ct,t.WritingMode=Cl,t.ZoomHistory=Gn,t.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},t.addDynamicAttributes=wc,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach((function(t,o){e(t,(function(t,e){t&amp;&amp;(a=t),i[o]=e,0==--n&amp;&amp;r(a,i)}))}))},t.bezier=o,t.bindAll=g,t.browser=R,t.cacheEntryPossiblyAdded=function(t){++ht&gt;ot&amp;&amp;(t.getActor().send(&quot;enforceCacheSizeLimit&quot;,at),ht=0)},t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete(&quot;mapbox-tiles&quot;);t&amp;&amp;e.catch(t).then((function(){return t()}))},t.clipLine=ec,t.clone=function(t){var e=new fo(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new fo(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=tl,t.config=F,t.create=function(){var t=new fo(16);return fo!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new fo(9);return fo!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new fo(4);return fo!=Float32Array&amp;&amp;(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=Wr,t.createLayout=Ii,t.createStyleLayer=function(t){return&quot;custom&quot;===t.type?new Dc(t):new Rc[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n&lt;e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;null!==r){if(&quot;object&quot;!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=s,t.emitValidationErrors=On,t.endsWith=m,t.enforceCacheSizeLimit=function(t){st(),Q&amp;&amp;Q.then((function(e){e.keys().then((function(r){for(var n=0;n&lt;r.length-t;n++)e.delete(r[n])}))}))},t.evaluateSizeForFeature=Yl,t.evaluateSizeForZoom=Wl,t.evaluateVariableOffset=dc,t.evented=ci,t.extend=u,t.featureFilter=sn,t.filterObject=y,t.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Ul,t.getAnchorJustification=gc,t.getArrayBuffer=xt,t.getImage=Tt,t.getJSON=function(t,e){return yt(u(t,{type:&quot;json&quot;}),e)},t.getRTLTextPluginStatus=ui,t.getReferrer=mt,t.getVideo=function(t,e){var r,n,i=self.document.createElement(&quot;video&quot;);i.muted=!0,i.onloadstart=function(){e(null,i)};for(var a=0;a&lt;t.length;a++){var o=self.document.createElement(&quot;source&quot;);r=t[a],n=void 0,(n=self.document.createElement(&quot;a&quot;)).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&amp;&amp;(i.crossOrigin=&quot;Anonymous&quot;),o.src=t[a],i.appendChild(o)}return{cancel:function(){}}},t.identity=ho,t.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,A=u*m-h*d,M=u*v-p*d,S=f*m-h*g,E=f*v-p*g,L=h*v-p*m,C=y*L-x*E+b*S+_*M-w*A+T*k;return C?(C=1/C,t[0]=(s*L-l*E+c*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(g*T-m*w+v*_)*C,t[3]=(h*w-f*T-p*_)*C,t[4]=(l*M-o*L-c*A)*C,t[5]=(r*L-i*M+a*A)*C,t[6]=(m*b-d*T-v*x)*C,t[7]=(u*T-h*b+p*x)*C,t[8]=(o*E-s*M+c*k)*C,t[9]=(n*M-r*E-a*k)*C,t[10]=(d*w-g*b+v*y)*C,t[11]=(f*b-u*w-p*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(g*x-d*_-m*y)*C,t[15]=(u*_-f*x+h*y)*C,t):null},t.isChar=Yn,t.isMapboxURL=H,t.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},t.makeRequest=yt,t.mapObject=v,t.mercatorXfromLng=Jc,t.mercatorYfromLat=Kc,t.mercatorZfromAltitude=Qc,t.mul=go,t.multiply=po,t.mvt=Ls,t.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a&gt;0&amp;&amp;(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=He,t.offscreenCanvasSupported=pt,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new al(t).readFields(Tl,[])},t.pbf=al,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays();var s=512*t.overscaling;t.tilePixelRatio=8192/s,t.compareText={},t.iconsNeedLinear=!1;var l=t.layers[0].layout,c=t.layers[0]._unevaluatedLayout._values,u={};if(&quot;composite&quot;===t.textSizeData.kind){var f=t.textSizeData,h=f.minZoom,p=f.maxZoom;u.compositeTextSizes=[c[&quot;text-size&quot;].possiblyEvaluate(new pi(h),o),c[&quot;text-size&quot;].possiblyEvaluate(new pi(p),o)]}if(&quot;composite&quot;===t.iconSizeData.kind){var d=t.iconSizeData,g=d.minZoom,m=d.maxZoom;u.compositeIconSizes=[c[&quot;icon-size&quot;].possiblyEvaluate(new pi(g),o),c[&quot;icon-size&quot;].possiblyEvaluate(new pi(m),o)]}u.layoutTextSize=c[&quot;text-size&quot;].possiblyEvaluate(new pi(t.zoom+1),o),u.layoutIconSize=c[&quot;icon-size&quot;].possiblyEvaluate(new pi(t.zoom+1),o),u.textMaxSize=c[&quot;text-size&quot;].possiblyEvaluate(new pi(18));for(var v=24*l.get(&quot;text-line-height&quot;),y=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==l.get(&quot;symbol-placement&quot;),x=l.get(&quot;text-keep-upright&quot;),b=l.get(&quot;text-size&quot;),w=function(){var a=k[T],s=l.get(&quot;text-font&quot;).evaluate(a,{},o).join(&quot;,&quot;),c=b.evaluate(a,{},o),f=u.layoutTextSize.evaluate(a,{},o),h=u.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},d=a.text,g=[0,0];if(d){var m=d.toString(),w=24*l.get(&quot;text-letter-spacing&quot;).evaluate(a,{},o),A=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(!Xn(r[e].charCodeAt(0)))return!1}return!0}(m)?w:0,M=l.get(&quot;text-anchor&quot;).evaluate(a,{},o),S=l.get(&quot;text-variable-anchor&quot;);if(!S){var E=l.get(&quot;text-radial-offset&quot;).evaluate(a,{},o);g=E?dc(M,[24*E,pc]):l.get(&quot;text-offset&quot;).evaluate(a,{},o).map((function(t){return 24*t}))}var L=y?&quot;center&quot;:l.get(&quot;text-justify&quot;).evaluate(a,{},o),C=l.get(&quot;symbol-placement&quot;),P=&quot;point&quot;===C?24*l.get(&quot;text-max-width&quot;).evaluate(a,{},o):0,I=function(){t.allowVerticalPlacement&amp;&amp;Wn(m)&amp;&amp;(p.vertical=Ol(d,e,r,i,s,P,v,M,&quot;left&quot;,A,g,Cl.vertical,!0,C,f,c))};if(!y&amp;&amp;S){for(var O=&quot;auto&quot;===L?S.map((function(t){return gc(t)})):[L],z=!1,D=0;D&lt;O.length;D++){var R=O[D];if(!p.horizontal[R])if(z)p.horizontal[R]=p.horizontal[0];else{var F=Ol(d,e,r,i,s,P,v,&quot;center&quot;,R,A,g,Cl.horizontal,!1,C,f,c);F&amp;&amp;(p.horizontal[R]=F,z=1===F.positionedLines.length)}}I()}else{&quot;auto&quot;===L&amp;&amp;(L=gc(M));var B=Ol(d,e,r,i,s,P,v,M,L,A,g,Cl.horizontal,!1,C,f,c);B&amp;&amp;(p.horizontal[L]=B),I(),Wn(m)&amp;&amp;y&amp;&amp;x&amp;&amp;(p.vertical=Ol(d,e,r,i,s,P,v,M,L,A,g,Cl.vertical,!1,C,f,c))}}var N=void 0,j=!1;if(a.icon&amp;&amp;a.icon.name){var U=n[a.icon.name];U&amp;&amp;(N=function(t,e,r){var n=Ul(r),i=n.horizontalAlign,a=n.verticalAlign,o=e[0],s=e[1],l=o-t.displaySize[0]*i,c=l+t.displaySize[0],u=s-t.displaySize[1]*a;return{image:t,top:u,bottom:u+t.displaySize[1],left:l,right:c}}(i[a.icon.name],l.get(&quot;icon-offset&quot;).evaluate(a,{},o),l.get(&quot;icon-anchor&quot;).evaluate(a,{},o)),j=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&amp;&amp;_(&quot;Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer&quot;),(U.pixelRatio!==t.pixelRatio||0!==l.get(&quot;icon-rotate&quot;).constantOr(1))&amp;&amp;(t.iconsNeedLinear=!0))}var V=vc(p.horizontal)||p.vertical;t.iconsInText=!!V&amp;&amp;V.iconsInText,(V||N)&amp;&amp;function(t,e,r,n,i,a,o,s,l,c,u){var f=a.textMaxSize.evaluate(e,{});void 0===f&amp;&amp;(f=o);var h,p=t.layers[0].layout,d=p.get(&quot;icon-offset&quot;).evaluate(e,{},u),g=vc(r.horizontal),m=o/24,v=t.tilePixelRatio*m,y=t.tilePixelRatio*f/24,x=t.tilePixelRatio*s,b=t.tilePixelRatio*p.get(&quot;symbol-spacing&quot;),w=p.get(&quot;text-padding&quot;)*t.tilePixelRatio,T=p.get(&quot;icon-padding&quot;)*t.tilePixelRatio,k=p.get(&quot;text-max-angle&quot;)/180*Math.PI,A=&quot;map&quot;===p.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),M=&quot;map&quot;===p.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),S=p.get(&quot;symbol-placement&quot;),E=b/2,L=p.get(&quot;icon-text-fit&quot;);n&amp;&amp;&quot;none&quot;!==L&amp;&amp;(t.allowVerticalPlacement&amp;&amp;r.vertical&amp;&amp;(h=ql(n,r.vertical,L,p.get(&quot;icon-text-fit-padding&quot;),d,m)),g&amp;&amp;(n=ql(n,g,L,p.get(&quot;icon-text-fit-padding&quot;),d,m)));var C=function(s,f){f.x&lt;0||f.x&gt;=8192||f.y&lt;0||f.y&gt;=8192||function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,w,T,k,A){var M,S,E,L,C,P=t.addToLineVertexArray(e,r),I=0,O=0,z=0,D=0,R=-1,F=-1,B={},N=ya(&quot;&quot;),j=0,U=0;void 0===s._unevaluatedLayout.getValue(&quot;text-radial-offset&quot;)?(M=s.layout.get(&quot;text-offset&quot;).evaluate(b,{},k).map((function(t){return 24*t})),j=M[0],U=M[1]):(j=24*s.layout.get(&quot;text-radial-offset&quot;).evaluate(b,{},k),U=pc);if(t.allowVerticalPlacement&amp;&amp;n.vertical){var V=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k)+90,q=n.vertical;L=new sc(l,e,c,u,f,q,h,p,d,V),o&amp;&amp;(C=new sc(l,e,c,u,f,o,m,v,d,V))}if(i){var H=s.layout.get(&quot;icon-rotate&quot;).evaluate(b,{}),G=&quot;none&quot;!==s.layout.get(&quot;icon-text-fit&quot;),Y=rc(i,H,T,G),W=o?rc(o,H,T,G):void 0;E=new sc(l,e,c,u,f,i,m,v,!1,H),I=4*Y.length;var X=t.iconSizeData,Z=null;&quot;source&quot;===X.kind?(Z=[128*s.layout.get(&quot;icon-size&quot;).evaluate(b,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'):&quot;composite&quot;===X.kind&amp;&amp;((Z=[128*w.compositeIconSizes[0].evaluate(b,{},k),128*w.compositeIconSizes[1].evaluate(b,{},k)])[0]&gt;32640||Z[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'),t.addSymbols(t.icon,Y,Z,x,y,b,!1,e,P.lineStartIndex,P.lineLength,-1,k),R=t.icon.placedSymbolArray.length-1,W&amp;&amp;(O=4*W.length,t.addSymbols(t.icon,W,Z,x,y,b,Cl.vertical,e,P.lineStartIndex,P.lineLength,-1,k),F=t.icon.placedSymbolArray.length-1)}for(var J in n.horizontal){var K=n.horizontal[J];if(!S){N=ya(K.text);var Q=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k);S=new sc(l,e,c,u,f,K,h,p,d,Q)}var $=1===K.positionedLines.length;if(z+=mc(t,e,K,a,s,d,b,g,P,n.vertical?Cl.horizontal:Cl.horizontalOnly,$?Object.keys(n.horizontal):[J],B,R,w,k),$)break}n.vertical&amp;&amp;(D+=mc(t,e,n.vertical,a,s,d,b,g,P,Cl.vertical,[&quot;vertical&quot;],B,F,w,k));var tt=S?S.boxStartIndex:t.collisionBoxArray.length,et=S?S.boxEndIndex:t.collisionBoxArray.length,rt=L?L.boxStartIndex:t.collisionBoxArray.length,nt=L?L.boxEndIndex:t.collisionBoxArray.length,it=E?E.boxStartIndex:t.collisionBoxArray.length,at=E?E.boxEndIndex:t.collisionBoxArray.length,ot=C?C.boxStartIndex:t.collisionBoxArray.length,st=C?C.boxEndIndex:t.collisionBoxArray.length,lt=-1,ct=function(t,e){return t&amp;&amp;t.circleDiameter?Math.max(t.circleDiameter,e):e};lt=ct(S,lt),lt=ct(L,lt),lt=ct(E,lt);var ut=(lt=ct(C,lt))&gt;-1?1:0;ut&amp;&amp;(lt*=A/24);t.glyphOffsetArray.length&gt;=Mc.MAX_GLYPHS&amp;&amp;_(&quot;Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907&quot;);void 0!==b.sortKey&amp;&amp;t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);t.symbolInstances.emplaceBack(e.x,e.y,B.right&gt;=0?B.right:-1,B.center&gt;=0?B.center:-1,B.left&gt;=0?B.left:-1,B.vertical||-1,R,F,N,tt,et,rt,nt,it,at,ot,st,c,z,D,I,O,ut,0,h,j,U,lt)}(t,f,s,r,n,i,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,w,A,l,x,T,M,d,e,a,c,u,o)};if(&quot;line&quot;===S)for(var P=0,I=ec(e.geometry,0,0,8192,8192);P&lt;I.length;P+=1)for(var O=I[P],z=tc(O,b,k,r.vertical||g,n,24,y,t.overscaling,8192),D=0,R=z;D&lt;R.length;D+=1){var F=R[D],B=g;B&amp;&amp;yc(t,B.text,E,F)||C(O,F)}else if(&quot;line-center&quot;===S)for(var N=0,j=e.geometry;N&lt;j.length;N+=1){var U=j[N];if(U.length&gt;1){var V=$l(U,k,r.vertical||g,n,24,y);V&amp;&amp;C(U,V)}}else if(&quot;Polygon&quot;===e.type)for(var q=0,H=hs(e.geometry,0);q&lt;H.length;q+=1){var G=H[q],Y=uc(G,16);C(G[0],new Hl(Y.x,Y.y,0))}else if(&quot;LineString&quot;===e.type)for(var W=0,X=e.geometry;W&lt;X.length;W+=1){var Z=X[W];C(Z,new Hl(Z[0].x,Z[0].y,0))}else if(&quot;Point&quot;===e.type)for(var J=0,K=e.geometry;J&lt;K.length;J+=1)for(var Q=K[J],$=0,tt=Q;$&lt;tt.length;$+=1){var et=tt[$];C([et],new Hl(et.x,et.y,0))}}(t,a,p,N,n,u,f,h,g,j,o)},T=0,k=t.features;T&lt;k.length;T+=1)w();a&amp;&amp;t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&amp;&amp;i!==1/0?(a=1/(n-i),t[10]=(i+n)*a,t[14]=2*i*n*a):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){for(var r={},n=0;n&lt;e.length;n++){var i=e[n];i in t&amp;&amp;(r[i]=t[i])}return r},t.plugin=hi,t.polygonIntersectsPolygon=Za,t.postMapLoadEvent=it,t.postTurnstileEvent=rt,t.potpack=Ml,t.refProperties=[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;filter&quot;,&quot;layout&quot;],t.register=Nn,t.registerForPluginStateChange=function(t){return t({pluginStatus:ai,pluginURL:oi}),ci.on(&quot;pluginStateChange&quot;,t),t},t.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},t.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},t.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.scale$2=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},t.setCacheLimits=function(t,e){at=t,ot=e},t.setRTLTextPlugin=function(t,e,r){if(void 0===r&amp;&amp;(r=!1),ai===ti||ai===ei||ai===ri)throw new Error(&quot;setRTLTextPlugin cannot be called multiple times.&quot;);oi=R.resolveURL(t),ai=ti,ii=e,li(),r||fi()},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},t.sqrLen=bo,t.styleSpec=Lt,t.sub=yo,t.symbolSize=Xl,t.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},t.transformMat4=xo,t.translate=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]),t},t.triggerPluginCompletionEvent=si,t.uniqueId=h,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required property &quot;id&quot;'}),void 0===t.render&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required method &quot;render&quot;'}),t.renderingMode&amp;&amp;&quot;2d&quot;!==t.renderingMode&amp;&amp;&quot;3d&quot;!==t.renderingMode&amp;&amp;e.push({message:&quot;layers.&quot;+r+': property &quot;renderingMode&quot; must be either &quot;2d&quot; or &quot;3d&quot;'}),e},t.validateLight=Cn,t.validateStyle=Ln,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=Ls,t.version=&quot;1.10.1&quot;,t.warnOnce=_,t.webpSupported=B,t.window=self,t.wrap=c})),n(0,(function(t){function e(t){var r=typeof t;if(&quot;number&quot;===r||&quot;boolean&quot;===r||&quot;string&quot;===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=&quot;[&quot;,i=0,a=t;i&lt;a.length;i+=1){n+=e(a[i])+&quot;,&quot;}return n+&quot;]&quot;}for(var o=Object.keys(t).sort(),s=&quot;{&quot;,l=0;l&lt;o.length;l++)s+=JSON.stringify(o[l])+&quot;:&quot;+e(t[o[l]])+&quot;,&quot;;return s+&quot;}&quot;}function r(r){for(var n=&quot;&quot;,i=0,a=t.refProperties;i&lt;a.length;i+=1){n+=&quot;/&quot;+e(r[a[i]])}return n}var n=function(t){this.keyCache={},t&amp;&amp;this.replace(t)};n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&amp;&amp;delete this.keyCache[s.id]}for(var c=0,u=n;c&lt;u.length;c+=1){var f=u[c];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var h=0,p=function(t,e){for(var n={},i=0;i&lt;t.length;i++){var a=e&amp;&amp;e[t[i].id]||r(t[i]);e&amp;&amp;(e[t[i].id]=a);var o=n[a];o||(o=n[a]=[]),o.push(t[i])}var s=[];for(var l in n)s.push(n[l]);return s}(t.values(this._layerConfigs),this.keyCache);h&lt;p.length;h+=1){var d=p[h].map((function(t){return i._layers[t.id]})),g=d[0];if(&quot;none&quot;!==g.visibility){var m=g.source||&quot;&quot;,v=this.familiesBySource[m];v||(v=this.familiesBySource[m]={});var y=g.sourceLayer||&quot;_geojsonTileLayer&quot;,x=v[y];x||(x=v[y]=[]),x.push(d)}}};var i=function(e){var r={},n=[];for(var i in e){var a=e[i],o=r[i]={};for(var s in a){var l=a[+s];if(l&amp;&amp;0!==l.bitmap.width&amp;&amp;0!==l.bitmap.height){var c={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};n.push(c),o[s]={rect:c,metrics:l.metrics}}}}var u=t.potpack(n),f=u.w,h=u.h,p=new t.AlphaImage({width:f||1,height:h||1});for(var d in e){var g=e[d];for(var m in g){var v=g[+m];if(v&amp;&amp;0!==v.bitmap.width&amp;&amp;0!==v.bitmap.height){var y=r[d][m].rect;t.AlphaImage.copy(v.bitmap,p,{x:0,y:0},{x:y.x+1,y:y.y+1},v.bitmap)}}}this.image=p,this.positions=r};t.register(&quot;GlyphAtlas&quot;,i);var a=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function o(e,r,n){for(var i=new t.EvaluationParameters(r),a=0,o=e;a&lt;o.length;a+=1){o[a].recalculate(i,n)}}function s(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,i,a){e?r(e):n&amp;&amp;r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:i,expires:a})}));return function(){n.cancel(),r()}}a.prototype.parse=function(e,r,n,a,s){var l=this;this.status=&quot;parsing&quot;,this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var f,h,p,d,g={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var y in v){var x=e.layers[y];if(x){1===x.version&amp;&amp;t.warnOnce('Vector tile source &quot;'+this.source+'&quot; layer &quot;'+y+'&quot; does not use vector tile spec v2 and therefore may have some rendering errors.');for(var b=c.encode(y),_=[],w=0;w&lt;x.length;w++){var T=x.feature(w),k=u.getId(T,y);_.push({feature:T,id:k,index:w,sourceLayerIndex:b})}for(var A=0,M=v[y];A&lt;M.length;A+=1){var S=M[A],E=S[0];if(!(E.minzoom&amp;&amp;this.zoom&lt;Math.floor(E.minzoom)))if(!(E.maxzoom&amp;&amp;this.zoom&gt;=E.maxzoom))if(&quot;none&quot;!==E.visibility)o(S,this.zoom,n),(g[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,m,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id})))}}}var L=t.mapObject(m.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(L).length?a.send(&quot;getGlyphs&quot;,{uid:this.uid,stacks:L},(function(t,e){f||(f=t,h=e,I.call(l))})):h={};var C=Object.keys(m.iconDependencies);C.length?a.send(&quot;getImages&quot;,{icons:C,source:this.source,tileID:this.tileID,type:&quot;icons&quot;},(function(t,e){f||(f=t,p=e,I.call(l))})):p={};var P=Object.keys(m.patternDependencies);function I(){if(f)return s(f);if(h&amp;&amp;p&amp;&amp;d){var e=new i(h),r=new t.ImageAtlas(p,d);for(var a in g){var l=g[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,h,e.positions,p,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&amp;&amp;(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&amp;&amp;(o(l.layers,this.zoom,n),l.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status=&quot;done&quot;,s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}P.length?a.send(&quot;getImages&quot;,{icons:P,source:this.source,tileID:this.tileID,type:&quot;patterns&quot;},(function(t,e){f||(f=t,d=e,I.call(l))})):d={},I.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&amp;&amp;e.request&amp;&amp;e.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status=&quot;done&quot;,n.loaded[i]=s,r(e);var l=a.rawData,c={};a.expires&amp;&amp;(c.expires=a.expires),a.cacheControl&amp;&amp;(c.cacheControl=a.cacheControl);var u={};if(o){var f=o.finish();f&amp;&amp;(u.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&amp;&amp;n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&amp;&amp;(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};&quot;parsing&quot;===o.status?o.reloadCallback=s:&quot;done&quot;===o.status&amp;&amp;(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&amp;&amp;r[n]&amp;&amp;r[n].abort&amp;&amp;(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&amp;&amp;r[n]&amp;&amp;delete r[n],e()};var c=t.window.ImageBitmap,u=function(){this.loaded={}};u.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=c&amp;&amp;a instanceof c?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},u.prototype.getImageData=function(e){this.offscreenCanvas&amp;&amp;this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext(&quot;2d&quot;)),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},u.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&amp;&amp;e[r]&amp;&amp;delete e[r]};var f=function t(e,r){var n,i=e&amp;&amp;e.type;if(&quot;FeatureCollection&quot;===i)for(n=0;n&lt;e.features.length;n++)t(e.features[n],r);else if(&quot;GeometryCollection&quot;===i)for(n=0;n&lt;e.geometries.length;n++)t(e.geometries[n],r);else if(&quot;Feature&quot;===i)t(e.geometry,r);else if(&quot;Polygon&quot;===i)h(e.coordinates,r);else if(&quot;MultiPolygon&quot;===i)for(n=0;n&lt;e.coordinates.length;n++)h(e.coordinates[n],r);return e};function h(t,e){if(0!==t.length){p(t[0],e);for(var r=1;r&lt;t.length;r++)p(t[r],!e)}}function p(t,e){for(var r=0,n=0,i=t.length,a=i-1;n&lt;i;a=n++)r+=(t[n][0]-t[a][0])*(t[a][1]+t[n][1]);r&gt;=0!=!!e&amp;&amp;t.reverse()}var d=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,g=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,&quot;id&quot;in e&amp;&amp;!isNaN(e.id)&amp;&amp;(this.id=parseInt(e.id,10))};g.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r&lt;n.length;r+=1){var i=n[r];e.push([new t.Point$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o&lt;s.length;o+=1){for(var l=[],c=0,u=s[o];c&lt;u.length;c+=1){var f=u[c];l.push(new t.Point$1(f[0],f[1]))}a.push(l)}return a},g.prototype.toGeoJSON=function(t,e,r){return d.call(this,t,e,r)};var m=function(e){this.layers={_geojsonTileLayer:this},this.name=&quot;_geojsonTileLayer&quot;,this.extent=t.EXTENT,this.length=e.length,this._features=e};m.prototype.feature=function(t){return new g(this._features[t])};var v=t.vectorTile.VectorTileFeature,y=x;function x(t,e){this.options=e||{},this.features=t,this.length=t.length}function b(t,e){this.id=&quot;number&quot;==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}x.prototype.feature=function(t){return new b(this.features[t],this.options.extent)},b.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r&lt;e.length;r++){for(var n=e[r],i=[],a=0;a&lt;n.length;a++)i.push(new t.Point$1(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},b.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a&lt;t.length;a++)for(var o=t[a],s=0;s&lt;o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},b.prototype.toGeoJSON=v.prototype.toGeoJSON;var _=A,w=A,T=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new y(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return A({layers:r})},k=y;function A(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,M,t.layers[r])}(e,r),r.finish()}function M(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||&quot;&quot;),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r&lt;t.length;r++)n.feature=t.feature(r),e.writeMessage(2,S,n);var i=n.keys;for(r=0;r&lt;i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r&lt;a.length;r++)e.writeMessage(4,I,a[r])}function S(t,e){var r=t.feature;void 0!==r.id&amp;&amp;e.writeVarintField(1,r.id),e.writeMessage(2,E,t),e.writeVarintField(3,r.type),e.writeMessage(4,P,r)}function E(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&amp;&amp;(n.push(s),l=n.length-1,a[s]=l),e.writeVarint(l);var c=r.properties[s],u=typeof c;&quot;string&quot;!==u&amp;&amp;&quot;boolean&quot;!==u&amp;&amp;&quot;number&quot;!==u&amp;&amp;(c=JSON.stringify(c));var f=u+&quot;:&quot;+c,h=o[f];void 0===h&amp;&amp;(i.push(c),h=i.length-1,o[f]=h),e.writeVarint(h)}}function L(t,e){return(e&lt;&lt;3)+(7&amp;t)}function C(t){return t&lt;&lt;1^t&gt;&gt;31}function P(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s&lt;o;s++){var l=r[s],c=1;1===n&amp;&amp;(c=l.length),e.writeVarint(L(1,c));for(var u=3===n?l.length-1:l.length,f=0;f&lt;u;f++){1===f&amp;&amp;1!==n&amp;&amp;e.writeVarint(L(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(C(h)),e.writeVarint(C(p)),i+=h,a+=p}3===n&amp;&amp;e.writeVarint(L(7,1))}}function I(t,e){var r=typeof t;&quot;string&quot;===r?e.writeStringField(1,t):&quot;boolean&quot;===r?e.writeBooleanField(7,t):&quot;number&quot;===r&amp;&amp;(t%1!=0?e.writeDoubleField(3,t):t&lt;0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function O(t,e,r,n,i,a){if(!(i-n&lt;=r)){var o=n+i&gt;&gt;1;!function t(e,r,n,i,a,o){for(;a&gt;i;){if(a-i&gt;600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2&lt;0?-1:1),h=Math.max(i,Math.floor(n-l*u/s+f)),p=Math.min(a,Math.floor(n+(s-l)*u/s+f));t(e,r,n,h,p,o)}var d=r[2*n+o],g=i,m=a;for(z(e,r,i,n),r[2*a+o]&gt;d&amp;&amp;z(e,r,i,a);g&lt;m;){for(z(e,r,g,m),g++,m--;r[2*g+o]&lt;d;)g++;for(;r[2*m+o]&gt;d;)m--}r[2*i+o]===d?z(e,r,i,m):(m++,z(e,r,m,a)),m&lt;=n&amp;&amp;(i=m+1),n&lt;=m&amp;&amp;(a=m-1)}}(t,e,o,n,i,a%2),O(t,e,r,n,o-1,a+1),O(t,e,r,o+1,i,a+1)}}function z(t,e,r,n){D(t,r,n),D(e,2*r,2*n),D(e,2*r+1,2*n+1)}function D(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function R(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}_.fromVectorTileJs=w,_.fromGeojsonVt=T,_.GeoJSONWrapper=k;var F=function(t){return t[0]},B=function(t){return t[1]},N=function(t,e,r,n,i){void 0===e&amp;&amp;(e=F),void 0===r&amp;&amp;(r=B),void 0===n&amp;&amp;(n=64),void 0===i&amp;&amp;(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length&lt;65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l&lt;t.length;l++)o[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);O(o,s,n,0,o.length-1,0)};N.prototype.range=function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p&lt;=o)for(var d=p;d&lt;=h;d++)s=e[2*d],l=e[2*d+1],s&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[d]);else{var g=Math.floor((p+h)/2);s=e[2*g],l=e[2*g+1],s&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[g]);var m=(f+1)%2;(0===f?r&lt;=s:n&lt;=l)&amp;&amp;(c.push(p),c.push(g-1),c.push(m)),(0===f?i&gt;=s:a&gt;=l)&amp;&amp;(c.push(g+1),c.push(h),c.push(m))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},N.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f&lt;=a)for(var h=f;h&lt;=u;h++)R(e[2*h],e[2*h+1],r,n)&lt;=l&amp;&amp;s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],g=e[2*p+1];R(d,g,r,n)&lt;=l&amp;&amp;s.push(t[p]);var m=(c+1)%2;(0===c?r-i&lt;=d:n-i&lt;=g)&amp;&amp;(o.push(f),o.push(p-1),o.push(m)),(0===c?r+i&gt;=d:n+i&gt;=g)&amp;&amp;(o.push(p+1),o.push(u),o.push(m))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var j={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},U=function(t){this.options=X(Object.create(j),t),this.trees=new Array(this.options.maxZoom+1)};function V(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function q(t,e){var r=t.geometry.coordinates,n=r[0],i=r[1];return{x:Y(n),y:W(i),zoom:1/0,index:e,parentId:-1}}function H(t){return{type:&quot;Feature&quot;,id:t.id,properties:G(t),geometry:{type:&quot;Point&quot;,coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function G(t){var e=t.numPoints,r=e&gt;=1e4?Math.round(e/1e3)+&quot;k&quot;:e&gt;=1e3?Math.round(e/100)/10+&quot;k&quot;:e;return X(X({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function Y(t){return t/360+.5}function W(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function X(t,e){for(var r in e)t[r]=e[r];return t}function Z(t){return t.x}function J(t){return t.y}function K(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l&gt;1?(r=i,n=a):l&gt;0&amp;&amp;(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function Q(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(&quot;Point&quot;===r||&quot;MultiPoint&quot;===r||&quot;LineString&quot;===r)$(t,e);else if(&quot;Polygon&quot;===r||&quot;MultiLineString&quot;===r)for(var n=0;n&lt;e.length;n++)$(t,e[n]);else if(&quot;MultiPolygon&quot;===r)for(n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)$(t,e[n][i])}(i),i}function $(t,e){for(var r=0;r&lt;e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function tt(t,e,r,n){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,o=Math.pow(r.tolerance/((1&lt;&lt;r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&amp;&amp;(l=n||0),&quot;Point&quot;===a)et(i,s);else if(&quot;MultiPoint&quot;===a)for(var c=0;c&lt;i.length;c++)et(i[c],s);else if(&quot;LineString&quot;===a)rt(i,s,o,!1);else if(&quot;MultiLineString&quot;===a){if(r.lineMetrics){for(c=0;c&lt;i.length;c++)s=[],rt(i[c],s,o,!1),t.push(Q(l,&quot;LineString&quot;,s,e.properties));return}nt(i,s,o,!1)}else if(&quot;Polygon&quot;===a)nt(i,s,o,!0);else{if(&quot;MultiPolygon&quot;!==a){if(&quot;GeometryCollection&quot;===a){for(c=0;c&lt;e.geometry.geometries.length;c++)tt(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error(&quot;Input data is not a valid GeoJSON object.&quot;)}for(c=0;c&lt;i.length;c++){var u=[];nt(i[c],u,o,!0),s.push(u)}}t.push(Q(l,a,s,e.properties))}}function et(t,e){e.push(it(t[0])),e.push(at(t[1])),e.push(0)}function rt(t,e,r,n){for(var i,a,o=0,s=0;s&lt;t.length;s++){var l=it(t[s][0]),c=at(t[s][1]);e.push(l),e.push(c),e.push(0),s&gt;0&amp;&amp;(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=n-r&gt;&gt;1,l=n-r,c=e[r],u=e[r+1],f=e[n],h=e[n+1],p=r+3;p&lt;n;p+=3){var d=K(e[p],e[p+1],c,u,f,h);if(d&gt;o)a=p,o=d;else if(d===o){var g=Math.abs(p-s);g&lt;l&amp;&amp;(a=p,l=g)}}o&gt;i&amp;&amp;(a-r&gt;3&amp;&amp;t(e,r,a,i),e[a+2]=o,n-a&gt;3&amp;&amp;t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function nt(t,e,r,n){for(var i=0;i&lt;t.length;i++){var a=[];rt(t[i],a,r,n),e.push(a)}}function it(t){return t/360+.5}function at(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function ot(t,e,r,n,i,a,o,s){if(n/=e,a&gt;=(r/=e)&amp;&amp;o&lt;n)return t;if(o&lt;r||a&gt;=n)return null;for(var l=[],c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p&gt;=r&amp;&amp;d&lt;n)l.push(u);else if(!(d&lt;r||p&gt;=n)){var g=[];if(&quot;Point&quot;===h||&quot;MultiPoint&quot;===h)st(f,g,r,n,i);else if(&quot;LineString&quot;===h)lt(f,g,r,n,i,!1,s.lineMetrics);else if(&quot;MultiLineString&quot;===h)ut(f,g,r,n,i,!1);else if(&quot;Polygon&quot;===h)ut(f,g,r,n,i,!0);else if(&quot;MultiPolygon&quot;===h)for(var m=0;m&lt;f.length;m++){var v=[];ut(f[m],v,r,n,i,!0),v.length&amp;&amp;g.push(v)}if(g.length){if(s.lineMetrics&amp;&amp;&quot;LineString&quot;===h){for(m=0;m&lt;g.length;m++)l.push(Q(u.id,h,g[m],u.tags));continue}&quot;LineString&quot;!==h&amp;&amp;&quot;MultiLineString&quot;!==h||(1===g.length?(h=&quot;LineString&quot;,g=g[0]):h=&quot;MultiLineString&quot;),&quot;Point&quot;!==h&amp;&amp;&quot;MultiPoint&quot;!==h||(h=3===g.length?&quot;Point&quot;:&quot;MultiPoint&quot;),l.push(Q(u.id,h,g,u.tags))}}}return l.length?l:null}function st(t,e,r,n,i){for(var a=0;a&lt;t.length;a+=3){var o=t[a+i];o&gt;=r&amp;&amp;o&lt;=n&amp;&amp;(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function lt(t,e,r,n,i,a,o){for(var s,l,c=ct(t),u=0===i?ht:pt,f=t.start,h=0;h&lt;t.length-3;h+=3){var p=t[h],d=t[h+1],g=t[h+2],m=t[h+3],v=t[h+4],y=0===i?p:d,x=0===i?m:v,b=!1;o&amp;&amp;(s=Math.sqrt(Math.pow(p-m,2)+Math.pow(d-v,2))),y&lt;r?x&gt;r&amp;&amp;(l=u(c,p,d,m,v,r),o&amp;&amp;(c.start=f+s*l)):y&gt;n?x&lt;n&amp;&amp;(l=u(c,p,d,m,v,n),o&amp;&amp;(c.start=f+s*l)):ft(c,p,d,g),x&lt;r&amp;&amp;y&gt;=r&amp;&amp;(l=u(c,p,d,m,v,r),b=!0),x&gt;n&amp;&amp;y&lt;=n&amp;&amp;(l=u(c,p,d,m,v,n),b=!0),!a&amp;&amp;b&amp;&amp;(o&amp;&amp;(c.end=f+s*l),e.push(c),c=ct(t)),o&amp;&amp;(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],g=t[_+2],(y=0===i?p:d)&gt;=r&amp;&amp;y&lt;=n&amp;&amp;ft(c,p,d,g),_=c.length-3,a&amp;&amp;_&gt;=3&amp;&amp;(c[_]!==c[0]||c[_+1]!==c[1])&amp;&amp;ft(c,c[0],c[1],c[2]),c.length&amp;&amp;e.push(c)}function ct(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function ut(t,e,r,n,i,a){for(var o=0;o&lt;t.length;o++)lt(t[o],e,r,n,i,a,!1)}function ft(t,e,r,n){t.push(e),t.push(r),t.push(n)}function ht(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function pt(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function dt(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i,a=t[n],o=a.type;if(&quot;Point&quot;===o||&quot;MultiPoint&quot;===o||&quot;LineString&quot;===o)i=gt(a.geometry,e);else if(&quot;MultiLineString&quot;===o||&quot;Polygon&quot;===o){i=[];for(var s=0;s&lt;a.geometry.length;s++)i.push(gt(a.geometry[s],e))}else if(&quot;MultiPolygon&quot;===o)for(i=[],s=0;s&lt;a.geometry.length;s++){for(var l=[],c=0;c&lt;a.geometry[s].length;c++)l.push(gt(a.geometry[s][c],e));i.push(l)}r.push(Q(a.id,o,i,a.tags))}return r}function gt(t,e){var r=[];r.size=t.size,void 0!==t.start&amp;&amp;(r.start=t.start,r.end=t.end);for(var n=0;n&lt;t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function mt(t,e){if(t.transformed)return t;var r,n,i,a=1&lt;&lt;t.z,o=t.x,s=t.y;for(r=0;r&lt;t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n&lt;c.length;n+=2)l.geometry.push(vt(c[n],c[n+1],e,a,o,s));else for(n=0;n&lt;c.length;n++){var f=[];for(i=0;i&lt;c[n].length;i+=2)f.push(vt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function vt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function yt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1&lt;&lt;e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s&lt;t.length;s++){o.numFeatures++,xt(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l&lt;o.minX&amp;&amp;(o.minX=l),c&lt;o.minY&amp;&amp;(o.minY=c),u&gt;o.maxX&amp;&amp;(o.maxX=u),f&gt;o.maxY&amp;&amp;(o.maxY=f)}return o}function xt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(&quot;Point&quot;===a||&quot;MultiPoint&quot;===a)for(var s=0;s&lt;i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(&quot;LineString&quot;===a)bt(o,i,t,r,!1,!1);else if(&quot;MultiLineString&quot;===a||&quot;Polygon&quot;===a)for(s=0;s&lt;i.length;s++)bt(o,i[s],t,r,&quot;Polygon&quot;===a,0===s);else if(&quot;MultiPolygon&quot;===a)for(var l=0;l&lt;i.length;l++){var c=i[l];for(s=0;s&lt;c.length;s++)bt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(&quot;LineString&quot;===a&amp;&amp;n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a?3:&quot;LineString&quot;===a||&quot;MultiLineString&quot;===a?2:1,tags:u};null!==e.id&amp;&amp;(h.id=e.id),t.features.push(h)}}function bt(t,e,r,n,i,a){var o=n*n;if(n&gt;0&amp;&amp;e.size&lt;(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l&lt;e.length;l+=3)(0===n||e[l+2]&gt;o)&amp;&amp;(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&amp;&amp;function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n&lt;i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r&gt;0===e)for(n=0,i=t.length;n&lt;i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function _t(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&amp;&amp;console.time(&quot;preprocess data&quot;),e.maxZoom&lt;0||e.maxZoom&gt;24)throw new Error(&quot;maxZoom should be in the 0-24 range&quot;);if(e.promoteId&amp;&amp;e.generateId)throw new Error(&quot;promoteId and generateId cannot be used together.&quot;);var n=function(t,e){var r=[];if(&quot;FeatureCollection&quot;===t.type)for(var n=0;n&lt;t.features.length;n++)tt(r,t.features[n],e,n);else&quot;Feature&quot;===t.type?tt(r,t,e):tt(r,{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&amp;&amp;(console.timeEnd(&quot;preprocess data&quot;),console.log(&quot;index: maxZoom: %d, maxPoints: %d&quot;,e.indexMaxZoom,e.indexMaxPoints),console.time(&quot;generate tiles&quot;),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=ot(t,1,-1-r,r,0,-1,2,e),a=ot(t,1,1-r,2+r,0,-1,2,e);return(i||a)&amp;&amp;(n=ot(t,1,-r,1+r,0,-1,2,e)||[],i&amp;&amp;(n=dt(i,1).concat(n)),a&amp;&amp;(n=n.concat(dt(a,-1)))),n}(n,e)).length&amp;&amp;this.splitTile(n,0,0,0),r&amp;&amp;(n.length&amp;&amp;console.log(&quot;features: %d, points: %d&quot;,this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(&quot;generate tiles&quot;),console.log(&quot;tiles generated:&quot;,this.total,JSON.stringify(this.stats)))}function wt(t,e,r){return 32*((1&lt;&lt;t)*r+e)+t}function Tt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new m(n.features),a=_(i);0===a.byteOffset&amp;&amp;a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}U.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,i=e.maxZoom,a=e.nodeSize;r&amp;&amp;console.time(&quot;total time&quot;);var o=&quot;prepare &quot;+t.length+&quot; points&quot;;r&amp;&amp;console.time(o),this.points=t;for(var s=[],l=0;l&lt;t.length;l++)t[l].geometry&amp;&amp;s.push(q(t[l],l));this.trees[i+1]=new N(s,Z,J,a,Float32Array),r&amp;&amp;console.timeEnd(o);for(var c=i;c&gt;=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new N(s,Z,J,a,Float32Array),r&amp;&amp;console.log(&quot;z%d: %d clusters in %dms&quot;,c,s.length,+Date.now()-u)}return r&amp;&amp;console.timeEnd(&quot;total time&quot;),this},U.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]&gt;=360)r=-180,i=180;else if(r&gt;i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(Y(r),W(a),Y(i),W(n));u&lt;f.length;u+=1){var h=f[u],p=l.points[h];c.push(p.numPoints?H(p):this.points[p.index])}return c},U.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n=&quot;No cluster with the specified id.&quot;,i=this.trees[r];if(!i)throw new Error(n);var a=i.points[e];if(!a)throw new Error(n);for(var o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,c=i.within(a.x,a.y,o);l&lt;c.length;l+=1){var u=c[l],f=i.points[u];f.parentId===t&amp;&amp;s.push(f.numPoints?H(f):this.points[f.index])}if(0===s.length)throw new Error(n);return s},U.prototype.getLeaves=function(t,e,r){e=e||10,r=r||0;var n=[];return this._appendLeaves(n,t,e,r,0),n},U.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options,o=a.extent,s=a.radius/o,l=(r-s)/i,c=(r+1+s)/i,u={features:[]};return this._addTileFeatures(n.range((e-s)/i,l,(e+1+s)/i,c),n.points,e,r,i,u),0===e&amp;&amp;this._addTileFeatures(n.range(1-s/i,l,1,c),n.points,i,r,i,u),e===i-1&amp;&amp;this._addTileFeatures(n.range(0,l,s/i,c),n.points,-1,r,i,u),u.features.length?u:null},U.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e&lt;=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},U.prototype._appendLeaves=function(t,e,r,n,i){for(var a=0,o=this.getChildren(e);a&lt;o.length;a+=1){var s=o[a],l=s.properties;if(l&amp;&amp;l.cluster?i+l.point_count&lt;=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,r,n,i):i&lt;n?i++:t.push(s),t.length===r)break}return i},U.prototype._addTileFeatures=function(t,e,r,n,i,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=e[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-r)),Math.round(this.options.extent*(l.y*i-n))]],tags:c?G(l):this.points[l.index].properties},f=void 0;c?f=l.id:this.options.generateId?f=l.index:this.points[l.index].id&amp;&amp;(f=this.points[l.index].id),void 0!==f&amp;&amp;(u.id=f),a.features.push(u)}},U.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},U.prototype._cluster=function(t,e){for(var r=[],n=this.options,i=n.radius,a=n.extent,o=n.reduce,s=i/(a*Math.pow(2,e)),l=0;l&lt;t.length;l++){var c=t[l];if(!(c.zoom&lt;=e)){c.zoom=e;for(var u=this.trees[e+1],f=u.within(c.x,c.y,s),h=c.numPoints||1,p=c.x*h,d=c.y*h,g=o&amp;&amp;h&gt;1?this._map(c,!0):null,m=(l&lt;&lt;5)+(e+1)+this.points.length,v=0,y=f;v&lt;y.length;v+=1){var x=y[v],b=u.points[x];if(!(b.zoom&lt;=e)){b.zoom=e;var _=b.numPoints||1;p+=b.x*_,d+=b.y*_,h+=_,b.parentId=m,o&amp;&amp;(g||(g=this._map(c,!0)),o(g,this._map(b)))}}1===h?r.push(c):(c.parentId=m,r.push(V(p/h,d/h,m,h,g)))}}return r},U.prototype._getOriginId=function(t){return t-this.points.length&gt;&gt;5},U.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},U.prototype._map=function(t,e){if(t.numPoints)return e?X({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&amp;&amp;n===r?X({},n):n},_t.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},_t.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1&lt;&lt;e,f=wt(e,r,n),h=this.tiles[f];if(!h&amp;&amp;(c&gt;1&amp;&amp;console.time(&quot;creation&quot;),h=this.tiles[f]=yt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c&gt;1&amp;&amp;(console.log(&quot;tile z%d-%d-%d (features: %d, points: %d, simplified: %d)&quot;,e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(&quot;creation&quot;));var p=&quot;z&quot;+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1&lt;&lt;i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints&lt;=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c&gt;1&amp;&amp;console.time(&quot;clipping&quot;);var g,m,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;g=m=v=y=null,x=ot(t,u,r-_,r+T,0,h.minX,h.maxX,l),b=ot(t,u,r+w,r+k,0,h.minX,h.maxX,l),t=null,x&amp;&amp;(g=ot(x,u,n-_,n+T,1,h.minY,h.maxY,l),m=ot(x,u,n+w,n+k,1,h.minY,h.maxY,l),x=null),b&amp;&amp;(v=ot(b,u,n-_,n+T,1,h.minY,h.maxY,l),y=ot(b,u,n+w,n+k,1,h.minY,h.maxY,l),b=null),c&gt;1&amp;&amp;console.timeEnd(&quot;clipping&quot;),s.push(g||[],e+1,2*r,2*n),s.push(m||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},_t.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t&lt;0||t&gt;24)return null;var o=1&lt;&lt;t,s=wt(t,e=(e%o+o)%o,r);if(this.tiles[s])return mt(this.tiles[s],i);a&gt;1&amp;&amp;console.log(&quot;drilling down to z%d-%d-%d&quot;,t,e,r);for(var l,c=t,u=e,f=r;!l&amp;&amp;c&gt;0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[wt(c,u,f)];return l&amp;&amp;l.source?(a&gt;1&amp;&amp;console.log(&quot;found parent tile z%d-%d-%d&quot;,c,u,f),a&gt;1&amp;&amp;console.time(&quot;drilling down&quot;),this.splitTile(l.source,c,u,f,t,e,r),a&gt;1&amp;&amp;console.timeEnd(&quot;drilling down&quot;),this.tiles[s]?mt(this.tiles[s],i):null):null};var kt=function(e){function r(t,r,n,i){e.call(this,t,r,n,Tt),i&amp;&amp;(this.loadGeoJSON=i)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&amp;&amp;&quot;Idle&quot;!==this._state?this._state=&quot;NeedsLoadData&quot;:(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&amp;&amp;this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&amp;&amp;n.request&amp;&amp;n.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if(&quot;object&quot;!=typeof o)return r(new Error(&quot;Input data given to '&quot;+n.source+&quot;' is not a valid GeoJSON object.&quot;));f(o,!0);try{e._geoJSONIndex=n.cluster?new U(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c&lt;u.length;c+=1){var f=u[c],h=n[f],p=h[0],d=h[1],g=t.createExpression(d),m=t.createExpression(&quot;string&quot;==typeof p?[p,[&quot;accumulated&quot;],[&quot;get&quot;,f]]:p);i[f]=g.value,a[f]=m.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=l;r&lt;n.length;r+=1){var a=n[r];e[a]=i[a].evaluate(o,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=l;r&lt;n.length;r+=1){var i=n[r];o.accumulated=t[i],t[i]=a[i].evaluate(o,s)}},r}(n)).load(o.features):function(t,e){return new _t(t,e)}(o,n.geojsonVtOptions)}catch(a){return r(a)}e.loaded={};var s={};if(i){var l=i.finish();l&amp;&amp;(s.resourceTiming={},s.resourceTiming[n.source]=JSON.parse(JSON.stringify(l)))}r(null,s)}))}},r.prototype.coalesce=function(){&quot;Coalescing&quot;===this._state?this._state=&quot;Idle&quot;:&quot;NeedsLoadData&quot;===this._state&amp;&amp;(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded,i=t.uid;return n&amp;&amp;n[i]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(&quot;string&quot;!=typeof e.data)return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},r}(l);var At=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:kt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name &quot;'+t+'&quot; already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error(&quot;RTL text plugin already registered.&quot;);t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return At.prototype.setReferrer=function(t,e){this.referrer=e},At.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][n];for(var a in i)i[a].availableImages=e}r()},At.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},At.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},At.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},At.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},At.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},At.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},At.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},At.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},At.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&amp;&amp;this.workerSources[t][e.type]&amp;&amp;this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},At.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},At.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&amp;&amp;!t.plugin.isParsed()&amp;&amp;null!=i){this.self.importScripts(i);var a=t.plugin.isParsed();n(a?void 0:new Error(&quot;RTL Text Plugin failed to import scripts from &quot;+i),a)}}catch(t){n(t.toString())}},At.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},At.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},At.prototype.getWorkerSource=function(t,e,r){var n=this;if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][r]){var i={send:function(e,r,i){n.actor.send(e,r,i,t)}};this.workerSources[t][e][r]=new this.workerSourceTypes[e](i,this.getLayerIndex(t),this.getAvailableImages(t))}return this.workerSources[t][e][r]},At.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new u),this.demWorkerSources[t][e]},At.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;void 0!==t.window&amp;&amp;t.window instanceof WorkerGlobalScope&amp;&amp;(t.window.worker=new At(t.window)),At})),n(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document?&quot;not a browser&quot;:Array.prototype&amp;&amp;Array.prototype.every&amp;&amp;Array.prototype.filter&amp;&amp;Array.prototype.forEach&amp;&amp;Array.prototype.indexOf&amp;&amp;Array.prototype.lastIndexOf&amp;&amp;Array.prototype.map&amp;&amp;Array.prototype.some&amp;&amp;Array.prototype.reduce&amp;&amp;Array.prototype.reduceRight&amp;&amp;Array.isArray?Function.prototype&amp;&amp;Function.prototype.bind?Object.keys&amp;&amp;Object.create&amp;&amp;Object.getPrototypeOf&amp;&amp;Object.getOwnPropertyNames&amp;&amp;Object.isSealed&amp;&amp;Object.isFrozen&amp;&amp;Object.isExtensible&amp;&amp;Object.getOwnPropertyDescriptor&amp;&amp;Object.defineProperty&amp;&amp;Object.defineProperties&amp;&amp;Object.seal&amp;&amp;Object.freeze&amp;&amp;Object.preventExtensions?&quot;JSON&quot;in window&amp;&amp;&quot;parse&quot;in JSON&amp;&amp;&quot;stringify&quot;in JSON?function(){if(!(&quot;Worker&quot;in window&amp;&amp;&quot;Blob&quot;in window&amp;&amp;&quot;URL&quot;in window))return!1;var t,e,r=new Blob([&quot;&quot;],{type:&quot;text/javascript&quot;}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}e&amp;&amp;e.terminate();return URL.revokeObjectURL(n),t}()?&quot;Uint8ClampedArray&quot;in window?ArrayBuffer.isView?function(){var t=document.createElement(&quot;canvas&quot;);t.width=t.height=1;var e=t.getContext(&quot;2d&quot;);if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&amp;&amp;r.width===t.width}()?function(t){void 0===n[t]&amp;&amp;(n[t]=function(t){var r=function(t){var r=document.createElement(&quot;canvas&quot;),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(&quot;webgl&quot;,n)||r.probablySupportsContext(&quot;experimental-webgl&quot;,n):r.supportsContext?r.supportsContext(&quot;webgl&quot;,n)||r.supportsContext(&quot;experimental-webgl&quot;,n):r.getContext(&quot;webgl&quot;,n)||r.getContext(&quot;experimental-webgl&quot;,n)}(t);if(!r)return!1;var n=r.createShader(r.VERTEX_SHADER);if(!n||r.isContextLost())return!1;return r.shaderSource(n,&quot;void main() {}&quot;),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS)}(t));return n[t]}(t&amp;&amp;t.failIfMajorPerformanceCaveat)?void 0:&quot;insufficient WebGL support&quot;:&quot;insufficient Canvas/getImageData support&quot;:&quot;insufficient ArrayBuffer support&quot;:&quot;insufficient Uint8ClampedArray support&quot;:&quot;insufficient worker support&quot;:&quot;insufficient JSON support&quot;:&quot;insufficient Object support&quot;:&quot;insufficient Function support&quot;:&quot;insufficent Array support&quot;}t.exports?t.exports=e:window&amp;&amp;(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var n={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var i=t.window.document.createElement(e);return void 0!==r&amp;&amp;(i.className=r),n&amp;&amp;n.appendChild(i),i},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document.documentElement.style;function i(t){if(!n)return t[0];for(var e=0;e&lt;t.length;e++)if(t[e]in n)return t[e];return t[0]}var a,o=i([&quot;userSelect&quot;,&quot;MozUserSelect&quot;,&quot;WebkitUserSelect&quot;,&quot;msUserSelect&quot;]);r.disableDrag=function(){n&amp;&amp;o&amp;&amp;(a=n[o],n[o]=&quot;none&quot;)},r.enableDrag=function(){n&amp;&amp;o&amp;&amp;(n[o]=a)};var s=i([&quot;transform&quot;,&quot;WebkitTransform&quot;]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var c=Object.defineProperty({},&quot;passive&quot;,{get:function(){l=!0}});t.window.addEventListener(&quot;test&quot;,c,c),t.window.removeEventListener(&quot;test&quot;,c,c)}catch(t){l=!1}r.addEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),&quot;passive&quot;in n&amp;&amp;l?t.addEventListener(e,r,n):t.addEventListener(e,r,n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),&quot;passive&quot;in n&amp;&amp;l?t.removeEventListener(e,r,n):t.removeEventListener(e,r,n.capture)};var u=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener(&quot;click&quot;,u,!0)};function f(t){var e=t.userImage;if(e&amp;&amp;e.render&amp;&amp;e.render())return t.data.replace(new Uint8Array(e.data.buffer)),!0;return!1}r.suppressClick=function(){t.window.addEventListener(&quot;click&quot;,u,!0),t.window.setTimeout((function(){t.window.removeEventListener(&quot;click&quot;,u,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=0;a&lt;r.length;a++)i.push(new t.Point(r[a].clientX-n.left-e.clientLeft,r[a].clientY-n.top-e.clientTop));return i},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&amp;&amp;2===e.button&amp;&amp;e.ctrlKey&amp;&amp;t.window.navigator.platform.toUpperCase().indexOf(&quot;MAC&quot;)&gt;=0?0:e.button},r.remove=function(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&amp;&amp;(this.loaded=t,t)){for(var e=0,r=this.requestors;e&lt;r.length;e+=1){var n=r[e],i=n.ids,a=n.callback;this._notify(i,a)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&amp;&amp;(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&amp;&amp;r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchX&quot; value'))),n=!1),this._validateStretch(r.stretchY,r.data&amp;&amp;r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchY&quot; value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;content&quot; value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];if(a[0]&lt;r||a[1]&lt;a[0]||e&lt;a[1])return!1;r=a[1]}return!0},r.prototype._validateContent=function(t,e){return!t||4===t.length&amp;&amp;(!(t[0]&lt;0||e.data.width&lt;t[0])&amp;&amp;(!(t[1]&lt;0||e.data.height&lt;t[1])&amp;&amp;(!(t[2]&lt;0||e.data.width&lt;t[2])&amp;&amp;(!(t[3]&lt;0||e.data.height&lt;t[3])&amp;&amp;(!(t[2]&lt;t[0])&amp;&amp;!(t[3]&lt;t[1]))))))},r.prototype.updateImage=function(t,e){var r=this.images[t];e.version=r.version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&amp;&amp;e.userImage.onRemove&amp;&amp;e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n];this.images[a]||(r=!1)}this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.images[o]||this.fire(new t.Event(&quot;styleimagemissing&quot;,{id:o}));var s=this.images[o];s?n[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&amp;&amp;s.userImage.render)}:t.warnOnce('Image &quot;'+o+'&quot; could not be loaded. Please make sure you have added the image with map.addImage() or a &quot;sprite&quot; property in your style. You can provide missing images by listening for the &quot;styleimagemissing&quot; map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&amp;&amp;r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},a=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&amp;&amp;(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),i=n.w,a=n.h,o=this.atlasImage;for(var s in o.resize({width:i||1,height:a||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+1,u=l.y+1,f=this.images[s].data,h=f.width,p=f.height;t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u},{width:h,height:p}),t.RGBAImage.copy(f,o,{x:0,y:p-1},{x:c,y:u-1},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u+p},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:h-1,y:0},{x:c-1,y:u},{width:1,height:p}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c+h,y:u},{width:1,height:p})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var i=this.images[n];f(i)&amp;&amp;this.updateImage(n,i)}}},r}(t.Evented);var p=m,d=m,g=1e20;function m(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||&quot;sans-serif&quot;,this.fontWeight=a||&quot;normal&quot;,this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(&quot;canvas&quot;),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(&quot;2d&quot;),this.ctx.font=this.fontWeight+&quot; &quot;+this.fontSize+&quot;px &quot;+this.fontFamily,this.ctx.textBaseline=&quot;middle&quot;,this.ctx.fillStyle=&quot;black&quot;,this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(&quot;Gecko/&quot;)&gt;=0?1.2:1))}function v(t,e,r,n,i,a,o){for(var s=0;s&lt;e;s++){for(var l=0;l&lt;r;l++)n[l]=t[l*e+s];for(y(n,i,a,o,r),l=0;l&lt;r;l++)t[l*e+s]=i[l]}for(l=0;l&lt;r;l++){for(s=0;s&lt;e;s++)n[s]=t[l*e+s];for(y(n,i,a,o,e),s=0;s&lt;e;s++)t[l*e+s]=Math.sqrt(i[s])}}function y(t,e,r,n,i){r[0]=0,n[0]=-g,n[1]=+g;for(var a=1,o=0;a&lt;i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s&lt;=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+g}for(a=0,o=0;a&lt;i;a++){for(;n[o+1]&lt;a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}m.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n&lt;this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?g:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?g:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(v(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),v(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n&lt;this.size*this.size;n++){var a=this.gridOuter[n]-this.gridInner[n];r[n]=Math.max(0,Math.min(255,Math.round(255-255*(a/this.radius+this.cutoff))))}return r},p.default=d;var x=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};x.prototype.setURL=function(t){this.url=t},x.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o&lt;s.length;o+=1){var l=s[o];i.push({stack:a,id:l})}t.asyncAll(i,(function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{},ranges:{}});var o=a.glyphs[i];if(void 0===o){if(o=n._tinySDF(a,r,i))return a.glyphs[i]=o,void e(null,{stack:r,id:i,glyph:o});var s=Math.floor(i/256);if(256*s&gt;65535)e(new Error(&quot;glyphs &gt; 65535 not supported&quot;));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i&lt;o.length;i+=1){(0,o[i])(t,e)}delete a.requests[s]}))),l.push((function(t,n){t?e(t):n&amp;&amp;e(null,{stack:r,id:i,glyph:n[i]||null})}))}}else e(null,{stack:r,id:i,glyph:o})}),(function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&amp;&amp;{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},x.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&amp;&amp;(t.isChar[&quot;CJK Unified Ideographs&quot;](e)||t.isChar[&quot;Hangul Syllables&quot;](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},x.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&amp;&amp;this._doesCharSupportLocalGlyph(n)){var a=e.tinySDF;if(!a){var o=&quot;400&quot;;/bold/i.test(r)?o=&quot;900&quot;:/medium/i.test(r)?o=&quot;500&quot;:/light/i.test(r)&amp;&amp;(o=&quot;200&quot;),a=e.tinySDF=new x.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},x.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i.transformRequest(i.normalizeGlyphsURL(n).replace(&quot;{fontstack}&quot;,e).replace(&quot;{range}&quot;,o+&quot;-&quot;+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.parseGlyphPBF(r);i&lt;o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}}))},x.TinySDF=p;var b=function(){this.specification=t.styleSpec.light.position};b.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},b.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var _=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new b,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(_),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&amp;&amp;(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var i=e[n];t.endsWith(n,&quot;-transition&quot;)?this._transitionable.setTransition(n.slice(0,-&quot;-transition&quot;.length),i):this._transitionable.setValue(n,i)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&amp;&amp;t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),T=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};T.prototype.getDash=function(t,e){var r=t.join(&quot;,&quot;)+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},T.prototype.getDashRanges=function(t,e,r){var n=[],i=t.length%2==1?-t[t.length-1]*r:0,a=t[0]*r,o=!0;n.push({left:i,right:a,isDash:o,zeroLength:0===t[0]});for(var s=t[0],l=1;l&lt;t.length;l++){o=!o;var c=t[l];i=s*r,a=(s+=c)*r,n.push({left:i,right:a,isDash:o,zeroLength:0===c})}return n},T.prototype.addRoundDash=function(t,e,r){for(var n=e/2,i=-r;i&lt;=r;i++)for(var a=this.nextRow+r+i,o=this.width*a,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f),p=void 0,d=i/r*(n+1);if(l.isDash){var g=n-Math.abs(d);p=Math.sqrt(h*h+g*g)}else p=n-Math.sqrt(h*h+d*d);this.data[o+c]=Math.max(0,Math.min(255,p+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e&gt;=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&amp;&amp;n.isDash===r.isDash&amp;&amp;(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&amp;&amp;(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f),p=l.isDash?h:-h;this.data[o+c]=Math.max(0,Math.min(255,p+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i&gt;this.height)return t.warnOnce(&quot;LineAtlas out of space&quot;),null;for(var a=0,o=0;o&lt;e.length;o++)a+=e[o];if(0!==a){var s=this.width/a,l=this.getDashRanges(e,this.width,s);r?this.addRoundDash(l,s,n):this.addRegularDash(l)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,c},T.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&amp;&amp;(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var k=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a&lt;i.length;a++){var o=i[a],s=new e.Actor(o,n,this.id);s.name=&quot;Worker &quot;+a,this.actors.push(s)}};function A(e,r,n){var i=function(i,a){if(i)return n(i);if(a){var o=t.pick(t.extend(a,e),[&quot;tiles&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;attribution&quot;,&quot;mapbox_logo&quot;,&quot;bounds&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;encoding&quot;]);a.vector_layers&amp;&amp;(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map((function(t){return t.id}))),o.tiles=r.canonicalizeTileset(o,e.url),n(null,o)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}k.prototype.broadcast=function(e,r,n){n=n||function(){},t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n)},k.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},k.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},k.Actor=t.Actor;var M=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};M.prototype.validateBounds=function(t){return Array.isArray(t)&amp;&amp;4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},M.prototype.contains=function(e){var r=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),a=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),o=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x&gt;=n&amp;&amp;e.x&lt;a&amp;&amp;e.y&gt;=i&amp;&amp;e.y&lt;o};var S=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=&quot;vector&quot;,this.minzoom=0,this.maxzoom=22,this.scheme=&quot;xyz&quot;,this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;promoteId&quot;])),this._options=t.extend({type:&quot;vector&quot;},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(&quot;vector tile sources must have a tileSize of 512&quot;);this.setEventedParent(a)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=A(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new M(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(n,i){return delete e.request,e.aborted?r(null):n&amp;&amp;404!==n.status?r(n):(i&amp;&amp;i.resourceTiming&amp;&amp;(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&amp;&amp;i&amp;&amp;e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&amp;&amp;(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&amp;&amp;&quot;expired&quot;!==e.state?&quot;loading&quot;===e.state?e.reloadCallback=r:e.request=e.actor.send(&quot;reloadTile&quot;,i,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send(&quot;loadTile&quot;,i,a.bind(this)))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.actor&amp;&amp;t.actor.send(&quot;abortTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&amp;&amp;t.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),E=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=&quot;raster&quot;,this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=&quot;xyz&quot;,this.tileSize=512,this._loaded=!1,this._options=t.extend({type:&quot;raster&quot;},n),t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;]))}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=A(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new M(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(i)e.state=&quot;errored&quot;,r(i);else if(a){n.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=n.map.painter.context,s=o.gl;e.texture=n.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new t.Texture(o,a,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&amp;&amp;s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state=&quot;loaded&quot;,t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&amp;&amp;(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&amp;&amp;this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),L=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=&quot;raster-dem&quot;,this.maxzoom=22,this._options=t.extend({type:&quot;raster-dem&quot;},n),this.encoding=n.encoding||&quot;mapbox&quot;}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.serialize=function(){return{type:&quot;raster-dem&quot;,url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(t,n){t&amp;&amp;(e.state=&quot;errored&quot;,r(t)),n&amp;&amp;(e.dem=n,e.needsHillshadePrepare=!0,e.state=&quot;loaded&quot;,r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(n)e.state=&quot;errored&quot;,r(n);else if(a){this.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=t.window.ImageBitmap&amp;&amp;a instanceof t.window.ImageBitmap&amp;&amp;t.offscreenCanvasSupported()?a:t.browser.getImageData(a,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&amp;&amp;&quot;expired&quot;!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send(&quot;loadDEMTile&quot;,s,i.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y&gt;0&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1&lt;n&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&amp;&amp;this.map.painter.saveTileTexture(t.demTexture),t.fbo&amp;&amp;(t.fbo.destroy(),delete t.fbo),t.dem&amp;&amp;delete t.dem,delete t.neighboringTiles,t.state=&quot;unloaded&quot;,t.actor&amp;&amp;t.actor.send(&quot;removeDEMTile&quot;,{uid:t.uid,source:this.id})},r}(E),C=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=&quot;geojson&quot;,this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&amp;&amp;(this.maxzoom=n.maxzoom),n.type&amp;&amp;(this.type=n.type),n.attribution&amp;&amp;(this.attribution=n.attribution),this.promoteId=n.promoteId;var o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties},n.workerOptions)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;};e._collectResourceTiming&amp;&amp;e._resourceTiming&amp;&amp;e._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(&quot;data&quot;,n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;};r._collectResourceTiming&amp;&amp;r._resourceTiming&amp;&amp;r._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(&quot;data&quot;,n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send(&quot;geojson.getClusterExpansionZoom&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send(&quot;geojson.getClusterChildren&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send(&quot;geojson.getClusterLeaves&quot;,{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;&quot;string&quot;==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+&quot;.loadData&quot;,n,(function(t,i){r._removed||i&amp;&amp;i.abandoned||(r._loaded=!0,i&amp;&amp;i.resourceTiming&amp;&amp;i.resourceTiming[r.id]&amp;&amp;(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+&quot;.coalesce&quot;,{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?&quot;reloadTile&quot;:&quot;loadTile&quot;;e.actor=this.actor;var a={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};e.request=this.actor.send(i,a,(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,&quot;reloadTile&quot;===i),r(null))}))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send(&quot;removeSource&quot;,{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),P=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2},{name:&quot;a_texture_pos&quot;,type:&quot;Int16&quot;,components:2}]),I=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=&quot;image&quot;,this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&amp;&amp;(n.image=a,e&amp;&amp;(n.coordinates=e),r&amp;&amp;r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&amp;&amp;t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&amp;&amp;(this.setCoordinates(this.coordinates),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;o&lt;s.length;o+=1){var l=s[o];r=Math.min(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y)}var c=i-r,u=a-n,f=Math.max(c,u),h=Math.max(0,Math.floor(-Math.log(f)/Math.LN2)),p=Math.pow(2,h);return new t.CanonicalTileID(h,Math.floor((r+i)/2*p),Math.floor((n+a)/2*p))}(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&amp;&amp;(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&amp;&amp;this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&amp;&amp;this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=&quot;errored&quot;,e(null))},r.prototype.serialize=function(){return{type:&quot;image&quot;,url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented);var O=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=&quot;video&quot;,this.options=r}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,i=r.urls;n&lt;i.length;n+=1){var a=i[n];this.urls.push(this.map._requestManager.transformRequest(a,t.ResourceType.Source).url)}t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(e.video=n,e.video.loop=!0,e.video.addEventListener(&quot;playing&quot;,(function(){e.map.triggerRepaint()})),e.map&amp;&amp;e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&amp;&amp;this.video.pause()},r.prototype.play=function(){this.video&amp;&amp;this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e&lt;r.start(0)||e&gt;r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+this.id,null,&quot;Playback for this video can be set only between the &quot;+r.start(0)+&quot; and &quot;+r.end(0)+&quot;-second mark.&quot;))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&amp;&amp;(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState&lt;2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;video&quot;,urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&amp;&amp;!this.video.paused},r}(I),z=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&amp;&amp;4===n.coordinates.length&amp;&amp;!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return&quot;number&quot;!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;coordinates&quot; property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;coordinates&quot;'))),n.animate&amp;&amp;&quot;boolean&quot;!=typeof n.animate&amp;&amp;this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'optional &quot;animate&quot; property must be a boolean value'))),n.canvas?&quot;string&quot;==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;canvas&quot; must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;canvas&quot;'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(&quot;Canvas dimensions cannot be less than or equal to zero.&quot;))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&amp;&amp;(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&amp;&amp;this.animate&amp;&amp;this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&amp;&amp;(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&amp;&amp;(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&amp;&amp;0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&amp;&amp;this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];&quot;loaded&quot;!==a.state&amp;&amp;(a.state=&quot;loaded&quot;,a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;canvas&quot;,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t&lt;e.length;t+=1){var r=e[t];if(isNaN(r)||r&lt;=0)return!0}return!1},r}(I),D={vector:S,raster:E,&quot;raster-dem&quot;:L,geojson:C,video:O,image:I,canvas:z};function R(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function F(t,e,r,n,i,a){var o=function(t,e,r){if(t)for(var n=0,i=t;n&lt;i.length;n+=1){var a=e[i[n]];if(a&amp;&amp;a.source===r&amp;&amp;&quot;fill-extrusion&quot;===a.type)return!0}else for(var o in e){var s=e[o];if(s.source===r&amp;&amp;&quot;fill-extrusion&quot;===s.type)return!0}return!1}(i&amp;&amp;i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(B);for(var c=[],u=0,f=l;u&lt;f.length;u+=1){var h=f[u];c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,r,t._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,i,a,s,R(t.transform,h.tileID))})}var p=function(t){for(var e={},r={},n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p&lt;d.length;p+=1){var g=d[p];f[g.featureIndex]||(f[g.featureIndex]=!0,h.push(g))}}return e}(c);for(var d in p)p[d].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer[&quot;source-layer&quot;],r.id);r.source=r.layer.source,r.layer[&quot;source-layer&quot;]&amp;&amp;(r.sourceLayer=r.layer[&quot;source-layer&quot;]),r.state=n}));return p}function B(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var N=function(t,e){this.max=t,this.onRemove=e,this.reset()};N.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e&lt;r.length;e+=1){var n=r[e];n.timeout&amp;&amp;clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},N.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&amp;&amp;(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&amp;&amp;(a.timeout=setTimeout((function(){n.remove(t,a)}),r)),this.data[i].push(a),this.order.push(i),this.order.length&gt;this.max){var o=this._getAndRemoveByKey(this.order[0]);o&amp;&amp;this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&amp;&amp;clearTimeout(e.timeout),0===this.data[t].length&amp;&amp;delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&amp;&amp;clearTimeout(i.timeout),0===this.data[r].length&amp;&amp;delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length&gt;this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&amp;&amp;this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n&lt;i.length;n+=1){var a=i[n];t(a.value)||e.push(a)}for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var j=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};j.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},j.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},j.prototype.destroy=function(){var t=this.context.gl;this.buffer&amp;&amp;(t.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:&quot;BYTE&quot;,Uint8:&quot;UNSIGNED_BYTE&quot;,Int16:&quot;SHORT&quot;,Uint16:&quot;UNSIGNED_SHORT&quot;,Int32:&quot;INT&quot;,Uint32:&quot;UNSIGNED_INT&quot;,Float32:&quot;FLOAT&quot;},V=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var r=0;r&lt;this.attributes.length;r++){var n=this.attributes[r],i=e.attributes[n.name];void 0!==i&amp;&amp;t.enableVertexAttribArray(i)}},V.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n&lt;this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&amp;&amp;t.vertexAttribPointer(a,i.components,t[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},V.prototype.destroy=function(){var t=this.context.gl;this.buffer&amp;&amp;(t.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var H=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),G=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),W=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&amp;&amp;(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&amp;&amp;(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),$=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),nt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),it=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),at=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),ot=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),gt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),vt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&amp;&amp;(t!==this.current||this.dirty)&amp;&amp;(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(_t),Tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(_t),kt=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var i=t.gl,a=this.framebuffer=i.createFramebuffer();this.colorAttachment=new wt(t,a),n&amp;&amp;(this.depthAttachment=new Tt(t,a))};kt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&amp;&amp;t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&amp;&amp;t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var At=function(t,e,r){this.func=t,this.mask=e,this.range=r};At.ReadOnly=!1,At.ReadWrite=!0,At.disabled=new At(519,At.ReadOnly,[0,1]);var Mt=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};Mt.disabled=new Mt({func:519,mask:0},0,0,7680,7680,7680);var St=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};St.disabled=new St(St.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),St.unblended=new St(St.Replace,t.Color.transparent,[!0,!0,!0,!0]),St.alphaBlended=new St([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Et=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Et.disabled=new Et(!1,1029,2305),Et.backCCW=new Et(!0,1029,2305);var Lt=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(&quot;OES_vertex_array_object&quot;),this.clearColor=new H(this),this.clearDepth=new G(this),this.clearStencil=new Y(this),this.colorMask=new W(this),this.depthMask=new X(this),this.stencilMask=new Z(this),this.stencilFunc=new J(this),this.stencilOp=new K(this),this.stencilTest=new Q(this),this.depthRange=new $(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new nt(this),this.blendColor=new it(this),this.blendEquation=new at(this),this.cullFace=new ot(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ct(this),this.activeTexture=new ut(this),this.viewport=new ft(this),this.bindFramebuffer=new ht(this),this.bindRenderbuffer=new pt(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new gt(this),this.bindElementBuffer=new mt(this),this.bindVertexArrayOES=this.extVertexArrayObject&amp;&amp;new vt(this),this.pixelStoreUnpack=new yt(this),this.pixelStoreUnpackPremultiplyAlpha=new xt(this),this.pixelStoreUnpackFlipY=new bt(this),this.extTextureFilterAnisotropic=t.getExtension(&quot;EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;MOZ_EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;WEBKIT_EXT_texture_filter_anisotropic&quot;),this.extTextureFilterAnisotropic&amp;&amp;(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(&quot;OES_texture_half_float&quot;),this.extTextureHalfFloat&amp;&amp;(t.getExtension(&quot;OES_texture_half_float_linear&quot;),this.extRenderToTextureHalfFloat=t.getExtension(&quot;EXT_color_buffer_half_float&quot;)),this.extTimerQuery=t.getExtension(&quot;EXT_disjoint_timer_query&quot;)};Lt.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Lt.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&amp;&amp;(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Lt.prototype.createIndexBuffer=function(t,e){return new j(this,t,e)},Lt.prototype.createVertexBuffer=function(t,e,r){return new V(this,t,e,r)},Lt.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Lt.prototype.createFramebuffer=function(t,e,r){return new kt(this,t,e,r)},Lt.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&amp;&amp;(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&amp;&amp;(i|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Lt.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Lt.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Lt.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Lt.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,St.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Lt.prototype.unbindVAO=function(){this.extVertexArrayObject&amp;&amp;this.bindVertexArrayOES.set(null)};var Ct=function(e){function r(r,n,i){var a=this;e.call(this),this.id=r,this.dispatcher=i,this.on(&quot;data&quot;,(function(t){&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType&amp;&amp;(a._sourceLoaded=!0),a._sourceLoaded&amp;&amp;!a._paused&amp;&amp;&quot;source&quot;===t.dataType&amp;&amp;&quot;content&quot;===t.sourceDataType&amp;&amp;(a.reload(),a.transform&amp;&amp;a.update(a.transform))})),this.on(&quot;error&quot;,(function(){a._sourceErrored=!0})),this._source=function(e,r,n,i){var a=new D[r.type](e,r,n,i);if(a.id!==e)throw new Error(&quot;Expected Source id to be &quot;+e+&quot; instead of &quot;+a.id);return t.bindAll([&quot;load&quot;,&quot;abort&quot;,&quot;unload&quot;,&quot;serialize&quot;,&quot;prepare&quot;],a),a}(r,n,i,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&amp;&amp;this._source.onAdd&amp;&amp;this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&amp;&amp;this._source.onRemove&amp;&amp;this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if(&quot;loaded&quot;!==e.state&amp;&amp;&quot;errored&quot;!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&amp;&amp;this.reload(),this.transform&amp;&amp;this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&amp;&amp;this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(Pt).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var i in this._tiles)this._isIdRenderable(i,e)&amp;&amp;n.push(this._tiles[i]);return e?n.sort((function(e,n){var i=e.tileID,a=n.tileID,o=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle),s=new t.Point(a.canonical.x,a.canonical.y)._rotate(r.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(Pt).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&amp;&amp;this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&amp;&amp;this._tiles[t].hasData()&amp;&amp;!this._coveredTiles[t]&amp;&amp;(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)&quot;errored&quot;!==this._tiles[t].state&amp;&amp;this._reloadTile(t,&quot;reloading&quot;)},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&amp;&amp;(&quot;loading&quot;!==r.state&amp;&amp;(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=&quot;errored&quot;,void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),&quot;expired&quot;===n&amp;&amp;(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),&quot;raster-dem&quot;===this.getSource().type&amp;&amp;e.dem&amp;&amp;this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r&lt;e.length;r++){var n=e[r];if(t.neighboringTiles&amp;&amp;t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&amp;&amp;0===n||Math.abs(n)&gt;1||(Math.abs(r)&gt;1&amp;&amp;(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&amp;&amp;(r-=i)),e.dem&amp;&amp;t.dem&amp;&amp;(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&amp;&amp;t.neighboringTiles[a]&amp;&amp;(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ&lt;=e||a.tileID.overscaledZ&gt;r)){for(var o=a.tileID;a&amp;&amp;a.tileID.overscaledZ&gt;e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&amp;&amp;a.hasData()&amp;&amp;(o=s)}for(var l=o;l.overscaledZ&gt;e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&amp;&amp;r.tileID.overscaledZ&gt;=e?r:null}for(var n=t.overscaledZ-1;n&gt;=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&amp;&amp;e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),r=Math.floor(5*e),n=&quot;number&quot;==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(n)},r.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,r=Math.round(e);if(this._prevLng=t,r){var n={};for(var i in this._tiles){var a=this._tiles[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+r),n[a.tileID.key]=a}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&amp;&amp;!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&amp;&amp;(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(It(this._source.type)){for(var c={},u={},f=0,h=Object.keys(l);f&lt;h.length;f+=1){var p=h[f],d=l[p],g=this._tiles[p];if(g&amp;&amp;!(g.fadeEndTime&amp;&amp;g.fadeEndTime&lt;=t.browser.now())){var m=this.findLoadedParent(d,o);m&amp;&amp;(this._addTile(m.tileID),c[m.tileID.key]=m.tileID),u[p]=d}}for(var v in this._retainLoadedChildren(u,a,s,l),c)l[v]||(this._coveredTiles[v]=!0,l[v]=c[v])}for(var y in l)this._tiles[y].clearFadeHold();for(var x=0,b=t.keysDifference(this._tiles,l);x&lt;b.length;x+=1){var _=b[x],w=this._tiles[_];w.hasSymbolBuckets&amp;&amp;!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&amp;&amp;!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&amp;&amp;this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,c=t;l&lt;c.length;l+=1){var u=c[l],f=this._addTile(u);n[u.key]=u,f.hasData()||e&lt;this._source.maxzoom&amp;&amp;(s[u.key]=u)}this._retainLoadedChildren(s,e,o,n);for(var h=0,p=t;h&lt;p.length;h+=1){var d=p[h],g=this._tiles[d.key];if(!g.hasData()){if(e+1&gt;this._source.maxzoom){var m=d.children(this._source.maxzoom)[0],v=this.getTile(m);if(v&amp;&amp;v.hasData()){n[m.key]=m;continue}}else{var y=d.children(this._source.maxzoom);if(n[y[0].key]&amp;&amp;n[y[1].key]&amp;&amp;n[y[2].key]&amp;&amp;n[y[3].key])continue}for(var x=g.wasRequested(),b=d.overscaledZ-1;b&gt;=a;--b){var _=d.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(g=this.getTile(_))&amp;&amp;x&amp;&amp;(g=this._addTile(_)),g&amp;&amp;(n[_.key]=_,x=g.wasRequested(),g.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ&gt;0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._loadedParentTiles[s]=r}}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&amp;&amp;(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&amp;&amp;(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(&quot;dataloading&quot;,{tile:r,coord:r.tileID,dataType:&quot;source&quot;})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&amp;&amp;(this._timers[t]=setTimeout((function(){r._reloadTile(t,&quot;expired&quot;),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&amp;&amp;(e.uses--,delete this._tiles[t],this._timers[t]&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses&gt;0||(e.hasData()&amp;&amp;&quot;reloading&quot;!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,h=1/0,p=-1/0,d=-1/0,g=0,m=c;g&lt;m.length;g+=1){var v=m[g];f=Math.min(f,v.x),h=Math.min(h,v.y),p=Math.max(p,v.x),d=Math.max(d,v.y)}for(var y=function(e){var n=i._tiles[u[e]];if(!n.holdingForFade()){var s=n.tileID,g=Math.pow(2,o.zoom-n.tileID.overscaledZ),m=r*n.queryPadding*t.EXTENT/n.tileSize/g,v=[s.getTilePoint(new t.MercatorCoordinate(f,h)),s.getTilePoint(new t.MercatorCoordinate(p,d))];if(v[0].x-m&lt;t.EXTENT&amp;&amp;v[0].y-m&lt;t.EXTENT&amp;&amp;v[1].x+m&gt;=0&amp;&amp;v[1].y+m&gt;=0){var y=l.map((function(t){return s.getTilePoint(t)})),x=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:g})}}},x=0;x&lt;u.length;x++)y(x);return a},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,i=r;n&lt;i.length;n+=1){var a=i[n];a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(It(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&amp;&amp;r.fadeEndTime&gt;=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){t=t||&quot;_geojsonTileLayer&quot;,this._state.updateState(t,e,r)},r.prototype.removeFeatureState=function(t,e,r){t=t||&quot;_geojsonTileLayer&quot;,this._state.removeFeatureState(t,e,r)},r.prototype.getFeatureState=function(t,e){return t=t||&quot;_geojsonTileLayer&quot;,this._state.getState(t,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&amp;&amp;n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles){this._tiles[r].hasDependency(t,e)&amp;&amp;this._reloadTile(r,&quot;reloading&quot;)}this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function Pt(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap&lt;0),n=Math.abs(2*e.wrap)-+(e.wrap&lt;0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function It(t){return&quot;raster&quot;===t||&quot;image&quot;===t||&quot;video&quot;===t}function Ot(){return new t.window.Worker(Zi.workerUrl)}Ct.maxOverzooming=10,Ct.maxUnderzooming=3;var zt=&quot;mapboxgl_preloaded_worker_pool&quot;,Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length&lt;Dt.workerCount;)this.workers.push(new Ot);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&amp;&amp;(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[zt]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,Ft=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Rt||(Rt=new Dt),Rt}function Nt(e,r){var n={};for(var i in e)&quot;ref&quot;!==i&amp;&amp;(n[i]=e[i]);return t.refProperties.forEach((function(t){t in r&amp;&amp;(n[t]=r[t])})),n}function jt(t){t=t.slice();for(var e=Object.create(null),r=0;r&lt;t.length;r++)e[t[r].id]=t[r];for(var n=0;n&lt;t.length;n++)&quot;ref&quot;in t[n]&amp;&amp;(t[n]=Nt(t[n],e[t[n].ref]));return t}Dt.workerCount=Math.max(Math.min(Ft,6),1);var Ut={setStyle:&quot;setStyle&quot;,addLayer:&quot;addLayer&quot;,removeLayer:&quot;removeLayer&quot;,setPaintProperty:&quot;setPaintProperty&quot;,setLayoutProperty:&quot;setLayoutProperty&quot;,setFilter:&quot;setFilter&quot;,addSource:&quot;addSource&quot;,removeSource:&quot;removeSource&quot;,setGeoJSONSourceData:&quot;setGeoJSONSourceData&quot;,setLayerZoomRange:&quot;setLayerZoomRange&quot;,setLayerProperty:&quot;setLayerProperty&quot;,setCenter:&quot;setCenter&quot;,setZoom:&quot;setZoom&quot;,setBearing:&quot;setBearing&quot;,setPitch:&quot;setPitch&quot;,setSprite:&quot;setSprite&quot;,setGlyphs:&quot;setGlyphs&quot;,setTransition:&quot;setTransition&quot;,setLight:&quot;setLight&quot;};function Vt(t,e,r){r.push({command:Ut.addSource,args:[t,e[t]]})}function qt(t,e,r){e.push({command:Ut.removeSource,args:[t]}),r[t]=!0}function Ht(t,e,r,n){qt(t,r,n),Vt(t,e,r)}function Gt(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;return!0}function Yt(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&amp;&amp;!e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function Wt(t){return t.id}function Xt(t,e){return t[e.id]=e,t}function Zt(e,r){if(!e)return[{command:Ut.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:Ut.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:Ut.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:Ut.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:Ut.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:Ut.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:Ut.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:Ut.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:Ut.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:Ut.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&amp;&amp;(r.hasOwnProperty(a)||qt(a,n,i));for(a in r)r.hasOwnProperty(a)&amp;&amp;(e.hasOwnProperty(a)?t.deepEqual(e[a],r[a])||(&quot;geojson&quot;===e[a].type&amp;&amp;&quot;geojson&quot;===r[a].type&amp;&amp;Gt(e,r,a)?n.push({command:Ut.setGeoJSONSourceData,args:[a,r[a].data]}):Ht(a,r,n,i)):Vt(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&amp;&amp;e.layers.forEach((function(t){i[t.source]?n.push({command:Ut.removeLayer,args:[t.id]}):o.push(t)})),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(Wt),h=r.map(Wt),p=e.reduce(Xt,{}),d=r.reduce(Xt,{}),g=f.slice(),m=Object.create(null);for(i=0,a=0;i&lt;f.length;i++)o=f[i],d.hasOwnProperty(o)?a++:(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i&lt;h.length;i++)o=h[h.length-1-i],g[g.length-1-i]!==o&amp;&amp;(p.hasOwnProperty(o)?(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,c=g[g.length-i],n.push({command:Ut.addLayer,args:[d[o],c]}),g.splice(g.length-i,0,o),m[o]=!0);for(i=0;i&lt;h.length;i++)if(s=p[o=h[i]],l=d[o],!m[o]&amp;&amp;!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&amp;&amp;t.deepEqual(s[&quot;source-layer&quot;],l[&quot;source-layer&quot;])&amp;&amp;t.deepEqual(s.type,l.type)){for(u in Yt(s.layout,l.layout,n,o,null,Ut.setLayoutProperty),Yt(s.paint,l.paint,n,o,null,Ut.setPaintProperty),t.deepEqual(s.filter,l.filter)||n.push({command:Ut.setFilter,args:[o,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&amp;&amp;t.deepEqual(s.maxzoom,l.maxzoom)||n.push({command:Ut.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&amp;&amp;!s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:Ut.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:Ut.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(&quot;Unable to compute style diff:&quot;,t),n=[{command:Ut.setStyle,args:[r]}]}return n}var Jt=function(t,e){this.reset(t,e)};Jt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r&lt;this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Jt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],i=e*this.paddedLength+this.padding;n&lt;i&amp;&amp;r&lt;this._distances.length;)n=this._distances[++r];var a=r-1,o=this._distances[a],s=n-o,l=s&gt;0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Kt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a&lt;this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Qt(e,r,n,i,a){var o=t.create();return r?(t.scale(o,o,[1/a,1/a,1]),n||t.rotateZ(o,o,i.angle)):t.multiply(o,i.labelPlaneMatrix,e),o}function $t(e,r,n,i,a){if(r){var o=t.clone(e);return t.scale(o,o,[a,a,1]),n||t.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function te(e,r){var n=[e.x,e.y,0,1];fe(n,n,r);var i=n[3];return{point:new t.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function ee(t,e){return.5+t/e*.5}function re(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r&gt;=-e[0]&amp;&amp;r&lt;=e[0]&amp;&amp;n&gt;=-e[1]&amp;&amp;n&lt;=e[1]}function ne(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,m=!1,v=0;v&lt;d.length;v++){var y=d.get(v);if(y.hidden||y.writingMode===t.WritingMode.vertical&amp;&amp;!m)ue(y.numGlyphs,h);else{m=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(x,x,r),re(x,f)){var b=x[3],_=ee(n.transform.cameraToCenterDistance,b),w=t.evaluateSizeForFeature(c,u,y),T=s?w/_:w*_,k=new t.Point(y.anchorX,y.anchorY),A=te(k,a).point,M={},S=oe(y,T,!1,l,r,a,o,e.glyphOffsetArray,p,h,A,k,M,g);m=S.useVertical,(S.notEnoughRoom||m||S.needsFlipping&amp;&amp;oe(y,T,!0,l,r,a,o,e.glyphOffsetArray,p,h,A,k,M,g).notEnoughRoom)&amp;&amp;ue(y.numGlyphs,h)}else ue(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ie(t,e,r,n,i,a,o,s,l,c,u){var f=s.glyphStartIndex+s.numGlyphs,h=s.lineStartIndex,p=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),g=e.getoffsetX(f-1),m=le(t*d,r,n,i,a,o,s.segment,h,p,l,c,u);if(!m)return null;var v=le(t*g,r,n,i,a,o,s.segment,h,p,l,c,u);return v?{first:m,last:v}:null}function ae(e,r,n,i){if(e===t.WritingMode.horizontal&amp;&amp;Math.abs(n.y-r.y)&gt;Math.abs(n.x-r.x)*i)return{useVertical:!0};return(e===t.WritingMode.vertical?r.y&lt;n.y:r.x&gt;n.x)?{needsFlipping:!0}:null}function oe(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=r/24,v=e.lineOffsetX*m,y=e.lineOffsetY*m;if(e.numGlyphs&gt;1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ie(m,l,v,y,n,f,h,e,c,o,p);if(!w)return{notEnoughRoom:!0};var T=te(w.first.point,s).point,k=te(w.last.point,s).point;if(i&amp;&amp;!n){var A=ae(e.writingMode,T,k,d);if(A)return A}g=[w.first];for(var M=e.glyphStartIndex+1;M&lt;x-1;M++)g.push(le(m*l.getoffsetX(M),v,y,n,f,h,e.segment,b,_,c,o,p));g.push(w.last)}else{if(i&amp;&amp;!n){var S=te(h,a).point,E=e.lineStartIndex+e.segment+1,L=new t.Point(c.getx(E),c.gety(E)),C=te(L,a),P=C.signedDistanceFromCamera&gt;0?C.point:se(h,L,S,1,a),I=ae(e.writingMode,S,P,d);if(I)return I}var O=le(m*l.getoffsetX(e.glyphStartIndex),v,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p);if(!O)return{notEnoughRoom:!0};g=[O]}for(var z=0,D=g;z&lt;D.length;z+=1){var R=D[z];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function se(t,e,r,n,i){var a=te(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function le(e,r,n,i,a,o,s,l,c,u,f,h){var p=i?e-r:e+r,d=p&gt;0?1:-1,g=0;i&amp;&amp;(d*=-1,g=Math.PI),d&lt;0&amp;&amp;(g+=Math.PI);for(var m=d&gt;0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(p),w=[];x+b&lt;=_;){if((m+=d)&lt;l||m&gt;=c)return null;if(y=v,w.push(v),void 0===(v=h[m])){var T=new t.Point(u.getx(m),u.gety(m)),k=te(T,f);if(k.signedDistanceFromCamera&gt;0)v=h[m]=k.point;else{var A=m-d;v=se(0===x?o:new t.Point(u.getx(A),u.gety(A)),T,y,_-x+1,f)}}x+=b,b=y.dist(v)}var M=(_-x)/b,S=v.sub(y),E=S.mult(M)._add(y);E._add(S._unit()._perp()._mult(n*d));var L=g+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:L,path:w}}Kt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Kt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Kt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Kt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Kt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Kt.prototype._query=function(t,e,r,n,i,a){if(r&lt;0||t&gt;this.width||n&lt;0||e&gt;this.height)return!i&amp;&amp;[];var o=[];if(t&lt;=0&amp;&amp;e&lt;=0&amp;&amp;this.width&lt;=r&amp;&amp;this.height&lt;=n){if(i)return!0;for(var s=0;s&lt;this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l&lt;this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],f=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-f,y1:u-f,x2:c+f,y2:u+f})}return a?o.filter(a):o}var h={hitTest:i,seenUids:{box:{},circle:{}}};return this._forEachCell(t,e,r,n,this._queryCell,o,h,a),i?o.length&gt;0:o},Kt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o&lt;0||a&gt;this.width||l&lt;0||s&gt;this.height)return!n&amp;&amp;[];var c=[],u={hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,c,u,i),n?c.length&gt;0:c},Kt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Kt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Kt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Kt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f&lt;h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(t&lt;=u[d+2]&amp;&amp;e&lt;=u[d+3]&amp;&amp;r&gt;=u[d+0]&amp;&amp;n&gt;=u[d+1]&amp;&amp;(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:u[d],y1:u[d+1],x2:u[d+2],y2:u[d+3]})}}}var g=this.circleCells[i];if(null!==g)for(var m=this.circles,v=0,y=g;v&lt;y.length;v+=1){var x=y[v];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circleAndRectCollide(m[b],m[b+1],m[b+2],t,e,r,n)&amp;&amp;(!s||s(this.circleKeys[x]))){if(o.hitTest)return a.push(!0),!0;var _=m[b],w=m[b+1],T=m[b+2];a.push({key:this.circleKeys[x],x1:_-T,y1:w-T,x2:_+T,y2:w+T})}}}},Kt.prototype._queryCellCircle=function(t,e,r,n,i,a,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[i];if(null!==u)for(var f=this.bboxes,h=0,p=u;h&lt;p.length;h+=1){var d=p[h];if(!c.box[d]){c.box[d]=!0;var g=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,f[g+0],f[g+1],f[g+2],f[g+3])&amp;&amp;(!s||s(this.boxKeys[d])))return a.push(!0),!0}}var m=this.circleCells[i];if(null!==m)for(var v=this.circles,y=0,x=m;y&lt;x.length;y+=1){var b=x[y];if(!c.circle[b]){c.circle[b]=!0;var _=3*b;if(this._circlesCollide(v[_],v[_+1],v[_+2],l.x,l.y,l.radius)&amp;&amp;(!s||s(this.circleKeys[b])))return a.push(!0),!0}}},Kt.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(r),f=this._convertToYCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.xCellCount*p+h;if(i.call(this,t,e,r,n,d,a,o,s))return}},Kt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Kt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Kt.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l&gt;o*o+s*s},Kt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l&gt;s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u&gt;c+r)return!1;if(l&lt;=s||u&lt;=c)return!0;var f=l-s,h=u-c;return f*f+h*h&lt;=r*r};var ce=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ue(t,e){for(var r=0;r&lt;t;r++){var n=e.length;e.resize(n+4),e.float32.set(ce,3*n)}}function fe(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}var he=function(t,e,r){void 0===e&amp;&amp;(e=new Kt(t.width+200,t.height+200,25)),void 0===r&amp;&amp;(r=new Kt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function pe(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}he.prototype.placeCollisionBox=function(t,e,r,n,i){var a=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),o=r*a.perspectiveRatio,s=t.x1*o+a.point.x,l=t.y1*o+a.point.y,c=t.x2*o+a.point.x,u=t.y2*o+a.point.y;return!this.isInsideGrid(s,l,c,u)||!e&amp;&amp;this.grid.hitTest(s,l,c,u,i)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},he.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],g=new t.Point(r.anchorX,r.anchorY),m=te(g,o),v=ee(this.transform.cameraToCenterDistance,m.signedDistanceFromCamera),y=(u?a/v:a*v)/t.ONE_EM,x=te(g,s).point,b=ie(y,i,r.lineOffsetX*y,r.lineOffsetY*y,!1,x,g,r,n,s,{}),_=!1,w=!1,T=!0;if(b){for(var k=.5*h*v+p,A=new t.Point(-100,-100),M=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new Jt,E=b.first,L=b.last,C=[],P=E.path.length-1;P&gt;=1;P--)C.push(E.path[P]);for(var I=1;I&lt;L.path.length;I++)C.push(L.path[I]);var O=2.5*k;if(l){var z=C.map((function(t){return te(t,l)}));C=z.some((function(t){return t.signedDistanceFromCamera&lt;=0}))?[]:z.map((function(t){return t.point}))}var D=[];if(C.length&gt;0){for(var R=C[0].clone(),F=C[0].clone(),B=1;B&lt;C.length;B++)R.x=Math.min(R.x,C[B].x),R.y=Math.min(R.y,C[B].y),F.x=Math.max(F.x,C[B].x),F.y=Math.max(F.y,C[B].y);D=R.x&gt;=A.x&amp;&amp;F.x&lt;=M.x&amp;&amp;R.y&gt;=A.y&amp;&amp;F.y&lt;=M.y?[C]:F.x&lt;A.x||R.x&gt;M.x||F.y&lt;A.y||R.y&gt;M.y?[]:t.clipLine([C],A.x,A.y,M.x,M.y)}for(var N=0,j=D;N&lt;j.length;N+=1){var U=j[N];S.reset(U,.25*k);var V=0;V=S.length&lt;=.5*k?1:Math.ceil(S.paddedLength/O)+1;for(var q=0;q&lt;V;q++){var H=q/Math.max(V-1,1),G=S.lerp(H),Y=G.x+100,W=G.y+100;d.push(Y,W,k,0);var X=Y-k,Z=W-k,J=Y+k,K=W+k;if(T=T&amp;&amp;this.isOffscreen(X,Z,J,K),w=w||this.isInsideGrid(X,Z,J,K),!e&amp;&amp;this.grid.hitTestCircle(Y,W,k,f)&amp;&amp;(_=!0,!c))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!c&amp;&amp;_||!w?[]:d,offscreen:T,collisionDetected:_}},he.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&amp;&amp;0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s&lt;l.length;s+=1){var c=l[s],u=new t.Point(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p&lt;d.length;p+=1){var g=d[p],m=g.key;if(void 0===f[m.bucketInstanceId]&amp;&amp;(f[m.bucketInstanceId]={}),!f[m.bucketInstanceId][m.featureIndex]){var v=[new t.Point(g.x1,g.y1),new t.Point(g.x2,g.y1),new t.Point(g.x2,g.y2),new t.Point(g.x1,g.y2)];t.polygonIntersectsPolygon(r,v)&amp;&amp;(f[m.bucketInstanceId][m.featureIndex]=!0,void 0===h[m.bucketInstanceId]&amp;&amp;(h[m.bucketInstanceId]=[]),h[m.bucketInstanceId].push(m.featureIndex))}}return h},he.prototype.insertCollisionBox=function(t,e,r,n,i){var a={bucketInstanceId:r,featureIndex:n,collisionGroupID:i};(e?this.ignoredGrid:this.grid).insert(a,t[0],t[1],t[2],t[3])},he.prototype.insertCollisionCircles=function(t,e,r,n,i){for(var a=e?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:n,collisionGroupID:i},s=0;s&lt;t.length;s+=4)a.insertCircle(o,t[s],t[s+1],t[s+2])},he.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return fe(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},he.prototype.isOffscreen=function(t,e,r,n){return r&lt;100||t&gt;=this.screenRightBoundary||n&lt;100||e&gt;this.screenBottomBoundary},he.prototype.isInsideGrid=function(t,e,r,n){return r&gt;=0&amp;&amp;t&lt;this.gridRightBoundary&amp;&amp;n&gt;=0&amp;&amp;e&lt;this.gridBottomBoundary},he.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var de=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&amp;&amp;r?1:0,this.placed=r};de.prototype.isHidden=function(){return 0===this.opacity&amp;&amp;!this.placed};var ge=function(t,e,r,n,i){this.text=new de(t?t.text:null,e,r,i),this.icon=new de(t?t.icon:null,e,n,i)};ge.prototype.isHidden=function(){return this.text.isHidden()&amp;&amp;this.icon.isHidden()};var me=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},ve=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ye=function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i},xe=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function be(e,r,n,i,a){var o=t.getAnchorAlignment(e),s=-(o.horizontalAlign-.5)*r,l=-(o.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,i);return new t.Point(s+c[0]*a,l+c[1]*a)}function _e(e,r,n,i,a,o){var s=e.x1,l=e.x2,c=e.y1,u=e.y2,f=e.anchorPointX,h=e.anchorPointY,p=new t.Point(r,n);return i&amp;&amp;p._rotate(a?o:-o),{x1:s+p.x,y1:c+p.y,x2:l+p.x,y2:u+p.y,anchorPointX:f,anchorPointY:h}}xe.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var we=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new he(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new xe(r),this.collisionCircleArrays={},this.prevPlacement=n,n&amp;&amp;(n.prevPlacement=void 0),this.placedOrientations={}};function Te(t,e,r,n,i){t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0)}we.prototype.getBucketParts=function(e,r,n,i){var a=n.getBucket(r),o=n.latestFeatureIndex;if(a&amp;&amp;o&amp;&amp;r.id===a.layerIds[0]){var s=n.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,f=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),h=&quot;map&quot;===l.get(&quot;text-pitch-alignment&quot;),p=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;),d=pe(n,1,this.transform.zoom),g=Qt(f,h,p,this.transform,d),m=null;if(h){var v=$t(f,h,p,this.transform,d);m=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[a.bucketInstanceId]=new ye(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);var y={bucket:a,layout:l,posMatrix:f,textLabelPlaneMatrix:g,labelToScreenMatrix:m,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(var x=0,b=a.sortKeyRanges;x&lt;b.length;x+=1){var _=b[x],w=_.sortKey,T=_.symbolInstanceStart,k=_.symbolInstanceEnd;e.push({sortKey:w,symbolInstanceStart:T,symbolInstanceEnd:k,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}},we.prototype.attemptAnchorPlacement=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=[f.textOffset0,f.textOffset1],v=be(t,r,n,m,i),y=this.collisionIndex.placeCollisionBox(_e(e,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate);if(d&amp;&amp;0===this.collisionIndex.placeCollisionBox(_e(d,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate).box.length)return;if(y.box.length&gt;0)return this.prevPlacement&amp;&amp;this.prevPlacement.variableOffsets[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID].text&amp;&amp;(g=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:m,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(h,t,f,p),h.allowVerticalPlacement&amp;&amp;(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:v,placedGlyphBoxes:y}},we.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,h=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,g=a.collisionGroup,m=s.get(&quot;text-optional&quot;),v=s.get(&quot;icon-optional&quot;),y=s.get(&quot;text-allow-overlap&quot;),x=s.get(&quot;icon-allow-overlap&quot;),b=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;),_=&quot;map&quot;===s.get(&quot;text-pitch-alignment&quot;),w=&quot;none&quot;!==s.get(&quot;icon-text-fit&quot;),T=&quot;viewport-y&quot;===s.get(&quot;symbol-z-order&quot;),k=y&amp;&amp;(x||!o.hasIconData()||v),A=x&amp;&amp;(y||!o.hasTextData()||m);!o.collisionArrays&amp;&amp;p&amp;&amp;o.deserializeCollisionBoxes(p);var M=function(e,a){if(!r[e.crossTileID])if(h)i.placements[e.crossTileID]=new me(!1,!1,!1);else{var p,T=!1,M=!1,S=!0,E=null,L={box:null,offscreen:null},C={box:null,offscreen:null},P=null,I=null,O=0,z=0,D=0;a.textFeatureIndex?O=a.textFeatureIndex:e.useRuntimeCollisionCircles&amp;&amp;(O=e.featureIndex),a.verticalTextFeatureIndex&amp;&amp;(z=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&amp;&amp;!r&amp;&amp;i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&amp;&amp;(i.placedOrientations[e.crossTileID]=a,n=a,i.markUsedOrientation(o,n,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;a.verticalTextBox)for(var i=0,s=o.writingModes;i&lt;s.length;i+=1){if(s[i]===t.WritingMode.vertical?(L=n(),C=L):L=r(),L&amp;&amp;L.box&amp;&amp;L.box.length)break}else L=r()};if(s.get(&quot;text-variable-anchor&quot;)){var N=s.get(&quot;text-variable-anchor&quot;);if(i.prevPlacement&amp;&amp;i.prevPlacement.variableOffsets[e.crossTileID]){var j=i.prevPlacement.variableOffsets[e.crossTileID];N.indexOf(j.anchor)&gt;0&amp;&amp;(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&amp;&amp;!x?r:null,h={box:[],offscreen:!1},p=y?2*N.length:N.length,d=0;d&lt;p;++d){var m=N[d%N.length],v=d&gt;=N.length,k=i.attemptAnchorPlacement(m,t,a,s,c,b,_,f,l,g,v,e,o,n,u);if(k&amp;&amp;(h=k.placedGlyphBoxes)&amp;&amp;h.box&amp;&amp;h.box.length){T=!0,E=k.shift;break}}return h};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox,n=L&amp;&amp;L.box&amp;&amp;L.box.length;return o.allowVerticalPlacement&amp;&amp;!n&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),L&amp;&amp;(T=L.box,S=L.offscreen);var V=F(L&amp;&amp;L.box);if(!T&amp;&amp;i.prevPlacement){var q=i.prevPlacement.variableOffsets[e.crossTileID];q&amp;&amp;(i.variableOffsets[e.crossTileID]=q,i.markUsedJustification(o,q.anchor,e,V))}}else{var H=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,g.predicate);return n&amp;&amp;n.box&amp;&amp;n.box.length&amp;&amp;(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return H(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?H(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(L&amp;&amp;L.box&amp;&amp;L.box.length)}}if(T=(p=L)&amp;&amp;p.box&amp;&amp;p.box.length&gt;0,S=p&amp;&amp;p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get(&quot;text-padding&quot;),X=e.collisionCircleDiameter;P=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,Y,l,c,u,n,_,g.predicate,X,W),T=y||P.circles.length&gt;0&amp;&amp;!P.collisionDetected,S=S&amp;&amp;P.offscreen}if(a.iconFeatureIndex&amp;&amp;(D=a.iconFeatureIndex),a.iconBox){var Z=function(t){var e=w&amp;&amp;E?_e(t,E.x,E.y,b,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,f,l,g.predicate)};M=C&amp;&amp;C.box&amp;&amp;C.box.length&amp;&amp;a.verticalIconBox?(I=Z(a.verticalIconBox)).box.length&gt;0:(I=Z(a.iconBox)).box.length&gt;0,S=S&amp;&amp;I.offscreen}var J=m||0===e.numHorizontalGlyphVertices&amp;&amp;0===e.numVerticalGlyphVertices,K=v||0===e.numIconVertices;if(J||K?K?J||(M=M&amp;&amp;T):T=M&amp;&amp;T:M=T=M&amp;&amp;T,T&amp;&amp;p&amp;&amp;p.box&amp;&amp;(C&amp;&amp;C.box&amp;&amp;z?i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,z,g.ID):i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,O,g.ID)),M&amp;&amp;I&amp;&amp;i.collisionIndex.insertCollisionBox(I.box,s.get(&quot;icon-ignore-placement&quot;),o.bucketInstanceId,D,g.ID),P&amp;&amp;(T&amp;&amp;i.collisionIndex.insertCollisionCircles(P.circles,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,O,g.ID),n)){var Q=o.bucketInstanceId,$=i.collisionCircleArrays[Q];void 0===$&amp;&amp;($=i.collisionCircleArrays[Q]=new ve);for(var tt=0;tt&lt;P.circles.length;tt+=4)$.circles.push(P.circles[tt+0]),$.circles.push(P.circles[tt+1]),$.circles.push(P.circles[tt+2]),$.circles.push(P.collisionDetected?1:0)}i.placements[e.crossTileID]=new me(T||k,M||A,S||o.justReloaded),r[e.crossTileID]=!0}};if(T)for(var S=o.getSortedSymbolIndexes(this.transform.angle),E=S.length-1;E&gt;=0;--E){var L=S[E];M(o.symbolInstances.get(L),o.collisionArrays[L])}else for(var C=e.symbolInstanceStart;C&lt;e.symbolInstanceEnd;C++)M(o.symbolInstances.get(C),o.collisionArrays[C]);if(n&amp;&amp;o.bucketInstanceId in this.collisionCircleArrays){var P=this.collisionCircleArrays[o.bucketInstanceId];t.invert(P.invProjMatrix,l),P.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},we.prototype.markUsedJustification=function(e,r,n,i){var a,o={left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex};a=i===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:o[t.getAnchorJustification(r)];for(var s=0,l=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];s&lt;l.length;s+=1){var c=l[s];c&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(c).crossTileID=a&gt;=0&amp;&amp;c!==a?0:n.crossTileID)}},we.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o&lt;s.length;o+=1){var l=s[o];e.text.placedSymbolArray.get(l).placedOrientation=i}n.verticalPlacedTextSymbolIndex&amp;&amp;(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)},we.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=i[s];c?(this.opacities[s]=new ge(c,n,l.text,l.icon),r=r||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new ge(null,n,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var u in i){var f=i[u];if(!this.opacities[u]){var h=new ge(f,n,!1,!1);h.isHidden()||(this.opacities[u]=h,r=r||f.text.placed||f.icon.placed)}}for(var p in a)this.variableOffsets[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.variableOffsets[p]=a[p]);for(var d in o)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=o[d]);r?this.lastPlacementChangeTime=t:&quot;number&quot;!=typeof this.lastPlacementChangeTime&amp;&amp;(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},we.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){var a=i[n],o=a.getBucket(t);o&amp;&amp;a.latestFeatureIndex&amp;&amp;t.id===o.layerIds[0]&amp;&amp;this.updateBucketOpacities(o,r,a.collisionBoxArray)}},we.prototype.updateBucketOpacities=function(e,r,n){var i=this;e.hasTextData()&amp;&amp;e.text.opacityVertexArray.clear(),e.hasIconData()&amp;&amp;e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexArray.clear();var a=e.layers[0].layout,o=new ge(null,0,!1,!1,!0),s=a.get(&quot;text-allow-overlap&quot;),l=a.get(&quot;icon-allow-overlap&quot;),c=a.get(&quot;text-variable-anchor&quot;),u=&quot;map&quot;===a.get(&quot;text-rotation-alignment&quot;),f=&quot;map&quot;===a.get(&quot;text-pitch-alignment&quot;),h=&quot;none&quot;!==a.get(&quot;icon-text-fit&quot;),p=new ge(null,0,s&amp;&amp;(l||!e.hasIconData()||a.get(&quot;icon-optional&quot;)),l&amp;&amp;(s||!e.hasTextData()||a.get(&quot;text-optional&quot;)),!0);!e.collisionArrays&amp;&amp;n&amp;&amp;(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&amp;&amp;e.deserializeCollisionBoxes(n);for(var d=function(t,e,r){for(var n=0;n&lt;e/4;n++)t.opacityVertexArray.emplaceBack(r)},g=function(n){var a=e.symbolInstances.get(n),s=a.numHorizontalGlyphVertices,l=a.numVerticalGlyphVertices,g=a.crossTileID,m=r[g],v=i.opacities[g];m?v=o:v||(v=p,i.opacities[g]=v),r[g]=!0;var y=s&gt;0||l&gt;0,x=a.numIconVertices&gt;0,b=i.placedOrientations[a.crossTileID],_=b===t.WritingMode.vertical,w=b===t.WritingMode.horizontal||b===t.WritingMode.horizontalOnly;if(y){var T=Pe(v.text),k=_?Ie:T;d(e.text,s,k);var A=w?Ie:T;d(e.text,l,A);var M=v.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(t).hidden=M||_?1:0)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=M||w?1:0);var S=i.variableOffsets[a.crossTileID];S&amp;&amp;i.markUsedJustification(e,S.anchor,a,b);var E=i.placedOrientations[a.crossTileID];E&amp;&amp;(i.markUsedJustification(e,&quot;left&quot;,a,E),i.markUsedOrientation(e,E,a))}if(x){var L=Pe(v.icon),C=!(h&amp;&amp;a.verticalPlacedIconSymbolIndex&amp;&amp;_);if(a.placedIconSymbolIndex&gt;=0){var P=C?L:Ie;d(e.icon,a.numIconVertices,P),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=v.icon.isHidden()}if(a.verticalPlacedIconSymbolIndex&gt;=0){var I=C?Ie:L;d(e.icon,a.numVerticalIconVertices,I),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden()}}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var O=e.collisionArrays[n];if(O){var z=new t.Point(0,0);if(O.textBox||O.verticalTextBox){var D=!0;if(c){var R=i.variableOffsets[g];R?(z=be(R.anchor,R.width,R.height,R.textOffset,R.textBoxScale),u&amp;&amp;z._rotate(f?i.transform.angle:-i.transform.angle)):D=!1}O.textBox&amp;&amp;Te(e.textCollisionBox.collisionVertexArray,v.text.placed,!D||_,z.x,z.y),O.verticalTextBox&amp;&amp;Te(e.textCollisionBox.collisionVertexArray,v.text.placed,!D||w,z.x,z.y)}var F=Boolean(!w&amp;&amp;O.verticalIconBox);O.iconBox&amp;&amp;Te(e.iconCollisionBox.collisionVertexArray,v.icon.placed,F,h?z.x:0,h?z.y:0),O.verticalIconBox&amp;&amp;Te(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!F,h?z.x:0,h?z.y:0)}}},m=0;m&lt;e.symbolInstances.length;m++)g(m);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&amp;&amp;(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&amp;&amp;e.text.opacityVertexBuffer&amp;&amp;e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&amp;&amp;e.icon.opacityVertexBuffer&amp;&amp;e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexBuffer&amp;&amp;e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexBuffer&amp;&amp;e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},we.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},we.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},we.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime&lt;this.fadeDuration},we.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r&gt;t},we.prototype.setStale=function(){this.stale=!0};var ke=Math.pow(2,25),Ae=Math.pow(2,24),Me=Math.pow(2,17),Se=Math.pow(2,16),Ee=Math.pow(2,9),Le=Math.pow(2,8),Ce=Math.pow(2,1);function Pe(t){if(0===t.opacity&amp;&amp;!t.placed)return 0;if(1===t.opacity&amp;&amp;t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*ke+e*Ae+r*Me+e*Se+r*Ee+e*Le+r*Ce+e}var Ie=0,Oe=function(t){this._sortAcrossTiles=&quot;viewport-y&quot;!==t.layout.get(&quot;symbol-z-order&quot;)&amp;&amp;void 0!==t.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Oe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex&lt;t.length;){var o=t[this._currentTileIndex];if(e.getBucketParts(a,n,o,this._sortAcrossTiles),this._currentTileIndex++,i())return!0}for(this._sortAcrossTiles&amp;&amp;(this._sortAcrossTiles=!1,a.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex&lt;a.length;){var s=a[this._currentPartIndex];if(e.placeLayerBucketPart(s,this._seenCrossTileIDs,r),this._currentPartIndex++,i())return!0}return!1};var ze=function(t,e,r,n,i,a,o){this.placement=new we(t,i,a,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};ze.prototype.isDone=function(){return this._done},ze.prototype.continuePlacement=function(e,r,n){for(var i=this,a=t.browser.now(),o=function(){var e=t.browser.now()-a;return!i._forceFullPlacement&amp;&amp;e&gt;2};this._currentPlacementIndex&gt;=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if(&quot;symbol&quot;===s.type&amp;&amp;(!s.minzoom||s.minzoom&lt;=l)&amp;&amp;(!s.maxzoom||s.maxzoom&gt;l)){if(this._inProgressLayer||(this._inProgressLayer=new Oe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ze.prototype.commit=function(t){return this.placement.commit(t),this.placement};var De=512/t.EXTENT/2,Re=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n&lt;e.length;n++){var i=e.get(n),a=i.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};Re.prototype.getScaledCoordinates=function(e,r){var n=r.canonical.z-this.tileID.canonical.z,i=De/Math.pow(2,n);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*i),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*i)}},Re.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z&lt;e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i&lt;t.length;i++){var a=t.get(i);if(!a.crossTileID){var o=this.indexedSymbolInstances[a.key];if(o)for(var s=this.getScaledCoordinates(a,e),l=0,c=o;l&lt;c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)&lt;=n&amp;&amp;Math.abs(u.coord.y-s.y)&lt;=n&amp;&amp;!r[u.crossTileID]){r[u.crossTileID]=!0,a.crossTileID=u.crossTileID;break}}}}};var Fe=function(){this.maxCrossTileID=0};Fe.prototype.generate=function(){return++this.maxCrossTileID};var Be=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Be.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},Be.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&amp;&amp;this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n&lt;e.symbolInstances.length;n++){e.symbolInstances.get(n).crossTileID=0}this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var a in this.indexes){var o=this.indexes[a];if(Number(a)&gt;t.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&amp;&amp;l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&amp;&amp;c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u&lt;e.symbolInstances.length;u++){var f=e.symbolInstances.get(u);f.crossTileID||(f.crossTileID=r.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&amp;&amp;(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Re(t,e.symbolInstances,e.bucketInstanceId),!0},Be.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n&lt;i.length;n+=1){var a=i[n];delete this.usedCrossTileIDs[t][a.crossTileID]}},Be.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Ne=function(){this.layerIndexes={},this.crossTileIDs=new Fe,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Ne.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&amp;&amp;(n=this.layerIndexes[t.id]=new Be);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.getBucket(t);c&amp;&amp;t.id===c.layerIds[0]&amp;&amp;(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&amp;&amp;(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&amp;&amp;(i=!0),i},Ne.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var je=function(e,r){return t.emitValidationErrors(e,r&amp;&amp;r.filter((function(t){return&quot;source.canvas&quot;!==t.identifier})))},Ue=t.pick(Ut,[&quot;addLayer&quot;,&quot;removeLayer&quot;,&quot;setPaintProperty&quot;,&quot;setLayoutProperty&quot;,&quot;setFilter&quot;,&quot;addSource&quot;,&quot;removeSource&quot;,&quot;setLayerZoomRange&quot;,&quot;setLight&quot;,&quot;setTransition&quot;,&quot;setGeoJSONSourceData&quot;]),Ve=t.pick(Ut,[&quot;setCenter&quot;,&quot;setZoom&quot;,&quot;setBearing&quot;,&quot;setPitch&quot;]),qe=function(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var i=t.styleSpec.$root[n];if(i.required){var a=null;null!=(a=&quot;version&quot;===n?r:&quot;array&quot;===i.type?[]:{})&amp;&amp;(e[n]=a)}}return e}(),He=function(e){function r(n,i){var a=this;void 0===i&amp;&amp;(i={}),e.call(this),this.map=n,this.dispatcher=new k(Bt(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new x(n._requestManager,i.localIdeographFontFamily),this.lineAtlas=new T(256,512),this.crossTileSymbolIndex=new Ne,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast(&quot;setReferrer&quot;,t.getReferrer());var o=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){var r={pluginStatus:e.pluginStatus,pluginURL:e.pluginURL};o.dispatcher.broadcast(&quot;syncRTLPluginState&quot;,r,(function(e,r){if((t.triggerPluginCompletionEvent(e),r)&amp;&amp;r.every((function(t){return t})))for(var n in o.sourceCaches)o.sourceCaches[n].reload()}))})),this.on(&quot;data&quot;,(function(t){if(&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&amp;&amp;r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&amp;&amp;a._validateLayer(i)}}}}))}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;}));var i=&quot;boolean&quot;==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&amp;&amp;n._load(r,i)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._load(qe,!1)},r.prototype._load=function(e,r){if(!r||!je(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=jt(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast(&quot;setLayers&quot;,this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;})),this.fire(new t.Event(&quot;style.load&quot;))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=function(e,r,n){var i,a,o,s=t.browser.devicePixelRatio&gt;1?&quot;@2x&quot;:&quot;&quot;,l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.json&quot;),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.png&quot;),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&amp;&amp;a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,h=l.y,p=l.sdf,d=l.pixelRatio,g=l.stretchX,m=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:h},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:d,sdf:p,stretchX:g,stretchY:m,content:v}}n(null,r)}}return{cancel:function(){l&amp;&amp;(l.cancel(),l=null),c&amp;&amp;(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast(&quot;setImages&quot;,r._availableImages),r.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(&quot;geojson&quot;===i.type||i.vectorLayerIds&amp;&amp;-1===i.vectorLayerIds.indexOf(n))&amp;&amp;this.fire(new t.ErrorEvent(new Error('Source layer &quot;'+n+'&quot; does not exist on source &quot;'+i.id+'&quot; as specified by style layer &quot;'+e.id+'&quot;')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r],a=this._layers[i];&quot;custom&quot;!==a.type&amp;&amp;e.push(a.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&amp;&amp;this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(&quot;Style is not done loading&quot;)},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(n.length||i.length)&amp;&amp;this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[a];&quot;reload&quot;===o?this._reloadSource(a):&quot;clear&quot;===o&amp;&amp;this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var c=0,u=this._order;c&lt;u.length;c+=1){var f=u[c],h=this._layers[f];h.recalculate(e,this._availableImages),!h.isHidden(e.zoom)&amp;&amp;h.source&amp;&amp;(this.sourceCaches[h.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&amp;&amp;this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies([&quot;icons&quot;,&quot;patterns&quot;],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(&quot;updateLayers&quot;,{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),je(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=jt(e.layers);var n=Zt(this.serialize(),e).filter((function(t){return!(t.command in Ve)}));if(0===n.length)return!1;var i=n.filter((function(t){return!(t.command in Ue)}));if(i.length&gt;0)throw new Error(&quot;Unimplemented: &quot;+i.map((function(t){return t.command})).join(&quot;, &quot;)+&quot;.&quot;);return n.forEach((function(t){&quot;setTransition&quot;!==t.command&amp;&amp;r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;An image with this name already exists.&quot;)));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;No image with this name exists.&quot;)));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&amp;&amp;(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(&quot;There is already a source with this ID&quot;);if(!r.type)throw new Error(&quot;The type property must be defined, but the only the following properties were given: &quot;+Object.keys(r).join(&quot;, &quot;)+&quot;.&quot;);if(!([&quot;vector&quot;,&quot;raster&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;].indexOf(r.type)&gt;=0)||!this._validate(t.validateStyle.source,&quot;sources.&quot;+e,r,null,n)){this.map&amp;&amp;this.map._collectResourceTiming&amp;&amp;(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Ct(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(&quot;There is no source with this ID&quot;);for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source &quot;'+e+'&quot; cannot be removed while layer &quot;'+r+'&quot; is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(&quot;data&quot;,{sourceDataType:&quot;metadata&quot;,dataType:&quot;source&quot;,sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&amp;&amp;n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&amp;&amp;this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+i+'&quot; already exists on this map')));else{var a;if(&quot;custom&quot;===e.type){if(je(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if(&quot;object&quot;==typeof e.source&amp;&amp;(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,&quot;layers.&quot;+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&amp;&amp;-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&amp;&amp;a.source&amp;&amp;&quot;custom&quot;!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=&quot;clear&quot;:(this._updatedSources[a.source]=&quot;reload&quot;,this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&amp;&amp;a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&amp;&amp;-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be moved.&quot;)))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&amp;&amp;r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be removed.&quot;)))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&amp;&amp;i.maxzoom===n||(null!=r&amp;&amp;(i.minzoom=r),null!=n&amp;&amp;(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot have zoom extent.&quot;)))},r.prototype.setFilter=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,&quot;layers.&quot;+i.id+&quot;.filter&quot;,r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be filtered.&quot;)))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style.&quot;)))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&amp;&amp;this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;&quot;geojson&quot;===o&amp;&amp;i?this.fire(new t.ErrorEvent(new Error(&quot;GeoJSON sources cannot have a sourceLayer parameter.&quot;))):&quot;vector&quot;!==o||i?(void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o=&quot;vector&quot;===a?e.sourceLayer:void 0;&quot;vector&quot;!==a||o?r&amp;&amp;&quot;string&quot;!=typeof e.id&amp;&amp;&quot;number&quot;!=typeof e.id?this.fire(new t.ErrorEvent(new Error(&quot;A feature id is requred to remove its specific state property.&quot;))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if(&quot;vector&quot;!==i.getSource().type||n)return void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+r+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&amp;&amp;this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&amp;&amp;!this._updatedSources[t.source]&amp;&amp;&quot;raster&quot;!==this.sourceCaches[t.source].getSource().type&amp;&amp;(this._updatedSources[t.source]=&quot;reload&quot;,this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return&quot;fill-extrusion&quot;===e._layers[t].type},n={},i=[],a=this._order.length-1;a&gt;=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s&lt;l.length;s+=1){var c=l[s][o];if(c)for(var u=0,f=c;u&lt;f.length;u+=1){var h=f[u];i.push(h)}}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var p=[],d=this._order.length-1;d&gt;=0;d--){var g=this._order[d];if(r(g))for(var m=i.length-1;m&gt;=0;m--){var v=i[m].feature;if(n[v.layer.id]&lt;d)break;p.push(v),i.pop()}else for(var y=0,x=t;y&lt;x.length;y+=1){var b=x[y][g];if(b)for(var _=0,w=b;_&lt;w.length;_+=1){var T=w[_];p.push(T.feature)}}}return p},r.prototype.queryRenderedFeatures=function(e,r,n){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;queryRenderedFeatures.filter&quot;,r.filter,null,r);var i={};if(r&amp;&amp;r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(&quot;parameters.layers must be an Array.&quot;))),[];for(var a=0,o=r.layers;a&lt;o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+s+&quot;' does not exist in the map's style and cannot be queried for features.&quot;))),[];i[l.source]=!0}}var c=[];for(var u in r.availableImages=this._availableImages,this.sourceCaches)r.layers&amp;&amp;!i[u]||c.push(F(this.sourceCaches[u],this._layers,this._serializedLayers,e,r,n));return this.placement&amp;&amp;c.push(function(t,e,r,n,i,a,o){for(var s={},l=a.queryRenderedSymbols(n),c=[],u=0,f=Object.keys(l).map(Number);u&lt;f.length;u+=1){var h=f[u];c.push(o[h])}c.sort(B);for(var p=function(){var r=g[d],n=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var a in n){var o=s[a]=s[a]||[],c=n[a];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var u=0,f=c;u&lt;f.length;u+=1){var h=f[u];o.push(h)}}},d=0,g=c;d&lt;g.length;d+=1)p();var m=function(e){s[e].forEach((function(n){var i=n.feature,a=t[e],o=r[a.source].getFeatureState(i.layer[&quot;source-layer&quot;],i.id);i.source=i.layer.source,i.layer[&quot;source-layer&quot;]&amp;&amp;(i.sourceLayer=i.layer[&quot;source-layer&quot;]),i.state=o}))};for(var v in s)m(v);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;querySourceFeatures.filter&quot;,r.filter,null,r);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],i={},a=0;a&lt;r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called &quot;'+t+'&quot; already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(&quot;loadWorkerSource&quot;,{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&amp;&amp;(r={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var a in e)if(!t.deepEqual(e[a],n[a])){i=!0;break}if(i){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return void 0===a&amp;&amp;(a={}),(!a||!1!==a.validate)&amp;&amp;je(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},i)))},r.prototype._remove=function(){for(var e in this._request&amp;&amp;(this._request.cancel(),this._request=null),this._spriteRequest&amp;&amp;(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off(&quot;pluginStateChange&quot;,this._rtlTextPluginCallback),this._layers){this._layers[e].setEventedParent(null)}for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,i,a){void 0===a&amp;&amp;(a=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c&lt;u.length;c+=1){var f=u[c],h=this._layers[f];if(&quot;symbol&quot;===h.type){if(!l[h.source]){var p=this.sourceCaches[h.source];l[h.source]=p.getRenderableIds(!0).map((function(t){return p.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var d=this.crossTileSymbolIndex.addLayer(h,l[h.source],e.center.lng);o=o||d}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&amp;&amp;!this.placement.stillRecent(t.browser.now(),e.zoom))&amp;&amp;(this.pauseablePlacement=new ze(e,this._order,a,r,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&amp;&amp;(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),o&amp;&amp;this.pauseablePlacement.placement.setStale()),s||o)for(var g=0,m=this._order;g&lt;m.length;g+=1){var v=m[g],y=this._layers[v];&quot;symbol&quot;===y.type&amp;&amp;this.placement.updateLayerOpacities(y,l[y.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&amp;&amp;n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);He.getSourceType=function(t){return D[t]},He.setSourceType=function(t,e){D[t]=e},He.registerForPluginStateChange=t.registerForPluginStateChange;var Ge=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2}]),Ye=yr(&quot;#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif&quot;,&quot;#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}&quot;),We=yr(&quot;uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Xe=yr(&quot;uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}&quot;),Ze=yr(&quot;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width &lt; 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}&quot;),Je=yr(&quot;void main() {gl_FragColor=vec4(1.0);}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Ke=yr(&quot;uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}&quot;),Qe=yr(&quot;uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}&quot;),$e=yr(&quot;varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {gl_FragColor*=.1;}}&quot;,&quot;attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}&quot;),tr=yr(&quot;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}&quot;,&quot;attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx &gt;=2.0)),mix(-1.0,1.0,float(vertexIdx &gt;=1.0 &amp;&amp; vertexIdx &lt;=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}&quot;),er=yr(&quot;uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}&quot;,&quot;attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}&quot;),rr=yr(&quot;#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),nr=yr(&quot;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ir=yr(&quot;uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ar=yr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}&quot;),or=yr(&quot;varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t &gt; 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}&quot;),sr=yr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t &gt; 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 &amp;&amp; normal.y==0.0 &amp;&amp; normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}&quot;),lr=yr(&quot;#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom &lt; 2.0 ? 0.4 : u_zoom &lt; 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}&quot;),cr=yr(&quot;uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y &gt; 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}&quot;),ur=yr(&quot;uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),fr=yr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),hr=yr(&quot;uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}&quot;),pr=yr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}&quot;),dr=yr(&quot;uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a &gt; 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a &gt; 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}&quot;),gr=yr(&quot;uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}&quot;),mr=yr(&quot;#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}&quot;),vr=yr(&quot;#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}&quot;);function yr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifdef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o=&quot;float&quot;===i?&quot;vec2&quot;:&quot;vec4&quot;,s=a.match(/color/)?&quot;color&quot;:o;return n[a]?&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;}))}}var xr=Object.freeze({__proto__:null,prelude:Ye,background:We,backgroundPattern:Xe,circle:Ze,clippingMask:Je,heatmap:Ke,heatmapTexture:Qe,collisionBox:$e,collisionCircle:tr,debug:er,fill:rr,fillOutline:nr,fillOutlinePattern:ir,fillPattern:ar,fillExtrusion:or,fillExtrusionPattern:sr,hillshadePrepare:lr,hillshade:cr,line:ur,lineGradient:fr,linePattern:hr,lineSDF:pr,raster:dr,symbolIcon:gr,symbolSDF:mr,symbolTextAndIcon:vr}),br=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};br.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&amp;&amp;c&lt;n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&amp;&amp;(l=!0);var u=!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==r||l||this.boundIndexBuffer!==i||this.boundVertexOffset!==a||this.boundDynamicVertexBuffer!==o||this.boundDynamicVertexBuffer2!==s;!t.extVertexArrayObject||u?this.freshBind(e,r,n,i,a,o,s):(t.bindVertexArrayOES.set(this.vao),o&amp;&amp;o.bind(),i&amp;&amp;i.dynamicDraw&amp;&amp;i.bind(),s&amp;&amp;s.bind())},br.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&amp;&amp;this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f&lt;s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h&lt;p.length;h+=1){p[h].enableAttributes(u,t)}a&amp;&amp;a.enableAttributes(u,t),o&amp;&amp;o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,g=r;d&lt;g.length;d+=1){var m=g[d];m.bind(),m.setVertexAttribPointers(u,t,i)}a&amp;&amp;(a.bind(),a.setVertexAttribPointers(u,t,i)),n&amp;&amp;n.bind(),o&amp;&amp;(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},br.prototype.destroy=function(){this.vao&amp;&amp;(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var _r=function(t,e,r,n,i){var a=t.gl;this.program=a.createProgram();var o=r?r.defines():[];i&amp;&amp;o.push(&quot;#define OVERDRAW_INSPECTOR;&quot;);var s=o.concat(Ye.fragmentSource,e.fragmentSource).join(&quot;\n&quot;),l=o.concat(Ye.vertexSource,e.vertexSource).join(&quot;\n&quot;),c=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(c,s),a.compileShader(c),a.attachShader(this.program,c);var u=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(u,l),a.compileShader(u),a.attachShader(this.program,u);for(var f=r?r.layoutAttributes:[],h=0;h&lt;f.length;h++)a.bindAttribLocation(this.program,h,f[h].name);a.linkProgram(this.program),a.deleteShader(u),a.deleteShader(c),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var p={},d=0;d&lt;this.numAttributes;d++){var g=a.getActiveAttrib(this.program,d);g&amp;&amp;(this.attributes[g.name]=a.getAttribLocation(this.program,g.name))}for(var m=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),v=0;v&lt;m;v++){var y=a.getActiveUniform(this.program,v);y&amp;&amp;(p[y.name]=a.getUniformLocation(this.program,y.name))}this.fixedUniforms=n(t,p),this.binderUniforms=r?r.getUniforms(t,p):[]}}};function wr(t,e,r){var n=1/pe(r,1,e.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(r.tileID.canonical.x+r.tileID.wrap*i),s=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o&gt;&gt;16,s&gt;&gt;16],u_pixel_coord_lower:[65535&amp;o,65535&amp;s]}}_r.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&amp;&amp;p.setUniforms(t,this.binderUniforms,f,{zoom:h});for(var x=(m={},m[v.LINES]=2,m[v.TRIANGLES]=3,m[v.LINE_STRIP]=1,m)[e],b=0,_=u.get();b&lt;_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new br)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,w.vertexOffset,d,g),v.drawElements(e,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var Tr=function(e,r,n,i){var a=r.style.light,o=a.properties.get(&quot;position&quot;),s=[o.x,o.y,o.z],l=t.create$1();&quot;viewport&quot;===a.properties.get(&quot;anchor&quot;)&amp;&amp;t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get(&quot;color&quot;);return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get(&quot;intensity&quot;),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},kr=function(e,r,n,i,a,o,s){return t.extend(Tr(e,r,n,i),wr(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},Ar=function(t){return{u_matrix:t}},Mr=function(e,r,n,i){return t.extend(Ar(e),wr(n,r,i))},Sr=function(t,e){return{u_matrix:t,u_world:e}},Er=function(e,r,n,i,a){return t.extend(Mr(e,r,n,i),{u_world:a})},Lr=function(e,r,n,i){var a,o,s=e.transform;if(&quot;map&quot;===i.paint.get(&quot;circle-pitch-alignment&quot;)){var l=pe(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+(&quot;map&quot;===i.paint.get(&quot;circle-pitch-scale&quot;)),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get(&quot;circle-translate&quot;),i.paint.get(&quot;circle-translate-anchor&quot;)),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},Cr=function(t,e,r){var n=pe(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},Pr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Ir=function(t,e,r){return void 0===r&amp;&amp;(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Or=function(t){return{u_matrix:t}},zr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:pe(e,1,r),u_intensity:n}};function Dr(e,r){var n=Math.pow(2,r.canonical.z),i=r.canonical.y;return[new t.MercatorCoordinate(0,i/n).toLngLat().lat,new t.MercatorCoordinate(0,(i+1)/n).toLngLat().lat]}var Rr=function(e,r,n){var i=e.transform;return{u_matrix:Ur(e,r,n),u_ratio:1/pe(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Fr=function(e,r,n){return t.extend(Rr(e,r,n),{u_image:0})},Br=function(e,r,n,i){var a=e.transform,o=jr(r,a);return{u_matrix:Ur(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/pe(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Nr=function(e,r,n,i,a){var o=e.transform,s=e.lineAtlas,l=jr(r,o),c=&quot;round&quot;===n.layout.get(&quot;line-cap&quot;),u=s.getDash(i.from,c),f=s.getDash(i.to,c),h=u.width*a.fromScale,p=f.width*a.toScale;return t.extend(Rr(e,r,n),{u_patternscale_a:[l/h,-u.height/2],u_patternscale_b:[l/p,-f.height/2],u_sdfgamma:s.width/(256*Math.min(h,p)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:f.y,u_mix:a.t})};function jr(t,e){return 1/pe(t,1,e.tileZoom)}function Ur(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get(&quot;line-translate&quot;),r.paint.get(&quot;line-translate-anchor&quot;))}var Vr=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get(&quot;raster-opacity&quot;),u_image0:0,u_image1:1,u_brightness_low:i.paint.get(&quot;raster-brightness-min&quot;),u_brightness_high:i.paint.get(&quot;raster-brightness-max&quot;),u_saturation_factor:(o=i.paint.get(&quot;raster-saturation&quot;),o&gt;0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get(&quot;raster-contrast&quot;),a&gt;0?1/(1-a):1+a),u_spin_weights:qr(i.paint.get(&quot;raster-hue-rotate&quot;))};var a,o};function qr(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var Hr,Gr=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+(&quot;constant&quot;===t||&quot;source&quot;===t),u_is_size_feature_constant:+(&quot;constant&quot;===t||&quot;camera&quot;===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Yr=function(e,r,n,i,a,o,s,l,c,u,f){var h=a.transform;return t.extend(Gr(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},Wr=function(e,r,n,i,a,o,s,l,c,u){return t.extend(Yr(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Xr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Zr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/pe(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f&gt;&gt;16,h&gt;&gt;16],u_pixel_coord_lower:[65535&amp;f,65535&amp;h]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},Jr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Kr(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram(&quot;collisionBox&quot;),f=[],h=0,p=0,d=0;d&lt;i.length;d++){var g=i[d],m=r.getTile(g),v=m.getBucket(n);if(v){var y=g.posMatrix;0===a[0]&amp;&amp;0===a[1]||(y=e.translatePosMatrix(g.posMatrix,m,a,o));var x=s?v.textCollisionBox:v.iconCollisionBox,b=v.collisionCircleArray;if(b.length&gt;0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:b,circleOffset:p,transform:w,invTransform:_}),p=h+=b.length/4}x&amp;&amp;u.draw(l,c.LINES,At.disabled,Mt.disabled,e.colorModeForRenderPass(),Et.disabled,Cr(y,e.transform,m),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&amp;&amp;f.length){var T=e.useProgram(&quot;collisionCircle&quot;),k=new t.StructArrayLayout2f1f2i16;k.resize(4*h),k._trim();for(var A=0,M=0,S=f;M&lt;S.length;M+=1)for(var E=S[M],L=0;L&lt;E.circleArray.length/4;L++){var C=4*L,P=E.circleArray[C+0],I=E.circleArray[C+1],O=E.circleArray[C+2],z=E.circleArray[C+3];k.emplace(A++,P,I,O,z,0),k.emplace(A++,P,I,O,z,1),k.emplace(A++,P,I,O,z,2),k.emplace(A++,P,I,O,z,3)}(!Hr||Hr.length&lt;2*h)&amp;&amp;(Hr=function(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var i=0;i&lt;r;i++){var a=6*i;n.uint16[a+0]=4*i+0,n.uint16[a+1]=4*i+1,n.uint16[a+2]=4*i+2,n.uint16[a+3]=4*i+2,n.uint16[a+4]=4*i+3,n.uint16[a+5]=4*i+0}return n}(h));for(var D=l.createIndexBuffer(Hr,!0),R=l.createVertexBuffer(k,t.collisionCircleLayout.members,!0),F=0,B=f;F&lt;B.length;F+=1){var N=B[F],j=Pr(N.transform,N.invTransform,e.transform);T.draw(l,c.TRIANGLES,At.disabled,Mt.disabled,e.colorModeForRenderPass(),Et.disabled,j,n.id,R,D,t.SegmentVector.simpleSegment(0,2*N.circleOffset,N.circleArray.length,N.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),D.destroy()}}var Qr=t.identity(new Float32Array(16));function $r(e,r,n,i,a,o){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,u=t.evaluateVariableOffset(e,i);return new t.Point((l/a+u[0])*o,(c/a+u[1])*o)}function tn(e,r,n,i,a,o,s,l,c,u,f){var h=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,g={};p.clear();for(var m=0;m&lt;h.length;m++){var v=h.get(m),y=e.allowVerticalPlacement&amp;&amp;!v.placedOrientation,x=v.hidden||!v.crossTileID||y?null:i[v.crossTileID];if(x){var b=new t.Point(v.anchorX,v.anchorY),_=te(b,n?l:s),w=ee(o.cameraToCenterDistance,_.signedDistanceFromCamera),T=a.evaluateSizeForFeature(e.textSizeData,u,v)*w/t.ONE_EM;n&amp;&amp;(T*=e.tilePixelRatio/c);for(var k=x.width,A=x.height,M=$r(x.anchor,k,A,x.textOffset,x.textBoxScale,T),S=n?te(b.add(M),s).point:_.point.add(r?M.rotate(-o.angle):M),E=e.allowVerticalPlacement&amp;&amp;v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,L=0;L&lt;v.numGlyphs;L++)t.addDynamicAttributes(p,S,E);f&amp;&amp;v.associatedIconIndex&gt;=0&amp;&amp;(g[v.associatedIconIndex]={shiftedAnchor:S,angle:E})}else ue(v.numGlyphs,p)}if(f){d.clear();for(var C=e.icon.placedSymbolArray,P=0;P&lt;C.length;P++){var I=C.get(P);if(I.hidden)ue(I.numGlyphs,d);else{var O=g[P];if(O)for(var z=0;z&lt;I.numGlyphs;z++)t.addDynamicAttributes(d,O.shiftedAnchor,O.angle);else ue(I.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(p)}function en(t,e,r){return r.iconsInText&amp;&amp;e?&quot;symbolTextAndIcon&quot;:t?&quot;symbolSDF&quot;:&quot;symbolIcon&quot;}function rn(e,r,n,i,a,o,s,l,c,u,f,h){for(var p=e.context,d=p.gl,g=e.transform,m=&quot;map&quot;===l,v=&quot;map&quot;===c,y=m&amp;&amp;&quot;point&quot;!==n.layout.get(&quot;symbol-placement&quot;),x=m&amp;&amp;!v&amp;&amp;!y,b=void 0!==n.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),_=e.depthModeForSublayer(0,At.ReadOnly),w=n.layout.get(&quot;text-variable-anchor&quot;),T=[],k=0,A=i;k&lt;A.length;k+=1){var M=A[k],S=r.getTile(M),E=S.getBucket(n);if(E){var L=a?E.text:E.icon;if(L&amp;&amp;L.segments.get().length){var C=L.programConfigurations.get(n.id),P=a||E.sdfIcons,I=a?E.textSizeData:E.iconSizeData,O=v||0!==g.pitch,z=e.useProgram(en(P,a,E),C),D=t.evaluateSizeForZoom(I,g.zoom),R=void 0,F=[0,0],B=void 0,N=void 0,j=null,U=void 0;if(a){if(B=S.glyphAtlasTexture,N=d.LINEAR,R=S.glyphAtlasTexture.size,E.iconsInText){F=S.imageAtlasTexture.size,j=S.imageAtlasTexture;var V=&quot;composite&quot;===I.kind||&quot;camera&quot;===I.kind;U=O||e.options.rotating||e.options.zooming||V?d.LINEAR:d.NEAREST}}else{var q=1!==n.layout.get(&quot;icon-size&quot;).constantOr(0)||E.iconsNeedLinear;B=S.imageAtlasTexture,N=P||e.options.rotating||e.options.zooming||q||O?d.LINEAR:d.NEAREST,R=S.imageAtlasTexture.size}var H=pe(S,1,e.transform.zoom),G=Qt(M.posMatrix,v,m,e.transform,H),Y=$t(M.posMatrix,v,m,e.transform,H),W=w&amp;&amp;E.hasTextData(),X=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;W&amp;&amp;E.hasIconData();y&amp;&amp;ne(E,M.posMatrix,e,a,G,Y,v,u);var Z=e.translatePosMatrix(M.posMatrix,S,o,s),J=y||a&amp;&amp;w||X?Qr:G,K=e.translatePosMatrix(Y,S,o,s,!0),Q=P&amp;&amp;0!==n.paint.get(a?&quot;text-halo-width&quot;:&quot;icon-halo-width&quot;).constantOr(1),$={program:z,buffers:L,uniformValues:P?E.iconsInText?Wr(I.kind,D,x,v,e,Z,J,K,R,F):Yr(I.kind,D,x,v,e,Z,J,K,a,R,!0):Gr(I.kind,D,x,v,e,Z,J,K,a,R),atlasTexture:B,atlasTextureIcon:j,atlasInterpolation:N,atlasInterpolationIcon:U,isSDF:P,hasHalo:Q};if(b)for(var tt=0,et=L.segments.get();tt&lt;et.length;tt+=1){var rt=et[tt];T.push({segments:new t.SegmentVector([rt]),sortKey:rt.sortKey,state:$})}else T.push({segments:L.segments,sortKey:0,state:$})}}}b&amp;&amp;T.sort((function(t,e){return t.sortKey-e.sortKey}));for(var nt=0,it=T;nt&lt;it.length;nt+=1){var at=it[nt],ot=at.state;if(p.activeTexture.set(d.TEXTURE0),ot.atlasTexture.bind(ot.atlasInterpolation,d.CLAMP_TO_EDGE),ot.atlasTextureIcon&amp;&amp;(p.activeTexture.set(d.TEXTURE1),ot.atlasTextureIcon&amp;&amp;ot.atlasTextureIcon.bind(ot.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),ot.isSDF){var st=ot.uniformValues;ot.hasHalo&amp;&amp;(st.u_is_halo=1,nn(ot.buffers,at.segments,n,e,ot.program,_,f,h,st)),st.u_is_halo=0}nn(ot.buffers,at.segments,n,e,ot.program,_,f,h,ot.uniformValues)}}function nn(t,e,r,n,i,a,o,s,l){var c=n.context,u=c.gl;i.draw(c,u.TRIANGLES,a,o,s,Et.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function an(t,e,r,n,i,a,o){var s,l,c,u,f,h=t.context.gl,p=r.paint.get(&quot;fill-pattern&quot;),d=p&amp;&amp;p.constantOr(1),g=r.getCrossfadeParameters();o?(l=d&amp;&amp;!r.getPaintProperty(&quot;fill-outline-color&quot;)?&quot;fillOutlinePattern&quot;:&quot;fillOutline&quot;,s=h.LINES):(l=d?&quot;fillPattern&quot;:&quot;fill&quot;,s=h.TRIANGLES);for(var m=0,v=n;m&lt;v.length;m+=1){var y=v[m],x=e.getTile(y);if(!d||x.patternsLoaded()){var b=x.getBucket(r);if(b){var _=b.programConfigurations.get(r.id),w=t.useProgram(l,_);d&amp;&amp;(t.context.activeTexture.set(h.TEXTURE0),x.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),_.updatePaintBuffers(g));var T=p.constantOr(null);if(T&amp;&amp;x.imageAtlas){var k=x.imageAtlas,A=k.patternPositions[T.to.toString()],M=k.patternPositions[T.from.toString()];A&amp;&amp;M&amp;&amp;_.setConstantPatternPositions(A,M)}var S=t.translatePosMatrix(y.posMatrix,x,r.paint.get(&quot;fill-translate&quot;),r.paint.get(&quot;fill-translate-anchor&quot;));if(o){u=b.indexBuffer2,f=b.segments2;var E=[h.drawingBufferWidth,h.drawingBufferHeight];c=&quot;fillOutlinePattern&quot;===l&amp;&amp;d?Er(S,t,g,x,E):Sr(S,E)}else u=b.indexBuffer,f=b.segments,c=d?Mr(S,t,g,x):Ar(S);w.draw(t.context,s,i,t.stencilModeForClipping(y),a,Et.disabled,c,r.id,b.layoutVertexBuffer,u,f,r.paint,t.transform.zoom,_)}}}}function on(t,e,r,n,i,a,o){for(var s=t.context,l=s.gl,c=r.paint.get(&quot;fill-extrusion-pattern&quot;),u=c.constantOr(1),f=r.getCrossfadeParameters(),h=r.paint.get(&quot;fill-extrusion-opacity&quot;),p=0,d=n;p&lt;d.length;p+=1){var g=d[p],m=e.getTile(g),v=m.getBucket(r);if(v){var y=v.programConfigurations.get(r.id),x=t.useProgram(u?&quot;fillExtrusionPattern&quot;:&quot;fillExtrusion&quot;,y);u&amp;&amp;(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var b=c.constantOr(null);if(b&amp;&amp;m.imageAtlas){var _=m.imageAtlas,w=_.patternPositions[b.to.toString()],T=_.patternPositions[b.from.toString()];w&amp;&amp;T&amp;&amp;y.setConstantPatternPositions(w,T)}var k=t.translatePosMatrix(g.posMatrix,m,r.paint.get(&quot;fill-extrusion-translate&quot;),r.paint.get(&quot;fill-extrusion-translate-anchor&quot;)),A=r.paint.get(&quot;fill-extrusion-vertical-gradient&quot;),M=u?kr(k,t,A,h,g,f,m):Tr(k,t,A,h);x.draw(s,s.gl.TRIANGLES,i,a,o,Et.backCCW,M,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,y)}}}function sn(t,e,r,n,i,a){var o=t.context,s=o.gl,l=e.fbo;if(l){var c=t.useProgram(&quot;hillshade&quot;);o.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var u=function(t,e,r){var n=r.paint.get(&quot;hillshade-shadow-color&quot;),i=r.paint.get(&quot;hillshade-highlight-color&quot;),a=r.paint.get(&quot;hillshade-accent-color&quot;),o=r.paint.get(&quot;hillshade-illumination-direction&quot;)*(Math.PI/180);&quot;viewport&quot;===r.paint.get(&quot;hillshade-illumination-anchor&quot;)&amp;&amp;(o-=t.transform.angle);var s=!t.options.moving;return{u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped(),s),u_image:0,u_latrange:Dr(t,e.tileID),u_light:[r.paint.get(&quot;hillshade-exaggeration&quot;),o],u_shadow:n,u_highlight:i,u_accent:a}}(t,e,r);c.draw(o,s.TRIANGLES,n,i,a,Et.disabled,u,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function ln(e,r,n,i,a,o,s){var l=e.context,c=l.gl,u=r.dem;if(u&amp;&amp;u.data){var f=u.dim,h=u.stride,p=u.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(h),r.demTexture){var d=r.demTexture;d.update(p,{premultiply:!1}),d.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,p,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);var g=r.fbo;if(!g){var m=new t.Texture(l,{width:f,height:f,data:null},c.RGBA);m.bind(c.LINEAR,c.CLAMP_TO_EDGE),(g=r.fbo=l.createFramebuffer(f,f,!0)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(g.framebuffer),l.viewport.set([0,0,f,f]),e.useProgram(&quot;hillshadePrepare&quot;).draw(l,c.TRIANGLES,a,o,s,Et.disabled,function(e,r,n){var i=r.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}}(r.tileID,u,i),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function cn(e,r,n,i,a){var o=i.paint.get(&quot;raster-fade-duration&quot;);if(o&gt;0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-f)&gt;Math.abs(e.tileID.overscaledZ-f),p=h&amp;&amp;e.refreshedUponExpiration?1:t.clamp(h?l:1-c,0,1);return e.refreshedUponExpiration&amp;&amp;l&gt;=1&amp;&amp;(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var un=new t.Color(1,0,0,1),fn=new t.Color(0,1,0,1),hn=new t.Color(0,0,1,1),pn=new t.Color(1,0,1,1),dn=new t.Color(0,1,1,1);function gn(t){var e=t.transform.padding;mn(t,t.transform.height-(e.top||0),3,un),mn(t,e.bottom||0,3,fn),vn(t,e.left||0,3,hn),vn(t,t.transform.width-(e.right||0),3,pn);var r=t.transform.centerPoint;!function(t,e,r,n){yn(t,e-1,r-10,2,20,n),yn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,dn)}function mn(t,e,r,n){yn(t,0,e+r/2,t.transform.width,r,n)}function vn(t,e,r,n){yn(t,e-r/2,0,r,t.transform.height,n)}function yn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function xn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram(&quot;debug&quot;),l=At.disabled,c=Mt.disabled,u=e.colorModeForRenderPass();i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Et.disabled,Ir(o,t.Color.red),&quot;$debug&quot;,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,h=f&amp;&amp;f.byteLength||0,p=Math.floor(h/1024),d=r.getTile(n).tileSize,g=512/Math.min(d,512)*(n.overscaledZ/e.transform.zoom)*.5,m=n.canonical.toString();n.overscaledZ!==n.canonical.z&amp;&amp;(m+=&quot; =&gt; &quot;+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext(&quot;2d&quot;);i.clearRect(0,0,r.width,r.height),i.shadowColor=&quot;white&quot;,i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle=&quot;white&quot;,i.textBaseline=&quot;top&quot;,i.font=&quot;bold 36px Open Sans, sans-serif&quot;,i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,m+&quot; &quot;+p+&quot;kb&quot;),s.draw(i,a.TRIANGLES,l,c,St.alphaBlended,Et.disabled,Ir(o,t.Color.transparent,g),&quot;$debug&quot;,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var bn={symbol:function(e,r,n,i,a){if(&quot;translucent&quot;===e.renderPass){var o=Mt.disabled,s=e.colorModeForRenderPass();n.layout.get(&quot;text-variable-anchor&quot;)&amp;&amp;function(e,r,n,i,a,o,s){for(var l=r.transform,c=&quot;map&quot;===a,u=&quot;map&quot;===o,f=0,h=e;f&lt;h.length;f+=1){var p=h[f],d=i.getTile(p),g=d.getBucket(n);if(g&amp;&amp;g.text&amp;&amp;g.text.segments.get().length){var m=g.textSizeData,v=t.evaluateSizeForZoom(m,l.zoom),y=pe(d,1,r.transform.zoom),x=Qt(p.posMatrix,u,c,r.transform,y),b=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;g.hasIconData();if(v){var _=Math.pow(2,l.zoom-d.tileID.overscaledZ);tn(g,c,u,s,t.symbolSize,l,x,p.posMatrix,_,v,b)}}}}(i,e,n,r,n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),a),0!==n.paint.get(&quot;icon-opacity&quot;).constantOr(1)&amp;&amp;rn(e,r,n,i,!1,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),n.layout.get(&quot;icon-rotation-alignment&quot;),n.layout.get(&quot;icon-pitch-alignment&quot;),n.layout.get(&quot;icon-keep-upright&quot;),o,s),0!==n.paint.get(&quot;text-opacity&quot;).constantOr(1)&amp;&amp;rn(e,r,n,i,!0,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),n.layout.get(&quot;text-keep-upright&quot;),o,s),r.map.showCollisionBoxes&amp;&amp;(Kr(e,r,n,i,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),!0),Kr(e,r,n,i,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),!1))}},circle:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;circle-opacity&quot;),o=n.paint.get(&quot;circle-stroke-width&quot;),s=n.paint.get(&quot;circle-stroke-opacity&quot;),l=void 0!==n.layout.get(&quot;circle-sort-key&quot;).constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&amp;&amp;0!==s.constantOr(1)){for(var c=e.context,u=c.gl,f=e.depthModeForSublayer(0,At.ReadOnly),h=Mt.disabled,p=e.colorModeForRenderPass(),d=[],g=0;g&lt;i.length;g++){var m=i[g],v=r.getTile(m),y=v.getBucket(n);if(y){var x=y.programConfigurations.get(n.id),b={programConfiguration:x,program:e.useProgram(&quot;circle&quot;,x),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Lr(e,m,v,n)};if(l)for(var _=0,w=y.segments.get();_&lt;w.length;_+=1){var T=w[_];d.push({segments:new t.SegmentVector([T]),sortKey:T.sortKey,state:b})}else d.push({segments:y.segments,sortKey:0,state:b})}}l&amp;&amp;d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var k=0,A=d;k&lt;A.length;k+=1){var M=A[k],S=M.state,E=S.programConfiguration,L=S.program,C=S.layoutVertexBuffer,P=S.indexBuffer,I=S.uniformValues,O=M.segments;L.draw(c,u.TRIANGLES,f,h,p,Et.disabled,I,n.id,C,P,O,n.paint,e.transform.zoom,E)}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(&quot;heatmap-opacity&quot;))if(&quot;offscreen&quot;===e.renderPass){var a=e.context,o=a.gl,s=Mt.disabled,l=new St([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,r,n){var i=t.gl,a=t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,a,null),n.colorAttachment.set(r)}(t,e,a,i)}}(a,e,n),a.clear({color:t.Color.transparent});for(var c=0;c&lt;i.length;c++){var u=i[c];if(!r.hasRenderableParent(u)){var f=r.getTile(u),h=f.getBucket(n);if(h){var p=h.programConfigurations.get(n.id),d=e.useProgram(&quot;heatmap&quot;,p),g=e.transform.zoom;d.draw(a,o.TRIANGLES,At.disabled,s,l,Et.disabled,zr(u.posMatrix,f,g,n.paint.get(&quot;heatmap-intensity&quot;)),n.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,n.paint,e.transform.zoom,p)}}}a.viewport.set([0,0,e.width,e.height])}else&quot;translucent&quot;===e.renderPass&amp;&amp;(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(!a)return;n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new t.Texture(n,r.colorRamp,i.RGBA));o.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram(&quot;heatmapTexture&quot;).draw(n,i.TRIANGLES,At.disabled,Mt.disabled,e.colorModeForRenderPass(),Et.disabled,function(e,r,n,i){var a=t.create();t.ortho(a,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:n,u_color_ramp:i,u_opacity:r.paint.get(&quot;heatmap-opacity&quot;)}}(e,r,0,1),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}(e,n))},line:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;line-opacity&quot;),o=n.paint.get(&quot;line-width&quot;);if(0!==a.constantOr(1)&amp;&amp;0!==o.constantOr(1)){var s=e.depthModeForSublayer(0,At.ReadOnly),l=e.colorModeForRenderPass(),c=n.paint.get(&quot;line-dasharray&quot;),u=n.paint.get(&quot;line-pattern&quot;),f=u.constantOr(1),h=n.paint.get(&quot;line-gradient&quot;),p=n.getCrossfadeParameters(),d=f?&quot;linePattern&quot;:c?&quot;lineSDF&quot;:h?&quot;lineGradient&quot;:&quot;line&quot;,g=e.context,m=g.gl,v=!0;if(h){g.activeTexture.set(m.TEXTURE0);var y=n.gradientTexture;if(!n.gradient)return;y||(y=n.gradientTexture=new t.Texture(g,n.gradient,m.RGBA)),y.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var x=0,b=i;x&lt;b.length;x+=1){var _=b[x],w=r.getTile(_);if(!f||w.patternsLoaded()){var T=w.getBucket(n);if(T){var k=T.programConfigurations.get(n.id),A=e.context.program.get(),M=e.useProgram(d,k),S=v||M.program!==A,E=u.constantOr(null);if(E&amp;&amp;w.imageAtlas){var L=w.imageAtlas,C=L.patternPositions[E.to.toString()],P=L.patternPositions[E.from.toString()];C&amp;&amp;P&amp;&amp;k.setConstantPatternPositions(C,P)}var I=f?Br(e,w,n,p):c?Nr(e,w,n,c,p):h?Fr(e,w,n):Rr(e,w,n);f?(g.activeTexture.set(m.TEXTURE0),w.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),k.updatePaintBuffers(p)):c&amp;&amp;(S||e.lineAtlas.dirty)&amp;&amp;(g.activeTexture.set(m.TEXTURE0),e.lineAtlas.bind(g)),M.draw(g,m.TRIANGLES,s,e.stencilModeForClipping(_),l,Et.disabled,I,n.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,n.paint,e.transform.zoom,k),v=!1}}}}}},fill:function(e,r,n,i){var a=n.paint.get(&quot;fill-color&quot;),o=n.paint.get(&quot;fill-opacity&quot;);if(0!==o.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get(&quot;fill-pattern&quot;),c=e.opaquePassEnabledForLayer()&amp;&amp;!l.constantOr(1)&amp;&amp;1===a.constantOr(t.Color.transparent).a&amp;&amp;1===o.constantOr(0)?&quot;opaque&quot;:&quot;translucent&quot;;if(e.renderPass===c){var u=e.depthModeForSublayer(1,&quot;opaque&quot;===e.renderPass?At.ReadWrite:At.ReadOnly);an(e,r,n,i,u,s,!1)}if(&quot;translucent&quot;===e.renderPass&amp;&amp;n.paint.get(&quot;fill-antialias&quot;)){var f=e.depthModeForSublayer(n.getPaintProperty(&quot;fill-outline-color&quot;)?2:0,At.ReadOnly);an(e,r,n,i,f,s,!0)}}},&quot;fill-extrusion&quot;:function(t,e,r,n){var i=r.paint.get(&quot;fill-extrusion-opacity&quot;);if(0!==i&amp;&amp;&quot;translucent&quot;===t.renderPass){var a=new At(t.context.gl.LEQUAL,At.ReadWrite,t.depthRangeFor3D);if(1!==i||r.paint.get(&quot;fill-extrusion-pattern&quot;).constantOr(1))on(t,e,r,n,a,Mt.disabled,St.disabled),on(t,e,r,n,a,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var o=t.colorModeForRenderPass();on(t,e,r,n,a,Mt.disabled,o)}}},hillshade:function(t,e,r,n){if(&quot;offscreen&quot;===t.renderPass||&quot;translucent&quot;===t.renderPass){for(var i=t.context,a=e.getSource().maxzoom,o=t.depthModeForSublayer(0,At.ReadOnly),s=t.colorModeForRenderPass(),l=&quot;translucent&quot;===t.renderPass?t.stencilConfigForOverlap(n):[{},n],c=l[0],u=0,f=l[1];u&lt;f.length;u+=1){var h=f[u],p=e.getTile(h);p.needsHillshadePrepare&amp;&amp;&quot;offscreen&quot;===t.renderPass?ln(t,p,r,a,o,Mt.disabled,s):&quot;translucent&quot;===t.renderPass&amp;&amp;sn(t,p,r,o,c[h.overscaledZ],s)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(&quot;translucent&quot;===t.renderPass&amp;&amp;0!==r.paint.get(&quot;raster-opacity&quot;)&amp;&amp;n.length)for(var i=t.context,a=i.gl,o=e.getSource(),s=t.useProgram(&quot;raster&quot;),l=t.colorModeForRenderPass(),c=o instanceof I?[{},n]:t.stencilConfigForOverlap(n),u=c[0],f=c[1],h=f[f.length-1].overscaledZ,p=!t.options.moving,d=0,g=f;d&lt;g.length;d+=1){var m=g[d],v=t.depthModeForSublayer(m.overscaledZ-h,1===r.paint.get(&quot;raster-opacity&quot;)?At.ReadWrite:At.ReadOnly,a.LESS),y=e.getTile(m),x=t.transform.calculatePosMatrix(m.toUnwrapped(),p);y.registerFadeDuration(r.paint.get(&quot;raster-fade-duration&quot;));var b=e.findLoadedParent(m,0),_=cn(y,b,e,r,t.transform),w=void 0,T=void 0,k=&quot;nearest&quot;===r.paint.get(&quot;raster-resampling&quot;)?a.NEAREST:a.LINEAR;i.activeTexture.set(a.TEXTURE0),y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(a.TEXTURE1),b?(b.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,b.tileID.overscaledZ-y.tileID.overscaledZ),T=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);var A=Vr(x,T||[0,0],w||1,_,r);o instanceof I?s.draw(i,a.TRIANGLES,v,Mt.disabled,l,Et.disabled,A,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,v,u[m.overscaledZ],l,Et.disabled,A,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var n=r.paint.get(&quot;background-color&quot;),i=r.paint.get(&quot;background-opacity&quot;);if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(&quot;background-pattern&quot;);if(!t.isPatternMissing(c)){var u=!c&amp;&amp;1===n.a&amp;&amp;1===i&amp;&amp;t.opaquePassEnabledForLayer()?&quot;opaque&quot;:&quot;translucent&quot;;if(t.renderPass===u){var f=Mt.disabled,h=t.depthModeForSublayer(0,&quot;opaque&quot;===u?At.ReadWrite:At.ReadOnly),p=t.colorModeForRenderPass(),d=t.useProgram(c?&quot;backgroundPattern&quot;:&quot;background&quot;),g=s.coveringTiles({tileSize:l});c&amp;&amp;(a.activeTexture.set(o.TEXTURE0),t.imageManager.bind(t.context));for(var m=r.getCrossfadeParameters(),v=0,y=g;v&lt;y.length;v+=1){var x=y[v],b=t.transform.calculatePosMatrix(x.toUnwrapped()),_=c?Zr(b,i,t,c,{tileID:x,tileSize:l},m):Xr(b,i,n);d.draw(a,o.TRIANGLES,h,f,p,Et.disabled,_,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var n=0;n&lt;r.length;n++)xn(t,e,r[n])},custom:function(t,e,r){var n=t.context,i=r.implementation;if(&quot;offscreen&quot;===t.renderPass){var a=i.prerender;a&amp;&amp;(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),a.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if(&quot;translucent&quot;===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(Mt.disabled);var o=&quot;3d&quot;===i.renderingMode?new At(t.context.gl.LEQUAL,At.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,At.ReadOnly);n.setDepthMode(o),i.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}},_n=function(t,e){this.context=new Lt(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Ct.maxUnderzooming+Ct.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Ne,this.gpuTimers={}};_n.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n&lt;i.length;n+=1){var a=i[n];this.style._layers[a].resize()}},_n.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,Ge.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,Ge.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,P.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,Ge.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new Mt({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},_n.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram(&quot;clippingMask&quot;).draw(e,r.TRIANGLES,At.disabled,this.stencilClearMode,St.disabled,Et.disabled,Or(n),&quot;$clipping&quot;,this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},_n.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&amp;&amp;t.isTileClipped()&amp;&amp;e&amp;&amp;e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length&gt;256&amp;&amp;this.clearStencil(),r.setColorMode(St.disabled),r.setDepthMode(At.disabled);var i=this.useProgram(&quot;clippingMask&quot;);this._tileClippingMaskIDs={};for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(r,n.TRIANGLES,At.disabled,new Mt({func:n.ALWAYS,mask:0},l,255,n.KEEP,n.KEEP,n.REPLACE),St.disabled,Et.disabled,Or(s.posMatrix),&quot;$clipping&quot;,this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},_n.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1&gt;256&amp;&amp;this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Mt({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},_n.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Mt({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},_n.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a&gt;1){this.currentStencilSource=void 0,this.nextStencilID+a&gt;256&amp;&amp;this.clearStencil();for(var o={},s=0;s&lt;a;s++)o[s+i]=new Mt({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=a,[o,n]}return[(e={},e[i]=Mt.disabled,e),n]},_n.prototype.colorModeForRenderPass=function(){var e=this.context.gl;if(this._showOverdrawInspector){return new St([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0])}return&quot;opaque&quot;===this.renderPass?St.unblended:St.alphaBlended},_n.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return At.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new At(r||this.context.gl.LEQUAL,e,[n,n])},_n.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer&lt;this.opaquePassCutoff},_n.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,a=this.style.sourceCaches;for(var o in a){var s=a[o];s.used&amp;&amp;s.prepare(this.context)}var l,c,u={},f={},h={};for(var p in a){var d=a[p];u[p]=d.getVisibleCoordinates(),f[p]=u[p].slice().reverse(),h[p]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var g=0;g&lt;i.length;g++){var m=i[g];if(this.style._layers[m].is3D()){this.opaquePassCutoff=g;break}}this.renderPass=&quot;offscreen&quot;;for(var v=0,y=i;v&lt;y.length;v+=1){var x=y[v],b=this.style._layers[x];if(b.hasOffscreenPass()&amp;&amp;!b.isHidden(this.transform.zoom)){var _=f[b.source];(&quot;custom&quot;===b.type||_.length)&amp;&amp;this.renderLayer(this,a[b.source],b,_)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass=&quot;opaque&quot;,this.currentLayer=i.length-1;this.currentLayer&gt;=0;this.currentLayer--){var w=this.style._layers[i[this.currentLayer]],T=a[w.source],k=u[w.source];this._renderTileClippingMasks(w,k),this.renderLayer(this,T,w,k)}for(this.renderPass=&quot;translucent&quot;,this.currentLayer=0;this.currentLayer&lt;i.length;this.currentLayer++){var A=this.style._layers[i[this.currentLayer]],M=a[A.source],S=(&quot;symbol&quot;===A.type?h:f)[A.source];this._renderTileClippingMasks(A,u[A.source]),this.renderLayer(this,M,A,S)}this.options.showTileBoundaries&amp;&amp;(t.values(this.style._layers).forEach((function(t){t.source&amp;&amp;!t.isHidden(n.transform.zoom)&amp;&amp;(t.source!==(c&amp;&amp;c.id)&amp;&amp;(c=n.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom&lt;c.getSource().maxzoom)&amp;&amp;(l=c))})),l&amp;&amp;bn.debug(this,l,l.getVisibleCoordinates()));this.options.showPadding&amp;&amp;gn(this),this.context.setDefault()},_n.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(&quot;background&quot;===r.type||&quot;custom&quot;===r.type||n.length)&amp;&amp;(this.id=r.id,this.gpuTimingStart(r),bn[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},_n.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},_n.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},_n.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},_n.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],i=this.context.extTimerQuery,a=i.getQueryObjectEXT(n.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n.query),e[r]=a}return e},_n.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&amp;&amp;!n[1])return e;var o=a?&quot;map&quot;===i?this.transform.angle:0:&quot;viewport&quot;===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:pe(r,n[0],this.transform.zoom),a?n[1]:pe(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.translate(u,e,c),u},_n.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},_n.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&amp;&amp;e.length&gt;0?e.pop():null},_n.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},_n.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=&quot;&quot;+t+(e?e.cacheKey:&quot;&quot;)+(this._showOverdrawInspector?&quot;/overdraw&quot;:&quot;&quot;);return this.cache[r]||(this.cache[r]=new _r(this.context,xr[t],e,Jr[t],this._showOverdrawInspector)),this.cache[r]},_n.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},_n.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},_n.prototype.initDebugOverlayCanvas=function(){if(null==this.debugOverlayCanvas){this.debugOverlayCanvas=t.window.document.createElement(&quot;canvas&quot;),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var e=this.context.gl;this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,e.RGBA)}},_n.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&amp;&amp;this.debugOverlayTexture.destroy()};var wn=function(t,e){this.points=t,this.planes=e};wn.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new wn(a,o)};var Tn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};Tn.prototype.quadrant=function(e){for(var r=[e%2==0,e&lt;2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a&lt;r.length;a++)n[a]=r[a]?this.min[a]:this.center[a],i[a]=r[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new Tn(n,i)},Tn.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},Tn.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},Tn.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i&lt;e.planes.length;i++){for(var a=e.planes[i],o=0,s=0;s&lt;r.length;s++)o+=t.dot$1(a,r[s])&gt;=0;if(0===o)return 0;o!==r.length&amp;&amp;(n=!1)}if(n)return 2;for(var l=0;l&lt;3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;f&lt;e.points.length;f++){var h=e.points[f][l]-this.min[l];c=Math.min(c,h),u=Math.max(u,h)}if(u&lt;0||c&gt;this.max[l]-this.min[l])return 0}return 1};var kn=function(t,e,r,n){if(void 0===t&amp;&amp;(t=0),void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=0),void 0===n&amp;&amp;(n=0),isNaN(t)||t&lt;0||isNaN(e)||e&lt;0||isNaN(r)||r&lt;0||isNaN(n)||n&lt;0)throw new Error(&quot;Invalid value for edge-insets, top, bottom, left and right must all be numbers&quot;);this.top=t,this.bottom=e,this.left=r,this.right=n};kn.prototype.interpolate=function(e,r,n){return null!=r.top&amp;&amp;null!=e.top&amp;&amp;(this.top=t.number(e.top,r.top,n)),null!=r.bottom&amp;&amp;null!=e.bottom&amp;&amp;(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&amp;&amp;null!=e.left&amp;&amp;(this.left=t.number(e.left,r.left,n)),null!=r.right&amp;&amp;null!=e.right&amp;&amp;(this.right=t.number(e.right,r.right,n)),this},kn.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},kn.prototype.equals=function(t){return this.top===t.top&amp;&amp;this.bottom===t.bottom&amp;&amp;this.left===t.left&amp;&amp;this.right===t.right},kn.prototype.clone=function(){return new kn(this.top,this.bottom,this.left,this.right)},kn.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var An=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new kn,this._posMatrixCache={},this._alignedPosMatrixCache={}},Mn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};An.prototype.clone=function(){var t=new An(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Mn.minZoom.get=function(){return this._minZoom},Mn.minZoom.set=function(t){this._minZoom!==t&amp;&amp;(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Mn.maxZoom.get=function(){return this._maxZoom},Mn.maxZoom.set=function(t){this._maxZoom!==t&amp;&amp;(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Mn.minPitch.get=function(){return this._minPitch},Mn.minPitch.set=function(t){this._minPitch!==t&amp;&amp;(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Mn.maxPitch.get=function(){return this._maxPitch},Mn.maxPitch.set=function(t){this._maxPitch!==t&amp;&amp;(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Mn.renderWorldCopies.get=function(){return this._renderWorldCopies},Mn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&amp;&amp;(t=!1),this._renderWorldCopies=t},Mn.worldSize.get=function(){return this.tileSize*this.scale},Mn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Mn.size.get=function(){return new t.Point(this.width,this.height)},Mn.bearing.get=function(){return-this.angle/Math.PI*180},Mn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&amp;&amp;(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Mn.pitch.get=function(){return this._pitch/Math.PI*180},Mn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&amp;&amp;(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Mn.fov.get=function(){return this._fov/Math.PI*180},Mn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&amp;&amp;(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Mn.zoom.get=function(){return this._zoom},Mn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&amp;&amp;(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Mn.center.get=function(){return this._center},Mn.center.set=function(t){t.lat===this._center.lat&amp;&amp;t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Mn.padding.get=function(){return this._edgeInsets.toJSON()},Mn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Mn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},An.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},An.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},An.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},An.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=s-1;c&lt;=l+1;c++)0!==c&amp;&amp;r.push(new t.UnwrappedTileID(c,e));return r},An.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&amp;&amp;r&lt;e.minzoom)return[];void 0!==e.maxzoom&amp;&amp;r&gt;e.maxzoom&amp;&amp;(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=wn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch&lt;=60&amp;&amp;this._edgeInsets.top&lt;.1&amp;&amp;(l=r);var c=function(t){return{aabb:new Tn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],f=[],h=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d&lt;=3;d++)u.push(c(-d)),u.push(c(d));for(u.push(c(0));u.length&gt;0;){var g=u.pop(),m=g.x,v=g.y,y=g.fullyVisible;if(!y){var x=g.aabb.intersects(s);if(0===x)continue;y=2===x}var b=g.aabb.distanceX(o),_=g.aabb.distanceY(o),w=Math.max(Math.abs(b),Math.abs(_)),T=3+(1&lt;&lt;h-g.zoom)-2;if(g.zoom===h||w&gt;T&amp;&amp;g.zoom&gt;=l)f.push({tileID:new t.OverscaledTileID(g.zoom===h?p:g.zoom,g.wrap,g.zoom,m,v),distanceSq:t.sqrLen([o[0]-.5-m,o[1]-.5-v])});else for(var k=0;k&lt;4;k++){var A=(m&lt;&lt;1)+k%2,M=(v&lt;&lt;1)+(k&gt;&gt;1);u.push({aabb:g.aabb.quadrant(k),zoom:g.zoom+1,x:A,y:M,wrap:g.wrap,fullyVisible:y})}}return f.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},An.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Mn.unmodified.get=function(){return this._unmodified},An.prototype.zoomScale=function(t){return Math.pow(2,t)},An.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},An.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},An.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Mn.point.get=function(){return this.project(this.center)},An.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&amp;&amp;(this.center=this.center.wrap())},An.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},An.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},An.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},An.prototype.coordinateLocation=function(t){return t.toLngLat()},An.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[0]/i,s=n[0]/a,l=r[1]/i,c=n[1]/a,u=r[2]/i,f=n[2]/a,h=u===f?0:(0-u)/(f-u);return new t.MercatorCoordinate(t.number(o,s,h)/this.worldSize,t.number(l,c,h)/this.worldSize)},An.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},An.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},An.prototype.getMaxBounds=function(){return this.latRange&amp;&amp;2===this.latRange.length&amp;&amp;this.lngRange&amp;&amp;2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},An.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},An.prototype.calculatePosMatrix=function(e,r){void 0===r&amp;&amp;(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},An.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},An.prototype._constrain=function(){if(this.center&amp;&amp;this.width&amp;&amp;this.height&amp;&amp;!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-a&lt;c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=t.mercatorXfromLng(h[0])*this.worldSize,r=(l=t.mercatorXfromLng(h[1])*this.worldSize)-s&lt;c.x?c.x/(l-s):0}var p=this.point,d=Math.max(r||0,e||0);if(d)return this.center=this.unproject(new t.Point(r?(l+s)/2:p.x,e?(o+a)/2:p.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var g=p.y,m=c.y/2;g-m&lt;a&amp;&amp;(i=a+m),g+m&gt;o&amp;&amp;(i=o-m)}if(this.lngRange){var v=p.x,y=c.x/2;v-y&lt;s&amp;&amp;(n=s+y),v+y&gt;l&amp;&amp;(n=l-y)}void 0===n&amp;&amp;void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},An.prototype._calcMatrices=function(){if(this.height){var e=this._fov/2,r=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(e)*this.height;var n=Math.PI/2+this._pitch,i=this._fov*(.5+r.y/this.height),a=Math.sin(i)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-n-i,.01,Math.PI-.01)),o=this.point,s=o.x,l=o.y,c=1.01*(Math.cos(Math.PI/2-this._pitch)*a+this.cameraToCenterDistance),u=this.height/50,f=new Float64Array(16);t.perspective(f,this._fov,this.width/this.height,u,c),f[8]=2*-r.x/this.width,f[9]=2*r.y/this.height,t.scale(f,f,[1,-1,1]),t.translate(f,f,[0,0,-this.cameraToCenterDistance]),t.rotateX(f,f,this._pitch),t.rotateZ(f,f,this.angle),t.translate(f,f,[-s,-l,0]),this.mercatorMatrix=t.scale([],f,[this.worldSize,this.worldSize,this.worldSize]),t.scale(f,f,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=f,this.invProjMatrix=t.invert([],this.projMatrix);var h=this.width%2/2,p=this.height%2/2,d=Math.cos(this.angle),g=Math.sin(this.angle),m=s-Math.round(s)+d*h+g*p,v=l-Math.round(l)+d*p+g*h,y=new Float64Array(f);if(t.translate(y,y,[m&gt;.5?m-1:m,v&gt;.5?v-1:v,0]),this.alignedProjMatrix=y,f=t.create(),t.scale(f,f,[this.width/2,-this.height/2,1]),t.translate(f,f,[1,-1,0]),this.labelPlaneMatrix=f,f=t.create(),t.scale(f,f,[1,-1,1]),t.translate(f,f,[-1,-1,0]),t.scale(f,f,[2/this.width,2/this.height,1]),this.glCoordMatrix=f,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(f=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(&quot;failed to invert matrix&quot;);this.pixelMatrixInverse=f,this._posMatrixCache={},this._alignedPosMatrixCache={}}},An.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},An.prototype.getCameraPoint=function(){var e=this._pitch,r=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,r))},An.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s&lt;l.length;s+=1){var c=l[s];n=Math.min(n,c.x),i=Math.min(i,c.y),a=Math.max(a,c.x),o=Math.max(o,c.y)}return[new t.Point(n,i),new t.Point(a,i),new t.Point(a,o),new t.Point(n,o),new t.Point(n,i)]},Object.defineProperties(An.prototype,Mn);var Sn=function(e){var r,n,i,a,o;this._hashName=e&amp;&amp;encodeURIComponent(e),t.bindAll([&quot;_getCurrentHash&quot;,&quot;_onHashChange&quot;,&quot;_updateHash&quot;],this),this._updateHash=(r=this._updateHashUnthrottled.bind(this),n=300,i=!1,a=null,o=function(){a=null,i&amp;&amp;(r(),a=setTimeout(o,n),i=!1)},function(){return i=!0,a||o(),a})};Sn.prototype.addTo=function(e){return this._map=e,t.window.addEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.on(&quot;moveend&quot;,this._updateHash),this},Sn.prototype.remove=function(){return t.window.removeEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.off(&quot;moveend&quot;,this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Sn.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(r.lng*a)/a,s=Math.round(r.lat*a)/a,l=this._map.getBearing(),c=this._map.getPitch(),u=&quot;&quot;;if(u+=e?&quot;/&quot;+o+&quot;/&quot;+s+&quot;/&quot;+n:n+&quot;/&quot;+s+&quot;/&quot;+o,(l||c)&amp;&amp;(u+=&quot;/&quot;+Math.round(10*l)/10),c&amp;&amp;(u+=&quot;/&quot;+Math.round(c)),this._hashName){var f=this._hashName,h=!1,p=t.window.location.hash.slice(1).split(&quot;&amp;&quot;).map((function(t){var e=t.split(&quot;=&quot;)[0];return e===f?(h=!0,e+&quot;=&quot;+u):t})).filter((function(t){return t}));return h||p.push(f+&quot;=&quot;+u),&quot;#&quot;+p.join(&quot;&amp;&quot;)}return&quot;#&quot;+u},Sn.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace(&quot;#&quot;,&quot;&quot;);return this._hashName?(n.split(&quot;&amp;&quot;).map((function(t){return t.split(&quot;=&quot;)})).forEach((function(t){t[0]===r._hashName&amp;&amp;(e=t)})),(e&amp;&amp;e[1]||&quot;&quot;).split(&quot;/&quot;)):n.split(&quot;/&quot;)},Sn.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length&gt;=3&amp;&amp;!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&amp;&amp;this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Sn.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,&quot;&quot;,e)}catch(t){}};var En={linearity:.3,easing:t.bezier(0,0,.3,1)},Ln=t.extend({deceleration:2500,maxSpeed:1400},En),Cn=t.extend({deceleration:20,maxSpeed:1400},En),Pn=t.extend({deceleration:1e3,maxSpeed:360},En),In=t.extend({deceleration:1e3,maxSpeed:90},En),On=function(t){this._map=t,this.clear()};function zn(t,e){(!t.duration||t.duration&lt;e.duration)&amp;&amp;(t.duration=e.duration,t.easing=e.easing)}function Dn(e,r,n){var i=n.maxSpeed,a=n.linearity,o=n.deceleration,s=t.clamp(e*a/(r/1e3),-i,i),l=Math.abs(s)/(o*a);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}On.prototype.clear=function(){this._inertiaBuffer=[]},On.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},On.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0].time&gt;160;)e.shift()},On.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length&lt;2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n&lt;i.length;n+=1){var a=i[n].settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&amp;&amp;r.pan._add(a.panDelta),a.around&amp;&amp;(r.around=a.around),a.pinchAround&amp;&amp;(r.pinchAround=a.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=Dn(r.pan.mag(),o,t.extend({},Ln,e||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,zn(s,l)}if(r.zoom){var c=Dn(r.zoom,o,Cn);s.zoom=this._map.transform.zoom+c.amount,zn(s,c)}if(r.bearing){var u=Dn(r.bearing,o,Pn);s.bearing=this._map.transform.bearing+t.clamp(u.amount,-179,179),zn(s,u)}if(r.pitch){var f=Dn(r.pitch,o,In);s.pitch=this._map.transform.pitch+f.amount,zn(s,f)}if(s.zoom||s.bearing){var h=void 0===r.pinchAround?r.around:r.pinchAround;s.around=h?this._map.unproject(h):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var Rn=function(e){function n(n,i,a,o){void 0===o&amp;&amp;(o={});var s=r.mousePos(i.getCanvasContainer(),a),l=i.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:a},o)),this._defaultPrevented=!1,this.target=i}e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Fn=function(e){function n(n,i,a){var o=&quot;touchend&quot;===n?a.changedTouches:a.touches,s=r.touchPos(i.getCanvasContainer(),o),l=s.map((function(t){return i.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),u=i.unproject(c);e.call(this,n,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:a}),this._defaultPrevented=!1}e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Bn=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Nn=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Nn.prototype.reset=function(){delete this._mousedownPos},Nn.prototype.wheel=function(t){return this._firePreventable(new Bn(t.type,this._map,t))},Nn.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new Rn(t.type,this._map,t))},Nn.prototype.mouseup=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.click=function(t,e){this._mousedownPos&amp;&amp;this._mousedownPos.dist(e)&gt;=this._clickTolerance||this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.dblclick=function(t){return this._firePreventable(new Rn(t.type,this._map,t))},Nn.prototype.mouseover=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.mouseout=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.touchstart=function(t){return this._firePreventable(new Fn(t.type,this._map,t))},Nn.prototype.touchmove=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype.touchend=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype.touchcancel=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Nn.prototype.isEnabled=function(){return!0},Nn.prototype.isActive=function(){return!1},Nn.prototype.enable=function(){},Nn.prototype.disable=function(){};var jn=function(t){this._map=t};jn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},jn.prototype.mousemove=function(t){this._map.fire(new Rn(t.type,this._map,t))},jn.prototype.mousedown=function(){this._delayContextMenu=!0},jn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&amp;&amp;(this._map.fire(new Rn(&quot;contextmenu&quot;,this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},jn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Rn(t.type,this._map,t)),this._map.listens(&quot;contextmenu&quot;)&amp;&amp;t.preventDefault()},jn.prototype.isEnabled=function(){return!0},jn.prototype.isActive=function(){return!1},jn.prototype.enable=function(){},jn.prototype.disable=function(){};var Un=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Vn(t,e){for(var r={},n=0;n&lt;t.length;n++)r[t[n].identifier]=e[n];return r}Un.prototype.isEnabled=function(){return!!this._enabled},Un.prototype.isActive=function(){return!!this._active},Un.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Un.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},Un.prototype.mousedown=function(t,e){this.isEnabled()&amp;&amp;t.shiftKey&amp;&amp;0===t.button&amp;&amp;(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Un.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&amp;&amp;n.dist(this._startPos)&lt;this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=r.create(&quot;div&quot;,&quot;mapboxgl-boxzoom&quot;,this._container),this._container.classList.add(&quot;mapboxgl-crosshair&quot;),this._fireEvent(&quot;boxzoomstart&quot;,t));var a=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),l=Math.max(i.y,n.y);r.setTransform(this._box,&quot;translate(&quot;+a+&quot;px,&quot;+s+&quot;px)&quot;),this._box.style.width=o-a+&quot;px&quot;,this._box.style.height=l-s+&quot;px&quot;}}},Un.prototype.mouseupWindow=function(e,n){var i=this;if(this._active&amp;&amp;0===e.button){var a=this._startPos,o=n;if(this.reset(),r.suppressClick(),a.x!==o.x||a.y!==o.y)return this._map.fire(new t.Event(&quot;boxzoomend&quot;,{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(a,o,i._map.getBearing(),{linear:!0})}};this._fireEvent(&quot;boxzoomcancel&quot;,e)}},Un.prototype.keydown=function(t){this._active&amp;&amp;27===t.keyCode&amp;&amp;(this.reset(),this._fireEvent(&quot;boxzoomcancel&quot;,t))},Un.prototype.reset=function(){this._active=!1,this._container.classList.remove(&quot;mapboxgl-crosshair&quot;),this._box&amp;&amp;(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Un.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var qn=function(t){this.reset(),this.numTouches=t.numTouches};qn.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},qn.prototype.touchstart=function(e,r,n){(this.centroid||n.length&gt;this.numTouches)&amp;&amp;(this.aborted=!0),this.aborted||(void 0===this.startTime&amp;&amp;(this.startTime=e.timeStamp),n.length===this.numTouches&amp;&amp;(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n&lt;i.length;n+=1){var a=i[n];r._add(a)}return r.div(e.length)}(r),this.touches=Vn(n,r)))},qn.prototype.touchmove=function(t,e,r){if(!this.aborted&amp;&amp;this.centroid){var n=Vn(r,e);for(var i in this.touches){var a=this.touches[i],o=n[i];(!o||o.dist(a)&gt;30)&amp;&amp;(this.aborted=!0)}}},qn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime&gt;500)&amp;&amp;(this.aborted=!0),0===r.length){var n=!this.aborted&amp;&amp;this.centroid;if(this.reset(),n)return n}};var Hn=function(t){this.singleTap=new qn(t),this.numTaps=t.numTaps,this.reset()};Hn.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Hn.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Hn.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Hn.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime&lt;500,a=!this.lastTap||this.lastTap.dist(n)&lt;30;if(i&amp;&amp;a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Gn=function(){this._zoomIn=new Hn({numTouches:1,numTaps:2}),this._zoomOut=new Hn({numTouches:2,numTaps:1}),this.reset()};Gn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Gn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Gn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Gn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Gn.prototype.touchcancel=function(){this.reset()},Gn.prototype.enable=function(){this._enabled=!0},Gn.prototype.disable=function(){this._enabled=!1,this.reset()},Gn.prototype.isEnabled=function(){return this._enabled},Gn.prototype.isActive=function(){return this._active};var Yn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};Yn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Yn.prototype._correctButton=function(t,e){return!1},Yn.prototype._move=function(t,e){return{}},Yn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&amp;&amp;(this._lastPoint=e,this._eventButton=n)}},Yn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&amp;&amp;(t.preventDefault(),this._moved||!(e.dist(r)&lt;this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(r,e)},Yn.prototype.mouseupWindow=function(t){r.mouseButton(t)===this._eventButton&amp;&amp;(this._moved&amp;&amp;r.suppressClick(),this.reset())},Yn.prototype.enable=function(){this._enabled=!0},Yn.prototype.disable=function(){this._enabled=!1,this.reset()},Yn.prototype.isEnabled=function(){return this._enabled},Yn.prototype.isActive=function(){return this._active};var Wn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&amp;&amp;(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(Yn),Xn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=.8*(e.x-t.x);if(r)return this._active=!0,{bearingDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Yn),Zn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=-.5*(e.y-t.y);if(r)return this._active=!0,{pitchDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Yn),Jn=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Jn.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Jn.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Jn.prototype.touchmove=function(t,e,r){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,r)},Jn.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&amp;&amp;r.length&lt;this._minTouches&amp;&amp;this.reset()},Jn.prototype.touchcancel=function(){this.reset()},Jn.prototype._calculateTransform=function(e,r,n){n.length&gt;0&amp;&amp;(this._active=!0);var i=Vn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&amp;&amp;(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(s&lt;this._minTouches)&amp;&amp;o.mag()){var f=o.div(s);if(this._sum._add(f),!(this._sum.mag()&lt;this._clickTolerance))return{around:a.div(s),panDelta:f}}},Jn.prototype.enable=function(){this._enabled=!0},Jn.prototype.disable=function(){this._enabled=!1,this.reset()},Jn.prototype.isEnabled=function(){return this._enabled},Jn.prototype.isActive=function(){return this._active};var Kn=function(){this.reset()};function Qn(t,e,r){for(var n=0;n&lt;t.length;n++)if(t[n].identifier===r)return e[n]}Kn.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Kn.prototype._start=function(t){},Kn.prototype._move=function(t,e,r){return{}},Kn.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length&lt;2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Kn.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,i=n[0],a=n[1],o=Qn(r,e,i),s=Qn(r,e,a);if(o&amp;&amp;s){var l=this._aroundCenter?null:o.add(s).div(2);return this._move([o,s],l,t)}}},Kn.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,a=i[0],o=i[1],s=Qn(n,e,a),l=Qn(n,e,o);s&amp;&amp;l||(this._active&amp;&amp;r.suppressClick(),this.reset())}},Kn.prototype.touchcancel=function(){this.reset()},Kn.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&amp;&amp;&quot;center&quot;===t.around},Kn.prototype.disable=function(){this._enabled=!1,this.reset()},Kn.prototype.isEnabled=function(){return this._enabled},Kn.prototype.isActive=function(){return this._active};function $n(t,e){return Math.log(t/e)/Math.LN2}var ti=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs($n(this._distance,this._startDistance))&lt;.1))return this._active=!0,{zoomDelta:$n(this._distance,r),pinchAround:e}},e}(Kn);function ei(t,e){return 180*t.angleWith(e)/Math.PI}var ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:ei(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,r=ei(t,this._startVector);return Math.abs(r)&lt;e},e}(Kn);function ni(t){return Math.abs(t.y)&gt;Math.abs(t.x)}var ii=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ni(t[0].sub(t[1]))&amp;&amp;(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid){this._lastPoints=t,this._active=!0;return{pitchDelta:-.5*((n.y+i.y)/2)}}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()&gt;=2,i=e.mag()&gt;=2;if(n||i){if(!n||!i)return void 0===this._firstMove&amp;&amp;(this._firstMove=r),r-this._firstMove&lt;100&amp;&amp;void 0;var a=t.y&gt;0==e.y&gt;0;return ni(t)&amp;&amp;ni(e)&amp;&amp;a}},e}(Kn),ai={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var t=ai;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function si(t){return t*(2-t)}oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:&quot;keyboardHandler&quot;,easing:si,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},oi.prototype.enable=function(){this._enabled=!0},oi.prototype.disable=function(){this._enabled=!1,this.reset()},oi.prototype.isEnabled=function(){return this._enabled},oi.prototype.isActive=function(){return this._active};var li=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll([&quot;_onWheel&quot;,&quot;_onTimeout&quot;,&quot;_onScrollFrame&quot;,&quot;_onScrollFinished&quot;],this)};li.prototype.setZoomRate=function(t){this._defaultZoomRate=t},li.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},li.prototype.isEnabled=function(){return!!this._enabled},li.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},li.prototype.isZooming=function(){return!!this._zooming},li.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&amp;&amp;&quot;center&quot;===t.around)},li.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},li.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&amp;&amp;r%4.000244140625==0?this._type=&quot;wheel&quot;:0!==r&amp;&amp;Math.abs(r)&lt;4?this._type=&quot;trackpad&quot;:i&gt;400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)&lt;200?&quot;trackpad&quot;:&quot;wheel&quot;,this._timeout&amp;&amp;(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&amp;&amp;r&amp;&amp;(r/=4),this._type&amp;&amp;(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},li.prototype._onTimeout=function(t){this._type=&quot;wheel&quot;,this._delta-=this._lastValue,this._active||this._start(t)},li.prototype._start=function(e){if(this._delta){this._frameId&amp;&amp;(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&amp;&amp;(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},li.prototype.renderFrame=function(){return this._onScrollFrame()},li.prototype._onScrollFrame=function(){var e=this;if(this._frameId&amp;&amp;(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n=&quot;wheel&quot;===this._type&amp;&amp;Math.abs(this._delta)&gt;4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta&lt;0&amp;&amp;0!==i&amp;&amp;(i=1/i);var a=&quot;number&quot;==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),&quot;wheel&quot;===this._type&amp;&amp;(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s=&quot;number&quot;==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if(&quot;wheel&quot;===this._type&amp;&amp;l&amp;&amp;c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=c(f);o=t.number(l,s,h),f&lt;1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&amp;&amp;(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},li.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},li.prototype.reset=function(){this._active=!1};var ci=function(t,e){this._clickZoom=t,this._tapZoom=e};ci.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ci.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ci.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&amp;&amp;this._tapZoom.isEnabled()},ci.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ui=function(){this.reset()};ui.prototype.reset=function(){this._active=!1},ui.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},ui.prototype.enable=function(){this._enabled=!0},ui.prototype.disable=function(){this._enabled=!1,this.reset()},ui.prototype.isEnabled=function(){return this._enabled},ui.prototype.isActive=function(){return this._active};var fi=function(){this._tap=new Hn({numTouches:1,numTaps:1}),this.reset()};fi.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},fi.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&amp;&amp;t.timeStamp-this._tapTime&gt;500&amp;&amp;this.reset(),this._tapTime?r.length&gt;0&amp;&amp;(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},fi.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},fi.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&amp;&amp;0===r.length&amp;&amp;this.reset():this._tap.touchend(t,e,r)&amp;&amp;(this._tapTime=t.timeStamp)},fi.prototype.touchcancel=function(){this.reset()},fi.prototype.enable=function(){this._enabled=!0},fi.prototype.disable=function(){this._enabled=!1,this.reset()},fi.prototype.isEnabled=function(){return this._enabled},fi.prototype.isActive=function(){return this._active};var hi=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};hi.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(&quot;mapboxgl-touch-drag-pan&quot;)},hi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(&quot;mapboxgl-touch-drag-pan&quot;)},hi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&amp;&amp;this._touchPan.isEnabled()},hi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var pi=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};pi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&amp;&amp;this._mousePitch.enable()},pi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},pi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&amp;&amp;(!this._pitchWithRotate||this._mousePitch.isEnabled())},pi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(&quot;mapboxgl-touch-zoom-rotate&quot;)},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(&quot;mapboxgl-touch-zoom-rotate&quot;)},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&amp;&amp;(this._rotationDisabled||this._touchRotate.isEnabled())&amp;&amp;this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&amp;&amp;this._touchRotate.enable()};var gi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},mi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(t.Event);function vi(t){return t.panDelta&amp;&amp;t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var yi=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new On(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll([&quot;handleEvent&quot;,&quot;handleWindowEvent&quot;],this);var i=this._el;this._listeners=[[i,&quot;touchstart&quot;,{passive:!1}],[i,&quot;touchmove&quot;,{passive:!1}],[i,&quot;touchend&quot;,void 0],[i,&quot;touchcancel&quot;,void 0],[i,&quot;mousedown&quot;,void 0],[i,&quot;mousemove&quot;,void 0],[i,&quot;mouseup&quot;,void 0],[t.window.document,&quot;mousemove&quot;,{capture:!0}],[t.window.document,&quot;mouseup&quot;,void 0],[i,&quot;mouseover&quot;,void 0],[i,&quot;mouseout&quot;,void 0],[i,&quot;dblclick&quot;,void 0],[i,&quot;click&quot;,void 0],[i,&quot;keydown&quot;,{capture:!1}],[i,&quot;keyup&quot;,void 0],[i,&quot;wheel&quot;,{passive:!1}],[i,&quot;contextmenu&quot;,void 0],[t.window,&quot;blur&quot;,void 0]];for(var a=0,o=this._listeners;a&lt;o.length;a+=1){var s=o[a],l=s[0],c=s[1],u=s[2];r.addEventListener(l,c,l===t.window.document?this.handleWindowEvent:this.handleEvent,u)}};yi.prototype.destroy=function(){for(var e=0,n=this._listeners;e&lt;n.length;e+=1){var i=n[e],a=i[0],o=i[1],s=i[2];r.removeEventListener(a,o,a===t.window.document?this.handleWindowEvent:this.handleEvent,s)}},yi.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add(&quot;mapEvent&quot;,new Nn(e,t));var n=e.boxZoom=new Un(e,t);this._add(&quot;boxZoom&quot;,n);var i=new Gn,a=new ui;e.doubleClickZoom=new ci(a,i),this._add(&quot;tapZoom&quot;,i),this._add(&quot;clickZoom&quot;,a);var o=new fi;this._add(&quot;tapDragZoom&quot;,o);var s=e.touchPitch=new ii;this._add(&quot;touchPitch&quot;,s);var l=new Xn(t),c=new Zn(t);e.dragRotate=new pi(t,l,c),this._add(&quot;mouseRotate&quot;,l,[&quot;mousePitch&quot;]),this._add(&quot;mousePitch&quot;,c,[&quot;mouseRotate&quot;]);var u=new Wn(t),f=new Jn(t);e.dragPan=new hi(r,u,f),this._add(&quot;mousePan&quot;,u),this._add(&quot;touchPan&quot;,f,[&quot;touchZoom&quot;,&quot;touchRotate&quot;]);var h=new ri,p=new ti;e.touchZoomRotate=new di(r,p,h,o),this._add(&quot;touchRotate&quot;,h,[&quot;touchPan&quot;,&quot;touchZoom&quot;]),this._add(&quot;touchZoom&quot;,p,[&quot;touchPan&quot;,&quot;touchRotate&quot;]);var d=e.scrollZoom=new li(e,this);this._add(&quot;scrollZoom&quot;,d,[&quot;mousePan&quot;]);var g=e.keyboard=new oi;this._add(&quot;keyboard&quot;,g),this._add(&quot;blockableMapEvent&quot;,new jn(e));for(var m=0,v=[&quot;boxZoom&quot;,&quot;doubleClickZoom&quot;,&quot;tapDragZoom&quot;,&quot;touchPitch&quot;,&quot;dragRotate&quot;,&quot;dragPan&quot;,&quot;touchZoomRotate&quot;,&quot;scrollZoom&quot;,&quot;keyboard&quot;];m&lt;v.length;m+=1){var y=v[m];t.interactive&amp;&amp;t[y]&amp;&amp;e[y].enable(t[y])}},yi.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},yi.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t&lt;e.length;t+=1){e[t].handler.reset()}this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},yi.prototype.isActive=function(){for(var t=0,e=this._handlers;t&lt;e.length;t+=1){if(e[t].handler.isActive())return!0}return!1},yi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},yi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},yi.prototype.isMoving=function(){return Boolean(gi(this._eventsInProgress))||this.isZooming()},yi.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&amp;&amp;(!e||e.indexOf(n)&lt;0))return!0;return!1},yi.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+&quot;Window&quot;)},yi.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r],a=i.target;this._el.contains(a)&amp;&amp;e.push(i)}return e},yi.prototype.handleEvent=function(t,e){if(&quot;blur&quot;!==t.type){this._updatingCamera=!0;for(var n=&quot;renderFrame&quot;===t.type?void 0:t,i={needsRenderFrame:!1},a={},o={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,u=this._handlers;c&lt;u.length;c+=1){var f=u[c],h=f.handlerName,p=f.handler,d=f.allowed;if(p.isEnabled()){var g=void 0;this._blockedByActive(o,d,h)?p.reset():p[e||t.type]&amp;&amp;(g=p[e||t.type](t,l,s),this.mergeHandlerResult(i,a,g,h,n),g&amp;&amp;g.needsRenderFrame&amp;&amp;this._triggerRenderFrame()),(g||p.isActive())&amp;&amp;(o[h]=p)}}var m={};for(var v in this._previousActiveHandlers)o[v]||(m[v]=n);this._previousActiveHandlers=o,(Object.keys(m).length||vi(i))&amp;&amp;(this._changes.push([i,a,m]),this._triggerRenderFrame()),(Object.keys(o).length||vi(i))&amp;&amp;this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&amp;&amp;(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],y(this._map))}else this.stop()},yi.prototype.mergeHandlerResult=function(e,r,n,i,a){if(n){t.extend(e,n);var o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&amp;&amp;(r.zoom=o),void 0!==n.panDelta&amp;&amp;(r.drag=o),void 0!==n.pitchDelta&amp;&amp;(r.pitch=o),void 0!==n.bearingDelta&amp;&amp;(r.rotate=o)}},yi.prototype._applyChanges=function(){for(var e={},r={},n={},i=0,a=this._changes;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=o[2];s.panDelta&amp;&amp;(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&amp;&amp;(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&amp;&amp;(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&amp;&amp;(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&amp;&amp;(e.around=s.around),void 0!==s.pinchAround&amp;&amp;(e.pinchAround=s.pinchAround),s.noInertia&amp;&amp;(e.noInertia=s.noInertia),t.extend(r,l),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},yi.prototype._updateMapTransform=function(t,e,r){var n=this._map,i=n.transform;if(!vi(t))return this._fireEvents(e,r);var a=t.panDelta,o=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,c=t.around,u=t.pinchAround;void 0!==u&amp;&amp;(c=u),n._stop(!0),c=c||n.transform.centerPoint;var f=i.pointLocation(a?c.sub(a):c);s&amp;&amp;(i.bearing+=s),l&amp;&amp;(i.pitch+=l),o&amp;&amp;(i.zoom+=o),i.setLocationAtPoint(f,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r)},yi.prototype._fireEvents=function(e,r){var n=this,i=gi(this._eventsInProgress),a=gi(e),o={};for(var s in e){var l=e[s].originalEvent;this._eventsInProgress[s]||(o[s+&quot;start&quot;]=l),this._eventsInProgress[s]=e[s]}for(var c in!i&amp;&amp;a&amp;&amp;this._fireEvent(&quot;movestart&quot;,a.originalEvent),o)this._fireEvent(c,o[c]);for(var u in e.rotate&amp;&amp;(this._bearingChanged=!0),a&amp;&amp;this._fireEvent(&quot;move&quot;,a.originalEvent),e){var f=e[u].originalEvent;this._fireEvent(u,f)}var h,p={};for(var d in this._eventsInProgress){var g=this._eventsInProgress[d],m=g.handlerName,v=g.originalEvent;this._handlersById[m].isActive()||(delete this._eventsInProgress[d],h=r[m]||v,p[d+&quot;end&quot;]=h)}for(var y in p)this._fireEvent(y,p[y]);var x=gi(this._eventsInProgress);if((i||a)&amp;&amp;!x){this._updatingCamera=!0;var b=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),_=function(t){return 0!==t&amp;&amp;-n._bearingSnap&lt;t&amp;&amp;t&lt;n._bearingSnap};b?(_(b.bearing||this._map.getBearing())&amp;&amp;(b.bearing=0),this._map.easeTo(b,{originalEvent:h})):(this._map.fire(new t.Event(&quot;moveend&quot;,{originalEvent:h})),_(this._map.getBearing())&amp;&amp;this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},yi.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},yi.prototype._triggerRenderFrame=function(){var t=this;void 0===this._frameId&amp;&amp;(this._frameId=this._map._requestRenderFrame((function(e){delete t._frameId,t.handleEvent(new mi(&quot;renderFrame&quot;,{timeStamp:e})),t._applyChanges()})))};var xi=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([&quot;_renderFrameCallback&quot;],this)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())&lt;this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,i){var a={top:0,bottom:0,right:0,left:0};if(&quot;number&quot;==typeof(i=t.extend({padding:a,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=t.extend(a,i.padding);var s=this.transform,l=s.padding,c=s.project(t.LngLat.convert(e)),u=s.project(t.LngLat.convert(r)),f=c.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),p=new t.Point(Math.max(f.x,h.x),Math.max(f.y,h.y)),d=new t.Point(Math.min(f.x,h.x),Math.min(f.y,h.y)),g=p.sub(d),m=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/g.x,v=(s.height-(l.top+l.bottom+i.padding.top+i.padding.bottom))/g.y;if(!(v&lt;0||m&lt;0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(m,v)),i.maxZoom),x=t.Point.convert(i.offset),b=(i.padding.left-i.padding.right)/2,_=(i.padding.top-i.padding.bottom)/2,w=new t.Point(x.x+b,x.y+_).mult(s.scale/s.zoomScale(y));return{center:s.unproject(c.add(u).div(2).sub(w)),zoom:y,bearing:n}}t.warnOnce(&quot;Map cannot fit within canvas with the given bounds, padding, and/or offset.&quot;)},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,i,a){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,i),i,a)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return&quot;zoom&quot;in e&amp;&amp;n.zoom!==+e.zoom&amp;&amp;(i=!0,n.zoom=+e.zoom),void 0!==e.center&amp;&amp;(n.center=t.LngLat.convert(e.center)),&quot;bearing&quot;in e&amp;&amp;n.bearing!==+e.bearing&amp;&amp;(a=!0,n.bearing=+e.bearing),&quot;pitch&quot;in e&amp;&amp;n.pitch!==+e.pitch&amp;&amp;(o=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event(&quot;movestart&quot;,r)).fire(new t.Event(&quot;move&quot;,r)),i&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,r)).fire(new t.Event(&quot;zoom&quot;,r)).fire(new t.Event(&quot;zoomend&quot;,r)),a&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,r)).fire(new t.Event(&quot;rotate&quot;,r)).fire(new t.Event(&quot;rotateend&quot;,r)),o&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,r)).fire(new t.Event(&quot;pitch&quot;,r)).fire(new t.Event(&quot;pitchend&quot;,r)),this.fire(new t.Event(&quot;moveend&quot;,r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&amp;&amp;t.browser.prefersReducedMotion)&amp;&amp;(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c=&quot;zoom&quot;in e?+e.zoom:a,u=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,o):o,f=&quot;pitch&quot;in e?+e.pitch:s,h=&quot;padding&quot;in e?e.padding:i.padding,p=t.Point.convert(e.offset),d=i.centerPoint.add(p),g=i.pointLocation(d),m=t.LngLat.convert(e.center||g);this._normalizeCenter(m);var v,y,x=i.project(g),b=i.project(m).sub(x),_=i.zoomScale(c-a);e.around&amp;&amp;(v=t.LngLat.convert(e.around),y=i.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==a,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(h),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(n._zooming&amp;&amp;(i.zoom=t.number(a,c,e)),n._rotating&amp;&amp;(i.bearing=t.number(o,u,e)),n._pitching&amp;&amp;(i.pitch=t.number(s,f,e)),n._padding&amp;&amp;(i.interpolatePadding(l,h,e),d=i.centerPoint.add(p)),v)i.setLocationAtPoint(v,y);else{var g=i.zoomScale(i.zoom-a),m=c&gt;a?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-e),T=i.unproject(x.add(b.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&amp;&amp;(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event(&quot;movestart&quot;,e)),this._zooming&amp;&amp;!n.zooming&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,e)),this._rotating&amp;&amp;!n.rotating&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,e)),this._pitching&amp;&amp;!n.pitching&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(&quot;move&quot;,e)),this._zooming&amp;&amp;this.fire(new t.Event(&quot;zoom&quot;,e)),this._rotating&amp;&amp;this.fire(new t.Event(&quot;rotate&quot;,e)),this._pitching&amp;&amp;this.fire(new t.Event(&quot;pitch&quot;,e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&amp;&amp;this.fire(new t.Event(&quot;zoomend&quot;,e)),i&amp;&amp;this.fire(new t.Event(&quot;rotateend&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;pitchend&quot;,e)),this.fire(new t.Event(&quot;moveend&quot;,e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&amp;&amp;t.browser.prefersReducedMotion){var i=t.pick(e,[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;,&quot;around&quot;]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u=&quot;zoom&quot;in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,s):s,h=&quot;pitch&quot;in e?+e.pitch:l,p=&quot;padding&quot;in e?e.padding:a.padding,d=a.zoomScale(u-o),g=t.Point.convert(e.offset),m=a.centerPoint.add(g),v=a.pointLocation(m),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=e.curve,w=Math.max(a.width,a.height),T=w/d,k=b.mag();if(&quot;minZoom&quot;in e){var A=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),M=w/a.zoomScale(A-o);_=Math.sqrt(M/k*2)}var S=_*_;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function L(t){return(Math.exp(t)-Math.exp(-t))/2}function C(t){return(Math.exp(t)+Math.exp(-t))/2}var P=E(0),I=function(t){return C(P)/C(P+_*t)},O=function(t){return w*((C(P)*(L(e=P+_*t)/C(e))-L(P))/S)/k;var e},z=(E(1)-P)/_;if(Math.abs(k)&lt;1e-6||!isFinite(z)){if(Math.abs(w-T)&lt;1e-6)return this.easeTo(e,r);var D=T&lt;w?-1:1;z=Math.abs(Math.log(T/w))/_,O=function(){return 0},I=function(t){return Math.exp(D*_*t)}}if(&quot;duration&quot;in e)e.duration=+e.duration;else{var R=&quot;screenSpeed&quot;in e?+e.screenSpeed/_:+e.speed;e.duration=1e3*z/R}return e.maxDuration&amp;&amp;e.duration&gt;e.maxDuration&amp;&amp;(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=h!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*z,d=1/I(i);a.zoom=1===e?u:o+a.scaleZoom(d),n._rotating&amp;&amp;(a.bearing=t.number(s,f,e)),n._pitching&amp;&amp;(a.pitch=t.number(l,h,e)),n._padding&amp;&amp;(a.interpolatePadding(c,p,e),m=a.centerPoint.add(g));var v=1===e?y:a.unproject(x.add(b.mult(O(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,m),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&amp;&amp;(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&amp;&amp;n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e&lt;1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)&lt;n&amp;&amp;(e-=360),Math.abs(e+360-r)&lt;n&amp;&amp;(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&amp;&amp;!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r&gt;180?-360:r&lt;-180?360:0}},r}(t.Evented),bi=function(e){void 0===e&amp;&amp;(e={}),this.options=e,t.bindAll([&quot;_updateEditLink&quot;,&quot;_updateData&quot;,&quot;_updateCompact&quot;],this)};bi.prototype.getDefaultPosition=function(){return&quot;bottom-right&quot;},bi.prototype.onAdd=function(t){var e=this.options&amp;&amp;this.options.compact;return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-attrib&quot;),this._innerContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-attrib-inner&quot;,this._container),e&amp;&amp;this._container.classList.add(&quot;mapboxgl-compact&quot;),this._updateAttributions(),this._updateEditLink(),this._map.on(&quot;styledata&quot;,this._updateData),this._map.on(&quot;sourcedata&quot;,this._updateData),this._map.on(&quot;moveend&quot;,this._updateEditLink),void 0===e&amp;&amp;(this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact()),this._container},bi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;styledata&quot;,this._updateData),this._map.off(&quot;sourcedata&quot;,this._updateData),this._map.off(&quot;moveend&quot;,this._updateEditLink),this._map.off(&quot;resize&quot;,this._updateCompact),this._map=void 0,this._attribHTML=void 0},bi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(&quot;.mapbox-improve-map&quot;));var r=[{key:&quot;owner&quot;,value:this.styleOwner},{key:&quot;id&quot;,value:this.styleId},{key:&quot;access_token&quot;,value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&amp;&amp;(t+=e.key+&quot;=&quot;+e.value+(n&lt;r.length-1?&quot;&amp;&quot;:&quot;&quot;)),t}),&quot;?&quot;);e.href=t.config.FEEDBACK_URL+&quot;/&quot;+n+(this._map._hash?this._map._hash.getHashString(!0):&quot;&quot;),e.rel=&quot;noopener nofollow&quot;}},bi.prototype._updateData=function(t){!t||&quot;metadata&quot;!==t.sourceDataType&amp;&amp;&quot;style&quot;!==t.dataType||(this._updateAttributions(),this._updateEditLink())},bi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&amp;&amp;(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return&quot;string&quot;!=typeof t?&quot;&quot;:t}))):&quot;string&quot;==typeof this.options.customAttribution&amp;&amp;t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n];if(i.used){var a=i.getSource();a.attribution&amp;&amp;t.indexOf(a.attribution)&lt;0&amp;&amp;t.push(a.attribution)}}t.sort((function(t,e){return t.length-e.length}));var o=(t=t.filter((function(e,r){for(var n=r+1;n&lt;t.length;n++)if(t[n].indexOf(e)&gt;=0)return!1;return!0}))).join(&quot; | &quot;);o!==this._attribHTML&amp;&amp;(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove(&quot;mapboxgl-attrib-empty&quot;)):this._container.classList.add(&quot;mapboxgl-attrib-empty&quot;),this._editLink=null)}},bi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth&lt;=640?this._container.classList.add(&quot;mapboxgl-compact&quot;):this._container.classList.remove(&quot;mapboxgl-compact&quot;)};var _i=function(){t.bindAll([&quot;_updateLogo&quot;],this),t.bindAll([&quot;_updateCompact&quot;],this)};_i.prototype.onAdd=function(t){this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl&quot;);var e=r.create(&quot;a&quot;,&quot;mapboxgl-ctrl-logo&quot;);return e.target=&quot;_blank&quot;,e.rel=&quot;noopener nofollow&quot;,e.href=&quot;https://www.mapbox.com/&quot;,e.setAttribute(&quot;aria-label&quot;,this._map._getUIString(&quot;LogoControl.Title&quot;)),e.setAttribute(&quot;rel&quot;,&quot;noopener nofollow&quot;),this._container.appendChild(e),this._container.style.display=&quot;none&quot;,this._map.on(&quot;sourcedata&quot;,this._updateLogo),this._updateLogo(),this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact(),this._container},_i.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;sourcedata&quot;,this._updateLogo),this._map.off(&quot;resize&quot;,this._updateCompact)},_i.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},_i.prototype._updateLogo=function(t){t&amp;&amp;&quot;metadata&quot;!==t.sourceDataType||(this._container.style.display=this._logoRequired()?&quot;block&quot;:&quot;none&quot;)},_i.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t){if(t[e].getSource().mapbox_logo)return!0}return!1}},_i.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth&lt;250?e.classList.add(&quot;mapboxgl-compact&quot;):e.classList.remove(&quot;mapboxgl-compact&quot;)}};var wi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};wi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},wi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r&lt;n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},wi.prototype.run=function(t){void 0===t&amp;&amp;(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];if(!i.cancelled&amp;&amp;(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},wi.prototype.clear=function(){this._currentlyRunning&amp;&amp;(this._cleared=!0),this._queue=[]};var Ti={&quot;FullscreenControl.Enter&quot;:&quot;Enter fullscreen&quot;,&quot;FullscreenControl.Exit&quot;:&quot;Exit fullscreen&quot;,&quot;GeolocateControl.FindMyLocation&quot;:&quot;Find my location&quot;,&quot;GeolocateControl.LocationNotAvailable&quot;:&quot;Location not available&quot;,&quot;LogoControl.Title&quot;:&quot;Mapbox logo&quot;,&quot;NavigationControl.ResetBearing&quot;:&quot;Reset bearing to north&quot;,&quot;NavigationControl.ZoomIn&quot;:&quot;Zoom in&quot;,&quot;NavigationControl.ZoomOut&quot;:&quot;Zoom out&quot;,&quot;ScaleControl.Feet&quot;:&quot;ft&quot;,&quot;ScaleControl.Meters&quot;:&quot;m&quot;,&quot;ScaleControl.Kilometers&quot;:&quot;km&quot;,&quot;ScaleControl.Miles&quot;:&quot;mi&quot;,&quot;ScaleControl.NauticalMiles&quot;:&quot;nm&quot;},ki=t.window.HTMLImageElement,Ai=t.window.HTMLElement,Mi=t.window.ImageBitmap,Si={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:&quot;sans-serif&quot;,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Ei=function(n){function i(e){var r=this;if(null!=(e=t.extend({},Si,e)).minZoom&amp;&amp;null!=e.maxZoom&amp;&amp;e.minZoom&gt;e.maxZoom)throw new Error(&quot;maxZoom must be greater than or equal to minZoom&quot;);if(null!=e.minPitch&amp;&amp;null!=e.maxPitch&amp;&amp;e.minPitch&gt;e.maxPitch)throw new Error(&quot;maxPitch must be greater than or equal to minPitch&quot;);if(null!=e.minPitch&amp;&amp;e.minPitch&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(null!=e.maxPitch&amp;&amp;e.maxPitch&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);var i=new An(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new wi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},Ti,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),&quot;string&quot;==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(&quot;Container '&quot;+e.container+&quot;' not found.&quot;)}else{if(!(e.container instanceof Ai))throw new Error(&quot;Invalid type: 'container' must be a String or HTMLElement.&quot;);this._container=e.container}if(e.maxBounds&amp;&amp;this.setMaxBounds(e.maxBounds),t.bindAll([&quot;_onWindowOnline&quot;,&quot;_onWindowResize&quot;,&quot;_contextLost&quot;,&quot;_contextRestored&quot;],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error(&quot;Failed to initialize WebGL.&quot;);this.on(&quot;move&quot;,(function(){return r._update(!1)})),this.on(&quot;moveend&quot;,(function(){return r._update(!1)})),this.on(&quot;zoom&quot;,(function(){return r._update(!0)})),void 0!==t.window&amp;&amp;(t.window.addEventListener(&quot;online&quot;,this._onWindowOnline,!1),t.window.addEventListener(&quot;resize&quot;,this._onWindowResize,!1)),this.handlers=new yi(this,e);var a=&quot;string&quot;==typeof e.hash&amp;&amp;e.hash||void 0;this._hash=e.hash&amp;&amp;new Sn(a).addTo(this),this._hash&amp;&amp;this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&amp;&amp;(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&amp;&amp;this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&amp;&amp;this.addControl(new bi({customAttribution:e.customAttribution})),this.addControl(new _i,e.logoPosition),this.on(&quot;style.load&quot;,(function(){r.transform.unmodified&amp;&amp;r.jumpTo(r.style.stylesheet)})),this.on(&quot;data&quot;,(function(e){r._update(&quot;style&quot;===e.dataType),r.fire(new t.Event(e.dataType+&quot;data&quot;,e))})),this.on(&quot;dataloading&quot;,(function(e){r.fire(new t.Event(e.dataType+&quot;dataloading&quot;,e))}))}n&amp;&amp;(i.__proto__=n),i.prototype=Object.create(n&amp;&amp;n.prototype),i.prototype.constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&amp;&amp;e.getDefaultPosition&amp;&amp;(r=e.getDefaultPosition()),void 0===r&amp;&amp;(r=&quot;top-right&quot;),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf(&quot;bottom&quot;)?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var r=this._controls.indexOf(e);return r&gt;-1&amp;&amp;this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&amp;&amp;(this.stop(),this.fire(new t.Event(&quot;movestart&quot;,e)).fire(new t.Event(&quot;move&quot;,e))),this.fire(new t.Event(&quot;resize&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;moveend&quot;,e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)&gt;=-2&amp;&amp;t&lt;=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()&lt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;minZoom must be between -2 and the current maxZoom, inclusive&quot;)},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null==t?22:t)&gt;=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()&gt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;maxZoom must be greater than the current minZoom&quot;)},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(t&gt;=0&amp;&amp;t&lt;=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()&lt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;minPitch must be between 0 and the current maxPitch, inclusive&quot;)},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null==t?60:t)&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);if(t&gt;=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()&gt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;maxPitch must be greater than the current minPitch&quot;)},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if(&quot;mouseenter&quot;===t||&quot;mouseover&quot;===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new Rn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if(&quot;mouseleave&quot;===t||&quot;mouseout&quot;===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&amp;&amp;(o=!1,r.call(i,new Rn(t,i,n.originalEvent)))},mouseout:function(e){o&amp;&amp;(o=!1,r.call(i,new Rn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&amp;&amp;(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;if(void 0===r)return n.prototype.off.call(this,t,e);return this._delegatedListeners&amp;&amp;this._delegatedListeners[t]&amp;&amp;function(n){for(var a=n[t],o=0;o&lt;a.length;o++){var s=a[o];if(s.layer===e&amp;&amp;s.listener===r){for(var l in s.delegates)i.off(l,s.delegates[l]);return a.splice(o,1),i}}}(this._delegatedListeners),this},i.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||&quot;number&quot;==typeof e[0])n=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),a=t.Point.convert(e[1]);n=[i,new t.Point(a.x,i.y),a,new t.Point(i.x,a.y),i]}return this.style.queryRenderedFeatures(n,r,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&amp;&amp;r.localIdeographFontFamily===this._localIdeographFontFamily&amp;&amp;this.style&amp;&amp;e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error(&quot;Missing UI string '&quot;+t+&quot;'&quot;);return e},i.prototype._updateStyle=function(t,e){return this.style&amp;&amp;(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new He(this,e||{}),this.style.setEventedParent(this,{style:this.style}),&quot;string&quot;==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new He(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,r){var n=this;if(&quot;string&quot;==typeof e){var i=this._requestManager.normalizeStyleURL(e),a=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(a,(function(e,i){e?n.fire(new t.ErrorEvent(e)):i&amp;&amp;n._updateDiff(i,r)}))}else&quot;object&quot;==typeof e&amp;&amp;this._updateDiff(e,r)},i.prototype._updateDiff=function(e,r){try{this.style.setState(e)&amp;&amp;this._update(!0)}catch(n){t.warnOnce(&quot;Unable to perform style diff: &quot;+(n.message||n.error||n)+&quot;.  Rebuilding the style from scratch.&quot;),this._updateStyle(e,r)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(&quot;There is no style added to the map.&quot;)},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var r=this.style&amp;&amp;this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(&quot;There is no source with ID '&quot;+e+&quot;'&quot;)))},i.prototype.areTilesLoaded=function(){var t=this.style&amp;&amp;this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(&quot;loaded&quot;!==i.state&amp;&amp;&quot;errored&quot;!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,r,n){void 0===n&amp;&amp;(n={});var i=n.pixelRatio;void 0===i&amp;&amp;(i=1);var a=n.sdf;void 0===a&amp;&amp;(a=!1);var o=n.stretchX,s=n.stretchY,l=n.content;this._lazyInitEmptyStyle();if(r instanceof ki||Mi&amp;&amp;r instanceof Mi){var c=t.browser.getImageData(r),u=c.width,f=c.height,h=c.data;this.style.addImage(e,{data:new t.RGBAImage({width:u,height:f},h),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));var p=r.width,d=r.height,g=r.data,m=r;this.style.addImage(e,{data:new t.RGBAImage({width:p,height:d},new Uint8Array(g)),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0,userImage:m}),m.onAdd&amp;&amp;m.onAdd(this,e)}},i.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error(&quot;The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.&quot;)));var i=r instanceof ki||Mi&amp;&amp;r instanceof Mi?t.browser.getImageData(r):r,a=i.width,o=i.height,s=i.data;if(void 0===a||void 0===o)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));if(a!==n.data.width||o!==n.data.height)return this.fire(new t.ErrorEvent(new Error(&quot;The width and height of the updated image must be that same as the previous version of the image&quot;)));var l=!(r instanceof ki||Mi&amp;&amp;r instanceof Mi);n.data.replace(s,l),this.style.updateImage(e,n)},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(&quot;Missing required image id&quot;))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},i.prototype.setFilter=function(t,e,r){return void 0===r&amp;&amp;(r={}),this.style.setFilter(t,e,r),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&amp;&amp;(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&amp;&amp;(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){&quot;rgb(250, 128, 114)&quot;!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue(&quot;background-color&quot;)&amp;&amp;t.warnOnce(&quot;This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.&quot;)},i.prototype._setupContainer=function(){var t=this._container;t.classList.add(&quot;mapboxgl-map&quot;),(this._missingCSSCanary=r.create(&quot;div&quot;,&quot;mapboxgl-canary&quot;,t)).style.visibility=&quot;hidden&quot;,this._detectMissingCSS();var e=this._canvasContainer=r.create(&quot;div&quot;,&quot;mapboxgl-canvas-container&quot;,t);this._interactive&amp;&amp;e.classList.add(&quot;mapboxgl-interactive&quot;),this._canvas=r.create(&quot;canvas&quot;,&quot;mapboxgl-canvas&quot;,e),this._canvas.addEventListener(&quot;webglcontextlost&quot;,this._contextLost,!1),this._canvas.addEventListener(&quot;webglcontextrestored&quot;,this._contextRestored,!1),this._canvas.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._canvas.setAttribute(&quot;aria-label&quot;,&quot;Map&quot;);var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-control-container&quot;,t),a=this._controlPositions={};[&quot;top-left&quot;,&quot;top-right&quot;,&quot;bottom-left&quot;,&quot;bottom-right&quot;].forEach((function(t){a[t]=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-&quot;+t,i)}))},i.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+&quot;px&quot;,this._canvas.style.height=r+&quot;px&quot;},i.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext(&quot;webgl&quot;,r)||this._canvas.getContext(&quot;experimental-webgl&quot;,r);n?(this.painter=new _n(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error(&quot;Failed to initialize WebGL&quot;)))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this.fire(new t.Event(&quot;webglcontextlost&quot;,{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(&quot;webglcontextrestored&quot;,{originalEvent:e}))},i.prototype.loaded=function(){return!this._styleDirty&amp;&amp;!this._sourcesDirty&amp;&amp;!!this.style&amp;&amp;this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var r,n=this,i=0,a=this.painter.context.extTimerQuery;if(this.listens(&quot;gpu-timing-frame&quot;)&amp;&amp;(r=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,r),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var o=!1;if(this.style&amp;&amp;this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var c=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();1===u&amp;&amp;u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&amp;&amp;this._sourcesDirty&amp;&amp;(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&amp;&amp;this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens(&quot;gpu-timing-layer&quot;)}),this.fire(new t.Event(&quot;render&quot;)),this.loaded()&amp;&amp;!this._loaded&amp;&amp;(this._loaded=!0,this.fire(new t.Event(&quot;load&quot;))),this.style&amp;&amp;(this.style.hasTransitions()||o)&amp;&amp;(this._styleDirty=!0),this.style&amp;&amp;!this._placementDirty&amp;&amp;this.style._releaseSymbolFadeTiles(),this.listens(&quot;gpu-timing-frame&quot;)){var f=t.browser.now()-i;a.endQueryEXT(a.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=a.getQueryObjectEXT(r,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r),n.fire(new t.Event(&quot;gpu-timing-frame&quot;,{cpuTime:f,gpuTime:e}))}),50)}if(this.listens(&quot;gpu-timing-layer&quot;)){var h=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(h);n.fire(new t.Event(&quot;gpu-timing-layer&quot;,{layerTimes:e}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&amp;&amp;this.loaded()&amp;&amp;(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new t.Event(&quot;idle&quot;))),this}},i.prototype.remove=function(){this._hash&amp;&amp;this._hash.remove();for(var e=0,r=this._controls;e&lt;r.length;e+=1){r[e].onRemove(this)}this._controls=[],this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&amp;&amp;(t.window.removeEventListener(&quot;resize&quot;,this._onWindowResize,!1),t.window.removeEventListener(&quot;online&quot;,this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension(&quot;WEBGL_lose_context&quot;);n&amp;&amp;n.loseContext(),Li(this._canvasContainer),Li(this._controlContainer),Li(this._missingCSSCanary),this._container.classList.remove(&quot;mapboxgl-map&quot;),this._removed=!0,this.fire(new t.Event(&quot;remove&quot;))},i.prototype.triggerRepaint=function(){var e=this;this.style&amp;&amp;!this._frame&amp;&amp;(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&amp;&amp;this.resize({originalEvent:t})._update()},a.showTileBoundaries.get=function(){return!!this._showTileBoundaries},a.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&amp;&amp;(this._showTileBoundaries=t,this._update())},a.showPadding.get=function(){return!!this._showPadding},a.showPadding.set=function(t){this._showPadding!==t&amp;&amp;(this._showPadding=t,this._update())},a.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},a.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&amp;&amp;(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},a.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},a.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&amp;&amp;(this._showOverdrawInspector=t,this._update())},a.repaint.get=function(){return!!this._repaint},a.repaint.set=function(t){this._repaint!==t&amp;&amp;(this._repaint=t,this.triggerRepaint())},a.vertices.get=function(){return!!this._vertices},a.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},a.version.get=function(){return t.version},Object.defineProperties(i.prototype,a),i}(xi);function Li(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}var Ci={showCompass:!0,showZoom:!0,visualizePitch:!1},Pi=function(e){var n=this;this.options=t.extend({},Ci,e),this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this.options.showZoom&amp;&amp;(t.bindAll([&quot;_setButtonTitle&quot;,&quot;_updateZoomButtons&quot;],this),this._zoomInButton=this._createButton(&quot;mapboxgl-ctrl-zoom-in&quot;,(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomInButton).setAttribute(&quot;aria-hidden&quot;,!0),this._zoomOutButton=this._createButton(&quot;mapboxgl-ctrl-zoom-out&quot;,(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomOutButton).setAttribute(&quot;aria-hidden&quot;,!0)),this.options.showCompass&amp;&amp;(t.bindAll([&quot;_rotateCompassArrow&quot;],this),this._compass=this._createButton(&quot;mapboxgl-ctrl-compass&quot;,(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._compass),this._compassIcon.setAttribute(&quot;aria-hidden&quot;,!0))};Pi.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Pi.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?&quot;scale(&quot;+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+&quot;) rotateX(&quot;+this._map.transform.pitch+&quot;deg) rotateZ(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;:&quot;rotate(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;;this._compassIcon.style.transform=t},Pi.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&amp;&amp;(this._setButtonTitle(this._zoomInButton,&quot;ZoomIn&quot;),this._setButtonTitle(this._zoomOutButton,&quot;ZoomOut&quot;),this._map.on(&quot;zoom&quot;,this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&amp;&amp;(this._setButtonTitle(this._compass,&quot;ResetBearing&quot;),this.options.visualizePitch&amp;&amp;this._map.on(&quot;pitch&quot;,this._rotateCompassArrow),this._map.on(&quot;rotate&quot;,this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ii(this._map,this._compass,this.options.visualizePitch)),this._container},Pi.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&amp;&amp;this._map.off(&quot;zoom&quot;,this._updateZoomButtons),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.off(&quot;pitch&quot;,this._rotateCompassArrow),this._map.off(&quot;rotate&quot;,this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Pi.prototype._createButton=function(t,e){var n=r.create(&quot;button&quot;,t,this._container);return n.type=&quot;button&quot;,n.addEventListener(&quot;click&quot;,e),n},Pi.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString(&quot;NavigationControl.&quot;+e);t.title=r,t.setAttribute(&quot;aria-label&quot;,r)};var Ii=function(e,n,i){void 0===i&amp;&amp;(i=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Xn({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&amp;&amp;(this.mousePitch=new Zn({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll([&quot;mousedown&quot;,&quot;mousemove&quot;,&quot;mouseup&quot;,&quot;touchstart&quot;,&quot;touchmove&quot;,&quot;touchend&quot;,&quot;reset&quot;],this),r.addEventListener(n,&quot;mousedown&quot;,this.mousedown),r.addEventListener(n,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.addEventListener(n,&quot;touchmove&quot;,this.touchmove),r.addEventListener(n,&quot;touchend&quot;,this.touchend),r.addEventListener(n,&quot;touchcancel&quot;,this.reset)};function Oi(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var i=new t.LngLat(e.lng-360,e.lat),a=new t.LngLat(e.lng+360,e.lat),o=n.locationPoint(e).distSqr(r);n.locationPoint(i).distSqr(r)&lt;o?e=i:n.locationPoint(a).distSqr(r)&lt;o&amp;&amp;(e=a)}for(;Math.abs(e.lng-n.center.lng)&gt;180;){var s=n.locationPoint(e);if(s.x&gt;=0&amp;&amp;s.y&gt;=0&amp;&amp;s.x&lt;=n.width&amp;&amp;s.y&lt;=n.height)break;e.lng&gt;n.center.lng?e.lng-=360:e.lng+=360}return e}Ii.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&amp;&amp;this.mousePitch.mousedown(t,e),r.disableDrag()},Ii.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&amp;&amp;n.bearingDelta&amp;&amp;r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&amp;&amp;i.pitchDelta&amp;&amp;r.setPitch(r.getPitch()+i.pitchDelta)}},Ii.prototype.off=function(){var t=this.element;r.removeEventListener(t,&quot;mousedown&quot;,this.mousedown),r.removeEventListener(t,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.removeEventListener(t,&quot;touchmove&quot;,this.touchmove),r.removeEventListener(t,&quot;touchend&quot;,this.touchend),r.removeEventListener(t,&quot;touchcancel&quot;,this.reset),this.offTemp()},Ii.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.removeEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ii.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.addEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ii.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ii.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&amp;&amp;this.mousePitch.mouseupWindow(t),this.offTemp()},Ii.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:&quot;mousedown&quot;,button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ii.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ii.prototype.touchend=function(t){0===t.targetTouches.length&amp;&amp;this._startPos&amp;&amp;this._lastPos&amp;&amp;this._startPos.dist(this._lastPos)&lt;this._clickTolerance&amp;&amp;this.element.click(),this.reset()},Ii.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&amp;&amp;this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var zi={center:&quot;translate(-50%,-50%)&quot;,top:&quot;translate(-50%,0)&quot;,&quot;top-left&quot;:&quot;translate(0,0)&quot;,&quot;top-right&quot;:&quot;translate(-100%,0)&quot;,bottom:&quot;translate(-50%,-100%)&quot;,&quot;bottom-left&quot;:&quot;translate(0,-100%)&quot;,&quot;bottom-right&quot;:&quot;translate(-100%,-100%)&quot;,left:&quot;translate(0,-50%)&quot;,right:&quot;translate(-100%,-50%)&quot;};function Di(t,e,r){var n=t.classList;for(var i in zi)n.remove(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+i);n.add(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+e)}var Ri,Fi=function(e){function n(n,i){var a=this;if(e.call(this),(n instanceof t.window.HTMLElement||i)&amp;&amp;(n=t.extend({element:n},i)),t.bindAll([&quot;_update&quot;,&quot;_onMove&quot;,&quot;_onUp&quot;,&quot;_addDragHandler&quot;,&quot;_onMapClick&quot;,&quot;_onKeyPress&quot;],this),this._anchor=n&amp;&amp;n.anchor||&quot;center&quot;,this._color=n&amp;&amp;n.color||&quot;#3FB1CE&quot;,this._draggable=n&amp;&amp;n.draggable||!1,this._state=&quot;inactive&quot;,this._rotation=n&amp;&amp;n.rotation||0,this._rotationAlignment=n&amp;&amp;n.rotationAlignment||&quot;auto&quot;,this._pitchAlignment=n&amp;&amp;n.pitchAlignment&amp;&amp;&quot;auto&quot;!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&amp;&amp;n.element)this._element=n.element,this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create(&quot;div&quot;),this._element.setAttribute(&quot;aria-label&quot;,&quot;Map marker&quot;);var o=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);o.setAttributeNS(null,&quot;display&quot;,&quot;block&quot;),o.setAttributeNS(null,&quot;height&quot;,&quot;41px&quot;),o.setAttributeNS(null,&quot;width&quot;,&quot;27px&quot;),o.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 27 41&quot;);var s=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);s.setAttributeNS(null,&quot;stroke&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;stroke-width&quot;,&quot;1&quot;),s.setAttributeNS(null,&quot;fill&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;fill-rule&quot;,&quot;evenodd&quot;);var l=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);l.setAttributeNS(null,&quot;fill-rule&quot;,&quot;nonzero&quot;);var c=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);c.setAttributeNS(null,&quot;transform&quot;,&quot;translate(3.0, 29.0)&quot;),c.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);for(var u=0,f=[{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;9.5&quot;,ry:&quot;4.77275007&quot;},{rx:&quot;8.5&quot;,ry:&quot;4.29549936&quot;},{rx:&quot;7.5&quot;,ry:&quot;3.81822308&quot;},{rx:&quot;6.5&quot;,ry:&quot;3.34094679&quot;},{rx:&quot;5.5&quot;,ry:&quot;2.86367051&quot;},{rx:&quot;4.5&quot;,ry:&quot;2.38636864&quot;}];u&lt;f.length;u+=1){var h=f[u],p=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;ellipse&quot;);p.setAttributeNS(null,&quot;opacity&quot;,&quot;0.04&quot;),p.setAttributeNS(null,&quot;cx&quot;,&quot;10.5&quot;),p.setAttributeNS(null,&quot;cy&quot;,&quot;5.80029008&quot;),p.setAttributeNS(null,&quot;rx&quot;,h.rx),p.setAttributeNS(null,&quot;ry&quot;,h.ry),c.appendChild(p)}var d=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);d.setAttributeNS(null,&quot;fill&quot;,this._color);var g=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);g.setAttributeNS(null,&quot;d&quot;,&quot;M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z&quot;),d.appendChild(g);var m=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);m.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),m.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);var v=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);v.setAttributeNS(null,&quot;d&quot;,&quot;M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z&quot;),m.appendChild(v);var y=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);y.setAttributeNS(null,&quot;transform&quot;,&quot;translate(6.0, 7.0)&quot;),y.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;);var x=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);x.setAttributeNS(null,&quot;transform&quot;,&quot;translate(8.0, 8.0)&quot;);var b=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);b.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;),b.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),b.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;);var _=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);_.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;),_.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;),x.appendChild(b),x.appendChild(_),l.appendChild(c),l.appendChild(d),l.appendChild(m),l.appendChild(y),l.appendChild(x),o.appendChild(l),this._element.appendChild(o),this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,-14])}this._element.classList.add(&quot;mapboxgl-marker&quot;),this._element.addEventListener(&quot;dragstart&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;mousedown&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;focus&quot;,(function(){var t=a._map.getContainer();t.scrollTop=0,t.scrollLeft=0})),Di(this._element,this._anchor,&quot;marker&quot;),this._popup=null}return e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(&quot;move&quot;,this._update),t.on(&quot;moveend&quot;,this._update),this.setDraggable(this._draggable),this._update(),this._map.on(&quot;click&quot;,this._onMapClick),this},n.prototype.remove=function(){return this._map&amp;&amp;(this._map.off(&quot;click&quot;,this._onMapClick),this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;moveend&quot;,this._update),this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler),this._map.off(&quot;mouseup&quot;,this._onUp),this._map.off(&quot;touchend&quot;,this._onUp),this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),delete this._map),r.remove(this._element),this._popup&amp;&amp;this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&amp;&amp;this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&amp;&amp;(this._popup.remove(),this._popup=null,this._element.removeEventListener(&quot;keypress&quot;,this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(&quot;tabindex&quot;)),t){if(!(&quot;offset&quot;in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],&quot;top-left&quot;:[0,0],&quot;top-right&quot;:[0,0],bottom:[0,-38.1],&quot;bottom-left&quot;:[e,-1*(24.6+e)],&quot;bottom-right&quot;:[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&amp;&amp;this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute(&quot;tabindex&quot;),this._originalTabIndex||this._element.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._element.addEventListener(&quot;keypress&quot;,this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;&quot;Space&quot;!==e&amp;&amp;&quot;Enter&quot;!==e&amp;&amp;32!==r&amp;&amp;13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&amp;&amp;(e===r||r.contains(e))&amp;&amp;this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&amp;&amp;(this._lngLat=Oi(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e=&quot;&quot;;&quot;viewport&quot;===this._rotationAlignment||&quot;auto&quot;===this._rotationAlignment?e=&quot;rotateZ(&quot;+this._rotation+&quot;deg)&quot;:&quot;map&quot;===this._rotationAlignment&amp;&amp;(e=&quot;rotateZ(&quot;+(this._rotation-this._map.getBearing())+&quot;deg)&quot;);var n=&quot;&quot;;&quot;viewport&quot;===this._pitchAlignment||&quot;auto&quot;===this._pitchAlignment?n=&quot;rotateX(0deg)&quot;:&quot;map&quot;===this._pitchAlignment&amp;&amp;(n=&quot;rotateX(&quot;+this._map.getPitch()+&quot;deg)&quot;),t&amp;&amp;&quot;moveend&quot;!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,zi[this._anchor]+&quot; translate(&quot;+this._pos.x+&quot;px, &quot;+this._pos.y+&quot;px) &quot;+n+&quot; &quot;+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=&quot;none&quot;,&quot;pending&quot;===this._state&amp;&amp;(this._state=&quot;active&quot;,this.fire(new t.Event(&quot;dragstart&quot;))),this.fire(new t.Event(&quot;drag&quot;))},n.prototype._onUp=function(){this._element.style.pointerEvents=&quot;auto&quot;,this._positionDelta=null,this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),&quot;active&quot;===this._state&amp;&amp;this.fire(new t.Event(&quot;dragend&quot;)),this._state=&quot;inactive&quot;},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&amp;&amp;(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state=&quot;pending&quot;,this._map.on(&quot;mousemove&quot;,this._onMove),this._map.on(&quot;touchmove&quot;,this._onMove),this._map.once(&quot;mouseup&quot;,this._onUp),this._map.once(&quot;touchend&quot;,this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&amp;&amp;(t?(this._map.on(&quot;mousedown&quot;,this._addDragHandler),this._map.on(&quot;touchstart&quot;,this._addDragHandler)):(this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||&quot;auto&quot;,this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&amp;&amp;&quot;auto&quot;!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Bi={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};var Ni=0,ji=!1,Ui=function(e){function n(r){e.call(this),this.options=t.extend({},Bi,r),t.bindAll([&quot;_onSuccess&quot;,&quot;_onError&quot;,&quot;_onZoom&quot;,&quot;_finish&quot;,&quot;_setupUI&quot;,&quot;_updateCamera&quot;,&quot;_updateMarker&quot;],this)}return e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),n=this._setupUI,void 0!==Ri?n(Ri):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:&quot;geolocation&quot;}).then((function(t){Ri=&quot;denied&quot;!==t.state,n(Ri)})):(Ri=!!t.window.navigator.geolocation,n(Ri)),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&amp;&amp;(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&amp;&amp;this._userLocationDotMarker&amp;&amp;this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&amp;&amp;this._accuracyCircleMarker&amp;&amp;this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off(&quot;zoom&quot;,this._onZoom),this._map=void 0,Ni=0,ji=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&amp;&amp;(r.longitude&lt;e.getWest()||r.longitude&gt;e.getEast()||r.latitude&lt;e.getSouth()||r.latitude&gt;e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;);break;case&quot;BACKGROUND&quot;:this._watchState=&quot;BACKGROUND_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;)}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event(&quot;outofmaxbounds&quot;,e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;BACKGROUND&quot;:case&quot;BACKGROUND_ERROR&quot;:this._watchState=&quot;BACKGROUND&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;)}this.options.showUserLocation&amp;&amp;&quot;OFF&quot;!==this._watchState&amp;&amp;this._updateMarker(e),this.options.trackUserLocation&amp;&amp;&quot;ACTIVE_LOCK&quot;!==this._watchState||this._updateCamera(e),this.options.showUserLocation&amp;&amp;this._dotElement.classList.remove(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;geolocate&quot;,e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+&quot;px&quot;,this._circleElement.style.height=i+&quot;px&quot;},n.prototype._onZoom=function(){this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.disabled=!0;var r=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.title=r,this._geolocateButton.setAttribute(&quot;aria-label&quot;,r),void 0!==this._geolocationWatchID&amp;&amp;this._clearWatch()}else{if(3===e.code&amp;&amp;ji)return;this._setErrorState()}&quot;OFF&quot;!==this._watchState&amp;&amp;this.options.showUserLocation&amp;&amp;this._dotElement.classList.add(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;error&quot;,e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&amp;&amp;clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this._geolocateButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-geolocate&quot;,this._container),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._geolocateButton).setAttribute(&quot;aria-hidden&quot;,!0),this._geolocateButton.type=&quot;button&quot;,!1===e){t.warnOnce(&quot;Geolocation support is not available so the GeolocateControl will be disabled.&quot;);var i=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute(&quot;aria-label&quot;,i)}else{var a=this._map._getUIString(&quot;GeolocateControl.FindMyLocation&quot;);this._geolocateButton.title=a,this._geolocateButton.setAttribute(&quot;aria-label&quot;,a)}this.options.trackUserLocation&amp;&amp;(this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this._watchState=&quot;OFF&quot;),this.options.showUserLocation&amp;&amp;(this._dotElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-dot&quot;),this._userLocationDotMarker=new Fi(this._dotElement),this._circleElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-accuracy-circle&quot;),this._accuracyCircleMarker=new Fi({element:this._circleElement,pitchAlignment:&quot;map&quot;}),this.options.trackUserLocation&amp;&amp;(this._watchState=&quot;OFF&quot;),this._map.on(&quot;zoom&quot;,this._onZoom)),this._geolocateButton.addEventListener(&quot;click&quot;,this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&amp;&amp;this._map.on(&quot;movestart&quot;,(function(e){var r=e.originalEvent&amp;&amp;&quot;resize&quot;===e.originalEvent.type;e.geolocateSource||&quot;ACTIVE_LOCK&quot;!==n._watchState||r||(n._watchState=&quot;BACKGROUND&quot;,n._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;),n._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),n.fire(new t.Event(&quot;trackuserlocationend&quot;)))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce(&quot;Geolocate control triggered before added to a map&quot;),!1;if(this.options.trackUserLocation){switch(this._watchState){case&quot;OFF&quot;:this._watchState=&quot;WAITING_ACTIVE&quot;,this.fire(new t.Event(&quot;trackuserlocationstart&quot;));break;case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:case&quot;BACKGROUND_ERROR&quot;:Ni--,ji=!1,this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this.fire(new t.Event(&quot;trackuserlocationend&quot;));break;case&quot;BACKGROUND&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._lastKnownPosition&amp;&amp;this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(&quot;trackuserlocationstart&quot;))}switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;BACKGROUND&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;);break;case&quot;BACKGROUND_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;)}if(&quot;OFF&quot;===this._watchState&amp;&amp;void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;true&quot;),++Ni&gt;1?(e={maximumAge:6e5,timeout:0},ji=!0):(e=this.options.positionOptions,ji=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this.options.showUserLocation&amp;&amp;this._updateMarker(null)},n}(t.Evented),Vi={maxWidth:100,unit:&quot;metric&quot;},qi=function(e){this.options=t.extend({},Vi,e),t.bindAll([&quot;_onMove&quot;,&quot;setUnit&quot;],this)};function Hi(t,e,r){var n=r&amp;&amp;r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&amp;&amp;&quot;imperial&quot;===r.unit){var l=3.2808*s;if(l&gt;5280)Gi(e,n,l/5280,t._getUIString(&quot;ScaleControl.Miles&quot;));else Gi(e,n,l,t._getUIString(&quot;ScaleControl.Feet&quot;))}else if(r&amp;&amp;&quot;nautical&quot;===r.unit){Gi(e,n,s/1852,t._getUIString(&quot;ScaleControl.NauticalMiles&quot;))}else s&gt;=1e3?Gi(e,n,s/1e3,t._getUIString(&quot;ScaleControl.Kilometers&quot;)):Gi(e,n,s,t._getUIString(&quot;ScaleControl.Meters&quot;))}function Gi(t,e,r,n){var i,a,o,s=(i=r,a=Math.pow(10,(&quot;&quot;+Math.floor(i)).length-1),o=(o=i/a)&gt;=10?10:o&gt;=5?5:o&gt;=3?3:o&gt;=2?2:o&gt;=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(o),a*o),l=s/r;t.style.width=e*l+&quot;px&quot;,t.innerHTML=s+&quot;&amp;nbsp;&quot;+n}qi.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},qi.prototype._onMove=function(){Hi(this._map,this._container,this.options)},qi.prototype.onAdd=function(t){return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-scale&quot;,t.getContainer()),this._map.on(&quot;move&quot;,this._onMove),this._onMove(),this._container},qi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;move&quot;,this._onMove),this._map=void 0},qi.prototype.setUnit=function(t){this.options.unit=t,Hi(this._map,this._container,this.options)};var Yi=function(e){this._fullscreen=!1,e&amp;&amp;e.container&amp;&amp;(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce(&quot;Full screen control 'container' must be a DOM element.&quot;)),t.bindAll([&quot;_onClickFullscreen&quot;,&quot;_changeIcon&quot;],this),&quot;onfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;fullscreenchange&quot;:&quot;onmozfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;mozfullscreenchange&quot;:&quot;onwebkitfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;webkitfullscreenchange&quot;:&quot;onmsfullscreenchange&quot;in t.window.document&amp;&amp;(this._fullscreenchange=&quot;MSFullscreenChange&quot;)};Yi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display=&quot;none&quot;,t.warnOnce(&quot;This device does not support fullscreen mode.&quot;)),this._controlContainer},Yi.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Yi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Yi.prototype._setupUI=function(){var e=this._fullscreenButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-fullscreen&quot;,this._controlContainer);r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,e).setAttribute(&quot;aria-hidden&quot;,!0),e.type=&quot;button&quot;,this._updateTitle(),this._fullscreenButton.addEventListener(&quot;click&quot;,this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Yi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute(&quot;aria-label&quot;,t),this._fullscreenButton.title=t},Yi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?&quot;FullscreenControl.Exit&quot;:&quot;FullscreenControl.Enter&quot;)},Yi.prototype._isFullscreen=function(){return this._fullscreen},Yi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&amp;&amp;(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-shrink&quot;),this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-fullscreen&quot;),this._updateTitle())},Yi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&amp;&amp;t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&amp;&amp;this._container.webkitRequestFullscreen()};var Wi={closeButton:!0,closeOnClick:!0,className:&quot;&quot;,maxWidth:&quot;240px&quot;},Xi=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Wi),r),t.bindAll([&quot;_update&quot;,&quot;_onClose&quot;,&quot;remove&quot;,&quot;_onMouseMove&quot;,&quot;_onMouseUp&quot;,&quot;_onDrag&quot;],this)}return e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(e){return this._map&amp;&amp;this.remove(),this._map=e,this.options.closeOnClick&amp;&amp;this._map.on(&quot;click&quot;,this._onClose),this.options.closeOnMove&amp;&amp;this._map.on(&quot;move&quot;,this._onClose),this._map.on(&quot;remove&quot;,this.remove),this._update(),this._trackPointer?(this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;mouseup&quot;,this._onMouseUp),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)):this._map.on(&quot;move&quot;,this._update),this.fire(new t.Event(&quot;open&quot;)),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&amp;&amp;r.remove(this._content),this._container&amp;&amp;(r.remove(this._container),delete this._container),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;move&quot;,this._onClose),this._map.off(&quot;click&quot;,this._onClose),this._map.off(&quot;remove&quot;,this.remove),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._map.off(&quot;mouseup&quot;,this._onMouseUp),this._map.off(&quot;drag&quot;,this._onDrag),delete this._map),this.fire(new t.Event(&quot;close&quot;)),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&amp;&amp;(this._map.on(&quot;move&quot;,this._update),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._container&amp;&amp;this._container.classList.remove(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.remove(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;drag&quot;,this._onDrag),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement(&quot;body&quot;);for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&amp;&amp;this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&amp;&amp;this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&amp;&amp;this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&amp;&amp;r.remove(this._content),this._content=r.create(&quot;div&quot;,&quot;mapboxgl-popup-content&quot;,this._container),this.options.closeButton&amp;&amp;(this._closeButton=r.create(&quot;button&quot;,&quot;mapboxgl-popup-close-button&quot;,this._content),this._closeButton.type=&quot;button&quot;,this._closeButton.setAttribute(&quot;aria-label&quot;,&quot;Close popup&quot;),this._closeButton.innerHTML=&quot;&amp;#215;&quot;,this._closeButton.addEventListener(&quot;click&quot;,this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this,i=this._lngLat||this._trackPointer;if(this._map&amp;&amp;i&amp;&amp;this._content&amp;&amp;(this._container||(this._container=r.create(&quot;div&quot;,&quot;mapboxgl-popup&quot;,this._map.getContainer()),this._tip=r.create(&quot;div&quot;,&quot;mapboxgl-popup-tip&quot;,this._container),this._container.appendChild(this._content),this.options.className&amp;&amp;this.options.className.split(&quot; &quot;).forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;)),this.options.maxWidth&amp;&amp;this._container.style.maxWidth!==this.options.maxWidth&amp;&amp;(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&amp;&amp;!this._trackPointer&amp;&amp;(this._lngLat=Oi(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var a=this._pos=this._trackPointer&amp;&amp;e?e:this._map.project(this._lngLat),o=this.options.anchor,s=function e(r){if(r){if(&quot;number&quot;==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),&quot;top-left&quot;:new t.Point(n,n),&quot;top-right&quot;:new t.Point(-n,n),bottom:new t.Point(0,-r),&quot;bottom-left&quot;:new t.Point(n,-n),&quot;bottom-right&quot;:new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var i=t.Point.convert(r);return{center:i,top:i,&quot;top-left&quot;:i,&quot;top-right&quot;:i,bottom:i,&quot;bottom-left&quot;:i,&quot;bottom-right&quot;:i,left:i,right:i}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),&quot;top-left&quot;:t.Point.convert(r[&quot;top-left&quot;]||[0,0]),&quot;top-right&quot;:t.Point.convert(r[&quot;top-right&quot;]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),&quot;bottom-left&quot;:t.Point.convert(r[&quot;bottom-left&quot;]||[0,0]),&quot;bottom-right&quot;:t.Point.convert(r[&quot;bottom-right&quot;]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!o){var l,c=this._container.offsetWidth,u=this._container.offsetHeight;l=a.y+s.bottom.y&lt;u?[&quot;top&quot;]:a.y&gt;this._map.transform.height-u?[&quot;bottom&quot;]:[],a.x&lt;c/2?l.push(&quot;left&quot;):a.x&gt;this._map.transform.width-c/2&amp;&amp;l.push(&quot;right&quot;),o=0===l.length?&quot;bottom&quot;:l.join(&quot;-&quot;)}var f=a.add(s[o]).round();r.setTransform(this._container,zi[o]+&quot; translate(&quot;+f.x+&quot;px,&quot;+f.y+&quot;px)&quot;),Di(this._container,o,&quot;popup&quot;)}},n.prototype._onClose=function(){this.remove()},n}(t.Evented);var Zi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Ei,NavigationControl:Pi,GeolocateControl:Ui,AttributionControl:bi,ScaleControl:qi,FullscreenControl:Yi,Popup:Xi,Marker:Fi,Style:He,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(zt)},clearPrewarmedResources:function(){var t=Rt;t&amp;&amp;(t.isPreloaded()&amp;&amp;1===t.numActive()?(t.release(zt),Rt=null):console.warn(&quot;Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()&quot;))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:&quot;&quot;};return Zi})),r}))},{}],462:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1&lt;&lt;t+1,r=new Array(e),n=0;n&lt;e;++n)r[n]=a(t,n);return r};var n=t(&quot;convex-hull&quot;);function i(t,e,r){for(var n=new Array(t),i=0;i&lt;t;++i)n[i]=0,i===e&amp;&amp;(n[i]+=.5),i===r&amp;&amp;(n[i]+=.5);return n}function a(t,e){if(0===e||e===(1&lt;&lt;t+1)-1)return[];for(var r=[],a=[],o=0;o&lt;=t;++o)if(e&amp;1&lt;&lt;o){r.push(i(t,o-1,o-1)),a.push(null);for(var s=0;s&lt;=t;++s)~e&amp;1&lt;&lt;s&amp;&amp;(r.push(i(t,o-1,s-1)),a.push([o,s]))}var l=n(r),c=[];t:for(o=0;o&lt;l.length;++o){var u=l[o],f=[];for(s=0;s&lt;u.length;++s){if(!a[u[s]])continue t;f.push(a[u[s]].slice())}c.push(f)}return c}},{&quot;convex-hull&quot;:141}],463:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;gl-mat4/create&quot;),a=t(&quot;gl-mat4/clone&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;gl-mat4/invert&quot;),l=t(&quot;gl-mat4/transpose&quot;),c={length:t(&quot;gl-vec3/length&quot;),normalize:t(&quot;gl-vec3/normalize&quot;),dot:t(&quot;gl-vec3/dot&quot;),cross:t(&quot;gl-vec3/cross&quot;)},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function g(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,m,v){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),m||(m=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)&lt;1e-8))return!1;var y,x,b,_,w,T,k,A=u[3],M=u[7],S=u[11],E=u[12],L=u[13],C=u[14],P=u[15];if(0!==A||0!==M||0!==S){if(h[0]=A,h[1]=M,h[2]=S,h[3]=P,!s(f,f))return!1;l(f,f),y=m,b=f,_=(x=h)[0],w=x[1],T=x[2],k=x[3],y[0]=b[0]*_+b[4]*w+b[8]*T+b[12]*k,y[1]=b[1]*_+b[5]*w+b[9]*T+b[13]*k,y[2]=b[2]*_+b[6]*w+b[10]*T+b[14]*k,y[3]=b[3]*_+b[7]*w+b[11]*T+b[15]*k}else m[0]=m[1]=m[2]=0,m[3]=1;if(e[0]=E,e[1]=L,e[2]=C,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),g(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),g(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),g(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)&lt;0)for(var I=0;I&lt;3;I++)r[I]*=-1,p[I][0]*=-1,p[I][1]*=-1,p[I][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]&gt;p[1][2]&amp;&amp;(v[0]=-v[0]),p[0][2]&gt;p[2][0]&amp;&amp;(v[1]=-v[1]),p[1][0]&gt;p[0][1]&amp;&amp;(v[2]=-v[2]),!0}},{&quot;./normalize&quot;:464,&quot;gl-mat4/clone&quot;:284,&quot;gl-mat4/create&quot;:286,&quot;gl-mat4/determinant&quot;:287,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/transpose&quot;:312,&quot;gl-vec3/cross&quot;:368,&quot;gl-vec3/dot&quot;:373,&quot;gl-vec3/length&quot;:383,&quot;gl-vec3/normalize&quot;:390}],464:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i&lt;16;i++)t[i]=e[i]*n;return!0}},{}],465:[function(t,e,r){var n=t(&quot;gl-vec3/lerp&quot;),i=t(&quot;mat4-recompose&quot;),a=t(&quot;mat4-decompose&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;quat-slerp&quot;),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p)&amp;&amp;(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},{&quot;gl-mat4/determinant&quot;:287,&quot;gl-vec3/lerp&quot;:384,&quot;mat4-decompose&quot;:463,&quot;mat4-recompose&quot;:466,&quot;quat-slerp&quot;:529}],466:[function(t,e,r){var n={identity:t(&quot;gl-mat4/identity&quot;),translate:t(&quot;gl-mat4/translate&quot;),multiply:t(&quot;gl-mat4/multiply&quot;),create:t(&quot;gl-mat4/create&quot;),scale:t(&quot;gl-mat4/scale&quot;),fromRotationTranslation:t(&quot;gl-mat4/fromRotationTranslation&quot;)},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&amp;&amp;(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&amp;&amp;(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&amp;&amp;(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{&quot;gl-mat4/create&quot;:286,&quot;gl-mat4/fromRotationTranslation&quot;:290,&quot;gl-mat4/identity&quot;:297,&quot;gl-mat4/multiply&quot;:301,&quot;gl-mat4/scale&quot;:309,&quot;gl-mat4/translate&quot;:311}],467:[function(t,e,r){&quot;use strict&quot;;e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],468:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;mat4-interpolate&quot;),a=t(&quot;gl-mat4/invert&quot;),o=t(&quot;gl-mat4/rotateX&quot;),s=t(&quot;gl-mat4/rotateY&quot;),l=t(&quot;gl-mat4/rotateZ&quot;),c=t(&quot;gl-mat4/lookAt&quot;),u=t(&quot;gl-mat4/translate&quot;),f=(t(&quot;gl-mat4/scale&quot;),t(&quot;gl-vec3/normalize&quot;)),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r&lt;0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c&lt;16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c&lt;16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c&lt;16;++c)d[c]=s[l++],p=p&amp;&amp;h[c]===d[c];if(u&lt;1e-6||p)for(c=0;c&lt;16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var m=this.computedInverse;a(m,o);var v=this.computedEye,y=m[15];v[0]=m[12]/y,v[1]=m[13]/y,v[2]=m[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c&lt;3;++c)x[c]=v[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t&lt;this.lastT())){for(var e=this._components,r=e.length-16,n=0;n&lt;16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e&lt;0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a&lt;3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&amp;&amp;s(i,i,e),r&amp;&amp;o(i,i,r),n&amp;&amp;l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var g=[0,0,0];d.pan=function(t,e,r,n){g[0]=-(e||0),g[1]=-(r||0),g[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,g),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){g[0]=e||0,g[1]=r||0,g[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,g),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t&lt;this.lastT())){this._time.push(t);for(var r=0;r&lt;16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{&quot;binary-search-bounds&quot;:103,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/lookAt&quot;:300,&quot;gl-mat4/rotateX&quot;:306,&quot;gl-mat4/rotateY&quot;:307,&quot;gl-mat4/rotateZ&quot;:308,&quot;gl-mat4/scale&quot;:309,&quot;gl-mat4/translate&quot;:311,&quot;gl-vec3/normalize&quot;:390,&quot;mat4-interpolate&quot;:465}],469:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;3){for(var r=new Array(e),i=0;i&lt;e;++i)r[i]=i;return 2===e&amp;&amp;t[0][0]===t[1][0]&amp;&amp;t[0][1]===t[1][1]?[0]:r}var a=new Array(e);for(i=0;i&lt;e;++i)a[i]=i;a.sort((function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]}));var o=[a[0],a[1]],s=[a[0],a[1]];for(i=2;i&lt;e;++i){for(var l=a[i],c=t[l],u=o.length;u&gt;1&amp;&amp;n(t[o[u-2]],t[o[u-1]],c)&lt;=0;)u-=1,o.pop();for(o.push(l),u=s.length;u&gt;1&amp;&amp;n(t[s[u-2]],t[s[u-1]],c)&gt;=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,h=(i=0,o.length);i&lt;h;++i)r[f++]=o[i];for(var p=s.length-2;p&gt;0;--p)r[f++]=s[p];return r};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],470:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return&quot;altKey&quot;in t&amp;&amp;(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),&quot;shiftKey&quot;in t&amp;&amp;(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),&quot;ctrlKey&quot;in t&amp;&amp;(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),&quot;metaKey&quot;in t&amp;&amp;(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);&quot;buttons&quot;in s&amp;&amp;(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&amp;&amp;(r=0|t,i=c||0,a=u||0,e&amp;&amp;e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&amp;&amp;(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&amp;&amp;e(0,0,0,o))}function h(t){l(t)&amp;&amp;e&amp;&amp;e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function g(t){c(r&amp;~n.buttons(t),t)}function m(){s||(s=!0,t.addEventListener(&quot;mousemove&quot;,p),t.addEventListener(&quot;mousedown&quot;,d),t.addEventListener(&quot;mouseup&quot;,g),t.addEventListener(&quot;mouseleave&quot;,u),t.addEventListener(&quot;mouseenter&quot;,u),t.addEventListener(&quot;mouseout&quot;,u),t.addEventListener(&quot;mouseover&quot;,u),t.addEventListener(&quot;blur&quot;,f),t.addEventListener(&quot;keyup&quot;,h),t.addEventListener(&quot;keydown&quot;,h),t.addEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.addEventListener(&quot;blur&quot;,f),window.addEventListener(&quot;keyup&quot;,h),window.addEventListener(&quot;keydown&quot;,h),window.addEventListener(&quot;keypress&quot;,h)))}m();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?m():function(){if(!s)return;s=!1,t.removeEventListener(&quot;mousemove&quot;,p),t.removeEventListener(&quot;mousedown&quot;,d),t.removeEventListener(&quot;mouseup&quot;,g),t.removeEventListener(&quot;mouseleave&quot;,u),t.removeEventListener(&quot;mouseenter&quot;,u),t.removeEventListener(&quot;mouseout&quot;,u),t.removeEventListener(&quot;mouseover&quot;,u),t.removeEventListener(&quot;blur&quot;,f),t.removeEventListener(&quot;keyup&quot;,h),t.removeEventListener(&quot;keydown&quot;,h),t.removeEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.removeEventListener(&quot;blur&quot;,f),window.removeEventListener(&quot;keyup&quot;,h),window.removeEventListener(&quot;keydown&quot;,h),window.removeEventListener(&quot;keypress&quot;,h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t(&quot;mouse-event&quot;)},{&quot;mouse-event&quot;:472}],471:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],472:[function(t,e,r){&quot;use strict&quot;;function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(&quot;object&quot;==typeof t){if(&quot;buttons&quot;in t)return t.buttons;if(&quot;which&quot;in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e&gt;0)return 1&lt;&lt;e-1}else if(&quot;button&quot;in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e&gt;=0)return 1&lt;&lt;e}}return 0},r.element=n,r.x=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetX&quot;in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetY&quot;in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],473:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;to-px&quot;);e.exports=function(t,e,r){&quot;function&quot;==typeof t&amp;&amp;(r=!!e,e=t,t=window);var i=n(&quot;ex&quot;,t),a=function(t){r&amp;&amp;t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener(&quot;wheel&quot;,a),a}},{&quot;to-px&quot;:600}],474:[function(t,e,r){(function(t,r){(function(){
/*! Native Promise Only
    v0.8.1 (c) Kyle Simpson
    MIT License: http://getify.mit-license.org
*/
!function(t,r,n){r[t]=r[t]||n(),void 0!==e&amp;&amp;e.exports&amp;&amp;(e.exports=r[t])}(&quot;Promise&quot;,void 0!==t?t:this,(function(){&quot;use strict&quot;;var t,e,n,i=Object.prototype.toString,a=void 0!==r?function(t){return r(t)}:setTimeout;try{Object.defineProperty({},&quot;x&quot;,{}),t=function(t,e,r,n){return Object.defineProperty(t,e,{value:r,writable:!0,configurable:!1!==n})}}catch(e){t=function(t,e,r){return t[e]=r,t}}function o(t,r){n.add(t,r),e||(e=a(n.drain))}function s(t){var e,r=typeof t;return null==t||&quot;object&quot;!=r&amp;&amp;&quot;function&quot;!=r||(e=t.then),&quot;function&quot;==typeof e&amp;&amp;e}function l(){for(var t=0;t&lt;this.chain.length;t++)c(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function c(t,e,r){var n,i;try{!1===e?r.reject(t.msg):(n=!0===e?t.msg:e.call(void 0,t.msg))===r.promise?r.reject(TypeError(&quot;Promise-chain cycle&quot;)):(i=s(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(t){r.reject(t)}}function u(t){var e,r=this;if(!r.triggered){r.triggered=!0,r.def&amp;&amp;(r=r.def);try{(e=s(t))?o((function(){var n=new p(r);try{e.call(t,(function(){u.apply(n,arguments)}),(function(){f.apply(n,arguments)}))}catch(t){f.call(n,t)}})):(r.msg=t,r.state=1,r.chain.length&gt;0&amp;&amp;o(l,r))}catch(t){f.call(new p(r),t)}}}function f(t){var e=this;e.triggered||(e.triggered=!0,e.def&amp;&amp;(e=e.def),e.msg=t,e.state=2,e.chain.length&gt;0&amp;&amp;o(l,e))}function h(t,e,r,n){for(var i=0;i&lt;e.length;i++)!function(i){t.resolve(e[i]).then((function(t){r(i,t)}),n)}(i)}function p(t){this.def=t,this.triggered=!1}function d(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(t){if(&quot;function&quot;!=typeof t)throw TypeError(&quot;Not a function&quot;);if(0!==this.__NPO__)throw TypeError(&quot;Not a promise&quot;);this.__NPO__=1;var e=new d(this);this.then=function(t,r){var n={success:&quot;function&quot;!=typeof t||t,failure:&quot;function&quot;==typeof r&amp;&amp;r};return n.promise=new this.constructor((function(t,e){if(&quot;function&quot;!=typeof t||&quot;function&quot;!=typeof e)throw TypeError(&quot;Not a function&quot;);n.resolve=t,n.reject=e})),e.chain.push(n),0!==e.state&amp;&amp;o(l,e),n.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,(function(t){u.call(e,t)}),(function(t){f.call(e,t)}))}catch(t){f.call(e,t)}}n=function(){var t,r,n;function i(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,a){n=new i(e,a),r?r.next=n:t=n,r=n,n=void 0},drain:function(){var n=t;for(t=r=e=void 0;n;)n.fn.call(n.self),n=n.next}}}();var m=t({},&quot;constructor&quot;,g,!1);return g.prototype=m,t(m,&quot;__NPO__&quot;,0,!1),t(g,&quot;resolve&quot;,(function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;1===t.__NPO__?t:new this((function(e,r){if(&quot;function&quot;!=typeof e||&quot;function&quot;!=typeof r)throw TypeError(&quot;Not a function&quot;);e(t)}))})),t(g,&quot;reject&quot;,(function(t){return new this((function(e,r){if(&quot;function&quot;!=typeof e||&quot;function&quot;!=typeof r)throw TypeError(&quot;Not a function&quot;);r(t)}))})),t(g,&quot;all&quot;,(function(t){var e=this;return&quot;[object Array]&quot;!=i.call(t)?e.reject(TypeError(&quot;Not an array&quot;)):0===t.length?e.resolve([]):new e((function(r,n){if(&quot;function&quot;!=typeof r||&quot;function&quot;!=typeof n)throw TypeError(&quot;Not a function&quot;);var i=t.length,a=Array(i),o=0;h(e,t,(function(t,e){a[t]=e,++o===i&amp;&amp;r(a)}),n)}))})),t(g,&quot;race&quot;,(function(t){var e=this;return&quot;[object Array]&quot;!=i.call(t)?e.reject(TypeError(&quot;Not an array&quot;)):new e((function(r,n){if(&quot;function&quot;!=typeof r||&quot;function&quot;!=typeof n)throw TypeError(&quot;Not a function&quot;);h(e,t,(function(t,e){r(e)}),n)}))})),g}))}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{},t(&quot;timers&quot;).setImmediate)},{timers:597}],475:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;);function i(t){return&quot;a&quot;+t}function a(t){return&quot;d&quot;+t}function o(t,e){return&quot;c&quot;+t+&quot;_&quot;+e}function s(t){return&quot;s&quot;+t}function l(t,e){return&quot;t&quot;+t+&quot;_&quot;+e}function c(t){return&quot;o&quot;+t}function u(t){return&quot;x&quot;+t}function f(t){return&quot;p&quot;+t}function h(t,e){return&quot;d&quot;+t+&quot;_&quot;+e}function p(t){return&quot;i&quot;+t}function d(t,e){return&quot;u&quot;+t+&quot;_&quot;+e}function g(t){return&quot;b&quot;+t}function m(t){return&quot;y&quot;+t}function v(t){return&quot;e&quot;+t}function y(t){return&quot;v&quot;+t}e.exports=function(t){function e(t){throw new Error(&quot;ndarray-extract-contour: &quot;+t)}&quot;object&quot;!=typeof t&amp;&amp;e(&quot;Must specify arguments&quot;);var r=t.order;Array.isArray(r)||e(&quot;Must specify order&quot;);var b=t.arrayArguments||1;b&lt;1&amp;&amp;e(&quot;Must have at least one array argument&quot;);var _=t.scalarArguments||0;_&lt;0&amp;&amp;e(&quot;Scalar arg count must be &gt; 0&quot;);&quot;function&quot;!=typeof t.vertex&amp;&amp;e(&quot;Must specify vertex creation function&quot;);&quot;function&quot;!=typeof t.cell&amp;&amp;e(&quot;Must specify cell creation function&quot;);&quot;function&quot;!=typeof t.phase&amp;&amp;e(&quot;Must specify phase function&quot;);for(var w=t.getters||[],T=new Array(b),k=0;k&lt;b;++k)w.indexOf(k)&gt;=0?T[k]=!0:T[k]=!1;return function(t,e,r,b,_,w){var T=w.length,k=_.length;if(k&lt;2)throw new Error(&quot;ndarray-extract-contour: Dimension must be at least 2&quot;);for(var A=&quot;extractContour&quot;+_.join(&quot;_&quot;),M=[],S=[],E=[],L=0;L&lt;T;++L)E.push(i(L));for(L=0;L&lt;b;++L)E.push(u(L));for(L=0;L&lt;k;++L)S.push(s(L)+&quot;=&quot;+i(0)+&quot;.shape[&quot;+L+&quot;]|0&quot;);for(L=0;L&lt;T;++L){S.push(a(L)+&quot;=&quot;+i(L)+&quot;.data&quot;,c(L)+&quot;=&quot;+i(L)+&quot;.offset|0&quot;);for(var C=0;C&lt;k;++C)S.push(l(L,C)+&quot;=&quot;+i(L)+&quot;.stride[&quot;+C+&quot;]|0&quot;)}for(L=0;L&lt;T;++L){S.push(f(L)+&quot;=&quot;+c(L)),S.push(o(L,0));for(C=1;C&lt;1&lt;&lt;k;++C){for(var P=[],I=0;I&lt;k;++I)C&amp;1&lt;&lt;I&amp;&amp;P.push(&quot;-&quot;+l(L,I));S.push(h(L,C)+&quot;=(&quot;+P.join(&quot;&quot;)+&quot;)|0&quot;),S.push(o(L,C)+&quot;=0&quot;)}}for(L=0;L&lt;T;++L)for(C=0;C&lt;k;++C){var O=[l(L,_[C])];C&gt;0&amp;&amp;O.push(l(L,_[C-1])+&quot;*&quot;+s(_[C-1])),S.push(d(L,_[C])+&quot;=(&quot;+O.join(&quot;-&quot;)+&quot;)|0&quot;)}for(L=0;L&lt;k;++L)S.push(p(L)+&quot;=0&quot;);S.push(&quot;N=0&quot;);var z=[&quot;2&quot;];for(L=k-2;L&gt;=0;--L)z.push(s(_[L]));S.push(&quot;Q=(&quot;+z.join(&quot;*&quot;)+&quot;)|0&quot;,&quot;P=mallocUint32(Q)&quot;,&quot;V=mallocUint32(Q)&quot;,&quot;X=0&quot;),S.push(g(0)+&quot;=0&quot;);for(C=1;C&lt;1&lt;&lt;k;++C){var D=[],R=[];for(I=0;I&lt;k;++I)C&amp;1&lt;&lt;I&amp;&amp;(0===R.length?D.push(&quot;1&quot;):D.unshift(R.join(&quot;*&quot;))),R.push(s(_[I]));var F=&quot;&quot;;D[0].indexOf(s(_[k-2]))&lt;0&amp;&amp;(F=&quot;-&quot;);var B=x(k,C,_);S.push(v(B)+&quot;=(-&quot;+D.join(&quot;-&quot;)+&quot;)|0&quot;,m(B)+&quot;=(&quot;+F+D.join(&quot;-&quot;)+&quot;)|0&quot;,g(B)+&quot;=0&quot;)}function N(t,e){M.push(&quot;for(&quot;,p(_[t]),&quot;=&quot;,e,&quot;;&quot;,p(_[t]),&quot;&lt;&quot;,s(_[t]),&quot;;&quot;,&quot;++&quot;,p(_[t]),&quot;){&quot;)}function j(t){for(var e=0;e&lt;T;++e)M.push(f(e),&quot;+=&quot;,d(e,_[t]),&quot;;&quot;);M.push(&quot;}&quot;)}function U(){for(var t=1;t&lt;1&lt;&lt;k;++t)M.push(&quot;T&quot;,&quot;=&quot;,v(t),&quot;;&quot;,v(t),&quot;=&quot;,m(t),&quot;;&quot;,m(t),&quot;=&quot;,&quot;T&quot;,&quot;;&quot;)}S.push(y(0)+&quot;=0&quot;,&quot;T=0&quot;),function t(e,r){if(e&lt;0)!function(t){for(var e=0;e&lt;T;++e)w[e]?M.push(o(e,0),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;);&quot;):M.push(o(e,0),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;];&quot;);var r=[];for(e=0;e&lt;T;++e)r.push(o(e,0));for(e=0;e&lt;b;++e)r.push(u(e));M.push(g(0),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=phase(&quot;,r.join(),&quot;);&quot;);for(var n=1;n&lt;1&lt;&lt;k;++n)M.push(g(n),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;+&quot;,v(n),&quot;];&quot;);var i=[];for(n=1;n&lt;1&lt;&lt;k;++n)i.push(&quot;(&quot;+g(0)+&quot;!==&quot;+g(n)+&quot;)&quot;);M.push(&quot;if(&quot;,i.join(&quot;||&quot;),&quot;){&quot;);var s=[];for(e=0;e&lt;k;++e)s.push(p(e));for(e=0;e&lt;T;++e){s.push(o(e,0));for(n=1;n&lt;1&lt;&lt;k;++n)w[e]?M.push(o(e,n),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;+&quot;,h(e,n),&quot;);&quot;):M.push(o(e,n),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;+&quot;,h(e,n),&quot;];&quot;),s.push(o(e,n))}for(e=0;e&lt;1&lt;&lt;k;++e)s.push(g(e));for(e=0;e&lt;b;++e)s.push(u(e));M.push(&quot;vertex(&quot;,s.join(),&quot;);&quot;,y(0),&quot;=&quot;,&quot;V&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=&quot;,&quot;N&quot;,&quot;++;&quot;);var l=(1&lt;&lt;k)-1,c=g(l);for(n=0;n&lt;k;++n)if(0==(t&amp;~(1&lt;&lt;n))){for(var d=l^1&lt;&lt;n,m=g(d),x=[],_=d;_&gt;0;_=_-1&amp;d)x.push(&quot;V[X+&quot;+v(_)+&quot;]&quot;);x.push(y(0));for(_=0;_&lt;T;++_)1&amp;n?x.push(o(_,l),o(_,d)):x.push(o(_,d),o(_,l));1&amp;n?x.push(c,m):x.push(m,c);for(_=0;_&lt;b;++_)x.push(u(_));M.push(&quot;if(&quot;,c,&quot;!==&quot;,m,&quot;){&quot;,&quot;face(&quot;,x.join(),&quot;)}&quot;)}M.push(&quot;}&quot;,&quot;X&quot;,&quot;+=1;&quot;)}(r);else{!function(t){for(var e=t-1;e&gt;=0;--e)N(e,0);var r=[];for(e=0;e&lt;T;++e)w[e]?r.push(a(e)+&quot;.get(&quot;+f(e)+&quot;)&quot;):r.push(a(e)+&quot;[&quot;+f(e)+&quot;]&quot;);for(e=0;e&lt;b;++e)r.push(u(e));for(M.push(&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;++]=phase(&quot;,r.join(),&quot;);&quot;),e=0;e&lt;t;++e)j(e);for(var n=0;n&lt;T;++n)M.push(f(n),&quot;+=&quot;,d(n,_[t]),&quot;;&quot;)}(e),M.push(&quot;if(&quot;,s(_[e]),&quot;&gt;0){&quot;,p(_[e]),&quot;=1;&quot;),t(e-1,r|1&lt;&lt;_[e]);for(var n=0;n&lt;T;++n)M.push(f(n),&quot;+=&quot;,d(n,_[e]),&quot;;&quot;);e===k-1&amp;&amp;(M.push(&quot;X&quot;,&quot;=0;&quot;),U()),N(e,2),t(e-1,r),e===k-1&amp;&amp;(M.push(&quot;if(&quot;,p(_[k-1]),&quot;&amp;1){&quot;,&quot;X&quot;,&quot;=0;}&quot;),U()),j(e),M.push(&quot;}&quot;)}}(k-1,0),M.push(&quot;freeUint32(&quot;,&quot;V&quot;,&quot;);freeUint32(&quot;,&quot;P&quot;,&quot;);&quot;);var V=[&quot;'use strict';&quot;,&quot;function &quot;,A,&quot;(&quot;,E.join(),&quot;){&quot;,&quot;var &quot;,S.join(),&quot;;&quot;,M.join(&quot;&quot;),&quot;}&quot;,&quot;return &quot;,A].join(&quot;&quot;);return new Function(&quot;vertex&quot;,&quot;face&quot;,&quot;phase&quot;,&quot;mallocUint32&quot;,&quot;freeUint32&quot;,V)(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,_,r,T)};function x(t,e,r){for(var n=0,i=0;i&lt;t;++i)e&amp;1&lt;&lt;i&amp;&amp;(n|=1&lt;&lt;r[i]);return n}},{&quot;typedarray-pool&quot;:617}],476:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(&quot;ndarray-gradient: invalid boundary conditions&quot;)}else r=n(e.dimension,&quot;string&quot;==typeof r?r:&quot;clamp&quot;);if(t.dimension!==e.dimension+1)throw new Error(&quot;ndarray-gradient: output dimension must be +1 input dimension&quot;);if(t.shape[e.dimension]!==e.dimension)throw new Error(&quot;ndarray-gradient: output shape must match input shape&quot;);for(var i=0;i&lt;e.dimension;++i)if(t.shape[i]!==e.shape[i])throw new Error(&quot;ndarray-gradient: shape mismatch&quot;);if(0===e.size)return t;if(e.dimension&lt;=0)return t.set(0),t;return function(t){var e=t.join();if(v=o[e])return v;var r=t.length,n=[&quot;function gradient(dst,src){var s=src.shape.slice();&quot;];function i(e){for(var i=r-e.length,a=[],o=[],s=[],l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0?s.push(&quot;0&quot;):e.indexOf(-(l+1))&gt;=0?s.push(&quot;s[&quot;+l+&quot;]-1&quot;):(s.push(&quot;-1&quot;),a.push(&quot;1&quot;),o.push(&quot;s[&quot;+l+&quot;]-2&quot;));var c=&quot;.lo(&quot;+a.join()+&quot;).hi(&quot;+o.join()+&quot;)&quot;;if(0===a.length&amp;&amp;(c=&quot;&quot;),i&gt;0){n.push(&quot;if(1&quot;);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;&amp;&amp;s[&quot;,l,&quot;]&gt;2&quot;);n.push(&quot;){grad&quot;,i,&quot;(src.pick(&quot;,s.join(),&quot;)&quot;,c);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;,dst.pick(&quot;,s.join(),&quot;,&quot;,l,&quot;)&quot;,c);n.push(&quot;);&quot;)}for(l=0;l&lt;e.length;++l){var u=Math.abs(e[l])-1,f=&quot;dst.pick(&quot;+s.join()+&quot;,&quot;+u+&quot;)&quot;+c;switch(t[u]){case&quot;clamp&quot;:var h=s.slice(),p=s.slice();e[l]&lt;0?h[u]=&quot;s[&quot;+u+&quot;]-2&quot;:p[u]=&quot;1&quot;,0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,h.join(),&quot;)-src.get(&quot;,p.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){diff(&quot;,f,&quot;,src.pick(&quot;,h.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,p.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;case&quot;mirror&quot;:0===i?n.push(&quot;dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0);&quot;):n.push(&quot;zero(&quot;,f,&quot;);&quot;);break;case&quot;wrap&quot;:var d=s.slice(),g=s.slice();e[l]&lt;0?(d[u]=&quot;s[&quot;+u+&quot;]-2&quot;,g[u]=&quot;0&quot;):(d[u]=&quot;s[&quot;+u+&quot;]-1&quot;,g[u]=&quot;1&quot;),0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,d.join(),&quot;)-src.get(&quot;,g.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){diff(&quot;,f,&quot;,src.pick(&quot;,d.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,g.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;default:throw new Error(&quot;ndarray-gradient: Invalid boundary condition&quot;)}}i&gt;0&amp;&amp;n.push(&quot;};&quot;)}for(var s=0;s&lt;1&lt;&lt;r;++s){for(var f=[],h=0;h&lt;r;++h)s&amp;1&lt;&lt;h&amp;&amp;f.push(h+1);for(var p=0;p&lt;1&lt;&lt;f.length;++p){var d=f.slice();for(h=0;h&lt;f.length;++h)p&amp;1&lt;&lt;h&amp;&amp;(d[h]=-d[h]);i(d)}}n.push(&quot;return dst;};return gradient&quot;);var g=[&quot;diff&quot;,&quot;zero&quot;],m=[l,c];for(s=1;s&lt;=r;++s)g.push(&quot;grad&quot;+s),m.push(u(s));g.push(n.join(&quot;&quot;));var v=Function.apply(void 0,g).apply(void 0,m);return a[e]=v,v}(r)(t,e)};var n=t(&quot;dup&quot;),i=t(&quot;cwise-compiler&quot;),a={},o={},s={body:&quot;&quot;,args:[],thisVars:[],localVars:[]},l=i({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;left&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;right&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;out=0.5*(left-right)&quot;,thisVars:[],localVars:[]},funcName:&quot;cdiff&quot;}),c=i({args:[&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1}],body:&quot;out=0&quot;,thisVars:[],localVars:[]},funcName:&quot;zero&quot;});function u(t){if(t in a)return a[t];for(var e=[],r=0;r&lt;t;++r)e.push(&quot;out&quot;,r,&quot;s=0.5*(inp&quot;,r,&quot;l-inp&quot;,r,&quot;r);&quot;);var o=[&quot;array&quot;],l=[&quot;junk&quot;];for(r=0;r&lt;t;++r){o.push(&quot;array&quot;),l.push(&quot;out&quot;+r+&quot;s&quot;);var c=n(t);c[r]=-1,o.push({array:0,offset:c.slice()}),c[r]=1,o.push({array:0,offset:c.slice()}),l.push(&quot;inp&quot;+r+&quot;l&quot;,&quot;inp&quot;+r+&quot;r&quot;)}return a[t]=i({args:o,pre:s,post:s,body:{body:e.join(&quot;&quot;),args:l.map((function(t){return{name:t,lvalue:0===t.indexOf(&quot;out&quot;),rvalue:0===t.indexOf(&quot;inp&quot;),count:&quot;junk&quot;!==t|0}})),thisVars:[],localVars:[]},funcName:&quot;fdTemplate&quot;+t})}},{&quot;cwise-compiler&quot;:157,dup:185}],477:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Math.floor(e),n=e-r,i=0&lt;=r&amp;&amp;r&lt;t.shape[0],a=0&lt;=r+1&amp;&amp;r+1&lt;t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0&lt;=n&amp;&amp;n&lt;t.shape[0],o=0&lt;=n+1&amp;&amp;n+1&lt;t.shape[0],s=Math.floor(r),l=r-s,c=0&lt;=s&amp;&amp;s&lt;t.shape[1],u=0&lt;=s+1&amp;&amp;s+1&lt;t.shape[1],f=a&amp;&amp;c?t.get(n,s):0,h=a&amp;&amp;u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&amp;&amp;c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&amp;&amp;u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0&lt;=i&amp;&amp;i&lt;t.shape[0],s=0&lt;=i+1&amp;&amp;i+1&lt;t.shape[0],l=Math.floor(r),c=r-l,u=0&lt;=l&amp;&amp;l&lt;t.shape[1],f=0&lt;=l+1&amp;&amp;l+1&lt;t.shape[1],h=Math.floor(n),p=n-h,d=0&lt;=h&amp;&amp;h&lt;t.shape[2],g=0&lt;=h+1&amp;&amp;h+1&lt;t.shape[2],m=o&amp;&amp;u&amp;&amp;d?t.get(i,l,h):0,v=o&amp;&amp;f&amp;&amp;d?t.get(i,l+1,h):0,y=s&amp;&amp;u&amp;&amp;d?t.get(i+1,l,h):0,x=s&amp;&amp;f&amp;&amp;d?t.get(i+1,l+1,h):0,b=o&amp;&amp;u&amp;&amp;g?t.get(i,l,h+1):0,_=o&amp;&amp;f&amp;&amp;g?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*m+a*y)+c*((1-a)*v+a*x))+p*((1-c)*((1-a)*b+a*(s&amp;&amp;u&amp;&amp;g?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&amp;&amp;f&amp;&amp;g?t.get(i+1,l+1,h+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e&lt;n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0&lt;=i[e]&amp;&amp;i[e]&lt;t.shape[e],s[e]=0&lt;=i[e]+1&amp;&amp;i[e]+1&lt;t.shape[e];var l,c,u,f=0;t:for(e=0;e&lt;1&lt;&lt;n;++e){for(c=1,u=t.offset,l=0;l&lt;n;++l)if(e&amp;1&lt;&lt;l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}e.exports=function(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],478:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;cwise-compiler&quot;),i={body:&quot;&quot;,args:[],thisVars:[],localVars:[]};function a(t){if(!t)return i;for(var e=0;e&lt;t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){for(var e=[],r=0;r&lt;t.args.length;++r)e.push(&quot;a&quot;+r);return new Function(&quot;P&quot;,[&quot;return function &quot;,t.funcName,&quot;_ndarrayops(&quot;,e.join(&quot;,&quot;),&quot;) {P(&quot;,e.join(&quot;,&quot;),&quot;);return a0}&quot;].join(&quot;&quot;))(function(t){return n({args:t.args,pre:a(t.pre),body:a(t.body),post:a(t.proc),funcName:t.funcName})}(t))}var s={add:&quot;+&quot;,sub:&quot;-&quot;,mul:&quot;*&quot;,div:&quot;/&quot;,mod:&quot;%&quot;,band:&quot;&amp;&quot;,bor:&quot;|&quot;,bxor:&quot;^&quot;,lshift:&quot;&lt;&lt;&quot;,rshift:&quot;&gt;&gt;&quot;,rrshift:&quot;&gt;&gt;&gt;&quot;};!function(){for(var t in s){var e=s[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a&quot;+e+&quot;=b&quot;},rvalue:!0,funcName:t+&quot;eq&quot;}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a&quot;+e+&quot;=s&quot;},rvalue:!0,funcName:t+&quot;seq&quot;})}}();var l={not:&quot;!&quot;,bnot:&quot;~&quot;,neg:&quot;-&quot;,recip:&quot;1.0/&quot;};!function(){for(var t in l){var e=l[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=&quot;+e+&quot;b&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;],body:{args:[&quot;a&quot;],body:&quot;a=&quot;+e+&quot;a&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;})}}();var c={and:&quot;&amp;&amp;&quot;,or:&quot;||&quot;,eq:&quot;===&quot;,neq:&quot;!==&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,leq:&quot;&lt;=&quot;,geq:&quot;&gt;=&quot;};!function(){for(var t in c){var e=c[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=a&quot;+e+&quot;b&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a=a&quot;+e+&quot;s&quot;},rvalue:!0,count:2,funcName:t+&quot;seq&quot;})}}();var u=[&quot;abs&quot;,&quot;acos&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;cos&quot;,&quot;exp&quot;,&quot;floor&quot;,&quot;log&quot;,&quot;round&quot;,&quot;sin&quot;,&quot;sqrt&quot;,&quot;tan&quot;];!function(){for(var t=0;t&lt;u.length;++t){var e=u[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f(a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;})}}();var f=[&quot;max&quot;,&quot;min&quot;,&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;f.length;++t){var e=f[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;s&quot;}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;}),r[e+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;seq&quot;})}}();var h=[&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;h.length;++t){var e=h[t];r[e+&quot;op&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;op&quot;}),r[e+&quot;ops&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;ops&quot;}),r[e+&quot;opeq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opeq&quot;}),r[e+&quot;opseq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opseq&quot;})}}(),r.any=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(a){return true}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return false&quot;},funcName:&quot;any&quot;}),r.all=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(!x){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;all&quot;}),r.sum=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s+=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;sum&quot;}),r.prod=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=1&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s*=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;prod&quot;}),r.norm2squared=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm2squared&quot;}),r.norm2=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return Math.sqrt(this_s)&quot;},funcName:&quot;norm2&quot;}),r.norminf=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:4}],body:&quot;if(-a&gt;this_s){this_s=-a}else if(a&gt;this_s){this_s=a}&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norminf&quot;}),r.norm1=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:3}],body:&quot;this_s+=a&lt;0?-a:a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm1&quot;}),r.sup=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=-Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&gt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.inf=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&lt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.argmin=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&lt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.argmax=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&gt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.random=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.random&quot;,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f()&quot;,thisVars:[&quot;this_f&quot;]},funcName:&quot;random&quot;}),r.assign=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assign&quot;}),r.assigns=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assigns&quot;}),r.equals=n({args:[&quot;array&quot;,&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;y&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(x!==y){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;equals&quot;})},{&quot;cwise-compiler&quot;:157}],479:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;./doConvert.js&quot;);e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{&quot;./doConvert.js&quot;:480,ndarray:483}],480:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i&lt;_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[&quot;_inline_1_i&quot;,&quot;_inline_1_v&quot;]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},funcName:&quot;convert&quot;,blockSize:64})},{&quot;cwise-compiler&quot;:157}],481:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=32;function a(t){switch(t){case&quot;uint8&quot;:return[n.mallocUint8,n.freeUint8];case&quot;uint16&quot;:return[n.mallocUint16,n.freeUint16];case&quot;uint32&quot;:return[n.mallocUint32,n.freeUint32];case&quot;int8&quot;:return[n.mallocInt8,n.freeInt8];case&quot;int16&quot;:return[n.mallocInt16,n.freeInt16];case&quot;int32&quot;:return[n.mallocInt32,n.freeInt32];case&quot;float32&quot;:return[n.mallocFloat,n.freeFloat];case&quot;float64&quot;:return[n.mallocDouble,n.freeDouble];default:return null}}function o(t){for(var e=[],r=0;r&lt;t;++r)e.push(&quot;s&quot;+r);for(r=0;r&lt;t;++r)e.push(&quot;n&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;d&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;e&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;f&quot;+r);return e}e.exports=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarraySortWrapper&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;);r.push([&quot;function &quot;,n,&quot;(&quot;,[&quot;array&quot;].join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var s=[&quot;data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride&quot;],l=0;l&lt;t.length;++l)s.push([&quot;s&quot;,l,&quot;=stride[&quot;,l,&quot;]|0,n&quot;,l,&quot;=shape[&quot;,l,&quot;]|0&quot;].join(&quot;&quot;));var c=new Array(t.length),u=[];for(l=0;l&lt;t.length;++l){0!==(p=t[l])&amp;&amp;(0===u.length?c[p]=&quot;1&quot;:c[p]=u.join(&quot;*&quot;),u.push(&quot;n&quot;+p))}var f=-1,h=-1;for(l=0;l&lt;t.length;++l){var p,d=t[l];0!==d&amp;&amp;(f&gt;0?s.push([&quot;d&quot;,d,&quot;=s&quot;,d,&quot;-d&quot;,f,&quot;*n&quot;,f].join(&quot;&quot;)):s.push([&quot;d&quot;,d,&quot;=s&quot;,d].join(&quot;&quot;)),f=d),0!==(p=t.length-1-l)&amp;&amp;(h&gt;0?s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;-e&quot;,h,&quot;*n&quot;,h,&quot;,f&quot;,p,&quot;=&quot;,c[p],&quot;-f&quot;,h,&quot;*n&quot;,h].join(&quot;&quot;)):s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;,f&quot;,p,&quot;=&quot;,c[p]].join(&quot;&quot;)),h=p)}r.push(&quot;var &quot;+s.join(&quot;,&quot;));var g=[&quot;0&quot;,&quot;n0-1&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length));r.push([&quot;if(n0&lt;=&quot;,i,&quot;){&quot;,&quot;insertionSort(&quot;,g.join(&quot;,&quot;),&quot;)}else{&quot;,&quot;quickSort(&quot;,g.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),r.push(&quot;}return &quot;+n);var m=new Function(&quot;insertionSort&quot;,&quot;quickSort&quot;,r.join(&quot;\n&quot;)),v=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarrayInsertionSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),i=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),s=a(e),l=[&quot;i,j,cptr,ptr=left*s0+offset&quot;];if(t.length&gt;1){for(var c=[],u=1;u&lt;t.length;++u)l.push(&quot;i&quot;+u),c.push(&quot;n&quot;+u);s?l.push(&quot;scratch=malloc(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;):l.push(&quot;scratch=new Array(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;),l.push(&quot;dptr&quot;,&quot;sptr&quot;,&quot;a&quot;,&quot;b&quot;)}else l.push(&quot;scratch&quot;);function f(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function h(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}if(r.push([&quot;function &quot;,n,&quot;(&quot;,i.join(&quot;,&quot;),&quot;){var &quot;,l.join(&quot;,&quot;)].join(&quot;&quot;),&quot;for(i=left+1;i&lt;=right;++i){&quot;,&quot;j=i;ptr+=s0&quot;,&quot;cptr=ptr&quot;),t.length&gt;1){r.push(&quot;dptr=0;sptr=ptr&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(&quot;scratch[dptr++]=&quot;,f(&quot;sptr&quot;));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push(&quot;sptr+=d&quot;+p,&quot;}&quot;)}r.push(&quot;__g:while(j--\x3eleft){&quot;,&quot;dptr=0&quot;,&quot;sptr=cptr-s0&quot;);for(u=1;u&lt;t.length;++u)1===u&amp;&amp;r.push(&quot;__l:&quot;),r.push([&quot;for(i&quot;,u,&quot;=0;i&quot;,u,&quot;&lt;n&quot;,u,&quot;;++i&quot;,u,&quot;){&quot;].join(&quot;&quot;));r.push([&quot;a=&quot;,f(&quot;sptr&quot;),&quot;\nb=scratch[dptr]\nif(a&lt;b){break __g}\nif(a&gt;b){break __l}&quot;].join(&quot;&quot;));for(u=t.length-1;u&gt;=1;--u)r.push(&quot;sptr+=e&quot;+u,&quot;dptr+=f&quot;+u,&quot;}&quot;);r.push(&quot;dptr=cptr;sptr=cptr-s0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,f(&quot;sptr&quot;)));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push([&quot;dptr+=d&quot;,p,&quot;;sptr+=d&quot;,p].join(&quot;&quot;),&quot;}&quot;)}r.push(&quot;cptr-=s0\n}&quot;),r.push(&quot;dptr=cptr;sptr=0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,&quot;scratch[sptr++]&quot;));for(u=0;u&lt;t.length;++u){var p;0!==(p=t[u])&amp;&amp;r.push(&quot;dptr+=d&quot;+p,&quot;}&quot;)}}else r.push(&quot;scratch=&quot;+f(&quot;ptr&quot;),&quot;while((j--\x3eleft)&amp;&amp;(&quot;+f(&quot;cptr-s0&quot;)+&quot;&gt;scratch)){&quot;,h(&quot;cptr&quot;,f(&quot;cptr-s0&quot;)),&quot;cptr-=s0&quot;,&quot;}&quot;,h(&quot;cptr&quot;,&quot;scratch&quot;));return r.push(&quot;}&quot;),t.length&gt;1&amp;&amp;s&amp;&amp;r.push(&quot;free(scratch)&quot;),r.push(&quot;} return &quot;+n),s?new Function(&quot;malloc&quot;,&quot;free&quot;,r.join(&quot;\n&quot;))(s[0],s[1]):new Function(r.join(&quot;\n&quot;))()}(t,e),y=function(t,e,r){var n=[&quot;'use strict'&quot;],s=[&quot;ndarrayQuickSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),l=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),c=a(e),u=0;n.push([&quot;function &quot;,s,&quot;(&quot;,l.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));var f=[&quot;sixth=((right-left+1)/6)|0&quot;,&quot;index1=left+sixth&quot;,&quot;index5=right-sixth&quot;,&quot;index3=(left+right)&gt;&gt;1&quot;,&quot;index2=index3-sixth&quot;,&quot;index4=index3+sixth&quot;,&quot;el1=index1&quot;,&quot;el2=index2&quot;,&quot;el3=index3&quot;,&quot;el4=index4&quot;,&quot;el5=index5&quot;,&quot;less=left+1&quot;,&quot;great=right-1&quot;,&quot;pivots_are_equal=true&quot;,&quot;tmp&quot;,&quot;tmp0&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;k&quot;,&quot;ptr0&quot;,&quot;ptr1&quot;,&quot;ptr2&quot;,&quot;comp_pivot1=0&quot;,&quot;comp_pivot2=0&quot;,&quot;comp=0&quot;];if(t.length&gt;1){for(var h=[],p=1;p&lt;t.length;++p)h.push(&quot;n&quot;+p),f.push(&quot;i&quot;+p);for(p=0;p&lt;8;++p)f.push(&quot;b_ptr&quot;+p);f.push(&quot;ptr3&quot;,&quot;ptr4&quot;,&quot;ptr5&quot;,&quot;ptr6&quot;,&quot;ptr7&quot;,&quot;pivot_ptr&quot;,&quot;ptr_shift&quot;,&quot;elementSize=&quot;+h.join(&quot;*&quot;)),c?f.push(&quot;pivot1=malloc(elementSize)&quot;,&quot;pivot2=malloc(elementSize)&quot;):f.push(&quot;pivot1=new Array(elementSize),pivot2=new Array(elementSize)&quot;)}else f.push(&quot;pivot1&quot;,&quot;pivot2&quot;);function d(t){return[&quot;(offset+&quot;,t,&quot;*s0)&quot;].join(&quot;&quot;)}function g(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function m(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}function v(e,r,i){if(1===e.length)n.push(&quot;ptr0=&quot;+d(e[0]));else for(var a=0;a&lt;e.length;++a)n.push([&quot;b_ptr&quot;,a,&quot;=s0*&quot;,e[a]].join(&quot;&quot;));r&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),n.push(&quot;ptr_shift=offset&quot;);for(a=t.length-1;a&gt;=0;--a){0!==(o=t[a])&amp;&amp;n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;))}if(e.length&gt;1)for(a=0;a&lt;e.length;++a)n.push([&quot;ptr&quot;,a,&quot;=b_ptr&quot;,a,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(i),r&amp;&amp;n.push(&quot;++pivot_ptr&quot;);for(a=0;a&lt;t.length;++a){var o;0!==(o=t[a])&amp;&amp;(e.length&gt;1?n.push(&quot;ptr_shift+=d&quot;+o):n.push(&quot;ptr0+=d&quot;+o),n.push(&quot;}&quot;))}}function y(e,r,i,a){if(1===r.length)n.push(&quot;ptr0=&quot;+d(r[0]));else{for(var o=0;o&lt;r.length;++o)n.push([&quot;b_ptr&quot;,o,&quot;=s0*&quot;,r[o]].join(&quot;&quot;));n.push(&quot;ptr_shift=offset&quot;)}i&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),e&amp;&amp;n.push(e+&quot;:&quot;);for(o=1;o&lt;t.length;++o)n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;));if(r.length&gt;1)for(o=0;o&lt;r.length;++o)n.push([&quot;ptr&quot;,o,&quot;=b_ptr&quot;,o,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(a);for(o=t.length-1;o&gt;=1;--o)i&amp;&amp;n.push(&quot;pivot_ptr+=f&quot;+o),r.length&gt;1?n.push(&quot;ptr_shift+=e&quot;+o):n.push(&quot;ptr0+=e&quot;+o),n.push(&quot;}&quot;)}function x(){t.length&gt;1&amp;&amp;c&amp;&amp;n.push(&quot;free(pivot1)&quot;,&quot;free(pivot2)&quot;)}function b(e,r){var i=&quot;el&quot;+e,a=&quot;el&quot;+r;if(t.length&gt;1){var o=&quot;__l&quot;+ ++u;y(o,[i,a],!1,[&quot;comp=&quot;,g(&quot;ptr0&quot;),&quot;-&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;if(comp&gt;0){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0;break &quot;,o,&quot;}\n&quot;,&quot;if(comp&lt;0){break &quot;,o,&quot;}&quot;].join(&quot;&quot;))}else n.push([&quot;if(&quot;,g(d(i)),&quot;&gt;&quot;,g(d(a)),&quot;){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0}&quot;].join(&quot;&quot;))}function _(e,r){t.length&gt;1?v([e,r],!1,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;))):n.push(m(d(e),g(d(r))))}function w(e,r,i){if(t.length&gt;1){var a=&quot;__l&quot;+ ++u;y(a,[r],!0,[e,&quot;=&quot;,g(&quot;ptr0&quot;),&quot;-pivot&quot;,i,&quot;[pivot_ptr]\n&quot;,&quot;if(&quot;,e,&quot;!==0){break &quot;,a,&quot;}&quot;].join(&quot;&quot;))}else n.push([e,&quot;=&quot;,g(d(r)),&quot;-pivot&quot;,i].join(&quot;&quot;))}function T(e,r){t.length&gt;1?v([e,r],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function k(e,r,i){t.length&gt;1?(v([e,r,i],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;)),n.push(&quot;++&quot;+r,&quot;--&quot;+i)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;ptr2=&quot;,d(i),&quot;\n&quot;,&quot;++&quot;,r,&quot;\n&quot;,&quot;--&quot;,i,&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function A(t,e){T(t,e),n.push(&quot;--&quot;+e)}function M(e,r,i){t.length&gt;1?v([e,r],!0,[m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,[&quot;pivot&quot;,i,&quot;[pivot_ptr]&quot;].join(&quot;&quot;))].join(&quot;&quot;)):n.push(m(d(e),g(d(r))),m(d(r),&quot;pivot&quot;+i))}function S(e,r){n.push([&quot;if((&quot;,r,&quot;-&quot;,e,&quot;)&lt;=&quot;,i,&quot;){\n&quot;,&quot;insertionSort(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}else{\n&quot;,s,&quot;(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}&quot;].join(&quot;&quot;))}function E(e,r,i){t.length&gt;1?(n.push([&quot;__l&quot;,++u,&quot;:while(true){&quot;].join(&quot;&quot;)),v([e],!0,[&quot;if(&quot;,g(&quot;ptr0&quot;),&quot;!==pivot&quot;,r,&quot;[pivot_ptr]){break __l&quot;,u,&quot;}&quot;].join(&quot;&quot;)),n.push(i,&quot;}&quot;)):n.push([&quot;while(&quot;,g(d(e)),&quot;===pivot&quot;,r,&quot;){&quot;,i,&quot;}&quot;].join(&quot;&quot;))}return n.push(&quot;var &quot;+f.join(&quot;,&quot;)),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),t.length&gt;1?v([&quot;el1&quot;,&quot;el2&quot;,&quot;el3&quot;,&quot;el4&quot;,&quot;el5&quot;,&quot;index1&quot;,&quot;index3&quot;,&quot;index5&quot;],!0,[&quot;pivot1[pivot_ptr]=&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;pivot2[pivot_ptr]=&quot;,g(&quot;ptr3&quot;),&quot;\n&quot;,&quot;pivots_are_equal=pivots_are_equal&amp;&amp;(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n&quot;,&quot;x=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,&quot;y=&quot;,g(&quot;ptr2&quot;),&quot;\n&quot;,&quot;z=&quot;,g(&quot;ptr4&quot;),&quot;\n&quot;,m(&quot;ptr5&quot;,&quot;x&quot;),&quot;\n&quot;,m(&quot;ptr6&quot;,&quot;y&quot;),&quot;\n&quot;,m(&quot;ptr7&quot;,&quot;z&quot;)].join(&quot;&quot;)):n.push([&quot;pivot1=&quot;,g(d(&quot;el2&quot;)),&quot;\n&quot;,&quot;pivot2=&quot;,g(d(&quot;el4&quot;)),&quot;\n&quot;,&quot;pivots_are_equal=pivot1===pivot2\n&quot;,&quot;x=&quot;,g(d(&quot;el1&quot;)),&quot;\n&quot;,&quot;y=&quot;,g(d(&quot;el3&quot;)),&quot;\n&quot;,&quot;z=&quot;,g(d(&quot;el5&quot;)),&quot;\n&quot;,m(d(&quot;index1&quot;),&quot;x&quot;),&quot;\n&quot;,m(d(&quot;index3&quot;),&quot;y&quot;),&quot;\n&quot;,m(d(&quot;index5&quot;),&quot;z&quot;)].join(&quot;&quot;)),_(&quot;index2&quot;,&quot;left&quot;),_(&quot;index4&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp&quot;,&quot;k&quot;,1),n.push(&quot;if(comp===0){continue}&quot;),n.push(&quot;if(comp&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;great--&quot;),n.push(&quot;}else if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}else{&quot;),A(&quot;k&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}else{&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2&gt;0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),A(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),M(&quot;left&quot;,&quot;(less-1)&quot;,1),M(&quot;right&quot;,&quot;(great+1)&quot;,2),S(&quot;left&quot;,&quot;(less-2)&quot;),S(&quot;(great+2)&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),x(),n.push(&quot;return&quot;),n.push(&quot;}&quot;),n.push(&quot;if(less&lt;index1&amp;&amp;great&gt;index5){&quot;),E(&quot;less&quot;,1,&quot;++less&quot;),E(&quot;great&quot;,2,&quot;--great&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1===0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2===0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp===0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),A(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),x(),S(&quot;less&quot;,&quot;great&quot;),n.push(&quot;}return &quot;+s),t.length&gt;1&amp;&amp;c?new Function(&quot;insertionSort&quot;,&quot;malloc&quot;,&quot;free&quot;,n.join(&quot;\n&quot;))(r,c[0],c[1]):new Function(&quot;insertionSort&quot;,n.join(&quot;\n&quot;))(r)}(t,e,v);return m(v,y)}},{&quot;typedarray-pool&quot;:617}],482:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/compile_sort.js&quot;),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(&quot;:&quot;),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{&quot;./lib/compile_sort.js&quot;:481}],483:[function(t,e,r){var n=t(&quot;iota-array&quot;),i=t(&quot;is-buffer&quot;),a=&quot;undefined&quot;!=typeof Float64Array;function o(t,e){return t[0]-e[0]}function s(){var t,e=this.stride,r=new Array(e.length);for(t=0;t&lt;r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(o);var n=new Array(r.length);for(t=0;t&lt;n.length;++t)n[t]=r[t][1];return n}function l(t,e){var r=[&quot;View&quot;,e,&quot;d&quot;,t].join(&quot;&quot;);e&lt;0&amp;&amp;(r=&quot;View_Nil&quot;+t);var i=&quot;generic&quot;===t;if(-1===e){var a=&quot;function &quot;+r+&quot;(a){this.data=a;};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new &quot;+r+&quot;(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_&quot;+r+&quot;(a){return new &quot;+r+&quot;(a);}&quot;;return new Function(a)()}if(0===e){a=&quot;function &quot;+r+&quot;(a,d) {this.data = a;this.offset = d};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function &quot;+r+&quot;_copy() {return new &quot;+r+&quot;(this.data,this.offset)};proto.pick=function &quot;+r+&quot;_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function &quot;+r+&quot;_get(){return &quot;+(i?&quot;this.data.get(this.offset)&quot;:&quot;this.data[this.offset]&quot;)+&quot;};proto.set=function &quot;+r+&quot;_set(v){return &quot;+(i?&quot;this.data.set(this.offset,v)&quot;:&quot;this.data[this.offset]=v&quot;)+&quot;};return function construct_&quot;+r+&quot;(a,b,c,d){return new &quot;+r+&quot;(a,d)}&quot;;return new Function(&quot;TrivialArray&quot;,a)(c[t][0])}a=[&quot;'use strict'&quot;];var o=n(e),l=o.map((function(t){return&quot;i&quot;+t})),u=&quot;this.offset+&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]*i&quot;+t})).join(&quot;+&quot;),f=o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;),h=o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;);a.push(&quot;function &quot;+r+&quot;(a,&quot;+f+&quot;,&quot;+h+&quot;,d){this.data=a&quot;,&quot;this.shape=[&quot;+f+&quot;]&quot;,&quot;this.stride=[&quot;+h+&quot;]&quot;,&quot;this.offset=d|0}&quot;,&quot;var proto=&quot;+r+&quot;.prototype&quot;,&quot;proto.dtype='&quot;+t+&quot;'&quot;,&quot;proto.dimension=&quot;+e),a.push(&quot;Object.defineProperty(proto,'size',{get:function &quot;+r+&quot;_size(){return &quot;+o.map((function(t){return&quot;this.shape[&quot;+t+&quot;]&quot;})).join(&quot;*&quot;),&quot;}})&quot;),1===e?a.push(&quot;proto.order=[0]&quot;):(a.push(&quot;Object.defineProperty(proto,'order',{get:&quot;),e&lt;4?(a.push(&quot;function &quot;+r+&quot;_order(){&quot;),2===e?a.push(&quot;return (Math.abs(this.stride[0])&gt;Math.abs(this.stride[1]))?[1,0]:[0,1]}})&quot;):3===e&amp;&amp;a.push(&quot;var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0&gt;s1){if(s1&gt;s2){return [2,1,0];}else if(s0&gt;s2){return [1,2,0];}else{return [1,0,2];}}else if(s0&gt;s2){return [2,0,1];}else if(s2&gt;s1){return [0,1,2];}else{return [0,2,1];}}})&quot;)):a.push(&quot;ORDER})&quot;)),a.push(&quot;proto.set=function &quot;+r+&quot;_set(&quot;+l.join(&quot;,&quot;)+&quot;,v){&quot;),i?a.push(&quot;return this.data.set(&quot;+u+&quot;,v)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]=v}&quot;),a.push(&quot;proto.get=function &quot;+r+&quot;_get(&quot;+l.join(&quot;,&quot;)+&quot;){&quot;),i?a.push(&quot;return this.data.get(&quot;+u+&quot;)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]}&quot;),a.push(&quot;proto.index=function &quot;+r+&quot;_index(&quot;,l.join(),&quot;){return &quot;+u+&quot;}&quot;),a.push(&quot;proto.hi=function &quot;+r+&quot;_hi(&quot;+l.join(&quot;,&quot;)+&quot;){return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return[&quot;(typeof i&quot;,t,&quot;!=='number'||i&quot;,t,&quot;&lt;0)?this.shape[&quot;,t,&quot;]:i&quot;,t,&quot;|0&quot;].join(&quot;&quot;)})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,this.offset)}&quot;);var p=o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})),d=o.map((function(t){return&quot;c&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;}));a.push(&quot;proto.lo=function &quot;+r+&quot;_lo(&quot;+l.join(&quot;,&quot;)+&quot;){var b=this.offset,d=0,&quot;+p.join(&quot;,&quot;)+&quot;,&quot;+d.join(&quot;,&quot;));for(var g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){d=i&quot;+g+&quot;|0;b+=c&quot;+g+&quot;*d;a&quot;+g+&quot;-=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;)+&quot;,b)}&quot;),a.push(&quot;proto.step=function &quot;+r+&quot;_step(&quot;+l.join(&quot;,&quot;)+&quot;){var &quot;+o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,c=this.offset,d=0,ceil=Math.ceil&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'){d=i&quot;+g+&quot;|0;if(d&lt;0){c+=b&quot;+g+&quot;*(a&quot;+g+&quot;-1);a&quot;+g+&quot;=ceil(-a&quot;+g+&quot;/d)}else{a&quot;+g+&quot;=ceil(a&quot;+g+&quot;/d)}b&quot;+g+&quot;*=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;)+&quot;,c)}&quot;);var m=new Array(e),v=new Array(e);for(g=0;g&lt;e;++g)m[g]=&quot;a[i&quot;+g+&quot;]&quot;,v[g]=&quot;b[i&quot;+g+&quot;]&quot;;a.push(&quot;proto.transpose=function &quot;+r+&quot;_transpose(&quot;+l+&quot;){&quot;+l.map((function(t,e){return t+&quot;=(&quot;+t+&quot;===undefined?&quot;+e+&quot;:&quot;+t+&quot;|0)&quot;})).join(&quot;;&quot;),&quot;var a=this.shape,b=this.stride;return new &quot;+r+&quot;(this.data,&quot;+m.join(&quot;,&quot;)+&quot;,&quot;+v.join(&quot;,&quot;)+&quot;,this.offset)}&quot;),a.push(&quot;proto.pick=function &quot;+r+&quot;_pick(&quot;+l+&quot;){var a=[],b=[],c=this.offset&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){c=(c+this.stride[&quot;+g+&quot;]*i&quot;+g+&quot;)|0}else{a.push(this.shape[&quot;+g+&quot;]);b.push(this.stride[&quot;+g+&quot;])}&quot;);return a.push(&quot;var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}&quot;),a.push(&quot;return function construct_&quot;+r+&quot;(data,shape,stride,offset){return new &quot;+r+&quot;(data,&quot;+o.map((function(t){return&quot;shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,offset)}&quot;),new Function(&quot;CTOR_LIST&quot;,&quot;ORDER&quot;,a.join(&quot;\n&quot;))(c[t],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(t,e,r,n){if(void 0===t)return(0,c.array[0])([]);&quot;number&quot;==typeof t&amp;&amp;(t=[t]),void 0===e&amp;&amp;(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s&gt;=0;--s)r[s]=u,u*=e[s]}if(void 0===n){n=0;for(s=0;s&lt;o;++s)r[s]&lt;0&amp;&amp;(n-=(e[s]-1)*r[s])}for(var f=function(t){if(i(t))return&quot;buffer&quot;;if(a)switch(Object.prototype.toString.call(t)){case&quot;[object Float64Array]&quot;:return&quot;float64&quot;;case&quot;[object Float32Array]&quot;:return&quot;float32&quot;;case&quot;[object Int8Array]&quot;:return&quot;int8&quot;;case&quot;[object Int16Array]&quot;:return&quot;int16&quot;;case&quot;[object Int32Array]&quot;:return&quot;int32&quot;;case&quot;[object Uint8Array]&quot;:return&quot;uint8&quot;;case&quot;[object Uint16Array]&quot;:return&quot;uint16&quot;;case&quot;[object Uint32Array]&quot;:return&quot;uint32&quot;;case&quot;[object Uint8ClampedArray]&quot;:return&quot;uint8_clamped&quot;;case&quot;[object BigInt64Array]&quot;:return&quot;bigint64&quot;;case&quot;[object BigUint64Array]&quot;:return&quot;biguint64&quot;}return Array.isArray(t)?&quot;array&quot;:&quot;generic&quot;}(t),h=c[f];h.length&lt;=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,n)}},{&quot;iota-array&quot;:451,&quot;is-buffer&quot;:453}],484:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=Math.pow(2,-1074);e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e&lt;0?-i:i;var r=n.hi(t),a=n.lo(t);e&gt;t==t&gt;0?a===-1&gt;&gt;&gt;0?(r+=1,a=0):a+=1:0===a?(a=-1&gt;&gt;&gt;0,r-=1):a-=1;return n.pack(a,r)}},{&quot;double-bits&quot;:182}],485:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)T=p[0],k=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var g=(t-(f=(d=l(f,h,-o)).x))/2,m=(e-(h=d.y))/2,v=g*g/(r*r)+m*m/(a*a);v&gt;1&amp;&amp;(r*=v=Math.sqrt(v),a*=v);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*m*m-x*g*g)/(y*m*m+x*g*g)));b==1/0&amp;&amp;(b=1);var _=b*r*m/a+(t+f)/2,w=b*-a*g/r+(e+h)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((h-w)/a).toFixed(9));(T=t&lt;_?n-T:T)&lt;0&amp;&amp;(T=2*n+T),(k=f&lt;_?n-k:k)&lt;0&amp;&amp;(k=2*n+k),u&amp;&amp;T&gt;k&amp;&amp;(T-=2*n),!u&amp;&amp;k&gt;T&amp;&amp;(k-=2*n)}if(Math.abs(k-T)&gt;i){var A=k,M=f,S=h;k=T+i*(u&amp;&amp;k&gt;T?1:-1);var E=s(f=_+r*Math.cos(k),h=w+a*Math.sin(k),r,a,o,0,u,M,S,[k,A,_,w])}var L=Math.tan((k-T)/4),C=4/3*r*L,P=4/3*a*L,I=[2*t-(t+C*Math.sin(T)),2*e-(e-P*Math.cos(T)),f+C*Math.sin(k),h-P*Math.cos(k),f,h];if(p)return I;E&amp;&amp;(I=I.concat(E));for(var O=0;O&lt;I.length;){var z=l(I[O],I[O+1],o);I[O++]=z.x,I[O++]=z.y}return I}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,g=0,m=t.length;g&lt;m;g++){var v=t[g],y=v[0];switch(y){case&quot;M&quot;:l=v[1],u=v[2];break;case&quot;A&quot;:(v=s(p,d,v[1],v[2],c(v[3]),v[4],v[5],v[6],v[7])).unshift(&quot;C&quot;),v.length&gt;7&amp;&amp;(r.push(v.splice(0,7)),v.unshift(&quot;C&quot;));break;case&quot;S&quot;:var x=p,b=d;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(x+=x-n,b+=b-i),v=[&quot;C&quot;,x,b,v[1],v[2],v[3],v[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(f=2*p-f,h=2*d-h):(f=p,h=d),v=o(p,d,f,h,v[1],v[2]);break;case&quot;Q&quot;:f=v[1],h=v[2],v=o(p,d,v[1],v[2],v[3],v[4]);break;case&quot;L&quot;:v=a(p,d,v[1],v[2]);break;case&quot;H&quot;:v=a(p,d,v[1],d);break;case&quot;V&quot;:v=a(p,d,p,v[1]);break;case&quot;Z&quot;:v=a(p,d,l,u)}e=y,p=v[v.length-2],d=v[v.length-1],v.length&gt;4?(n=v[v.length-4],i=v[v.length-3]):(n=p,i=d),r.push(v)}return r}},{}],486:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o)i[o]=[0,0,0];for(o=0;o&lt;t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f&lt;s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],g=new Array(3),m=0,v=new Array(3),y=0,x=0;x&lt;3;++x)g[x]=h[x]-p[x],m+=g[x]*g[x],v[x]=d[x]-p[x],y+=v[x]*v[x];if(m*y&gt;a){var b=i[c],_=1/Math.sqrt(m*y);for(x=0;x&lt;3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*g[T]-v[T]*g[w])}}}for(o=0;o&lt;n;++o){b=i[o];var k=0;for(x=0;x&lt;3;++x)k+=b[x]*b[x];if(k&gt;a)for(_=1/Math.sqrt(k),x=0;x&lt;3;++x)b[x]*=_;else for(x=0;x&lt;3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o){for(var s=t[o],l=new Array(3),c=0;c&lt;3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c&lt;3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c&lt;3;++c){var d=(c+1)%3,g=(c+2)%3;h[c]=u[d]*f[g]-u[g]*f[d],p+=h[c]*h[c]}p=p&gt;a?1/Math.sqrt(p):0;for(c=0;c&lt;3;++c)h[c]*=p;i[o]=h}return i}},{}],487:[function(t,e,r){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
&quot;use strict&quot;;var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError(&quot;Object.assign cannot be called with null or undefined&quot;);return Object(t)}e.exports=function(){try{if(!Object.assign)return!1;var t=new String(&quot;abc&quot;);if(t[5]=&quot;de&quot;,&quot;5&quot;===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r&lt;10;r++)e[&quot;_&quot;+String.fromCharCode(r)]=r;if(&quot;0123456789&quot;!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(&quot;&quot;))return!1;var n={};return&quot;abcdefghijklmnopqrst&quot;.split(&quot;&quot;).forEach((function(t){n[t]=t})),&quot;abcdefghijklmnopqrst&quot;===Object.keys(Object.assign({},n)).join(&quot;&quot;)}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c&lt;arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&amp;&amp;(l[u]=r[u]);if(n){s=n(r);for(var f=0;f&lt;s.length;f++)a.call(r,s[f])&amp;&amp;(l[s[f]]=r[s[f]])}}return l}},{}],488:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f&gt;0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c);f=Math.sqrt(2*h-u+1);e&gt;=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a&gt;=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],489:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(&quot;eye&quot;in t||&quot;up&quot;in t)&amp;&amp;i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/lookAt&quot;),a=t(&quot;gl-mat4/fromQuat&quot;),o=t(&quot;gl-mat4/invert&quot;),s=t(&quot;./lib/quatFromFrame&quot;);function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o&gt;1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l&lt;3;++l){for(var c=0,f=0;f&lt;3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var g=i[2],m=i[6],v=i[10],y=g*a+m*o+v*s,x=g*u+m*f+v*h,b=l(g-=y*a+x*u,m-=y*o+x*f,v-=y*s+x*h);g/=b,m/=b,v/=b;var _=u*e+a*r,w=f*e+o*r,T=h*e+s*r;this.center.move(t,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],g=i[10],m=e*a+r*u,v=e*o+r*f,y=e*s+r*h,x=-(d*y-g*v),b=-(g*m-p*y),_=-(p*v-d*m),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T&gt;1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,A=k[0],M=k[1],S=k[2],E=k[3],L=A*w+E*x+M*_-S*b,C=M*w+E*b+S*x-A*_,P=S*w+E*_+A*b-M*x,I=E*w-A*x-M*b-S*_;if(n){x=p,b=d,_=g;var O=Math.sin(n)/l(x,b,_);x*=O,b*=O,_*=O,I=I*(w=Math.cos(e))-(L=L*w+I*x+C*_-P*b)*x-(C=C*w+I*b+P*x-L*_)*b-(P=P*w+I*_+L*b-C*x)*_}var z=c(L,C,P,I);z&gt;1e-6?(L/=z,C/=z,P/=z,I/=z):(L=C=P=0,I=1),this.rotation.set(t,L,C,P,I)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c&lt;3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)&gt;1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&amp;&amp;this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&amp;&amp;this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&amp;&amp;i&gt;0&amp;&amp;this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{&quot;./lib/quatFromFrame&quot;:488,&quot;filtered-vector&quot;:250,&quot;gl-mat4/fromQuat&quot;:288,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/lookAt&quot;:300}],490:[function(t,e,r){
/*!
 * pad-left &lt;https://github.com/jonschlinkert/pad-left&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT license.
 */
&quot;use strict&quot;;var n=t(&quot;repeat-string&quot;);e.exports=function(t,e,r){return n(r=void 0!==r?r+&quot;&quot;:&quot; &quot;,e)+t}},{&quot;repeat-string&quot;:541}],491:[function(t,e,r){&quot;use strict&quot;;function n(t,e){if(&quot;string&quot;!=typeof t)return[t];var r=[t];&quot;string&quot;==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[&quot;{}&quot;,&quot;[]&quot;,&quot;()&quot;],i=e.escape||&quot;___&quot;,a=!!e.flat;n.forEach((function(t){var e=new RegExp([&quot;\\&quot;,t[0],&quot;[^\\&quot;,t[0],&quot;\\&quot;,t[1],&quot;]*\\&quot;,t[1]].join(&quot;&quot;)),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++&gt;1e4)throw Error(&quot;References have circular dependency. Please, check them.&quot;);r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp(&quot;(\\&quot;+i+r+&quot;\\&quot;+i+&quot;)&quot;,&quot;g&quot;),t[0]+&quot;$1&quot;+t[1])})),e}))}));var o=new RegExp(&quot;\\&quot;+i+&quot;([0-9]+)\\&quot;+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++&gt;1e4)throw Error(&quot;Circular references in parenthesis&quot;);a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&amp;&amp;e.flat){var r,n=e&amp;&amp;e.escape||&quot;___&quot;,i=t[0];if(!i)return&quot;&quot;;for(var a=new RegExp(&quot;\\&quot;+n+&quot;([0-9]+)\\&quot;+n),o=0;i!=r;){if(o++&gt;1e4)throw Error(&quot;Circular references in &quot;+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&amp;&amp;(r=r.reduce(t,&quot;&quot;)),e+r}),&quot;&quot;);function s(e,r){if(null==t[r])throw Error(&quot;Reference &quot;+r+&quot;is undefined&quot;);return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],492:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);e.exports=function(t){var e;arguments.length&gt;1&amp;&amp;(t=arguments);&quot;string&quot;==typeof t?t=t.split(/\s/).map(parseFloat):&quot;number&quot;==typeof t&amp;&amp;(t=[t]);t.length&amp;&amp;&quot;number&quot;==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&amp;&amp;(t=n(t,{left:&quot;x l left Left&quot;,top:&quot;y t top Top&quot;,width:&quot;w width W Width&quot;,height:&quot;h height W Width&quot;,bottom:&quot;b bottom Bottom&quot;,right:&quot;r right Right&quot;}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{&quot;pick-by-alias&quot;:498}],493:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,(function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),&quot;m&quot;==o&amp;&amp;i.length&gt;2&amp;&amp;(e.push([r].concat(i.splice(0,2))),o=&quot;l&quot;,r=&quot;m&quot;==r?&quot;l&quot;:&quot;L&quot;);;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length&lt;n[o])throw new Error(&quot;malformed path data&quot;);e.push([r].concat(i.splice(0,n[o])))}})),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],494:[function(t,e,r){e.exports=function(t,e){e||(e=[0,&quot;&quot;]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||&quot;&quot;,e}},{}],495:[function(t,e,r){(function(t){(function(){(function(){var r,n,i,a,o,s;&quot;undefined&quot;!=typeof performance&amp;&amp;null!==performance&amp;&amp;performance.now?e.exports=function(){return performance.now()}:null!=t&amp;&amp;t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:528}],496:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;32){for(var r=1,i=0;i&lt;e;++i)for(var a=0;a&lt;i;++a)if(t[i]&lt;t[a])r=-r;else if(t[i]===t[a])return 0;return r}var o=n.mallocUint8(e);for(i=0;i&lt;e;++i)o[i]=0;for(r=1,i=0;i&lt;e;++i)if(!o[i]){var s=1;o[i]=1;for(a=t[i];a!==i;a=t[a]){if(o[a])return n.freeUint8(o),0;s+=1,o[a]=1}1&amp;s||(r=-r)}return n.freeUint8(o),r};var n=t(&quot;typedarray-pool&quot;)},{&quot;typedarray-pool&quot;:617}],497:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;invert-permutation&quot;);r.rank=function(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,a,o,s=n.mallocUint32(e),l=n.mallocUint32(e),c=0;for(i(t,l),o=0;o&lt;e;++o)s[o]=t[o];for(o=e-1;o&gt;0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},r.unrank=function(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(t))[0]=0,a=1;a&lt;t;++a)r[a]=a,o=o*a|0;for(a=t-1;a&gt;0;--a)e=e-(n=e/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},{&quot;invert-permutation&quot;:450,&quot;typedarray-pool&quot;:617}],498:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n,a,o={};if(&quot;string&quot;==typeof e&amp;&amp;(e=i(e)),Array.isArray(e)){var s={};for(a=0;a&lt;e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a&lt;c.length;a++){var u=c[a];if(r&amp;&amp;(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f&lt;c.length;f++)l[c[f]]=!0;break}}else n in t&amp;&amp;(e[n]&amp;&amp;(o[n]=t[n]),r&amp;&amp;(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(&quot;string&quot;==typeof t&amp;&amp;(t=n[t]=t.split(/\s*,\s*|\s+/)),t)}},{}],499:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o&lt;r;++o)a[0][o]=[],a[1][o]=[];for(o=0;o&lt;i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}var l=[];for(o=0;o&lt;r;++o)a[0][o].length+a[1][o].length===0&amp;&amp;l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u&lt;2;++u)if(a[u][r].length&gt;0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f&lt;2;++f)for(var h=a[f][r],p=0;p&lt;h.length;++p){var d=h[p],g=d[1^f];n(e[t],e[r],e[s],e[g])&gt;0&amp;&amp;(o=d,s=g,l=f)}return i||o&amp;&amp;c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])&lt;0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(o=0;o&lt;r;++o)for(var p=0;p&lt;2;++p){for(var d=[];a[p][o].length&gt;0;){a[0][o].length;var g=f(o,p);h(0,g)?d.push.apply(d,g):(d.length&gt;0&amp;&amp;l.push(d),d=g)}d.length&gt;0&amp;&amp;l.push(d)}return l};var n=t(&quot;compare-angle&quot;)},{&quot;compare-angle&quot;:138}],500:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s&lt;e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l&lt;=1&amp;&amp;o.push(s)}for(;o.length&gt;0;){var c=o.pop();i[c]=!1;var u=r[c];for(s=0;s&lt;u.length;++s){var f=u[s];0==--a[f]&amp;&amp;o.push(f)}}var h=new Array(e.length),p=[];for(s=0;s&lt;e.length;++s)if(i[s]){c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;var d=[];for(s=0;s&lt;t.length;++s){var g=t[s];i[g[0]]&amp;&amp;i[g[1]]&amp;&amp;d.push([h[g[0]],h[g[1]]])}return[d,p]};var n=t(&quot;edges-to-adjacency-list&quot;)},{&quot;edges-to-adjacency-list&quot;:187}],501:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p&lt;f;++p)if(h[p].length%2==1)throw new Error(&quot;planar-graph-to-polyline: graph must be manifold&quot;);var d=i(t,e);var g=(d=d.filter((function(t){for(var r=t.length,n=[0],i=0;i&lt;r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]&gt;0}))).length,m=new Array(g),v=new Array(g);for(p=0;p&lt;g;++p){m[p]=p;var y=new Array(g),x=d[p].map((function(t){return e[t]})),b=a([x]),_=0;t:for(var w=0;w&lt;g;++w)if(y[w]=0,p!==w){for(var T=(q=d[w]).length,k=0;k&lt;T;++k){var A=b(e[q[k]]);if(0!==A){A&lt;0&amp;&amp;(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}v[p]=[_,p,y]}v.sort((function(t,e){return e[0]-t[0]}));for(p=0;p&lt;g;++p){var M=(y=v[p])[1],S=y[2];for(w=0;w&lt;g;++w)S[w]&amp;&amp;(m[w]=M)}var E=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=[];return e}(g);for(p=0;p&lt;g;++p)E[p].push(m[p]),E[m[p]].push(p);var L={},C=u(f,!1);for(p=0;p&lt;g;++p)for(T=(q=d[p]).length,w=0;w&lt;T;++w){var P=q[w],I=q[(w+1)%T],O=Math.min(P,I)+&quot;:&quot;+Math.max(P,I);if(O in L){var z=L[O];E[z].push(p),E[p].push(z),C[P]=C[I]=!0}else L[O]=p}function D(t){for(var e=t.length,r=0;r&lt;e;++r)if(!C[t[r]])return!1;return!0}var R=[],F=u(g,-1);for(p=0;p&lt;g;++p)m[p]!==p||D(d[p])?F[p]=-1:(R.push(p),F[p]=0);r=[];for(;R.length&gt;0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];if(0===V){var q=d[B];j=[q]}for(p=0;p&lt;U;++p){var H=N[p];if(!(F[H]&gt;=0))if(F[H]=1^V,R.push(H),0===V)D(q=d[H])||(q.reverse(),j.push(q))}0===V&amp;&amp;r.push(j)}return r};var n=t(&quot;edges-to-adjacency-list&quot;),i=t(&quot;planar-dual&quot;),a=t(&quot;point-in-big-polygon&quot;),o=t(&quot;two-product&quot;),s=t(&quot;robust-sum&quot;),l=t(&quot;uniq&quot;),c=t(&quot;./lib/trim-leaves&quot;);function u(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}},{&quot;./lib/trim-leaves&quot;:500,&quot;edges-to-adjacency-list&quot;:187,&quot;planar-dual&quot;:499,&quot;point-in-big-polygon&quot;:503,&quot;robust-sum&quot;:553,&quot;two-product&quot;:604,uniq:619}],502:[function(t,e,r){arguments[4][251][0].apply(r,arguments)},{dup:251}],503:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s&lt;e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p&lt;f;h=p++){var d=u[h],g=u[p];d[0]===g[0]?a.push([d,g]):r.push([d,g])}if(0===r.length)return 0===a.length?c:(m=l(a),function(t){return m(t[0],t[1])?0:1});var m;var v=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i&lt;0)return 1;var a=t[i];if(!a){if(!(i&gt;0&amp;&amp;e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]&lt;l[1][0])if(c&lt;0)a=a.left;else{if(!(c&gt;0))return 0;s=-1,a=a.right}else if(c&gt;0)a=a.left;else{if(!(c&lt;0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(&quot;robust-orientation&quot;)[3],i=t(&quot;slab-decomposition&quot;),a=t(&quot;interval-tree-1d&quot;),o=t(&quot;binary-search-bounds&quot;);function s(){return!0}function l(t){for(var e={},r=0;r&lt;t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r&lt;f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&amp;&amp;!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{&quot;binary-search-bounds&quot;:502,&quot;interval-tree-1d&quot;:448,&quot;robust-orientation&quot;:548,&quot;slab-decomposition&quot;:566}],504:[function(t,e,r){
/*
 * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
 * @license MIT
 * @preserve Project Home: https://github.com/voidqk/polybooljs
 */
var n,i=t(&quot;./lib/build-log&quot;),a=t(&quot;./lib/epsilon&quot;),o=t(&quot;./lib/intersecter&quot;),s=t(&quot;./lib/segment-chainer&quot;),l=t(&quot;./lib/segment-selector&quot;),c=t(&quot;./lib/geojson&quot;),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&amp;&amp;(u=!1),!1!==u&amp;&amp;u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&amp;&amp;t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&amp;&amp;!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&amp;&amp;t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},&quot;object&quot;==typeof window&amp;&amp;(window.PolyBool=n),e.exports=n},{&quot;./lib/build-log&quot;:505,&quot;./lib/epsilon&quot;:506,&quot;./lib/geojson&quot;:507,&quot;./lib/intersecter&quot;:508,&quot;./lib/segment-chainer&quot;:510,&quot;./lib/segment-selector&quot;:511}],505:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(&quot;check&quot;,{seg1:t,seg2:e})},segmentChop:function(t,e){return n(&quot;div_seg&quot;,{seg:t,pt:e}),n(&quot;chop&quot;,{seg:t,pt:e})},statusRemove:function(t){return n(&quot;pop_seg&quot;,{seg:t})},segmentUpdate:function(t){return n(&quot;seg_update&quot;,{seg:t})},segmentNew:function(t,e){return n(&quot;new_seg&quot;,{seg:t,primary:e})},segmentRemove:function(t){return n(&quot;rem_seg&quot;,{seg:t})},tempStatus:function(t,e,r){return n(&quot;temp_status&quot;,{seg:t,above:e,below:r})},rewind:function(t){return n(&quot;rewind&quot;,{seg:t})},status:function(t,e,r){return n(&quot;status&quot;,{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(&quot;vert&quot;,{x:e}))},log:function(t){return&quot;string&quot;!=typeof t&amp;&amp;(t=JSON.stringify(t,!1,&quot;  &quot;)),n(&quot;log&quot;,{txt:t})},reset:function(){return n(&quot;reset&quot;)},selected:function(t){return n(&quot;selected&quot;,{segs:t})},chainStart:function(t){return n(&quot;chain_start&quot;,{seg:t})},chainRemoveHead:function(t,e){return n(&quot;chain_rem_head&quot;,{index:t,pt:e})},chainRemoveTail:function(t,e){return n(&quot;chain_rem_tail&quot;,{index:t,pt:e})},chainNew:function(t,e){return n(&quot;chain_new&quot;,{pt1:t,pt2:e})},chainMatch:function(t){return n(&quot;chain_match&quot;,{index:t})},chainClose:function(t){return n(&quot;chain_close&quot;,{index:t})},chainAddHead:function(t,e){return n(&quot;chain_add_head&quot;,{index:t,pt:e})},chainAddTail:function(t,e){return n(&quot;chain_add_tail&quot;,{index:t,pt:e})},chainConnect:function(t,e){return n(&quot;chain_con&quot;,{index1:t,index2:e})},chainReverse:function(t){return n(&quot;chain_rev&quot;,{index:t})},chainJoin:function(t,e){return n(&quot;chain_join&quot;,{index1:t,index2:e})},done:function(){return n(&quot;done&quot;)}}}},{}],506:[function(t,e,r){e.exports=function(t){&quot;number&quot;!=typeof t&amp;&amp;(t=1e-10);var e={epsilon:function(e){return&quot;number&quot;==typeof e&amp;&amp;(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)&gt;=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l&lt;t)&amp;&amp;!(l-(a*a+s*s)&gt;-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])&lt;t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])&lt;t},pointsSame:function(t,r){return e.pointsSameX(t,r)&amp;&amp;e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]&lt;r[1]?-1:1:t[0]&lt;r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)&lt;t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)&lt;t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h&lt;=-t?-2:h&lt;t?-1:h-1&lt;=-t?0:h-1&lt;t?1:2,d.alongB=p&lt;=-t?-2:p&lt;t?-1:p-1&lt;=-t?0:p-1&lt;t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l&lt;r.length;l++){var c=r[l][0],u=r[l][1];u-i&gt;t!=o-i&gt;t&amp;&amp;(a-c)*(i-u)/(o-u)+c-n&gt;t&amp;&amp;(s=!s),a=c,o=u}return s}};return e}},{}],507:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length&lt;=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i&lt;e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(&quot;Polygon&quot;===e.type)return t.polygon(r(e.coordinates));if(&quot;MultiPolygon&quot;===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i&lt;e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(&quot;PolyBool: Cannot convert GeoJSON object to PolyBool polygon&quot;)},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r&lt;t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r&lt;t.children.length;r++){var s;n((s=t.children[r]).region,e)&amp;&amp;(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s&lt;r.regions.length;s++){var l=r.regions[s];l.length&lt;3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o&lt;t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r&lt;0!==e&amp;&amp;a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r&lt;t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e&lt;t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s&lt;a.children.length;s++)f(a.children[s]);return u.length&lt;=0?{type:&quot;Polygon&quot;,coordinates:[]}:1==u.length?{type:&quot;Polygon&quot;,coordinates:u[0]}:{type:&quot;MultiPolygon&quot;,coordinates:u}}};e.exports=n},{}],508:[function(t,e,r){var n=t(&quot;./linked-list&quot;);e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,(function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)&lt;0}))}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&amp;&amp;r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition((function(r){var n,i,a,o,s,l;return(n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)||e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)&gt;0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&amp;&amp;r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&amp;&amp;p)return n;var d=!h&amp;&amp;e.pointBetween(o,c,u),g=!p&amp;&amp;e.pointBetween(s,c,u);if(h)return g?l(n,s):l(t,u),n;d&amp;&amp;(p||(g?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&amp;&amp;(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&amp;&amp;l(t,u)),0===f.alongB&amp;&amp;(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&amp;&amp;l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&amp;&amp;r.vert(h.pt[0]),h.isStart){r&amp;&amp;r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function m(){if(d){var t=u(h,d);if(t)return t}return!!g&amp;&amp;u(h,g)}r&amp;&amp;r.tempStatus(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg);var v,y=m();if(y){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&amp;&amp;(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;r&amp;&amp;r.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){r&amp;&amp;r.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:i,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)v=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:v,below:v};r&amp;&amp;r.status(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(&quot;PolyBool: Zero-length segment detected; your epsilon is probably too small or too large&quot;);if(s.exists(b.prev)&amp;&amp;s.exists(b.next)&amp;&amp;u(b.prev.ev,b.next.ev),r&amp;&amp;r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&amp;&amp;r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l&lt;t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&amp;&amp;s((i=c&lt;0?n:o,a=c&lt;0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach((function(t){s(i(t.start,t.end,t),!0)})),r.forEach((function(t){s(i(t.start,t.end,t),!1)})),c(e,n)}}}},{&quot;./linked-list&quot;:509}],509:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&amp;&amp;e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&amp;&amp;!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&amp;&amp;(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&amp;&amp;(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],510:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(&quot;PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large&quot;);else{r&amp;&amp;r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u&lt;n.length;u++){var f=(m=n[u])[0],h=(m[1],m[m.length-1]);m[m.length-2];if(e.pointsSame(f,a)){if(k(u,!0,!0))break}else if(e.pointsSame(f,o)){if(k(u,!0,!1))break}else if(e.pointsSame(h,a)){if(k(u,!1,!0))break}else if(e.pointsSame(h,o)&amp;&amp;k(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&amp;&amp;r.chainNew(a,o));if(c===l){r&amp;&amp;r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,g=s.matches_head,m=n[p],v=g?m[0]:m[m.length-1],y=g?m[1]:m[m.length-2],x=g?m[m.length-1]:m[0],b=g?m[m.length-2]:m[1];return e.pointsCollinear(y,v,d)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveHead(s.index,d),m.shift()):(r&amp;&amp;r.chainRemoveTail(s.index,d),m.pop()),v=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,v)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveTail(s.index,v),m.pop()):(r&amp;&amp;r.chainRemoveHead(s.index,v),m.shift())),r&amp;&amp;r.chainClose(s.index),void i.push(m)):void(g?(r&amp;&amp;r.chainAddHead(s.index,d),m.unshift(d)):(r&amp;&amp;r.chainAddTail(s.index,d),m.push(d)))}var _=s.index,w=l.index;r&amp;&amp;r.chainConnect(_,w);var T=n[_].length&lt;n[w].length;s.matches_head?l.matches_head?T?(A(_),M(_,w)):(A(w),M(w,_)):M(w,_):l.matches_head?M(_,w):T?(A(_),M(w,_)):(A(w),M(_,w))}function k(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function A(t){r&amp;&amp;r.chainReverse(t),n[t].reverse()}function M(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&amp;&amp;(r&amp;&amp;r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&amp;&amp;(r&amp;&amp;r.chainRemoveHead(i,c),o.shift()),r&amp;&amp;r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}})),i}},{}],511:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&amp;&amp;t.otherFill.above?2:0)+(t.otherFill&amp;&amp;t.otherFill.below?1:0);0!==e[i]&amp;&amp;n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&amp;&amp;r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],512:[function(t,e,r){&quot;use strict&quot;;var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length&lt;o.length&amp;&amp;(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l&lt;o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l&lt;o.length;++l){var g=i[l],m=a[l],v=n[l];c+=g*g,u+=g*m,f+=m*m,h+=v*g,p+=v*m,d+=v*v}var y,x,b,_,w,T=Math.abs(c*f-u*u),k=u*p-f*h,A=u*h-c*p;if(k+A&lt;=T)if(k&lt;0)A&lt;0&amp;&amp;h&lt;0?(A=0,-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d):(k=0,p&gt;=0?(A=0,y=d):-p&gt;=f?(A=1,y=f+2*p+d):y=p*(A=-p/f)+d);else if(A&lt;0)A=0,h&gt;=0?(k=0,y=d):-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d;else{var M=1/T;y=(k*=M)*(c*k+u*(A*=M)+2*h)+A*(u*k+f*A+2*p)+d}else k&lt;0?(b=f+p)&gt;(x=u+h)?(_=b-x)&gt;=(w=c-2*u+f)?(k=1,A=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(A=1-k)+2*h)+A*(u*k+f*A+2*p)+d:(k=0,b&lt;=0?(A=1,y=f+2*p+d):p&gt;=0?(A=0,y=d):y=p*(A=-p/f)+d):A&lt;0?(b=c+h)&gt;(x=u+p)?(_=b-x)&gt;=(w=c-2*u+f)?(A=1,k=0,y=f+2*p+d):y=(k=1-(A=_/w))*(c*k+u*A+2*h)+A*(u*k+f*A+2*p)+d:(A=0,b&lt;=0?(k=1,y=c+2*h+d):h&gt;=0?(k=0,y=d):y=h*(k=-h/c)+d):(_=f+p-u-h)&lt;=0?(k=0,A=1,y=f+2*p+d):_&gt;=(w=c-2*u+f)?(k=1,A=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(A=1-k)+2*h)+A*(u*k+f*A+2*p)+d;var S=1-k-A;for(l=0;l&lt;o.length;++l)s[l]=S*t[l]+k*e[l]+A*r[l];return y&lt;0?0:y}},{}],513:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;stream&quot;).Transform,i=t(&quot;stream-parser&quot;);function a(){n.call(this,{readableObjectMode:!0})}function o(t,e,r){Error.call(this),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=t,e&amp;&amp;(this.code=e),r&amp;&amp;(this.statusCode=r)}a.prototype=Object.create(n.prototype),a.prototype.constructor=a,i(a.prototype),r.ParserStream=a,r.sliceEq=function(t,e,r){for(var n=e,i=0;i&lt;r.length;)if(t[n++]!==r[i++])return!1;return!0},r.str2arr=function(t,e){var r=[],n=0;if(e&amp;&amp;&quot;hex&quot;===e)for(;n&lt;t.length;)r.push(parseInt(t.slice(n,n+2),16)),n+=2;else for(;n&lt;t.length;n++)r.push(255&amp;t.charCodeAt(n));return r},r.readUInt16LE=function(t,e){return t[e]|t[e+1]&lt;&lt;8},r.readUInt16BE=function(t,e){return t[e+1]|t[e]&lt;&lt;8},r.readUInt32LE=function(t,e){return t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16|16777216*t[e+3]},r.readUInt32BE=function(t,e){return t[e+3]|t[e+2]&lt;&lt;8|t[e+1]&lt;&lt;16|16777216*t[e]},o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,r.ProbeError=o},{stream:569,&quot;stream-parser&quot;:585}],514:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=new Error(t);return r.code=e,r}function i(t){try{return decodeURIComponent(escape(t))}catch(e){return t}}function a(t,e,r){this.input=t.subarray(e,r),this.start=e;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if(&quot;II*\0&quot;!==i&amp;&amp;&quot;MM\0*&quot;!==i)throw n(&quot;invalid TIFF signature&quot;,&quot;EBADDATA&quot;);this.big_endian=&quot;M&quot;===i[0]}a.prototype.each=function(t){this.aborted=!1;var e=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:e}];this.ifds_to_read.length&gt;0&amp;&amp;!this.aborted;){var r=this.ifds_to_read.shift();r.offset&amp;&amp;this.scan_ifd(r.id,r.offset,t)}},a.prototype.read_uint16=function(t){var e=this.input;if(t+2&gt;e.length)throw n(&quot;unexpected EOF&quot;,&quot;EBADDATA&quot;);return this.big_endian?256*e[t]+e[t+1]:e[t]+256*e[t+1]},a.prototype.read_uint32=function(t){var e=this.input;if(t+4&gt;e.length)throw n(&quot;unexpected EOF&quot;,&quot;EBADDATA&quot;);return this.big_endian?16777216*e[t]+65536*e[t+1]+256*e[t+2]+e[t+3]:e[t]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3]},a.prototype.is_subifd_link=function(t,e){return 0===t&amp;&amp;34665===e||0===t&amp;&amp;34853===e||34665===t&amp;&amp;40965===e},a.prototype.exif_format_length=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},a.prototype.exif_format_read=function(t,e){var r;switch(t){case 1:case 2:return r=this.input[e];case 6:return(r=this.input[e])|33554430*(128&amp;r);case 3:return r=this.read_uint16(e);case 8:return(r=this.read_uint16(e))|131070*(32768&amp;r);case 4:return r=this.read_uint32(e);case 9:return 0|(r=this.read_uint32(e));case 5:case 10:case 11:case 12:case 7:default:return null}},a.prototype.scan_ifd=function(t,e,r){var a=this.read_uint16(e);e+=2;for(var o=0;o&lt;a;o++){var s=this.read_uint16(e),l=this.read_uint16(e+2),c=this.read_uint32(e+4),u=this.exif_format_length(l),f=c*u,h=f&lt;=4?e+8:this.read_uint32(e+8),p=!1;if(h+f&gt;this.input.length)throw n(&quot;unexpected EOF&quot;,&quot;EBADDATA&quot;);for(var d=[],g=h,m=0;m&lt;c;m++,g+=u){var v=this.exif_format_read(l,g);if(null===v){d=null;break}d.push(v)}if(Array.isArray(d)&amp;&amp;2===l&amp;&amp;(d=i(String.fromCharCode.apply(null,d)))&amp;&amp;&quot;\0&quot;===d[d.length-1]&amp;&amp;(d=d.slice(0,-1)),this.is_subifd_link(t,s)&amp;&amp;Array.isArray(d)&amp;&amp;Number.isInteger(d[0])&amp;&amp;d[0]&gt;0&amp;&amp;(this.ifds_to_read.push({id:s,offset:d[0]}),p=!0),!1===r({is_big_endian:this.big_endian,ifd:t,tag:s,format:l,count:c,entry_offset:e+this.start,data_length:f,data_offset:h+this.start,value:d,is_subifd_link:p}))return void(this.aborted=!0);e+=12}0===t&amp;&amp;this.ifds_to_read.push({id:1,offset:this.read_uint32(e)})},e.exports.ExifParser=a,e.exports.get_orientation=function(t){var e=0;try{return new a(t,0,t.length).each((function(t){if(0===t.ifd&amp;&amp;274===t.tag&amp;&amp;Array.isArray(t.value))return e=t.value[0],!1})),e}catch(t){return-1}}},{}],515:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./common&quot;).readUInt16BE,i=t(&quot;./common&quot;).readUInt32BE;function a(t,e){if(t.length&lt;4+e)return null;var r=i(t,e);return t.length&lt;r+e||r&lt;8?null:{boxtype:String.fromCharCode.apply(null,t.slice(e+4,e+8)),data:t.slice(e+8,e+r),end:e+r}}function o(t,e){for(var r=0;;){var n=a(t,r);if(!n)break;switch(n.boxtype){case&quot;ispe&quot;:e.sizes.push({width:i(n.data,4),height:i(n.data,8)});break;case&quot;irot&quot;:e.transforms.push({type:&quot;irot&quot;,value:3&amp;n.data[0]});break;case&quot;imir&quot;:e.transforms.push({type:&quot;imir&quot;,value:1&amp;n.data[0]})}r=n.end}}function s(t,e,r){for(var n=0,i=0;i&lt;r;i++)n=256*n+(t[e+i]||0);return n}function l(t,e){for(var r=t[4]&gt;&gt;4&amp;15,i=15&amp;t[4],a=t[5]&gt;&gt;4&amp;15,o=n(t,6),l=8,c=0;c&lt;o;c++){var u=n(t,l),f=n(t,l+=2),h=s(t,l+=2,a),p=n(t,l+=a);if(l+=2,0===f&amp;&amp;1===p){var d=s(t,l,r),g=s(t,l+r,i);e.item_loc[u]={length:g,offset:d+h}}l+=p*(r+i)}}function c(t,e){for(var r=n(t,4),i=6,o=0;o&lt;r;o++){var s=a(t,i);if(!s)break;if(&quot;infe&quot;===s.boxtype){for(var l=n(s.data,4),c=&quot;&quot;,u=8;u&lt;s.data.length&amp;&amp;s.data[u];u++)c+=String.fromCharCode(s.data[u]);e.item_inf[c]=l}i=s.end}}function u(t,e){for(var r=0;;){var n=a(t,r);if(!n)break;&quot;ipco&quot;===n.boxtype&amp;&amp;o(n.data,e),r=n.end}}e.exports.unbox=a,e.exports.readSizeFromMeta=function(t){var e={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(function(t,e){for(var r=4;;){var n=a(t,r);if(!n)break;&quot;iprp&quot;===n.boxtype&amp;&amp;u(n.data,e),&quot;iloc&quot;===n.boxtype&amp;&amp;l(n.data,e),&quot;iinf&quot;===n.boxtype&amp;&amp;c(n.data,e),r=n.end}}(t,e),e.sizes.length){var r,n,i,o=(r=e.sizes,n=r.reduce((function(t,e){return t.width&gt;e.width||t.width===e.width&amp;&amp;t.height&gt;e.height?t:e})),i=r.reduce((function(t,e){return t.height&gt;e.height||t.height===e.height&amp;&amp;t.width&gt;e.width?t:e})),n.width&gt;i.height||n.width===i.height&amp;&amp;n.height&gt;i.width?n:i),s=1;e.transforms.forEach((function(t){var e={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},r={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(&quot;imir&quot;===t.type&amp;&amp;(s=0===t.value?r[s]:e[s=e[s=r[s]]]),&quot;irot&quot;===t.type)for(var n=0;n&lt;t.value;n++)s=e[s]}));var f=null;return e.item_inf.Exif&amp;&amp;(f=e.item_loc[e.item_inf.Exif]),{width:o.width,height:o.height,orientation:e.transforms.length?s:null,variants:e.sizes,exif_location:f}}},e.exports.getMimeType=function(t){var e=String.fromCharCode.apply(null,t.slice(0,4)),r={};r[e]=!0;for(var n=8;n&lt;t.length;n+=4)r[String.fromCharCode.apply(null,t.slice(n,n+4))]=!0;if(r.mif1||r.msf1||r.miaf)return&quot;avif&quot;===e||&quot;avis&quot;===e||&quot;avio&quot;===e?{type:&quot;avif&quot;,mime:&quot;image/avif&quot;}:&quot;heic&quot;===e||&quot;heix&quot;===e?{type:&quot;heic&quot;,mime:&quot;image/heic&quot;}:&quot;hevc&quot;===e||&quot;hevx&quot;===e?{type:&quot;heic&quot;,mime:&quot;image/heic-sequence&quot;}:r.avif||r.avis?{type:&quot;avif&quot;,mime:&quot;image/avif&quot;}:r.heic||r.heix||r.hevc||r.hevx||r.heis?r.msf1?{type:&quot;heif&quot;,mime:&quot;image/heif-sequence&quot;}:{type:&quot;heif&quot;,mime:&quot;image/heif&quot;}:{type:&quot;avif&quot;,mime:&quot;image/avif&quot;}}},{&quot;./common&quot;:513}],516:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt32BE,o=t(&quot;../miaf_utils&quot;),s=t(&quot;../exif_utils&quot;),l=n(&quot;ftyp&quot;);e.exports=function(t){if(i(t,4,l)){var e=o.unbox(t,0);if(e){var r=o.getMimeType(e.data);if(r){for(var n,c=e.end;;){var u=o.unbox(t,c);if(!u)break;if(c=u.end,&quot;mdat&quot;===u.boxtype)return;if(&quot;meta&quot;===u.boxtype){n=u.data;break}}if(n){var f=o.readSizeFromMeta(n);if(f){var h={width:f.width,height:f.height,type:r.type,mime:r.mime,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;};if(f.variants.length&gt;1&amp;&amp;(h.variants=f.variants),f.orientation&amp;&amp;(h.orientation=f.orientation),f.exif_location&amp;&amp;f.exif_location.offset+f.exif_location.length&lt;=t.length){var p=a(t,f.exif_location.offset),d=t.slice(f.exif_location.offset+p+4,f.exif_location.offset+f.exif_location.length),g=s.get_orientation(d);g&gt;0&amp;&amp;(h.orientation=g)}return h}}}}}}},{&quot;../common&quot;:513,&quot;../exif_utils&quot;:514,&quot;../miaf_utils&quot;:515}],517:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=n(&quot;BM&quot;);e.exports=function(t){if(!(t.length&lt;26)&amp;&amp;i(t,0,o))return{width:a(t,18),height:a(t,22),type:&quot;bmp&quot;,mime:&quot;image/bmp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:513}],518:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=n(&quot;GIF87a&quot;),s=n(&quot;GIF89a&quot;);e.exports=function(t){if(!(t.length&lt;10)&amp;&amp;(i(t,0,o)||i(t,0,s)))return{width:a(t,6),height:a(t,8),type:&quot;gif&quot;,mime:&quot;image/gif&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:513}],519:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).readUInt16LE;e.exports=function(t){var e=n(t,0),r=n(t,2),i=n(t,4);if(0===e&amp;&amp;1===r&amp;&amp;i){for(var a=[],o={width:0,height:0},s=0;s&lt;i;s++){var l=t[6+16*s]||256,c=t[6+16*s+1]||256,u={width:l,height:c};a.push(u),(l&gt;o.width||c&gt;o.height)&amp;&amp;(o=u)}return{width:o.width,height:o.height,variants:a,type:&quot;ico&quot;,mime:&quot;image/x-icon&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}}},{&quot;../common&quot;:513}],520:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).readUInt16BE,i=t(&quot;../common&quot;).str2arr,a=t(&quot;../common&quot;).sliceEq,o=t(&quot;../exif_utils&quot;),s=i(&quot;Exif\0\0&quot;);e.exports=function(t){if(!(t.length&lt;2)&amp;&amp;255===t[0]&amp;&amp;216===t[1])for(var e=2;;){if(t.length-e&lt;2)return;if(255!==t[e++])return;for(var r,i,l=t[e++];255===l;)l=t[e++];if(208&lt;=l&amp;&amp;l&lt;=217||1===l)r=0;else{if(!(192&lt;=l&amp;&amp;l&lt;=254))return;if(t.length-e&lt;2)return;r=n(t,e)-2,e+=2}if(217===l||218===l)return;if(225===l&amp;&amp;r&gt;=10&amp;&amp;a(t,e,s)&amp;&amp;(i=o.get_orientation(t.slice(e+6,e+r))),r&gt;=5&amp;&amp;192&lt;=l&amp;&amp;l&lt;=207&amp;&amp;196!==l&amp;&amp;200!==l&amp;&amp;204!==l){if(t.length-e&lt;r)return;var c={width:n(t,e+3),height:n(t,e+1),type:&quot;jpg&quot;,mime:&quot;image/jpeg&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;};return i&gt;0&amp;&amp;(c.orientation=i),c}e+=r}}},{&quot;../common&quot;:513,&quot;../exif_utils&quot;:514}],521:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt32BE,o=n(&quot;\x89PNG\r\n\x1a\n&quot;),s=n(&quot;IHDR&quot;);e.exports=function(t){if(!(t.length&lt;24)&amp;&amp;i(t,0,o)&amp;&amp;i(t,12,s))return{width:a(t,16),height:a(t,20),type:&quot;png&quot;,mime:&quot;image/png&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:513}],522:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt32BE,o=n(&quot;8BPS\0\x01&quot;);e.exports=function(t){if(!(t.length&lt;22)&amp;&amp;i(t,0,o))return{width:a(t,18),height:a(t,14),type:&quot;psd&quot;,mime:&quot;image/vnd.adobe.photoshop&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:513}],523:[function(t,e,r){&quot;use strict&quot;;function n(t){return&quot;number&quot;==typeof t&amp;&amp;isFinite(t)&amp;&amp;t&gt;0}var i=/&lt;[-_.:a-zA-Z0-9][^&gt;]*&gt;/,a=/^&lt;([-_.:a-zA-Z0-9]+:)?svg\s/,o=/[^-]\bwidth=&quot;([^%]+?)&quot;|[^-]\bwidth='([^%]+?)'/,s=/\bheight=&quot;([^%]+?)&quot;|\bheight='([^%]+?)'/,l=/\bview[bB]ox=&quot;(.+?)&quot;|\bview[bB]ox='(.+?)'/,c=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function u(t){return c.test(t)?t.match(c)[0]:&quot;px&quot;}e.exports=function(t){if(function(t){var e,r=0,n=t.length;for(239===t[0]&amp;&amp;187===t[1]&amp;&amp;191===t[2]&amp;&amp;(r=3);r&lt;n&amp;&amp;(32===(e=t[r])||9===e||13===e||10===e);)r++;return r!==n&amp;&amp;60===t[r]}(t)){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++)e+=String.fromCharCode(t[r]);var c=(e.match(i)||[&quot;&quot;])[0];if(a.test(c)){var f=function(t){var e=t.match(o),r=t.match(s),n=t.match(l);return{width:e&amp;&amp;(e[1]||e[2]),height:r&amp;&amp;(r[1]||r[2]),viewbox:n&amp;&amp;(n[1]||n[2])}}(c),h=parseFloat(f.width),p=parseFloat(f.height);if(f.width&amp;&amp;f.height){if(!n(h)||!n(p))return;return{width:h,height:p,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(f.width),hUnits:u(f.height)}}var d=(f.viewbox||&quot;&quot;).split(&quot; &quot;),g={width:d[2],height:d[3]},m=parseFloat(g.width),v=parseFloat(g.height);if(n(m)&amp;&amp;n(v)&amp;&amp;u(g.width)===u(g.height)){var y=m/v;if(f.width){if(!n(h))return;return{width:h,height:h/y,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(f.width),hUnits:u(f.width)}}if(f.height){if(!n(p))return;return{width:p*y,height:p,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(f.height),hUnits:u(f.height)}}return{width:m,height:v,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(g.width),hUnits:u(g.height)}}}}}},{}],524:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=t(&quot;../common&quot;).readUInt16BE,s=t(&quot;../common&quot;).readUInt32LE,l=t(&quot;../common&quot;).readUInt32BE,c=n(&quot;II*\0&quot;),u=n(&quot;MM\0*&quot;);function f(t,e,r){return r?o(t,e):a(t,e)}function h(t,e,r){return r?l(t,e):s(t,e)}function p(t,e,r){var n=f(t,e+2,r);return 1!==h(t,e+4,r)||3!==n&amp;&amp;4!==n?null:3===n?f(t,e+8,r):h(t,e+8,r)}e.exports=function(t){if(!(t.length&lt;8)&amp;&amp;(i(t,0,c)||i(t,0,u))){var e=77===t[0],r=h(t,4,e)-8;if(!(r&lt;0)){var n=r+8;if(!(t.length-n&lt;2)){var a=12*f(t,n+0,e);if(!(a&lt;=0||(n+=2,t.length-n&lt;a))){var o,s,l,d;for(o=0;o&lt;a;o+=12)256===(d=f(t,n+o,e))?s=p(t,n+o,e):257===d&amp;&amp;(l=p(t,n+o,e));return s&amp;&amp;l?{width:s,height:l,type:&quot;tiff&quot;,mime:&quot;image/tiff&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}:void 0}}}}}},{&quot;../common&quot;:513}],525:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=t(&quot;../common&quot;).readUInt32LE,s=t(&quot;../exif_utils&quot;),l=n(&quot;RIFF&quot;),c=n(&quot;WEBP&quot;);function u(t,e){if(157===t[e+3]&amp;&amp;1===t[e+4]&amp;&amp;42===t[e+5])return{width:16383&amp;a(t,e+6),height:16383&amp;a(t,e+8),type:&quot;webp&quot;,mime:&quot;image/webp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}function f(t,e){if(47===t[e]){var r=o(t,e+1);return{width:1+(16383&amp;r),height:1+(r&gt;&gt;14&amp;16383),type:&quot;webp&quot;,mime:&quot;image/webp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}}function h(t,e){return{width:1+(t[e+6]&lt;&lt;16|t[e+5]&lt;&lt;8|t[e+4]),height:1+(t[e+9]&lt;&lt;e|t[e+8]&lt;&lt;8|t[e+7]),type:&quot;webp&quot;,mime:&quot;image/webp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}e.exports=function(t){if(!(t.length&lt;16)&amp;&amp;(i(t,0,l)||i(t,8,c))){var e=12,r=null,n=0,a=o(t,4)+8;if(!(a&gt;t.length)){for(;e+8&lt;a;)if(0!==t[e]){var p=String.fromCharCode.apply(null,t.slice(e,e+4)),d=o(t,e+4);&quot;VP8 &quot;===p&amp;&amp;d&gt;=10?r=r||u(t,e+8):&quot;VP8L&quot;===p&amp;&amp;d&gt;=9?r=r||f(t,e+8):&quot;VP8X&quot;===p&amp;&amp;d&gt;=10?r=r||h(t,e+8):&quot;EXIF&quot;===p&amp;&amp;(n=s.get_orientation(t.slice(e+8,e+8+d)),e=1/0),e+=8+d}else e++;if(r)return n&gt;0&amp;&amp;(r.orientation=n),r}}}},{&quot;../common&quot;:513,&quot;../exif_utils&quot;:514}],526:[function(t,e,r){&quot;use strict&quot;;e.exports={avif:t(&quot;./parse_sync/avif&quot;),bmp:t(&quot;./parse_sync/bmp&quot;),gif:t(&quot;./parse_sync/gif&quot;),ico:t(&quot;./parse_sync/ico&quot;),jpeg:t(&quot;./parse_sync/jpeg&quot;),png:t(&quot;./parse_sync/png&quot;),psd:t(&quot;./parse_sync/psd&quot;),svg:t(&quot;./parse_sync/svg&quot;),tiff:t(&quot;./parse_sync/tiff&quot;),webp:t(&quot;./parse_sync/webp&quot;)}},{&quot;./parse_sync/avif&quot;:516,&quot;./parse_sync/bmp&quot;:517,&quot;./parse_sync/gif&quot;:518,&quot;./parse_sync/ico&quot;:519,&quot;./parse_sync/jpeg&quot;:520,&quot;./parse_sync/png&quot;:521,&quot;./parse_sync/psd&quot;:522,&quot;./parse_sync/svg&quot;:523,&quot;./parse_sync/tiff&quot;:524,&quot;./parse_sync/webp&quot;:525}],527:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/parsers_sync&quot;);e.exports=function(t){return function(t){for(var e=Object.keys(n),r=0;r&lt;e.length;r++){var i=n[e[r]](t);if(i)return i}return null}(t)},e.exports.parsers=n},{&quot;./lib/parsers_sync&quot;:526}],528:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(&quot;setTimeout has not been defined&quot;)}function s(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&amp;&amp;setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=&quot;function&quot;==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=&quot;function&quot;==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&amp;&amp;c&amp;&amp;(f=!1,c.length?u=c.concat(u):h=-1,u.length&amp;&amp;d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h&lt;e;)c&amp;&amp;c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&amp;&amp;clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length&gt;1)for(var r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];u.push(new g(t,e)),1!==u.length||f||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title=&quot;browser&quot;,a.browser=!0,a.env={},a.argv=[],a.version=&quot;&quot;,a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(&quot;process.binding is not supported&quot;)},a.cwd=function(){return&quot;/&quot;},a.chdir=function(t){throw new Error(&quot;process.chdir is not supported&quot;)},a.umask=function(){return 0}},{}],529:[function(t,e,r){e.exports=t(&quot;gl-quat/slerp&quot;)},{&quot;gl-quat/slerp&quot;:329}],530:[function(t,e,r){(function(r){(function(){for(var n=t(&quot;performance-now&quot;),i=&quot;undefined&quot;==typeof window?r:window,a=[&quot;moz&quot;,&quot;webkit&quot;],o=&quot;AnimationFrame&quot;,s=i[&quot;request&quot;+o],l=i[&quot;cancel&quot;+o]||i[&quot;cancelRequest&quot;+o],c=0;!s&amp;&amp;c&lt;a.length;c++)s=i[a[c]+&quot;Request&quot;+o],l=i[a[c]+&quot;Cancel&quot;+o]||i[a[c]+&quot;CancelRequest&quot;+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e&lt;t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e&lt;h.length;e++)h[e].handle===t&amp;&amp;(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;performance-now&quot;:495}],531:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/add&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/add&quot;:87}],532:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r)e[r]=n(t[r]);return e};var n=t(&quot;big-rat&quot;)},{&quot;big-rat&quot;:90}],533:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat&quot;),i=t(&quot;big-rat/mul&quot;);e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s&lt;a;++s)o[s]=i(t[s],r);return o}},{&quot;big-rat&quot;:90,&quot;big-rat/mul&quot;:99}],534:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/sub&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/sub&quot;:101}],535:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;compare-oriented-cell&quot;),a=t(&quot;cell-orientation&quot;);e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o&lt;e;++o){var s=t[o],l=a(s);if(0!==l){if(r&gt;0){var c=t[r-1];if(0===n(s,c)&amp;&amp;a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{&quot;cell-orientation&quot;:123,&quot;compare-cell&quot;:139,&quot;compare-oriented-cell&quot;:140}],536:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;),i=t(&quot;color-normalize&quot;),a=t(&quot;update-diff&quot;),o=t(&quot;pick-by-alias&quot;),s=t(&quot;object-assign&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;to-float32&quot;),u=c.float32,f=c.fract32;e.exports=function(t,e){&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t;e.length&amp;&amp;(e.positions=e);if(!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);var r,c,p,d,g,m,v=t._gl,y={color:&quot;black&quot;,capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array(0)}),c=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),p=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),g=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),m=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:h}),T(e),r=t({vert:&quot;\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t&quot;,frag:&quot;\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t&quot;,uniforms:{range:t.prop(&quot;range&quot;),lineWidth:t.prop(&quot;lineWidth&quot;),capSize:t.prop(&quot;capSize&quot;),opacity:t.prop(&quot;opacity&quot;),scale:t.prop(&quot;scale&quot;),translate:t.prop(&quot;translate&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:&quot;triangles&quot;,blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:!1,instances:t.prop(&quot;count&quot;),count:h.length}),s(b,{update:T,draw:_,destroy:k,regl:t,gl:v,canvas:v.canvas,groups:x}),b;function b(t){t?T(t):null===t&amp;&amp;k(),_()}function _(e){if(&quot;number&quot;==typeof e)return w(e);e&amp;&amp;!Array.isArray(e)&amp;&amp;(e=[e]),t._refresh(),x.forEach((function(t,r){t&amp;&amp;(e&amp;&amp;(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)}))}function w(t){&quot;number&quot;==typeof t&amp;&amp;(t=x[t]),null!=t&amp;&amp;t&amp;&amp;t.count&amp;&amp;t.color&amp;&amp;t.opacity&amp;&amp;t.positions&amp;&amp;t.positions.length&gt;1&amp;&amp;(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&amp;&amp;t.after(t))}function T(t){if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map((function(t,c){var u=x[c];return t?(&quot;function&quot;==typeof t?t={after:t}:&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=o(t,{color:&quot;color colors fill&quot;,capSize:&quot;capSize cap capsize cap-size&quot;,lineWidth:&quot;lineWidth line-width width line thickness&quot;,opacity:&quot;opacity alpha&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,errors:&quot;errors error&quot;,positions:&quot;positions position data points&quot;}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,&quot;float64&quot;),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=&quot;transparent&quot;),!Array.isArray(t)||&quot;number&quot;==typeof t[0]){var n=t;t=Array(r);for(var a=0;a&lt;r;a++)t[a]=n}if(t.length&lt;r)throw Error(&quot;Not enough colors&quot;);for(var o=new Uint8Array(4*r),s=0;s&lt;r;s++){var l=i(t[s],&quot;uint8&quot;);o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},e}}]),u):u})),e||r){var h=x.reduce((function(t,e,r){return t+(e?e.count:0)}),0),m=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach((function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&amp;&amp;(_.set(a,4*i),w.set(o,4*i),m.set(r,2*i))}}));var T=u(m);c(T);var k=f(m,T);p(k),d(_),g(w)}}}function k(){c.destroy(),p.destroy(),d.destroy(),g.destroy(),m.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{&quot;array-bounds&quot;:76,&quot;color-normalize&quot;:131,&quot;flatten-vertex-data&quot;:252,&quot;object-assign&quot;:487,&quot;pick-by-alias&quot;:498,&quot;to-float32&quot;:599,&quot;update-diff&quot;:621}],537:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;),i=t(&quot;array-bounds&quot;),a=t(&quot;object-assign&quot;),o=t(&quot;glslify&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;earcut&quot;),u=t(&quot;array-normalize&quot;),f=t(&quot;to-float32&quot;),h=f.float32,p=f.fract32,d=t(&quot;es6-weak-map&quot;),g=t(&quot;parse-rect&quot;),m=t(&quot;array-find-index&quot;);function v(t,e){if(!(this instanceof v))return new v(t,e);if(&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t,e.length&amp;&amp;(e.positions=e),!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=v.shaders.has(t)?v.shaders.get(t):v.shaders.set(t,v.createShaders(t)).get(t),this.update(e)}e.exports=v,v.dashMult=2,v.maxPatternLength=256,v.precisionThreshold=3e6,v.maxPoints=1e4,v.maxLines=2048,v.shaders=new d,v.createShaders=function(t){var e,r=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:[0,1,0,0,1,1,1,0]}),n={primitive:&quot;triangle strip&quot;,instances:t.prop(&quot;count&quot;),count:4,offset:0,uniforms:{miterMode:function(t,e){return&quot;round&quot;===e.join?2:1},miterLimit:t.prop(&quot;miterLimit&quot;),scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),thickness:t.prop(&quot;thickness&quot;),dashPattern:t.prop(&quot;dashTexture&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),dashSize:t.prop(&quot;dashLength&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(&quot;depth&quot;)},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;)},i=t(a({vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\n\nuniform float dashSize, pixelRatio, thickness, opacity, id;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:16,divisor:1},color:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:&quot;back&quot;},vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n  return ( val &lt; 0.0 || 0.0 &lt; val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n  vec2 adjustedScale;\n  adjustedScale.x = (abs(scale.x) &lt; MIN_DIFF) ? MIN_DIFF : scale.x;\n  adjustedScale.y = (abs(scale.y) &lt; MIN_DIFF) ? MIN_DIFF : scale.y;\n\n  vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) &lt; MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) &lt; MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse &amp;&amp; baClipping &gt; 0. &amp;&amp; baClipping &lt; length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse &amp;&amp; abClipping &gt; 0. &amp;&amp; abClipping &lt; length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position  * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:&quot;triangle&quot;,elements:function(t,e){return e.triangles},offset:0,vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n&quot;]),uniforms:{scale:t.prop(&quot;scale&quot;),color:t.prop(&quot;fill&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8},positionFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},v.defaults={dashes:null,join:&quot;miter&quot;,miterLimit:1,thickness:10,cap:&quot;square&quot;,color:&quot;black&quot;,opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},v.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&amp;&amp;(t=this).update.apply(t,e),this.draw()},v.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&amp;&amp;Array.isArray(e))return(n=t).draw.apply(n,e);&quot;number&quot;==typeof e&amp;&amp;(e=t.passes[e]),e&amp;&amp;e.count&gt;1&amp;&amp;e.opacity&amp;&amp;(t.regl._refresh(),e.fill&amp;&amp;e.triangles&amp;&amp;e.triangles.length&gt;2&amp;&amp;t.shaders.fill(e),e.thickness&amp;&amp;(e.scale[0]*e.viewport.width&gt;v.precisionThreshold||e.scale[1]*e.viewport.height&gt;v.precisionThreshold||&quot;rect&quot;===e.join||!e.join&amp;&amp;(e.thickness&lt;=2||e.count&gt;=v.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},v.prototype.update=function(t){var e=this;if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach((function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=s(t,{positions:&quot;positions points data coords&quot;,thickness:&quot;thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth&quot;,join:&quot;lineJoin linejoin join type mode&quot;,miterLimit:&quot;miterlimit miterLimit&quot;,dashes:&quot;dash dashes dasharray dash-array dashArray&quot;,color:&quot;color colour stroke colors colours stroke-color strokeColor&quot;,fill:&quot;fill fill-color fillColor&quot;,opacity:&quot;alpha opacity&quot;,overlay:&quot;overlay crease overlap intersect&quot;,close:&quot;closed close closed-path closePath&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,hole:&quot;holes hole hollow&quot;,splitNull:&quot;splitNull&quot;}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;}),colorBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array}),positionBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),positionFractBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array})},t=a({},v.defaults,t)),null!=t.thickness&amp;&amp;(d.thickness=parseFloat(t.thickness)),null!=t.opacity&amp;&amp;(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&amp;&amp;(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&amp;&amp;(d.overlay=!!t.overlay,f&lt;v.maxLines&amp;&amp;(d.depth=2*(v.maxLines-1-f%v.maxLines)/v.maxLines-1)),null!=t.join&amp;&amp;(d.join=t.join),null!=t.hole&amp;&amp;(d.hole=t.hole),null!=t.fill&amp;&amp;(d.fill=t.fill?n(t.fill,&quot;uint8&quot;):null),null!=t.viewport&amp;&amp;(d.viewport=g(t.viewport)),d.viewport||(d.viewport=g([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&amp;&amp;(d.close=t.close),null===t.positions&amp;&amp;(t.positions=[]),t.positions){var y,x;if(t.positions.x&amp;&amp;t.positions.y){var b=t.positions.x,_=t.positions.y;x=d.count=Math.max(b.length,_.length),y=new Float64Array(2*x);for(var w=0;w&lt;x;w++)y[2*w]=b[w],y[2*w+1]=_[w]}else y=l(t.positions,&quot;float64&quot;),x=d.count=Math.floor(y.length/2);var T=d.bounds=i(y,2);if(d.fill){for(var k=[],A={},M=0,S=0,E=0,L=d.count;S&lt;L;S++){var C=y[2*S],P=y[2*S+1];isNaN(C)||isNaN(P)||null==C||null==P?(C=y[2*M],P=y[2*M+1],A[S]=M):M=S,k[E++]=C,k[E++]=P}if(t.splitNull){d.count-1 in A||(A[d.count]=d.count-1);var I=Object.keys(A).map(Number).sort((function(t,e){return t-e})),O=[],z=0,D=null!=d.hole?d.hole[0]:null;if(null!=D){var R=m(I,(function(t){return t&gt;=D}));(I=I.slice(0,R)).push(D)}for(var F=function(t){var e=k.slice(2*z,2*I[t]).concat(D?k.slice(2*D):[]),r=(d.hole||[]).map((function(e){return e-D+(I[t]-z)})),n=c(e,r);n=n.map((function(e){return e+z+(e+z&lt;I[t]?0:D-I[t])})),O.push.apply(O,n),z=I[t]+1},B=0;B&lt;I.length;B++)F(B);for(var N=0,j=O.length;N&lt;j;N++)null!=A[O[N]]&amp;&amp;(O[N]=A[O[N]]);d.triangles=O}else{for(var U=c(k,d.hole||[]),V=0,q=U.length;V&lt;q;V++)null!=A[U[V]]&amp;&amp;(U[V]=A[U[V]]);d.triangles=U}}var H=new Float64Array(y);u(H,2,T);var G=new Float64Array(2*x+6);d.close?y[0]===y[2*x-2]&amp;&amp;y[1]===y[2*x-1]?(G[0]=H[2*x-4],G[1]=H[2*x-3]):(G[0]=H[2*x-2],G[1]=H[2*x-1]):(G[0]=H[0],G[1]=H[1]),G.set(H,2),d.close?y[0]===y[2*x-2]&amp;&amp;y[1]===y[2*x-1]?(G[2*x+2]=H[2],G[2*x+3]=H[3],d.count-=1):(G[2*x+2]=H[0],G[2*x+3]=H[1],G[2*x+4]=H[2],G[2*x+5]=H[3]):(G[2*x+2]=H[2*x-2],G[2*x+3]=H[2*x-1],G[2*x+4]=H[2*x-2],G[2*x+5]=H[2*x-1]);var Y=h(G);d.positionBuffer(Y);var W=p(G,Y);d.positionFractBuffer(W)}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&amp;&amp;d.count){var X=d.bounds,Z=X[2]-X[0],J=X[3]-X[1],K=d.range[2]-d.range[0],Q=d.range[3]-d.range[1];d.scale=[Z/K,J/Q],d.translate=[-d.range[0]/K+X[0]/K||0,-d.range[1]/Q+X[1]/Q||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var $,tt=0;if(!t.dashes||t.dashes.length&lt;2)tt=1,$=new Uint8Array([255,255,255,255,255,255,255,255]);else{tt=0;for(var et=0;et&lt;t.dashes.length;++et)tt+=t.dashes[et];$=new Uint8Array(tt*v.dashMult);for(var rt=0,nt=255,it=0;it&lt;2;it++)for(var at=0;at&lt;t.dashes.length;++at){for(var ot=0,st=t.dashes[at]*v.dashMult*.5;ot&lt;st;++ot)$[rt++]=nt;nt^=255}}d.dashLength=tt,d.dashTexture({channels:1,data:$,width:$.length,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;},0,0)}if(t.color){var lt=d.count,ct=t.color;ct||(ct=&quot;transparent&quot;);var ut=new Uint8Array(4*lt+4);if(Array.isArray(ct)&amp;&amp;&quot;number&quot;!=typeof ct[0]){for(var ft=0;ft&lt;lt;ft++){var ht=n(ct[ft],&quot;uint8&quot;);ut.set(ht,4*ft)}ut.set(n(ct[0],&quot;uint8&quot;),4*lt)}else for(var pt=n(ct,&quot;uint8&quot;),dt=0;dt&lt;lt+1;dt++)ut.set(pt,4*dt);d.colorBuffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:ut})}}else e.passes[f]=null})),t.length&lt;this.passes.length){for(var f=t.length;f&lt;this.passes.length;f++){var d=this.passes[f];d&amp;&amp;(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var y=[],x=0;x&lt;this.passes.length;x++)null!==this.passes[x]&amp;&amp;y.push(this.passes[x]);return this.passes=y,this}},v.prototype.destroy=function(){return this.passes.forEach((function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}},{&quot;array-bounds&quot;:76,&quot;array-find-index&quot;:77,&quot;array-normalize&quot;:78,&quot;color-normalize&quot;:131,earcut:186,&quot;es6-weak-map&quot;:241,&quot;flatten-vertex-data&quot;:252,glslify:442,&quot;object-assign&quot;:487,&quot;parse-rect&quot;:492,&quot;pick-by-alias&quot;:498,&quot;to-float32&quot;:599}],538:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:&quot;undefined&quot;!=typeof Symbol&amp;&amp;t[Symbol.iterator]||t[&quot;@@iterator&quot;];if(null==r)return;var n,i,a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&amp;&amp;(a.push(n.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}(t,e)||a(t,e)||function(){throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=t[Symbol.iterator]||null!=t[&quot;@@iterator&quot;])return Array.from(t)}(t)||a(t)||function(){throw new TypeError(&quot;Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function a(t,e){if(t){if(&quot;string&quot;==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return&quot;Object&quot;===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),&quot;Map&quot;===r||&quot;Set&quot;===r?Array.from(t):&quot;Arguments&quot;===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var s=t(&quot;color-normalize&quot;),l=t(&quot;array-bounds&quot;),c=t(&quot;color-id&quot;),u=t(&quot;@plotly/point-cluster&quot;),f=t(&quot;object-assign&quot;),h=t(&quot;glslify&quot;),p=t(&quot;pick-by-alias&quot;),d=t(&quot;update-diff&quot;),g=t(&quot;flatten-vertex-data&quot;),m=t(&quot;is-iexplorer&quot;),v=t(&quot;to-float32&quot;),y=t(&quot;parse-rect&quot;),x=b;function b(t,e){var r=this;if(!(this instanceof b))return new b(t,e);&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&amp;&amp;e.length&amp;&amp;(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=m,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:&quot;uint8&quot;,format:&quot;rgba&quot;,wrapS:&quot;clamp&quot;,wrapT:&quot;clamp&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;}),f(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{constPointSize:!!e.constPointSize,pixelRatio:t.context(&quot;pixelRatio&quot;),palette:n,paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translate:t.prop(&quot;translate&quot;),translateFract:t.prop(&quot;translateFract&quot;),opacity:t.prop(&quot;opacity&quot;),marker:t.prop(&quot;markerTexture&quot;)},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(&quot;elements&quot;),count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),primitive:&quot;points&quot;},s=f({},o);s.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nuniform sampler2D marker;\nuniform float opacity;\n\nfloat smoothStep(float x, float y) {\n  return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n  float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\n\n  // max-distance alpha\n  if (dist &lt; 0.003) discard;\n\n  // null-border case\n  if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n    float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n    gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n  }\n  else {\n    float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n    float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n    vec4 color = fragBorderColor;\n    color.a *= borderColorAmt;\n    color = mix(color, fragColor, colorAmt);\n    color.a *= opacity;\n\n    gl_FragColor = color;\n  }\n\n}\n&quot;]),s.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = 2. * size * pointSizeScale;\n  fragPointSize = size * pixelRatio;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragColor = color;\n  fragBorderColor = borderColor;\n  fragWidth = 1. / gl_PointSize;\n\n  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}&quot;]),this.drawMarker=t(s);var l=f({},o);l.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\n\nuniform float opacity;\nvarying float fragBorderRadius, fragWidth;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius &gt; 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n&quot;]),l.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\nuniform vec2 paletteSize;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = (size + borderSize) * pointSizeScale;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n  fragColor = color;\n  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n  fragWidth = 1. / gl_PointSize;\n}\n&quot;]),m&amp;&amp;(l.frag=l.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;),s.frag=s.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;)),this.drawCircle=t(l)}b.defaults={color:&quot;black&quot;,borderColor:&quot;transparent&quot;,borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&amp;&amp;this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];var i=this.groups;if(1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(null===r[0][0]||Array.isArray(r[0][0]))&amp;&amp;(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a&lt;r.length;a++)this.drawItem(a,r[a]);else i.forEach((function(e,r){t.drawItem(r)}));return this},b.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(&quot;number&quot;==typeof e&amp;&amp;(t=e,n=r[e],e=null),n&amp;&amp;n.count&amp;&amp;n.opacity){n.activation[0]&amp;&amp;this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var a=[],o=1;o&lt;n.activation.length;o++)n.activation[o]&amp;&amp;(!0===n.activation[o]||n.activation[o].data.length)&amp;&amp;a.push.apply(a,i(this.getMarkerDrawOptions(o,n,e)));a.length&amp;&amp;this.drawMarker(a)}},b.prototype.getMarkerDrawOptions=function(t,e,r){var i=e.range,a=e.tree,o=e.viewport,s=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!a)return r?[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],count:r.length,elements:r,offset:0})]:[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],offset:0})];var u=[],h=a.range(i,{lod:!0,px:[(i[2]-i[0])/o.width,(i[3]-i[1])/o.height]});if(r){for(var p=s[t].data,d=new Uint8Array(c),g=0;g&lt;r.length;g++){var m=r[g];d[m]=p?p[m]:1}l.subdata(d)}for(var v=h.length;v--;){var y=n(h[v],2),x=y[0],b=y[1];u.push(f({},e,{markerTexture:this.markerTextures[t],activation:r?l:s[t],offset:x,count:b-x}))}return u},b.prototype.update=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];if(r.length){1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,s=this.maxSize,c=this.maxColors,h=this.palette;this.groups=i=r.map((function(e,r){var n=i[r];if(void 0===e)return n;null===e?e={positions:null}:&quot;function&quot;==typeof e?e={ondraw:e}:&quot;number&quot;==typeof e[0]&amp;&amp;(e={positions:e}),null===(e=p(e,{positions:&quot;positions data points&quot;,snap:&quot;snap cluster lod tree&quot;,size:&quot;sizes size radius&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,color:&quot;colors color fill fill-color fillColor&quot;,borderColor:&quot;borderColors borderColor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range dataBox databox&quot;,viewport:&quot;viewport viewPort viewBox viewbox&quot;,opacity:&quot;opacity alpha transparency&quot;,bounds:&quot;bound bounds boundaries limits&quot;,tooManyColors:&quot;tooManyColors palette paletteMode optimizePalette enablePalette&quot;})).positions&amp;&amp;(e.positions=[]),null!=e.tooManyColors&amp;&amp;(t.tooManyColors=e.tooManyColors),n||(i[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;stream&quot;,type:&quot;uint8&quot;}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;})},e=f({},b.defaults,e)),e.positions&amp;&amp;!(&quot;marker&quot;in e)&amp;&amp;(e.marker=n.marker,delete n.marker),e.marker&amp;&amp;!(&quot;positions&quot;in e)&amp;&amp;(e.positions=n.positions,delete n.positions);var m=0,x=0;if(d(n,e,[{snap:!0,size:function(t,e){return null==t&amp;&amp;(t=b.defaults.size),m+=t&amp;&amp;t.length?1:0,t},borderSize:function(t,e){return null==t&amp;&amp;(t=b.defaults.borderSize),m+=t&amp;&amp;t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&amp;&amp;(e=b.defaults.color),e=t.updateColor(e),x++,e},borderColor:function(e,r){return null==e&amp;&amp;(e=b.defaults.borderColor),e=t.updateColor(e),x++,e},bounds:function(t,e,r){return&quot;range&quot;in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,i=e.positionBuffer,a=e.positionFractBuffer,s=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:o.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:o.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=g(t,&quot;float64&quot;);var c=e.count=Math.floor(t.length/2),f=e.bounds=c?l(t,2):null;if(r.range||e.range||(delete e.range,r.range=f),r.marker||e.marker||(delete e.marker,r.marker=null),n&amp;&amp;(!0===n||c&gt;n)?e.tree=u(t,{bounds:f}):n&amp;&amp;n.length&amp;&amp;(e.tree=n),e.tree){var h={primitive:&quot;points&quot;,usage:&quot;static&quot;,data:e.tree,type:&quot;uint32&quot;};e.elements?e.elements(h):e.elements=o.elements(h)}var p=v.float32(t);return i({data:p,usage:&quot;dynamic&quot;}),a({data:v.fract32(t,p),usage:&quot;dynamic&quot;}),s({data:new Uint8Array(c),type:&quot;uint8&quot;,usage:&quot;stream&quot;}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),i.length=0,e&amp;&amp;&quot;number&quot;!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s&lt;l;s++){var c=t.addMarker(e[s]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][s]=1}for(var u=0;u&lt;a.length;u++)if(a[u]){var f={data:a[u],type:&quot;uint8&quot;,usage:&quot;static&quot;};i[u]?i[u](f):i[u]=o.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=v.fract(e.scale),e.translateFract=v.fract(e.translate),t},viewport:function(t){return y(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),m){var _=n,w=_.count,T=_.size,k=_.borderSize,A=_.sizeBuffer,M=new Uint8Array(2*w);if(T.length||k.length)for(var S=0;S&lt;w;S++)M[2*S]=Math.round(255*(null==T[S]?T:T[S])/s),M[2*S+1]=Math.round(255*(null==k[S]?k:k[S])/s);A({data:M,usage:&quot;dynamic&quot;})}if(x){var E,L=n,C=L.count,P=L.color,I=L.borderColor,O=L.colorBuffer;if(t.tooManyColors){if(P.length||I.length){E=new Uint8Array(8*C);for(var z=0;z&lt;C;z++){var D=P[z];E[8*z]=h[4*D],E[8*z+1]=h[4*D+1],E[8*z+2]=h[4*D+2],E[8*z+3]=h[4*D+3];var R=I[z];E[8*z+4]=h[4*R],E[8*z+5]=h[4*R+1],E[8*z+6]=h[4*R+2],E[8*z+7]=h[4*R+3]}}}else if(P.length||I.length){E=new Uint8Array(4*C+2);for(var F=0;F&lt;C;F++)null!=P[F]&amp;&amp;(E[4*F]=P[F]%c,E[4*F+1]=Math.floor(P[F]/c)),null!=I[F]&amp;&amp;(E[4*F+2]=I[F]%c,E[4*F+3]=Math.floor(I[F]/c))}O({data:E||new Uint8Array(0),type:&quot;uint8&quot;,usage:&quot;dynamic&quot;})}return n}))}},b.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a&gt;=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o&lt;s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:&quot;linear&quot;,min:&quot;linear&quot;})),a},b.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(t)||(t=[t]);var i=[];if(&quot;number&quot;==typeof t[0]){var a=[];if(Array.isArray(t))for(var o=0;o&lt;t.length;o+=4)a.push(t.slice(o,o+4));else for(var l=0;l&lt;t.length;l+=4)a.push(t.subarray(l,l+4));t=a}for(var u=0;u&lt;t.length;u++){var f=t[u];f=s(f,&quot;uint8&quot;);var h=c(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}i[u]=e[h]}return!this.tooManyColors&amp;&amp;r.length&gt;4*n&amp;&amp;(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n&gt;1)for(var i=.25*(t=t.slice()).length%e;i&lt;n*e;i++)t.push(0,0,0,0);r.height&lt;n&amp;&amp;r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},b.prototype.destroy=function(){return this.groups.forEach((function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),t.selectionBuffer.destroy(),t.elements&amp;&amp;t.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),this};var _=t(&quot;object-assign&quot;);e.exports=function(t,e){var r=new x(t,e),n=r.render.bind(r);return _(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n}},{&quot;@plotly/point-cluster&quot;:59,&quot;array-bounds&quot;:76,&quot;color-id&quot;:129,&quot;color-normalize&quot;:131,&quot;flatten-vertex-data&quot;:252,glslify:442,&quot;is-iexplorer&quot;:454,&quot;object-assign&quot;:487,&quot;parse-rect&quot;:492,&quot;pick-by-alias&quot;:498,&quot;to-float32&quot;:599,&quot;update-diff&quot;:621}],539:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;array-bounds&quot;),o=t(&quot;raf&quot;),s=t(&quot;array-range&quot;),l=t(&quot;parse-rect&quot;),c=t(&quot;flatten-vertex-data&quot;);function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)&lt;&lt;16|(255&amp;e)&lt;&lt;8|255&amp;r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length&gt;2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length&gt;2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(&quot;number&quot;==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&amp;&amp;(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&amp;&amp;(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n&lt;e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o&lt;this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c&lt;l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:&quot;data items columns rows values dimensions samples x&quot;,snap:&quot;snap cluster&quot;,size:&quot;sizes size radius&quot;,color:&quot;colors color fill fill-color fillColor&quot;,opacity:&quot;opacity alpha transparency opaque&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,borderColor:&quot;borderColors borderColor bordercolor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range ranges databox dataBox&quot;,viewport:&quot;viewport viewBox viewbox&quot;,domain:&quot;domain domains area areas&quot;,padding:&quot;pad padding paddings pads margin margins&quot;,transpose:&quot;transpose transposed&quot;,diagonal:&quot;diagonal diag showDiagonal&quot;,upper:&quot;upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf&quot;,lower:&quot;lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower&quot;}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),color:&quot;black&quot;,marker:null,size:12,borderColor:&quot;transparent&quot;,borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&amp;&amp;(s.color=o.color),null!=o.size&amp;&amp;(s.size=o.size),null!=o.marker&amp;&amp;(s.marker=o.marker),null!=o.borderColor&amp;&amp;(s.borderColor=o.borderColor),null!=o.borderSize&amp;&amp;(s.borderSize=o.borderSize),null!=o.opacity&amp;&amp;(s.opacity=o.opacity),o.viewport&amp;&amp;(s.viewport=l(o.viewport)),null!=o.diagonal&amp;&amp;(s.diagonal=o.diagonal),null!=o.upper&amp;&amp;(s.upper=o.upper),null!=o.lower&amp;&amp;(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u&lt;s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&amp;&amp;(s.range=o.range,n=s.range&amp;&amp;&quot;number&quot;!=typeof s.range[0]),o.domain&amp;&amp;(s.domain=o.domain);var d=!1;null!=o.padding&amp;&amp;(Array.isArray(o.padding)&amp;&amp;o.padding.length===s.columns&amp;&amp;&quot;number&quot;==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var g=s.columns,m=s.count,v=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=v/g,w=y/g;s.passes=[];for(var T=0;T&lt;g;T++)for(var k=0;k&lt;g;k++)if((s.diagonal||k!==T)&amp;&amp;(s.upper||!(T&gt;k))&amp;&amp;(s.lower||!(T&lt;k))){var A=f(s.id,T,k),M=this.passes[A]||(this.passes[A]={});if(o.data&amp;&amp;(o.transpose?M.positions={x:{buffer:s.buffer,offset:k,count:m,stride:g},y:{buffer:s.buffer,offset:T,count:m,stride:g}}:M.positions={x:{buffer:s.buffer,offset:k*m,count:m},y:{buffer:s.buffer,offset:T*m,count:m}},M.bounds=h(s.bounds,T,k)),o.domain||o.viewport||o.data){var S=d?h(s.padding,T,k):s.padding;if(s.domain){var E=h(s.domain,T,k),L=E[0],C=E[1],P=E[2],I=E[3];M.viewport=[x+L*v+S[0],b+C*y+S[1],x+P*v-S[2],b+I*y-S[3]]}else M.viewport=[x+k*_+_*S[0],b+T*w+w*S[1],x+(k+1)*_-_*S[2],b+(T+1)*w-w*S[3]]}o.color&amp;&amp;(M.color=s.color),o.size&amp;&amp;(M.size=s.size),o.marker&amp;&amp;(M.marker=s.marker),o.borderSize&amp;&amp;(M.borderSize=s.borderSize),o.borderColor&amp;&amp;(M.borderColor=s.borderColor),o.opacity&amp;&amp;(M.opacity=s.opacity),o.range&amp;&amp;(M.range=n?h(s.range,T,k):s.range||M.bounds),s.passes.push(A)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i&lt;e.length;i++)if(&quot;number&quot;==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map((function(t,e){n[h+e]=c}))}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((function(t){t.buffer&amp;&amp;t.buffer.destroy&amp;&amp;t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{&quot;array-bounds&quot;:76,&quot;array-range&quot;:79,&quot;flatten-vertex-data&quot;:252,&quot;parse-rect&quot;:492,&quot;pick-by-alias&quot;:498,raf:530,&quot;regl-scatter2d&quot;:538}],540:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?e.exports=n():t.createREGL=n()}(this,(function(){function t(t,e){this.id=U++,this.type=t,this.data=e}function e(t){return&quot;[&quot;+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1&lt;e.length&amp;&amp;r===n&amp;&amp;('&quot;'===r||&quot;'&quot;===r))return['&quot;'+e.substr(1,e.length-2).replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];if(r=/\[(false|true|null|\d+|'[^']*'|&quot;[^&quot;]*&quot;)\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(&quot;.&quot;)).length)return['&quot;'+e.replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];for(e=[],n=0;n&lt;r.length;++n)e=e.concat(t(r[n]));return e}(t).join(&quot;][&quot;)+&quot;]&quot;}function r(t){return&quot;string&quot;==typeof t?t.split():t}function n(t){return&quot;string&quot;==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=&quot;undefined&quot;==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(&quot;string&quot;==typeof s?e=document.querySelector(s):&quot;object&quot;==typeof s&amp;&amp;(&quot;string&quot;==typeof s.nodeName&amp;&amp;&quot;function&quot;==typeof s.appendChild&amp;&amp;&quot;function&quot;==typeof s.getBoundingClientRect?e=s:&quot;function&quot;==typeof s.drawArrays||&quot;function&quot;==typeof s.drawElements?a=(o=s).canvas:(&quot;gl&quot;in s?o=s.gl:&quot;canvas&quot;in s?a=n(s.canvas):&quot;container&quot;in s&amp;&amp;(i=n(s.container)),&quot;attributes&quot;in s&amp;&amp;(t=s.attributes),&quot;extensions&quot;in s&amp;&amp;(l=r(s.extensions)),&quot;optionalExtensions&quot;in s&amp;&amp;(c=r(s.optionalExtensions)),&quot;onDone&quot;in s&amp;&amp;(h=s.onDone),&quot;profile&quot;in s&amp;&amp;(f=!!s.profile),&quot;pixelRatio&quot;in s&amp;&amp;(u=+s.pixelRatio))),e&amp;&amp;(&quot;canvas&quot;===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&amp;&amp;(e=(n=a.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),a.width=r*e,a.height=r*n}var i,a=document.createElement(&quot;canvas&quot;);return j(a.style,{border:0,margin:0,padding:0,top:0,left:0,width:&quot;100%&quot;,height:&quot;100%&quot;}),t.appendChild(a),t===document.body&amp;&amp;(a.style.position=&quot;absolute&quot;,j(t.style,{margin:0,padding:0})),t!==document.body&amp;&amp;&quot;function&quot;==typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(n)}))).observe(t):window.addEventListener(&quot;resize&quot;,n,!1),n(),{canvas:a,onDestroy:function(){i?i.disconnect():window.removeEventListener(&quot;resize&quot;,n),t.removeChild(a)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}void 0===t.premultipliedAlpha&amp;&amp;(t.premultipliedAlpha=!0),o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(&quot;webgl&quot;)||r(&quot;experimental-webgl&quot;)||r(&quot;webgl-experimental&quot;)}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(&quot;webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org&quot;),null)}function a(t,e){for(var r=Array(t),n=0;n&lt;t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535&lt;t)&lt;&lt;4,e|=r=(255&lt;(t&gt;&gt;&gt;=e))&lt;&lt;3,(e|=r=(15&lt;(t&gt;&gt;&gt;=r))&lt;&lt;2)|(r=(3&lt;(t&gt;&gt;&gt;=r))&lt;&lt;1)|t&gt;&gt;&gt;r&gt;&gt;1}function s(){function t(t){t:{for(var e=16;268435456&gt;=e;e*=16)if(t&lt;=e){t=e;break t}t=0}return 0&lt;(e=r[o(t)&gt;&gt;2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)&gt;&gt;2].push(t)}var r=a(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Array.isArray(t.shape)&amp;&amp;Array.isArray(t.stride)&amp;&amp;&quot;number&quot;==typeof t.offset&amp;&amp;t.shape.length===t.stride.length&amp;&amp;(Array.isArray(t.data)||W(t.data))}function c(t,e,r,n,i,a){for(var o=0;o&lt;e;++o)for(var s=t[o],l=0;l&lt;r;++l)for(var c=s[l],u=0;u&lt;n;++u)i[a++]=c[u]}function u(t){return 0|J[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r&lt;e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l&lt;r;++l)for(var c=0;c&lt;n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&amp;&amp;(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0&lt;e.length)if(Array.isArray(e[0])){i=tt(e);for(var s=n=1;s&lt;i.length;++s)n*=i[s];t.dimension=n,a(t,e=$(e,i,t.dtype),r),o?t.persistentData=e:G.freeType(e)}else&quot;number&quot;==typeof e[0]?(t.dimension=i,f(i=G.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:G.freeType(i)):W(e[0])&amp;&amp;(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=$(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:G.freeType(e))}else if(W(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,g=0,m=0;1===i.length?(p=i[0],d=1,g=c[0],m=0):2===i.length&amp;&amp;(p=i[0],d=i[1],g=c[0],m=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=G.allocType(t.dtype,p*d),e.data,p,d,g,m,s),a(t,i,r),o?t.persistentData=i:G.freeType(i)}else e instanceof ArrayBuffer&amp;&amp;(t.dtype=5121,t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e))))}function s(r){e.bufferCount--,n(r),t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&amp;&amp;(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach((function(e){t+=p[e].stats.size})),t}),{create:function(n,a,c,d){function g(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||W(e)||l(e)||e instanceof ArrayBuffer?i=e:&quot;number&quot;==typeof e?a=0|e:e&amp;&amp;(&quot;data&quot;in e&amp;&amp;(i=e.data),&quot;usage&quot;in e&amp;&amp;(n=Q[e.usage]),&quot;type&quot;in e&amp;&amp;(s=K[e.type]),&quot;dimension&quot;in e&amp;&amp;(c=0|e.dimension),&quot;length&quot;in e&amp;&amp;(a=0|e.length)),m.bind(),i?o(m,i,n,s,c,d):(a&amp;&amp;t.bufferData(m.type,a,n),m.dtype=s||5121,m.usage=n,m.dimension=c,m.byteLength=a),r.profile&amp;&amp;(m.stats.size=m.byteLength*et[m.dtype]),g}e.bufferCount++;var m=new i(a);return p[m.id]=m,c||g(n),g._reglType=&quot;buffer&quot;,g._buffer=m,g.subdata=function(e,r){var n,i=0|(r||0);if(m.bind(),W(e)||e instanceof ArrayBuffer)t.bufferSubData(m.type,i,e);else if(Array.isArray(e)){if(0&lt;e.length)if(&quot;number&quot;==typeof e[0]){var a=G.allocType(m.dtype,e.length);f(a,e),t.bufferSubData(m.type,i,a),G.freeType(a)}else(Array.isArray(e[0])||W(e[0]))&amp;&amp;(n=tt(e),a=$(e,n,m.dtype),t.bufferSubData(m.type,i,a),G.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&amp;&amp;(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?m.dtype:u(e.data),h(n=G.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(m.type,i,n),G.freeType(n)}return g},r.profile&amp;&amp;(g.stats=m.stats),g.destroy=function(){s(m)},g},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){X(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&amp;&amp;t._buffer instanceof i?t._buffer:null},restore:function(){X(p).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){var f;if(n.buffer.bind(),i?((f=u)||W(i)&amp;&amp;(!l(i)||W(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)):(t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c),f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0&gt;(i=s)&amp;&amp;(i=n.buffer.byteLength,5123===f?i&gt;&gt;=1:5125===f&amp;&amp;(i&gt;&gt;=2)),n.vertCount=i,i=o,0&gt;o&amp;&amp;(i=4,1===(o=n.buffer.dimension)&amp;&amp;(i=0),2===o&amp;&amp;(i=1),3===o&amp;&amp;(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&amp;&amp;(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(&quot;number&quot;==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||W(t)||l(t)?e=t:(&quot;data&quot;in t&amp;&amp;(e=t.data),&quot;usage&quot;in t&amp;&amp;(r=Q[t.usage]),&quot;primitive&quot;in t&amp;&amp;(n=rt[t.primitive]),&quot;count&quot;in t&amp;&amp;(i=0|t.count),&quot;type&quot;in t&amp;&amp;(h=u[t.type]),&quot;length&quot;in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&amp;&amp;5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=&quot;elements&quot;,s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._elements instanceof i?t._elements:null},clear:function(){X(s).forEach(o)}}}function g(t){for(var e=G.allocType(5123,t.length),r=0;r&lt;t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{nt[0]=t[r];var n=(a=it[0])&gt;&gt;&gt;31&lt;&lt;15,i=(a&lt;&lt;1&gt;&gt;&gt;24)-127,a=a&gt;&gt;13&amp;1023;e[r]=-24&gt;i?n:-14&gt;i?n+(a+1024&gt;&gt;-14-i):15&lt;i?n+31744:n+(i+15&lt;&lt;10)+a}return e}function m(t){return Array.isArray(t)||W(t)}function v(t){return&quot;[object &quot;+t+&quot;]&quot;}function y(t){return Array.isArray(t)&amp;&amp;(0===t.length||&quot;number&quot;==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!m(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0&lt;=dt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=g(e),G.freeType(e)):t.data=e}function T(t,e,r,n,i,a){if(t=void 0!==mt[t]?mt[t]:st[t]*gt[e],a&amp;&amp;(t*=6),i){for(n=0;1&lt;=r;)n+=t*r*r,r/=2;return n}return t*r*n}function k(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(&quot;object&quot;==typeof e&amp;&amp;e){&quot;premultiplyAlpha&quot;in e&amp;&amp;(t.premultiplyAlpha=e.premultiplyAlpha),&quot;flipY&quot;in e&amp;&amp;(t.flipY=e.flipY),&quot;alignment&quot;in e&amp;&amp;(t.unpackAlignment=e.alignment),&quot;colorSpace&quot;in e&amp;&amp;(t.colorSpace=q[e.colorSpace]),&quot;type&quot;in e&amp;&amp;(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;&quot;shape&quot;in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&amp;&amp;(i=e.shape[2],a=!0)):(&quot;radius&quot;in e&amp;&amp;(r=n=e.radius),&quot;width&quot;in e&amp;&amp;(r=e.width),&quot;height&quot;in e&amp;&amp;(n=e.height),&quot;channels&quot;in e&amp;&amp;(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,&quot;format&quot;in e&amp;&amp;(r=e.format,n=t.internalformat=Y[r],t.format=dt[n],r in H&amp;&amp;!(&quot;type&quot;in e)&amp;&amp;(t.type=H[r]),r in K&amp;&amp;(t.compressed=!0),r=!0),!a&amp;&amp;r?t.channels=st[t.format]:a&amp;&amp;!r&amp;&amp;t.channels!==ot[t.format]&amp;&amp;(t.format=t.internalformat=ot[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&amp;&amp;(u(t,e),&quot;x&quot;in e&amp;&amp;(t.xOffset=0|e.x),&quot;y&quot;in e&amp;&amp;(t.yOffset=0|e.y),_(e.data)&amp;&amp;(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(W(r))t.channels=t.channels||4,t.data=r,&quot;type&quot;in e||5121!==t.type||(t.type=0|J[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=G.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=g(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|J[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=ot[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=G.allocType(36193===t.type?5126:t.type,c*f*s),d=0,v=0;v&lt;f;++v)for(var T=0;T&lt;c;++T)for(var k=0;k&lt;s;++k)p[d++]=n[a*T+h*v+o*k+r];w(t,p)}else if(b(r)===lt||b(r)===ct||b(r)===ut)b(r)===lt||b(r)===ct?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ft)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===pt)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=m(r[0][0])?h||r[0][0].length:h||1,o=Z.shape(r),c=1,f=0;f&lt;o.length;++f)c*=o[f];c=G.allocType(36193===t.type?5126:t.type,c),Z.flatten(r,o,&quot;&quot;,c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=ot[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function v(){return gt.pop()||new h}function k(t){t.needsFree&amp;&amp;G.freeType(t.data),h.call(t),gt.push(t)}function A(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function M(t,e,r){var n=t.images[0]=v();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i&lt;n.length;++i)c(r=t.images[i]=v(),t),r.width&gt;&gt;=i,r.height&gt;&gt;=i,p(r,n[i]),t.mipmask|=1&lt;&lt;i;else c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a&lt;i.length&amp;&amp;i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,g=o.width,m=o.height;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,g,m,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,g,m,0)):t.texImage2D(s,l,p,g,m,0,p,d,u||null)}}function L(){var t=mt.pop()||new A;s.call(t);for(var e=t.mipmask=0;16&gt;e;++e)t.images[e]=null;return t}function C(t){for(var e=t.images,r=0;r&lt;e.length;++r)e[r]&amp;&amp;k(e[r]),e[r]=null;mt.push(t)}function P(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function I(t,e){&quot;min&quot;in e&amp;&amp;(t.minFilter=V[e.min],0&lt;=at.indexOf(t.minFilter)&amp;&amp;!(&quot;faces&quot;in e)&amp;&amp;(t.genMipmaps=!0)),&quot;mag&quot;in e&amp;&amp;(t.magFilter=U[e.mag]);var r=t.wrapS,n=t.wrapT;if(&quot;wrap&quot;in e){var i=e.wrap;&quot;string&quot;==typeof i?r=n=N[i]:Array.isArray(i)&amp;&amp;(r=N[i[0]],n=N[i[1]])}else&quot;wrapS&quot;in e&amp;&amp;(r=N[e.wrapS]),&quot;wrapT&quot;in e&amp;&amp;(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,&quot;anisotropic&quot;in e&amp;&amp;(t.anisotropic=e.anisotropic),&quot;mipmap&quot;in e){switch(r=!1,typeof e.mipmap){case&quot;string&quot;:t.mipmapHint=B[e.mipmap],r=t.genMipmaps=!0;break;case&quot;boolean&quot;:r=t.genMipmaps=e.mipmap;break;case&quot;object&quot;:t.genMipmaps=!1,r=!0}!r||&quot;min&quot;in e||(t.minFilter=9984)}}function O(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&amp;&amp;t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&amp;&amp;(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function z(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new P,o.profile&amp;&amp;(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=bt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function F(e){var r=e.texture,n=e.unit,i=e.target;0&lt;=n&amp;&amp;(t.activeTexture(33984+n),t.bindTexture(i,null),bt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete yt[e.id],a.textureCount--}var B={&quot;don't care&quot;:4352,&quot;dont care&quot;:4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},U={nearest:9728,linear:9729},V=j({mipmap:9987,&quot;nearest mipmap nearest&quot;:9984,&quot;linear mipmap nearest&quot;:9985,&quot;nearest mipmap linear&quot;:9986,&quot;linear mipmap linear&quot;:9987},U),q={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,&quot;rgb5 a1&quot;:32820},Y={alpha:6406,luminance:6409,&quot;luminance alpha&quot;:6410,rgb:6407,rgba:6408,rgba4:32854,&quot;rgb5 a1&quot;:32855,rgb565:36194},K={};e.ext_srgb&amp;&amp;(Y.srgb=35904,Y.srgba=35906),e.oes_texture_float&amp;&amp;(H.float32=H.float=5126),e.oes_texture_half_float&amp;&amp;(H.float16=H[&quot;half float&quot;]=36193),e.webgl_depth_texture&amp;&amp;(j(Y,{depth:6402,&quot;depth stencil&quot;:34041}),j(H,{uint16:5123,uint32:5125,&quot;depth stencil&quot;:34042})),e.webgl_compressed_texture_s3tc&amp;&amp;j(K,{&quot;rgb s3tc dxt1&quot;:33776,&quot;rgba s3tc dxt1&quot;:33777,&quot;rgba s3tc dxt3&quot;:33778,&quot;rgba s3tc dxt5&quot;:33779}),e.webgl_compressed_texture_atc&amp;&amp;j(K,{&quot;rgb atc&quot;:35986,&quot;rgba atc explicit alpha&quot;:35987,&quot;rgba atc interpolated alpha&quot;:34798}),e.webgl_compressed_texture_pvrtc&amp;&amp;j(K,{&quot;rgb pvrtc 4bppv1&quot;:35840,&quot;rgb pvrtc 2bppv1&quot;:35841,&quot;rgba pvrtc 4bppv1&quot;:35842,&quot;rgba pvrtc 2bppv1&quot;:35843}),e.webgl_compressed_texture_etc1&amp;&amp;(K[&quot;rgb etc1&quot;]=36196);var Q=Array.prototype.slice.call(t.getParameter(34467));Object.keys(K).forEach((function(t){var e=K[t];0&lt;=Q.indexOf(e)&amp;&amp;(Y[t]=e)}));var $=Object.keys(Y);r.textureFormats=$;var tt=[];Object.keys(Y).forEach((function(t){tt[Y[t]]=t}));var et=[];Object.keys(H).forEach((function(t){et[H[t]]=t}));var rt=[];Object.keys(U).forEach((function(t){rt[U[t]]=t}));var nt=[];Object.keys(V).forEach((function(t){nt[V[t]]=t}));var it=[];Object.keys(N).forEach((function(t){it[N[t]]=t}));var dt=$.reduce((function(t,r){var n=Y[r];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||e.ext_srgb&amp;&amp;(35904===n||35906===n)?t[n]=n:32855===n||0&lt;=r.indexOf(&quot;rgba&quot;)?t[n]=6408:t[n]=6407,t}),{}),gt=[],mt=[],vt=0,yt={},xt=r.maxTextureUnits,bt=Array(xt).map((function(){return null}));return j(z.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0&gt;e){for(var r=0;r&lt;xt;++r){var n=bt[r];if(n){if(0&lt;n.bindCount)continue;n.unit=-1}bt[r]=this,e=r;break}o.profile&amp;&amp;a.maxTextureUnits&lt;e+1&amp;&amp;(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0&gt;=--this.refCount&amp;&amp;F(this)}}),o.profile&amp;&amp;(a.getTotalTextureSize=function(){var t=0;return Object.keys(yt).forEach((function(e){t+=yt[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;P.call(r);var a=L();return&quot;number&quot;==typeof t?M(a,0|t,&quot;number&quot;==typeof e?0|e:0|t):t?(I(r,t),S(a,t)):M(a,1,1),r.genMipmaps&amp;&amp;(a.mipmask=(a.width&lt;&lt;1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),O(r,3553),R(),C(a),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new z(3553);return yt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width&gt;&gt;a)-e,o.height=o.height||(i.height&gt;&gt;a)-r,D(i),d(o,3553,e,r,a),R(),k(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&amp;&amp;s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l=0;i.mipmask&gt;&gt;l;++l){var c=a&gt;&gt;l,u=s&gt;&gt;l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return R(),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=&quot;texture2d&quot;,n._texture=i,o.profile&amp;&amp;(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(P.call(l),s=0;6&gt;s;++s)g[s]=L();if(&quot;number&quot;!=typeof t&amp;&amp;t){if(&quot;object&quot;==typeof t)if(e)S(g[0],t),S(g[1],e),S(g[2],r),S(g[3],n),S(g[4],i),S(g[5],a);else if(I(l,t),u(h,t),&quot;faces&quot;in t)for(t=t.faces,s=0;6&gt;s;++s)c(g[s],h),S(g[s],t[s]);else for(s=0;6&gt;s;++s)S(g[s],t)}else for(t=0|t||1,s=0;6&gt;s;++s)M(g[s],t,t);for(c(h,g[0]),h.mipmask=l.genMipmaps?(g[0].width&lt;&lt;1)-1:g[0].mipmask,h.internalformat=g[0].internalformat,f.width=g[0].width,f.height=g[0].height,D(h),s=0;6&gt;s;++s)E(g[s],34069+s);for(O(l,34067),R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6&gt;s;++s)C(g[s]);return f}var h=new z(34067);yt[h.id]=h,a.cubeCount++;var g=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width&gt;&gt;i)-r,a.height=a.height||(h.height&gt;&gt;i)-n,D(h),d(a,34069+t,r,n,i),R(),k(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6&gt;r;++r)for(var n=0;h.mipmask&gt;&gt;n;++n)t.texImage2D(34069+r,n,h.format,e&gt;&gt;n,e&gt;&gt;n,0,h.format,h.type,null);return R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=&quot;textureCube&quot;,f._texture=h,o.profile&amp;&amp;(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e&lt;xt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),bt[e]=null;X(yt).forEach(F),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null)}X(yt).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32&gt;r;++r)if(0!=(e.mipmask&amp;1&lt;&lt;r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);else for(var n=0;6&gt;n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);O(e.texInfo,e.target)}))},refresh:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null),t.activeTexture(33984+e),t.bindTexture(3553,null),t.bindTexture(34067,null)}}}}function A(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&amp;&amp;(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&amp;&amp;(t.texture&amp;&amp;t.texture._texture.decRef(),t.renderbuffer&amp;&amp;t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&amp;&amp;(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&amp;&amp;(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return&quot;object&quot;==typeof t&amp;&amp;(i=t.data,&quot;target&quot;in t&amp;&amp;(e=0|t.target)),&quot;texture2d&quot;===(t=i._reglType)||&quot;textureCube&quot;===t?r=i:&quot;renderbuffer&quot;===t&amp;&amp;(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&amp;&amp;(t.texture||t.renderbuffer)}function p(t,e,r){t&amp;&amp;(t.texture?t.texture.resize(e,r):t.renderbuffer&amp;&amp;t.renderbuffer.resize(e,r),t.width=e,t.height=r)}function d(){this.id=T++,k[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function m(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete k[e.id]}function v(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n&lt;i.length;++n)c(36064+n,i[n]);for(n=i.length;n&lt;r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.isContextLost(),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=&quot;rgba&quot;,m=&quot;uint8&quot;,y=1,x=null,w=null,T=null,k=!1;&quot;number&quot;==typeof t?(a=0|t,o=0|e||a):t?(&quot;shape&quot;in t?(a=(o=t.shape)[0],o=o[1]):(&quot;radius&quot;in t&amp;&amp;(a=o=t.radius),&quot;width&quot;in t&amp;&amp;(a=t.width),&quot;height&quot;in t&amp;&amp;(o=t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(i=t.color||t.colors,Array.isArray(i)),i||(&quot;colorCount&quot;in t&amp;&amp;(y=0|t.colorCount),&quot;colorTexture&quot;in t&amp;&amp;(p=!!t.colorTexture,d=&quot;rgba4&quot;),&quot;colorType&quot;in t&amp;&amp;(m=t.colorType,!p)&amp;&amp;(&quot;half float&quot;===m||&quot;float16&quot;===m?d=&quot;rgba16f&quot;:&quot;float&quot;!==m&amp;&amp;&quot;float32&quot;!==m||(d=&quot;rgba32f&quot;)),&quot;colorFormat&quot;in t&amp;&amp;(d=t.colorFormat,0&lt;=b.indexOf(d)?p=!0:0&lt;=_.indexOf(d)&amp;&amp;(p=!1))),(&quot;depthTexture&quot;in t||&quot;depthStencilTexture&quot;in t)&amp;&amp;(k=!(!t.depthTexture&amp;&amp;!t.depthStencilTexture)),&quot;depth&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),&quot;stencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),&quot;depthStencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depthStencil?s=c=t.depthStencil:(T=t.depthStencil,c=s=!1))):a=o=1;var A=null,M=null,S=null,E=null;if(Array.isArray(i))A=i.map(u);else if(i)A=[u(i)];else for(A=Array(y),i=0;i&lt;y;++i)A[i]=f(a,o,p,d,m);for(a=a||A[0].width,o=o||A[0].height,x?M=u(x):s&amp;&amp;!c&amp;&amp;(M=f(a,o,k,&quot;depth&quot;,&quot;uint32&quot;)),w?S=u(w):c&amp;&amp;!s&amp;&amp;(S=f(a,o,!1,&quot;stencil&quot;,&quot;uint8&quot;)),T?E=u(T):!x&amp;&amp;!w&amp;&amp;c&amp;&amp;s&amp;&amp;(E=f(a,o,k,&quot;depth stencil&quot;,&quot;depth stencil&quot;)),s=null,i=0;i&lt;A.length;++i)l(A[i]),A[i]&amp;&amp;A[i].texture&amp;&amp;(c=xt[A[i].texture._texture.format]*bt[A[i].texture._texture.type],null===s&amp;&amp;(s=c));return l(M),l(S),l(E),g(n),n.width=a,n.height=o,n.colorAttachments=A,n.depthAttachment=M,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=A.map(h),r.depth=h(M),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,v(n),r}var n=new d;return a.framebufferCount++,r(t,e),j(r,{resize:function(t,e){var i=Math.max(0|t,1),a=Math.max(0|e||i,1);if(i===n.width&amp;&amp;a===n.height)return r;for(var o=n.colorAttachments,s=0;s&lt;o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,v(n),r},_reglType:&quot;framebuffer&quot;,_framebuffer:n,destroy:function(){m(n),g(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[&quot;rgba&quot;],_=[&quot;rgba4&quot;,&quot;rgb565&quot;,&quot;rgb5 a1&quot;];e.ext_srgb&amp;&amp;_.push(&quot;srgba&quot;),e.ext_color_buffer_half_float&amp;&amp;_.push(&quot;rgba16f&quot;,&quot;rgb16f&quot;),e.webgl_color_buffer_float&amp;&amp;_.push(&quot;rgba32f&quot;);var w=[&quot;uint8&quot;];e.oes_texture_half_float&amp;&amp;w.push(&quot;half float&quot;,&quot;float16&quot;),e.oes_texture_float&amp;&amp;w.push(&quot;float&quot;,&quot;float32&quot;);var T=0,k={};return j(x,{getFramebuffer:function(t){return&quot;function&quot;==typeof t&amp;&amp;&quot;framebuffer&quot;===t._reglType&amp;&amp;(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=&quot;rgba&quot;;var l=&quot;uint8&quot;,c=1;if(&quot;number&quot;==typeof t?o=0|t:t?(&quot;shape&quot;in t?o=t.shape[0]:(&quot;radius&quot;in t&amp;&amp;(o=0|t.radius),&quot;width&quot;in t?o=0|t.width:&quot;height&quot;in t&amp;&amp;(o=0|t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(s=t.color||t.colors,Array.isArray(s)),s||(&quot;colorCount&quot;in t&amp;&amp;(c=0|t.colorCount),&quot;colorType&quot;in t&amp;&amp;(l=t.colorType),&quot;colorFormat&quot;in t&amp;&amp;(i=t.colorFormat)),&quot;depth&quot;in t&amp;&amp;(a.depth=t.depth),&quot;stencil&quot;in t&amp;&amp;(a.stencil=t.stencil),&quot;depthStencil&quot;in t&amp;&amp;(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i&lt;s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i&lt;c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i&lt;t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6&gt;i;++i){for(c=0;c&lt;t.length;++c)a.color[c].target=34069+i;0&lt;i&amp;&amp;(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return j(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),j(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t&lt;i.length;++t)i[t].resize(n);for(t=0;6&gt;t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:&quot;framebufferCube&quot;,destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){X(k).forEach(m)},restore:function(){x.cur=null,x.next=null,x.dirty=!0,X(k).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function M(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n,i,a,o){function s(){this.id=++f,this.attributes=[],this.elements=null,this.ownsElements=!1,this.offset=this.count=0,this.instances=-1,this.primitive=4;var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,h[this.id]=this,this.buffers=[]}var c=r.maxAttributes,u=Array(c);for(r=0;r&lt;c;++r)u[r]=new M;var f=0,h={},p={Record:M,scope:{},state:u,currentVAO:null,targetVAO:null,restore:e.oes_vertex_array_object?function(){e.oes_vertex_array_object&amp;&amp;X(h).forEach((function(t){t.refresh()}))}:function(){},createVAO:function(t){function e(t){var n;Array.isArray(t)?(n=t,r.elements&amp;&amp;r.ownsElements&amp;&amp;r.elements.destroy(),r.elements=null,r.ownsElements=!1,r.offset=0,r.count=0,r.instances=-1,r.primitive=4):(t.elements?(n=t.elements,r.ownsElements?(&quot;function&quot;==typeof n&amp;&amp;&quot;elements&quot;===n._reglType?r.elements.destroy():r.elements(n),r.ownsElements=!1):a.getElements(t.elements)?(r.elements=t.elements,r.ownsElements=!1):(r.elements=a.create(t.elements),r.ownsElements=!0)):(r.elements=null,r.ownsElements=!1),n=t.attributes,r.offset=0,r.count=-1,r.instances=-1,r.primitive=4,r.elements&amp;&amp;(r.count=r.elements._elements.vertCount,r.primitive=r.elements._elements.primType),&quot;offset&quot;in t&amp;&amp;(r.offset=0|t.offset),&quot;count&quot;in t&amp;&amp;(r.count=0|t.count),&quot;instances&quot;in t&amp;&amp;(r.instances=0|t.instances),&quot;primitive&quot;in t&amp;&amp;(r.primitive=rt[t.primitive])),t={};var o=r.attributes;o.length=n.length;for(var s=0;s&lt;n.length;++s){var c,u=n[s],f=o[s]=new M,h=u.data||u;if(Array.isArray(h)||W(h)||l(h))r.buffers[s]&amp;&amp;(c=r.buffers[s],W(h)&amp;&amp;c._buffer.byteLength&gt;=h.byteLength?c.subdata(h):(c.destroy(),r.buffers[s]=null)),r.buffers[s]||(c=r.buffers[s]=i.create(u,34962,!1,!0)),f.buffer=i.getBuffer(c),f.size=0|f.buffer.dimension,f.normalized=!1,f.type=f.buffer.dtype,f.offset=0,f.stride=0,f.divisor=0,f.state=1,t[s]=1;else i.getBuffer(u)?(f.buffer=i.getBuffer(u),f.size=0|f.buffer.dimension,f.normalized=!1,f.type=f.buffer.dtype,f.offset=0,f.stride=0,f.divisor=0,f.state=1):i.getBuffer(u.buffer)?(f.buffer=i.getBuffer(u.buffer),f.size=0|(+u.size||f.buffer.dimension),f.normalized=!!u.normalized||!1,f.type=&quot;type&quot;in u?K[u.type]:f.buffer.dtype,f.offset=0|(u.offset||0),f.stride=0|(u.stride||0),f.divisor=0|(u.divisor||0),f.state=1):&quot;x&quot;in u&amp;&amp;(f.x=+u.x||0,f.y=+u.y||0,f.z=+u.z||0,f.w=+u.w||0,f.state=2)}for(c=0;c&lt;r.buffers.length;++c)!t[c]&amp;&amp;r.buffers[c]&amp;&amp;(r.buffers[c].destroy(),r.buffers[c]=null);return r.refresh(),e}var r=new s;return n.vaoCount+=1,e.destroy=function(){for(var t=0;t&lt;r.buffers.length;++t)r.buffers[t]&amp;&amp;r.buffers[t].destroy();r.buffers.length=0,r.ownsElements&amp;&amp;(r.elements.destroy(),r.elements=null,r.ownsElements=!1),r.destroy()},e._vao=r,e._reglType=&quot;vao&quot;,e(t)},getVAO:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._vao?t._vao:null},destroyBuffer:function(e){for(var r=0;r&lt;u.length;++r){var n=u[r];n.buffer===e&amp;&amp;(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:e.oes_vertex_array_object?function(t){if(t!==p.currentVAO){var r=e.oes_vertex_array_object;t?r.bindVertexArrayOES(t.vao):r.bindVertexArrayOES(null),p.currentVAO=t}}:function(r){if(r!==p.currentVAO){if(r)r.bindAttrs();else{for(var n=e.angle_instanced_arrays,i=0;i&lt;u.length;++i){var a=u[i];a.buffer?(t.enableVertexAttribArray(i),a.buffer.bind(),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offfset),n&amp;&amp;a.divisor&amp;&amp;n.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}o.elements?t.bindBuffer(34963,o.elements.buffer.buffer):t.bindBuffer(34963,null)}p.currentVAO=r}},clear:e.oes_vertex_array_object?function(){X(h).forEach((function(t){t.destroy()}))}:function(){}};return s.prototype.bindAttrs=function(){for(var r=e.angle_instanced_arrays,n=this.attributes,i=0;i&lt;n.length;++i){var o=n[i];o.buffer?(t.enableVertexAttribArray(i),t.bindBuffer(34962,o.buffer.buffer),t.vertexAttribPointer(i,o.size,o.type,o.normalized,o.stride,o.offset),r&amp;&amp;o.divisor&amp;&amp;r.vertexAttribDivisorANGLE(i,o.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,o.x,o.y,o.z,o.w))}for(r=n.length;r&lt;c;++r)t.disableVertexAttribArray(r);(r=a.getElements(this.elements))?t.bindBuffer(34963,r.buffer.buffer):t.bindBuffer(34963,null)},s.prototype.refresh=function(){var t=e.oes_vertex_array_object;t&amp;&amp;(t.bindVertexArrayOES(this.vao),this.bindAttrs(),p.currentVAO=null,t.bindVertexArrayOES(null))},s.prototype.destroy=function(){if(this.vao){var t=e.oes_vertex_array_object;this===p.currentVAO&amp;&amp;(p.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&amp;&amp;(this.elements.destroy(),this.elements=null,this.ownsElements=!1),h[this.id]&amp;&amp;(delete h[this.id],--n.vaoCount)},p}function E(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r&lt;t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,n.profile&amp;&amp;(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s,l){var c;c=o(35632,r.fragId);var u=o(35633,r.vertId);if(s=r.program=t.createProgram(),t.attachShader(s,c),t.attachShader(s,u),l)for(c=0;c&lt;l.length;++c)u=l[c],t.bindAttribLocation(s,u[0],u[1]);t.linkProgram(s),u=t.getProgramParameter(s,35718),n.profile&amp;&amp;(r.stats.uniformsCount=u);var f=r.uniforms;for(c=0;c&lt;u;++c)if(l=t.getActiveUniform(s,c)){if(1&lt;l.size)for(var h=0;h&lt;l.size;++h){var p=l.name.replace(&quot;[0]&quot;,&quot;[&quot;+h+&quot;]&quot;);a(f,new i(p,e.id(p),t.getUniformLocation(s,p),l))}h=l.name,1&lt;l.size&amp;&amp;(h=h.replace(&quot;[0]&quot;,&quot;&quot;)),a(f,new i(h,e.id(h),t.getUniformLocation(s,h),l))}for(u=t.getProgramParameter(s,35721),n.profile&amp;&amp;(r.stats.attributesCount=u),r=r.attributes,c=0;c&lt;u;++c)(l=t.getActiveAttrib(s,c))&amp;&amp;a(r,new i(l.name,e.id(l.name),t.getAttribLocation(s,l.name),l))}var c={},u={},f={},h=[],p=0;return n.profile&amp;&amp;(r.getMaxUniformsCount=function(){var t=0;return h.forEach((function(e){e.stats.uniformsCount&gt;t&amp;&amp;(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount&gt;t&amp;&amp;(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);X(c).forEach(e),c={},X(u).forEach(e),u={},h.forEach((function(e){t.deleteProgram(e.program)})),h.length=0,f={},r.shaderCount=0},program:function(e,n,i,a){var o=f[n];o||(o=f[n]={});var p=o[e];if(p&amp;&amp;(p.refCount++,!a))return p;var d=new s(n,e);return r.shaderCount++,l(d,i,a),p||(o[e]=d),h.push(d),j(d,{destroy:function(){if(d.refCount--,0&gt;=d.refCount){t.deleteProgram(d.program);var e=h.indexOf(d);h.splice(e,1),r.shaderCount--}0&gt;=o[d.vertId].refCount&amp;&amp;(t.deleteShader(u[d.vertId]),delete u[d.vertId],delete f[d.fragId][d.vertId]),Object.keys(f[d.fragId]).length||(t.deleteShader(c[d.fragId]),delete c[d.fragId],delete f[d.fragId])}})},restore:function(){c={},u={};for(var t=0;t&lt;h.length;++t)l(h[t],null,h[t].attributes.map((function(t){return[t.location,t.name]})))},shader:o,frag:-1,vert:-1}}function L(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return W(i)?u=i:i&amp;&amp;(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&amp;&amp;(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&amp;&amp;&quot;framebuffer&quot;in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},(function(){r=s(t)})),r}(t):s(t)}}function C(t){return Array.prototype.slice.call(t)}function P(t){return C(t).join(&quot;&quot;)}function I(t){return Array.isArray(t)||W(t)||l(t)}function O(t){return t.sort((function(t,e){return&quot;viewport&quot;===t?-1:&quot;viewport&quot;===e?1:t&lt;e?-1:1}))}function z(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function D(t){return t&amp;&amp;!(t.thisDep||t.contextDep||t.propDep)}function R(t){return new z(!1,!1,!1,t)}function F(t,e){var r=t.type;if(0===r)return new z(!0,1&lt;=(r=t.data.length),2&lt;=r,e);if(4===r)return new z((r=t.data).thisDep,r.contextDep,r.propDep,e);if(5===r)return new z(!1,!1,!1,e);if(6===r){for(var n=r=!1,i=!1,a=0;a&lt;t.data.length;++a){var o=t.data[a];1===o.type?i=!0:2===o.type?n=!0:3===o.type?r=!0:0===o.type?(r=!0,1&lt;=(o=o.data)&amp;&amp;(n=!0),2&lt;=o&amp;&amp;(i=!0)):4===o.type&amp;&amp;(r=r||o.data.thisDep,n=n||o.data.contextDep,i=i||o.data.propDep)}return new z(r,n,i,e)}return new z(3===r,2===r,1===r,e)}function B(t,e,r,n,i,o,s,l,c,u,f,h,p,d,g){function v(t){return t.replace(&quot;.&quot;,&quot;_&quot;)}function y(t,e,r){var n=v(t);ot.push(t),at[n]=it[n]=!!r,st[n]=e}function x(t,e,r){var n=v(t);ot.push(t),Array.isArray(r)?(it[n]=r.slice(),at[n]=r.slice()):it[n]=at[n]=r,lt[n]=e}function b(){var t=function(){function t(){var t=[],e=[];return j((function(){t.push.apply(t,C(arguments))}),{def:function(){var n=&quot;v&quot;+r++;return e.push(n),0&lt;arguments.length&amp;&amp;(t.push(n,&quot;=&quot;),t.push.apply(t,C(arguments)),t.push(&quot;;&quot;)),n},toString:function(){return P([0&lt;e.length?&quot;var &quot;+e.join(&quot;,&quot;)+&quot;;&quot;:&quot;&quot;,P(t)])}})}function e(){function e(t,e){n(t,e,&quot;=&quot;,r.def(t,e),&quot;;&quot;)}var r=t(),n=t(),i=r.toString,a=n.toString;return j((function(){r.apply(r,C(arguments))}),{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,&quot;=&quot;,i,&quot;;&quot;)},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e&lt;i.length;++e)if(i[e]===t)return n[e];return e=&quot;g&quot;+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=&quot;a&quot;+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a&lt;r;++a)n();var s=(a=e()).toString;return o[t]=j(a,{arg:n,toString:function(){return P([&quot;function(&quot;,i.join(),&quot;){&quot;,s(),&quot;}&quot;])}})},scope:e,cond:function(){var t=P(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return j(r,{then:function(){return r.apply(r,C(arguments)),this},else:function(){return n.apply(n,C(arguments)),this},toString:function(){var e=a();return e&amp;&amp;(e=&quot;else{&quot;+e+&quot;}&quot;),P([&quot;if(&quot;,t,&quot;){&quot;,i(),&quot;}&quot;,e])}})},compile:function(){var t=['&quot;use strict&quot;;',a,&quot;return {&quot;];Object.keys(o).forEach((function(e){t.push('&quot;',e,'&quot;:',o[e].toString(),&quot;,&quot;)})),t.push(&quot;}&quot;);var e=P(t).replace(/;/g,&quot;;\n&quot;).replace(/}/g,&quot;}\n&quot;).replace(/{/g,&quot;{\n&quot;);return Function.apply(null,n.concat(e)).apply(null,i)}}}(),r=t.link,n=t.global;t.id=ft++,t.batchId=&quot;0&quot;;var i=r(ct),a=t.shared={props:&quot;a0&quot;};Object.keys(ct).forEach((function(t){a[t]=n.def(i,&quot;.&quot;,t)}));var o=t.next={},s=t.current={};Object.keys(lt).forEach((function(t){Array.isArray(it[t])&amp;&amp;(o[t]=n.def(a.next,&quot;.&quot;,t),s[t]=n.def(a.current,&quot;.&quot;,t))}));var l=t.constants={};Object.keys(ut).forEach((function(t){l[t]=n.def(JSON.stringify(ut[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=[&quot;this&quot;,a.context,a.props,t.batchId];return e.def(r(n.data),&quot;.call(&quot;,i.slice(0,Math.max(n.data.length+1,4)),&quot;)&quot;);case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(&quot;this&quot;,n.data);case 4:return n.data.append(t,e),n.data.ref;case 5:return n.data.toString();case 6:return n.data.map((function(r){return t.invoke(e,r)}))}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Q),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(&quot;framebuffer&quot;in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),R((function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;.width&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;.height&quot;),r}))):R((function(t,e){var r=t.shared;return e.set(r.framebuffer,&quot;.next&quot;,&quot;null&quot;),r=r.context,e.set(r,&quot;.framebufferWidth&quot;,r+&quot;.drawingBufferWidth&quot;),e.set(r,&quot;.framebufferHeight&quot;,r+&quot;.drawingBufferHeight&quot;),&quot;null&quot;}))}if(&quot;framebuffer&quot;in n){var a=n.framebuffer;return F(a,(function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,&quot;.getFramebuffer(&quot;,r,&quot;)&quot;);return e.set(i,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;?&quot;+r+&quot;.width:&quot;+n+&quot;.drawingBufferWidth&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;?&quot;+r+&quot;.height:&quot;+n+&quot;.drawingBufferHeight&quot;),r}))}return null}function w(t,r,n){function i(t){if(t in a){var r=e.id(a[t]);return(t=R((function(){return r}))).id=r,t}if(t in o){var n=o[t];return F(n,(function(t,e){var r=t.invoke(e,n);return e.def(t.shared.strings,&quot;.id(&quot;,r,&quot;)&quot;)}))}return null}var a=t.static,o=t.dynamic,s=i(&quot;frag&quot;),l=i(&quot;vert&quot;),c=null;return D(s)&amp;&amp;D(l)?(c=f.program(l.id,s.id,null,n),t=R((function(t,e){return t.link(c)}))):t=new z(s&amp;&amp;s.thisDep||l&amp;&amp;l.thisDep,s&amp;&amp;s.contextDep||l&amp;&amp;l.contextDep,s&amp;&amp;s.propDep||l&amp;&amp;l.propDep,(function(t,e){var r,n,i=t.shared.shader;return r=s?s.append(t,e):e.def(i,&quot;.&quot;,&quot;frag&quot;),n=l?l.append(t,e):e.def(i,&quot;.&quot;,&quot;vert&quot;),e.def(i+&quot;.program(&quot;+n+&quot;,&quot;+r+&quot;)&quot;)})),{frag:s,vert:l,progVar:t,program:c}}function T(t,e){function r(t,e){if(t in n){var r=0|n[t];return e?a.offset=r:a.instances=r,R((function(t,n){return e&amp;&amp;(t.OFFSET=r),r}))}if(t in i){var o=i[t];return F(o,(function(t,r){var n=t.invoke(r,o);return e&amp;&amp;(t.OFFSET=n),n}))}if(e){if(c)return R((function(t,e){return t.OFFSET=0}));if(s)return new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.vao+&quot;.currentVAO.offset:0&quot;)}))}else if(s)return new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.vao+&quot;.currentVAO.instances:-1&quot;)}));return null}var n=t.static,i=t.dynamic,a={},s=!1,l=function(){if(&quot;vao&quot;in n){var t=n.vao;return null!==t&amp;&amp;null===u.getVAO(t)&amp;&amp;(t=u.createVAO(t)),s=!0,a.vao=t,R((function(e){var r=u.getVAO(t);return r?e.link(r):&quot;null&quot;}))}if(&quot;vao&quot;in i){s=!0;var e=i.vao;return F(e,(function(t,r){var n=t.invoke(r,e);return r.def(t.shared.vao+&quot;.getVAO(&quot;+n+&quot;)&quot;)}))}return null}(),c=!1,f=function(){if(&quot;elements&quot;in n){var t=n.elements;if(a.elements=t,I(t)){var e=a.elements=o.create(t,!0);t=o.getElements(e);c=!0}else t&amp;&amp;(t=o.getElements(t),c=!0);return(e=R((function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null}))).value=t,e}if(&quot;elements&quot;in i){c=!0;var r=i.elements;return F(r,(function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(&quot;null&quot;);n=e.def(n,&quot;(&quot;,a,&quot;)&quot;),a=t.cond(n).then(o,&quot;=&quot;,i,&quot;.createStream(&quot;,a,&quot;);&quot;).else(o,&quot;=&quot;,i,&quot;.getElements(&quot;,a,&quot;);&quot;);return e.entry(a),e.exit(t.cond(n).then(i,&quot;.destroyStream(&quot;,o,&quot;);&quot;)),t.ELEMENTS=o}))}return s?new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.elements+&quot;.getElements(&quot;+t.shared.vao+&quot;.currentVAO.elements):null&quot;)})):null}(),h=r(&quot;offset&quot;,!0),p=function(){if(&quot;primitive&quot;in n){var t=n.primitive;return a.primitive=t,R((function(e,r){return rt[t]}))}if(&quot;primitive&quot;in i){var e=i.primitive;return F(e,(function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,&quot;[&quot;,i,&quot;]&quot;)}))}return c?D(f)?f.value?R((function(t,e){return e.def(t.ELEMENTS,&quot;.primType&quot;)})):R((function(){return 4})):new z(f.thisDep,f.contextDep,f.propDep,(function(t,e){var r=t.ELEMENTS;return e.def(r,&quot;?&quot;,r,&quot;.primType:&quot;,4)})):s?new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.vao+&quot;.currentVAO.primitive:4&quot;)})):null}(),d=function(){if(&quot;count&quot;in n){var t=0|n.count;return a.count=t,R((function(){return t}))}if(&quot;count&quot;in i){var e=i.count;return F(e,(function(t,r){return t.invoke(r,e)}))}return c?D(f)?f?h?new z(h.thisDep,h.contextDep,h.propDep,(function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount-&quot;,t.OFFSET)})):R((function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount&quot;)})):R((function(){return-1})):new z(f.thisDep||h.thisDep,f.contextDep||h.contextDep,f.propDep||h.propDep,(function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,&quot;?&quot;,r,&quot;.vertCount-&quot;,t.OFFSET,&quot;:-1&quot;):e.def(r,&quot;?&quot;,r,&quot;.vertCount:-1&quot;)})):s?new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao,&quot;.currentVAO?&quot;,t.shared.vao,&quot;.currentVAO.count:-1&quot;)})):null}(),g=r(&quot;instances&quot;,!1);return{elements:f,primitive:p,count:d,instances:g,offset:h,vao:l,vaoActive:s,elementsActive:c,static:a}}function k(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach((function(t){var r=n[t],a=e.id(t),s=new Q;if(I(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(&quot;constant&quot;in r){var l=r.constant;s.buffer=&quot;null&quot;,s.state=2,&quot;number&quot;==typeof l?s.x=l:_t.forEach((function(t,e){e&lt;l.length&amp;&amp;(s[t]=l[e])}))}else{var c=I(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;&quot;type&quot;in r&amp;&amp;(d=K[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=R((function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach((function(t){n[t]=s[t]})),s.buffer&amp;&amp;(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+&quot;.dtype&quot;),r[a]=n}))})),Object.keys(a).forEach((function(t){var e=a[t];o[t]=F(e,(function(t,r){function n(t){r(l[t],&quot;=&quot;,i,&quot;.&quot;,t,&quot;|0;&quot;)}var i=t.invoke(r,e),a=t.shared,o=t.constants,s=a.isBufferArgs,l=(a=a.buffer,{isStream:r.def(!1)}),c=new Q;c.state=1,Object.keys(c).forEach((function(t){l[t]=r.def(&quot;&quot;+c[t])}));var u=l.buffer,f=l.type;return r(&quot;if(&quot;,s,&quot;(&quot;,i,&quot;)){&quot;,l.isStream,&quot;=true;&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;);&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;);&quot;,&quot;if(&quot;,u,&quot;){&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,'}else if(&quot;constant&quot; in ',i,&quot;){&quot;,l.state,&quot;=&quot;,2,&quot;;&quot;,&quot;if(typeof &quot;+i+'.constant === &quot;number&quot;){',l[_t[0]],&quot;=&quot;,i,&quot;.constant;&quot;,_t.slice(1).map((function(t){return l[t]})).join(&quot;=&quot;),&quot;=0;&quot;,&quot;}else{&quot;,_t.map((function(t,e){return l[t]+&quot;=&quot;+i+&quot;.constant.length&gt;&quot;+e+&quot;?&quot;+i+&quot;.constant[&quot;+e+&quot;]:0;&quot;})).join(&quot;&quot;),&quot;}}else{&quot;,&quot;if(&quot;,s,&quot;(&quot;,i,&quot;.buffer)){&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;.buffer);&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;.buffer);&quot;,&quot;}&quot;,f,'=&quot;type&quot; in ',i,&quot;?&quot;,o.glTypes,&quot;[&quot;,i,&quot;.type]:&quot;,u,&quot;.dtype;&quot;,l.normalized,&quot;=!!&quot;,i,&quot;.normalized;&quot;),n(&quot;size&quot;),n(&quot;offset&quot;),n(&quot;stride&quot;),n(&quot;divisor&quot;),r(&quot;}}&quot;),r.exit(&quot;if(&quot;,l.isStream,&quot;){&quot;,a,&quot;.destroyStream(&quot;,u,&quot;);&quot;,&quot;}&quot;),l}))})),o}function A(t,e,n,i,o){function s(t){var e=c[t];e&amp;&amp;(h[t]=e)}var l=function(t,e){if(&quot;string&quot;==typeof(r=t.static).frag&amp;&amp;&quot;string&quot;==typeof r.vert){if(0&lt;Object.keys(e.dynamic).length)return null;var r=e.static,n=Object.keys(r);if(0&lt;n.length&amp;&amp;&quot;number&quot;==typeof r[n[0]]){for(var i=[],a=0;a&lt;n.length;++a)i.push([0|r[n[a]],n[a]]);return i}}return null}(t,e),c=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return&quot;width&quot;in r?n=0|r.width:t=!1,&quot;height&quot;in r?o=0|r.height:t=!1,new z(!t&amp;&amp;e&amp;&amp;e.thisDep,!t&amp;&amp;e&amp;&amp;e.contextDep,!t&amp;&amp;e&amp;&amp;e.propDep,(function(t,e){var i=t.shared.context,a=n;&quot;width&quot;in r||(a=e.def(i,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,s));var c=o;return&quot;height&quot;in r||(c=e.def(i,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,l)),[s,l,a,c]}))}if(t in a){var c=a[t];return t=F(c,(function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,&quot;.x|0&quot;),a=e.def(r,&quot;.y|0&quot;);return[i,a,e.def('&quot;width&quot; in ',r,&quot;?&quot;,r,&quot;.width|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,i,&quot;)&quot;),r=e.def('&quot;height&quot; in ',r,&quot;?&quot;,r,&quot;.height|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,a,&quot;)&quot;)]})),e&amp;&amp;(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new z(e.thisDep,e.contextDep,e.propDep,(function(t,e){var r=t.shared.context;return[0,0,e.def(r,&quot;.&quot;,&quot;framebufferWidth&quot;),e.def(r,&quot;.&quot;,&quot;framebufferHeight&quot;)]})):null}var i=t.static,a=t.dynamic;if(t=n(&quot;viewport&quot;)){var o=t;t=new z(t.thisDep,t.contextDep,t.propDep,(function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,&quot;.viewportWidth&quot;,r[2]),e.set(n,&quot;.viewportHeight&quot;,r[3]),r}))}return{viewport:t,scissor_box:n(&quot;scissor.box&quot;)}}(t,d=_(t)),f=T(t),h=function(t,e){var r=t.static,n=t.dynamic,i={};return ot.forEach((function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=R((function(){return s}))}else if(t in n){var l=n[t];i[o]=F(l,(function(t,e){return a(t,e,t.invoke(e,l))}))}}var o=v(t);switch(t){case&quot;cull.enable&quot;:case&quot;blend.enable&quot;:case&quot;dither&quot;:case&quot;stencil.enable&quot;:case&quot;depth.enable&quot;:case&quot;scissor.enable&quot;:case&quot;polygonOffset.enable&quot;:case&quot;sample.alpha&quot;:case&quot;sample.enable&quot;:case&quot;depth.mask&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;depth.func&quot;:return e((function(t){return kt[t]}),(function(t,e,r){return e.def(t.constants.compareFuncs,&quot;[&quot;,r,&quot;]&quot;)}));case&quot;depth.range&quot;:return e((function(t){return t}),(function(t,e,r){return[e.def(&quot;+&quot;,r,&quot;[0]&quot;),e=e.def(&quot;+&quot;,r,&quot;[1]&quot;)]}));case&quot;blend.func&quot;:return e((function(t){return[Tt[&quot;srcRGB&quot;in t?t.srcRGB:t.src],Tt[&quot;dstRGB&quot;in t?t.dstRGB:t.dst],Tt[&quot;srcAlpha&quot;in t?t.srcAlpha:t.src],Tt[&quot;dstAlpha&quot;in t?t.dstAlpha:t.dst]]}),(function(t,e,r){function n(t,n){return e.def('&quot;',t,n,'&quot; in ',r,&quot;?&quot;,r,&quot;.&quot;,t,n,&quot;:&quot;,r,&quot;.&quot;,t)}t=t.constants.blendFuncs;var i=n(&quot;src&quot;,&quot;RGB&quot;),a=n(&quot;dst&quot;,&quot;RGB&quot;),o=(i=e.def(t,&quot;[&quot;,i,&quot;]&quot;),e.def(t,&quot;[&quot;,n(&quot;src&quot;,&quot;Alpha&quot;),&quot;]&quot;));return[i,a=e.def(t,&quot;[&quot;,a,&quot;]&quot;),o,t=e.def(t,&quot;[&quot;,n(&quot;dst&quot;,&quot;Alpha&quot;),&quot;]&quot;)]}));case&quot;blend.equation&quot;:return e((function(t){return&quot;string&quot;==typeof t?[$[t],$[t]]:&quot;object&quot;==typeof t?[$[t.rgb],$[t.alpha]]:void 0}),(function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(&quot;typeof &quot;,r,'===&quot;string&quot;')).then(i,&quot;=&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;];&quot;),t.else(i,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.rgb];&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.alpha];&quot;),e(t),[i,a]}));case&quot;blend.color&quot;:return e((function(t){return a(4,(function(e){return+t[e]}))}),(function(t,e,r){return a(4,(function(t){return e.def(&quot;+&quot;,r,&quot;[&quot;,t,&quot;]&quot;)}))}));case&quot;stencil.mask&quot;:return e((function(t){return 0|t}),(function(t,e,r){return e.def(r,&quot;|0&quot;)}));case&quot;stencil.func&quot;:return e((function(t){return[kt[t.cmp||&quot;keep&quot;],t.ref||0,&quot;mask&quot;in t?t.mask:-1]}),(function(t,e,r){return[t=e.def('&quot;cmp&quot; in ',r,&quot;?&quot;,t.constants.compareFuncs,&quot;[&quot;,r,&quot;.cmp]&quot;,&quot;:&quot;,7680),e.def(r,&quot;.ref|0&quot;),e=e.def('&quot;mask&quot; in ',r,&quot;?&quot;,r,&quot;.mask|0:-1&quot;)]}));case&quot;stencil.opFront&quot;:case&quot;stencil.opBack&quot;:return e((function(e){return[&quot;stencil.opBack&quot;===t?1029:1028,At[e.fail||&quot;keep&quot;],At[e.zfail||&quot;keep&quot;],At[e.zpass||&quot;keep&quot;]]}),(function(e,r,n){function i(t){return r.def('&quot;',t,'&quot; in ',n,&quot;?&quot;,a,&quot;[&quot;,n,&quot;.&quot;,t,&quot;]:&quot;,7680)}var a=e.constants.stencilOps;return[&quot;stencil.opBack&quot;===t?1029:1028,i(&quot;fail&quot;),i(&quot;zfail&quot;),i(&quot;zpass&quot;)]}));case&quot;polygonOffset.offset&quot;:return e((function(t){return[0|t.factor,0|t.units]}),(function(t,e,r){return[e.def(r,&quot;.factor|0&quot;),e=e.def(r,&quot;.units|0&quot;)]}));case&quot;cull.face&quot;:return e((function(t){var e=0;return&quot;front&quot;===t?e=1028:&quot;back&quot;===t&amp;&amp;(e=1029),e}),(function(t,e,r){return e.def(r,'===&quot;front&quot;?',1028,&quot;:&quot;,1029)}));case&quot;lineWidth&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;frontFace&quot;:return e((function(t){return Mt[t]}),(function(t,e,r){return e.def(r+'===&quot;cw&quot;?2304:2305')}));case&quot;colorMask&quot;:return e((function(t){return t.map((function(t){return!!t}))}),(function(t,e,r){return a(4,(function(t){return&quot;!!&quot;+r+&quot;[&quot;+t+&quot;]&quot;}))}));case&quot;sample.coverage&quot;:return e((function(t){return[&quot;value&quot;in t?t.value:1,!!t.invert]}),(function(t,e,r){return[e.def('&quot;value&quot; in ',r,&quot;?+&quot;,r,&quot;.value:1&quot;),e=e.def(&quot;!!&quot;,r,&quot;.invert&quot;)]}))}})),i}(t),p=w(t,0,l);s(&quot;viewport&quot;),s(v(&quot;scissor.box&quot;));var d,g=0&lt;Object.keys(h).length;if((d={framebuffer:d,draw:f,shader:p,state:h,dirty:g,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}}).profile=function(t){var e,r=t.static;if(t=t.dynamic,&quot;profile&quot;in r){var n=!!r.profile;(e=R((function(t,e){return n}))).enable=n}else if(&quot;profile&quot;in t){var i=t.profile;e=F(i,(function(t,e){return t.invoke(e,i)}))}return e}(t),d.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach((function(t){var e,n=r[t];if(&quot;number&quot;==typeof n||&quot;boolean&quot;==typeof n)e=R((function(){return n}));else if(&quot;function&quot;==typeof n){var o=n._reglType;&quot;texture2d&quot;===o||&quot;textureCube&quot;===o?e=R((function(t){return t.link(n)})):&quot;framebuffer&quot;!==o&amp;&amp;&quot;framebufferCube&quot;!==o||(e=R((function(t){return t.link(n.color[0])})))}else m(n)&amp;&amp;(e=R((function(t){return t.global.def(&quot;[&quot;,a(n.length,(function(t){return n[t]})),&quot;]&quot;)})));e.value=n,i[t]=e})),Object.keys(n).forEach((function(t){var e=n[t];i[t]=F(e,(function(t,r){return t.invoke(r,e)}))})),i}(n),d.drawVAO=d.scopeVAO=f.vao,!d.drawVAO&amp;&amp;p.program&amp;&amp;!l&amp;&amp;r.angle_instanced_arrays&amp;&amp;f.static.elements){var y=!0;if(t=p.program.attributes.map((function(t){return t=e.static[t],y=y&amp;&amp;!!t,t})),y&amp;&amp;0&lt;t.length){var x=u.getVAO(u.createVAO({attributes:t,elements:f.static.elements}));d.drawVAO=new z(null,null,null,(function(t,e){return t.link(x)})),d.useVAO=!0}}return l?d.useVAO=!0:d.attributes=k(e),d.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=R((function(t,e){return&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?&quot;&quot;+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=F(e,(function(t,r){return t.invoke(r,e)}))})),n}(i),d}function M(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach((function(a){e.save(n,&quot;.&quot;+a);var o=r[a].append(t,e);Array.isArray(o)?i(n,&quot;.&quot;,a,&quot;=[&quot;,o.join(),&quot;];&quot;):i(n,&quot;.&quot;,a,&quot;=&quot;,o,&quot;;&quot;)})),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;et&amp;&amp;(i=e.def(s.extensions,&quot;.webgl_draw_buffers&quot;));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,&quot;.next&quot;),n||e(&quot;if(&quot;,t,&quot;!==&quot;,o,&quot;.cur){&quot;),e(&quot;if(&quot;,t,&quot;){&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,&quot;,t,&quot;.framebuffer);&quot;),et&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,s,&quot;[&quot;,t,&quot;.colorAttachments.length]);&quot;),e(&quot;}else{&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,null);&quot;),et&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,l,&quot;);&quot;),e(&quot;}&quot;,o,&quot;.cur=&quot;,t,&quot;;&quot;),n||e(&quot;}&quot;)}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,&quot;.dirty&quot;);ot.forEach((function(e){var n,f;if(!((e=v(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(it[e].length,(function(t){return u.def(n,&quot;[&quot;,t,&quot;]&quot;)}));u(t.cond(h.map((function(t,e){return t+&quot;!==&quot;+f+&quot;[&quot;+e+&quot;]&quot;})).join(&quot;||&quot;)).then(i,&quot;.&quot;,lt[e],&quot;(&quot;,h,&quot;);&quot;,h.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;))}else n=u.def(c,&quot;.&quot;,e),h=t.cond(n,&quot;!==&quot;,l,&quot;.&quot;,e),u(h),e in st?h(t.cond(n).then(i,&quot;.enable(&quot;,st[e],&quot;);&quot;).else(i,&quot;.disable(&quot;,st[e],&quot;);&quot;),l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;):h(i,&quot;.&quot;,lt[e],&quot;(&quot;,n,&quot;);&quot;,l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;)})),0===Object.keys(r.state).length&amp;&amp;u(l,&quot;.dirty=false;&quot;),e(u)}function L(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;O(Object.keys(r)).forEach((function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(st[i]){var u=st[i];D(l)?e(s,c?&quot;.enable(&quot;:&quot;.disable(&quot;,u,&quot;);&quot;):e(t.cond(c).then(s,&quot;.enable(&quot;,u,&quot;);&quot;).else(s,&quot;.disable(&quot;,u,&quot;);&quot;)),e(o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}else if(m(c)){var f=a[i];e(s,&quot;.&quot;,lt[i],&quot;(&quot;,c,&quot;);&quot;,c.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;)}else e(s,&quot;.&quot;,lt[i],&quot;(&quot;,c,&quot;);&quot;,o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}}))}function B(t,e){tt&amp;&amp;(t.instancing=e.def(t.shared.extensions,&quot;.angle_instanced_arrays&quot;))}function N(t,e,r,n,i){function a(){return&quot;undefined&quot;==typeof performance?&quot;Date.now()&quot;:&quot;performance.now()&quot;}function o(t){t(c=e.def(),&quot;=&quot;,a(),&quot;;&quot;),&quot;string&quot;==typeof i?t(h,&quot;.count+=&quot;,i,&quot;;&quot;):t(h,&quot;.count++;&quot;),d&amp;&amp;(n?t(u=e.def(),&quot;=&quot;,g,&quot;.getNumPendingQueries();&quot;):t(g,&quot;.beginQuery(&quot;,h,&quot;);&quot;))}function s(t){t(h,&quot;.cpuTime+=&quot;,a(),&quot;-&quot;,c,&quot;;&quot;),d&amp;&amp;(n?t(g,&quot;.pushScopeStats(&quot;,u,&quot;,&quot;,g,&quot;.getNumPendingQueries(),&quot;,h,&quot;);&quot;):t(g,&quot;.endQuery();&quot;))}function l(t){var r=e.def(p,&quot;.profile&quot;);e(p,&quot;.profile=&quot;,t,&quot;;&quot;),e.exit(p,&quot;.profile=&quot;,r,&quot;;&quot;)}var c,u,f=t.shared,h=t.stats,p=f.current,g=f.timer;if(r=r.profile){if(D(r))return void(r.enable?(o(e),s(e.exit),l(&quot;true&quot;)):l(&quot;false&quot;));l(r=r.append(t,e))}else r=e.def(p,&quot;.profile&quot;);o(f=t.block()),e(&quot;if(&quot;,r,&quot;){&quot;,f,&quot;}&quot;),s(t=t.block()),e.exit(&quot;if(&quot;,r,&quot;){&quot;,t,&quot;}&quot;)}function U(t,e,r,n,i){function a(r,n,i){function a(){e(&quot;if(!&quot;,u,&quot;.buffer){&quot;,l,&quot;.enableVertexAttribArray(&quot;,c,&quot;);}&quot;);var r,a=i.type;r=i.size?e.def(i.size,&quot;||&quot;,n):n,e(&quot;if(&quot;,u,&quot;.type!==&quot;,a,&quot;||&quot;,u,&quot;.size!==&quot;,r,&quot;||&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;!==&quot;+i[t]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,f,&quot;.buffer);&quot;,l,&quot;.vertexAttribPointer(&quot;,[c,r,a,i.normalized,i.stride,i.offset],&quot;);&quot;,u,&quot;.type=&quot;,a,&quot;;&quot;,u,&quot;.size=&quot;,r,&quot;;&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;=&quot;+i[t]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;),tt&amp;&amp;(a=i.divisor,e(&quot;if(&quot;,u,&quot;.divisor!==&quot;,a,&quot;){&quot;,t.instancing,&quot;.vertexAttribDivisorANGLE(&quot;,[c,a],&quot;);&quot;,u,&quot;.divisor=&quot;,a,&quot;;}&quot;))}function s(){e(&quot;if(&quot;,u,&quot;.buffer){&quot;,l,&quot;.disableVertexAttribArray(&quot;,c,&quot;);&quot;,u,&quot;.buffer=null;&quot;,&quot;}if(&quot;,_t.map((function(t,e){return u+&quot;.&quot;+t+&quot;!==&quot;+h[e]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.vertexAttrib4f(&quot;,c,&quot;,&quot;,h,&quot;);&quot;,_t.map((function(t,e){return u+&quot;.&quot;+t+&quot;=&quot;+h[e]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;)}var l=o.gl,c=e.def(r,&quot;.location&quot;),u=e.def(o.attributes,&quot;[&quot;,c,&quot;]&quot;);r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[&quot;buffer&quot;,&quot;normalized&quot;,&quot;offset&quot;,&quot;stride&quot;];1===r?a():2===r?s():(e(&quot;if(&quot;,r,&quot;===&quot;,1,&quot;){&quot;),a(),e(&quot;}else{&quot;),s(),e(&quot;}&quot;))}var o=t.shared;n.forEach((function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(St))return;var c=t.scopeAttrib(s);o={},Object.keys(new Q).forEach((function(t){o[t]=e.def(c,&quot;.&quot;,t)}))}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)}))}function q(t,r,n,i,o,s){for(var l,c=t.shared,u=c.gl,f={},h=0;h&lt;i.length;++h){var p=(b=i[h]).name,d=b.info.type,g=b.info.size,v=n.uniforms[p];if(1&lt;g){if(!v)continue;var y=p.replace(&quot;[0]&quot;,&quot;&quot;);if(f[y])continue;f[y]=1}var x,b=t.link(b)+&quot;.location&quot;;if(v){if(!o(v))continue;if(D(v)){if(p=v.value,35678===d||35680===d)r(u,&quot;.uniform1i(&quot;,b,&quot;,&quot;,(d=t.link(p._texture||p.color[0]._texture))+&quot;.bind());&quot;),r.exit(d,&quot;.unbind();&quot;);else if(35674===d||35675===d||35676===d)g=t.global.def(&quot;new Float32Array([&quot;+Array.prototype.slice.call(p)+&quot;])&quot;),p=2,35675===d?p=3:35676===d&amp;&amp;(p=4),r(u,&quot;.uniformMatrix&quot;,p,&quot;fv(&quot;,b,&quot;,false,&quot;,g,&quot;);&quot;);else{switch(d){case 5126:l=&quot;1f&quot;;break;case 35664:l=&quot;2f&quot;;break;case 35665:l=&quot;3f&quot;;break;case 35666:l=&quot;4f&quot;;break;case 35670:case 5124:l=&quot;1i&quot;;break;case 35671:case 35667:l=&quot;2i&quot;;break;case 35672:case 35668:l=&quot;3i&quot;;break;case 35673:l=&quot;4i&quot;;break;case 35669:l=&quot;4i&quot;}1&lt;g?(l+=&quot;v&quot;,p=t.global.def(&quot;[&quot;+Array.prototype.slice.call(p)+&quot;]&quot;)):p=m(p)?Array.prototype.slice.call(p):p,r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;,p,&quot;);&quot;)}continue}x=v.append(t,r)}else{if(!o(St))continue;x=r.def(c.uniforms,&quot;[&quot;,e.id(p),&quot;]&quot;)}switch(35678===d?r(&quot;if(&quot;,x,&quot;&amp;&amp;&quot;,x,'._reglType===&quot;framebuffer&quot;){',x,&quot;=&quot;,x,&quot;.color[0];&quot;,&quot;}&quot;):35680===d&amp;&amp;r(&quot;if(&quot;,x,&quot;&amp;&amp;&quot;,x,'._reglType===&quot;framebufferCube&quot;){',x,&quot;=&quot;,x,&quot;.color[0];&quot;,&quot;}&quot;),p=1,d){case 35678:case 35680:d=r.def(x,&quot;._texture&quot;),r(u,&quot;.uniform1i(&quot;,b,&quot;,&quot;,d,&quot;.bind());&quot;),r.exit(d,&quot;.unbind();&quot;);continue;case 5124:case 35670:l=&quot;1i&quot;;break;case 35667:case 35671:l=&quot;2i&quot;,p=2;break;case 35668:case 35672:l=&quot;3i&quot;,p=3;break;case 35669:case 35673:l=&quot;4i&quot;,p=4;break;case 5126:l=&quot;1f&quot;;break;case 35664:l=&quot;2f&quot;,p=2;break;case 35665:l=&quot;3f&quot;,p=3;break;case 35666:l=&quot;4f&quot;,p=4;break;case 35674:l=&quot;Matrix2fv&quot;;break;case 35675:l=&quot;Matrix3fv&quot;;break;case 35676:l=&quot;Matrix4fv&quot;}if(-1===l.indexOf(&quot;Matrix&quot;)&amp;&amp;1&lt;g&amp;&amp;(l+=&quot;v&quot;,p=1),&quot;M&quot;===l.charAt(0)){r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;);b=Math.pow(d-35674+2,2);var _=t.global.def(&quot;new Float32Array(&quot;,b,&quot;)&quot;);Array.isArray(x)?r(&quot;false,(&quot;,a(b,(function(t){return _+&quot;[&quot;+t+&quot;]=&quot;+x[t]})),&quot;,&quot;,_,&quot;)&quot;):r(&quot;false,(Array.isArray(&quot;,x,&quot;)||&quot;,x,&quot; instanceof Float32Array)?&quot;,x,&quot;:(&quot;,a(b,(function(t){return _+&quot;[&quot;+t+&quot;]=&quot;+x+&quot;[&quot;+t+&quot;]&quot;})),&quot;,&quot;,_,&quot;)&quot;),r(&quot;);&quot;)}else{if(1&lt;p){d=[];var w=[];for(g=0;g&lt;p;++g)Array.isArray(x)?w.push(x[g]):w.push(r.def(x+&quot;[&quot;+g+&quot;]&quot;)),s&amp;&amp;d.push(r.def());s&amp;&amp;r(&quot;if(!&quot;,t.batchId,&quot;||&quot;,d.map((function(t,e){return t+&quot;!==&quot;+w[e]})).join(&quot;||&quot;),&quot;){&quot;,d.map((function(t,e){return t+&quot;=&quot;+w[e]+&quot;;&quot;})).join(&quot;&quot;)),r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;,w.join(&quot;,&quot;),&quot;);&quot;)}else s&amp;&amp;(d=r.def(),r(&quot;if(!&quot;,t.batchId,&quot;||&quot;,d,&quot;!==&quot;,x,&quot;){&quot;,d,&quot;=&quot;,x,&quot;;&quot;)),r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;,x,&quot;);&quot;);s&amp;&amp;r(&quot;}&quot;)}}}function H(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&amp;&amp;n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,&quot;.&quot;,i)}function a(){function t(){r(l,&quot;.drawElementsInstancedANGLE(&quot;,[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;,s],&quot;);&quot;)}function e(){r(l,&quot;.drawArraysInstancedANGLE(&quot;,[d,g,m,s],&quot;);&quot;)}p&amp;&amp;&quot;null&quot;!==p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}function o(){function t(){r(u+&quot;.drawElements(&quot;+[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;]+&quot;);&quot;)}function e(){r(u+&quot;.drawArrays(&quot;+[d,g,m]+&quot;);&quot;)}p&amp;&amp;&quot;null&quot;!==p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a),h.elementsActive&amp;&amp;a(&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;)):(i=a.def(),a(i,&quot;=&quot;,f,&quot;.&quot;,&quot;elements&quot;,&quot;;&quot;,&quot;if(&quot;,i,&quot;){&quot;,u,&quot;.bindBuffer(&quot;,34963,&quot;,&quot;,i,&quot;.buffer.buffer);}&quot;,&quot;else if(&quot;,c.vao,&quot;.currentVAO){&quot;,i,&quot;=&quot;,t.shared.elements+&quot;.getElements(&quot;+c.vao,&quot;.currentVAO.elements);&quot;,nt?&quot;&quot;:&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;,&quot;}&quot;)),i}(),d=i(&quot;primitive&quot;),g=i(&quot;offset&quot;),m=function(){var i=h.count,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;count&quot;),i}();if(&quot;number&quot;==typeof m){if(0===m)return}else r(&quot;if(&quot;,m,&quot;){&quot;),r.exit(&quot;}&quot;);tt&amp;&amp;(s=i(&quot;instances&quot;),l=t.instancing);var v=p+&quot;.type&quot;,y=h.elements&amp;&amp;D(h.elements)&amp;&amp;!h.vaoActive;tt&amp;&amp;(&quot;number&quot;!=typeof s||0&lt;=s)?&quot;string&quot;==typeof s?(r(&quot;if(&quot;,s,&quot;&gt;0){&quot;),a(),r(&quot;}else if(&quot;,s,&quot;&lt;0){&quot;),o(),r(&quot;}&quot;)):a():o()}function G(t,e,r,n,i){return i=(e=b()).proc(&quot;body&quot;,i),tt&amp;&amp;(e.instancing=i.def(e.shared.extensions,&quot;.angle_instanced_arrays&quot;)),t(e,i,r,n),e.compile().body}function Y(t,e,r,n){B(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,e),&quot;);&quot;):e(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(e(t.shared.vao,&quot;.setVAO(null);&quot;),U(t,e,r,n.attributes,(function(){return!0}))),q(t,e,r,n.uniforms,(function(){return!0}),!1),H(t,e,e,r)}function W(t,e,r,n){function i(){return!0}t.batchId=&quot;a1&quot;,B(t,e),U(t,e,r,n.attributes,i),q(t,e,r,n.uniforms,i,!1),H(t,e,e,r)}function X(t,e,r,n){function i(t){return t.contextDep&amp;&amp;o||t.propDep}function a(t){return!i(t)}B(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,&quot;for(&quot;,s,&quot;=0;&quot;,s,&quot;&lt;&quot;,&quot;a1&quot;,&quot;;++&quot;,s,&quot;){&quot;,l,&quot;=&quot;,&quot;a0&quot;,&quot;[&quot;,s,&quot;];&quot;,u,&quot;}&quot;,c.exit),r.needsContext&amp;&amp;M(t,u,r.context),r.needsFramebuffer&amp;&amp;S(t,u,r.framebuffer),L(t,u,r.state,i),r.profile&amp;&amp;i(r.profile)&amp;&amp;N(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,u),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,c),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(c(t.shared.vao,&quot;.setVAO(null);&quot;),U(t,c,r,n.attributes,a),U(t,u,r,n.attributes,i)),q(t,c,r,n.uniforms,a,!1),q(t,u,r,n.uniforms,i,!0),H(t,c,u,r)):(e=t.global.def(&quot;{}&quot;),n=r.shader.progVar.append(t,u),l=u.def(n,&quot;.id&quot;),c=u.def(e,&quot;[&quot;,l,&quot;]&quot;),u(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;,&quot;if(!&quot;,c,&quot;){&quot;,c,&quot;=&quot;,e,&quot;[&quot;,l,&quot;]=&quot;,t.link((function(e){return G(W,t,r,e,2)})),&quot;(&quot;,n,&quot;);}&quot;,c,&quot;.call(this,a0[&quot;,s,&quot;],&quot;,s,&quot;);&quot;))}function Z(t,r){function n(e){var n=r.shader[e];n&amp;&amp;i.set(a.shader,&quot;.&quot;+e,n.append(t,i))}var i=t.proc(&quot;scope&quot;,3);t.batchId=&quot;a2&quot;;var a=t.shared,o=a.current;M(t,i,r.context),r.framebuffer&amp;&amp;r.framebuffer.append(t,i),O(Object.keys(r.state)).forEach((function(e){var n=r.state[e].append(t,i);m(n)?n.forEach((function(r,n){i.set(t.next[e],&quot;[&quot;+n+&quot;]&quot;,r)})):i.set(a.next,&quot;.&quot;+e,n)})),N(t,i,r,!0,!0),[&quot;elements&quot;,&quot;offset&quot;,&quot;count&quot;,&quot;instances&quot;,&quot;primitive&quot;].forEach((function(e){var n=r.draw[e];n&amp;&amp;i.set(a.draw,&quot;.&quot;+e,&quot;&quot;+n.append(t,i))})),Object.keys(r.uniforms).forEach((function(n){var o=r.uniforms[n].append(t,i);Array.isArray(o)&amp;&amp;(o=&quot;[&quot;+o.join()+&quot;]&quot;),i.set(a.uniforms,&quot;[&quot;+e.id(n)+&quot;]&quot;,o)})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Q).forEach((function(t){i.set(a,&quot;.&quot;+t,n[t])}))})),r.scopeVAO&amp;&amp;i.set(a.vao,&quot;.targetVAO&quot;,r.scopeVAO.append(t,i)),n(&quot;vert&quot;),n(&quot;frag&quot;),0&lt;Object.keys(r.state).length&amp;&amp;(i(o,&quot;.dirty=true;&quot;),i.exit(o,&quot;.dirty=true;&quot;)),i(&quot;a1(&quot;,t.shared.context,&quot;,a0,&quot;,t.batchId,&quot;);&quot;)}function J(t,e,r){var n=e.static[r];if(n&amp;&amp;function(t){if(&quot;object&quot;==typeof t&amp;&amp;!m(t)){for(var e=Object.keys(t),r=0;r&lt;e.length;++r)if(V.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(&quot;{}&quot;);a.forEach((function(e){var r=n[e];if(V.isDynamic(r))&quot;function&quot;==typeof r&amp;&amp;(r=n[e]=V.unbox(r)),e=F(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,&quot;.&quot;,e,&quot;=&quot;),typeof r){case&quot;number&quot;:i(r);break;case&quot;string&quot;:i('&quot;',r,'&quot;');break;case&quot;object&quot;:Array.isArray(r)&amp;&amp;i(&quot;[&quot;,r.join(),&quot;]&quot;);break;default:i(t.link(r))}i(&quot;;&quot;)}})),e.dynamic[r]=new V.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach((function(r){var i=n[r];V.isDynamic(i)&amp;&amp;(i=t.invoke(e,i),e(c,&quot;.&quot;,r,&quot;=&quot;,i,&quot;;&quot;))}))}}),delete e.static[r]}}var Q=u.Record,$={add:32774,subtract:32778,&quot;reverse subtract&quot;:32779};r.ext_blend_minmax&amp;&amp;($.min=32775,$.max=32776);var tt=r.angle_instanced_arrays,et=r.webgl_draw_buffers,nt=r.oes_vertex_array_object,it={dirty:!0,profile:g.profile},at={},ot=[],st={},lt={};y(&quot;dither&quot;,3024),y(&quot;blend.enable&quot;,3042),x(&quot;blend.color&quot;,&quot;blendColor&quot;,[0,0,0,0]),x(&quot;blend.equation&quot;,&quot;blendEquationSeparate&quot;,[32774,32774]),x(&quot;blend.func&quot;,&quot;blendFuncSeparate&quot;,[1,0,1,0]),y(&quot;depth.enable&quot;,2929,!0),x(&quot;depth.func&quot;,&quot;depthFunc&quot;,513),x(&quot;depth.range&quot;,&quot;depthRange&quot;,[0,1]),x(&quot;depth.mask&quot;,&quot;depthMask&quot;,!0),x(&quot;colorMask&quot;,&quot;colorMask&quot;,[!0,!0,!0,!0]),y(&quot;cull.enable&quot;,2884),x(&quot;cull.face&quot;,&quot;cullFace&quot;,1029),x(&quot;frontFace&quot;,&quot;frontFace&quot;,2305),x(&quot;lineWidth&quot;,&quot;lineWidth&quot;,1),y(&quot;polygonOffset.enable&quot;,32823),x(&quot;polygonOffset.offset&quot;,&quot;polygonOffset&quot;,[0,0]),y(&quot;sample.alpha&quot;,32926),y(&quot;sample.enable&quot;,32928),x(&quot;sample.coverage&quot;,&quot;sampleCoverage&quot;,[1,!1]),y(&quot;stencil.enable&quot;,2960),x(&quot;stencil.mask&quot;,&quot;stencilMask&quot;,-1),x(&quot;stencil.func&quot;,&quot;stencilFunc&quot;,[519,0,-1]),x(&quot;stencil.opFront&quot;,&quot;stencilOpSeparate&quot;,[1028,7680,7680,7680]),x(&quot;stencil.opBack&quot;,&quot;stencilOpSeparate&quot;,[1029,7680,7680,7680]),y(&quot;scissor.enable&quot;,3089),x(&quot;scissor.box&quot;,&quot;scissor&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(&quot;viewport&quot;,&quot;viewport&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ct={gl:t,context:p,strings:e,next:at,current:it,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:I},ut={primTypes:rt,compareFuncs:kt,blendFuncs:Tt,blendEquations:$,stencilOps:At,glTypes:K,orientationType:Mt};et&amp;&amp;(ut.backBuffer=[1029],ut.drawBuffer=a(n.maxDrawbuffers,(function(t){return 0===t?[0]:a(t,(function(t){return 36064+t}))})));var ft=0;return{next:at,current:it,procs:function(){var t=b(),e=t.proc(&quot;poll&quot;),i=t.proc(&quot;refresh&quot;),o=t.block();e(o),i(o);var s,l=t.shared,c=l.gl,u=l.next,f=l.current;o(f,&quot;.dirty=false;&quot;),S(t,e),S(t,i,null,!0),tt&amp;&amp;(s=t.link(tt)),r.oes_vertex_array_object&amp;&amp;i(t.link(r.oes_vertex_array_object),&quot;.bindVertexArrayOES(null);&quot;);for(var h=0;h&lt;n.maxAttributes;++h){var p=i.def(l.attributes,&quot;[&quot;,h,&quot;]&quot;),d=t.cond(p,&quot;.buffer&quot;);d.then(c,&quot;.enableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,p,&quot;.buffer.buffer);&quot;,c,&quot;.vertexAttribPointer(&quot;,h,&quot;,&quot;,p,&quot;.size,&quot;,p,&quot;.type,&quot;,p,&quot;.normalized,&quot;,p,&quot;.stride,&quot;,p,&quot;.offset);&quot;).else(c,&quot;.disableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.vertexAttrib4f(&quot;,h,&quot;,&quot;,p,&quot;.x,&quot;,p,&quot;.y,&quot;,p,&quot;.z,&quot;,p,&quot;.w);&quot;,p,&quot;.buffer=null;&quot;),i(d),tt&amp;&amp;i(s,&quot;.vertexAttribDivisorANGLE(&quot;,h,&quot;,&quot;,p,&quot;.divisor);&quot;)}return i(t.shared.vao,&quot;.currentVAO=null;&quot;,t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;),Object.keys(st).forEach((function(r){var n=st[r],a=o.def(u,&quot;.&quot;,r),s=t.block();s(&quot;if(&quot;,a,&quot;){&quot;,c,&quot;.enable(&quot;,n,&quot;)}else{&quot;,c,&quot;.disable(&quot;,n,&quot;)}&quot;,f,&quot;.&quot;,r,&quot;=&quot;,a,&quot;;&quot;),i(s),e(&quot;if(&quot;,a,&quot;!==&quot;,f,&quot;.&quot;,r,&quot;){&quot;,s,&quot;}&quot;)})),Object.keys(lt).forEach((function(r){var n,s,l=lt[r],h=it[r],p=t.block();p(c,&quot;.&quot;,l,&quot;(&quot;),m(h)?(l=h.length,n=t.global.def(u,&quot;.&quot;,r),s=t.global.def(f,&quot;.&quot;,r),p(a(l,(function(t){return n+&quot;[&quot;+t+&quot;]&quot;})),&quot;);&quot;,a(l,(function(t){return s+&quot;[&quot;+t+&quot;]=&quot;+n+&quot;[&quot;+t+&quot;];&quot;})).join(&quot;&quot;)),e(&quot;if(&quot;,a(l,(function(t){return n+&quot;[&quot;+t+&quot;]!==&quot;+s+&quot;[&quot;+t+&quot;]&quot;})).join(&quot;||&quot;),&quot;){&quot;,p,&quot;}&quot;)):(n=o.def(u,&quot;.&quot;,r),s=o.def(f,&quot;.&quot;,r),p(n,&quot;);&quot;,f,&quot;.&quot;,r,&quot;=&quot;,n,&quot;;&quot;),e(&quot;if(&quot;,n,&quot;!==&quot;,s,&quot;){&quot;,p,&quot;}&quot;)),i(p)})),t.compile()}(),compile:function(t,e,r,n,i){var a=b();a.stats=a.link(i),Object.keys(e.static).forEach((function(t){J(a,e,t)})),wt.forEach((function(e){J(a,t,e)}));var o=A(t,e,r,n);return function(t,e){var r=t.proc(&quot;draw&quot;,1);B(t,r),M(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),L(t,r,e.state),N(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;),e.shader.program)Y(t,r,e,e.shader.program);else{r(t.shared.vao,&quot;.setVAO(null);&quot;);var i=t.global.def(&quot;{}&quot;),a=r.def(n,&quot;.id&quot;),o=r.def(i,&quot;[&quot;,a,&quot;]&quot;);r(t.cond(o).then(o,&quot;.call(this,a0);&quot;).else(o,&quot;=&quot;,i,&quot;[&quot;,a,&quot;]=&quot;,t.link((function(r){return G(Y,t,e,r,1)})),&quot;(&quot;,n,&quot;);&quot;,o,&quot;.call(this,a0);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;r(t.shared.current,&quot;.dirty=true;&quot;),t.shared.vao&amp;&amp;r(t.shared.vao,&quot;.setVAO(null);&quot;)}(a,o),Z(a,o),function(t,e){function r(t){return t.contextDep&amp;&amp;i||t.propDep}var n=t.proc(&quot;batch&quot;,2);t.batchId=&quot;0&quot;,B(t,n);var i=!1,a=!0;Object.keys(e.context).forEach((function(t){i=i||e.context[t].propDep})),i||(M(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&amp;&amp;i&amp;&amp;(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&amp;&amp;e.state.viewport.propDep&amp;&amp;(i=!0),E(t,n,e),L(t,n,e.state,(function(t){return!r(t)})),e.profile&amp;&amp;r(e.profile)||N(t,n,e,!1,&quot;a1&quot;),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&amp;&amp;i||a.propDep)X(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,&quot;.useProgram(&quot;,a,&quot;.program);&quot;),e.shader.program)X(t,n,e,e.shader.program);else{n(t.shared.vao,&quot;.setVAO(null);&quot;);var s=t.global.def(&quot;{}&quot;),l=(o=n.def(a,&quot;.id&quot;),n.def(s,&quot;[&quot;,o,&quot;]&quot;));n(t.cond(l).then(l,&quot;.call(this,a0,a1);&quot;).else(l,&quot;=&quot;,s,&quot;[&quot;,o,&quot;]=&quot;,t.link((function(r){return G(X,t,e,r,2)})),&quot;(&quot;,a,&quot;);&quot;,l,&quot;.call(this,a0,a1);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;n(t.shared.current,&quot;.dirty=true;&quot;),t.shared.vao&amp;&amp;n(t.shared.vao,&quot;.setVAO(null);&quot;)}(a,o),j(a.compile(),{destroy:function(){o.shader.program.destroy()}})}}}function N(t,e){for(var r=0;r&lt;t.length;++r)if(t[r]===e)return r;return-1}var j=function(t,e){for(var r=Object.keys(e),n=0;n&lt;r.length;++n)t[r[n]]=e[r[n]];return t},U=0,V={DynamicVariable:t,define:function(r,n){return new t(r,e(n+&quot;&quot;))},isDynamic:function(e){return&quot;function&quot;==typeof e&amp;&amp;!e._reglType||e instanceof t},unbox:function e(r,n){return&quot;function&quot;==typeof r?new t(0,r):&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?new t(5,r):Array.isArray(r)?new t(6,r.map((function(t,r){return e(t,n+&quot;[&quot;+r+&quot;]&quot;)}))):r instanceof t?r:void 0},accessor:e},q={next:&quot;function&quot;==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:&quot;function&quot;==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},H=&quot;undefined&quot;!=typeof performance&amp;&amp;performance.now?function(){return performance.now()}:function(){return+new Date},G=s();G.zero=s();var Y=function(t,e){var r=1;e.ext_texture_filter_anisotropic&amp;&amp;(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&amp;&amp;(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=G.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),G.freeType(s)}}return s=!0,&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(s=t.createTexture(),o=G.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),G.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError()),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},W=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},X=function(t){return Object.keys(t).map((function(e){return t[e]}))},Z={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a&lt;e.length;++a)i*=e[a];else i=0;switch(r=n||G.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e&lt;n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a&lt;n;++a)for(var o=t[a],s=0;s&lt;e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s&lt;r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s&lt;l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s&lt;l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},J={&quot;[object Int8Array]&quot;:5120,&quot;[object Int16Array]&quot;:5122,&quot;[object Int32Array]&quot;:5124,&quot;[object Uint8Array]&quot;:5121,&quot;[object Uint8ClampedArray]&quot;:5121,&quot;[object Uint16Array]&quot;:5123,&quot;[object Uint32Array]&quot;:5125,&quot;[object Float32Array]&quot;:5126,&quot;[object Float64Array]&quot;:5121,&quot;[object ArrayBuffer]&quot;:5121},K={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Q={dynamic:35048,stream:35040,static:35044},$=Z.flatten,tt=Z.shape,et=[];et[5120]=1,et[5122]=2,et[5124]=4,et[5121]=1,et[5123]=2,et[5125]=4,et[5126]=4;var rt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,&quot;line loop&quot;:2,&quot;line strip&quot;:3,&quot;triangle strip&quot;:5,&quot;triangle fan&quot;:6},nt=new Float32Array(1),it=new Uint32Array(nt.buffer),at=[9984,9986,9985,9987],ot=[0,6409,6410,6407,6408],st={};st[6409]=st[6406]=st[6402]=1,st[34041]=st[6410]=2,st[6407]=st[35904]=3,st[6408]=st[35906]=4;var lt=v(&quot;HTMLCanvasElement&quot;),ct=v(&quot;OffscreenCanvas&quot;),ut=v(&quot;CanvasRenderingContext2D&quot;),ft=v(&quot;ImageBitmap&quot;),ht=v(&quot;HTMLImageElement&quot;),pt=v(&quot;HTMLVideoElement&quot;),dt=Object.keys(J).concat([lt,ct,ut,ft,ht,pt]),gt=[];gt[5121]=1,gt[5126]=4,gt[36193]=2,gt[5123]=2,gt[5125]=4;var mt=[];mt[32854]=2,mt[32855]=2,mt[36194]=2,mt[34041]=4,mt[33776]=.5,mt[33777]=.5,mt[33778]=1,mt[33779]=1,mt[35986]=.5,mt[35987]=1,mt[34798]=1,mt[35840]=.5,mt[35841]=.25,mt[35842]=.5,mt[35843]=.25,mt[36196]=.5;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[33189]=2,vt[36168]=1,vt[34041]=4,vt[35907]=4,vt[34836]=16,vt[34842]=8,vt[34843]=6;var yt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&amp;&amp;(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,&quot;rgb5 a1&quot;:32855,depth:33189,stencil:36168,&quot;depth stencil&quot;:34041};e.ext_srgb&amp;&amp;(s.srgba=35907),e.ext_color_buffer_half_float&amp;&amp;(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&amp;&amp;(s.rgba32f=34836);var l=[];Object.keys(s).forEach((function(t){l[s[t]]=t}));var c=0,u={};return a.prototype.decRef=function(){0&gt;=--this.refCount&amp;&amp;o(this)},i.profile&amp;&amp;(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(&quot;object&quot;==typeof e&amp;&amp;e?(&quot;shape&quot;in e?(n=0|(a=e.shape)[0],a=0|a[1]):(&quot;radius&quot;in e&amp;&amp;(n=a=0|e.radius),&quot;width&quot;in e&amp;&amp;(n=0|e.width),&quot;height&quot;in e&amp;&amp;(a=0|e.height)),&quot;format&quot;in e&amp;&amp;(u=s[e.format])):&quot;number&quot;==typeof e?(n=0|e,a=&quot;number&quot;==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&amp;&amp;(c.stats.size=vt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&amp;&amp;a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&amp;&amp;(c.stats.size=vt[c.format]*c.width*c.height)),o},o._reglType=&quot;renderbuffer&quot;,o._renderbuffer=c,i.profile&amp;&amp;(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){X(u).forEach(o)},restore:function(){X(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},xt=[];xt[6408]=4,xt[6407]=3;var bt=[];bt[5121]=1,bt[5126]=4,bt[36193]=2;var _t=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;w&quot;],wt=&quot;blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset&quot;.split(&quot; &quot;),Tt={0:0,1:1,zero:0,one:1,&quot;src color&quot;:768,&quot;one minus src color&quot;:769,&quot;src alpha&quot;:770,&quot;one minus src alpha&quot;:771,&quot;dst color&quot;:774,&quot;one minus dst color&quot;:775,&quot;dst alpha&quot;:772,&quot;one minus dst alpha&quot;:773,&quot;constant color&quot;:32769,&quot;one minus constant color&quot;:32770,&quot;constant alpha&quot;:32771,&quot;one minus constant alpha&quot;:32772,&quot;src alpha saturate&quot;:776},kt={never:512,less:513,&quot;&lt;&quot;:513,equal:514,&quot;=&quot;:514,&quot;==&quot;:514,&quot;===&quot;:514,lequal:515,&quot;&lt;=&quot;:515,greater:516,&quot;&gt;&quot;:516,notequal:517,&quot;!=&quot;:517,&quot;!==&quot;:517,gequal:518,&quot;&gt;=&quot;:518,always:519},At={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,&quot;increment wrap&quot;:34055,&quot;decrement wrap&quot;:34056,invert:5386},Mt={cw:2304,ccw:2305},St=new z(!1,!1,!1,(function(){}));return function(t){function e(){if(0===J.length)w&amp;&amp;w.update(),tt=null;else{tt=q.next(e),f();for(var t=J.length-1;0&lt;=t;--t){var r=J[t];r&amp;&amp;r(P,null,0)}m.flush(),w&amp;&amp;w.update()}}function r(){!tt&amp;&amp;0&lt;J.length&amp;&amp;(tt=q.next(e))}function n(){tt&amp;&amp;(q.cancel(e),tt=null)}function a(t){t.preventDefault(),n(),K.forEach((function(t){t()}))}function o(t){m.getError(),y.restore(),R.restore(),O.restore(),F.restore(),U.restore(),G.restore(),D.restore(),w&amp;&amp;w.restore(),W.procs.refresh(),r(),Q.forEach((function(t){t()}))}function s(t){function e(t,e){var r={},n={};return Object.keys(t).forEach((function(i){var a=t[i];if(V.isDynamic(a))n[i]=V.unbox(a,i);else{if(e&amp;&amp;Array.isArray(a))for(var o=0;o&lt;a.length;++o)if(V.isDynamic(a[o]))return void(n[i]=V.unbox(a,i));r[i]=a}})),{dynamic:n,static:r}}var r=e(t.context||{},!0),n=e(t.uniforms||{},!0),i=e(t.attributes||{},!1);t=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach((function(n){r[t+&quot;.&quot;+n]=e[n]}))}}var r=j({},t);return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,&quot;stencil&quot;in r&amp;&amp;r.stencil.op&amp;&amp;(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(&quot;blend&quot;),e(&quot;depth&quot;),e(&quot;cull&quot;),e(&quot;stencil&quot;),e(&quot;polygonOffset&quot;),e(&quot;scissor&quot;),e(&quot;sample&quot;),&quot;vao&quot;in t&amp;&amp;(r.vao=t.vao),r}(t),!1);var a={gpuTime:0,cpuTime:0,count:0},o=W.compile(t,i,n,r,a),s=o.draw,l=o.batch,c=o.scope,u=[];return j((function(t,e){var r;if(&quot;function&quot;==typeof t)return c.call(this,null,t,0);if(&quot;function&quot;==typeof e)if(&quot;number&quot;==typeof t)for(r=0;r&lt;t;++r)c.call(this,null,e,r);else{if(!Array.isArray(t))return c.call(this,t,e,0);for(r=0;r&lt;t.length;++r)c.call(this,t[r],e,r)}else if(&quot;number&quot;==typeof t){if(0&lt;t)return l.call(this,function(t){for(;u.length&lt;t;)u.push(null);return u}(0|t),0|t)}else{if(!Array.isArray(t))return s.call(this,t);if(t.length)return l.call(this,t,t.length)}}),{stats:a,destroy:function(){o.destroy()}})}function l(t,e){var r=0;W.procs.poll();var n=e.color;n&amp;&amp;(m.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),&quot;depth&quot;in e&amp;&amp;(m.clearDepth(+e.depth),r|=256),&quot;stencil&quot;in e&amp;&amp;(m.clearStencil(0|e.stencil),r|=1024),m.clear(r)}function c(t){return J.push(t),r(),{cancel:function(){var e=N(J,t);J[e]=function t(){var e=N(J,t);J[e]=J[J.length-1],--J.length,0&gt;=J.length&amp;&amp;n()}}}}function u(){var t=X.viewport,e=X.scissor_box;t[0]=t[1]=e[0]=e[1]=0,P.viewportWidth=P.framebufferWidth=P.drawingBufferWidth=t[2]=e[2]=m.drawingBufferWidth,P.viewportHeight=P.framebufferHeight=P.drawingBufferHeight=t[3]=e[3]=m.drawingBufferHeight}function f(){P.tick+=1,P.time=g(),u(),W.procs.poll()}function h(){F.refresh(),u(),W.procs.refresh(),w&amp;&amp;w.update()}function g(){return(H()-T)/1e3}if(!(t=i(t)))return null;var m=t.gl,v=m.getContextAttributes();m.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i&lt;e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('&quot;'+a+'&quot; extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&amp;&amp;!r(t))throw Error(&quot;(regl): error restoring extension &quot;+t)}))}}}(m,t);if(!y)return null;var x=function(){var t={&quot;&quot;:0},e=[&quot;&quot;];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=o.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,s.push(i)}if(!e.ext_disjoint_timer_query)return null;var i=[],a=[],o=[],s=[],l=[],c=[];return{beginQuery:function(t){var r=i.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),n(a.length-1,a.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,r;if(0!==(t=a.length)){c.length=Math.max(c.length,t+1),l.length=Math.max(l.length,t+1),l[0]=0;var n=c[0]=0;for(r=t=0;r&lt;a.length;++r){var u=a[r];e.ext_disjoint_timer_query.getQueryObjectEXT(u,34919)?(n+=e.ext_disjoint_timer_query.getQueryObjectEXT(u,34918),i.push(u)):a[t++]=u,l[r+1]=n,c[r+1]=t}for(a.length=t,r=t=0;r&lt;s.length;++r){var f=(n=s[r]).startQueryIndex;u=n.endQueryIndex;n.sum+=l[u]-l[f],f=c[f],(u=c[u])===f?(n.stats.gpuTime+=n.sum/1e6,o.push(n)):(n.startQueryIndex=f,n.endQueryIndex=u,s[t++]=n)}s.length=t}},getNumPendingQueries:function(){return a.length},clear:function(){i.push.apply(i,a);for(var t=0;t&lt;i.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(i[t]);a.length=0,i.length=0},restore:function(){a.length=0,i.length=0}}}(0,_),T=H(),M=m.drawingBufferWidth,C=m.drawingBufferHeight,P={tick:0,time:0,viewportWidth:M,viewportHeight:C,framebufferWidth:M,framebufferHeight:C,drawingBufferWidth:M,drawingBufferHeight:C,pixelRatio:t.pixelRatio},I=(M={elements:null,primitive:4,count:-1,offset:0,instances:-1},Y(m,_)),O=p(m,b,t,(function(t){return D.destroyBuffer(t)})),z=d(m,_,O,b),D=S(m,_,I,b,O,z,M),R=E(m,x,b,t),F=k(m,_,I,(function(){W.procs.poll()}),P,b,t),U=yt(m,_,0,b,t),G=A(m,_,I,F,U,b),W=B(m,x,_,I,O,z,0,G,{},D,R,M,P,w,t),X=(x=L(m,G,W.procs.poll,P),W.next),Z=m.canvas,J=[],K=[],Q=[],$=[t.onDestroy],tt=null;Z&amp;&amp;(Z.addEventListener(&quot;webglcontextlost&quot;,a,!1),Z.addEventListener(&quot;webglcontextrestored&quot;,o,!1));var et=G.setFBO=s({framebuffer:V.define.call(null,1,&quot;framebuffer&quot;)});return h(),v=j(s,{clear:function(t){if(&quot;framebuffer&quot;in t)if(t.framebuffer&amp;&amp;&quot;framebufferCube&quot;===t.framebuffer_reglType)for(var e=0;6&gt;e;++e)et(j({framebuffer:t.framebuffer.faces[e]},t),l);else et(t,l);else l(0,t)},prop:V.define.bind(null,1),context:V.define.bind(null,2),this:V.define.bind(null,3),draw:s({}),buffer:function(t){return O.create(t,34962,!1,!1)},elements:function(t){return z.create(t,!1)},texture:F.create2D,cube:F.createCube,renderbuffer:U.create,framebuffer:G.create,framebufferCube:G.createCube,vao:D.createVAO,attributes:v,frame:c,on:function(t,e){var r;switch(t){case&quot;frame&quot;:return c(e);case&quot;lost&quot;:r=K;break;case&quot;restore&quot;:r=Q;break;case&quot;destroy&quot;:r=$}return r.push(e),{cancel:function(){for(var t=0;t&lt;r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:I,hasExtension:function(t){return 0&lt;=I.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){J.length=0,n(),Z&amp;&amp;(Z.removeEventListener(&quot;webglcontextlost&quot;,a),Z.removeEventListener(&quot;webglcontextrestored&quot;,o)),R.clear(),G.clear(),U.clear(),D.clear(),F.clear(),z.clear(),O.clear(),w&amp;&amp;w.clear(),$.forEach((function(t){t()}))},_gl:m,_refresh:h,poll:function(){f(),w&amp;&amp;w.update()},now:g,stats:b}),t.onDone(null,v),v}}))},{}],541:[function(t,e,r){
/*!
 * repeat-string &lt;https://github.com/jonschlinkert/repeat-string&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
&quot;use strict&quot;;var n,i=&quot;&quot;;e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;expected a string&quot;);if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||void 0===n)n=t,i=&quot;&quot;;else if(i.length&gt;=r)return i.substr(0,r);for(;r&gt;i.length&amp;&amp;e&gt;1;)1&amp;e&amp;&amp;(i+=t),e&gt;&gt;=1,t+=t;return i=(i+=t).substr(0,r)}},{}],542:[function(t,e,r){(function(t){(function(){e.exports=t.performance&amp;&amp;t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],543:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i&gt;=0;--i){var a=r,o=t[i];(l=o-((r=a+o)-a))&amp;&amp;(t[--n]=r,r=l)}var s=0;for(i=n;i&lt;e;++i){var l;a=t[i];(l=(o=r)-((r=a+o)-a))&amp;&amp;(t[s++]=l)}return t[s++]=r,t.length=s,t}},{}],544:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-compress&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m[&quot;,r,&quot;][&quot;,n,&quot;]&quot;].join(&quot;&quot;)}return e}function c(t){if(2===t.length)return[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;);for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,c(s(t,r)),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return function t(e){if(1===e.length)return e[0];if(2===e.length)return[&quot;sum(&quot;,e[0],&quot;,&quot;,e[1],&quot;)&quot;].join(&quot;&quot;);var r=e.length&gt;&gt;1;return[&quot;sum(&quot;,t(e.slice(0,r)),&quot;,&quot;,t(e.slice(r)),&quot;)&quot;].join(&quot;&quot;)}(e);var n}function u(t){return new Function(&quot;sum&quot;,&quot;scale&quot;,&quot;prod&quot;,&quot;compress&quot;,[&quot;function robustDeterminant&quot;,t,&quot;(m){return compress(&quot;,c(l(t)),&quot;)};return robustDeterminant&quot;,t].join(&quot;&quot;))(i,a,n,o)}var f=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;f.length&lt;6;)f.push(u(f.length));for(var t=[],r=[&quot;function robustDeterminant(m){switch(m.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;det&quot;+n),r.push(&quot;case &quot;,n,&quot;:return det&quot;,n,&quot;(m);&quot;);r.push(&quot;}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant&quot;),t.push(&quot;CACHE&quot;,&quot;gen&quot;,r.join(&quot;&quot;));var i=Function.apply(void 0,t);for(e.exports=i.apply(void 0,f.concat([f,u])),n=0;n&lt;f.length;++n)e.exports[n]=f[n]}()},{&quot;robust-compress&quot;:543,&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553,&quot;two-product&quot;:604}],545:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;);e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a&lt;t.length;++a)r=i(r,n(t[a],e[a]));return r}},{&quot;robust-sum&quot;:553,&quot;two-product&quot;:604}],546:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-subtract&quot;),o=t(&quot;robust-scale&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t,e){if(&quot;m&quot;===t.charAt(0)){if(&quot;w&quot;===e.charAt(0)){var r=t.split(&quot;[&quot;);return[&quot;w&quot;,e.substr(1),&quot;m&quot;,r[0].substr(1)].join(&quot;&quot;)}return[&quot;prod(&quot;,t,&quot;,&quot;,e,&quot;)&quot;].join(&quot;&quot;)}return c(e,t)}function u(t){if(2===t.length)return[[&quot;diff(&quot;,c(t[0][0],t[1][1]),&quot;,&quot;,c(t[1][0],t[0][1]),&quot;)&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(u(s(t,r))),&quot;,&quot;,(n=r,!0&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function f(t,e){for(var r=[],n=0;n&lt;e-2;++n)r.push([&quot;prod(m&quot;,t,&quot;[&quot;,n,&quot;],m&quot;,t,&quot;[&quot;,n,&quot;])&quot;].join(&quot;&quot;));return l(r)}function h(t){for(var e=[],r=[],c=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-2,&quot;]&quot;].join(&quot;&quot;)}return e}(t),h=0;h&lt;t;++h)c[0][h]=&quot;1&quot;,c[t-1][h]=&quot;w&quot;+h;for(h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,u(s(c,h))):r.push.apply(r,u(s(c,h)));var p=l(e),d=l(r),g=&quot;exactInSphere&quot;+t,m=[];for(h=0;h&lt;t;++h)m.push(&quot;m&quot;+h);var v=[&quot;function &quot;,g,&quot;(&quot;,m.join(),&quot;){&quot;];for(h=0;h&lt;t;++h){v.push(&quot;var w&quot;,h,&quot;=&quot;,f(h,t),&quot;;&quot;);for(var y=0;y&lt;t;++y)y!==h&amp;&amp;v.push(&quot;var w&quot;,h,&quot;m&quot;,y,&quot;=scale(w&quot;,h,&quot;,m&quot;,y,&quot;[0]);&quot;)}return v.push(&quot;var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=diff(p,n);return d[d.length-1];}return &quot;,g),new Function(&quot;sum&quot;,&quot;diff&quot;,&quot;prod&quot;,&quot;scale&quot;,v.join(&quot;&quot;))(i,a,n,o)}var p=[function(){return 0},function(){return 0},function(){return 0}];function d(t){var e=p[t.length];return e||(e=p[t.length]=h(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=6;)p.push(h(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=6;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function testInSphere(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=6;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=6;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:604}],547:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-determinant&quot;);function i(t){for(var e=&quot;robustLinearSolve&quot;+t+&quot;d&quot;,r=[&quot;function &quot;,e,&quot;(A,b){return [&quot;],i=0;i&lt;t;++i){r.push(&quot;det([&quot;);for(var a=0;a&lt;t;++a){a&gt;0&amp;&amp;r.push(&quot;,&quot;),r.push(&quot;[&quot;);for(var o=0;o&lt;t;++o)o&gt;0&amp;&amp;r.push(&quot;,&quot;),o===i?r.push(&quot;+b[&quot;,a,&quot;]&quot;):r.push(&quot;+A[&quot;,a,&quot;][&quot;,o,&quot;]&quot;);r.push(&quot;]&quot;)}r.push(&quot;]),&quot;)}r.push(&quot;det(A)]}return &quot;,e);var s=new Function(&quot;det&quot;,r.join(&quot;&quot;));return s(t&lt;6?n[t]:n)}var a=[function(){return[0]},function(t,e){return[[e[0]],[t[0][0]]]}];!function(){for(;a.length&lt;6;)a.push(i(a.length));for(var t=[],r=[&quot;function dispatchLinearSolve(A,b){switch(A.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;s&quot;+n),r.push(&quot;case &quot;,n,&quot;:return s&quot;,n,&quot;(A,b);&quot;);r.push(&quot;}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve&quot;),t.push(&quot;CACHE&quot;,&quot;g&quot;,r.join(&quot;&quot;));var o=Function.apply(void 0,t);for(e.exports=o.apply(void 0,a.concat([a,i])),n=0;n&lt;6;++n)e.exports[n]=a[n]}()},{&quot;robust-determinant&quot;:544}],548:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-subtract&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t){if(2===t.length)return[[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(c(s(t,r))),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function u(t){for(var e=[],r=[],u=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-1,&quot;]&quot;].join(&quot;&quot;)}return e}(t),f=[],h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,c(s(u,h))):r.push.apply(r,c(s(u,h))),f.push(&quot;m&quot;+h);var p=l(e),d=l(r),g=&quot;orientation&quot;+t+&quot;Exact&quot;,m=[&quot;function &quot;,g,&quot;(&quot;,f.join(),&quot;){var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=sub(p,n);return d[d.length-1];};return &quot;,g].join(&quot;&quot;);return new Function(&quot;sum&quot;,&quot;prod&quot;,&quot;scale&quot;,&quot;sub&quot;,m)(i,n,a,o)}var f=u(3),h=u(4),p=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i&gt;0){if(a&lt;=0)return o;n=i+a}else{if(!(i&lt;0))return o;if(a&gt;=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o&gt;=s||o&lt;=-s?o:f(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,g=o*l,m=o*s,v=i*c,y=i*l,x=a*s,b=u*(d-g)+f*(m-v)+p*(y-x),_=7771561172376103e-31*((Math.abs(d)+Math.abs(g))*Math.abs(u)+(Math.abs(m)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(p));return b&gt;_||-b&gt;_?b:h(t,e,r,n)}];function d(t){var e=p[t.length];return e||(e=p[t.length]=u(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=5;)p.push(u(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=5;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function getOrientation(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=5;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=5;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:604}],549:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-sum&quot;),i=t(&quot;robust-scale&quot;);e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length&lt;e.length)for(var a=0;a&lt;t.length;++a)r=n(r,i(e,t[a]));else for(a=0;a&lt;e.length;++a)r=n(r,i(t,e[a]));return r}},{&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553}],550:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;two-sum&quot;);e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&amp;&amp;(o[c++]=s[0]);for(var u=1;u&lt;r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&amp;&amp;(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,g=p-(d-h);s[1]=d,g&amp;&amp;(o[c++]=g)}s[1]&amp;&amp;(o[c++]=s[1]);0===c&amp;&amp;(o[c++]=0);return o.length=c,o}},{&quot;two-product&quot;:604,&quot;two-sum&quot;:605}],551:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a&gt;0&amp;&amp;o&gt;0||a&lt;0&amp;&amp;o&lt;0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s&gt;0&amp;&amp;l&gt;0||s&lt;0&amp;&amp;l&lt;0)return!1;if(0===a&amp;&amp;0===o&amp;&amp;0===s&amp;&amp;0===l)return function(t,e,r,n){for(var i=0;i&lt;2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u);if(Math.max(c,u)&lt;s||l&lt;f)return!1}return!0}(t,e,r,i);return!0};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],552:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=-e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],553:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],554:[function(t,e,r){var n=t(&quot;buffer&quot;),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&amp;&amp;i.alloc&amp;&amp;i.allocUnsafe&amp;&amp;i.allocUnsafeSlow?e.exports=n:(a(n,r),r.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(t,e,r){if(&quot;number&quot;==typeof t)throw new TypeError(&quot;Argument must not be a number&quot;);return i(t,e,r)},o.alloc=function(t,e,r){if(&quot;number&quot;!=typeof t)throw new TypeError(&quot;Argument must be a number&quot;);var n=i(t);return void 0!==e?&quot;string&quot;==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if(&quot;number&quot;!=typeof t)throw new TypeError(&quot;Argument must be a number&quot;);return i(t)},o.allocUnsafeSlow=function(t){if(&quot;number&quot;!=typeof t)throw new TypeError(&quot;Argument must be a number&quot;);return n.SlowBuffer(t)}},{buffer:117}],555:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t&lt;0?-1:t&gt;0?1:0}},{}],556:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return i(n(t))};var n=t(&quot;boundary-cells&quot;),i=t(&quot;reduce-simplicial-complex&quot;)},{&quot;boundary-cells&quot;:107,&quot;reduce-simplicial-complex&quot;:535}],557:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,s){r=r||0,void 0===s&amp;&amp;(s=function(t){for(var e=t.length,r=0,n=0;n&lt;e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s&lt;1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a&lt;r;++a)n[a]=t[a]&lt;e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c&lt;r;++c)for(var u=t[c],f=(e=u.length,0);f&lt;e;++f)for(var h=0;h&lt;f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));var g=2;for(c=2;c&lt;l;c+=2)s[c-2]===s[c]&amp;&amp;s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return n(s,[g/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u&lt;s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s&lt;n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o&lt;l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o&lt;e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i&lt;e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(&quot;ndarray&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray-sort&quot;),o=t(&quot;./lib/codegen&quot;)},{&quot;./lib/codegen&quot;:558,ndarray:483,&quot;ndarray-sort&quot;:482,&quot;typedarray-pool&quot;:617}],558:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=a[t];e||(e=a[t]=function(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var a=1;a&lt;=t;++a)for(var o=r[a]=i(a),s=0;s&lt;o.length;++s)e=Math.max(e,o[a].length);var l=[&quot;function B(C,E,i,j){&quot;,&quot;var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];&quot;,&quot;while(l&lt;h){&quot;,&quot;var m=(l+h)&gt;&gt;1,v=E[2*m+1];&quot;,&quot;if(v===b){return m}&quot;,&quot;if(b&lt;v){h=m}else{l=m+1}&quot;,&quot;}&quot;,&quot;return l;&quot;,&quot;};&quot;,&quot;function getContour&quot;,t,&quot;d(F,E,C,S){&quot;,&quot;var n=F.length,R=[];&quot;,&quot;for(var i=0;i&lt;n;++i){var c=F[i],l=c.length;&quot;];function c(t){if(!(t.length&lt;=0)){l.push(&quot;R.push(&quot;);for(var e=0;e&lt;t.length;++e){var r=t[e];e&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;[&quot;);for(var n=0;n&lt;r.length;++n){var i=r[n];n&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;B(C,E,c[&quot;,i[0],&quot;],c[&quot;,i[1],&quot;])&quot;)}l.push(&quot;]&quot;)}l.push(&quot;);&quot;)}}for(a=t+1;a&gt;1;--a){a&lt;t+1&amp;&amp;l.push(&quot;else &quot;),l.push(&quot;if(l===&quot;,a,&quot;){&quot;);var u=[];for(s=0;s&lt;a;++s)u.push(&quot;(S[c[&quot;+s+&quot;]]&lt;&lt;&quot;+s+&quot;)&quot;);l.push(&quot;var M=&quot;,u.join(&quot;+&quot;),&quot;;if(M===0||M===&quot;,(1&lt;&lt;a)-1,&quot;){continue}switch(M){&quot;);for(o=r[a-1],s=0;s&lt;o.length;++s)l.push(&quot;case &quot;,s,&quot;:&quot;),c(o[s]),l.push(&quot;break;&quot;);l.push(&quot;}}&quot;)}return l.push(&quot;}return R;};return getContour&quot;,t,&quot;d&quot;),new Function(&quot;pool&quot;,l.join(&quot;&quot;))(n)}(t));return e};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;marching-simplex-table&quot;),a={}},{&quot;marching-simplex-table&quot;:462,&quot;typedarray-pool&quot;:617}],559:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;union-find&quot;);function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h&lt;r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i&lt;r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i&lt;r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n&lt;r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r&lt;=n;){var o=r+n&gt;&gt;1,s=a(t[o],e);s&lt;=0?(0===s&amp;&amp;(i=o),r=o+1):s&gt;0&amp;&amp;(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i&lt;o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i&lt;l;++i)for(var u=e[i],f=u.length,h=1,p=1&lt;&lt;f;h&lt;p;++h){s.length=n.popCount(h);for(var d=0,g=0;g&lt;f;++g)h&amp;1&lt;&lt;g&amp;&amp;(s[d++]=u[g]);var m=c(t,s);if(!(m&lt;0))for(;r[m++].push(i),!(m&gt;=t.length||0!==a(t[m],s)););}return r}function f(t,e){if(e&lt;0)return[];for(var r=[],i=(1&lt;&lt;e+1)-1,a=0;a&lt;t.length;++a)for(var o=t[a],l=i;l&lt;1&lt;&lt;o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f&lt;o.length;++f)l&amp;1&lt;&lt;f&amp;&amp;(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n&lt;i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r&lt;n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=[];n=0;for(var i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0|i.length,o=1,l=1&lt;&lt;a;o&lt;l;++o){for(var c=[],u=0;u&lt;a;++u)o&gt;&gt;&gt;u&amp;1&amp;&amp;c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;++a){for(var l=new Array(i.length-1),c=0,u=0;c&lt;o;++c)c!==a&amp;&amp;(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var s=o+1;s&lt;a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n&lt;c.length;++n)c[n]=-1;for(n=0;n&lt;t.length;++n){var u=r.find(t[n][0]);c[u]&lt;0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h&lt;a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n&lt;d.length;++n)d[n]=-1;for(n=0;n&lt;t.length;++n){var g=r.find(c(e,[t[n][0]]));d[g]&lt;0?(d[g]=p.length,p.push([t[n].slice(0)])):p[d[g]].push(t[n].slice(0))}return p}(t)}},{&quot;bit-twiddle&quot;:104,&quot;union-find&quot;:618}],560:[function(t,e,r){arguments[4][104][0].apply(r,arguments)},{dup:104}],561:[function(t,e,r){arguments[4][559][0].apply(r,arguments)},{&quot;bit-twiddle&quot;:560,dup:559,&quot;union-find&quot;:562}],562:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],563:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f&lt;a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(f=0;f&lt;o;++f){var h=t[f];if(2!==h.length)throw new Error(&quot;Input must be a graph&quot;);var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function g(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f&lt;0||h&lt;0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function m(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,A[r]=e,A[n]=t}function v(t){return c[k[t]]}function y(t){return 1&amp;t?t-1&gt;&gt;1:(t&gt;&gt;1)-1}function x(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n&lt;M){var o=v(n);o&lt;r&amp;&amp;(a=n,r=o)}if(i&lt;M)v(i)&lt;r&amp;&amp;(a=i);if(a===t)return t;m(t,a),t=a}}function b(t){for(var e=v(t);t&gt;0;){var r=y(t);if(r&gt;=0)if(e&lt;v(r)){m(t,r),t=r;continue}return t}}function _(){if(M&gt;0){var t=k[0];return m(0,M-1),M-=1,x(0),t}return-1}function w(t,e){var r=k[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((M+=1)-1))}function T(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]&gt;=0&amp;&amp;(s[r]=e),l[e]&gt;=0&amp;&amp;(l[e]=r),A[e]&gt;=0&amp;&amp;w(A[e],g(e)),A[r]&gt;=0&amp;&amp;w(A[r],g(r))}}var k=[],A=new Array(a);for(f=0;f&lt;a;++f){(c[f]=g(f))&lt;1/0?(A[f]=k.length,k.push(f)):A[f]=-1}var M=k.length;for(f=M&gt;&gt;1;f&gt;=0;--f)x(f);for(;;){var S=_();if(S&lt;0||c[S]&gt;r)break;T(S)}var E=[];for(f=0;f&lt;a;++f)u[f]||(A[f]=E.length,E.push(e[f].slice()));E.length;function L(t,e){if(t[e]&lt;0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i&lt;0||i===n)break;if(i=t[n=i],!u[n]||i&lt;0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var C=[];return t.forEach((function(t){var e=L(s,t[0]),r=L(l,t[1]);if(e&gt;=0&amp;&amp;r&gt;=0&amp;&amp;e!==r){var n=A[e],i=A[r];n!==i&amp;&amp;C.push([n,i])}})),i.unique(i.normalize(C)),{positions:E,edges:C}};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;)},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:561}],564:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,a,o,s;if(e[0][0]&lt;e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]&gt;e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]&lt;t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]&gt;t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(&quot;robust-orientation&quot;);function i(t,e){var r,i,a,o;if(e[0][0]&lt;e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]&gt;e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l&lt;c?l-c:s&gt;u?s-u:l-u}r=e[1],i=e[0]}t[0][1]&lt;t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{&quot;robust-orientation&quot;:548}],565:[function(t,e,r){arguments[4][251][0].apply(r,arguments)},{dup:251}],566:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a&lt;e;++a){var l=t[a],c=l[0][0]&lt;l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort((function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))}));var h=i(o),p=[],d=[],g=[];for(a=0;a&lt;r;){for(var m=n[a].x,v=[];a&lt;r;){var y=n[a];if(y.x!==m)break;a+=1,y.segment[0][0]===y.x&amp;&amp;y.segment[1][0]===y.x?y.create&amp;&amp;(y.segment[0][1]&lt;y.segment[1][1]?(v.push(new u(y.segment[0][1],y.index,!0,!0)),v.push(new u(y.segment[1][1],y.index,!1,!1))):(v.push(new u(y.segment[1][1],y.index,!0,!1)),v.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(m),g.push(v)}return new s(p,d,g)};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;functional-red-black-tree&quot;),a=t(&quot;robust-orientation&quot;),o=t(&quot;./lib/order-segments&quot;);function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]&lt;o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s&lt;0)t=t.left;else if(s&gt;0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e&lt;0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&amp;&amp;(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&amp;&amp;(s=r.key),e&gt;0){var u=c(this.slabs[e-1],t);u&amp;&amp;(s?o(u.key,s)&gt;0&amp;&amp;(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length&gt;0){var h=n.ge(f,t[1],l);if(h&lt;f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h&lt;f.length-1&amp;&amp;f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&amp;&amp;!p.start){if((h+=1)&gt;=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]&gt;s[1][0]&amp;&amp;(d=-d),d&gt;0&amp;&amp;(i=p.index)}else i=p.index;else p.y!==t[1]&amp;&amp;(i=p.index)}}}return i}},{&quot;./lib/order-segments&quot;:564,&quot;binary-search-bounds&quot;:565,&quot;functional-red-black-tree&quot;:255,&quot;robust-orientation&quot;:548}],567:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-dot-product&quot;),i=t(&quot;robust-sum&quot;);function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i&lt;0?i=0:i&gt;1&amp;&amp;(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l&lt;o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c&lt;t.length;++c,s=l){var u=a(l=t[c],e);if(i&lt;0&amp;&amp;u&gt;0||i&gt;0&amp;&amp;u&lt;0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u&lt;0?n.push(l.slice()):u&gt;0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&gt;=0&amp;&amp;r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&lt;=0&amp;&amp;r.push(s.slice()),n=c}return r}},{&quot;robust-dot-product&quot;:545,&quot;robust-sum&quot;:553}],568:[function(t,e,r){!function(){&quot;use strict&quot;;var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(t){return i(o(t),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}function i(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,g=&quot;&quot;;for(a=0;a&lt;d;a++)if(&quot;string&quot;==typeof r[a])g+=r[a];else if(&quot;object&quot;==typeof r[a]){if((s=r[a]).keys)for(i=n[p],o=0;o&lt;s.keys.length;o++){if(null==i)throw new Error(e('[sprintf] Cannot access property &quot;%s&quot; of undefined value &quot;%s&quot;',s.keys[o],s.keys[o-1]));i=i[s.keys[o]]}else i=s.param_no?n[s.param_no]:n[p++];if(t.not_type.test(s.type)&amp;&amp;t.not_primitive.test(s.type)&amp;&amp;i instanceof Function&amp;&amp;(i=i()),t.numeric_arg.test(s.type)&amp;&amp;&quot;number&quot;!=typeof i&amp;&amp;isNaN(i))throw new TypeError(e(&quot;[sprintf] expecting number but found %T&quot;,i));switch(t.number.test(s.type)&amp;&amp;(f=i&gt;=0),s.type){case&quot;b&quot;:i=parseInt(i,10).toString(2);break;case&quot;c&quot;:i=String.fromCharCode(parseInt(i,10));break;case&quot;d&quot;:case&quot;i&quot;:i=parseInt(i,10);break;case&quot;j&quot;:i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case&quot;e&quot;:i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case&quot;f&quot;:i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case&quot;g&quot;:i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case&quot;o&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(8);break;case&quot;s&quot;:i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;t&quot;:i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;T&quot;:i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;u&quot;:i=parseInt(i,10)&gt;&gt;&gt;0;break;case&quot;v&quot;:i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;x&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16);break;case&quot;X&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16).toUpperCase()}t.json.test(s.type)?g+=i:(!t.number.test(s.type)||f&amp;&amp;!s.sign?h=&quot;&quot;:(h=f?&quot;+&quot;:&quot;-&quot;,i=i.toString().replace(t.sign,&quot;&quot;)),c=s.pad_char?&quot;0&quot;===s.pad_char?&quot;0&quot;:s.pad_char.charAt(1):&quot; &quot;,u=s.width-(h+i).length,l=s.width&amp;&amp;u&gt;0?c.repeat(u):&quot;&quot;,g+=s.align?h+i+l:&quot;0&quot;===c?h+l+i:l+h+i)}return g}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var r,n=e,i=[],o=0;n;){if(null!==(r=t.text.exec(n)))i.push(r[0]);else if(null!==(r=t.modulo.exec(n)))i.push(&quot;%&quot;);else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(&quot;[sprintf] unexpected placeholder&quot;);if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);for(s.push(c[1]);&quot;&quot;!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(&quot;[sprintf] mixing positional and named placeholders is not (yet) supported&quot;);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return a[e]=i}void 0!==r&amp;&amp;(r.sprintf=e,r.vsprintf=n),&quot;undefined&quot;!=typeof window&amp;&amp;(window.sprintf=e,window.vsprintf=n)}()},{}],569:[function(t,e,r){e.exports=i;var n=t(&quot;events&quot;).EventEmitter;function i(){n.call(this)}t(&quot;inherits&quot;)(i,n),i.Readable=t(&quot;readable-stream/lib/_stream_readable.js&quot;),i.Writable=t(&quot;readable-stream/lib/_stream_writable.js&quot;),i.Duplex=t(&quot;readable-stream/lib/_stream_duplex.js&quot;),i.Transform=t(&quot;readable-stream/lib/_stream_transform.js&quot;),i.PassThrough=t(&quot;readable-stream/lib/_stream_passthrough.js&quot;),i.finished=t(&quot;readable-stream/lib/internal/streams/end-of-stream.js&quot;),i.pipeline=t(&quot;readable-stream/lib/internal/streams/pipeline.js&quot;),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&amp;&amp;!1===t.write(e)&amp;&amp;r.pause&amp;&amp;r.pause()}function a(){r.readable&amp;&amp;r.resume&amp;&amp;r.resume()}r.on(&quot;data&quot;,i),t.on(&quot;drain&quot;,a),t._isStdio||e&amp;&amp;!1===e.end||(r.on(&quot;end&quot;,s),r.on(&quot;close&quot;,l));var o=!1;function s(){o||(o=!0,t.end())}function l(){o||(o=!0,&quot;function&quot;==typeof t.destroy&amp;&amp;t.destroy())}function c(t){if(u(),0===n.listenerCount(this,&quot;error&quot;))throw t}function u(){r.removeListener(&quot;data&quot;,i),t.removeListener(&quot;drain&quot;,a),r.removeListener(&quot;end&quot;,s),r.removeListener(&quot;close&quot;,l),r.removeListener(&quot;error&quot;,c),t.removeListener(&quot;error&quot;,c),r.removeListener(&quot;end&quot;,u),r.removeListener(&quot;close&quot;,u),t.removeListener(&quot;close&quot;,u)}return r.on(&quot;error&quot;,c),t.on(&quot;error&quot;,c),r.on(&quot;end&quot;,u),r.on(&quot;close&quot;,u),t.on(&quot;close&quot;,u),t.emit(&quot;pipe&quot;,r),t}},{events:116,inherits:447,&quot;readable-stream/lib/_stream_duplex.js&quot;:571,&quot;readable-stream/lib/_stream_passthrough.js&quot;:572,&quot;readable-stream/lib/_stream_readable.js&quot;:573,&quot;readable-stream/lib/_stream_transform.js&quot;:574,&quot;readable-stream/lib/_stream_writable.js&quot;:575,&quot;readable-stream/lib/internal/streams/end-of-stream.js&quot;:579,&quot;readable-stream/lib/internal/streams/pipeline.js&quot;:581}],570:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t,e,r){r||(r=Error);var i=function(t){var r,n;function i(r,n,i){return t.call(this,function(t,r,n){return&quot;string&quot;==typeof e?e:e(t,r,n)}(r,n,i))||this}return n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=t,n[t]=i}function a(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r&gt;2?&quot;one of &quot;.concat(e,&quot; &quot;).concat(t.slice(0,r-1).join(&quot;, &quot;),&quot;, or &quot;)+t[r-1]:2===r?&quot;one of &quot;.concat(e,&quot; &quot;).concat(t[0],&quot; or &quot;).concat(t[1]):&quot;of &quot;.concat(e,&quot; &quot;).concat(t[0])}return&quot;of &quot;.concat(e,&quot; &quot;).concat(String(t))}i(&quot;ERR_INVALID_OPT_VALUE&quot;,(function(t,e){return'The value &quot;'+e+'&quot; is invalid for option &quot;'+t+'&quot;'}),TypeError),i(&quot;ERR_INVALID_ARG_TYPE&quot;,(function(t,e,r){var n,i,o,s;if(&quot;string&quot;==typeof e&amp;&amp;(i=&quot;not &quot;,e.substr(!o||o&lt;0?0:+o,i.length)===i)?(n=&quot;must not be&quot;,e=e.replace(/^not /,&quot;&quot;)):n=&quot;must be&quot;,function(t,e,r){return(void 0===r||r&gt;t.length)&amp;&amp;(r=t.length),t.substring(r-e.length,r)===e}(t,&quot; argument&quot;))s=&quot;The &quot;.concat(t,&quot; &quot;).concat(n,&quot; &quot;).concat(a(e,&quot;type&quot;));else{var l=function(t,e,r){return&quot;number&quot;!=typeof r&amp;&amp;(r=0),!(r+e.length&gt;t.length)&amp;&amp;-1!==t.indexOf(e,r)}(t,&quot;.&quot;)?&quot;property&quot;:&quot;argument&quot;;s='The &quot;'.concat(t,'&quot; ').concat(l,&quot; &quot;).concat(n,&quot; &quot;).concat(a(e,&quot;type&quot;))}return s+=&quot;. Received type &quot;.concat(typeof r)}),TypeError),i(&quot;ERR_STREAM_PUSH_AFTER_EOF&quot;,&quot;stream.push() after EOF&quot;),i(&quot;ERR_METHOD_NOT_IMPLEMENTED&quot;,(function(t){return&quot;The &quot;+t+&quot; method is not implemented&quot;})),i(&quot;ERR_STREAM_PREMATURE_CLOSE&quot;,&quot;Premature close&quot;),i(&quot;ERR_STREAM_DESTROYED&quot;,(function(t){return&quot;Cannot call &quot;+t+&quot; after a stream was destroyed&quot;})),i(&quot;ERR_MULTIPLE_CALLBACK&quot;,&quot;Callback called multiple times&quot;),i(&quot;ERR_STREAM_CANNOT_PIPE&quot;,&quot;Cannot pipe, not readable&quot;),i(&quot;ERR_STREAM_WRITE_AFTER_END&quot;,&quot;write after end&quot;),i(&quot;ERR_STREAM_NULL_VALUES&quot;,&quot;May not write null values to stream&quot;,TypeError),i(&quot;ERR_UNKNOWN_ENCODING&quot;,(function(t){return&quot;Unknown encoding: &quot;+t}),TypeError),i(&quot;ERR_STREAM_UNSHIFT_AFTER_END_EVENT&quot;,&quot;stream.unshift() after end event&quot;),e.exports.codes=n},{}],571:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=c;var i=t(&quot;./_stream_readable&quot;),a=t(&quot;./_stream_writable&quot;);t(&quot;inherits&quot;)(c,i);for(var o=n(a.prototype),s=0;s&lt;o.length;s++){var l=o[s];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&amp;&amp;(!1===t.readable&amp;&amp;(this.readable=!1),!1===t.writable&amp;&amp;(this.writable=!1),!1===t.allowHalfOpen&amp;&amp;(this.allowHalfOpen=!1,this.once(&quot;end&quot;,u)))}function u(){this._writableState.ended||r.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,&quot;writableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,&quot;writableBuffer&quot;,{enumerable:!1,get:function(){return this._writableState&amp;&amp;this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,&quot;writableLength&quot;,{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return void 0!==this._readableState&amp;&amp;void 0!==this._writableState&amp;&amp;(this._readableState.destroyed&amp;&amp;this._writableState.destroyed)},set:function(t){void 0!==this._readableState&amp;&amp;void 0!==this._writableState&amp;&amp;(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./_stream_readable&quot;:573,&quot;./_stream_writable&quot;:575,_process:528,inherits:447}],572:[function(t,e,r){&quot;use strict&quot;;e.exports=i;var n=t(&quot;./_stream_transform&quot;);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}t(&quot;inherits&quot;)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},{&quot;./_stream_transform&quot;:574,inherits:447}],573:[function(t,e,r){(function(r,n){(function(){&quot;use strict&quot;;var i;e.exports=A,A.ReadableState=k;t(&quot;events&quot;).EventEmitter;var a=function(t,e){return t.listeners(e).length},o=t(&quot;./internal/streams/stream&quot;),s=t(&quot;buffer&quot;).Buffer,l=n.Uint8Array||function(){};var c,u=t(&quot;util&quot;);c=u&amp;&amp;u.debuglog?u.debuglog(&quot;stream&quot;):function(){};var f,h,p,d=t(&quot;./internal/streams/buffer_list&quot;),g=t(&quot;./internal/streams/destroy&quot;),m=t(&quot;./internal/streams/state&quot;).getHighWaterMark,v=t(&quot;../errors&quot;).codes,y=v.ERR_INVALID_ARG_TYPE,x=v.ERR_STREAM_PUSH_AFTER_EOF,b=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t(&quot;inherits&quot;)(A,o);var w=g.errorOrDestroy,T=[&quot;error&quot;,&quot;close&quot;,&quot;destroy&quot;,&quot;pause&quot;,&quot;resume&quot;];function k(e,r,n){i=i||t(&quot;./_stream_duplex&quot;),e=e||{},&quot;boolean&quot;!=typeof n&amp;&amp;(n=r instanceof i),this.objectMode=!!e.objectMode,n&amp;&amp;(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=m(this,e,&quot;readableHighWaterMark&quot;,n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||&quot;utf8&quot;,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&amp;&amp;(f||(f=t(&quot;string_decoder/&quot;).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function A(e){if(i=i||t(&quot;./_stream_duplex&quot;),!(this instanceof A))return new A(e);var r=this instanceof i;this._readableState=new k(e,this,r),this.readable=!0,e&amp;&amp;(&quot;function&quot;==typeof e.read&amp;&amp;(this._read=e.read),&quot;function&quot;==typeof e.destroy&amp;&amp;(this._destroy=e.destroy)),o.call(this)}function M(t,e,r,n,i){c(&quot;readableAddChunk&quot;,e);var a,o=t._readableState;if(null===e)o.reading=!1,function(t,e){if(c(&quot;onEofChunk&quot;),e.ended)return;if(e.decoder){var r=e.decoder.end();r&amp;&amp;r.length&amp;&amp;(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?L(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,C(t)))}(t,o);else if(i||(a=function(t,e){var r;n=e,s.isBuffer(n)||n instanceof l||&quot;string&quot;==typeof e||void 0===e||t.objectMode||(r=new y(&quot;chunk&quot;,[&quot;string&quot;,&quot;Buffer&quot;,&quot;Uint8Array&quot;],e));var n;return r}(o,e)),a)w(t,a);else if(o.objectMode||e&amp;&amp;e.length&gt;0)if(&quot;string&quot;==typeof e||o.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)o.endEmitted?w(t,new _):S(t,o,e,!0);else if(o.ended)w(t,new x);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&amp;&amp;!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?S(t,o,e,!1):P(t,o)):S(t,o,e,!1)}else n||(o.reading=!1,P(t,o));return!o.ended&amp;&amp;(o.length&lt;o.highWaterMark||0===o.length)}function S(t,e,r,n){e.flowing&amp;&amp;0===e.length&amp;&amp;!e.sync?(e.awaitDrain=0,t.emit(&quot;data&quot;,r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&amp;&amp;L(t)),P(t,e)}Object.defineProperty(A.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return void 0!==this._readableState&amp;&amp;this._readableState.destroyed},set:function(t){this._readableState&amp;&amp;(this._readableState.destroyed=t)}}),A.prototype.destroy=g.destroy,A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(t,e){e(t)},A.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:&quot;string&quot;==typeof t&amp;&amp;((e=e||n.defaultEncoding)!==n.encoding&amp;&amp;(t=s.from(t,e),e=&quot;&quot;),r=!0),M(this,t,e,!1,r)},A.prototype.unshift=function(t){return M(this,t,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){f||(f=t(&quot;string_decoder/&quot;).StringDecoder);var r=new f(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i=&quot;&quot;;null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),&quot;&quot;!==i&amp;&amp;this._readableState.buffer.push(i),this._readableState.length=i.length,this};function E(t,e){return t&lt;=0||0===e.length&amp;&amp;e.ended?0:e.objectMode?1:t!=t?e.flowing&amp;&amp;e.length?e.buffer.head.data.length:e.length:(t&gt;e.highWaterMark&amp;&amp;(e.highWaterMark=function(t){return t&gt;=1073741824?t=1073741824:(t--,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,t|=t&gt;&gt;&gt;16,t++),t}(t)),t&lt;=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function L(t){var e=t._readableState;c(&quot;emitReadable&quot;,e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c(&quot;emitReadable&quot;,e.flowing),e.emittedReadable=!0,r.nextTick(C,t))}function C(t){var e=t._readableState;c(&quot;emitReadable_&quot;,e.destroyed,e.length,e.ended),e.destroyed||!e.length&amp;&amp;!e.ended||(t.emit(&quot;readable&quot;),e.emittedReadable=!1),e.needReadable=!e.flowing&amp;&amp;!e.ended&amp;&amp;e.length&lt;=e.highWaterMark,R(t)}function P(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(I,t,e))}function I(t,e){for(;!e.reading&amp;&amp;!e.ended&amp;&amp;(e.length&lt;e.highWaterMark||e.flowing&amp;&amp;0===e.length);){var r=e.length;if(c(&quot;maybeReadMore read 0&quot;),t.read(0),r===e.length)break}e.readingMore=!1}function O(t){var e=t._readableState;e.readableListening=t.listenerCount(&quot;readable&quot;)&gt;0,e.resumeScheduled&amp;&amp;!e.paused?e.flowing=!0:t.listenerCount(&quot;data&quot;)&gt;0&amp;&amp;t.resume()}function z(t){c(&quot;readable nexttick read 0&quot;),t.read(0)}function D(t,e){c(&quot;resume&quot;,e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit(&quot;resume&quot;),R(t),e.flowing&amp;&amp;!e.reading&amp;&amp;t.read(0)}function R(t){var e=t._readableState;for(c(&quot;flow&quot;,e.flowing);e.flowing&amp;&amp;null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t&gt;=e.length?(r=e.decoder?e.buffer.join(&quot;&quot;):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function B(t){var e=t._readableState;c(&quot;endReadable&quot;,e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(N,e,t))}function N(t,e){if(c(&quot;endReadableNT&quot;,t.endEmitted,t.length),!t.endEmitted&amp;&amp;0===t.length&amp;&amp;(t.endEmitted=!0,e.readable=!1,e.emit(&quot;end&quot;),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&amp;&amp;r.finished)&amp;&amp;e.destroy()}}function j(t,e){for(var r=0,n=t.length;r&lt;n;r++)if(t[r]===e)return r;return-1}A.prototype.read=function(t){c(&quot;read&quot;,t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&amp;&amp;(e.emittedReadable=!1),0===t&amp;&amp;e.needReadable&amp;&amp;((0!==e.highWaterMark?e.length&gt;=e.highWaterMark:e.length&gt;0)||e.ended))return c(&quot;read: emitReadable&quot;,e.length,e.ended),0===e.length&amp;&amp;e.ended?B(this):L(this),null;if(0===(t=E(t,e))&amp;&amp;e.ended)return 0===e.length&amp;&amp;B(this),null;var n,i=e.needReadable;return c(&quot;need readable&quot;,i),(0===e.length||e.length-t&lt;e.highWaterMark)&amp;&amp;c(&quot;length less than watermark&quot;,i=!0),e.ended||e.reading?c(&quot;reading or ended&quot;,i=!1):i&amp;&amp;(c(&quot;do read&quot;),e.reading=!0,e.sync=!0,0===e.length&amp;&amp;(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(r,e))),null===(n=t&gt;0?F(t,e):null)?(e.needReadable=e.length&lt;=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&amp;&amp;(e.ended||(e.needReadable=!0),r!==t&amp;&amp;e.ended&amp;&amp;B(this)),null!==n&amp;&amp;this.emit(&quot;data&quot;,n),n},A.prototype._read=function(t){w(this,new b(&quot;_read()&quot;))},A.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,c(&quot;pipe count=%d opts=%j&quot;,i.pipesCount,e);var o=(!e||!1!==e.end)&amp;&amp;t!==r.stdout&amp;&amp;t!==r.stderr?l:m;function s(e,r){c(&quot;onunpipe&quot;),e===n&amp;&amp;r&amp;&amp;!1===r.hasUnpiped&amp;&amp;(r.hasUnpiped=!0,c(&quot;cleanup&quot;),t.removeListener(&quot;close&quot;,d),t.removeListener(&quot;finish&quot;,g),t.removeListener(&quot;drain&quot;,u),t.removeListener(&quot;error&quot;,p),t.removeListener(&quot;unpipe&quot;,s),n.removeListener(&quot;end&quot;,l),n.removeListener(&quot;end&quot;,m),n.removeListener(&quot;data&quot;,h),f=!0,!i.awaitDrain||t._writableState&amp;&amp;!t._writableState.needDrain||u())}function l(){c(&quot;onend&quot;),t.end()}i.endEmitted?r.nextTick(o):n.once(&quot;end&quot;,o),t.on(&quot;unpipe&quot;,s);var u=function(t){return function(){var e=t._readableState;c(&quot;pipeOnDrain&quot;,e.awaitDrain),e.awaitDrain&amp;&amp;e.awaitDrain--,0===e.awaitDrain&amp;&amp;a(t,&quot;data&quot;)&amp;&amp;(e.flowing=!0,R(t))}}(n);t.on(&quot;drain&quot;,u);var f=!1;function h(e){c(&quot;ondata&quot;);var r=t.write(e);c(&quot;dest.write&quot;,r),!1===r&amp;&amp;((1===i.pipesCount&amp;&amp;i.pipes===t||i.pipesCount&gt;1&amp;&amp;-1!==j(i.pipes,t))&amp;&amp;!f&amp;&amp;(c(&quot;false write response, pause&quot;,i.awaitDrain),i.awaitDrain++),n.pause())}function p(e){c(&quot;onerror&quot;,e),m(),t.removeListener(&quot;error&quot;,p),0===a(t,&quot;error&quot;)&amp;&amp;w(t,e)}function d(){t.removeListener(&quot;finish&quot;,g),m()}function g(){c(&quot;onfinish&quot;),t.removeListener(&quot;close&quot;,d),m()}function m(){c(&quot;unpipe&quot;),n.unpipe(t)}return n.on(&quot;data&quot;,h),function(t,e,r){if(&quot;function&quot;==typeof t.prependListener)return t.prependListener(e,r);t._events&amp;&amp;t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,&quot;error&quot;,p),t.once(&quot;close&quot;,d),t.once(&quot;finish&quot;,g),t.emit(&quot;pipe&quot;,n),i.flowing||(c(&quot;pipe resume&quot;),n.resume()),t},A.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&amp;&amp;t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&amp;&amp;t.emit(&quot;unpipe&quot;,this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a&lt;i;a++)n[a].emit(&quot;unpipe&quot;,this,{hasUnpiped:!1});return this}var o=j(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&amp;&amp;(e.pipes=e.pipes[0]),t.emit(&quot;unpipe&quot;,this,r)),this},A.prototype.on=function(t,e){var n=o.prototype.on.call(this,t,e),i=this._readableState;return&quot;data&quot;===t?(i.readableListening=this.listenerCount(&quot;readable&quot;)&gt;0,!1!==i.flowing&amp;&amp;this.resume()):&quot;readable&quot;===t&amp;&amp;(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c(&quot;on readable&quot;,i.length,i.reading),i.length?L(this):i.reading||r.nextTick(z,this))),n},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(t,e){var n=o.prototype.removeListener.call(this,t,e);return&quot;readable&quot;===t&amp;&amp;r.nextTick(O,this),n},A.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return&quot;readable&quot;!==t&amp;&amp;void 0!==t||r.nextTick(O,this),e},A.prototype.resume=function(){var t=this._readableState;return t.flowing||(c(&quot;resume&quot;),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(D,t,e))}(this,t)),t.paused=!1,this},A.prototype.pause=function(){return c(&quot;call pause flowing=%j&quot;,this._readableState.flowing),!1!==this._readableState.flowing&amp;&amp;(c(&quot;pause&quot;),this._readableState.flowing=!1,this.emit(&quot;pause&quot;)),this._readableState.paused=!0,this},A.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on(&quot;end&quot;,(function(){if(c(&quot;wrapped end&quot;),r.decoder&amp;&amp;!r.ended){var t=r.decoder.end();t&amp;&amp;t.length&amp;&amp;e.push(t)}e.push(null)})),t.on(&quot;data&quot;,(function(i){(c(&quot;wrapped data&quot;),r.decoder&amp;&amp;(i=r.decoder.write(i)),r.objectMode&amp;&amp;null==i)||(r.objectMode||i&amp;&amp;i.length)&amp;&amp;(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&amp;&amp;&quot;function&quot;==typeof t[i]&amp;&amp;(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a&lt;T.length;a++)t.on(T[a],this.emit.bind(this,T[a]));return this._read=function(e){c(&quot;wrapped _read&quot;,e),n&amp;&amp;(n=!1,t.resume())},this},&quot;function&quot;==typeof Symbol&amp;&amp;(A.prototype[Symbol.asyncIterator]=function(){return void 0===h&amp;&amp;(h=t(&quot;./internal/streams/async_iterator&quot;)),h(this)}),Object.defineProperty(A.prototype,&quot;readableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,&quot;readableBuffer&quot;,{enumerable:!1,get:function(){return this._readableState&amp;&amp;this._readableState.buffer}}),Object.defineProperty(A.prototype,&quot;readableFlowing&quot;,{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&amp;&amp;(this._readableState.flowing=t)}}),A._fromList=F,Object.defineProperty(A.prototype,&quot;readableLength&quot;,{enumerable:!1,get:function(){return this._readableState.length}}),&quot;function&quot;==typeof Symbol&amp;&amp;(A.from=function(e,r){return void 0===p&amp;&amp;(p=t(&quot;./internal/streams/from&quot;)),p(A,e,r)})}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;../errors&quot;:570,&quot;./_stream_duplex&quot;:571,&quot;./internal/streams/async_iterator&quot;:576,&quot;./internal/streams/buffer_list&quot;:577,&quot;./internal/streams/destroy&quot;:578,&quot;./internal/streams/from&quot;:580,&quot;./internal/streams/state&quot;:582,&quot;./internal/streams/stream&quot;:583,_process:528,buffer:117,events:116,inherits:447,&quot;string_decoder/&quot;:584,util:115}],574:[function(t,e,r){&quot;use strict&quot;;e.exports=u;var n=t(&quot;../errors&quot;).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=t(&quot;./_stream_duplex&quot;);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit(&quot;error&quot;,new a);r.writechunk=null,r.writecb=null,null!=e&amp;&amp;this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length&lt;i.highWaterMark)&amp;&amp;this._read(i.highWaterMark)}function u(t){if(!(this instanceof u))return new u(t);l.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&amp;&amp;(&quot;function&quot;==typeof t.transform&amp;&amp;(this._transform=t.transform),&quot;function&quot;==typeof t.flush&amp;&amp;(this._flush=t.flush)),this.on(&quot;prefinish&quot;,f)}function f(){var t=this;&quot;function&quot;!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(e,r){h(t,e,r)}))}function h(t,e,r){if(e)return t.emit(&quot;error&quot;,e);if(null!=r&amp;&amp;t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new o;return t.push(null)}t(&quot;inherits&quot;)(u,l),u.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},u.prototype._transform=function(t,e,r){r(new i(&quot;_transform()&quot;))},u.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length&lt;i.highWaterMark)&amp;&amp;this._read(i.highWaterMark)}},u.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},u.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},{&quot;../errors&quot;:570,&quot;./_stream_duplex&quot;:571,inherits:447}],575:[function(t,e,r){(function(r,n){(function(){&quot;use strict&quot;;function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var a;e.exports=A,A.WritableState=k;var o={deprecate:t(&quot;util-deprecate&quot;)},s=t(&quot;./internal/streams/stream&quot;),l=t(&quot;buffer&quot;).Buffer,c=n.Uint8Array||function(){};var u,f=t(&quot;./internal/streams/destroy&quot;),h=t(&quot;./internal/streams/state&quot;).getHighWaterMark,p=t(&quot;../errors&quot;).codes,d=p.ERR_INVALID_ARG_TYPE,g=p.ERR_METHOD_NOT_IMPLEMENTED,m=p.ERR_MULTIPLE_CALLBACK,v=p.ERR_STREAM_CANNOT_PIPE,y=p.ERR_STREAM_DESTROYED,x=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,w=f.errorOrDestroy;function T(){}function k(e,n,o){a=a||t(&quot;./_stream_duplex&quot;),e=e||{},&quot;boolean&quot;!=typeof o&amp;&amp;(o=n instanceof a),this.objectMode=!!e.objectMode,o&amp;&amp;(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,&quot;writableHighWaterMark&quot;,o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||&quot;utf8&quot;,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(&quot;function&quot;!=typeof a)throw new m;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,a){--e.pendingcb,n?(r.nextTick(a,i),r.nextTick(P,t,e),t._writableState.errorEmitted=!0,w(t,i)):(a(i),t._writableState.errorEmitted=!0,w(t,i),P(t,e))}(t,n,i,e,a);else{var o=L(n)||t.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||E(t,n),i?r.nextTick(S,t,n,o,a):S(t,n,o,a)}}(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function A(e){var r=this instanceof(a=a||t(&quot;./_stream_duplex&quot;));if(!r&amp;&amp;!u.call(A,this))return new A(e);this._writableState=new k(e,this,r),this.writable=!0,e&amp;&amp;(&quot;function&quot;==typeof e.write&amp;&amp;(this._write=e.write),&quot;function&quot;==typeof e.writev&amp;&amp;(this._writev=e.writev),&quot;function&quot;==typeof e.destroy&amp;&amp;(this._destroy=e.destroy),&quot;function&quot;==typeof e.final&amp;&amp;(this._final=e.final)),s.call(this)}function M(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y(&quot;write&quot;)):r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function S(t,e,r,n){r||function(t,e){0===e.length&amp;&amp;e.needDrain&amp;&amp;(e.needDrain=!1,t.emit(&quot;drain&quot;))}(t,e),e.pendingcb--,n(),P(t,e)}function E(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&amp;&amp;r&amp;&amp;r.next){var n=e.bufferedRequestCount,a=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,l=!0;r;)a[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;a.allBuffers=l,M(t,e,!0,e.length,a,&quot;&quot;,o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,f=r.callback;if(M(t,e,!1,e.objectMode?1:c.length,c,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&amp;&amp;(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function L(t){return t.ending&amp;&amp;0===t.length&amp;&amp;null===t.bufferedRequest&amp;&amp;!t.finished&amp;&amp;!t.writing}function C(t,e){t._final((function(r){e.pendingcb--,r&amp;&amp;w(t,r),e.prefinished=!0,t.emit(&quot;prefinish&quot;),P(t,e)}))}function P(t,e){var n=L(e);if(n&amp;&amp;(function(t,e){e.prefinished||e.finalCalled||(&quot;function&quot;!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit(&quot;prefinish&quot;)):(e.pendingcb++,e.finalCalled=!0,r.nextTick(C,t,e)))}(t,e),0===e.pendingcb&amp;&amp;(e.finished=!0,t.emit(&quot;finish&quot;),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&amp;&amp;i.endEmitted)&amp;&amp;t.destroy()}return n}t(&quot;inherits&quot;)(A,s),k.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(k.prototype,&quot;buffer&quot;,{get:o.deprecate((function(){return this.getBuffer()}),&quot;_writableState.buffer is deprecated. Use _writableState.getBuffer instead.&quot;,&quot;DEP0003&quot;)})}catch(t){}}(),&quot;function&quot;==typeof Symbol&amp;&amp;Symbol.hasInstance&amp;&amp;&quot;function&quot;==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(t){return!!u.call(this,t)||this===A&amp;&amp;(t&amp;&amp;t._writableState instanceof k)}})):u=function(t){return t instanceof this},A.prototype.pipe=function(){w(this,new v)},A.prototype.write=function(t,e,n){var i,a=this._writableState,o=!1,s=!a.objectMode&amp;&amp;(i=t,l.isBuffer(i)||i instanceof c);return s&amp;&amp;!l.isBuffer(t)&amp;&amp;(t=function(t){return l.from(t)}(t)),&quot;function&quot;==typeof e&amp;&amp;(n=e,e=null),s?e=&quot;buffer&quot;:e||(e=a.defaultEncoding),&quot;function&quot;!=typeof n&amp;&amp;(n=T),a.ending?function(t,e){var n=new b;w(t,n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var a;return null===n?a=new x:&quot;string&quot;==typeof n||e.objectMode||(a=new d(&quot;chunk&quot;,[&quot;string&quot;,&quot;Buffer&quot;],n)),!a||(w(t,a),r.nextTick(i,a),!1)}(this,a,t,n))&amp;&amp;(a.pendingcb++,o=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||&quot;string&quot;!=typeof e||(e=l.from(e,r));return e}(e,n,i);n!==o&amp;&amp;(r=!0,i=&quot;buffer&quot;,n=o)}var s=e.objectMode?1:n.length;e.length+=s;var c=e.length&lt;e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else M(t,e,!1,s,n,i,a);return c}(this,a,s,t,e,n)),o},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var t=this._writableState;t.corked&amp;&amp;(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||E(this,t))},A.prototype.setDefaultEncoding=function(t){if(&quot;string&quot;==typeof t&amp;&amp;(t=t.toLowerCase()),!([&quot;hex&quot;,&quot;utf8&quot;,&quot;utf-8&quot;,&quot;ascii&quot;,&quot;binary&quot;,&quot;base64&quot;,&quot;ucs2&quot;,&quot;ucs-2&quot;,&quot;utf16le&quot;,&quot;utf-16le&quot;,&quot;raw&quot;].indexOf((t+&quot;&quot;).toLowerCase())&gt;-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,&quot;writableBuffer&quot;,{enumerable:!1,get:function(){return this._writableState&amp;&amp;this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,&quot;writableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,r){r(new g(&quot;_write()&quot;))},A.prototype._writev=null,A.prototype.end=function(t,e,n){var i=this._writableState;return&quot;function&quot;==typeof t?(n=t,t=null,e=null):&quot;function&quot;==typeof e&amp;&amp;(n=e,e=null),null!=t&amp;&amp;this.write(t,e),i.corked&amp;&amp;(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,P(t,e),n&amp;&amp;(e.finished?r.nextTick(n):t.once(&quot;finish&quot;,n));e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(A.prototype,&quot;writableLength&quot;,{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return void 0!==this._writableState&amp;&amp;this._writableState.destroyed},set:function(t){this._writableState&amp;&amp;(this._writableState.destroyed=t)}}),A.prototype.destroy=f.destroy,A.prototype._undestroy=f.undestroy,A.prototype._destroy=function(t,e){e(t)}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;../errors&quot;:570,&quot;./_stream_duplex&quot;:571,&quot;./internal/streams/destroy&quot;:578,&quot;./internal/streams/state&quot;:582,&quot;./internal/streams/stream&quot;:583,_process:528,buffer:117,inherits:447,&quot;util-deprecate&quot;:622}],576:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=t(&quot;./end-of-stream&quot;),o=Symbol(&quot;lastResolve&quot;),s=Symbol(&quot;lastReject&quot;),l=Symbol(&quot;error&quot;),c=Symbol(&quot;ended&quot;),u=Symbol(&quot;lastPromise&quot;),f=Symbol(&quot;handlePromise&quot;),h=Symbol(&quot;stream&quot;);function p(t,e){return{value:t,done:e}}function d(t){var e=t[o];if(null!==e){var r=t[h].read();null!==r&amp;&amp;(t[u]=null,t[o]=null,t[s]=null,e(p(r,!1)))}}function g(t){r.nextTick(d,t)}var m=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(e,n){r.nextTick((function(){t[l]?n(t[l]):e(p(void 0,!0))}))}));var n,i=this[u];if(i)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(p(void 0,!0)):e[f](r,n)}),n)}}(i,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(p(a,!1));n=new Promise(this[f])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,&quot;return&quot;,(function(){var t=this;return new Promise((function(e,r){t[h].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),n),m);e.exports=function(t){var e,r=Object.create(v,(i(e={},h,{value:t,writable:!0}),i(e,o,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var n=r[h].read();n?(r[u]=null,r[o]=null,r[s]=null,t(p(n,!1))):(r[o]=t,r[s]=e)},writable:!0}),e));return r[u]=null,a(t,(function(t){if(t&amp;&amp;&quot;ERR_STREAM_PREMATURE_CLOSE&quot;!==t.code){var e=r[s];return null!==e&amp;&amp;(r[u]=null,r[o]=null,r[s]=null,e(t)),void(r[l]=t)}var n=r[o];null!==n&amp;&amp;(r[u]=null,r[o]=null,r[s]=null,n(p(void 0,!0))),r[c]=!0})),t.on(&quot;readable&quot;,g.bind(null,r)),r}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./end-of-stream&quot;:579,_process:528}],577:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&amp;&amp;(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,&quot;value&quot;in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=t(&quot;buffer&quot;).Buffer,s=t(&quot;util&quot;).inspect,l=s&amp;&amp;s.custom||&quot;inspect&quot;;e.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(&quot;Cannot call a class as a function&quot;)}(this,t),this.head=null,this.tail=null,this.length=0}var e,r,c;return e=t,(r=[{key:&quot;push&quot;,value:function(t){var e={data:t,next:null};this.length&gt;0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:&quot;unshift&quot;,value:function(t){var e={data:t,next:this.head};0===this.length&amp;&amp;(this.tail=e),this.head=e,++this.length}},{key:&quot;shift&quot;,value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:&quot;clear&quot;,value:function(){this.head=this.tail=null,this.length=0}},{key:&quot;join&quot;,value:function(t){if(0===this.length)return&quot;&quot;;for(var e=this.head,r=&quot;&quot;+e.data;e=e.next;)r+=t+e.data;return r}},{key:&quot;concat&quot;,value:function(t){if(0===this.length)return o.alloc(0);for(var e,r,n,i=o.allocUnsafe(t&gt;&gt;&gt;0),a=this.head,s=0;a;)e=a.data,r=i,n=s,o.prototype.copy.call(e,r,n),s+=a.data.length,a=a.next;return i}},{key:&quot;consume&quot;,value:function(t,e){var r;return t&lt;this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:&quot;first&quot;,value:function(){return this.head.data}},{key:&quot;_getString&quot;,value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,a=t&gt;i.length?i.length:t;if(a===i.length?n+=i:n+=i.slice(0,t),0==(t-=a)){a===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(a));break}++r}return this.length-=r,n}},{key:&quot;_getBuffer&quot;,value:function(t){var e=o.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,a=t&gt;i.length?i.length:t;if(i.copy(e,e.length-t,0,a),0==(t-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return s(this,function(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&amp;&amp;a(e.prototype,r),c&amp;&amp;a(e,c),t}()},{buffer:117,util:115}],578:[function(t,e,r){(function(t){(function(){&quot;use strict&quot;;function r(t,e){i(t,e),n(t)}function n(t){t._writableState&amp;&amp;!t._writableState.emitClose||t._readableState&amp;&amp;!t._readableState.emitClose||t.emit(&quot;close&quot;)}function i(t,e){t.emit(&quot;error&quot;,e)}e.exports={destroy:function(e,a){var o=this,s=this._readableState&amp;&amp;this._readableState.destroyed,l=this._writableState&amp;&amp;this._writableState.destroyed;return s||l?(a?a(e):e&amp;&amp;(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&amp;&amp;(this._readableState.destroyed=!0),this._writableState&amp;&amp;(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!a&amp;&amp;e?o._writableState?o._writableState.errorEmitted?t.nextTick(n,o):(o._writableState.errorEmitted=!0,t.nextTick(r,o,e)):t.nextTick(r,o,e):a?(t.nextTick(n,o),a(e)):t.nextTick(n,o)})),this)},undestroy:function(){this._readableState&amp;&amp;(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&amp;&amp;(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&amp;&amp;r.autoDestroy||n&amp;&amp;n.autoDestroy?t.destroy(e):t.emit(&quot;error&quot;,e)}}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:528}],579:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../errors&quot;).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function t(e,r,a){if(&quot;function&quot;==typeof r)return t(e,null,r);r||(r={}),a=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i&lt;r;i++)n[i]=arguments[i];t.apply(this,n)}}}(a||i);var o=r.readable||!1!==r.readable&amp;&amp;e.readable,s=r.writable||!1!==r.writable&amp;&amp;e.writable,l=function(){e.writable||u()},c=e._writableState&amp;&amp;e._writableState.finished,u=function(){s=!1,c=!0,o||a.call(e)},f=e._readableState&amp;&amp;e._readableState.endEmitted,h=function(){o=!1,f=!0,s||a.call(e)},p=function(t){a.call(e,t)},d=function(){var t;return o&amp;&amp;!f?(e._readableState&amp;&amp;e._readableState.ended||(t=new n),a.call(e,t)):s&amp;&amp;!c?(e._writableState&amp;&amp;e._writableState.ended||(t=new n),a.call(e,t)):void 0},g=function(){e.req.on(&quot;finish&quot;,u)};return!function(t){return t.setHeader&amp;&amp;&quot;function&quot;==typeof t.abort}(e)?s&amp;&amp;!e._writableState&amp;&amp;(e.on(&quot;end&quot;,l),e.on(&quot;close&quot;,l)):(e.on(&quot;complete&quot;,u),e.on(&quot;abort&quot;,d),e.req?g():e.on(&quot;request&quot;,g)),e.on(&quot;end&quot;,h),e.on(&quot;finish&quot;,u),!1!==r.error&amp;&amp;e.on(&quot;error&quot;,p),e.on(&quot;close&quot;,d),function(){e.removeListener(&quot;complete&quot;,u),e.removeListener(&quot;abort&quot;,d),e.removeListener(&quot;request&quot;,g),e.req&amp;&amp;e.req.removeListener(&quot;finish&quot;,u),e.removeListener(&quot;end&quot;,l),e.removeListener(&quot;close&quot;,l),e.removeListener(&quot;finish&quot;,u),e.removeListener(&quot;end&quot;,h),e.removeListener(&quot;error&quot;,p),e.removeListener(&quot;close&quot;,d)}}},{&quot;../../../errors&quot;:570}],580:[function(t,e,r){e.exports=function(){throw new Error(&quot;Readable.from is not available in the browser&quot;)}},{}],581:[function(t,e,r){&quot;use strict&quot;;var n;var i=t(&quot;../../../errors&quot;).codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function l(e,r,i,a){a=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(a);var s=!1;e.on(&quot;close&quot;,(function(){s=!0})),void 0===n&amp;&amp;(n=t(&quot;./end-of-stream&quot;)),n(e,{readable:r,writable:i},(function(t){if(t)return a(t);s=!0,a()}));var l=!1;return function(t){if(!s&amp;&amp;!l)return l=!0,function(t){return t.setHeader&amp;&amp;&quot;function&quot;==typeof t.abort}(e)?e.abort():&quot;function&quot;==typeof e.destroy?e.destroy():void a(t||new o(&quot;pipe&quot;))}}function c(t){t()}function u(t,e){return t.pipe(e)}function f(t){return t.length?&quot;function&quot;!=typeof t[t.length-1]?s:t.pop():s}e.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r&lt;t;r++)e[r]=arguments[r];var n,i=f(e);if(Array.isArray(e[0])&amp;&amp;(e=e[0]),e.length&lt;2)throw new a(&quot;streams&quot;);var o=e.map((function(t,r){var a=r&lt;e.length-1;return l(t,a,r&gt;0,(function(t){n||(n=t),t&amp;&amp;o.forEach(c),a||(o.forEach(c),i(n))}))}));return e.reduce(u)}},{&quot;../../../errors&quot;:570,&quot;./end-of-stream&quot;:579}],582:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../errors&quot;).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(t,e,r,i){var a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a&lt;0)throw new n(i?r:&quot;highWaterMark&quot;,a);return Math.floor(a)}return t.objectMode?16:16384}}},{&quot;../../../errors&quot;:570}],583:[function(t,e,r){e.exports=t(&quot;events&quot;).EventEmitter},{events:116}],584:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;safe-buffer&quot;).Buffer,i=n.isEncoding||function(t){switch((t=&quot;&quot;+t)&amp;&amp;t.toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:case&quot;raw&quot;:return!0;default:return!1}};function a(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return&quot;utf8&quot;;for(var e;;)switch(t){case&quot;utf8&quot;:case&quot;utf-8&quot;:return&quot;utf8&quot;;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return&quot;utf16le&quot;;case&quot;latin1&quot;:case&quot;binary&quot;:return&quot;latin1&quot;;case&quot;base64&quot;:case&quot;ascii&quot;:case&quot;hex&quot;:return t;default:if(e)return;t=(&quot;&quot;+t).toLowerCase(),e=!0}}(t);if(&quot;string&quot;!=typeof e&amp;&amp;(n.isEncoding===i||!i(t)))throw new Error(&quot;Unknown encoding: &quot;+t);return e||t}(t),this.encoding){case&quot;utf16le&quot;:this.text=l,this.end=c,e=4;break;case&quot;utf8&quot;:this.fillLast=s,e=4;break;case&quot;base64&quot;:this.text=u,this.end=f,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t&lt;=127?0:t&gt;&gt;5==6?2:t&gt;&gt;4==14?3:t&gt;&gt;3==30?4:t&gt;&gt;6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&amp;e[0]))return t.lastNeed=0,&quot;\ufffd&quot;;if(t.lastNeed&gt;1&amp;&amp;e.length&gt;1){if(128!=(192&amp;e[1]))return t.lastNeed=1,&quot;\ufffd&quot;;if(t.lastNeed&gt;2&amp;&amp;e.length&gt;2&amp;&amp;128!=(192&amp;e[2]))return t.lastNeed=2,&quot;\ufffd&quot;}}(this,t);return void 0!==r?r:this.lastNeed&lt;=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString(&quot;utf16le&quot;,e);if(r){var n=r.charCodeAt(r.length-1);if(n&gt;=55296&amp;&amp;n&lt;=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(&quot;utf16le&quot;,e,t.length-1)}function c(t){var e=t&amp;&amp;t.length?this.write(t):&quot;&quot;;if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(&quot;utf16le&quot;,0,r)}return e}function u(t,e){var r=(t.length-e)%3;return 0===r?t.toString(&quot;base64&quot;,e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(&quot;base64&quot;,e,t.length-r))}function f(t){var e=t&amp;&amp;t.length?this.write(t):&quot;&quot;;return this.lastNeed?e+this.lastChar.toString(&quot;base64&quot;,0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&amp;&amp;t.length?this.write(t):&quot;&quot;}r.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return&quot;&quot;;var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return&quot;&quot;;r=this.lastNeed,this.lastNeed=0}else r=0;return r&lt;t.length?e?e+this.text(t,r):this.text(t,r):e||&quot;&quot;},a.prototype.end=function(t){var e=t&amp;&amp;t.length?this.write(t):&quot;&quot;;return this.lastNeed?e+&quot;\ufffd&quot;:e},a.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n&lt;r)return 0;var i=o(e[n]);if(i&gt;=0)return i&gt;0&amp;&amp;(t.lastNeed=i-1),i;if(--n&lt;r||-2===i)return 0;if((i=o(e[n]))&gt;=0)return i&gt;0&amp;&amp;(t.lastNeed=i-2),i;if(--n&lt;r||-2===i)return 0;if((i=o(e[n]))&gt;=0)return i&gt;0&amp;&amp;(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString(&quot;utf8&quot;,e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString(&quot;utf8&quot;,e,n)},a.prototype.fillLast=function(t){if(this.lastNeed&lt;=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{&quot;safe-buffer&quot;:554}],585:[function(t,e,r){(function(r,n){(function(){var r=t(&quot;assert&quot;),i=t(&quot;debug&quot;)(&quot;stream-parser&quot;);e.exports=function(t){var e=t&amp;&amp;&quot;function&quot;==typeof t._transform,r=t&amp;&amp;&quot;function&quot;==typeof t._write;if(!e&amp;&amp;!r)throw new Error(&quot;must pass a Writable or Transform stream in&quot;);i(&quot;extending Parser into stream&quot;),t._bytes=o,t._skipBytes=s,e&amp;&amp;(t._passthrough=l);e?t._transform=u:t._write=c};function a(t){i(&quot;initializing parser stream&quot;),t._parserBytesLeft=0,t._parserBuffers=[],t._parserBuffered=0,t._parserState=-1,t._parserCallback=null,&quot;function&quot;==typeof t.push&amp;&amp;(t._parserOutput=t.push.bind(t)),t._parserInit=!0}function o(t,e){r(!this._parserCallback,'there is already a &quot;callback&quot; set!'),r(isFinite(t)&amp;&amp;t&gt;0,'can only buffer a finite number of bytes &gt; 0, got &quot;'+t+'&quot;'),this._parserInit||a(this),i(&quot;buffering %o bytes&quot;,t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=0}function s(t,e){r(!this._parserCallback,'there is already a &quot;callback&quot; set!'),r(t&gt;0,'can only skip &gt; 0 bytes, got &quot;'+t+'&quot;'),this._parserInit||a(this),i(&quot;skipping %o bytes&quot;,t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=1}function l(t,e){r(!this._parserCallback,'There is already a &quot;callback&quot; set!'),r(t&gt;0,'can only pass through &gt; 0 bytes, got &quot;'+t+'&quot;'),this._parserInit||a(this),i(&quot;passing through %o bytes&quot;,t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=2}function c(t,e,r){this._parserInit||a(this),i(&quot;write(%o bytes)&quot;,t.length),&quot;function&quot;==typeof e&amp;&amp;(r=e),h(this,t,null,r)}function u(t,e,r){this._parserInit||a(this),i(&quot;transform(%o bytes)&quot;,t.length),&quot;function&quot;!=typeof e&amp;&amp;(e=this._parserOutput),h(this,t,e,r)}function f(t,e,r,a){if(t._parserBytesLeft-=e.length,i(&quot;%o bytes left for stream piece&quot;,t._parserBytesLeft),0===t._parserState?(t._parserBuffers.push(e),t._parserBuffered+=e.length):2===t._parserState&amp;&amp;r(e),0!==t._parserBytesLeft)return a;var o=t._parserCallback;if(o&amp;&amp;0===t._parserState&amp;&amp;t._parserBuffers.length&gt;1&amp;&amp;(e=n.concat(t._parserBuffers,t._parserBuffered)),0!==t._parserState&amp;&amp;(e=null),t._parserCallback=null,t._parserBuffered=0,t._parserState=-1,t._parserBuffers.splice(0),o){var s=[];e&amp;&amp;s.push(e),r&amp;&amp;s.push(r);var l=o.length&gt;s.length;l&amp;&amp;s.push(p(a));var c=o.apply(t,s);if(!l||a===c)return a}}var h=p((function t(e,r,n,i){return e._parserBytesLeft&lt;=0?i(new Error(&quot;got data but not currently parsing anything&quot;)):r.length&lt;=e._parserBytesLeft?function(){return f(e,r,n,i)}:function(){var a=r.slice(0,e._parserBytesLeft);return f(e,a,n,(function(o){return o?i(o):r.length&gt;a.length?function(){return t(e,r.slice(a.length),n,i)}:void 0}))}}));function p(t){return function(){for(var e=t.apply(this,arguments);&quot;function&quot;==typeof e;)e=e();return e}}}).call(this)}).call(this,t(&quot;_process&quot;),t(&quot;buffer&quot;).Buffer)},{_process:528,assert:80,buffer:117,debug:586}],586:[function(t,e,r){(function(n){(function(){function i(){var t;try{t=r.storage.debug}catch(t){}return!t&amp;&amp;void 0!==n&amp;&amp;&quot;env&quot;in n&amp;&amp;(t=n.env.DEBUG),t}(r=e.exports=t(&quot;./debug&quot;)).log=function(){return&quot;object&quot;==typeof console&amp;&amp;console.log&amp;&amp;Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(t){var e=this.useColors;if(t[0]=(e?&quot;%c&quot;:&quot;&quot;)+this.namespace+(e?&quot; %c&quot;:&quot; &quot;)+t[0]+(e?&quot;%c &quot;:&quot; &quot;)+&quot;+&quot;+r.humanize(this.diff),!e)return;var n=&quot;color: &quot;+this.color;t.splice(1,0,n,&quot;color: inherit&quot;);var i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){&quot;%%&quot;!==t&amp;&amp;(i++,&quot;%c&quot;===t&amp;&amp;(a=i))})),t.splice(a,0,n)},r.save=function(t){try{null==t?r.storage.removeItem(&quot;debug&quot;):r.storage.debug=t}catch(t){}},r.load=i,r.useColors=function(){if(&quot;undefined&quot;!=typeof window&amp;&amp;window.process&amp;&amp;&quot;renderer&quot;===window.process.type)return!0;return&quot;undefined&quot;!=typeof document&amp;&amp;document.documentElement&amp;&amp;document.documentElement.style&amp;&amp;document.documentElement.style.WebkitAppearance||&quot;undefined&quot;!=typeof window&amp;&amp;window.console&amp;&amp;(window.console.firebug||window.console.exception&amp;&amp;window.console.table)||&quot;undefined&quot;!=typeof navigator&amp;&amp;navigator.userAgent&amp;&amp;navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&amp;&amp;parseInt(RegExp.$1,10)&gt;=31||&quot;undefined&quot;!=typeof navigator&amp;&amp;navigator.userAgent&amp;&amp;navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage=&quot;undefined&quot;!=typeof chrome&amp;&amp;void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),r.colors=[&quot;lightseagreen&quot;,&quot;forestgreen&quot;,&quot;goldenrod&quot;,&quot;dodgerblue&quot;,&quot;darkorchid&quot;,&quot;crimson&quot;],r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return&quot;[UnexpectedJSONParseError]: &quot;+t.message}},r.enable(i())}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./debug&quot;:587,_process:528}],587:[function(t,e,r){var n;function i(t){function e(){if(e.enabled){var t=e,i=+new Date,a=i-(n||i);t.diff=a,t.prev=n,t.curr=i,n=i;for(var o=new Array(arguments.length),s=0;s&lt;o.length;s++)o[s]=arguments[s];o[0]=r.coerce(o[0]),&quot;string&quot;!=typeof o[0]&amp;&amp;o.unshift(&quot;%O&quot;);var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(e,n){if(&quot;%%&quot;===e)return e;l++;var i=r.formatters[n];if(&quot;function&quot;==typeof i){var a=o[l];e=i.call(t,a),o.splice(l,1),l--}return e})),r.formatArgs.call(t,o);var c=e.log||r.log||console.log.bind(console);c.apply(t,o)}}return e.namespace=t,e.enabled=r.enabled(t),e.useColors=r.useColors(),e.color=function(t){var e,n=0;for(e in t)n=(n&lt;&lt;5)-n+t.charCodeAt(e),n|=0;return r.colors[Math.abs(n)%r.colors.length]}(t),&quot;function&quot;==typeof r.init&amp;&amp;r.init(e),e}(r=e.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},r.disable=function(){r.enable(&quot;&quot;)},r.enable=function(t){r.save(t),r.names=[],r.skips=[];for(var e=(&quot;string&quot;==typeof t?t:&quot;&quot;).split(/[\s,]+/),n=e.length,i=0;i&lt;n;i++)e[i]&amp;&amp;(&quot;-&quot;===(t=e[i].replace(/\*/g,&quot;.*?&quot;))[0]?r.skips.push(new RegExp(&quot;^&quot;+t.substr(1)+&quot;$&quot;)):r.names.push(new RegExp(&quot;^&quot;+t+&quot;$&quot;)))},r.enabled=function(t){var e,n;for(e=0,n=r.skips.length;e&lt;n;e++)if(r.skips[e].test(t))return!1;for(e=0,n=r.names.length;e&lt;n;e++)if(r.names[e].test(t))return!0;return!1},r.humanize=t(&quot;ms&quot;),r.names=[],r.skips=[],r.formatters={}},{ms:588}],588:[function(t,e,r){var n=1e3,i=6e4,a=60*i,o=24*a;function s(t,e,r){if(!(t&lt;e))return t&lt;1.5*e?Math.floor(t/e)+&quot; &quot;+r:Math.ceil(t/e)+&quot; &quot;+r+&quot;s&quot;}e.exports=function(t,e){e=e||{};var r,l=typeof t;if(&quot;string&quot;===l&amp;&amp;t.length&gt;0)return function(t){if((t=String(t)).length&gt;100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var r=parseFloat(e[1]);switch((e[2]||&quot;ms&quot;).toLowerCase()){case&quot;years&quot;:case&quot;year&quot;:case&quot;yrs&quot;:case&quot;yr&quot;:case&quot;y&quot;:return 315576e5*r;case&quot;days&quot;:case&quot;day&quot;:case&quot;d&quot;:return r*o;case&quot;hours&quot;:case&quot;hour&quot;:case&quot;hrs&quot;:case&quot;hr&quot;:case&quot;h&quot;:return r*a;case&quot;minutes&quot;:case&quot;minute&quot;:case&quot;mins&quot;:case&quot;min&quot;:case&quot;m&quot;:return r*i;case&quot;seconds&quot;:case&quot;second&quot;:case&quot;secs&quot;:case&quot;sec&quot;:case&quot;s&quot;:return r*n;case&quot;milliseconds&quot;:case&quot;millisecond&quot;:case&quot;msecs&quot;:case&quot;msec&quot;:case&quot;ms&quot;:return r;default:return}}(t);if(&quot;number&quot;===l&amp;&amp;!1===isNaN(t))return e.long?s(r=t,o,&quot;day&quot;)||s(r,a,&quot;hour&quot;)||s(r,i,&quot;minute&quot;)||s(r,n,&quot;second&quot;)||r+&quot; ms&quot;:function(t){if(t&gt;=o)return Math.round(t/o)+&quot;d&quot;;if(t&gt;=a)return Math.round(t/a)+&quot;h&quot;;if(t&gt;=i)return Math.round(t/i)+&quot;m&quot;;if(t&gt;=n)return Math.round(t/n)+&quot;s&quot;;return t+&quot;ms&quot;}(t);throw new Error(&quot;val is not a non-empty string or a valid number. val=&quot;+JSON.stringify(t))}},{}],589:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parenthesis&quot;);e.exports=function(t,e,r){if(null==t)throw Error(&quot;First argument should be a string&quot;);if(null==e)throw Error(&quot;Separator should be a string or a RegExp&quot;);r?(&quot;string&quot;==typeof r||Array.isArray(r))&amp;&amp;(r={ignore:r}):r={},null==r.escape&amp;&amp;(r.escape=!0),null==r.ignore?r.ignore=[&quot;[]&quot;,&quot;()&quot;,&quot;{}&quot;,&quot;&lt;&gt;&quot;,'&quot;&quot;',&quot;''&quot;,&quot;``&quot;,&quot;\u201c\u201d&quot;,&quot;\xab\xbb&quot;]:(&quot;string&quot;==typeof r.ignore&amp;&amp;(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&amp;&amp;(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s&lt;a.length;s++){var l=a[s],c=a[s+1];&quot;\\&quot;===l[l.length-1]&amp;&amp;&quot;\\&quot;!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s&lt;a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:491}],590:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l&lt;e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length&gt;0;){e=c[c.length-1];var p=t[e];if(a[e]&lt;p.length){for(var d=a[e];d&lt;p.length;++d){var g=p[d];if(r[g]&lt;0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&amp;&amp;(n[e]=0|Math.min(n[e],n[g])),o[g]&gt;=0&amp;&amp;s[e].push(o[g])}a[e]=d}else{if(n[e]===r[e]){var m=[],v=[],y=0;for(d=l.length-1;d&gt;=0;--d){var x=l[d];if(i[x]=!1,m.push(x),v.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(m);var b=new Array(y);for(d=0;d&lt;v.length;d++)for(var _=0;_&lt;v[d].length;_++)b[--y]=v[d][_];h.push(b)}c.pop()}}}for(l=0;l&lt;e;++l)r[l]&lt;0&amp;&amp;p(l);for(l=0;l&lt;h.length;l++){var d=h[l];if(0!==d.length){d.sort((function(t,e){return t-e})),c=[d[0]];for(var g=1;g&lt;d.length;g++)d[g]!==d[g-1]&amp;&amp;c.push(d[g]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],591:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(t.dimension&lt;=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=a(t,e),n=r.length,i=new Array(n),o=new Array(n),s=0;s&lt;n;++s)i[s]=[r[s]],o[s]=[s];return{positions:i,cells:o}}(t,e);var r=t.order.join()+&quot;-&quot;+t.dtype,s=o[r];e=+e||0;s||(s=o[r]=function(t,e){var r=t.length,a=[&quot;'use strict';&quot;],o=&quot;surfaceNets&quot;+t.join(&quot;_&quot;)+&quot;d&quot;+e;a.push(&quot;var contour=genContour({&quot;,&quot;order:[&quot;,t.join(),&quot;],&quot;,&quot;scalarArguments: 3,&quot;,&quot;phase:function phaseFunc(p,a,b,c) { return (p &gt; c)|0 },&quot;),&quot;generic&quot;===e&amp;&amp;a.push(&quot;getters:[0],&quot;);for(var s=[],l=[],c=0;c&lt;r;++c)s.push(&quot;d&quot;+c),l.push(&quot;d&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;v&quot;+c),l.push(&quot;v&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;p&quot;+c),l.push(&quot;p&quot;+c);s.push(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),l.push(&quot;a&quot;,&quot;c&quot;),a.push(&quot;vertex:function vertexFunc(&quot;,s.join(),&quot;){&quot;);var u=[];for(c=0;c&lt;1&lt;&lt;r;++c)u.push(&quot;(p&quot;+c+&quot;&lt;&lt;&quot;+c+&quot;)&quot;);a.push(&quot;var m=(&quot;,u.join(&quot;+&quot;),&quot;)|0;if(m===0||m===&quot;,(1&lt;&lt;(1&lt;&lt;r))-1,&quot;){return}&quot;);var f=[],h=[];1&lt;&lt;(1&lt;&lt;r)&lt;=128?(a.push(&quot;switch(m){&quot;),h=a):a.push(&quot;switch(m&gt;&gt;&gt;7){&quot;);for(c=0;c&lt;1&lt;&lt;(1&lt;&lt;r);++c){if(1&lt;&lt;(1&lt;&lt;r)&gt;128&amp;&amp;c%128==0){f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var p=&quot;vExtra&quot;+f.length;a.push(&quot;case &quot;,c&gt;&gt;&gt;7,&quot;:&quot;,p,&quot;(m&amp;0x7f,&quot;,l.join(),&quot;);break;&quot;),h=[&quot;function &quot;,p,&quot;(m,&quot;,l.join(),&quot;){switch(m){&quot;],f.push(h)}h.push(&quot;case &quot;,127&amp;c,&quot;:&quot;);for(var d=new Array(r),g=new Array(r),m=new Array(r),v=new Array(r),y=0,x=0;x&lt;r;++x)d[x]=[],g[x]=[],m[x]=0,v[x]=0;for(x=0;x&lt;1&lt;&lt;r;++x)for(var b=0;b&lt;r;++b){var _=x^1&lt;&lt;b;if(!(_&gt;x)&amp;&amp;!(c&amp;1&lt;&lt;_)!=!(c&amp;1&lt;&lt;x)){var w=1;c&amp;1&lt;&lt;_?g[b].push(&quot;v&quot;+_+&quot;-v&quot;+x):(g[b].push(&quot;v&quot;+x+&quot;-v&quot;+_),w=-w),w&lt;0?(d[b].push(&quot;-v&quot;+x+&quot;-v&quot;+_),m[b]+=2):(d[b].push(&quot;v&quot;+x+&quot;+v&quot;+_),m[b]-=2),y+=1;for(var T=0;T&lt;r;++T)T!==b&amp;&amp;(_&amp;1&lt;&lt;T?v[T]+=1:v[T]-=1)}}var k=[];for(b=0;b&lt;r;++b)if(0===d[b].length)k.push(&quot;d&quot;+b+&quot;-0.5&quot;);else{var A=&quot;&quot;;m[b]&lt;0?A=m[b]+&quot;*c&quot;:m[b]&gt;0&amp;&amp;(A=&quot;+&quot;+m[b]+&quot;*c&quot;);var M=d[b].length/y*.5,S=.5+v[b]/y*.5;k.push(&quot;d&quot;+b+&quot;-&quot;+S+&quot;-&quot;+M+&quot;*(&quot;+d[b].join(&quot;+&quot;)+A+&quot;)/(&quot;+g[b].join(&quot;+&quot;)+&quot;)&quot;)}h.push(&quot;a.push([&quot;,k.join(),&quot;]);&quot;,&quot;break;&quot;)}a.push(&quot;}},&quot;),f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var E=[];for(c=0;c&lt;1&lt;&lt;r-1;++c)E.push(&quot;v&quot;+c);E.push(&quot;c0&quot;,&quot;c1&quot;,&quot;p0&quot;,&quot;p1&quot;,&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),a.push(&quot;cell:function cellFunc(&quot;,E.join(),&quot;){&quot;);var L=i(r-1);a.push(&quot;if(p0){b.push(&quot;,L.map((function(t){return&quot;[&quot;+t.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}else{b.push(&quot;,L.map((function(t){var e=t.slice();return e.reverse(),&quot;[&quot;+e.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}}});function &quot;,o,&quot;(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return &quot;,o,&quot;;&quot;);for(c=0;c&lt;f.length;++c)a.push(f[c].join(&quot;&quot;));return new Function(&quot;genContour&quot;,a.join(&quot;&quot;))(n)}(t.order,t.dtype));return s(t,e)};var n=t(&quot;ndarray-extract-contour&quot;),i=t(&quot;triangulate-hypercube&quot;),a=t(&quot;zero-crossings&quot;);var o={}},{&quot;ndarray-extract-contour&quot;:475,&quot;triangulate-hypercube&quot;:602,&quot;zero-crossings&quot;:647}],592:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&amp;&amp;s.return&amp;&amp;s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance&quot;)},i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*r+e*n;return i&gt;1&amp;&amp;(i=1),i&lt;-1&amp;&amp;(i=-1),(t*n-e*r&lt;0?-1:1)*Math.acos(i)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,g=void 0===d?0:d,m=t.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&amp;&amp;0===w)return[];u=Math.abs(u),f=Math.abs(f);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);T&gt;1&amp;&amp;(u*=Math.sqrt(T),f*=Math.sqrt(T));var k=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),g=Math.pow(o,2),m=Math.pow(h,2),v=Math.pow(p,2),y=d*g-d*v-g*m;y&lt;0&amp;&amp;(y=0),y/=d*v+g*m;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,T=(h-x)/a,k=(p-b)/o,A=(-h-x)/a,M=(-p-b)/o,S=s(1,0,T,k),E=s(T,k,A,M);return 0===c&amp;&amp;E&gt;0&amp;&amp;(E-=i),1===c&amp;&amp;E&lt;0&amp;&amp;(E+=i),[_,w,S,E]}(e,r,l,c,u,f,g,v,x,b,_,w),A=n(k,4),M=A[0],S=A[1],E=A[2],L=A[3],C=Math.abs(L)/(i/4);Math.abs(1-C)&lt;1e-7&amp;&amp;(C=1);var P=Math.max(Math.ceil(C),1);L/=P;for(var I=0;I&lt;P;I++)y.push(o(E,L)),E+=L;return y.map((function(t){var e=a(t[0],u,f,b,x,M,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,M,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,M,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}}))},e.exports=r.default},{}],593:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;abs-svg-path&quot;),a=t(&quot;normalize-svg-path&quot;),o=t(&quot;is-svg-path&quot;),s=t(&quot;assert&quot;);e.exports=function(t){Array.isArray(t)&amp;&amp;1===t.length&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;(t=t[0]);&quot;string&quot;==typeof t&amp;&amp;(s(o(t),&quot;String is not an SVG path.&quot;),t=n(t));if(s(Array.isArray(t),&quot;Argument should be a string or an array of path segments.&quot;),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r&lt;l;r++)for(var c=t[r].slice(1),u=0;u&lt;c.length;u+=2)c[u+0]&lt;e[0]&amp;&amp;(e[0]=c[u+0]),c[u+1]&lt;e[1]&amp;&amp;(e[1]=c[u+1]),c[u+0]&gt;e[2]&amp;&amp;(e[2]=c[u+0]),c[u+1]&gt;e[3]&amp;&amp;(e[3]=c[u+1]);return e}},{&quot;abs-svg-path&quot;:71,assert:80,&quot;is-svg-path&quot;:459,&quot;normalize-svg-path&quot;:594,&quot;parse-svg-path&quot;:493}],594:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,g=t.length;d&lt;g;d++){var m=t[d],v=m[0];switch(v){case&quot;M&quot;:l=m[1],c=m[2];break;case&quot;A&quot;:var y=n({px:h,py:p,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!y.length)continue;for(var x,b=0;b&lt;y.length;b++)x=y[b],m=[&quot;C&quot;,x.x1,x.y1,x.x2,x.y2,x.x,x.y],b&lt;y.length-1&amp;&amp;r.push(m);break;case&quot;S&quot;:var _=h,w=p;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(_+=_-o,w+=w-s),m=[&quot;C&quot;,_,w,m[1],m[2],m[3],m[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(u=2*h-u,f=2*p-f):(u=h,f=p),m=a(h,p,u,f,m[1],m[2]);break;case&quot;Q&quot;:u=m[1],f=m[2],m=a(h,p,m[1],m[2],m[3],m[4]);break;case&quot;L&quot;:m=i(h,p,m[1],m[2]);break;case&quot;H&quot;:m=i(h,p,m[1],p);break;case&quot;V&quot;:m=i(h,p,h,m[1]);break;case&quot;Z&quot;:m=i(h,p,l,c)}e=v,h=m[m.length-2],p=m[m.length-1],m.length&gt;4?(o=m[m.length-4],s=m[m.length-3]):(o=h,s=p),r.push(m)}return r};var n=t(&quot;svg-arc-to-cubic-bezier&quot;);function i(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{&quot;svg-arc-to-cubic-bezier&quot;:592}],595:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;svg-path-bounds&quot;),a=t(&quot;parse-svg-path&quot;),o=t(&quot;draw-svg-path&quot;),s=t(&quot;is-svg-path&quot;),l=t(&quot;bitmap-sdf&quot;),c=document.createElement(&quot;canvas&quot;),u=c.getContext(&quot;2d&quot;);e.exports=function(t,e){if(!s(t))throw Error(&quot;Argument should be valid svg path string&quot;);e||(e={});var r,f;e.shape?(r=e.shape[0],f=e.shape[1]):(r=c.width=e.w||e.width||200,f=c.height=e.h||e.height||200);var h=Math.min(r,f),p=e.stroke||0,d=e.viewbox||e.viewBox||i(t),g=[r/(d[2]-d[0]),f/(d[3]-d[1])],m=Math.min(g[0]||0,g[1]||0)/2;u.fillStyle=&quot;black&quot;,u.fillRect(0,0,r,f),u.fillStyle=&quot;white&quot;,p&amp;&amp;(&quot;number&quot;!=typeof p&amp;&amp;(p=1),u.strokeStyle=p&gt;0?&quot;white&quot;:&quot;black&quot;,u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(m,m),function(){if(null!=n)return n;var t=document.createElement(&quot;canvas&quot;).getContext(&quot;2d&quot;);if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D(&quot;M0,0h1v1h-1v-1Z&quot;);t.fillStyle=&quot;black&quot;,t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&amp;&amp;r.data&amp;&amp;255===r.data[3]}()){var v=new Path2D(t);u.fill(v),p&amp;&amp;u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),p&amp;&amp;u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*h})}},{&quot;bitmap-sdf&quot;:105,&quot;draw-svg-path&quot;:183,&quot;is-svg-path&quot;:459,&quot;parse-svg-path&quot;:493,&quot;svg-path-bounds&quot;:593}],596:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function t(e,r,i){i=i||{};var o=a[e];o||(o=a[e]={&quot; &quot;:{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length&lt;=1||!/\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o&lt;e.length;++o)for(var s=e[o],l=0;l&lt;3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||&quot;left&quot;,textBaseline:&quot;alphabetic&quot;,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var l=r.split(/(\d|\s)/),c=new Array(l.length),u=0,f=0,h=0;h&lt;l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h&gt;0&amp;&amp;(f+=.02);var p=new Float32Array(u),d=0,g=-.5*f;for(h=0;h&lt;c.length;++h){for(var m=c[h].data,v=0;v&lt;m.length;v+=2)p[d++]=m[v]+g,p[d++]=m[v+1];g+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(&quot;vectorize-text&quot;),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:528,&quot;vectorize-text&quot;:623}],597:[function(t,e,r){(function(e,n){(function(){var i=t(&quot;process/browser.js&quot;).nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},l=0;function c(t,e){this._id=t,this._clearFn=e}r.setTimeout=function(){return new c(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},r.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},r._unrefActive=r.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e&gt;=0&amp;&amp;(t._idleTimeoutId=setTimeout((function(){t._onTimeout&amp;&amp;t._onTimeout()}),e))},r.setImmediate=&quot;function&quot;==typeof e?e:function(t){var e=l++,n=!(arguments.length&lt;2)&amp;&amp;o.call(arguments,1);return s[e]=!0,i((function(){s[e]&amp;&amp;(n?t.apply(null,n):t.call(null),r.clearImmediate(e))})),e},r.clearImmediate=&quot;function&quot;==typeof n?n:function(t){delete s[t]}}).call(this)}).call(this,t(&quot;timers&quot;).setImmediate,t(&quot;timers&quot;).clearImmediate)},{&quot;process/browser.js&quot;:528,timers:597}],598:[function(t,e,r){!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||&quot;&quot;)instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;&quot;string&quot;==typeof e&amp;&amp;(e=function(t){t=t.replace(r,&quot;&quot;).replace(n,&quot;&quot;).toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(&quot;transparent&quot;==t)return{r:0,g:0,b:0,a:0,format:&quot;name&quot;};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:I(e[1]),g:I(e[2]),b:I(e[3]),a:R(e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex6.exec(t))return{r:I(e[1]),g:I(e[2]),b:I(e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};if(e=j.hex4.exec(t))return{r:I(e[1]+&quot;&quot;+e[1]),g:I(e[2]+&quot;&quot;+e[2]),b:I(e[3]+&quot;&quot;+e[3]),a:R(e[4]+&quot;&quot;+e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex3.exec(t))return{r:I(e[1]+&quot;&quot;+e[1]),g:I(e[2]+&quot;&quot;+e[2]),b:I(e[3]+&quot;&quot;+e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};return!1}(e));&quot;object&quot;==typeof e&amp;&amp;(U(e.r)&amp;&amp;U(e.g)&amp;&amp;U(e.b)?(p=e.r,d=e.g,g=e.b,i={r:255*C(p,255),g:255*C(d,255),b:255*C(g,255)},f=!0,h=&quot;%&quot;===String(e.r).substr(-1)?&quot;prgb&quot;:&quot;rgb&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.v)?(l=z(e.s),c=z(e.v),i=function(e,r,n){e=6*C(e,360),r=C(r,100),n=C(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=&quot;hsv&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.l)&amp;&amp;(l=z(e.s),u=z(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r&lt;0&amp;&amp;(r+=1),r&gt;1&amp;&amp;(r-=1),r&lt;1/6?t+6*(e-t)*r:r&lt;.5?e:r&lt;2/3?t+(e-t)*(2/3-r)*6:t}if(t=C(t,360),e=C(e,100),r=C(r,100),0===e)n=i=a=r;else{var s=r&lt;.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=&quot;hsl&quot;),e.hasOwnProperty(&quot;a&quot;)&amp;&amp;(a=e.a));var p,d,g;return a=L(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r&lt;1&amp;&amp;(this._r=a(this._r)),this._g&lt;1&amp;&amp;(this._g=a(this._g)),this._b&lt;1&amp;&amp;(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c&gt;.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[O(a(t).toString(16)),O(a(e).toString(16)),O(a(r).toString(16))];return n&amp;&amp;i[0].charAt(0)==i[0].charAt(1)&amp;&amp;i[1].charAt(0)==i[1].charAt(1)&amp;&amp;i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(&quot;&quot;)}function p(t,e,r,n){return[O(D(n)),O(a(t).toString(16)),O(a(e).toString(16)),O(a(r).toString(16))].join(&quot;&quot;)}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=P(r.s),c(r)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=P(r.s),c(r)}function m(t){return c(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=P(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=P(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n&lt;0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function T(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function A(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e&gt;&gt;1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function M(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()&lt;128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e&lt;=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r&lt;=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n&lt;=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=L(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?&quot;hsv(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsva(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?&quot;hsl(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsla(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return&quot;#&quot;+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[O(a(t).toString(16)),O(a(e).toString(16)),O(a(r).toString(16)),O(D(n))];if(i&amp;&amp;o[0].charAt(0)==o[0].charAt(1)&amp;&amp;o[1].charAt(0)==o[1].charAt(1)&amp;&amp;o[2].charAt(0)==o[2].charAt(1)&amp;&amp;o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(&quot;&quot;)}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return&quot;#&quot;+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;)&quot;:&quot;rgba(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;, &quot;+this._roundA+&quot;)&quot;},toPercentageRgb:function(){return{r:a(100*C(this._r,255))+&quot;%&quot;,g:a(100*C(this._g,255))+&quot;%&quot;,b:a(100*C(this._b,255))+&quot;%&quot;,a:this._a}},toPercentageRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(100*C(this._r,255))+&quot;%, &quot;+a(100*C(this._g,255))+&quot;%, &quot;+a(100*C(this._b,255))+&quot;%)&quot;:&quot;rgba(&quot;+a(100*C(this._r,255))+&quot;%, &quot;+a(100*C(this._g,255))+&quot;%, &quot;+a(100*C(this._b,255))+&quot;%, &quot;+this._roundA+&quot;)&quot;},toName:function(){return 0===this._a?&quot;transparent&quot;:!(this._a&lt;1)&amp;&amp;(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=&quot;#&quot;+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?&quot;GradientType = 1, &quot;:&quot;&quot;;if(t){var i=c(t);r=&quot;#&quot;+p(i._r,i._g,i._b,i._a)}return&quot;progid:DXImageTransform.Microsoft.gradient(&quot;+n+&quot;startColorstr=&quot;+e+&quot;,endColorstr=&quot;+r+&quot;)&quot;},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a&lt;1&amp;&amp;this._a&gt;=0;return e||!n||&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t&amp;&amp;&quot;hex3&quot;!==t&amp;&amp;&quot;hex4&quot;!==t&amp;&amp;&quot;hex8&quot;!==t&amp;&amp;&quot;name&quot;!==t?(&quot;rgb&quot;===t&amp;&amp;(r=this.toRgbString()),&quot;prgb&quot;===t&amp;&amp;(r=this.toPercentageRgbString()),&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t||(r=this.toHexString()),&quot;hex3&quot;===t&amp;&amp;(r=this.toHexString(!0)),&quot;hex4&quot;===t&amp;&amp;(r=this.toHex8String(!0)),&quot;hex8&quot;===t&amp;&amp;(r=this.toHex8String()),&quot;name&quot;===t&amp;&amp;(r=this.toName()),&quot;hsl&quot;===t&amp;&amp;(r=this.toHslString()),&quot;hsv&quot;===t&amp;&amp;(r=this.toHsvString()),r||this.toHexString()):&quot;name&quot;===t&amp;&amp;0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(t,e){if(&quot;object&quot;==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&amp;&amp;(r[n]=&quot;a&quot;===n?t[n]:z(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&amp;&amp;c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:&quot;AA&quot;,size:&quot;small&quot;}).level||&quot;AA&quot;).toUpperCase(),r=(t.size||&quot;small&quot;).toLowerCase(),&quot;AA&quot;!==e&amp;&amp;&quot;AAA&quot;!==e&amp;&amp;(e=&quot;AA&quot;);&quot;small&quot;!==r&amp;&amp;&quot;large&quot;!==r&amp;&amp;(r=&quot;small&quot;);return{level:e,size:r}}(r)).level+n.size){case&quot;AAsmall&quot;:case&quot;AAAlarge&quot;:i=a&gt;=4.5;break;case&quot;AAlarge&quot;:i=a&gt;=3;break;case&quot;AAAsmall&quot;:i=a&gt;=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u&lt;e.length;u++)(n=c.readability(t,e[u]))&gt;l&amp;&amp;(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[&quot;#fff&quot;,&quot;#000&quot;],r))};var S=c.names={aliceblue:&quot;f0f8ff&quot;,antiquewhite:&quot;faebd7&quot;,aqua:&quot;0ff&quot;,aquamarine:&quot;7fffd4&quot;,azure:&quot;f0ffff&quot;,beige:&quot;f5f5dc&quot;,bisque:&quot;ffe4c4&quot;,black:&quot;000&quot;,blanchedalmond:&quot;ffebcd&quot;,blue:&quot;00f&quot;,blueviolet:&quot;8a2be2&quot;,brown:&quot;a52a2a&quot;,burlywood:&quot;deb887&quot;,burntsienna:&quot;ea7e5d&quot;,cadetblue:&quot;5f9ea0&quot;,chartreuse:&quot;7fff00&quot;,chocolate:&quot;d2691e&quot;,coral:&quot;ff7f50&quot;,cornflowerblue:&quot;6495ed&quot;,cornsilk:&quot;fff8dc&quot;,crimson:&quot;dc143c&quot;,cyan:&quot;0ff&quot;,darkblue:&quot;00008b&quot;,darkcyan:&quot;008b8b&quot;,darkgoldenrod:&quot;b8860b&quot;,darkgray:&quot;a9a9a9&quot;,darkgreen:&quot;006400&quot;,darkgrey:&quot;a9a9a9&quot;,darkkhaki:&quot;bdb76b&quot;,darkmagenta:&quot;8b008b&quot;,darkolivegreen:&quot;556b2f&quot;,darkorange:&quot;ff8c00&quot;,darkorchid:&quot;9932cc&quot;,darkred:&quot;8b0000&quot;,darksalmon:&quot;e9967a&quot;,darkseagreen:&quot;8fbc8f&quot;,darkslateblue:&quot;483d8b&quot;,darkslategray:&quot;2f4f4f&quot;,darkslategrey:&quot;2f4f4f&quot;,darkturquoise:&quot;00ced1&quot;,darkviolet:&quot;9400d3&quot;,deeppink:&quot;ff1493&quot;,deepskyblue:&quot;00bfff&quot;,dimgray:&quot;696969&quot;,dimgrey:&quot;696969&quot;,dodgerblue:&quot;1e90ff&quot;,firebrick:&quot;b22222&quot;,floralwhite:&quot;fffaf0&quot;,forestgreen:&quot;228b22&quot;,fuchsia:&quot;f0f&quot;,gainsboro:&quot;dcdcdc&quot;,ghostwhite:&quot;f8f8ff&quot;,gold:&quot;ffd700&quot;,goldenrod:&quot;daa520&quot;,gray:&quot;808080&quot;,green:&quot;008000&quot;,greenyellow:&quot;adff2f&quot;,grey:&quot;808080&quot;,honeydew:&quot;f0fff0&quot;,hotpink:&quot;ff69b4&quot;,indianred:&quot;cd5c5c&quot;,indigo:&quot;4b0082&quot;,ivory:&quot;fffff0&quot;,khaki:&quot;f0e68c&quot;,lavender:&quot;e6e6fa&quot;,lavenderblush:&quot;fff0f5&quot;,lawngreen:&quot;7cfc00&quot;,lemonchiffon:&quot;fffacd&quot;,lightblue:&quot;add8e6&quot;,lightcoral:&quot;f08080&quot;,lightcyan:&quot;e0ffff&quot;,lightgoldenrodyellow:&quot;fafad2&quot;,lightgray:&quot;d3d3d3&quot;,lightgreen:&quot;90ee90&quot;,lightgrey:&quot;d3d3d3&quot;,lightpink:&quot;ffb6c1&quot;,lightsalmon:&quot;ffa07a&quot;,lightseagreen:&quot;20b2aa&quot;,lightskyblue:&quot;87cefa&quot;,lightslategray:&quot;789&quot;,lightslategrey:&quot;789&quot;,lightsteelblue:&quot;b0c4de&quot;,lightyellow:&quot;ffffe0&quot;,lime:&quot;0f0&quot;,limegreen:&quot;32cd32&quot;,linen:&quot;faf0e6&quot;,magenta:&quot;f0f&quot;,maroon:&quot;800000&quot;,mediumaquamarine:&quot;66cdaa&quot;,mediumblue:&quot;0000cd&quot;,mediumorchid:&quot;ba55d3&quot;,mediumpurple:&quot;9370db&quot;,mediumseagreen:&quot;3cb371&quot;,mediumslateblue:&quot;7b68ee&quot;,mediumspringgreen:&quot;00fa9a&quot;,mediumturquoise:&quot;48d1cc&quot;,mediumvioletred:&quot;c71585&quot;,midnightblue:&quot;191970&quot;,mintcream:&quot;f5fffa&quot;,mistyrose:&quot;ffe4e1&quot;,moccasin:&quot;ffe4b5&quot;,navajowhite:&quot;ffdead&quot;,navy:&quot;000080&quot;,oldlace:&quot;fdf5e6&quot;,olive:&quot;808000&quot;,olivedrab:&quot;6b8e23&quot;,orange:&quot;ffa500&quot;,orangered:&quot;ff4500&quot;,orchid:&quot;da70d6&quot;,palegoldenrod:&quot;eee8aa&quot;,palegreen:&quot;98fb98&quot;,paleturquoise:&quot;afeeee&quot;,palevioletred:&quot;db7093&quot;,papayawhip:&quot;ffefd5&quot;,peachpuff:&quot;ffdab9&quot;,peru:&quot;cd853f&quot;,pink:&quot;ffc0cb&quot;,plum:&quot;dda0dd&quot;,powderblue:&quot;b0e0e6&quot;,purple:&quot;800080&quot;,rebeccapurple:&quot;663399&quot;,red:&quot;f00&quot;,rosybrown:&quot;bc8f8f&quot;,royalblue:&quot;4169e1&quot;,saddlebrown:&quot;8b4513&quot;,salmon:&quot;fa8072&quot;,sandybrown:&quot;f4a460&quot;,seagreen:&quot;2e8b57&quot;,seashell:&quot;fff5ee&quot;,sienna:&quot;a0522d&quot;,silver:&quot;c0c0c0&quot;,skyblue:&quot;87ceeb&quot;,slateblue:&quot;6a5acd&quot;,slategray:&quot;708090&quot;,slategrey:&quot;708090&quot;,snow:&quot;fffafa&quot;,springgreen:&quot;00ff7f&quot;,steelblue:&quot;4682b4&quot;,tan:&quot;d2b48c&quot;,teal:&quot;008080&quot;,thistle:&quot;d8bfd8&quot;,tomato:&quot;ff6347&quot;,turquoise:&quot;40e0d0&quot;,violet:&quot;ee82ee&quot;,wheat:&quot;f5deb3&quot;,white:&quot;fff&quot;,whitesmoke:&quot;f5f5f5&quot;,yellow:&quot;ff0&quot;,yellowgreen:&quot;9acd32&quot;},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&amp;&amp;(e[t[r]]=r);return e}(S);function L(t){return t=parseFloat(t),(isNaN(t)||t&lt;0||t&gt;1)&amp;&amp;(t=1),t}function C(e,r){(function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;.&quot;)&amp;&amp;1===parseFloat(t)})(e)&amp;&amp;(e=&quot;100%&quot;);var n=function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;%&quot;)}(e);return e=o(r,s(0,parseFloat(e))),n&amp;&amp;(e=parseInt(e*r,10)/100),t.abs(e-r)&lt;1e-6?1:e%r/parseFloat(r)}function P(t){return o(1,s(0,t))}function I(t){return parseInt(t,16)}function O(t){return 1==t.length?&quot;0&quot;+t:&quot;&quot;+t}function z(t){return t&lt;=1&amp;&amp;(t=100*t+&quot;%&quot;),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return I(t)/255}var F,B,N,j=(B=&quot;[\\s|\\(]+(&quot;+(F=&quot;(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)&quot;)+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,N=&quot;[\\s|\\(]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,{CSS_UNIT:new RegExp(F),rgb:new RegExp(&quot;rgb&quot;+B),rgba:new RegExp(&quot;rgba&quot;+N),hsl:new RegExp(&quot;hsl&quot;+B),hsla:new RegExp(&quot;hsla&quot;+N),hsv:new RegExp(&quot;hsv&quot;+B),hsva:new RegExp(&quot;hsva&quot;+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}void 0!==e&amp;&amp;e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],599:[function(t,e,r){&quot;use strict&quot;;e.exports=i,e.exports.float32=e.exports.float=i,e.exports.fract32=e.exports.fract=function(t,e){if(t.length){if(t instanceof Float32Array)return new Float32Array(t.length);e instanceof Float32Array||(e=i(t));for(var r=0,n=e.length;r&lt;n;r++)e[r]=t[r]-e[r];return e}return i(t-i(t))};var n=new Float32Array(1);function i(t){return t.length?t instanceof Float32Array?t:new Float32Array(t):(n[0]=t,n[0])}},{}],600:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-unit&quot;);e.exports=a;function i(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function a(t,e){switch(e=e||document.body,t=(t||&quot;px&quot;).trim().toLowerCase(),e!==window&amp;&amp;e!==document||(e=document.body),t){case&quot;%&quot;:return e.clientHeight/100;case&quot;ch&quot;:case&quot;ex&quot;:return function(t,e){var r=document.createElement(&quot;div&quot;);r.style[&quot;font-size&quot;]=&quot;128&quot;+t,e.appendChild(r);var n=i(r,&quot;font-size&quot;)/128;return e.removeChild(r),n}(t,e);case&quot;em&quot;:return i(e,&quot;font-size&quot;);case&quot;rem&quot;:return i(document.body,&quot;font-size&quot;);case&quot;vw&quot;:return window.innerWidth/100;case&quot;vh&quot;:return window.innerHeight/100;case&quot;vmin&quot;:return Math.min(window.innerWidth,window.innerHeight)/100;case&quot;vmax&quot;:return Math.max(window.innerWidth,window.innerHeight)/100;case&quot;in&quot;:return 96;case&quot;cm&quot;:return 96/2.54;case&quot;mm&quot;:return 96/25.4;case&quot;pt&quot;:return 96/72;case&quot;pc&quot;:return 16}return 1}},{&quot;parse-unit&quot;:494}],601:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).topojson=t.topojson||{})}(this,(function(t){&quot;use strict&quot;;function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c);for(u[0]=(r+=t[0])*i+o,u[1]=(n+=t[1])*a+s;l&lt;c;)u[l]=t[l],++l;return u}}function n(t){var e,n=r(t.transform),i=1/0,a=i,o=-i,s=-i;function l(t){(t=n(t))[0]&lt;i&amp;&amp;(i=t[0]),t[0]&gt;o&amp;&amp;(o=t[0]),t[1]&lt;a&amp;&amp;(a=t[1]),t[1]&gt;s&amp;&amp;(s=t[1])}function c(t){switch(t.type){case&quot;GeometryCollection&quot;:t.geometries.forEach(c);break;case&quot;Point&quot;:l(t.coordinates);break;case&quot;MultiPoint&quot;:t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++r&lt;l;)(e=n(t[r],r))[0]&lt;i&amp;&amp;(i=e[0]),e[0]&gt;o&amp;&amp;(o=e[0]),e[1]&lt;a&amp;&amp;(a=e[1]),e[1]&gt;s&amp;&amp;(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&amp;&amp;null==n?{type:&quot;Feature&quot;,properties:i,geometry:o}:null==n?{type:&quot;Feature&quot;,id:r,properties:i,geometry:o}:{type:&quot;Feature&quot;,id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&amp;&amp;e.pop();for(var r=i[t&lt;0?~t:t],a=0,o=r.length;a&lt;o;++a)e.push(n(r[a],a));t&lt;0&amp;&amp;function(t,e){for(var r,n=t.length,i=n-e;i&lt;--n;)r=t[i],t[i++]=t[n],t[n]=r}(e,o)}function o(t){return n(t)}function s(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)a(t[r],e);return e.length&lt;2&amp;&amp;e.push(e[0]),e}function l(t){for(var e=s(t);e.length&lt;4;)e.push(e[0]);return e}function c(t){return t.map(l)}return function t(e){var r,n=e.type;switch(n){case&quot;GeometryCollection&quot;:return{type:n,geometries:e.geometries.map(t)};case&quot;Point&quot;:r=o(e.coordinates);break;case&quot;MultiPoint&quot;:r=e.coordinates.map(o);break;case&quot;LineString&quot;:r=s(e.arcs);break;case&quot;MultiLineString&quot;:r=e.arcs.map(s);break;case&quot;Polygon&quot;:r=c(e.arcs);break;case&quot;MultiPolygon&quot;:r=e.arcs.map(c);break;default:return null}return{type:n,coordinates:r}}(e)}function o(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){r[t&lt;0?~t:t]=1})),a.push(i)}}return e.forEach((function(r,n){var i,a=t.arcs[r&lt;0?~r:r];a.length&lt;3&amp;&amp;!a[1][0]&amp;&amp;!a[1][1]&amp;&amp;(i=e[++o],e[o]=r,e[n]=i)})),e.forEach((function(e){var r,a,o=function(e){var r,n=t.arcs[e&lt;0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach((function(t){r[0]+=t[0],r[1]+=t[1]}))):r=n[n.length-1];return e&lt;0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r})),s(i,n),s(n,i),e.forEach((function(t){r[t&lt;0?~t:t]||a.push([t])})),a}function s(t,e,r){var n,i,a;if(arguments.length&gt;1)n=l(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i&lt;a;++i)n[i]=i;return{type:&quot;MultiLineString&quot;,arcs:o(t,n)}}function l(t,e,r){var n,i=[],a=[];function o(t){var e=t&lt;0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;LineString&quot;:s(e.arcs);break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:l(e.arcs);break;case&quot;MultiPolygon&quot;:!function(t){t.forEach(l)}(e.arcs)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&amp;&amp;i.push(t[0].i)}),i}function c(t,e){var r={},n=[],i=[];function s(t){t.forEach((function(e){e.forEach((function(e){(r[e=e&lt;0?~e:e]||(r[e]=[])).push(t)}))})),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r&lt;n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(a(t,{type:&quot;Polygon&quot;,arcs:[e]}).coordinates[0])}return e.forEach((function t(e){switch(e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;Polygon&quot;:s(e.arcs);break;case&quot;MultiPolygon&quot;:e.arcs.forEach(s)}})),n.forEach((function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].forEach((function(t){t._||(t._=1,n.push(t))}))}))}))}})),n.forEach((function(t){delete t._})),{type:&quot;MultiPolygon&quot;,arcs:i.map((function(e){var n,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].length&lt;2&amp;&amp;i.push(t)}))}))})),(n=(i=o(t,i)).length)&gt;1)for(var a,s,c=1,u=l(i[0]);c&lt;n;++c)(a=l(i[c]))&gt;u&amp;&amp;(s=i[0],i[0]=i[c],i[c]=s,u=a);return i})).filter((function(t){return t.length&gt;0}))}}function u(t,e){for(var r=0,n=t.length;r&lt;n;){var i=r+n&gt;&gt;&gt;1;t[i]&lt;e?r=i+1:n=i}return r}function f(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c),f=Math.round((t[0]-o)/i),h=Math.round((t[1]-s)/a);for(u[0]=f-r,r=f,u[1]=h-n,n=h;l&lt;c;)u[l]=t[l],++l;return u}}t.bbox=n,t.feature=function(t,e){return&quot;string&quot;==typeof e&amp;&amp;(e=t.objects[e]),&quot;GeometryCollection&quot;===e.type?{type:&quot;FeatureCollection&quot;,features:e.geometries.map((function(e){return i(t,e)}))}:i(t,e)},t.merge=function(t){return a(t,c.apply(this,arguments))},t.mergeArcs=c,t.mesh=function(t){return a(t,s.apply(this,arguments))},t.meshArcs=s,t.neighbors=function(t){var e={},r=t.map((function(){return[]}));function n(t,r){t.forEach((function(t){t&lt;0&amp;&amp;(t=~t);var n=e[t];n?n.push(r):e[t]=[r]}))}function i(t,e){t.forEach((function(t){n(t,e)}))}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var o in t.forEach((function t(e,r){&quot;GeometryCollection&quot;===e.type?e.geometries.forEach((function(e){t(e,r)})):e.type in a&amp;&amp;a[e.type](e.arcs,r)})),e)for(var s=e[o],l=s.length,c=0;c&lt;l;++c)for(var f=c+1;f&lt;l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&amp;&amp;h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&amp;&amp;h.splice(o,0,p)}return r},t.quantize=function(t,e){if(t.transform)throw new Error(&quot;already quantized&quot;);if(e&amp;&amp;e.scale)l=t.bbox;else{if(!((r=Math.floor(e))&gt;=2))throw new Error(&quot;n must be \u22652&quot;);var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=f(e),h=t.objects,p={};function d(t){return u(t)}function g(t){var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(g)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:d(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:&quot;MultiPoint&quot;,coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}for(c in h)p[c]=g(h[c]);return{type:&quot;Topology&quot;,bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r&lt;i;)((e=u(t[r],r))[0]||e[1])&amp;&amp;(a[n++]=e);return 1===n&amp;&amp;(a[n++]=[0,0]),a.length=n,a}))}},t.transform=r,t.untransform=f,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],602:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(t&lt;0)return[];if(0===t)return[[0]];for(var e=0|Math.round(a(t+1)),r=[],o=0;o&lt;e;++o){for(var s=n.unrank(t,o),l=[0],c=0,u=0;u&lt;s.length;++u)c+=1&lt;&lt;s[u],l.push(c);i(s)&lt;1&amp;&amp;(l[0]=c,l[t]=0),r.push(l)}return r};var n=t(&quot;permutation-rank&quot;),i=t(&quot;permutation-parity&quot;),a=t(&quot;gamma&quot;)},{gamma:256,&quot;permutation-parity&quot;:496,&quot;permutation-rank&quot;:497}],603:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),&quot;eye&quot;in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])&lt;1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var g=l(r,d)/i,m=l(n,d)/i;u=Math.acos(g),a=Math.acos(m)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/invert&quot;),a=t(&quot;gl-mat4/rotate&quot;),o=t(&quot;gl-vec3/cross&quot;),s=t(&quot;gl-vec3/normalize&quot;),l=t(&quot;gl-vec3/dot&quot;);function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e&gt;Math.max(r,n)?i[2]=1:r&gt;Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l&lt;3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l&lt;3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c&lt;16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a&lt;3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a&lt;3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a&lt;3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],g=this.computedAngle[1],m=Math.cos(d),v=Math.sin(d),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=m*y,w=v*y,T=x,k=-m*x,A=-v*x,M=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a&lt;3;++a){var L=_*r[a]+w*h[a]+T*e[a];E[4*a+1]=k*r[a]+A*h[a]+M*e[a],E[4*a+2]=L,E[4*a+3]=0}var C=E[1],P=E[5],I=E[9],O=E[2],z=E[6],D=E[10],R=P*D-I*z,F=I*O-C*D,B=C*z-P*O,N=c(R,F,B);R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B;for(a=0;a&lt;3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a&lt;3;++a){u=0;for(var j=0;j&lt;3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c&lt;3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c&lt;3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),g=(u/=d)*e+a*r,m=(f/=d)*e+o*r,v=(h/=d)*e+s*r;this.center.move(t,g,m,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;&quot;number&quot;==typeof r&amp;&amp;(a=0|r),(a&lt;0||a&gt;3)&amp;&amp;(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),g=Math.max(h,p,d);h===g?(s=s&lt;0?-1:1,l=f=0):d===g?(f=f&lt;0?-1:1,s=l=0):(l=l&lt;0?-1:1,s=f=0)}else{var m=c(s,l,f);s/=m,l/=m,f/=m}var v,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,T=c(x-=s*w,b-=l*w,_-=f*w),k=l*(_/=T)-f*(b/=T),A=f*(x/=T)-s*_,M=s*b-l*x,S=c(k,A,M);if(k/=S,A/=S,M/=S,this.center.jump(t,H,G,Y),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],L=e[5],C=e[9],P=E*x+L*b+C*_,I=E*k+L*A+C*M;v=R&lt;0?-Math.PI/2:Math.PI/2,y=Math.atan2(I,P)}else{var O=e[2],z=e[6],D=e[10],R=O*s+z*l+D*f,F=O*x+z*b+D*_,B=O*k+z*A+D*M;v=Math.asin(u(R)),y=Math.atan2(B,F)}this.angle.jump(t,y,v),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var q=V[15],H=V[12]/q,G=V[13]/q,Y=V[14]/q,W=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*W,G-j*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s&lt;1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p&lt;1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,g=d[0],m=d[1],v=d[2],y=i*g+a*m+o*v,x=c(g-=y*i,m-=y*a,v-=y*o);if(!(x&lt;.01&amp;&amp;(x=c(g=a*h-o*f,m=o*l-i*h,v=i*f-a*l))&lt;1e-6)){g/=x,m/=x,v/=x,this.up.set(t,i,a,o),this.right.set(t,g,m,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*v-o*m,_=o*g-i*v,w=i*m-a*g,T=c(b,_,w),k=i*l+a*f+o*h,A=g*l+m*f+v*h,M=(b/=T)*l+(_/=T)*f+(w/=T)*h,S=Math.asin(u(k)),E=Math.atan2(M,A),L=this.angle._state,C=L[L.length-1],P=L[L.length-2];C%=2*Math.PI;var I=Math.abs(C+2*Math.PI-E),O=Math.abs(C-E),z=Math.abs(C-2*Math.PI-E);I&lt;O&amp;&amp;(C+=2*Math.PI),z&lt;O&amp;&amp;(C-=2*Math.PI),this.angle.jump(this.angle.lastT(),C,P),this.angle.set(t,E,S)}}}}},{&quot;filtered-vector&quot;:250,&quot;gl-mat4/invert&quot;:299,&quot;gl-mat4/rotate&quot;:305,&quot;gl-vec3/cross&quot;:368,&quot;gl-vec3/dot&quot;:373,&quot;gl-vec3/normalize&quot;:390}],604:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],605:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],606:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../prototype/is&quot;);e.exports=function(t){if(&quot;function&quot;!=typeof t)return!1;if(!hasOwnProperty.call(t,&quot;length&quot;))return!1;try{if(&quot;number&quot;!=typeof t.length)return!1;if(&quot;function&quot;!=typeof t.call)return!1;if(&quot;function&quot;!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},{&quot;../prototype/is&quot;:613}],607:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=t(&quot;../string/coerce&quot;),o=t(&quot;./to-short-string&quot;),s=function(t,e){return t.replace(&quot;%v&quot;,o(e))};e.exports=function(t,e,r){if(!i(r))throw new TypeError(s(e,t));if(!n(t)){if(&quot;default&quot;in r)return r.default;if(r.isOptional)return null}var o=a(r.errorMessage);throw n(o)||(o=e),new TypeError(s(o,t))}},{&quot;../object/is&quot;:610,&quot;../string/coerce&quot;:614,&quot;../value/is&quot;:616,&quot;./to-short-string&quot;:609}],608:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}},{}],609:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./safe-to-string&quot;),i=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=n(t);return null===e?&quot;&lt;Non-coercible to string value&gt;&quot;:(e.length&gt;100&amp;&amp;(e=e.slice(0,99)+&quot;\u2026&quot;),e=e.replace(i,(function(t){switch(t){case&quot;\n&quot;:return&quot;\\n&quot;;case&quot;\r&quot;:return&quot;\\r&quot;;case&quot;\u2028&quot;:return&quot;\\u2028&quot;;case&quot;\u2029&quot;:return&quot;\\u2029&quot;;default:throw new Error(&quot;Unexpected character&quot;)}})))}},{&quot;./safe-to-string&quot;:608}],610:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&amp;&amp;hasOwnProperty.call(i,typeof t)}},{&quot;../value/is&quot;:616}],611:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;%v is not a plain function&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:607,&quot;./is&quot;:612}],612:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/is&quot;),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&amp;&amp;!i.test(a.call(t))}},{&quot;../function/is&quot;:606}],613:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../object/is&quot;);e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&amp;&amp;t.constructor.prototype===t}catch(t){return!1}}},{&quot;../object/is&quot;:610}],614:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if(&quot;function&quot;!=typeof e)return null;if(e===a)return null}try{return&quot;&quot;+t}catch(t){return null}}},{&quot;../object/is&quot;:610,&quot;../value/is&quot;:616}],615:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;Cannot use %v&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:607,&quot;./is&quot;:616}],616:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return null!=t}},{}],617:[function(t,e,r){(function(e){(function(){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;dup&quot;),a=t(&quot;buffer&quot;).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o=&quot;undefined&quot;!=typeof Uint8ClampedArray,s=&quot;undefined&quot;!=typeof BigUint64Array,l=&quot;undefined&quot;!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length&gt;0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function g(t){return new Uint16Array(p(2*t),0,t)}function m(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function A(t){return new DataView(p(t),0,t)}function M(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length&gt;0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if(&quot;[object ArrayBuffer]&quot;!==Object.prototype.toString.call(t)&amp;&amp;(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||&quot;arraybuffer&quot;===e)return p(t);switch(e){case&quot;uint8&quot;:return d(t);case&quot;uint16&quot;:return g(t);case&quot;uint32&quot;:return m(t);case&quot;int8&quot;:return v(t);case&quot;int16&quot;:return y(t);case&quot;int32&quot;:return x(t);case&quot;float&quot;:case&quot;float32&quot;:return b(t);case&quot;double&quot;:case&quot;float64&quot;:return _(t);case&quot;uint8_clamped&quot;:return w(t);case&quot;bigint64&quot;:return k(t);case&quot;biguint64&quot;:return T(t);case&quot;buffer&quot;:return M(t);case&quot;data&quot;:case&quot;dataview&quot;:return A(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=g,r.mallocUint32=m,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=A,r.mallocBuffer=M,r.clearCache=function(){for(var t=0;t&lt;32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;bit-twiddle&quot;:104,buffer:117,dup:185}],618:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,&quot;length&quot;,{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],619:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o&lt;n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a&lt;r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],620:[function(t,e,r){var n=/[\'\&quot;]/;e.exports=function(t){return t?(n.test(t.charAt(0))&amp;&amp;(t=t.substr(1)),n.test(t.charAt(t.length-1))&amp;&amp;(t=t.substr(0,t.length-1)),t):&quot;&quot;}},{}],621:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n&lt;i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&amp;&amp;o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(&quot;function&quot;==typeof a[o]&amp;&amp;void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],622:[function(t,e,r){(function(t){(function(){function r(e){try{if(!t.localStorage)return!1}catch(t){return!1}var r=t.localStorage[e];return null!=r&amp;&amp;&quot;true&quot;===String(r).toLowerCase()}e.exports=function(t,e){if(r(&quot;noDeprecation&quot;))return t;var n=!1;return function(){if(!n){if(r(&quot;throwDeprecation&quot;))throw new Error(e);r(&quot;traceDeprecation&quot;)?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],623:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){&quot;object&quot;==typeof e&amp;&amp;null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(&quot;./lib/vtext&quot;),i=null,a=null;&quot;undefined&quot;!=typeof document&amp;&amp;((i=document.createElement(&quot;canvas&quot;)).width=8192,i.height=1024,a=i.getContext(&quot;2d&quot;))},{&quot;./lib/vtext&quot;:624}],624:[function(t,e,r){e.exports=function(t,e,r,n){var a=64,o=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};n&amp;&amp;(n.size&amp;&amp;n.size&gt;0&amp;&amp;(a=n.size),n.lineSpacing&amp;&amp;n.lineSpacing&gt;0&amp;&amp;(o=n.lineSpacing),n.styletags&amp;&amp;n.styletags.breaklines&amp;&amp;(s.breaklines=!!n.styletags.breaklines),n.styletags&amp;&amp;n.styletags.bolds&amp;&amp;(s.bolds=!!n.styletags.bolds),n.styletags&amp;&amp;n.styletags.italics&amp;&amp;(s.italics=!!n.styletags.italics),n.styletags&amp;&amp;n.styletags.subscripts&amp;&amp;(s.subscripts=!!n.styletags.subscripts),n.styletags&amp;&amp;n.styletags.superscripts&amp;&amp;(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+&quot;px&quot;,n.font].filter((function(t){return t})).join(&quot; &quot;),r.textAlign=&quot;start&quot;,r.textBaseline=&quot;alphabetic&quot;,r.direction=&quot;ltr&quot;,h(function(t,e,r,n,a,o){r=r.replace(/\n/g,&quot;&quot;),r=!0===o.breaklines?r.replace(/\&lt;br\&gt;/g,&quot;\n&quot;):r.replace(/\&lt;br\&gt;/g,&quot; &quot;);var s=&quot;&quot;,l=[];for(p=0;p&lt;r.length;++p)l[p]=s;!0===o.bolds&amp;&amp;(l=c(&quot;b&quot;,&quot;b|&quot;,r,l));!0===o.italics&amp;&amp;(l=c(&quot;i&quot;,&quot;i|&quot;,r,l));!0===o.superscripts&amp;&amp;(l=c(&quot;sup&quot;,&quot;+1&quot;,r,l));!0===o.subscripts&amp;&amp;(l=c(&quot;sub&quot;,&quot;-1&quot;,r,l));var u=[],f=&quot;&quot;;for(p=0;p&lt;r.length;++p)null!==l[p]&amp;&amp;(f+=r[p],u.push(l[p]));var h,p,d,g,m,v=f.split(&quot;\n&quot;),y=v.length,x=Math.round(a*n),b=n,_=2*n,w=0,T=y*x+_;t.height&lt;T&amp;&amp;(t.height=T);e.fillStyle=&quot;#000&quot;,e.fillRect(0,0,t.width,t.height),e.fillStyle=&quot;#fff&quot;;var k=0,A=&quot;&quot;;function M(){if(&quot;&quot;!==A){var t=e.measureText(A).width;e.fillText(A,b+d,_+g),d+=t}}function S(){return Math.round(m)+&quot;px &quot;}function E(t,r){var n=&quot;&quot;+e.font;if(!0===o.subscripts){var i=t.indexOf(&quot;-&quot;),a=r.indexOf(&quot;-&quot;),s=i&gt;-1?parseInt(t[1+i]):0,l=a&gt;-1?parseInt(r[1+a]):0;s!==l&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,l-s),n=n.replace(&quot;?px &quot;,S())),g+=.25*x*(l-s)}if(!0===o.superscripts){var c=t.indexOf(&quot;+&quot;),u=r.indexOf(&quot;+&quot;),f=c&gt;-1?parseInt(t[1+c]):0,h=u&gt;-1?parseInt(r[1+u]):0;f!==h&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,h-f),n=n.replace(&quot;?px &quot;,S())),g-=.25*x*(h-f)}if(!0===o.bolds){var p=t.indexOf(&quot;b|&quot;)&gt;-1,d=r.indexOf(&quot;b|&quot;)&gt;-1;!p&amp;&amp;d&amp;&amp;(n=v?n.replace(&quot;italic &quot;,&quot;italic bold &quot;):&quot;bold &quot;+n),p&amp;&amp;!d&amp;&amp;(n=n.replace(&quot;bold &quot;,&quot;&quot;))}if(!0===o.italics){var v=t.indexOf(&quot;i|&quot;)&gt;-1,y=r.indexOf(&quot;i|&quot;)&gt;-1;!v&amp;&amp;y&amp;&amp;(n=&quot;italic &quot;+n),v&amp;&amp;!y&amp;&amp;(n=n.replace(&quot;italic &quot;,&quot;&quot;))}e.font=n}for(h=0;h&lt;y;++h){var L=v[h]+&quot;\n&quot;;for(d=0,g=h*x,m=n,A=&quot;&quot;,p=0;p&lt;L.length;++p){var C=p+k&lt;u.length?u[p+k]:u[u.length-1];s===C?A+=L[p]:(M(),A=L[p],void 0!==C&amp;&amp;(E(s,C),s=C))}M(),k+=L.length;var P=0|Math.round(d+2*b);w&lt;P&amp;&amp;(w=P)}var I=w,O=_+x*y;return i(e.getImageData(0,0,I,O).data,[O,I,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a,o,s),n,a)},e.exports.processPixels=h;var n=t(&quot;surface-nets&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;simplify-planar-graph&quot;),o=t(&quot;clean-pslg&quot;),s=t(&quot;cdt2d&quot;),l=t(&quot;planar-graph-to-polyline&quot;);function c(t,e,r,n){for(var i=&quot;&lt;&quot;+t+&quot;&gt;&quot;,a=&quot;&lt;/&quot;+t+&quot;&gt;&quot;,o=i.length,s=a.length,l=&quot;+&quot;===e[0]||&quot;-&quot;===e[0],c=0,u=-s;c&gt;-1&amp;&amp;-1!==(c=r.indexOf(i,c))&amp;&amp;-1!==(u=r.indexOf(a,c+o))&amp;&amp;!(u&lt;=c);){for(var f=c;f&lt;u+s;++f)if(f&lt;c+o||f&gt;=u)n[f]=null,r=r.substr(0,f)+&quot; &quot;+r.substr(f+1);else if(null!==n[f]){var h=n[f].indexOf(e[0]);-1===h?n[f]+=e:l&amp;&amp;(n[f]=n[f].substr(0,h+1)+(1+parseInt(n[f][h+1]))+n[f].substr(h+2))}var p=c+o,d=r.substr(p,u-p).indexOf(i);c=-1!==d?d:u+s}return n}function u(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function f(t,e,r,n){var i=u(t,n),a=function(t,e,r){for(var n=e.textAlign||&quot;start&quot;,i=e.textBaseline||&quot;alphabetic&quot;,a=[1&lt;&lt;30,1&lt;&lt;30],o=[0,0],s=t.length,l=0;l&lt;s;++l)for(var c=t[l],u=0;u&lt;2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case&quot;center&quot;:f=-.5*(a[0]+o[0]);break;case&quot;right&quot;:case&quot;end&quot;:f=-o[0];break;case&quot;left&quot;:case&quot;start&quot;:f=-a[0];break;default:throw new Error(&quot;vectorize-text: Unrecognized textAlign: '&quot;+n+&quot;'&quot;)}var h=0;switch(i){case&quot;hanging&quot;:case&quot;top&quot;:h=-a[1];break;case&quot;middle&quot;:h=-.5*(a[1]+o[1]);break;case&quot;alphabetic&quot;:case&quot;ideographic&quot;:h=-3*r;break;case&quot;bottom&quot;:h=-o[1];break;default:throw new Error(&quot;vectorize-text: Unrecoginized textBaseline: '&quot;+i+&quot;'&quot;)}var p=1/r;return&quot;lineHeight&quot;in e?p*=+e.lineHeight:&quot;width&quot;in e?p=e.width/(o[0]-a[0]):&quot;height&quot;in e&amp;&amp;(p=e.height/(o[1]-a[1])),t.map((function(t){return[p*(t[0]+f),p*(t[1]+h)]}))}(i.positions,e,r),c=i.edges,f=&quot;ccw&quot;===e.orientation;if(o(a,c),e.polygons||e.polygon||e.polyline){for(var h=l(c,a),p=new Array(h.length),d=0;d&lt;h.length;++d){for(var g=h[d],m=new Array(g.length),v=0;v&lt;g.length;++v){for(var y=g[v],x=new Array(y.length),b=0;b&lt;y.length;++b)x[b]=a[y[b]].slice();f&amp;&amp;x.reverse(),m[v]=x}p[d]=m}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,c,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:c,positions:a}}function h(t,e,r){try{return f(t,e,r,!0)}catch(t){}try{return f(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:118,&quot;clean-pslg&quot;:127,ndarray:483,&quot;planar-graph-to-polyline&quot;:501,&quot;simplify-planar-graph&quot;:563,&quot;surface-nets&quot;:591}],625:[function(t,e,r){!function(){&quot;use strict&quot;;if(&quot;undefined&quot;==typeof ses||!ses.ok||ses.ok()){&quot;undefined&quot;!=typeof ses&amp;&amp;(ses.weakMapPermitHostObjects=g);var t=!1;if(&quot;function&quot;==typeof WeakMap){var r=WeakMap;if(&quot;undefined&quot;!=typeof navigator&amp;&amp;/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=&quot;weakmap:ident:&quot;+Math.random()+&quot;___&quot;;if(&quot;undefined&quot;!=typeof crypto&amp;&amp;&quot;function&quot;==typeof crypto.getRandomValues&amp;&amp;&quot;function&quot;==typeof ArrayBuffer&amp;&amp;&quot;function&quot;==typeof Uint8Array){var c=new ArrayBuffer(25),u=new Uint8Array(c);crypto.getRandomValues(u),l=&quot;weakmap:rand:&quot;+Array.prototype.map.call(u,(function(t){return(t%36).toString(36)})).join(&quot;&quot;)+&quot;___&quot;}if(o(Object,&quot;getOwnPropertyNames&quot;,{value:function(t){return a(t).filter(m)}}),&quot;getPropertyNames&quot;in Object){var f=Object.getPropertyNames;o(Object,&quot;getPropertyNames&quot;,{value:function(t){return f(t).filter(m)}})}!function(){var t=Object.freeze;o(Object,&quot;freeze&quot;,{value:function(e){return v(e),t(e)}});var e=Object.seal;o(Object,&quot;seal&quot;,{value:function(t){return v(t),e(t)}});var r=Object.preventExtensions;o(Object,&quot;preventExtensions&quot;,{value:function(t){return v(t),r(t)}})}();var h=!1,p=0,d=function(){this instanceof d||x();var t=[],e=[],r=p++;return Object.create(d.prototype,{get___:{value:y((function(n,i){var a,o=v(n);return o?r in o?o[r]:i:(a=t.indexOf(n))&gt;=0?e[a]:i}))},has___:{value:y((function(e){var n=v(e);return n?r in n:t.indexOf(e)&gt;=0}))},set___:{value:y((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))&gt;=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:y((function(n){var i,a,o=v(n);return o?r in o&amp;&amp;delete o[r]:!((i=t.indexOf(n))&lt;0)&amp;&amp;(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,!0)}))}})};d.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),&quot;function&quot;==typeof r?function(){function n(){this instanceof d||x();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new d),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new d),i.set___(t,e)}else n.set(t,e);return this},Object.create(d.prototype,{get___:{value:y((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:y((function(t){return n.has(t)||!!i&amp;&amp;i.has___(t)}))},set___:{value:y(e)},delete___:{value:y((function(t){var e=!!n.delete(t);return i&amp;&amp;i.delete___(t)||e}))},permitHostObjects___:{value:y((function(t){if(t!==g)throw new Error(&quot;bogus call to permitHostObjects___&quot;);a=!0}))}})}t&amp;&amp;&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),n.prototype=d.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,&quot;constructor&quot;,{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),e.exports=d)}function g(t){t.permitHostObjects___&amp;&amp;t.permitHostObjects___(g)}function m(t){return!(&quot;weakmap:&quot;==t.substr(0,&quot;weakmap:&quot;.length)&amp;&amp;&quot;___&quot;===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError(&quot;Not an object: &quot;+t);var e=t[l];if(e&amp;&amp;e.key===t)return e;if(s(t)){e={key:t};try{return o(t,l,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function y(t){return t.prototype=null,Object.freeze(t)}function x(){h||&quot;undefined&quot;==typeof console||(h=!0,console.warn(&quot;WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.&quot;))}}()},{}],626:[function(t,e,r){var n=t(&quot;./hidden-store.js&quot;);e.exports=function(){var t={};return function(e){if((&quot;object&quot;!=typeof e||null===e)&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;Weakmap-shim: Key must be object&quot;);var r=e.valueOf(t);return r&amp;&amp;r.identity===t?r:n(e,t)}}},{&quot;./hidden-store.js&quot;:627}],627:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,&quot;valueOf&quot;,{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],628:[function(t,e,r){var n=t(&quot;./create-store.js&quot;);e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(&quot;value&quot;)?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return&quot;value&quot;in t(e)},delete:function(e){return delete t(e).value}}}},{&quot;./create-store.js&quot;:626}],629:[function(t,e,r){var n=t(&quot;get-canvas-context&quot;);e.exports=function(t){return n(&quot;webgl&quot;,t)}},{&quot;get-canvas-context&quot;:257}],630:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Chinese&quot;,jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Chinese&quot;,epochs:[&quot;BEC&quot;,&quot;EC&quot;],monthNumbers:function(t,e){if(&quot;string&quot;==typeof t){var r=t.match(l);return r?r[0]:&quot;&quot;}var n=this._validateYear(t),i=t.month(),a=&quot;&quot;+this.toChineseMonth(n,i);return e&amp;&amp;a.length&lt;2&amp;&amp;(a=&quot;0&quot;+a),this.isIntercalaryMonth(n,i)&amp;&amp;(a+=&quot;i&quot;),a},monthNames:function(t){if(&quot;string&quot;==typeof t){var e=t.match(c);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00\u6708&quot;,&quot;\u4e8c\u6708&quot;,&quot;\u4e09\u6708&quot;,&quot;\u56db\u6708&quot;,&quot;\u4e94\u6708&quot;,&quot;\u516d\u6708&quot;,&quot;\u4e03\u6708&quot;,&quot;\u516b\u6708&quot;,&quot;\u4e5d\u6708&quot;,&quot;\u5341\u6708&quot;,&quot;\u5341\u4e00\u6708&quot;,&quot;\u5341\u4e8c\u6708&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},monthNamesShort:function(t){if(&quot;string&quot;==typeof t){var e=t.match(u);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))&quot;\u95f0&quot;===e[0]&amp;&amp;(r=!0,e=e.substring(1)),&quot;\u6708&quot;===e[e.length-1]&amp;&amp;(e=e.substring(0,e.length-1)),n=1+[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;].indexOf(e);else{var i=e[e.length-1];r=&quot;i&quot;===i||&quot;I&quot;===i}return this.toMonthIndex(t,n,r)},dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&amp;&amp;(t=t.year()),&quot;number&quot;!=typeof t||t&lt;1888||t&gt;2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&amp;&amp;e!==i||e&lt;1||e&gt;12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&amp;&amp;e&lt;=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e&lt;0||e&gt;(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e&lt;r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]&gt;&gt;13},isIntercalaryMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&amp;&amp;r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s&gt;&gt;9&amp;4095,c=s&gt;&gt;5&amp;15,u=31&amp;s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),&quot;d&quot;);var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&amp;&amp;(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e&gt;(r&gt;&gt;13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&amp;1&lt;&lt;12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(&quot;object&quot;==typeof t)o=t,a=e||{};else{var l;if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Lunar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Lunar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=30))throw new Error(&quot;Lunar day outside range 1 - 30&quot;);&quot;object&quot;==typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],p=u&gt;&gt;13;c=p&amp;&amp;(o.month&gt;p||o.isIntercalary)?o.month:o.month-1;for(var d=0;d&lt;c;d++){s+=u&amp;1&lt;&lt;12-d?30:29}var g=h[o.year-h[0]],m=new Date(g&gt;&gt;9&amp;4095,(g&gt;&gt;5&amp;15)-1,(31&amp;g)+s);return a.year=m.getFullYear(),a.month=1+m.getMonth(),a.day=m.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(&quot;object&quot;==typeof t)i=t,a=e||{};else{if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Solar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Solar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=31))throw new Error(&quot;Solar day outside range 1 - 31&quot;);i={year:t,month:e,day:r},a=n||{}}var o=h[i.year-h[0]],s=i.year&lt;&lt;9|i.month&lt;&lt;5|i.day;a.year=s&gt;=o?i.year:i.year-1,o=h[a.year-h[0]];var l,c=new Date(o&gt;&gt;9&amp;4095,(o&gt;&gt;5&amp;15)-1,31&amp;o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var p,d=f[a.year-f[0]];for(p=0;p&lt;13;p++){var g=d&amp;1&lt;&lt;12-p?30:29;if(l&lt;g)break;l-=g}var m=d&gt;&gt;13;!m||p&lt;m?(a.isIntercalary=!1,a.month=1+p):p===m?(a.isIntercalary=!0,a.month=p):(a.isIntercalary=!1,a.month=p);return a.day=1+l,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(&quot;y&quot;===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&amp;&amp;f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&amp;&amp;l.month(h)}return l}});var s=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,l=/^\d?\d[iI]?/m,c=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?\u6708/m,u=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],631:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Coptic&quot;,jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Coptic&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Thout&quot;,&quot;Paopi&quot;,&quot;Hathor&quot;,&quot;Koiak&quot;,&quot;Tobi&quot;,&quot;Meshir&quot;,&quot;Paremhat&quot;,&quot;Paremoude&quot;,&quot;Pashons&quot;,&quot;Paoni&quot;,&quot;Epip&quot;,&quot;Mesori&quot;,&quot;Pi Kogi Enavot&quot;],monthNamesShort:[&quot;Tho&quot;,&quot;Pao&quot;,&quot;Hath&quot;,&quot;Koi&quot;,&quot;Tob&quot;,&quot;Mesh&quot;,&quot;Pat&quot;,&quot;Pad&quot;,&quot;Pash&quot;,&quot;Pao&quot;,&quot;Epi&quot;,&quot;Meso&quot;,&quot;PiK&quot;],dayNames:[&quot;Tkyriaka&quot;,&quot;Pesnau&quot;,&quot;Pshoment&quot;,&quot;Peftoou&quot;,&quot;Ptiou&quot;,&quot;Psoou&quot;,&quot;Psabbaton&quot;],dayNamesShort:[&quot;Tky&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pti&quot;,&quot;Pso&quot;,&quot;Psa&quot;],dayNamesMin:[&quot;Tk&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pt&quot;,&quot;Pso&quot;,&quot;Psa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],632:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Discworld&quot;,jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Discworld&quot;,epochs:[&quot;BUC&quot;,&quot;UC&quot;],monthNames:[&quot;Ick&quot;,&quot;Offle&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;Grune&quot;,&quot;August&quot;,&quot;Spune&quot;,&quot;Sektober&quot;,&quot;Ember&quot;,&quot;December&quot;],monthNamesShort:[&quot;Ick&quot;,&quot;Off&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Gru&quot;,&quot;Aug&quot;,&quot;Spu&quot;,&quot;Sek&quot;,&quot;Emb&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Octeday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Oct&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Oc&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n&gt;=2&amp;&amp;n&lt;=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||&quot;&quot;}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()&lt;0?1:0),e=i.month(),(r=i.day())+(e&gt;1?16:0)+(e&gt;2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t&gt;15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e&lt;=0?e-1:e,r,n)}});var o={20:&quot;Fruitbat&quot;,21:&quot;Anchovy&quot;};n.calendars.discworld=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],633:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Ethiopian&quot;,jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Ethiopian&quot;,epochs:[&quot;BEE&quot;,&quot;EE&quot;],monthNames:[&quot;Meskerem&quot;,&quot;Tikemet&quot;,&quot;Hidar&quot;,&quot;Tahesas&quot;,&quot;Tir&quot;,&quot;Yekatit&quot;,&quot;Megabit&quot;,&quot;Miazia&quot;,&quot;Genbot&quot;,&quot;Sene&quot;,&quot;Hamle&quot;,&quot;Nehase&quot;,&quot;Pagume&quot;],monthNamesShort:[&quot;Mes&quot;,&quot;Tik&quot;,&quot;Hid&quot;,&quot;Tah&quot;,&quot;Tir&quot;,&quot;Yek&quot;,&quot;Meg&quot;,&quot;Mia&quot;,&quot;Gen&quot;,&quot;Sen&quot;,&quot;Ham&quot;,&quot;Neh&quot;,&quot;Pag&quot;],dayNames:[&quot;Ehud&quot;,&quot;Segno&quot;,&quot;Maksegno&quot;,&quot;Irob&quot;,&quot;Hamus&quot;,&quot;Arb&quot;,&quot;Kidame&quot;],dayNamesShort:[&quot;Ehu&quot;,&quot;Seg&quot;,&quot;Mak&quot;,&quot;Iro&quot;,&quot;Ham&quot;,&quot;Arb&quot;,&quot;Kid&quot;],dayNamesMin:[&quot;Eh&quot;,&quot;Se&quot;,&quot;Ma&quot;,&quot;Ir&quot;,&quot;Ha&quot;,&quot;Ar&quot;,&quot;Ki&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],634:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Hebrew&quot;,jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Hebrew&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Nisan&quot;,&quot;Iyar&quot;,&quot;Sivan&quot;,&quot;Tammuz&quot;,&quot;Av&quot;,&quot;Elul&quot;,&quot;Tishrei&quot;,&quot;Cheshvan&quot;,&quot;Kislev&quot;,&quot;Tevet&quot;,&quot;Shevat&quot;,&quot;Adar&quot;,&quot;Adar II&quot;],monthNamesShort:[&quot;Nis&quot;,&quot;Iya&quot;,&quot;Siv&quot;,&quot;Tam&quot;,&quot;Av&quot;,&quot;Elu&quot;,&quot;Tis&quot;,&quot;Che&quot;,&quot;Kis&quot;,&quot;Tev&quot;,&quot;She&quot;,&quot;Ada&quot;,&quot;Ad2&quot;],dayNames:[&quot;Yom Rishon&quot;,&quot;Yom Sheni&quot;,&quot;Yom Shlishi&quot;,&quot;Yom Revi'i&quot;,&quot;Yom Chamishi&quot;,&quot;Yom Shishi&quot;,&quot;Yom Shabbat&quot;],dayNamesShort:[&quot;Ris&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Rev&quot;,&quot;Cha&quot;,&quot;Shi&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ri&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Re&quot;,&quot;Ch&quot;,&quot;Shi&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t&lt;0?t+1:t)+1,19)&lt;7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&amp;&amp;this.leapYear(t)||8===e&amp;&amp;5===o(this.daysInYear(t),10)?30:9===e&amp;&amp;3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?&quot;embolismic&quot;:&quot;common&quot;)+&quot; &quot;+[&quot;deficient&quot;,&quot;regular&quot;,&quot;complete&quot;][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t&lt;=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e&lt;7){for(var s=7;s&lt;=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s&lt;e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s&lt;e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)&lt;3&amp;&amp;n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t&gt;=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t&lt;this.toJD(e,1,1)?7:1;t&gt;this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],635:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Islamic&quot;,jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Islamic&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' al-thani&quot;,&quot;Jumada al-awwal&quot;,&quot;Jumada al-thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-ahad&quot;,&quot;Yawm al-ithnayn&quot;,&quot;Yawm ath-thulaathaa'&quot;,&quot;Yawm al-arbi'aa'&quot;,&quot;Yawm al-kham\u012bs&quot;,&quot;Yawm al-jum'a&quot;,&quot;Yawm as-sabt&quot;],dayNamesShort:[&quot;Aha&quot;,&quot;Ith&quot;,&quot;Thu&quot;,&quot;Arb&quot;,&quot;Kha&quot;,&quot;Jum&quot;,&quot;Sab&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;It&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30&lt;11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t&lt;=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e&lt;=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],636:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Julian&quot;,jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Julian&quot;,epochs:[&quot;BC&quot;,&quot;AD&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()&lt;0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t&lt;0&amp;&amp;t++,e&lt;=2&amp;&amp;(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i&lt;14?1:13),o=r-Math.floor(a&gt;2?4716:4715),s=e-n-Math.floor(30.6001*i);return o&lt;=0&amp;&amp;o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],637:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Mayan&quot;,jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{&quot;&quot;:{name:&quot;Mayan&quot;,epochs:[&quot;&quot;,&quot;&quot;],monthNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],monthNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],dayNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesMin:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],digits:null,dateFormat:&quot;YYYY.m.d&quot;,firstDay:0,isRTL:!1,haabMonths:[&quot;Pop&quot;,&quot;Uo&quot;,&quot;Zip&quot;,&quot;Zotz&quot;,&quot;Tzec&quot;,&quot;Xul&quot;,&quot;Yaxkin&quot;,&quot;Mol&quot;,&quot;Chen&quot;,&quot;Yax&quot;,&quot;Zac&quot;,&quot;Ceh&quot;,&quot;Mac&quot;,&quot;Kankin&quot;,&quot;Muan&quot;,&quot;Pax&quot;,&quot;Kayab&quot;,&quot;Cumku&quot;,&quot;Uayeb&quot;],tzolkinMonths:[&quot;Imix&quot;,&quot;Ik&quot;,&quot;Akbal&quot;,&quot;Kan&quot;,&quot;Chicchan&quot;,&quot;Cimi&quot;,&quot;Manik&quot;,&quot;Lamat&quot;,&quot;Muluc&quot;,&quot;Oc&quot;,&quot;Chuen&quot;,&quot;Eb&quot;,&quot;Ben&quot;,&quot;Ix&quot;,&quot;Men&quot;,&quot;Cib&quot;,&quot;Caban&quot;,&quot;Etznab&quot;,&quot;Cauac&quot;,&quot;Ahau&quot;]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t&lt;0?400:0,e+&quot;.&quot;+Math.floor(t/20)+&quot;.&quot;+t%20},forYear:function(t){if((t=t.split(&quot;.&quot;)).length&lt;3)throw&quot;Invalid Mayan year&quot;;for(var e=0,r=0;r&lt;t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)&gt;19||r&gt;0&amp;&amp;n&lt;0)throw&quot;Invalid Mayan year&quot;;e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t&lt;0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],638:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar;var o=n.instance(&quot;gregorian&quot;);i(a.prototype,{name:&quot;Nanakshahi&quot;,jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Nanakshahi&quot;,epochs:[&quot;BN&quot;,&quot;AN&quot;],monthNames:[&quot;Chet&quot;,&quot;Vaisakh&quot;,&quot;Jeth&quot;,&quot;Harh&quot;,&quot;Sawan&quot;,&quot;Bhadon&quot;,&quot;Assu&quot;,&quot;Katak&quot;,&quot;Maghar&quot;,&quot;Poh&quot;,&quot;Magh&quot;,&quot;Phagun&quot;],monthNamesShort:[&quot;Che&quot;,&quot;Vai&quot;,&quot;Jet&quot;,&quot;Har&quot;,&quot;Saw&quot;,&quot;Bha&quot;,&quot;Ass&quot;,&quot;Kat&quot;,&quot;Mgr&quot;,&quot;Poh&quot;,&quot;Mgh&quot;,&quot;Pha&quot;],dayNames:[&quot;Somvaar&quot;,&quot;Mangalvar&quot;,&quot;Budhvaar&quot;,&quot;Veervaar&quot;,&quot;Shukarvaar&quot;,&quot;Sanicharvaar&quot;,&quot;Etvaar&quot;],dayNamesShort:[&quot;Som&quot;,&quot;Mangal&quot;,&quot;Budh&quot;,&quot;Veer&quot;,&quot;Shukar&quot;,&quot;Sanichar&quot;,&quot;Et&quot;],dayNamesMin:[&quot;So&quot;,&quot;Ma&quot;,&quot;Bu&quot;,&quot;Ve&quot;,&quot;Sh&quot;,&quot;Sa&quot;,&quot;Et&quot;],digits:null,dateFormat:&quot;dd-mm-yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear);return o.leapYear(e.year()+(e.year()&lt;1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())&lt;0&amp;&amp;t++;for(var a=i.day(),s=1;s&lt;i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t&gt;=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r&gt;this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],639:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Nepali&quot;,jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{&quot;&quot;:{name:&quot;Nepali&quot;,epochs:[&quot;BBS&quot;,&quot;ABS&quot;],monthNames:[&quot;Baisakh&quot;,&quot;Jestha&quot;,&quot;Ashadh&quot;,&quot;Shrawan&quot;,&quot;Bhadra&quot;,&quot;Ashwin&quot;,&quot;Kartik&quot;,&quot;Mangsir&quot;,&quot;Paush&quot;,&quot;Mangh&quot;,&quot;Falgun&quot;,&quot;Chaitra&quot;],monthNamesShort:[&quot;Bai&quot;,&quot;Je&quot;,&quot;As&quot;,&quot;Shra&quot;,&quot;Bha&quot;,&quot;Ash&quot;,&quot;Kar&quot;,&quot;Mang&quot;,&quot;Pau&quot;,&quot;Ma&quot;,&quot;Fal&quot;,&quot;Chai&quot;],dayNames:[&quot;Aaitabaar&quot;,&quot;Sombaar&quot;,&quot;Manglbaar&quot;,&quot;Budhabaar&quot;,&quot;Bihibaar&quot;,&quot;Shukrabaar&quot;,&quot;Shanibaar&quot;],dayNamesShort:[&quot;Aaita&quot;,&quot;Som&quot;,&quot;Mangl&quot;,&quot;Budha&quot;,&quot;Bihi&quot;,&quot;Shukra&quot;,&quot;Shani&quot;],dayNamesMin:[&quot;Aai&quot;,&quot;So&quot;,&quot;Man&quot;,&quot;Bu&quot;,&quot;Bi&quot;,&quot;Shu&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r&lt;=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s&gt;9||9===s&amp;&amp;r&gt;=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&amp;&amp;(o=r,s--);9!==s;)s&lt;=0&amp;&amp;(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])&lt;0&amp;&amp;(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,&quot;d&quot;).toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i&gt;l;)++o&gt;12&amp;&amp;(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r&lt;t+2;r++)void 0===this.NEPALI_CALENDAR_DATA[r]&amp;&amp;(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],640:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Persian&quot;,jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Persian&quot;,epochs:[&quot;BP&quot;,&quot;AP&quot;],monthNames:[&quot;Farvardin&quot;,&quot;Ordibehesht&quot;,&quot;Khordad&quot;,&quot;Tir&quot;,&quot;Mordad&quot;,&quot;Shahrivar&quot;,&quot;Mehr&quot;,&quot;Aban&quot;,&quot;Azar&quot;,&quot;Day&quot;,&quot;Bahman&quot;,&quot;Esfand&quot;],monthNamesShort:[&quot;Far&quot;,&quot;Ord&quot;,&quot;Kho&quot;,&quot;Tir&quot;,&quot;Mor&quot;,&quot;Sha&quot;,&quot;Meh&quot;,&quot;Aba&quot;,&quot;Aza&quot;,&quot;Day&quot;,&quot;Bah&quot;,&quot;Esf&quot;],dayNames:[&quot;Yekshambe&quot;,&quot;Doshambe&quot;,&quot;Seshambe&quot;,&quot;Ch\xe6harshambe&quot;,&quot;Panjshambe&quot;,&quot;Jom'e&quot;,&quot;Shambe&quot;],dayNamesShort:[&quot;Yek&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch\xe6&quot;,&quot;Panj&quot;,&quot;Jom&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ye&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch&quot;,&quot;Pa&quot;,&quot;Jo&quot;,&quot;Sh&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()&gt;0?474:473))%2820+474+38)%2816&lt;682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t&gt;=0?474:473),s=474+o(a,2820);return r+(e&lt;=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l&lt;=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c&lt;=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],641:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Taiwan&quot;,jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Taiwan&quot;,epochs:[&quot;BROC&quot;,&quot;ROC&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],642:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Thai&quot;,jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Thai&quot;,epochs:[&quot;BBE&quot;,&quot;BE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)}}),n.calendars.thai=o},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],643:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;UmmAlQura&quot;,hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Umm al-Qura&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Al-Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' Al-Thani&quot;,&quot;Jumada Al-Awwal&quot;,&quot;Jumada Al-Thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-Ahad&quot;,&quot;Yawm al-Ithnain&quot;,&quot;Yawm al-Thal\u0101th\u0101\u2019&quot;,&quot;Yawm al-Arba\u2018\u0101\u2019&quot;,&quot;Yawm al-Kham\u012bs&quot;,&quot;Yawm al-Jum\u2018a&quot;,&quot;Yawm al-Sabt&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;Ith&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r&lt;=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a&lt;o.length;a++){if(o[a]&gt;r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n&lt;o.length&amp;&amp;!(o[n]&gt;e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&amp;&amp;(i=(t=null!=t.year?t.year:t)&gt;=1276&amp;&amp;t&lt;=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year&lt;1276||a.year&gt;1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{&quot;../main&quot;:644,&quot;object-assign&quot;:487}],644:[function(t,e,r){var n=t(&quot;object-assign&quot;);function i(){this.regionalOptions=[],this.regionalOptions[&quot;&quot;]={invalidCalendar:&quot;Calendar {0} not found&quot;,invalidDate:&quot;Invalid {0} date&quot;,invalidMonth:&quot;Invalid {0} month&quot;,invalidYear:&quot;Invalid {0} year&quot;,differentCalendars:&quot;Cannot mix {0} and {1} dates&quot;},this.local=this.regionalOptions[&quot;&quot;],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&amp;&amp;!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return&quot;000000&quot;.substring(0,e-(t=&quot;&quot;+t).length)+t}function s(){this.shortYearCutoff=&quot;+10&quot;}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[&quot;&quot;]}n(i.prototype,{instance:function(t,e){t=(t||&quot;gregorian&quot;).toLowerCase(),e=e||&quot;&quot;;var r=this._localCals[t+&quot;-&quot;+e];if(!r&amp;&amp;this.calendars[t]&amp;&amp;(r=new this.calendars[t](e),this._localCals[t+&quot;-&quot;+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[&quot;&quot;].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&amp;&amp;t.year?t.calendar():&quot;string&quot;==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+&quot;&quot;).replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n=&quot;&quot;,i=0;r&gt;0;){var a=r%10;n=(0===a?&quot;&quot;:t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&amp;&amp;(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,&quot;y&quot;)},month:function(t){return 0===arguments.length?this._month:this.set(t,&quot;m&quot;)},day:function(t){return 0===arguments.length?this._day:this.set(t,&quot;d&quot;)},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e&lt;0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(this.year()),4)+&quot;-&quot;+o(this.month(),2)+&quot;-&quot;+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&amp;&amp;(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear).year()&lt;0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(e.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,&quot;d&quot;===r||&quot;w&quot;===r){var n=t.toJD()+e*(&quot;w&quot;===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(&quot;y&quot;===r?e:0),o=t.monthOfYear()+(&quot;m&quot;===r?e:0);i=t.day();&quot;y&quot;===r?(t.month()!==this.fromMonthOfYear(a,o)&amp;&amp;(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):&quot;m&quot;===r&amp;&amp;(!function(t){for(;o&lt;t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o&gt;e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||&quot;y&quot;!==n&amp;&amp;&quot;m&quot;!==n||0!==e[0]&amp;&amp;t.year()&gt;0==e[0]&gt;0)){var i={y:[1,1,&quot;y&quot;],m:[1,this.monthsInYear(-1),&quot;m&quot;],w:[this.daysInWeek(),this.daysInYear(-1),&quot;d&quot;],d:[1,this.daysInYear(-1),&quot;d&quot;]}[n],a=r&lt;0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);var n=&quot;y&quot;===r?e:t.year(),i=&quot;m&quot;===r?e:t.month(),a=&quot;d&quot;===r?e:t.day();return&quot;y&quot;!==r&amp;&amp;&quot;m&quot;!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e&gt;=this.minMonth&amp;&amp;e-this.minMonth&lt;this.monthsInYear(i)&amp;&amp;r&gt;=this.minDay&amp;&amp;r-this.minDay&lt;this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&amp;&amp;this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&amp;&amp;!this.isValid(t,e,r))throw n.replace(/\{0\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:&quot;Gregorian&quot;,jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Gregorian&quot;,epochs:[&quot;BCE&quot;,&quot;CE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==0&amp;&amp;(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);t=n.year(),e=n.month(),r=n.day(),t&lt;0&amp;&amp;t++,e&lt;3&amp;&amp;(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o&gt;13.5?13:1),c=i-(l&gt;2.5?4716:4715);return c&lt;=0&amp;&amp;c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()&gt;12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{&quot;object-assign&quot;:487}],645:[function(t,e,r){var n=t(&quot;object-assign&quot;),i=t(&quot;./main&quot;);n(i.regionalOptions[&quot;&quot;],{invalidArguments:&quot;Invalid arguments&quot;,invalidFormat:&quot;Cannot format a date from another calendar&quot;,missingNumberAt:&quot;Missing number at position {0}&quot;,unknownNameAt:&quot;Unknown name at position {0}&quot;,unexpectedLiteralAt:&quot;Unexpected literal at position {0}&quot;,unexpectedText:&quot;Additional text found at end&quot;}),i.local=i.regionalOptions[&quot;&quot;],n(i.cdate.prototype,{formatDate:function(t,e){return&quot;string&quot;!=typeof t&amp;&amp;(e=t,t=&quot;&quot;),this._calendar.formatDate(t||&quot;&quot;,this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:&quot;yyyy-mm-dd&quot;,COOKIE:&quot;D, dd M yyyy&quot;,FULL:&quot;DD, MM d, yyyy&quot;,ISO_8601:&quot;yyyy-mm-dd&quot;,JULIAN:&quot;J&quot;,RFC_822:&quot;D, d M yy&quot;,RFC_850:&quot;DD, dd-M-yy&quot;,RFC_1036:&quot;D, d M yy&quot;,RFC_1123:&quot;D, d M yyyy&quot;,RFC_2822:&quot;D, d M yyyy&quot;,RSS:&quot;D, d M yy&quot;,TICKS:&quot;!&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yyyy-mm-dd&quot;,formatDate:function(t,e,r){if(&quot;string&quot;!=typeof t&amp;&amp;(r=e,e=t,t=&quot;&quot;),!e)return&quot;&quot;;if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[&quot;&quot;].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n&lt;t.length&amp;&amp;t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))&gt;1}),d=function(t,e,r,n){var i=&quot;&quot;+e;if(p(t,n))for(;i.length&lt;r;)i=&quot;0&quot;+i;return i},g=this,m=function(t){return&quot;function&quot;==typeof u?u.call(g,t,p(&quot;m&quot;)):x(d(&quot;m&quot;,t.month(),2))},v=function(t,e){return e?&quot;function&quot;==typeof h?h.call(g,t):h[t.month()-g.minMonth]:&quot;function&quot;==typeof f?f.call(g,t):f[t.month()-g.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&amp;&amp;y?y(t):t},b=&quot;&quot;,_=!1,w=0;w&lt;t.length;w++)if(_)&quot;'&quot;!==t.charAt(w)||p(&quot;'&quot;)?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case&quot;d&quot;:b+=x(d(&quot;d&quot;,e.day(),2));break;case&quot;D&quot;:b+=(n=&quot;D&quot;,a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case&quot;o&quot;:b+=d(&quot;o&quot;,e.dayOfYear(),3);break;case&quot;w&quot;:b+=d(&quot;w&quot;,e.weekOfYear(),2);break;case&quot;m&quot;:b+=m(e);break;case&quot;M&quot;:b+=v(e,p(&quot;M&quot;));break;case&quot;y&quot;:b+=p(&quot;y&quot;,2)?e.year():(e.year()%100&lt;10?&quot;0&quot;:&quot;&quot;)+e.year()%100;break;case&quot;Y&quot;:p(&quot;Y&quot;,2),b+=e.formatYear();break;case&quot;J&quot;:b+=e.toJD();break;case&quot;@&quot;:b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case&quot;!&quot;:b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case&quot;'&quot;:p(&quot;'&quot;)?b+=&quot;'&quot;:_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[&quot;&quot;].invalidArguments;if(&quot;&quot;===(e=&quot;object&quot;==typeof e?e.toString():e+&quot;&quot;))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=&quot;string&quot;!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,g=-1,m=!1,v=!1,y=function(e,r){for(var n=1;M+n&lt;t.length&amp;&amp;t.charAt(M+n)===e;)n++;return M+=n-1,Math.floor(n/(r||1))&gt;1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][&quot;oyYJ@!&quot;.indexOf(t)+1],o=new RegExp(&quot;^-?\\d{1,&quot;+a+&quot;}&quot;),s=e.substring(A).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[&quot;&quot;].missingNumberAt).replace(/\{0\}/,A);return A+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(&quot;function&quot;==typeof l){y(&quot;m&quot;);var t=l.call(b,e.substring(A));return A+=t.length,t}return x(&quot;m&quot;)},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s&lt;o.length;s++)if(e.substr(A,o[s].length).toLowerCase()===o[s].toLowerCase())return A+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[&quot;&quot;].unknownNameAt).replace(/\{0\}/,A)},T=function(){if(&quot;function&quot;==typeof u){var t=y(&quot;M&quot;)?u.call(b,e.substring(A)):c.call(b,e.substring(A));return A+=t.length,t}return w(&quot;M&quot;,c,u)},k=function(){if(e.charAt(A)!==t.charAt(M))throw(i.local.unexpectedLiteralAt||i.regionalOptions[&quot;&quot;].unexpectedLiteralAt).replace(/\{0\}/,A);A++},A=0,M=0;M&lt;t.length;M++)if(v)&quot;'&quot;!==t.charAt(M)||y(&quot;'&quot;)?k():v=!1;else switch(t.charAt(M)){case&quot;d&quot;:d=x(&quot;d&quot;);break;case&quot;D&quot;:w(&quot;D&quot;,a,o);break;case&quot;o&quot;:g=x(&quot;o&quot;);break;case&quot;w&quot;:x(&quot;w&quot;);break;case&quot;m&quot;:p=_();break;case&quot;M&quot;:p=T();break;case&quot;y&quot;:var S=M;m=!y(&quot;y&quot;,2),M=S,h=x(&quot;y&quot;,2);break;case&quot;Y&quot;:h=x(&quot;Y&quot;,2);break;case&quot;J&quot;:f=x(&quot;J&quot;)+.5,&quot;.&quot;===e.charAt(A)&amp;&amp;(A++,x(&quot;J&quot;));break;case&quot;@&quot;:f=x(&quot;@&quot;)/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case&quot;!&quot;:f=x(&quot;!&quot;)/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case&quot;*&quot;:A=e.length;break;case&quot;'&quot;:y(&quot;'&quot;)?k():v=!0;break;default:k()}if(A&lt;e.length)throw i.local.unexpectedText||i.regionalOptions[&quot;&quot;].unexpectedText;if(-1===h?h=this.today().year():h&lt;100&amp;&amp;m&amp;&amp;(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h&lt;=n?0:100)),&quot;string&quot;==typeof p&amp;&amp;(p=s.call(this,h,p)),g&gt;-1){p=1,d=g;for(var E=this.daysInMonth(h,p);d&gt;E;E=this.daysInMonth(h,p))p++,d-=E}return f&gt;-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&amp;&amp;&quot;object&quot;!=typeof r&amp;&amp;(i=n,n=r,r=null),&quot;string&quot;!=typeof n&amp;&amp;(i=n,n=&quot;&quot;);var a=this;return e=e?e.newDate():null,t=null==t?e:&quot;string&quot;==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&amp;&amp;r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||&quot;d&quot;),s=o.exec(t);return e}(t):&quot;number&quot;==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,&quot;d&quot;):a.newDate(t)}})},{&quot;./main&quot;:644,&quot;object-assign&quot;:487}],646:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,{offset:[1],array:0},&quot;scalar&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\n        var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\n        var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\n        if((_inline_1_da &gt;= 0) !== (_inline_1_db &gt;= 0)) {\n          _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n        }\n      }&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg3_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg4_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[&quot;_inline_1_da&quot;,&quot;_inline_1_db&quot;]},funcName:&quot;zeroCrossings&quot;})},{&quot;cwise-compiler&quot;:157}],647:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(&quot;./lib/zc-core&quot;)},{&quot;./lib/zc-core&quot;:646}],648:[function(t,e,r){&quot;use strict&quot;;e.exports=[{path:&quot;&quot;,backoff:0},{path:&quot;M-2.4,-3V3L0.6,0Z&quot;,backoff:.6},{path:&quot;M-3.7,-2.5V2.5L1.3,0Z&quot;,backoff:1.3},{path:&quot;M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z&quot;,backoff:1.55},{path:&quot;M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z&quot;,backoff:1.6},{path:&quot;M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z&quot;,backoff:2},{path:&quot;M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z&quot;,backoff:0,noRotate:!0},{path:&quot;M2,2V-2H-2V2Z&quot;,backoff:0,noRotate:!0}]},{}],649:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./arrow_paths&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../plots/cartesian/constants&quot;),o=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=o(&quot;annotation&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},text:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},textangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},font:i({editType:&quot;calc+arraydraw&quot;,colorEditType:&quot;arraydraw&quot;}),width:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},height:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;center&quot;,editType:&quot;arraydraw&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;arraydraw&quot;},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},borderpad:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},showarrow:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},arrowcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},arrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},startarrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},arrowside:{valType:&quot;flaglist&quot;,flags:[&quot;end&quot;,&quot;start&quot;],extras:[&quot;none&quot;],dflt:&quot;end&quot;,editType:&quot;arraydraw&quot;},arrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},startarrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},arrowwidth:{valType:&quot;number&quot;,min:.1,editType:&quot;calc+arraydraw&quot;},standoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},startstandoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},ax:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},ay:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},axref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},ayref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},x:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},xshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},y:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},yshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},clicktoshow:{valType:&quot;enumerated&quot;,values:[!1,&quot;onoff&quot;,&quot;onout&quot;],dflt:!1,editType:&quot;arraydraw&quot;},xclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},yclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},hovertext:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},font:i({editType:&quot;arraydraw&quot;}),editType:&quot;arraydraw&quot;},captureevents:{valType:&quot;boolean&quot;,editType:&quot;arraydraw&quot;},editType:&quot;calc&quot;,_deprecated:{ref:{valType:&quot;string&quot;,editType:&quot;calc&quot;}}})},{&quot;../../constants/axis_placeable_objects&quot;:772,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/constants&quot;:861,&quot;../../plots/font_attributes&quot;:883,&quot;./arrow_paths&quot;:648}],650:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./draw&quot;).draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},&quot;range&quot;===a&amp;&amp;s(e,r),&quot;range&quot;===o&amp;&amp;s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[&quot;a&quot;+a],l=t[a+&quot;ref&quot;],c=t[&quot;a&quot;+a+&quot;ref&quot;],u=t[&quot;_&quot;+a+&quot;padplus&quot;],f=t[&quot;_&quot;+a+&quot;padminus&quot;],h={x:1,y:-1}[a]*t[a+&quot;shift&quot;],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,g=p-h,m=3*t.startarrowsize*t.arrowwidth||0,v=m+h,y=m-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:g}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,v),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&amp;&amp;t._fullData.length)return n.syncOrAsync([a,o],t)}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;./draw&quot;:655}],651:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plot_api/plot_template&quot;).arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r&lt;u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n&lt;d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&amp;&amp;c._id===i.yref&amp;&amp;l.d2r(o.x)===s(i._xclick,l)&amp;&amp;c.d2r(o.y)===s(i._yclick,c)){(i.visible?&quot;onout&quot;===a?h:p:f).push(r);break}n===d&amp;&amp;i.visible&amp;&amp;&quot;onout&quot;===a&amp;&amp;h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return&quot;log&quot;===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length&gt;0||r.explicitOff.length&gt;0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&amp;&amp;!u.length)return;for(r=0;r&lt;c.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[c[r]])).modifyItem(&quot;visible&quot;,!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r&lt;u.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[u[r]])).modifyItem(&quot;visible&quot;,!1),n.extendFlat(f,s.getUpdateObj());return i.call(&quot;update&quot;,t,{},f)}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../registry&quot;:931}],652:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;);e.exports=function(t,e,r,a){a(&quot;opacity&quot;);var o=a(&quot;bgcolor&quot;),s=a(&quot;bordercolor&quot;),l=i.opacity(s);a(&quot;borderpad&quot;);var c=a(&quot;borderwidth&quot;),u=a(&quot;showarrow&quot;);if(a(&quot;text&quot;,u?&quot; &quot;:r._dfltTitle.annotation),a(&quot;textangle&quot;),n.coerceFont(a,&quot;font&quot;,r.font),a(&quot;width&quot;),a(&quot;align&quot;),a(&quot;height&quot;)&amp;&amp;a(&quot;valign&quot;),u){var f,h,p=a(&quot;arrowside&quot;);-1!==p.indexOf(&quot;end&quot;)&amp;&amp;(f=a(&quot;arrowhead&quot;),h=a(&quot;arrowsize&quot;)),-1!==p.indexOf(&quot;start&quot;)&amp;&amp;(a(&quot;startarrowhead&quot;,f),a(&quot;startarrowsize&quot;,h)),a(&quot;arrowcolor&quot;,l?e.bordercolor:i.defaultLine),a(&quot;arrowwidth&quot;,2*(l&amp;&amp;c||1)),a(&quot;standoff&quot;),a(&quot;startstandoff&quot;)}var d=a(&quot;hovertext&quot;),g=r.hoverlabel||{};if(d){var m=a(&quot;hoverlabel.bgcolor&quot;,g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),v=a(&quot;hoverlabel.bordercolor&quot;,g.bordercolor||i.contrast(m));n.coerceFont(a,&quot;hoverlabel.font&quot;,{family:g.font.family,size:g.font.size,color:g.font.color||v})}a(&quot;captureevents&quot;,!!d)}},{&quot;../../lib&quot;:803,&quot;../color&quot;:666}],653:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h&lt;u.length;h++)l=u[h],c=&quot;annotations[&quot;+h+&quot;].&quot;,l[f+&quot;ref&quot;]===e._id&amp;&amp;p(f),l[&quot;a&quot;+f+&quot;ref&quot;]===e._id&amp;&amp;p(&quot;a&quot;+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{&quot;../../lib/to_log_range&quot;:831,&quot;fast-isnumeric&quot;:249}],654:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(&quot;visible&quot;),c=a(&quot;clicktoshow&quot;);if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[&quot;x&quot;,&quot;y&quot;],h=[-10,-30],p={_fullLayout:r},d=0;d&lt;2;d++){var g=f[d],m=i.coerceRef(t,e,p,g,&quot;&quot;,&quot;paper&quot;);if(&quot;paper&quot;!==m)i.getFromId(p,m)._annIndices.push(e._index);if(i.coercePosition(e,p,a,m,g,.5),u){var v=&quot;a&quot;+g,y=i.coerceRef(t,e,p,v,&quot;pixel&quot;,[&quot;pixel&quot;,&quot;paper&quot;]);&quot;pixel&quot;!==y&amp;&amp;y!==m&amp;&amp;(y=e[v]=&quot;pixel&quot;);var x=&quot;pixel&quot;===y?h[d]:.4;i.coercePosition(e,p,a,y,v,x)}a(g+&quot;anchor&quot;),a(g+&quot;shift&quot;)}if(n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),u&amp;&amp;n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;]),c){var b=a(&quot;xclick&quot;),_=a(&quot;yclick&quot;);e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/axes&quot;:854,&quot;./attributes&quot;:649,&quot;./common_defaults&quot;:652}],655:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../fx&quot;),h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,m=t(&quot;./draw_arrow_head&quot;);function v(t,e){var r=t._fullLayout.annotations[e]||{},n=l.getFromId(t,r.xref),i=l.getFromId(t,r.yref);n&amp;&amp;n.setScale(),i&amp;&amp;i.setScale(),x(t,r,e,!1,n,i)}function y(t,e,r,n,i){var a=i[r],o=i[r+&quot;ref&quot;],s=-1!==r.indexOf(&quot;y&quot;),c=&quot;domain&quot;===l.getRefType(o),u=s?n.h:n.w;return t?c?a+(s?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(s?-e:e)/u}function x(t,e,r,a,v,x){var b,_,w=t._fullLayout,T=t._fullLayout._size,k=t._context.edits;a?(b=&quot;annotation-&quot;+a,_=a+&quot;.annotations&quot;):(b=&quot;annotation&quot;,_=&quot;annotations&quot;);var A=g(t.layout,_,e),M=A.modifyBase,S=A.modifyItem,E=A.getUpdateObj;w._infolayer.selectAll(&quot;.&quot;+b+'[data-index=&quot;'+r+'&quot;]').remove();var L=&quot;clip&quot;+w._uid+&quot;_ann&quot;+r;if(e._input&amp;&amp;!1!==e.visible){var C={x:{},y:{}},P=+e.textangle||0,I=w._infolayer.append(&quot;g&quot;).classed(b,!0).attr(&quot;data-index&quot;,String(r)).style(&quot;opacity&quot;,e.opacity),O=I.append(&quot;g&quot;).classed(&quot;annotation-text-g&quot;,!0),z=k[e.showarrow?&quot;annotationTail&quot;:&quot;annotationPosition&quot;],D=e.captureevents||k.annotationText||z,R=O.append(&quot;g&quot;).style(&quot;pointer-events&quot;,D?&quot;all&quot;:null).call(p,&quot;pointer&quot;).on(&quot;click&quot;,(function(){t._dragging=!1,t.emit(&quot;plotly_clickannotation&quot;,Y(n.event))}));e.hovertext&amp;&amp;R.on(&quot;mouseover&quot;,(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();f.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on(&quot;mouseout&quot;,(function(){f.loneUnhover(w._hoverlayer.node())}));var F=e.borderwidth,B=e.borderpad,N=F+B,j=R.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bg&quot;).style(&quot;stroke-width&quot;,F+&quot;px&quot;).call(c.stroke,e.bordercolor).call(c.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll(&quot;#&quot;+L).data(U?[0]:[]);V.enter().append(&quot;clipPath&quot;).classed(&quot;annclip&quot;,!0).attr(&quot;id&quot;,L).append(&quot;rect&quot;),V.exit().remove();var q=e.font,H=w._meta?o.templateString(e.text,w._meta):e.text,G=R.append(&quot;text&quot;).classed(&quot;annotation-text&quot;,!0).text(H);k.annotationText?G.call(h.makeEditable,{delegate:R,gd:t}).call(W).on(&quot;edit&quot;,(function(r){e.text=r,this.call(W),S(&quot;text&quot;,r),v&amp;&amp;v.autorange&amp;&amp;M(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;M(x._name+&quot;.autorange&quot;,!0),i.call(&quot;_guiRelayout&quot;,t,E())})):G.call(W)}else n.selectAll(&quot;#&quot;+L).remove();function Y(t){var n={index:r,annotation:e._input,fullAnnotation:e,event:t};return a&amp;&amp;(n.subplotId=a),n}function W(r){return r.call(u.font,q).attr({&quot;text-anchor&quot;:{left:&quot;start&quot;,right:&quot;end&quot;}[e.align]||&quot;middle&quot;}),h.convertToTspans(r,t,X),r}function X(){var r=G.selectAll(&quot;a&quot;);1===r.size()&amp;&amp;r.text()===G.text()&amp;&amp;R.insert(&quot;a&quot;,&quot;:first-child&quot;).attr({&quot;xlink:xlink:href&quot;:r.attr(&quot;xlink:href&quot;),&quot;xlink:xlink:show&quot;:r.attr(&quot;xlink:show&quot;)}).style({cursor:&quot;pointer&quot;}).node().appendChild(j.node());var n=R.select(&quot;.annotation-text-math-group&quot;),f=!n.empty(),g=u.bBox((f?n:G).node()),b=g.width,_=g.height,A=e.width||b,D=e.height||_,B=Math.round(A+2*N),q=Math.round(D+2*N);function H(t,e){return&quot;auto&quot;===e&amp;&amp;(e=t&lt;1/3?&quot;left&quot;:t&gt;2/3?&quot;right&quot;:&quot;center&quot;),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,X=[&quot;x&quot;,&quot;y&quot;],Z=0;Z&lt;X.length;Z++){var J,K,Q,$,tt,et=X[Z],rt=e[et+&quot;ref&quot;]||et,nt=e[&quot;a&quot;+et+&quot;ref&quot;],it={x:v,y:x}[et],at=(P+(&quot;x&quot;===et?0:-90))*Math.PI/180,ot=B*Math.cos(at),st=q*Math.sin(at),lt=Math.abs(ot)+Math.abs(st),ct=e[et+&quot;anchor&quot;],ut=e[et+&quot;shift&quot;]*(&quot;x&quot;===et?1:-1),ft=C[et],ht=l.getRefType(rt);if(it&amp;&amp;&quot;domain&quot;!==ht){var pt=it.r2fraction(e[et]);(pt&lt;0||pt&gt;1)&amp;&amp;(nt===rt?((pt=it.r2fraction(e[&quot;a&quot;+et]))&lt;0||pt&gt;1)&amp;&amp;(W=!0):W=!0),J=it._offset+it.r2p(e[et]),$=.5}else{var dt=&quot;domain&quot;===ht;&quot;x&quot;===et?(Q=e[et],J=dt?it._offset+it._length*Q:J=T.l+T.w*Q):(Q=1-e[et],J=dt?it._offset+it._length*Q:J=T.t+T.h*Q),$=e.showarrow?.5:Q}if(e.showarrow){ft.head=J;var gt=e[&quot;a&quot;+et];if(tt=ot*H(.5,e.xanchor)-st*H(.5,e.yanchor),nt===rt){var mt=l.getRefType(nt);&quot;domain&quot;===mt?(&quot;y&quot;===et&amp;&amp;(gt=1-gt),ft.tail=it._offset+it._length*gt):&quot;paper&quot;===mt?&quot;y&quot;===et?(gt=1-gt,ft.tail=T.t+T.h*gt):ft.tail=T.l+T.w*gt:ft.tail=it._offset+it.r2p(gt),K=tt}else ft.tail=J+gt,K=tt+gt;ft.text=ft.tail+tt;var vt=w[&quot;x&quot;===et?&quot;width&quot;:&quot;height&quot;];if(&quot;paper&quot;===rt&amp;&amp;(ft.head=o.constrain(ft.head,1,vt-1)),&quot;pixel&quot;===nt){var yt=-Math.max(ft.tail-3,ft.text),xt=Math.min(ft.tail+3,ft.text)-vt;yt&gt;0?(ft.tail+=yt,ft.text+=yt):xt&gt;0&amp;&amp;(ft.tail-=xt,ft.text-=xt)}ft.tail+=ut,ft.head+=ut}else K=tt=lt*H($,ct),ft.text=J+tt;ft.text+=ut,tt+=ut,K+=ut,e[&quot;_&quot;+et+&quot;padplus&quot;]=lt/2+K,e[&quot;_&quot;+et+&quot;padminus&quot;]=lt/2-K,e[&quot;_&quot;+et+&quot;size&quot;]=lt,e[&quot;_&quot;+et+&quot;shift&quot;]=tt}if(W)R.remove();else{var bt=0,_t=0;if(&quot;left&quot;!==e.align&amp;&amp;(bt=(A-b)*(&quot;center&quot;===e.align?.5:1)),&quot;top&quot;!==e.valign&amp;&amp;(_t=(D-_)*(&quot;middle&quot;===e.valign?.5:1)),f)n.select(&quot;svg&quot;).attr({x:N+bt-1,y:N+_t}).call(u.setClipUrl,U?L:null,t);else{var wt=N+_t-g.top,Tt=N+bt-g.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?L:null,t)}V.select(&quot;rect&quot;).call(u.setRect,N,N,A,D),j.call(u.setRect,F/2,F/2,B-F,q-F),R.call(u.setTranslate,Math.round(C.x.text-B/2),Math.round(C.y.text-q/2)),O.attr({transform:&quot;rotate(&quot;+P+&quot;,&quot;+C.x.text+&quot;,&quot;+C.y.text+&quot;)&quot;});var kt,At=function(r,n){I.selectAll(&quot;.annotation-arrow-g&quot;).remove();var l=C.x.head,f=C.y.head,h=C.x.tail+r,p=C.y.tail+n,g=C.x.text+r,b=C.y.text+n,_=o.rotationXYMatrix(P,g,b),w=o.apply2DTransform(_),A=o.apply2DTransform2(_),L=+j.attr(&quot;width&quot;),z=+j.attr(&quot;height&quot;),D=g-.5*L,F=D+L,B=b-.5*z,N=B+z,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(A);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(h,p,l,f,t[0],t[1],t[2],t[3]);e&amp;&amp;(h=e.x,p=e.y)}));var V=e.arrowwidth,q=e.arrowcolor,H=e.arrowside,G=I.append(&quot;g&quot;).style({opacity:c.opacity(q)}).classed(&quot;annotation-arrow-g&quot;,!0),Y=G.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M&quot;+h+&quot;,&quot;+p+&quot;L&quot;+l+&quot;,&quot;+f).style(&quot;stroke-width&quot;,V+&quot;px&quot;).call(c.stroke,c.rgb(q));if(m(Y,H,e),k.annotationPosition&amp;&amp;Y.node().parentNode&amp;&amp;!a){var W=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-h,2)+Math.pow(f-p,2));W+=e.standoff*(h-l)/Z,X+=e.standoff*(p-f)/Z}var J,K,Q=G.append(&quot;path&quot;).classed(&quot;annotation-arrow&quot;,!0).classed(&quot;anndrag&quot;,!0).classed(&quot;cursor-move&quot;,!0).attr({d:&quot;M3,3H-3V-3H3ZM0,0L&quot;+(h-W)+&quot;,&quot;+(p-X),transform:s(W,X)}).style(&quot;stroke-width&quot;,V+6+&quot;px&quot;).call(c.stroke,&quot;rgba(0,0,0,0)&quot;).call(c.fill,&quot;rgba(0,0,0,0)&quot;);d.init({element:Q.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);J=t.x,K=t.y,v&amp;&amp;v.autorange&amp;&amp;M(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;M(x._name+&quot;.autorange&quot;,!0)},moveFn:function(t,r){var n=w(J,K),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S(&quot;x&quot;,y(v,t,&quot;x&quot;,T,e)),S(&quot;y&quot;,y(x,r,&quot;y&quot;,T,e)),e.axref===e.xref&amp;&amp;S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)),e.ayref===e.yref&amp;&amp;S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T,e)),G.attr(&quot;transform&quot;,s(t,r)),O.attr({transform:&quot;rotate(&quot;+P+&quot;,&quot;+i+&quot;,&quot;+a+&quot;)&quot;})},doneFn:function(){i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}};if(e.showarrow&amp;&amp;At(0,0),z)d.init({element:R.node(),gd:t,prepFn:function(){kt=O.attr(&quot;transform&quot;)},moveFn:function(t,r){var n=&quot;pointer&quot;;if(e.showarrow)e.axref===e.xref?S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)):S(&quot;ax&quot;,e.ax+t),e.ayref===e.yref?S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T.w,e)):S(&quot;ay&quot;,e.ay+r),At(t,r);else{if(a)return;var i,o;if(v)i=y(v,t,&quot;x&quot;,T,e);else{var l=e._xsize/T.w,c=e.x+(e._xshift-e.xshift)/T.w-l/2;i=d.align(c+t/T.w,l,0,1,e.xanchor)}if(x)o=y(x,r,&quot;y&quot;,T,e);else{var u=e._ysize/T.h,f=e.y-(e._yshift+e.yshift)/T.h-u/2;o=d.align(f-r/T.h,u,0,1,e.yanchor)}S(&quot;x&quot;,i),S(&quot;y&quot;,o),v&amp;&amp;x||(n=d.getCursor(v?.5:i,x?.5:o,e.xanchor,e.yanchor))}O.attr({transform:s(t,r)+kt}),p(R,n)},clickFn:function(r,n){e.captureevents&amp;&amp;t.emit(&quot;plotly_clickannotation&quot;,Y(n))},doneFn:function(){p(R),i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(&quot;.annotation&quot;).remove();for(var r=0;r&lt;e.annotations.length;r++)e.annotations[r].visible&amp;&amp;v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:x}},{&quot;../../lib&quot;:803,&quot;../../lib/setcursor&quot;:824,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;../fx&quot;:706,&quot;./draw_arrow_head&quot;:656,&quot;@plotly/d3&quot;:58}],656:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;./arrow_paths&quot;),o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strRotate,c=o.strTranslate;e.exports=function(t,e,r){var o,u,f,h,p=t.node(),d=a[r.arrowhead||0],g=a[r.startarrowhead||0],m=(r.arrowwidth||1)*(r.arrowsize||1),v=(r.arrowwidth||1)*(r.startarrowsize||1),y=e.indexOf(&quot;start&quot;)&gt;=0,x=e.indexOf(&quot;end&quot;)&gt;=0,b=d.backoff*m+r.standoff,_=g.backoff*v+r.startstandoff;if(&quot;line&quot;===p.nodeName){o={x:+t.attr(&quot;x1&quot;),y:+t.attr(&quot;y1&quot;)},u={x:+t.attr(&quot;x2&quot;),y:+t.attr(&quot;y2&quot;)};var w=o.x-u.x,T=o.y-u.y;if(h=(f=Math.atan2(T,w))+Math.PI,b&amp;&amp;_&amp;&amp;b+_&gt;Math.sqrt(w*w+T*T))return void z();if(b){if(b*b&gt;w*w+T*T)return void z();var k=b*Math.cos(f),A=b*Math.sin(f);u.x+=k,u.y+=A,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_&gt;w*w+T*T)return void z();var M=_*Math.cos(f),S=_*Math.sin(f);o.x-=M,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if(&quot;path&quot;===p.nodeName){var E=p.getTotalLength(),L=&quot;&quot;;if(E&lt;b+_)return void z();var C=p.getPointAtLength(0),P=p.getPointAtLength(.1);f=Math.atan2(C.y-P.y,C.x-P.x),o=p.getPointAtLength(Math.min(_,E)),L=&quot;0px,&quot;+_+&quot;px,&quot;;var I=p.getPointAtLength(E),O=p.getPointAtLength(E-.1);h=Math.atan2(I.y-O.y,I.x-O.x),u=p.getPointAtLength(Math.max(0,E-b)),L+=E-(L?_+b:b)+&quot;px,&quot;+E+&quot;px&quot;,t.style(&quot;stroke-dasharray&quot;,L)}function z(){t.style(&quot;stroke-dasharray&quot;,&quot;0px,100px&quot;)}function D(e,a,o,u){e.path&amp;&amp;(e.noRotate&amp;&amp;(o=0),n.select(p.parentNode).append(&quot;path&quot;).attr({class:t.attr(&quot;class&quot;),d:e.path,transform:c(a.x,a.y)+l(180*o/Math.PI)+s(u)}).style({fill:i.rgb(r.arrowcolor),&quot;stroke-width&quot;:0}))}y&amp;&amp;D(g,o,f,v),x&amp;&amp;D(d,u,h,m)}},{&quot;../../lib&quot;:803,&quot;../color&quot;:666,&quot;./arrow_paths&quot;:648,&quot;@plotly/d3&quot;:58}],657:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./click&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;annotations&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:867,&quot;./attributes&quot;:649,&quot;./calc_autorange&quot;:650,&quot;./click&quot;:651,&quot;./convert_coords&quot;:653,&quot;./defaults&quot;:654,&quot;./draw&quot;:655}],658:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports=i(a(&quot;annotation&quot;,{visible:n.visible,x:{valType:&quot;any&quot;},y:{valType:&quot;any&quot;},z:{valType:&quot;any&quot;},ax:{valType:&quot;number&quot;},ay:{valType:&quot;number&quot;},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),&quot;calc&quot;,&quot;from-root&quot;)},{&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../annotations/attributes&quot;:649}],659:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:&quot;linear&quot;,autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r&lt;e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(&quot;.annotation-&quot;+t.id).remove()}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],660:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;../annotations/common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+&quot;axis&quot;,a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(&quot;visible&quot;)&amp;&amp;(o(t,e,a.fullLayout,l),c(&quot;x&quot;),c(&quot;y&quot;),c(&quot;z&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]),e.xref=&quot;x&quot;,e.yref=&quot;y&quot;,e.zref=&quot;z&quot;,l(&quot;xanchor&quot;),l(&quot;yanchor&quot;),l(&quot;xshift&quot;),l(&quot;yshift&quot;),e.showarrow&amp;&amp;(e.axref=&quot;pixel&quot;,e.ayref=&quot;pixel&quot;,l(&quot;ax&quot;,-10),l(&quot;ay&quot;,-30),n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;])))}e.exports=function(t,e,r){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l,fullLayout:r.fullLayout})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/axes&quot;:854,&quot;../annotations/common_defaults&quot;:652,&quot;./attributes&quot;:658}],661:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/draw&quot;).drawRaw,i=t(&quot;../../plots/gl3d/project&quot;),a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s&lt;o.length;s++){for(var l=o[s],c=!1,u=0;u&lt;3;u++){var f=a[u],h=l[f],p=e[f+&quot;axis&quot;].r2fraction(h);if(p&lt;0||p&gt;1){c=!0;break}}c?t.fullLayout._infolayer.select(&quot;.annotation-&quot;+t.id+'[data-index=&quot;'+s+'&quot;]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{&quot;../../plots/gl3d/project&quot;:905,&quot;../annotations/draw&quot;:655}],662:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations3d&quot;,schema:{subplots:{scene:{annotations:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s&lt;o.length;s++){var l=o[s];a.test(l)&amp;&amp;(t[l].annotations||[]).length&amp;&amp;(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(&quot;./convert&quot;),draw:t(&quot;./draw&quot;)}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:658,&quot;./convert&quot;:659,&quot;./defaults&quot;:660,&quot;./draw&quot;:661}],663:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;world-calendars/dist/main&quot;),t(&quot;world-calendars/dist/plus&quot;),t(&quot;world-calendars/dist/calendars/chinese&quot;),t(&quot;world-calendars/dist/calendars/coptic&quot;),t(&quot;world-calendars/dist/calendars/discworld&quot;),t(&quot;world-calendars/dist/calendars/ethiopian&quot;),t(&quot;world-calendars/dist/calendars/hebrew&quot;),t(&quot;world-calendars/dist/calendars/islamic&quot;),t(&quot;world-calendars/dist/calendars/julian&quot;),t(&quot;world-calendars/dist/calendars/mayan&quot;),t(&quot;world-calendars/dist/calendars/nanakshahi&quot;),t(&quot;world-calendars/dist/calendars/nepali&quot;),t(&quot;world-calendars/dist/calendars/persian&quot;),t(&quot;world-calendars/dist/calendars/taiwan&quot;),t(&quot;world-calendars/dist/calendars/thai&quot;),t(&quot;world-calendars/dist/calendars/ummalqura&quot;)},{&quot;world-calendars/dist/calendars/chinese&quot;:630,&quot;world-calendars/dist/calendars/coptic&quot;:631,&quot;world-calendars/dist/calendars/discworld&quot;:632,&quot;world-calendars/dist/calendars/ethiopian&quot;:633,&quot;world-calendars/dist/calendars/hebrew&quot;:634,&quot;world-calendars/dist/calendars/islamic&quot;:635,&quot;world-calendars/dist/calendars/julian&quot;:636,&quot;world-calendars/dist/calendars/mayan&quot;:637,&quot;world-calendars/dist/calendars/nanakshahi&quot;:638,&quot;world-calendars/dist/calendars/nepali&quot;:639,&quot;world-calendars/dist/calendars/persian&quot;:640,&quot;world-calendars/dist/calendars/taiwan&quot;:641,&quot;world-calendars/dist/calendars/thai&quot;:642,&quot;world-calendars/dist/calendars/ummalqura&quot;:643,&quot;world-calendars/dist/main&quot;:644,&quot;world-calendars/dist/plus&quot;:645}],664:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calendars&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.EPOCHJD,s=a.ONEDAY,l={valType:&quot;enumerated&quot;,values:i.sortObjectKeys(n.calendars),editType:&quot;calc&quot;,dflt:&quot;gregorian&quot;},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u={d:{0:&quot;dd&quot;,&quot;-&quot;:&quot;d&quot;},e:{0:&quot;d&quot;,&quot;-&quot;:&quot;d&quot;},a:{0:&quot;D&quot;,&quot;-&quot;:&quot;D&quot;},A:{0:&quot;DD&quot;,&quot;-&quot;:&quot;DD&quot;},j:{0:&quot;oo&quot;,&quot;-&quot;:&quot;o&quot;},W:{0:&quot;ww&quot;,&quot;-&quot;:&quot;w&quot;},m:{0:&quot;mm&quot;,&quot;-&quot;:&quot;m&quot;},b:{0:&quot;M&quot;,&quot;-&quot;:&quot;M&quot;},B:{0:&quot;MM&quot;,&quot;-&quot;:&quot;MM&quot;},y:{0:&quot;yy&quot;,&quot;-&quot;:&quot;yy&quot;},Y:{0:&quot;yyyy&quot;,&quot;-&quot;:&quot;yyyy&quot;},U:&quot;##&quot;,w:&quot;##&quot;,c:{0:&quot;D M d %X yyyy&quot;,&quot;-&quot;:&quot;D M d %X yyyy&quot;},x:{0:&quot;mm/dd/yyyy&quot;,&quot;-&quot;:&quot;mm/dd/yyyy&quot;}};var f={};function h(t){var e=f[t];return e||(e=f[t]=n.instance(t))}function p(t){return i.extendFlat({},l,{description:t})}function d(t){return&quot;Sets the calendar system to use with `&quot;+t+&quot;` date data.&quot;}var g={xcalendar:p(d(&quot;x&quot;))},m=i.extendFlat({},g,{ycalendar:p(d(&quot;y&quot;))}),v=i.extendFlat({},m,{zcalendar:p(d(&quot;z&quot;))}),y=p([&quot;Sets the calendar system to use for `range` and `tick0`&quot;,&quot;if this is a date axis. This does not set the calendar for&quot;,&quot;interpreting data on this axis, that's specified in the trace&quot;,&quot;or via the global `layout.calendar`&quot;].join(&quot; &quot;));e.exports={moduleType:&quot;component&quot;,name:&quot;calendars&quot;,schema:{traces:{scatter:m,bar:m,box:m,heatmap:m,contour:m,histogram:m,histogram2d:m,histogram2dcontour:m,scatter3d:v,surface:v,mesh3d:v,scattergl:m,ohlc:g,candlestick:g},layout:{calendar:p([&quot;Sets the default calendar system to use for interpreting and&quot;,&quot;displaying dates throughout the plot.&quot;].join(&quot; &quot;))},subplots:{xaxis:{calendar:y},yaxis:{calendar:y},scene:{xaxis:{calendar:y},yaxis:{calendar:y},zaxis:{calendar:y}},polar:{radialaxis:{calendar:y}}},transforms:{filter:{valuecalendar:p([&quot;WARNING: All transforms are deprecated and may be removed from the API in next major version.&quot;,&quot;Sets the calendar system to use for `value`, if it is a date.&quot;].join(&quot; &quot;)),targetcalendar:p([&quot;WARNING: All transforms are deprecated and may be removed from the API in next major version.&quot;,&quot;Sets the calendar system to use for `target`, if it is an&quot;,&quot;array of dates. If `target` is a string (eg *x*) we use the&quot;,&quot;corresponding trace attribute (eg `xcalendar`) if it exists,&quot;,&quot;even if `targetcalendar` is provided.&quot;].join(&quot; &quot;))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i&lt;r.length;i++)c(t,e,r[i]+&quot;calendar&quot;,n.calendar)},CANONICAL_SUNDAY:{chinese:&quot;2000-01-02&quot;,coptic:&quot;2000-01-03&quot;,discworld:&quot;2000-01-03&quot;,ethiopian:&quot;2000-01-05&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-02&quot;,julian:&quot;2000-01-03&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-05&quot;,nepali:&quot;2000-01-05&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-04&quot;,thai:&quot;2000-01-04&quot;,ummalqura:&quot;1400-01-06&quot;},CANONICAL_TICK:{chinese:&quot;2000-01-01&quot;,coptic:&quot;2000-01-01&quot;,discworld:&quot;2000-01-01&quot;,ethiopian:&quot;2000-01-01&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-01&quot;,julian:&quot;2000-01-01&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-01&quot;,nepali:&quot;2000-01-01&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-01&quot;,thai:&quot;2000-01-01&quot;,ummalqura:&quot;1400-01-01&quot;},DFLTRANGE:{chinese:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],coptic:[&quot;1700-01-01&quot;,&quot;1701-01-01&quot;],discworld:[&quot;1800-01-01&quot;,&quot;1801-01-01&quot;],ethiopian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],hebrew:[&quot;5700-01-01&quot;,&quot;5701-01-01&quot;],islamic:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],julian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],mayan:[&quot;5200-01-01&quot;,&quot;5201-01-01&quot;],nanakshahi:[&quot;0500-01-01&quot;,&quot;0501-01-01&quot;],nepali:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],persian:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],jalali:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],taiwan:[&quot;0100-01-01&quot;,&quot;0101-01-01&quot;],thai:[&quot;2500-01-01&quot;,&quot;2501-01-01&quot;],ummalqura:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;]},getCal:h,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,f=Math.floor((e+.05)/s)+o,p=h(r).fromJD(f),d=0;-1!==(d=t.indexOf(&quot;%&quot;,d));)&quot;0&quot;===(n=t.charAt(d+1))||&quot;-&quot;===n||&quot;_&quot;===n?(a=3,i=t.charAt(d+2),&quot;_&quot;===n&amp;&amp;(n=&quot;-&quot;)):(i=n,n=&quot;0&quot;,a=2),(l=u[i])?(c=&quot;##&quot;===l?&quot;##&quot;:p.formatDate(l[n]),t=t.substr(0,d)+c+t.substr(d+a),d+=c.length):d+=a;return t}}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;./calendars&quot;:663}],665:[function(t,e,r){&quot;use strict&quot;;r.defaults=[&quot;#1f77b4&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#d62728&quot;,&quot;#9467bd&quot;,&quot;#8c564b&quot;,&quot;#e377c2&quot;,&quot;#7f7f7f&quot;,&quot;#bcbd22&quot;,&quot;#17becf&quot;],r.defaultLine=&quot;#444&quot;,r.lightLine=&quot;#eee&quot;,r.background=&quot;#fff&quot;,r.borderLine=&quot;#BEC8D9&quot;,r.lightFraction=1e3/11},{}],666:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib/array&quot;).isTypedArray,o=e.exports={},s=t(&quot;./attributes&quot;);o.defaults=s.defaults;var l=o.defaultLine=s.defaultLine;o.lightLine=s.lightLine;var c=o.background=s.background;function u(t){if(i(t)||&quot;string&quot;!=typeof t)return t;var e=t.trim();if(&quot;rgb&quot;!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var n=r[1].trim().split(/\s*[\s,]\s*/),a=&quot;a&quot;===e.charAt(3)&amp;&amp;4===n.length;if(!a&amp;&amp;3!==n.length)return t;for(var o=0;o&lt;n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]&gt;=0))return t;if(3===o)n[o]&gt;1&amp;&amp;(n[o]=1);else if(n[o]&gt;=1)return t}var s=Math.round(255*n[0])+&quot;, &quot;+Math.round(255*n[1])+&quot;, &quot;+Math.round(255*n[2]);return a?&quot;rgba(&quot;+s+&quot;, &quot;+n[3]+&quot;)&quot;:&quot;rgb(&quot;+s+&quot;)&quot;}o.tinyRGB=function(t){var e=t.toRgb();return&quot;rgb(&quot;+Math.round(e.r)+&quot;, &quot;+Math.round(e.g)+&quot;, &quot;+Math.round(e.b)+&quot;)&quot;},o.rgb=function(t){return o.tinyRGB(n(t))},o.opacity=function(t){return t?n(t).getAlpha():0},o.addOpacity=function(t,e){var r=n(t).toRgb();return&quot;rgba(&quot;+Math.round(r.r)+&quot;, &quot;+Math.round(r.g)+&quot;, &quot;+Math.round(r.b)+&quot;, &quot;+e+&quot;)&quot;},o.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||c).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&amp;&amp;(i=n(o.combine(t,c))),(i.isDark()?e?i.lighten(e):c:r?i.darken(r):l).toString()},o.stroke=function(t,e){var r=n(e);t.style({stroke:o.tinyRGB(r),&quot;stroke-opacity&quot;:r.getAlpha()})},o.fill=function(t,e){var r=n(e);t.style({fill:o.tinyRGB(r),&quot;fill-opacity&quot;:r.getAlpha()})},o.clean=function(t){if(t&amp;&amp;&quot;object&quot;==typeof t){var e,r,n,i,s=Object.keys(t);for(e=0;e&lt;s.length;e++)if(i=t[n=s[e]],&quot;color&quot;===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r&lt;i.length;r++)i[r]=u(i[r]);else t[n]=u(i);else if(&quot;colorscale&quot;===n.substr(n.length-10)&amp;&amp;Array.isArray(i))for(r=0;r&lt;i.length;r++)Array.isArray(i[r])&amp;&amp;(i[r][1]=u(i[r][1]));else if(Array.isArray(i)){var l=i[0];if(!Array.isArray(l)&amp;&amp;l&amp;&amp;&quot;object&quot;==typeof l)for(r=0;r&lt;i.length;r++)o.clean(i[r])}else i&amp;&amp;&quot;object&quot;==typeof i&amp;&amp;!a(i)&amp;&amp;o.clean(i)}}},{&quot;../../lib/array&quot;:785,&quot;./attributes&quot;:665,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],667:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/layout_attributes&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports=o({thicknessmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;pixels&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:30},lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,dflt:1.02,min:-2,max:3},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},xpad:{valType:&quot;number&quot;,min:0,dflt:10},y:{valType:&quot;number&quot;,dflt:.5,min:-2,max:3},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;},ypad:{valType:&quot;number&quot;,min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:&quot;number&quot;,min:0,dflt:0},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:&quot;&quot;}),ticklabeloverflow:a({},n.ticklabeloverflow,{}),ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:&quot;string&quot;},font:i({}),side:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}},_deprecated:{title:{valType:&quot;string&quot;},titlefont:i({}),titleside:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}}},&quot;colorbars&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/font_attributes&quot;:883}],668:[function(t,e,r){&quot;use strict&quot;;e.exports={cn:{colorbar:&quot;colorbar&quot;,cbbg:&quot;cbbg&quot;,cbfill:&quot;cbfill&quot;,cbfills:&quot;cbfills&quot;,cbline:&quot;cbline&quot;,cblines:&quot;cblines&quot;,cbaxis:&quot;cbaxis&quot;,cbtitleunshift:&quot;cbtitleunshift&quot;,cbtitle:&quot;cbtitle&quot;,cboutline:&quot;cboutline&quot;,crisp:&quot;crisp&quot;,jsPlaceholder:&quot;js-placeholder&quot;}}},{}],669:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),o=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),s=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var c=i.newContainer(e,&quot;colorbar&quot;),u=t.colorbar||{};function f(t,e){return n.coerce(u,c,l,t,e)}var h=f(&quot;thicknessmode&quot;);f(&quot;thickness&quot;,&quot;fraction&quot;===h?30/(r.width-r.margin.l-r.margin.r):30);var p=f(&quot;lenmode&quot;);f(&quot;len&quot;,&quot;fraction&quot;===p?1:r.height-r.margin.t-r.margin.b),f(&quot;x&quot;),f(&quot;xanchor&quot;),f(&quot;xpad&quot;),f(&quot;y&quot;),f(&quot;yanchor&quot;),f(&quot;ypad&quot;),n.noneOrAll(u,c,[&quot;x&quot;,&quot;y&quot;]),f(&quot;outlinecolor&quot;),f(&quot;outlinewidth&quot;),f(&quot;bordercolor&quot;),f(&quot;borderwidth&quot;),f(&quot;bgcolor&quot;);var d=f(&quot;ticklabelposition&quot;);f(&quot;ticklabeloverflow&quot;,-1!==d.indexOf(&quot;inside&quot;)?&quot;hide past domain&quot;:&quot;hide past div&quot;),a(u,c,f,&quot;linear&quot;);var g=r.font,m={outerTicks:!1,font:g};-1!==d.indexOf(&quot;inside&quot;)&amp;&amp;(m.bgColor=&quot;black&quot;),s(u,c,f,&quot;linear&quot;,m),o(u,c,f,&quot;linear&quot;,m),f(&quot;title.text&quot;,r._dfltTitle.colorbar);var v=c.tickfont,y=n.extendFlat({},v,{color:g.color,size:n.bigFont(v.size)});n.coerceFont(f,&quot;title.font&quot;,y),f(&quot;title.side&quot;)}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/tick_label_defaults&quot;:876,&quot;../../plots/cartesian/tick_mark_defaults&quot;:877,&quot;../../plots/cartesian/tick_value_defaults&quot;:878,&quot;./attributes&quot;:667}],670:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../lib/setcursor&quot;),p=t(&quot;../drawing&quot;),d=t(&quot;../color&quot;),g=t(&quot;../titles&quot;),m=t(&quot;../../lib/svg_text_utils&quot;),v=t(&quot;../colorscale/helpers&quot;).flipScale,y=t(&quot;../../plots/cartesian/axis_defaults&quot;),x=t(&quot;../../plots/cartesian/position_defaults&quot;),b=t(&quot;../../plots/cartesian/layout_attributes&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.LINE_SPACING,T=_.FROM_TL,k=_.FROM_BR,A=t(&quot;./constants&quot;).cn;e.exports={draw:function(t){var e=t._fullLayout._infolayer.selectAll(&quot;g.&quot;+A.colorbar).data(function(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return f(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){&quot;function&quot;==typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var u=0;u&lt;o.length;u++){var h=o[u],p=(n=h[0].trace)._module.colorbar;if(!0===n.visible&amp;&amp;p)for(var d=Array.isArray(p),g=d?p:[p],m=0;m&lt;g.length;m++){var y=(i=g[m]).container;(r=y?n[y]:n)&amp;&amp;r.showscale&amp;&amp;((e=l(r.colorbar))._id=&quot;cb&quot;+n.uid+(d&amp;&amp;y?&quot;-&quot;+y:&quot;&quot;),e._traceIndex=n.index,e._propPrefix=(y?y+&quot;.&quot;:&quot;&quot;)+&quot;colorbar.&quot;,e._meta=n._meta,c(),s.push(e))}}for(var x in a._colorAxes)if((r=a[x]).showscale){var b=a._colorAxes[x];(e=l(r.colorbar))._id=&quot;cb&quot;+x,e._propPrefix=x+&quot;.colorbar.&quot;,e._meta=a._meta,i={min:&quot;cmin&quot;,max:&quot;cmax&quot;},&quot;heatmap&quot;!==b[0]&amp;&amp;(n=b[1],i.calc=n._module.colorbar.calc),c(),s.push(e)}return s}(t),(function(t){return t._id}));e.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t._id})).classed(A.colorbar,!0),e.each((function(e){var r=n.select(this);c.ensureSingle(r,&quot;rect&quot;,A.cbbg),c.ensureSingle(r,&quot;g&quot;,A.cbfills),c.ensureSingle(r,&quot;g&quot;,A.cblines),c.ensureSingle(r,&quot;g&quot;,A.cbaxis,(function(t){t.classed(A.crisp,!0)})),c.ensureSingle(r,&quot;g&quot;,A.cbtitleunshift,(function(t){t.append(&quot;g&quot;).classed(A.cbtitle,!0)})),c.ensureSingle(r,&quot;rect&quot;,A.cboutline);var v=function(t,e,r){var o=r._fullLayout,l=o._size,h=e._fillcolor,v=e._line,_=e.title,M=_.side,S=e._zrange||n.extent((&quot;function&quot;==typeof h?h:v.color).domain()),E=&quot;function&quot;==typeof v.color?v.color:function(){return v.color},L=&quot;function&quot;==typeof h?h:function(){return h},C=e._levels,P=function(t,e,r){var n,i,a=e._levels,o=[],s=[],l=a.end+a.size/100,c=a.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(i=0;i&lt;1e5&amp;&amp;(n=a.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;u&amp;&amp;n&lt;f&amp;&amp;o.push(n);if(e._fillgradient)s=[0];else if(&quot;function&quot;==typeof e._fillcolor){var h=e._filllevels;if(h)for(l=h.end+h.size/100,c=h.size,i=0;i&lt;1e5&amp;&amp;(n=h.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;r[0]&amp;&amp;n&lt;r[1]&amp;&amp;s.push(n);else(s=o.map((function(t){return t-a.size/2}))).push(s[s.length-1]+a.size)}else e._fillcolor&amp;&amp;&quot;string&quot;==typeof e._fillcolor&amp;&amp;(s=[0]);a.size&lt;0&amp;&amp;(o.reverse(),s.reverse());return{line:o,fill:s}}(0,e,S),I=P.fill,O=P.line,z=Math.round(e.thickness*(&quot;fraction&quot;===e.thicknessmode?l.w:1)),D=z/l.w,R=Math.round(e.len*(&quot;fraction&quot;===e.lenmode?l.h:1)),F=R/l.h,B=e.xpad/l.w,N=(e.borderwidth+e.outlinewidth)/2,j=e.ypad/l.h,U=Math.round(e.x*l.w+e.xpad),V=e.x-D*({middle:.5,right:1}[e.xanchor]||0),q=e.y+F*(({top:-.5,bottom:.5}[e.yanchor]||0)-.5),H=Math.round(l.h*(1-q)),G=H-R;e._lenFrac=F,e._thickFrac=D,e._xLeftFrac=V,e._yBottomFrac=q;var Y=e._axis=function(t,e,r){var n=t._fullLayout,i={type:&quot;linear&quot;,range:r,tickmode:e.tickmode,nticks:e.nticks,tick0:e.tick0,dtick:e.dtick,tickvals:e.tickvals,ticktext:e.ticktext,ticks:e.ticks,ticklen:e.ticklen,tickwidth:e.tickwidth,tickcolor:e.tickcolor,showticklabels:e.showticklabels,ticklabelposition:e.ticklabelposition,ticklabeloverflow:e.ticklabeloverflow,tickfont:e.tickfont,tickangle:e.tickangle,tickformat:e.tickformat,exponentformat:e.exponentformat,minexponent:e.minexponent,separatethousands:e.separatethousands,showexponent:e.showexponent,showtickprefix:e.showtickprefix,tickprefix:e.tickprefix,showticksuffix:e.showticksuffix,ticksuffix:e.ticksuffix,title:e.title,showline:!0,anchor:&quot;free&quot;,side:&quot;right&quot;,position:1},a={type:&quot;linear&quot;,_id:&quot;y&quot;+e._id},o={letter:&quot;y&quot;,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function s(t,e){return c.coerce(i,a,b,t,e)}return y(i,a,s,o,n),x(i,a,s,o),a}(r,e,S);Y.position=e.x+B+D,-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(M)&amp;&amp;(Y.title.side=M,Y.titlex=e.x+B,Y.titley=q+(&quot;top&quot;===_.side?F-j:j));if(v.color&amp;&amp;&quot;auto&quot;===e.tickmode){Y.tickmode=&quot;linear&quot;,Y.tick0=C.start;var W=C.size,X=c.constrain((H-G)/50,4,15)+1,Z=(S[1]-S[0])/((e.nticks||X)*W);if(Z&gt;1){var J=Math.pow(10,Math.floor(Math.log(Z)/Math.LN10));W*=J*c.roundUp(Z/J,[2,5,10]),(Math.abs(C.start)/C.size+1e-6)%1&lt;2e-6&amp;&amp;(Y.tick0=0)}Y.dtick=W}Y.domain=[q+j,q+F-j],Y.setScale(),t.attr(&quot;transform&quot;,u(Math.round(l.l),Math.round(l.t)));var K,Q=t.select(&quot;.&quot;+A.cbtitleunshift).attr(&quot;transform&quot;,u(-Math.round(l.l),-Math.round(l.t))),$=t.select(&quot;.&quot;+A.cbaxis),tt=0;function et(n,i){var a={propContainer:Y,propName:e._propPrefix+&quot;title&quot;,traceIndex:e._traceIndex,_meta:e._meta,placeholder:o._dfltTitle.colorbar,containerGroup:t.select(&quot;.&quot;+A.cbtitle)},s=&quot;h&quot;===n.charAt(0)?n.substr(1):&quot;h&quot;+n;t.selectAll(&quot;.&quot;+s+&quot;,.&quot;+s+&quot;-math-group&quot;).remove(),g.draw(r,n,f(a,i||{}))}return c.syncOrAsync([a.previousPromises,function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(M)){var t,r=l.l+(e.x+B)*l.w,n=Y.title.font.size;t=&quot;top&quot;===M?(1-(q+F-j))*l.h+l.t+3+.75*n:(1-(q+j))*l.h+l.t-3-.25*n,et(Y._id+&quot;title&quot;,{attributes:{x:r,y:t,&quot;text-anchor&quot;:&quot;start&quot;}})}},function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(M)){var a=t.select(&quot;.&quot;+A.cbtitle),o=a.select(&quot;text&quot;),f=[-e.outlinewidth/2,e.outlinewidth/2],h=a.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node(),d=15.6;if(o.node()&amp;&amp;(d=parseInt(o.node().style.fontSize,10)*w),h?(tt=p.bBox(h).height)&gt;d&amp;&amp;(f[1]-=(tt-d)/2):o.node()&amp;&amp;!o.classed(A.jsPlaceholder)&amp;&amp;(tt=p.bBox(o.node()).height),tt){if(tt+=5,&quot;top&quot;===M)Y.domain[1]-=tt/l.h,f[1]*=-1;else{Y.domain[0]+=tt/l.h;var g=m.lineCount(o);f[1]+=(1-g)*d}a.attr(&quot;transform&quot;,u(f[0],f[1])),Y.setScale()}}t.selectAll(&quot;.&quot;+A.cbfills+&quot;,.&quot;+A.cblines).attr(&quot;transform&quot;,u(0,Math.round(l.h*(1-Y.domain[1])))),$.attr(&quot;transform&quot;,u(0,Math.round(-l.t)));var y=t.select(&quot;.&quot;+A.cbfills).selectAll(&quot;rect.&quot;+A.cbfill).attr(&quot;style&quot;,&quot;&quot;).data(I);y.enter().append(&quot;rect&quot;).classed(A.cbfill,!0).style(&quot;stroke&quot;,&quot;none&quot;),y.exit().remove();var x=S.map(Y.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var o=[0===a?S[0]:(I[a]+I[a-1])/2,a===I.length-1?S[1]:(I[a]+I[a+1])/2].map(Y.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]&gt;o[0])?1:-1,x[0],x[1]);var s=n.select(this).attr({x:U,width:Math.max(z,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(e._fillgradient)p.gradient(s,r,e._id,&quot;vertical&quot;,e._fillgradient,&quot;fill&quot;);else{var l=L(t).replace(&quot;e-&quot;,&quot;&quot;);s.attr(&quot;fill&quot;,i(l).toHexString())}}));var b=t.select(&quot;.&quot;+A.cblines).selectAll(&quot;path.&quot;+A.cbline).data(v.color&amp;&amp;v.width?O:[]);b.enter().append(&quot;path&quot;).classed(A.cbline,!0),b.exit().remove(),b.each((function(t){n.select(this).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;,&quot;+(Math.round(Y.c2p(t))+v.width/2%1)+&quot;h&quot;+z).call(p.lineGroupStyle,v.width,E(t),v.dash)})),$.selectAll(&quot;g.&quot;+Y._id+&quot;tick,path&quot;).remove();var _=U+z+(e.outlinewidth||0)/2-(&quot;outside&quot;===e.ticks?1:0),T=s.calcTicks(Y),k=s.getTickSigns(Y)[2];return s.drawTicks(r,Y,{vals:&quot;inside&quot;===Y.ticks?s.clipEnds(Y,T):T,layer:$,path:s.makeTickPath(Y,_,k),transFn:s.makeTransTickFn(Y)}),s.drawLabels(r,Y,{vals:T,layer:$,transFn:s.makeTransTickLabelFn(Y),labelFns:s.makeLabelFns(Y,_)})},function(){if(-1===[&quot;top&quot;,&quot;bottom&quot;].indexOf(M)){var t=Y.title.font.size,e=Y._offset+Y._length/2,i=l.l+(Y.position||0)*l.w+(&quot;right&quot;===Y.side?10+t*(Y.showticklabels?1:.5):-10-t*(Y.showticklabels?.5:0));et(&quot;h&quot;+Y._id+&quot;title&quot;,{avoid:{selection:n.select(r).selectAll(&quot;g.&quot;+Y._id+&quot;tick&quot;),side:M,offsetLeft:l.l,offsetTop:0,maxShift:o.width},attributes:{x:i,y:e,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:&quot;-90&quot;,offset:0}})}},a.previousPromises,function(){var n=z+e.outlinewidth/2;if(-1===Y.ticklabelposition.indexOf(&quot;inside&quot;)&amp;&amp;(n+=p.bBox($.node()).width),(K=Q.select(&quot;text&quot;)).node()&amp;&amp;!K.classed(A.jsPlaceholder)){var i,o=Q.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node();i=o&amp;&amp;-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(M)?p.bBox(o).width:p.bBox(Q.node()).right-U-l.l,n=Math.max(n,i)}var s=2*e.xpad+n+e.borderwidth+e.outlinewidth/2,c=H-G;t.select(&quot;.&quot;+A.cbbg).attr({x:U-e.xpad-(e.borderwidth+e.outlinewidth)/2,y:G-N,width:Math.max(s,2),height:Math.max(c+2*N,2)}).call(d.fill,e.bgcolor).call(d.stroke,e.bordercolor).style(&quot;stroke-width&quot;,e.borderwidth),t.selectAll(&quot;.&quot;+A.cboutline).attr({x:U,y:G+e.ypad+(&quot;top&quot;===M?tt:0),width:Math.max(z,2),height:Math.max(c-2*e.ypad-tt,2)}).call(d.stroke,e.outlinecolor).style({fill:&quot;none&quot;,&quot;stroke-width&quot;:e.outlinewidth});var f=({center:.5,right:1}[e.xanchor]||0)*s;t.attr(&quot;transform&quot;,u(l.l-f,l.t));var h={},g=T[e.yanchor],m=k[e.yanchor];&quot;pixels&quot;===e.lenmode?(h.y=e.y,h.t=c*g,h.b=c*m):(h.t=h.b=0,h.yt=e.y+e.len*g,h.yb=e.y-e.len*m);var v=T[e.xanchor],y=k[e.xanchor];if(&quot;pixels&quot;===e.thicknessmode)h.x=e.x,h.l=s*v,h.r=s*y;else{var x=s-z;h.l=x*v,h.r=x*y,h.xl=e.x-e.thickness*v,h.xr=e.x+e.thickness*y}a.autoMargin(r,e._id,h)}],r)}(r,e,t);v&amp;&amp;v.then&amp;&amp;(t._promises||[]).push(v),t._context.edits.colorbarPosition&amp;&amp;function(t,e,r){var n,i,a,s=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr(&quot;transform&quot;),h(t)},moveFn:function(r,o){t.attr(&quot;transform&quot;,n+u(r,o)),i=l.align(e._xLeftFrac+r/s.w,e._thickFrac,0,1,e.xanchor),a=l.align(e._yBottomFrac-o/s.h,e._lenFrac,0,1,e.yanchor);var c=l.getCursor(i,a,e.xanchor,e.yanchor);h(t,c)},doneFn:function(){if(h(t),void 0!==i&amp;&amp;void 0!==a){var n={};n[e._propPrefix+&quot;x&quot;]=i,n[e._propPrefix+&quot;y&quot;]=a,void 0!==e._traceIndex?o.call(&quot;_guiRestyle&quot;,r,n,e._traceIndex):o.call(&quot;_guiRelayout&quot;,r,n)}}})}(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/extend&quot;:793,&quot;../../lib/setcursor&quot;:824,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/axis_defaults&quot;:856,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/cartesian/position_defaults&quot;:872,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../colorscale/helpers&quot;:677,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;../titles&quot;:764,&quot;./constants&quot;:668,&quot;@plotly/d3&quot;:58,tinycolor2:598}],671:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t){return n.isPlainObject(t.colorbar)}},{&quot;../../lib&quot;:803}],672:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;colorbar&quot;,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;).draw,hasColorbar:t(&quot;./has_colorbar&quot;)}},{&quot;./attributes&quot;:667,&quot;./defaults&quot;:669,&quot;./draw&quot;:670,&quot;./has_colorbar&quot;:671}],673:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../colorbar/attributes&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../lib/sort_object_keys&quot;),o=t(&quot;./scales.js&quot;).scales;a(o);function s(t){return&quot;`&quot;+t+&quot;`&quot;}e.exports=function(t,e){t=t||&quot;&quot;;var r,a=(e=e||{}).cLetter||&quot;c&quot;,l=(&quot;onlyIfNumerical&quot;in e?e.onlyIfNumerical:Boolean(t),&quot;noScale&quot;in e?e.noScale:&quot;marker.line&quot;===t),c=&quot;showScaleDflt&quot;in e?e.showScaleDflt:&quot;z&quot;===a,u=&quot;string&quot;==typeof e.colorscaleDflt?o[e.colorscaleDflt]:null,f=e.editTypeOverride||&quot;&quot;,h=t?t+&quot;.&quot;:&quot;&quot;;&quot;colorAttr&quot;in e?(r=e.colorAttr,e.colorAttr):s(h+(r={z:&quot;z&quot;,c:&quot;color&quot;}[a]));var p=a+&quot;auto&quot;,d=a+&quot;min&quot;,g=a+&quot;max&quot;,m=a+&quot;mid&quot;,v=(s(h+p),s(h+d),s(h+g),{});v[d]=v[g]=void 0;var y={};y[p]=!1;var x={};return&quot;color&quot;===r&amp;&amp;(x.color={valType:&quot;color&quot;,arrayOk:!0,editType:f||&quot;style&quot;},e.anim&amp;&amp;(x.color.anim=!0)),x[p]={valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:v},x[d]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[g]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[m]={valType:&quot;number&quot;,dflt:null,editType:&quot;calc&quot;,impliedEdits:v},x.colorscale={valType:&quot;colorscale&quot;,editType:&quot;calc&quot;,dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:&quot;boolean&quot;,dflt:!1!==e.autoColorDflt,editType:&quot;calc&quot;,impliedEdits:{colorscale:void 0}},x.reversescale={valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},l||(x.showscale={valType:&quot;boolean&quot;,dflt:c,editType:&quot;calc&quot;},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:&quot;subplotid&quot;,regex:i(&quot;coloraxis&quot;),dflt:null,editType:&quot;calc&quot;}),x}},{&quot;../../lib/regex&quot;:820,&quot;../../lib/sort_object_keys&quot;:826,&quot;../colorbar/attributes&quot;:667,&quot;./scales.js&quot;:681}],674:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),h=!1!==f.auto,p=f.min,d=f.max,g=f.mid,m=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===p?p=m():h&amp;&amp;(p=u._colorAx&amp;&amp;n(p)?Math.min(p,m()):m()),void 0===d?d=v():h&amp;&amp;(d=u._colorAx&amp;&amp;n(d)?Math.max(d,v()):v()),h&amp;&amp;void 0!==g&amp;&amp;(d-g&gt;g-p?p=g-(d-g):d-g&lt;g-p&amp;&amp;(d=g+(g-p))),p===d&amp;&amp;(p-=.5,d+=.5),f._sync(&quot;min&quot;,p),f._sync(&quot;max&quot;,d),f.autocolorscale)&amp;&amp;(o=p*d&lt;0?s.colorscale.diverging:p&gt;=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync(&quot;colorscale&quot;,o))}},{&quot;../../lib&quot;:803,&quot;./helpers&quot;:677,&quot;fast-isnumeric&quot;:249}],675:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).hasColorscale,a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e){function r(t,e){var r=t[&quot;_&quot;+e];void 0!==r&amp;&amp;(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&amp;&amp;r(o,i.min),(l||void 0===s.max)&amp;&amp;r(o,i.max),s.autocolorscale&amp;&amp;r(o,&quot;colorscale&quot;)}}for(var s=0;s&lt;t.length;s++){var l=t[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u&lt;c.length;u++)o(l,c[u]);else o(l,c);i(l,&quot;marker.line&quot;)&amp;&amp;o(l,{container:&quot;marker.line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;})}for(var f in e._colorAxes)o(e[f],{min:&quot;cmin&quot;,max:&quot;cmax&quot;})}},{&quot;../../lib&quot;:803,&quot;./helpers&quot;:677}],676:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../colorbar/has_colorbar&quot;),o=t(&quot;../colorbar/defaults&quot;),s=t(&quot;./scales&quot;).isValid,l=t(&quot;../../registry&quot;).traceIs;function c(t,e){var r=e.slice(0,e.length-1);return e?i.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,r,u,f,h){var p=h.prefix,d=h.cLetter,g=&quot;_module&quot;in r,m=c(e,p),v=c(r,p),y=c(r._template||{},p)||{},x=function(){return delete e.coloraxis,delete r.coloraxis,t(e,r,u,f,h)};if(g){var b=u._colorAxes||{},_=f(p+&quot;coloraxis&quot;);if(_){var w=l(r,&quot;contour&quot;)&amp;&amp;i.nestedProperty(r,&quot;contours.coloring&quot;).get()||&quot;heatmap&quot;,T=b[_];return void(T?(T[2].push(x),T[0]!==w&amp;&amp;(T[0]=!1,i.warn([&quot;Ignoring coloraxis:&quot;,_,&quot;setting&quot;,&quot;as it is linked to incompatible colorscales.&quot;].join(&quot; &quot;)))):b[_]=[w,r,[x]])}}var k=m[d+&quot;min&quot;],A=m[d+&quot;max&quot;],M=n(k)&amp;&amp;n(A)&amp;&amp;k&lt;A;f(p+d+&quot;auto&quot;,!M)?f(p+d+&quot;mid&quot;):(f(p+d+&quot;min&quot;),f(p+d+&quot;max&quot;));var S,E,L=m.colorscale,C=y.colorscale;(void 0!==L&amp;&amp;(S=!s(L)),void 0!==C&amp;&amp;(S=!s(C)),f(p+&quot;autocolorscale&quot;,S),f(p+&quot;colorscale&quot;),f(p+&quot;reversescale&quot;),&quot;marker.line.&quot;!==p)&amp;&amp;(p&amp;&amp;g&amp;&amp;(E=a(m)),f(p+&quot;showscale&quot;,E)&amp;&amp;(p&amp;&amp;y&amp;&amp;(v._template=y),o(m,v,u)))}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../colorbar/defaults&quot;:669,&quot;../colorbar/has_colorbar&quot;:671,&quot;./scales&quot;:681,&quot;fast-isnumeric&quot;:249}],677:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../color&quot;),l=t(&quot;./scales&quot;).isValid;var c=[&quot;showscale&quot;,&quot;autocolorscale&quot;,&quot;colorscale&quot;,&quot;reversescale&quot;,&quot;colorbar&quot;],u=[&quot;min&quot;,&quot;max&quot;,&quot;mid&quot;,&quot;auto&quot;];function f(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r&lt;c.length;r++)o[n=c[r]]=a[n];if(i)for(e=&quot;c&quot;,r=0;r&lt;u.length;r++)o[n=u[r]]=a[&quot;c&quot;+n];else{var s;for(r=0;r&lt;u.length;r++)((s=&quot;c&quot;+(n=u[r]))in a||(s=&quot;z&quot;+n)in a)&amp;&amp;(o[n]=a[s]);e=s.charAt(0)}return o._sync=function(t,r){var n=-1!==u.indexOf(t)?e+t:t;a[n]=a[&quot;_&quot;+n]=r},o}function h(t){for(var e=f(t),r=e.min,n=e.max,i=e.reversescale?p(e.colorscale):e.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l&lt;a;l++){var c=i[l];o[l]=r+c[0]*(n-r),s[l]=c[1]}return{domain:o,range:s}}function p(t){for(var e=t.length,r=new Array(e),n=e-1,i=0;n&gt;=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function d(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u&lt;l;u++){var f=i(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var h,p=n.scale.linear().domain(r).range(c).clamp(!0),d=e.noNumericCheck,m=e.returnArray;return(h=d&amp;&amp;m?p:d?function(t){return g(p(t))}:m?function(t){return a(t)?p(t):i(t).isValid()?t:s.defaultLine}:function(t){return a(t)?g(p(t)):i(t).isValid()?t:s.defaultLine}).domain=p.domain,h.range=function(){return o},h}function g(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports={hasColorscale:function(t,e,r){var n=e?o.nestedProperty(t,e).get()||{}:t,i=n[r||&quot;color&quot;],s=!1;if(o.isArrayOrTypedArray(i))for(var c=0;c&lt;i.length;c++)if(a(i[c])){s=!0;break}return o.isPlainObject(n)&amp;&amp;(s||!0===n.showscale||a(n.cmin)&amp;&amp;a(n.cmax)||l(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:h,flipScale:p,makeColorScaleFunc:d,makeColorScaleFuncFromTrace:function(t,e){return d(h(t),e)}}},{&quot;../../lib&quot;:803,&quot;../color&quot;:666,&quot;./scales&quot;:681,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],678:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./scales&quot;),i=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;colorscale&quot;,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),handleDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},{&quot;./attributes&quot;:673,&quot;./calc&quot;:674,&quot;./cross_trace_defaults&quot;:675,&quot;./defaults&quot;:676,&quot;./helpers&quot;:677,&quot;./layout_attributes&quot;:679,&quot;./layout_defaults&quot;:680,&quot;./scales&quot;:681}],679:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;./attributes&quot;),a=t(&quot;./scales&quot;).scales;e.exports={editType:&quot;calc&quot;,colorscale:{editType:&quot;calc&quot;,sequential:{valType:&quot;colorscale&quot;,dflt:a.Reds,editType:&quot;calc&quot;},sequentialminus:{valType:&quot;colorscale&quot;,dflt:a.Blues,editType:&quot;calc&quot;},diverging:{valType:&quot;colorscale&quot;,dflt:a.RdBu,editType:&quot;calc&quot;}},coloraxis:n({_isSubplotObj:!0,editType:&quot;calc&quot;},i(&quot;&quot;,{colorAttr:&quot;corresponding trace color array(s)&quot;,noColorAxis:!0,showScaleDflt:!0}))}},{&quot;../../lib/extend&quot;:793,&quot;./attributes&quot;:673,&quot;./scales&quot;:681}],680:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;./layout_attributes&quot;),o=t(&quot;./defaults&quot;);e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}r(&quot;colorscale.sequential&quot;),r(&quot;colorscale.sequentialminus&quot;),r(&quot;colorscale.diverging&quot;);var s,l,c=e._colorAxes;function u(t,e){return n.coerce(s,l,a.coloraxis,t,e)}for(var f in c){var h=c[f];if(h[0])s=t[f]||{},(l=i.newContainer(e,f,&quot;coloraxis&quot;))._name=f,o(s,l,e,u,{prefix:&quot;&quot;,cLetter:&quot;c&quot;});else{for(var p=0;p&lt;h[2].length;p++)h[2][p]();delete e._colorAxes[f]}}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;./defaults&quot;:676,&quot;./layout_attributes&quot;:679}],681:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i={Greys:[[0,&quot;rgb(0,0,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],YlGnBu:[[0,&quot;rgb(8,29,88)&quot;],[.125,&quot;rgb(37,52,148)&quot;],[.25,&quot;rgb(34,94,168)&quot;],[.375,&quot;rgb(29,145,192)&quot;],[.5,&quot;rgb(65,182,196)&quot;],[.625,&quot;rgb(127,205,187)&quot;],[.75,&quot;rgb(199,233,180)&quot;],[.875,&quot;rgb(237,248,217)&quot;],[1,&quot;rgb(255,255,217)&quot;]],Greens:[[0,&quot;rgb(0,68,27)&quot;],[.125,&quot;rgb(0,109,44)&quot;],[.25,&quot;rgb(35,139,69)&quot;],[.375,&quot;rgb(65,171,93)&quot;],[.5,&quot;rgb(116,196,118)&quot;],[.625,&quot;rgb(161,217,155)&quot;],[.75,&quot;rgb(199,233,192)&quot;],[.875,&quot;rgb(229,245,224)&quot;],[1,&quot;rgb(247,252,245)&quot;]],YlOrRd:[[0,&quot;rgb(128,0,38)&quot;],[.125,&quot;rgb(189,0,38)&quot;],[.25,&quot;rgb(227,26,28)&quot;],[.375,&quot;rgb(252,78,42)&quot;],[.5,&quot;rgb(253,141,60)&quot;],[.625,&quot;rgb(254,178,76)&quot;],[.75,&quot;rgb(254,217,118)&quot;],[.875,&quot;rgb(255,237,160)&quot;],[1,&quot;rgb(255,255,204)&quot;]],Bluered:[[0,&quot;rgb(0,0,255)&quot;],[1,&quot;rgb(255,0,0)&quot;]],RdBu:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(106,137,247)&quot;],[.5,&quot;rgb(190,190,190)&quot;],[.6,&quot;rgb(220,170,132)&quot;],[.7,&quot;rgb(230,145,90)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Reds:[[0,&quot;rgb(220,220,220)&quot;],[.2,&quot;rgb(245,195,157)&quot;],[.4,&quot;rgb(245,160,105)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Blues:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(40,60,190)&quot;],[.5,&quot;rgb(70,100,245)&quot;],[.6,&quot;rgb(90,120,245)&quot;],[.7,&quot;rgb(106,137,247)&quot;],[1,&quot;rgb(220,220,220)&quot;]],Picnic:[[0,&quot;rgb(0,0,255)&quot;],[.1,&quot;rgb(51,153,255)&quot;],[.2,&quot;rgb(102,204,255)&quot;],[.3,&quot;rgb(153,204,255)&quot;],[.4,&quot;rgb(204,204,255)&quot;],[.5,&quot;rgb(255,255,255)&quot;],[.6,&quot;rgb(255,204,255)&quot;],[.7,&quot;rgb(255,153,255)&quot;],[.8,&quot;rgb(255,102,204)&quot;],[.9,&quot;rgb(255,102,102)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Rainbow:[[0,&quot;rgb(150,0,90)&quot;],[.125,&quot;rgb(0,0,200)&quot;],[.25,&quot;rgb(0,25,255)&quot;],[.375,&quot;rgb(0,152,255)&quot;],[.5,&quot;rgb(44,255,150)&quot;],[.625,&quot;rgb(151,255,0)&quot;],[.75,&quot;rgb(255,234,0)&quot;],[.875,&quot;rgb(255,111,0)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Portland:[[0,&quot;rgb(12,51,131)&quot;],[.25,&quot;rgb(10,136,186)&quot;],[.5,&quot;rgb(242,211,56)&quot;],[.75,&quot;rgb(242,143,56)&quot;],[1,&quot;rgb(217,30,30)&quot;]],Jet:[[0,&quot;rgb(0,0,131)&quot;],[.125,&quot;rgb(0,60,170)&quot;],[.375,&quot;rgb(5,255,255)&quot;],[.625,&quot;rgb(255,255,0)&quot;],[.875,&quot;rgb(250,0,0)&quot;],[1,&quot;rgb(128,0,0)&quot;]],Hot:[[0,&quot;rgb(0,0,0)&quot;],[.3,&quot;rgb(230,0,0)&quot;],[.6,&quot;rgb(255,210,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Blackbody:[[0,&quot;rgb(0,0,0)&quot;],[.2,&quot;rgb(230,0,0)&quot;],[.4,&quot;rgb(230,210,0)&quot;],[.7,&quot;rgb(255,255,255)&quot;],[1,&quot;rgb(160,200,255)&quot;]],Earth:[[0,&quot;rgb(0,0,130)&quot;],[.1,&quot;rgb(0,180,180)&quot;],[.2,&quot;rgb(40,210,40)&quot;],[.4,&quot;rgb(230,230,50)&quot;],[.6,&quot;rgb(120,70,20)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Electric:[[0,&quot;rgb(0,0,0)&quot;],[.15,&quot;rgb(30,0,100)&quot;],[.4,&quot;rgb(120,0,100)&quot;],[.6,&quot;rgb(160,90,0)&quot;],[.8,&quot;rgb(230,200,0)&quot;],[1,&quot;rgb(255,250,220)&quot;]],Viridis:[[0,&quot;#440154&quot;],[.06274509803921569,&quot;#48186a&quot;],[.12549019607843137,&quot;#472d7b&quot;],[.18823529411764706,&quot;#424086&quot;],[.25098039215686274,&quot;#3b528b&quot;],[.3137254901960784,&quot;#33638d&quot;],[.3764705882352941,&quot;#2c728e&quot;],[.4392156862745098,&quot;#26828e&quot;],[.5019607843137255,&quot;#21918c&quot;],[.5647058823529412,&quot;#1fa088&quot;],[.6274509803921569,&quot;#28ae80&quot;],[.6901960784313725,&quot;#3fbc73&quot;],[.7529411764705882,&quot;#5ec962&quot;],[.8156862745098039,&quot;#84d44b&quot;],[.8784313725490196,&quot;#addc30&quot;],[.9411764705882353,&quot;#d8e219&quot;],[1,&quot;#fde725&quot;]],Cividis:[[0,&quot;rgb(0,32,76)&quot;],[.058824,&quot;rgb(0,42,102)&quot;],[.117647,&quot;rgb(0,52,110)&quot;],[.176471,&quot;rgb(39,63,108)&quot;],[.235294,&quot;rgb(60,74,107)&quot;],[.294118,&quot;rgb(76,85,107)&quot;],[.352941,&quot;rgb(91,95,109)&quot;],[.411765,&quot;rgb(104,106,112)&quot;],[.470588,&quot;rgb(117,117,117)&quot;],[.529412,&quot;rgb(131,129,120)&quot;],[.588235,&quot;rgb(146,140,120)&quot;],[.647059,&quot;rgb(161,152,118)&quot;],[.705882,&quot;rgb(176,165,114)&quot;],[.764706,&quot;rgb(192,177,109)&quot;],[.823529,&quot;rgb(209,191,102)&quot;],[.882353,&quot;rgb(225,204,92)&quot;],[.941176,&quot;rgb(243,219,79)&quot;],[1,&quot;rgb(255,233,69)&quot;]]},a=i.RdBu;function o(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var i=t[r];if(2!==i.length||+i[0]&lt;e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}e.exports={scales:i,defaultScale:a,get:function(t,e){if(e||(e=a),!t)return e;function r(){try{t=i[t]||JSON.parse(t)}catch(r){t=e}}return&quot;string&quot;==typeof t&amp;&amp;(r(),&quot;string&quot;==typeof t&amp;&amp;r()),o(t)?t:e},isValid:function(t){return void 0!==i[t]||o(t)}}},{tinycolor2:598}],682:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return&quot;left&quot;===i||&quot;bottom&quot;===i?a:&quot;center&quot;===i||&quot;middle&quot;===i?s:&quot;right&quot;===i||&quot;top&quot;===i?o:a&lt;2/3-s?a:o&gt;4/3-s?o:s}},{}],683:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[&quot;sw-resize&quot;,&quot;s-resize&quot;,&quot;se-resize&quot;],[&quot;w-resize&quot;,&quot;move&quot;,&quot;e-resize&quot;],[&quot;nw-resize&quot;,&quot;n-resize&quot;,&quot;ne-resize&quot;]];e.exports=function(t,e,r,a){return t=&quot;left&quot;===r?0:&quot;center&quot;===r?1:&quot;right&quot;===r?2:n.constrain(Math.floor(3*t),0,2),e=&quot;bottom&quot;===a?0:&quot;middle&quot;===a?1:&quot;top&quot;===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{&quot;../../lib&quot;:803}],684:[function(t,e,r){&quot;use strict&quot;;r.selectMode=function(t){return&quot;lasso&quot;===t||&quot;select&quot;===t},r.drawMode=function(t){return&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.openMode=function(t){return&quot;drawline&quot;===t||&quot;drawopenpath&quot;===t},r.rectMode=function(t){return&quot;select&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.freeMode=function(t){return&quot;lasso&quot;===t||&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],685:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-event-offset&quot;),i=t(&quot;has-hover&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../lib&quot;).removeElement,s=t(&quot;../../plots/cartesian/constants&quot;),l=e.exports={};l.align=t(&quot;./align&quot;),l.getCursor=t(&quot;./cursor&quot;);var c=t(&quot;./unhover&quot;);function u(){var t=document.createElement(&quot;div&quot;);t.className=&quot;dragcover&quot;;var e=t.style;return e.position=&quot;fixed&quot;,e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=&quot;none&quot;,document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,h,p,d,g,m=t.gd,v=1,y=m._context.doubleClickDelay,x=t.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents=&quot;all&quot;,x.onmousedown=_,a?(x._ontouchstart&amp;&amp;x.removeEventListener(&quot;touchstart&quot;,x._ontouchstart),x._ontouchstart=_,x.addEventListener(&quot;touchstart&quot;,_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)&lt;r&amp;&amp;(t=0),Math.abs(e)&lt;r&amp;&amp;(e=0),[t,e]};function _(a){m._dragged=!1,m._dragging=!0;var o=f(a);e=o[0],r=o[1],d=a.target,p=a,g=2===a.buttons||a.ctrlKey,void 0===a.clientX&amp;&amp;void 0===a.clientY&amp;&amp;(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-m._mouseDownTime&lt;y?v+=1:(v=1,m._mouseDownTime=n),t.prepFn&amp;&amp;t.prepFn(a,e,r),i&amp;&amp;!g?(h=u()).style.cursor=window.getComputedStyle(x).cursor:i||(h=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener(&quot;mouseup&quot;,T),document.addEventListener(&quot;touchend&quot;,T),!1!==t.dragmode&amp;&amp;(a.preventDefault(),document.addEventListener(&quot;mousemove&quot;,w),document.addEventListener(&quot;touchmove&quot;,w,{passive:!1}))}function w(n){n.preventDefault();var i=f(n),a=t.minDrag||s.MINDRAG,o=b(i[0]-e,i[1]-r,a),c=o[0],u=o[1];(c||u)&amp;&amp;(m._dragged=!0,l.unhover(m,n)),m._dragged&amp;&amp;t.moveFn&amp;&amp;!g&amp;&amp;(m._dragdata={element:x,dx:c,dy:u},t.moveFn(c,u))}function T(e){if(delete m._dragdata,!1!==t.dragmode&amp;&amp;(e.preventDefault(),document.removeEventListener(&quot;mousemove&quot;,w),document.removeEventListener(&quot;touchmove&quot;,w)),document.removeEventListener(&quot;mouseup&quot;,T),document.removeEventListener(&quot;touchend&quot;,T),i?o(h):c&amp;&amp;(h.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime&gt;y&amp;&amp;(v=Math.max(v-1,1)),m._dragged)t.doneFn&amp;&amp;t.doneFn();else if(t.clickFn&amp;&amp;t.clickFn(v,p),!g){var r;try{r=new MouseEvent(&quot;click&quot;,e)}catch(t){var n=f(e);(r=document.createEvent(&quot;MouseEvents&quot;)).initMouseEvent(&quot;click&quot;,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}d.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=u},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/constants&quot;:861,&quot;./align&quot;:682,&quot;./cursor&quot;:683,&quot;./unhover&quot;:686,&quot;has-hover&quot;:443,&quot;has-passive-events&quot;:444,&quot;mouse-event-offset&quot;:471}],686:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/events&quot;),i=t(&quot;../../lib/throttle&quot;),a=t(&quot;../../lib/dom&quot;).getGraphDiv,o=t(&quot;../fx/constants&quot;),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&amp;&amp;i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&amp;&amp;!t._dragged&amp;&amp;!1===n.triggerHandler(t,&quot;plotly_beforehover&quot;,e)||(r._hoverlayer.selectAll(&quot;g&quot;).remove(),r._hoverlayer.selectAll(&quot;line&quot;).remove(),r._hoverlayer.selectAll(&quot;circle&quot;).remove(),t._hoverdata=void 0,e.target&amp;&amp;i&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:i}))}},{&quot;../../lib/dom&quot;:791,&quot;../../lib/events&quot;:792,&quot;../../lib/throttle&quot;:830,&quot;../fx/constants&quot;:700}],687:[function(t,e,r){&quot;use strict&quot;;r.dash={valType:&quot;string&quot;,values:[&quot;solid&quot;,&quot;dot&quot;,&quot;dash&quot;,&quot;longdash&quot;,&quot;dashdot&quot;,&quot;longdashdot&quot;],dflt:&quot;solid&quot;,editType:&quot;style&quot;},r.pattern={shape:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;/&quot;,&quot;\\&quot;,&quot;x&quot;,&quot;-&quot;,&quot;|&quot;,&quot;+&quot;,&quot;.&quot;],dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},fillmode:{valType:&quot;enumerated&quot;,values:[&quot;replace&quot;,&quot;overlay&quot;],dflt:&quot;replace&quot;,editType:&quot;style&quot;},bgcolor:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;style&quot;},fgcolor:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;style&quot;},fgopacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},size:{valType:&quot;number&quot;,min:0,dflt:8,arrayOk:!0,editType:&quot;style&quot;},solidity:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;style&quot;}},{}],688:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;tinycolor2&quot;),l=t(&quot;../../registry&quot;),c=t(&quot;../color&quot;),u=t(&quot;../colorscale&quot;),f=i.strTranslate,h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../constants/xmlns_namespaces&quot;),d=t(&quot;../../constants/alignment&quot;).LINE_SPACING,g=t(&quot;../../constants/interactions&quot;).DESELECTDIM,m=t(&quot;../../traces/scatter/subtypes&quot;),v=t(&quot;../../traces/scatter/make_bubble_size_func&quot;),y=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,x=e.exports={};x.font=function(t,e,r,n){i.isPlainObject(e)&amp;&amp;(n=e.color,r=e.size,e=e.family),e&amp;&amp;t.style(&quot;font-family&quot;,e),r+1&amp;&amp;t.style(&quot;font-size&quot;,r+&quot;px&quot;),n&amp;&amp;t.call(c.fill,n)},x.setPosition=function(t,e,r){t.attr(&quot;x&quot;,e).attr(&quot;y&quot;,r)},x.setSize=function(t,e,r){t.attr(&quot;width&quot;,e).attr(&quot;height&quot;,r)},x.setRect=function(t,e,r,n,i){t.call(x.setPosition,e,r).call(x.setSize,n,i)},x.translatePoint=function(t,e,r,n){var i=r.c2p(t.x),a=n.c2p(t.y);return!!(o(i)&amp;&amp;o(a)&amp;&amp;e.node())&amp;&amp;(&quot;text&quot;===e.node().nodeName?e.attr(&quot;x&quot;,i).attr(&quot;y&quot;,a):e.attr(&quot;transform&quot;,f(i,a)),!0)},x.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);x.translatePoint(t,i,e,r)}))},x.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(&quot;display&quot;,r.isPtWithinRange(t,i)&amp;&amp;n.isPtWithinRange(t,a)?null:&quot;none&quot;)},x.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,o=a.xcalendar,s=a.ycalendar,c=l.traceIs(a,&quot;bar-like&quot;)?&quot;.bartext&quot;:&quot;.point,.textpoint&quot;;t.selectAll(c).each((function(t){x.hideOutsideRangePoint(t,n.select(this),r,i,o,s)}))}))}},x.crispRound=function(t,e,r){return e&amp;&amp;o(e)?t._context.staticPlot?e:e&lt;1?1:Math.round(e):r||0},x.singleLineStyle=function(t,e,r,n,i){e.style(&quot;fill&quot;,&quot;none&quot;);var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||&quot;&quot;;c.stroke(e,n||a.color),x.dashLine(e,s,o)},x.lineGroupStyle=function(t,e,r,i){t.style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,s=i||a.dash||&quot;&quot;;n.select(this).call(c.stroke,r||a.color).call(x.dashLine,s,o)}))},x.dashLine=function(t,e,r){r=+r||0,e=x.dashStyle(e,r),t.style({&quot;stroke-dasharray&quot;:e,&quot;stroke-width&quot;:r+&quot;px&quot;})},x.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return&quot;solid&quot;===t?t=&quot;&quot;:&quot;dot&quot;===t?t=r+&quot;px,&quot;+r+&quot;px&quot;:&quot;dash&quot;===t?t=3*r+&quot;px,&quot;+3*r+&quot;px&quot;:&quot;longdash&quot;===t?t=5*r+&quot;px,&quot;+5*r+&quot;px&quot;:&quot;dashdot&quot;===t?t=3*r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px&quot;:&quot;longdashdot&quot;===t&amp;&amp;(t=5*r+&quot;px,&quot;+2*r+&quot;px,&quot;+r+&quot;px,&quot;+2*r+&quot;px&quot;),t},x.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&amp;&amp;t.call(c.fill,e)},x.fillGroupStyle=function(t){t.style(&quot;stroke-width&quot;,0).each((function(t){var e=n.select(this);t[0].trace&amp;&amp;e.call(c.fill,t[0].trace.fillcolor)}))};var b=t(&quot;./symbol_defs&quot;);x.symbolNames=[],x.symbolFuncs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(b).forEach((function(t){var e=b[t],r=e.n;x.symbolList.push(r,String(r),t,r+100,String(r+100),t+&quot;-open&quot;),x.symbolNames[r]=t,x.symbolFuncs[r]=e.f,e.needLine&amp;&amp;(x.symbolNeedLines[r]=!0),e.noDot?x.symbolNoDot[r]=!0:x.symbolList.push(r+200,String(r+200),t+&quot;-dot&quot;,r+300,String(r+300),t+&quot;-open-dot&quot;),e.noFill&amp;&amp;(x.symbolNoFill[r]=!0)}));var _=x.symbolNames.length;function w(t,e){var r=t%100;return x.symbolFuncs[r](e)+(t&gt;=200?&quot;M0,0.5L0.5,0L0,-0.5L-0.5,0Z&quot;:&quot;&quot;)}x.symbolNumber=function(t){if(o(t))t=+t;else if(&quot;string&quot;==typeof t){var e=0;t.indexOf(&quot;-open&quot;)&gt;0&amp;&amp;(e=100,t=t.replace(&quot;-open&quot;,&quot;&quot;)),t.indexOf(&quot;-dot&quot;)&gt;0&amp;&amp;(e+=200,t=t.replace(&quot;-dot&quot;,&quot;&quot;)),(t=x.symbolNames.indexOf(t))&gt;=0&amp;&amp;(t+=e)}return t%100&gt;=_||t&gt;=400?0:Math.floor(Math.max(t,0))};var T={x1:1,x2:0,y1:0,y2:0},k={x1:0,x2:0,y1:1,y2:0},A=a(&quot;~f&quot;),M={radial:{node:&quot;radialGradient&quot;},radialreversed:{node:&quot;radialGradient&quot;,reversed:!0},horizontal:{node:&quot;linearGradient&quot;,attrs:T},horizontalreversed:{node:&quot;linearGradient&quot;,attrs:T,reversed:!0},vertical:{node:&quot;linearGradient&quot;,attrs:k},verticalreversed:{node:&quot;linearGradient&quot;,attrs:k,reversed:!0}};x.gradient=function(t,e,r,a,o,l){for(var u=o.length,f=M[a],h=new Array(u),p=0;p&lt;u;p++)f.reversed?h[u-1-p]=[A(100*(1-o[p][0])),o[p][1]]:h[p]=[A(100*o[p][0]),o[p][1]];var d=e._fullLayout,g=&quot;g&quot;+d._uid+&quot;-&quot;+r,m=d._defs.select(&quot;.gradients&quot;).selectAll(&quot;#&quot;+g).data([a+h.join(&quot;;&quot;)],i.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var t=n.select(this);f.attrs&amp;&amp;t.attr(f.attrs),t.attr(&quot;id&quot;,g);var e=t.selectAll(&quot;stop&quot;).data(h);e.exit().remove(),e.enter().append(&quot;stop&quot;),e.each((function(t){var e=s(t[1]);n.select(this).attr({offset:t[0]+&quot;%&quot;,&quot;stop-color&quot;:c.tinyRGB(e),&quot;stop-opacity&quot;:e.getAlpha()})}))})),t.style(l,D(g,e)).style(l+&quot;-opacity&quot;,null);var v=function(t){return&quot;.&quot;+t.attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)},y=v(n.select(t.node().parentNode))+&quot;&gt;&quot;+v(t);d._gradientUrlQueryParts[y]=1},x.pattern=function(t,e,r,a,o,s,l,u,f,h,p,d){var g=&quot;legend&quot;===e;u&amp;&amp;(&quot;overlay&quot;===f?(h=u,p=c.contrast(h)):(h=void 0,p=u));var m,v,y,x,b,_,w,T,k,A,M,S=r._fullLayout,E=&quot;p&quot;+S._uid+&quot;-&quot;+a,L={};switch(o){case&quot;/&quot;:m=s*Math.sqrt(2),v=s*Math.sqrt(2),_=&quot;path&quot;,L={d:y=&quot;M-&quot;+m/4+&quot;,&quot;+v/4+&quot;l&quot;+m/2+&quot;,-&quot;+v/2+&quot;M0,&quot;+v+&quot;L&quot;+m+&quot;,0M&quot;+m/4*3+&quot;,&quot;+v/4*5+&quot;l&quot;+m/2+&quot;,-&quot;+v/2,opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;\\&quot;:m=s*Math.sqrt(2),v=s*Math.sqrt(2),_=&quot;path&quot;,L={d:y=&quot;M&quot;+m/4*3+&quot;,-&quot;+v/4+&quot;l&quot;+m/2+&quot;,&quot;+v/2+&quot;M0,0L&quot;+m+&quot;,&quot;+v+&quot;M-&quot;+m/4+&quot;,&quot;+v/4*3+&quot;l&quot;+m/2+&quot;,&quot;+v/2,opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;x&quot;:m=s*Math.sqrt(2),v=s*Math.sqrt(2),y=&quot;M-&quot;+m/4+&quot;,&quot;+v/4+&quot;l&quot;+m/2+&quot;,-&quot;+v/2+&quot;M0,&quot;+v+&quot;L&quot;+m+&quot;,0M&quot;+m/4*3+&quot;,&quot;+v/4*5+&quot;l&quot;+m/2+&quot;,-&quot;+v/2+&quot;M&quot;+m/4*3+&quot;,-&quot;+v/4+&quot;l&quot;+m/2+&quot;,&quot;+v/2+&quot;M0,0L&quot;+m+&quot;,&quot;+v+&quot;M-&quot;+m/4+&quot;,&quot;+v/4*3+&quot;l&quot;+m/2+&quot;,&quot;+v/2,x=s-s*Math.sqrt(1-l),_=&quot;path&quot;,L={d:y,opacity:d,stroke:p,&quot;stroke-width&quot;:x+&quot;px&quot;};break;case&quot;|&quot;:_=&quot;path&quot;,_=&quot;path&quot;,L={d:y=&quot;M&quot;+(m=s)/2+&quot;,0L&quot;+m/2+&quot;,&quot;+(v=s),opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;-&quot;:_=&quot;path&quot;,_=&quot;path&quot;,L={d:y=&quot;M0,&quot;+(v=s)/2+&quot;L&quot;+(m=s)+&quot;,&quot;+v/2,opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;+&quot;:_=&quot;path&quot;,y=&quot;M&quot;+(m=s)/2+&quot;,0L&quot;+m/2+&quot;,&quot;+(v=s)+&quot;M0,&quot;+v/2+&quot;L&quot;+m+&quot;,&quot;+v/2,x=s-s*Math.sqrt(1-l),_=&quot;path&quot;,L={d:y,opacity:d,stroke:p,&quot;stroke-width&quot;:x+&quot;px&quot;};break;case&quot;.&quot;:m=s,v=s,l&lt;Math.PI/4?b=Math.sqrt(l*s*s/Math.PI):(w=l,T=Math.PI/4,k=1,A=s/2,M=s/Math.sqrt(2),b=A+(M-A)*(w-T)/(k-T)),_=&quot;circle&quot;,L={cx:m/2,cy:v/2,r:b,opacity:d,fill:p}}var C=[o||&quot;noSh&quot;,h||&quot;noBg&quot;,p||&quot;noFg&quot;,s,l].join(&quot;;&quot;),P=S._defs.select(&quot;.patterns&quot;).selectAll(&quot;#&quot;+E).data([C],i.identity);P.exit().remove(),P.enter().append(&quot;pattern&quot;).each((function(){var t=n.select(this);if(t.attr({id:E,width:m+&quot;px&quot;,height:v+&quot;px&quot;,patternUnits:&quot;userSpaceOnUse&quot;,patternTransform:g?&quot;scale(0.8)&quot;:&quot;&quot;}),h){var e=t.selectAll(&quot;rect&quot;).data([0]);e.exit().remove(),e.enter().append(&quot;rect&quot;).attr({width:m+&quot;px&quot;,height:v+&quot;px&quot;,fill:h})}var r=t.selectAll(_).data([0]);r.exit().remove(),r.enter().append(_).attr(L)})),t.style(&quot;fill&quot;,D(E,r)).style(&quot;fill-opacity&quot;,null),t.classed(&quot;pattern_filled&quot;,!0);var I=&quot;.&quot;+n.select(t.node().parentNode).attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)+&quot;&gt;.pattern_filled&quot;;S._patternUrlQueryParts[I]=1},x.initGradients=function(t){var e=t._fullLayout;i.ensureSingle(e._defs,&quot;g&quot;,&quot;gradients&quot;).selectAll(&quot;linearGradient,radialGradient&quot;).remove(),e._gradientUrlQueryParts={}},x.initPatterns=function(t){var e=t._fullLayout;i.ensureSingle(e._defs,&quot;g&quot;,&quot;patterns&quot;).selectAll(&quot;pattern&quot;).remove(),e._patternUrlQueryParts={}},x.getPatternAttr=function(t,e,r){return t&amp;&amp;i.isArrayOrTypedArray(t)?e&lt;t.length?t[e]:r:t},x.pointStyle=function(t,e,r){if(t.size()){var i=x.makePointStyleFns(e);t.each((function(t){x.singlePointStyle(t,n.select(this),e,i,r)}))}},x.singlePointStyle=function(t,e,r,n,a){var o=r.marker,s=o.line;if(e.style(&quot;opacity&quot;,n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?o.opacity:t.mo),n.ms2mrc){var l;l=&quot;various&quot;===t.ms||&quot;various&quot;===o.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&amp;&amp;(l=t.mrc=n.selectedSizeFn(t));var u=x.symbolNumber(t.mx||o.symbol)||0;t.om=u%200&gt;=100,e.attr(&quot;d&quot;,w(u,l))}var f,h,p,d=!1;if(t.so)p=s.outlierwidth,h=s.outliercolor,f=o.outliercolor;else{var g=(s||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=&quot;mlc&quot;in t?t.mlcc=n.lineScale(t.mlc):i.isArrayOrTypedArray(s.color)?c.defaultLine:s.color,i.isArrayOrTypedArray(o.color)&amp;&amp;(f=c.defaultLine,d=!0),f=&quot;mc&quot;in t?t.mcc=n.markerScale(t.mc):o.color||&quot;rgba(0,0,0,0)&quot;,n.selectedColorFn&amp;&amp;(f=n.selectedColorFn(t))}if(t.om)e.call(c.stroke,f).style({&quot;stroke-width&quot;:(p||1)+&quot;px&quot;,fill:&quot;none&quot;});else{e.style(&quot;stroke-width&quot;,(t.isBlank?0:p)+&quot;px&quot;);var m=o.gradient,v=t.mgt;v?d=!0:v=m&amp;&amp;m.type,i.isArrayOrTypedArray(v)&amp;&amp;(v=v[0],M[v]||(v=0));var y=o.pattern,b=y&amp;&amp;x.getPatternAttr(y.shape,t.i,&quot;&quot;);if(v&amp;&amp;&quot;none&quot;!==v){var _=t.mgc;_?d=!0:_=m.color;var T=r.uid;d&amp;&amp;(T+=&quot;-&quot;+t.i),x.gradient(e,a,T,v,[[0,_],[1,f]],&quot;fill&quot;)}else if(b){var k=x.getPatternAttr(y.bgcolor,t.i,null),A=x.getPatternAttr(y.fgcolor,t.i,null),S=y.fgopacity,E=x.getPatternAttr(y.size,t.i,8),L=x.getPatternAttr(y.solidity,t.i,.3),C=t.mcc||i.isArrayOrTypedArray(y.shape)||i.isArrayOrTypedArray(y.bgcolor)||i.isArrayOrTypedArray(y.size)||i.isArrayOrTypedArray(y.solidity),P=r.uid;C&amp;&amp;(P+=&quot;-&quot;+t.i),x.pattern(e,&quot;point&quot;,a,P,b,E,L,t.mcc,y.fillmode,k,A,S)}else c.fill(e,f);p&amp;&amp;c.stroke(e,h)}},x.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=x.tryColorscale(r,&quot;&quot;),e.lineScale=x.tryColorscale(r,&quot;line&quot;),l.traceIs(t,&quot;symbols&quot;)&amp;&amp;(e.ms2mrc=m.isBubble(t)?v(t):function(){return(r.size||6)/2}),t.selectedpoints&amp;&amp;i.extendFlat(e,x.makeSelectedPointStyleFns(t)),e},x.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},a=t.marker||{},o=r.marker||{},s=n.marker||{},c=a.opacity,u=o.opacity,f=s.opacity,h=void 0!==u,p=void 0!==f;(i.isArrayOrTypedArray(c)||h||p)&amp;&amp;(e.selectedOpacityFn=function(t){var e=void 0===t.mo?a.opacity:t.mo;return t.selected?h?u:e:p?f:g*e});var d=a.color,m=o.color,v=s.color;(m||v)&amp;&amp;(e.selectedColorFn=function(t){var e=t.mcc||d;return t.selected?m||e:v||e});var y=a.size,x=o.size,b=s.size,_=void 0!==x,w=void 0!==b;return l.traceIs(t,&quot;symbols&quot;)&amp;&amp;(_||w)&amp;&amp;(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},x.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||s;return t.selected?l||e:u||(l?e:c.addOpacity(e,g))},e},x.selectedPointStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=x.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&amp;&amp;a.push((function(t,e){t.style(&quot;opacity&quot;,r.selectedOpacityFn(e))})),r.selectedColorFn&amp;&amp;a.push((function(t,e){c.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&amp;&amp;a.push((function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(&quot;d&quot;,w(x.symbolNumber(n),a)),e.mrc2=a})),a.length&amp;&amp;t.each((function(t){for(var e=n.select(this),r=0;r&lt;a.length;r++)a[r](e,t)}))}},x.tryColorscale=function(t,e){var r=e?i.nestedProperty(t,e).get():t;if(r){var n=r.color;if((r.colorscale||r._colorAx)&amp;&amp;i.isArrayOrTypedArray(n))return u.makeColorScaleFuncFromTrace(r)}return i.identity};var S={start:1,end:-1,middle:0,bottom:1,top:-1};function E(t,e,r,i){var a=n.select(t.node().parentNode),o=-1!==e.indexOf(&quot;top&quot;)?&quot;top&quot;:-1!==e.indexOf(&quot;bottom&quot;)?&quot;bottom&quot;:&quot;middle&quot;,s=-1!==e.indexOf(&quot;left&quot;)?&quot;end&quot;:-1!==e.indexOf(&quot;right&quot;)?&quot;start&quot;:&quot;middle&quot;,l=i?i/.8+1:0,c=(h.lineCount(t)-1)*d+1,u=S[s]*l,p=.75*r+S[o]*l+(S[o]-1)*c*r/2;t.attr(&quot;text-anchor&quot;,s),a.attr(&quot;transform&quot;,f(u,p))}function L(t,e){var r=t.ts||e.textfont.size;return o(r)&amp;&amp;r&gt;0?r:0}x.textPointStyle=function(t,e,r){if(t.size()){var a;if(e.selectedpoints){var o=x.makeSelectedTextStyleFns(e);a=o.selectedTextColorFn}var s=e.texttemplate,l=r._fullLayout;t.each((function(t){var o=n.select(this),c=s?i.extractOption(t,e,&quot;txt&quot;,&quot;texttemplate&quot;):i.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);if(c||0===c){if(s){var u=e._module.formatLabels,f=u?u(t,e,l):{},p={};y(p,e,t.i);var d=e._meta||{};c=i.texttemplateString(c,f,l._d3locale,p,t,d)}var g=t.tp||e.textposition,m=L(t,e),v=a?a(t):t.tc||e.textfont.color;o.call(x.font,t.tf||e.textfont.family,m,v).text(c).call(h.convertToTspans,r).call(E,g,m,t.mrc)}else o.remove()}))}},x.selectedTextStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=x.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,s=L(t,e);c.fill(i,a),E(i,o,s,t.mrc2||t.mrc)}))}};function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&amp;&amp;f/p),2),n.round(e[1]+(p&amp;&amp;h/p),2)],[n.round(e[0]-(d&amp;&amp;f/d),2),n.round(e[1]-(d&amp;&amp;h/d),2)]]}x.smoothopen=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;);var r,n=&quot;M&quot;+t[0],i=[];for(r=1;r&lt;t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=&quot;Q&quot;+i[0][0]+&quot; &quot;+t[1],r=2;r&lt;t.length-1;r++)n+=&quot;C&quot;+i[r-2][1]+&quot; &quot;+i[r-1][0]+&quot; &quot;+t[r];return n+=&quot;Q&quot;+i[t.length-3][1]+&quot; &quot;+t[t.length-1]},x.smoothclosed=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;)+&quot;Z&quot;;var r,n=&quot;M&quot;+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r&lt;i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r&lt;=i;r++)n+=&quot;C&quot;+a[r-1][1]+&quot; &quot;+a[r][0]+&quot; &quot;+t[r];return n+=&quot;C&quot;+a[i][1]+&quot; &quot;+a[0][0]+&quot; &quot;+t[0]+&quot;Z&quot;};var P={hv:function(t,e){return&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)},vh:function(t,e){return&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},hvh:function(t,e){return&quot;H&quot;+n.round((t[0]+e[0])/2,2)+&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},vhv:function(t,e){return&quot;V&quot;+n.round((t[1]+e[1])/2,2)+&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)}},I=function(t,e){return&quot;L&quot;+n.round(e[0],2)+&quot;,&quot;+n.round(e[1],2)};x.steps=function(t){var e=P[t]||I;return function(t){for(var r=&quot;M&quot;+n.round(t[0][0],2)+&quot;,&quot;+n.round(t[0][1],2),i=1;i&lt;t.length;i++)r+=e(t[i-1],t[i]);return r}},x.makeTester=function(){var t=i.ensureSingleById(n.select(&quot;body&quot;),&quot;svg&quot;,&quot;js-plotly-tester&quot;,(function(t){t.attr(p.svgAttrs).style({position:&quot;absolute&quot;,left:&quot;-10000px&quot;,top:&quot;-10000px&quot;,width:&quot;9000px&quot;,height:&quot;9000px&quot;,&quot;z-index&quot;:&quot;1&quot;})})),e=i.ensureSingle(t,&quot;path&quot;,&quot;js-reference-point&quot;,(function(t){t.attr(&quot;d&quot;,&quot;M0,0H1V1H0Z&quot;).style({&quot;stroke-width&quot;:0,fill:&quot;black&quot;})}));x.tester=t,x.testref=e},x.savedBBoxes={};var O=0;function z(t){var e=t.getAttribute(&quot;data-unformatted&quot;);if(null!==e)return e+t.getAttribute(&quot;data-math&quot;)+t.getAttribute(&quot;text-anchor&quot;)+t.getAttribute(&quot;style&quot;)}function D(t,e){if(!t)return null;var r=e._context,n=r._exportedPlot?&quot;&quot;:r._baseUrl||&quot;&quot;;return n?&quot;url('&quot;+n+&quot;#&quot;+t+&quot;')&quot;:&quot;url(#&quot;+t+&quot;)&quot;}x.bBox=function(t,e,r){var a,o,s;if(r||(r=z(t)),r){if(a=x.savedBBoxes[r])return i.extendFlat({},a)}else if(1===t.childNodes.length){var l=t.childNodes[0];if(r=z(l)){var c=+l.getAttribute(&quot;x&quot;)||0,u=+l.getAttribute(&quot;y&quot;)||0,f=l.getAttribute(&quot;transform&quot;);if(!f){var p=x.bBox(l,!1,r);return c&amp;&amp;(p.left+=c,p.right+=c),u&amp;&amp;(p.top+=u,p.bottom+=u),p}if(r+=&quot;~&quot;+c+&quot;~&quot;+u+&quot;~&quot;+f,a=x.savedBBoxes[r])return i.extendFlat({},a)}}e?o=t:(s=x.tester.node(),o=t.cloneNode(!0),s.appendChild(o)),n.select(o).attr(&quot;transform&quot;,null).call(h.positionText,0,0);var d=o.getBoundingClientRect(),g=x.testref.node().getBoundingClientRect();e||s.removeChild(o);var m={height:d.height,width:d.width,left:d.left-g.left,top:d.top-g.top,right:d.right-g.left,bottom:d.bottom-g.top};return O&gt;=1e4&amp;&amp;(x.savedBBoxes={},O=0),r&amp;&amp;(x.savedBBoxes[r]=m),O++,i.extendFlat({},m)},x.setClipUrl=function(t,e,r){t.attr(&quot;clip-path&quot;,D(e,r))},x.getTranslate=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||0,y:+e[1]||0}},x.setTranslate=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=f(e,r)).trim(),t[i](&quot;transform&quot;,a),a},x.getScale=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||1,y:+e[1]||1}},x.setScale=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;).trim(),t[i](&quot;transform&quot;,a),a};var R=/\s*sc.*/;x.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&amp;&amp;1===r?&quot;&quot;:&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;;t.each((function(){var t=(this.getAttribute(&quot;transform&quot;)||&quot;&quot;).replace(R,&quot;&quot;);t=(t+=n).trim(),this.setAttribute(&quot;transform&quot;,t)}))}};var F=/translate\([^)]*\)\s*$/;x.setTextPointsScale=function(t,e,r){t&amp;&amp;t.each((function(){var t,i=n.select(this),a=i.select(&quot;text&quot;);if(a.node()){var o=parseFloat(a.attr(&quot;x&quot;)||0),s=parseFloat(a.attr(&quot;y&quot;)||0),l=(i.attr(&quot;transform&quot;)||&quot;&quot;).match(F);t=1===e&amp;&amp;1===r?[]:[f(o,s),&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;,f(-o,-s)],l&amp;&amp;t.push(l),i.attr(&quot;transform&quot;,t.join(&quot;&quot;))}}))}},{&quot;../../components/fx/helpers&quot;:702,&quot;../../constants/alignment&quot;:771,&quot;../../constants/interactions&quot;:778,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../registry&quot;:931,&quot;../../traces/scatter/make_bubble_size_func&quot;:1235,&quot;../../traces/scatter/subtypes&quot;:1243,&quot;../color&quot;:666,&quot;../colorscale&quot;:678,&quot;./symbol_defs&quot;:689,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],689:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;}},square:{n:1,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;Z&quot;}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;H-&quot;+e+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;V-&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;H&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=&quot;l&quot;+e+&quot;,&quot;+e,i=&quot;l&quot;+e+&quot;,-&quot;+e,a=&quot;l-&quot;+e+&quot;,-&quot;+e,o=&quot;l-&quot;+e+&quot;,&quot;+e;return&quot;M0,&quot;+e+r+i+a+i+a+o+a+o+r+o+r+&quot;Z&quot;}},&quot;triangle-up&quot;:{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,-&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-down&quot;:{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,-&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-left&quot;:{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L-&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-right&quot;:{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-ne&quot;:{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;Z&quot;}},&quot;triangle-se&quot;:{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;Z&quot;}},&quot;triangle-sw&quot;:{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;Z&quot;}},&quot;triangle-nw&quot;:{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return&quot;M&quot;+e+&quot;,&quot;+a+&quot;L&quot;+r+&quot;,&quot;+n.round(.809*t,2)+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+a+&quot;L0,&quot;+i+&quot;Z&quot;}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M&quot;+i+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L0,&quot;+e+&quot;L-&quot;+i+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;L0,-&quot;+e+&quot;Z&quot;}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M-&quot;+r+&quot;,&quot;+i+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,0L&quot;+r+&quot;,-&quot;+i+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;Z&quot;}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return&quot;M&quot;+r+&quot;,&quot;+l+&quot;H&quot;+i+&quot;L&quot;+a+&quot;,&quot;+c+&quot;L&quot;+o+&quot;,&quot;+u+&quot;L0,&quot;+n.round(.382*e,2)+&quot;L-&quot;+o+&quot;,&quot;+u+&quot;L-&quot;+a+&quot;,&quot;+c+&quot;L-&quot;+i+&quot;,&quot;+l+&quot;H-&quot;+r+&quot;L0,&quot;+s+&quot;Z&quot;}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return&quot;M-&quot;+i+&quot;,0l-&quot;+r+&quot;,-&quot;+e+&quot;h&quot;+i+&quot;l&quot;+r+&quot;,-&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h-&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l-&quot;+r+&quot;,-&quot;+e+&quot;h-&quot;+i+&quot;Z&quot;}},&quot;star-triangle-up&quot;:{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,&quot;+r+o+e+&quot;,&quot;+r+o+&quot;0,-&quot;+i+o+&quot;-&quot;+e+&quot;,&quot;+r+&quot;Z&quot;}},&quot;star-triangle-down&quot;:{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M&quot;+e+&quot;,-&quot;+r+o+&quot;-&quot;+e+&quot;,-&quot;+r+o+&quot;0,&quot;+i+o+e+&quot;,-&quot;+r+&quot;Z&quot;}},&quot;star-square&quot;:{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,&quot;+e+i+e+&quot;,&quot;+e+i+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,-&quot;+e+&quot;Z&quot;}},&quot;star-diamond&quot;:{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,0&quot;+i+&quot;0,&quot;+e+i+e+&quot;,0&quot;+i+&quot;0,-&quot;+e+i+&quot;-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-tall&quot;:{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-wide&quot;:{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;L&quot;+e+&quot;,-&quot;+e+&quot;H-&quot;+e+&quot;Z&quot;},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;Z&quot;},noDot:!0},&quot;circle-cross&quot;:{n:27,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;circle-x&quot;:{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;square-cross&quot;:{n:29,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;square-x&quot;:{n:30,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;diamond-cross&quot;:{n:31,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM0,-&quot;+e+&quot;V&quot;+e+&quot;M-&quot;+e+&quot;,0H&quot;+e},needLine:!0,noDot:!0},&quot;diamond-x&quot;:{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM-&quot;+r+&quot;,-&quot;+r+&quot;L&quot;+r+&quot;,&quot;+r+&quot;M-&quot;+r+&quot;,&quot;+r+&quot;L&quot;+r+&quot;,-&quot;+r},needLine:!0,noDot:!0},&quot;cross-thin&quot;:{n:33,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;x-thin&quot;:{n:34,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;m-&quot;+r+&quot;,0V&quot;+r+&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;m0,-&quot;+r+&quot;H&quot;+r},needLine:!0,noFill:!0},&quot;y-up&quot;:{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,&quot;+i+&quot;L0,0M&quot;+e+&quot;,&quot;+i+&quot;L0,0M0,-&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-down&quot;:{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,-&quot;+i+&quot;L0,0M&quot;+e+&quot;,-&quot;+i+&quot;L0,0M0,&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-left&quot;:{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M&quot;+i+&quot;,&quot;+e+&quot;L0,0M&quot;+i+&quot;,-&quot;+e+&quot;L0,0M-&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-right&quot;:{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+i+&quot;,&quot;+e+&quot;L0,0M-&quot;+i+&quot;,-&quot;+e+&quot;L0,0M&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;line-ew&quot;:{n:41,f:function(t){var e=n.round(1.4*t,2);return&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ns&quot;:{n:42,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ne&quot;:{n:43,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-nw&quot;:{n:44,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;arrow-up&quot;:{n:45,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-down&quot;:{n:46,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-left&quot;:{n:47,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-right&quot;:{n:48,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-bar-up&quot;:{n:49,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-down&quot;:{n:50,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-left&quot;:{n:51,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-right&quot;:{n:52,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0}}},{&quot;@plotly/d3&quot;:58}],690:[function(t,e,r){&quot;use strict&quot;;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;percent&quot;,&quot;constant&quot;,&quot;sqrt&quot;,&quot;data&quot;],editType:&quot;calc&quot;},symmetric:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},array:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},arrayminus:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},value:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},valueminus:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},traceref:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},tracerefminus:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},copy_ystyle:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},copy_zstyle:{valType:&quot;boolean&quot;,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;,_deprecated:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;}}}},{}],691:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;./compute_error&quot;);function l(t,e,r,i){var l=e[&quot;error_&quot;+i]||{},c=[];if(l.visible&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)){for(var u=s(l),f=0;f&lt;t.length;f++){var h=t[f],p=h.i;if(void 0===p)p=f;else if(null===p)continue;var d=h[i];if(n(r.c2l(d))){var g=u(d,p);if(n(g[0])&amp;&amp;n(g[1])){var m=h[i+&quot;s&quot;]=d-g[0],v=h[i+&quot;h&quot;]=d+g[1];c.push(m,v)}}}var y=r._id,x=e._extremes[y],b=a.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r&lt;e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&amp;&amp;i.traceIs(o,&quot;errorBarsOK&quot;)){var s=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);l(n,o,s,&quot;x&quot;),l(n,o,c,&quot;y&quot;)}}}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;./compute_error&quot;:692,&quot;fast-isnumeric&quot;:249}],692:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return&quot;percent&quot;===t?function(t){return Math.abs(t*e/100)}:&quot;constant&quot;===t?function(){return Math.abs(e)}:&quot;sqrt&quot;===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(&quot;data&quot;===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&amp;&amp;isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],693:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){var c=&quot;error_&quot;+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(&quot;visible&quot;,void 0!==f.array||void 0!==f.value||&quot;sqrt&quot;===f.type)){var p=h(&quot;type&quot;,&quot;array&quot;in f?&quot;data&quot;:&quot;percent&quot;),d=!0;&quot;sqrt&quot;!==p&amp;&amp;(d=h(&quot;symmetric&quot;,!((&quot;data&quot;===p?&quot;arrayminus&quot;:&quot;valueminus&quot;)in f))),&quot;data&quot;===p?(h(&quot;array&quot;),h(&quot;traceref&quot;),d||(h(&quot;arrayminus&quot;),h(&quot;tracerefminus&quot;))):&quot;percent&quot;!==p&amp;&amp;&quot;constant&quot;!==p||(h(&quot;value&quot;),d||h(&quot;valueminus&quot;));var g=&quot;copy_&quot;+l.inherit+&quot;style&quot;;if(l.inherit)(e[&quot;error_&quot;+l.inherit]||{}).visible&amp;&amp;h(g,!(f.color||n(f.thickness)||n(f.width)));l.inherit&amp;&amp;u[g]||(h(&quot;color&quot;,r),h(&quot;thickness&quot;),h(&quot;width&quot;,i.traceIs(e,&quot;gl3d&quot;)?0:4))}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../registry&quot;:931,&quot;./attributes&quot;:690,&quot;fast-isnumeric&quot;:249}],694:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;./attributes&quot;),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:&quot;component&quot;,name:&quot;errorbars&quot;,schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,&quot;calc&quot;,&quot;nested&quot;),scattergl:i(o,&quot;calc&quot;,&quot;nested&quot;)}},supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),makeComputeError:t(&quot;./compute_error&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverInfo:function(t,e,r){(e.error_y||{}).visible&amp;&amp;(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&amp;&amp;(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/edit_types&quot;:836,&quot;./attributes&quot;:690,&quot;./calc&quot;:691,&quot;./compute_error&quot;:692,&quot;./defaults&quot;:693,&quot;./plot&quot;:695,&quot;./style&quot;:696}],695:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../traces/scatter/subtypes&quot;);e.exports=function(t,e,r,s){var l=r.xaxis,c=r.yaxis,u=s&amp;&amp;s.duration&gt;0;e.each((function(e){var f,h=e[0].trace,p=h.error_x||{},d=h.error_y||{};h.ids&amp;&amp;(f=function(t){return t.id});var g=o.hasMarkers(h)&amp;&amp;h.marker.maxdisplayed&gt;0;d.visible||p.visible||(e=[]);var m=n.select(this).selectAll(&quot;g.errorbar&quot;).data(e,f);if(m.exit().remove(),e.length){p.visible||m.selectAll(&quot;path.xerror&quot;).remove(),d.visible||m.selectAll(&quot;path.yerror&quot;).remove(),m.style(&quot;opacity&quot;,1);var v=m.enter().append(&quot;g&quot;).classed(&quot;errorbar&quot;,!0);u&amp;&amp;v.style(&quot;opacity&quot;,0).transition().duration(s.duration).style(&quot;opacity&quot;,1),a.setClipUrl(m,r.layerClipId,t),m.each((function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&amp;&amp;(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&amp;&amp;(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,l,c);if(!g||t.vis){var a,o=e.select(&quot;path.yerror&quot;);if(d.visible&amp;&amp;i(r.x)&amp;&amp;i(r.yh)&amp;&amp;i(r.ys)){var f=d.width;a=&quot;M&quot;+(r.x-f)+&quot;,&quot;+r.yh+&quot;h&quot;+2*f+&quot;m-&quot;+f+&quot;,0V&quot;+r.ys,r.noYS||(a+=&quot;m-&quot;+f+&quot;,0h&quot;+2*f),!o.size()?o=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;yerror&quot;,!0):u&amp;&amp;(o=o.transition().duration(s.duration).ease(s.easing)),o.attr(&quot;d&quot;,a)}else o.remove();var h=e.select(&quot;path.xerror&quot;);if(p.visible&amp;&amp;i(r.y)&amp;&amp;i(r.xh)&amp;&amp;i(r.xs)){var m=(p.copy_ystyle?d:p).width;a=&quot;M&quot;+r.xh+&quot;,&quot;+(r.y-m)+&quot;v&quot;+2*m+&quot;m0,-&quot;+m+&quot;H&quot;+r.xs,r.noXS||(a+=&quot;m0,-&quot;+m+&quot;v&quot;+2*m),!h.size()?h=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;xerror&quot;,!0):u&amp;&amp;(h=h.transition().duration(s.duration).ease(s.easing)),h.attr(&quot;d&quot;,a)}else h.remove()}}))}}))}},{&quot;../../traces/scatter/subtypes&quot;:1243,&quot;../drawing&quot;:688,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],696:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../color&quot;);e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(&quot;path.yerror&quot;).style(&quot;stroke-width&quot;,r.thickness+&quot;px&quot;).call(i.stroke,r.color),a.copy_ystyle&amp;&amp;(a=r),o.selectAll(&quot;path.xerror&quot;).style(&quot;stroke-width&quot;,a.thickness+&quot;px&quot;).call(i.stroke,a.color)}))}},{&quot;../color&quot;:666,&quot;@plotly/d3&quot;:58}],697:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./layout_attributes&quot;).hoverlabel,a=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:&quot;none&quot;}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:&quot;none&quot;}}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/font_attributes&quot;:883,&quot;./layout_attributes&quot;:707}],698:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&amp;&amp;(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s&lt;e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,&quot;pie-like&quot;)){var u=i.traceIs(c,&quot;2dMap&quot;)?a:n.fillArray;u(c.hoverinfo,l,&quot;hi&quot;,o(c)),c.hovertemplate&amp;&amp;u(c.hovertemplate,l,&quot;ht&quot;),c.hoverlabel&amp;&amp;(u(c.hoverlabel.bgcolor,l,&quot;hbg&quot;),u(c.hoverlabel.bordercolor,l,&quot;hbc&quot;),u(c.hoverlabel.font.size,l,&quot;hts&quot;),u(c.hoverlabel.font.color,l,&quot;htc&quot;),u(c.hoverlabel.font.family,l,&quot;htf&quot;),u(c.hoverlabel.namelength,l,&quot;hnl&quot;),u(c.hoverlabel.align,l,&quot;hta&quot;))}}}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],699:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./hover&quot;).hover;e.exports=function(t,e,r){var a=n.getComponentMethod(&quot;annotations&quot;,&quot;onClick&quot;)(t,t._hoverdata);function o(){t.emit(&quot;plotly_click&quot;,{points:t._hoverdata,event:e})}void 0!==r&amp;&amp;i(t,e,r,!0),t._hoverdata&amp;&amp;e&amp;&amp;e.target&amp;&amp;(a&amp;&amp;a.then?a.then(o):o(),e.stopImmediatePropagation&amp;&amp;e.stopImmediatePropagation())}},{&quot;../../registry&quot;:931,&quot;./hover&quot;:703}],700:[function(t,e,r){&quot;use strict&quot;;e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:&quot;Arial, sans-serif&quot;,HOVERMINTIME:50,HOVERID:&quot;-hover&quot;}},{}],701:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r,o){var s=n.extendFlat({},o.hoverlabel);e.hovertemplate&amp;&amp;(s.namelength=-1),a(t,e,(function(r,a){return n.coerce(t,e,i,r,a)}),s)}},{&quot;../../lib&quot;:803,&quot;./attributes&quot;:697,&quot;./hoverlabel_defaults&quot;:704}],702:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(&quot;splom&quot;===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a&lt;n.length;a++)for(var o=0;o&lt;i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return&quot;closest&quot;===t?i||r.quadrature(e,n):&quot;x&quot;===t.charAt(0)?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index&gt;=0&amp;&amp;r.index&lt;t.length?r.distance=0:r.index=!1;else for(var n=0;n&lt;t.length;n++){var i=e(t[n]);i&lt;=r.distance&amp;&amp;(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e&lt;0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=&quot;index&quot;in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(&quot;xVal&quot;in t?a.x=t.xVal:&quot;x&quot;in t&amp;&amp;(a.x=t.x),&quot;yVal&quot;in t?a.y=t.yVal:&quot;y&quot;in t&amp;&amp;(a.y=t.y),t.xa&amp;&amp;(a.xaxis=t.xa),t.ya&amp;&amp;(a.yaxis=t.ya),void 0!==t.zLabelVal&amp;&amp;(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&amp;&amp;(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h&lt;r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:&quot;id&quot;,locations:&quot;location&quot;,labels:&quot;label&quot;,values:&quot;value&quot;,&quot;marker.colors&quot;:&quot;color&quot;,parents:&quot;parent&quot;};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&amp;&amp;Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}var s={x:!0,y:!0},l={&quot;x unified&quot;:!0,&quot;y unified&quot;:!0};r.isUnifiedHover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!l[t]},r.isXYhover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!s[t]}},{&quot;../../lib&quot;:803}],703:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o.strRotate,c=t(&quot;../../lib/events&quot;),u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../lib/override_cursor&quot;),h=t(&quot;../drawing&quot;),p=t(&quot;../color&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plots/cartesian/axes&quot;),m=t(&quot;../../registry&quot;),v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../legend/defaults&quot;),b=t(&quot;../legend/draw&quot;),_=y.YANGLE,w=Math.PI*_/180,T=1/Math.sin(w),k=Math.cos(w),A=Math.sin(w),M=y.HOVERARROWSIZE,S=y.HOVERTEXTPAD,E={box:!0,ohlc:!0,violin:!0,candlestick:!0},L={scatter:!0,scattergl:!0,splom:!0};function C(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa?t.xa._id:&quot;&quot;,t.ya?t.ya._id:&quot;&quot;].join(&quot;,&quot;)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t),o.throttle(t._fullLayout._uid+y.HOVERID,y.HOVERMINTIME,(function(){!function(t,e,r,a){r||(r=&quot;xy&quot;);var s=Array.isArray(r)?r:[r],l=t._fullLayout,u=l._plots||[],h=u[r],g=l._has(&quot;cartesian&quot;);if(h){var y=h.overlays.map((function(t){return t.id}));s=s.concat(y)}for(var x=s.length,b=new Array(x),_=new Array(x),w=!1,k=0;k&lt;x;k++){var A=s[k];if(u[A])w=!0,b[k]=u[A].xaxis,_[k]=u[A].yaxis;else{if(!l[A]||!l[A]._subplot)return void o.warn(&quot;Unrecognized subplot: &quot;+A);var M=l[A]._subplot;b[k]=M.xaxis,_[k]=M.yaxis}}var S=e.hovermode||l.hovermode;S&amp;&amp;!w&amp;&amp;(S=&quot;closest&quot;);if(-1===[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,&quot;x unified&quot;,&quot;y unified&quot;].indexOf(S)||!t.calcdata||t.querySelector(&quot;.zoombox&quot;)||t._dragging)return d.unhoverRaw(t,e);var P=l.hoverdistance;-1===P&amp;&amp;(P=1/0);var O=l.spikedistance;-1===O&amp;&amp;(O=1/0);var B,V,q,H,G,Y,W,X,Z,J,K,Q,$,tt=[],et=[],rt={hLinePoint:null,vLinePoint:null},nt=!1;if(Array.isArray(e))for(S=&quot;array&quot;,q=0;q&lt;e.length;q++)(G=t.calcdata[e[q].curveNumber||0])&amp;&amp;(Y=G[0].trace,&quot;skip&quot;!==G[0].trace.hoverinfo&amp;&amp;(et.push(G),&quot;h&quot;===Y.orientation&amp;&amp;(nt=!0)));else{for(H=0;H&lt;t.calcdata.length;H++)G=t.calcdata[H],&quot;skip&quot;!==(Y=G[0].trace).hoverinfo&amp;&amp;v.isTraceInSubplots(Y,s)&amp;&amp;(et.push(G),&quot;h&quot;===Y.orientation&amp;&amp;(nt=!0));var it,at;if(!e.target)it=&quot;xpx&quot;in e?e.xpx:b[0]._length/2,at=&quot;ypx&quot;in e?e.ypx:_[0]._length/2;else{if(!1===c.triggerHandler(t,&quot;plotly_beforehover&quot;,e))return;var ot=e.composedPath&amp;&amp;e.composedPath()[0];ot||(ot=e.target);var st=ot.getBoundingClientRect();it=e.clientX-st.left,at=e.clientY-st.top,l._calcInverseTransform(t);var lt=o.apply3DTransform(l._invTransform)(it,at);if(it=lt[0],at=lt[1],it&lt;0||it&gt;b[0]._length||at&lt;0||at&gt;_[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=it+b[0]._offset,e.pointerY=at+_[0]._offset,B=&quot;xval&quot;in e?v.flat(s,e.xval):v.p2c(b,it),V=&quot;yval&quot;in e?v.flat(s,e.yval):v.p2c(_,at),!i(B[0])||!i(V[0]))return o.warn(&quot;Fx.hover failed&quot;,e,t),d.unhoverRaw(t,e)}var ct=1/0;function ut(t,r){for(H=0;H&lt;et.length;H++)if((G=et[H])&amp;&amp;G[0]&amp;&amp;G[0].trace&amp;&amp;!0===(Y=G[0].trace).visible&amp;&amp;0!==Y._length&amp;&amp;-1===[&quot;carpet&quot;,&quot;contourcarpet&quot;].indexOf(Y._module.name)){if(&quot;splom&quot;===Y.type?W=s[X=0]:(W=v.getSubplot(Y),X=s.indexOf(W)),Z=S,v.isUnifiedHover(Z)&amp;&amp;(Z=Z.charAt(0)),Q={cd:G,trace:Y,xa:b[X],ya:_[X],maxHoverDistance:P,maxSpikeDistance:O,index:!1,distance:Math.min(ct,P),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:Y.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[W]&amp;&amp;(Q.subplot=l[W]._subplot),l._splomScenes&amp;&amp;l._splomScenes[Y.uid]&amp;&amp;(Q.scene=l._splomScenes[Y.uid]),$=tt.length,&quot;array&quot;===Z){var n=e[H];&quot;pointNumber&quot;in n?(Q.index=n.pointNumber,Z=&quot;closest&quot;):(Z=&quot;&quot;,&quot;xval&quot;in n&amp;&amp;(J=n.xval,Z=&quot;x&quot;),&quot;yval&quot;in n&amp;&amp;(K=n.yval,Z=Z?&quot;closest&quot;:&quot;y&quot;))}else void 0!==t&amp;&amp;void 0!==r?(J=t,K=r):(J=B[X],K=V[X]);if(0!==P)if(Y._module&amp;&amp;Y._module.hoverPoints){var a=Y._module.hoverPoints(Q,J,K,Z,{finiteRange:!0,hoverLayer:l._hoverlayer});if(a)for(var c,u=0;u&lt;a.length;u++)c=a[u],i(c.x0)&amp;&amp;i(c.y0)&amp;&amp;tt.push(D(c,S))}else o.log(&quot;Unrecognized trace type in hover:&quot;,Y);if(&quot;closest&quot;===S&amp;&amp;tt.length&gt;$&amp;&amp;(tt.splice(0,$),ct=tt[0].distance),g&amp;&amp;0!==O&amp;&amp;0===tt.length){Q.distance=O,Q.index=!1;var f=Y._module.hoverPoints(Q,J,K,&quot;closest&quot;,{hoverLayer:l._hoverlayer});if(f&amp;&amp;(f=f.filter((function(t){return t.spikeDistance&lt;=O}))),f&amp;&amp;f.length){var h,d=f.filter((function(t){return t.xa.showspikes&amp;&amp;&quot;hovered data&quot;!==t.xa.spikesnap}));if(d.length){var m=d[0];i(m.x0)&amp;&amp;i(m.y0)&amp;&amp;(h=ht(m),(!rt.vLinePoint||rt.vLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(rt.vLinePoint=h))}var y=f.filter((function(t){return t.ya.showspikes&amp;&amp;&quot;hovered data&quot;!==t.ya.spikesnap}));if(y.length){var x=y[0];i(x.x0)&amp;&amp;i(x.y0)&amp;&amp;(h=ht(x),(!rt.hLinePoint||rt.hLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(rt.hLinePoint=h))}}}}}function ft(t,e,r){for(var n,i=null,a=1/0,o=0;o&lt;t.length;o++)n=t[o].spikeDistance,r&amp;&amp;0===o&amp;&amp;(n=-1/0),n&lt;=a&amp;&amp;n&lt;=e&amp;&amp;(i=t[o],a=n);return i}function ht(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}ut();var pt={fullLayout:l,container:l._hoverlayer,event:e},dt=t._spikepoints,gt={vLinePoint:rt.vLinePoint,hLinePoint:rt.hLinePoint};t._spikepoints=gt;var mt=function(){tt.sort((function(t,e){return t.distance-e.distance})),tt=function(t,e){for(var r=e.charAt(0),n=[],i=[],a=[],o=0;o&lt;t.length;o++){var s=t[o];m.traceIs(s.trace,&quot;bar-like&quot;)||m.traceIs(s.trace,&quot;box-violin&quot;)?a.push(s):s.trace[r+&quot;period&quot;]?i.push(s):n.push(s)}return n.concat(i).concat(a)}(tt,S)};mt();var vt=S.charAt(0),yt=(&quot;x&quot;===vt||&quot;y&quot;===vt)&amp;&amp;tt[0]&amp;&amp;L[tt[0].trace.type];if(g&amp;&amp;0!==O&amp;&amp;0!==tt.length){var xt=ft(tt.filter((function(t){return t.ya.showspikes})),O,yt);rt.hLinePoint=ht(xt);var bt=ft(tt.filter((function(t){return t.xa.showspikes})),O,yt);rt.vLinePoint=ht(bt)}if(0===tt.length){var _t=d.unhoverRaw(t,e);return!g||null===rt.hLinePoint&amp;&amp;null===rt.vLinePoint||F(dt)&amp;&amp;R(t,rt,pt),_t}g&amp;&amp;F(dt)&amp;&amp;R(t,rt,pt);if(v.isXYhover(Z)&amp;&amp;0!==tt[0].length&amp;&amp;&quot;splom&quot;!==tt[0].trace.type){var wt=tt[0],Tt=(tt=E[wt.trace.type]?tt.filter((function(t){return t.trace.index===wt.trace.index})):[wt]).length,kt=N(&quot;x&quot;,wt,l),At=N(&quot;y&quot;,wt,l);ut(kt,At);var Mt,St=[],Et={},Lt=0,Ct=function(t){var e=E[t.trace.type]?C(t):t.trace.index;if(Et[e]){var r=Et[e]-1,n=St[r];r&gt;0&amp;&amp;Math.abs(t.distance)&lt;Math.abs(n.distance)&amp;&amp;(St[r]=t)}else Lt++,Et[e]=Lt,St.push(t)};for(Mt=0;Mt&lt;Tt;Mt++)Ct(tt[Mt]);for(Mt=tt.length-1;Mt&gt;Tt-1;Mt--)Ct(tt[Mt]);tt=St,mt()}var Pt=t._hoverdata,It=[],Ot=j(t),zt=U(t);for(q=0;q&lt;tt.length;q++){var Dt=tt[q],Rt=v.makeEventData(Dt,Dt.trace,Dt.cd);if(!1!==Dt.hovertemplate){var Ft=!1;Dt.cd[Dt.index]&amp;&amp;Dt.cd[Dt.index].ht&amp;&amp;(Ft=Dt.cd[Dt.index].ht),Dt.hovertemplate=Ft||Dt.trace.hovertemplate||!1}if(Dt.xa&amp;&amp;Dt.ya){var Bt=Dt.x0+Dt.xa._offset,Nt=Dt.x1+Dt.xa._offset,jt=Dt.y0+Dt.ya._offset,Ut=Dt.y1+Dt.ya._offset,Vt=Math.min(Bt,Nt),qt=Math.max(Bt,Nt),Ht=Math.min(jt,Ut),Gt=Math.max(jt,Ut);Rt.bbox={x0:Vt+zt,x1:qt+zt,y0:Ht+Ot,y1:Gt+Ot}}Dt.eventData=[Rt],It.push(Rt)}t._hoverdata=It;var Yt=&quot;y&quot;===S&amp;&amp;(et.length&gt;1||tt.length&gt;1)||&quot;closest&quot;===S&amp;&amp;nt&amp;&amp;tt.length&gt;1,Wt=p.combine(l.plot_bgcolor||p.background,l.paper_bgcolor),Xt=I(tt,{gd:t,hovermode:S,rotateLabels:Yt,bgColor:Wt,container:l._hoverlayer,outerContainer:l._paper.node(),commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance});v.isUnifiedHover(S)||(!function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.size(),p=new Array(h),d=0;function g(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i&gt;.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp+=i;n=!1}if(!(a&lt;.01)){if(i&lt;-.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o&lt;t.length;o++)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;c++;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos&gt;e.pmax-1&amp;&amp;(l.del=!0,c--);for(o=0;o&lt;t.length&amp;&amp;!(c&lt;=0);o++)if((l=t[o]).pos&lt;e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s&gt;=0;s--)t[s].dp-=a;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;(l.del=!0,c--)}}}t.each((function(t){var n=t[e],i=&quot;x&quot;===n._id.charAt(0),a=n.range;0===d&amp;&amp;a&amp;&amp;a[0]&gt;a[1]!==i&amp;&amp;(f=-1),p[d++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),p.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));for(;!n&amp;&amp;u&lt;=h;){for(u++,n=!0,o=0;o&lt;p.length-1;){var m=p[o],v=p[o+1],y=m[m.length-1],x=v[0];if((i=y.pos+y.dp+y.size-x.pos-x.dp+x.size)&gt;.01&amp;&amp;y.pmin===x.pmin&amp;&amp;y.pmax===x.pmax){for(s=v.length-1;s&gt;=0;s--)v[s].dp+=i;for(m.push.apply(m,v),p.splice(o+1,1),c=0,s=m.length-1;s&gt;=0;s--)c+=m[s].dp;for(a=c/m.length,s=m.length-1;s&gt;=0;s--)m[s].dp-=a;n=!1}else o++}p.forEach(g)}for(o=p.length-1;o&gt;=0;o--){var b=p[o];for(s=b.length-1;s&gt;=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Xt,Yt?&quot;xa&quot;:&quot;ya&quot;,l),z(Xt,Yt,l._invScaleX,l._invScaleY));if(e.target&amp;&amp;e.target.tagName){var Zt=m.getComponentMethod(&quot;annotations&quot;,&quot;hasClickToShow&quot;)(t,It);f(n.select(e.target),Zt?&quot;pointer&quot;:&quot;&quot;)}if(!e.target||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n&gt;=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,Pt))return;Pt&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:Pt});t.emit(&quot;plotly_hover&quot;,{event:e,points:t._hoverdata,xaxes:b,yaxes:_,xvals:B,yvals:V})}(t,e,r,a)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=e.gd,a=j(i),o=U(i),s=I(t.map((function(t){var r=t._x0||t.x0||t.x||0,n=t._x1||t.x1||t.x||0,s=t._y0||t.y0||t.y||0,l=t._y1||t.y1||t.y||0,c=t.eventData;if(c){var u=Math.min(r,n),f=Math.max(r,n),h=Math.min(s,l),d=Math.max(s,l),g=t.trace;if(m.traceIs(g,&quot;gl3d&quot;)){var v=i._fullLayout[g.scene]._scene.container,y=v.offsetLeft,x=v.offsetTop;u+=y,f+=y,h+=x,d+=x}c.bbox={x0:u+o,x1:f+o,y0:h+a,y1:d+a},e.inOut_bbox&amp;&amp;e.inOut_bbox.push(c.bbox)}else c=!1;return{color:t.color||p.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:&quot;&quot;},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,hovertemplateLabels:t.hovertemplateLabels||!1,eventData:c}})),{gd:i,hovermode:&quot;closest&quot;,rotateLabels:!1,bgColor:e.bgColor||p.background,container:n.select(e.container),outerContainer:e.outerContainer||e.container}),l=0,c=0;return s.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-5&lt;l?l-n+5:0,l=n+t.by+t.offset,r===e.anchorIndex&amp;&amp;(c=t.offset)})).each((function(t){t.offset-=c})),z(s,!1,i._fullLayout._invScaleX,i._fullLayout._invScaleY),r?s:s.node()};var P=/&lt;extra&gt;([\s\S]*)&lt;\/extra&gt;/;function I(t,e){var r=e.gd,i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,d=e.container,g=e.outerContainer,w=e.commonLabelOpts||{},T=e.fontFamily||y.HOVERFONT,k=e.fontSize||y.HOVERFONTSIZE,A=t[0],E=A.xa,L=A.ya,P=a.charAt(0),I=A[P+&quot;Label&quot;],z=g.getBoundingClientRect(),D=z.top,R=z.width,F=z.height,B=void 0!==I&amp;&amp;A.distance&lt;=e.hoverdistance&amp;&amp;(&quot;x&quot;===a||&quot;y&quot;===a);if(B){var N,j,U=!0;for(N=0;N&lt;t.length;N++)if(U&amp;&amp;void 0===t[N].zLabel&amp;&amp;(U=!1),j=t[N].hoverinfo||t[N].trace.hoverinfo){var V=Array.isArray(j)?j:j.split(&quot;+&quot;);if(-1===V.indexOf(&quot;all&quot;)&amp;&amp;-1===V.indexOf(a)){B=!1;break}}U&amp;&amp;(B=!1)}var q=d.selectAll(&quot;g.axistext&quot;).data(B?[0]:[]);if(q.enter().append(&quot;g&quot;).classed(&quot;axistext&quot;,!0),q.exit().remove(),q.each((function(){var t=n.select(this),e=o.ensureSingle(t,&quot;path&quot;,&quot;&quot;,(function(t){t.style({&quot;stroke-width&quot;:&quot;1px&quot;})})),l=o.ensureSingle(t,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=w.bgcolor||p.defaultLine,f=w.bordercolor||p.contrast(c),d=p.contrast(c),g={family:w.font.family||T,size:w.font.size||k,color:w.font.color||d};e.style({fill:c,stroke:f}),l.text(I).call(h.font,g).call(u.positionText,0,0).call(u.convertToTspans,r),t.attr(&quot;transform&quot;,&quot;&quot;);var m,v,y=l.node().getBoundingClientRect();if(&quot;x&quot;===a){var x=&quot;top&quot;===E.side?&quot;-&quot;:&quot;&quot;;l.attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(u.positionText,0,&quot;top&quot;===E.side?D-y.bottom-M-S:D-y.top+M+S),m=E._offset+(A.x0+A.x1)/2,v=L._offset+(&quot;top&quot;===E.side?0:L._length);var b=y.width/2+S;m&lt;b?(m=b,e.attr(&quot;d&quot;,&quot;M-&quot;+(b-M)+&quot;,0L-&quot;+(b-2*M)+&quot;,&quot;+x+M+&quot;H&quot;+(S+y.width/2)+&quot;v&quot;+x+(2*S+y.height)+&quot;H-&quot;+b+&quot;V&quot;+x+M+&quot;Z&quot;)):m&gt;i.width-b?(m=i.width-b,e.attr(&quot;d&quot;,&quot;M&quot;+(b-M)+&quot;,0L&quot;+b+&quot;,&quot;+x+M+&quot;v&quot;+x+(2*S+y.height)+&quot;H-&quot;+b+&quot;V&quot;+x+M+&quot;H&quot;+(b-2*M)+&quot;Z&quot;)):e.attr(&quot;d&quot;,&quot;M0,0L&quot;+M+&quot;,&quot;+x+M+&quot;H&quot;+(S+y.width/2)+&quot;v&quot;+x+(2*S+y.height)+&quot;H-&quot;+(S+y.width/2)+&quot;V&quot;+x+M+&quot;H-&quot;+M+&quot;Z&quot;)}else{var _,C,P;&quot;right&quot;===L.side?(_=&quot;start&quot;,C=1,P=&quot;&quot;,m=E._offset+E._length):(_=&quot;end&quot;,C=-1,P=&quot;-&quot;,m=E._offset),v=L._offset+(A.y0+A.y1)/2,l.attr(&quot;text-anchor&quot;,_),e.attr(&quot;d&quot;,&quot;M0,0L&quot;+P+M+&quot;,&quot;+M+&quot;V&quot;+(S+y.height/2)+&quot;h&quot;+P+(2*S+y.width)+&quot;V-&quot;+(S+y.height/2)+&quot;H&quot;+P+M+&quot;V-&quot;+M+&quot;Z&quot;);var O,z=y.height/2,R=D-y.top-z,F=&quot;clip&quot;+i._uid+&quot;commonlabel&quot;+L._id;if(m&lt;y.width+2*S+M){O=&quot;M-&quot;+(M+S)+&quot;-&quot;+z+&quot;h-&quot;+(y.width-S)+&quot;V&quot;+z+&quot;h&quot;+(y.width-S)+&quot;Z&quot;;var B=y.width-m+S;u.positionText(l,B,R),&quot;end&quot;===_&amp;&amp;l.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this),e=h.tester.append(&quot;text&quot;).text(t.text()).call(h.font,g),r=e.node().getBoundingClientRect();Math.round(r.width)&lt;Math.round(y.width)&amp;&amp;t.attr(&quot;x&quot;,B-r.width),e.remove()}))}else u.positionText(l,C*(S+M),R),O=null;var N=i._topclips.selectAll(&quot;#&quot;+F).data(O?[0]:[]);N.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,F).append(&quot;path&quot;),N.exit().remove(),N.select(&quot;path&quot;).attr(&quot;d&quot;,O),h.setClipUrl(l,O?F:null,r)}t.attr(&quot;transform&quot;,s(m,v))})),v.isUnifiedHover(a)){if(d.selectAll(&quot;g.hovertext&quot;).remove(),0===t.length)return;var H=i.hoverlabel,G=H.font,Y={showlegend:!0,legend:{title:{text:I,font:G},font:G,bgcolor:H.bgcolor,bordercolor:H.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:&quot;v&quot;}},W={};x(Y,W,r._fullData);var X=W.legend;X.entries=[];for(var Z=0;Z&lt;t.length;Z++){var J=O(t[Z],!0,a,i,I),K=J[0],Q=J[1],$=t[Z];$.name=Q,$.text=&quot;&quot;!==Q?Q+&quot; : &quot;+K:K;var tt=$.cd[$.index];tt&amp;&amp;(tt.mc&amp;&amp;($.mc=tt.mc),tt.mcc&amp;&amp;($.mc=tt.mcc),tt.mlc&amp;&amp;($.mlc=tt.mlc),tt.mlcc&amp;&amp;($.mlc=tt.mlcc),tt.mlw&amp;&amp;($.mlw=tt.mlw),tt.mrc&amp;&amp;($.mrc=tt.mrc),tt.dir&amp;&amp;($.dir=tt.dir)),$._distinct=!0,X.entries.push([$])}X.entries.sort((function(t,e){return t[0].trace.index-e[0].trace.index})),X.layer=d,X._inHover=!0,X._groupTitleFont=G,b(r,X);var et,rt,nt,it,at=d.select(&quot;g.legend&quot;),ot=at.node().getBoundingClientRect(),st=ot.width+2*S,lt=ot.height+2*S,ct=t[0],ut=(ct.x0+ct.x1)/2,ft=(ct.y0+ct.y1)/2,ht=!(m.traceIs(ct.trace,&quot;bar-like&quot;)||m.traceIs(ct.trace,&quot;box-violin&quot;));&quot;y&quot;===P?ht?(rt=ft-S,et=ft+S):(rt=Math.min.apply(null,t.map((function(t){return Math.min(t.y0,t.y1)}))),et=Math.max.apply(null,t.map((function(t){return Math.max(t.y0,t.y1)})))):rt=et=o.mean(t.map((function(t){return(t.y0+t.y1)/2})))-lt/2,&quot;x&quot;===P?ht?(nt=ut+S,it=ut-S):(nt=Math.max.apply(null,t.map((function(t){return Math.max(t.x0,t.x1)}))),it=Math.min.apply(null,t.map((function(t){return Math.min(t.x0,t.x1)})))):nt=it=o.mean(t.map((function(t){return(t.x0+t.x1)/2})))-st/2;var pt,dt,gt=E._offset,mt=L._offset;return it+=gt-st,rt+=mt-lt,pt=(nt+=gt)+st&lt;R&amp;&amp;nt&gt;=0?nt:it+st&lt;R&amp;&amp;it&gt;=0?it:gt+st&lt;R?gt:nt-ut&lt;ut-it+st?R-st:0,pt+=S,dt=(et+=mt)+lt&lt;F&amp;&amp;et&gt;=0?et:rt+lt&lt;F&amp;&amp;rt&gt;=0?rt:mt+lt&lt;F?mt:et-ft&lt;ft-rt+lt?F-lt:0,dt+=S,at.attr(&quot;transform&quot;,s(pt-1,dt-1)),at}var vt=d.selectAll(&quot;g.hovertext&quot;).data(t,(function(t){return C(t)}));return vt.enter().append(&quot;g&quot;).classed(&quot;hovertext&quot;,!0).each((function(){var t=n.select(this);t.append(&quot;rect&quot;).call(p.fill,p.addOpacity(f,.8)),t.append(&quot;text&quot;).classed(&quot;name&quot;,!0),t.append(&quot;path&quot;).style(&quot;stroke-width&quot;,&quot;1px&quot;),t.append(&quot;text&quot;).classed(&quot;nums&quot;,!0).call(h.font,T,k)})),vt.exit().remove(),vt.each((function(t){var e=n.select(this).attr(&quot;transform&quot;,&quot;&quot;),o=t.color;Array.isArray(o)&amp;&amp;(o=o[t.eventData[0].pointNumber]);var d=t.bgcolor||o,g=p.combine(p.opacity(d)?d:p.defaultLine,f),m=p.combine(p.opacity(o)?o:p.defaultLine,f),v=t.borderColor||p.contrast(g),y=O(t,B,a,i,I,e),x=y[0],b=y[1],w=e.select(&quot;text.nums&quot;).call(h.font,t.fontFamily||T,t.fontSize||k,t.fontColor||v).text(x).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r),A=e.select(&quot;text.name&quot;),E=0,L=0;if(b&amp;&amp;b!==x){A.call(h.font,t.fontFamily||T,t.fontSize||k,m).text(b).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r);var C=A.node().getBoundingClientRect();E=C.width+2*S,L=C.height+2*S}else A.remove(),e.select(&quot;rect&quot;).remove();e.select(&quot;path&quot;).style({fill:g,stroke:v});var P,z,N=w.node().getBoundingClientRect(),j=t.xa._offset+(t.x0+t.x1)/2,U=t.ya._offset+(t.y0+t.y1)/2,V=Math.abs(t.x1-t.x0),q=Math.abs(t.y1-t.y0),H=N.width+M+S+E;if(t.ty0=D-N.top,t.bx=N.width+2*S,t.by=Math.max(N.height+2*S,L),t.anchor=&quot;start&quot;,t.txwidth=N.width,t.tx2width=E,t.offset=0,c)t.pos=j,P=U+q/2+H&lt;=F,z=U-q/2-H&gt;=0,&quot;top&quot;!==t.idealAlign&amp;&amp;P||!z?P?(U+=q/2,t.anchor=&quot;start&quot;):t.anchor=&quot;middle&quot;:(U-=q/2,t.anchor=&quot;end&quot;);else if(t.pos=U,P=j+V/2+H&lt;=R,z=j-V/2-H&gt;=0,&quot;left&quot;!==t.idealAlign&amp;&amp;P||!z)if(P)j+=V/2,t.anchor=&quot;start&quot;;else{t.anchor=&quot;middle&quot;;var G=H/2,Y=j+G-R,W=j-G;Y&gt;0&amp;&amp;(j-=Y),W&lt;0&amp;&amp;(j+=-W)}else j-=V/2,t.anchor=&quot;end&quot;;w.attr(&quot;text-anchor&quot;,t.anchor),E&amp;&amp;A.attr(&quot;text-anchor&quot;,t.anchor),e.attr(&quot;transform&quot;,s(j,U)+(c?l(_):&quot;&quot;))})),vt}function O(t,e,r,n,i,a){var s=&quot;&quot;,l=&quot;&quot;;void 0!==t.nameOverride&amp;&amp;(t.name=t.nameOverride),t.name&amp;&amp;(t.trace._meta&amp;&amp;(t.name=o.templateString(t.name,t.trace._meta)),s=B(t.name,t.nameLength));var c=r.charAt(0),u=&quot;x&quot;===c?&quot;y&quot;:&quot;x&quot;;void 0!==t.zLabel?(void 0!==t.xLabel&amp;&amp;(l+=&quot;x: &quot;+t.xLabel+&quot;&lt;br&gt;&quot;),void 0!==t.yLabel&amp;&amp;(l+=&quot;y: &quot;+t.yLabel+&quot;&lt;br&gt;&quot;),&quot;choropleth&quot;!==t.trace.type&amp;&amp;&quot;choroplethmapbox&quot;!==t.trace.type&amp;&amp;(l+=(l?&quot;z: &quot;:&quot;&quot;)+t.zLabel)):e&amp;&amp;t[c+&quot;Label&quot;]===i?l=t[u+&quot;Label&quot;]||&quot;&quot;:void 0===t.xLabel?void 0!==t.yLabel&amp;&amp;&quot;scattercarpet&quot;!==t.trace.type&amp;&amp;(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:&quot;(&quot;+t.xLabel+&quot;, &quot;+t.yLabel+&quot;)&quot;,!t.text&amp;&amp;0!==t.text||Array.isArray(t.text)||(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.text),void 0!==t.extraText&amp;&amp;(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.extraText),a&amp;&amp;&quot;&quot;===l&amp;&amp;!t.hovertemplate&amp;&amp;(&quot;&quot;===s&amp;&amp;a.remove(),l=s);var f=t.hovertemplate||!1;if(f){var h=t.hovertemplateLabels||t;t[c+&quot;Label&quot;]!==i&amp;&amp;(h[c+&quot;other&quot;]=h[c+&quot;Val&quot;],h[c+&quot;otherLabel&quot;]=h[c+&quot;Label&quot;]),l=(l=o.hovertemplateString(f,h,n._d3locale,t.eventData[0]||{},t.trace._meta)).replace(P,(function(e,r){return s=B(r,t.nameLength),&quot;&quot;}))}return[l,s]}function z(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select(&quot;text.nums&quot;),s=t.anchor,l=&quot;end&quot;===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(M+S),p=f+c*(t.txwidth+S),d=0,g=t.offset,m=&quot;middle&quot;===s;m&amp;&amp;(f-=t.tx2width/2,p+=t.txwidth/2+S),e&amp;&amp;(g*=-A,d=t.offset*k),r.select(&quot;path&quot;).attr(&quot;d&quot;,m?&quot;M-&quot;+a(t.bx/2+t.tx2width/2)+&quot;,&quot;+o(g-t.by/2)+&quot;h&quot;+a(t.bx)+&quot;v&quot;+o(t.by)+&quot;h-&quot;+a(t.bx)+&quot;Z&quot;:&quot;M0,0L&quot;+a(l*M+d)+&quot;,&quot;+o(M+g)+&quot;v&quot;+o(t.by/2-M)+&quot;h&quot;+a(l*t.bx)+&quot;v-&quot;+o(t.by)+&quot;H&quot;+a(l*M+d)+&quot;V&quot;+o(g-M)+&quot;Z&quot;);var v=d+f,y=g+t.ty0-t.by/2+S,x=t.textAlign||&quot;auto&quot;;&quot;auto&quot;!==x&amp;&amp;(&quot;left&quot;===x&amp;&amp;&quot;start&quot;!==s?(i.attr(&quot;text-anchor&quot;,&quot;start&quot;),v=m?-t.bx/2-t.tx2width/2+S:-t.bx-S):&quot;right&quot;===x&amp;&amp;&quot;end&quot;!==s&amp;&amp;(i.attr(&quot;text-anchor&quot;,&quot;end&quot;),v=m?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&amp;&amp;(r.select(&quot;text.name&quot;).call(u.positionText,a(p+c*S+d),o(g+t.ty0-t.by/2+S)),r.select(&quot;rect&quot;).call(h.setRect,a(p+(c-1)*t.tx2width/2+d),o(g-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function D(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&amp;&amp;0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,&quot;&quot;,e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&amp;&amp;(t[e]=i)}if(u(&quot;hoverinfo&quot;,&quot;hi&quot;,&quot;hoverinfo&quot;),u(&quot;bgcolor&quot;,&quot;hbg&quot;,&quot;hoverlabel.bgcolor&quot;),u(&quot;borderColor&quot;,&quot;hbc&quot;,&quot;hoverlabel.bordercolor&quot;),u(&quot;fontFamily&quot;,&quot;htf&quot;,&quot;hoverlabel.font.family&quot;),u(&quot;fontSize&quot;,&quot;hts&quot;,&quot;hoverlabel.font.size&quot;),u(&quot;fontColor&quot;,&quot;htc&quot;,&quot;hoverlabel.font.color&quot;),u(&quot;nameLength&quot;,&quot;hnl&quot;,&quot;hoverlabel.namelength&quot;),u(&quot;textAlign&quot;,&quot;hta&quot;,&quot;hoverlabel.align&quot;),t.posref=&quot;y&quot;===e||&quot;closest&quot;===e&amp;&amp;&quot;h&quot;===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&amp;&amp;(t.xLabel=&quot;xLabel&quot;in t?t.xLabel:g.hoverLabelText(t.xa,t.xLabelVal,n.xhoverformat),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&amp;&amp;(t.yLabel=&quot;yLabel&quot;in t?t.yLabel:g.hoverLabelText(t.ya,t.yLabelVal,n.yhoverformat),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&amp;&amp;void 0===t.zLabel&amp;&amp;(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||&quot;log&quot;===t.xa.type&amp;&amp;t.xerr&lt;=0)){var f=g.tickText(t.xa,t.xa.c2l(t.xerr),&quot;hover&quot;).text;void 0!==t.xerrneg?t.xLabel+=&quot; +&quot;+f+&quot; / -&quot;+g.tickText(t.xa,t.xa.c2l(t.xerrneg),&quot;hover&quot;).text:t.xLabel+=&quot; \xb1 &quot;+f,&quot;x&quot;===e&amp;&amp;(t.distance+=1)}if(!(isNaN(t.yerr)||&quot;log&quot;===t.ya.type&amp;&amp;t.yerr&lt;=0)){var h=g.tickText(t.ya,t.ya.c2l(t.yerr),&quot;hover&quot;).text;void 0!==t.yerrneg?t.yLabel+=&quot; +&quot;+h+&quot; / -&quot;+g.tickText(t.ya,t.ya.c2l(t.yerrneg),&quot;hover&quot;).text:t.yLabel+=&quot; \xb1 &quot;+h,&quot;y&quot;===e&amp;&amp;(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&amp;&amp;&quot;all&quot;!==p&amp;&amp;(-1===(p=Array.isArray(p)?p:p.split(&quot;+&quot;)).indexOf(&quot;x&quot;)&amp;&amp;(t.xLabel=void 0),-1===p.indexOf(&quot;y&quot;)&amp;&amp;(t.yLabel=void 0),-1===p.indexOf(&quot;z&quot;)&amp;&amp;(t.zLabel=void 0),-1===p.indexOf(&quot;text&quot;)&amp;&amp;(t.text=void 0),-1===p.indexOf(&quot;name&quot;)&amp;&amp;(t.name=void 0)),t}function R(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(&quot;.spikeline&quot;).remove(),f||u){var d=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=e.hLinePoint;n=y&amp;&amp;y.xa,&quot;cursor&quot;===(i=y&amp;&amp;y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,d)&lt;1.5?p.contrast(d):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,A=g.getPxPosition(t,i);if(-1!==w.indexOf(&quot;toaxis&quot;)||-1!==w.indexOf(&quot;across&quot;)){if(-1!==w.indexOf(&quot;toaxis&quot;)&amp;&amp;(x=A,b=m),-1!==w.indexOf(&quot;across&quot;)){var M=i._counterDomainMin,S=i._counterDomainMax;&quot;free&quot;===i.anchor&amp;&amp;(M=Math.min(M,i.position),S=Math.max(S,i.position)),x=l.l+M*l.w,b=l.l+S*l.w}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T,stroke:k,&quot;stroke-dasharray&quot;:h.dashStyle(i.spikedash,T)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==w.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:A+(&quot;right&quot;!==i.side?T:-T),cy:v,r:T,fill:k}).classed(&quot;spikeline&quot;,!0)}if(f){var E,L,C=e.vLinePoint;n=C&amp;&amp;C.xa,i=C&amp;&amp;C.ya,&quot;cursor&quot;===n.spikesnap?(E=c.pointerX,L=c.pointerY):(E=n._offset+C.x,L=i._offset+C.y);var P,I,O=a.readability(C.color,d)&lt;1.5?p.contrast(d):C.color,z=n.spikemode,D=n.spikethickness,R=n.spikecolor||O,F=g.getPxPosition(t,n);if(-1!==z.indexOf(&quot;toaxis&quot;)||-1!==z.indexOf(&quot;across&quot;)){if(-1!==z.indexOf(&quot;toaxis&quot;)&amp;&amp;(P=F,I=L),-1!==z.indexOf(&quot;across&quot;)){var B=n._counterDomainMin,N=n._counterDomainMax;&quot;free&quot;===n.anchor&amp;&amp;(B=Math.min(B,n.position),N=Math.max(N,n.position)),P=l.t+(1-N)*l.h,I=l.t+(1-B)*l.h}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:P,y2:I,&quot;stroke-width&quot;:D,stroke:R,&quot;stroke-dasharray&quot;:h.dashStyle(n.spikedash,D)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:P,y2:I,&quot;stroke-width&quot;:D+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==z.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:E,cy:F-(&quot;top&quot;!==n.side?D:-D),r:D,fill:R}).classed(&quot;spikeline&quot;,!0)}}}function F(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function B(t,e){return u.plainText(t||&quot;&quot;,{len:e,allowedTags:[&quot;br&quot;,&quot;sub&quot;,&quot;sup&quot;,&quot;b&quot;,&quot;i&quot;,&quot;em&quot;]})}function N(t,e,r){var n=e[t+&quot;a&quot;],i=e[t+&quot;Val&quot;],a=e.cd[0];if(&quot;category&quot;===n.type)i=n._categoriesMap[i];else if(&quot;date&quot;===n.type){var o=e.trace[t+&quot;periodalignment&quot;];if(o){var s=e.cd[e.index],l=s[t+&quot;Start&quot;];void 0===l&amp;&amp;(l=s[t]);var c=s[t+&quot;End&quot;];void 0===c&amp;&amp;(c=s[t]);var u=c-l;&quot;end&quot;===o?i+=u:&quot;middle&quot;===o&amp;&amp;(i+=u/2)}i=n.d2c(i)}return a&amp;&amp;a.t&amp;&amp;a.t.posLetter===n._id&amp;&amp;(&quot;group&quot;!==r.boxmode&amp;&amp;&quot;group&quot;!==r.violinmode||(i+=a.t.dPos)),i}function j(t){return t.offsetTop+t.clientTop}function U(t){return t.offsetLeft+t.clientLeft}},{&quot;../../lib&quot;:803,&quot;../../lib/events&quot;:792,&quot;../../lib/override_cursor&quot;:814,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;../legend/defaults&quot;:718,&quot;../legend/draw&quot;:719,&quot;./constants&quot;:700,&quot;./helpers&quot;:702,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],704:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;./helpers&quot;).isUnifiedHover;e.exports=function(t,e,r,o){function s(t){o.font[t]||(o.font[t]=e.legend?e.legend.font[t]:e.font[t])}o=o||{},e&amp;&amp;a(e.hovermode)&amp;&amp;(o.font||(o.font={}),s(&quot;size&quot;),s(&quot;family&quot;),s(&quot;color&quot;),e.legend?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r(&quot;hoverlabel.bgcolor&quot;,o.bgcolor),r(&quot;hoverlabel.bordercolor&quot;,o.bordercolor),r(&quot;hoverlabel.namelength&quot;,o.namelength),n.coerceFont(r,&quot;hoverlabel.font&quot;,o.font),r(&quot;hoverlabel.align&quot;,o.align)}},{&quot;../../lib&quot;:803,&quot;../color&quot;:666,&quot;./helpers&quot;:702}],705:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}return r(&quot;clickmode&quot;),r(&quot;hovermode&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:707}],706:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../dragelement&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./hover&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;fx&quot;,constants:t(&quot;./constants&quot;),schema:{layout:s},attributes:t(&quot;./attributes&quot;),layoutAttributes:s,supplyLayoutGlobalDefaults:t(&quot;./layout_global_defaults&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,&quot;hoverlabel.&quot;+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,&quot;hoverinfo&quot;,(function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(&quot;g.hovertext&quot;).remove(),e.selectAll(&quot;.spikeline&quot;).remove()},click:t(&quot;./click&quot;)}},{&quot;../../lib&quot;:803,&quot;../dragelement&quot;:685,&quot;./attributes&quot;:697,&quot;./calc&quot;:698,&quot;./click&quot;:699,&quot;./constants&quot;:700,&quot;./defaults&quot;:701,&quot;./helpers&quot;:702,&quot;./hover&quot;:703,&quot;./layout_attributes&quot;:707,&quot;./layout_defaults&quot;:708,&quot;./layout_global_defaults&quot;:709,&quot;@plotly/d3&quot;:58}],707:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../plots/font_attributes&quot;)({editType:&quot;none&quot;});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:&quot;flaglist&quot;,flags:[&quot;event&quot;,&quot;select&quot;],dflt:&quot;event&quot;,editType:&quot;plot&quot;,extras:[&quot;none&quot;]},dragmode:{valType:&quot;enumerated&quot;,values:[&quot;zoom&quot;,&quot;pan&quot;,&quot;select&quot;,&quot;lasso&quot;,&quot;drawclosedpath&quot;,&quot;drawopenpath&quot;,&quot;drawline&quot;,&quot;drawrect&quot;,&quot;drawcircle&quot;,&quot;orbit&quot;,&quot;turntable&quot;,!1],dflt:&quot;zoom&quot;,editType:&quot;modebar&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,!1,&quot;x unified&quot;,&quot;y unified&quot;],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},hoverdistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},spikedistance:{valType:&quot;integer&quot;,min:-1,dflt:-1,editType:&quot;none&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},font:i,align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;none&quot;},namelength:{valType:&quot;integer&quot;,min:-1,dflt:15,editType:&quot;none&quot;},editType:&quot;none&quot;},selectdirection:{valType:&quot;enumerated&quot;,values:[&quot;h&quot;,&quot;v&quot;,&quot;d&quot;,&quot;any&quot;],dflt:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../../plots/font_attributes&quot;:883,&quot;./constants&quot;:700}],708:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;./hovermode_defaults&quot;),o=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}a(t,e)&amp;&amp;(r(&quot;hoverdistance&quot;),r(&quot;spikedistance&quot;)),&quot;select&quot;===r(&quot;dragmode&quot;)&amp;&amp;r(&quot;selectdirection&quot;);var s=e._has(&quot;mapbox&quot;),l=e._has(&quot;geo&quot;),c=e._basePlotModules.length;&quot;zoom&quot;===e.dragmode&amp;&amp;((s||l)&amp;&amp;1===c||s&amp;&amp;l&amp;&amp;2===c)&amp;&amp;(e.dragmode=&quot;pan&quot;),o(t,e,r)}},{&quot;../../lib&quot;:803,&quot;./hoverlabel_defaults&quot;:704,&quot;./hovermode_defaults&quot;:705,&quot;./layout_attributes&quot;:707}],709:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./hoverlabel_defaults&quot;),a=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){i(t,e,(function(r,i){return n.coerce(t,e,a,r,i)}))}},{&quot;../../lib&quot;:803,&quot;./hoverlabel_defaults&quot;:704,&quot;./layout_attributes&quot;:707}],710:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/cartesian/constants&quot;).idRegex,s=t(&quot;../../plot_api/plot_template&quot;),l={rows:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},roworder:{valType:&quot;enumerated&quot;,values:[&quot;top to bottom&quot;,&quot;bottom to top&quot;],dflt:&quot;top to bottom&quot;,editType:&quot;plot&quot;},columns:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},subplots:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:2,items:{valType:&quot;enumerated&quot;,values:[i(&quot;xy&quot;).toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},xaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.x.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},yaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.y.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},pattern:{valType:&quot;enumerated&quot;,values:[&quot;independent&quot;,&quot;coupled&quot;],dflt:&quot;coupled&quot;,editType:&quot;plot&quot;},xgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},domain:a({name:&quot;grid&quot;,editType:&quot;plot&quot;,noGridCell:!0},{}),xside:{valType:&quot;enumerated&quot;,values:[&quot;bottom&quot;,&quot;bottom plot&quot;,&quot;top plot&quot;,&quot;top&quot;],dflt:&quot;bottom plot&quot;,editType:&quot;plot&quot;},yside:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;left plot&quot;,&quot;right plot&quot;,&quot;right&quot;],dflt:&quot;left plot&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;};function c(t,e,r){var n=e[r+&quot;axes&quot;],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+&quot;gap&quot;,r),s=e(&quot;domain.&quot;+t);e(t+&quot;side&quot;,n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h&lt;i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&amp;&amp;void 0===n[r]?(o[t]=r,n[r]=t):o[t]=&quot;&quot;}if(Array.isArray(t))for(a=0;a&lt;r;a++)s(a,t[a]);else for(s(0,i),a=1;a&lt;r;a++)s(a,i+(a+1));return o}e.exports={moduleType:&quot;component&quot;,name:&quot;grid&quot;,schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,&quot;x&quot;),a=c(e,r,&quot;y&quot;);if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&amp;&amp;Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),g=p&amp;&amp;i!==r.xaxes&amp;&amp;d&amp;&amp;a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&amp;&amp;(o=a.length),p&amp;&amp;(f=i.length));var m=s.newContainer(e,&quot;grid&quot;),v=k(&quot;rows&quot;,o),y=k(&quot;columns&quot;,f);if(v*y&gt;1){if(!h&amp;&amp;!p&amp;&amp;!d)&quot;independent&quot;===k(&quot;pattern&quot;)&amp;&amp;(h=!0);m._hasSubplotGrid=h;var x,b,_=&quot;top to bottom&quot;===k(&quot;roworder&quot;),w=h?.2:.1,T=h?.3:.1;g&amp;&amp;e._splomGridDflt&amp;&amp;(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),m._domains={x:u(&quot;x&quot;,k,w,x,y),y:u(&quot;y&quot;,k,T,b,v,_)}}else delete e.grid}function k(t,e){return n.coerce(r,m,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&amp;&amp;r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,g=r.rows,m=r.columns,v=&quot;independent&quot;===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;n&lt;g;n++){var _=l[n]=new Array(m),w=x[n]||[];for(i=0;i&lt;m;i++)if(v?(s=1===b?&quot;xy&quot;:&quot;x&quot;+b+&quot;y&quot;+b,b++):s=w[i],_[i]=&quot;&quot;,-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(&quot;y&quot;),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&amp;&amp;y[a]!==i||void 0!==y[o]&amp;&amp;y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var T=c(e,h,&quot;x&quot;),k=c(e,h,&quot;y&quot;);r.xaxes=f(T,p.xaxis,m,y,&quot;x&quot;),r.yaxes=f(k,p.yaxis,g,y,&quot;y&quot;)}var A=r._anchors={},M=&quot;top to bottom&quot;===r.roworder;for(var S in y){var E,L,C,P=S.charAt(0),I=r[P+&quot;side&quot;];if(I.length&lt;8)A[S]=&quot;free&quot;;else if(&quot;x&quot;===P){if(&quot;t&quot;===I.charAt(0)===M?(E=0,L=1,C=g):(E=g-1,L=-1,C=-1),d){var O=y[S];for(n=E;n!==C;n+=L)if((s=l[n][O])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(0,u)===S)){A[S]=s.slice(u);break}}else for(n=E;n!==C;n+=L)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){A[S]=o;break}}else if(&quot;l&quot;===I.charAt(0)?(E=0,L=1,C=m):(E=m-1,L=-1,C=-1),d){var z=y[S];for(n=E;n!==C;n+=L)if((s=l[z][n])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(u)===S)){A[S]=s.slice(0,u);break}}else for(n=E;n!==C;n+=L)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){A[S]=a;break}}}}}},{&quot;../../lib&quot;:803,&quot;../../lib/regex&quot;:820,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/constants&quot;:861,&quot;../../plots/domain&quot;:882}],711:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/constants&quot;),i=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=i(&quot;image&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;arraydraw&quot;},source:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},sizex:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizey:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizing:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;contain&quot;,&quot;stretch&quot;],dflt:&quot;contain&quot;,editType:&quot;arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},x:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},y:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;arraydraw&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.x.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.y.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:772,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/constants&quot;:861}],712:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h&lt;u.length;h++)if(c=&quot;images[&quot;+h+&quot;].&quot;,(l=u[h])[f+&quot;ref&quot;]===e._id){var p=l[f],d=l[&quot;size&quot;+f],g=null,m=null;if(o){g=i(p,e.range);var v=d/Math.pow(10,g)/2;m=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=(g=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(g)?n(m)||(m=null):(g=null,m=null),a(c+f,g),a(c+&quot;size&quot;+f,m)}}},{&quot;../../lib/to_log_range&quot;:831,&quot;fast-isnumeric&quot;:249}],713:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(&quot;source&quot;);if(!a(&quot;visible&quot;,!!s))return e;a(&quot;layer&quot;),a(&quot;xanchor&quot;),a(&quot;yanchor&quot;),a(&quot;sizex&quot;),a(&quot;sizey&quot;),a(&quot;sizing&quot;),a(&quot;opacity&quot;);for(var l={_fullLayout:r},c=[&quot;x&quot;,&quot;y&quot;],u=0;u&lt;2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,&quot;paper&quot;,void 0);if(&quot;paper&quot;!==h)i.getFromId(l,h)._imgIndices.push(e._index);i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:&quot;images&quot;,handleItemDefaults:s})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/axes&quot;:854,&quot;./attributes&quot;:711}],714:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../drawing&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/axis_ids&quot;),s=t(&quot;../../constants/xmlns_namespaces&quot;);e.exports=function(t){var e,r,l=t._fullLayout,c=[],u={},f=[];for(r=0;r&lt;l.images.length;r++){var h=l.images[r];if(h.visible)if(&quot;below&quot;===h.layer&amp;&amp;&quot;paper&quot;!==h.xref&amp;&amp;&quot;paper&quot;!==h.yref){e=o.ref2id(h.xref)+o.ref2id(h.yref);var p=l._plots[e];if(!p){f.push(h);continue}p.mainplot&amp;&amp;(e=p.mainplot.id),u[e]||(u[e]=[]),u[e].push(h)}else&quot;above&quot;===h.layer?c.push(h):f.push(h)}var d={left:{sizing:&quot;xMin&quot;,offset:0},center:{sizing:&quot;xMid&quot;,offset:-.5},right:{sizing:&quot;xMax&quot;,offset:-1}},g={top:{sizing:&quot;YMin&quot;,offset:0},middle:{sizing:&quot;YMid&quot;,offset:-.5},bottom:{sizing:&quot;YMax&quot;,offset:-1}};function m(e){var r=n.select(this);if(this._imgSrc!==e.source)if(r.attr(&quot;xmlns&quot;,s.svg),e.source&amp;&amp;&quot;data:&quot;===e.source.slice(0,5))r.attr(&quot;xlink:href&quot;,e.source),this._imgSrc=e.source;else{var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(&quot;crossOrigin&quot;,&quot;anonymous&quot;),n.onerror=i,n.onload=function(){var e=document.createElement(&quot;canvas&quot;);e.width=this.width,e.height=this.height,e.getContext(&quot;2d&quot;).drawImage(this,0,0);var n=e.toDataURL(&quot;image/png&quot;);r.attr(&quot;xlink:href&quot;,n),t()},r.on(&quot;error&quot;,i),n.src=e.source,this._imgSrc=e.source}.bind(this));t._promises.push(i)}}function v(e){var r,o,s=n.select(this),c=a.getFromId(t,e.xref),u=a.getFromId(t,e.yref),f=&quot;domain&quot;===a.getRefType(e.xref),h=&quot;domain&quot;===a.getRefType(e.yref),p=l._size;r=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.sizex:Math.abs(c.l2p(e.sizex)-c.l2p(0)):e.sizex*p.w,o=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*e.sizey:Math.abs(u.l2p(e.sizey)-u.l2p(0)):e.sizey*p.h;var m,v,y=r*d[e.xanchor].offset,x=o*g[e.yanchor].offset,b=d[e.xanchor].sizing+g[e.yanchor].sizing;switch(m=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.x+c._offset:c.r2p(e.x)+c._offset:e.x*p.w+p.l,m+=y,v=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*(1-e.y)+u._offset:u.r2p(e.y)+u._offset:p.h-e.y*p.h+p.t,v+=x,e.sizing){case&quot;fill&quot;:b+=&quot; slice&quot;;break;case&quot;stretch&quot;:b=&quot;none&quot;}s.attr({x:m,y:v,width:r,height:o,preserveAspectRatio:b,opacity:e.opacity});var _=(c&amp;&amp;&quot;domain&quot;!==a.getRefType(e.xref)?c._id:&quot;&quot;)+(u&amp;&amp;&quot;domain&quot;!==a.getRefType(e.yref)?u._id:&quot;&quot;);i.setClipUrl(s,_?&quot;clip&quot;+l._uid+_:null,t)}var y=l._imageLowerLayer.selectAll(&quot;image&quot;).data(f),x=l._imageUpperLayer.selectAll(&quot;image&quot;).data(c);y.enter().append(&quot;image&quot;),x.enter().append(&quot;image&quot;),y.exit().remove(),x.exit().remove(),y.each((function(t){m.bind(this)(t),v.bind(this)(t)})),x.each((function(t){m.bind(this)(t),v.bind(this)(t)}));var b=Object.keys(l._plots);for(r=0;r&lt;b.length;r++){e=b[r];var _=l._plots[e];if(_.imagelayer){var w=_.imagelayer.selectAll(&quot;image&quot;).data(u[e]||[]);w.enter().append(&quot;image&quot;),w.exit().remove(),w.each((function(t){m.bind(this)(t),v.bind(this)(t)}))}}}},{&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../drawing&quot;:688,&quot;@plotly/d3&quot;:58}],715:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;images&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;images&quot;),draw:t(&quot;./draw&quot;),convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:867,&quot;./attributes&quot;:711,&quot;./convert_coords&quot;:712,&quot;./defaults&quot;:713,&quot;./draw&quot;:714}],716:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,editType:&quot;legend&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;legend&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;v&quot;,editType:&quot;legend&quot;},traceorder:{valType:&quot;flaglist&quot;,flags:[&quot;reversed&quot;,&quot;grouped&quot;],extras:[&quot;normal&quot;],editType:&quot;legend&quot;},tracegroupgap:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;legend&quot;},itemsizing:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;constant&quot;],dflt:&quot;trace&quot;,editType:&quot;legend&quot;},itemwidth:{valType:&quot;number&quot;,min:30,dflt:30,editType:&quot;legend&quot;},itemclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggle&quot;,editType:&quot;legend&quot;},itemdoubleclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggleothers&quot;,editType:&quot;legend&quot;},groupclick:{valType:&quot;enumerated&quot;,values:[&quot;toggleitem&quot;,&quot;togglegroup&quot;],dflt:&quot;togglegroup&quot;,editType:&quot;legend&quot;},x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;legend&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;legend&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;legend&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;left&quot;,&quot;top left&quot;],editType:&quot;legend&quot;},editType:&quot;legend&quot;},editType:&quot;legend&quot;}},{&quot;../../plots/font_attributes&quot;:883,&quot;../color/attributes&quot;:665}],717:[function(t,e,r){&quot;use strict&quot;;e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:&quot;#808BA4&quot;,scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],718:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../plots/layout_attributes&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r){for(var c=t.legend||{},u=0,f=!1,h=&quot;normal&quot;,p=0;p&lt;r.length;p++){var d=r[p];d.visible&amp;&amp;((d.showlegend||d._dfltShowLegend&amp;&amp;!(d._module&amp;&amp;d._module.attributes&amp;&amp;d._module.attributes.showlegend&amp;&amp;!1===d._module.attributes.showlegend.dflt))&amp;&amp;(u++,d.showlegend&amp;&amp;(f=!0,(n.traceIs(d,&quot;pie-like&quot;)||!0===d._input.showlegend)&amp;&amp;u++)),(n.traceIs(d,&quot;bar&quot;)&amp;&amp;&quot;stack&quot;===e.barmode||-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;].indexOf(d.fill))&amp;&amp;(h=l.isGrouped({traceorder:h})?&quot;grouped+reversed&quot;:&quot;reversed&quot;),void 0!==d.legendgroup&amp;&amp;&quot;&quot;!==d.legendgroup&amp;&amp;(h=l.isReversed({traceorder:h})?&quot;reversed+grouped&quot;:&quot;grouped&quot;))}var g=i.coerce(t,e,s,&quot;showlegend&quot;,f&amp;&amp;u&gt;1);if(!1!==g||c.uirevision){var m=a.newContainer(e,&quot;legend&quot;);if(T(&quot;uirevision&quot;,e.uirevision),!1!==g){T(&quot;bgcolor&quot;,e.paper_bgcolor),T(&quot;bordercolor&quot;),T(&quot;borderwidth&quot;);var v,y,x,b=i.coerceFont(T,&quot;font&quot;,e.font),_=&quot;h&quot;===T(&quot;orientation&quot;);if(_?(v=0,n.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(t.xaxis)?(y=1.1,x=&quot;bottom&quot;):(y=-.1,x=&quot;top&quot;)):(v=1.02,y=1,x=&quot;auto&quot;),T(&quot;traceorder&quot;,h),l.isGrouped(e.legend)&amp;&amp;T(&quot;tracegroupgap&quot;),T(&quot;itemsizing&quot;),T(&quot;itemwidth&quot;),T(&quot;itemclick&quot;),T(&quot;itemdoubleclick&quot;),T(&quot;groupclick&quot;),T(&quot;x&quot;,v),T(&quot;xanchor&quot;),T(&quot;y&quot;,y),T(&quot;yanchor&quot;,x),T(&quot;valign&quot;),i.noneOrAll(c,m,[&quot;x&quot;,&quot;y&quot;]),T(&quot;title.text&quot;)){T(&quot;title.side&quot;,_?&quot;left&quot;:&quot;top&quot;);var w=i.extendFlat({},b,{size:i.bigFont(b.size)});i.coerceFont(T,&quot;title.font&quot;,w)}}}function T(t,e){return i.coerce(c,m,o,t,e)}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/layout_attributes&quot;:908,&quot;../../registry&quot;:931,&quot;./attributes&quot;:716,&quot;./helpers&quot;:722}],719:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib/events&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./handle_click&quot;),p=t(&quot;./constants&quot;),d=t(&quot;../../constants/alignment&quot;),g=d.LINE_SPACING,m=d.FROM_TL,v=d.FROM_BR,y=t(&quot;./get_legend_data&quot;),x=t(&quot;./style&quot;),b=t(&quot;./helpers&quot;);function _(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&amp;&amp;(l.group=a._group),o.traceIs(a,&quot;pie-like&quot;)&amp;&amp;(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,&quot;plotly_legendclick&quot;,l))if(1===n)e._clickTimeout=setTimeout((function(){t._fullLayout&amp;&amp;h(r,t,n)}),t._context.doubleClickDelay);else if(2===n){e._clickTimeout&amp;&amp;clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,&quot;plotly_legenddoubleclick&quot;,l)&amp;&amp;h(r,t,n)}}function w(t,e,r){var n,a,s=t.data()[0][0],l=s.trace,u=o.traceIs(l,&quot;pie-like&quot;),h=!r._inHover&amp;&amp;e._context.edits.legendText&amp;&amp;!u,d=r._maxNameLength;s.groupTitle?(n=s.groupTitle.text,a=s.groupTitle.font):(a=r.font,r.entries?n=s.text:(n=u?s.label:l.name,l._meta&amp;&amp;(n=i.templateString(n,l._meta))));var g=i.ensureSingle(t,&quot;text&quot;,&quot;legendtext&quot;);g.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,a).text(h?T(n,d):n);var m=r.itemwidth+2*p.itemGap;f.positionText(g,m,0),h?g.call(f.makeEditable,{gd:e,text:n}).call(A,t,e,r).on(&quot;edit&quot;,(function(n){this.text(T(n,d)).call(A,t,e,r);var a=s.trace._fullInput||{},c={};if(o.hasTransform(a,&quot;groupby&quot;)){var u=o.getTransformIndices(a,&quot;groupby&quot;),f=u[u.length-1],h=i.keyedContainer(a,&quot;transforms[&quot;+f+&quot;].styles&quot;,&quot;target&quot;,&quot;value.name&quot;);h.set(s.trace._group,n),c=h.constructUpdate()}else c.name=n;return o.call(&quot;_guiRestyle&quot;,e,c,l.index)})):A(g,t,e,r)}function T(t,e){var r=Math.max(4,e);if(t&amp;&amp;t.trim().length&gt;=r/2)return t;for(var n=r-(t=t||&quot;&quot;).length;n&gt;0;n--)t+=&quot; &quot;;return t}function k(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,&quot;rect&quot;,&quot;legendtoggle&quot;,(function(t){e._context.staticPlot||t.style(&quot;cursor&quot;,&quot;pointer&quot;).attr(&quot;pointer-events&quot;,&quot;all&quot;),t.call(u.fill,&quot;rgba(0,0,0,0)&quot;)}));e._context.staticPlot||(s.on(&quot;mousedown&quot;,(function(){(r=(new Date).getTime())-e._legendMouseDownTime&lt;a?o+=1:(o=1,e._legendMouseDownTime=r)})),s.on(&quot;mouseup&quot;,(function(){if(!e._dragged&amp;&amp;!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime&gt;a&amp;&amp;(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})))}function A(t,e,r,n,i){n._inHover&amp;&amp;t.attr(&quot;data-notex&quot;,!0),f.convertToTspans(t,r,(function(){!function(t,e,r,n){var i=t.data()[0][0];if(!r._inHover&amp;&amp;i&amp;&amp;!i.trace.showlegend)return void t.remove();var a=t.select(&quot;g[class*=math-group]&quot;),o=a.node();r||(r=e._fullLayout.legend);var s,l=r.borderwidth;s=1===n?r.title.font:i.groupTitle?i.groupTitle.font:r.font;var u,h,d=s.size*g;if(o){var m=c.bBox(o);u=m.height,h=m.width,1===n?c.setTranslate(a,l,l+.75*u):c.setTranslate(a,0,.25*u)}else{var v=t.select(1===n?&quot;.legendtitletext&quot;:&quot;.legendtext&quot;),y=f.lineCount(v),x=v.node();if(u=d*y,h=x?c.bBox(x).width:0,1===n)&quot;left&quot;===r.title.side&amp;&amp;(h+=2*p.itemGap),f.positionText(v,l+p.titlePad,l+d);else{var b=2*p.itemGap+r.itemwidth;i.groupTitle&amp;&amp;(b=p.itemGap,h-=r.itemwidth),f.positionText(v,b,-d*((y-1)/2-.3))}}1===n?(r._titleWidth=h,r._titleHeight=u):(i.lineHeight=d,i.height=Math.max(u,16)+3,i.width=h)}(e,r,n,i)}))}function M(t){return i.isRightAnchor(t)?&quot;right&quot;:i.isCenterAnchor(t)?&quot;center&quot;:&quot;left&quot;}function S(t){return i.isBottomAnchor(t)?&quot;bottom&quot;:i.isMiddleAnchor(t)?&quot;middle&quot;:&quot;top&quot;}e.exports=function(t,e){return e||(e=t._fullLayout.legend||{}),function(t,e){var r,s,f=t._fullLayout,h=&quot;legend&quot;+f._uid,d=e._inHover;d?(r=e.layer,h+=&quot;-hover&quot;):r=f._infolayer;if(!r)return;t._legendMouseDownTime||(t._legendMouseDownTime=0);if(d){if(!e.entries)return;s=y(e.entries,e)}else{if(!t.calcdata)return;s=f.showlegend&amp;&amp;y(t.calcdata,e)}var g=f.hiddenlabels||[];if(!(d||f.showlegend&amp;&amp;s.length))return r.selectAll(&quot;.legend&quot;).remove(),f._topdefs.select(&quot;#&quot;+h).remove(),a.autoMargin(t,&quot;legend&quot;);var T=i.ensureSingle(r,&quot;g&quot;,&quot;legend&quot;,(function(t){d||t.attr(&quot;pointer-events&quot;,&quot;all&quot;)})),E=i.ensureSingleById(f._topdefs,&quot;clipPath&quot;,h,(function(t){t.append(&quot;rect&quot;)})),L=i.ensureSingle(T,&quot;rect&quot;,&quot;bg&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));L.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;);var C=i.ensureSingle(T,&quot;g&quot;,&quot;scrollbox&quot;),P=e.title;if(e._titleWidth=0,e._titleHeight=0,P.text){var I=i.ensureSingle(C,&quot;text&quot;,&quot;legendtitletext&quot;);I.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,P.font).text(P.text),A(I,C,t,e,1)}else C.selectAll(&quot;.legendtitletext&quot;).remove();var O=i.ensureSingle(T,&quot;rect&quot;,&quot;scrollbar&quot;,(function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll(&quot;g.groups&quot;).data(s);z.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;groups&quot;),z.exit().remove();var D=z.selectAll(&quot;g.traces&quot;).data(i.identity);D.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;traces&quot;),D.exit().remove(),D.style(&quot;opacity&quot;,(function(t){var e=t[0].trace;return o.traceIs(e,&quot;pie-like&quot;)?-1!==g.indexOf(t[0].label)?.5:1:&quot;legendonly&quot;===e.visible?.5:1})).each((function(){n.select(this).call(w,t,e)})).call(x,t,e).each((function(){d||n.select(this).call(k,t)})),i.syncOrAsync([a.previousPromises,function(){return function(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,f=2*u,h=p.itemGap,d=i.itemwidth+2*h,g=2*(u+h),m=S(i),v=i.y&lt;0||0===i.y&amp;&amp;&quot;top&quot;===m,y=i.y&gt;1||1===i.y&amp;&amp;&quot;bottom&quot;===m,x=i.tracegroupgap;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var _=0;i._width=0,i._height=0;var w=function(t){var e=0,r=0,n=t.title.side;n&amp;&amp;(-1!==n.indexOf(&quot;left&quot;)&amp;&amp;(e=t._titleWidth),-1!==n.indexOf(&quot;top&quot;)&amp;&amp;(r=t._titleHeight));return[e,r]}(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,u+w[0],u+w[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),_=d+i._width,i._width+=h+d+f,i._height+=g,l&amp;&amp;(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var T=M(i),k=i.x&lt;0||0===i.x&amp;&amp;&quot;right&quot;===T,A=i.x&gt;1||1===i.x&amp;&amp;&quot;left&quot;===T,E=y||v,L=a.width/2;i._maxWidth=Math.max(k?E&amp;&amp;&quot;left&quot;===T?o.l+o.w:L:A?E&amp;&amp;&quot;right&quot;===T?o.r+o.w:L:o.w,2*d);var C=0,P=0;r.each((function(t){var e=t[0].width+d;C=Math.max(C,e),P+=e})),_=null;var I=0;if(l){var O=0,z=0,D=0;e.each((function(){var t=0,e=0;n.select(this).selectAll(&quot;g.traces&quot;).each((function(r){var n=r[0].height;c.setTranslate(this,w[0],w[1]+u+h+n/2+e),e+=n,t=Math.max(t,d+r[0].width)})),O=Math.max(O,e);var r=t+h;r+u+z&gt;i._maxWidth&amp;&amp;(I=Math.max(I,z),z=0,D+=O+x,O=e),c.setTranslate(this,z,D),z+=r})),i._width=Math.max(I,z)+u,i._height=D+O+g}else{var R=r.size(),F=P+f+(R-1)*h&lt;i._maxWidth,B=0,N=0,j=0,U=0;r.each((function(t){var e=t[0].height,r=d+t[0].width,n=(F?r:C)+h;n+u+N-h&gt;=i._maxWidth&amp;&amp;(I=Math.max(I,U),N=0,j+=B,i._height+=B,B=0),c.setTranslate(this,w[0]+u+N,w[1]+u+j+e/2+h),U=N+r+h,N+=n,B=Math.max(B,e)})),F?(i._width=N+f,i._height=B+g):(i._width=Math.max(I,U)+f,i._height+=B+g)}}i._width=Math.ceil(Math.max(i._width+w[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+w[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var V=t._context.edits,q=V.legendText||V.legendPosition;r.each((function(t){var e=n.select(this).select(&quot;.legendtoggle&quot;),r=t[0].height,i=q?d:_||d+t[0].width;s||(i+=h/2),c.setRect(e,0,-r/2,i,r)}))}(t,z,D,e)},function(){if(d||!function(t){var e=t._fullLayout.legend,r=M(e),n=S(e);return a.autoMargin(t,&quot;legend&quot;,{x:e.x,y:e.y,l:e._width*m[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*m[n]})}(t)){var s,u,g,y,x=f._size,b=e.borderwidth,w=x.l+x.w*e.x-m[M(e)]*e._width,k=x.t+x.h*(1-e.y)-m[S(e)]*e._effHeight;if(!d&amp;&amp;f.margin.autoexpand){var A=w,P=k;w=i.constrain(w,0,f.width-e._width),k=i.constrain(k,0,f.height-e._effHeight),w!==A&amp;&amp;i.log(&quot;Constrain legend.x to make legend fit inside graph&quot;),k!==P&amp;&amp;i.log(&quot;Constrain legend.y to make legend fit inside graph&quot;)}if(d||c.setTranslate(T,w,k),O.on(&quot;.drag&quot;,null),T.on(&quot;wheel&quot;,null),d||e._height&lt;=e._maxHeight||t._context.staticPlot){var I=e._effHeight;d&amp;&amp;(I=e._height),L.attr({width:e._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),E.select(&quot;rect&quot;).attr({width:e._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(C,h,t),c.setRect(O,0,0,0,0),delete e._scrollY}else{var z,D,R,F=Math.max(p.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),B=e._effHeight-F-2*p.scrollBarMargin,N=e._height-e._effHeight,j=B/N,U=Math.min(e._scrollY||0,N);L.attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),E.select(&quot;rect&quot;).attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+U}),c.setClipUrl(C,h,t),H(U,F,j),T.on(&quot;wheel&quot;,(function(){H(U=i.constrain(e._scrollY+n.event.deltaY/B*N,0,N),F,j),0!==U&amp;&amp;U!==N&amp;&amp;n.event.preventDefault()}));var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;z=&quot;touchstart&quot;===t.type?t.changedTouches[0].clientY:t.clientY,R=U})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(D=&quot;touchmove&quot;===t.type?t.changedTouches[0].clientY:t.clientY,H(U=function(t,e,r){var n=(r-e)/j+t;return i.constrain(n,0,N)}(R,z,D),F,j))}));O.call(V);var q=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;&quot;touchstart&quot;===t.type&amp;&amp;(z=t.changedTouches[0].clientY,R=U)})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;&quot;touchmove&quot;===t.type&amp;&amp;(D=t.changedTouches[0].clientY,H(U=function(t,e,r){var n=(e-r)/j+t;return i.constrain(n,0,N)}(R,z,D),F,j))}));C.call(q)}if(t._context.edits.legendPosition)T.classed(&quot;cursor-move&quot;,!0),l.init({element:T.node(),gd:t,prepFn:function(){var t=c.getTranslate(T);g=t.x,y=t.y},moveFn:function(t,r){var n=g+t,i=y+r;c.setTranslate(T,n,i),s=l.align(n,0,x.l,x.l+x.w,e.xanchor),u=l.align(i,0,x.t+x.h,x.t,e.yanchor)},doneFn:function(){void 0!==s&amp;&amp;void 0!==u&amp;&amp;o.call(&quot;_guiRelayout&quot;,t,{&quot;legend.x&quot;:s,&quot;legend.y&quot;:u})},clickFn:function(e,n){var i=r.selectAll(&quot;g.traces&quot;).filter((function(){var t=this.getBoundingClientRect();return n.clientX&gt;=t.left&amp;&amp;n.clientX&lt;=t.right&amp;&amp;n.clientY&gt;=t.top&amp;&amp;n.clientY&lt;=t.bottom}));i.size()&gt;0&amp;&amp;_(t,T,i,e,n)}})}function H(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(O,e._width,p.scrollBarMargin+r*i,p.scrollBarWidth,n),E.select(&quot;rect&quot;).attr(&quot;y&quot;,b+r)}}],t)}(t,e)}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/events&quot;:792,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;./constants&quot;:717,&quot;./get_legend_data&quot;:720,&quot;./handle_click&quot;:721,&quot;./helpers&quot;:722,&quot;./style&quot;:724,&quot;@plotly/d3&quot;:58}],720:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e){var r,a,o=e._inHover,s=i.isGrouped(e),l=i.isReversed(e),c={},u=[],f=!1,h={},p=0,d=0;function g(t,r){if(&quot;&quot;!==t&amp;&amp;i.isGrouped(e))-1===u.indexOf(t)?(u.push(t),f=!0,c[t]=[r]):c[t].push(r);else{var n=&quot;~~i&quot;+p;u.push(n),c[n]=[r],p++}}for(r=0;r&lt;t.length;r++){var m=t[r],v=m[0],y=v.trace,x=y.legendgroup;if(o||y.visible&amp;&amp;y.showlegend)if(n.traceIs(y,&quot;pie-like&quot;))for(h[x]||(h[x]={}),a=0;a&lt;m.length;a++){var b=m[a].label;h[x][b]||(g(x,{label:b,color:m[a].color,i:m[a].i,trace:y,pts:m[a].pts}),h[x][b]=!0,d=Math.max(d,(b||&quot;&quot;).length))}else g(x,v),d=Math.max(d,(y.name||&quot;&quot;).length)}if(!u.length)return[];var _=!f||!s,w=[];for(r=0;r&lt;u.length;r++){var T=c[u[r]];_?w.push(T[0]):w.push(T)}for(_&amp;&amp;(w=[w]),r=0;r&lt;w.length;r++){var k=1/0;for(a=0;a&lt;w[r].length;a++){var A=w[r][a].trace.legendrank;k&gt;A&amp;&amp;(k=A)}w[r][0]._groupMinRank=k,w[r][0]._preGroupSort=r}var M=function(t,e){return t.trace.legendrank-e.trace.legendrank||t._preSort-e._preSort};for(w.forEach((function(t,e){t[0]._preGroupSort=e})),w.sort((function(t,e){return t[0]._groupMinRank-e[0]._groupMinRank||t[0]._preGroupSort-e[0]._preGroupSort})),r=0;r&lt;w.length;r++){w[r].forEach((function(t,e){t._preSort=e})),w[r].sort(M);var S=w[r][0].trace,E=null;for(a=0;a&lt;w[r].length;a++){var L=w[r][a].trace.legendgrouptitle;if(L&amp;&amp;L.text){E=L,o&amp;&amp;(L.font=e._groupTitleFont);break}}if(l&amp;&amp;w[r].reverse(),E){var C=!1;for(a=0;a&lt;w[r].length;a++)if(n.traceIs(w[r][a].trace,&quot;pie-like&quot;)){C=!0;break}w[r].unshift({i:-1,groupTitle:E,noClick:C,trace:{showlegend:S.showlegend,legendgroup:S.legendgroup,visible:&quot;toggleitem&quot;===e.groupclick||S.visible}})}for(a=0;a&lt;w[r].length;a++)w[r][a]=[w[r][a]]}return e._lgroupsLength=w.length,e._maxNameLength=d,w}},{&quot;../../registry&quot;:931,&quot;./helpers&quot;:722}],721:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=!0;e.exports=function(t,e,r){var o=e._fullLayout;if(!e._dragged&amp;&amp;!e._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick,u=o.legend.groupclick;if(1===r&amp;&amp;&quot;toggle&quot;===l&amp;&amp;&quot;toggleothers&quot;===c&amp;&amp;a&amp;&amp;e.data&amp;&amp;e._context.showTips?(n.notifier(n._(e,&quot;Double-click on legend to isolate one trace&quot;),&quot;long&quot;),a=!1):a=!1,1===r?s=l:2===r&amp;&amp;(s=c),s){var f=&quot;togglegroup&quot;===u,h=o.hiddenlabels?o.hiddenlabels.slice():[],p=t.data()[0][0];if(!p.groupTitle||!p.noClick){var d,g,m,v,y,x=e._fullData,b=p.trace,_=b.legendgroup,w={},T=[],k=[],A=[];if(i.traceIs(b,&quot;pie-like&quot;)){var M=p.label,S=h.indexOf(M);&quot;toggle&quot;===s?-1===S?h.push(M):h.splice(S,1):&quot;toggleothers&quot;===s&amp;&amp;(h=[],e.calcdata[0].forEach((function(t){M!==t.label&amp;&amp;h.push(t.label)})),e._fullLayout.hiddenlabels&amp;&amp;e._fullLayout.hiddenlabels.length===h.length&amp;&amp;-1===S&amp;&amp;(h=[])),i.call(&quot;_guiRelayout&quot;,e,&quot;hiddenlabels&quot;,h)}else{var E,L=_&amp;&amp;_.length,C=[];if(L)for(d=0;d&lt;x.length;d++)(E=x[d]).visible&amp;&amp;E.legendgroup===_&amp;&amp;C.push(d);if(&quot;toggle&quot;===s){var P;switch(b.visible){case!0:P=&quot;legendonly&quot;;break;case!1:P=!1;break;case&quot;legendonly&quot;:P=!0}if(L)if(f)for(d=0;d&lt;x.length;d++)!1!==x[d].visible&amp;&amp;x[d].legendgroup===_&amp;&amp;j(x[d],P);else j(b,P);else j(b,P)}else if(&quot;toggleothers&quot;===s){var I,O,z,D,R=!0;for(d=0;d&lt;x.length;d++)if(I=x[d]===b,z=!0!==x[d].showlegend,!(I||z||(O=L&amp;&amp;x[d].legendgroup===_)||!0!==x[d].visible||i.traceIs(x[d],&quot;notLegendIsolatable&quot;))){R=!1;break}for(d=0;d&lt;x.length;d++)if(!1!==x[d].visible&amp;&amp;!i.traceIs(x[d],&quot;notLegendIsolatable&quot;))switch(b.visible){case&quot;legendonly&quot;:j(x[d],!0);break;case!0:D=!!R||&quot;legendonly&quot;,I=x[d]===b,z=!0!==x[d].showlegend&amp;&amp;!x[d].legendgroup,O=I||L&amp;&amp;x[d].legendgroup===_,j(x[d],!(!O&amp;&amp;!z)||D)}}for(d=0;d&lt;k.length;d++)if(m=k[d]){var F=m.constructUpdate(),B=Object.keys(F);for(g=0;g&lt;B.length;g++)v=B[g],(w[v]=w[v]||[])[A[d]]=F[v]}for(y=Object.keys(w),d=0;d&lt;y.length;d++)for(v=y[d],g=0;g&lt;T.length;g++)w[v].hasOwnProperty(g)||(w[v][g]=void 0);i.call(&quot;_guiRestyle&quot;,e,w,T)}}}}function N(t,e,r){var n=T.indexOf(t),i=w[e];return i||(i=w[e]=[]),-1===T.indexOf(t)&amp;&amp;(T.push(t),n=T.length-1),i[n]=r,n}function j(t,e){if(!p.groupTitle||f){var r=t._fullInput;if(i.hasTransform(r,&quot;groupby&quot;)){var a=k[r.index];if(!a){var o=i.getTransformIndices(r,&quot;groupby&quot;),s=o[o.length-1];a=n.keyedContainer(r,&quot;transforms[&quot;+s+&quot;].styles&quot;,&quot;target&quot;,&quot;value.visible&quot;),k[r.index]=a}var l=a.get(t._group);void 0===l&amp;&amp;(l=!0),!1!==l&amp;&amp;a.set(t._group,e),A[r.index]=N(r.index,&quot;visible&quot;,!1!==r.visible)}else{var c=!1!==r.visible&amp;&amp;e;N(r.index,&quot;visible&quot;,c)}}}}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],722:[function(t,e,r){&quot;use strict&quot;;r.isGrouped=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;grouped&quot;)},r.isVertical=function(t){return&quot;h&quot;!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;reversed&quot;)}},{}],723:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;legend&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;),style:t(&quot;./style&quot;)}},{&quot;./attributes&quot;:716,&quot;./defaults&quot;:718,&quot;./draw&quot;:719,&quot;./style&quot;:724}],724:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../drawing&quot;),l=t(&quot;../color&quot;),c=t(&quot;../colorscale/helpers&quot;).extractOpts,u=t(&quot;../../traces/scatter/subtypes&quot;),f=t(&quot;../../traces/pie/style_one&quot;),h=t(&quot;../../traces/pie/helpers&quot;).castOption,p=t(&quot;./constants&quot;);function d(t,e){return(e?&quot;radial&quot;:&quot;horizontal&quot;)+(t?&quot;&quot;:&quot;reversed&quot;)}function g(t){var e=t[0].trace,r=e.contours,n=u.hasLines(e),i=u.hasMarkers(e),a=e.visible&amp;&amp;e.fill&amp;&amp;&quot;none&quot;!==e.fill,o=!1,s=!1;if(r){var l=r.coloring;&quot;lines&quot;===l?o=!0:n=&quot;none&quot;===l||&quot;heatmap&quot;===l||r.showlines,&quot;constraint&quot;===r.type?a=&quot;=&quot;!==r._operation:&quot;fill&quot;!==l&amp;&amp;&quot;heatmap&quot;!==l||(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function m(t,e,r){return t&amp;&amp;a.isArrayOrTypedArray(t)?e:t&gt;r?r:t}e.exports=function(t,e,r){var v=e._fullLayout;r||(r=v.legend);var y=&quot;constant&quot;===r.itemsizing,x=r.itemwidth,b=(x+2*p.itemGap)/2,_=o(b,0),w=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&amp;&amp;e.width&gt;0))return 0;i=e.width}return y?n:Math.min(i,r)};function T(t,a,o){var u=t[0].trace,f=u.marker||{},h=f.line||{},p=o?u.visible&amp;&amp;u.type===o:i.traceIs(u,&quot;bar&quot;),d=n.select(a).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+o).data(p?[t]:[]);d.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+o,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,_),d.exit().remove(),d.each((function(t){var i=n.select(this),a=t[0],o=w(a.mlw,f.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;);var p=a.mcc;if(!r._inHover&amp;&amp;&quot;mc&quot;in a){var d=c(f),g=d.mid;void 0===g&amp;&amp;(g=(d.max+d.min)/2),p=s.tryColorscale(f,&quot;&quot;)(g)}var v=p||a.mc||f.color,y=f.pattern,x=y&amp;&amp;s.getPatternAttr(y.shape,0,&quot;&quot;);if(x){var b=s.getPatternAttr(y.bgcolor,0,null),_=s.getPatternAttr(y.fgcolor,0,null),T=y.fgopacity,k=m(y.size,8,10),A=m(y.solidity,.5,1),M=&quot;legend-&quot;+u.uid;i.call(s.pattern,&quot;legend&quot;,e,M,x,k,A,p,y.fillmode,b,_,T)}else i.call(l.fill,v);o&amp;&amp;l.stroke(i,a.mlc||h.color)}))}function k(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&amp;&amp;s.type===r:i.traceIs(s,r),c=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(l?[t]:[]);if(c.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,_),c.exit().remove(),c.size()){var u=(s.marker||{}).line,p=w(h(u.width,o.pts),u,5,2),d=a.minExtend(s,{marker:{line:{width:p}}});d.marker.line.color=u.color;var g=a.minExtend(o,{trace:d});f(c,g,d)}}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,&quot;g&quot;,&quot;layers&quot;);i.style(&quot;opacity&quot;,t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if(&quot;middle&quot;!==s&amp;&amp;l&amp;&amp;c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr(&quot;transform&quot;,o(0,u))}else i.attr(&quot;transform&quot;,null);i.selectAll(&quot;g.legendfill&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendfill&quot;,!0),i.selectAll(&quot;g.legendlines&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendlines&quot;,!0);var f=i.selectAll(&quot;g.legendsymbols&quot;).data([t]);f.enter().append(&quot;g&quot;).classed(&quot;legendsymbols&quot;,!0),f.selectAll(&quot;g.legendpoints&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendpoints&quot;,!0)})).each((function(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case&quot;histogram2d&quot;:case&quot;heatmap&quot;:o=[[&quot;M-15,-2V4H15V-2Z&quot;]],r=!0;break;case&quot;choropleth&quot;:case&quot;choroplethmapbox&quot;:o=[[&quot;M-6,-6V6H6V-6Z&quot;]],r=!0;break;case&quot;densitymapbox&quot;:o=[[&quot;M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0&quot;]],r=&quot;radial&quot;;break;case&quot;cone&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 L6,0Z&quot;]],r=!1;break;case&quot;streamtube&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z&quot;]],r=!1;break;case&quot;surface&quot;:o=[[&quot;M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z&quot;],[&quot;M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z&quot;]],r=!0;break;case&quot;mesh3d&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!1;break;case&quot;volume&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!0;break;case&quot;isosurface&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6 A12,24 0 0,0 6,-6 L0,6Z&quot;]],r=!1}var u=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend3dandfriends&quot;).data(o);u.enter().append(&quot;path&quot;).classed(&quot;legend3dandfriends&quot;,!0).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),h=c(i),p=h.colorscale,g=h.reversescale;if(p){if(!r){var m=p.length;u=0===o?p[g?m-1:0][1]:1===o?p[g?0:m-1][1]:p[Math.floor((m-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr(&quot;d&quot;,t[0]),u?f.call(l.fill,u):f.call((function(t){if(t.size()){var n=&quot;legendfill-&quot;+i.uid;s.gradient(t,e,n,d(g,&quot;radial&quot;===r),p,&quot;fill&quot;)}}))}))})).each((function(t){var e=t[0].trace,r=&quot;waterfall&quot;===e.type;if(t[0]._distinct&amp;&amp;r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,T(t,this,&quot;waterfall&quot;)}var a=[];e.visible&amp;&amp;r&amp;&amp;(a=t[0].hasTotals?[[&quot;increasing&quot;,&quot;M-6,-6V6H0Z&quot;],[&quot;totals&quot;,&quot;M6,6H0L-6,-6H-0Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H0Z&quot;]]:[[&quot;increasing&quot;,&quot;M-6,-6V6H6Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H-6Z&quot;]]);var o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendwaterfall&quot;).data(a);o.enter().append(&quot;path&quot;).classed(&quot;legendwaterfall&quot;,!0).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=w(void 0,i.line,5,2);r.attr(&quot;d&quot;,t[1]).style(&quot;stroke-width&quot;,a+&quot;px&quot;).call(l.fill,i.color),a&amp;&amp;r.call(l.stroke,i.line.color)}))})).each((function(t){T(t,this,&quot;funnel&quot;)})).each((function(t){T(t,this)})).each((function(t){var r=t[0].trace,o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendbox&quot;).data(r.visible&amp;&amp;i.traceIs(r,&quot;box-violin&quot;)?[t]:[]);o.enter().append(&quot;path&quot;).classed(&quot;legendbox&quot;,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,_),o.exit().remove(),o.each((function(){var t=n.select(this);if(&quot;all&quot;!==r.boxpoints&amp;&amp;&quot;all&quot;!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=w(void 0,r.line,5,2);t.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.fillcolor),i&amp;&amp;l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:y?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;}});o.call(s.pointStyle,c,e)}}))})).each((function(t){k(t,this,&quot;funnelarea&quot;)})).each((function(t){k(t,this,&quot;pie&quot;)})).each((function(t){var r,i,o=g(t),l=o.showFill,f=o.showLine,h=o.showGradientLine,p=o.showGradientFill,m=o.anyFill,v=o.anyLine,y=t[0],b=y.trace,_=c(b),T=_.colorscale,k=_.reversescale,A=u.hasMarkers(b)||!m?&quot;M5,0&quot;:v?&quot;M5,-2&quot;:&quot;M5,-3&quot;,M=n.select(this),S=M.select(&quot;.legendfill&quot;).selectAll(&quot;path&quot;).data(l||p?[t]:[]);if(S.enter().append(&quot;path&quot;).classed(&quot;js-fill&quot;,!0),S.exit().remove(),S.attr(&quot;d&quot;,A+&quot;h&quot;+x+&quot;v6h-&quot;+x+&quot;z&quot;).call(l?s.fillGroupStyle:function(t){if(t.size()){var r=&quot;legendfill-&quot;+b.uid;s.gradient(t,e,r,d(k),T,&quot;fill&quot;)}}),f||h){var E=w(void 0,b.line,10,5);i=a.minExtend(b,{line:{width:E}}),r=[a.minExtend(y,{trace:i})]}var L=M.select(&quot;.legendlines&quot;).selectAll(&quot;path&quot;).data(f||h?[r]:[]);L.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0),L.exit().remove(),L.attr(&quot;d&quot;,A+(h?&quot;l&quot;+x+&quot;,0.0001&quot;:&quot;h&quot;+x)).call(f?s.lineGroupStyle:function(t){if(t.size()){var r=&quot;legendline-&quot;+b.uid;s.lineGroupStyle(t),s.gradient(t,e,r,d(k),T,&quot;stroke&quot;)}})})).each((function(t){var r,i,o=g(t),l=o.anyFill,c=o.anyLine,f=o.showLine,h=o.showMarker,p=t[0],d=p.trace,m=!h&amp;&amp;!c&amp;&amp;!l&amp;&amp;u.hasText(d);function v(t,e,r,n){var i=a.nestedProperty(d,t).get(),o=a.isArrayOrTypedArray(i)&amp;&amp;e?e(i):i;if(y&amp;&amp;o&amp;&amp;void 0!==n&amp;&amp;(o=n),r){if(o&lt;r[0])return r[0];if(o&gt;r[1])return r[1]}return o}function x(t){return p._distinct&amp;&amp;p.index&amp;&amp;t[p.index]?t[p.index]:t[0]}if(h||m||f){var b={},w={};if(h){b.mc=v(&quot;marker.color&quot;,x),b.mx=v(&quot;marker.symbol&quot;,x),b.mo=v(&quot;marker.opacity&quot;,a.mean,[.2,1]),b.mlc=v(&quot;marker.line.color&quot;,x),b.mlw=v(&quot;marker.line.width&quot;,a.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;};var T=v(&quot;marker.size&quot;,a.mean,[2,16],12);b.ms=T,w.marker.size=T}f&amp;&amp;(w.line={width:v(&quot;line.width&quot;,x,[0,10],5)}),m&amp;&amp;(b.tx=&quot;Aa&quot;,b.tp=v(&quot;textposition&quot;,x),b.ts=10,b.tc=v(&quot;textfont.color&quot;,x),b.tf=v(&quot;textfont.family&quot;,x)),r=[a.minExtend(p,b)],(i=a.minExtend(d,w)).selectedpoints=null,i.texttemplate=null}var k=n.select(this).select(&quot;g.legendpoints&quot;),A=k.selectAll(&quot;path.scatterpts&quot;).data(h?r:[]);A.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(&quot;scatterpts&quot;,!0).attr(&quot;transform&quot;,_),A.exit().remove(),A.call(s.pointStyle,i,e),h&amp;&amp;(r[0].mrc=3);var M=k.selectAll(&quot;g.pointtext&quot;).data(m?r:[]);M.enter().append(&quot;g&quot;).classed(&quot;pointtext&quot;,!0).append(&quot;text&quot;).attr(&quot;transform&quot;,_),M.exit().remove(),M.selectAll(&quot;text&quot;).call(s.textPointStyle,i,e)})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendcandle&quot;).data(e.visible&amp;&amp;&quot;candlestick&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendcandle&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H-8M-8,6V-6H8Z&quot;:&quot;M15,0H8M8,-6V6H-8Z&quot;})).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=w(void 0,a.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;).call(l.fill,a.fillcolor),o&amp;&amp;l.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendohlc&quot;).data(e.visible&amp;&amp;&quot;ohlc&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendohlc&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H0M-8,-6V0&quot;:&quot;M15,0H0M8,6V0&quot;})).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=w(void 0,a.line,5,2);i.style(&quot;fill&quot;,&quot;none&quot;).call(s.dashLine,a.line.dash,o),o&amp;&amp;l.stroke(i,a.line.color)}))}))}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../../traces/pie/helpers&quot;:1197,&quot;../../traces/pie/style_one&quot;:1203,&quot;../../traces/scatter/subtypes&quot;:1243,&quot;../color&quot;:666,&quot;../colorscale/helpers&quot;:677,&quot;../drawing&quot;:688,&quot;./constants&quot;:717,&quot;@plotly/d3&quot;:58}],725:[function(t,e,r){&quot;use strict&quot;;t(&quot;./constants&quot;);e.exports={editType:&quot;modebar&quot;,orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;modebar&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},color:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},add:{valType:&quot;string&quot;,arrayOk:!0,dflt:&quot;&quot;,editType:&quot;modebar&quot;},remove:{valType:&quot;string&quot;,arrayOk:!0,dflt:&quot;&quot;,editType:&quot;modebar&quot;}}},{&quot;./constants&quot;:727}],726:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=t(&quot;../shapes/draw&quot;).eraseActiveShape,l=t(&quot;../../lib&quot;),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(&quot;data-attr&quot;),l=o.getAttribute(&quot;data-val&quot;)||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=c._cartesianSpikesEnabled;if(&quot;zoom&quot;===s){var p,d=&quot;in&quot;===l?.5:2,g=(1+d)/2,m=(1-d)/2;for(i=0;i&lt;f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,&quot;auto&quot;===l)u[p+&quot;.autorange&quot;]=!0;else if(&quot;reset&quot;===l){if(void 0===r._rangeInitial)u[p+&quot;.autorange&quot;]=!0;else{var v=r._rangeInitial.slice();u[p+&quot;.range[0]&quot;]=v[0],u[p+&quot;.range[1]&quot;]=v[1]}void 0!==r._showSpikeInitial&amp;&amp;(u[p+&quot;.showspikes&quot;]=r._showSpikeInitial,&quot;on&quot;!==h||r._showSpikeInitial||(h=&quot;off&quot;))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*y[0]+m*y[1],g*y[1]+m*y[0]];u[p+&quot;.range[0]&quot;]=r.l2r(x[0]),u[p+&quot;.range[1]&quot;]=r.l2r(x[1])}}else&quot;hovermode&quot;!==s||&quot;x&quot;!==l&amp;&amp;&quot;y&quot;!==l||(l=c._isHoriz?&quot;y&quot;:&quot;x&quot;,o.setAttribute(&quot;data-val&quot;,l)),u[s]=l;c._cartesianSpikesEnabled=h,n.call(&quot;_guiRelayout&quot;,t,u)}function h(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout._subplots.gl3d||[],s={},l=i.split(&quot;.&quot;),c=0;c&lt;o.length;c++)s[o[c]+&quot;.&quot;+l[1]]=a;var u=&quot;pan&quot;===a?a:&quot;zoom&quot;;s.dragmode=u,n.call(&quot;_guiRelayout&quot;,t,s)}function p(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-attr&quot;),i=&quot;resetLastSave&quot;===r,a=&quot;resetDefault&quot;===r,o=t._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c&lt;s.length;c++){var u,f=s[c],h=f+&quot;.camera&quot;,p=f+&quot;.aspectratio&quot;,d=f+&quot;.aspectmode&quot;,g=o[f]._scene;i?(l[h+&quot;.up&quot;]=g.viewInitial.up,l[h+&quot;.eye&quot;]=g.viewInitial.eye,l[h+&quot;.center&quot;]=g.viewInitial.center,u=!0):a&amp;&amp;(l[h+&quot;.up&quot;]=null,l[h+&quot;.eye&quot;]=null,l[h+&quot;.center&quot;]=null,u=!0),u&amp;&amp;(l[p+&quot;.x&quot;]=g.viewInitial.aspectratio.x,l[p+&quot;.y&quot;]=g.viewInitial.aspectratio.y,l[p+&quot;.z&quot;]=g.viewInitial.aspectratio.z,l[d]=g.viewInitial.aspectmode)}n.call(&quot;_guiRelayout&quot;,t,l)}function d(t,e){var r=e.currentTarget,n=r._previousVal,i=t._fullLayout,a=i._subplots.gl3d||[],o=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],s={},l={};if(n)l=n,r._previousVal=null;else{for(var c=0;c&lt;a.length;c++){var u=a[c],f=i[u],h=u+&quot;.hovermode&quot;;s[h]=f.hovermode,l[h]=!1;for(var p=0;p&lt;3;p++){var d=o[p],g=u+&quot;.&quot;+d+&quot;.showspikes&quot;;l[g]=!1,s[g]=f[d].showspikes}}r._previousVal=s}return l}function g(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout,s=o._subplots.geo||[],l=0;l&lt;s.length;l++){var c=s[l],u=o[c];if(&quot;zoom&quot;===i){var f=u.projection.scale,h=&quot;in&quot;===a?2*f:.5*f;n.call(&quot;_guiRelayout&quot;,t,c+&quot;.projection.scale&quot;,h)}}&quot;reset&quot;===i&amp;&amp;x(t,&quot;geo&quot;)}function m(t){var e=t._fullLayout;return!e.hovermode&amp;&amp;(e._has(&quot;cartesian&quot;)?e._isHoriz?&quot;y&quot;:&quot;x&quot;:&quot;closest&quot;)}function v(t){var e=m(t);n.call(&quot;_guiRelayout&quot;,t,&quot;hovermode&quot;,e)}function y(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-val&quot;),i=t._fullLayout,a=i._subplots.mapbox||[],o={},s=0;s&lt;a.length;s++){var l=a[s],c=i[l].zoom,u=&quot;in&quot;===r?1.05*c:c/1.05;o[l+&quot;.zoom&quot;]=u}n.call(&quot;_guiRelayout&quot;,t,o)}function x(t,e){for(var r=t._fullLayout,i=r._subplots[e]||[],a={},o=0;o&lt;i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u&lt;c.length;u++){var f=c[u];a[s+&quot;.&quot;+f]=l[f]}n.call(&quot;_guiRelayout&quot;,t,a)}u.toImage={name:&quot;toImage&quot;,title:function(t){var e=(t._context.toImageButtonOptions||{}).format||&quot;png&quot;;return c(t,&quot;png&quot;===e?&quot;Download plot as a png&quot;:&quot;Download plot&quot;)},icon:o.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||&quot;png&quot;};l.notifier(c(t,&quot;Taking snapshot - this may take a few seconds&quot;),&quot;long&quot;),&quot;svg&quot;!==r.format&amp;&amp;l.isIE()&amp;&amp;(l.notifier(c(t,&quot;IE only supports svg.  Changing format to svg.&quot;),&quot;long&quot;),r.format=&quot;svg&quot;),[&quot;filename&quot;,&quot;width&quot;,&quot;height&quot;,&quot;scale&quot;].forEach((function(t){t in e&amp;&amp;(r[t]=e[t])})),n.call(&quot;downloadImage&quot;,t,r).then((function(e){l.notifier(c(t,&quot;Snapshot succeeded&quot;)+&quot; - &quot;+e,&quot;long&quot;)})).catch((function(){l.notifier(c(t,&quot;Sorry, there was a problem downloading your snapshot!&quot;),&quot;long&quot;)}))}},u.sendDataToCloud={name:&quot;sendDataToCloud&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.disk,click:function(t){i.sendDataToCloud(t)}},u.editInChartStudio={name:&quot;editInChartStudio&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.pencil,click:function(t){i.sendDataToCloud(t)}},u.zoom2d={name:&quot;zoom2d&quot;,_cat:&quot;zoom&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:f},u.pan2d={name:&quot;pan2d&quot;,_cat:&quot;pan&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:f},u.select2d={name:&quot;select2d&quot;,_cat:&quot;select&quot;,title:function(t){return c(t,&quot;Box Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;select&quot;,icon:o.selectbox,click:f},u.lasso2d={name:&quot;lasso2d&quot;,_cat:&quot;lasso&quot;,title:function(t){return c(t,&quot;Lasso Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;lasso&quot;,icon:o.lasso,click:f},u.drawclosedpath={name:&quot;drawclosedpath&quot;,title:function(t){return c(t,&quot;Draw closed freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawclosedpath&quot;,icon:o.drawclosedpath,click:f},u.drawopenpath={name:&quot;drawopenpath&quot;,title:function(t){return c(t,&quot;Draw open freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawopenpath&quot;,icon:o.drawopenpath,click:f},u.drawline={name:&quot;drawline&quot;,title:function(t){return c(t,&quot;Draw line&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawline&quot;,icon:o.drawline,click:f},u.drawrect={name:&quot;drawrect&quot;,title:function(t){return c(t,&quot;Draw rectangle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawrect&quot;,icon:o.drawrect,click:f},u.drawcircle={name:&quot;drawcircle&quot;,title:function(t){return c(t,&quot;Draw circle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawcircle&quot;,icon:o.drawcircle,click:f},u.eraseshape={name:&quot;eraseshape&quot;,title:function(t){return c(t,&quot;Erase active shape&quot;)},icon:o.eraseshape,click:s},u.zoomIn2d={name:&quot;zoomIn2d&quot;,_cat:&quot;zoomin&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:f},u.zoomOut2d={name:&quot;zoomOut2d&quot;,_cat:&quot;zoomout&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:f},u.autoScale2d={name:&quot;autoScale2d&quot;,_cat:&quot;autoscale&quot;,title:function(t){return c(t,&quot;Autoscale&quot;)},attr:&quot;zoom&quot;,val:&quot;auto&quot;,icon:o.autoscale,click:f},u.resetScale2d={name:&quot;resetScale2d&quot;,_cat:&quot;resetscale&quot;,title:function(t){return c(t,&quot;Reset axes&quot;)},attr:&quot;zoom&quot;,val:&quot;reset&quot;,icon:o.home,click:f},u.hoverClosestCartesian={name:&quot;hoverClosestCartesian&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:f},u.hoverCompareCartesian={name:&quot;hoverCompareCartesian&quot;,_cat:&quot;hoverCompare&quot;,title:function(t){return c(t,&quot;Compare data on hover&quot;)},attr:&quot;hovermode&quot;,val:function(t){return t._fullLayout._isHoriz?&quot;y&quot;:&quot;x&quot;},icon:o.tooltip_compare,gravity:&quot;ne&quot;,click:f},u.zoom3d={name:&quot;zoom3d&quot;,_cat:&quot;zoom&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:h},u.pan3d={name:&quot;pan3d&quot;,_cat:&quot;pan&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:h},u.orbitRotation={name:&quot;orbitRotation&quot;,title:function(t){return c(t,&quot;Orbital rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;orbit&quot;,icon:o[&quot;3d_rotate&quot;],click:h},u.tableRotation={name:&quot;tableRotation&quot;,title:function(t){return c(t,&quot;Turntable rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;turntable&quot;,icon:o[&quot;z-axis&quot;],click:h},u.resetCameraDefault3d={name:&quot;resetCameraDefault3d&quot;,_cat:&quot;resetCameraDefault&quot;,title:function(t){return c(t,&quot;Reset camera to default&quot;)},attr:&quot;resetDefault&quot;,icon:o.home,click:p},u.resetCameraLastSave3d={name:&quot;resetCameraLastSave3d&quot;,_cat:&quot;resetCameraLastSave&quot;,title:function(t){return c(t,&quot;Reset camera to last save&quot;)},attr:&quot;resetLastSave&quot;,icon:o.movie,click:p},u.hoverClosest3d={name:&quot;hoverClosest3d&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);n.call(&quot;_guiRelayout&quot;,t,r)}},u.zoomInGeo={name:&quot;zoomInGeo&quot;,_cat:&quot;zoomin&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:g},u.zoomOutGeo={name:&quot;zoomOutGeo&quot;,_cat:&quot;zoomout&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:g},u.resetGeo={name:&quot;resetGeo&quot;,_cat:&quot;reset&quot;,title:function(t){return c(t,&quot;Reset&quot;)},attr:&quot;reset&quot;,val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:&quot;hoverClosestGeo&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestGl2d={name:&quot;hoverClosestGl2d&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestPie={name:&quot;hoverClosestPie&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.resetViewSankey={name:&quot;resetSankeyGroup&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},icon:o.home,click:function(t){for(var e={&quot;node.groups&quot;:[],&quot;node.x&quot;:[],&quot;node.y&quot;:[]},r=0;r&lt;t._fullData.length;r++){var i=t._fullData[r]._viewInitial;e[&quot;node.groups&quot;].push(i.node.groups.slice()),e[&quot;node.x&quot;].push(i.node.x.slice()),e[&quot;node.y&quot;].push(i.node.y.slice())}n.call(&quot;restyle&quot;,t,e)}},u.toggleHover={name:&quot;toggleHover&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);r.hovermode=m(t),n.call(&quot;_guiRelayout&quot;,t,r)}},u.resetViews={name:&quot;resetViews&quot;,title:function(t){return c(t,&quot;Reset views&quot;)},icon:o.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(&quot;data-attr&quot;,&quot;zoom&quot;),r.setAttribute(&quot;data-val&quot;,&quot;reset&quot;),f(t,e),r.setAttribute(&quot;data-attr&quot;,&quot;resetLastSave&quot;),p(t,e),x(t,&quot;geo&quot;),x(t,&quot;mapbox&quot;)}},u.toggleSpikelines={name:&quot;toggleSpikelines&quot;,title:function(t){return c(t,&quot;Toggle Spike Lines&quot;)},icon:o.spikeline,attr:&quot;_cartesianSpikesEnabled&quot;,val:&quot;on&quot;,click:function(t){var e=t._fullLayout,r=e._cartesianSpikesEnabled;e._cartesianSpikesEnabled=&quot;on&quot;===r?&quot;off&quot;:&quot;on&quot;,n.call(&quot;_guiRelayout&quot;,t,function(t){for(var e=&quot;on&quot;===t._fullLayout._cartesianSpikesEnabled,r=a.list(t,null,!0),n={},i=0;i&lt;r.length;i++){var o=r[i];n[o._name+&quot;.showspikes&quot;]=!!e||o._showSpikeInitial}return n}(t))}},u.resetViewMapbox={name:&quot;resetViewMapbox&quot;,_cat:&quot;resetView&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},attr:&quot;reset&quot;,icon:o.home,click:function(t){x(t,&quot;mapbox&quot;)}},u.zoomInMapbox={name:&quot;zoomInMapbox&quot;,_cat:&quot;zoomin&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:&quot;zoomOutMapbox&quot;,_cat:&quot;zoomout&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:y}},{&quot;../../fonts/ploticon&quot;:782,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../shapes/draw&quot;:750}],727:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./buttons&quot;),i=Object.keys(n),a=[&quot;drawline&quot;,&quot;drawopenpath&quot;,&quot;drawclosedpath&quot;,&quot;drawcircle&quot;,&quot;drawrect&quot;,&quot;eraseshape&quot;],o=[&quot;v1hovermode&quot;,&quot;hoverclosest&quot;,&quot;hovercompare&quot;,&quot;togglehover&quot;,&quot;togglespikelines&quot;].concat(a),s=[];i.forEach((function(t){!function(t){if(-1===o.indexOf(t._cat||t.name)){var e=t.name,r=(t._cat||t.name).toLowerCase();-1===s.indexOf(e)&amp;&amp;s.push(e),-1===s.indexOf(r)&amp;&amp;s.push(r)}}(n[t])})),s.sort(),e.exports={DRAW_MODES:a,backButtons:o,foreButtons:s}},{&quot;./buttons&quot;:726}],728:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e){var r=t.modebar||{},s=a.newContainer(e,&quot;modebar&quot;);function l(t,e){return n.coerce(r,s,o,t,e)}l(&quot;orientation&quot;),l(&quot;bgcolor&quot;,i.addOpacity(e.paper_bgcolor,.5));var c=i.contrast(i.rgb(e.modebar.bgcolor));l(&quot;color&quot;,i.addOpacity(c,.3)),l(&quot;activecolor&quot;,i.addOpacity(c,.7)),l(&quot;uirevision&quot;,e.uirevision),l(&quot;add&quot;),l(&quot;remove&quot;)}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../color&quot;:666,&quot;./attributes&quot;:725}],729:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;modebar&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),manage:t(&quot;./manage&quot;)}},{&quot;./attributes&quot;:725,&quot;./defaults&quot;:728,&quot;./manage&quot;:730}],730:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../traces/scatter/subtypes&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../fx/helpers&quot;).isUnifiedHover,s=t(&quot;./modebar&quot;),l=t(&quot;./buttons&quot;),c=t(&quot;./constants&quot;).DRAW_MODES;e.exports=function(t){var e=t._fullLayout,r=t._context,u=e._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([&quot;*modeBarButtonsToRemove* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([&quot;*modeBarButtonsToAdd* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));var f,h=r.modeBarButtons;f=Array.isArray(h)&amp;&amp;h.length?function(t){for(var e=0;e&lt;t.length;e++)for(var r=t[e],n=0;n&lt;r.length;n++){var i=r[n];if(&quot;string&quot;==typeof i){if(void 0===l[i])throw new Error([&quot;*modeBarButtons* configuration options&quot;,&quot;invalid button name&quot;].join(&quot; &quot;));t[e][n]=l[i]}}return t}(h):!r.displayModeBar&amp;&amp;r.watermark?[]:function(t){var e=t._fullLayout,r=t._fullData,s=t._context;function u(t,e){if(&quot;string&quot;==typeof e){if(e.toLowerCase()===t.toLowerCase())return!0}else{var r=e.name,n=e._cat||e.name;if(r===t||n===t.toLowerCase())return!0}return!1}var f=e.modebar.add;&quot;string&quot;==typeof f&amp;&amp;(f=[f]);var h=e.modebar.remove;&quot;string&quot;==typeof h&amp;&amp;(h=[h]);var p=s.modeBarButtonsToAdd.concat(f.filter((function(t){for(var e=0;e&lt;s.modeBarButtonsToRemove.length;e++)if(u(t,s.modeBarButtonsToRemove[e]))return!1;return!0}))),d=s.modeBarButtonsToRemove.concat(h.filter((function(t){for(var e=0;e&lt;s.modeBarButtonsToAdd.length;e++)if(u(t,s.modeBarButtonsToAdd[e]))return!1;return!0}))),g=e._has(&quot;cartesian&quot;),m=e._has(&quot;gl3d&quot;),v=e._has(&quot;geo&quot;),y=e._has(&quot;pie&quot;),x=e._has(&quot;funnelarea&quot;),b=e._has(&quot;gl2d&quot;),_=e._has(&quot;ternary&quot;),w=e._has(&quot;mapbox&quot;),T=e._has(&quot;polar&quot;),k=e._has(&quot;sankey&quot;),A=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r&lt;e.length;r++)if(!e[r].fixedrange)return!1;return!0}(e),M=o(e.hovermode),S=[];function E(t){if(t.length){for(var e=[],r=0;r&lt;t.length;r++){for(var n=t[r],i=l[n],a=i.name.toLowerCase(),o=(i._cat||i.name).toLowerCase(),s=!1,c=0;c&lt;d.length;c++){var u=d[c].toLowerCase();if(u===a||u===o){s=!0;break}}s||e.push(l[n])}S.push(e)}}var L=[&quot;toImage&quot;];s.showEditInChartStudio?L.push(&quot;editInChartStudio&quot;):s.showSendToCloud&amp;&amp;L.push(&quot;sendDataToCloud&quot;);E(L);var C=[],P=[],I=[],O=[];(g||b||y||x||_)+v+m+w+T&gt;1?(P=[&quot;toggleHover&quot;],I=[&quot;resetViews&quot;]):v?(C=[&quot;zoomInGeo&quot;,&quot;zoomOutGeo&quot;],P=[&quot;hoverClosestGeo&quot;],I=[&quot;resetGeo&quot;]):m?(P=[&quot;hoverClosest3d&quot;],I=[&quot;resetCameraDefault3d&quot;,&quot;resetCameraLastSave3d&quot;]):w?(C=[&quot;zoomInMapbox&quot;,&quot;zoomOutMapbox&quot;],P=[&quot;toggleHover&quot;],I=[&quot;resetViewMapbox&quot;]):b?P=[&quot;hoverClosestGl2d&quot;]:y?P=[&quot;hoverClosestPie&quot;]:k?(P=[&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;],I=[&quot;resetViewSankey&quot;]):P=[&quot;toggleHover&quot;];g&amp;&amp;(P=[&quot;toggleSpikelines&quot;,&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;]);(function(t){for(var e=0;e&lt;t.length;e++)if(!a.traceIs(t[e],&quot;noHover&quot;))return!1;return!0}(r)||M)&amp;&amp;(P=[]);!g&amp;&amp;!b||A||(C=[&quot;zoomIn2d&quot;,&quot;zoomOut2d&quot;,&quot;autoScale2d&quot;],&quot;resetViews&quot;!==I[0]&amp;&amp;(I=[&quot;resetScale2d&quot;]));m?O=[&quot;zoom3d&quot;,&quot;pan3d&quot;,&quot;orbitRotation&quot;,&quot;tableRotation&quot;]:(g||b)&amp;&amp;!A||_?O=[&quot;zoom2d&quot;,&quot;pan2d&quot;]:w||v?O=[&quot;pan2d&quot;]:T&amp;&amp;(O=[&quot;zoom2d&quot;]);(function(t){for(var e=!1,r=0;r&lt;t.length&amp;&amp;!e;r++){var n=t[r];n._module&amp;&amp;n._module.selectPoints&amp;&amp;(a.traceIs(n,&quot;scatter-like&quot;)?(i.hasMarkers(n)||i.hasText(n))&amp;&amp;(e=!0):a.traceIs(n,&quot;box-violin&quot;)&amp;&amp;&quot;all&quot;!==n.boxpoints&amp;&amp;&quot;all&quot;!==n.points||(e=!0))}return e})(r)&amp;&amp;O.push(&quot;select2d&quot;,&quot;lasso2d&quot;);var z=[],D=function(t){-1===z.indexOf(t)&amp;&amp;-1!==P.indexOf(t)&amp;&amp;z.push(t)};if(Array.isArray(p)){for(var R=[],F=0;F&lt;p.length;F++){var B=p[F];&quot;string&quot;==typeof B?(B=B.toLowerCase(),-1!==c.indexOf(B)?(e._has(&quot;mapbox&quot;)||e._has(&quot;cartesian&quot;))&amp;&amp;O.push(B):&quot;togglespikelines&quot;===B?D(&quot;toggleSpikelines&quot;):&quot;togglehover&quot;===B?D(&quot;toggleHover&quot;):&quot;hovercompare&quot;===B?D(&quot;hoverCompareCartesian&quot;):&quot;hoverclosest&quot;===B?(D(&quot;hoverClosestCartesian&quot;),D(&quot;hoverClosestGeo&quot;),D(&quot;hoverClosest3d&quot;),D(&quot;hoverClosestGl2d&quot;),D(&quot;hoverClosestPie&quot;)):&quot;v1hovermode&quot;===B&amp;&amp;(D(&quot;toggleHover&quot;),D(&quot;hoverClosestCartesian&quot;),D(&quot;hoverCompareCartesian&quot;),D(&quot;hoverClosestGeo&quot;),D(&quot;hoverClosest3d&quot;),D(&quot;hoverClosestGl2d&quot;),D(&quot;hoverClosestPie&quot;))):R.push(B)}p=R}return E(O),E(C.concat(I)),E(z),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r&lt;e.length;r++)t.push(e[r]);else t.push(e);return t}(S,p)}(t),u?u.update(t,f):e._modeBar=s(t,f)}else u&amp;&amp;(u.destroy(),delete e._modeBar)}},{&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../registry&quot;:931,&quot;../../traces/scatter/subtypes&quot;:1243,&quot;../fx/helpers&quot;:702,&quot;./buttons&quot;:726,&quot;./constants&quot;:727,&quot;./modebar&quot;:731}],731:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(&quot;div&quot;),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=&quot;modebar-&quot;+n._uid;this.element.setAttribute(&quot;id&quot;,i),this._uid=i,this.element.className=&quot;modebar&quot;,&quot;hover&quot;===r.displayModeBar&amp;&amp;(this.element.className+=&quot; modebar--hover ease-bg&quot;),&quot;v&quot;===n.modebar.orientation&amp;&amp;(this.element.className+=&quot; vertical&quot;,e=e.reverse());var o=n.modebar,s=&quot;hover&quot;===r.displayModeBar?&quot;.js-plotly-plot .plotly:hover &quot;:&quot;&quot;;a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,s+&quot;#&quot;+i+&quot; .modebar-group&quot;,&quot;background-color: &quot;+o.bgcolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn .icon path&quot;,&quot;fill: &quot;+o.color),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn:hover .icon path&quot;,&quot;fill: &quot;+o.activecolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn.active .icon path&quot;,&quot;fill: &quot;+o.activecolor);var l=!this.hasButtons(e),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(l||c||u)&amp;&amp;(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&amp;&amp;(f.className=f.className+&quot; watermark&quot;),&quot;v&quot;===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error(&quot;must provide button 'name' in button config&quot;);if(-1!==e.buttonsNames.indexOf(n))throw new Error(&quot;button name '&quot;+n+&quot;' is taken&quot;);e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},c.createGroup=function(){var t=document.createElement(&quot;div&quot;);return t.className=&quot;modebar-group&quot;,t},c.createButton=function(t){var e=this,r=document.createElement(&quot;a&quot;);r.setAttribute(&quot;rel&quot;,&quot;tooltip&quot;),r.className=&quot;modebar-btn&quot;;var i=t.title;void 0===i?i=t.name:&quot;function&quot;==typeof i&amp;&amp;(i=i(this.graphInfo)),(i||0===i)&amp;&amp;r.setAttribute(&quot;data-title&quot;,i),void 0!==t.attr&amp;&amp;r.setAttribute(&quot;data-attr&quot;,t.attr);var a=t.val;if(void 0!==a&amp;&amp;(&quot;function&quot;==typeof a&amp;&amp;(a=a(this.graphInfo)),r.setAttribute(&quot;data-val&quot;,a)),&quot;function&quot;!=typeof t.click)throw new Error(&quot;must provide button 'click' function in button config&quot;);r.addEventListener(&quot;click&quot;,(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),r.setAttribute(&quot;data-toggle&quot;,t.toggle||!1),t.toggle&amp;&amp;n.select(r).classed(&quot;active&quot;,!0);var s=t.icon;return&quot;function&quot;==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(&quot;data-gravity&quot;,t.gravity||&quot;n&quot;),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=&quot;http://www.w3.org/2000/svg&quot;;if(t.path){(e=document.createElementNS(n,&quot;svg&quot;)).setAttribute(&quot;viewBox&quot;,[0,0,t.width,r].join(&quot; &quot;)),e.setAttribute(&quot;class&quot;,&quot;icon&quot;);var a=document.createElementNS(n,&quot;path&quot;);a.setAttribute(&quot;d&quot;,t.path),t.transform?a.setAttribute(&quot;transform&quot;,t.transform):void 0!==t.ascent&amp;&amp;a.setAttribute(&quot;transform&quot;,&quot;matrix(1 0 0 -1 0 &quot;+t.ascent+&quot;)&quot;),e.appendChild(a)}t.svg&amp;&amp;(e=s.parseFromString(t.svg,&quot;application/xml&quot;).childNodes[0]);return e.setAttribute(&quot;height&quot;,&quot;1em&quot;),e.setAttribute(&quot;width&quot;,&quot;1em&quot;),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(&quot;data-attr&quot;):null;this.buttonElements.forEach((function(t){var i=t.getAttribute(&quot;data-val&quot;)||!0,o=t.getAttribute(&quot;data-attr&quot;),s=&quot;true&quot;===t.getAttribute(&quot;data-toggle&quot;),l=n.select(t);if(s)o===r&amp;&amp;l.classed(&quot;active&quot;,!l.classed(&quot;active&quot;));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(&quot;active&quot;,c===i)}}))},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r&lt;t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(&quot;a&quot;);return e.href=&quot;https://plotly.com/&quot;,e.target=&quot;_blank&quot;,e.setAttribute(&quot;data-title&quot;,a._(this.graphInfo,&quot;Produced with Plotly&quot;)),e.className=&quot;modebar-btn plotlyjsicon modebar-btn--logo&quot;,e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(&quot;.modebar&quot;)),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._modebardiv.node(),buttons:e});return r._privateplot&amp;&amp;n.select(i.element).append(&quot;span&quot;).classed(&quot;badge-private float--left&quot;,!0).text(&quot;PRIVATE&quot;),i}},{&quot;../../fonts/ploticon&quot;:782,&quot;../../lib&quot;:803,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],732:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=(0,t(&quot;../../plot_api/plot_template&quot;).templatedArray)(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},step:{valType:&quot;enumerated&quot;,values:[&quot;month&quot;,&quot;year&quot;,&quot;day&quot;,&quot;hour&quot;,&quot;minute&quot;,&quot;second&quot;,&quot;all&quot;],dflt:&quot;month&quot;,editType:&quot;plot&quot;},stepmode:{valType:&quot;enumerated&quot;,values:[&quot;backward&quot;,&quot;todate&quot;],dflt:&quot;backward&quot;,editType:&quot;plot&quot;},count:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;});e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},buttons:a,x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;plot&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},font:n({editType:&quot;plot&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;plot&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;}},{&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/font_attributes&quot;:883,&quot;../color/attributes&quot;:665}],733:[function(t,e,r){&quot;use strict&quot;;e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],734:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../../plots/array_container_defaults&quot;),s=t(&quot;./attributes&quot;),l=t(&quot;./constants&quot;);function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(&quot;visible&quot;)){var l=o(&quot;step&quot;);&quot;all&quot;!==l&amp;&amp;(!a||&quot;gregorian&quot;===a||&quot;month&quot;!==l&amp;&amp;&quot;year&quot;!==l?o(&quot;stepmode&quot;):e.stepmode=&quot;backward&quot;,o(&quot;count&quot;)),o(&quot;label&quot;)}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,&quot;rangeselector&quot;);function d(t,e){return n.coerce(h,p,s,t,e)}if(d(&quot;visible&quot;,o(h,p,{name:&quot;buttons&quot;,handleItemDefaults:c,calendar:f}).length&gt;0)){var g=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a&lt;n.length;a++){var o=e[n[a]].domain;o&amp;&amp;(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(&quot;x&quot;,g[0]),d(&quot;y&quot;,g[1]),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),d(&quot;xanchor&quot;),d(&quot;yanchor&quot;),n.coerceFont(d,&quot;font&quot;,r.font);var m=d(&quot;bgcolor&quot;);d(&quot;activecolor&quot;,i.contrast(m,l.lightAmount,l.darkAmount)),d(&quot;bordercolor&quot;),d(&quot;borderwidth&quot;)}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/array_container_defaults&quot;:849,&quot;../color&quot;:666,&quot;./attributes&quot;:732,&quot;./constants&quot;:733}],735:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../color&quot;),s=t(&quot;../drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../plots/cartesian/axis_ids&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR,m=t(&quot;./constants&quot;),v=t(&quot;./get_update_object&quot;);function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,&quot;rect&quot;,&quot;selector-rect&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));n.attr({rx:m.rx,ry:m.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){l.ensureSingle(t,&quot;text&quot;,&quot;selector-text&quot;,(function(t){t.attr(&quot;text-anchor&quot;,&quot;middle&quot;)})).call(s.font,e.font).text(function(t,e){if(t.label)return e?l.templateString(t.label,e):t.label;return&quot;all&quot;===t.step?&quot;all&quot;:t.count+t.step.charAt(0)}(r,n._fullLayout._meta)).call((function(t){u.convertToTspans(t,n)}))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(&quot;.rangeselector&quot;).data(function(t){for(var e=f.list(t,&quot;x&quot;,!0),r=[],n=0;n&lt;e.length;n++){var i=e[n];i.rangeselector&amp;&amp;i.rangeselector.visible&amp;&amp;r.push(i)}return r}(t),y);e.enter().append(&quot;g&quot;).classed(&quot;rangeselector&quot;,!0),e.exit().remove(),e.style({cursor:&quot;pointer&quot;,&quot;pointer-events&quot;:&quot;all&quot;}),e.each((function(e){var r=n.select(this),o=e,f=o.rangeselector,h=r.selectAll(&quot;g.button&quot;).data(l.filterVisible(f.buttons));h.enter().append(&quot;g&quot;).classed(&quot;button&quot;,!0),h.exit().remove(),h.each((function(e){var r=n.select(this),a=v(o,e);e._isActive=function(t,e,r){if(&quot;all&quot;===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&amp;&amp;t.range[1]===r[n[1]]}(o,e,a),r.call(x,f,e),r.call(b,f,e,t),r.on(&quot;click&quot;,(function(){t._dragged||i.call(&quot;_guiRelayout&quot;,t,a)})),r.on(&quot;mouseover&quot;,(function(){e._isHovered=!0,r.call(x,f,e)})),r.on(&quot;mouseout&quot;,(function(){e._isHovered=!1,r.call(x,f,e)}))})),function(t,e,r,i,o){var f=0,h=0,v=r.borderwidth;e.each((function(){var t=n.select(this).select(&quot;.selector-text&quot;),e=r.font.size*p,i=Math.max(e*u.lineCount(t),16)+3;h=Math.max(h,i)})),e.each((function(){var t=n.select(this),e=t.select(&quot;.selector-rect&quot;),i=t.select(&quot;.selector-text&quot;),a=i.node()&amp;&amp;s.bBox(i.node()).width,o=r.font.size*p,l=u.lineCount(i),d=Math.max(a+10,m.minButtonWidth);t.attr(&quot;transform&quot;,c(v+f,v)),e.attr({x:0,y:0,width:d,height:h}),u.positionText(i,d/2,h/2-(l-1)*o/2+3),f+=d+5}));var y=t._fullLayout._size,x=y.l+y.w*r.x,b=y.t+y.h*(1-r.y),_=&quot;left&quot;;l.isRightAnchor(r)&amp;&amp;(x-=f,_=&quot;right&quot;);l.isCenterAnchor(r)&amp;&amp;(x-=f/2,_=&quot;center&quot;);var w=&quot;top&quot;;l.isBottomAnchor(r)&amp;&amp;(b-=h,w=&quot;bottom&quot;);l.isMiddleAnchor(r)&amp;&amp;(b-=h/2,w=&quot;middle&quot;);f=Math.ceil(f),h=Math.ceil(h),x=Math.round(x),b=Math.round(b),a.autoMargin(t,i+&quot;-range-selector&quot;,{x:r.x,y:r.y,l:f*d[_],r:f*g[_],b:h*g[w],t:h*d[w]}),o.attr(&quot;transform&quot;,c(x,b))}(t,h,f,o._name,r)}))}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../drawing&quot;:688,&quot;./constants&quot;:733,&quot;./get_update_object&quot;:736,&quot;@plotly/d3&quot;:58}],736:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-time&quot;),i=t(&quot;../../lib&quot;).titleCase;e.exports=function(t,e){var r=t._name,a={};if(&quot;all&quot;===e.step)a[r+&quot;.autorange&quot;]=!0;else{var o=function(t,e){var r,a=t.range,o=new Date(t.r2l(a[1])),s=e.step,l=n[&quot;utc&quot;+i(s)],c=e.count;switch(e.stepmode){case&quot;backward&quot;:r=t.l2r(+l.offset(o,-c));break;case&quot;todate&quot;:var u=l.offset(o,-c);r=t.l2r(+l.ceil(u))}var f=a[1];return[r,f]}(t,e);a[r+&quot;.range[0]&quot;]=o[0],a[r+&quot;.range[1]&quot;]=o[1]}return a}},{&quot;../../lib&quot;:803,&quot;d3-time&quot;:177}],737:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;rangeselector&quot;,schema:{subplots:{xaxis:{rangeselector:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:732,&quot;./defaults&quot;:734,&quot;./draw&quot;:735}],738:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,dflt:n.background,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:n.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;integer&quot;,dflt:0,min:0,editType:&quot;plot&quot;},autorange:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;calc&quot;,impliedEdits:{autorange:!1}},thickness:{valType:&quot;number&quot;,dflt:.15,min:0,max:1,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;}},{&quot;../color/attributes&quot;:665}],739:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;).list,i=t(&quot;../../plots/cartesian/autorange&quot;).getAutoRange,a=t(&quot;./constants&quot;);e.exports=function(t){for(var e=n(t,&quot;x&quot;,!0),r=0;r&lt;e.length;r++){var o=e[r],s=o[a.name];s&amp;&amp;s.visible&amp;&amp;s.autorange&amp;&amp;(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{&quot;../../plots/cartesian/autorange&quot;:853,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;./constants&quot;:740}],740:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rangeslider&quot;,containerClassName:&quot;rangeslider-container&quot;,bgClassName:&quot;rangeslider-bg&quot;,rangePlotClassName:&quot;rangeslider-rangeplot&quot;,maskMinClassName:&quot;rangeslider-mask-min&quot;,maskMaxClassName:&quot;rangeslider-mask-max&quot;,slideBoxClassName:&quot;rangeslider-slidebox&quot;,grabberMinClassName:&quot;rangeslider-grabber-min&quot;,grabAreaMinClassName:&quot;rangeslider-grabarea-min&quot;,handleMinClassName:&quot;rangeslider-handle-min&quot;,grabberMaxClassName:&quot;rangeslider-grabber-max&quot;,grabAreaMaxClassName:&quot;rangeslider-grabarea-max&quot;,handleMaxClassName:&quot;rangeslider-handle-max&quot;,maskMinOppAxisClassName:&quot;rangeslider-mask-min-opp-axis&quot;,maskMaxOppAxisClassName:&quot;rangeslider-mask-max-opp-axis&quot;,maskColor:&quot;rgba(0,0,0,0.4)&quot;,maskOppAxisColor:&quot;rgba(0,0,0,0.2)&quot;,slideBoxFill:&quot;transparent&quot;,slideBoxCursor:&quot;ew-resize&quot;,grabAreaFill:&quot;transparent&quot;,grabAreaCursor:&quot;col-resize&quot;,grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],741:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./oppaxis_attributes&quot;);e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,&quot;rangeslider&quot;);if(_(&quot;visible&quot;)){_(&quot;bgcolor&quot;,e.plot_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),_(&quot;thickness&quot;),_(&quot;autorange&quot;,!c.isValidRange(h.range)),_(&quot;range&quot;);var d=e._subplots;if(d)for(var g=d.cartesian.filter((function(t){return t.substr(0,t.indexOf(&quot;y&quot;))===a.name2id(r)})).map((function(t){return t.substr(t.indexOf(&quot;y&quot;),t.length)})),m=n.simpleMap(g,a.id2name),v=0;v&lt;m.length;v++){var y=m[v];u=h[y]||{},f=i.newContainer(p,y,&quot;yaxis&quot;);var x,b=e[y];u.range&amp;&amp;b.isValidRange(u.range)&amp;&amp;(x=&quot;fixed&quot;),&quot;match&quot;!==w(&quot;rangemode&quot;,x)&amp;&amp;w(&quot;range&quot;,b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;./attributes&quot;:738,&quot;./oppaxis_attributes&quot;:745}],742:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../drawing&quot;),c=t(&quot;../color&quot;),u=t(&quot;../titles&quot;),f=t(&quot;../../plots/cartesian&quot;),h=t(&quot;../../plots/cartesian/axis_ids&quot;),p=t(&quot;../dragelement&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;./constants&quot;);function m(t,e,r,n){var i=o.ensureSingle(t,&quot;rect&quot;,g.bgClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=l.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(c,c),fill:n.bgcolor,stroke:n.bordercolor,&quot;stroke-width&quot;:u})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,&quot;clipPath&quot;,n._clipId,(function(t){t.append(&quot;rect&quot;).attr({x:0,y:0})})).select(&quot;rect&quot;).attr({width:n._width,height:n._height})}function y(t,e,r,i){var s,c=e.calcdata,u=t.selectAll(&quot;g.&quot;+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return g.rangePlotClassName+&quot; &quot;+t})).call(l.setClipUrl,i._clipId,e),u.order(),u.exit().remove(),u.each((function(t,o){var l=n.select(this),u=0===o,p=h.getFromId(e,t,&quot;y&quot;),d=p._name,g=i[d],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};r.rangebreaks&amp;&amp;(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[d]={type:p.type,domain:[0,1],range:&quot;match&quot;!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&amp;&amp;(m.layout[d].rangebreaks=p.rangebreaks),a.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[d];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:t,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=x:(x.mainplot=&quot;xy&quot;,x.mainplotinfo=s),f.rangePlot(e,x,function(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&amp;&amp;r.push(i)}return r}(c,t))}))}function x(t,e,r,n,i){(o.ensureSingle(t,&quot;rect&quot;,g.maskMinClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),&quot;match&quot;!==i.rangemode)&amp;&amp;(o.ensureSingle(t,&quot;rect&quot;,g.maskMinOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).style(&quot;border-top&quot;,g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function b(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,&quot;rect&quot;,g.slideBoxClassName,(function(t){t.attr({y:0,cursor:g.slideBoxCursor,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr({height:n._height,fill:g.slideBoxFill})}function _(t,e,r,n){var i=o.ensureSingle(t,&quot;g&quot;,g.grabberMinClassName),a=o.ensureSingle(t,&quot;g&quot;,g.grabberMaxClassName),s={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:g.handleStrokeWidth,&quot;shape-rendering&quot;:&quot;crispEdges&quot;},l={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(i,&quot;rect&quot;,g.handleMinClassName,(function(t){t.attr(s)})).attr(l),o.ensureSingle(a,&quot;rect&quot;,g.handleMaxClassName,(function(t){t.attr(s)})).attr(l);var u={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:e._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(i,&quot;rect&quot;,g.grabAreaMinClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height),o.ensureSingle(a,&quot;rect&quot;,g.grabAreaMaxClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height)}e.exports=function(t){for(var e=t._fullLayout,r=e._rangeSliderData,a=0;a&lt;r.length;a++){var l=r[a][g.name];l._clipId=l._id+&quot;-&quot;+e._uid}var c=e._infolayer.selectAll(&quot;g.&quot;+g.containerClassName).data(r,(function(t){return t._name}));c.exit().each((function(t){var r=t[g.name];e._topdefs.select(&quot;#&quot;+r._clipId).remove()})).remove(),0!==r.length&amp;&amp;(c.enter().append(&quot;g&quot;).classed(g.containerClassName,!0).attr(&quot;pointer-events&quot;,&quot;all&quot;),c.each((function(r){var a=n.select(this),l=r[g.name],c=e[h.id2name(r.anchor)],f=l[h.id2name(r.anchor)];if(l.range){var w,T=o.simpleMap(l.range,r.r2l),k=o.simpleMap(r.range,r.r2l);w=k[0]&lt;k[1]?[Math.min(T[0],k[0]),Math.max(T[1],k[1])]:[Math.max(T[0],k[0]),Math.min(T[1],k[1])],l.range=l._input.range=o.simpleMap(w,r.l2r)}r.cleanRange(&quot;rangeslider.range&quot;);var A=e._size,M=r.domain;l._width=A.w*(M[1]-M[0]);var S=Math.round(A.l+A.w*M[0]),E=Math.round(A.t+A.h*(1-r._counterDomainMin)+(&quot;bottom&quot;===r.side?r._depth:0)+l._offsetShift+g.extraPad);a.attr(&quot;transform&quot;,s(S,E)),l._rl=o.simpleMap(l.range,r.r2l);var L=l._rl[0],C=l._rl[1],P=C-L;if(l.p2d=function(t){return t/l._width*P+L},l.d2p=function(t){return(t-L)/P*l._width},r.rangebreaks){var I=r.locateBreaks(L,C);if(I.length){var O,z,D=0;for(O=0;O&lt;I.length;O++)D+=(z=I[O]).max-z.min;var R=l._width/(C-L-D),F=[-R*L];for(O=0;O&lt;I.length;O++)z=I[O],F.push(F[F.length-1]-R*(z.max-z.min));for(l.d2p=function(t){for(var e=F[0],r=0;r&lt;I.length;r++){var n=I[r];if(t&gt;=n.max)e=F[r+1];else if(t&lt;n.min)break}return e+R*t},O=0;O&lt;I.length;O++)(z=I[O]).pmin=l.d2p(z.min),z.pmax=l.d2p(z.max);l.p2d=function(t){for(var e=F[0],r=0;r&lt;I.length;r++){var n=I[r];if(t&gt;=n.pmax)e=F[r+1];else if(t&lt;n.pmin)break}return(t-e)/R}}}if(&quot;match&quot;!==f.rangemode){var B=c.r2l(f.range[0]),N=c.r2l(f.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/N*l._height}}a.call(m,t,r,l).call(v,t,r,l).call(y,t,r,l).call(x,t,r,l,f).call(b,t,r,l).call(_,t,r,l),function(t,e,r,a){if(e._context.staticPlot)return;var s=t.select(&quot;rect.&quot;+g.slideBoxClassName).node(),l=t.select(&quot;rect.&quot;+g.grabAreaMinClassName).node(),c=t.select(&quot;rect.&quot;+g.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,h=u.clientX||u.touches[0].clientX,g=h-t.node().getBoundingClientRect().left,m=a.d2p(r._rl[0]),v=a.d2p(r._rl[1]),y=p.coverSlip();function x(t){var u,p,x,b=+(t.clientX||t.touches[0].clientX)-h;switch(f){case s:x=&quot;ew-resize&quot;,u=m+b,p=v+b;break;case l:x=&quot;col-resize&quot;,u=m+b,p=v;break;case c:x=&quot;col-resize&quot;,u=m,p=v+b;break;default:x=&quot;ew-resize&quot;,u=g,p=g+b}if(p&lt;u){var _=p;p=u,u=_}a._pixelMin=u,a._pixelMax=p,d(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){i.call(&quot;_guiRelayout&quot;,e,r._name+&quot;.range&quot;,[s,l])}))}(0,e,r,a)}function b(){y.removeEventListener(&quot;mousemove&quot;,x),y.removeEventListener(&quot;mouseup&quot;,b),this.removeEventListener(&quot;touchmove&quot;,x),this.removeEventListener(&quot;touchend&quot;,b),o.removeElement(y)}this.addEventListener(&quot;touchmove&quot;,x),this.addEventListener(&quot;touchend&quot;,b),y.addEventListener(&quot;mousemove&quot;,x),y.addEventListener(&quot;mouseup&quot;,b)}t.on(&quot;mousedown&quot;,u),t.on(&quot;touchstart&quot;,u)}(a,t,r,l),function(t,e,r,n,i,a){var l=g.handleWidth/2;function c(t){return o.constrain(t,0,n._width)}function u(t){return o.constrain(t,0,n._height)}function f(t){return o.constrain(t,-l,n._width+l)}var h=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;x&quot;,h).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMinClassName).attr(&quot;width&quot;,h),t.select(&quot;rect.&quot;+g.maskMaxClassName).attr(&quot;x&quot;,p).attr(&quot;width&quot;,n._width-p),&quot;match&quot;!==a.rangemode){var d=n._height-u(n.d2pOppAxis(i._rl[1])),m=n._height-u(n.d2pOppAxis(i._rl[0]));t.select(&quot;rect.&quot;+g.maskMinOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;height&quot;,d).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMaxOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;y&quot;,m).attr(&quot;height&quot;,n._height-m).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;y&quot;,d).attr(&quot;height&quot;,m-d)}var v=Math.round(f(h-l))-.5,y=Math.round(f(p-l))+.5;t.select(&quot;g.&quot;+g.grabberMinClassName).attr(&quot;transform&quot;,s(v,.5)),t.select(&quot;g.&quot;+g.grabberMaxClassName).attr(&quot;transform&quot;,s(y,.5))}(a,0,r,l,c,f),&quot;bottom&quot;===r.side&amp;&amp;u.draw(t,r._id+&quot;title&quot;,{propContainer:r,propName:r._name+&quot;.title&quot;,placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:E+l._height+l._offsetShift+10+1.5*r.title.font.size,&quot;text-anchor&quot;:&quot;middle&quot;}})})))}},{&quot;../../lib&quot;:803,&quot;../../lib/setcursor&quot;:824,&quot;../../plots/cartesian&quot;:868,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;../titles&quot;:764,&quot;./constants&quot;:740,&quot;@plotly/d3&quot;:58}],743:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../lib/svg_text_utils&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../constants/alignment&quot;).LINE_SPACING,s=a.name;function l(t){var e=t&amp;&amp;t[s];return e&amp;&amp;e.visible}r.isVisible=l,r.makeData=function(t){var e=n.list({_fullLayout:t},&quot;x&quot;,!0),r=t.margin,i=[];if(!t._has(&quot;gl2d&quot;))for(var a=0;a&lt;e.length;a++){var o=e[a];if(l(o)){i.push(o);var c=o[s];c._id=s+o._id,c._height=(t.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}t._rangeSliderData=i},r.autoMarginOpts=function(t,e){var r=t._fullLayout,n=e[s],l=e._id.charAt(0),c=0,u=0;&quot;bottom&quot;===e.side&amp;&amp;(c=e._depth,e.title.text!==r._dfltTitle[l]&amp;&amp;(u=1.5*e.title.font.size+10+n._offsetShift,u+=(e.title.text.match(i.BR_TAG_ALL)||[]).length*e.title.font.size*o));return{x:0,y:e._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:a.extraPad+2*n._offsetShift}}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;./constants&quot;:740}],744:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./oppaxis_attributes&quot;),o=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;rangeslider&quot;,schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:t(&quot;./draw&quot;),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{&quot;../../lib&quot;:803,&quot;./attributes&quot;:738,&quot;./calc_autorange&quot;:739,&quot;./defaults&quot;:741,&quot;./draw&quot;:742,&quot;./helpers&quot;:743,&quot;./oppaxis_attributes&quot;:745}],745:[function(t,e,r){&quot;use strict&quot;;e.exports={_isSubplotObj:!0,rangemode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;fixed&quot;,&quot;match&quot;],dflt:&quot;match&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},editType:&quot;calc&quot;}},{}],746:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../traces/scatter/attributes&quot;).line,a=t(&quot;../drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=s(&quot;shape&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;rect&quot;,&quot;path&quot;,&quot;line&quot;],editType:&quot;calc+arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},xref:o({},n.xref,{}),xsizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yref:o({},n.yref,{}),ysizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},path:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},line:{color:o({},i.color,{editType:&quot;arraydraw&quot;}),width:o({},i.width,{editType:&quot;calc+arraydraw&quot;}),dash:o({},a,{editType:&quot;arraydraw&quot;}),editType:&quot;calc+arraydraw&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;arraydraw&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc+arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:772,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/plot_template&quot;:843,&quot;../../traces/scatter/attributes&quot;:1218,&quot;../annotations/attributes&quot;:649,&quot;../drawing/attributes&quot;:687}],747:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;./helpers&quot;);function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(&quot;pixel&quot;===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p&lt;0?Math.abs(p)+c:c,g=h&gt;0?h+c:c;return{ppad:c,ppadplus:u?d:g,ppadminus:u?g:d}}return{ppad:c}}function u(t,e,r,n,i){var s=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(&quot;date&quot;===t.type&amp;&amp;(s=o.decodeDate(s)),l=0;l&lt;d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&amp;&amp;(!(u=d[l].substr(1).match(a.paramRE))||u.length&lt;c||((f=s(u[c]))&lt;h&amp;&amp;(h=f),f&gt;p&amp;&amp;(p=f)));return p&gt;=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&amp;&amp;t._fullData.length)for(var o=0;o&lt;r.length;o++){var c,f,h=r[o];h._extremes={};var p=i.getRefType(h.xref),d=i.getRefType(h.yref);if(&quot;paper&quot;!==h.xref&amp;&amp;&quot;domain&quot;!==p){var g=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x0,m=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),g,m,h.path,a.paramIsX))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(&quot;paper&quot;!==h.yref&amp;&amp;&quot;domain&quot;!==d){var v=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y0,y=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),v,y,h.path,a.paramIsY))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;./constants&quot;:748,&quot;./helpers&quot;:757}],748:[function(t,e,r){&quot;use strict&quot;;e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],749:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./helpers&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(&quot;visible&quot;)){var l=a(&quot;path&quot;),c=a(&quot;type&quot;,l?&quot;path&quot;:&quot;rect&quot;);&quot;path&quot;!==e.type&amp;&amp;delete e.path,a(&quot;editable&quot;),a(&quot;layer&quot;),a(&quot;opacity&quot;),a(&quot;fillcolor&quot;),a(&quot;fillrule&quot;),a(&quot;line.width&quot;)&amp;&amp;(a(&quot;line.color&quot;),a(&quot;line.dash&quot;));for(var u=a(&quot;xsizemode&quot;),f=a(&quot;ysizemode&quot;),h=[&quot;x&quot;,&quot;y&quot;],p=0;p&lt;2;p++){var d,g,m,v=h[p],y=v+&quot;anchor&quot;,x=&quot;x&quot;===v?u:f,b={_fullLayout:r},_=i.coerceRef(t,e,b,v,void 0,&quot;paper&quot;);if(&quot;range&quot;===i.getRefType(_)?((d=i.getFromId(b,_))._shapeIndices.push(e._index),m=s.rangeToShapePosition(d),g=s.shapePositionToRange(d)):g=m=n.identity,&quot;path&quot;!==c){var w=v+&quot;0&quot;,T=v+&quot;1&quot;,k=t[w],A=t[T];t[w]=g(t[w],!0),t[T]=g(t[T],!0),&quot;pixel&quot;===x?(a(w,0),a(T,10)):(i.coercePosition(e,b,a,_,w,.25),i.coercePosition(e,b,a,_,T,.75)),e[w]=m(e[w]),e[T]=m(e[T]),t[w]=k,t[T]=A}if(&quot;pixel&quot;===x){var M=t[y];t[y]=g(t[y],!0),i.coercePosition(e,b,a,_,y,.25),e[y]=m(e[y]),t[y]=M}}&quot;path&quot;===c?a(&quot;path&quot;):n.noneOrAll(t,e,[&quot;x0&quot;,&quot;x1&quot;,&quot;y0&quot;,&quot;y1&quot;])}}e.exports=function(t,e){a(t,e,{name:&quot;shapes&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/axes&quot;:854,&quot;./attributes&quot;:746,&quot;./helpers&quot;:757}],750:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;./draw_newshape/helpers&quot;).readPaths,s=t(&quot;./draw_newshape/display_outlines&quot;),l=t(&quot;../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,h=t(&quot;../dragelement&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;./constants&quot;),g=t(&quot;./helpers&quot;);function m(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(&quot;path&quot;).remove(),e._shapeLowerLayer.selectAll(&quot;path&quot;).remove(),e._plots){var n=e._plots[r].shapelayer;n&amp;&amp;n.selectAll(&quot;path&quot;).remove()}for(var i=0;i&lt;e.shapes.length;i++)e.shapes[i].visible&amp;&amp;x(t,i)}function v(t){return!!t._fullLayout._drawing}function y(t){return!t._context.edits.shapePosition}function x(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=&quot;'+e+'&quot;]').remove();var r=g.makeOptionsAndPlotinfo(t,e),l=r.options,x=r.plotinfo;if(l._input&amp;&amp;!1!==l.visible)if(&quot;below&quot;!==l.layer)k(t._fullLayout._shapeUpperLayer);else if(&quot;paper&quot;===l.xref||&quot;paper&quot;===l.yref)k(t._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)k((x.mainplotinfo||x).shapelayer);else k(t._fullLayout._shapeLowerLayer)}function k(r){var k=_(t,l),A={&quot;data-index&quot;:e,&quot;fill-rule&quot;:l.fillrule,d:k},M=l.opacity,S=l.fillcolor,E=l.line.width?l.line.color:&quot;rgba(0,0,0,0)&quot;,L=l.line.width,C=l.line.dash;L||!0!==l.editable||(L=5,C=&quot;solid&quot;);var P=&quot;Z&quot;!==k[k.length-1],I=y(t)&amp;&amp;l.editable&amp;&amp;t._fullLayout._activeShapeIndex===e;I&amp;&amp;(S=P?&quot;rgba(0,0,0,0)&quot;:t._fullLayout.activeshape.fillcolor,M=t._fullLayout.activeshape.opacity);var O,z=r.append(&quot;path&quot;).attr(A).style(&quot;opacity&quot;,M).call(c.stroke,E).call(c.fill,S).call(u.dashLine,C,L);if(b(z,t,l),(I||t._context.edits.shapePosition)&amp;&amp;(O=f(t.layout,&quot;shapes&quot;,l)),I){z.style({cursor:&quot;move&quot;});var D={element:z.node(),plotinfo:x,gd:t,editHelpers:O,isActiveShape:!0},R=o(k,t);s(R,z,D)}else t._context.edits.shapePosition?function(t,e,r,o,s,l){var c,f,m,y,x,T,k,A,M,S,E,L,C,P,I,O,z=&quot;pixel&quot;===r.xsizemode,D=&quot;pixel&quot;===r.ysizemode,R=&quot;line&quot;===r.type,F=&quot;path&quot;===r.type,B=l.modifyItem,N=a.getFromId(t,r.xref),j=a.getRefType(r.xref),U=a.getFromId(t,r.yref),V=a.getRefType(r.yref),q=g.getDataToPixel(t,N,!1,j),H=g.getDataToPixel(t,U,!0,V),G=g.getPixelToData(t,N,!1,j),Y=g.getPixelToData(t,U,!0,V),W=R?function(){var t=Math.max(r.line.width,10),n=s.append(&quot;g&quot;).attr(&quot;data-index&quot;,o);n.append(&quot;path&quot;).attr(&quot;d&quot;,e.attr(&quot;d&quot;)).style({cursor:&quot;move&quot;,&quot;stroke-width&quot;:t,&quot;stroke-opacity&quot;:&quot;0&quot;});var i={&quot;fill-opacity&quot;:&quot;0&quot;},a=Math.max(t/2,10);return n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;start-point&quot;,cx:z?q(r.xanchor)+r.x0:q(r.x0),cy:D?H(r.yanchor)-r.y0:H(r.y0),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;end-point&quot;,cx:z?q(r.xanchor)+r.x1:q(r.x1),cy:D?H(r.yanchor)-r.y1:H(r.y1),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n}():e,X={element:W.node(),gd:t,prepFn:function(n){if(v(t))return;z&amp;&amp;(x=q(r.xanchor));D&amp;&amp;(T=H(r.yanchor));&quot;path&quot;===r.type?I=r.path:(c=z?r.x0:q(r.x0),f=D?r.y0:H(r.y0),m=z?r.x1:q(r.x1),y=D?r.y1:H(r.y1));c&lt;m?(M=c,C=&quot;x0&quot;,S=m,P=&quot;x1&quot;):(M=m,C=&quot;x1&quot;,S=c,P=&quot;x0&quot;);!D&amp;&amp;f&lt;y||D&amp;&amp;f&gt;y?(k=f,E=&quot;y0&quot;,A=y,L=&quot;y1&quot;):(k=y,E=&quot;y1&quot;,A=f,L=&quot;y0&quot;);Z(n),Q(s,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l=&quot;&quot;;&quot;paper&quot;===n||o.autorange||(l+=n);&quot;paper&quot;===i||s.autorange||(l+=i);u.setClipUrl(t,l?&quot;clip&quot;+r._fullLayout._uid+l:null,r)}(e,r,t),X.moveFn=&quot;move&quot;===O?J:K,X.altKey=n.altKey},doneFn:function(){if(v(t))return;p(e),$(s),b(e,t,r),n.call(&quot;_guiRelayout&quot;,t,l.getUpdateObj())},clickFn:function(){if(v(t))return;$(s)}};function Z(r){if(v(t))O=null;else if(R)O=&quot;path&quot;===r.target.tagName?&quot;move&quot;:&quot;start-point&quot;===r.target.attributes[&quot;data-line-point&quot;].value?&quot;resize-over-start-point&quot;:&quot;resize-over-end-point&quot;;else{var n=X.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!F&amp;&amp;i&gt;10&amp;&amp;a&gt;10&amp;&amp;!r.shiftKey?h.getCursor(o/i,1-s/a):&quot;move&quot;;p(e,l),O=l.split(&quot;-&quot;)[0]}}function J(n,i){if(&quot;path&quot;===r.type){var a=function(t){return t},o=a,l=a;z?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(I,o,l))}else z?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(B(&quot;x0&quot;,r.x0=G(c+n)),B(&quot;x1&quot;,r.x1=G(m+n))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(B(&quot;y0&quot;,r.y0=Y(f+i)),B(&quot;y1&quot;,r.y1=Y(y+i)));e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function K(n,i){if(F){var a=function(t){return t},o=a,l=a;z?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(I,o,l))}else if(R){if(&quot;resize-over-start-point&quot;===O){var u=c+n,h=D?f-i:f+i;B(&quot;x0&quot;,r.x0=z?u:G(u)),B(&quot;y0&quot;,r.y0=D?h:Y(h))}else if(&quot;resize-over-end-point&quot;===O){var p=m+n,d=D?y-i:y+i;B(&quot;x1&quot;,r.x1=z?p:G(p)),B(&quot;y1&quot;,r.y1=D?d:Y(d))}}else{var v=function(t){return-1!==O.indexOf(t)},b=v(&quot;n&quot;),j=v(&quot;s&quot;),V=v(&quot;w&quot;),W=v(&quot;e&quot;),X=b?k+i:k,Z=j?A+i:A,J=V?M+n:M,K=W?S+n:S;D&amp;&amp;(b&amp;&amp;(X=k-i),j&amp;&amp;(Z=A-i)),(!D&amp;&amp;Z-X&gt;10||D&amp;&amp;X-Z&gt;10)&amp;&amp;(B(E,r[E]=D?X:Y(X)),B(L,r[L]=D?Z:Y(Z))),K-J&gt;10&amp;&amp;(B(C,r[C]=z?J:G(J)),B(P,r[P]=z?K:G(K)))}e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function Q(t,e){(z||D)&amp;&amp;function(){var r=&quot;path&quot;!==e.type,n=t.selectAll(&quot;.visual-cue&quot;).data([0]);n.enter().append(&quot;path&quot;).attr({fill:&quot;#fff&quot;,&quot;fill-rule&quot;:&quot;evenodd&quot;,stroke:&quot;#000&quot;,&quot;stroke-width&quot;:1}).classed(&quot;visual-cue&quot;,!0);var a=q(z?e.xanchor:i.midRange(r?[e.x0,e.x1]:g.extractPathCoords(e.path,d.paramIsX))),o=H(D?e.yanchor:i.midRange(r?[e.y0,e.y1]:g.extractPathCoords(e.path,d.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,1),o=g.roundPositionForSharpStrokeRendering(o,1),z&amp;&amp;D){var s=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-1-1)+&quot;h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z&quot;;n.attr(&quot;d&quot;,s)}else if(z){var l=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-9-1)+&quot;v18 h2 v-18 Z&quot;;n.attr(&quot;d&quot;,l)}else{var c=&quot;M&quot;+(a-9-1)+&quot;,&quot;+(o-1-1)+&quot;h18 v2 h-18 Z&quot;;n.attr(&quot;d&quot;,c)}}()}function $(t){t.selectAll(&quot;.visual-cue&quot;).remove()}h.init(X),W.node().onmousemove=Z}(t,z,l,e,r,O):!0===l.editable&amp;&amp;z.style(&quot;pointer-events&quot;,P||c.opacity(S)*M&lt;=.5?&quot;stroke&quot;:&quot;all&quot;);z.node().addEventListener(&quot;click&quot;,(function(){return function(t,e){if(!y(t))return;var r=+e.node().getAttribute(&quot;data-index&quot;);if(r&gt;=0){if(r===t._fullLayout._activeShapeIndex)return void T(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=T,m(t)}}(t,z)}))}}function b(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,&quot;&quot;).replace(/[xyz][1-9]* *domain/g,&quot;&quot;);u.setClipUrl(t,n?&quot;clip&quot;+e._fullLayout._uid+n:null,e)}function _(t,e){var r,n,o,s,l,c,u,f,h=e.type,p=a.getRefType(e.xref),m=a.getRefType(e.yref),v=a.getFromId(t,e.xref),y=a.getFromId(t,e.yref),x=t._fullLayout._size;if(v?&quot;domain&quot;===p?n=function(t){return v._offset+v._length*t}:(r=g.shapePositionToRange(v),n=function(t){return v._offset+v.r2p(r(t,!0))}):n=function(t){return x.l+x.w*t},y?&quot;domain&quot;===m?s=function(t){return y._offset+y._length*(1-t)}:(o=g.shapePositionToRange(y),s=function(t){return y._offset+y.r2p(o(t,!0))}):s=function(t){return x.t+x.h*(1-t)},&quot;path&quot;===h)return v&amp;&amp;&quot;date&quot;===v.type&amp;&amp;(n=g.decodeDate(n)),y&amp;&amp;&quot;date&quot;===y.type&amp;&amp;(s=g.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(d.segmentRE,(function(t){var n=0,c=t.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=t.substr(1).replace(d.paramRE,(function(t){return u[n]?t=&quot;pixel&quot;===a?e(s)+Number(t):e(t):f[n]&amp;&amp;(t=&quot;pixel&quot;===o?r(l)-Number(t):r(t)),++n&gt;h&amp;&amp;(t=&quot;X&quot;),t}));return n&gt;h&amp;&amp;(p=p.replace(/[\s,]*X.*/,&quot;&quot;),i.log(&quot;Ignoring extra params in segment &quot;+t)),c+p}))}(e,n,s);if(&quot;pixel&quot;===e.xsizemode){var b=n(e.xanchor);l=b+e.x0,c=b+e.x1}else l=n(e.x0),c=n(e.x1);if(&quot;pixel&quot;===e.ysizemode){var _=s(e.yanchor);u=_-e.y0,f=_-e.y1}else u=s(e.y0),f=s(e.y1);if(&quot;line&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;L&quot;+c+&quot;,&quot;+f;if(&quot;rect&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;H&quot;+c+&quot;V&quot;+f+&quot;H&quot;+l+&quot;Z&quot;;var w=(l+c)/2,T=(u+f)/2,k=Math.abs(w-l),A=Math.abs(T-u),M=&quot;A&quot;+k+&quot;,&quot;+A,S=w+k+&quot;,&quot;+T;return&quot;M&quot;+S+M+&quot; 0 1,1 &quot;+(w+&quot;,&quot;+(T-A))+M+&quot; 0 0,1 &quot;+S+&quot;Z&quot;}function w(t,e,r){return t.replace(d.segmentRE,(function(t){var n=0,i=t.charAt(0),a=d.paramIsX[i],o=d.paramIsY[i],s=d.numParams[i];return i+t.substr(1).replace(d.paramRE,(function(t){return n&gt;=s||(a[n]?t=e(t):o[n]&amp;&amp;(t=r(t)),n++),t}))}))}function T(t){y(t)&amp;&amp;(t._fullLayout._activeShapeIndex&gt;=0&amp;&amp;(l(t),delete t._fullLayout._activeShapeIndex,m(t)))}e.exports={draw:m,drawOne:x,eraseActiveShape:function(t){if(!y(t))return;l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e&lt;r.length){for(var i=[],a=0;a&lt;r.length;a++)a!==e&amp;&amp;i.push(r[a]);delete t._fullLayout._activeShapeIndex,n.call(&quot;_guiRelayout&quot;,t,{shapes:i})}}}},{&quot;../../lib&quot;:803,&quot;../../lib/setcursor&quot;:824,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/handle_outline&quot;:865,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../dragelement&quot;:685,&quot;../drawing&quot;:688,&quot;./constants&quot;:748,&quot;./draw_newshape/display_outlines&quot;:754,&quot;./draw_newshape/helpers&quot;:755,&quot;./helpers&quot;:757}],751:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../drawing/attributes&quot;).dash,i=t(&quot;../../../lib/extend&quot;).extendFlat;e.exports={newshape:{line:{color:{valType:&quot;color&quot;,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:0,dflt:4,editType:&quot;none&quot;},dash:i({},n,{dflt:&quot;solid&quot;,editType:&quot;none&quot;}),editType:&quot;none&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;none&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;none&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;none&quot;},drawdirection:{valType:&quot;enumerated&quot;,values:[&quot;ortho&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;diagonal&quot;],dflt:&quot;diagonal&quot;,editType:&quot;none&quot;},editType:&quot;none&quot;},activeshape:{fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgb(255,0,255)&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;none&quot;},editType:&quot;none&quot;}}},{&quot;../../../lib/extend&quot;:793,&quot;../../drawing/attributes&quot;:687}],752:[function(t,e,r){&quot;use strict&quot;;e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],753:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../color&quot;);e.exports=function(t,e,r){if(r(&quot;newshape.drawdirection&quot;),r(&quot;newshape.layer&quot;),r(&quot;newshape.fillcolor&quot;),r(&quot;newshape.fillrule&quot;),r(&quot;newshape.opacity&quot;),r(&quot;newshape.line.width&quot;)){var i=(t||{}).plot_bgcolor||&quot;#FFF&quot;;r(&quot;newshape.line.color&quot;,n.contrast(i)),r(&quot;newshape.line.dash&quot;)}r(&quot;activeshape.fillcolor&quot;),r(&quot;activeshape.opacity&quot;)}},{&quot;../../color&quot;:666}],754:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement&quot;),i=t(&quot;../../dragelement/helpers&quot;).drawMode,a=t(&quot;../../../registry&quot;),o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,h=t(&quot;./helpers&quot;),p=h.pointsShapeRectangle,d=h.pointsShapeEllipse,g=h.writePaths,m=t(&quot;./newshapes&quot;);e.exports=function t(e,r,o,h){h||(h=0);var v=o.gd;function y(){t(e,r,o,h++),d(e[0])&amp;&amp;x({redrawing:!0})}function x(t){o.isActiveShape=!1;var e=m(r,o);Object.keys(e).length&amp;&amp;a.call((t||{}).redrawing?&quot;relayout&quot;:&quot;_guiRelayout&quot;,v,e)}var b,_,w,T,k,A=o.isActiveShape,M=v._fullLayout._zoomlayer,S=o.dragmode;(i(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex&gt;=0&amp;&amp;f(v),r.attr(&quot;d&quot;,g(e)),A&amp;&amp;!h)&amp;&amp;(k=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];t[r]=[];for(var i=0;i&lt;n.length;i++){t[r][i]=[];for(var a=0;a&lt;n[i].length;a++)t[r][i][a]=n[i][a]}}return t}([],e),function(t){b=[];for(var r=0;r&lt;e.length;r++){var i=e[r],a=!p(i)&amp;&amp;d(i);b[r]=[];for(var o=0;o&lt;i.length;o++)if(&quot;Z&quot;!==i[o][0]&amp;&amp;(!a||o===s||o===l||o===c||o===u)){var f=i[o][1],h=i[o][2],g=t.append(&quot;circle&quot;).classed(&quot;cursor-grab&quot;,!0).attr(&quot;data-i&quot;,r).attr(&quot;data-j&quot;,o).attr(&quot;cx&quot;,f).attr(&quot;cy&quot;,h).attr(&quot;r&quot;,4).style({&quot;mix-blend-mode&quot;:&quot;luminosity&quot;,fill:&quot;black&quot;,stroke:&quot;white&quot;,&quot;stroke-width&quot;:1});b[r][o]={element:g.node(),gd:v,prepFn:E,doneFn:C,clickFn:P},n.init(b[r][o])}}}(M.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;outline-controllers&quot;)),function(){if(_=[],!e.length)return;_[0]={element:r[0][0],gd:v,prepFn:O,doneFn:z},n.init(_[0])}());function E(t){w=+t.srcElement.getAttribute(&quot;data-i&quot;),T=+t.srcElement.getAttribute(&quot;data-j&quot;),b[w][T].moveFn=L}function L(t,r){if(e.length){var n=k[w][T][1],i=k[w][T][2],a=e[w],o=a.length;if(p(a)){for(var s=0;s&lt;o;s++)if(s!==T){var l=a[s];l[1]===a[T][1]&amp;&amp;(l[1]=n+t),l[2]===a[T][2]&amp;&amp;(l[2]=i+r)}if(a[T][1]=n+t,a[T][2]=i+r,!p(a))for(var c=0;c&lt;o;c++)for(var u=0;u&lt;a[c].length;u++)a[c][u]=k[w][c][u]}else a[T][1]=n+t,a[T][2]=i+r;y()}}function C(){x()}function P(t,r){if(2===t){w=+r.srcElement.getAttribute(&quot;data-i&quot;),T=+r.srcElement.getAttribute(&quot;data-j&quot;);var n=e[w];p(n)||d(n)||function(){if(e.length&amp;&amp;e[w]&amp;&amp;e[w].length){for(var t=[],r=0;r&lt;e[w].length;r++)r!==T&amp;&amp;t.push(e[w][r]);t.length&gt;1&amp;&amp;(2!==t.length||&quot;Z&quot;!==t[1][0])&amp;&amp;(0===T&amp;&amp;(t[0][0]=&quot;M&quot;),e[w]=t,y(),x())}}()}}function I(t,r){!function(t,r){if(e.length)for(var n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)for(var a=0;a+2&lt;e[n][i].length;a+=2)e[n][i][a+1]=k[n][i][a+1]+t,e[n][i][a+2]=k[n][i][a+2]+r}(t,r),y()}function O(t){(w=+t.srcElement.getAttribute(&quot;data-i&quot;))||(w=0),_[w].moveFn=I}function z(){x()}}},{&quot;../../../plots/cartesian/handle_outline&quot;:865,&quot;../../../registry&quot;:931,&quot;../../dragelement&quot;:685,&quot;../../dragelement/helpers&quot;:684,&quot;./constants&quot;:752,&quot;./helpers&quot;:755,&quot;./newshapes&quot;:756}],755:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;./constants&quot;),a=i.CIRCLE_SIDES,o=i.SQRT2,s=t(&quot;../../../plots/cartesian/helpers&quot;),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function h(t,e){return Math.abs(t-e)&lt;=1e-6}function p(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(t){var e=t.length;if(!e)return&quot;M0,0Z&quot;;for(var r=&quot;&quot;,n=0;n&lt;e;n++)for(var i=t[n].length,a=0;a&lt;i;a++){var o=t[n][a][0];if(&quot;Z&quot;===o)r+=&quot;Z&quot;;else for(var s=t[n][a].length,l=0;l&lt;s;l++){var c=l;&quot;Q&quot;===o||&quot;S&quot;===o?c=f[l]:&quot;C&quot;===o&amp;&amp;(c=u[l]),r+=t[n][a][c],l&gt;0&amp;&amp;l&lt;s-1&amp;&amp;(r+=&quot;,&quot;)}}return r},r.readPaths=function(t,e,r,i){var o,s,u,f=n(t),h=[],p=-1,d=0,g=0,m=function(){s=d,u=g};m();for(var v=0;v&lt;f.length;v++){var y,x,b,_,w=[],T=f[v][0],k=T;switch(T){case&quot;M&quot;:p++,h[p]=[],d=+f[v][1],g=+f[v][2],w.push([k,d,g]),m();break;case&quot;Q&quot;:case&quot;S&quot;:y=+f[v][1],b=+f[v][2],d=+f[v][3],g=+f[v][4],w.push([k,d,g,y,b]);break;case&quot;C&quot;:y=+f[v][1],b=+f[v][2],x=+f[v][3],_=+f[v][4],d=+f[v][5],g=+f[v][6],w.push([k,d,g,y,b,x,_]);break;case&quot;T&quot;:case&quot;L&quot;:d=+f[v][1],g=+f[v][2],w.push([k,d,g]);break;case&quot;H&quot;:k=&quot;L&quot;,d=+f[v][1],w.push([k,d,g]);break;case&quot;V&quot;:k=&quot;L&quot;,g=+f[v][1],w.push([k,d,g]);break;case&quot;A&quot;:k=&quot;L&quot;;var A=+f[v][1],M=+f[v][2];+f[v][4]||(A=-A,M=-M);var S=d-A,E=g;for(o=1;o&lt;=a/2;o++){var L=2*Math.PI*o/a;w.push([k,S+A*Math.cos(L),E+M*Math.sin(L)])}break;case&quot;Z&quot;:d===s&amp;&amp;g===u||(d=s,g=u,w.push([k,d,g]))}for(var C=(r||{}).domain,P=e._fullLayout._size,I=r&amp;&amp;&quot;pixel&quot;===r.xsizemode,O=r&amp;&amp;&quot;pixel&quot;===r.ysizemode,z=!1===i,D=0;D&lt;w.length;D++){for(o=0;o+2&lt;7;o+=2){var R=w[D][o+1],F=w[D][o+2];void 0!==R&amp;&amp;void 0!==F&amp;&amp;(d=R,g=F,r&amp;&amp;(r.xaxis&amp;&amp;r.xaxis.p2r?(z&amp;&amp;(R-=r.xaxis._offset),R=I?c(r.xaxis,r.xanchor)+R:l(r.xaxis,R)):(z&amp;&amp;(R-=P.l),C?R=C.x[0]+R/P.w:R/=P.w),r.yaxis&amp;&amp;r.yaxis.p2r?(z&amp;&amp;(F-=r.yaxis._offset),F=O?c(r.yaxis,r.yanchor)-F:l(r.yaxis,F)):(z&amp;&amp;(F-=P.t),F=C?C.y[1]-F/P.h:1-F/P.h)),w[D][o+1]=R,w[D][o+2]=F)}h[p].push(w[D].slice())}}return h},r.pointsShapeRectangle=function(t){if(5!==t.length)return!1;for(var e=1;e&lt;3;e++){if(!h(t[0][e]-t[1][e],t[3][e]-t[2][e]))return!1;if(!h(t[0][e]-t[3][e],t[1][e]-t[2][e]))return!1}return!(!h(t[0][1],t[1][1])&amp;&amp;!h(t[0][1],t[3][1]))&amp;&amp;!!(p(t[0],t[1])*p(t[0],t[3]))},r.pointsShapeEllipse=function(t){var e=t.length;if(e!==a+1)return!1;e=a;for(var r=0;r&lt;e;r++){var n=(2*e-r)%e,i=(e/2+n)%e,o=(e/2+r)%e;if(!h(p(t[r],t[o]),p(t[n],t[i])))return!1}return!0},r.handleEllipse=function(t,e,n){if(!t)return[e,n];var i=r.ellipseOver({x0:e[0],y0:e[1],x1:n[0],y1:n[1]}),s=(i.x1+i.x0)/2,l=(i.y1+i.y0)/2,c=(i.x1-i.x0)/2,u=(i.y1-i.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],h=0;h&lt;a;h++){var p=2*h*Math.PI/a;f.push([s+c*Math.cos(p),l+u*Math.sin(p)])}return f},r.ellipseOver=function(t){var e=t.x0,r=t.y0,n=t.x1,i=t.y1,a=n-e,s=i-r,l=((e-=a)+n)/2,c=((r-=s)+i)/2;return{x0:l-(a*=o),y0:c-(s*=o),x1:l+a,y1:c+s}}},{&quot;../../../plots/cartesian/helpers&quot;:866,&quot;./constants&quot;:752,&quot;parse-svg-path&quot;:493}],756:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement/helpers&quot;),i=n.drawMode,a=n.openMode,o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=o.cos45,h=o.sin45,p=t(&quot;../../../plots/cartesian/helpers&quot;),d=p.p2r,g=p.r2p,m=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearSelect,v=t(&quot;./helpers&quot;),y=v.readPaths,x=v.writePaths,b=v.ellipseOver;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var n=r.getAttribute(&quot;d&quot;),o=e.gd,p=o._fullLayout.newshape,v=e.plotinfo,_=v.xaxis,w=v.yaxis,T=!!v.domain||!v.xaxis,k=!!v.domain||!v.yaxis,A=e.isActiveShape,M=e.dragmode,S=(o.layout||{}).shapes||[];if(!i(M)&amp;&amp;void 0!==A){var E=o._fullLayout._activeShapeIndex;if(E&lt;S.length)switch(o._fullLayout.shapes[E].type){case&quot;rect&quot;:M=&quot;drawrect&quot;;break;case&quot;circle&quot;:M=&quot;drawcircle&quot;;break;case&quot;line&quot;:M=&quot;drawline&quot;;break;case&quot;path&quot;:var L=S[E].path||&quot;&quot;;M=&quot;Z&quot;===L[L.length-1]?&quot;drawclosedpath&quot;:&quot;drawopenpath&quot;}}var C,P=a(M),I=y(n,o,v,A),O={editable:!0,xref:T?&quot;paper&quot;:_._id,yref:k?&quot;paper&quot;:w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(P||(O.fillcolor=p.fillcolor,O.fillrule=p.fillrule),1===I.length&amp;&amp;(C=I[0]),C&amp;&amp;&quot;drawrect&quot;===M)O.type=&quot;rect&quot;,O.x0=C[0][1],O.y0=C[0][2],O.x1=C[2][1],O.y1=C[2][2];else if(C&amp;&amp;&quot;drawline&quot;===M)O.type=&quot;line&quot;,O.x0=C[0][1],O.y0=C[0][2],O.x1=C[1][1],O.y1=C[1][2];else if(C&amp;&amp;&quot;drawcircle&quot;===M){O.type=&quot;circle&quot;;var z=C[s][1],D=C[l][1],R=C[c][1],F=C[u][1],B=C[s][2],N=C[l][2],j=C[c][2],U=C[u][2],V=v.xaxis&amp;&amp;(&quot;date&quot;===v.xaxis.type||&quot;log&quot;===v.xaxis.type),q=v.yaxis&amp;&amp;(&quot;date&quot;===v.yaxis.type||&quot;log&quot;===v.yaxis.type);V&amp;&amp;(z=g(v.xaxis,z),D=g(v.xaxis,D),R=g(v.xaxis,R),F=g(v.xaxis,F)),q&amp;&amp;(B=g(v.yaxis,B),N=g(v.yaxis,N),j=g(v.yaxis,j),U=g(v.yaxis,U));var H=(D+F)/2,G=(B+j)/2,Y=b({x0:H,y0:G,x1:H+(F-D+R-z)/2*f,y1:G+(U-N+j-B)/2*h});V&amp;&amp;(Y.x0=d(v.xaxis,Y.x0),Y.x1=d(v.xaxis,Y.x1)),q&amp;&amp;(Y.y0=d(v.yaxis,Y.y0),Y.y1=d(v.yaxis,Y.y1)),O.x0=Y.x0,O.y0=Y.y0,O.x1=Y.x1,O.y1=Y.y1}else O.type=&quot;path&quot;,_&amp;&amp;w&amp;&amp;function(t,e,r){var n=&quot;date&quot;===e.type,i=&quot;date&quot;===r.type;if(!n&amp;&amp;!i)return t;for(var a=0;a&lt;t.length;a++)for(var o=0;o&lt;t[a].length;o++)for(var s=0;s+2&lt;t[a][o].length;s+=2)n&amp;&amp;(t[a][o][s+1]=t[a][o][s+1].replace(&quot; &quot;,&quot;_&quot;)),i&amp;&amp;(t[a][o][s+2]=t[a][o][s+2].replace(&quot; &quot;,&quot;_&quot;))}(I,_,w),O.path=x(I),C=null;m(o);for(var W=e.editHelpers,X=(W||{}).modifyItem,Z=[],J=0;J&lt;S.length;J++){var K=o._fullLayout.shapes[J];if(Z[J]=K._input,void 0!==A&amp;&amp;J===o._fullLayout._activeShapeIndex){var Q=O;switch(K.type){case&quot;line&quot;:case&quot;rect&quot;:case&quot;circle&quot;:X(&quot;x0&quot;,Q.x0),X(&quot;x1&quot;,Q.x1),X(&quot;y0&quot;,Q.y0),X(&quot;y1&quot;,Q.y1);break;case&quot;path&quot;:X(&quot;path&quot;,Q.path)}}}return void 0===A?(Z.push(O),Z):W?W.getUpdateObj():{}}}}},{&quot;../../../plots/cartesian/handle_outline&quot;:865,&quot;../../../plots/cartesian/helpers&quot;:866,&quot;../../dragelement/helpers&quot;:684,&quot;./constants&quot;:752,&quot;./helpers&quot;:755}],757:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib&quot;);r.rangeToShapePosition=function(t){return&quot;log&quot;===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return&quot;log&quot;===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&amp;&amp;(e=e.replace(&quot;_&quot;,&quot; &quot;)),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(&quot; &quot;,&quot;_&quot;)}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach((function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length&lt;a||r.push(i.cleanNumber(o[a]))}})),r},r.getDataToPixel=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){return e._length*(n?1-t:t)+e._offset};else{var s=r.shapePositionToRange(e);a=function(t){return e._offset+e.r2p(s(t,!0))},&quot;date&quot;===e.type&amp;&amp;(a=r.decodeDate(a))}else a=n?function(t){return o.t+o.h*(1-t)}:function(t){return o.l+o.w*t};return a},r.getPixelToData=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){var r=(t-e._offset)/e._length;return n?1-r:r};else{var s=r.rangeToShapePosition(e);a=function(t){return s(e.p2r(t-e._offset))}}else a=n?function(t){return 1-(t-o.t)/o.h}:function(t){return(t-o.l)/o.w};return a},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n},r.makeOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.shapes[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&amp;&amp;&quot;paper&quot;!==r.xref&amp;&amp;(n.xaxis=t._fullLayout[r.xref+&quot;axis&quot;]),r.yref&amp;&amp;&quot;paper&quot;!==r.yref&amp;&amp;(n.yaxis=t._fullLayout[r.yref+&quot;axis&quot;])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},{&quot;../../lib&quot;:803,&quot;./constants&quot;:748}],758:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;shapes&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),supplyDrawNewShapeDefaults:t(&quot;./draw_newshape/defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;shapes&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne}},{&quot;../../plots/cartesian/include_components&quot;:867,&quot;./attributes&quot;:746,&quot;./calc_autorange&quot;:747,&quot;./defaults&quot;:749,&quot;./draw&quot;:750,&quot;./draw_newshape/defaults&quot;:753}],759:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/pad_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendDeepAll,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/animation_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;./constants&quot;),u=l(&quot;step&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;},value:{valType:&quot;string&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;slider&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},active:{valType:&quot;number&quot;,min:0,dflt:0},steps:u,lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},pad:a(i({editType:&quot;arraydraw&quot;}),{},{t:{dflt:20}}),xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:150},easing:{valType:&quot;enumerated&quot;,values:s.transition.easing.values,dflt:&quot;cubic-in-out&quot;}},currentvalue:{visible:{valType:&quot;boolean&quot;,dflt:!0},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},offset:{valType:&quot;number&quot;,dflt:10},prefix:{valType:&quot;string&quot;},suffix:{valType:&quot;string&quot;},font:n({})},font:n({}),activebgcolor:{valType:&quot;color&quot;,dflt:c.gripBgActiveColor},bgcolor:{valType:&quot;color&quot;,dflt:c.railBgColor},bordercolor:{valType:&quot;color&quot;,dflt:c.railBorderColor},borderwidth:{valType:&quot;number&quot;,min:0,dflt:c.railBorderWidth},ticklen:{valType:&quot;number&quot;,min:0,dflt:c.tickLength},tickcolor:{valType:&quot;color&quot;,dflt:c.tickColor},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1},minorticklen:{valType:&quot;number&quot;,min:0,dflt:c.minorTickLength}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/animation_attributes&quot;:848,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/pad_attributes&quot;:916,&quot;./constants&quot;:760}],760:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;sliders&quot;,containerClassName:&quot;slider-container&quot;,groupClassName:&quot;slider-group&quot;,inputAreaClass:&quot;slider-input-area&quot;,railRectClass:&quot;slider-rail-rect&quot;,railTouchRectClass:&quot;slider-rail-touch-rect&quot;,gripRectClass:&quot;slider-grip-rect&quot;,tickRectClass:&quot;slider-tick-rect&quot;,inputProxyClass:&quot;slider-input-proxy&quot;,labelsClass:&quot;slider-labels&quot;,labelGroupClass:&quot;slider-label-group&quot;,labelClass:&quot;slider-label&quot;,currentValueClass:&quot;slider-current-value&quot;,railHeight:5,menuIndexAttrName:&quot;slider-active-index&quot;,autoMarginIdRoot:&quot;slider-&quot;,minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:&quot;#bec8d9&quot;,railBgColor:&quot;#f8fafc&quot;,railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:&quot;#bec8d9&quot;,gripBgColor:&quot;#f6f8fa&quot;,gripBgActiveColor:&quot;#dbdde0&quot;,labelPadding:8,labelOffset:0,tickWidth:1,tickColor:&quot;#333&quot;,tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:&quot;#333&quot;,minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],761:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:&quot;steps&quot;,handleItemDefaults:c}),l=0,u=0;u&lt;s.length;u++)s[u].visible&amp;&amp;l++;if(l&lt;2?e.visible=!1:o(&quot;visible&quot;)){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(&quot;active&quot;)]||{}).visible||(e.active=f[0]._index),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;len&quot;),o(&quot;lenmode&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;currentvalue.visible&quot;)&amp;&amp;(o(&quot;currentvalue.xanchor&quot;),o(&quot;currentvalue.prefix&quot;),o(&quot;currentvalue.suffix&quot;),o(&quot;currentvalue.offset&quot;),n.coerceFont(o,&quot;currentvalue.font&quot;,e.font)),o(&quot;transition.duration&quot;),o(&quot;transition.easing&quot;),o(&quot;bgcolor&quot;),o(&quot;activebgcolor&quot;),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;),o(&quot;ticklen&quot;),o(&quot;tickwidth&quot;),o(&quot;tickcolor&quot;),o(&quot;minorticklen&quot;)}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(&quot;skip&quot;===t.method||Array.isArray(t.args)?r(&quot;visible&quot;):e.visible=!1){r(&quot;method&quot;),r(&quot;args&quot;);var i=r(&quot;label&quot;,&quot;step-&quot;+e._index);r(&quot;value&quot;,i),r(&quot;execute&quot;)}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;./attributes&quot;:759,&quot;./constants&quot;:760}],762:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,f=t(&quot;./constants&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR;function m(t){return f.autoMarginIdRoot+t._index}function v(t){return t._index}function y(t,e){var r=o.tester.selectAll(&quot;g.&quot;+f.labelGroupClass).data(e._visibleSteps);r.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0);var a=0,l=0;r.each((function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);l=Math.max(l,i.height),a=Math.max(a,i.width)}})),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),&quot;fraction&quot;===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),v=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/p)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(&quot;g&quot;);r.each((function(t){var r=x(y,e,t.label),n=r.node()&amp;&amp;o.bBox(r.node())||{width:0,height:0},i=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)})),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(u.lx-=u.outerLength,b=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(u.lx-=u.outerLength/2,b=&quot;center&quot;);var w=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(u.ly-=u.height,w=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(u.ly-=u.height/2,w=&quot;middle&quot;),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var T={y:e.y,b:u.height*g[w],t:u.height*d[w]};&quot;fraction&quot;===e.lenmode?(T.l=0,T.xl=e.x-e.len*d[b],T.r=0,T.xr=e.x+e.len*g[b]):(T.x=e.x,T.l=u.outerLength*d[b],T.r=u.outerLength*g[b]),i.autoMargin(t,m(e),T)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case&quot;right&quot;:n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=&quot;left&quot;;break;case&quot;center&quot;:n=.5*a.inputAreaLength,i=&quot;middle&quot;;break;default:n=f.currentValueInset,i=&quot;left&quot;}var l=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:i,&quot;data-notex&quot;:1})})),u=e.currentvalue.prefix?e.currentvalue.prefix:&quot;&quot;;if(&quot;string&quot;==typeof r)u+=r;else{var h=e.steps[e.active].label,d=e._gd._fullLayout._meta;d&amp;&amp;(h=s.templateString(h,d)),u+=h}e.currentvalue.suffix&amp;&amp;(u+=e.currentvalue.suffix),l.call(o.font,e.currentvalue.font).text(u).call(c.convertToTspans,e._gd);var g=c.lineCount(l),m=(a.currentValueMaxLines+1-g)*e.currentvalue.font.size*p;return c.positionText(l,n,m),l}}function b(t,e,r){s.ensureSingle(t,&quot;rect&quot;,f.gripRectClass,(function(n){n.call(A,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(&quot;stroke-width&quot;,r.borderwidth+&quot;px&quot;)}function _(t,e,r){var n=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1})})),i=e.step.label,a=r._gd._fullLayout._meta;return a&amp;&amp;(i=s.templateString(i,a)),n.call(o.font,r.font).text(i).call(c.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,&quot;g&quot;,f.labelsClass),i=e._dims,a=r.selectAll(&quot;g.&quot;+f.labelGroupClass).data(i.labelSteps);a.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0),a.exit().remove(),a.each((function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)}))}function T(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&amp;&amp;k(t,e,r,o,!0,i)}function k(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(&quot;active&quot;,n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(&quot;plotly_sliderchange&quot;,{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&amp;&amp;l.method&amp;&amp;a&amp;&amp;(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&amp;&amp;(r.execute&amp;&amp;i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function A(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}function l(){var t=s();e.emit(&quot;plotly_sliderstart&quot;,{slider:t});var l=r.select(&quot;.&quot;+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=L(t,n.mouse(i)[0]);function u(){var t=s(),a=L(t,n.mouse(i)[0]);T(e,r,t,a,!1)}function h(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(&quot;mouseup&quot;,null),o.on(&quot;mousemove&quot;,null),o.on(&quot;touchend&quot;,null),o.on(&quot;touchmove&quot;,null),e.emit(&quot;plotly_sliderend&quot;,{slider:t,step:t.steps[t.active]})}T(e,r,t,c,!0),t._dragging=!0,o.on(&quot;mousemove&quot;,u),o.on(&quot;touchmove&quot;,u),o.on(&quot;mouseup&quot;,h),o.on(&quot;touchend&quot;,h)}t.on(&quot;mousedown&quot;,l),t.on(&quot;touchstart&quot;,l)}function M(t,e){var r=t.selectAll(&quot;rect.&quot;+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(&quot;rect&quot;).classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+&quot;px&quot;,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}),r.each((function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)}))}function S(t,e,r){for(var n=t.select(&quot;rect.&quot;+f.gripRectClass),i=0,a=0;a&lt;e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&amp;&amp;e.transition.duration&gt;0&amp;&amp;(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(&quot;transform&quot;,l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function L(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function C(t,e,r){var n=r._dims,i=s.ensureSingle(t,&quot;rect&quot;,f.railTouchRectClass,(function(n){n.call(A,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(&quot;opacity&quot;,0),o.setTranslate(i,0,n.currentValueTotalHeight)}function P(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,&quot;rect&quot;,f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i&lt;r.length;i++){var a=r[i];a.visible&amp;&amp;(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);function s(e){e._commandObserver&amp;&amp;(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,m(e))}if(a.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;ew-resize&quot;),a.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll(&quot;g.&quot;+f.groupClassName).data(r,v);l.enter().append(&quot;g&quot;).classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c&lt;r.length;c++){var u=r[c];y(t,u)}l.each((function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n&lt;r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,(function(e){var n=r.data()[0];n.active!==e.index&amp;&amp;(n._dragging||k(t,r,n,e.index,!1,!0))})),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(P,r).call(w,r).call(M,r).call(C,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)}))}}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/plots&quot;:917,&quot;../color&quot;:666,&quot;../drawing&quot;:688,&quot;./constants&quot;:760,&quot;@plotly/d3&quot;:58}],763:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);e.exports={moduleType:&quot;component&quot;,name:n.name,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:759,&quot;./constants&quot;:760,&quot;./defaults&quot;:761,&quot;./draw&quot;:762}],764:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/interactions&quot;),p=t(&quot;../../constants/alignment&quot;).OPPOSITE_SIDE,d=/ [XY][0-9]* /;e.exports={draw:function(t,e,r){var g,m=r.propContainer,v=r.propName,y=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,T=r.containerGroup,k=t._fullLayout,A=1,M=!1,S=m.title,E=(S&amp;&amp;S.text?S.text:&quot;&quot;).trim(),L=S&amp;&amp;S.font?S.font:{},C=L.family,P=L.size,I=L.color;&quot;title.text&quot;===v?g=&quot;titleText&quot;:-1!==v.indexOf(&quot;axis&quot;)?g=&quot;axisTitleText&quot;:v.indexOf(!0)&amp;&amp;(g=&quot;colorbarTitleText&quot;);var O=t._context.edits[g];&quot;&quot;===E?A=0:E.replace(d,&quot; % &quot;)===y.replace(d,&quot; % &quot;)&amp;&amp;(A=.2,M=!0,O||(E=&quot;&quot;)),r._meta?E=s.templateString(E,r._meta):k._meta&amp;&amp;(E=s.templateString(E,k._meta));var z=E||O;T||(T=s.ensureSingle(k._infolayer,&quot;g&quot;,&quot;g-&quot;+e));var D=T.selectAll(&quot;text&quot;).data(z?[0]:[]);if(D.enter().append(&quot;text&quot;),D.text(E).attr(&quot;class&quot;,e),D.exit().remove(),!z)return T;function R(t){s.syncOrAsync([F,B],t)}function F(e){var r;return w?(r=&quot;&quot;,w.rotate&amp;&amp;(r+=&quot;rotate(&quot;+[w.rotate,_.x,_.y]+&quot;)&quot;),w.offset&amp;&amp;(r+=l(0,w.offset))):r=null,e.attr(&quot;transform&quot;,r),e.style({&quot;font-family&quot;:C,&quot;font-size&quot;:n.round(P,2)+&quot;px&quot;,fill:u.rgb(I),opacity:A*u.opacity(I),&quot;font-weight&quot;:a.fontWeight}).attr(_).call(f.convertToTspans,t),a.previousPromises(t)}function B(t){var e=n.select(t.node().parentNode);if(b&amp;&amp;b.selection&amp;&amp;b.side&amp;&amp;E){e.attr(&quot;transform&quot;,null);var r=p[b.side],a=&quot;left&quot;===b.side||&quot;top&quot;===b.side?-1:1,o=i(b.pad)?b.pad:2,u=c.bBox(e.node()),f={left:0,top:0,right:k.width,bottom:k.height},h=b.maxShift||a*(f[b.side]-u[b.side]),d=0;if(h&lt;0)d=h;else{var g=b.offsetLeft||0,m=b.offsetTop||0;u.left-=g,u.right-=g,u.top-=m,u.bottom-=m,b.selection.each((function(){var t=c.bBox(this);s.bBoxIntersect(u,t,o)&amp;&amp;(d=Math.max(d,a*(t[b.side]-u[r])+o))})),d=Math.min(h,d)}if(d&gt;0||h&lt;0){var v={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];e.attr(&quot;transform&quot;,l(v[0],v[1]))}}}return D.call(R),O&amp;&amp;(E?D.on(&quot;.opacity&quot;,null):(A=0,M=!0,D.text(y).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(&quot;opacity&quot;,0)}))),D.call(f.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){void 0!==x?o.call(&quot;_guiRestyle&quot;,t,v,e,x):o.call(&quot;_guiRelayout&quot;,t,v,e)})).on(&quot;cancel&quot;,(function(){this.text(this.attr(&quot;data-unformatted&quot;)).call(R)})).on(&quot;input&quot;,(function(t){this.text(t||&quot; &quot;).call(f.positionText,_.x,_.y)}))),D.classed(&quot;js-placeholder&quot;,M),T}}},{&quot;../../constants/alignment&quot;:771,&quot;../../constants/interactions&quot;:778,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;../color&quot;:666,&quot;../drawing&quot;:688,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],765:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/pad_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=l(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},args2:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;,dflt:&quot;&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;updatemenu&quot;,{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:&quot;boolean&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;dropdown&quot;,&quot;buttons&quot;],dflt:&quot;dropdown&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;up&quot;,&quot;down&quot;],dflt:&quot;down&quot;},active:{valType:&quot;integer&quot;,min:-1,dflt:0},showactive:{valType:&quot;boolean&quot;,dflt:!0},buttons:c,x:{valType:&quot;number&quot;,min:-2,max:3,dflt:-.05},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;right&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:1},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},pad:a(s({editType:&quot;arraydraw&quot;}),{}),font:n({}),bgcolor:{valType:&quot;color&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.borderLine},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;arraydraw&quot;}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/pad_attributes&quot;:916,&quot;../color/attributes&quot;:665}],766:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;updatemenus&quot;,containerClassName:&quot;updatemenu-container&quot;,headerGroupClassName:&quot;updatemenu-header-group&quot;,headerClassName:&quot;updatemenu-header&quot;,headerArrowClassName:&quot;updatemenu-header-arrow&quot;,dropdownButtonGroupClassName:&quot;updatemenu-dropdown-button-group&quot;,dropdownButtonClassName:&quot;updatemenu-dropdown-button&quot;,buttonClassName:&quot;updatemenu-button&quot;,itemRectClassName:&quot;updatemenu-item-rect&quot;,itemTextClassName:&quot;updatemenu-item-text&quot;,menuIndexAttrName:&quot;updatemenu-active-index&quot;,autoMarginIdRoot:&quot;updatemenu-&quot;,blankHeaderOpts:{label:&quot;  &quot;},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:&quot;#F4FAFF&quot;,hoverColor:&quot;#F4FAFF&quot;,arrowSymbol:{left:&quot;\u25c4&quot;,right:&quot;\u25ba&quot;,up:&quot;\u25b2&quot;,down:&quot;\u25bc&quot;}}},{}],767:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(&quot;visible&quot;,i(t,e,{name:&quot;buttons&quot;,handleItemDefaults:c}).length&gt;0)&amp;&amp;(o(&quot;active&quot;),o(&quot;direction&quot;),o(&quot;type&quot;),o(&quot;showactive&quot;),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;bgcolor&quot;,r.paper_bgcolor),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(&quot;visible&quot;,&quot;skip&quot;===t.method||Array.isArray(t.args))&amp;&amp;(r(&quot;method&quot;),r(&quot;args&quot;),r(&quot;args2&quot;),r(&quot;label&quot;),r(&quot;execute&quot;))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;./attributes&quot;:765,&quot;./constants&quot;:766}],768:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,u=t(&quot;../../constants/alignment&quot;).LINE_SPACING,f=t(&quot;./constants&quot;),h=t(&quot;./scrollbox&quot;);function p(t){return t._index}function d(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function g(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate(&quot;active&quot;,o),&quot;buttons&quot;===e.type?v(t,n,null,null,e):&quot;dropdown&quot;===e.type&amp;&amp;(i.attr(f.menuIndexAttrName,&quot;-1&quot;),m(t,n,i,a,e),s||v(t,n,i,a,e))}function m(t,e,r,n,i){var a=s.ensureSingle(e,&quot;g&quot;,f.headerClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,h={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,t).call(M,i,h,p),s.ensureSingle(e,&quot;text&quot;,f.headerArrowClassName,(function(t){t.attr(&quot;text-anchor&quot;,&quot;end&quot;).call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on(&quot;click&quot;,(function(){r.call(S,String(d(r,i)?-1:i._index)),v(t,e,r,n,i)})),a.on(&quot;mouseover&quot;,(function(){a.call(w)})),a.on(&quot;mouseout&quot;,(function(){a.call(T,i)})),o.setTranslate(e,l.lx,l.ly)}function v(t,e,r,a,o){r||(r=e).attr(&quot;pointer-events&quot;,&quot;all&quot;);var l=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&amp;&amp;&quot;buttons&quot;!==o.type?[]:o.buttons,c=&quot;dropdown&quot;===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll(&quot;g.&quot;+c).data(s.filterVisible(l)),h=u.enter().append(&quot;g&quot;).classed(c,!0),p=u.exit();&quot;dropdown&quot;===o.type?(h.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;),p.transition().attr(&quot;opacity&quot;,&quot;0&quot;).remove()):p.remove();var d=0,m=0,v=o._dims,x=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(o.direction);&quot;dropdown&quot;===o.type&amp;&amp;(x?m=v.headerHeight+f.gapButtonHeader:d=v.headerWidth+f.gapButtonHeader),&quot;dropdown&quot;===o.type&amp;&amp;&quot;up&quot;===o.direction&amp;&amp;(m=-f.gapButtonHeader+f.gapButton-v.openHeight),&quot;dropdown&quot;===o.type&amp;&amp;&quot;left&quot;===o.direction&amp;&amp;(d=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+d+o.pad.l,y:v.ly+m+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,t).call(M,o,b),c.on(&quot;click&quot;,(function(){n.event.defaultPrevented||(s.execute&amp;&amp;(s.args2&amp;&amp;o.active===l?(g(t,o,0,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(g(t,o,0,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit(&quot;plotly_buttonclicked&quot;,{menu:o,button:s,active:o.active}))})),c.on(&quot;mouseover&quot;,(function(){c.call(w)})),c.on(&quot;mouseout&quot;,(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&amp;&amp;(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=&quot;up&quot;===c||&quot;down&quot;===c,h=i._dims,p=i.active;if(u)for(s=0,l=0;l&lt;p;l++)s+=h.heights[l]+f.gapButton;else for(o=0,l=0;l&lt;p;l++)o+=h.widths[l]+f.gapButton;n.enable(a,o,s),n.hbar&amp;&amp;n.hbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;);n.vbar&amp;&amp;n.vbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;)}(0,0,0,a,o,k):function(t){var e=!!t.hbar,r=!!t.vbar;e&amp;&amp;t.hbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){e=!1,r||t.disable()}));r&amp;&amp;t.vbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){r=!1,e||t.disable()}))}(a))}function y(t,e,r,n){t.call(x,e).call(b,e,r,n)}function x(t,e){s.ensureSingle(t,&quot;rect&quot;,f.itemRectClassName,(function(t){t.attr({rx:f.rx,ry:f.ry,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){var i=s.ensureSingle(t,&quot;text&quot;,f.itemTextClassName,(function(t){t.attr({&quot;text-anchor&quot;:&quot;start&quot;,&quot;data-notex&quot;:1})})),a=r.label,c=n._fullLayout._meta;c&amp;&amp;(a=s.templateString(a,c)),i.call(o.font,e.font).text(a).call(l.convertToTspans,n)}function _(t,e){var r=e.active;t.each((function(t,i){var o=n.select(this);i===r&amp;&amp;e.showactive&amp;&amp;o.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.activeColor)}))}function w(t){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.hoverColor)}function T(t,e){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,e.bgcolor)}function k(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(&quot;g.&quot;+f.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(&quot;g&quot;).classed(f.dropdownButtonClassName,!0);var c=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction);a.each((function(i,a){var s=n.select(this);s.call(y,e,i,t);var h=s.select(&quot;.&quot;+f.itemTextClassName),p=h.node()&amp;&amp;o.bBox(h.node()).width,d=Math.max(p+f.textPadX,f.minWidth),g=e.font.size*u,m=l.lineCount(h),v=Math.max(g*m,f.minHeight)+f.textOffsetY;v=Math.ceil(v),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=v,r.height1=Math.max(r.height1,v),r.width1=Math.max(r.width1,d),c?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=v+f.gapButton,r.openHeight+=v+f.gapButton):(r.totalWidth+=d+f.gapButton,r.openWidth+=d+f.gapButton,r.totalHeight=Math.max(r.totalHeight,v),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,&quot;dropdown&quot;===e.type&amp;&amp;(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),a.remove();var h=r.totalWidth+e.pad.l+e.pad.r,p=r.totalHeight+e.pad.t+e.pad.b,d=t._fullLayout._size;r.lx=d.l+d.w*e.x,r.ly=d.t+d.h*(1-e.y);var g=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(r.lx-=h,g=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(r.lx-=h/2,g=&quot;center&quot;);var m=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(r.ly-=p,m=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(r.ly-=p/2,m=&quot;middle&quot;),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,A(e),{x:e.x,y:e.y,l:h*({right:1,center:.5}[g]||0),r:h*({left:1,center:.5}[g]||0),b:p*({top:1,middle:.5}[m]||0),t:p*({bottom:1,middle:.5}[m]||0)})}function A(t){return f.autoMarginIdRoot+t._index}function M(t,e,r,n){n=n||{};var i=t.select(&quot;.&quot;+f.itemRectClassName),a=t.select(&quot;.&quot;+f.itemTextClassName),s=e.borderwidth,c=r.index,h=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction),d=n.height||(p?h.heights[c]:h.height1);i.attr({x:0,y:0,width:n.width||(p?h.width1:h.widths[c]),height:d});var g=e.font.size*u,m=(l.lineCount(a)-1)*g/2;l.positionText(a,f.textOffsetX,d/2-m+f.textOffsetY),p?r.y+=h.heights[c]+r.yPad:r.x+=h.widths[c]+r.xPad,r.index++}function S(t,e){t.attr(f.menuIndexAttrName,e||&quot;-1&quot;).selectAll(&quot;g.&quot;+f.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[f.name]);function a(e){i.autoMargin(t,A(e))}var o=e._menulayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);if(o.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;pointer&quot;),o.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll(&quot;g.&quot;+f.headerGroupClassName).data(r,p);l.enter().append(&quot;g&quot;).classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,&quot;g&quot;,f.dropdownButtonGroupClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),u=0;u&lt;r.length;u++){var y=r[u];k(t,y)}var x=&quot;updatemenus&quot;+e._uid,b=new h(t,c,x);l.enter().size()&amp;&amp;(c.node().parentNode.appendChild(c.node()),c.call(S)),l.exit().each((function(t){c.call(S),a(t)})).remove(),l.each((function(e){var r=n.select(this),a=&quot;dropdown&quot;===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,(function(n){g(t,e,e.buttons[n.index],r,a,b,n.index,!0)})),&quot;dropdown&quot;===e.type?(m(t,r,c,b,e),d(c,e)&amp;&amp;v(t,r,c,b,e)):v(t,r,null,null,e)}))}}},{&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/plots&quot;:917,&quot;../color&quot;:666,&quot;../drawing&quot;:688,&quot;./constants&quot;:766,&quot;./scrollbox&quot;:770,&quot;@plotly/d3&quot;:58}],769:[function(t,e,r){arguments[4][763][0].apply(r,arguments)},{&quot;./attributes&quot;:765,&quot;./constants&quot;:766,&quot;./defaults&quot;:767,&quot;./draw&quot;:768,dup:763}],770:[function(t,e,r){&quot;use strict&quot;;e.exports=s;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../lib&quot;);function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(&quot;rect.scrollbox-bg&quot;).data([0]),this.bg.exit().on(&quot;.drag&quot;,null).on(&quot;wheel&quot;,null).remove(),this.bg.enter().append(&quot;rect&quot;).classed(&quot;scrollbox-bg&quot;,!0).style(&quot;pointer-events&quot;,&quot;all&quot;).attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=&quot;#808BA4&quot;,s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,g=this.position.w,m=this.position.t,v=this.position.h,y=this.position.direction,x=&quot;down&quot;===y,b=&quot;left&quot;===y,_=&quot;up&quot;===y,w=g,T=v;x||b||&quot;right&quot;===y||_||(this.position.direction=&quot;down&quot;,x=!0),x||_?(f=(u=d)+w,x?(h=m,T=(p=Math.min(h+T,c))-h):T=(p=m+T)-(h=Math.max(p-T,0))):(p=(h=m)+T,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:T};var k=g&gt;w,A=s.barLength+2*s.barPad,M=s.barWidth+2*s.barPad,S=d,E=m+v;E+M&gt;c&amp;&amp;(E=c-M);var L=this.container.selectAll(&quot;rect.scrollbar-horizontal&quot;).data(k?[0]:[]);L.exit().on(&quot;.drag&quot;,null).remove(),L.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-horizontal&quot;,!0).call(i.fill,s.barColor),k?(this.hbar=L.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:A,height:M}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var C=v&gt;T,P=s.barWidth+2*s.barPad,I=s.barLength+2*s.barPad,O=d+g,z=m;O+P&gt;l&amp;&amp;(O=l-P);var D=this.container.selectAll(&quot;rect.scrollbar-vertical&quot;).data(C?[0]:[]);D.exit().on(&quot;.drag&quot;,null).remove(),D.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-vertical&quot;,!0).call(i.fill,s.barColor),C?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:O,y:z,width:P,height:I}),this._vbarYMin=z+I/2,this._vbarTranslateMax=T-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,B=C?f+P+.5:f+.5,N=h-.5,j=k?p+M+.5:p+.5,U=o._topdefs.selectAll(&quot;#&quot;+R).data(k||C?[0]:[]);if(U.exit().remove(),U.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,R).append(&quot;rect&quot;),k||C?(this._clipRect=U.select(&quot;rect&quot;).attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:d,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),k||C){var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault()})).on(&quot;drag&quot;,this._onBoxDrag.bind(this));this.container.on(&quot;wheel&quot;,null).on(&quot;wheel&quot;,this._onBoxWheel.bind(this)).on(&quot;.drag&quot;,null).call(V);var q=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on(&quot;drag&quot;,this._onBarDrag.bind(this));k&amp;&amp;this.hbar.on(&quot;.drag&quot;,null).call(q),C&amp;&amp;this.vbar.on(&quot;.drag&quot;,null).call(q)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&amp;&amp;(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&amp;&amp;(this.hbar.on(&quot;.drag&quot;,null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&amp;&amp;(this.vbar.on(&quot;.drag&quot;,null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t-=n.event.dx),this.vbar&amp;&amp;(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t+=n.event.deltaY),this.vbar&amp;&amp;(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&amp;&amp;this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{&quot;../../lib&quot;:803,&quot;../color&quot;:666,&quot;../drawing&quot;:688,&quot;@plotly/d3&quot;:58}],771:[function(t,e,r){&quot;use strict&quot;;e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:&quot;right&quot;,right:&quot;left&quot;,top:&quot;bottom&quot;,bottom:&quot;top&quot;}}},{}],772:[function(t,e,r){&quot;use strict&quot;;e.exports={axisRefDescription:function(t,e,r){return[&quot;If set to a&quot;,t,&quot;axis id (e.g. *&quot;+t+&quot;* or&quot;,&quot;*&quot;+t+&quot;2*), the `&quot;+t+&quot;` position refers to a&quot;,t,&quot;coordinate. If set to *paper*, the `&quot;+t+&quot;`&quot;,&quot;position refers to the distance from the&quot;,e,&quot;of the plotting&quot;,&quot;area in normalized coordinates where *0* (*1*) corresponds to the&quot;,e,&quot;(&quot;+r+&quot;). If set to a&quot;,t,&quot;axis ID followed by&quot;,&quot;*domain* (separated by a space), the position behaves like for&quot;,&quot;*paper*, but refers to the distance in fractions of the domain&quot;,&quot;length from the&quot;,e,&quot;of the domain of that axis: e.g.,&quot;,&quot;*&quot;+t+&quot;2 domain* refers to the domain of the second&quot;,t,&quot; axis and a&quot;,t,&quot;position of 0.5 refers to the&quot;,&quot;point between the&quot;,e,&quot;and the&quot;,r,&quot;of the domain of the&quot;,&quot;second&quot;,t,&quot;axis.&quot;].join(&quot; &quot;)}}},{}],773:[function(t,e,r){&quot;use strict&quot;;e.exports={INCREASING:{COLOR:&quot;#3D9970&quot;,SYMBOL:&quot;\u25b2&quot;},DECREASING:{COLOR:&quot;#FF4136&quot;,SYMBOL:&quot;\u25bc&quot;}}},{}],774:[function(t,e,r){&quot;use strict&quot;;e.exports={FORMAT_LINK:&quot;https://github.com/d3/d3-format/tree/v1.4.5#d3-format&quot;,DATE_FORMAT_LINK:&quot;https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format&quot;}},{}],775:[function(t,e,r){&quot;use strict&quot;;e.exports={COMPARISON_OPS:[&quot;=&quot;,&quot;!=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],COMPARISON_OPS2:[&quot;=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],INTERVAL_OPS:[&quot;[]&quot;,&quot;()&quot;,&quot;[)&quot;,&quot;(]&quot;,&quot;][&quot;,&quot;)(&quot;,&quot;](&quot;,&quot;)[&quot;],SET_OPS:[&quot;{}&quot;,&quot;}{&quot;],CONSTRAINT_REDUCTION:{&quot;=&quot;:&quot;=&quot;,&quot;&lt;&quot;:&quot;&lt;&quot;,&quot;&lt;=&quot;:&quot;&lt;&quot;,&quot;&gt;&quot;:&quot;&gt;&quot;,&quot;&gt;=&quot;:&quot;&gt;&quot;,&quot;[]&quot;:&quot;[]&quot;,&quot;()&quot;:&quot;[]&quot;,&quot;[)&quot;:&quot;[]&quot;,&quot;(]&quot;:&quot;[]&quot;,&quot;][&quot;:&quot;][&quot;,&quot;)(&quot;:&quot;][&quot;,&quot;](&quot;:&quot;][&quot;,&quot;)[&quot;:&quot;][&quot;}}},{}],776:[function(t,e,r){&quot;use strict&quot;;e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],777:[function(t,e,r){&quot;use strict&quot;;e.exports={circle:&quot;\u25cf&quot;,&quot;circle-open&quot;:&quot;\u25cb&quot;,square:&quot;\u25a0&quot;,&quot;square-open&quot;:&quot;\u25a1&quot;,diamond:&quot;\u25c6&quot;,&quot;diamond-open&quot;:&quot;\u25c7&quot;,cross:&quot;+&quot;,x:&quot;\u274c&quot;}},{}],778:[function(t,e,r){&quot;use strict&quot;;e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],779:[function(t,e,r){&quot;use strict&quot;;e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:&quot;\u2212&quot;}},{}],780:[function(t,e,r){&quot;use strict&quot;;r.xmlns=&quot;http://www.w3.org/2000/xmlns/&quot;,r.svg=&quot;http://www.w3.org/2000/svg&quot;,r.xlink=&quot;http://www.w3.org/1999/xlink&quot;,r.svgAttrs={xmlns:r.svg,&quot;xmlns:xlink&quot;:r.xlink}},{}],781:[function(t,e,r){&quot;use strict&quot;;r.version=t(&quot;./version&quot;).version,t(&quot;native-promise-only&quot;),t(&quot;../build/plotcss&quot;);for(var n=t(&quot;./registry&quot;),i=r.register=n.register,a=t(&quot;./plot_api&quot;),o=Object.keys(a),s=0;s&lt;o.length;s++){var l=o[s];&quot;_&quot;!==l.charAt(0)&amp;&amp;(r[l]=a[l]),i({moduleType:&quot;apiMethod&quot;,name:l,fn:a[l]})}i(t(&quot;./traces/scatter&quot;)),i([t(&quot;./components/legend&quot;),t(&quot;./components/fx&quot;),t(&quot;./components/annotations&quot;),t(&quot;./components/annotations3d&quot;),t(&quot;./components/shapes&quot;),t(&quot;./components/images&quot;),t(&quot;./components/updatemenus&quot;),t(&quot;./components/sliders&quot;),t(&quot;./components/rangeslider&quot;),t(&quot;./components/rangeselector&quot;),t(&quot;./components/grid&quot;),t(&quot;./components/errorbars&quot;),t(&quot;./components/colorscale&quot;),t(&quot;./components/colorbar&quot;),t(&quot;./components/modebar&quot;)]),i([t(&quot;./locale-en&quot;),t(&quot;./locale-en-us&quot;)]),window.PlotlyLocales&amp;&amp;Array.isArray(window.PlotlyLocales)&amp;&amp;(i(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=t(&quot;./fonts/ploticon&quot;);var c=t(&quot;./components/fx&quot;),u=t(&quot;./plots/plots&quot;);r.Plots={resize:u.resize,graphJson:u.graphJson,sendDataToCloud:u.sendDataToCloud},r.Fx={hover:c.hover,unhover:c.unhover,loneHover:c.loneHover,loneUnhover:c.loneUnhover},r.Snapshot=t(&quot;./snapshot&quot;),r.PlotSchema=t(&quot;./plot_api/plot_schema&quot;)},{&quot;../build/plotcss&quot;:1,&quot;./components/annotations&quot;:657,&quot;./components/annotations3d&quot;:662,&quot;./components/colorbar&quot;:672,&quot;./components/colorscale&quot;:678,&quot;./components/errorbars&quot;:694,&quot;./components/fx&quot;:706,&quot;./components/grid&quot;:710,&quot;./components/images&quot;:715,&quot;./components/legend&quot;:723,&quot;./components/modebar&quot;:729,&quot;./components/rangeselector&quot;:737,&quot;./components/rangeslider&quot;:744,&quot;./components/shapes&quot;:758,&quot;./components/sliders&quot;:763,&quot;./components/updatemenus&quot;:769,&quot;./fonts/ploticon&quot;:782,&quot;./locale-en&quot;:834,&quot;./locale-en-us&quot;:833,&quot;./plot_api&quot;:838,&quot;./plot_api/plot_schema&quot;:842,&quot;./plots/plots&quot;:917,&quot;./registry&quot;:931,&quot;./snapshot&quot;:936,&quot;./traces/scatter&quot;:1230,&quot;./version&quot;:1404,&quot;native-promise-only&quot;:474}],782:[function(t,e,r){&quot;use strict&quot;;e.exports={undo:{width:857.1,height:1e3,path:&quot;m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},home:{width:928.6,height:1e3,path:&quot;m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;camera-retro&quot;:{width:1e3,height:1e3,path:&quot;m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoombox:{width:1e3,height:1e3,path:&quot;m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},pan:{width:1e3,height:1e3,path:&quot;m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_plus:{width:875,height:1e3,path:&quot;m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_minus:{width:875,height:1e3,path:&quot;m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},autoscale:{width:1e3,height:1e3,path:&quot;m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_basic:{width:1500,height:1e3,path:&quot;m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_compare:{width:1125,height:1e3,path:&quot;m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},plotlylogo:{width:1542,height:1e3,path:&quot;m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;z-axis&quot;:{width:1e3,height:1e3,path:&quot;m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;3d_rotate&quot;:{width:1e3,height:1e3,path:&quot;m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},camera:{width:1e3,height:1e3,path:&quot;m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},movie:{width:1e3,height:1e3,path:&quot;m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},question:{width:857.1,height:1e3,path:&quot;m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},disk:{width:857.1,height:1e3,path:&quot;m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawopenpath:{width:70,height:70,path:&quot;M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawclosedpath:{width:90,height:90,path:&quot;M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z&quot;,transform:&quot;matrix(1 0 0 1 -5 -5)&quot;},lasso:{width:1031,height:1e3,path:&quot;m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},selectbox:{width:1e3,height:1e3,path:&quot;m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawline:{width:70,height:70,path:&quot;M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawrect:{width:80,height:80,path:&quot;M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},drawcircle:{width:80,height:80,path:&quot;M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},eraseshape:{width:80,height:80,path:&quot;M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},spikeline:{width:1e3,height:1e3,path:&quot;M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z&quot;,transform:&quot;matrix(1.5 0 0 -1.5 0 850)&quot;},pencil:{width:1792,height:1792,path:&quot;M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z&quot;,transform:&quot;matrix(1 0 0 1 0 1)&quot;},newplotlylogo:{name:&quot;newplotlylogo&quot;,svg:&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'&gt;&lt;defs&gt;&lt;style&gt;.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}&lt;/style&gt;&lt;/defs&gt;&lt;title&gt;plotly-logomark&lt;/title&gt;&lt;g id='symbol'&gt;&lt;rect class='cls-1' width='132' height='132' rx='6' ry='6'/&gt;&lt;circle class='cls-2' cx='78' cy='54' r='6'/&gt;&lt;circle class='cls-2' cx='102' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='78' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='54' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='54' r='6'/&gt;&lt;path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/&gt;&lt;path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/&gt;&lt;path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/&gt;&lt;path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;}}},{}],783:[function(t,e,r){&quot;use strict&quot;;r.isLeftAnchor=function(t){return&quot;left&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&lt;=1/3},r.isCenterAnchor=function(t){return&quot;center&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;1/3&amp;&amp;t.x&lt;2/3},r.isRightAnchor=function(t){return&quot;right&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;=2/3},r.isTopAnchor=function(t){return&quot;top&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;=2/3},r.isMiddleAnchor=function(t){return&quot;middle&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;1/3&amp;&amp;t.y&lt;2/3},r.isBottomAnchor=function(t){return&quot;bottom&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&lt;=1/3}},{}],784:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./mod&quot;),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])&gt;s-1e-14}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]&lt;e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))&gt;(n=i(n,s))&amp;&amp;(n+=s);var a=i(t,s),o=a+s;return a&gt;=r&amp;&amp;a&lt;=n||o&gt;=r&amp;&amp;o&lt;=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,g=l([r,n]);function m(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(u=0,f=o,h=s):r&lt;n?(u=r,h=n):(u=n,h=r),t&lt;e?(p=t,d=e):(p=e,d=t);var v,y=Math.abs(h-u)&lt;=o?0:1;function x(t,e,r){return&quot;A&quot;+[t,t]+&quot; &quot;+[0,y,r]+&quot; &quot;+m(t,e)}return g?v=null===p?&quot;M&quot;+m(d,u)+x(d,f,0)+x(d,h,0)+&quot;Z&quot;:&quot;M&quot;+m(p,u)+x(p,f,0)+x(p,h,0)+&quot;ZM&quot;+m(d,u)+x(d,f,1)+x(d,h,1)+&quot;Z&quot;:null===p?(v=&quot;M&quot;+m(d,u)+x(d,h,0),c&amp;&amp;(v+=&quot;L0,0Z&quot;)):v=&quot;M&quot;+m(p,u)+&quot;L&quot;+m(d,u)+x(d,h,0)+&quot;L&quot;+m(p,h)+x(p,u,1)+&quot;Z&quot;,v}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&amp;&amp;(r[0]&lt;r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t&gt;=i&amp;&amp;t&lt;=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{&quot;./mod&quot;:810}],785:[function(t,e,r){&quot;use strict&quot;;var n=Array.isArray,i=ArrayBuffer,a=DataView;function o(t){return i.isView(t)&amp;&amp;!(t instanceof a)}function s(t){return n(t)||o(t)}function l(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;i&lt;t.length;i++)n=e(n,t[i].length);return n}return t.length}return 0}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r&lt;arguments.length;r++)(o=(i=arguments[r]).length)&amp;&amp;(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&amp;&amp;(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r&lt;c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l&lt;e.length;l++)s[l]=e[l];for(r=0;r&lt;c.length;r++){for(i=c[r],l=0;l&lt;i.length;l++)s[a+l]=i[l];a+=l}return s},r.maxRowLength=function(t){return l(t,Math.max,0)},r.minRowLength=function(t){return l(t,Math.min,1/0)}},{}],786:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../constants/numerical&quot;).BADNUM,a=/^['&quot;%,$#\s']+|[, ]|['&quot;%,$#\s']+$/g;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.replace(a,&quot;&quot;)),n(t)?Number(t):i}},{&quot;../constants/numerical&quot;:779,&quot;fast-isnumeric&quot;:249}],787:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t._fullLayout;e._glcanvas&amp;&amp;e._glcanvas.size()&amp;&amp;e._glcanvas.each((function(t){t.regl&amp;&amp;t.regl.clear({color:!0,depth:!0})}))}},{}],788:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){t._responsiveChartHandler&amp;&amp;(window.removeEventListener(&quot;resize&quot;,t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],789:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../components/colorscale/scales&quot;),s=t(&quot;../components/color&quot;),l=t(&quot;../constants/interactions&quot;).DESELECTDIM,c=t(&quot;./nested_property&quot;),u=t(&quot;./regex&quot;).counter,f=t(&quot;./mod&quot;).modHalf,h=t(&quot;./array&quot;).isArrayOrTypedArray;function p(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&amp;&amp;h(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){h(t)?e.set(t):void 0!==r&amp;&amp;e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&amp;&amp;(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&amp;&amp;(t=+t);for(var r=e.values,n=0;n&lt;r.length;n++){var i=String(r[n]);if(&quot;/&quot;===i.charAt(0)&amp;&amp;&quot;/&quot;===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;!=typeof t){var i=&quot;number&quot;==typeof t;!0!==n.strict&amp;&amp;i?e.set(String(t)):e.set(r)}else n.noBlank&amp;&amp;!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&amp;&amp;t.length&amp;&amp;t.every((function(t){return i(t).isValid()}))?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){&quot;auto&quot;===t?e.set(&quot;auto&quot;):n(t)?e.set(f(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||u(r);&quot;string&quot;==typeof t&amp;&amp;i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||&quot;string&quot;==typeof t&amp;&amp;!!u(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(&quot;+&quot;),a=0;a&lt;i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)&lt;a?i.splice(a,1):a++}i.length?e.set(i.join(&quot;+&quot;)):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&amp;&amp;(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||&quot;1-2&quot;===i.dimensions&amp;&amp;Array.isArray(t)&amp;&amp;Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],g=Array.isArray(p),m=g&amp;&amp;o&amp;&amp;Array.isArray(p[0]),v=o&amp;&amp;g&amp;&amp;!m,y=g&amp;&amp;!v?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s&lt;y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=v?p.length:g?p[s].length:c.length,l=0;l&lt;f;l++)u=v?p[l]:g?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&amp;&amp;(d[s][l]=h);else for(s=0;s&lt;y;s++)void 0!==(h=a(t[s],g?p[s]:p,n[s]))&amp;&amp;(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&amp;&amp;t.length!==r.length)return!1;for(var a=0;a&lt;t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&amp;&amp;t[a].length!==r[a].length)return!1;for(var o=0;o&lt;t[a].length;o++)if(!p(t[a][o],n?r[a][o]:r))return!1}else if(!p(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=c(n,i).get(),s=c(t,i),l=c(e,i),u=s.get(),f=e._template;if(void 0===u&amp;&amp;f&amp;&amp;(u=c(f,i).get(),f=0),void 0===a&amp;&amp;(a=o.dflt),o.arrayOk&amp;&amp;h(u))return l.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,l,a,o);var g=l.get();return f&amp;&amp;g===a&amp;&amp;!p(u,o)&amp;&amp;(d(u=c(f,i).get(),l,a,o),g=l.get()),g},r.coerce2=function(t,e,n,i,a){var o=c(t,i),s=r.coerce(t,e,n,i,a),l=o.get();return null!=l&amp;&amp;s},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+&quot;.family&quot;,r.family),n.size=t(e+&quot;.size&quot;,r.size),n.color=t(e+&quot;.color&quot;,r.color),n},r.coercePattern=function(t,e,r,n){if(t(e+&quot;.shape&quot;)){t(e+&quot;.solidity&quot;),t(e+&quot;.size&quot;);var i=&quot;overlay&quot;===t(e+&quot;.fillmode&quot;);if(!n){var a=t(e+&quot;.bgcolor&quot;,i?r:void 0);t(e+&quot;.fgcolor&quot;,i?s.contrast(a):r)}t(e+&quot;.fgopacity&quot;,i?.5:1)}},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=&quot;all&quot;===l.dflt?l.flags.slice():l.dflt.split(&quot;+&quot;);c.splice(c.indexOf(&quot;name&quot;),1),i=c.join(&quot;+&quot;)}return r.coerce(t,e,s,&quot;hoverinfo&quot;,i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)h(i)||t.selected||t.unselected||(r=i,n=l*i),e(&quot;selected.marker.opacity&quot;,r),e(&quot;unselected.marker.opacity&quot;,n)}},r.validate=p},{&quot;../components/color&quot;:666,&quot;../components/colorscale/scales&quot;:681,&quot;../constants/interactions&quot;:778,&quot;../plots/attributes&quot;:850,&quot;./array&quot;:785,&quot;./mod&quot;:810,&quot;./nested_property&quot;:811,&quot;./regex&quot;:820,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],790:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;d3-time-format&quot;).timeFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;./loggers&quot;),l=t(&quot;./mod&quot;).mod,c=t(&quot;../constants/numerical&quot;),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,g=c.EPOCHJD,m=t(&quot;../registry&quot;),v=t(&quot;d3-time-format&quot;).utcFormat,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&amp;&amp;m.componentsRegistry.calendars&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;&quot;gregorian&quot;!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){var n=function(t,e){return _(t)?e?m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_SUNDAY&quot;)[t]:m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_TICK&quot;)[t]:e?&quot;2000-01-02&quot;:&quot;2000-01-01&quot;}(t,!!e);if(e&lt;2)return n;var i=r.dateTime2ms(n,t);return i+=f*(e-1),r.ms2DateTime(i,0,t)},r.dfltRange=function(t){return _(t)?m.getComponentMethod(&quot;calendars&quot;,&quot;DFLTRANGE&quot;)[t]:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;]},r.isJSDate=function(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;&quot;function&quot;==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)&gt;=n&amp;&amp;t&lt;=i?t:u}if(&quot;string&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||&quot;G&quot;!==v&amp;&amp;&quot;g&quot;!==v||(t=t.substr(1),e=&quot;&quot;);var w=c&amp;&amp;&quot;chinese&quot;===e.substr(0,7),T=t.match(w?x:y);if(!T)return u;var k=T[1],A=T[3]||&quot;1&quot;,M=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),L=Number(T[11]||0);if(c){if(2===k.length)return u;var C;k=Number(k);try{var P=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e);if(w){var I=&quot;i&quot;===A.charAt(A.length-1);A=parseInt(A,10),C=P.newDate(k,P.toMonthIndex(k,A,I),M)}else C=P.newDate(k,Number(A),M)}catch(t){return u}return C?(C.toJD()-g)*f+S*h+E*p+L*d:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),A-=1;var O=new Date(Date.UTC(2e3,A,M,S,E));return O.setUTCFullYear(k),O.getUTCMonth()!==A||O.getUTCDate()!==M?u:O.getTime()+L*d},n=r.MIN_MS=r.dateTime2ms(&quot;-9999&quot;),i=r.MAX_MS=r.dateTime2ms(&quot;9999-12-31 23:59:59.9999&quot;),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,k=3*h,A=5*p;function M(t,e,r,n,i){if((e||r||n||i)&amp;&amp;(t+=&quot; &quot;+w(e,2)+&quot;:&quot;+w(r,2),(n||i)&amp;&amp;(t+=&quot;:&quot;+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=&quot;.&quot;+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(&quot;number&quot;!=typeof t||!(t&gt;=n&amp;&amp;t&lt;=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r).fromJD(S).formatDate(&quot;yyyy-mm-dd&quot;)}catch(t){a=v(&quot;G%Y-%m-%d&quot;)(new Date(w))}if(&quot;-&quot;===a.charAt(0))for(;a.length&lt;11;)a=&quot;-0&quot;+a.substr(1);else for(;a.length&lt;10;)a=&quot;0&quot;+a;o=e&lt;T?Math.floor(E/h):0,s=e&lt;T?Math.floor(E%h/p):0,c=e&lt;k?Math.floor(E%p/d):0,y=e&lt;A?E%d*10+b:0}else x=new Date(w),a=v(&quot;%Y-%m-%d&quot;)(x),o=e&lt;T?x.getUTCHours():0,s=e&lt;T?x.getUTCMinutes():0,c=e&lt;k?x.getUTCSeconds():0,y=e&lt;A?10*x.getUTCMilliseconds()+b:0;return M(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t&gt;=n+f&amp;&amp;t&lt;=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return M(a(&quot;%Y-%m-%d&quot;)(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||&quot;number&quot;==typeof t&amp;&amp;isFinite(t)){if(_(n))return s.error(&quot;JS Dates and milliseconds are incompatible with world calendars&quot;,t),e;if(!(t=r.ms2DateTimeLocal(+t))&amp;&amp;void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(&quot;unrecognized date&quot;,t),e;return t};var S=/%\d?f/g,E=/%h/g,L={1:&quot;1&quot;,2:&quot;1&quot;,3:&quot;2&quot;,4:&quot;2&quot;};function C(t,e,r,n){t=t.replace(S,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,&quot;&quot;)||&quot;0&quot;}));var i=new Date(Math.floor(e+.05));if(t=t.replace(E,(function(){return L[r(&quot;%q&quot;)(i)]})),_(n))try{t=m.getComponentMethod(&quot;calendars&quot;,&quot;worldCalFmt&quot;)(t,e,n)}catch(t){return&quot;Invalid&quot;}return r(t)(i)}var P=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&amp;&amp;i,!e)if(&quot;y&quot;===r)e=a.year;else if(&quot;m&quot;===r)e=a.month;else{if(&quot;d&quot;!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+&quot;:&quot;+w(l(Math.floor(r/p),60),2);if(&quot;M&quot;!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),P[e])).toFixed(e).substr(1);e&gt;0&amp;&amp;(i=i.replace(/0+$/,&quot;&quot;).replace(/[\.]$/,&quot;&quot;)),n+=&quot;:&quot;+i}return n}(t,r)+&quot;\n&quot;+C(a.dayMonthYear,t,n,i);e=a.dayMonth+&quot;\n&quot;+a.year}return C(e,t,n,i)};var I=3*f;r.incrementMonth=function(t,e,r){r=_(r)&amp;&amp;r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r),o=a.fromJD(i);return e%12?a.add(o,e,&quot;m&quot;):a.add(o,e/12,&quot;y&quot;),(o.toJD()-g)*f+n}catch(e){s.error(&quot;invalid ms &quot;+t+&quot; in calendar &quot;+r)}var c=new Date(t+I);return c.setUTCMonth(c.getUTCMonth()+e)+n-I},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&amp;&amp;m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e),u=0;u&lt;t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{&quot;../constants/numerical&quot;:779,&quot;../registry&quot;:931,&quot;./loggers&quot;:807,&quot;./mod&quot;:810,&quot;d3-time-format&quot;:175,&quot;fast-isnumeric&quot;:249}],791:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./matrix&quot;),o=t(&quot;gl-mat4&quot;);function s(t){var e=t&amp;&amp;t.parentNode;e&amp;&amp;e.removeChild(t)}function l(t,e,r){var n=&quot;plotly.js-style-&quot;+t,a=document.getElementById(n);a||((a=document.createElement(&quot;style&quot;)).setAttribute(&quot;id&quot;,n),a.appendChild(document.createTextNode(&quot;&quot;)),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(e+&quot;{&quot;+r+&quot;}&quot;,0):o.addRule?o.addRule(e,r,0):i.warn(&quot;addStyleRule failed&quot;)}function c(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue(&quot;-webkit-transform&quot;)||e.getPropertyValue(&quot;-moz-transform&quot;)||e.getPropertyValue(&quot;-ms-transform&quot;)||e.getPropertyValue(&quot;-o-transform&quot;)||e.getPropertyValue(&quot;transform&quot;);return&quot;none&quot;===r?null:r.replace(&quot;matrix&quot;,&quot;&quot;).replace(&quot;3d&quot;,&quot;&quot;).slice(1,-1).split(&quot;,&quot;).map((function(t){return+t}))}function u(t){for(var e=[];f(t);)e.push(t),t=t.parentNode;return e}function f(t){return t&amp;&amp;(t instanceof Element||t instanceof HTMLElement)}e.exports={getGraphDiv:function(t){var e;if(&quot;string&quot;==typeof t){if(null===(e=document.getElementById(t)))throw new Error(&quot;No DOM element with id '&quot;+t+&quot;' exists on the page.&quot;);return e}if(null==t)throw new Error(&quot;DOM element provided is null or undefined&quot;);return t},isPlotDiv:function(t){var e=n.select(t);return e.node()instanceof HTMLElement&amp;&amp;e.size()&amp;&amp;e.classed(&quot;js-plotly-plot&quot;)},removeElement:s,addStyleRule:function(t,e){l(&quot;global&quot;,t,e)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(t){var e=&quot;plotly.js-style-&quot;+t,r=document.getElementById(e);r&amp;&amp;s(r)},getFullTransformMatrix:function(t){var e=u(t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=c(t);if(e){var n=a.convertCssMatrix(e);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(t,e){return t&amp;&amp;e&amp;&amp;t.x===e.x&amp;&amp;t.y===e.y&amp;&amp;t.top===e.top&amp;&amp;t.left===e.left&amp;&amp;t.right===e.right&amp;&amp;t.bottom===e.bottom}}},{&quot;./loggers&quot;:807,&quot;./matrix&quot;:809,&quot;@plotly/d3&quot;:58,&quot;gl-mat4&quot;:298}],792:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){&quot;undefined&quot;!=typeof jQuery&amp;&amp;jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;&quot;undefined&quot;!=typeof jQuery&amp;&amp;(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o&lt;s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:116}],793:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is_plain_object.js&quot;),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&amp;&amp;i(p)&amp;&amp;i(t[1])&amp;&amp;0===p.length){if(function(t,e){var r,n;for(r=0;r&lt;t.length;r++){if(null!==(n=t[r])&amp;&amp;&quot;object&quot;==typeof n)return!1;void 0!==n&amp;&amp;(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var g=1;g&lt;d;g++)for(l in s=t[g])c=p[l],u=s[l],o&amp;&amp;i(u)?p[l]=u:e&amp;&amp;u&amp;&amp;(n(u)||(f=i(u)))?(f?(f=!1,h=c&amp;&amp;i(c)?c:[]):h=c&amp;&amp;n(c)?c:{},p[l]=a([h,u],e,r,o)):(void 0!==u||r)&amp;&amp;(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{&quot;./is_plain_object.js&quot;:804}],794:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e={},r=[],n=0,i=0;i&lt;t.length;i++){var a=t[i];1!==e[a]&amp;&amp;(e[a]=1,r[n++]=a)}return r}},{}],795:[function(t,e,r){&quot;use strict&quot;;function n(t){return!0===t.visible}function i(t){var e=t[0].trace;return!0===e.visible&amp;&amp;0!==e._length}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&amp;&amp;Array.isArray(e[0])&amp;&amp;e[0][0]&amp;&amp;e[0][0].trace?i:n),a=[],o=0;o&lt;t.length;o++){var s=t[o];r(s)&amp;&amp;a.push(s)}return a}},{}],796:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;country-regex&quot;),a=t(&quot;@turf/area&quot;),o=t(&quot;@turf/centroid&quot;),s=t(&quot;@turf/bbox&quot;),l=t(&quot;./identity&quot;),c=t(&quot;./loggers&quot;),u=t(&quot;./is_plain_object&quot;),f=t(&quot;./nested_property&quot;),h=t(&quot;./polygon&quot;),p=Object.keys(i),d={&quot;ISO-3&quot;:l,&quot;USA-states&quot;:l,&quot;country names&quot;:function(t){for(var e=0;e&lt;p.length;e++){var r=p[e];if(new RegExp(i[r]).test(t.trim().toLowerCase()))return r}return c.log(&quot;Unrecognized country name: &quot;+t+&quot;.&quot;),!1}};function g(t){var e=t.geojson,r=window.PlotlyGeoAssets||{},n=&quot;string&quot;==typeof e?r[e]:e;return u(n)?n:(c.error(&quot;Oops ... something went wrong when fetching &quot;+e),!1)}e.exports={locationToFeature:function(t,e,r){if(!e||&quot;string&quot;!=typeof e)return!1;var n,i,a,o=d[t](e);if(o){if(&quot;USA-states&quot;===t)for(n=[],a=0;a&lt;r.length;a++)(i=r[a]).properties&amp;&amp;i.properties.gu&amp;&amp;&quot;USA&quot;===i.properties.gu&amp;&amp;n.push(i);else n=r;for(a=0;a&lt;n.length;a++)if((i=n[a]).id===o)return i;c.log([&quot;Location with id&quot;,o,&quot;does not have a matching topojson feature at this resolution.&quot;].join(&quot; &quot;))}return!1},feature2polygons:function(t){var e,r,n,i,a=t.geometry,o=a.coordinates,s=t.id,l=[];function c(t){for(var e=0;e&lt;t.length-1;e++)if(t[e][0]&gt;0&amp;&amp;t[e+1][0]&lt;0)return e;return null}switch(e=&quot;RUS&quot;===s||&quot;FJI&quot;===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;i&lt;t.length;i++)e[i]=[t[i][0]&lt;0?t[i][0]+360:t[i][0],t[i][1]];l.push(h.tester(e))}:&quot;ATA&quot;===s?function(t){var e=c(t);if(null===e)return l.push(h.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i&lt;t.length;i++)i&gt;e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case&quot;MultiPolygon&quot;:for(r=0;r&lt;o.length;r++)for(n=0;n&lt;o[r].length;n++)e(o[r][n]);break;case&quot;Polygon&quot;:for(r=0;r&lt;o.length;r++)e(o[r])}return l},getTraceGeojson:g,extractTraceFeature:function(t){var e=t[0].trace,r=g(e);if(!r)return!1;var n,i={},s=[];for(n=0;n&lt;e._length;n++){var l=t[n];(l.loc||0===l.loc)&amp;&amp;(i[l.loc]=l)}function u(t){var r=f(t,e.featureidkey||&quot;id&quot;).get(),n=i[r];if(n){var l=t.geometry;if(&quot;Polygon&quot;===l.type||&quot;MultiPolygon&quot;===l.type){var u={type:&quot;Feature&quot;,id:r,geometry:l,properties:{}};u.properties.ct=function(t){var e,r=t.geometry;if(&quot;MultiPolygon&quot;===r.type)for(var n=r.coordinates,i=0,s=0;s&lt;n.length;s++){var l={type:&quot;Polygon&quot;,coordinates:n[s]},c=a.default(l);c&gt;i&amp;&amp;(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}(u),n.fIn=t,n.fOut=u,s.push(u)}else c.log([&quot;Location&quot;,n.loc,&quot;does not have a valid GeoJSON geometry.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*Polygon* and *MultiPolygon* geometries.&quot;].join(&quot; &quot;))}delete i[r]}switch(r.type){case&quot;FeatureCollection&quot;:var h=r.features;for(n=0;n&lt;h.length;n++)u(h[n]);break;case&quot;Feature&quot;:u(r);break;default:return c.warn([&quot;Invalid GeoJSON type&quot;,(r.type||&quot;none&quot;)+&quot;.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*FeatureCollection* and *Feature* types.&quot;].join(&quot; &quot;)),!1}for(var p in i)c.log([&quot;Location *&quot;+p+&quot;*&quot;,&quot;does not have a matching feature with id-key&quot;,&quot;*&quot;+e.featureidkey+&quot;*.&quot;].join(&quot; &quot;));return s},fetchTraceGeoData:function(t){var e=window.PlotlyGeoAssets||{},r=[];function i(t){return new Promise((function(r,i){n.json(t,(function(n,a){if(n){delete e[t];var o=404===n.status?'GeoJSON at URL &quot;'+t+'&quot; does not exist.':&quot;Unexpected error while fetching from &quot;+t;return i(new Error(o))}return e[t]=a,r(a)}))}))}function a(t){return new Promise((function(r,n){var i=0,a=setInterval((function(){return e[t]&amp;&amp;&quot;pending&quot;!==e[t]?(clearInterval(a),r(e[t])):i&gt;100?(clearInterval(a),n(&quot;Unexpected error while fetching from &quot;+t)):void i++}),50)}))}for(var o=0;o&lt;t.length;o++){var s=t[o][0].trace.geojson;&quot;string&quot;==typeof s&amp;&amp;(e[s]?&quot;pending&quot;===e[s]&amp;&amp;r.push(a(s)):(e[s]=&quot;pending&quot;,r.push(i(s))))}return r},computeBbox:function(t){return s.default(t)}}},{&quot;./identity&quot;:801,&quot;./is_plain_object&quot;:804,&quot;./loggers&quot;:807,&quot;./nested_property&quot;:811,&quot;./polygon&quot;:815,&quot;@plotly/d3&quot;:58,&quot;@turf/area&quot;:61,&quot;@turf/bbox&quot;:64,&quot;@turf/centroid&quot;:67,&quot;country-regex&quot;:145}],797:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/numerical&quot;).BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a&lt;t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&amp;&amp;i.length&gt;0&amp;&amp;(r.push(i),i=[])}return i.length&gt;0&amp;&amp;r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:&quot;LineString&quot;,coordinates:t[0]}:{type:&quot;MultiLineString&quot;,coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:&quot;Polygon&quot;,coordinates:t};for(var e=new Array(t.length),r=0;r&lt;t.length;r++)e[r]=[t[r]];return{type:&quot;MultiPolygon&quot;,coordinates:e}},r.makeBlank=function(){return{type:&quot;Point&quot;,coordinates:[]}}},{&quot;../constants/numerical&quot;:779}],798:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;./mod&quot;).mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var g=(c*p-u*h)/d,m=(c*f-l*h)/d;return m&lt;0||m&gt;1||g&lt;0||g&gt;1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a&lt;0)return n*n+i*i;if(a&gt;r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,g=h*h+p*p,m=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,g,t-i,e-a),l(h,p,g,r-i,n-a));return Math.sqrt(m)},r.getTextLocation=function(t,e,r,s){if(t===i&amp;&amp;s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&amp;&amp;(i=r);var c=r.x&lt;a?a-r.x:r.x&gt;o?r.x-o:0,f=r.y&lt;s?s-r.y:r.y&gt;l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)&gt;f)return;p=h(c)}for(p=h(f);p;){if(c&gt;(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&amp;&amp;f===u&amp;&amp;Math.abs(n.x-i.x)&lt;.1&amp;&amp;Math.abs(n.y-i.y)&lt;.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]&gt;t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f&lt;c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)&lt;l)return a;u*o&gt;0?p=i:h=i,f++}return a}},{&quot;./mod&quot;:810}],799:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../components/colorscale&quot;),s=t(&quot;../components/color/attributes&quot;).defaultLine,l=t(&quot;./array&quot;).isArrayOrTypedArray,c=a(s);function u(t,e){var r=t;return r[3]*=e,r}function f(t){if(n(t))return c;var e=a(t);return e.length?e:c}function h(t){return n(t)?t:1}e.exports={formatColor:function(t,e,r){var n,i,s,p,d,g=t.color,m=l(g),v=l(e),y=o.extractOpts(t),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(t):f,i=m?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:f,s=v?function(t,e){return void 0===t[e]?1:h(t[e])}:h,m||v)for(var b=0;b&lt;r;b++)p=i(g,b),d=s(e,b),x[b]=u(p,d);else x=u(a(g),e);return x},parseColorScale:function(t){var e=o.extractOpts(t),r=e.colorscale;return e.reversescale&amp;&amp;(r=o.flipScale(e.colorscale)),r.map((function(t){var e=t[0],r=i(t[1]).toRgb();return{index:e,rgb:[r.r,r.g,r.b,r.a]}}))}}},{&quot;../components/color/attributes&quot;:665,&quot;../components/colorscale&quot;:678,&quot;./array&quot;:785,&quot;color-normalize&quot;:131,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],800:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./identity&quot;);function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{&quot;./identity&quot;:801}],801:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t}},{}],802:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!e)return t;var r=1/Math.abs(e),n=r&gt;1?(r*t+r*e)/r:t+e,i=String(n).length;if(i&gt;16){var a=String(e).length;if(i&gt;=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf(&quot;e+&quot;)&amp;&amp;(n=+o)}}return n}},{}],803:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;d3-format&quot;).format,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;../constants/numerical&quot;),l=s.FP_SAFE,c=-l,u=s.BADNUM,f=e.exports={};f.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:&quot;0.f&quot;===t?&quot;~f&quot;:/^\d%/.test(t)?&quot;~%&quot;:/^\ds/.test(t)?&quot;~s&quot;:!/^[~,.0$]/.test(t)&amp;&amp;/[&amp;fps]/.test(t)?&quot;~&quot;+t:t};var h={};f.warnBadFormat=function(t){var e=String(t);h[e]||(h[e]=1,f.warn('encountered bad format: &quot;'+e+'&quot;'))},f.noFormat=function(t){return String(t)},f.numberFormat=function(t){var e;try{e=a(f.adjustFormat(t))}catch(e){return f.warnBadFormat(t),f.noFormat}return e},f.nestedProperty=t(&quot;./nested_property&quot;),f.keyedContainer=t(&quot;./keyed_container&quot;),f.relativeAttr=t(&quot;./relative_attr&quot;),f.isPlainObject=t(&quot;./is_plain_object&quot;),f.toLogRange=t(&quot;./to_log_range&quot;),f.relinkPrivateKeys=t(&quot;./relink_private&quot;);var p=t(&quot;./array&quot;);f.isTypedArray=p.isTypedArray,f.isArrayOrTypedArray=p.isArrayOrTypedArray,f.isArray1D=p.isArray1D,f.ensureArray=p.ensureArray,f.concat=p.concat,f.maxRowLength=p.maxRowLength,f.minRowLength=p.minRowLength;var d=t(&quot;./mod&quot;);f.mod=d.mod,f.modHalf=d.modHalf;var g=t(&quot;./coerce&quot;);f.valObjectMeta=g.valObjectMeta,f.coerce=g.coerce,f.coerce2=g.coerce2,f.coerceFont=g.coerceFont,f.coercePattern=g.coercePattern,f.coerceHoverinfo=g.coerceHoverinfo,f.coerceSelectionMarkerOpacity=g.coerceSelectionMarkerOpacity,f.validate=g.validate;var m=t(&quot;./dates&quot;);f.dateTime2ms=m.dateTime2ms,f.isDateTime=m.isDateTime,f.ms2DateTime=m.ms2DateTime,f.ms2DateTimeLocal=m.ms2DateTimeLocal,f.cleanDate=m.cleanDate,f.isJSDate=m.isJSDate,f.formatDate=m.formatDate,f.incrementMonth=m.incrementMonth,f.dateTick0=m.dateTick0,f.dfltRange=m.dfltRange,f.findExactDates=m.findExactDates,f.MIN_MS=m.MIN_MS,f.MAX_MS=m.MAX_MS;var v=t(&quot;./search&quot;);f.findBin=v.findBin,f.sorterAsc=v.sorterAsc,f.sorterDes=v.sorterDes,f.distinctVals=v.distinctVals,f.roundUp=v.roundUp,f.sort=v.sort,f.findIndexOfMin=v.findIndexOfMin,f.sortObjectKeys=t(&quot;./sort_object_keys&quot;);var y=t(&quot;./stats&quot;);f.aggNums=y.aggNums,f.len=y.len,f.mean=y.mean,f.median=y.median,f.midRange=y.midRange,f.variance=y.variance,f.stdev=y.stdev,f.interp=y.interp;var x=t(&quot;./matrix&quot;);f.init2dArray=x.init2dArray,f.transposeRagged=x.transposeRagged,f.dot=x.dot,f.translationMatrix=x.translationMatrix,f.rotationMatrix=x.rotationMatrix,f.rotationXYMatrix=x.rotationXYMatrix,f.apply3DTransform=x.apply3DTransform,f.apply2DTransform=x.apply2DTransform,f.apply2DTransform2=x.apply2DTransform2,f.convertCssMatrix=x.convertCssMatrix,f.inverseTransformMatrix=x.inverseTransformMatrix;var b=t(&quot;./angles&quot;);f.deg2rad=b.deg2rad,f.rad2deg=b.rad2deg,f.angleDelta=b.angleDelta,f.angleDist=b.angleDist,f.isFullCircle=b.isFullCircle,f.isAngleInsideSector=b.isAngleInsideSector,f.isPtInsideSector=b.isPtInsideSector,f.pathArc=b.pathArc,f.pathSector=b.pathSector,f.pathAnnulus=b.pathAnnulus;var _=t(&quot;./anchor_utils&quot;);f.isLeftAnchor=_.isLeftAnchor,f.isCenterAnchor=_.isCenterAnchor,f.isRightAnchor=_.isRightAnchor,f.isTopAnchor=_.isTopAnchor,f.isMiddleAnchor=_.isMiddleAnchor,f.isBottomAnchor=_.isBottomAnchor;var w=t(&quot;./geometry2d&quot;);f.segmentsIntersect=w.segmentsIntersect,f.segmentDistance=w.segmentDistance,f.getTextLocation=w.getTextLocation,f.clearLocationCache=w.clearLocationCache,f.getVisibleSegment=w.getVisibleSegment,f.findPointOnPath=w.findPointOnPath;var T=t(&quot;./extend&quot;);f.extendFlat=T.extendFlat,f.extendDeep=T.extendDeep,f.extendDeepAll=T.extendDeepAll,f.extendDeepNoArrays=T.extendDeepNoArrays;var k=t(&quot;./loggers&quot;);f.log=k.log,f.warn=k.warn,f.error=k.error;var A=t(&quot;./regex&quot;);f.counterRegex=A.counter;var M=t(&quot;./throttle&quot;);f.throttle=M.throttle,f.throttleDone=M.done,f.clearThrottle=M.clear;var S=t(&quot;./dom&quot;);function E(t){var e={};for(var r in t)for(var n=t[r],i=0;i&lt;n.length;i++)e[n[i]]=+r;return e}f.getGraphDiv=S.getGraphDiv,f.isPlotDiv=S.isPlotDiv,f.removeElement=S.removeElement,f.addStyleRule=S.addStyleRule,f.addRelatedStyleRule=S.addRelatedStyleRule,f.deleteRelatedStyleRule=S.deleteRelatedStyleRule,f.getFullTransformMatrix=S.getFullTransformMatrix,f.getElementTransformMatrix=S.getElementTransformMatrix,f.getElementAndAncestors=S.getElementAndAncestors,f.equalDomRects=S.equalDomRects,f.clearResponsive=t(&quot;./clear_responsive&quot;),f.preserveDrawingBuffer=t(&quot;./preserve_drawing_buffer&quot;),f.makeTraceGroups=t(&quot;./make_trace_groups&quot;),f._=t(&quot;./localize&quot;),f.notifier=t(&quot;./notifier&quot;),f.filterUnique=t(&quot;./filter_unique&quot;),f.filterVisible=t(&quot;./filter_visible&quot;),f.pushUnique=t(&quot;./push_unique&quot;),f.increment=t(&quot;./increment&quot;),f.cleanNumber=t(&quot;./clean_number&quot;),f.ensureNumber=function(t){return o(t)?(t=Number(t))&gt;l||t&lt;c?u:t:u},f.isIndex=function(t,e){return!(void 0!==e&amp;&amp;t&gt;=e)&amp;&amp;(o(t)&amp;&amp;t&gt;=0&amp;&amp;t%1==0)},f.noop=t(&quot;./noop&quot;),f.identity=t(&quot;./identity&quot;),f.repeat=function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++)r[n]=t;return r},f.swapAttrs=function(t,e,r,n){r||(r=&quot;x&quot;),n||(n=&quot;y&quot;);for(var i=0;i&lt;e.length;i++){var a=e[i],o=f.nestedProperty(t,a.replace(&quot;?&quot;,r)),s=f.nestedProperty(t,a.replace(&quot;?&quot;,n)),l=o.get();o.set(s.get()),s.set(l)}},f.raiseToTop=function(t){t.parentNode.appendChild(t)},f.cancelTransition=function(t){return t.transition().duration(0)},f.constrain=function(t,e,r){return e&gt;r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},f.bBoxIntersect=function(t,e,r){return r=r||0,t.left&lt;=e.right+r&amp;&amp;e.left&lt;=t.right+r&amp;&amp;t.top&lt;=e.bottom+r&amp;&amp;e.top&lt;=t.bottom+r},f.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s&lt;a;s++)o[s]=e(t[s],r,n,i);return o},f.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&amp;&amp;(r=24),r&lt;=0)return&quot;0&quot;;var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=&quot;&quot;;for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var c=s-Math.floor(s);for(a=0;a&lt;Math.floor(s);a++)l=Math.floor(Math.random()*n).toString(n)+l;c&amp;&amp;(o=Math.pow(n,c),l=Math.floor(Math.random()*o).toString(n)+l);var u=parseInt(l,n);return e&amp;&amp;e[l]||u!==1/0&amp;&amp;u&gt;=Math.pow(2,r)?i&gt;10?(f.warn(&quot;randstr failed uniqueness&quot;),l):t(e,r,n,(i||0)+1):l},f.OptionControl=function(t,e){t||(t={}),e||(e=&quot;opt&quot;);var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[&quot;_&quot;+e]=t,r},f.smooth=function(t,e){if((e=Math.round(e)||0)&lt;2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r&lt;l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r&lt;o;r++){for(a=0,n=0;n&lt;l;n++)(i=r+n+1-e)&lt;-o?i-=s*Math.round(i/s):i&gt;=s&amp;&amp;(i-=s*Math.floor(i/s)),i&lt;0?i=-1-i:i&gt;=o&amp;&amp;(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},f.syncOrAsync=function(t,e,r){var n;function i(){return f.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&amp;&amp;n.then)return n.then(i);return r&amp;&amp;r(e)},f.stripTrailingSlash=function(t){return&quot;/&quot;===t.substr(-1)?t.substr(0,t.length-1):t},f.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n&lt;r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&amp;&amp;!a)for(n=0;n&lt;r.length;n++)t[r[n]]=e[r[n]]}},f.mergeArray=function(t,e,r,n){var i=&quot;function&quot;==typeof n;if(f.isArrayOrTypedArray(t))for(var a=Math.min(t.length,e.length),o=0;o&lt;a;o++){var s=t[o];e[o][r]=i?n(s):s}},f.mergeArrayCastPositive=function(t,e,r){return f.mergeArray(t,e,r,(function(t){var e=+t;return isFinite(e)&amp;&amp;e&gt;0?e:0}))},f.fillArray=function(t,e,r,n){if(n=n||f.identity,f.isArrayOrTypedArray(t))for(var i=0;i&lt;e.length;i++)e[i][r]=n(t[i])},f.castOption=function(t,e,r,n){n=n||f.identity;var i=f.nestedProperty(t,r).get();return f.isArrayOrTypedArray(i)?Array.isArray(e)&amp;&amp;f.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},f.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=f.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},f.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&amp;&amp;(n=E(o));for(var s=0;s&lt;a.length;s++){var l=a[s];if(f.isIndex(l)||f.isArrayOrTypedArray(l)&amp;&amp;f.isIndex(l[0])&amp;&amp;f.isIndex(l[1])){var c=n?n[l]:l,u=r?r[c]:c;void 0!==(i=u)&amp;&amp;i&lt;t.length&amp;&amp;(t[u].selected=1)}}},f.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=E(r),i=[],a=0;a&lt;e.length;a++){var o=e[a];if(f.isIndex(o)){var s=n[o];f.isIndex(s)&amp;&amp;i.push(s)}}return i}return e},f.getTargetArray=function(t,e){var r=e.target;if(&quot;string&quot;==typeof r&amp;&amp;r){var n=f.nestedProperty(t,r).get();return!!Array.isArray(n)&amp;&amp;n}return!!Array.isArray(r)&amp;&amp;r},f.minExtend=function(t,e){var r={};&quot;object&quot;!=typeof e&amp;&amp;(e={});var n,i,a,o=Object.keys(t);for(n=0;n&lt;o.length;n++)a=t[i=o[n]],&quot;_&quot;!==i.charAt(0)&amp;&amp;&quot;function&quot;!=typeof a&amp;&amp;(&quot;module&quot;===i?r[i]=a:Array.isArray(a)?r[i]=&quot;colorscale&quot;===i?a.slice():a.slice(0,3):f.isTypedArray(a)?r[i]=a.subarray(0,3):r[i]=a&amp;&amp;&quot;object&quot;==typeof a?f.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n&lt;o.length;n++)&quot;object&quot;==typeof(a=e[i=o[n]])&amp;&amp;i in r&amp;&amp;&quot;object&quot;==typeof r[i]||(r[i]=a);return r},f.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},f.containsAny=function(t,e){for(var r=0;r&lt;e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},f.isIE=function(){return void 0!==window.navigator.msSaveBlob};var L=/Version\/[\d\.]+.*Safari/;f.isSafari=function(){return L.test(window.navigator.userAgent)};var C=/iPad|iPhone|iPod/;f.isIOS=function(){return C.test(window.navigator.userAgent)};var P=/Firefox\/(\d+)\.\d+/;f.getFirefoxVersion=function(){var t=P.exec(window.navigator.userAgent);if(t&amp;&amp;2===t.length){var e=parseInt(t[1]);if(!isNaN(e))return e}return null},f.isD3Selection=function(t){return t instanceof n.selection},f.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?&quot;.&quot;+r:&quot;&quot;));if(i.size())return i;var a=t.append(e);return r&amp;&amp;a.classed(r,!0),n&amp;&amp;a.call(n),a},f.ensureSingleById=function(t,e,r,n){var i=t.select(e+&quot;#&quot;+r);if(i.size())return i;var a=t.append(e).attr(&quot;id&quot;,r);return n&amp;&amp;a.call(n),a},f.objectFromPath=function(t,e){for(var r,n=t.split(&quot;.&quot;),i=r={},a=0;a&lt;n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var I=/^([^\[\.]+)\.(.+)?/,O=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;f.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(&quot;object&quot;==typeof t&amp;&amp;!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&amp;&amp;((e=r.match(I))?(i=t[r],n=e[1],delete t[r],t[n]=f.extendDeepNoArrays(t[n]||{},f.objectFromPath(r,f.expandObjectPaths(i))[n])):(e=r.match(O))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],&quot;.&quot;===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},f.extendDeepNoArrays(o,f.objectFromPath(s,f.expandObjectPaths(i)))):t[n][a]=f.expandObjectPaths(i)):t[r]=f.expandObjectPaths(t[r]));return t},f.numSeparate=function(t,e,r){if(r||(r=!1),&quot;string&quot;!=typeof e||0===e.length)throw new Error(&quot;Separator string required for formatting!&quot;);&quot;number&quot;==typeof t&amp;&amp;(t=String(t));var n=/(\d+)(\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(&quot;.&quot;),s=o[0],l=o.length&gt;1?i+o[1]:&quot;&quot;;if(a&amp;&amp;(o.length&gt;1||s.length&gt;4||r))for(;n.test(s);)s=s.replace(n,&quot;$1&quot;+a+&quot;$2&quot;);return s+l},f.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var z=/^\w*$/;f.templateString=function(t,e){var r={};return t.replace(f.TEMPLATE_STRING_REGEX,(function(t,n){var i;return z.test(n)?i=e[n]:(r[n]=r[n]||f.nestedProperty(e,n).get,i=r[n]()),f.isValidTextValue(i)?i:&quot;&quot;}))};var D={max:10,count:0,name:&quot;hovertemplate&quot;};f.hovertemplateString=function(){return B.apply(D,arguments)};var R={max:10,count:0,name:&quot;texttemplate&quot;};f.texttemplateString=function(){return B.apply(R,arguments)};var F=/^[:|\|]/;function B(t,e,r){var n=this,a=arguments;e||(e={});var o={};return t.replace(f.TEMPLATE_STRING_REGEX,(function(t,s,l){var c,u,h,p=&quot;_xother&quot;===s||&quot;_yother&quot;===s,d=&quot;_xother_&quot;===s||&quot;_yother_&quot;===s,g=&quot;xother_&quot;===s||&quot;yother_&quot;===s,m=&quot;xother&quot;===s||&quot;yother&quot;===s||p||g||d,v=s;if((p||d)&amp;&amp;(v=v.substring(1)),(g||d)&amp;&amp;(v=v.substring(0,v.length-1)),m){if(void 0===(c=e[v]))return&quot;&quot;}else for(h=3;h&lt;a.length;h++)if(u=a[h]){if(u.hasOwnProperty(v)){c=u[v];break}if(z.test(v)||(c=f.nestedProperty(u,v).get(),(c=o[v]||f.nestedProperty(u,v).get())&amp;&amp;(o[v]=c)),void 0!==c)break}if(void 0===c&amp;&amp;n)return n.count&lt;n.max&amp;&amp;(f.warn(&quot;Variable '&quot;+v+&quot;' in &quot;+n.name+&quot; could not be found!&quot;),c=t),n.count===n.max&amp;&amp;f.warn(&quot;Too many &quot;+n.name+&quot; warnings - additional warnings will be suppressed&quot;),n.count++,t;if(l){var y;if(&quot;:&quot;===l[0]&amp;&amp;(c=(y=r?r.numberFormat:f.numberFormat)(l.replace(F,&quot;&quot;))(c)),&quot;|&quot;===l[0]){y=r?r.timeFormat:i;var x=f.dateTime2ms(c);c=f.formatDate(x,l.replace(F,&quot;&quot;),!1,y)}}else{var b=v+&quot;Label&quot;;e.hasOwnProperty(b)&amp;&amp;(c=e[b])}return m&amp;&amp;(c=&quot;(&quot;+c+&quot;)&quot;,(p||d)&amp;&amp;(c=&quot; &quot;+c),(g||d)&amp;&amp;(c+=&quot; &quot;)),c}))}f.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a&lt;r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o&gt;=48&amp;&amp;o&lt;=57,c=s&gt;=48&amp;&amp;s&lt;=57;if(l&amp;&amp;(n=10*n+o-48),c&amp;&amp;(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var N=2e9;f.seedPseudoRandom=function(){N=2e9},f.pseudoRandom=function(){var t=N;return N=(69069*N+1)%4294967296,Math.abs(N-t)&lt;429496729?f.pseudoRandom():N/4294967296},f.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=f.extractOption(t,e,&quot;htx&quot;,&quot;hovertext&quot;);if(f.isValidTextValue(i))return n(i);var a=f.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);return f.isValidTextValue(a)?n(a):void 0},f.isValidTextValue=function(t){return t||0===t},f.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+&quot;%&quot;,n=0;n&lt;e;n++)-1!==r.indexOf(&quot;.&quot;)&amp;&amp;(r=(r=r.replace(&quot;0%&quot;,&quot;%&quot;)).replace(&quot;.%&quot;,&quot;%&quot;));return r},f.isHidden=function(t){var e=window.getComputedStyle(t).display;return!e||&quot;none&quot;===e},f.strTranslate=function(t,e){return t||e?&quot;translate(&quot;+t+&quot;,&quot;+e+&quot;)&quot;:&quot;&quot;},f.strRotate=function(t){return t?&quot;rotate(&quot;+t+&quot;)&quot;:&quot;&quot;},f.strScale=function(t){return 1!==t?&quot;scale(&quot;+t+&quot;)&quot;:&quot;&quot;},f.getTextTransform=function(t){var e=t.noCenter,r=t.textX,n=t.textY,i=t.targetX,a=t.targetY,o=t.anchorX||0,s=t.anchorY||0,l=t.rotate,c=t.scale;return c?c&gt;1&amp;&amp;(c=1):c=0,f.strTranslate(i-c*(r+o),a-c*(n+s))+f.strScale(c)+(l?&quot;rotate(&quot;+l+(e?&quot;&quot;:&quot; &quot;+r+&quot; &quot;+n)+&quot;)&quot;:&quot;&quot;)},f.ensureUniformFontSize=function(t,e){var r=f.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},f.join2=function(t,e,r){var n=t.length;return n&gt;1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)},f.bigFont=function(t){return Math.round(1.2*t)};var j=f.getFirefoxVersion(),U=null!==j&amp;&amp;j&lt;86;f.getPositionFromD3Event=function(){return U?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},{&quot;../constants/numerical&quot;:779,&quot;./anchor_utils&quot;:783,&quot;./angles&quot;:784,&quot;./array&quot;:785,&quot;./clean_number&quot;:786,&quot;./clear_responsive&quot;:788,&quot;./coerce&quot;:789,&quot;./dates&quot;:790,&quot;./dom&quot;:791,&quot;./extend&quot;:793,&quot;./filter_unique&quot;:794,&quot;./filter_visible&quot;:795,&quot;./geometry2d&quot;:798,&quot;./identity&quot;:801,&quot;./increment&quot;:802,&quot;./is_plain_object&quot;:804,&quot;./keyed_container&quot;:805,&quot;./localize&quot;:806,&quot;./loggers&quot;:807,&quot;./make_trace_groups&quot;:808,&quot;./matrix&quot;:809,&quot;./mod&quot;:810,&quot;./nested_property&quot;:811,&quot;./noop&quot;:812,&quot;./notifier&quot;:813,&quot;./preserve_drawing_buffer&quot;:817,&quot;./push_unique&quot;:818,&quot;./regex&quot;:820,&quot;./relative_attr&quot;:821,&quot;./relink_private&quot;:822,&quot;./search&quot;:823,&quot;./sort_object_keys&quot;:826,&quot;./stats&quot;:827,&quot;./throttle&quot;:830,&quot;./to_log_range&quot;:831,&quot;@plotly/d3&quot;:58,&quot;d3-format&quot;:167,&quot;d3-time-format&quot;:175,&quot;fast-isnumeric&quot;:249}],804:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return window&amp;&amp;window.process&amp;&amp;window.process.versions?&quot;[object Object]&quot;===Object.prototype.toString.call(t):&quot;[object Object]&quot;===Object.prototype.toString.call(t)&amp;&amp;Object.getPrototypeOf(t).hasOwnProperty(&quot;hasOwnProperty&quot;)}},{}],805:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./nested_property&quot;),i=/^\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||&quot;name&quot;,a=a||&quot;value&quot;;var c={};e&amp;&amp;e.length?(l=n(t,e),s=l.get()):s=t,e=e||&quot;&quot;;var u={};if(s)for(o=0;o&lt;s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&amp;&amp;(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&amp;&amp;(i&amp;=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n||(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e),h},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length&gt;2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o&lt;s.length;o++)c[o]=3|c[o];for(o=e;o&lt;s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u&lt;l.length;u++)i=l[u],t=e+&quot;[&quot;+i+&quot;]&quot;,s[i]?(1&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+r]=s[i][r]),2&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+a]=f?4&amp;c[i]?null:s[i][a]:4&amp;c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{&quot;./nested_property&quot;:811}],806:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t,e){for(var r=t._context.locale,i=0;i&lt;2;i++){for(var a=t._context.locales,o=0;o&lt;2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(&quot;-&quot;)[0];if(c===r)break;r=c}return e}},{&quot;../registry&quot;:931}],807:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plot_api/plot_config&quot;).dfltConfig,i=t(&quot;./notifier&quot;),a=e.exports={};a.log=function(){var t;if(n.logging&gt;1){var e=[&quot;LOG:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);console.trace.apply(console,e)}if(n.notifyOnLogging&gt;1){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;long&quot;)}},a.warn=function(){var t;if(n.logging&gt;0){var e=[&quot;WARN:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);console.trace.apply(console,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}},a.error=function(){var t;if(n.logging&gt;0){var e=[&quot;ERROR:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);console.error.apply(console,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}}},{&quot;../plot_api/plot_config&quot;:841,&quot;./notifier&quot;:813}],808:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports=function(t,e,r){var i=t.selectAll(&quot;g.&quot;+r.replace(/\s/g,&quot;.&quot;)).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,r),i.order();var a=t.classed(&quot;rangeplot&quot;)?&quot;nodeRangePlot3&quot;:&quot;node3&quot;;return i.each((function(t){t[0][a]=n.select(this)})),i}},{&quot;@plotly/d3&quot;:58}],809:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mat4&quot;);r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n&lt;t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e&lt;i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e&lt;n;e++)for(a[e]=new Array(i),r=0;r&lt;i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i&lt;a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i&lt;o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i&lt;a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply3DTransform=function(t){return function(){var e=arguments,n=1===arguments.length?e[0]:[e[0],e[1],e[2]||0];return r.dot(t,[n[0],n[1],n[2],1]).slice(0,3)}},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&amp;&amp;(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}},r.convertCssMatrix=function(t){if(t){var e=t.length;if(16===e)return t;if(6===e)return[t[0],t[1],0,0,t[2],t[3],0,0,0,0,1,0,t[4],t[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},r.inverseTransformMatrix=function(t){var e=[];return n.invert(e,t),[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]}},{&quot;gl-mat4&quot;:298}],810:[function(t,e,r){&quot;use strict&quot;;e.exports={mod:function(t,e){var r=t%e;return r&lt;0?r+e:r},modHalf:function(t,e){return Math.abs(t)&gt;e/2?t-Math.round(t/e)*e:t}}},{}],811:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s&lt;e.length-1;s++){if(-1===(r=e[s])){for(n=!0,o=[],l=0;l&lt;c.length;l++)o[l]=a(c[l],e.slice(s+1))(),o[l]!==o[0]&amp;&amp;(n=!1);return n?o[0]:o}if(&quot;number&quot;==typeof r&amp;&amp;!i(c))return;if(&quot;object&quot;!=typeof(c=c[r])||null===c)return}if(&quot;object&quot;==typeof c&amp;&amp;null!==c&amp;&amp;null!==(o=c[e[s]]))return o}}e.exports=function(t,e){if(n(e))e=String(e);else if(&quot;string&quot;!=typeof e||&quot;[-1]&quot;===e.substr(e.length-4))throw&quot;bad property string&quot;;for(var r,i,o,s=0,c=e.split(&quot;.&quot;);s&lt;c.length;){if(r=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[s]=r[1];else{if(0!==s)throw&quot;bad property string&quot;;c.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(&quot;][&quot;),o=0;o&lt;i.length;o++)s++,c.splice(s,0,Number(i[o]))}s++}return&quot;object&quot;!=typeof t?function(t,e,r){return{set:function(){throw&quot;bad container&quot;},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:l(t,c,e),get:a(t,c),astr:e,parts:c,obj:t}};var o=/(^|\.)args\[/;function s(t,e){return void 0===t||null===t&amp;&amp;!e.match(o)}function l(t,e,r){return function(n){var a,o,l=t,h=&quot;&quot;,p=[[t,h]],d=s(n,r);for(o=0;o&lt;e.length-1;o++){if(&quot;number&quot;==typeof(a=e[o])&amp;&amp;!i(l))throw&quot;array index but container is not an array&quot;;if(-1===a){if(d=!u(l,e.slice(o+1),n,r))break;return}if(!f(l,a,e[o+1],d))break;if(&quot;object&quot;!=typeof(l=l[a])||null===l)throw&quot;container is not an object&quot;;h=c(h,a),p.push([l,h])}if(d){if(o===e.length-1&amp;&amp;(delete l[e[o]],Array.isArray(l)&amp;&amp;+e[o]==l.length-1))for(;l.length&amp;&amp;void 0===l[l.length-1];)l.pop()}else l[e[o]]=n}}function c(t,e){var r=e;return n(e)?r=&quot;[&quot;+e+&quot;]&quot;:t&amp;&amp;(r=&quot;.&quot;+e),t+r}function u(t,e,r,n){var a,o=i(r),c=!0,u=r,h=n.replace(&quot;-1&quot;,0),p=!o&amp;&amp;s(r,h),d=e[0];for(a=0;a&lt;t.length;a++)h=n.replace(&quot;-1&quot;,a),o&amp;&amp;(p=s(u=r[a%r.length],h)),p&amp;&amp;(c=!1),f(t,a,d,p)&amp;&amp;l(t[a],e,n.replace(&quot;-1&quot;,a))(u);return c}function f(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=&quot;number&quot;==typeof r?[]:{}}return!0}},{&quot;./array&quot;:785,&quot;fast-isnumeric&quot;:249}],812:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],813:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:&quot;long&quot;===e&amp;&amp;(r=3e3);var o=n.select(&quot;body&quot;).selectAll(&quot;.plotly-notifier&quot;).data([0]);o.enter().append(&quot;div&quot;).classed(&quot;plotly-notifier&quot;,!0),o.selectAll(&quot;.notifier-note&quot;).data(a).enter().append(&quot;div&quot;).classed(&quot;notifier-note&quot;,!0).style(&quot;opacity&quot;,0).each((function(t){var i=n.select(this);i.append(&quot;button&quot;).classed(&quot;notifier-close&quot;,!0).html(&quot;&amp;times;&quot;).on(&quot;click&quot;,(function(){i.transition().call(s)}));for(var a=i.append(&quot;p&quot;),o=t.split(/&lt;br\s*\/?&gt;/g),l=0;l&lt;o.length;l++)l&amp;&amp;a.append(&quot;br&quot;),a.append(&quot;span&quot;).text(o[l]);&quot;stick&quot;===e?i.transition().duration(350).style(&quot;opacity&quot;,1):i.transition().duration(700).style(&quot;opacity&quot;,1).transition().delay(r).call(s)}))}function s(t){t.duration(700).style(&quot;opacity&quot;,0).each(&quot;end&quot;,(function(t){var e=a.indexOf(t);-1!==e&amp;&amp;a.splice(e,1),n.select(this).remove()}))}}},{&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],814:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./setcursor&quot;),i=&quot;data-savedcursor&quot;;e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;),o=0;o&lt;a.length;o++){var s=a[o];0===s.indexOf(&quot;cursor-&quot;)&amp;&amp;t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,&quot;!!&quot;)}n(t,e)}else r&amp;&amp;(t.attr(i,null),&quot;!!&quot;===r?n(t):n(t,r))}},{&quot;./setcursor&quot;:824}],815:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./matrix&quot;).dot,i=t(&quot;../constants/numerical&quot;).BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e&lt;r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&amp;&amp;(r[0][0]===r[1][0]?r[2][0]===r[3][0]&amp;&amp;r[0][1]===r[3][1]&amp;&amp;r[1][1]===r[2][1]&amp;&amp;(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&amp;&amp;r[2][1]===r[3][1]&amp;&amp;r[0][0]===r[3][0]&amp;&amp;r[1][0]===r[2][0]&amp;&amp;(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e&lt;r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r&lt;n||r&gt;a||c===i||c&lt;o||c&gt;s)&amp;&amp;(!e||!l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l&lt;n||l&gt;a||c===i||c&lt;o||c&gt;s)return!1;var u,f,h,p,d,g=r.length,m=r[0][0],v=r[0][1],y=0;for(u=1;u&lt;g;u++)if(f=m,h=v,m=r[u][0],v=r[u][1],!(l&lt;(p=Math.min(f,m))||l&gt;Math.max(f,m)||c&gt;Math.max(h,v)))if(c&lt;Math.min(h,v))l!==p&amp;&amp;y++;else{if(c===(d=m===f?c:h+(l-f)*(v-h)/(m-f)))return 1!==u||!e;c&lt;=d&amp;&amp;l!==p&amp;&amp;y++}return y%2==1},isRect:c,degenerate:u}},a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a&lt;r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))&lt;0||s&gt;u||Math.abs(n(o,h))&gt;i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c&lt;t.length;c++)(c===t.length-1||a.isSegmentBent(t,l,c+1,e))&amp;&amp;(r.push(t[c]),r.length&lt;s-2&amp;&amp;(n=c,i=r.length-1),l=c)}t.length&gt;1&amp;&amp;o(t.pop());return{addPt:o,raw:t,filtered:r}}},{&quot;../constants/numerical&quot;:779,&quot;./matrix&quot;:809}],816:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;./show_no_webgl_msg&quot;),i=t(&quot;regl&quot;);e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each((function(n){if(!n.regl&amp;&amp;(!n.pick||a._has(&quot;parcoords&quot;))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}n.regl||(o=!1),o&amp;&amp;this.addEventListener(&quot;webglcontextlost&quot;,(function(e){t&amp;&amp;t.emit&amp;&amp;t.emit(&quot;plotly_webglcontextlost&quot;,{event:e,layer:n.key})}),!1)}})),o||n({container:a._glcontainer.node()}),o}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./show_no_webgl_msg&quot;:825,regl:540}],817:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;is-mobile&quot;);e.exports=function(t){var e;if(&quot;string&quot;!=typeof(e=t&amp;&amp;t.hasOwnProperty(&quot;userAgent&quot;)?t.userAgent:function(){var t;&quot;undefined&quot;!=typeof navigator&amp;&amp;(t=navigator.userAgent);t&amp;&amp;t.headers&amp;&amp;&quot;string&quot;==typeof t.headers[&quot;user-agent&quot;]&amp;&amp;(t=t.headers[&quot;user-agent&quot;]);return t}()))return!0;var r=i({ua:{headers:{&quot;user-agent&quot;:e}},tablet:!0,featureDetect:!1});if(!r)for(var a=e.split(&quot; &quot;),o=1;o&lt;a.length;o++){if(-1!==a[o].indexOf(&quot;Safari&quot;))for(var s=o-1;s&gt;-1;s--){var l=a[s];if(&quot;Version/&quot;===l.substr(0,8)){var c=l.substr(8).split(&quot;.&quot;)[0];if(n(c)&amp;&amp;(c=+c),c&gt;=13)return!0}}}return r}},{&quot;fast-isnumeric&quot;:249,&quot;is-mobile&quot;:455}],818:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;n&lt;t.length;n++)if(t[n]instanceof RegExp&amp;&amp;t[n].toString()===r)return t;t.push(e)}else!e&amp;&amp;0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],819:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_config&quot;).dfltConfig;var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&amp;&amp;(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length&gt;i.queueLength&amp;&amp;(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&lt;=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&gt;=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a&lt;e.length;a++)r=e[a],i[a]=r===t?r:&quot;object&quot;==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{&quot;../lib&quot;:803,&quot;../plot_api/plot_config&quot;:841}],820:[function(t,e,r){&quot;use strict&quot;;r.counter=function(t,e,r,n){var i=(e||&quot;&quot;)+(r?&quot;&quot;:&quot;$&quot;),a=!1===n?&quot;&quot;:&quot;^&quot;;return&quot;xy&quot;===t?new RegExp(a+&quot;x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?&quot;+i):new RegExp(a+t+&quot;([2-9]|[1-9][0-9]+)?&quot;+i)}},{}],821:[function(t,e,r){&quot;use strict&quot;;var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,i=/^[^\.\[\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(&quot;bad relativeAttr call:&quot;+[t,e]);t=&quot;&quot;}if(&quot;^&quot;!==e.charAt(0))break;e=e.slice(1)}return t&amp;&amp;&quot;[&quot;!==e.charAt(0)?t+&quot;.&quot;+e:t+e}},{}],822:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./array&quot;).isArrayOrTypedArray,i=t(&quot;./is_plain_object&quot;);e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(&quot;_&quot;===a.charAt(0)||&quot;function&quot;==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&amp;&amp;n(s)&amp;&amp;i(o[0])){if(&quot;customdata&quot;===a||&quot;ids&quot;===a)continue;for(var l=Math.min(o.length,s.length),c=0;c&lt;l;c++)s[c]!==o[c]&amp;&amp;i(o[c])&amp;&amp;i(s[c])&amp;&amp;t(s[c],o[c])}else i(o)&amp;&amp;i(s)&amp;&amp;(t(s,o),Object.keys(s).length||delete e[a])}}},{&quot;./array&quot;:785,&quot;./is_plain_object&quot;:804}],823:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./identity&quot;),o=t(&quot;../constants/numerical&quot;).BADNUM;function s(t,e){return t&lt;e}function l(t,e){return t&lt;=e}function c(t,e){return t&gt;e}function u(t,e){return t&gt;=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,o,f=0,h=e.length,p=0,d=h&gt;1?(e[h-1]-e[0])/(h-1):1;for(o=d&gt;=0?r?s:l:r?u:c,t+=1e-9*d*(r?-1:1)*(d&gt;=0?1:-1);f&lt;h&amp;&amp;p++&lt;100;)o(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p&gt;90&amp;&amp;i.log(&quot;Long binary search...&quot;),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t){var e,n=t.slice();for(n.sort(r.sorterAsc),e=n.length-1;e&gt;-1&amp;&amp;n[e]===o;e--);for(var i,a=n[e]-n[0]||1,s=a/(e||1)/1e4,l=[],c=0;c&lt;=e;c++){var u=n[c],f=u-i;void 0===i?(l.push(u),i=u):f&gt;s&amp;&amp;(a=Math.min(a,f),l.push(u),i=u)}return{vals:l,minDiff:a}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i&lt;a&amp;&amp;o++&lt;100;)e[n=c((i+a)/2)]&lt;=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i&lt;t.length;i++){var a=e(t[i],t[i-1]);if(a&lt;0?r=1:a&gt;0&amp;&amp;(n=1),r&amp;&amp;n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i&lt;t.length;i++){var o=e(t[i]);o&lt;n&amp;&amp;(n=o,r=i)}return r}},{&quot;../constants/numerical&quot;:779,&quot;./identity&quot;:801,&quot;./loggers&quot;:807,&quot;fast-isnumeric&quot;:249}],824:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;).forEach((function(e){0===e.indexOf(&quot;cursor-&quot;)&amp;&amp;t.classed(e,!1)})),e&amp;&amp;t.classed(&quot;cursor-&quot;+e,!0)}},{}],825:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/color&quot;),i=function(){};e.exports=function(t){for(var e in t)&quot;function&quot;==typeof t[e]&amp;&amp;(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(&quot;div&quot;);r.className=&quot;no-webgl&quot;,r.style.cursor=&quot;pointer&quot;,r.style.fontSize=&quot;24px&quot;,r.style.color=n.defaults[0],r.style.position=&quot;absolute&quot;,r.style.left=r.style.top=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,r.style[&quot;background-color&quot;]=n.lightLine,r.style[&quot;z-index&quot;]=30;var a=document.createElement(&quot;p&quot;);return a.textContent=&quot;WebGL is not supported by your browser - visit https://get.webgl.org for more info&quot;,a.style.position=&quot;relative&quot;,a.style.top=&quot;50%&quot;,a.style.left=&quot;50%&quot;,a.style.height=&quot;30%&quot;,a.style.width=&quot;50%&quot;,a.style.margin=&quot;-15% 0 0 -25%&quot;,r.appendChild(a),t.container.appendChild(r),t.container.style.background=&quot;#FFFFFF&quot;,t.container.onclick=function(){window.open(&quot;https://get.webgl.org&quot;)},!1}},{&quot;../components/color&quot;:666}],826:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return Object.keys(t).sort()}},{}],827:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o&gt;a.length)&amp;&amp;(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s&lt;o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s&lt;o;s++)n(e)?n(a[s])&amp;&amp;(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums((function(t){return t+1}),0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums((function(t,e){return t+e}),0,t)/e},r.midRange=function(t){if(void 0!==t&amp;&amp;0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums((function(t,e){return t+Math.pow(e-i,2)}),0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.median=function(t){var e=t.slice().sort();return r.interp(e,.5)},r.interp=function(t,e){if(!n(e))throw&quot;n should be a finite number&quot;;if((e=e*t.length-.5)&lt;0)return t[0];if(e&gt;t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{&quot;./array&quot;:785,&quot;fast-isnumeric&quot;:249}],828:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;);e.exports=function(t){return t?n(t):[0,0,0,1]}},{&quot;color-normalize&quot;:131}],829:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../lib&quot;),a=i.strTranslate,o=t(&quot;../constants/xmlns_namespaces&quot;),s=t(&quot;../constants/alignment&quot;).LINE_SPACING;function l(t,e){return t.node().getBoundingClientRect()[e]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,g){var M=t.text(),S=!t.attr(&quot;data-notex&quot;)&amp;&amp;&quot;undefined&quot;!=typeof MathJax&amp;&amp;M.match(c),C=n.select(t.node().parentNode);if(!C.empty()){var P=t.attr(&quot;class&quot;)?t.attr(&quot;class&quot;).split(&quot; &quot;)[0]:&quot;text&quot;;return P+=&quot;-math&quot;,C.selectAll(&quot;svg.&quot;+P).remove(),C.selectAll(&quot;g.&quot;+P+&quot;-group&quot;).remove(),t.style(&quot;display&quot;,null).attr({&quot;data-unformatted&quot;:M,&quot;data-math&quot;:&quot;N&quot;}),S?(e&amp;&amp;e._promises||[]).push(new Promise((function(e){t.style(&quot;display&quot;,&quot;none&quot;);var r=parseInt(t.node().style.fontSize,10),o={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&amp;&amp;(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:&quot;none&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]},displayAlign:&quot;left&quot;})}),(function(){if(&quot;SVG&quot;!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(&quot;SVG&quot;)}),(function(){var r=&quot;math-output-&quot;+i.randstr({},64);return l=n.select(&quot;body&quot;).append(&quot;div&quot;).attr({id:r}).style({visibility:&quot;hidden&quot;,position:&quot;absolute&quot;}).style({&quot;font-size&quot;:e.fontSize+&quot;px&quot;}).text(t.replace(u,&quot;\\lt &quot;).replace(f,&quot;\\gt &quot;)),MathJax.Hub.Typeset(l.node())}),(function(){var e=n.select(&quot;body&quot;).select(&quot;#MathJax_SVG_glyphs&quot;);if(l.select(&quot;.MathJax_SVG&quot;).empty()||!l.select(&quot;svg&quot;).node())i.log(&quot;There was an error in the tex syntax.&quot;,t),r();else{var o=l.select(&quot;svg&quot;).node().getBoundingClientRect();r(l.select(&quot;.MathJax_SVG&quot;),e,o)}if(l.remove(),&quot;SVG&quot;!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&amp;&amp;(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)}))}(S[2],o,(function(n,i,o){C.selectAll(&quot;svg.&quot;+P).remove(),C.selectAll(&quot;g.&quot;+P+&quot;-group&quot;).remove();var s=n&amp;&amp;n.select(&quot;svg&quot;);if(!s||!s.node())return I(),void e();var c=C.append(&quot;g&quot;).classed(P+&quot;-group&quot;,!0).attr({&quot;pointer-events&quot;:&quot;none&quot;,&quot;data-unformatted&quot;:M,&quot;data-math&quot;:&quot;Y&quot;});c.node().appendChild(s.node()),i&amp;&amp;i.node()&amp;&amp;s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild),s.attr({class:P,height:o.height,preserveAspectRatio:&quot;xMinYMin meet&quot;}).style({overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;});var u=t.node().style.fill||&quot;black&quot;,f=s.select(&quot;g&quot;);f.attr({fill:u,stroke:u});var h=l(f,&quot;width&quot;),p=l(f,&quot;height&quot;),d=+t.attr(&quot;x&quot;)-h*{start:0,middle:.5,end:1}[t.attr(&quot;text-anchor&quot;)||&quot;start&quot;],m=-(r||l(t,&quot;height&quot;))/4;&quot;y&quot;===P[0]?(c.attr({transform:&quot;rotate(&quot;+[-90,+t.attr(&quot;x&quot;),+t.attr(&quot;y&quot;)]+&quot;)&quot;+a(-h/2,m-p/2)}),s.attr({x:+t.attr(&quot;x&quot;),y:+t.attr(&quot;y&quot;)})):&quot;l&quot;===P[0]?s.attr({x:t.attr(&quot;x&quot;),y:m-p/2}):&quot;a&quot;===P[0]&amp;&amp;0!==P.indexOf(&quot;atitle&quot;)?s.attr({x:0,y:m}):s.attr({x:d,y:+t.attr(&quot;y&quot;)+m-p/2}),g&amp;&amp;g.call(t,c),e(c)}))}))):I(),t}function I(){C.empty()||(P=t.attr(&quot;class&quot;)+&quot;-math&quot;,C.select(&quot;svg.&quot;+P).remove()),t.text(&quot;&quot;).style(&quot;white-space&quot;,&quot;pre&quot;),function(t,e){e=e.replace(m,&quot; &quot;);var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,&quot;tspan&quot;);n.select(e).attr({class:&quot;line&quot;,dy:c*s+&quot;em&quot;}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length&gt;1)for(var a=1;a&lt;i.length;a++)f(i[a])}function f(t){var e,i=t.type,a={};if(&quot;a&quot;===i){e=&quot;a&quot;;var s=t.target,c=t.href,u=t.popup;c&amp;&amp;(a={&quot;xlink:xlink:show&quot;:&quot;_blank&quot;===s||&quot;_&quot;!==s.charAt(0)?&quot;new&quot;:&quot;replace&quot;,target:s,&quot;xlink:xlink:href&quot;:c},u&amp;&amp;(a.onclick='window.open(this.href.baseVal,this.target.baseVal,&quot;'+u+'&quot;);return false;'))}else e=&quot;tspan&quot;;t.style&amp;&amp;(a.style=t.style);var f=document.createElementNS(o.svg,e);if(&quot;sup&quot;===i||&quot;sub&quot;===i){g(r,&quot;\u200b&quot;),r.appendChild(f);var h=document.createElementNS(o.svg,&quot;tspan&quot;);g(h,&quot;\u200b&quot;),n.select(h).attr(&quot;dy&quot;,d[i]),a.dy=p[i],r.appendChild(f),r.appendChild(h)}else r.appendChild(f);n.select(f).attr(a),r=t.node=f,l.push(t)}function g(t,e){t.appendChild(document.createTextNode(e))}function M(t){if(1!==l.length){var n=l.pop();t!==n.type&amp;&amp;i.log(&quot;Start tag &lt;&quot;+n.type+&quot;&gt; doesnt match end tag &lt;&quot;+t+&quot;&gt;. Pretending it did match.&quot;,e),r=l[l.length-1].node}else i.log(&quot;Ignoring unexpected end tag &lt;/&quot;+t+&quot;&gt;.&quot;,e)}x.test(e)?u():(r=t,l=[{node:t}]);for(var S=e.split(v),C=0;C&lt;S.length;C++){var P=S[C],I=P.match(y),O=I&amp;&amp;I[2].toLowerCase(),z=h[O];if(&quot;br&quot;===O)u();else if(void 0===z)g(r,E(P));else if(I[1])M(O);else{var D=I[4],R={type:O},F=k(D,b);if(F?(F=F.replace(A,&quot;$1 fill:&quot;),z&amp;&amp;(F+=&quot;;&quot;+z)):z&amp;&amp;(F=z),F&amp;&amp;(R.style=F),&quot;a&quot;===O){a=!0;var B=k(D,_);if(B){var N=L(B);N&amp;&amp;(R.href=N,R.target=k(D,w)||&quot;_blank&quot;,R.popup=k(D,T))}}f(R)}}return a}(t.node(),M)&amp;&amp;t.style(&quot;pointer-events&quot;,&quot;all&quot;),r.positionText(t),g&amp;&amp;g.call(t)}};var u=/(&lt;|&amp;lt;|&amp;#60;)/g,f=/(&gt;|&amp;gt;|&amp;#62;)/g;var h={sup:&quot;font-size:70%&quot;,sub:&quot;font-size:70%&quot;,b:&quot;font-weight:bold&quot;,i:&quot;font-style:italic&quot;,a:&quot;cursor:pointer&quot;,span:&quot;&quot;,em:&quot;font-style:italic;font-weight:bold&quot;},p={sub:&quot;0.3em&quot;,sup:&quot;-0.6em&quot;},d={sub:&quot;-0.21em&quot;,sup:&quot;0.42em&quot;},g=[&quot;http:&quot;,&quot;https:&quot;,&quot;mailto:&quot;,&quot;&quot;,void 0,&quot;:&quot;],m=r.NEWLINES=/(\r\n?|\n)/g,v=/(&lt;[^&lt;&gt;]*&gt;)/,y=/&lt;(\/?)([^ &gt;]*)(\s+(.*))?&gt;/i,x=/&lt;br(\s+.*)?&gt;/i;r.BR_TAG_ALL=/&lt;br(\s+.*)?&gt;/gi;var b=/(^|[\s&quot;'])style\s*=\s*(&quot;([^&quot;]*);?&quot;|'([^']*);?')/i,_=/(^|[\s&quot;'])href\s*=\s*(&quot;([^&quot;]*)&quot;|'([^']*)')/i,w=/(^|[\s&quot;'])target\s*=\s*(&quot;([^&quot;\s]*)&quot;|'([^'\s]*)')/i,T=/(^|[\s&quot;'])popup\s*=\s*(&quot;([\w=,]*)&quot;|'([\w=,]*)')/i;function k(t,e){if(!t)return null;var r=t.match(e),n=r&amp;&amp;(r[3]||r[4]);return n&amp;&amp;E(n)}var A=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&amp;&amp;-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:[&quot;br&quot;],i=&quot;...&quot;.length,a=t.split(v),o=[],s=&quot;&quot;,l=0,c=0;c&lt;a.length;c++){var u=a[c],f=u.match(y),h=f&amp;&amp;f[2].toLowerCase();if(h)-1!==n.indexOf(h)&amp;&amp;(o.push(u),s=h);else{var p=u.length;if(l+p&lt;r)o.push(u),l+=p;else if(l&lt;r){var d=r-l;s&amp;&amp;(&quot;br&quot;!==s||d&lt;=i||p&lt;=i)&amp;&amp;o.pop(),r&gt;i?o.push(u.substr(0,d-i)+&quot;...&quot;):o.push(u.substr(0,d));break}s=&quot;&quot;}}return o.join(&quot;&quot;)};var M={mu:&quot;\u03bc&quot;,amp:&quot;&amp;&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,nbsp:&quot;\xa0&quot;,times:&quot;\xd7&quot;,plusmn:&quot;\xb1&quot;,deg:&quot;\xb0&quot;},S=/&amp;(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(t){return t.replace(S,(function(t,e){return(&quot;#&quot;===e.charAt(0)?function(t){if(t&gt;1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t&lt;=65535?r(t):r(55232+(t&gt;&gt;10),t%1024+56320)}(&quot;x&quot;===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):M[e])||t}))}function L(t){var e=encodeURI(decodeURI(t)),r=document.createElement(&quot;a&quot;),n=document.createElement(&quot;a&quot;);r.href=t,n.href=e;var i=r.protocol,a=n.protocol;return-1!==g.indexOf(i)&amp;&amp;-1!==g.indexOf(a)?e:&quot;&quot;}function C(t,e,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||&quot;top&quot;,c=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return a=&quot;bottom&quot;===l?function(){return c.bottom-n.height}:&quot;middle&quot;===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o=&quot;right&quot;===s?function(){return c.right-n.width}:&quot;center&quot;===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var t=o()-u.left,e=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+&quot;px&quot;,left:t+&quot;px&quot;,&quot;z-index&quot;:1e3}),this}}r.convertEntities=E,r.sanitizeHTML=function(t){t=t.replace(m,&quot; &quot;);for(var e=document.createElement(&quot;p&quot;),r=e,i=[],a=t.split(v),o=0;o&lt;a.length;o++){var s=a[o],l=s.match(y),c=l&amp;&amp;l[2].toLowerCase();if(c in h)if(l[1])i.length&amp;&amp;(r=i.pop());else{var u=l[4],f=k(u,b),p=f?{style:f}:{};if(&quot;a&quot;===c){var d=k(u,_);if(d){var g=L(d);if(g){p.href=g;var x=k(u,w);x&amp;&amp;(p.target=x)}}}var T=document.createElement(c);r.appendChild(T),n.select(T).attr(p),r=T,i.push(T)}else r.appendChild(document.createTextNode(E(s)))}return e.innerHTML},r.lineCount=function(t){return t.selectAll(&quot;tspan.line&quot;).size()||1},r.positionText=function(t,e,r){return t.each((function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&amp;&amp;(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(&quot;x&quot;,e),o=i(&quot;y&quot;,r);&quot;text&quot;===this.nodeName&amp;&amp;t.selectAll(&quot;tspan.line&quot;).attr({x:a,y:o})}))};r.makeTextShadow=function(t){var e=&quot;1px &quot;,r=&quot;1px &quot;,n=&quot;1px &quot;;return e+r+n+t+&quot;, -&quot;+e+&quot;-&quot;+r+n+t+&quot;, &quot;+e+&quot;-&quot;+r+n+t+&quot;, -&quot;+e+r+n+t},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(&quot;edit&quot;,&quot;input&quot;,&quot;cancel&quot;),o=i||t;if(t.style({&quot;pointer-events&quot;:i?&quot;none&quot;:&quot;all&quot;}),1!==t.size())throw new Error(&quot;boo&quot;);function s(){!function(){var i=n.select(r).select(&quot;.svg-container&quot;),o=i.append(&quot;div&quot;),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&amp;&amp;(u=t.attr(&quot;data-unformatted&quot;));o.classed(&quot;plugin-editable editable&quot;,!0).style({position:&quot;absolute&quot;,&quot;font-family&quot;:s.fontFamily||&quot;Arial&quot;,&quot;font-size&quot;:c,color:e.fill||s.fill||&quot;black&quot;,opacity:1,&quot;background-color&quot;:e.background||&quot;transparent&quot;,outline:&quot;#ffffff33 1px solid&quot;,margin:[-c/8+1,0,0,-1].join(&quot;px &quot;)+&quot;px&quot;,padding:&quot;0&quot;,&quot;box-sizing&quot;:&quot;border-box&quot;}).attr({contenteditable:!0}).text(u).call(C(t,i,e)).on(&quot;blur&quot;,(function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(&quot;class&quot;);(e=i?&quot;.&quot;+i.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(&quot;mouseup&quot;,null),a.edit.call(t,o)})).on(&quot;focus&quot;,(function(){var t=this;r._editing=!0,n.select(document).on(&quot;mouseup&quot;,(function(){if(n.event.target===t)return!1;document.activeElement===o.node()&amp;&amp;o.node().blur()}))})).on(&quot;keyup&quot;,(function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(&quot;blur&quot;,(function(){return!1})).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(C(t,i,e)))})).on(&quot;keydown&quot;,(function(){13===n.event.which&amp;&amp;this.blur()})).call(l)}(),t.style({opacity:0});var i,s=o.attr(&quot;class&quot;);(i=s?&quot;.&quot;+s.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(&quot;click&quot;,s),n.rebind(t,a,&quot;on&quot;)}},{&quot;../constants/alignment&quot;:771,&quot;../constants/xmlns_namespaces&quot;:780,&quot;../lib&quot;:803,&quot;@plotly/d3&quot;:58}],830:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t){t&amp;&amp;null!==t.timer&amp;&amp;(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts&lt;o-6e4&amp;&amp;delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&amp;&amp;(a.onDone(),a.onDone=null)}i(a),o&gt;a.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&amp;&amp;e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&amp;&amp;r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],831:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){if(t&gt;0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{&quot;fast-isnumeric&quot;:249}],832:[function(t,e,r){&quot;use strict&quot;;var n=e.exports={},i=t(&quot;../plots/geo/constants&quot;).locationmodeToLayer,a=t(&quot;topojson-client&quot;).feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,&quot;-&quot;),&quot;_&quot;,t.resolution.toString(),&quot;m&quot;].join(&quot;&quot;)},n.getTopojsonPath=function(t,e){return t+e+&quot;.json&quot;},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{&quot;../plots/geo/constants&quot;:885,&quot;topojson-client&quot;:601}],833:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en-US&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colorscale title&quot;},format:{date:&quot;%m/%d/%Y&quot;}}},{}],834:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colourscale title&quot;},format:{days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],periods:[&quot;AM&quot;,&quot;PM&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%d/%m/%Y&quot;,time:&quot;%H:%M:%S&quot;,decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],year:&quot;%Y&quot;,month:&quot;%b %Y&quot;,dayMonth:&quot;%b %-d&quot;,dayMonthYear:&quot;%b %-d, %Y&quot;}}},{}],835:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(&quot;[&quot;)[0],s=0;s&lt;a.length;s++)if((r=t.match(a[s]))&amp;&amp;0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&amp;&amp;{array:e,index:Number(r[1]),property:r[3]||&quot;&quot;}:{array:e,index:&quot;&quot;,property:&quot;&quot;}}},{&quot;../registry&quot;:931}],836:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.extendFlat,a=n.isPlainObject,o={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;clearAxisTypes&quot;,&quot;plot&quot;,&quot;style&quot;,&quot;markerSize&quot;,&quot;colorbars&quot;]},s={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;plot&quot;,&quot;legend&quot;,&quot;ticks&quot;,&quot;axrange&quot;,&quot;layoutstyle&quot;,&quot;modebar&quot;,&quot;camera&quot;,&quot;arraydraw&quot;,&quot;colorbars&quot;]},l=o.flags.slice().concat([&quot;fullReplot&quot;]),c=s.flags.slice().concat(&quot;layoutReplot&quot;);function u(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&amp;&amp;(n[o]=h(s,e,r,o))}return&quot;from-root&quot;===r&amp;&amp;(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o&lt;t.items.length;o++)a.items[o]=h(t.items[o],e,&quot;from-root&quot;)}return a}return f(t,e,&quot;_&quot;===n.charAt(0)?&quot;nested&quot;:&quot;from-root&quot;)}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&amp;&amp;&quot;none&quot;!==r)for(var n=r.split(&quot;+&quot;),i=0;i&lt;n.length;i++)t[n[i]]=!0},overrideAll:f}},{&quot;../lib&quot;:803}],837:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;gl-mat4/fromQuat&quot;),a=t(&quot;../registry&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../plots/plots&quot;),l=t(&quot;../plots/cartesian/axis_ids&quot;),c=t(&quot;../components/color&quot;),u=l.cleanId,f=l.getFromTrace,h=a.traceIs;function p(t,e){var r=t[e],n=e.charAt(0);r&amp;&amp;&quot;paper&quot;!==r&amp;&amp;(t[e]=u(r,n,!0))}function d(t){function e(e,r){var n=t[e],i=t.title&amp;&amp;t.title[r];n&amp;&amp;!i&amp;&amp;(t.title||(t.title={}),t.title[r]=t[e],delete t[e])}t&amp;&amp;(&quot;string&quot;!=typeof t.title&amp;&amp;&quot;number&quot;!=typeof t.title||(t.title={text:t.title}),e(&quot;titlefont&quot;,&quot;font&quot;),e(&quot;titleposition&quot;,&quot;position&quot;),e(&quot;titleside&quot;,&quot;side&quot;),e(&quot;titleoffset&quot;,&quot;offset&quot;))}function g(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)&amp;&amp;String(e)}function m(t,e,r,n){if(r&amp;&amp;!n)return t;if(n&amp;&amp;!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i&lt;a&amp;&amp;t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function v(t){var e=&quot;middle&quot;,r=&quot;center&quot;;return&quot;string&quot;==typeof t&amp;&amp;(-1!==t.indexOf(&quot;top&quot;)?e=&quot;top&quot;:-1!==t.indexOf(&quot;bottom&quot;)&amp;&amp;(e=&quot;bottom&quot;),-1!==t.indexOf(&quot;left&quot;)?r=&quot;left&quot;:-1!==t.indexOf(&quot;right&quot;)&amp;&amp;(r=&quot;right&quot;)),e+&quot; &quot;+r}function y(t,e){return e in t&amp;&amp;&quot;object&quot;==typeof t[e]&amp;&amp;0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&amp;&amp;t._promises.length&gt;0&amp;&amp;o.log(&quot;Clearing previous rejected promises from queue.&quot;),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&amp;&amp;(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&amp;&amp;(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&amp;&amp;(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,h=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(t);for(e=0;e&lt;g.length;e++){var m=g[e];if(a&amp;&amp;a.test(m)){var v=t[m];v.anchor&amp;&amp;&quot;free&quot;!==v.anchor&amp;&amp;(v.anchor=u(v.anchor)),v.overlaying&amp;&amp;(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type=&quot;date&quot;:v.islog?v.type=&quot;log&quot;:!1===v.isdate&amp;&amp;!1===v.islog&amp;&amp;(v.type=&quot;linear&quot;)),&quot;withzero&quot;!==v.autorange&amp;&amp;&quot;tozero&quot;!==v.autorange||(v.autorange=!0,v.rangemode=&quot;tozero&quot;),delete v.islog,delete v.isdate,delete v.categories,y(v,&quot;domain&quot;)&amp;&amp;delete v.domain,void 0!==v.autotick&amp;&amp;(void 0===v.tickmode&amp;&amp;(v.tickmode=v.autotick?&quot;auto&quot;:&quot;linear&quot;),delete v.autotick),d(v)}else if(l&amp;&amp;l.test(m)){d(t[m].radialaxis)}else if(f&amp;&amp;f.test(m)){var x=t[m];d(x.aaxis),d(x.baxis),d(x.caxis)}else if(h&amp;&amp;h.test(m)){var b=t[m],_=b.cameraposition;if(Array.isArray(_)&amp;&amp;4===_[0].length){var w=_[0],T=_[1],k=_[2],A=i([],w),M=[];for(n=0;n&lt;3;++n)M[n]=T[n]+k*A[2+4*n];b.camera={eye:{x:M[0],y:M[1],z:M[2]},center:{x:T[0],y:T[1],z:T[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}d(b.xaxis),d(b.yaxis),d(b.zaxis)}}var S=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e&lt;S;e++){var E=t.annotations[e];o.isPlainObject(E)&amp;&amp;(E.ref&amp;&amp;(&quot;paper&quot;===E.ref?(E.xref=&quot;paper&quot;,E.yref=&quot;paper&quot;):&quot;data&quot;===E.ref&amp;&amp;(E.xref=&quot;x&quot;,E.yref=&quot;y&quot;),delete E.ref),p(E,&quot;xref&quot;),p(E,&quot;yref&quot;))}var L=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e&lt;L;e++){var C=t.shapes[e];o.isPlainObject(C)&amp;&amp;(p(C,&quot;xref&quot;),p(C,&quot;yref&quot;))}var P=Array.isArray(t.images)?t.images.length:0;for(e=0;e&lt;P;e++){var I=t.images[e];o.isPlainObject(I)&amp;&amp;(p(I,&quot;xref&quot;),p(I,&quot;yref&quot;))}var O=t.legend;return O&amp;&amp;(O.x&gt;3?(O.x=1.02,O.xanchor=&quot;left&quot;):O.x&lt;-2&amp;&amp;(O.x=-.02,O.xanchor=&quot;right&quot;),O.y&gt;3?(O.y=1.02,O.yanchor=&quot;bottom&quot;):O.y&lt;-2&amp;&amp;(O.y=-.02,O.yanchor=&quot;top&quot;)),d(t),&quot;rotate&quot;===t.dragmode&amp;&amp;(t.dragmode=&quot;orbit&quot;),c.clean(t),t.template&amp;&amp;t.template.layout&amp;&amp;r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e&lt;t.length;e++){var n,i=t[e];if(&quot;histogramy&quot;===i.type&amp;&amp;&quot;xbins&quot;in i&amp;&amp;!(&quot;ybins&quot;in i)&amp;&amp;(i.ybins=i.xbins,delete i.xbins),i.error_y&amp;&amp;&quot;opacity&quot;in i.error_y){var l=c.defaults,f=i.error_y.color||(h(i,&quot;bar&quot;)?c.defaultLine:l[e%l.length]);i.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*i.error_y.opacity),delete i.error_y.opacity}if(&quot;bardir&quot;in i&amp;&amp;(&quot;h&quot;!==i.bardir||!h(i,&quot;bar&quot;)&amp;&amp;&quot;histogram&quot;!==i.type.substr(0,9)||(i.orientation=&quot;h&quot;,r.swapXYData(i)),delete i.bardir),&quot;histogramy&quot;===i.type&amp;&amp;r.swapXYData(i),&quot;histogramx&quot;!==i.type&amp;&amp;&quot;histogramy&quot;!==i.type||(i.type=&quot;histogram&quot;),&quot;scl&quot;in i&amp;&amp;!(&quot;colorscale&quot;in i)&amp;&amp;(i.colorscale=i.scl,delete i.scl),&quot;reversescl&quot;in i&amp;&amp;!(&quot;reversescale&quot;in i)&amp;&amp;(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&amp;&amp;(i.xaxis=u(i.xaxis,&quot;x&quot;)),i.yaxis&amp;&amp;(i.yaxis=u(i.yaxis,&quot;y&quot;)),h(i,&quot;gl3d&quot;)&amp;&amp;i.scene&amp;&amp;(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!h(i,&quot;pie-like&quot;)&amp;&amp;!h(i,&quot;bar-like&quot;))if(Array.isArray(i.textposition))for(n=0;n&lt;i.textposition.length;n++)i.textposition[n]=v(i.textposition[n]);else i.textposition&amp;&amp;(i.textposition=v(i.textposition));var p=a.getModule(i);if(p&amp;&amp;p.colorbar){var x=p.colorbar.container,b=x?i[x]:i;b&amp;&amp;b.colorscale&amp;&amp;(&quot;YIGnBu&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlGnBu&quot;),&quot;YIOrRd&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlOrRd&quot;))}if(&quot;surface&quot;===i.type&amp;&amp;o.isPlainObject(i.contours)){var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(n=0;n&lt;_.length;n++){var w=i.contours[_[n]];o.isPlainObject(w)&amp;&amp;(w.highlightColor&amp;&amp;(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&amp;&amp;(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if(&quot;candlestick&quot;===i.type||&quot;ohlc&quot;===i.type){var T=!1!==(i.increasing||{}).showlegend,k=!1!==(i.decreasing||{}).showlegend,A=g(i.increasing),M=g(i.decreasing);if(!1!==A&amp;&amp;!1!==M){var S=m(A,M,T,k);S&amp;&amp;(i.name=S)}else!A&amp;&amp;!M||i.name||(i.name=A||M)}if(Array.isArray(i.transforms)){var E=i.transforms;for(n=0;n&lt;E.length;n++){var L=E[n];if(o.isPlainObject(L))switch(L.type){case&quot;filter&quot;:L.filtersrc&amp;&amp;(L.target=L.filtersrc,delete L.filtersrc),L.calendar&amp;&amp;(L.valuecalendar||(L.valuecalendar=L.calendar),delete L.calendar);break;case&quot;groupby&quot;:if(L.styles=L.styles||L.style,L.styles&amp;&amp;!Array.isArray(L.styles)){var C=L.styles,P=Object.keys(C);L.styles=[];for(var I=0;I&lt;P.length;I++)L.styles.push({target:P[I],value:C[P[I]]})}}}}y(i,&quot;line&quot;)&amp;&amp;delete i.line,&quot;marker&quot;in i&amp;&amp;(y(i.marker,&quot;line&quot;)&amp;&amp;delete i.marker.line,y(i,&quot;marker&quot;)&amp;&amp;delete i.marker),c.clean(i),i.autobinx&amp;&amp;(delete i.autobinx,delete i.xbins),i.autobiny&amp;&amp;(delete i.autobiny,delete i.ybins),d(i),i.colorbar&amp;&amp;d(i.colorbar),i.marker&amp;&amp;i.marker.colorbar&amp;&amp;d(i.marker.colorbar),i.line&amp;&amp;i.line.colorbar&amp;&amp;d(i.line.colorbar),i.aaxis&amp;&amp;d(i.aaxis),i.baxis&amp;&amp;d(i.baxis)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[&quot;?&quot;,&quot;?0&quot;,&quot;d?&quot;,&quot;?bins&quot;,&quot;nbins?&quot;,&quot;autobin?&quot;,&quot;?src&quot;,&quot;error_?&quot;]),Array.isArray(t.z)&amp;&amp;Array.isArray(t.z[0])&amp;&amp;(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&amp;&amp;t.error_y){var r=t.error_y,n=&quot;copy_ystyle&quot;in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[&quot;error_?.copy_ystyle&quot;]),n&amp;&amp;o.swapAttrs(t,[&quot;error_?.color&quot;,&quot;error_?.thickness&quot;,&quot;error_?.width&quot;])}if(&quot;string&quot;==typeof t.hoverinfo){var i=t.hoverinfo.split(&quot;+&quot;);for(e=0;e&lt;i.length;e++)&quot;x&quot;===i[e]?i[e]=&quot;y&quot;:&quot;y&quot;===i[e]&amp;&amp;(i[e]=&quot;x&quot;);t.hoverinfo=i.join(&quot;+&quot;)}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map((function(t,e){return e}));if(Array.isArray(e)){for(var r=[],i=0;i&lt;e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(&quot;trace index (&quot;,e[i],&quot;) is not a number or is out of bounds&quot;);return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&amp;&amp;null===e){var u=a.slice(0,s-1).join(&quot;.&quot;);o.nestedProperty(i,u).get().splice(l,1)}else c&amp;&amp;void 0===t.get()?(void 0===t.get()&amp;&amp;(r[t.astr]=null),t.set(e)):t.set(e)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(t){var e=t.search(x);if(e&gt;0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];r.clearAxisTypes=function(t,e,r){for(var n=0;n&lt;e.length;n++)for(var i=t._fullData[n],a=0;a&lt;3;a++){var s=f(t,i,_[a]);if(s&amp;&amp;&quot;log&quot;!==s.type){var l=s._name,c=s._id.substr(1);if(&quot;scene&quot;===c.substr(0,5)){if(void 0!==r[c])continue;l=c+&quot;.&quot;+l}var u=l+&quot;.type&quot;;void 0===r[l]&amp;&amp;void 0===r[u]&amp;&amp;o.nestedProperty(t.layout,u).set(null)}}}},{&quot;../components/color&quot;:666,&quot;../lib&quot;:803,&quot;../plots/cartesian/axis_ids&quot;:858,&quot;../plots/plots&quot;:917,&quot;../registry&quot;:931,&quot;fast-isnumeric&quot;:249,&quot;gl-mat4/fromQuat&quot;:288}],838:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./plot_api&quot;);r._doPlot=n._doPlot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r._guiRestyle=n._guiRestyle,r._guiRelayout=n._guiRelayout,r._guiUpdate=n._guiUpdate,r._storeDirectGUIEdit=n._storeDirectGUIEdit,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(&quot;./to_image&quot;),r.validate=t(&quot;./validate&quot;),r.downloadImage=t(&quot;../snapshot/download&quot;);var i=t(&quot;./template_api&quot;);r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{&quot;../snapshot/download&quot;:933,&quot;./plot_api&quot;:840,&quot;./template_api&quot;:845,&quot;./to_image&quot;:846,&quot;./validate&quot;:847}],839:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/is_plain_object&quot;),i=t(&quot;../lib/noop&quot;),a=t(&quot;../lib/loggers&quot;),o=t(&quot;../lib/search&quot;).sorterAsc,s=t(&quot;../registry&quot;);r.containerArrayMatch=t(&quot;./container_array_match&quot;);var l=r.isAddVal=function(t){return&quot;add&quot;===t||n(t)},c=r.isRemoveVal=function(t){return null===t||&quot;remove&quot;===t};r.applyContainerArrayChanges=function(t,e,r,n,u){var f=e.astr,h=s.getComponentMethod(f,&quot;supplyLayoutDefaults&quot;),p=s.getComponentMethod(f,&quot;draw&quot;),d=s.getComponentMethod(f,&quot;drawOne&quot;),g=n.replot||n.recalc||h===i||p===i,m=t.layout,v=t._fullLayout;if(r[&quot;&quot;]){Object.keys(r).length&gt;1&amp;&amp;a.warn(&quot;Full array edits are incompatible with other edits&quot;,f);var y=r[&quot;&quot;][&quot;&quot;];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn(&quot;Unrecognized full array edit value&quot;,f,y),!0;e.set(y)}return!g&amp;&amp;(h(m,v),p(t),!0)}var x,b,_,w,T,k,A,M,S=Object.keys(r).map(Number).sort(o),E=e.get(),L=E||[],C=u(v,f).get(),P=[],I=-1,O=L.length;for(x=0;x&lt;S.length;x++)if(w=r[_=S[x]],T=Object.keys(w),k=w[&quot;&quot;],A=l(k),_&lt;0||_&gt;L.length-(A?0:1))a.warn(&quot;index out of range&quot;,f,_);else if(void 0!==k)T.length&gt;1&amp;&amp;a.warn(&quot;Insertion &amp; removal are incompatible with edits to the same index.&quot;,f,_),c(k)?P.push(_):A?(&quot;add&quot;===k&amp;&amp;(k={}),L.splice(_,0,k),C&amp;&amp;C.splice(_,0,{})):a.warn(&quot;Unrecognized full object edit value&quot;,f,_,k),-1===I&amp;&amp;(I=_);else for(b=0;b&lt;T.length;b++)M=f+&quot;[&quot;+_+&quot;].&quot;,u(L[_],T[b],M).set(w[T[b]]);for(x=P.length-1;x&gt;=0;x--)L.splice(P[x],1),C&amp;&amp;C.splice(P[x],1);if(L.length?E||e.set(L):e.set(null),g)return!1;if(h(m,v),d!==i){var z;if(-1===I)z=S;else{for(O=Math.max(L.length,O),z=[],x=0;x&lt;S.length&amp;&amp;!((_=S[x])&gt;=I);x++)z.push(_);for(x=I;x&lt;O;x++)z.push(x)}for(x=0;x&lt;z.length;x++)d(t,z[x])}else p(t);return!0}},{&quot;../lib/is_plain_object&quot;:804,&quot;../lib/loggers&quot;:807,&quot;../lib/noop&quot;:812,&quot;../lib/search&quot;:823,&quot;../registry&quot;:931,&quot;./container_array_match&quot;:835}],840:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;has-hover&quot;),o=t(&quot;../lib&quot;),s=o.nestedProperty,l=t(&quot;../lib/events&quot;),c=t(&quot;../lib/queue&quot;),u=t(&quot;../registry&quot;),f=t(&quot;./plot_schema&quot;),h=t(&quot;../plots/plots&quot;),p=t(&quot;../plots/cartesian/axes&quot;),d=t(&quot;../components/drawing&quot;),g=t(&quot;../components/color&quot;),m=t(&quot;../plots/cartesian/graph_interact&quot;).initInteractions,v=t(&quot;../constants/xmlns_namespaces&quot;),y=t(&quot;../plots/cartesian/select&quot;).clearSelect,x=t(&quot;./plot_config&quot;).dfltConfig,b=t(&quot;./manage_arrays&quot;),_=t(&quot;./helpers&quot;),w=t(&quot;./subroutines&quot;),T=t(&quot;./edit_types&quot;),k=t(&quot;../plots/cartesian/constants&quot;).AX_NAME_PATTERN,A=0;function M(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(&quot;plotly_afterplot&quot;)}function S(t,e){try{t._fullLayout._paper.style(&quot;background&quot;,e)}catch(t){o.error(t)}}function E(t,e){S(t,g.combine(e,&quot;white&quot;))}function L(t,e){if(!t._context){t._context=o.extendDeep({},x);var r=n.select(&quot;base&quot;);t._context._baseUrl=r.size()&amp;&amp;r.attr(&quot;href&quot;)?window.location.href.split(&quot;#&quot;)[0]:&quot;&quot;}var i,s,l,c=t._context;if(e){for(s=Object.keys(e),i=0;i&lt;s.length;i++)&quot;editable&quot;!==(l=s[i])&amp;&amp;&quot;edits&quot;!==l&amp;&amp;l in c&amp;&amp;(&quot;setBackground&quot;===l&amp;&amp;&quot;opaque&quot;===e[l]?c[l]=E:c[l]=e[l]);e.plot3dPixelRatio&amp;&amp;!c.plotGlPixelRatio&amp;&amp;(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=e.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),i=0;i&lt;s.length;i++)c.edits[s[i]]=u;if(e.edits)for(s=Object.keys(e.edits),i=0;i&lt;s.length;i++)(l=s[i])in c.edits&amp;&amp;(c.edits[l]=e.edits[l]);c._exportedPlot=e._exportedPlot}c.staticPlot&amp;&amp;(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),&quot;hover&quot;!==c.displayModeBar||a||(c.displayModeBar=!0),&quot;transparent&quot;!==c.setBackground&amp;&amp;&quot;function&quot;==typeof c.setBackground||(c.setBackground=S),c._hasZeroHeight=c._hasZeroHeight||0===t.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===t.clientWidth;var f=c.scrollZoom,h=c._scrollZoom={};if(!0===f)h.cartesian=1,h.gl3d=1,h.geo=1,h.mapbox=1;else if(&quot;string&quot;==typeof f){var p=f.split(&quot;+&quot;);for(i=0;i&lt;p.length;i++)h[p[i]]=1}else!1!==f&amp;&amp;(h.gl3d=1,h.geo=1,h.mapbox=1)}function C(t,e){var r,n,i=e+1,a=[];for(r=0;r&lt;t.length;r++)(n=t[r])&lt;0?a.push(i+n):a.push(n);return a}function P(t,e,r){var n,i;for(n=0;n&lt;e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(&quot;all values in &quot;+r+&quot; must be integers&quot;);if(i&gt;=t.data.length||i&lt;-t.data.length)throw new Error(r+&quot; must be valid indices for gd.data.&quot;);if(e.indexOf(i,n+1)&gt;-1||i&gt;=0&amp;&amp;e.indexOf(-t.data.length+i)&gt;-1||i&lt;0&amp;&amp;e.indexOf(t.data.length+i)&gt;-1)throw new Error(&quot;each index in &quot;+r+&quot; must be unique.&quot;)}}function I(t,e,r){if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(void 0===e)throw new Error(&quot;currentIndices is a required argument.&quot;);if(Array.isArray(e)||(e=[e]),P(t,e,&quot;currentIndices&quot;),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&amp;&amp;P(t,r,&quot;newIndices&quot;),void 0!==r&amp;&amp;e.length!==r.length)throw new Error(&quot;current and new indices must be of equal length.&quot;)}function O(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array&quot;);if(!o.isPlainObject(e))throw new Error(&quot;update must be a key:value object&quot;);if(void 0===r)throw new Error(&quot;indices must be an integer or array of integers&quot;);for(var a in P(t,r,&quot;indices&quot;),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(&quot;attribute &quot;+a+&quot; must be an array of length equal to indices array length&quot;);if(i&amp;&amp;(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(&quot;when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object&quot;)}}(t,e,r,n);for(var l=function(t,e,r,n){var a,l,c,u,f,h=o.isPlainObject(n),p=[];for(var d in Array.isArray(r)||(r=[r]),r=C(r,t.data.length-1),e)for(var g=0;g&lt;r.length;g++){if(a=t.data[r[g]],l=(c=s(a,d)).get(),u=e[d][g],!o.isArrayOrTypedArray(u))throw new Error(&quot;attribute: &quot;+d+&quot; index: &quot;+g+&quot; must be an array&quot;);if(!o.isArrayOrTypedArray(l))throw new Error(&quot;cannot extend missing or non-array attribute: &quot;+d);if(l.constructor!==u.constructor)throw new Error(&quot;cannot extend array with an array of a different type: &quot;+d);f=h?n[d][g]:n,i(f)||(f=-1),p.push({prop:c,target:l,insert:u,maxp:Math.floor(f)})}return p}(t,e,r,n),c={},u={},f=0;f&lt;l.length;f++){var h=l[f].prop,p=l[f].maxp,d=a(l[f].target,l[f].insert,p);h.set(d[0]),Array.isArray(c[h.astr])||(c[h.astr]=[]),c[h.astr].push(d[1]),Array.isArray(u[h.astr])||(u[h.astr]=[]),u[h.astr].push(l[f].target.length)}return{update:c,maxPoints:u}}function z(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function D(t,e,n,i){t=o.getGraphDiv(t),_.clearPromiseQueue(t);var a={};if(&quot;string&quot;==typeof e)a[e]=n;else{if(!o.isPlainObject(e))return o.warn(&quot;Restyle fail.&quot;,e,n,i),Promise.reject();a=o.extendFlat({},e),void 0===i&amp;&amp;(i=n)}Object.keys(a).length&amp;&amp;(t.changed=!0);var s=_.coerceTraceIndices(t,i),l=N(t,a,s),u=l.flags;u.calc&amp;&amp;(t.calcdata=void 0),u.clearAxisTypes&amp;&amp;_.clearAxisTypes(t,s,{});var f=[];u.fullReplot?f.push(r._doPlot):(f.push(h.previousPromises),h.supplyDefaults(t),u.markerSize&amp;&amp;(h.doCalcdata(t),q(f)),u.style&amp;&amp;f.push(w.doTraceStyle),u.colorbars&amp;&amp;f.push(w.doColorBars),f.push(M)),f.push(h.rehover,h.redrag),c.add(t,D,[t,l.undoit,l.traces],D,[t,l.redoit,l.traces]);var p=o.syncOrAsync(f,t);return p&amp;&amp;p.then||(p=Promise.resolve()),p.then((function(){return t.emit(&quot;plotly_restyle&quot;,l.eventData),t}))}function R(t){return void 0===t?null:t}function F(t,e){return e?function(e,r,n){var i=s(e,r),a=i.set;return i.set=function(e){B((n||&quot;&quot;)+r,i.get(),e,t),a(e)},i}:s}function B(t,e,r,n){if(Array.isArray(e)||Array.isArray(r))for(var i=Array.isArray(e)?e:[],a=Array.isArray(r)?r:[],s=Math.max(i.length,a.length),l=0;l&lt;s;l++)B(t+&quot;[&quot;+l+&quot;]&quot;,i[l],a[l],n);else if(o.isPlainObject(e)||o.isPlainObject(r)){var c=o.isPlainObject(e)?e:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var h in f)B(t+&quot;.&quot;+h,c[h],u[h],n)}else void 0===n[t]&amp;&amp;(n[t]=R(e))}function N(t,e,r){var n,i=t._fullLayout,a=t._fullData,l=t.data,c=i._guiEditing,d=F(i._preGUI,c),g=o.extendDeepAll({},e);j(e);var m,v=T.traceFlags(),y={},x={};function b(){return r.map((function(){}))}function w(t){var e=p.id2name(t);-1===m.indexOf(e)&amp;&amp;m.push(e)}function k(t){return&quot;LAYOUT&quot;+t+&quot;.autorange&quot;}function A(t){return&quot;LAYOUT&quot;+t+&quot;.range&quot;}function M(t){for(var e=t;e&lt;a.length;e++)if(a[e]._input===l[t])return a[e]}function S(n,a,o){if(Array.isArray(n))n.forEach((function(t){S(t,a,o)}));else if(!(n in e)&amp;&amp;!_.hasParent(e,n)){var s;if(&quot;LAYOUT&quot;===n.substr(0,6))s=d(t.layout,n.replace(&quot;LAYOUT&quot;,&quot;&quot;));else{var u=r[o];s=F(i._tracePreGUI[M(u)._fullInput.uid],c)(l[u],n)}n in x||(x[n]=b()),void 0===x[n][o]&amp;&amp;(x[n][o]=R(s.get())),void 0!==a&amp;&amp;s.set(a)}}function E(t){return function(e){return a[e][t]}}function L(t){return function(e,n){return!1===e?a[r[n]][t]:null}}for(var C in e){if(_.hasParent(e,C))throw new Error(&quot;cannot set &quot;+C+&quot; and a parent attribute simultaneously&quot;);var P,I,O,z,D,B,N=e[C];if(&quot;autobinx&quot;!==C&amp;&amp;&quot;autobiny&quot;!==C||(C=C.charAt(C.length-1)+&quot;bins&quot;,N=Array.isArray(N)?N.map(L(C)):!1===N?r.map(E(C)):null),y[C]=N,&quot;LAYOUT&quot;!==C.substr(0,6)){for(x[C]=b(),n=0;n&lt;r.length;n++){if(P=l[r[n]],I=M(r[n]),z=(O=F(i._tracePreGUI[I._fullInput.uid],c)(P,C)).get(),void 0!==(D=Array.isArray(N)?N[n%N.length]:N)){var U=O.parts[O.parts.length-1],V=C.substr(0,C.length-U.length-1),q=V?V+&quot;.&quot;:&quot;&quot;,H=V?s(I,V).get():I;if((B=f.getTraceValObject(I,O.parts))&amp;&amp;B.impliedEdits&amp;&amp;null!==D)for(var G in B.impliedEdits)S(o.relativeAttr(C,G),B.impliedEdits[G],n);else if(&quot;thicknessmode&quot;!==U&amp;&amp;&quot;lenmode&quot;!==U||z===D||&quot;fraction&quot;!==D&amp;&amp;&quot;pixels&quot;!==D||!H){if(&quot;type&quot;===C&amp;&amp;(&quot;pie&quot;===D!=(&quot;pie&quot;===z)||&quot;funnelarea&quot;===D!=(&quot;funnelarea&quot;===z))){var Y=&quot;x&quot;,W=&quot;y&quot;;&quot;bar&quot;!==D&amp;&amp;&quot;bar&quot;!==z||&quot;h&quot;!==P.orientation||(Y=&quot;y&quot;,W=&quot;x&quot;),o.swapAttrs(P,[&quot;?&quot;,&quot;?src&quot;],&quot;labels&quot;,Y),o.swapAttrs(P,[&quot;d?&quot;,&quot;?0&quot;],&quot;label&quot;,Y),o.swapAttrs(P,[&quot;?&quot;,&quot;?src&quot;],&quot;values&quot;,W),&quot;pie&quot;===z||&quot;funnelarea&quot;===z?(s(P,&quot;marker.color&quot;).set(s(P,&quot;marker.colors&quot;).get()),i._pielayer.selectAll(&quot;g.trace&quot;).remove()):u.traceIs(P,&quot;cartesian&quot;)&amp;&amp;s(P,&quot;marker.colors&quot;).set(s(P,&quot;marker.color&quot;).get())}}else{var X=i._size,Z=H.orient,J=&quot;top&quot;===Z||&quot;bottom&quot;===Z;if(&quot;thicknessmode&quot;===U){var K=J?X.h:X.w;S(q+&quot;thickness&quot;,H.thickness*(&quot;fraction&quot;===D?1/K:K),n)}else{var Q=J?X.w:X.h;S(q+&quot;len&quot;,H.len*(&quot;fraction&quot;===D?1/Q:Q),n)}}x[C][n]=R(z);if(-1!==[&quot;swapxy&quot;,&quot;swapxyaxes&quot;,&quot;orientation&quot;,&quot;orientationaxes&quot;].indexOf(C)){if(&quot;orientation&quot;===C){O.set(D);var $=P.x&amp;&amp;!P.y?&quot;h&quot;:&quot;v&quot;;if((O.get()||$)===I.orientation)continue}else&quot;orientationaxes&quot;===C&amp;&amp;(P.orientation={v:&quot;h&quot;,h:&quot;v&quot;}[I.orientation]);_.swapXYData(P),v.calc=v.clearAxisTypes=!0}else-1!==h.dataArrayContainers.indexOf(O.parts[0])?(_.manageArrayContainers(O,D,x),v.calc=!0):(B?B.arrayOk&amp;&amp;!u.traceIs(I,&quot;regl&quot;)&amp;&amp;(o.isArrayOrTypedArray(D)||o.isArrayOrTypedArray(z))?v.calc=!0:T.update(v,B):v.calc=!0,O.set(D))}}if(-1!==[&quot;swapxyaxes&quot;,&quot;orientationaxes&quot;].indexOf(C)&amp;&amp;p.swap(t,r),&quot;orientationaxes&quot;===C){var tt=s(t.layout,&quot;hovermode&quot;),et=tt.get();&quot;x&quot;===et?tt.set(&quot;y&quot;):&quot;y&quot;===et?tt.set(&quot;x&quot;):&quot;x unified&quot;===et?tt.set(&quot;y unified&quot;):&quot;y unified&quot;===et&amp;&amp;tt.set(&quot;x unified&quot;)}if(-1!==[&quot;orientation&quot;,&quot;type&quot;].indexOf(C)){for(m=[],n=0;n&lt;r.length;n++){var rt=l[r[n]];u.traceIs(rt,&quot;cartesian&quot;)&amp;&amp;(w(rt.xaxis||&quot;x&quot;),w(rt.yaxis||&quot;y&quot;))}S(m.map(k),!0,0),S(m.map(A),[0,1],0)}}else O=d(t.layout,C.replace(&quot;LAYOUT&quot;,&quot;&quot;)),x[C]=[R(O.get())],O.set(Array.isArray(N)?N[0]:N),v.calc=!0}return(v.calc||v.plot)&amp;&amp;(v.fullReplot=!0),{flags:v,undoit:x,redoit:y,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function j(t){var e,r,n,i=o.counterRegex(&quot;axis&quot;,&quot;.title&quot;,!1,!1),a=/colorbar\.title$/,s=Object.keys(t);for(e=0;e&lt;s.length;e++)r=s[e],n=t[r],&quot;title&quot;!==r&amp;&amp;!i.test(r)&amp;&amp;!a.test(r)||&quot;string&quot;!=typeof n&amp;&amp;&quot;number&quot;!=typeof n?r.indexOf(&quot;titlefont&quot;)&gt;-1?l(r,r.replace(&quot;titlefont&quot;,&quot;title.font&quot;)):r.indexOf(&quot;titleposition&quot;)&gt;-1?l(r,r.replace(&quot;titleposition&quot;,&quot;title.position&quot;)):r.indexOf(&quot;titleside&quot;)&gt;-1?l(r,r.replace(&quot;titleside&quot;,&quot;title.side&quot;)):r.indexOf(&quot;titleoffset&quot;)&gt;-1&amp;&amp;l(r,r.replace(&quot;titleoffset&quot;,&quot;title.offset&quot;)):l(r,r.replace(&quot;title&quot;,&quot;title.text&quot;));function l(e,r){t[r]=t[e],delete t[e]}}function U(t,e,r){t=o.getGraphDiv(t),_.clearPromiseQueue(t);var n={};if(&quot;string&quot;==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn(&quot;Relayout fail.&quot;,e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&amp;&amp;(t.changed=!0);var i=W(t,n),a=i.flags;a.calc&amp;&amp;(t.calcdata=void 0);var s=[h.previousPromises];a.layoutReplot?s.push(w.layoutReplot):Object.keys(n).length&amp;&amp;(V(t,a,i)||h.supplyDefaults(t),a.legend&amp;&amp;s.push(w.doLegend),a.layoutstyle&amp;&amp;s.push(w.layoutStyles),a.axrange&amp;&amp;q(s,i.rangesAltered),a.ticks&amp;&amp;s.push(w.doTicksRelayout),a.modebar&amp;&amp;s.push(w.doModeBar),a.camera&amp;&amp;s.push(w.doCamera),a.colorbars&amp;&amp;s.push(w.doColorBars),s.push(M)),s.push(h.rehover,h.redrag),c.add(t,U,[t,i.undoit],U,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&amp;&amp;l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit(&quot;plotly_relayout&quot;,i.eventData),t}))}function V(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if(&quot;axrange&quot;!==i&amp;&amp;e[i])return!1;for(var a in r.rangesAltered){var o=p.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&amp;&amp;(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[p.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function q(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=p.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;a._anchorAxis&amp;&amp;r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o);a.automargin&amp;&amp;(n=!1)}return p.draw(t,r,{skipTitle:n})}:function(t){return p.draw(t,&quot;redraw&quot;)};t.push(y,w.doAutoRangeAndConstraints,r,w.drawData,w.finalDraw)}var H=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,G=/^[xyz]axis[0-9]*\.autorange$/,Y=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function W(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,h=F(l._preGUI,c),d=Object.keys(e),g=p.list(t),m=o.extendDeepAll({},e),v={};for(j(e),d=Object.keys(e),n=0;n&lt;d.length;n++)if(0===d[n].indexOf(&quot;allaxes&quot;)){for(i=0;i&lt;g.length;i++){var y=g[i]._id.substr(1),x=-1!==y.indexOf(&quot;scene&quot;)?y+&quot;.&quot;:&quot;&quot;,w=d[n].replace(&quot;allaxes&quot;,x+g[i]._name);e[w]||(e[w]=e[d[n]])}delete e[d[n]]}var A=T.layoutFlags(),M={},S={};function E(t,r){if(Array.isArray(t))t.forEach((function(t){E(t,r)}));else if(!(t in e)&amp;&amp;!_.hasParent(e,t)){var n=h(a,t);t in S||(S[t]=R(n.get())),void 0!==r&amp;&amp;n.set(r)}}var L,C={};function P(t){var e=p.name2id(t.split(&quot;.&quot;)[0]);return C[e]=1,e}for(var I in e){if(_.hasParent(e,I))throw new Error(&quot;cannot set &quot;+I+&quot; and a parent attribute simultaneously&quot;);for(var O=h(a,I),z=e[I],D=O.parts.length-1;D&gt;0&amp;&amp;&quot;string&quot;!=typeof O.parts[D];)D--;var B=O.parts[D],N=O.parts[D-1]+&quot;.&quot;+B,U=O.parts.slice(0,D).join(&quot;.&quot;),V=s(t.layout,U).get(),q=s(l,U).get(),W=O.get();if(void 0!==z){M[I]=z,S[I]=&quot;reverse&quot;===B?z:R(W);var Z=f.getLayoutValObject(l,O.parts);if(Z&amp;&amp;Z.impliedEdits&amp;&amp;null!==z)for(var J in Z.impliedEdits)E(o.relativeAttr(I,J),Z.impliedEdits[J]);if(-1!==[&quot;width&quot;,&quot;height&quot;].indexOf(I))if(z){E(&quot;autosize&quot;,null);var K=&quot;height&quot;===I?&quot;width&quot;:&quot;height&quot;;E(K,l[K])}else l[I]=t._initialAutoSize[I];else if(&quot;autosize&quot;===I)E(&quot;width&quot;,z?null:l.width),E(&quot;height&quot;,z?null:l.height);else if(N.match(H))P(N),s(l,U+&quot;._inputRange&quot;).set(null);else if(N.match(G)){P(N),s(l,U+&quot;._inputRange&quot;).set(null);var Q=s(l,U).get();Q._inputDomain&amp;&amp;(Q._input.domain=Q._inputDomain.slice())}else N.match(Y)&amp;&amp;s(l,U+&quot;._inputDomain&quot;).set(null);if(&quot;type&quot;===B){L=V;var $=&quot;linear&quot;===q.type&amp;&amp;&quot;log&quot;===z,tt=&quot;log&quot;===q.type&amp;&amp;&quot;linear&quot;===z;if($||tt){if(L&amp;&amp;L.range)if(q.autorange)$&amp;&amp;(L.range=L.range[1]&gt;L.range[0]?[1,2]:[2,1]);else{var et=L.range[0],rt=L.range[1];$?(et&lt;=0&amp;&amp;rt&lt;=0&amp;&amp;E(U+&quot;.autorange&quot;,!0),et&lt;=0?et=rt/1e6:rt&lt;=0&amp;&amp;(rt=et/1e6),E(U+&quot;.range[0]&quot;,Math.log(et)/Math.LN10),E(U+&quot;.range[1]&quot;,Math.log(rt)/Math.LN10)):(E(U+&quot;.range[0]&quot;,Math.pow(10,et)),E(U+&quot;.range[1]&quot;,Math.pow(10,rt)))}else E(U+&quot;.autorange&quot;,!0);Array.isArray(l._subplots.polar)&amp;&amp;l._subplots.polar.length&amp;&amp;l[O.parts[0]]&amp;&amp;&quot;radialaxis&quot;===O.parts[1]&amp;&amp;delete l[O.parts[0]]._subplot.viewInitial[&quot;radialaxis.range&quot;],u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,q,z,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,q,z,E)}else E(U+&quot;.autorange&quot;,!0),E(U+&quot;.range&quot;,null);s(l,U+&quot;._inputRange&quot;).set(null)}else if(B.match(k)){var nt=s(l,I).get(),it=(z||{}).type;it&amp;&amp;&quot;-&quot;!==it||(it=&quot;linear&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,nt,it,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,nt,it,E)}var at=b.containerArrayMatch(I);if(at){r=at.array,n=at.index;var ot=at.property,st=Z||{editType:&quot;calc&quot;};&quot;&quot;!==n&amp;&amp;&quot;&quot;===ot&amp;&amp;(b.isAddVal(z)?S[I]=null:b.isRemoveVal(z)?S[I]=(s(a,r).get()||[])[n]:o.warn(&quot;unrecognized full object value&quot;,e)),T.update(A,st),v[r]||(v[r]={});var lt=v[r][n];lt||(lt=v[r][n]={}),lt[ot]=z,delete e[I]}else&quot;reverse&quot;===B?(V.range?V.range.reverse():(E(U+&quot;.autorange&quot;,!0),V.range=[1,0]),q.autorange?A.calc=!0:A.plot=!0):(l._has(&quot;scatter-like&quot;)&amp;&amp;l._has(&quot;regl&quot;)&amp;&amp;&quot;dragmode&quot;===I&amp;&amp;(&quot;lasso&quot;===z||&quot;select&quot;===z)&amp;&amp;&quot;lasso&quot;!==W&amp;&amp;&quot;select&quot;!==W||l._has(&quot;gl2d&quot;)?A.plot=!0:Z?T.update(A,Z):A.calc=!0,O.set(z))}}for(r in v){b.applyContainerArrayChanges(t,h(a,r),v[r],A,h)||(A.plot=!0)}for(var ct in C){var ut=(L=p.getFromId(t,ct))&amp;&amp;L._constraintGroup;if(ut)for(var ft in A.calc=!0,ut)C[ft]||(p.getFromId(t,ft)._constraintShrinkable=!0)}return(X(t)||e.height||e.width)&amp;&amp;(A.plot=!0),(A.plot||A.calc)&amp;&amp;(A.layoutReplot=!0),{flags:A,rangesAltered:C,undoit:S,redoit:M,eventData:m}}function X(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&amp;&amp;h.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function Z(t,e,n,i){t=o.getGraphDiv(t),_.clearPromiseQueue(t),o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&amp;&amp;(t.changed=!0),Object.keys(n).length&amp;&amp;(t.changed=!0);var a=_.coerceTraceIndices(t,i),s=N(t,o.extendFlat({},e),a),l=s.flags,u=W(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&amp;&amp;(t.calcdata=void 0),l.clearAxisTypes&amp;&amp;_.clearAxisTypes(t,a,n);var p=[];f.layoutReplot?p.push(w.layoutReplot):l.fullReplot?p.push(r._doPlot):(p.push(h.previousPromises),V(t,f,u)||h.supplyDefaults(t),l.style&amp;&amp;p.push(w.doTraceStyle),(l.colorbars||f.colorbars)&amp;&amp;p.push(w.doColorBars),f.legend&amp;&amp;p.push(w.doLegend),f.layoutstyle&amp;&amp;p.push(w.layoutStyles),f.axrange&amp;&amp;q(p,u.rangesAltered),f.ticks&amp;&amp;p.push(w.doTicksRelayout),f.modebar&amp;&amp;p.push(w.doModeBar),f.camera&amp;&amp;p.push(w.doCamera),p.push(M)),p.push(h.rehover,h.redrag),c.add(t,Z,[t,s.undoit,u.undoit,s.traces],Z,[t,s.redoit,u.redoit,s.traces]);var d=o.syncOrAsync(p,t);return d&amp;&amp;d.then||(d=Promise.resolve(t)),d.then((function(){return t.emit(&quot;plotly_update&quot;,{data:s.eventData,layout:u.eventData}),t}))}function J(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var K=[{pattern:/^hiddenlabels/,attr:&quot;legend.uirevision&quot;},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:&quot;modebar.uirevision&quot;},{pattern:/(hover|drag)mode$/,attr:&quot;modebar.uirevision&quot;},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:&quot;editrevision&quot;},{pattern:/^(shapes|annotations)/,attr:&quot;editrevision&quot;},{pattern:/^title\.text$/,attr:&quot;editrevision&quot;}],Q=[{pattern:/^selectedpoints$/,attr:&quot;selectionrevision&quot;},{pattern:/(^|value\.)visible$/,attr:&quot;legend.uirevision&quot;},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:&quot;editrevision&quot;}];function $(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=t.match(n.pattern);if(i)return{head:i[1],attr:n.attr}}}function tt(t,e){var r=s(e,t).get();if(void 0!==r)return r;var n=t.split(&quot;.&quot;);for(n.pop();n.length&gt;1;)if(n.pop(),void 0!==(r=s(e,n.join(&quot;.&quot;)+&quot;.uirevision&quot;).get()))return r;return e.uirevision}function et(t,e){for(var r=0;r&lt;e.length;r++)if(e[r]._fullInput.uid===t)return r;return-1}function rt(t,e,r){for(var n=0;n&lt;e.length;n++)if(e[n].uid===t)return n;return!e[r]||e[r].uid?-1:r}function nt(t,e){var r=o.isPlainObject(t),n=Array.isArray(t);return r||n?(r&amp;&amp;o.isPlainObject(e)||n&amp;&amp;Array.isArray(e))&amp;&amp;JSON.stringify(t)===JSON.stringify(e):t===e}function it(t,e,r,n){var i,a,l,c=n.getValObject,u=n.flags,f=n.immutable,h=n.inArray,p=n.arrayIndex;function d(){var t=i.editType;h&amp;&amp;-1!==t.indexOf(&quot;arraydraw&quot;)?o.pushUnique(u.arrays[h],p):(T.update(u,i),&quot;none&quot;!==t&amp;&amp;u.nChanges++,n.transition&amp;&amp;i.anim&amp;&amp;u.nChangesAnim++,(H.test(l)||G.test(l))&amp;&amp;(u.rangesAltered[r[0]]=1),Y.test(l)&amp;&amp;s(e,&quot;_inputDomain&quot;).set(null),&quot;datarevision&quot;===a&amp;&amp;(u.newDataRevision=1))}function g(t){return&quot;data_array&quot;===t.valType||t.arrayOk}for(a in t){if(u.calc&amp;&amp;!n.transition)return;var m=t[a],v=e[a],y=r.concat(a);if(l=y.join(&quot;.&quot;),&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof m&amp;&amp;m!==v){if((&quot;tick0&quot;===a||&quot;dtick&quot;===a)&amp;&amp;&quot;geo&quot;!==r[0]){var x=e.tickmode;if(&quot;auto&quot;===x||&quot;array&quot;===x||!x)continue}if((&quot;range&quot;!==a||!e.autorange)&amp;&amp;(&quot;zmin&quot;!==a&amp;&amp;&quot;zmax&quot;!==a||&quot;contourcarpet&quot;!==e.type)&amp;&amp;(i=c(y))&amp;&amp;(!i._compareAsJSON||JSON.stringify(m)!==JSON.stringify(v))){var b,_=i.valType,w=g(i),k=Array.isArray(m),A=Array.isArray(v);if(k&amp;&amp;A){var M=&quot;_input_&quot;+a,S=t[M],E=e[M];if(Array.isArray(S)&amp;&amp;S===E)continue}if(void 0===v)w&amp;&amp;k?u.calc=!0:d();else if(i._isLinkedToArray){var L=[],C=!1;h||(u.arrays[a]=L);var P=Math.min(m.length,v.length),I=Math.max(m.length,v.length);if(P!==I){if(&quot;arraydraw&quot;!==i.editType){d();continue}C=!0}for(b=0;b&lt;P;b++)it(m[b],v[b],y.concat(b),o.extendFlat({inArray:a,arrayIndex:b},n));if(C)for(b=P;b&lt;I;b++)L.push(b)}else!_&amp;&amp;o.isPlainObject(m)?it(m,v,y,n):w?k&amp;&amp;A?(f&amp;&amp;(u.calc=!0),(f||n.newDataRevision)&amp;&amp;d()):k!==A?u.calc=!0:d():k&amp;&amp;A&amp;&amp;m.length===v.length&amp;&amp;String(m)===String(v)||d()}}}for(a in e)if(!(a in t)&amp;&amp;&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof e[a]){if(g(i=c(r.concat(a)))&amp;&amp;Array.isArray(e[a]))return void(u.calc=!0);d()}}function at(t){var e=t._fullLayout,r=t.getBoundingClientRect();if(!o.equalDomRects(r,e._lastBBox)){var n=e._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(t));e._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),e._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),e._lastBBox=r}}r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/&quot;);var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=h.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t&gt;=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t&gt;=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&amp;&amp;++r===e)return t()}}return void 0===n._frameWaitingCnt&amp;&amp;(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){n._currentFrame&amp;&amp;n._currentFrame.onComplete&amp;&amp;n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,h.transition(t,e.frame.data,e.frame.layout,_.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&amp;&amp;e.onComplete()})),t.emit(&quot;plotly_animatingframe&quot;,{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(&quot;plotly_animated&quot;),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(&quot;plotly_animating&quot;),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt&gt;n._timeToNext&amp;&amp;f()};e()}var d,g,m=0;function v(t){return Array.isArray(i)?m&gt;=i.length?t.transitionOpts=i[m]:t.transitionOpts=i[0]:t.transitionOpts=i,m++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&amp;&amp;!b&amp;&amp;o.isPlainObject(e))y.push({type:&quot;object&quot;,data:v(o.extendFlat({},e))});else if(x||-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e))for(d=0;d&lt;n._frames.length;d++)(g=n._frames[d])&amp;&amp;(x||String(g.group)===String(e))&amp;&amp;y.push({type:&quot;byname&quot;,name:String(g.name),data:v({name:g.name})});else if(b)for(d=0;d&lt;e.length;d++){var w=e[d];-1!==[&quot;number&quot;,&quot;string&quot;].indexOf(typeof w)?(w=String(w),y.push({type:&quot;byname&quot;,name:w,data:v({name:w})})):o.isPlainObject(w)&amp;&amp;y.push({type:&quot;object&quot;,data:v(o.extendFlat({},w))})}for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: &quot;'+g.data.name+'&quot;'),void u();-1!==[&quot;next&quot;,&quot;immediate&quot;].indexOf(r.mode)&amp;&amp;function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&amp;&amp;e.onInterrupt()}t.emit(&quot;plotly_animationinterrupted&quot;,[])}}(),&quot;reverse&quot;===r.direction&amp;&amp;y.reverse();var T=t._fullLayout._currentFrame;if(T&amp;&amp;r.fromcurrent){var k=-1;for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;g.name===T){k=d;break}if(k&gt;0&amp;&amp;k&lt;y.length-1){var A=[];for(d=0;d&lt;y.length;d++)g=y[d],(&quot;byname&quot;!==y[d].type||d&gt;k)&amp;&amp;A.push(g);y=A}}y.length&gt;0?function(e){if(0!==e.length){for(var i=0;i&lt;e.length;i++){var o;o=&quot;byname&quot;===e[i].type?h.computeFrame(t,e[i].name):e[i].data;var f=l(i),d=s(i);d.duration=Math.min(d.duration,f.duration);var g={frame:o,name:e[i].name,frameOpts:f,transitionOpts:d};i===e.length-1&amp;&amp;(g.onComplete=c(a,2),g.onInterrupt=u),n._frameQueue.push(g)}&quot;immediate&quot;===r.mode&amp;&amp;(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(&quot;plotly_animated&quot;),a())}))},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/&quot;);var n,i,a,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(&quot;addFrames failure: frameList must be an Array of frame definitions&quot;+e);var f=l.length+2*e.length,p=[],d={};for(n=e.length-1;n&gt;=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,m=(u[g]||d[g]||{}).name,v=e[n].name,y=u[m]||d[m];m&amp;&amp;v&amp;&amp;&quot;number&quot;==typeof v&amp;&amp;y&amp;&amp;A&lt;5&amp;&amp;(A++,o.warn('addFrames: overwriting frame &quot;'+(u[m]||d[m]).name+'&quot; with a frame whose name of type &quot;number&quot; also equates to &quot;'+m+'&quot;. This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===A&amp;&amp;o.warn(&quot;addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.&quot;)),d[g]={name:g},p.push({frame:h.supplyFrameDefaults(e[n]),index:r&amp;&amp;void 0!==r[n]&amp;&amp;null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index&gt;e.index?-1:t.index&lt;e.index?1:0}));var x=[],b=[],_=l.length;for(n=p.length-1;n&gt;=0;n--){if(&quot;number&quot;==typeof(i=p[n].frame).name&amp;&amp;o.warn(&quot;Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings&quot;),!i.name)for(;u[i.name=&quot;frame &quot;+t._transitionData._counter++];);if(u[i.name]){for(a=0;a&lt;l.length&amp;&amp;(l[a]||{}).name!==i.name;a++);x.push({type:&quot;replace&quot;,index:a,value:i}),b.unshift({type:&quot;replace&quot;,index:a,value:l[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:&quot;insert&quot;,index:s,value:i}),b.unshift({type:&quot;delete&quot;,index:s}),_++}var w=h.modifyFrames,T=h.modifyFrames,k=[t,b],M=[t,x];return c&amp;&amp;c.add(t,w,k,T,M),h.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r&lt;i.length;r++)e.push(r);for((e=e.slice()).sort(),r=e.length-1;r&gt;=0;r--)n=e[r],a.push({type:&quot;delete&quot;,index:n}),s.unshift({type:&quot;insert&quot;,index:n,value:i[n]});var l=h.modifyFrames,u=h.modifyFrames,f=[t,s],p=[t,a];return c&amp;&amp;c.add(t,l,f,u,p),h.modifyFrames(t,a)},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,l=[],u=r.deleteTraces,f=t,h=[e,l],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(void 0===e)throw new Error(&quot;traces must be defined.&quot;);for(Array.isArray(e)||(e=[e]),n=0;n&lt;e.length;n++)if(&quot;object&quot;!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(&quot;all values in traces array must be non-array objects&quot;);if(void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&amp;&amp;r.length!==e.length)throw new Error(&quot;if indices is specified, traces.length must equal indices.length&quot;)}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map((function(t){return o.extendFlat({},t)})),_.cleanData(n),a=0;a&lt;n.length;a++)e.data.push(n[a]);for(a=0;a&lt;n.length;a++)l.push(-n.length+a);if(void 0===i)return s=r.redraw(e),c.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{I(e,l,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return c.startSequence(e),c.add(e,u,h,f,p),s=r.moveTraces(e,l,i),c.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],l=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(void 0===n)throw new Error(&quot;indices must be an integer or array of integers.&quot;);for(Array.isArray(n)||(n=[n]),P(e,n,&quot;indices&quot;),(n=C(n,e.data.length-1)).sort(o.sorterDes),i=0;i&lt;n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return c.add(e,l,f,u,h),p},r.extendTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;0){var a=new t.constructor(0),s=z(t,e);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(0,n.length-r):[];return[n,i]}var l=O(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.prependTraces,f,t,arguments),u},r.moveTraces=function t(e,n,i){var a,s=[],l=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(I(e,n,i),n=Array.isArray(n)?n:[n],void 0===i)for(i=[],a=0;a&lt;n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=C(n,e.data.length-1),i=C(i,e.data.length-1),a=0;a&lt;e.data.length;a++)-1===n.indexOf(a)&amp;&amp;s.push(e.data[a]);for(a=0;a&lt;n.length;a++)l.push({newIndex:i[a],trace:e.data[n[a]]});for(l.sort((function(t,e){return t.newIndex-e.newIndex})),a=0;a&lt;l.length;a+=1)s.splice(l[a].newIndex,0,l[a].trace);e.data=s;var d=r.redraw(e);return c.add(e,u,h,f,p),d},r.prependTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;=0){var a=new t.constructor(0),s=z(e,t);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(r,n.length):[];return[n,i]}var l=O(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.extendTraces,f,t,arguments),u},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),h.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),h.purge(t),r._doPlot(t,e,n,i)},r._doPlot=function(t,e,i,a){var s;if(t=o.getGraphDiv(t),l.init(t),o.isPlainObject(e)){var c=e;e=c.data,i=c.layout,a=c.config,s=c.frames}if(!1===l.triggerHandler(t,&quot;plotly_beforeplot&quot;,[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(&quot;Calling _doPlot as if redrawing but this container doesn't yet have a plot.&quot;,t),L(t,a),i||(i={}),n.select(t).classed(&quot;js-plotly-plot&quot;,!0),d.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var f=0===(t.data||[]).length&amp;&amp;Array.isArray(e);Array.isArray(e)&amp;&amp;(_.cleanData(e),f?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&amp;&amp;!f||(t.layout=_.cleanLayout(i)),h.supplyDefaults(t);var g=t._fullLayout,y=g._has(&quot;cartesian&quot;);g._replotting=!0,(f||g._shouldCreateBgLayer)&amp;&amp;(!function(t){var e=n.select(t),r=t._fullLayout;if(r._calcInverseTransform=at,r._calcInverseTransform(t),r._container=e.selectAll(&quot;.plot-container&quot;).data([0]),r._container.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container&quot;,!0).classed(&quot;plotly&quot;,!0),r._paperdiv=r._container.selectAll(&quot;.svg-container&quot;).data([0]),r._paperdiv.enter().append(&quot;div&quot;).classed(&quot;user-select-none&quot;,!0).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),r._glcontainer=r._paperdiv.selectAll(&quot;.gl-container&quot;).data([{}]),r._glcontainer.enter().append(&quot;div&quot;).classed(&quot;gl-container&quot;,!0),r._paperdiv.selectAll(&quot;.main-svg&quot;).remove(),r._paperdiv.select(&quot;.modebar-container&quot;).remove(),r._paper=r._paperdiv.insert(&quot;svg&quot;,&quot;:first-child&quot;).classed(&quot;main-svg&quot;,!0),r._toppaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),r._modebardiv=r._paperdiv.append(&quot;div&quot;),delete r._modeBar,r._hoverpaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),!r._uid){var i={};n.selectAll(&quot;defs&quot;).each((function(){this.id&amp;&amp;(i[this.id.split(&quot;-&quot;)[1]]=1)})),r._uid=o.randstr(i)}r._paperdiv.selectAll(&quot;.main-svg&quot;).attr(v.svgAttrs),r._defs=r._paper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;defs-&quot;+r._uid),r._clips=r._defs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._topdefs=r._toppaper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;topdefs-&quot;+r._uid),r._topclips=r._topdefs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._bgLayer=r._paper.append(&quot;g&quot;).classed(&quot;bglayer&quot;,!0),r._draggers=r._paper.append(&quot;g&quot;).classed(&quot;draglayer&quot;,!0);var a=r._paper.append(&quot;g&quot;).classed(&quot;layer-below&quot;,!0);r._imageLowerLayer=a.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeLowerLayer=a.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._cartesianlayer=r._paper.append(&quot;g&quot;).classed(&quot;cartesianlayer&quot;,!0),r._polarlayer=r._paper.append(&quot;g&quot;).classed(&quot;polarlayer&quot;,!0),r._ternarylayer=r._paper.append(&quot;g&quot;).classed(&quot;ternarylayer&quot;,!0),r._geolayer=r._paper.append(&quot;g&quot;).classed(&quot;geolayer&quot;,!0),r._funnelarealayer=r._paper.append(&quot;g&quot;).classed(&quot;funnelarealayer&quot;,!0),r._pielayer=r._paper.append(&quot;g&quot;).classed(&quot;pielayer&quot;,!0),r._iciclelayer=r._paper.append(&quot;g&quot;).classed(&quot;iciclelayer&quot;,!0),r._treemaplayer=r._paper.append(&quot;g&quot;).classed(&quot;treemaplayer&quot;,!0),r._sunburstlayer=r._paper.append(&quot;g&quot;).classed(&quot;sunburstlayer&quot;,!0),r._indicatorlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;indicatorlayer&quot;,!0),r._glimages=r._paper.append(&quot;g&quot;).classed(&quot;glimages&quot;,!0);var s=r._toppaper.append(&quot;g&quot;).classed(&quot;layer-above&quot;,!0);r._imageUpperLayer=s.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeUpperLayer=s.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._infolayer=r._toppaper.append(&quot;g&quot;).classed(&quot;infolayer&quot;,!0),r._menulayer=r._toppaper.append(&quot;g&quot;).classed(&quot;menulayer&quot;,!0),r._zoomlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;zoomlayer&quot;,!0),r._hoverlayer=r._hoverpaper.append(&quot;g&quot;).classed(&quot;hoverlayer&quot;,!0),r._modebardiv.classed(&quot;modebar-container&quot;,!0).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;top&quot;,&quot;0px&quot;).style(&quot;right&quot;,&quot;0px&quot;),t.emit(&quot;plotly_framework&quot;)}(t),g._shouldCreateBgLayer&amp;&amp;delete g._shouldCreateBgLayer),d.initGradients(t),d.initPatterns(t),f&amp;&amp;p.saveShowSpikeInitial(t);var x=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;x&amp;&amp;h.doCalcdata(t);for(var b=0;b&lt;t.calcdata.length;b++)t.calcdata[b][0].trace=t._fullData[b];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){o.isHidden(t)||h.resize(t)},window.addEventListener(&quot;resize&quot;,t._responsiveChartHandler)):o.clearResponsive(t);var T=o.extendFlat({},g._size),k=0;function A(){if(h.clearAutoMarginIds(t),w.drawMarginPushers(t),p.allowAutoMargin(t),g._has(&quot;pie&quot;))for(var e=t._fullData,r=0;r&lt;e.length;r++){var n=e[r];&quot;pie&quot;===n.type&amp;&amp;n.automargin&amp;&amp;h.allowAutoMargin(t,&quot;pie.&quot;+n.uid+&quot;.automargin&quot;)}return h.doAutoMargin(t),h.previousPromises(t)}function S(){t._transitioning||(w.doAutoRangeAndConstraints(t),f&amp;&amp;p.saveRangeInitial(t),u.getComponentMethod(&quot;rangeslider&quot;,&quot;calcAutorange&quot;)(t))}var E=[h.previousPromises,function(){if(s)return r.addFrames(t,s)},function e(){for(var r=g._basePlotModules,n=0;n&lt;r.length;n++)r[n].drawFramework&amp;&amp;r[n].drawFramework(t);!g._glcanvas&amp;&amp;g._has(&quot;gl&quot;)&amp;&amp;(g._glcanvas=g._glcontainer.selectAll(&quot;.gl-canvas&quot;).data([{key:&quot;contextLayer&quot;,context:!0,pick:!1},{key:&quot;focusLayer&quot;,context:!1,pick:!1},{key:&quot;pickLayer&quot;,context:!1,pick:!0}],(function(t){return t.key})),g._glcanvas.enter().append(&quot;canvas&quot;).attr(&quot;class&quot;,(function(t){return&quot;gl-canvas gl-canvas-&quot;+t.key.replace(&quot;Layer&quot;,&quot;&quot;)})).style({position:&quot;absolute&quot;,top:0,left:0,overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;}));var i=t._context.plotGlPixelRatio;if(g._glcanvas){g._glcanvas.attr(&quot;width&quot;,g.width*i).attr(&quot;height&quot;,g.height*i).style(&quot;width&quot;,g.width+&quot;px&quot;).style(&quot;height&quot;,g.height+&quot;px&quot;);var a=g._glcanvas.data()[0].regl;if(a&amp;&amp;(Math.floor(g.width*i)!==a._gl.drawingBufferWidth||Math.floor(g.height*i)!==a._gl.drawingBufferHeight)){var s=&quot;WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.&quot;;if(!k)return o.log(s+&quot; Clearing graph and plotting again.&quot;),h.cleanPlot([],{},t._fullData,g),h.supplyDefaults(t),g=t._fullLayout,h.doCalcdata(t),k++,e();o.error(s)}}return&quot;h&quot;===g.modebar.orientation?g._modebardiv.style(&quot;height&quot;,null).style(&quot;width&quot;,&quot;100%&quot;):g._modebardiv.style(&quot;width&quot;,null).style(&quot;height&quot;,g.height+&quot;px&quot;),h.previousPromises(t)},A,function(){if(h.didMarginChange(T,g._size))return o.syncOrAsync([A,w.layoutStyles],t)}];y&amp;&amp;E.push((function(){if(x)return o.syncOrAsync([u.getComponentMethod(&quot;shapes&quot;,&quot;calcAutorange&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;calcAutorange&quot;),S],t);S()})),E.push(w.layoutStyles),y&amp;&amp;E.push((function(){return p.draw(t,f?&quot;&quot;:&quot;redraw&quot;)}),(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;U(t,t._fullLayout._insideTickLabelsAutorange).then((function(){t._fullLayout._insideTickLabelsAutorange=void 0}))})),E.push(w.drawData,w.finalDraw,m,h.addLinks,h.rehover,h.redrag,h.doAutoMargin,(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;f&amp;&amp;p.saveRangeInitial(t,!0)}),h.previousPromises);var C=o.syncOrAsync(E,t);return C&amp;&amp;C.then||(C=Promise.resolve()),C.then((function(){return M(t),t}))},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return h.cleanPlot([],{},r,e),h.purge(t),l.purge(t),e._container&amp;&amp;e._container.remove(),delete t._context,t},r.react=function(t,e,n,i){var a,l;t=o.getGraphDiv(t),_.clearPromiseQueue(t);var c=t._fullData,p=t._fullLayout;if(o.isPlotDiv(t)&amp;&amp;c&amp;&amp;p){if(o.isPlainObject(e)){var d=e;e=d.data,n=d.layout,i=d.config,a=d.frames}var g=!1;if(i){var m=o.extendDeep({},t._context);t._context=void 0,L(t,i),g=function t(e,r){var n;for(n in e)if(&quot;_&quot;!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&amp;&amp;o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s&lt;i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(m,t._context)}t.data=e||[],_.cleanData(t.data),t.layout=n||{},_.cleanLayout(t.layout),function(t,e,r,n){var i,a,l,c,u,f,h,p,d=n._preGUI,g=[],m={};for(i in d){if(u=$(i,K)){if(a=u.attr||u.head+&quot;.uirevision&quot;,(c=(l=s(n,a).get())&amp;&amp;tt(a,e))&amp;&amp;c===l&amp;&amp;(null===(f=d[i])&amp;&amp;(f=void 0),nt(p=(h=s(e,i)).get(),f))){void 0===p&amp;&amp;&quot;autorange&quot;===i.substr(i.length-9)&amp;&amp;g.push(i.substr(0,i.length-10)),h.set(R(s(n,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i);delete d[i],&quot;range[&quot;===i.substr(i.length-8,6)&amp;&amp;(m[i.substr(0,i.length-9)]=1)}for(var v=0;v&lt;g.length;v++){var y=g[v];if(m[y]){var x=s(e,y).get();x&amp;&amp;delete x.autorange}}var b=n._tracePreGUI;for(var _ in b){var w,T=b[_],k=null;for(i in T){if(!k){var A=et(_,r);if(A&lt;0){delete b[_];break}var M=rt(_,t,(w=r[A]._fullInput).index);if(M&lt;0){delete b[_];break}k=t[M]}if(u=$(i,Q)){if(u.attr?c=(l=s(n,u.attr).get())&amp;&amp;tt(u.attr,e):(l=w.uirevision,void 0===(c=k.uirevision)&amp;&amp;(c=e.uirevision)),c&amp;&amp;c===l&amp;&amp;(null===(f=T[i])&amp;&amp;(f=void 0),nt(p=(h=s(k,i)).get(),f))){h.set(R(s(w,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i+&quot; in trace uid &quot;+_);delete T[i]}}}(t.data,t.layout,c,p),h.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,y=t._fullLayout,x=void 0===y.datarevision,b=y.transition,k=function(t,e,r,n,i){var a=T.layoutFlags();function o(t){return f.getLayoutValObject(r,t)}a.arrays={},a.rangesAltered={},a.nChanges=0,a.nChangesAnim=0,it(e,r,[],{getValObject:o,flags:a,immutable:n,transition:i,gd:t}),(a.plot||a.calc)&amp;&amp;(a.layoutReplot=!0);i&amp;&amp;a.nChanges&amp;&amp;a.nChangesAnim&amp;&amp;(a.anim=a.nChanges===a.nChangesAnim?&quot;all&quot;:&quot;some&quot;);return a}(t,p,y,x,b),A=k.newDataRevision,S=function(t,e,r,n,i,a){var o=e.length===r.length;if(!i&amp;&amp;!o)return{fullReplot:!0,calc:!0};var s,l,c=T.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(t){var e=f.getTraceValObject(l,t);return!l._module.animatable&amp;&amp;e.anim&amp;&amp;(e.anim=!1),e},flags:c,immutable:n,transition:i,newDataRevision:a,gd:t},p={};for(s=0;s&lt;e.length;s++)if(r[s]){if(l=r[s]._fullInput,h.hasMakesDataTransform(l)&amp;&amp;(l=r[s]),p[l.uid])continue;p[l.uid]=1,it(e[s]._fullInput,l,[],u)}(c.calc||c.plot)&amp;&amp;(c.fullReplot=!0);i&amp;&amp;c.nChanges&amp;&amp;c.nChangesAnim&amp;&amp;(c.anim=c.nChanges===c.nChangesAnim&amp;&amp;o?&quot;all&quot;:&quot;some&quot;);return c}(t,c,v,x,b,A);if(X(t)&amp;&amp;(k.layoutReplot=!0),S.calc||k.calc){t.calcdata=void 0;for(var E=Object.getOwnPropertyNames(y),C=0;C&lt;E.length;C++){var P=E[C],I=P.substring(0,5);if(&quot;xaxis&quot;===I||&quot;yaxis&quot;===I){var O=y[P]._emptyCategories;O&amp;&amp;O()}}}else h.supplyDefaultsUpdateCalc(t.calcdata,v);var z=[];if(a&amp;&amp;(t._transitionData={},h.createTransitionData(t),z.push((function(){return r.addFrames(t,a)}))),y.transition&amp;&amp;!g&amp;&amp;(S.anim||k.anim))k.ticks&amp;&amp;z.push(w.doTicksRelayout),h.doCalcdata(t),w.doAutoRangeAndConstraints(t),z.push((function(){return h.transitionFromReact(t,S,k,p)}));else if(S.fullReplot||k.layoutReplot||g)t._fullLayout._skipDefaults=!0,z.push(r._doPlot);else{for(var D in k.arrays){var F=k.arrays[D];if(F.length){var B=u.getComponentMethod(D,&quot;drawOne&quot;);if(B!==o.noop)for(var N=0;N&lt;F.length;N++)B(t,F[N]);else{var j=u.getComponentMethod(D,&quot;draw&quot;);if(j===o.noop)throw new Error(&quot;cannot draw components: &quot;+D);j(t)}}}z.push(h.previousPromises),S.style&amp;&amp;z.push(w.doTraceStyle),(S.colorbars||k.colorbars)&amp;&amp;z.push(w.doColorBars),k.legend&amp;&amp;z.push(w.doLegend),k.layoutstyle&amp;&amp;z.push(w.layoutStyles),k.axrange&amp;&amp;q(z),k.ticks&amp;&amp;z.push(w.doTicksRelayout),k.modebar&amp;&amp;z.push(w.doModeBar),k.camera&amp;&amp;z.push(w.doCamera),z.push(M)}z.push(h.rehover,h.redrag),(l=o.syncOrAsync(z,t))&amp;&amp;l.then||(l=Promise.resolve(t))}else l=r.newPlot(t,e,n,i);return l.then((function(){return t.emit(&quot;plotly_react&quot;,{data:e,layout:n}),t}))},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);return _.cleanData(t.data),_.cleanLayout(t.layout),t.calcdata=void 0,r._doPlot(t).then((function(){return t.emit(&quot;plotly_redraw&quot;),t}))},r.relayout=U,r.restyle=D,r.setPlotConfig=function(t){return o.extendFlat(x,t)},r.update=Z,r._guiRelayout=J(U),r._guiRestyle=J(D),r._guiUpdate=J(Z),r._storeDirectGUIEdit=function(t,e,r){for(var n in r){B(n,s(t,n).get(),r[n],e)}}},{&quot;../components/color&quot;:666,&quot;../components/drawing&quot;:688,&quot;../constants/xmlns_namespaces&quot;:780,&quot;../lib&quot;:803,&quot;../lib/events&quot;:792,&quot;../lib/queue&quot;:819,&quot;../plots/cartesian/axes&quot;:854,&quot;../plots/cartesian/constants&quot;:861,&quot;../plots/cartesian/graph_interact&quot;:864,&quot;../plots/cartesian/select&quot;:874,&quot;../plots/plots&quot;:917,&quot;../registry&quot;:931,&quot;./edit_types&quot;:836,&quot;./helpers&quot;:837,&quot;./manage_arrays&quot;:839,&quot;./plot_config&quot;:841,&quot;./plot_schema&quot;:842,&quot;./subroutines&quot;:844,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249,&quot;has-hover&quot;:443}],841:[function(t,e,r){&quot;use strict&quot;;var n={staticPlot:{valType:&quot;boolean&quot;,dflt:!1},plotlyServerURL:{valType:&quot;string&quot;,dflt:&quot;&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1},edits:{annotationPosition:{valType:&quot;boolean&quot;,dflt:!1},annotationTail:{valType:&quot;boolean&quot;,dflt:!1},annotationText:{valType:&quot;boolean&quot;,dflt:!1},axisTitleText:{valType:&quot;boolean&quot;,dflt:!1},colorbarPosition:{valType:&quot;boolean&quot;,dflt:!1},colorbarTitleText:{valType:&quot;boolean&quot;,dflt:!1},legendPosition:{valType:&quot;boolean&quot;,dflt:!1},legendText:{valType:&quot;boolean&quot;,dflt:!1},shapePosition:{valType:&quot;boolean&quot;,dflt:!1},titleText:{valType:&quot;boolean&quot;,dflt:!1}},autosizable:{valType:&quot;boolean&quot;,dflt:!1},responsive:{valType:&quot;boolean&quot;,dflt:!1},fillFrame:{valType:&quot;boolean&quot;,dflt:!1},frameMargins:{valType:&quot;number&quot;,dflt:0,min:0,max:.5},scrollZoom:{valType:&quot;flaglist&quot;,flags:[&quot;cartesian&quot;,&quot;gl3d&quot;,&quot;geo&quot;,&quot;mapbox&quot;],extras:[!0,!1],dflt:&quot;gl3d+geo+mapbox&quot;},doubleClick:{valType:&quot;enumerated&quot;,values:[!1,&quot;reset&quot;,&quot;autosize&quot;,&quot;reset+autosize&quot;],dflt:&quot;reset+autosize&quot;},doubleClickDelay:{valType:&quot;number&quot;,dflt:300,min:0},showAxisDragHandles:{valType:&quot;boolean&quot;,dflt:!0},showAxisRangeEntryBoxes:{valType:&quot;boolean&quot;,dflt:!0},showTips:{valType:&quot;boolean&quot;,dflt:!0},showLink:{valType:&quot;boolean&quot;,dflt:!1},linkText:{valType:&quot;string&quot;,dflt:&quot;Edit chart&quot;,noBlank:!0},sendData:{valType:&quot;boolean&quot;,dflt:!0},showSources:{valType:&quot;any&quot;,dflt:!1},displayModeBar:{valType:&quot;enumerated&quot;,values:[&quot;hover&quot;,!0,!1],dflt:&quot;hover&quot;},showSendToCloud:{valType:&quot;boolean&quot;,dflt:!1},showEditInChartStudio:{valType:&quot;boolean&quot;,dflt:!1},modeBarButtonsToRemove:{valType:&quot;any&quot;,dflt:[]},modeBarButtonsToAdd:{valType:&quot;any&quot;,dflt:[]},modeBarButtons:{valType:&quot;any&quot;,dflt:!1},toImageButtonOptions:{valType:&quot;any&quot;,dflt:{}},displaylogo:{valType:&quot;boolean&quot;,dflt:!0},watermark:{valType:&quot;boolean&quot;,dflt:!1},plotGlPixelRatio:{valType:&quot;number&quot;,dflt:2,min:1,max:4},setBackground:{valType:&quot;any&quot;,dflt:&quot;transparent&quot;},topojsonURL:{valType:&quot;string&quot;,noBlank:!0,dflt:&quot;https://cdn.plot.ly/&quot;},mapboxAccessToken:{valType:&quot;string&quot;,dflt:null},logging:{valType:&quot;integer&quot;,min:0,max:2,dflt:1},notifyOnLogging:{valType:&quot;integer&quot;,min:0,max:2,dflt:0},queueLength:{valType:&quot;integer&quot;,min:0,dflt:0},globalTransforms:{valType:&quot;any&quot;,dflt:[]},locale:{valType:&quot;string&quot;,dflt:&quot;en-US&quot;},locales:{valType:&quot;any&quot;,dflt:{}}},i={};!function t(e,r){for(var n in e){var i=e[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),t(i,r[n]))}}(n,i),e.exports={configAttributes:n,dfltConfig:i}},{}],842:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../plots/layout_attributes&quot;),s=t(&quot;../plots/frame_attributes&quot;),l=t(&quot;../plots/animation_attributes&quot;),c=t(&quot;./plot_config&quot;).configAttributes,u=t(&quot;./edit_types&quot;),f=i.extendDeepAll,h=i.isPlainObject,p=i.isArrayOrTypedArray,d=i.nestedProperty,g=i.valObjectMeta,m=[&quot;_isSubplotObj&quot;,&quot;_isLinkedToArray&quot;,&quot;_arrayAttrRegexps&quot;,&quot;_deprecated&quot;];function v(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(y(e[r]))r++;else if(r&lt;e.length)return!1;for(;r&lt;e.length;r++){var n=t[e[r]];if(!h(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!y(e[++r]))return!1}else if(&quot;info_array&quot;===t.valType){var i=e[++r];if(!y(i))return!1;var a=t.items;if(Array.isArray(a)){if(i&gt;=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!y(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function y(t){return t===Math.round(t)&amp;&amp;t&gt;=0}function x(){var t,e,r={};for(t in f(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i&lt;e.attr.length;i++)w(r,e,e.attr[i]);else w(r,e,&quot;subplot&quot;===e.attr?e.name:e.attr)}for(t in n.componentsRegistry){var a=(e=n.componentsRegistry[t]).schema;if(a&amp;&amp;(a.subplots||a.layout)){var s=a.subplots;if(s&amp;&amp;s.xaxis&amp;&amp;!s.yaxis)for(var l in s.xaxis)delete r.yaxis[l]}else&quot;colorscale&quot;===e.name?f(r,e.layoutAttributes):e.layoutAttributes&amp;&amp;T(r,e.layoutAttributes,e.name)}return{layoutAttributes:_(r)}}function b(){var t={frames:f({},s)};return _(t),t.frames}function _(t){return function(t){r.crawl(t,(function(t,e,n){r.isValObject(t)?!0!==t.arrayOk&amp;&amp;&quot;data_array&quot;!==t.valType||(n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):h(t)&amp;&amp;(t.role=&quot;object&quot;)}))}(t),function(t){r.crawl(t,(function(t,e,r){if(t){var n=t._isLinkedToArray;n&amp;&amp;(delete t._isLinkedToArray,r[e]={items:{}},r[e].items[n]=t,r[e].role=&quot;object&quot;)}}))}(t),function(t){!function t(e){for(var r in e)if(h(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n&lt;e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&amp;&amp;(e[r]=e[r].toString())}(t)}(t),t}function w(t,e,r){var n=d(t,r),i=f({},e.layoutAttributes);i._isSubplotObj=!0,n.set(i)}function T(t,e,r){var n=d(t,r);n.set(f(n.get()||{},e))}r.IS_SUBPLOT_OBJ=&quot;_isSubplotObj&quot;,r.IS_LINKED_TO_ARRAY=&quot;_isLinkedToArray&quot;,r.DEPRECATED=&quot;_deprecated&quot;,r.UNDERSCORE_ATTRS=m,r.get=function(){var t={};n.allTypes.forEach((function(e){t[e]=function(t){var e,i;e=n.modules[t]._module,i=e.basePlotModule;var o={type:null},s=f({},a),l=f({},e.attributes);r.crawl(l,(function(t,e,r,n,i){d(s,i).set(void 0),void 0===t&amp;&amp;d(l,i).set(void 0)})),f(o,s),n.traceIs(t,&quot;noOpacity&quot;)&amp;&amp;delete o.opacity;n.traceIs(t,&quot;showLegend&quot;)||(delete o.showlegend,delete o.legendgroup);n.traceIs(t,&quot;noHover&quot;)&amp;&amp;(delete o.hoverinfo,delete o.hoverlabel);e.selectPoints||delete o.selectedpoints;f(o,l),i.attributes&amp;&amp;f(o,i.attributes);o.type=t;var c={meta:e.meta||{},categories:e.categories||{},animatable:Boolean(e.animatable),type:t,attributes:_(o)};if(e.layoutAttributes){var u={};f(u,e.layoutAttributes),c.layoutAttributes=_(u)}e.animatable||r.crawl(c,(function(t){r.isValObject(t)&amp;&amp;&quot;anim&quot;in t&amp;&amp;delete t.anim}));return c}(e)}));var e={};return Object.keys(n.transformsRegistry).forEach((function(t){e[t]=function(t){var e=n.transformsRegistry[t],r=f({},e.attributes);return Object.keys(n.componentsRegistry).forEach((function(e){var i=n.componentsRegistry[e];i.schema&amp;&amp;i.schema.transforms&amp;&amp;i.schema.transforms[t]&amp;&amp;Object.keys(i.schema.transforms[t]).forEach((function(e){T(r,i.schema.transforms[t][e],e)}))})),{attributes:_(r)}}(t)})),{defs:{valObjects:g,metaKeys:m.concat([&quot;description&quot;,&quot;role&quot;,&quot;editType&quot;,&quot;impliedEdits&quot;]),editType:{traces:u.traces,layout:u.layout},impliedEdits:{}},traces:t,layout:x(),transforms:e,frames:b(),animation:_(l),config:_(c)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||&quot;&quot;,Object.keys(t).forEach((function(n){var o=t[n];if(-1===m.indexOf(n)){var s=(i?i+&quot;.&quot;:&quot;&quot;)+n;e(o,n,t,a,s),r.isValObject(o)||h(o)&amp;&amp;&quot;impliedEdits&quot;!==n&amp;&amp;r.crawl(o,e,a+1,s)}}))},r.isValObject=function(t){return t&amp;&amp;void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,i=[],o=[],s=[];function l(t,r,a,l){o=o.slice(0,l).concat([r]),s=s.slice(0,l).concat([t&amp;&amp;t._isLinkedToArray]),t&amp;&amp;(&quot;data_array&quot;===t.valType||!0===t.arrayOk)&amp;&amp;!(&quot;colorbar&quot;===o[l-1]&amp;&amp;(&quot;ticktext&quot;===r||&quot;tickvals&quot;===r))&amp;&amp;function t(e,r,a){var l=e[o[r]],c=a+o[r];if(r===o.length-1)p(l)&amp;&amp;i.push(n+c);else if(s[r]){if(Array.isArray(l))for(var u=0;u&lt;l.length;u++)h(l[u])&amp;&amp;t(l[u],r+1,c+&quot;[&quot;+u+&quot;].&quot;)}else h(l)&amp;&amp;t(l,r+1,c+&quot;.&quot;)}(e,0,&quot;&quot;)}e=t,n=&quot;&quot;,r.crawl(a,l),t._module&amp;&amp;t._module.attributes&amp;&amp;r.crawl(t._module.attributes,l);var c=t.transforms;if(c)for(var u=0;u&lt;c.length;u++){var f=c[u],d=f._module;d&amp;&amp;(n=&quot;transforms[&quot;+u+&quot;].&quot;,e=f,r.crawl(d.attributes,l))}return i},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(&quot;transforms&quot;===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var c=e[1];if(!y(c)||c&gt;=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&amp;&amp;r[e[2]],s=3}else{var u=t._module;if(u||(u=(n.modules[t.type||a.type.dflt]||{})._module),!u)return!1;if(!(i=(r=u.attributes)&amp;&amp;r[o])){var f=u.basePlotModule;f&amp;&amp;f.attributes&amp;&amp;(i=f.attributes[o])}i||(i=a[o])}return v(i,e,s)},r.getLayoutValObject=function(t,e){return v(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r&lt;l.length;r++){if((a=l[r]).attrRegex&amp;&amp;a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&amp;&amp;a.layoutAttributes&amp;&amp;(c=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&amp;&amp;e in u)return u[e]}if(c)return c}var f=t._modules;if(f)for(r=0;r&lt;f.length;r++)if((s=f[r].layoutAttributes)&amp;&amp;e in s)return s[e];for(i in n.componentsRegistry){if(&quot;colorscale&quot;===(a=n.componentsRegistry[i]).name&amp;&amp;0===e.indexOf(&quot;coloraxis&quot;))return a.layoutAttributes[e];if(!a.schema&amp;&amp;e===a.name)return a.layoutAttributes}return e in o&amp;&amp;o[e]}(t,e[0]),e,1)}},{&quot;../lib&quot;:803,&quot;../plots/animation_attributes&quot;:848,&quot;../plots/attributes&quot;:850,&quot;../plots/frame_attributes&quot;:884,&quot;../plots/layout_attributes&quot;:908,&quot;../registry&quot;:931,&quot;./edit_types&quot;:836,&quot;./plot_config&quot;:841}],843:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/attributes&quot;),a={name:{valType:&quot;string&quot;,editType:&quot;none&quot;}};function o(t){return t&amp;&amp;&quot;string&quot;==typeof t}function s(t){var e=t.length-1;return&quot;s&quot;!==t.charAt(e)&amp;&amp;n.warn(&quot;bad argument to arrayDefaultKey: &quot;+t),t.substr(0,t.length-1)+&quot;defaults&quot;}a.templateitemname={valType:&quot;string&quot;,editType:&quot;calc&quot;},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=a.name,e.templateitemname=a.templateitemname,e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&amp;&amp;r.length&amp;&amp;(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,&quot;type&quot;),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&amp;&amp;(i[e]||r&amp;&amp;i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&amp;&amp;n[s(e)],a=n&amp;&amp;n[e];Array.isArray(a)&amp;&amp;a.length||(a=[]);var l={};return{newItem:function(t){var e={name:t.name,_input:t},n=e.templateitemname=t.templateitemname;if(!o(n))return e._template=i,e;for(var s=0;s&lt;a.length;s++){var c=a[s];if(c.name===n)return l[n]=1,e._template=c,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e&lt;a.length;e++){var r=a[e],n=r.name;if(o(n)&amp;&amp;!l[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i.templateitemname=r.templateitemname,t.push(i),l[n]=1}}return t}}},r.arrayDefaultKey=s,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,a=r._index,o=a&gt;=i&amp;&amp;(r._input||{})._templateitemname;o&amp;&amp;(a=i);var s,l=e+&quot;[&quot;+a+&quot;]&quot;;function c(){s={},o&amp;&amp;(s[l]={},s[l].templateitemname=o)}function u(t,e){o?n.nestedProperty(s[l],t).set(e):s[l+&quot;.&quot;+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:u,getUpdateObj:f,applyUpdate:function(e,r){e&amp;&amp;u(e,r);var i=f();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{&quot;../lib&quot;:803,&quot;../plots/attributes&quot;:850}],844:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../lib/clear_gl_canvases&quot;),l=t(&quot;../components/color&quot;),c=t(&quot;../components/drawing&quot;),u=t(&quot;../components/titles&quot;),f=t(&quot;../components/modebar&quot;),h=t(&quot;../plots/cartesian/axes&quot;),p=t(&quot;../constants/alignment&quot;),d=t(&quot;../plots/cartesian/constraints&quot;),g=d.enforce,m=d.clean,v=t(&quot;../plots/cartesian/autorange&quot;).doAutoRange;function y(t,e,r){for(var n=0;n&lt;r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]&gt;=t[1]||i[1]&lt;=t[0])&amp;&amp;(a[0]&lt;e[1]&amp;&amp;a[1]&gt;e[0]))return!0}return!1}function x(t){var e,i,s,u,d,g,m=t._fullLayout,v=m._size,x=v.p,_=h.list(t,&quot;&quot;,!0);if(m._paperdiv.style({width:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroWidth&amp;&amp;!t.layout.width?&quot;100%&quot;:m.width+&quot;px&quot;,height:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroHeight&amp;&amp;!t.layout.height?&quot;100%&quot;:m.height+&quot;px&quot;}).selectAll(&quot;.main-svg&quot;).call(c.setSize,m.width,m.height),t._context.setBackground(t,m.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!m._has(&quot;cartesian&quot;))return a.previousPromises(t);function T(t,e,r){var n=t._lw/2;return&quot;x&quot;===t._id.charAt(0)?e?&quot;top&quot;===r?e._offset-x-n:e._offset+e._length+x+n:v.t+v.h*(1-(t.position||0))+n%1:e?&quot;right&quot;===r?e._offset+e._length+x+n:e._offset-x-n:v.l+v.w*(t.position||0)+n%1}for(e=0;e&lt;_.length;e++){var k=(u=_[e])._anchorAxis;u._linepositions={},u._lw=c.crispRound(t,u.linewidth,1),u._mainLinePosition=T(u,k,u.side),u._mainMirrorPosition=u.mirror&amp;&amp;k?T(u,k,p.OPPOSITE_SIDE[u.side]):null}var A=[],M=[],S=[],E=1===l.opacity(m.paper_bgcolor)&amp;&amp;1===l.opacity(m.plot_bgcolor)&amp;&amp;m.paper_bgcolor===m.plot_bgcolor;for(i in m._plots)if((s=m._plots[i]).mainplot)s.bg&amp;&amp;s.bg.remove(),s.bg=void 0;else{var L=s.xaxis.domain,C=s.yaxis.domain,P=s.plotgroup;if(y(L,C,S)){var I=P.node(),O=s.bg=o.ensureSingle(P,&quot;rect&quot;,&quot;bg&quot;);I.insertBefore(O.node(),I.childNodes[0]),M.push(i)}else P.select(&quot;rect.bg&quot;).remove(),S.push([L,C]),E||(A.push(i),M.push(i))}var z,D,R,F,B,N,j,U,V,q,H,G,Y,W=m._bgLayer.selectAll(&quot;.bg&quot;).data(A);for(W.enter().append(&quot;rect&quot;).classed(&quot;bg&quot;,!0),W.exit().remove(),W.each((function(t){m._plots[t].bg=n.select(this)})),e=0;e&lt;M.length;e++)s=m._plots[M[e]],d=s.xaxis,g=s.yaxis,s.bg&amp;&amp;void 0!==d._offset&amp;&amp;void 0!==g._offset&amp;&amp;s.bg.call(c.setRect,d._offset-x,g._offset-x,d._length+2*x,g._length+2*x).call(l.fill,m.plot_bgcolor).style(&quot;stroke-width&quot;,0);if(!m._hasOnlyLargeSploms)for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var X,Z,J=s.clipId=&quot;clip&quot;+m._uid+i+&quot;plot&quot;,K=o.ensureSingleById(m._clips,&quot;clipPath&quot;,J,(function(t){t.classed(&quot;plotclip&quot;,!0).append(&quot;rect&quot;)}));s.clipRect=K.select(&quot;rect&quot;).attr({width:d._length,height:g._length}),c.setTranslate(s.plot,d._offset,g._offset),s._hasClipOnAxisFalse?(X=null,Z=J):(X=J,Z=null),c.setClipUrl(s.plot,X,t),s.layerClipId=Z}function Q(t){return&quot;M&quot;+z+&quot;,&quot;+t+&quot;H&quot;+D}function $(t){return&quot;M&quot;+d._offset+&quot;,&quot;+t+&quot;h&quot;+d._length}function tt(t){return&quot;M&quot;+t+&quot;,&quot;+U+&quot;V&quot;+j}function et(t){return&quot;M&quot;+t+&quot;,&quot;+g._offset+&quot;v&quot;+g._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return&quot;&quot;;if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&amp;&amp;(n+=e(t._mainMirrorPosition)),n}for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var nt=&quot;M0,0&quot;;b(d,i)&amp;&amp;(B=w(d,&quot;left&quot;,g,_),z=d._offset-(B?x+B:0),N=w(d,&quot;right&quot;,g,_),D=d._offset+d._length+(N?x+N:0),R=T(d,g,&quot;bottom&quot;),F=T(d,g,&quot;top&quot;),!(Y=!d._anchorAxis||i!==d._mainSubplot)||&quot;allticks&quot;!==d.mirror&amp;&amp;&quot;all&quot;!==d.mirror||(d._linepositions[i]=[R,F]),nt=rt(d,Q,$),Y&amp;&amp;d.showline&amp;&amp;(&quot;all&quot;===d.mirror||&quot;allticks&quot;===d.mirror)&amp;&amp;(nt+=Q(R)+Q(F)),s.xlines.style(&quot;stroke-width&quot;,d._lw+&quot;px&quot;).call(l.stroke,d.showline?d.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.xlines.attr(&quot;d&quot;,nt);var it=&quot;M0,0&quot;;b(g,i)&amp;&amp;(H=w(g,&quot;bottom&quot;,d,_),j=g._offset+g._length+(H?x:0),G=w(g,&quot;top&quot;,d,_),U=g._offset-(G?x:0),V=T(g,d,&quot;left&quot;),q=T(g,d,&quot;right&quot;),!(Y=!g._anchorAxis||i!==g._mainSubplot)||&quot;allticks&quot;!==g.mirror&amp;&amp;&quot;all&quot;!==g.mirror||(g._linepositions[i]=[V,q]),it=rt(g,tt,et),Y&amp;&amp;g.showline&amp;&amp;(&quot;all&quot;===g.mirror||&quot;allticks&quot;===g.mirror)&amp;&amp;(it+=tt(V)+tt(q)),s.ylines.style(&quot;stroke-width&quot;,g._lw+&quot;px&quot;).call(l.stroke,g.showline?g.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.ylines.attr(&quot;d&quot;,it)}return h.makeClipPaths(t),a.previousPromises(t)}function b(t,e){return(t.ticks||t.showline)&amp;&amp;(e===t._mainSubplot||&quot;all&quot;===t.mirror||&quot;allticks&quot;===t.mirror)}function _(t,e,r){if(!r.showline||!r._lw)return!1;if(&quot;all&quot;===r.mirror||&quot;allticks&quot;===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&amp;&amp;n.domain[1-i]===t.domain[1-i]}function w(t,e,r,n){if(_(t,e,r))return r._lw;for(var i=0;i&lt;n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&amp;&amp;_(t,e,a))return a._lw}return 0}function T(t,e){var r=t.title,n=t._size,i=0;switch(&quot;start&quot;===e?i=r.pad.l:&quot;end&quot;===e&amp;&amp;(i=-r.pad.r),r.xref){case&quot;paper&quot;:return n.l+n.w*r.x+i;case&quot;container&quot;:default:return t.width*r.x+i}}function k(t,e){var r=t.title,n=t._size,i=0;if(&quot;0em&quot;!==e&amp;&amp;e?e===p.CAP_SHIFT+&quot;em&quot;&amp;&amp;(i=r.pad.t):i=-r.pad.b,&quot;auto&quot;===r.y)return n.t/2;switch(r.yref){case&quot;paper&quot;:return n.t+n.h-n.h*r.y+i;case&quot;container&quot;:default:return t.height-t.height*r.y+i}}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout,r=function(t){var e=t.title,r=&quot;middle&quot;;o.isRightAnchor(e)?r=&quot;end&quot;:o.isLeftAnchor(e)&amp;&amp;(r=&quot;start&quot;);return r}(e),n=function(t){var e=t.title,r=&quot;0em&quot;;o.isTopAnchor(e)?r=p.CAP_SHIFT+&quot;em&quot;:o.isMiddleAnchor(e)&amp;&amp;(r=p.MID_SHIFT+&quot;em&quot;);return r}(e);u.draw(t,&quot;gtitle&quot;,{propContainer:e,propName:&quot;title.text&quot;,placeholder:e._dfltTitle.plot,attributes:{x:T(e,r),y:k(e,n),&quot;text-anchor&quot;:r,dy:n}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e&lt;n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&amp;&amp;h(l,u);var p=f.editStyle;p&amp;&amp;o.push({fn:p,cd0:c})}if(o.length){for(e=0;e&lt;o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doColorBars=function(t){return i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(&quot;_doPlot&quot;,t,&quot;&quot;,e)},r.doLegend=function(t){return i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.draw(t,&quot;redraw&quot;),t._fullLayout._hasOnlyLargeSploms&amp;&amp;(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r&lt;e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&amp;&amp;n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){var i=e[r[n]];i._scene.setViewport(i)}},r.drawData=function(t){var e=t._fullLayout;s(t);for(var n=e._basePlotModules,o=0;o&lt;n.length;o++)n[o].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(&quot;shapes&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;images&quot;,&quot;draw&quot;)(t),e._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(&quot;regl&quot;)){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&amp;&amp;e._splomGrid.draw(),r=0;r&lt;i.length;r++){var l=i[r];!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(&quot;splom&quot;===l.type?e._splomScenes[l.uid].draw():&quot;scattergl&quot;===l.type?o.pushUnique(a,l.xaxis+l.yaxis):&quot;scatterpolargl&quot;===l.type&amp;&amp;o.pushUnique(s,l.subplot))}for(r=0;r&lt;a.length;r++)(n=e._plots[a[r]])._scene&amp;&amp;n._scene.draw();for(r=0;r&lt;s.length;r++)(n=e[s[r]]._subplot)._scene&amp;&amp;n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e,r=h.list(t,&quot;&quot;,!0),n={},i=0;i&lt;r.length;i++)if(!n[(e=r[i])._id]){n[e._id]=1,m(t,e),v(t,e);var a=e._matchGroup;if(a)for(var o in a){var s=h.getFromId(t,o);v(t,s,e.range),n[o]=1}}g(t)},r.finalDraw=function(t){i.getComponentMethod(&quot;rangeslider&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t)},r.drawMarginPushers=function(t){i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;sliders&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;updatemenus&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},{&quot;../components/color&quot;:666,&quot;../components/drawing&quot;:688,&quot;../components/modebar&quot;:729,&quot;../components/titles&quot;:764,&quot;../constants/alignment&quot;:771,&quot;../lib&quot;:803,&quot;../lib/clear_gl_canvases&quot;:787,&quot;../plots/cartesian/autorange&quot;:853,&quot;../plots/cartesian/axes&quot;:854,&quot;../plots/cartesian/constraints&quot;:862,&quot;../plots/plots&quot;:917,&quot;../registry&quot;:931,&quot;@plotly/d3&quot;:58}],845:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.isPlainObject,a=t(&quot;./plot_schema&quot;),o=t(&quot;../plots/plots&quot;),s=t(&quot;../plots/attributes&quot;),l=t(&quot;./plot_template&quot;),c=t(&quot;./plot_config&quot;).dfltConfig;function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&amp;&amp;i(e))u(e,r);else if(Array.isArray(r)&amp;&amp;Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a&lt;r.length;a++){var s=r[a],c=o.newItem(s)._template;c&amp;&amp;u(c,s)}var f=o.defaultItems();for(a=0;a&lt;f.length;a++)r.push(f[a]._template);for(a=0;a&lt;r.length;a++)delete r[a].templateitemname}}for(r=0;r&lt;o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,&quot;&quot;)}function h(t,e,r,a,o){var s=o&amp;&amp;r(o);for(var c in t){var u=t[c],p=g(t,c,a),d=g(t,c,o),m=r(d);if(!m){var v=f(c);v!==c&amp;&amp;(m=r(d=g(t,v,o)))}if((!s||s!==m)&amp;&amp;!(!m||m._noTemplating||&quot;data_array&quot;===m.valType||m.arrayOk&amp;&amp;Array.isArray(u)))if(!m.valType&amp;&amp;i(u))h(u,e,r,p,d);else if(m._isLinkedToArray&amp;&amp;Array.isArray(u))for(var y=!1,x=0,b={},_=0;_&lt;u.length;_++){var w=u[_];if(i(w)){var T=w.name;if(T)b[T]||(h(w,e,r,g(u,x,p),g(u,x,d)),x++,b[T]=1);else if(!y){var k=g(t,l.arrayDefaultKey(c),a),A=g(u,x,p);h(w,e,r,A,g(u,x,d));var M=n.nestedProperty(e,A);n.nestedProperty(e,k).set(M.get()),M.set(null),y=!0}}}else{n.nestedProperty(e,p).set(u)}}}function p(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}function d(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}function g(t,e,r){return r?Array.isArray(t)?r+&quot;[&quot;+e+&quot;]&quot;:r+&quot;.&quot;+e:e}function m(t){for(var e=0;e&lt;t.length;e++)if(i(t[e]))return!0}function v(t){var e;switch(t.code){case&quot;data&quot;:e=&quot;The template has no key data.&quot;;break;case&quot;layout&quot;:e=&quot;The template has no key layout.&quot;;break;case&quot;missing&quot;:e=t.path?&quot;There are no templates for item &quot;+t.path+&quot; with name &quot;+t.templateitemname:&quot;There are no templates for trace &quot;+t.index+&quot;, of type &quot;+t.traceType+&quot;.&quot;;break;case&quot;unused&quot;:e=t.path?&quot;The template item at &quot;+t.path+&quot; was not used in constructing the plot.&quot;:t.dataCount?&quot;Some of the templates of type &quot;+t.traceType+&quot; were not used. The template has &quot;+t.templateCount+&quot; traces, the data only has &quot;+t.dataCount+&quot; of this type.&quot;:&quot;The template has &quot;+t.templateCount+&quot; traces of type &quot;+t.traceType+&quot; but there are none in the data.&quot;;break;case&quot;reused&quot;:e=&quot;Some of the templates of type &quot;+t.traceType+&quot; were used more than once. The template has &quot;+t.templateCount+&quot; traces, the data has &quot;+t.dataCount+&quot; of this type.&quot;}return t.msg=e,t}r.makeTemplate=function(t){t=n.isPlainObject(t)?t:n.getGraphDiv(t),t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var a={data:{},layout:{}};e.forEach((function(t){var e={};h(t,e,d.bind(null,t));var r=n.coerce(t,{},s,&quot;type&quot;),i=a.data[r];i||(i=a.data[r]=[]),i.push(e)})),h(r,a.layout,p.bind(null,r)),delete a.layout.template;var l=r.template;if(i(l)){var f,g,m,v,y,x,b=l.layout;i(b)&amp;&amp;u(b,a.layout);var _=l.data;if(i(_)){for(g in a.data)if(m=_[g],Array.isArray(m)){for(x=(y=a.data[g]).length,v=m.length,f=0;f&lt;x;f++)u(m[f%v],y[f]);for(f=x;f&lt;v;f++)y.push(n.extendDeep({},m[f]))}for(g in _)g in a.data||(a.data[g]=n.extendDeep([],_[g]))}}return a},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,p=r._fullData,d={};if(i(s)?(!function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)&amp;&amp;i(e[n])){var a,o=f(n),s=[];for(a=0;a&lt;r.length;a++)s.push(g(e,n,r[a])),o!==n&amp;&amp;s.push(g(e,o,r[a]));for(a=0;a&lt;s.length;a++)d[s[a]]=1;t(e[n],s)}}(h,[&quot;layout&quot;]),function t(e,r){for(var n in e)if(-1===n.indexOf(&quot;defaults&quot;)&amp;&amp;i(e[n])){var a=g(e,n,r);d[a]?t(e[n],a):u.push({code:&quot;unused&quot;,path:a})}}(s,&quot;layout&quot;)):u.push({code:&quot;layout&quot;}),i(l)){for(var y,x={},b=0;b&lt;p.length;b++){var _=p[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:&quot;missing&quot;,index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,T=x[y]||0;w&gt;T?u.push({code:&quot;unused&quot;,traceType:y,templateCount:w,dataCount:T}):T&gt;w&amp;&amp;u.push({code:&quot;reused&quot;,traceType:y,templateCount:w,dataCount:T})}}else u.push({code:&quot;data&quot;});if(function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)){var a=e[n],o=g(e,n,r);i(a)?(Array.isArray(e)&amp;&amp;!1===a._template&amp;&amp;a.templateitemname&amp;&amp;u.push({code:&quot;missing&quot;,path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&amp;&amp;m(a)&amp;&amp;t(a,o)}}({data:p,layout:h},&quot;&quot;),u.length)return u.map(v)}},{&quot;../lib&quot;:803,&quot;../plots/attributes&quot;:850,&quot;../plots/plots&quot;:917,&quot;./plot_config&quot;:841,&quot;./plot_schema&quot;:842,&quot;./plot_template&quot;:843}],846:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./plot_api&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../snapshot/helpers&quot;),l=t(&quot;../snapshot/tosvg&quot;),c=t(&quot;../snapshot/svgtoimg&quot;),u=t(&quot;../version&quot;).version,f={format:{valType:&quot;enumerated&quot;,values:[&quot;png&quot;,&quot;jpeg&quot;,&quot;webp&quot;,&quot;svg&quot;,&quot;full-json&quot;],dflt:&quot;png&quot;},width:{valType:&quot;number&quot;,min:1},height:{valType:&quot;number&quot;,min:1},scale:{valType:&quot;number&quot;,min:0,dflt:1},setBackground:{valType:&quot;any&quot;,dflt:!1},imageDataOnly:{valType:&quot;boolean&quot;,dflt:!1}};e.exports=function(t,e){var r,h,p,d;function g(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],h=t.layout||{},p=t.config||{},d={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),h=o.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!g(&quot;width&quot;)&amp;&amp;null!==e.width||!g(&quot;height&quot;)&amp;&amp;null!==e.height)throw new Error(&quot;Height and width should be pixel values.&quot;);if(!g(&quot;format&quot;))throw new Error(&quot;Export format is not &quot;+o.join2(f.format.values,&quot;, &quot;,&quot; or &quot;)+&quot;.&quot;);var m={};function v(t,r){return o.coerce(e,m,f,t,r)}var y=v(&quot;format&quot;),x=v(&quot;width&quot;),b=v(&quot;height&quot;),_=v(&quot;scale&quot;),w=v(&quot;setBackground&quot;),T=v(&quot;imageDataOnly&quot;),k=document.createElement(&quot;div&quot;);k.style.position=&quot;absolute&quot;,k.style.left=&quot;-5000px&quot;,document.body.appendChild(k);var A=o.extendFlat({},h);x?A.width=x:null===e.width&amp;&amp;n(d.width)&amp;&amp;(A.width=d.width),b?A.height=b:null===e.height&amp;&amp;n(d.height)&amp;&amp;(A.height=d.height);var M=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(k._fullLayout))}))}function L(){return new Promise((function(t,e){var r=l(k,y,_),n=k._fullLayout.width,f=k._fullLayout.height;function h(){i.purge(k),document.body.removeChild(k)}if(&quot;full-json&quot;===y){var p=a.graphJson(k,!1,&quot;keepdata&quot;,&quot;object&quot;,!0,!0);return p.version=u,p=JSON.stringify(p),h(),t(T?p:s.encodeJSON(p))}if(h(),&quot;svg&quot;===y)return t(T?r:s.encodeSVG(r));var d=document.createElement(&quot;canvas&quot;);d.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){i.newPlot(k,r,A,M).then(S).then(E).then(L).then((function(e){t(function(t){return T?t.replace(s.IMAGE_URL_PREFIX,&quot;&quot;):t}(e))})).catch((function(t){e(t)}))}))}},{&quot;../lib&quot;:803,&quot;../plots/plots&quot;:917,&quot;../snapshot/helpers&quot;:935,&quot;../snapshot/svgtoimg&quot;:937,&quot;../snapshot/tosvg&quot;:939,&quot;../version&quot;:1404,&quot;./plot_api&quot;:840,&quot;fast-isnumeric&quot;:249}],847:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/plots&quot;),a=t(&quot;./plot_schema&quot;),o=t(&quot;./plot_config&quot;).dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h&lt;f.length;h++){var p=f[h];if(&quot;transforms&quot;!==p){var v=o.slice();v.push(p);var y=t[p],x=e[p],b=m(r,p),_=(b||{}).valType,w=&quot;info_array&quot;===_,T=&quot;colorscale&quot;===_,k=(b||{}).items;if(g(r,p))if(s(y)&amp;&amp;s(x)&amp;&amp;&quot;any&quot;!==_)u(y,x,b,i,a,v);else if(w&amp;&amp;l(y)){y.length&gt;x.length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(x.length)));var A,M,S,E,L,C=x.length,P=Array.isArray(k);if(P&amp;&amp;(C=Math.min(C,k.length)),2===b.dimensions)for(M=0;M&lt;C;M++)if(l(y[M])){y[M].length&gt;x[M].length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(M,x[M].length)));var I=x[M].length;for(A=0;A&lt;(P?Math.min(I,k[M].length):I);A++)S=P?k[M][A]:k,E=y[M][A],L=x[M][A],n.validate(E,S)?L!==E&amp;&amp;L!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(M,A),E,L)):i.push(d(&quot;value&quot;,a,v.concat(M,A),E))}else i.push(d(&quot;array&quot;,a,v.concat(M),y[M]));else for(M=0;M&lt;C;M++)S=P?k[M]:k,E=y[M],L=x[M],n.validate(E,S)?L!==E&amp;&amp;L!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(M),E,L)):i.push(d(&quot;value&quot;,a,v.concat(M),E))}else if(b.items&amp;&amp;!w&amp;&amp;l(y)){var O,z,D=k[Object.keys(k)[0]],R=[];for(O=0;O&lt;x.length;O++){var F=x[O]._index||O;if((z=v.slice()).push(F),s(y[F])&amp;&amp;s(x[O])){R.push(F);var B=y[F],N=x[O];s(B)&amp;&amp;!1!==B.visible&amp;&amp;!1===N.visible?i.push(d(&quot;invisible&quot;,a,z)):u(B,N,D,i,a,z)}}for(O=0;O&lt;y.length;O++)(z=v.slice()).push(O),s(y[O])?-1===R.indexOf(O)&amp;&amp;i.push(d(&quot;unused&quot;,a,z)):i.push(d(&quot;object&quot;,a,z,y[O]))}else!s(y)&amp;&amp;s(x)?i.push(d(&quot;object&quot;,a,v,y)):c(y)||!c(x)||w||T?p in e?n.validate(y,b)?&quot;enumerated&quot;===b.valType&amp;&amp;(b.coerceNumber&amp;&amp;y!==+x||y!==x)&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v,y,x)):i.push(d(&quot;value&quot;,a,v,y)):i.push(d(&quot;unused&quot;,a,v,y)):i.push(d(&quot;array&quot;,a,v,y));else i.push(d(&quot;schema&quot;,a,v))}}return i}function f(t,e){for(var r=t.layout.layoutAttributes,i=0;i&lt;e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&amp;&amp;(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}e.exports=function(t,e){void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e={});var r,c,h=a.get(),p=[],g={_context:n.extendFlat({},o)};l(t)?(g.data=n.extendDeep([],t),r=t):(g.data=[],r=[],p.push(d(&quot;array&quot;,&quot;data&quot;))),s(e)?(g.layout=n.extendDeep({},e),c=e):(g.layout={},c={},arguments.length&gt;1&amp;&amp;p.push(d(&quot;object&quot;,&quot;layout&quot;))),i.supplyDefaults(g);for(var m=g._fullData,v=r.length,y=0;y&lt;v;y++){var x=r[y],b=[&quot;data&quot;,y];if(s(x)){var _=m[y],w=_.type,T=h.traces[w].attributes;T.type={valType:&quot;enumerated&quot;,values:[w]},!1===_.visible&amp;&amp;!1!==x.visible&amp;&amp;p.push(d(&quot;invisible&quot;,b)),u(x,_,T,p,b);var k=x.transforms,A=_.transforms;if(k){l(k)||p.push(d(&quot;array&quot;,b,[&quot;transforms&quot;])),b.push(&quot;transforms&quot;);for(var M=0;M&lt;k.length;M++){var S=[&quot;transforms&quot;,M],E=k[M].type;if(s(k[M])){var L=h.transforms[E]?h.transforms[E].attributes:{};L.type={valType:&quot;enumerated&quot;,values:Object.keys(h.transforms)},u(k[M],A[M],L,p,b,S)}else p.push(d(&quot;object&quot;,b,S))}}}else p.push(d(&quot;object&quot;,b))}var C=g._fullLayout,P=f(h,m);return u(c,C,P,p,&quot;layout&quot;),0===p.length?void 0:p};var h={object:function(t,e){return(&quot;layout&quot;===t&amp;&amp;&quot;&quot;===e?&quot;The layout argument&quot;:&quot;data&quot;===t[0]&amp;&amp;&quot;&quot;===e?&quot;Trace &quot;+t[1]+&quot; in the data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an object container&quot;},array:function(t,e){return(&quot;data&quot;===t?&quot;The data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an array container&quot;},schema:function(t,e){return p(t)+&quot;key &quot;+e+&quot; is not part of the schema&quot;},unused:function(t,e,r){var n=s(r)?&quot;container&quot;:&quot;key&quot;;return p(t)+n+&quot; &quot;+e+&quot; did not get coerced&quot;},dynamic:function(t,e,r,n){return[p(t)+&quot;key&quot;,e,&quot;(set to '&quot;+r+&quot;')&quot;,&quot;got reset to&quot;,&quot;'&quot;+n+&quot;'&quot;,&quot;during defaults.&quot;].join(&quot; &quot;)},invisible:function(t,e){return(e?p(t)+&quot;item &quot;+e:&quot;Trace &quot;+t[1])+&quot; got defaulted to be not visible&quot;},value:function(t,e,r){return[p(t)+&quot;key &quot;+e,&quot;is set to an invalid value (&quot;+r+&quot;)&quot;].join(&quot; &quot;)}};function p(t){return l(t)?&quot;In data trace &quot;+t[1]+&quot;, &quot;:&quot;In &quot;+t+&quot;, &quot;}function d(t,e,r,i,a){var o,s;r=r||&quot;&quot;,l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t[r];&quot;number&quot;==typeof n?e=e.substr(0,e.length-1)+&quot;[&quot;+n+&quot;]&quot;:e+=n,r&lt;t.length-1&amp;&amp;(e+=&quot;.&quot;)}return e}(r),u=h[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function g(t,e){var r=y(e),n=r.keyMinusId,i=r.id;return!!(n in t&amp;&amp;t[n]._isSubplotObj&amp;&amp;i)||e in t}function m(t,e){return e in t?t[e]:t[y(e).keyMinusId]}var v=n.counterRegex(&quot;([a-z]+)&quot;);function y(t){var e=t.match(v);return{keyMinusId:e&amp;&amp;e[1],id:e&amp;&amp;e[2]}}},{&quot;../lib&quot;:803,&quot;../plots/plots&quot;:917,&quot;./plot_config&quot;:841,&quot;./plot_schema&quot;:842}],848:[function(t,e,r){&quot;use strict&quot;;e.exports={mode:{valType:&quot;enumerated&quot;,dflt:&quot;afterall&quot;,values:[&quot;immediate&quot;,&quot;next&quot;,&quot;afterall&quot;]},direction:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;reverse&quot;],dflt:&quot;forward&quot;},fromcurrent:{valType:&quot;boolean&quot;,dflt:!1},frame:{duration:{valType:&quot;number&quot;,min:0,dflt:500},redraw:{valType:&quot;boolean&quot;,dflt:!0}},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:500,editType:&quot;none&quot;},easing:{valType:&quot;enumerated&quot;,dflt:&quot;cubic-in-out&quot;,values:[&quot;linear&quot;,&quot;quad&quot;,&quot;cubic&quot;,&quot;sin&quot;,&quot;exp&quot;,&quot;circle&quot;,&quot;elastic&quot;,&quot;back&quot;,&quot;bounce&quot;,&quot;linear-in&quot;,&quot;quad-in&quot;,&quot;cubic-in&quot;,&quot;sin-in&quot;,&quot;exp-in&quot;,&quot;circle-in&quot;,&quot;elastic-in&quot;,&quot;back-in&quot;,&quot;bounce-in&quot;,&quot;linear-out&quot;,&quot;quad-out&quot;,&quot;cubic-out&quot;,&quot;sin-out&quot;,&quot;exp-out&quot;,&quot;circle-out&quot;,&quot;elastic-out&quot;,&quot;back-out&quot;,&quot;bounce-out&quot;,&quot;linear-in-out&quot;,&quot;quad-in-out&quot;,&quot;cubic-in-out&quot;,&quot;sin-in-out&quot;,&quot;exp-in-out&quot;,&quot;circle-in-out&quot;,&quot;elastic-in-out&quot;,&quot;back-in-out&quot;,&quot;bounce-in-out&quot;],editType:&quot;none&quot;},ordering:{valType:&quot;enumerated&quot;,values:[&quot;layout first&quot;,&quot;traces first&quot;],dflt:&quot;layout first&quot;,editType:&quot;none&quot;}}}},{}],849:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;);e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||&quot;visible&quot;,c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a&lt;u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&amp;&amp;r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a&lt;d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(a=0;a&lt;g;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{&quot;../lib&quot;:803,&quot;../plot_api/plot_template&quot;:843}],850:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;../components/fx/attributes&quot;);e.exports={type:{valType:&quot;enumerated&quot;,values:[],dflt:&quot;scatter&quot;,editType:&quot;calc+clearAxisTypes&quot;,_noTemplating:!0},visible:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;legendonly&quot;],dflt:!0,editType:&quot;calc&quot;},showlegend:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;style&quot;},legendgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},legendgrouptitle:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},font:n({editType:&quot;style&quot;}),editType:&quot;style&quot;},legendrank:{valType:&quot;number&quot;,dflt:1e3,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;style&quot;},name:{valType:&quot;string&quot;,editType:&quot;style&quot;},uid:{valType:&quot;string&quot;,editType:&quot;plot&quot;,anim:!0},ids:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;,anim:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},selectedpoints:{valType:&quot;any&quot;,editType:&quot;calc&quot;},hoverinfo:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;],extras:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],arrayOk:!0,dflt:&quot;all&quot;,editType:&quot;none&quot;},hoverlabel:i.hoverlabel,stream:{token:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:&quot;calc&quot;},maxpoints:{valType:&quot;number&quot;,min:0,max:1e4,dflt:500,editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:{_isLinkedToArray:&quot;transform&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../components/fx/attributes&quot;:697,&quot;./font_attributes&quot;:883}],851:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=i.dateTime2ms,o=i.incrementMonth,s=t(&quot;../../constants/numerical&quot;).ONEAVGMONTH;e.exports=function(t,e,r,i){if(&quot;date&quot;!==e.type)return{vals:i};var l=t[r+&quot;periodalignment&quot;];if(!l)return{vals:i};var c,u=t[r+&quot;period&quot;];if(n(u)){if((u=+u)&lt;=0)return{vals:i}}else if(&quot;string&quot;==typeof u&amp;&amp;&quot;M&quot;===u.charAt(0)){var f=+u.substring(1);if(!(f&gt;0&amp;&amp;Math.round(f)===f))return{vals:i};c=f}for(var h=e.calendar,p=&quot;start&quot;===l,d=&quot;end&quot;===l,g=t[r+&quot;period0&quot;],m=a(g,h)||0,v=[],y=[],x=[],b=i.length,_=0;_&lt;b;_++){var w,T,k,A=i[_];if(c){for(w=Math.round((A-m)/(c*s)),k=o(m,c*w,h);k&gt;A;)k=o(k,-c,h);for(;k&lt;=A;)k=o(k,c,h);T=o(k,-c,h)}else{for(k=m+(w=Math.round((A-m)/u))*u;k&gt;A;)k-=u;for(;k&lt;=A;)k+=u;T=k-u}v[_]=p?T:d?k:(T+k)/2,y[_]=T,x[_]=k}return{vals:v,starts:y,ends:x}}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],852:[function(t,e,r){&quot;use strict&quot;;e.exports={xaxis:{valType:&quot;subplotid&quot;,dflt:&quot;x&quot;,editType:&quot;calc+clearAxisTypes&quot;},yaxis:{valType:&quot;subplotid&quot;,dflt:&quot;y&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],853:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../constants/numerical&quot;).FP_SAFE,s=t(&quot;../../registry&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;./axis_ids&quot;),u=c.getFromId,f=c.isLinked;function h(t,e){var r,n,i=[],o=t._fullLayout,s=d(o,e,0),l=d(o,e,1),c=g(t,e),u=c.min,f=c.max;if(0===u.length||0===f.length)return a.simpleMap(e.range,e.r2l);var h=u[0].val,m=f[0].val;for(r=1;r&lt;u.length&amp;&amp;h===m;r++)h=Math.min(h,u[r].val);for(r=1;r&lt;f.length&amp;&amp;h===m;r++)m=Math.max(m,f[r].val);var v=!1;if(e.range){var y=a.simpleMap(e.range,e.r2l);v=y[1]&lt;y[0]}&quot;reversed&quot;===e.autorange&amp;&amp;(v=!0,e.autorange=!0);var x,b,_,w,T,k,A=e.rangemode,M=&quot;tozero&quot;===A,S=&quot;nonnegative&quot;===A,E=e._length,L=E/10,C=0;for(r=0;r&lt;u.length;r++)for(x=u[r],n=0;n&lt;f.length;n++)(k=(b=f[n]).val-x.val-p(e,x.val,b.val))&gt;0&amp;&amp;((T=E-s(x)-l(b))&gt;L?k/T&gt;C&amp;&amp;(_=x,w=b,C=k/T):k/E&gt;C&amp;&amp;(_={val:x.val,nopad:1},w={val:b.val,nopad:1},C=k/E));if(h===m){var P=h-1,I=h+1;if(M)if(0===h)i=[0,1];else{var O=(h&gt;0?f:u).reduce((function(t,e){return Math.max(t,l(e))}),0),z=h/(1-Math.min(.5,O/E));i=h&gt;0?[0,z]:[z,0]}else i=S?[Math.max(0,P),Math.max(1,I)]:[P,I]}else M?(_.val&gt;=0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:0,nopad:1})):S&amp;&amp;(_.val-C*s(_)&lt;0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:1,nopad:1})),C=(w.val-_.val-p(e,x.val,b.val))/(E-s(_)-l(w)),i=[_.val-C*s(_),w.val+C*l(w)];return v&amp;&amp;i.reverse(),a.simpleMap(i,e.l2r||Number)}function p(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a&lt;i.length;a++){var o=i[a];n+=o.max-o.min}return n}function d(t,e,r){var i=.05*e._length,o=e._anchorAxis||{};if(-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)||-1!==(o.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)){var s=&quot;reversed&quot;===e.autorange;if(!s){var c=a.simpleMap(e.range,e.r2l);s=c[1]&lt;c[0]}s&amp;&amp;(r=!r)}var u=0;return f(t,e._id)||(u=function(t,e,r){var i=0,o=&quot;x&quot;===e._id.charAt(0);for(var s in t._plots){var c=t._plots[s];if(e._id===c.xaxis._id||e._id===c.yaxis._id){var u=(o?c.yaxis:c.xaxis)||{};if(-1!==(u.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(!r&amp;&amp;(&quot;left&quot;===u.side||&quot;bottom&quot;===u.side)||r&amp;&amp;(&quot;top&quot;===u.side||&quot;right&quot;===u.side))){if(u._vals){var f=a.deg2rad(u._tickAngles[u._id+&quot;tick&quot;]||0),h=Math.abs(Math.cos(f)),p=Math.abs(Math.sin(f));if(!u._vals[0].bb){var d=u._id+&quot;tick&quot;;u._selections[d].each((function(t){var e=n.select(this);e.select(&quot;.text-math-group&quot;).empty()&amp;&amp;(t.bb=l.bBox(e.node()))}))}for(var g=0;g&lt;u._vals.length;g++){var m=u._vals[g].bb;if(m){var v=6+m.width,y=6+m.height;i=Math.max(i,o?Math.max(v*h,y*p):Math.max(y*h,v*p))}}}&quot;inside&quot;===u.ticks&amp;&amp;&quot;inside&quot;===u.ticklabelposition&amp;&amp;(i+=u.ticklen||0)}}}return i}(t,e,r)),i=Math.max(u,i),&quot;domain&quot;===e.constrain&amp;&amp;e._inputDomain&amp;&amp;(i*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(t){return t.nopad?0:t.pad+(t.extrapad?i:u)}}e.exports={getAutoRange:h,makePadFn:d,doAutoRange:function(t,e,r){if(e.setScale(),e.autorange){e.range=r?r.slice():h(t,e),e._r=e.range.slice(),e._rl=a.simpleMap(e._r,e.r2l);var n=e._input,i={};i[e._attr+&quot;.range&quot;]=e.range,i[e._attr+&quot;.autorange&quot;]=e.autorange,s.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i),n.range=e.range.slice(),n.autorange=e.autorange}var o=e._anchorAxis;if(o&amp;&amp;o.rangeslider){var l=o.rangeslider[e._name];l&amp;&amp;&quot;auto&quot;===l.rangemode&amp;&amp;(l.range=h(t,e)),o._input.rangeslider[e._name]=a.extendFlat({},l)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var n,a,s,l,c,u,f,h,p,d=[],g=[],y=e.length,b=r.padded||!1,_=r.tozero&amp;&amp;(&quot;linear&quot;===t.type||&quot;-&quot;===t.type),w=&quot;log&quot;===t.type,T=!1,k=r.vpadLinearized||!1;function A(t){if(Array.isArray(t))return T=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var M=A((t._m&gt;0?r.ppadplus:r.ppadminus)||r.ppad||0),S=A((t._m&gt;0?r.ppadminus:r.ppadplus)||r.ppad||0),E=A(r.vpadplus||r.vpad),L=A(r.vpadminus||r.vpad);if(!T){if(h=1/0,p=-1/0,w)for(n=0;n&lt;y;n++)(a=e[n])&lt;h&amp;&amp;a&gt;0&amp;&amp;(h=a),a&gt;p&amp;&amp;a&lt;o&amp;&amp;(p=a);else for(n=0;n&lt;y;n++)(a=e[n])&lt;h&amp;&amp;a&gt;-o&amp;&amp;(h=a),a&gt;p&amp;&amp;a&lt;o&amp;&amp;(p=a);e=[h,p],y=2}var C={tozero:_,extrapad:b};function P(r){s=e[r],i(s)&amp;&amp;(u=M(r),f=S(r),k?(l=t.c2l(s)-L(r),c=t.c2l(s)+E(r)):(h=s-L(r),p=s+E(r),w&amp;&amp;h&lt;p/10&amp;&amp;(h=p/10),l=t.c2l(h),c=t.c2l(p)),_&amp;&amp;(l=Math.min(0,l),c=Math.max(0,c)),x(l)&amp;&amp;m(d,l,f,C),x(c)&amp;&amp;v(g,c,u,C))}var I=Math.min(6,y);for(n=0;n&lt;I;n++)P(n);for(n=y-1;n&gt;=I;n--)P(n);return{min:d,max:g,opts:r}},concatExtremes:g};function g(t,e,r){var n,i,a,o=e._id,s=t._fullData,l=t._fullLayout,c=[],f=[];function h(t,e){for(n=0;n&lt;e.length;n++){var r=t[e[n]],s=(r._extremes||{})[o];if(!0===r.visible&amp;&amp;s){for(i=0;i&lt;s.min.length;i++)a=s.min[i],m(c,a.val,a.pad,{extrapad:a.extrapad});for(i=0;i&lt;s.max.length;i++)a=s.max[i],v(f,a.val,a.pad,{extrapad:a.extrapad})}}}if(h(s,e._traceIndices),h(l.annotations||[],e._annIndices||[]),h(l.shapes||[],e._shapeIndices||[]),e._matchGroup&amp;&amp;!r)for(var p in e._matchGroup)if(p!==e._id){var d=u(t,p),y=g(t,d,!0),x=e._length/d._length;for(i=0;i&lt;y.min.length;i++)a=y.min[i],m(c,a.val,a.pad*x,{extrapad:a.extrapad});for(i=0;i&lt;y.max.length;i++)a=y.max[i],v(f,a.val,a.pad*x,{extrapad:a.extrapad})}return{min:c,max:f}}function m(t,e,r,n){y(t,e,r,n,b)}function v(t,e,r,n){y(t,e,r,n,_)}function y(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l&lt;t.length&amp;&amp;s;l++){var c=t[l];if(i(c.val,e)&amp;&amp;c.pad&gt;=r&amp;&amp;(c.extrapad||!o)){s=!1;break}i(e,c.val)&amp;&amp;c.pad&lt;=r&amp;&amp;(o||!c.extrapad)&amp;&amp;(t.splice(l,1),l--)}if(s){var u=a&amp;&amp;0===e;t.push({val:e,pad:u?0:r,extrapad:!u&amp;&amp;o})}}function x(t){return i(t)&amp;&amp;Math.abs(t)&lt;o}function b(t,e){return t&lt;=e}function _(t,e){return t&gt;=e}},{&quot;../../components/drawing&quot;:688,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./axis_ids&quot;:858,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],854:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/titles&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;./layout_attributes&quot;),d=t(&quot;./clean_ticks&quot;),g=t(&quot;../../constants/numerical&quot;),m=g.ONEMAXYEAR,v=g.ONEAVGYEAR,y=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,T=g.ONEAVGMONTH,k=g.ONEMINMONTH,A=g.ONEWEEK,M=g.ONEDAY,S=M/2,E=g.ONEHOUR,L=g.ONEMIN,C=g.ONESEC,P=g.MINUS_SIGN,I=g.BADNUM,O={K:&quot;zeroline&quot;},z={K:&quot;gridline&quot;,L:&quot;path&quot;},D={K:&quot;tick&quot;,L:&quot;path&quot;},R={K:&quot;tick&quot;,L:&quot;text&quot;},F=t(&quot;../../constants/alignment&quot;),B=F.MID_SHIFT,N=F.CAP_SHIFT,j=F.LINE_SPACING,U=F.OPPOSITE_SIDE,V=e.exports={};V.setConvert=t(&quot;./set_convert&quot;);var q=t(&quot;./axis_autotype&quot;),H=t(&quot;./axis_ids&quot;),G=H.idSort,Y=H.isLinked;V.id2name=H.id2name,V.name2id=H.name2id,V.cleanId=H.cleanId,V.list=H.list,V.listIds=H.listIds,V.getFromId=H.getFromId,V.getFromTrace=H.getFromTrace;var W=t(&quot;./autorange&quot;);V.getAutoRange=W.getAutoRange,V.findExtremes=W.findExtremes;function X(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}V.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+&quot;axis&quot;],c=n+&quot;ref&quot;,u={};return i||(i=l[0]||(&quot;string&quot;==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+&quot; domain&quot;}))),u[c]={valType:&quot;enumerated&quot;,values:l.concat(a?&quot;string&quot;==typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},V.getRefType=function(t){return void 0===t?t:&quot;paper&quot;===t?&quot;paper&quot;:&quot;pixel&quot;===t?&quot;pixel&quot;:/( domain)$/.test(t)?&quot;domain&quot;:&quot;range&quot;},V.coercePosition=function(t,e,r,n,i,a){var o,l;if(&quot;range&quot;!==V.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=V.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},V.cleanPosition=function(t,e,r){return(&quot;paper&quot;===r||&quot;pixel&quot;===r?s.ensureNumber:V.getFromId(e,r).cleanPos)(t)},V.redrawComponents=function(t,e){e=e||V.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u&lt;e.length;u++)for(var f=r[V.id2name(e[u])][a],h=0;h&lt;f.length;h++){var p=f[h];if(!c[p]&amp;&amp;(l(t,p),c[p]=1,s))return}}n(&quot;annotations&quot;,&quot;drawOne&quot;,&quot;_annIndices&quot;),n(&quot;shapes&quot;,&quot;drawOne&quot;,&quot;_shapeIndices&quot;),n(&quot;images&quot;,&quot;draw&quot;,&quot;_imgIndices&quot;,!0)};var Z=V.getDataConversions=function(t,e,r,n){var i,a=&quot;x&quot;===r||&quot;y&quot;===r||&quot;z&quot;===r?r:n;if(Array.isArray(a)){if(i={type:q(n,void 0,{autotypenumbers:t._fullLayout.autotypenumbers}),_categories:[]},V.setConvert(i),&quot;category&quot;===i.type)for(var o=0;o&lt;n.length;o++)i.d2c(n[o])}else i=V.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:&quot;ids&quot;===a?{d2c:K,c2d:K}:{d2c:J,c2d:J}};function J(t){return+t}function K(t){return String(t)}function Q(t){return+t.substring(1)}V.getDataToCoordFunc=function(t,e,r,n){return Z(t,e,r,n).d2c},V.counterLetter=function(t){var e=t.charAt(0);return&quot;x&quot;===e?&quot;y&quot;:&quot;y&quot;===e?&quot;x&quot;:void 0},V.minDtick=function(t,e,r,n){-1===[&quot;log&quot;,&quot;category&quot;,&quot;multicategory&quot;].indexOf(t.type)&amp;&amp;n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&amp;&amp;((t._minDtick/e+1e-6)%1&lt;2e-6&amp;&amp;((r-t._forceTick0)/e%1+1.000001)%1&lt;2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1&gt;2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1&gt;2e-6)&amp;&amp;(t._minDtick=0)):t._minDtick=0},V.saveRangeInitial=function(t,e){for(var r=V.list(t,&quot;&quot;,!0),n=!1,i=0;i&lt;r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&amp;&amp;a.range[1]===a._rangeInitial[1]);(o&amp;&amp;!1===a.autorange||e&amp;&amp;s)&amp;&amp;(a._rangeInitial=a.range.slice(),n=!0)}return n},V.saveShowSpikeInitial=function(t,e){for(var r=V.list(t,&quot;&quot;,!0),n=!1,i=&quot;on&quot;,a=0;a&lt;r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&amp;&amp;l)&amp;&amp;(o._showSpikeInitial=o.showspikes,n=!0),&quot;on&quot;!==i||o.showspikes||(i=&quot;off&quot;)}return t._fullLayout._cartesianSpikesEnabled=i,n},V.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(&quot;category&quot;===e.type||&quot;multicategory&quot;===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=&quot;log&quot;===e.type?{type:&quot;linear&quot;,range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},V.setConvert(l),o=o&amp;&amp;d.dtick(o,l.type))l.dtick=o,l.tick0=d.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),p=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=p*s.roundUp(h.minDiff/p,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}V.autoTicks(l,f)}var m,v=l.dtick,y=V.tickIncrement(V.tickFirst(l),v,&quot;reverse&quot;,a);if(&quot;number&quot;==typeof v)m=(y=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100&lt;2}for(var f=0;f&lt;e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&amp;&amp;o++,u(e[f]+r.dtick/2)&amp;&amp;s++;var h=e.length-c;if(l===h&amp;&amp;&quot;date&quot;!==r.type)r.dtick&lt;1?t=n-.5*r.dtick:(t-=.5)+r.dtick&lt;n&amp;&amp;(t+=r.dtick);else if(s&lt;.1*h&amp;&amp;(o&gt;.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p&lt;n?p:-p}return t}(y,t,l,c,u))+(1+Math.floor((u-y)/v))*v;else for(&quot;M&quot;===l.dtick.charAt(0)&amp;&amp;(y=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays&gt;.8){var o=Number(r.substr(1));a.exactYears&gt;.8&amp;&amp;o%12==0?t=V.tickIncrement(t,&quot;M6&quot;,&quot;reverse&quot;)+1.5*M:a.exactMonths&gt;.8?t=V.tickIncrement(t,&quot;M1&quot;,&quot;reverse&quot;)+15.5*M:t-=S;var l=V.tickIncrement(t,r);if(l&lt;=n)return l}return t}(y,t,v,c,a)),m=y,0;m&lt;=u;)m=V.tickIncrement(m,v,!1,a);return{start:e.c2r(y,0,a),end:e.c2r(m,0,a),size:v,_dataSpan:u-c}},V.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(t._dtickInit=t.dtick,t._tick0Init=t.tick0,&quot;auto&quot;===t.tickmode||!t.dtick){var n,a=t.nticks;a||(&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(n=t.tickfont?s.bigFont(t.tickfont.size||12):15,a=t._length/n):(n=&quot;y&quot;===t._id.charAt(0)?40:80,a=s.constrain(t._length/n,4,9)+1),&quot;radialaxis&quot;===t._name&amp;&amp;(a*=2)),&quot;array&quot;===t.tickmode&amp;&amp;(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,V.autoTicks(t,t._roughDTick),t._minDtick&gt;0&amp;&amp;t.dtick&lt;2*t._minDtick&amp;&amp;(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}&quot;period&quot;===t.ticklabelmode&amp;&amp;function(t){var e;function r(){return!(i(t.dtick)||&quot;M&quot;!==t.dtick.charAt(0))}var n=r(),a=V.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&amp;&amp;!n&amp;&amp;t.dtick&lt;E&amp;&amp;(t.dtick=E)):/%p/.test(a)?(e=S,o&amp;&amp;!n&amp;&amp;t.dtick&lt;S&amp;&amp;(t.dtick=S)):/%[Aadejuwx]/.test(a)?(e=M,o&amp;&amp;!n&amp;&amp;t.dtick&lt;M&amp;&amp;(t.dtick=M)):/%[UVW]/.test(a)?(e=A,o&amp;&amp;!n&amp;&amp;t.dtick&lt;A&amp;&amp;(t.dtick=A)):/%[Bbm]/.test(a)?(e=T,o&amp;&amp;(n?Q(t.dtick)&lt;1:t.dtick&lt;k)&amp;&amp;(t.dtick=&quot;M1&quot;)):/%[q]/.test(a)?(e=b,o&amp;&amp;(n?Q(t.dtick)&lt;3:t.dtick&lt;_)&amp;&amp;(t.dtick=&quot;M3&quot;)):/%[Yy]/.test(a)&amp;&amp;(e=v,o&amp;&amp;(n?Q(t.dtick)&lt;12:t.dtick&lt;y)&amp;&amp;(t.dtick=&quot;M12&quot;)))}(n=r())&amp;&amp;t.tick0===t._dowTick0&amp;&amp;(t.tick0=t._rawTick0);t._definedDelta=e}(t),t.tick0||(t.tick0=&quot;date&quot;===t.type?&quot;2000-01-01&quot;:0),&quot;date&quot;===t.type&amp;&amp;t.dtick&lt;.1&amp;&amp;(t.dtick=.1),st(t)},V.calcTicks=function(t,e){V.prepTicks(t,e);var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(&quot;array&quot;===t.tickmode)return function(t){var e=t.tickvals,r=t.ticktext,n=new Array(e.length),i=X(s.simpleMap(t.range,t.r2l)),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]),l=0;Array.isArray(r)||(r=[]);var c=&quot;category&quot;===t.type?t.d2l_noadd:t.d2l;&quot;log&quot;===t.type&amp;&amp;&quot;L&quot;!==String(t.dtick).charAt(0)&amp;&amp;(t.dtick=&quot;L&quot;+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var u=0;u&lt;e.length;u++){var f=c(e[u]);f&gt;a&amp;&amp;f&lt;o&amp;&amp;(void 0===r[u]?n[l]=V.tickText(t,f):n[l]=lt(t,f,String(r[u])),l++)}l&lt;e.length&amp;&amp;n.splice(l,e.length-l);t.rangebreaks&amp;&amp;(n=n.filter((function(e){return t.maskBreaks(e.x)!==I})));return n}(t);var n=X(r),a=n[0],o=n[1],l=r[1]&lt;r[0],c=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]),f=&quot;log&quot;===t.type&amp;&amp;!(i(t.dtick)||&quot;L&quot;===t.dtick.charAt(0)),h=&quot;period&quot;===t.ticklabelmode;if(t._tmin=V.tickFirst(t,e),t._tmin&lt;a!==l)return[];&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(o=l?Math.max(-.5,o):Math.min(t._categories.length-.5,o));var p=t._tmin;t.rangebreaks&amp;&amp;t._tick0Init!==t.tick0&amp;&amp;(p=Mt(p,t),l||(p=V.tickIncrement(p,t.dtick,!l,t.calendar))),h&amp;&amp;(p=V.tickIncrement(p,t.dtick,!l,t.calendar));for(var d,g=Math.max(1e3,t._length||0),L=[],C=null;l?p&gt;=o:p&lt;=o;p=V.tickIncrement(p,t.dtick,l,t.calendar)){if(t.rangebreaks&amp;&amp;!l){if(p&lt;a)continue;if(t.maskBreaks(p)===I&amp;&amp;Mt(p,t)&gt;=u)break}if(L.length&gt;g||p===C)break;C=p;var P=!1;f&amp;&amp;p!==(0|p)&amp;&amp;(P=!0),L.push({minor:P,value:p})}if(h&amp;&amp;function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n].value,a=n,o=n+1;n&lt;t.length-1?(a=n,o=n+1):n&gt;0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,h=0;f&gt;=y?h=u&gt;=y&amp;&amp;u&lt;=m?u:v:r===b&amp;&amp;f&gt;=_?h=u&gt;=_&amp;&amp;u&lt;=x?u:b:f&gt;=k?h=u&gt;=k&amp;&amp;u&lt;=w?u:T:r===A&amp;&amp;f&gt;=A?h=A:f&gt;=M?h=M:r===S&amp;&amp;f&gt;=S?h=S:r===E&amp;&amp;f&gt;=E&amp;&amp;(h=E),h&gt;=u&amp;&amp;(h=u,s=!0);var p=i+h;if(e.rangebreaks&amp;&amp;h&gt;0){for(var d=0,g=0;g&lt;84;g++){var L=(g+.5)/84;e.maskBreaks(i*(1-L)+L*p)!==I&amp;&amp;d++}(h*=d/84)||(t[n].drop=!0),s&amp;&amp;u&gt;A&amp;&amp;(h=u)}(h&gt;0||0===n)&amp;&amp;(t[n].periodX=i+h/2)}}(L,t,t._definedDelta),t.rangebreaks){var O=&quot;y&quot;===t._id.charAt(0),z=1;&quot;auto&quot;===t.tickmode&amp;&amp;(z=t.tickfont?t.tickfont.size:12);var D=NaN;for(d=L.length-1;d&gt;-1;d--)if(L[d].drop)L.splice(d,1);else{L[d].value=Mt(L[d].value,t);var R=t.c2p(L[d].value);(O?D&gt;R-z:D&lt;R+z)?L.splice(l?d+1:d,1):D=R}}At(t)&amp;&amp;360===Math.abs(r[1]-r[0])&amp;&amp;L.pop(),t._tmax=(L[L.length-1]||{}).value,t._prevDateHead=&quot;&quot;,t._inCalcTicks=!0;var F,B,N=[];for(d=0;d&lt;L.length;d++){var j=L[d].minor,U=L[d].value;F=V.tickText(t,U,!1,j),void 0!==(B=L[d].periodX)&amp;&amp;(F.periodX=B,(B&gt;u||B&lt;c)&amp;&amp;(B&gt;u&amp;&amp;(F.periodX=u),B&lt;c&amp;&amp;(F.periodX=c),F.text=&quot; &quot;,t._prevDateHead=&quot;&quot;)),N.push(F)}return t._inCalcTicks=!1,N};var $=[2,5,10],tt=[1,2,3,6,12],et=[1,2,5,10,15,30],rt=[1,2,3,7,14],nt=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],it=[-.301,0,.301,.699,1],at=[15,30,45,90,180];function ot(t,e,r){return e*s.roundUp(t/e,r)}function st(t){var e=t.dtick;if(t._tickexponent=0,i(e)||&quot;string&quot;==typeof e||(e=1),&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(t._tickround=null),&quot;date&quot;===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,&quot;&quot;),a=n.length;if(&quot;M&quot;===String(e).charAt(0))a&gt;10||&quot;01-01&quot;!==n.substr(5)?t._tickround=&quot;d&quot;:t._tickround=+e.substr(1)%12==0?&quot;y&quot;:&quot;m&quot;;else if(e&gt;=M&amp;&amp;a&lt;=10||e&gt;=15*M)t._tickround=&quot;d&quot;;else if(e&gt;=L&amp;&amp;a&lt;=16||e&gt;=E)t._tickround=&quot;M&quot;;else if(e&gt;=C&amp;&amp;a&lt;=19||e&gt;=L)t._tickround=&quot;S&quot;;else{var o=t.l2r(r+e).replace(/^-/,&quot;&quot;).length;t._tickround=Math.max(a,o)-20,t._tickround&lt;0&amp;&amp;(t._tickround=4)}}else if(i(e)||&quot;L&quot;===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)&gt;u&amp;&amp;(ut(t.exponentformat)&amp;&amp;!ft(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function lt(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||&quot;&quot;,fontSize:n.size,font:n.family,fontColor:n.color}}V.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(&quot;date&quot;===t.type){t.tick0=s.dateTick0(t.calendar,0);var a=2*e;if(a&gt;v)e/=v,r=n(10),t.dtick=&quot;M&quot;+12*ot(e,r,$);else if(a&gt;T)e/=T,t.dtick=&quot;M&quot;+ot(e,1,tt);else if(a&gt;M){t.dtick=ot(e,M,t._hasDayOfWeekBreaks?[1,2,7,14]:rt);var o=V.getTickFormat(t),l=&quot;period&quot;===t.ticklabelmode;l&amp;&amp;(t._rawTick0=t.tick0),/%[uVW]/.test(o)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),l&amp;&amp;(t._dowTick0=t.tick0)}else a&gt;E?t.dtick=ot(e,E,tt):a&gt;L?t.dtick=ot(e,L,et):a&gt;C?t.dtick=ot(e,C,et):(r=n(10),t.dtick=ot(e,r,$))}else if(&quot;log&quot;===t.type){t.tick0=0;var c=s.simpleMap(t.range,t.r2l);if(e&gt;.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])&lt;1){var u=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),t.dtick=&quot;L&quot;+ot(e,r,$)}else t.dtick=e&gt;.3?&quot;D2&quot;:&quot;D1&quot;}else&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):At(t)?(t.tick0=0,r=1,t.dtick=ot(e,r,at)):(t.tick0=0,r=n(10),t.dtick=ot(e,r,$));if(0===t.dtick&amp;&amp;(t.dtick=1),!i(t.dtick)&amp;&amp;&quot;string&quot;!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,&quot;ax.dtick error: &quot;+String(f)}},V.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if(&quot;M&quot;===l)return s.incrementMonth(t,c,a);if(&quot;L&quot;===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(&quot;D&quot;===l){var u=&quot;D2&quot;===e?it:nt,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(e)},V.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1]&lt;a[0],l=o?Math.floor:Math.ceil,c=X(a)[0],u=t.dtick,f=r(t.tick0);if(i(u)){var h=l((c-f)/u)*u+f;return&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(h=s.constrain(h,0,t._categories.length-1)),h}var p=u.charAt(0),d=Number(u.substr(1));if(&quot;M&quot;===p){for(var g,m,v,y=0,x=f;y&lt;10;){if(((g=V.tickIncrement(x,u,o,t.calendar))-c)*(x-c)&lt;=0)return o?Math.min(x,g):Math.max(x,g);m=(c-(x+g)/2)/(g-x),v=p+(Math.abs(Math.round(m))||1)*d,x=V.tickIncrement(x,v,m&lt;0?!o:o,t.calendar),y++}return s.error(&quot;tickFirst did not converge&quot;,t),x}if(&quot;L&quot;===p)return Math.log(l((Math.pow(10,c)-f)/d)*d+f)/Math.LN10;if(&quot;D&quot;===p){var b=&quot;D2&quot;===u?it:nt,_=s.roundUp(s.mod(c,1),b,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(u)},V.tickText=function(t,e,r,n){var a,o=lt(t,e),l=&quot;array&quot;===t.tickmode,c=r||l,u=t.type,f=&quot;category&quot;===u?t.d2l_noadd:t.d2l;if(l&amp;&amp;Array.isArray(t.ticktext)){var h=s.simpleMap(t.range,t.r2l),p=(Math.abs(h[1]-h[0])-(t._lBreaks||0))/1e4;for(a=0;a&lt;t.ticktext.length&amp;&amp;!(Math.abs(e-f(t.tickvals[a]))&lt;p);a++);if(a&lt;t.ticktext.length)return o.text=String(t.ticktext[a]),o}function d(n){if(void 0===n)return!0;if(r)return&quot;none&quot;===n;var i={first:t._tmin,last:t._tmax}[n];return&quot;all&quot;!==n&amp;&amp;e!==i}var g=r?&quot;never&quot;:&quot;none&quot;!==t.exponentformat&amp;&amp;d(t.showexponent)?&quot;hide&quot;:&quot;&quot;;if(&quot;date&quot;===u?function(t,e,r,n){var a=t._tickround,o=r&amp;&amp;t.hoverformat||V.getTickFormat(t);n&amp;&amp;(a=i(a)?4:{y:&quot;m&quot;,m:&quot;d&quot;,d:&quot;M&quot;,M:&quot;S&quot;,S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(&quot;\n&quot;);-1!==u&amp;&amp;(l=c.substr(u+1),c=c.substr(0,u));n&amp;&amp;(&quot;00:00:00&quot;===c||&quot;00:00&quot;===c?(c=l,l=&quot;&quot;):8===c.length&amp;&amp;(c=c.replace(/:00$/,&quot;&quot;)));if(l)if(r)&quot;d&quot;===a?c+=&quot;, &quot;+l:c=l+(c?&quot;, &quot;+c:&quot;&quot;);else if(t._inCalcTicks&amp;&amp;t._prevDateHead===l){var f=St(t),h=t._realSide||t.side;(!f&amp;&amp;&quot;top&quot;===h||f&amp;&amp;&quot;bottom&quot;===h)&amp;&amp;(c+=&quot;&lt;br&gt; &quot;)}else t._prevDateHead=l,c+=&quot;&lt;br&gt;&quot;+l;e.text=c}(t,o,r,c):&quot;log&quot;===u?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=&quot;string&quot;==typeof o&amp;&amp;o.charAt(0);&quot;never&quot;===a&amp;&amp;(a=&quot;&quot;);n&amp;&amp;&quot;L&quot;!==u&amp;&amp;(o=&quot;L3&quot;,u=&quot;L&quot;);if(c||&quot;L&quot;===u)e.text=ht(Math.pow(10,l),t,a,n);else if(i(o)||&quot;D&quot;===u&amp;&amp;s.mod(l+.01,1)&lt;.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;&quot;power&quot;===p||ut(p)&amp;&amp;ft(f)?(e.text=0===f?1:1===f?&quot;10&quot;:&quot;10&lt;sup&gt;&quot;+(f&gt;1?&quot;&quot;:P)+h+&quot;&lt;/sup&gt;&quot;,e.fontSize*=1.25):(&quot;e&quot;===p||&quot;E&quot;===p)&amp;&amp;h&gt;2?e.text=&quot;1&quot;+p+(f&gt;0?&quot;+&quot;:P)+h:(e.text=ht(Math.pow(10,l),t,&quot;&quot;,&quot;fakehover&quot;),&quot;D1&quot;===o&amp;&amp;&quot;y&quot;===t._id.charAt(0)&amp;&amp;(e.dy-=e.fontSize/6))}else{if(&quot;D&quot;!==u)throw&quot;unrecognized dtick &quot;+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(&quot;D1&quot;===t.dtick){var d=String(e.text).charAt(0);&quot;0&quot;!==d&amp;&amp;&quot;1&quot;!==d||(&quot;y&quot;===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]&gt;t.range[0]?1:-1)*e.fontSize*(l&lt;0?.5:.25)))}}(t,o,0,c,g):&quot;category&quot;===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&amp;&amp;(r=&quot;&quot;);e.text=String(r)}(t,o):&quot;multicategory&quot;===u?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?&quot;&quot;:String(i[1]),o=void 0===i[0]?&quot;&quot;:String(i[0]);r?e.text=o+&quot; - &quot;+a:(e.text=a,e.text2=o)}(t,o,r):At(t)?function(t,e,r,n,i){if(&quot;radians&quot;!==t.thetaunit||r)e.text=ht(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=&quot;0&quot;;else{var o=function(t){function e(t,e){return Math.abs(t-e)&lt;=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]&gt;=100)e.text=ht(s.deg2rad(e.x),t,i,n);else{var l=e.x&lt;0;1===o[1]?1===o[0]?e.text=&quot;\u03c0&quot;:e.text=o[0]+&quot;\u03c0&quot;:e.text=[&quot;&lt;sup&gt;&quot;,o[0],&quot;&lt;/sup&gt;&quot;,&quot;\u2044&quot;,&quot;&lt;sub&gt;&quot;,o[1],&quot;&lt;/sub&gt;&quot;,&quot;\u03c0&quot;].join(&quot;&quot;),l&amp;&amp;(e.text=P+e.text)}}}}(t,o,r,c,g):function(t,e,r,n,i){&quot;never&quot;===i?i=&quot;&quot;:&quot;all&quot;===t.showexponent&amp;&amp;Math.abs(e.x/t.dtick)&lt;1e-6&amp;&amp;(i=&quot;hide&quot;);e.text=ht(e.x,t,i,n)}(t,o,0,c,g),n||(t.tickprefix&amp;&amp;!d(t.showtickprefix)&amp;&amp;(o.text=t.tickprefix+o.text),t.ticksuffix&amp;&amp;!d(t.showticksuffix)&amp;&amp;(o.text+=t.ticksuffix)),&quot;boundaries&quot;===t.tickson||t.showdividers){var m=function(e){var r=t.l2p(e);return r&gt;=0&amp;&amp;r&lt;=t._length?e:null};o.xbnd=[m(o.x-.5),m(o.x+t.dtick-.5)]}return o},V.hoverLabelText=function(t,e,r){r&amp;&amp;(t=s.extendFlat({},t,{hoverformat:r}));var n=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;if(void 0!==i&amp;&amp;i!==n)return V.hoverLabelText(t,n,r)+&quot; - &quot;+V.hoverLabelText(t,i,r);var a=&quot;log&quot;===t.type&amp;&amp;n&lt;=0,o=V.tickText(t,t.c2l(a?-n:n),&quot;hover&quot;).text;return a?0===n?&quot;0&quot;:P+o:o};var ct=[&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\u03bc&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;];function ut(t){return&quot;SI&quot;===t||&quot;B&quot;===t}function ft(t){return t&gt;14||t&lt;-15}function ht(t,e,r,n){var a=t&lt;0,o=e._tickround,l=r||e.exponentformat||&quot;B&quot;,c=e._tickexponent,u=V.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:&quot;none&quot;===e.showexponent?e.dtick:i(t)&amp;&amp;Math.abs(t)||1,range:&quot;none&quot;===e.showexponent?e.range.map(e.r2d):[0,t||1]};st(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&amp;&amp;(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,P);var p,d=Math.pow(10,-o)/2;if(&quot;none&quot;===l&amp;&amp;(c=0),(t=Math.abs(t))&lt;d)t=&quot;0&quot;,a=!1;else{if(t+=d,c&amp;&amp;(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o&lt;0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var g=o;g&lt;0;g++)t+=&quot;0&quot;}else{var m=(t=String(t)).indexOf(&quot;.&quot;)+1;m&amp;&amp;(t=t.substr(0,m+o).replace(/\.?0+$/,&quot;&quot;))}t=s.numSeparate(t,e._separators,f)}c&amp;&amp;&quot;hide&quot;!==l&amp;&amp;(ut(l)&amp;&amp;ft(c)&amp;&amp;(l=&quot;power&quot;),p=c&lt;0?P+-c:&quot;power&quot;!==l?&quot;+&quot;+c:String(c),&quot;e&quot;===l||&quot;E&quot;===l?t+=l+p:&quot;power&quot;===l?t+=&quot;\xd710&lt;sup&gt;&quot;+p+&quot;&lt;/sup&gt;&quot;:&quot;B&quot;===l&amp;&amp;9===c?t+=&quot;B&quot;:ut(l)&amp;&amp;(t+=ct[c/3+5]));return a?P+t:t}function pt(t,e){for(var r=[],n={},i=0;i&lt;e.length;i++){var a=e[i];n[a.text2]?n[a.text2].push(a.x):n[a.text2]=[a.x]}for(var o in n)r.push(lt(t,s.interp(n[o],.5),o));return r}function dt(t){return void 0!==t.periodX?t.periodX:t.x}function gt(t){return[t.text,t.x,t.axInfo,t.font,t.fontSize,t.fontColor].join(&quot;_&quot;)}function mt(t){var e=t.title.font.size,r=(t.title.text.match(c.BR_TAG_ALL)||[]).length;return t.title.hasOwnProperty(&quot;standoff&quot;)?r?e*(N+r*j):e*N:r?e*(r+1)*j:e}function vt(t,e){var r=t.l2p(e);return r&gt;1&amp;&amp;r&lt;t._length-1}function yt(t){var e=n.select(t),r=e.select(&quot;.text-math-group&quot;);return r.empty()?e.select(&quot;text&quot;):r}function xt(t){return t._id+&quot;.automargin&quot;}function bt(t){return xt(t)+&quot;.mirror&quot;}function _t(t){return t._id+&quot;.rangeslider&quot;}function wt(t,e){for(var r=0;r&lt;e.length;r++)-1===t.indexOf(e[r])&amp;&amp;t.push(e[r])}function Tt(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n&lt;e.length;n++)a.push(V.getFromId(t,e[n]));for(n=0;n&lt;r.length;n++)o.push(V.getFromId(t,r[n]));var c=Object.keys(p),u=[&quot;anchor&quot;,&quot;domain&quot;,&quot;overlaying&quot;,&quot;position&quot;,&quot;side&quot;,&quot;tickangle&quot;,&quot;editType&quot;],f=[&quot;linear&quot;,&quot;log&quot;];for(n=0;n&lt;c.length;n++){var h=c[n],d=a[0][h],g=o[0][h],m=!0,v=!1,y=!1;if(&quot;_&quot;!==h.charAt(0)&amp;&amp;&quot;function&quot;!=typeof d&amp;&amp;-1===u.indexOf(h)){for(i=1;i&lt;a.length&amp;&amp;m;i++){var x=a[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(d)&amp;&amp;-1!==f.indexOf(x)&amp;&amp;d!==x?v=!0:x!==d&amp;&amp;(m=!1)}for(i=1;i&lt;o.length&amp;&amp;m;i++){var b=o[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(g)&amp;&amp;-1!==f.indexOf(b)&amp;&amp;g!==b?y=!0:o[i][h]!==g&amp;&amp;(m=!1)}m&amp;&amp;(v&amp;&amp;(l[a[0]._name].type=&quot;linear&quot;),y&amp;&amp;(l[o[0]._name].type=&quot;linear&quot;),kt(l,h,a,o,t._fullLayout._dfltTitle))}}for(n=0;n&lt;t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&amp;&amp;-1!==r.indexOf(_.yref)&amp;&amp;s.swapAttrs(l.annotations[n],[&quot;?&quot;])}}function kt(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(&quot;title&quot;===e&amp;&amp;(l&amp;&amp;l.text===i.x&amp;&amp;(l.text=i.y),c&amp;&amp;c.text===i.y&amp;&amp;(c.text=i.x)),a=0;a&lt;r.length;a++)o(t,r[a]._name+&quot;.&quot;+e).set(c);for(a=0;a&lt;n.length;a++)o(t,n[a]._name+&quot;.&quot;+e).set(l)}function At(t){return&quot;angularaxis&quot;===t._id}function Mt(t,e){for(var r=e._rangebreaks.length,n=0;n&lt;r;n++){var i=e._rangebreaks[n];if(t&gt;=i.min&amp;&amp;t&lt;i.max)return i.max}return t}function St(t){return-1!==(t.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)}function Et(t,e){St(t._anchorAxis||{})&amp;&amp;t._hideCounterAxisInsideTickLabels&amp;&amp;t._hideCounterAxisInsideTickLabels(e)}V.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return&quot;string&quot;!=typeof t?t:Number(t.replace(&quot;M&quot;,&quot;&quot;))*T}function u(t,e){var r=[&quot;L&quot;,&quot;D&quot;];if(typeof t==typeof e){if(&quot;number&quot;==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,&quot;&quot;))-Number(e.replace(/(L|D)/g,&quot;&quot;)):n-i}return&quot;number&quot;==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])&gt;=0,a=u(t,e[1])&lt;=0;return(r||i)&amp;&amp;(n||a)}if(t.tickformatstops&amp;&amp;t.tickformatstops.length&gt;0)switch(t.type){case&quot;date&quot;:case&quot;linear&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;(i=t.dtick,a=n.dtickrange,o=void 0,s=void 0,l=void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&amp;&amp;&quot;number&quot;!=typeof s||o(s)&lt;=o(i))&amp;&amp;(!l&amp;&amp;&quot;number&quot;!=typeof l||o(l)&gt;=o(i)))){r=n;break}break;case&quot;log&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},V.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?V.findSubplotsWithAxis(n,e):n;return i.sort((function(t,e){var r=t.substr(1).split(&quot;y&quot;),n=e.substr(1).split(&quot;y&quot;);return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),i},V.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(&quot;x&quot;===e._id.charAt(0)?&quot;^&quot;+e._id+&quot;y&quot;:e._id+&quot;$&quot;),n=[],i=0;i&lt;t.length;i++){var a=t[i];r.test(a)&amp;&amp;n.push(a)}return n},V.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:&quot;&quot;},o={_offset:0,_length:e.height,_id:&quot;&quot;},s=V.list(t,&quot;x&quot;,!0),l=V.list(t,&quot;y&quot;,!0),c=[];for(r=0;r&lt;s.length;r++)for(c.push({x:s[r],y:o}),i=0;i&lt;l.length;i++)0===r&amp;&amp;c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(&quot;.axesclip&quot;).data(c,(function(t){return t.x._id+t.y._id}));u.enter().append(&quot;clipPath&quot;).classed(&quot;axesclip&quot;,!0).attr(&quot;id&quot;,(function(t){return&quot;clip&quot;+e._uid+t.x._id+t.y._id})).append(&quot;rect&quot;),u.exit().remove(),u.each((function(t){n.select(this).select(&quot;rect&quot;).attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})}))}},V.draw=function(t,e,r){var n=t._fullLayout;&quot;redraw&quot;===e&amp;&amp;n._paper.selectAll(&quot;g.subplot&quot;).each((function(t){var e=t[0],r=n._plots[e];if(r){var i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick2&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick2&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;divider&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;divider&quot;).remove(),r.gridlayer&amp;&amp;r.gridlayer.selectAll(&quot;path&quot;).remove(),r.zerolinelayer&amp;&amp;r.zerolinelayer.selectAll(&quot;path&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+i._id+&quot;title&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+a._id+&quot;title&quot;).remove()}}));var i=e&amp;&amp;&quot;redraw&quot;!==e?e:V.listIds(t);return s.syncOrAsync(i.map((function(e){return function(){if(e){var n=V.getFromId(t,e),i=V.drawOne(t,n,r);return n._r=n.range.slice(),n._rl=s.simpleMap(n._r,n.r2l),i}}})))},V.drawOne=function(t,e,r){var n,i,l;r=r||{},e.setScale();var c=t._fullLayout,p=e._id,d=p.charAt(0),g=V.counterLetter(p),m=c._plots[e._mainSubplot];if(m){var v=m[d+&quot;axislayer&quot;],y=e._mainLinePosition,x=e._mainMirrorPosition,b=e._vals=V.calcTicks(e),_=[e.mirror,y,x].join(&quot;_&quot;);for(n=0;n&lt;b.length;n++)b[n].axInfo=_;e._selections={},e._tickAngles&amp;&amp;(e._prevTickAngles=e._tickAngles),e._tickAngles={},e._depth=null;var w={};if(e.visible){var T,k,A=V.makeTransTickFn(e),M=V.makeTransTickLabelFn(e),S=&quot;inside&quot;===e.ticks,E=&quot;outside&quot;===e.ticks;if(&quot;boundaries&quot;===e.tickson){var L=function(t,e){var r,n=[],i=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;n.push(s.extendFlat({},t,{x:r}))};if(e.length){for(r=0;r&lt;e.length;r++)i(e[r],0);i(e[r-1],1)}return n}(0,b);k=V.clipEnds(e,L),T=S?k:L}else k=V.clipEnds(e,b),T=S&amp;&amp;&quot;period&quot;!==e.ticklabelmode?k:b;var C=e._gridVals=k,P=function(t,e){var r,n,i=[],a=e.length&amp;&amp;e[e.length-1].x&lt;e[0].x,o=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;i.push(s.extendFlat({},t,{x:r}))};if(t.showdividers&amp;&amp;e.length){for(r=0;r&lt;e.length;r++){var l=e[r];l.text2!==n&amp;&amp;o(l,a?1:0),n=l.text2}o(e[r-1],a?0:1)}return i}(e,b);if(!c._hasOnlyLargeSploms){var I=e._subplotsWith,O={};for(n=0;n&lt;I.length;n++){i=I[n];var z=(l=c._plots[i])[g+&quot;axis&quot;],D=z._mainAxis._id;if(!O[D]){O[D]=1;var R=&quot;x&quot;===d?&quot;M0,&quot;+z._offset+&quot;v&quot;+z._length:&quot;M&quot;+z._offset+&quot;,0h&quot;+z._length;V.drawGrid(t,e,{vals:C,counterAxis:z,layer:l.gridlayer.select(&quot;.&quot;+p),path:R,transFn:A}),V.drawZeroLine(t,e,{counterAxis:z,layer:l.zerolinelayer,path:R,transFn:A})}}}var F=V.getTickSigns(e),B=[];if(e.ticks){var N,q,H,G=V.makeTickPath(e,y,F[2]);if(e._anchorAxis&amp;&amp;e.mirror&amp;&amp;!0!==e.mirror?(N=V.makeTickPath(e,x,F[3]),q=G+N):(N=&quot;&quot;,q=G),e.showdividers&amp;&amp;E&amp;&amp;&quot;boundaries&quot;===e.tickson){var Y={};for(n=0;n&lt;P.length;n++)Y[P[n].x]=1;H=function(t){return Y[t.x]?N:q}}else H=q;V.drawTicks(t,e,{vals:T,layer:v,path:H,transFn:A}),&quot;allticks&quot;===e.mirror&amp;&amp;(B=Object.keys(e._linepositions||{}))}for(n=0;n&lt;B.length;n++){i=B[n],l=c._plots[i];var W=e._linepositions[i]||[],X=V.makeTickPath(e,W[0],F[0])+V.makeTickPath(e,W[1],F[1]);V.drawTicks(t,e,{vals:T,layer:l[d+&quot;axislayer&quot;],path:X,transFn:A})}var Z=[];if(Z.push((function(){return V.drawLabels(t,e,{vals:b,layer:v,plotinfo:l,transFn:M,labelFns:V.makeLabelFns(e,y)})})),&quot;multicategory&quot;===e.type){var J={x:2,y:10}[d];Z.push((function(){var r={x:&quot;height&quot;,y:&quot;width&quot;}[d],n=Q()[r]+J+(e._tickAngles[p+&quot;tick&quot;]?e.tickfont.size*j:0);return V.drawLabels(t,e,{vals:pt(e,b),layer:v,cls:p+&quot;tick2&quot;,repositionOnUpdate:!0,secondary:!0,transFn:A,labelFns:V.makeLabelFns(e,y+n*F[4])})})),Z.push((function(){return e._depth=F[4]*(Q(&quot;tick2&quot;)[e.side]-y),function(t,e,r){var n=e._id+&quot;divider&quot;,i=r.vals,a=r.layer.selectAll(&quot;path.&quot;+n).data(i,gt);a.exit().remove(),a.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(n,1).classed(&quot;crisp&quot;,1).call(f.stroke,e.dividercolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.dividerwidth,1)+&quot;px&quot;),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path)}(t,e,{vals:P,layer:v,path:V.makeTickPath(e,y,F[4],e._depth),transFn:A})}))}else e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;Z.push((function(){e._depth=F[4]*(Q()[e.side]-y)}));var K=o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(e);return Z.push((function(){var r,n,i,s,l=e.side.charAt(0),u=U[e.side].charAt(0),f=V.getPxPosition(t,e),h=E?e.ticklen:0;if((e.automargin||K)&amp;&amp;(&quot;multicategory&quot;===e.type?r=Q(&quot;tick2&quot;):(r=Q(),&quot;x&quot;===d&amp;&amp;&quot;b&quot;===l&amp;&amp;(e._depth=Math.max(r.width&gt;0?r.bottom-f:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if(&quot;x&quot;===d){if(&quot;b&quot;===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width&gt;0?f-r.top:0,h),p.reverse()),r.width&gt;0){var m=r.right-(e._offset+e._length);m&gt;0&amp;&amp;(n.xr=1,n.r=m);var v=e._offset-r.left;v&gt;0&amp;&amp;(n.xl=0,n.l=v)}}else if(&quot;l&quot;===l?n[l]=e._depth=Math.max(r.height&gt;0?f-r.left:0,h):(n[l]=e._depth=Math.max(r.height&gt;0?r.right-f:0,h),p.reverse()),r.height&gt;0){var y=r.bottom-(e._offset+e._length);y&gt;0&amp;&amp;(n.yb=0,n.b=y);var x=e._offset-r.top;x&gt;0&amp;&amp;(n.yt=1,n.t=x)}n[g]=&quot;free&quot;===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==c._dfltTitle[d]&amp;&amp;(n[l]+=mt(e)+(e.title.standoff||0)),e.mirror&amp;&amp;&quot;free&quot;!==e.anchor&amp;&amp;((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&amp;&amp;!0!==e.mirror&amp;&amp;(i[u]+=h),!0===e.mirror||&quot;ticks&quot;===e.mirror?i[g]=e._anchorAxis.domain[p[1]]:&quot;all&quot;!==e.mirror&amp;&amp;&quot;allticks&quot;!==e.mirror||(i[g]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}K&amp;&amp;(s=o.getComponentMethod(&quot;rangeslider&quot;,&quot;autoMarginOpts&quot;)(t,e)),a.autoMargin(t,xt(e),n),a.autoMargin(t,bt(e),i),a.autoMargin(t,_t(e),s)})),r.skipTitle||K&amp;&amp;&quot;bottom&quot;===e.side||Z.push((function(){return function(t,e){var r,n=t._fullLayout,i=e._id,a=i.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty(&quot;standoff&quot;))r=e._depth+e.title.standoff+mt(e);else{var s=St(e);if(&quot;multicategory&quot;===e.type)r=e._depth;else{var l=1.5*o;s&amp;&amp;(l=.5*o,&quot;outside&quot;===e.ticks&amp;&amp;(l+=e.ticklen)),r=10+l+(e.linewidth?e.linewidth-1:0)}s||(r+=&quot;x&quot;===a?&quot;top&quot;===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):&quot;right&quot;===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0))}var c,f,p,d,g=V.getPxPosition(t,e);&quot;x&quot;===a?(f=e._offset+e._length/2,p=&quot;top&quot;===e.side?g-r:g+r):(p=e._offset+e._length/2,f=&quot;right&quot;===e.side?g+r:g-r,c={rotate:&quot;-90&quot;,offset:0});if(&quot;multicategory&quot;!==e.type){var m=e._selections[e._id+&quot;tick&quot;];if(d={selection:m,side:e.side},m&amp;&amp;m.node()&amp;&amp;m.node().parentNode){var v=h.getTranslate(m.node().parentNode);d.offsetLeft=v.x,d.offsetTop=v.y}e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;(d.pad=0)}return u.draw(t,i+&quot;title&quot;,{propContainer:e,propName:e._name+&quot;.title.text&quot;,placeholder:n._dfltTitle[a],avoid:d,transform:c,attributes:{x:f,y:p,&quot;text-anchor&quot;:&quot;middle&quot;}})}(t,e)})),s.syncOrAsync(Z)}}function Q(t){var r=p+(t||&quot;tick&quot;);return w[r]||(w[r]=function(t,e){var r,n,i,a;t._selections[e].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,t._selections[e].each((function(){var t=yt(this),e=h.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),i=Math.min(i,e.left),a=Math.max(a,e.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(e,r)),w[r]}},V.getTickSigns=function(t){var e=t._id.charAt(0),r={x:&quot;top&quot;,y:&quot;right&quot;}[e],n=t.side===r?1:-1,i=[-1,1,n,-n];return&quot;inside&quot;!==t.ticks==(&quot;x&quot;===e)&amp;&amp;(i=i.map((function(t){return-t}))),t.side&amp;&amp;i.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),i},V.makeTransTickFn=function(t){return&quot;x&quot;===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},V.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||&quot;&quot;,r=function(t){return-1!==e.indexOf(t)},n=r(&quot;top&quot;),i=r(&quot;left&quot;),a=r(&quot;right&quot;),o=r(&quot;bottom&quot;),s=r(&quot;inside&quot;),l=o||i||n||a;if(!l&amp;&amp;!s)return[0,0];var c=t.side,u=l?(t.tickwidth||0)/2:0,f=3,h=t.tickfont?t.tickfont.size:12;(o||n)&amp;&amp;(u+=h*N,f+=(t.linewidth||0)/2);(i||a)&amp;&amp;(u+=(t.linewidth||0)/2,f+=3);s&amp;&amp;&quot;top&quot;===c&amp;&amp;(f-=h*(1-N));(i||n)&amp;&amp;(u=-u);&quot;bottom&quot;!==c&amp;&amp;&quot;right&quot;!==c||(f=-f);return[l?u:0,s?f:0]}(t),r=e[0],n=e[1];return&quot;x&quot;===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(dt(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(dt(e)))}},V.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var i=t._id.charAt(0),a=(t.linewidth||1)/2;return&quot;x&quot;===i?&quot;M0,&quot;+(e+a*r)+&quot;v&quot;+n*r:&quot;M&quot;+(e+a*r)+&quot;,0h&quot;+n*r},V.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||&quot;&quot;,a=function(t){return-1!==n.indexOf(t)},o=a(&quot;top&quot;),l=a(&quot;left&quot;),c=a(&quot;right&quot;),u=a(&quot;bottom&quot;)||l||o||c,f=a(&quot;inside&quot;),h=&quot;inside&quot;===n&amp;&amp;&quot;inside&quot;===t.ticks||!f&amp;&amp;&quot;outside&quot;===t.ticks&amp;&amp;&quot;boundaries&quot;!==t.tickson,p=0,d=0,g=h?t.ticklen:0;if(f?g*=-1:u&amp;&amp;(g=0),h&amp;&amp;(p+=g,r)){var m=s.deg2rad(r);p=g*Math.cos(m)+1,d=g*Math.sin(m)}t.showticklabels&amp;&amp;(h||t.showline)&amp;&amp;(p+=.2*t.tickfont.size);var v,y,x,b,_,w={labelStandoff:p+=(t.linewidth||1)/2*(f?-1:1),labelShift:d},T=0,k=t.side,A=t._id.charAt(0),M=t.tickangle;if(&quot;x&quot;===A)b=(_=!f&amp;&amp;&quot;bottom&quot;===k||f&amp;&amp;&quot;top&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=d*b,y=e+p*b,x=_?1:-.2,90===Math.abs(M)&amp;&amp;(f?x+=B:x=-90===M&amp;&amp;&quot;bottom&quot;===k?N:90===M&amp;&amp;&quot;top&quot;===k?B:.5,T=B/2*(M/90)),w.xFn=function(t){return t.dx+v+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*x},w.anchorFn=function(t,e){if(u){if(l)return&quot;end&quot;;if(c)return&quot;start&quot;}return i(e)&amp;&amp;0!==e&amp;&amp;180!==e?e*b&lt;0!==f?&quot;end&quot;:&quot;start&quot;:&quot;middle&quot;},w.heightFn=function(e,r,n){return r&lt;-60||r&gt;60?-.5*n:&quot;top&quot;===t.side!==f?-n:0};else if(&quot;y&quot;===A){if(b=(_=!f&amp;&amp;&quot;left&quot;===k||f&amp;&amp;&quot;right&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=p,y=d*b,x=0,f||90!==Math.abs(M)||(x=-90===M&amp;&amp;&quot;left&quot;===k||90===M&amp;&amp;&quot;right&quot;===k?N:.5),f){var S=i(M)?+M:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*N*b,x=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*x)*b+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*B},w.anchorFn=function(t,e){return i(e)&amp;&amp;90===Math.abs(e)?&quot;middle&quot;:_?&quot;end&quot;:&quot;start&quot;},w.heightFn=function(e,r,n){return&quot;right&quot;===t.side&amp;&amp;(r*=-1),r&lt;-30?-n:r&lt;30?-.5*n:0}}return w},V.drawTicks=function(t,e,r){r=r||{};var n=e._id+&quot;tick&quot;,i=r.vals;&quot;period&quot;===e.ticklabelmode&amp;&amp;(i=i.slice()).shift();var a=r.layer.selectAll(&quot;path.&quot;+n).data(e.ticks?i:[],gt);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;ticks&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).call(f.stroke,e.tickcolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.tickwidth,1)+&quot;px&quot;).attr(&quot;d&quot;,r.path).style(&quot;display&quot;,null),Et(e,[D]),a.attr(&quot;transform&quot;,r.transFn)},V.drawGrid=function(t,e,r){r=r||{};var n=e._id+&quot;grid&quot;,i=r.vals,a=r.counterAxis;if(!1===e.showgrid)i=[];else if(a&amp;&amp;V.shouldShowZeroLine(t,e,a))for(var o=&quot;array&quot;===e.tickmode,s=0;s&lt;i.length;s++){var l=i[s].x;if(o?!l:Math.abs(l)&lt;e.dtick/100){if(i=i.slice(0,s).concat(i.slice(s+1)),!o)break;s--}}var c=r.layer.selectAll(&quot;path.&quot;+n).data(i,gt);c.exit().remove(),c.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;crisp&quot;,!1!==r.crisp),e._gw=h.crispRound(t,e.gridwidth,1),c.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.gridcolor||&quot;#ddd&quot;).style(&quot;stroke-width&quot;,e._gw+&quot;px&quot;).style(&quot;display&quot;,null),Et(e,[z]),&quot;function&quot;==typeof r.path&amp;&amp;c.attr(&quot;d&quot;,r.path)},V.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+&quot;zl&quot;,i=V.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll(&quot;path.&quot;+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;zl&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).each((function(){r.layer.selectAll(&quot;path&quot;).sort((function(t,e){return G(t.id,e.id)}))})),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.zerolinecolor||f.defaultLine).style(&quot;stroke-width&quot;,h.crispRound(t,e.zerolinewidth,e._gw||1)+&quot;px&quot;).style(&quot;display&quot;,null),Et(e,[O])},V.drawLabels=function(t,e,r){r=r||{};var a=t._fullLayout,o=e._id,u=o.charAt(0),f=r.cls||o+&quot;tick&quot;,p=r.vals,d=r.labelFns,g=r.secondary?0:e.tickangle,m=(e._prevTickAngles||{})[f],v=r.layer.selectAll(&quot;g.&quot;+f).data(e.showticklabels?p:[],gt),y=[];function x(t,a){t.each((function(t){var o=n.select(this),s=o.select(&quot;.text-math-group&quot;),u=d.anchorFn(t,a),f=r.transFn.call(o.node(),t)+(i(a)&amp;&amp;0!=+a?&quot; rotate(&quot;+a+&quot;,&quot;+d.xFn(t)+&quot;,&quot;+(d.yFn(t)-t.fontSize/2)+&quot;)&quot;:&quot;&quot;),p=c.lineCount(o),g=j*t.fontSize,m=d.heightFn(t,i(a)?+a:0,(p-1)*g);if(m&amp;&amp;(f+=l(0,m)),s.empty()){var v=o.select(&quot;text&quot;);v.attr({transform:f,&quot;text-anchor&quot;:u}),v.style(&quot;opacity&quot;,1),e._adjustTickLabelsOverflow&amp;&amp;e._adjustTickLabelsOverflow()}else{var y=h.bBox(s.node()).width*{end:-.5,start:.5}[u];s.attr(&quot;transform&quot;,f+l(y,0))}}))}v.enter().append(&quot;g&quot;).classed(f,1).append(&quot;text&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).each((function(e){var r=n.select(this),i=t._promises.length;r.call(c.positionText,d.xFn(e),d.yFn(e)).call(h.font,e.font,e.fontSize,e.fontColor).text(e.text).call(c.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){x(r,g)}))):x(r,g)})),Et(e,[R]),v.exit().remove(),r.repositionOnUpdate&amp;&amp;v.each((function(t){n.select(this).select(&quot;text&quot;).call(c.positionText,d.xFn(t),d.yFn(t))})),e._adjustTickLabelsOverflow=function(){var r=e.ticklabeloverflow;if(r&amp;&amp;&quot;allow&quot;!==r){var i=-1!==r.indexOf(&quot;hide&quot;),o=&quot;x&quot;===e._id.charAt(0),l=0,c=o?t._fullLayout.width:t._fullLayout.height;if(-1!==r.indexOf(&quot;domain&quot;)){var u=s.simpleMap(e.range,e.r2l);l=e.l2p(u[0])+e._offset,c=e.l2p(u[1])+e._offset}var f=Math.min(l,c),p=Math.max(l,c),d=e.side,g=1/0,m=-1/0;for(var y in v.each((function(t){var r=n.select(this);if(r.select(&quot;.text-math-group&quot;).empty()){var a=h.bBox(r.node()),s=0;o?(a.right&gt;p||a.left&lt;f)&amp;&amp;(s=1):(a.bottom&gt;p||a.top+(e.tickangle?0:t.fontSize/4)&lt;f)&amp;&amp;(s=1);var l=r.select(&quot;text&quot;);s?i&amp;&amp;l.style(&quot;opacity&quot;,0):(l.style(&quot;opacity&quot;,1),g=&quot;bottom&quot;===d||&quot;right&quot;===d?Math.min(g,o?a.top:a.left):-1/0,m=&quot;top&quot;===d||&quot;left&quot;===d?Math.max(m,o?a.bottom:a.right):1/0)}})),a._plots){var x=a._plots[y];if(e._id===x.xaxis._id||e._id===x.yaxis._id){var b=o?x.yaxis:x.xaxis;b&amp;&amp;(b[&quot;_visibleLabelMin_&quot;+e._id]=g,b[&quot;_visibleLabelMax_&quot;+e._id]=m)}}}},e._hideCounterAxisInsideTickLabels=function(t){var r=&quot;x&quot;===e._id.charAt(0),i=[];for(var o in a._plots){var s=a._plots[o];e._id!==s.xaxis._id&amp;&amp;e._id!==s.yaxis._id||i.push(r?s.yaxis:s.xaxis)}i.forEach((function(r,i){r&amp;&amp;St(r)&amp;&amp;(t||[O,z,D,R]).forEach((function(t){var o=&quot;tick&quot;===t.K&amp;&amp;&quot;text&quot;===t.L&amp;&amp;&quot;period&quot;===e.ticklabelmode,s=a._plots[e._mainSubplot];(t.K===O.K?s.zerolinelayer.selectAll(&quot;.&quot;+e._id+&quot;zl&quot;):t.K===z.K?s.gridlayer.selectAll(&quot;.&quot;+e._id):s[e._id.charAt(0)+&quot;axislayer&quot;]).each((function(){var a=n.select(this);t.L&amp;&amp;(a=a.selectAll(t.L)),a.each((function(a){var s=e.l2p(o?dt(a):a.x)+e._offset,l=n.select(this);s&lt;e[&quot;_visibleLabelMax_&quot;+r._id]&amp;&amp;s&gt;e[&quot;_visibleLabelMin_&quot;+r._id]?l.style(&quot;display&quot;,&quot;none&quot;):&quot;tick&quot;!==t.K||i||l.style(&quot;display&quot;,null)}))}))}))}))},x(v,m+1?m:g);var b=null;e._selections&amp;&amp;(e._selections[f]=v);var _=[function(){return y.length&amp;&amp;Promise.all(y)}];e.automargin&amp;&amp;a._redrawFromAutoMarginCount&amp;&amp;90===m?(b=90,_.push((function(){x(v,m)}))):_.push((function(){if(x(v,g),p.length&amp;&amp;&quot;x&quot;===u&amp;&amp;!i(g)&amp;&amp;(&quot;log&quot;!==e.type||&quot;D&quot;!==String(e.dtick).charAt(0))){b=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=yt(this),o=h.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),&quot;boundaries&quot;!==e.tickson&amp;&amp;!e.showdividers||r.secondary){var o=p.length,l=Math.abs((p[o-1].x-p[0].x)*e._m)/(o-1),c=e.ticklabelposition||&quot;&quot;,f=function(t){return-1!==c.indexOf(t)},d=f(&quot;top&quot;),m=f(&quot;left&quot;),y=f(&quot;right&quot;),_=f(&quot;bottom&quot;)||m||d||y?(e.tickwidth||0)+6:0,w=l&lt;2.5*n||&quot;multicategory&quot;===e.type;for(t=0;t&lt;a.length-1;t++)if(s.bBoxIntersect(a[t],a[t+1],_)){b=w?90:30;break}}else{var T=2;for(e.ticks&amp;&amp;(T+=e.tickwidth/2),t=0;t&lt;a.length;t++){var k=p[t].xbnd,A=a[t];if(null!==k[0]&amp;&amp;A.left-e.l2p(k[0])&lt;T||null!==k[1]&amp;&amp;e.l2p(k[1])-A.right&lt;T){b=90;break}}}b&amp;&amp;x(v,b)}})),e._tickAngles&amp;&amp;_.push((function(){e._tickAngles[f]=null===b?i(g)?g:0:b}));var w=e._anchorAxis;w&amp;&amp;w.autorange&amp;&amp;St(e)&amp;&amp;!Y(a,e._id)&amp;&amp;(a._insideTickLabelsAutorange||(a._insideTickLabelsAutorange={}),a._insideTickLabelsAutorange[w._name+&quot;.autorange&quot;]=w.autorange,_.push((function(){v.each((function(t,r){var n=yt(this);n.select(&quot;.text-math-group&quot;).empty()&amp;&amp;(e._vals[r].bb=h.bBox(n.node()))}))})));var T=s.syncOrAsync(_);return T&amp;&amp;T.then&amp;&amp;t._promises.push(T),T},V.getPxPosition=function(t,e){var r,n=t._fullLayout._size,i=e._id.charAt(0),a=e.side;return&quot;free&quot;!==e.anchor?r=e._anchorAxis:&quot;x&quot;===i?r={_offset:n.t+(1-(e.position||0))*n.h,_length:0}:&quot;y&quot;===i&amp;&amp;(r={_offset:n.l+(e.position||0)*n.w,_length:0}),&quot;top&quot;===a||&quot;left&quot;===a?r._offset:&quot;bottom&quot;===a||&quot;right&quot;===a?r._offset+r._length:void 0},V.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]&lt;=0&amp;&amp;e.zeroline&amp;&amp;(&quot;linear&quot;===e.type||&quot;-&quot;===e.type)&amp;&amp;!(e.rangebreaks&amp;&amp;e.maskBreaks(0)===I)&amp;&amp;(vt(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=V.counterLetter(e._id),l=e._offset+(Math.abs(n[0])&lt;Math.abs(n[1])==(&quot;x&quot;===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return&quot;number&quot;==typeof t&amp;&amp;Math.abs(t-l)&lt;r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=V.list(t,s),h=0;h&lt;f.length;h++){var p=f[h];if(p._mainAxis===i&amp;&amp;c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a&lt;r.length;a++){var s=r[a];if(!0===s.visible&amp;&amp;s.xaxis+s.yaxis===n){if(o.traceIs(s,&quot;bar-like&quot;)&amp;&amp;s.orientation==={x:&quot;h&quot;,y:&quot;v&quot;}[i])return!0;if(s.fill&amp;&amp;s.fill.charAt(s.fill.length-1)===i)return!0}}return!1}(t,e))},V.clipEnds=function(t,e){return e.filter((function(e){return vt(t,e.x)}))},V.allowAutoMargin=function(t){for(var e=V.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r];n.automargin&amp;&amp;(a.allowAutoMargin(t,xt(n)),n.mirror&amp;&amp;a.allowAutoMargin(t,bt(n))),o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(n)&amp;&amp;a.allowAutoMargin(t,_t(n))}},V.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r&lt;e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&amp;&amp;s){for(n=0;n&lt;i.length;n++)-1===i[n].x.indexOf(o)&amp;&amp;-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length&gt;1)for(n=1;n&lt;a.length;n++)l=i[a[n]],wt(c.x,l.x),wt(c.y,l.y);wt(c.x,[o]),wt(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n&lt;r.length;n++)Tt(t,r[n].x,r[n].y)}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../components/titles&quot;:764,&quot;../../constants/alignment&quot;:771,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/plots&quot;:917,&quot;../../registry&quot;:931,&quot;./autorange&quot;:853,&quot;./axis_autotype&quot;:855,&quot;./axis_ids&quot;:858,&quot;./clean_ticks&quot;:860,&quot;./layout_attributes&quot;:869,&quot;./set_convert&quot;:875,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],855:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=i.isArrayOrTypedArray,s=i.isDateTime,l=i.cleanNumber,c=Math.round;function u(t,e){return e?n(t):&quot;number&quot;==typeof t}function f(t){return Math.max(1,(t-1)/1e3)}e.exports=function(t,e,r){var i=t,h=r.noMultiCategory;if(o(i)&amp;&amp;!i.length)return&quot;-&quot;;if(!h&amp;&amp;function(t){return o(t[0])&amp;&amp;o(t[1])}(i))return&quot;multicategory&quot;;if(h&amp;&amp;Array.isArray(i[0])){for(var p=[],d=0;d&lt;i.length;d++)if(o(i[d]))for(var g=0;g&lt;i[d].length;g++)p.push(i[d][g]);i=p}if(function(t,e){for(var r=t.length,i=f(r),a=0,o=0,l={},u=0;u&lt;r;u+=i){var h=c(u),p=t[h],d=String(p);l[d]||(l[d]=1,s(p,e)&amp;&amp;a++,n(p)&amp;&amp;o++)}return a&gt;2*o}(i,e))return&quot;date&quot;;var m=&quot;strict&quot;!==r.autotypenumbers;return function(t,e){for(var r=t.length,n=f(r),i=0,o=0,s={},u=0;u&lt;r;u+=n){var h=c(u),p=t[h],d=String(p);if(!s[d]){s[d]=1;var g=typeof p;&quot;boolean&quot;===g?o++:(e?l(p)!==a:&quot;number&quot;===g)?i++:&quot;string&quot;===g&amp;&amp;o++}}return o&gt;2*i}(i,m)?&quot;category&quot;:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(u(t[n],e))return!0;return!1}(i,m)?&quot;linear&quot;:&quot;-&quot;}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],856:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../array_container_defaults&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./tick_value_defaults&quot;),c=t(&quot;./tick_mark_defaults&quot;),u=t(&quot;./tick_label_defaults&quot;),f=t(&quot;./category_order_defaults&quot;),h=t(&quot;./line_grid_defaults&quot;),p=t(&quot;./set_convert&quot;),d=t(&quot;./constants&quot;).WEEKDAY_PATTERN,g=t(&quot;./constants&quot;).HOUR_PATTERN;function m(t,e,r){function i(r,n){return a.coerce(t,e,s.rangebreaks,r,n)}if(i(&quot;enabled&quot;)){var o=i(&quot;bounds&quot;);if(o&amp;&amp;o.length&gt;=2){var l,c,u=&quot;&quot;;if(2===o.length)for(l=0;l&lt;2;l++)if(c=y(o[l])){u=d;break}var f=i(&quot;pattern&quot;,u);if(f===d)for(l=0;l&lt;2;l++)(c=y(o[l]))&amp;&amp;(e.bounds[l]=o[l]=c-1);if(f)for(l=0;l&lt;2;l++)switch(c=o[l],f){case d:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c&lt;0||c&gt;=7)return void(e.enabled=!1);e.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(e.enabled=!1);if((c=+c)&lt;0||c&gt;24)return void(e.enabled=!1);e.bounds[l]=o[l]=c}if(!1===r.autorange){var h=r.range;if(h[0]&lt;h[1]){if(o[0]&lt;h[0]&amp;&amp;o[1]&gt;h[1])return void(e.enabled=!1)}else if(o[0]&gt;h[0]&amp;&amp;o[1]&lt;h[1])return void(e.enabled=!1)}}else{var p=i(&quot;values&quot;);if(!p||!p.length)return void(e.enabled=!1);i(&quot;dvalue&quot;)}}}e.exports=function(t,e,r,n,g){var v,y=n.letter,x=n.font||{},b=n.splomStash||{},_=r(&quot;visible&quot;,!n.visibleDflt),w=e._template||{},T=e.type||w.type||&quot;-&quot;;&quot;date&quot;===T&amp;&amp;(i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,n.calendar),n.noTicklabelmode||(v=r(&quot;ticklabelmode&quot;)));var k=&quot;&quot;;n.noTicklabelposition&amp;&amp;&quot;multicategory&quot;!==T||(k=a.coerce(t,e,{ticklabelposition:{valType:&quot;enumerated&quot;,dflt:&quot;outside&quot;,values:&quot;period&quot;===v?[&quot;outside&quot;,&quot;inside&quot;]:&quot;x&quot;===y?[&quot;outside&quot;,&quot;inside&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;]:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;]}},&quot;ticklabelposition&quot;)),n.noTicklabeloverflow||r(&quot;ticklabeloverflow&quot;,-1!==k.indexOf(&quot;inside&quot;)?&quot;hide past domain&quot;:&quot;category&quot;===T||&quot;multicategory&quot;===T?&quot;allow&quot;:&quot;hide past div&quot;),p(e,g);var A=!e.isValidRange(t.range);A&amp;&amp;n.reverseDflt&amp;&amp;(A=&quot;reversed&quot;),!r(&quot;autorange&quot;,A)||&quot;linear&quot;!==T&amp;&amp;&quot;-&quot;!==T||r(&quot;rangemode&quot;),r(&quot;range&quot;),e.cleanRange(),f(t,e,r,n),&quot;category&quot;===T||n.noHover||r(&quot;hoverformat&quot;);var M=r(&quot;color&quot;),S=M!==s.color.dflt?M:x.color,E=b.label||g._dfltTitle[y];if(u(t,e,r,T,n,{pass:1}),!_)return e;r(&quot;title.text&quot;,E),a.coerceFont(r,&quot;title.font&quot;,{family:x.family,size:a.bigFont(x.size),color:S}),l(t,e,r,T),u(t,e,r,T,n,{pass:2}),c(t,e,r,n),h(t,e,r,{dfltColor:M,bgColor:n.bgColor,showGrid:n.showGrid,attributes:s}),(e.showline||e.ticks)&amp;&amp;r(&quot;mirror&quot;),n.automargin&amp;&amp;r(&quot;automargin&quot;);var L,C=&quot;multicategory&quot;===T;n.noTickson||&quot;category&quot;!==T&amp;&amp;!C||!e.ticks&amp;&amp;!e.showgrid||(C&amp;&amp;(L=&quot;boundaries&quot;),&quot;boundaries&quot;===r(&quot;tickson&quot;,L)&amp;&amp;delete e.ticklabelposition);C&amp;&amp;(r(&quot;showdividers&quot;)&amp;&amp;(r(&quot;dividercolor&quot;),r(&quot;dividerwidth&quot;)));if(&quot;date&quot;===T)if(o(t,e,{name:&quot;rangebreaks&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:m}),e.rangebreaks.length){for(var P=0;P&lt;e.rangebreaks.length;P++)if(e.rangebreaks[P].pattern===d){e._hasDayOfWeekBreaks=!0;break}if(p(e,g),g._has(&quot;scattergl&quot;)||g._has(&quot;splom&quot;))for(var I=0;I&lt;n.data.length;I++){var O=n.data[I];&quot;scattergl&quot;!==O.type&amp;&amp;&quot;splom&quot;!==O.type||(O.visible=!1,a.warn(O.type+&quot; traces do not work on axes with rangebreaks. Setting trace &quot;+O.index+&quot; to `visible: false`.&quot;))}}else delete e.rangebreaks;return e};var v={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function y(t){if(&quot;string&quot;==typeof t)return v[t.substr(0,3).toLowerCase()]}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../array_container_defaults&quot;:849,&quot;./category_order_defaults&quot;:859,&quot;./constants&quot;:861,&quot;./layout_attributes&quot;:869,&quot;./line_grid_defaults&quot;:871,&quot;./set_convert&quot;:875,&quot;./tick_label_defaults&quot;:876,&quot;./tick_mark_defaults&quot;:877,&quot;./tick_value_defaults&quot;:878,&quot;fast-isnumeric&quot;:249}],857:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/docs&quot;),i=n.FORMAT_LINK,a=n.DATE_FORMAT_LINK;function o(t,e){return[&quot;Sets the &quot;+t+&quot; formatting rule&quot;+(e?&quot;for `&quot;+e+&quot;` &quot;:&quot;&quot;),&quot;using d3 formatting mini-languages&quot;,&quot;which are very similar to those in Python. For numbers, see: &quot;+i+&quot;.&quot;].join(&quot; &quot;)}function s(t,e){return o(t,e)+[&quot; And for dates see: &quot;+a+&quot;.&quot;,&quot;We add two items to d3's date formatter:&quot;,&quot;*%h* for half of the year as a decimal number as well as&quot;,&quot;*%{n}f* for fractional seconds&quot;,&quot;with n digits. For example, *2016-10-13 09:15:23.456* with tickformat&quot;,&quot;*%H~%M~%S.%2f* would display *09~15~23.46*&quot;].join(&quot; &quot;)}e.exports={axisHoverFormat:function(t,e){return{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;,description:(e?o:s)(&quot;hover text&quot;,t)+[&quot;By default the values are formatted using &quot;+(e?&quot;generic number format&quot;:&quot;`&quot;+t+&quot;axis.hoverformat`&quot;)+&quot;.&quot;].join(&quot; &quot;)}},descriptionOnlyNumbers:o,descriptionWithDates:s}},{&quot;../../constants/docs&quot;:774}],858:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./constants&quot;);function a(t,e){if(e&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++)if(e[r][t])return!0;return!1}r.id2name=function(t){if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)){var e=t.split(&quot; &quot;)[0].substr(1);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+&quot;axis&quot;+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+e}},r.cleanId=function(t,e,r){var n=/( domain)$/.test(t);if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)&amp;&amp;(!e||t.charAt(0)===e)&amp;&amp;(!n||r)){var a=t.split(&quot; &quot;)[0].substr(1).replace(/^0+/,&quot;&quot;);return&quot;1&quot;===a&amp;&amp;(a=&quot;&quot;),t.charAt(0)+a+(n&amp;&amp;r?&quot; domain&quot;:&quot;&quot;)}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a&lt;o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+&quot;axis&quot;+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a&lt;c.length;a++){var u=i[c[a]];e?s.push(u[e+&quot;axis&quot;]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+&quot;axis&quot;]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return e=void 0===e||&quot;string&quot;!=typeof e?e:e.replace(&quot; domain&quot;,&quot;&quot;),&quot;x&quot;===n?e=e.replace(/y[0-9]*/,&quot;&quot;):&quot;y&quot;===n&amp;&amp;(e=e.replace(/x[0-9]*/,&quot;&quot;)),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,&quot;gl3d&quot;)){var s=e.scene;&quot;scene&quot;===s.substr(0,5)&amp;&amp;(o=a[s][i+&quot;axis&quot;])}else o=r.getFromId(t,e[i+&quot;axis&quot;]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r&gt;n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&amp;&amp;t.split(&quot; &quot;)[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{&quot;../../registry&quot;:931,&quot;./constants&quot;:861}],859:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){if(&quot;category&quot;===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&amp;&amp;a.length&gt;0;o&amp;&amp;(i=&quot;array&quot;);var s,l=r(&quot;categoryorder&quot;,i);&quot;array&quot;===l&amp;&amp;(s=r(&quot;categoryarray&quot;)),o||&quot;array&quot;!==l||(l=e.categoryorder=&quot;trace&quot;),&quot;trace&quot;===l?e._initialCategories=[]:&quot;array&quot;===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n&lt;e.data.length;n++){var s=e.data[n];s[a+&quot;axis&quot;]===t._id&amp;&amp;r.push(s)}for(n=0;n&lt;r.length;n++){var l=r[n][a];for(i=0;i&lt;l.length;i++){var c=l[i];null!=c&amp;&amp;(o[c]=1)}}return Object.keys(o)}(e,n).sort(),&quot;category ascending&quot;===l?e._initialCategories=s:&quot;category descending&quot;===l&amp;&amp;(e._initialCategories=s.reverse()))}}},{}],860:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.ONEDAY,s=a.ONEWEEK;r.dtick=function(t,e){var r=&quot;log&quot;===e,i=&quot;date&quot;===e,a=&quot;category&quot;===e,s=i?o:1;if(!t)return s;if(n(t))return(t=Number(t))&lt;=0?s:a?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(&quot;string&quot;!=typeof t||!i&amp;&amp;!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)&lt;=0||!(i&amp;&amp;&quot;M&quot;===l&amp;&amp;c===Math.round(c)||r&amp;&amp;&quot;L&quot;===l||r&amp;&amp;&quot;D&quot;===l&amp;&amp;(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return&quot;date&quot;===e?i.cleanDate(t,i.dateTick0(r,a%s==0?1:0)):&quot;D1&quot;!==a&amp;&amp;&quot;D2&quot;!==a?n(t)?Number(t):0:void 0}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],861:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/regex&quot;).counter;e.exports={idRegex:{x:n(&quot;x&quot;,&quot;( domain)?&quot;),y:n(&quot;y&quot;,&quot;( domain)?&quot;)},attrRegex:n(&quot;[xy]axis&quot;),xAxisMatch:n(&quot;xaxis&quot;),yAxisMatch:n(&quot;yaxis&quot;),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:&quot;hour&quot;,WEEKDAY_PATTERN:&quot;day of week&quot;,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:&quot;-select&quot;,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[&quot;imagelayer&quot;,&quot;heatmaplayer&quot;,&quot;contourcarpetlayer&quot;,&quot;contourlayer&quot;,&quot;funnellayer&quot;,&quot;waterfalllayer&quot;,&quot;barlayer&quot;,&quot;carpetlayer&quot;,&quot;violinlayer&quot;,&quot;boxlayer&quot;,&quot;ohlclayer&quot;,&quot;scattercarpetlayer&quot;,&quot;scatterlayer&quot;],clipOnAxisFalseQuery:[&quot;.scatterlayer&quot;,&quot;.barlayer&quot;,&quot;.funnellayer&quot;,&quot;.waterfalllayer&quot;],layerValue2layerClass:{&quot;above traces&quot;:&quot;above&quot;,&quot;below traces&quot;:&quot;below&quot;}}},{&quot;../../lib/regex&quot;:820}],862:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./autorange&quot;),a=t(&quot;./axis_ids&quot;).id2name,o=t(&quot;./layout_attributes&quot;),s=t(&quot;./scale_zoom&quot;),l=t(&quot;./set_convert&quot;),c=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,u=t(&quot;../../constants/alignment&quot;).FROM_BL;function f(t,e,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,f=e._id,g=f.charAt(0),m=((s._splomAxes||{})[g]||{})[f]||{},v=e._id,y=&quot;x&quot;===v.charAt(0);function x(r,i){return n.coerce(t,e,o,r,i)}e._matchGroup=null,e._constraintGroup=null,x(&quot;constrain&quot;,l?&quot;domain&quot;:&quot;range&quot;),n.coerce(t,e,{constraintoward:{valType:&quot;enumerated&quot;,values:y?[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;]:[&quot;bottom&quot;,&quot;middle&quot;,&quot;top&quot;],dflt:y?&quot;center&quot;:&quot;middle&quot;}},&quot;constraintoward&quot;);var b,_,w=e.type,T=[];for(b=0;b&lt;i.length;b++){if((_=i[b])!==v)s[a(_)].type===w&amp;&amp;T.push(_)}var k=p(c,v);if(k){var A=[];for(b=0;b&lt;T.length;b++)k[_=T[b]]||A.push(_);T=A}var M,S,E=T.length;E&amp;&amp;(t.matches||m.matches)&amp;&amp;(M=n.coerce(t,e,{matches:{valType:&quot;enumerated&quot;,values:T,dflt:-1!==T.indexOf(m.matches)?m.matches:void 0}},&quot;matches&quot;));var L=l&amp;&amp;!y?e.anchor:void 0;if(E&amp;&amp;!M&amp;&amp;(t.scaleanchor||L)&amp;&amp;(S=n.coerce(t,e,{scaleanchor:{valType:&quot;enumerated&quot;,values:T}},&quot;scaleanchor&quot;,L)),M){e._matchGroup=d(u,v,M,1);var C=s[a(M)],P=h(s,e)/h(s,C);y!==(&quot;x&quot;===M.charAt(0))&amp;&amp;(P=(y?&quot;x&quot;:&quot;y&quot;)+P),d(c,v,M,P)}else t.matches&amp;&amp;-1!==i.indexOf(t.matches)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.matches: &quot;'+t.matches+'&quot; to avoid an infinite loop');if(S){var I=x(&quot;scaleratio&quot;);I||(I=e.scaleratio=1),d(c,v,S,I)}else t.scaleanchor&amp;&amp;-1!==i.indexOf(t.scaleanchor)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.scaleanchor: &quot;'+t.scaleanchor+'&quot; to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function h(t,e){var r=e.domain;return r||(r=t[a(e.overlaying)].domain),r[1]-r[0]}function p(t,e){for(var r=0;r&lt;t.length;r++)if(t[r][e])return t[r];return null}function d(t,e,r,n){var i,a,o,s,l,c=p(t,e);null===c?((c={})[e]=1,l=t.length,t.push(c)):l=t.indexOf(c);var u=Object.keys(c);for(i=0;i&lt;t.length;i++)if(o=t[i],i!==l&amp;&amp;o[r]){var f=o[r];for(a=0;a&lt;u.length;a++)o[s=u[a]]=g(f,g(n,c[s]));return void t.splice(l,1)}if(1!==n)for(a=0;a&lt;u.length;a++){var h=u[a];c[h]=g(n,c[h])}c[r]=1}function g(t,e){var r,n,i=&quot;&quot;,a=&quot;&quot;;&quot;string&quot;==typeof t&amp;&amp;(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(r)),&quot;string&quot;==typeof e&amp;&amp;(n=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(n));var o=t*e;return r||n?r&amp;&amp;n&amp;&amp;i.charAt(0)!==a.charAt(0)?r===n?o:(r&gt;n?i.substr(n):a.substr(r))+o:i+a+t*e:o}function m(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;o&lt;a.length;o++){var s=a[o],l=t[s];if(&quot;string&quot;==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.substr(u);for(var f=&quot;y&quot;===c.charAt(0)?n:1/n,h=0;h&lt;u;h++)l*=f}i[s]=l}return i}function v(t,e){var r=t._inputDomain,n=u[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e],t.setScale()}r.handleDefaults=function(t,e,r){var i,o,s,c,u,h,p,d,g=r.axIds,m=r.axHasImage,v=e._axisConstraintGroups=[],y=e._axisMatchGroups=[];for(i=0;i&lt;g.length;i++)f(u=t[c=a(g[i])],h=e[c],{axIds:g,layoutOut:e,hasImage:m[c]});function x(t,r){for(i=0;i&lt;t.length;i++)for(s in o=t[i])e[a(s)][r]=o}for(x(y,&quot;_matchGroup&quot;),i=0;i&lt;v.length;i++)for(s in o=v[i])if((h=e[a(s)]).fixedrange){for(var b in o){var _=a(b);!1===(t[_]||{}).fixedrange&amp;&amp;n.warn(&quot;fixedrange was specified as false for axis &quot;+_+&quot; but was overridden because another axis in its constraint group has fixedrange true&quot;),e[_].fixedrange=!0}break}for(i=0;i&lt;v.length;){for(s in o=v[i]){(h=e[a(s)])._matchGroup&amp;&amp;Object.keys(h._matchGroup).length===Object.keys(o).length&amp;&amp;(v.splice(i,1),i--);break}i++}x(v,&quot;_constraintGroup&quot;);var w=[&quot;constrain&quot;,&quot;range&quot;,&quot;autorange&quot;,&quot;rangemode&quot;,&quot;rangebreaks&quot;,&quot;categoryorder&quot;,&quot;categoryarray&quot;],T=!1,k=!1;function A(){d=h[p],&quot;rangebreaks&quot;===p&amp;&amp;(k=h._hasDayOfWeekBreaks)}for(i=0;i&lt;y.length;i++){o=y[i];for(var M=0;M&lt;w.length;M++){var S;for(s in p=w[M],d=null,o)if(u=t[c=a(s)],h=e[c],p in h){if(!h.matches&amp;&amp;(S=h,p in u)){A();break}null===d&amp;&amp;p in u&amp;&amp;A()}if(&quot;range&quot;===p&amp;&amp;d&amp;&amp;(T=!0),&quot;autorange&quot;===p&amp;&amp;null===d&amp;&amp;T&amp;&amp;(d=!1),null===d&amp;&amp;p in S&amp;&amp;(d=S[p]),null!==d)for(s in o)(h=e[a(s)])[p]=&quot;range&quot;===p?d.slice():d,&quot;rangebreaks&quot;===p&amp;&amp;(h._hasDayOfWeekBreaks=k,l(h,e))}}},r.enforce=function(t){var e,r,n,o,l,u,f,h,p=t._fullLayout,d=p._axisConstraintGroups||[];for(e=0;e&lt;d.length;e++){n=m(d[e],p);var g=Object.keys(n),y=1/0,x=0,b=1/0,_={},w={},T=!1;for(r=0;r&lt;g.length;r++)w[o=g[r]]=l=p[a(o)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),_[o]=u=Math.abs(l._m)/n[o],y=Math.min(y,u),&quot;domain&quot;!==l.constrain&amp;&amp;l._constraintShrinkable||(b=Math.min(b,u)),delete l._constraintShrinkable,x=Math.max(x,u),&quot;domain&quot;===l.constrain&amp;&amp;(T=!0);if(!(y&gt;c*x)||T)for(r=0;r&lt;g.length;r++)if(u=_[o=g[r]],f=(l=w[o]).constrain,u!==b||&quot;domain&quot;===f)if(h=u/b,&quot;range&quot;===f)s(l,h);else{var k=l._inputDomain,A=(l.domain[1]-l.domain[0])/(k[1]-k[0]),M=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=A)*M&lt;1){l.domain=l._input.domain=k.slice(),s(l,h);continue}if(M&lt;1&amp;&amp;(l.range=l._input.range=l._inputRange.slice(),h*=M),l.autorange){var S=l.r2l(l.range[0]),E=l.r2l(l.range[1]),L=(S+E)/2,C=L,P=L,I=Math.abs(E-L),O=L-I*h*1.0001,z=L+I*h*1.0001,D=i.makePadFn(p,l,0),R=i.makePadFn(p,l,1);v(l,h);var F,B,N=Math.abs(l._m),j=i.concatExtremes(t,l),U=j.min,V=j.max;for(B=0;B&lt;U.length;B++)(F=U[B].val-D(U[B])/N)&gt;O&amp;&amp;F&lt;C&amp;&amp;(C=F);for(B=0;B&lt;V.length;B++)(F=V[B].val+R(V[B])/N)&lt;z&amp;&amp;F&gt;P&amp;&amp;(P=F);h/=(P-C)/(2*I),C=l.l2r(C),P=l.l2r(P),l.range=l._input.range=S&lt;E?[C,P]:[P,C]}v(l,h)}}},r.getAxisGroup=function(t,e){for(var r=t._axisMatchGroups,n=0;n&lt;r.length;n++){if(r[n][e])return&quot;g&quot;+n}return e},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a&lt;i.length;a++)if(i[a][n]){r=!0;break}r&amp;&amp;&quot;domain&quot;===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{&quot;../../constants/alignment&quot;:771,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;./autorange&quot;:853,&quot;./axis_ids&quot;:858,&quot;./layout_attributes&quot;:869,&quot;./scale_zoom&quot;:873,&quot;./set_convert&quot;:875}],863:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;tinycolor2&quot;),s=t(&quot;has-passive-events&quot;),l=t(&quot;../../registry&quot;),c=i.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;../../components/fx&quot;),d=t(&quot;./axes&quot;),g=t(&quot;../../lib/setcursor&quot;),m=t(&quot;../../components/dragelement&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.selectingOrDrawing,x=v.freeMode,b=t(&quot;../../constants/alignment&quot;).FROM_TL,_=t(&quot;../../lib/clear_gl_canvases&quot;),w=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,T=t(&quot;../plots&quot;),k=t(&quot;./axis_ids&quot;).getFromId,A=t(&quot;./select&quot;).prepSelect,M=t(&quot;./select&quot;).clearSelect,S=t(&quot;./select&quot;).selectOnClick,E=t(&quot;./scale_zoom&quot;),L=t(&quot;./constants&quot;),C=L.MINDRAG,P=L.MINZOOM,I=!0;function O(t,e,r,n){var a=i.ensureSingle(t.draglayer,e,r,(function(e){e.classed(&quot;drag&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0}).attr(&quot;data-subplot&quot;,t.id)}));return a.call(g,n),a.node()}function z(t,e,r,i,a,o,s){var l=O(t,&quot;rect&quot;,e,r);return n.select(l).call(h.setRect,i,a,o,s),l}function D(t,e){for(var r=0;r&lt;t.length;r++)if(!t[r].fixedrange)return e;return&quot;&quot;}function R(t,e,r,n,i){for(var a=0;a&lt;t.length;a++){var o=t[a];if(!o.fixedrange)if(o.rangebreaks){var s=&quot;y&quot;===o._id.charAt(0),l=s?1-e:e,c=s?1-r:r;n[o._name+&quot;.range[0]&quot;]=o.l2r(o.p2l(l*o._length)),n[o._name+&quot;.range[1]&quot;]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+&quot;.range[0]&quot;]=o.l2r(u+f*e),n[o._name+&quot;.range[1]&quot;]=o.l2r(u+f*r)}}if(i&amp;&amp;i.length){var h=(e+(1-r))/2;R(i,h,1-h,n,[])}}function F(t,e){for(var r=0;r&lt;t.length;r++){var n=t[r];if(!n.fixedrange)if(n.rangebreaks){var i=n._length,a=(n.p2l(0+e)-n.p2l(0)+(n.p2l(i+e)-n.p2l(i)))/2;n.range=[n.l2r(n._rl[0]-a),n.l2r(n._rl[1]-a)]}else n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)]}}function B(t){return 1-(t&gt;=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function N(t,e,r,n,i){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).style({fill:e&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;transform&quot;,c(r,n)).attr(&quot;d&quot;,i+&quot;Z&quot;)}function j(t,e,r){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:f.background,stroke:f.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;transform&quot;,c(e,r)).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function U(t,e,r,n,i,a){t.attr(&quot;d&quot;,n+&quot;M&quot;+r.l+&quot;,&quot;+r.t+&quot;v&quot;+r.h+&quot;h&quot;+r.w+&quot;v-&quot;+r.h+&quot;h-&quot;+r.w+&quot;Z&quot;),V(t,e,i,a)}function V(t,e,r,n){r||(t.transition().style(&quot;fill&quot;,n&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),e.transition().style(&quot;opacity&quot;,1).duration(200))}function q(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}function H(t){I&amp;&amp;t.data&amp;&amp;t._context.showTips&amp;&amp;(i.notifier(i._(t,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),I=!1)}function G(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,P)/2);return&quot;M&quot;+(t.l-3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h3v&quot;+-e+&quot;h&quot;+e+&quot;v-3h-&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h-3v&quot;+-e+&quot;h&quot;+-e+&quot;v-3h&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h-3v&quot;+e+&quot;h&quot;+-e+&quot;v3h&quot;+(e+3)+&quot;ZM&quot;+(t.l-3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h3v&quot;+e+&quot;h&quot;+e+&quot;v3h-&quot;+(e+3)+&quot;Z&quot;}function Y(t,e,r,n,a){for(var o,s,l,c,u=!1,f={},h={},p=(a||{}).xaHash,d=(a||{}).yaHash,g=0;g&lt;e.length;g++){var m=e[g];for(o in r)if(m[o]){for(l in m)a&amp;&amp;(p[l]||d[l])||(&quot;x&quot;===l.charAt(0)?r:n)[l]||(f[l]=o);for(s in n)a&amp;&amp;(p[s]||d[s])||!m[s]||(u=!0)}for(s in n)if(m[s])for(c in m)a&amp;&amp;(p[c]||d[c])||(&quot;x&quot;===c.charAt(0)?r:n)[c]||(h[c]=s)}u&amp;&amp;(i.extendFlat(f,h),h={});var v={},y=[];for(l in f){var x=k(t,l);y.push(x),v[x._id]=x}var b={},_=[];for(c in h){var w=k(t,c);_.push(w),b[w._id]=w}return{xaHash:v,yaHash:b,xaxes:y,yaxes:_,xLinks:f,yLinks:h,isSubplotConstrained:u}}function W(t,e){if(s){var r=void 0!==t.onwheel?&quot;wheel&quot;:&quot;mousewheel&quot;;t._onwheel&amp;&amp;t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel?t.onmousewheel=e:t.isAddedWheelEvent||(t.isAddedWheelEvent=!0,t.addEventListener(&quot;wheel&quot;,e,{passive:!1}))}function X(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,s,c,f,g,v){var I,O,V,Z,J,K,Q,$,tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt,gt=t._fullLayout._zoomlayer,mt=g+v===&quot;nsew&quot;,vt=1===(g+v).length;function yt(){if(I=e.xaxis,O=e.yaxis,tt=I._length,et=O._length,Q=I._offset,$=O._offset,(V={})[I._id]=I,(Z={})[O._id]=O,g&amp;&amp;v)for(var r=e.overlays,n=0;n&lt;r.length;n++){var i=r[n].xaxis;V[i._id]=i;var a=r[n].yaxis;Z[a._id]=a}J=X(V),K=X(Z),it=D(J,v),at=D(K,g),ot=!at&amp;&amp;!it,nt=Y(t,t._fullLayout._axisMatchGroups,V,Z);var o=(rt=Y(t,t._fullLayout._axisConstraintGroups,V,Z,nt)).isSubplotConstrained||nt.isSubplotConstrained;st=v||o,lt=g||o;var s=t._fullLayout;ct=s._has(&quot;scattergl&quot;),ut=s._has(&quot;splom&quot;),ft=s._has(&quot;svg&quot;)}yt();var xt=function(t,e,r){if(!t)return&quot;pointer&quot;;if(&quot;nsew&quot;===t)return r?&quot;&quot;:&quot;pan&quot;===e?&quot;move&quot;:&quot;crosshair&quot;;return t.toLowerCase()+&quot;-resize&quot;}(at+it,t._fullLayout.dragmode,mt),bt=z(e,g+v+&quot;drag&quot;,xt,r,s,c,f);if(ot&amp;&amp;!mt)return bt.onmousedown=null,bt.style.pointerEvents=&quot;none&quot;,bt;var _t,wt,Tt,kt,At,Mt,St,Et,Lt,Ct,Pt={element:bt,gd:t,plotinfo:e};function It(){Pt.plotinfo.selection=!1,M(t)}function Ot(t,r){var i=Pt.gd;if(i._fullLayout._activeShapeIndex&gt;=0)i._fullLayout._deactivateShape(i);else{var o=i._fullLayout.clickmode;if(q(i),2!==t||vt||Ht(),mt)o.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;S(r,i,J,K,e.id,Pt),o.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;p.click(i,r,e.id);else if(1===t&amp;&amp;vt){var s=g?O:I,c=&quot;s&quot;===g||&quot;w&quot;===v?0:1,f=s._name+&quot;.range[&quot;+c+&quot;]&quot;,h=function(t,e){var r,n=t.range[e],i=Math.abs(n-t.range[1-e]);return&quot;date&quot;===t.type?n:&quot;log&quot;===t.type?(r=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,a(&quot;.&quot;+r+&quot;g&quot;)(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,a(&quot;.&quot;+String(r)+&quot;g&quot;)(n))}(s,c),d=&quot;left&quot;,m=&quot;middle&quot;;if(s.fixedrange)return;g?(m=&quot;n&quot;===g?&quot;top&quot;:&quot;bottom&quot;,&quot;right&quot;===s.side&amp;&amp;(d=&quot;right&quot;)):&quot;e&quot;===v&amp;&amp;(d=&quot;right&quot;),i._context.showAxisRangeEntryBoxes&amp;&amp;n.select(bt).call(u.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(h),fill:s.tickfont?s.tickfont.color:&quot;#444&quot;,horizontalAlign:d,verticalAlign:m}).on(&quot;edit&quot;,(function(t){var e=s.d2r(t);void 0!==e&amp;&amp;l.call(&quot;_guiRelayout&quot;,i,f,e)}))}}}function zt(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(tt,pt*e+_t)),i=Math.max(0,Math.min(et,dt*r+wt)),a=Math.abs(n-_t),o=Math.abs(i-wt);function s(){St=&quot;&quot;,Tt.r=Tt.l,Tt.t=Tt.b,Lt.attr(&quot;d&quot;,&quot;M0,0Z&quot;)}if(Tt.l=Math.min(_t,n),Tt.r=Math.max(_t,n),Tt.t=Math.min(wt,i),Tt.b=Math.max(wt,i),rt.isSubplotConstrained)a&gt;P||o&gt;P?(St=&quot;xy&quot;,a/tt&gt;o/et?(o=a*et/tt,wt&gt;i?Tt.t=wt-o:Tt.b=wt+o):(a=o*tt/et,_t&gt;n?Tt.l=_t-a:Tt.r=_t+a),Lt.attr(&quot;d&quot;,G(Tt))):s();else if(nt.isSubplotConstrained)if(a&gt;P||o&gt;P){St=&quot;xy&quot;;var l=Math.min(Tt.l/tt,(et-Tt.b)/et),c=Math.max(Tt.r/tt,(et-Tt.t)/et);Tt.l=l*tt,Tt.r=c*tt,Tt.b=(1-l)*et,Tt.t=(1-c)*et,Lt.attr(&quot;d&quot;,G(Tt))}else s();else!at||o&lt;Math.min(Math.max(.6*a,C),P)?a&lt;C||!it?s():(Tt.t=0,Tt.b=et,St=&quot;x&quot;,Lt.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(t.l-.5)+&quot;,&quot;+(e-P-.5)+&quot;h-3v&quot;+(2*P+1)+&quot;h3ZM&quot;+(t.r+.5)+&quot;,&quot;+(e-P-.5)+&quot;h3v&quot;+(2*P+1)+&quot;h-3Z&quot;}(Tt,wt))):!it||a&lt;Math.min(.6*o,P)?(Tt.l=0,Tt.r=tt,St=&quot;y&quot;,Lt.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(e-P-.5)+&quot;,&quot;+(t.t-.5)+&quot;v-3h&quot;+(2*P+1)+&quot;v3ZM&quot;+(e-P-.5)+&quot;,&quot;+(t.b+.5)+&quot;v3h&quot;+(2*P+1)+&quot;v-3Z&quot;}(Tt,_t))):(St=&quot;xy&quot;,Lt.attr(&quot;d&quot;,G(Tt)));Tt.w=Tt.r-Tt.l,Tt.h=Tt.b-Tt.t,St&amp;&amp;(Ct=!0),t._dragged=Ct,U(Et,Lt,Tt,At,Mt,kt),Dt(),t.emit(&quot;plotly_relayouting&quot;,ht),Mt=!0}function Dt(){ht={},&quot;xy&quot;!==St&amp;&amp;&quot;x&quot;!==St||(R(J,Tt.l/tt,Tt.r/tt,ht,rt.xaxes),Vt(&quot;x&quot;,ht)),&quot;xy&quot;!==St&amp;&amp;&quot;y&quot;!==St||(R(K,(et-Tt.b)/et,(et-Tt.t)/et,ht,rt.yaxes),Vt(&quot;y&quot;,ht))}function Rt(){Dt(),q(t),Gt(),H(t)}Pt.prepFn=function(e,r,n){var a=Pt.dragmode,s=t._fullLayout.dragmode;s!==a&amp;&amp;(Pt.dragmode=s),yt(),pt=t._fullLayout._invScaleX,dt=t._fullLayout._invScaleY,ot||(mt?e.shiftKey?&quot;pan&quot;===s?s=&quot;zoom&quot;:y(s)||(s=&quot;pan&quot;):e.ctrlKey&amp;&amp;(s=&quot;pan&quot;):s=&quot;pan&quot;),x(s)?Pt.minDrag=1:Pt.minDrag=void 0,y(s)?(Pt.xaxes=J,Pt.yaxes=K,A(e,r,n,Pt,s)):(Pt.clickFn=Ot,y(a)&amp;&amp;It(),ot||(&quot;zoom&quot;===s?(Pt.moveFn=zt,Pt.doneFn=Rt,Pt.minDrag=1,function(e,r,n){var a=bt.getBoundingClientRect();_t=r-a.left,wt=n-a.top,t._fullLayout._calcInverseTransform(t);var s=i.apply3DTransform(t._fullLayout._invTransform)(_t,wt);_t=s[0],wt=s[1],Tt={l:_t,r:_t,w:0,t:wt,b:wt,h:0},kt=t._hmpixcount?t._hmlumcount/t._hmpixcount:o(t._fullLayout.plot_bgcolor).getLuminance(),Mt=!1,St=&quot;xy&quot;,Ct=!1,Et=N(gt,kt,Q,$,At=&quot;M0,0H&quot;+tt+&quot;V&quot;+et+&quot;H0V0&quot;),Lt=j(gt,Q,$)}(0,r,n)):&quot;pan&quot;===s&amp;&amp;(Pt.moveFn=Ut,Pt.doneFn=Gt))),t._fullLayout._redrag=function(){var e=t._dragdata;if(e&amp;&amp;e.element===bt){var r=t._fullLayout.dragmode;y(r)||(yt(),Yt([0,0,tt,et]),Pt.moveFn(e.dx,e.dy))}}},m.init(Pt);var Ft=[0,0,tt,et],Bt=null,Nt=L.REDRAWDELAY,jt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function Ut(e,r){if(e*=pt,r*=dt,!t._transitioningWithDuration){if(t._fullLayout._replotting=!0,&quot;ew&quot;===it||&quot;ns&quot;===at){var n=it?-e:0,i=at?-r:0;if(nt.isSubplotConstrained){if(it&amp;&amp;at){var a=(e/tt-r/et)/2;n=-(e=a*tt),i=-(r=-a*et)}at?n=-i*tt/et:i=-n*et/tt}return it&amp;&amp;(F(J,e),Vt(&quot;x&quot;)),at&amp;&amp;(F(K,r),Vt(&quot;y&quot;)),Yt([n,i,tt,et]),qt(),void t.emit(&quot;plotly_relayouting&quot;,ht)}var o,s,l=&quot;w&quot;===it==(&quot;n&quot;===at)?1:-1;if(it&amp;&amp;at&amp;&amp;(rt.isSubplotConstrained||nt.isSubplotConstrained)){var c=(e/tt+l*r/et)/2;e=c*tt,r=l*c*et}if(&quot;w&quot;===it?e=p(J,0,e):&quot;e&quot;===it?e=p(J,1,-e):it||(e=0),&quot;n&quot;===at?r=p(K,1,r):&quot;s&quot;===at?r=p(K,0,-r):at||(r=0),o=&quot;w&quot;===it?e:0,s=&quot;n&quot;===at?r:0,rt.isSubplotConstrained&amp;&amp;!nt.isSubplotConstrained||nt.isSubplotConstrained&amp;&amp;it&amp;&amp;at&amp;&amp;l&gt;0){var u;if(nt.isSubplotConstrained||!it&amp;&amp;1===at.length){for(u=0;u&lt;J.length;u++)J[u].range=J[u]._r.slice(),E(J[u],1-r/et);o=(e=r*tt/et)/2}if(nt.isSubplotConstrained||!at&amp;&amp;1===it.length){for(u=0;u&lt;K.length;u++)K[u].range=K[u]._r.slice(),E(K[u],1-e/tt);s=(r=e*et/tt)/2}}nt.isSubplotConstrained&amp;&amp;at||Vt(&quot;x&quot;),nt.isSubplotConstrained&amp;&amp;it||Vt(&quot;y&quot;);var f=tt-e,h=et-r;!nt.isSubplotConstrained||it&amp;&amp;at||(it?(s=o?0:e*et/tt,h=f*et/tt):(o=s?0:r*tt/et,f=h*tt/et)),Yt([o,s,f,h]),qt(),t.emit(&quot;plotly_relayouting&quot;,ht)}function p(t,e,r){for(var n,i,a=1-e,o=0;o&lt;t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/B(r/s._length);var l=s.l2r(i);!1!==l&amp;&amp;void 0!==l&amp;&amp;(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Vt(t,e){for(var r=nt.isSubplotConstrained?{x:K,y:J}[t]:nt[t+&quot;axes&quot;],n=nt.isSubplotConstrained?{x:J,y:K}[t]:[],i=0;i&lt;r.length;i++){var a=r[i],o=a._id,s=nt.xLinks[o]||nt.yLinks[o],l=n[0]||V[s]||Z[s];l&amp;&amp;(e?(e[a._name+&quot;.range[0]&quot;]=e[l._name+&quot;.range[0]&quot;],e[a._name+&quot;.range[1]&quot;]=e[l._name+&quot;.range[1]&quot;]):a.range=l.range.slice())}}function qt(){var e,r=[];function n(t){for(e=0;e&lt;t.length;e++)t[e].fixedrange||r.push(t[e]._id)}for(st&amp;&amp;(n(J),n(rt.xaxes),n(nt.xaxes)),lt&amp;&amp;(n(K),n(rt.yaxes),n(nt.yaxes)),ht={},e=0;e&lt;r.length;e++){var i=r[e],a=k(t,i);d.drawOne(t,a,{skipTitle:!0}),ht[a._name+&quot;.range[0]&quot;]=a.range[0],ht[a._name+&quot;.range[1]&quot;]=a.range[1]}d.redrawComponents(t,r)}function Ht(){if(!t._transitioningWithDuration){var e=t._context.doubleClick,r=[];it&amp;&amp;(r=r.concat(J)),at&amp;&amp;(r=r.concat(K)),nt.xaxes&amp;&amp;(r=r.concat(nt.xaxes)),nt.yaxes&amp;&amp;(r=r.concat(nt.yaxes));var n,i,a,o={};if(&quot;reset+autosize&quot;===e)for(e=&quot;autosize&quot;,i=0;i&lt;r.length;i++)if((n=r[i])._rangeInitial&amp;&amp;(n.range[0]!==n._rangeInitial[0]||n.range[1]!==n._rangeInitial[1])||!n._rangeInitial&amp;&amp;!n.autorange){e=&quot;reset&quot;;break}if(&quot;autosize&quot;===e)for(i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(o[n._name+&quot;.autorange&quot;]=!0);else if(&quot;reset&quot;===e)for((it||rt.isSubplotConstrained)&amp;&amp;(r=r.concat(rt.xaxes)),at&amp;&amp;!rt.isSubplotConstrained&amp;&amp;(r=r.concat(rt.yaxes)),rt.isSubplotConstrained&amp;&amp;(it?at||(r=r.concat(K)):r=r.concat(J)),i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(n._rangeInitial?(a=n._rangeInitial,o[n._name+&quot;.range[0]&quot;]=a[0],o[n._name+&quot;.range[1]&quot;]=a[1]):o[n._name+&quot;.autorange&quot;]=!0);t.emit(&quot;plotly_doubleclick&quot;,null),l.call(&quot;_guiRelayout&quot;,t,o)}}function Gt(){Yt([0,0,tt,et]),i.syncOrAsync([T.previousPromises,function(){t._fullLayout._replotting=!1,l.call(&quot;_guiRelayout&quot;,t,ht)}],t)}function Yt(e){var r,n,a,o,s=t._fullLayout,c=s._plots,u=s._subplots.cartesian;if(ut&amp;&amp;l.subplotsRegistry.splom.drag(t),ct)for(r=0;r&lt;u.length;r++)if(a=(n=c[u[r]]).xaxis,o=n.yaxis,n._scene){var f=i.simpleMap(a.range,a.r2l),p=i.simpleMap(o.range,o.r2l);n._scene.update({range:[f[0],p[0],f[1],p[1]]})}if((ut||ct)&amp;&amp;(_(t),w(t)),ft){var d=e[2]/I._length,m=e[3]/O._length;for(r=0;r&lt;u.length;r++){a=(n=c[u[r]]).xaxis,o=n.yaxis;var y,x,b,T,k=(st||nt.isSubplotConstrained)&amp;&amp;!a.fixedrange&amp;&amp;V[a._id],A=(lt||nt.isSubplotConstrained)&amp;&amp;!o.fixedrange&amp;&amp;Z[o._id];if(k?(y=d,b=v||nt.isSubplotConstrained?e[0]:Zt(a,y)):nt.xaHash[a._id]?(y=d,b=e[0]*a._length/I._length):nt.yaHash[a._id]?(y=m,b=&quot;ns&quot;===at?-e[1]*a._length/O._length:Zt(a,y,{n:&quot;top&quot;,s:&quot;bottom&quot;}[at])):b=Xt(a,y=Wt(a,d,m)),A?(x=m,T=g||nt.isSubplotConstrained?e[1]:Zt(o,x)):nt.yaHash[o._id]?(x=m,T=e[1]*o._length/O._length):nt.xaHash[o._id]?(x=d,T=&quot;ew&quot;===it?-e[0]*o._length/I._length:Zt(o,x,{e:&quot;right&quot;,w:&quot;left&quot;}[it])):T=Xt(o,x=Wt(o,d,m)),y||x){y||(y=1),x||(x=1);var M=a._offset-b/y,S=o._offset-T/x;n.clipRect.call(h.setTranslate,b,T).call(h.setScale,y,x),n.plot.call(h.setTranslate,M,S).call(h.setScale,1/y,1/x),y===n.xScaleFactor&amp;&amp;x===n.yScaleFactor||(h.setPointGroupScale(n.zoomScalePts,y,x),h.setTextPointsScale(n.zoomScaleTxt,y,x)),h.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=y,n.yScaleFactor=x}}}}function Wt(t,e,r){return t.fixedrange?0:st&amp;&amp;rt.xaHash[t._id]?e:lt&amp;&amp;(rt.isSubplotConstrained?rt.xaHash:rt.yaHash)[t._id]?r:0}function Xt(t,e){return e?(t.range=t._r.slice(),E(t,e),Zt(t,e)):0}function Zt(t,e,r){return t._length*(1-e)*b[r||t.constraintoward||&quot;middle&quot;]}return g.length*v.length!=1&amp;&amp;W(bt,(function(e){if(t._context._scrollZoom.cartesian||t._fullLayout._enablescrollzoom){if(It(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();yt(),clearTimeout(Bt);var r=-e.deltaY;if(isFinite(r)||(r=e.wheelDelta/10),isFinite(r)){var n,a=Math.exp(-Math.min(Math.max(r,-20),20)/200),o=jt.draglayer.select(&quot;.nsewdrag&quot;).node().getBoundingClientRect(),s=(e.clientX-o.left)/o.width,l=(o.bottom-e.clientY)/o.height;if(st){for(v||(s=.5),n=0;n&lt;J.length;n++)c(J[n],s,a);Vt(&quot;x&quot;),Ft[2]*=a,Ft[0]+=Ft[2]*s*(1/a-1)}if(lt){for(g||(l=.5),n=0;n&lt;K.length;n++)c(K[n],l,a);Vt(&quot;y&quot;),Ft[3]*=a,Ft[1]+=Ft[3]*(1-l)*(1/a-1)}Yt(Ft),qt(),t.emit(&quot;plotly_relayouting&quot;,ht),Bt=setTimeout((function(){t._fullLayout&amp;&amp;(Ft=[0,0,tt,et],Gt())}),Nt),e.preventDefault()}else i.log(&quot;Did not find wheel motion attributes: &quot;,e)}function c(t,e,r){if(!t.fixedrange){var n=i.simpleMap(t.range,t.r2l),a=n[0]+(n[1]-n[0])*e;t.range=n.map((function(e){return t.l2r(a+(e-a)*r)}))}}})),bt},makeDragger:O,makeRectDragger:z,makeZoombox:N,makeCorners:j,updateZoombox:U,xyCorners:G,transitionZoombox:V,removeZoombox:q,showDoubleClickNotifier:H,attachWheelEventHandler:W}},{&quot;../../components/color&quot;:666,&quot;../../components/dragelement&quot;:685,&quot;../../components/dragelement/helpers&quot;:684,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/clear_gl_canvases&quot;:787,&quot;../../lib/setcursor&quot;:824,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plot_api/subroutines&quot;:844,&quot;../../registry&quot;:931,&quot;../plots&quot;:917,&quot;./axes&quot;:854,&quot;./axis_ids&quot;:858,&quot;./constants&quot;:861,&quot;./scale_zoom&quot;:873,&quot;./select&quot;:874,&quot;@plotly/d3&quot;:58,&quot;has-passive-events&quot;:444,tinycolor2:598}],864:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../components/dragelement&quot;),o=t(&quot;../../lib/setcursor&quot;),s=t(&quot;./dragbox&quot;).makeDragBox,l=t(&quot;./constants&quot;).DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(&quot;.drag&quot;).remove();else if(e._has(&quot;cartesian&quot;)||e._has(&quot;splom&quot;)){Object.keys(e._plots||{}).sort((function(t,r){if((e._plots[t].mainplot&amp;&amp;!0)===(e._plots[r].mainplot&amp;&amp;!0)){var n=t.split(&quot;y&quot;),i=r.split(&quot;y&quot;);return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1})).forEach((function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,&quot;ns&quot;,&quot;ew&quot;);u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&amp;&amp;t._fullLayout._plots[r]&amp;&amp;i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&amp;&amp;(s(t,n,o._offset-l,c._offset-l,l,l,&quot;n&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset-l,l,l,&quot;n&quot;,&quot;e&quot;),s(t,n,o._offset-l,c._offset+c._length,l,l,&quot;s&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset+c._length,l,l,&quot;s&quot;,&quot;e&quot;))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;&quot;top&quot;===o.side&amp;&amp;(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,&quot;&quot;,&quot;ew&quot;),s(t,n,o._offset,f,.1*o._length,l,&quot;&quot;,&quot;w&quot;),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,&quot;&quot;,&quot;e&quot;)}if(r===c._mainSubplot){var h=c._mainLinePosition;&quot;right&quot;!==c.side&amp;&amp;(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,&quot;ns&quot;,&quot;&quot;),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,&quot;s&quot;,&quot;&quot;),s(t,n,h,c._offset,l,.1*c._length,&quot;n&quot;,&quot;&quot;)}}}));var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=&quot;pan&quot;===e.dragmode?&quot;move&quot;:&quot;crosshair&quot;;o(e._draggers,r)}},{&quot;../../components/dragelement&quot;:685,&quot;../../components/fx&quot;:706,&quot;../../lib/setcursor&quot;:824,&quot;./constants&quot;:861,&quot;./dragbox&quot;:863,&quot;@plotly/d3&quot;:58}],865:[function(t,e,r){&quot;use strict&quot;;e.exports={clearOutlineControllers:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.outline-controllers&quot;).remove()},clearSelect:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.select-outline&quot;).remove(),t._fullLayout._drawing=!1}}},{}],866:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).strTranslate;function i(t,e){switch(t.type){case&quot;log&quot;:return t.p2d(e);case&quot;date&quot;:return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}e.exports={p2r:i,r2p:function(t,e){switch(t.type){case&quot;log&quot;:return t.d2p(e);case&quot;date&quot;:return t.r2p(e,0,t.calendar);default:return t.r2p(e)}},axValue:function(t){var e=&quot;y&quot;===t._id.charAt(0)?1:0;return function(r){return i(t,r[e])}},getTransform:function(t){return n(t.xaxis._offset,t.yaxis._offset)}}},{&quot;../../lib&quot;:803}],867:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./axis_ids&quot;);e.exports=function(t){return function(e,r){var o=e[t];if(Array.isArray(o))for(var s=n.subplotsRegistry.cartesian,l=s.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,h=c.cartesian,p=r._has(&quot;cartesian&quot;)||r._has(&quot;gl2d&quot;),d=0;d&lt;o.length;d++){var g=o[d];if(i.isPlainObject(g)){var m=a.cleanId(g.xref,&quot;x&quot;,!1),v=a.cleanId(g.yref,&quot;y&quot;,!1),y=l.x.test(m),x=l.y.test(v);if(y||x){p||i.pushUnique(r._basePlotModules,s);var b=!1;y&amp;&amp;-1===u.indexOf(m)&amp;&amp;(u.push(m),b=!0),x&amp;&amp;-1===f.indexOf(v)&amp;&amp;(f.push(v),b=!0),b&amp;&amp;y&amp;&amp;x&amp;&amp;h.push(m+v)}}}}}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./axis_ids&quot;:858}],868:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../plots&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../get_data&quot;).getModuleCalcData,c=t(&quot;./axis_ids&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../constants/xmlns_namespaces&quot;),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,(function(t){t.datum(r)}))}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,g=d._modules,m=[],v=[],y=0;y&lt;g.length;y++){var x=(c=g[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+&quot;layer&quot;,w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&amp;&amp;m.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&amp;&amp;v.push(&quot;.&quot;+_)}}m.sort((function(t,e){return t.i-e.i}));var T=e.plot.selectAll(&quot;g.mlayer&quot;).data(m,(function(t){return t.className}));if(T.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t.className})).classed(&quot;mlayer&quot;,!0).classed(&quot;rangeplot&quot;,e.isRangePlot),T.exit().remove(),T.order(),T.each((function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),-1===u.clipOnAxisFalseQuery.indexOf(&quot;.&quot;+l)&amp;&amp;s.setClipUrl(i,e.layerClipId,t)})),d._has(&quot;scattergl&quot;)&amp;&amp;(c=i.getModule(&quot;scattergl&quot;),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&amp;&amp;(e._hasClipOnAxisFalse&amp;&amp;(e.clipOnAxisFalseTraces=e.plot.selectAll(u.clipOnAxisFalseQuery.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;)),v.length)){var k=e.plot.selectAll(v.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;);e.zoomScalePts=k.selectAll(&quot;path.point&quot;),e.zoomScaleTxt=k.selectAll(&quot;.textpoint&quot;)}}function g(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+&quot;-x&quot;,d=n+&quot;-y&quot;;e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,&quot;path&quot;,f),h(s.overlinesBelow,&quot;path&quot;,d),h(s.overaxesBelow,&quot;g&quot;,f),h(s.overaxesBelow,&quot;g&quot;,d),e.plot=h(s.overplot,&quot;g&quot;,n),h(s.overlinesAbove,&quot;path&quot;,f),h(s.overlinesAbove,&quot;path&quot;,d),h(s.overaxesAbove,&quot;g&quot;,f),h(s.overaxesAbove,&quot;g&quot;,d),e.xlines=l.select(&quot;.overlines-&quot;+i).select(&quot;.&quot;+f),e.ylines=l.select(&quot;.overlines-&quot;+a).select(&quot;.&quot;+d),e.xaxislayer=l.select(&quot;.overaxes-&quot;+i).select(&quot;.&quot;+f),e.yaxislayer=l.select(&quot;.overaxes-&quot;+a).select(&quot;.&quot;+d)}else if(o)e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.xaxislayer=h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),e.yaxislayer=h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;);else{var g=h(r,&quot;g&quot;,&quot;layer-subplot&quot;);e.shapelayer=h(g,&quot;g&quot;,&quot;shapelayer&quot;),e.imagelayer=h(g,&quot;g&quot;,&quot;imagelayer&quot;),e.gridlayer=h(r,&quot;g&quot;,&quot;gridlayer&quot;),e.zerolinelayer=h(r,&quot;g&quot;,&quot;zerolinelayer&quot;),h(r,&quot;path&quot;,&quot;xlines-below&quot;),h(r,&quot;path&quot;,&quot;ylines-below&quot;),e.overlinesBelow=h(r,&quot;g&quot;,&quot;overlines-below&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-below&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-below&quot;),e.overaxesBelow=h(r,&quot;g&quot;,&quot;overaxes-below&quot;),e.plot=h(r,&quot;g&quot;,&quot;plot&quot;),e.overplot=h(r,&quot;g&quot;,&quot;overplot&quot;),e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.overlinesAbove=h(r,&quot;g&quot;,&quot;overlines-above&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;),e.overaxesAbove=h(r,&quot;g&quot;,&quot;overaxes-above&quot;),e.xlines=r.select(&quot;.xlines-&quot;+i),e.ylines=r.select(&quot;.ylines-&quot;+a),e.xaxislayer=r.select(&quot;.xaxislayer-&quot;+i),e.yaxislayer=r.select(&quot;.yaxislayer-&quot;+a)}o||(p(e.gridlayer,&quot;g&quot;,e.xaxis._id),p(e.gridlayer,&quot;g&quot;,e.yaxis._id),e.gridlayer.selectAll(&quot;g&quot;).map((function(t){return t[0]})).sort(c.idSort)),e.xlines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0),e.ylines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0)}function m(t,e){if(t){var r={};for(var i in t.each((function(t){var i=t[0];n.select(this).remove(),v(i,e),r[i]=!0})),e._plots)for(var a=e._plots[i].overlays||[],o=0;o&lt;a.length;o++){var s=a[o];r[s.id]&amp;&amp;s.plot.selectAll(&quot;.trace&quot;).remove()}}}function v(t,e){e._draggers.selectAll(&quot;g.&quot;+t).remove(),e._defs.select(&quot;#clip&quot;+e._uid+t+&quot;plot&quot;).remove()}r.name=&quot;cartesian&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(&quot;./attributes&quot;),r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.transitionAxes=t(&quot;./transition_axes&quot;),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r&lt;h.length;r++){var g=h[r].split(&quot;y&quot;);p[g[0]]=1,d[&quot;y&quot;+g[1]]=1}for(r=0;r&lt;s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=&quot;y&quot;),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r&lt;l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=&quot;x&quot;),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var m in n=&quot;&quot;,i=&quot;&quot;,t){if(u.attrRegex.test(m))&quot;x&quot;===m.charAt(0)?(!n||+m.substr(5)&lt;+n.substr(5))&amp;&amp;(n=m):(!i||+m.substr(5)&lt;+i.substr(5))&amp;&amp;(i=m)}n=n?c.name2id(n):&quot;x&quot;,i=i?c.name2id(i):&quot;y&quot;,s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(!Array.isArray(e))for(e=[],i=0;i&lt;s.length;i++)e.push(i);for(i=0;i&lt;o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h&lt;s.length;h++){var p=s[h],g=p[0].trace;g.xaxis+g.yaxis===c&amp;&amp;((-1!==e.indexOf(g.index)||g.carpet)&amp;&amp;(l&amp;&amp;l[0].trace.xaxis+l[0].trace.yaxis===c&amp;&amp;-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;,&quot;tonext&quot;].indexOf(g.fill)&amp;&amp;-1===f.indexOf(l)&amp;&amp;f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&amp;&amp;!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&amp;&amp;i.plotgroup.remove();var f=n._has&amp;&amp;n._has(&quot;gl&quot;),h=e._has&amp;&amp;e._has(&quot;gl&quot;);if(f&amp;&amp;!h)for(o in s)(i=s[o])._scene&amp;&amp;i._scene.destroy();if(u.xaxis&amp;&amp;u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a&lt;p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(&quot;.g-&quot;+d+&quot;title&quot;).remove()}}var g=n._has&amp;&amp;n._has(&quot;cartesian&quot;),y=e._has&amp;&amp;e._has(&quot;cartesian&quot;);if(g&amp;&amp;!y)m(n._cartesianlayer.selectAll(&quot;.subplot&quot;),n),n._defs.selectAll(&quot;.axesclip&quot;).remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(a=0;a&lt;u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=&quot;.&quot;+x+&quot;,.&quot;+x+&quot;-x,.&quot;+x+&quot;-y&quot;;n._cartesianlayer.selectAll(b).remove(),v(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e&lt;c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,g=s._plots[d];i.overlays=[],d!==n&amp;&amp;g?(i.mainplot=d,i.mainplotinfo=g,f.push(n)):(i.mainplot=void 0,i.mainplotinfo=void 0,u.push(n))}for(e=0;e&lt;f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var m=u.concat(f),v=new Array(c);for(e=0;e&lt;c;e++){n=m[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||&quot;&quot;,o.overlaying||&quot;&quot;];for(r=0;r&lt;i.overlays.length;r++)y.push(i.overlays[r].id);v[e]=y}return v}(t),i=e._cartesianlayer.selectAll(&quot;.subplot&quot;).data(r,String);i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;subplot &quot;+t[0]})),i.order(),i.exit().call(m,e),i.each((function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),g(t,a),a.draglayer=h(e._draggers,&quot;g&quot;,i)}))},r.rangePlot=function(t,e,r){g(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:f.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.style.width,height:this.style.height})}))},r.updateFx=t(&quot;./graph_interact&quot;).updateFx},{&quot;../../components/drawing&quot;:688,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../get_data&quot;:891,&quot;../plots&quot;:917,&quot;./attributes&quot;:852,&quot;./axis_ids&quot;:858,&quot;./constants&quot;:861,&quot;./graph_interact&quot;:864,&quot;./layout_attributes&quot;:869,&quot;./layout_defaults&quot;:870,&quot;./transition_axes&quot;:879,&quot;@plotly/d3&quot;:58}],869:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray,l=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionWithDates,c=t(&quot;../../constants/numerical&quot;).ONEDAY,u=t(&quot;./constants&quot;),f=u.HOUR_PATTERN,h=u.WEEKDAY_PATTERN;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},title:{text:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},font:n({editType:&quot;ticks&quot;}),standoff:{valType:&quot;number&quot;,min:0,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;,&quot;multicategory&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;axrange&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0},{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0}],editType:&quot;axrange&quot;,impliedEdits:{autorange:!1},anim:!0},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},scaleanchor:{valType:&quot;enumerated&quot;,values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;plot&quot;},scaleratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},constrain:{valType:&quot;enumerated&quot;,values:[&quot;range&quot;,&quot;domain&quot;],editType:&quot;plot&quot;},constraintoward:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;plot&quot;},matches:{valType:&quot;enumerated&quot;,values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;calc&quot;},rangebreaks:s(&quot;rangebreak&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},bounds:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},pattern:{valType:&quot;enumerated&quot;,values:[h,f,&quot;&quot;],editType:&quot;calc&quot;},values:{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;any&quot;,editType:&quot;calc&quot;}},dvalue:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:c},editType:&quot;calc&quot;}),tickmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;linear&quot;,&quot;array&quot;],editType:&quot;ticks&quot;,impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;ticks&quot;},tick0:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},dtick:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},tickvals:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticks:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;&quot;],editType:&quot;ticks&quot;},tickson:{valType:&quot;enumerated&quot;,values:[&quot;labels&quot;,&quot;boundaries&quot;],dflt:&quot;labels&quot;,editType:&quot;ticks&quot;},ticklabelmode:{valType:&quot;enumerated&quot;,values:[&quot;instant&quot;,&quot;period&quot;],dflt:&quot;instant&quot;,editType:&quot;ticks&quot;},ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;,editType:&quot;calc&quot;},ticklabeloverflow:{valType:&quot;enumerated&quot;,values:[&quot;allow&quot;,&quot;hide past div&quot;,&quot;hide past domain&quot;],editType:&quot;calc&quot;},mirror:{valType:&quot;enumerated&quot;,values:[!0,&quot;ticks&quot;,!1,&quot;all&quot;,&quot;allticks&quot;],dflt:!1,editType:&quot;ticks+layoutstyle&quot;},ticklen:{valType:&quot;number&quot;,min:0,dflt:5,editType:&quot;ticks&quot;},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},tickcolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},showticklabels:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},showspikes:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;modebar&quot;},spikecolor:{valType:&quot;color&quot;,dflt:null,editType:&quot;none&quot;},spikethickness:{valType:&quot;number&quot;,dflt:3,editType:&quot;none&quot;},spikedash:o({},a,{dflt:&quot;dash&quot;,editType:&quot;none&quot;}),spikemode:{valType:&quot;flaglist&quot;,flags:[&quot;toaxis&quot;,&quot;across&quot;,&quot;marker&quot;],dflt:&quot;toaxis&quot;,editType:&quot;none&quot;},spikesnap:{valType:&quot;enumerated&quot;,values:[&quot;data&quot;,&quot;cursor&quot;,&quot;hovered data&quot;],dflt:&quot;hovered data&quot;,editType:&quot;none&quot;},tickfont:n({editType:&quot;ticks&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;ticks&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;ticks&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;ticks&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;,description:l(&quot;tick label&quot;)},tickformatstops:s(&quot;tickformatstop&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dtickrange:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;ticks&quot;},{valType:&quot;any&quot;,editType:&quot;ticks&quot;}],editType:&quot;ticks&quot;},value:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;}),hoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;,description:l(&quot;hover text&quot;)},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks+layoutstyle&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;layoutstyle&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks+layoutstyle&quot;},showgrid:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},gridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;ticks&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},zeroline:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},zerolinecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},zerolinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},showdividers:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dividercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},dividerwidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],editType:&quot;plot&quot;},overlaying:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;plot&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;above traces&quot;,&quot;below traces&quot;],dflt:&quot;above traces&quot;,editType:&quot;plot&quot;},domain:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;}],dflt:[0,1],editType:&quot;plot&quot;},position:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;,&quot;total ascending&quot;,&quot;total descending&quot;,&quot;min ascending&quot;,&quot;min descending&quot;,&quot;max ascending&quot;,&quot;max descending&quot;,&quot;sum ascending&quot;,&quot;sum descending&quot;,&quot;mean ascending&quot;,&quot;mean descending&quot;,&quot;median ascending&quot;,&quot;median descending&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{autotick:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},title:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},titlefont:n({editType:&quot;ticks&quot;})}}},{&quot;../../components/color/attributes&quot;:665,&quot;../../components/drawing/attributes&quot;:687,&quot;../../constants/numerical&quot;:779,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../font_attributes&quot;:883,&quot;./constants&quot;:861}],870:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/fx/helpers&quot;).isUnifiedHover,o=t(&quot;../../components/fx/hovermode_defaults&quot;),s=t(&quot;../../plot_api/plot_template&quot;),l=t(&quot;../layout_attributes&quot;),c=t(&quot;./layout_attributes&quot;),u=t(&quot;./type_defaults&quot;),f=t(&quot;./axis_defaults&quot;),h=t(&quot;./constraints&quot;),p=t(&quot;./position_defaults&quot;),d=t(&quot;./axis_ids&quot;),g=d.id2name,m=d.name2id,v=t(&quot;./constants&quot;).AX_ID_PATTERN,y=t(&quot;../../registry&quot;),x=y.traceIs,b=y.getComponentMethod;function _(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var y,w,T=e.autotypenumbers,k={},A={},M={},S={},E={},L={},C={},P={},I={},O={};for(y=0;y&lt;r.length;y++){var z=r[y];if(x(z,&quot;cartesian&quot;)||x(z,&quot;gl2d&quot;)){var D,R;if(z.xaxis)D=g(z.xaxis),_(k,D,z);else if(z.xaxes)for(w=0;w&lt;z.xaxes.length;w++)_(k,g(z.xaxes[w]),z);if(z.yaxis)R=g(z.yaxis),_(k,R,z);else if(z.yaxes)for(w=0;w&lt;z.yaxes.length;w++)_(k,g(z.yaxes[w]),z);if(&quot;funnel&quot;===z.type?&quot;h&quot;===z.orientation?(D&amp;&amp;(A[D]=!0),R&amp;&amp;(C[R]=!0)):R&amp;&amp;(M[R]=!0):&quot;image&quot;===z.type?(R&amp;&amp;(P[R]=!0),D&amp;&amp;(P[D]=!0)):(R&amp;&amp;(E[R]=!0,L[R]=!0),x(z,&quot;carpet&quot;)&amp;&amp;(&quot;carpet&quot;!==z.type||z._cheater)||D&amp;&amp;(S[D]=!0)),&quot;carpet&quot;===z.type&amp;&amp;z._cheater&amp;&amp;D&amp;&amp;(A[D]=!0),x(z,&quot;2dMap&quot;)&amp;&amp;(I[D]=!0,I[R]=!0),x(z,&quot;oriented&quot;))O[&quot;h&quot;===z.orientation?R:D]=!0}}var F=e._subplots,B=F.xaxis,N=F.yaxis,j=n.simpleMap(B,g),U=n.simpleMap(N,g),V=j.concat(U),q=i.background;B.length&amp;&amp;N.length&amp;&amp;(q=n.coerce(t,e,l,&quot;plot_bgcolor&quot;));var H,G,Y,W,X,Z=i.combine(q,e.paper_bgcolor);function J(){var t=k[H]||[];X._traceIndices=t.map((function(t){return t._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=H,X._id=G}function K(t,e){return n.coerce(W,X,c,t,e)}function Q(t,e){return n.coerce2(W,X,c,t,e)}function $(t){return&quot;x&quot;===t?N:B}function tt(e,r){for(var n=&quot;x&quot;===e?j:U,i=[],a=0;a&lt;n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(m(o))}return i}var et={x:$(&quot;x&quot;),y:$(&quot;y&quot;)},rt=et.x.concat(et.y),nt={},it=[];function at(){var t=W.matches;v.test(t)&amp;&amp;-1===rt.indexOf(t)&amp;&amp;(nt[t]=W.type,it=Object.keys(nt))}var ot=o(t,e),st=a(ot);for(y=0;y&lt;V.length;y++){H=V[y],G=m(H),Y=H.charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var lt=&quot;x&quot;===Y&amp;&amp;!S[H]&amp;&amp;A[H]||&quot;y&quot;===Y&amp;&amp;!E[H]&amp;&amp;M[H],ct=&quot;y&quot;===Y&amp;&amp;(!L[H]&amp;&amp;C[H]||P[H]),ut={letter:Y,font:e.font,outerTicks:I[H],showGrid:!O[H],data:k[H]||[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:lt,reverseDflt:ct,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),u(W,X,K,ut),f(W,X,K,ut,e);var ft=st&amp;&amp;Y===ot.charAt(0),ht=Q(&quot;spikecolor&quot;,st?X.color:void 0),pt=Q(&quot;spikethickness&quot;,st?1.5:void 0),dt=Q(&quot;spikedash&quot;,st?&quot;dot&quot;:void 0),gt=Q(&quot;spikemode&quot;,st?&quot;across&quot;:void 0),mt=Q(&quot;spikesnap&quot;);K(&quot;showspikes&quot;,!!(ft||ht||pt||dt||gt||mt))||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;title.standoff&quot;),at(),X._input=W}for(y=0;y&lt;it.length;){G=it[y++],Y=(H=g(G)).charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var vt={letter:Y,font:e.font,outerTicks:I[H],showGrid:!O[H],data:[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),X.type=nt[G]||&quot;linear&quot;,f(W,X,K,vt,e),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;fixedrange&quot;),at(),X._input=W}var yt=b(&quot;rangeslider&quot;,&quot;handleDefaults&quot;),xt=b(&quot;rangeselector&quot;,&quot;handleDefaults&quot;);for(y=0;y&lt;j.length;y++)H=j[y],W=t[H],X=e[H],yt(t,e,H),&quot;date&quot;===X.type&amp;&amp;xt(W,X,e,U,X.calendar),K(&quot;fixedrange&quot;);for(y=0;y&lt;U.length;y++){H=U[y],W=t[H],X=e[H];var bt=e[g(X.anchor)];K(&quot;fixedrange&quot;,b(&quot;rangeslider&quot;,&quot;isVisible&quot;)(bt))}h.handleDefaults(t,e,{axIds:rt.concat(it).sort(d.idSort),axHasImage:P})}},{&quot;../../components/color&quot;:666,&quot;../../components/fx/helpers&quot;:702,&quot;../../components/fx/hovermode_defaults&quot;:705,&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../registry&quot;:931,&quot;../layout_attributes&quot;:908,&quot;./axis_defaults&quot;:856,&quot;./axis_ids&quot;:858,&quot;./constants&quot;:861,&quot;./constraints&quot;:862,&quot;./layout_attributes&quot;:869,&quot;./position_defaults&quot;:872,&quot;./type_defaults&quot;:880}],871:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../components/color/attributes&quot;).lightFraction,a=t(&quot;../../lib&quot;);e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(&quot;linecolor&quot;,s),u=l(&quot;linewidth&quot;);r(&quot;showline&quot;,o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(&quot;gridcolor&quot;,n(s,o.bgColor,o.blend||i).toRgbString()),h=l(&quot;gridwidth&quot;);if(r(&quot;showgrid&quot;,o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(&quot;zerolinecolor&quot;,s),d=l(&quot;zerolinewidth&quot;);r(&quot;zeroline&quot;,o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib&quot;:803,tinycolor2:598}],872:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&amp;&amp;(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&amp;&amp;(l=p[h+&quot;side&quot;].split(&quot; &quot;)[0],c=p.domain[h][&quot;right&quot;===l||&quot;top&quot;===l?1:0])),s=s||[0,1],o=o||(n(t.position)?&quot;free&quot;:u[0]||&quot;free&quot;),l=l||(&quot;x&quot;===h?&quot;bottom&quot;:&quot;left&quot;),c=c||0,&quot;free&quot;===i.coerce(t,e,{anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;].concat(u),dflt:o}},&quot;anchor&quot;)&amp;&amp;r(&quot;position&quot;,c),i.coerce(t,e,{side:{valType:&quot;enumerated&quot;,values:&quot;x&quot;===h?[&quot;bottom&quot;,&quot;top&quot;]:[&quot;left&quot;,&quot;right&quot;],dflt:l}},&quot;side&quot;);var d=!1;if(f.length&amp;&amp;(d=i.coerce(t,e,{overlaying:{valType:&quot;enumerated&quot;,values:[!1].concat(f),dflt:!1}},&quot;overlaying&quot;)),!d){var g=r(&quot;domain&quot;,s);g[0]&gt;g[1]-1/4096&amp;&amp;(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(&quot;layer&quot;),e}},{&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],873:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/alignment&quot;).FROM_BL;e.exports=function(t,e,r){void 0===r&amp;&amp;(r=n[t.constraintoward||&quot;center&quot;]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{&quot;../../constants/alignment&quot;:771}],874:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;polybooljs&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/drawing&quot;).dashStyle,o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/fx/helpers&quot;).makeEventData,c=t(&quot;../../components/dragelement/helpers&quot;),u=c.freeMode,f=c.rectMode,h=c.drawMode,p=c.openMode,d=c.selectMode,g=t(&quot;../../components/shapes/draw_newshape/display_outlines&quot;),m=t(&quot;../../components/shapes/draw_newshape/helpers&quot;).handleEllipse,v=t(&quot;../../components/shapes/draw_newshape/newshapes&quot;),y=t(&quot;../../lib&quot;),x=t(&quot;../../lib/polygon&quot;),b=t(&quot;../../lib/throttle&quot;),_=t(&quot;./axis_ids&quot;).getFromId,w=t(&quot;../../lib/clear_gl_canvases&quot;),T=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,k=t(&quot;./constants&quot;),A=k.MINSELECT,M=x.filter,S=x.tester,E=t(&quot;./handle_outline&quot;).clearSelect,L=t(&quot;./helpers&quot;),C=L.p2r,P=L.axValue,I=L.getTransform;function O(t,e,r,n,i,a,o){var s,l,c,u,f,h,d,m,v,y=e._hoverdata,x=e._fullLayout.clickmode.indexOf(&quot;event&quot;)&gt;-1,b=[];if(function(t){return t&amp;&amp;Array.isArray(t)&amp;&amp;!0!==t[0].hoverOnBox}(y)){F(t,e,a);var _=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n&lt;e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&amp;&amp;(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(y,s=N(e,r,n,i));if(_.pointNumbers.length&gt;0?function(t,e){var r,n,i,a=[];for(i=0;i&lt;t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&amp;&amp;r.cd[0].trace.selectedpoints.length&gt;0&amp;&amp;a.push(r);if(1===a.length&amp;&amp;a[0]===e.searchInfo&amp;&amp;(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i&lt;e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])&lt;0)return!1;return!0}return!1}(s,_):function(t){var e,r,n,i=0;for(n=0;n&lt;t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length&gt;1)return!1;if((i+=r.selectedpoints.length)&gt;1)return!1}return 1===i}(s)&amp;&amp;(h=j(_))){for(o&amp;&amp;o.remove(),v=0;v&lt;s.length;v++)(l=s[v])._module.selectPoints(l,!1);U(e,s),B(a),x&amp;&amp;e.emit(&quot;plotly_deselect&quot;,null)}else{for(d=t.shiftKey&amp;&amp;(void 0!==h?h:j(_)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(_.pointNumber,_.searchInfo,d),u=R(a.selectionDefs.concat([c])),v=0;v&lt;s.length;v++)if(f=V(s[v]._module.selectPoints(s[v],u),s[v]),b.length)for(var w=0;w&lt;f.length;w++)b.push(f[w]);else b=f;if(U(e,s,m={points:b}),c&amp;&amp;a&amp;&amp;a.selectionDefs.push(c),o){var T=a.mergedPolygons,k=p(a.dragmode);g(q(T,k),o,a)}x&amp;&amp;e.emit(&quot;plotly_selected&quot;,m)}}}function z(t){return&quot;pointNumber&quot;in t&amp;&amp;&quot;searchInfo&quot;in t}function D(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&amp;&amp;n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function R(t){for(var e=[],r=z(t[0])?0:t[0][0][0],n=r,i=z(t[0])?0:t[0][0][1],a=i,o=0;o&lt;t.length;o++)if(z(t[o]))e.push(D(t[o]));else{var s=x.tester(t[o]);s.subtract=t[o].subtract,e.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o&lt;e.length;o++)e[o].contains(t,r,n,i)&amp;&amp;(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function F(t,e,r){e._fullLayout._drawing=!1;var n=e._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&amp;&amp;n._lastSelectedSubplot===i.id,s=(t.shiftKey||t.altKey)&amp;&amp;!(h(a)&amp;&amp;p(a));o&amp;&amp;s&amp;&amp;i.selection&amp;&amp;i.selection.selectionDefs&amp;&amp;!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):s&amp;&amp;i.selection||B(r),o||(E(e),n._lastSelectedSubplot=i.id)}function B(t){var e=t.dragmode,r=t.plotinfo,n=t.gd;if(n._fullLayout._activeShapeIndex&gt;=0&amp;&amp;n._fullLayout._deactivateShape(n),h(e)){var a=n._fullLayout._zoomlayer.selectAll(&quot;.select-outline-&quot;+r.id);if(a&amp;&amp;n._fullLayout._drawing){var o=v(a,t);o&amp;&amp;i.call(&quot;_guiRelayout&quot;,n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=t.selectionDefs=[],r.selection.mergedPolygons=t.mergedPolygons=[]}function N(t,e,r,n){var i,a,o,s=[],l=e.map((function(t){return t._id})),c=r.map((function(t){return t._id}));for(o=0;o&lt;t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&amp;&amp;a._module&amp;&amp;a._module.selectPoints)if(!n||a.subplot!==n&amp;&amp;a.geo!==n)if(&quot;splom&quot;===a.type&amp;&amp;a._xaxes[l[0]]&amp;&amp;a._yaxes[c[0]]){var u=h(a._module,i,e[0],r[0]);u.scene=t._fullLayout._splomScenes[a.uid],s.push(u)}else if(&quot;sankey&quot;===a.type){var f=h(a._module,i,e[0],r[0]);s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,_(t,a.xaxis),_(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function j(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length&gt;0?n[0]:r;return!!e.selectedpoints&amp;&amp;e.selectedpoints.indexOf(i)&gt;-1}function U(t,e,r){var n,a,o,s;for(n=0;n&lt;e.length;n++){var l=e[n].cd[0].trace._fullInput,c=t._fullLayout._tracePreGUI[l.uid]||{};void 0===c.selectedpoints&amp;&amp;(c.selectedpoints=l._input.selectedpoints||null)}if(r){var u=r.points||[];for(n=0;n&lt;e.length;n++)(s=e[n].cd[0].trace)._input.selectedpoints=s._fullInput.selectedpoints=[],s._fullInput!==s&amp;&amp;(s.selectedpoints=[]);for(n=0;n&lt;u.length;n++){var f=u[n],h=f.data,p=f.fullData;f.pointIndices?([].push.apply(h.selectedpoints,f.pointIndices),s._fullInput!==s&amp;&amp;[].push.apply(p.selectedpoints,f.pointIndices)):(h.selectedpoints.push(f.pointIndex),s._fullInput!==s&amp;&amp;p.selectedpoints.push(f.pointIndex))}}else for(n=0;n&lt;e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints,s._fullInput!==s&amp;&amp;delete s._fullInput.selectedpoints;var d=!1;for(n=0;n&lt;e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,&quot;regl&quot;)&amp;&amp;(d=!0);var g=a._module,m=g.styleOnSelect||g.style;m&amp;&amp;(m(t,o,o[0].node3),o[0].nodeRangePlot3&amp;&amp;m(t,o,o[0].nodeRangePlot3))}d&amp;&amp;(w(t),T(t))}function V(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i&lt;t.length;i++)t[i]=l(t[i],n,r);return t}function q(t,e){for(var r=[],n=0;n&lt;t.length;n++){r[n]=[];for(var i=0;i&lt;t[n].length;i++){r[n][i]=[],r[n][i][0]=i?&quot;L&quot;:&quot;M&quot;;for(var a=0;a&lt;t[n][i].length;a++)r[n][i].push(t[n][i][a])}e||r[n].push([&quot;Z&quot;,r[n][0][1],r[n][0][2]])}return r}e.exports={prepSelect:function(t,e,r,i,l){var c=u(l),v=f(l),x=p(l),_=h(l),w=d(l),T=&quot;drawcircle&quot;===l,E=&quot;drawline&quot;===l||T,L=i.gd,z=L._fullLayout,D=z._zoomlayer,j=i.element.getBoundingClientRect(),H=i.plotinfo,G=I(H),Y=e-j.left,W=r-j.top;z._calcInverseTransform(L);var X=y.apply3DTransform(z._invTransform)(Y,W);Y=X[0],W=X[1];var Z,J,K,Q,$,tt,et,rt=z._invScaleX,nt=z._invScaleY,it=Y,at=W,ot=&quot;M&quot;+Y+&quot;,&quot;+W,st=i.xaxes[0]._length,lt=i.yaxes[0]._length,ct=i.xaxes.concat(i.yaxes),ut=t.altKey&amp;&amp;!(h(l)&amp;&amp;x);F(t,L,i),c&amp;&amp;(Z=M([[Y,W]],k.BENDPX));var ft=D.selectAll(&quot;path.select-outline-&quot;+H.id).data(_?[0]:[1,2]),ht=z.newshape;ft.enter().append(&quot;path&quot;).attr(&quot;class&quot;,(function(t){return&quot;select-outline select-outline-&quot;+t+&quot; select-outline-&quot;+H.id})).style(_?{opacity:ht.opacity/2,fill:x?void 0:ht.fillcolor,stroke:ht.line.color,&quot;stroke-dasharray&quot;:a(ht.line.dash,ht.line.width),&quot;stroke-width&quot;:ht.line.width+&quot;px&quot;}:{}).attr(&quot;fill-rule&quot;,ht.fillrule).classed(&quot;cursor-move&quot;,!!_).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,ot+&quot;Z&quot;);var pt,dt=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:o.background,stroke:o.defaultLine,&quot;stroke-width&quot;:1}).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,&quot;M0,0Z&quot;),gt=z._uid+k.SELECTID,mt=[],vt=N(L,i.xaxes,i.yaxes,i.subplot);function yt(t,e){return t-e}pt=H.fillRangeItems?H.fillRangeItems:v?function(t,e){var r=t.range={};for($=0;$&lt;ct.length;$++){var n=ct[$],i=n._id.charAt(0);r[n._id]=[C(n,e[i+&quot;min&quot;]),C(n,e[i+&quot;max&quot;])].sort(yt)}}:function(t,e,r){var n=t.lassoPoints={};for($=0;$&lt;ct.length;$++){var i=ct[$];n[i._id]=r.filtered.map(P(i))}},i.moveFn=function(t,e){it=Math.max(0,Math.min(st,rt*t+Y)),at=Math.max(0,Math.min(lt,nt*e+W));var r=Math.abs(it-Y),a=Math.abs(at-W);if(v){var o,s,l;if(w){var u=z.selectdirection;switch(o=&quot;any&quot;===u?a&lt;Math.min(.6*r,A)?&quot;h&quot;:r&lt;Math.min(.6*a,A)?&quot;v&quot;:&quot;d&quot;:u){case&quot;h&quot;:s=T?lt/2:0,l=lt;break;case&quot;v&quot;:s=T?st/2:0,l=st}}if(_)switch(z.newshape.drawdirection){case&quot;vertical&quot;:o=&quot;h&quot;,s=T?lt/2:0,l=lt;break;case&quot;horizontal&quot;:o=&quot;v&quot;,s=T?st/2:0,l=st;break;case&quot;ortho&quot;:r&lt;a?(o=&quot;h&quot;,s=W,l=at):(o=&quot;v&quot;,s=Y,l=it);break;default:o=&quot;d&quot;}&quot;h&quot;===o?((Q=E?m(T,[it,s],[it,l]):[[Y,s],[Y,l],[it,l],[it,s]]).xmin=E?it:Math.min(Y,it),Q.xmax=E?it:Math.max(Y,it),Q.ymin=Math.min(s,l),Q.ymax=Math.max(s,l),dt.attr(&quot;d&quot;,&quot;M&quot;+Q.xmin+&quot;,&quot;+(W-A)+&quot;h-4v&quot;+2*A+&quot;h4ZM&quot;+(Q.xmax-1)+&quot;,&quot;+(W-A)+&quot;h4v&quot;+2*A+&quot;h-4Z&quot;)):&quot;v&quot;===o?((Q=E?m(T,[s,at],[l,at]):[[s,W],[s,at],[l,at],[l,W]]).xmin=Math.min(s,l),Q.xmax=Math.max(s,l),Q.ymin=E?at:Math.min(W,at),Q.ymax=E?at:Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M&quot;+(Y-A)+&quot;,&quot;+Q.ymin+&quot;v-4h&quot;+2*A+&quot;v4ZM&quot;+(Y-A)+&quot;,&quot;+(Q.ymax-1)+&quot;v4h&quot;+2*A+&quot;v-4Z&quot;)):&quot;d&quot;===o&amp;&amp;((Q=E?m(T,[Y,W],[it,at]):[[Y,W],[Y,at],[it,at],[it,W]]).xmin=Math.min(Y,it),Q.xmax=Math.max(Y,it),Q.ymin=Math.min(W,at),Q.ymax=Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M0,0Z&quot;))}else c&amp;&amp;(Z.addPt([it,at]),Q=Z.filtered);i.selectionDefs&amp;&amp;i.selectionDefs.length?(K=function(t,e,r){if(r)return n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions;return n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,Q,ut),Q.subtract=ut,J=R(i.selectionDefs.concat([Q]))):(K=[Q],J=S(Q)),g(q(K,x),ft,i),w&amp;&amp;b.throttle(gt,k.SELECTDELAY,(function(){var t;mt=[];var e,r=[];for($=0;$&lt;vt.length;$++)if(e=(tt=vt[$])._module.selectPoints(tt,J),r.push(e),t=V(e,tt),mt.length)for(var n=0;n&lt;t.length;n++)mt.push(t[n]);else mt=t;U(L,vt,et={points:mt}),pt(et,Q,Z),i.gd.emit(&quot;plotly_selecting&quot;,et)}))},i.clickFn=function(t,e){if(dt.remove(),L._fullLayout._activeShapeIndex&gt;=0)L._fullLayout._deactivateShape(L);else if(!_){var r=z.clickmode;b.done(gt).then((function(){if(b.clear(gt),2===t){for(ft.remove(),$=0;$&lt;vt.length;$++)(tt=vt[$])._module.selectPoints(tt,!1);U(L,vt),B(i),L.emit(&quot;plotly_deselect&quot;,null)}else r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;O(e,L,i.xaxes,i.yaxes,i.subplot,i,ft),&quot;event&quot;===r&amp;&amp;L.emit(&quot;plotly_selected&quot;,void 0);s.click(L,e)})).catch(y.error)}},i.doneFn=function(){dt.remove(),b.done(gt).then((function(){b.clear(gt),i.gd.emit(&quot;plotly_selected&quot;,et),Q&amp;&amp;i.selectionDefs&amp;&amp;(Q.subtract=ut,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,K)),i.doneFnCompleted&amp;&amp;i.doneFnCompleted(mt)})).catch(y.error),_&amp;&amp;B(i)}},clearSelect:E,clearSelectionsCache:B,selectOnClick:O}},{&quot;../../components/color&quot;:666,&quot;../../components/dragelement/helpers&quot;:684,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../components/fx/helpers&quot;:702,&quot;../../components/shapes/draw_newshape/display_outlines&quot;:754,&quot;../../components/shapes/draw_newshape/helpers&quot;:755,&quot;../../components/shapes/draw_newshape/newshapes&quot;:756,&quot;../../lib&quot;:803,&quot;../../lib/clear_gl_canvases&quot;:787,&quot;../../lib/polygon&quot;:815,&quot;../../lib/throttle&quot;:830,&quot;../../plot_api/subroutines&quot;:844,&quot;../../registry&quot;:931,&quot;./axis_ids&quot;:858,&quot;./constants&quot;:861,&quot;./handle_outline&quot;:865,&quot;./helpers&quot;:866,polybooljs:504}],875:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;../../lib&quot;),o=a.numberFormat,s=t(&quot;fast-isnumeric&quot;),l=a.cleanNumber,c=a.ms2DateTime,u=a.dateTime2ms,f=a.ensureNumber,h=a.isArrayOrTypedArray,p=t(&quot;../../constants/numerical&quot;),d=p.FP_SAFE,g=p.BADNUM,m=p.LOG_CLIP,v=p.ONEWEEK,y=p.ONEDAY,x=p.ONEHOUR,b=p.ONEMIN,_=p.ONESEC,w=t(&quot;./axis_ids&quot;),T=t(&quot;./constants&quot;),k=T.HOUR_PATTERN,A=T.WEEKDAY_PATTERN;function M(t){return Math.pow(10,t)}function S(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||&quot;x&quot;,p=r.charAt(0);function E(e,r){if(e&gt;0)return Math.log(e)/Math.LN10;if(e&lt;=0&amp;&amp;r&amp;&amp;t.range&amp;&amp;2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*m*Math.abs(n-i))}return g}function L(e,r,n,i){if((i||{}).msUTC&amp;&amp;s(e))return+e;var o=u(e,n||t.calendar);if(o===g){if(!s(e))return g;e=+e;var l=Math.floor(10*a.mod(e+.05,1)),c=Math.round(e-l/10);o=u(new Date(c))+l/10}return o}function C(e,r,n){return c(e,r,n||t.calendar)}function P(e){return t._categories[Math.round(e)]}function I(e){if(S(e)){if(void 0===t._categoriesMap&amp;&amp;(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(&quot;number&quot;==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return g}function O(e){if(t._categoriesMap)return t._categoriesMap[e]}function z(t){var e=O(t);return void 0!==e?e:s(t)?+t:void 0}function D(t){return s(t)?+t:O(t)}function R(t,e,r){return n.round(r+e*t,2)}function F(t,e,r){return(t-r)/e}var B=function(e){return s(e)?R(e,t._m,t._b):g},N=function(e){return F(e,t._m,t._b)};if(t.rangebreaks){var j=&quot;y&quot;===p;B=function(e){if(!s(e))return g;var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);var n=j;t.range[0]&gt;t.range[1]&amp;&amp;(n=!n);for(var i=n?-1:1,a=i*e,o=0,l=0;l&lt;r;l++){var c=i*t._rangebreaks[l].min,u=i*t._rangebreaks[l].max;if(a&lt;c)break;if(!(a&gt;u)){o=a&lt;(c+u)/2?l:l+1;break}o=l+1}var f=t._B[o]||0;return isFinite(f)?R(e,t._m2,f):0},N=function(e){var r=t._rangebreaks.length;if(!r)return F(e,t._m,t._b);for(var n=0,i=0;i&lt;r&amp;&amp;!(e&lt;t._rangebreaks[i].pmin);i++)e&gt;t._rangebreaks[i].pmax&amp;&amp;(n=i+1);return F(e,t._m2,t._B[n])}}t.c2l=&quot;log&quot;===t.type?E:f,t.l2c=&quot;log&quot;===t.type?M:f,t.l2p=B,t.p2l=N,t.c2p=&quot;log&quot;===t.type?function(t,e){return B(E(t,e))}:B,t.p2c=&quot;log&quot;===t.type?function(t){return M(N(t))}:N,-1!==[&quot;linear&quot;,&quot;-&quot;].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(e){return t.l2p(l(e))},t.p2d=t.p2r=N,t.cleanPos=f):&quot;log&quot;===t.type?(t.d2r=t.d2l=function(t,e){return E(l(t),e)},t.r2d=t.r2c=function(t){return M(l(t))},t.d2c=t.r2l=l,t.c2d=t.l2r=f,t.c2r=E,t.l2d=M,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return M(N(t))},t.r2p=function(e){return t.l2p(l(e))},t.p2r=N,t.cleanPos=f):&quot;date&quot;===t.type?(t.d2r=t.r2d=a.identity,t.d2c=t.r2c=t.d2l=t.r2l=L,t.c2d=t.c2r=t.l2d=t.l2r=C,t.d2p=t.r2p=function(e,r,n){return t.l2p(L(e,0,n))},t.p2d=t.p2r=function(t,e,r){return C(N(t),e,r)},t.cleanPos=function(e){return a.cleanDate(e,g,t.calendar)}):&quot;category&quot;===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=P,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=D(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=f,t.r2l=D,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return P(N(t))},t.r2p=t.d2p,t.p2r=N,t.cleanPos=function(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:f(t)}):&quot;multicategory&quot;===t.type&amp;&amp;(t.r2d=t.c2d=t.l2d=P,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=O,t.l2r=t.c2r=f,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return P(N(t))},t.r2p=t.d2p,t.p2r=N,t.cleanPos=function(t){return Array.isArray(t)||&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:f(t)},t.setupMultiCategory=function(n){var i,o,s=t._traceIndices,l=t._matchGroup;if(l&amp;&amp;0===t._categories.length)for(var c in l)if(c!==r){var u=e[w.id2name(c)];s=s.concat(u._traceIndices)}var f=[[0,{}],[0,{}]],d=[];for(i=0;i&lt;s.length;i++){var g=n[s[i]];if(p in g){var m=g[p],v=g._length||a.minRowLength(m);if(h(m[0])&amp;&amp;h(m[1]))for(o=0;o&lt;v;o++){var y=m[0][o],x=m[1][o];S(y)&amp;&amp;S(x)&amp;&amp;(d.push([y,x]),y in f[0][1]||(f[0][1][y]=f[0][0]++),x in f[1][1]||(f[1][1][x]=f[1][0]++))}}}for(d.sort((function(t,e){var r=f[0][1],n=r[t[0]]-r[e[0]];if(n)return n;var i=f[1][1];return i[t[1]]-i[e[1]]})),i=0;i&lt;d.length;i++)I(d[i])}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,r){r||(r={}),e||(e=&quot;range&quot;);var n,i,o=a.nestedProperty(t,e).get();if(i=(i=&quot;date&quot;===t.type?a.dfltRange(t.calendar):&quot;y&quot;===p?T.DFLTRANGEY:r.dfltRange||T.DFLTRANGEX).slice(),&quot;tozero&quot;!==t.rangemode&amp;&amp;&quot;nonnegative&quot;!==t.rangemode||(i[0]=0),o&amp;&amp;2===o.length)for(&quot;date&quot;!==t.type||t.autorange||(o[0]=a.cleanDate(o[0],g,t.calendar),o[1]=a.cleanDate(o[1],g,t.calendar)),n=0;n&lt;2;n++)if(&quot;date&quot;===t.type){if(!a.isDateTime(o[n],t.calendar)){t[e]=i;break}if(t.r2l(o[0])===t.r2l(o[1])){var l=a.constrain(t.r2l(o[0]),a.MIN_MS+1e3,a.MAX_MS-1e3);o[0]=t.l2r(l-1e3),o[1]=t.l2r(l+1e3);break}}else{if(!s(o[n])){if(!s(o[1-n])){t[e]=i;break}o[n]=o[1-n]*(n?10:.1)}if(o[n]&lt;-d?o[n]=-d:o[n]&gt;d&amp;&amp;(o[n]=d),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else a.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=w.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&amp;&amp;t._r?&quot;_r&quot;:&quot;range&quot;,o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f=&quot;y&quot;===p;if((f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks)&amp;&amp;(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._lBreaks+=Math.abs(l.max-l.min);var h=f;c&gt;u&amp;&amp;(h=!h),h&amp;&amp;t._rangebreaks.reverse();var d=h?-1:1;for(t._m2=d*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._B.push(t._B[t._B.length-1]-d*t._m2*(l.max-l.min));for(s=0;s&lt;t._rangebreaks.length;s++)(l=t._rangebreaks[s]).pmin=B(l.min),l.pmax=B(l.max)}if(!isFinite(t._m)||!isFinite(t._b)||t._length&lt;0)throw e._replotting=!1,new Error(&quot;Something went wrong with axis scaling&quot;)},t.maskBreaks=function(e){var r,n,i,o,s,c=t.rangebreaks||[];c._cachedPatterns||(c._cachedPatterns=c.map((function(e){return e.enabled&amp;&amp;e.bounds?a.simpleMap(e.bounds,e.pattern?l:t.d2c):null}))),c._cachedValues||(c._cachedValues=c.map((function(e){return e.enabled&amp;&amp;e.values?a.simpleMap(e.values,t.d2c).sort(a.sorterAsc):null})));for(var u=0;u&lt;c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var h=f.pattern;switch(n=(r=c._cachedPatterns[u])[0],i=r[1],h){case A:o=(s=new Date(e)).getUTCDay(),n&gt;i&amp;&amp;(i+=7,o&lt;n&amp;&amp;(o+=7));break;case k:o=(s=new Date(e)).getUTCHours()+(s.getUTCMinutes()/60+s.getUTCSeconds()/3600+s.getUTCMilliseconds()/36e5),n&gt;i&amp;&amp;(i+=24,o&lt;n&amp;&amp;(o+=24));break;case&quot;&quot;:o=e}if(o&gt;=n&amp;&amp;o&lt;i)return g}else for(var p=c._cachedValues[u],d=0;d&lt;p.length;d++)if(i=(n=p[d])+f.dvalue,e&gt;=n&amp;&amp;e&lt;i)return g}return e},t.locateBreaks=function(e,r){var n,i,o,s,c=[];if(!t.rangebreaks)return c;var u=t.rangebreaks.slice().sort((function(t,e){return t.pattern===A&amp;&amp;e.pattern===k?-1:e.pattern===A&amp;&amp;t.pattern===k?1:0})),f=function(t,n){if((t=a.constrain(t,e,r))!==(n=a.constrain(n,e,r))){for(var i=!0,o=0;o&lt;c.length;o++){var s=c[o];t&lt;s.max&amp;&amp;n&gt;=s.min&amp;&amp;(t&lt;s.min&amp;&amp;(s.min=t),n&gt;s.max&amp;&amp;(s.max=n),i=!1)}i&amp;&amp;c.push({min:t,max:n})}};for(n=0;n&lt;u.length;n++){var h=u[n];if(h.enabled)if(h.bounds){var p=e,d=r;h.pattern&amp;&amp;(p=Math.floor(p)),o=(i=a.simpleMap(h.bounds,h.pattern?l:t.r2l))[0],s=i[1];var g,m,w=new Date(p);switch(h.pattern){case A:m=v,g=(s-o+(s&lt;o?7:0))*y,p+=o*y-(w.getUTCDay()*y+w.getUTCHours()*x+w.getUTCMinutes()*b+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;case k:m=y,g=(s-o+(s&lt;o?24:0))*x,p+=o*x-(w.getUTCHours()*x+w.getUTCMinutes()*b+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;default:p=Math.min(i[0],i[1]),g=m=(d=Math.max(i[0],i[1]))-p}for(var T=p;T&lt;d;T+=m)f(T,T+g)}else for(var M=a.simpleMap(h.values,t.d2c),S=0;S&lt;M.length;S++)f(o=M[S],s=o+h.dvalue)}return c.sort((function(t,e){return t.min-e.min})),c},t.makeCalcdata=function(e,r,n){var i,o,s,l,c=t.type,u=&quot;date&quot;===c&amp;&amp;e[r+&quot;calendar&quot;];if(r in e){if(i=e[r],l=e._length||a.minRowLength(i),a.isTypedArray(i)&amp;&amp;(&quot;linear&quot;===c||&quot;log&quot;===c)){if(l===i.length)return i;if(i.subarray)return i.subarray(0,l)}if(&quot;multicategory&quot;===c)return function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++){var i=(t[0]||[])[n],a=(t[1]||[])[n];r[n]=O([i,a])}return r}(i,l);for(o=new Array(l),s=0;s&lt;l;s++)o[s]=t.d2c(i[s],0,u,n)}else{var f=r+&quot;0&quot;in e?t.d2c(e[r+&quot;0&quot;],0,u):0,h=e[&quot;d&quot;+r]?Number(e[&quot;d&quot;+r]):1;for(i=e[{x:&quot;y&quot;,y:&quot;x&quot;}[r]],l=e._length||i.length,o=new Array(l),s=0;s&lt;l;s++)o[s]=f+s*h}if(t.rangebreaks)for(s=0;s&lt;l;s++)o[s]=t.maskBreaks(o[s]);return o},t.isValidRange=function(e){return Array.isArray(e)&amp;&amp;2===e.length&amp;&amp;s(t.r2l(e[0]))&amp;&amp;s(t.r2l(e[1]))},t.isPtWithinRange=function(e,r){var n=t.c2l(e[p],null,r),i=t.r2l(t.range[0]),a=t.r2l(t.range[1]);return i&lt;a?i&lt;=n&amp;&amp;n&lt;=a:a&lt;=n&amp;&amp;n&lt;=i},t._emptyCategories=function(){t._categories=[],t._categoriesMap={}},t.clearCalc=function(){var r=t._matchGroup;if(r){var n=null,i=null;for(var a in r){var o=e[w.id2name(a)];if(o._categories){n=o._categories,i=o._categoriesMap;break}}n&amp;&amp;i?(t._categories=n,t._categoriesMap=i):t._emptyCategories()}else t._emptyCategories();if(t._initialCategories)for(var s=0;s&lt;t._initialCategories.length;s++)I(t._initialCategories[s])},t.sortByInitialCategories=function(){var n=[];if(t._emptyCategories(),t._initialCategories)for(var i=0;i&lt;t._initialCategories.length;i++)I(t._initialCategories[i]);n=n.concat(t._traceIndices);var a=t._matchGroup;for(var o in a)if(r!==o){var s=e[w.id2name(o)];s._categories=t._categories,s._categoriesMap=t._categoriesMap,n=n.concat(s._traceIndices)}return n};var U=e._d3locale;&quot;date&quot;===t.type&amp;&amp;(t._dateFormat=U?U.timeFormat:i,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=U?U.numberFormat:o,delete t._minDtick,delete t._forceTick0}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;./axis_ids&quot;:858,&quot;./constants&quot;:861,&quot;@plotly/d3&quot;:58,&quot;d3-time-format&quot;:175,&quot;fast-isnumeric&quot;:249}],876:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).contrast,a=t(&quot;./layout_attributes&quot;),o=t(&quot;../array_container_defaults&quot;);function s(t){var e=[&quot;showexponent&quot;,&quot;showtickprefix&quot;,&quot;showticksuffix&quot;].filter((function(e){return void 0!==t[e]}));if(e.every((function(r){return t[r]===t[e[0]]}))||1===e.length)return t[e[0]]}function l(t,e){function r(r,i){return n.coerce(t,e,a.tickformatstops,r,i)}r(&quot;enabled&quot;)&amp;&amp;(r(&quot;dtickrange&quot;),r(&quot;value&quot;))}e.exports=function(t,e,r,c,u,f){f&amp;&amp;1!==f.pass||function(t,e,r,n,i){var a=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,a);r(&quot;ticksuffix&quot;,i.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,a)}(t,0,r,0,u),f&amp;&amp;2!==f.pass||function(t,e,r,c,u){var f=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,f);r(&quot;ticksuffix&quot;,u.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,f);if(r(&quot;showticklabels&quot;)){var h=u.font||{},p=e.color,d=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)?i(u.bgColor):p&amp;&amp;p!==a.color.dflt?p:h.color;if(n.coerceFont(r,&quot;tickfont&quot;,{family:h.family,size:h.size,color:d}),r(&quot;tickangle&quot;),&quot;category&quot;!==c){var g=r(&quot;tickformat&quot;);o(t,e,{name:&quot;tickformatstops&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:l}),e.tickformatstops.length||delete e.tickformatstops,g||&quot;date&quot;===c||(r(&quot;showexponent&quot;,f),r(&quot;exponentformat&quot;),r(&quot;minexponent&quot;),r(&quot;separatethousands&quot;))}}}(t,e,r,c,u)}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../array_container_defaults&quot;:849,&quot;./layout_attributes&quot;:869}],877:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,&quot;ticklen&quot;),s=n.coerce2(t,e,i,&quot;tickwidth&quot;),l=n.coerce2(t,e,i,&quot;tickcolor&quot;,e.color);r(&quot;ticks&quot;,a.outerTicks||o||s||l?&quot;outside&quot;:&quot;&quot;)||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:869}],878:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./clean_ticks&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){function o(r){var n=t[r];return void 0!==n?n:(e._template||{})[r]}var s=o(&quot;tick0&quot;),l=o(&quot;dtick&quot;),c=o(&quot;tickvals&quot;),u=r(&quot;tickmode&quot;,i(c)?&quot;array&quot;:l?&quot;linear&quot;:&quot;auto&quot;);if(&quot;auto&quot;===u)r(&quot;nticks&quot;);else if(&quot;linear&quot;===u){var f=e.dtick=n.dtick(l,a);e.tick0=n.tick0(s,a,e.calendar,f)}else if(&quot;multicategory&quot;!==a){void 0===r(&quot;tickvals&quot;)?e.tickmode=&quot;auto&quot;:r(&quot;ticktext&quot;)}}},{&quot;../../lib&quot;:803,&quot;./clean_ticks&quot;:860}],879:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;./axes&quot;);e.exports=function(t,e,r,l){var c=t._fullLayout;if(0!==e.length){var u,f,h,p;l&amp;&amp;(u=l());var d=n.ease(r.easing);return t._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr0&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr0.slice()),a.yr0&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr0.slice())}return i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function n(){h=Date.now();for(var a=Math.min(1,(h-f)/r.duration),o=d(a),s=0;s&lt;e.length;s++)m(e[s],o);h-f&gt;r.duration?(!function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr1&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr1.slice()),a.yr1&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr1.slice())}u&amp;&amp;u(),i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}(),p=window.cancelAnimationFrame(n)):p=window.requestAnimationFrame(n)})),Promise.resolve()}function g(t){var e=t.xaxis,r=t.yaxis;c._defs.select(&quot;#&quot;+t.clipId+&quot;&gt; rect&quot;).call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(&quot;.scatterlayer .trace&quot;);n.selectAll(&quot;.point&quot;).call(o.setPointGroupScale,1,1),n.selectAll(&quot;.textpoint&quot;).call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function m(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,h=!!e.yr1,p=[];if(f){var d=a.simpleMap(e.xr0,i.r2l),g=a.simpleMap(e.xr1,i.r2l),m=d[1]-d[0],v=g[1]-g[0];p[0]=(d[0]*(1-r)+r*g[0]-d[0])/(d[1]-d[0])*c,p[2]=c*(1-r+r*v/m),i.range[0]=i.l2r(d[0]*(1-r)+r*g[0]),i.range[1]=i.l2r(d[1]*(1-r)+r*g[1])}else p[0]=0,p[2]=c;if(h){var y=a.simpleMap(e.yr0,l.r2l),x=a.simpleMap(e.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/p[2]:1,T=h?u/p[3]:1,k=f?p[0]:0,A=h?p[1]:0,M=f?p[0]/p[2]*c:0,S=h?p[1]/p[3]*u:0,E=i._offset-M,L=l._offset-S;n.clipRect.call(o.setTranslate,k,A).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,L).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(t)}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./axes&quot;:854,&quot;@plotly/d3&quot;:58}],880:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;).traceIs,i=t(&quot;./axis_autotype&quot;);function a(t){return{v:&quot;x&quot;,h:&quot;y&quot;}[t.orientation||&quot;v&quot;]}function o(t,e){var r=a(t),i=n(t,&quot;box-violin&quot;),o=n(t._fullInput||{},&quot;candlestick&quot;);return i&amp;&amp;!o&amp;&amp;e===r&amp;&amp;void 0===t[r]&amp;&amp;void 0===t[r+&quot;0&quot;]}e.exports=function(t,e,r,s){r(&quot;autotypenumbers&quot;,s.autotypenumbersDflt),&quot;-&quot;===r(&quot;type&quot;,(s.splomStash||{}).type)&amp;&amp;(!function(t,e){if(&quot;-&quot;!==t.type)return;var r,s=t._id,l=s.charAt(0);-1!==s.indexOf(&quot;scene&quot;)&amp;&amp;(s=l);var c=function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n];if(&quot;splom&quot;===i.type&amp;&amp;i._length&gt;0&amp;&amp;(i[&quot;_&quot;+r+&quot;axes&quot;]||{})[e])return i;if((i[r+&quot;axis&quot;]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+&quot;0&quot;])return i}}}(e,s,l);if(!c)return;if(&quot;histogram&quot;===c.type&amp;&amp;l==={v:&quot;y&quot;,h:&quot;x&quot;}[c.orientation||&quot;v&quot;])return void(t.type=&quot;linear&quot;);var u=l+&quot;calendar&quot;,f=c[u],h={noMultiCategory:!n(c,&quot;cartesian&quot;)||n(c,&quot;noMultiCategory&quot;)};&quot;box&quot;===c.type&amp;&amp;c._hasPreCompStats&amp;&amp;l==={h:&quot;x&quot;,v:&quot;y&quot;}[c.orientation||&quot;v&quot;]&amp;&amp;(h.noMultiCategory=!0);if(h.autotypenumbers=t.autotypenumbers,o(c,l)){var p=a(c),d=[];for(r=0;r&lt;e.length;r++){var g=e[r];n(g,&quot;box-violin&quot;)&amp;&amp;(g[l+&quot;axis&quot;]||l)===s&amp;&amp;(void 0!==g[p]?d.push(g[p][0]):void 0!==g.name?d.push(g.name):d.push(&quot;text&quot;),g[u]!==f&amp;&amp;(f=void 0))}t.type=i(d,f,h)}else if(&quot;splom&quot;===c.type){var m=c.dimensions[c._axesDim[s]];m.visible&amp;&amp;(t.type=i(m.values,f,h))}else t.type=i(c[l]||[c[l+&quot;0&quot;]],f,h)}(e,s.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type)}},{&quot;../../registry&quot;:931,&quot;./axis_autotype&quot;:855}],881:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;);function a(t,e,r){var n,a,o,s=!1;if(&quot;data&quot;===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(&quot;layout&quot;!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&amp;&amp;o[e.prop]!==a&amp;&amp;(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(&quot;string&quot;==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,(function(t,e,n){r.push({type:&quot;layout&quot;,prop:t,value:n})}),&quot;&quot;,0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},&quot;string&quot;==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&amp;&amp;(r=a)}return void 0===r&amp;&amp;(r=null),l(o,(function(e,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,t.data.length);r&amp;&amp;(l=Math.min(l,r.length)),a=[];for(var c=0;c&lt;l;c++)a[c]=r?r[c]:c}else o=i,a=r?r.slice():null;if(null===a)Array.isArray(o)&amp;&amp;(o=o[0]);else if(Array.isArray(a)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f&lt;a.length;f++)o[f]=u}o.length=Math.min(a.length,o.length)}s.push({type:&quot;data&quot;,prop:e,traces:a,value:o})}),&quot;&quot;,0),s}function l(t,e,r,n){Object.keys(t).forEach((function(a){var o=t[a];if(&quot;_&quot;!==a[0]){var s=r+(n&gt;0?&quot;.&quot;:&quot;&quot;)+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&amp;&amp;e._commandObserver&amp;&amp;(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&amp;&amp;e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&amp;&amp;o&amp;&amp;void 0!==s.lookupTable[e.value]&amp;&amp;(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[&quot;plotly_relayout&quot;,&quot;plotly_redraw&quot;,&quot;plotly_restyle&quot;,&quot;plotly_update&quot;,&quot;plotly_animatingframe&quot;,&quot;plotly_afterplot&quot;],f=0;f&lt;u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e&lt;u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(&quot;Unable to automatically bind plot updates to API command&quot;),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&amp;&amp;(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i&lt;o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h&lt;a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&amp;&amp;a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&amp;&amp;(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(&quot;skip&quot;===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s&lt;r.length;s++)o.push(r[s]);return a.apply(null,o).catch((function(t){return i.warn(&quot;API call to Plotly.&quot;+e+&quot; rejected.&quot;,t),Promise.reject(t)}))},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case&quot;restyle&quot;:n=s(t,r);break;case&quot;relayout&quot;:n=o(t,r);break;case&quot;update&quot;:n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case&quot;animate&quot;:n=function(t,e){return Array.isArray(e[0])&amp;&amp;1===e[0].length&amp;&amp;-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e[0][0])?[{type:&quot;layout&quot;,prop:&quot;_currentFrame&quot;,value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{&quot;../lib&quot;:803,&quot;../registry&quot;:931}],882:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/extend&quot;).extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:&quot;info_array&quot;,editType:(t=t||{}).editType,items:[{valType:&quot;number&quot;,min:0,max:1,editType:t.editType},{valType:&quot;number&quot;,min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&amp;&amp;t.name,t.trace,e.description&amp;&amp;e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType},i.column={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&amp;&amp;n.x||[0,1],a=n&amp;&amp;n.y||[0,1],o=e.grid;if(o){var s=r(&quot;domain.column&quot;);void 0!==s&amp;&amp;(s&lt;o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(&quot;domain.row&quot;);void 0!==l&amp;&amp;(l&lt;o.rows?a=o._domains.y[l]:delete t.domain.row)}var c=r(&quot;domain.x&quot;,i),u=r(&quot;domain.y&quot;,a);c[0]&lt;c[1]||(t.domain.x=i.slice()),u[0]&lt;u[1]||(t.domain.y=a.slice())}},{&quot;../lib/extend&quot;:793}],883:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&amp;&amp;(r=e);var n={family:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:e},size:{valType:&quot;number&quot;,min:1,editType:e},color:{valType:&quot;color&quot;,editType:r},editType:e};return t.arrayOk&amp;&amp;(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],884:[function(t,e,r){&quot;use strict&quot;;e.exports={_isLinkedToArray:&quot;frames_entry&quot;,group:{valType:&quot;string&quot;},name:{valType:&quot;string&quot;},traces:{valType:&quot;any&quot;},baseframe:{valType:&quot;string&quot;},data:{valType:&quot;any&quot;},layout:{valType:&quot;any&quot;}}},{}],885:[function(t,e,r){&quot;use strict&quot;;r.projNames={airy:&quot;airy&quot;,aitoff:&quot;aitoff&quot;,&quot;albers usa&quot;:&quot;albersUsa&quot;,albers:&quot;albers&quot;,august:&quot;august&quot;,&quot;azimuthal equal area&quot;:&quot;azimuthalEqualArea&quot;,&quot;azimuthal equidistant&quot;:&quot;azimuthalEquidistant&quot;,baker:&quot;baker&quot;,bertin1953:&quot;bertin1953&quot;,boggs:&quot;boggs&quot;,bonne:&quot;bonne&quot;,bottomley:&quot;bottomley&quot;,bromley:&quot;bromley&quot;,collignon:&quot;collignon&quot;,&quot;conic conformal&quot;:&quot;conicConformal&quot;,&quot;conic equal area&quot;:&quot;conicEqualArea&quot;,&quot;conic equidistant&quot;:&quot;conicEquidistant&quot;,craig:&quot;craig&quot;,craster:&quot;craster&quot;,&quot;cylindrical equal area&quot;:&quot;cylindricalEqualArea&quot;,&quot;cylindrical stereographic&quot;:&quot;cylindricalStereographic&quot;,eckert1:&quot;eckert1&quot;,eckert2:&quot;eckert2&quot;,eckert3:&quot;eckert3&quot;,eckert4:&quot;eckert4&quot;,eckert5:&quot;eckert5&quot;,eckert6:&quot;eckert6&quot;,eisenlohr:&quot;eisenlohr&quot;,equirectangular:&quot;equirectangular&quot;,fahey:&quot;fahey&quot;,&quot;foucaut sinusoidal&quot;:&quot;foucautSinusoidal&quot;,foucaut:&quot;foucaut&quot;,ginzburg4:&quot;ginzburg4&quot;,ginzburg5:&quot;ginzburg5&quot;,ginzburg6:&quot;ginzburg6&quot;,ginzburg8:&quot;ginzburg8&quot;,ginzburg9:&quot;ginzburg9&quot;,gnomonic:&quot;gnomonic&quot;,&quot;gringorten quincuncial&quot;:&quot;gringortenQuincuncial&quot;,gringorten:&quot;gringorten&quot;,guyou:&quot;guyou&quot;,hammer:&quot;hammer&quot;,hill:&quot;hill&quot;,homolosine:&quot;homolosine&quot;,hufnagel:&quot;hufnagel&quot;,hyperelliptical:&quot;hyperelliptical&quot;,kavrayskiy7:&quot;kavrayskiy7&quot;,lagrange:&quot;lagrange&quot;,larrivee:&quot;larrivee&quot;,laskowski:&quot;laskowski&quot;,loximuthal:&quot;loximuthal&quot;,mercator:&quot;mercator&quot;,miller:&quot;miller&quot;,mollweide:&quot;mollweide&quot;,&quot;mt flat polar parabolic&quot;:&quot;mtFlatPolarParabolic&quot;,&quot;mt flat polar quartic&quot;:&quot;mtFlatPolarQuartic&quot;,&quot;mt flat polar sinusoidal&quot;:&quot;mtFlatPolarSinusoidal&quot;,&quot;natural earth&quot;:&quot;naturalEarth&quot;,&quot;natural earth1&quot;:&quot;naturalEarth1&quot;,&quot;natural earth2&quot;:&quot;naturalEarth2&quot;,&quot;nell hammer&quot;:&quot;nellHammer&quot;,nicolosi:&quot;nicolosi&quot;,orthographic:&quot;orthographic&quot;,patterson:&quot;patterson&quot;,&quot;peirce quincuncial&quot;:&quot;peirceQuincuncial&quot;,polyconic:&quot;polyconic&quot;,&quot;rectangular polyconic&quot;:&quot;rectangularPolyconic&quot;,robinson:&quot;robinson&quot;,satellite:&quot;satellite&quot;,&quot;sinu mollweide&quot;:&quot;sinuMollweide&quot;,sinusoidal:&quot;sinusoidal&quot;,stereographic:&quot;stereographic&quot;,times:&quot;times&quot;,&quot;transverse mercator&quot;:&quot;transverseMercator&quot;,&quot;van der grinten&quot;:&quot;vanDerGrinten&quot;,&quot;van der grinten2&quot;:&quot;vanDerGrinten2&quot;,&quot;van der grinten3&quot;:&quot;vanDerGrinten3&quot;,&quot;van der grinten4&quot;:&quot;vanDerGrinten4&quot;,wagner4:&quot;wagner4&quot;,wagner6:&quot;wagner6&quot;,wiechel:&quot;wiechel&quot;,&quot;winkel tripel&quot;:&quot;winkel3&quot;,winkel3:&quot;winkel3&quot;},r.axesNames=[&quot;lonaxis&quot;,&quot;lataxis&quot;],r.lonaxisSpan={orthographic:180,&quot;azimuthal equal area&quot;:360,&quot;azimuthal equidistant&quot;:360,&quot;conic conformal&quot;:180,gnomonic:160,stereographic:180,&quot;transverse mercator&quot;:180,&quot;*&quot;:360},r.lataxisSpan={&quot;conic conformal&quot;:150,stereographic:179.5,&quot;*&quot;:180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:&quot;equirectangular&quot;,projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:&quot;albers usa&quot;},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:&quot;conic conformal&quot;,projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:&quot;mercator&quot;,projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:&quot;mercator&quot;,projRotate:[0,0,0]},&quot;north america&quot;:{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:&quot;conic conformal&quot;,projRotate:[-100,0,0],projParallels:[29.5,45.5]},&quot;south america&quot;:{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:&quot;mercator&quot;,projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=&quot;#F0DC82&quot;,r.waterColor=&quot;#3399FF&quot;,r.locationmodeToLayer={&quot;ISO-3&quot;:&quot;countries&quot;,&quot;USA-states&quot;:&quot;subunits&quot;,&quot;country names&quot;:&quot;countries&quot;},r.sphereSVG={type:&quot;Sphere&quot;},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;lakes&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;rivers&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;frontplot&quot;],r.layersForChoropleth=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;rivers&quot;,&quot;lakes&quot;,&quot;frontplot&quot;],r.layerNameToAdjective={ocean:&quot;ocean&quot;,land:&quot;land&quot;,lakes:&quot;lake&quot;,subunits:&quot;subunit&quot;,countries:&quot;country&quot;,coastlines:&quot;coastline&quot;,rivers:&quot;river&quot;,frame:&quot;frame&quot;}},{}],886:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-geo&quot;),a=i.geoPath,o=i.geoDistance,s=t(&quot;d3-geo-projection&quot;),l=t(&quot;../../registry&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;../../components/fx&quot;),d=t(&quot;../plots&quot;),g=t(&quot;../cartesian/axes&quot;),m=t(&quot;../cartesian/autorange&quot;).getAutoRange,v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../cartesian/select&quot;).prepSelect,x=t(&quot;../cartesian/select&quot;).clearSelect,b=t(&quot;../cartesian/select&quot;).selectOnClick,_=t(&quot;./zoom&quot;),w=t(&quot;./constants&quot;),T=t(&quot;../../lib/geo_location_utils&quot;),k=t(&quot;../../lib/topojson_utils&quot;),A=t(&quot;topojson-client&quot;).feature;function M(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var S=M.prototype;function E(t,e){var r=w.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n&gt;0&amp;&amp;i&lt;0&amp;&amp;(i+=360);var s=(i-n)/4;return{type:&quot;Polygon&quot;,coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new M(t)},S.plot=function(t,e,r){var n=this,i=e[this.id],a=[],o=!1;for(var s in w.layerNameToAdjective)if(&quot;frame&quot;!==s&amp;&amp;i[&quot;show&quot;+s]){o=!0;break}for(var l=0;l&lt;t.length;l++)if(t[0][0].trace.locationmode){o=!0;break}if(o){var c=k.getTopojsonName(i);null!==n.topojson&amp;&amp;c===n.topojsonName||(n.topojsonName=c,void 0===PlotlyGeoAssets.topojson[n.topojsonName]&amp;&amp;a.push(n.fetchTopojson()))}a=a.concat(T.fetchTraceGeoData(t)),r.push(new Promise((function(r,i){Promise.all(a).then((function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e),r()})).catch(i)})))},S.fetchTopojson=function(){var t=this,e=k.getTopojsonPath(t.topojsonURL,t.topojsonName);return new Promise((function(r,i){n.json(e,(function(n,a){if(n)return 404===n.status?i(new Error([&quot;plotly.js could not find topojson file at&quot;,e,&quot;.&quot;,&quot;Make sure the *topojsonURL* plot config option&quot;,&quot;is set properly.&quot;].join(&quot; &quot;))):i(new Error([&quot;unexpected error while fetching topojson file at&quot;,e].join(&quot; &quot;)));PlotlyGeoAssets.topojson[t.topojsonName]=a,r()}))}))},S.update=function(t,e){var r=e[this.id];this.hasChoropleth=!1;for(var n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;&quot;choropleth&quot;===a.type&amp;&amp;(this.hasChoropleth=!0),!0===a.visible&amp;&amp;a._length&gt;0&amp;&amp;a._module.calcGeoJSON(i,e)}if(!this.updateProjection(t,e)){this.viewInitial&amp;&amp;this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),d.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var o=this.layers.frontplot.select(&quot;.scatterlayer&quot;);this.dataPoints.point=o.selectAll(&quot;.point&quot;),this.dataPoints.text=o.selectAll(&quot;text&quot;),this.dataPaths.line=o.selectAll(&quot;.js-line&quot;);var s=this.layers.backplot.select(&quot;.choroplethlayer&quot;);this.dataPaths.choropleth=s.selectAll(&quot;path&quot;),this.render()}},S.updateProjection=function(t,e){var r=this.graphDiv,n=e[this.id],l=e._size,u=n.domain,f=n.projection,h=n.lonaxis,p=n.lataxis,d=h._ax,g=p._ax,v=this.projection=function(t){var e=t.projection,r=e.type,n=w.projNames[r];n=&quot;geo&quot;+c.titleCase(n);for(var l=(i[n]||s[n])(),u=t._isSatellite?180*Math.acos(1/e.distance)/Math.PI:t._isClipped?w.lonaxisSpan[r]/2:null,f=[&quot;center&quot;,&quot;rotate&quot;,&quot;parallels&quot;,&quot;clipExtent&quot;],h=function(t){return t?l:[]},p=0;p&lt;f.length;p++){var d=f[p];&quot;function&quot;!=typeof l[d]&amp;&amp;(l[d]=h)}l.isLonLatOverEdges=function(t){if(null===l(t))return!0;if(u){var e=l.rotate();return o(t,[-e[0],-e[1]])&gt;u*Math.PI/180}return!1},l.getPath=function(){return a().projection(l)},l.getBounds=function(t){return l.getPath().bounds(t)},l.precision(w.precision),t._isSatellite&amp;&amp;l.tilt(e.tilt).distance(e.distance);u&amp;&amp;l.clipAngle(u-w.clipPad);return l}(n),y=[[l.l+l.w*u.x[0],l.t+l.h*(1-u.y[1])],[l.l+l.w*u.x[1],l.t+l.h*(1-u.y[0])]],x=n.center||{},b=f.rotation||{},_=h.range||[],T=p.range||[];if(n.fitbounds){d._length=y[1][0]-y[0][0],g._length=y[1][1]-y[0][1],d.range=m(r,d),g.range=m(r,g);var k=(d.range[0]+d.range[1])/2,A=(g.range[0]+g.range[1])/2;if(n._isScoped)x={lon:k,lat:A};else if(n._isClipped){x={lon:k,lat:A},b={lon:k,lat:A,roll:b.roll};var M=f.type,S=w.lonaxisSpan[M]/2||180,L=w.lataxisSpan[M]/2||90;_=[k-S,k+S],T=[A-L,A+L]}else x={lon:k,lat:A},b={lon:k,lat:b.lat,roll:b.roll}}v.center([x.lon-b.lon,x.lat-b.lat]).rotate([-b.lon,-b.lat,b.roll]).parallels(f.parallels);var C=E(_,T);v.fitExtent(y,C);var P=this.bounds=v.getBounds(C),I=this.fitScale=v.scale(),O=v.translate();if(n.fitbounds){var z=v.getBounds(E(d.range,g.range)),D=Math.min((P[1][0]-P[0][0])/(z[1][0]-z[0][0]),(P[1][1]-P[0][1])/(z[1][1]-z[0][1]));isFinite(D)?v.scale(D*I):c.warn(&quot;Something went wrong during&quot;+this.id+&quot;fitbounds computations.&quot;)}else v.scale(f.scale*I);var R=this.midPt=[(P[0][0]+P[1][0])/2,(P[0][1]+P[1][1])/2];if(v.translate([O[0]+(R[0]-O[0]),O[1]+(R[1]-O[1])]).clipExtent(P),n._isAlbersUsa){var F=v([x.lon,x.lat]),B=v.translate();v.translate([B[0]-(F[0]-B[0]),B[1]-(F[1]-B[1])])}},S.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function s(t){return&quot;lonaxis&quot;===t||&quot;lataxis&quot;===t}function l(t){return Boolean(w.lineLayers[t])}function c(t){return Boolean(w.fillLayers[t])}var u=(this.hasChoropleth?w.layersForChoropleth:w.layers).filter((function(t){return l(t)||c(t)?e[&quot;show&quot;+t]:!s(t)||e[t].showgrid})),p=r.framework.selectAll(&quot;.layer&quot;).data(u,String);p.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),p.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;layer &quot;+t})).each((function(t){var e=a[t]=n.select(this);&quot;bg&quot;===t?r.bgRect=e.append(&quot;rect&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;):s(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;):&quot;backplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;choroplethlayer&quot;,!0):&quot;frontplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):l(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;stroke-miterlimit&quot;,2):c(t)&amp;&amp;(o[t]=e.append(&quot;path&quot;).style(&quot;stroke&quot;,&quot;none&quot;))})),p.order(),p.each((function(r){var n=o[r],a=w.layerNameToAdjective[r];&quot;frame&quot;===r?n.datum(w.sphereSVG):l(r)||c(r)?n.datum(A(i,i.objects[r])):s(r)&amp;&amp;n.datum(function(t,e,r){var n,i,a,o=e[t],s=w.scopeDefaults[e.scope];&quot;lonaxis&quot;===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):&quot;lataxis&quot;===t&amp;&amp;(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:&quot;linear&quot;,range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};g.setConvert(l,r);var c=g.calcTicks(l);e.isScoped||&quot;lonaxis&quot;!==t||c.pop();for(var u=c.length,f=new Array(u),h=0;h&lt;u;h++)for(var p=c[h].x,d=f[h]=[],m=i[0];m&lt;i[1]+2.5;m+=2.5)d.push(a(p,m));return{type:&quot;MultiLineString&quot;,coordinates:f}}(r,e,t)).call(f.stroke,e[r].gridcolor).call(h.dashLine,&quot;&quot;,e[r].gridwidth),l(r)?n.call(f.stroke,e[a+&quot;color&quot;]).call(h.dashLine,&quot;&quot;,e[a+&quot;width&quot;]):c(r)&amp;&amp;n.call(f.fill,e[a+&quot;color&quot;])}))},S.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;h.setRect(this.clipRect,i,a,o,s),this.bgRect.call(h.setRect,i,a,o,s).call(f.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s},S.updateFx=function(t,e){var r=this,i=r.graphDiv,a=r.bgRect,o=t.dragmode,s=t.clickmode;if(!r.isStatic){var u;&quot;select&quot;===o?u=function(t,e){(t.range={})[r.id]=[h([e.xmin,e.ymin]),h([e.xmax,e.ymax])]}:&quot;lasso&quot;===o&amp;&amp;(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(h)});var f={element:r.bgRect.node(),gd:i,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(t){2===t&amp;&amp;x(i)}};&quot;pan&quot;===o?(a.node().onmousedown=null,a.call(_(r,e)),a.on(&quot;dblclick.zoom&quot;,(function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+&quot;.&quot;+n]=t[n];l.call(&quot;_guiRelayout&quot;,i,e),i.emit(&quot;plotly_doubleclick&quot;,null)})),i._context._scrollZoom.geo||a.on(&quot;wheel.zoom&quot;,null)):&quot;select&quot;!==o&amp;&amp;&quot;lasso&quot;!==o||(a.on(&quot;.zoom&quot;,null),f.prepFn=function(t,e,r){y(t,e,r,f,o)},v.init(f)),a.on(&quot;mousemove&quot;,(function(){var t=r.projection.invert(c.getPositionFromD3Event());if(!t)return v.unhover(i,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},p.hover(i,n.event,r.id)})),a.on(&quot;mouseout&quot;,(function(){i._dragging||v.unhover(i,n.event)})),a.on(&quot;click&quot;,(function(){&quot;select&quot;!==o&amp;&amp;&quot;lasso&quot;!==o&amp;&amp;(s.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;b(n.event,i,[r.xaxis],[r.yaxis],r.id,f),s.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;p.click(i,n.event))}))}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},S.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i=&quot;clip&quot;+r._uid+t.id;t.clipDef=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,i),t.clipRect=t.clipDef.append(&quot;rect&quot;),t.framework=n.select(t.container).append(&quot;g&quot;).attr(&quot;class&quot;,&quot;geo &quot;+t.id).call(h.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:&quot;x&quot;,c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:&quot;y&quot;,c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},g.setConvert(t.mockAxis,r)},S.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,&quot;projection.scale&quot;:n.scale},e=t._isScoped?{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat}:t._isClipped?{&quot;projection.rotation.lon&quot;:i.lon,&quot;projection.rotation.lat&quot;:i.lat}:{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat,&quot;projection.rotation.lon&quot;:i.lon},c.extendFlat(this.viewInitial,e)},S.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?u(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?&quot;none&quot;:null}for(t in this.basePaths)this.basePaths[t].attr(&quot;d&quot;,r);for(t in this.dataPaths)this.dataPaths[t].attr(&quot;d&quot;,(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr(&quot;display&quot;,i).attr(&quot;transform&quot;,n)}},{&quot;../../components/color&quot;:666,&quot;../../components/dragelement&quot;:685,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../lib/geo_location_utils&quot;:796,&quot;../../lib/topojson_utils&quot;:832,&quot;../../registry&quot;:931,&quot;../cartesian/autorange&quot;:853,&quot;../cartesian/axes&quot;:854,&quot;../cartesian/select&quot;:874,&quot;../plots&quot;:917,&quot;./constants&quot;:885,&quot;./zoom&quot;:890,&quot;@plotly/d3&quot;:58,&quot;d3-geo&quot;:169,&quot;d3-geo-projection&quot;:168,&quot;topojson-client&quot;:601}],887:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./geo&quot;),o=&quot;geo&quot;,s=i(o),l={};l.geo={valType:&quot;subplotid&quot;,dflt:o,editType:&quot;calc&quot;},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots.geo,s=0;s&lt;i.length;s++){var l=i[s],c=n(r,o,l),u=e[l]._subplot;u||(u=a({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},updateFx:function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n&lt;r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}},clean:function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.framework.remove(),s.clipDef.remove())}}}},{&quot;../../lib&quot;:803,&quot;../../plots/get_data&quot;:891,&quot;./geo&quot;:886,&quot;./layout_attributes&quot;:888,&quot;./layout_defaults&quot;:889}],888:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;./constants&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/sort_object_keys&quot;),l={range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},showgrid:{valType:&quot;boolean&quot;,dflt:!1},tick0:{valType:&quot;number&quot;,dflt:0},dtick:{valType:&quot;number&quot;},gridcolor:{valType:&quot;color&quot;,dflt:n.lightLine},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1}};(e.exports=o({domain:i({name:&quot;geo&quot;},{}),fitbounds:{valType:&quot;enumerated&quot;,values:[!1,&quot;locations&quot;,&quot;geojson&quot;],dflt:!1,editType:&quot;plot&quot;},resolution:{valType:&quot;enumerated&quot;,values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:&quot;enumerated&quot;,values:s(a.scopeDefaults),dflt:&quot;world&quot;},projection:{type:{valType:&quot;enumerated&quot;,values:s(a.projNames)},rotation:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;},roll:{valType:&quot;number&quot;}},tilt:{valType:&quot;number&quot;,dflt:0},distance:{valType:&quot;number&quot;,min:1.001,dflt:2},parallels:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},scale:{valType:&quot;number&quot;,min:0,dflt:1}},center:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;}},visible:{valType:&quot;boolean&quot;,dflt:!0},showcoastlines:{valType:&quot;boolean&quot;},coastlinecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},coastlinewidth:{valType:&quot;number&quot;,min:0,dflt:1},showland:{valType:&quot;boolean&quot;,dflt:!1},landcolor:{valType:&quot;color&quot;,dflt:a.landColor},showocean:{valType:&quot;boolean&quot;,dflt:!1},oceancolor:{valType:&quot;color&quot;,dflt:a.waterColor},showlakes:{valType:&quot;boolean&quot;,dflt:!1},lakecolor:{valType:&quot;color&quot;,dflt:a.waterColor},showrivers:{valType:&quot;boolean&quot;,dflt:!1},rivercolor:{valType:&quot;color&quot;,dflt:a.waterColor},riverwidth:{valType:&quot;number&quot;,min:0,dflt:1},showcountries:{valType:&quot;boolean&quot;},countrycolor:{valType:&quot;color&quot;,dflt:n.defaultLine},countrywidth:{valType:&quot;number&quot;,min:0,dflt:1},showsubunits:{valType:&quot;boolean&quot;},subunitcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},subunitwidth:{valType:&quot;number&quot;,min:0,dflt:1},showframe:{valType:&quot;boolean&quot;},framecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},framewidth:{valType:&quot;number&quot;,min:0,dflt:1},bgcolor:{valType:&quot;color&quot;,dflt:n.background},lonaxis:l,lataxis:l},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib/sort_object_keys&quot;:826,&quot;../../plot_api/edit_types&quot;:836,&quot;../domain&quot;:882,&quot;./constants&quot;:885}],889:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../get_data&quot;).getSubplotData,o=t(&quot;./constants&quot;),s=t(&quot;./layout_attributes&quot;),l=o.axesNames;function c(t,e,r,i){var s=a(i.fullData,&quot;geo&quot;,i.id).map((function(t){return t._expandedIndex})),c=r(&quot;resolution&quot;),u=r(&quot;scope&quot;),f=o.scopeDefaults[u],h=r(&quot;projection.type&quot;,f.projType),p=e._isAlbersUsa=&quot;albers usa&quot;===h;p&amp;&amp;(u=e.scope=&quot;usa&quot;);var d=e._isScoped=&quot;world&quot;!==u,g=e._isSatellite=&quot;satellite&quot;===h,m=e._isConic=-1!==h.indexOf(&quot;conic&quot;)||&quot;albers&quot;===h,v=e._isClipped=!!o.lonaxisSpan[h];if(!1===t.visible){var y=n.extendDeep({},e._template);y.showcoastlines=!1,y.showcountries=!1,y.showframe=!1,y.showlakes=!1,y.showland=!1,y.showocean=!1,y.showrivers=!1,y.showsubunits=!1,y.lonaxis&amp;&amp;(y.lonaxis.showgrid=!1),y.lataxis&amp;&amp;(y.lataxis.showgrid=!1),e._template=y}for(var x=r(&quot;visible&quot;),b=0;b&lt;l.length;b++){var _,w=l[b],T=[30,10][b];if(d)_=f[w+&quot;Range&quot;];else{var k=o[w+&quot;Span&quot;],A=(k[h]||k[&quot;*&quot;])/2,M=r(&quot;projection.rotation.&quot;+w.substr(0,3),f.projRotate[b]);_=[M-A,M+A]}var S=r(w+&quot;.range&quot;,_);r(w+&quot;.tick0&quot;),r(w+&quot;.dtick&quot;,T),r(w+&quot;.showgrid&quot;,!!x&amp;&amp;void 0)&amp;&amp;(r(w+&quot;.gridcolor&quot;),r(w+&quot;.gridwidth&quot;)),e[w]._ax={type:&quot;linear&quot;,_id:w.slice(0,3),_traceIndices:s,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:S.slice(),_m:1,_input:{}}}var E=e.lonaxis.range,L=e.lataxis.range,C=E[0],P=E[1];C&gt;0&amp;&amp;P&lt;0&amp;&amp;(P+=360);var I,O,z,D=(C+P)/2;if(!p){var R=d?f.projRotate:[D,0,0];I=r(&quot;projection.rotation.lon&quot;,R[0]),r(&quot;projection.rotation.lat&quot;,R[1]),r(&quot;projection.rotation.roll&quot;,R[2]),r(&quot;showcoastlines&quot;,!d&amp;&amp;x)&amp;&amp;(r(&quot;coastlinecolor&quot;),r(&quot;coastlinewidth&quot;)),r(&quot;showocean&quot;,!!x&amp;&amp;void 0)&amp;&amp;r(&quot;oceancolor&quot;)}(p?(O=-96.6,z=38.7):(O=d?D:I,z=(L[0]+L[1])/2),r(&quot;center.lon&quot;,O),r(&quot;center.lat&quot;,z),g&amp;&amp;(r(&quot;projection.tilt&quot;),r(&quot;projection.distance&quot;)),m)&amp;&amp;r(&quot;projection.parallels&quot;,f.projParallels||[0,60]);r(&quot;projection.scale&quot;),r(&quot;showland&quot;,!!x&amp;&amp;void 0)&amp;&amp;r(&quot;landcolor&quot;),r(&quot;showlakes&quot;,!!x&amp;&amp;void 0)&amp;&amp;r(&quot;lakecolor&quot;),r(&quot;showrivers&quot;,!!x&amp;&amp;void 0)&amp;&amp;(r(&quot;rivercolor&quot;),r(&quot;riverwidth&quot;)),r(&quot;showcountries&quot;,d&amp;&amp;&quot;usa&quot;!==u&amp;&amp;x)&amp;&amp;(r(&quot;countrycolor&quot;),r(&quot;countrywidth&quot;)),(&quot;usa&quot;===u||&quot;north america&quot;===u&amp;&amp;50===c)&amp;&amp;(r(&quot;showsubunits&quot;,x),r(&quot;subunitcolor&quot;),r(&quot;subunitwidth&quot;)),d||r(&quot;showframe&quot;,x)&amp;&amp;(r(&quot;framecolor&quot;),r(&quot;framewidth&quot;)),r(&quot;bgcolor&quot;),r(&quot;fitbounds&quot;)&amp;&amp;(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):v?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:&quot;geo&quot;,attributes:s,handleDefaults:c,fullData:r,partition:&quot;y&quot;})}},{&quot;../../lib&quot;:803,&quot;../get_data&quot;:891,&quot;../subplot_defaults&quot;:925,&quot;./constants&quot;:885,&quot;./layout_attributes&quot;:888}],890:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=Math.PI/180,s=180/Math.PI,l={cursor:&quot;pointer&quot;},c={cursor:&quot;auto&quot;};function u(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function f(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},h={};function p(t,e){f[n+&quot;.&quot;+t]=i.nestedProperty(l,t).get(),a.call(&quot;_storeDirectGUIEdit&quot;,s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&amp;&amp;(r.set(e),i.nestedProperty(l,t).set(e),h[n+&quot;.&quot;+t]=e)}r(p),p(&quot;projection.scale&quot;,e.scale()/t.fitScale),p(&quot;fitbounds&quot;,!1),o.emit(&quot;plotly_relayout&quot;,h)}function h(t,e){var r=u(0,e);function i(r){var n=e.invert(t.midPt);r(&quot;center.lon&quot;,n[0]),r(&quot;center.lat&quot;,n[1])}return r.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l)})).on(&quot;zoom&quot;,(function(){e.scale(n.event.scale).translate(n.event.translate),t.render();var r=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:r[0],&quot;geo.center.lat&quot;:r[1]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),f(t,e,i)})),r}function p(t,e){var r,i,a,o,s,h,p,d,g,m=u(0,e);function v(t){return e.invert(t)}function y(r){var n=e.rotate(),i=e.invert(t.midPt);r(&quot;projection.rotation.lon&quot;,-n[0]),r(&quot;center.lon&quot;,i[0]),r(&quot;center.lat&quot;,i[1])}return m.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=v(r)})).on(&quot;zoom&quot;,(function(){if(h=n.mouse(this),function(t){var r=v(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])&gt;2||Math.abs(n[1]-t[1])&gt;2}(r))return m.scale(e.scale()),void m.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?v(h)&amp;&amp;(d=v(h),p=[o[0]+(d[0]-s[0]),i[1],i[2]],e.rotate(p),o=p):s=v(r=h),g=!0,t.render();var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:c[0],&quot;geo.center.lat&quot;:c[1],&quot;geo.projection.rotation.lon&quot;:-l[0]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),g&amp;&amp;f(t,e,y)})),m}function d(t,e){var r,i={r:e.rotate(),k:e.scale()},a=u(0,e),o=function(t){var e=0,r=arguments.length,i=[];for(;++e&lt;r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(a,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;),s=0,h=a.on;function p(t){s++||t({type:&quot;zoomstart&quot;})}function d(t){t({type:&quot;zoom&quot;})}function b(t){--s||t({type:&quot;zoomend&quot;})}function _(t){var r=e.rotate();t(&quot;projection.rotation.lon&quot;,-r[0]),t(&quot;projection.rotation.lat&quot;,-r[1])}return a.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l);var t=n.mouse(this),s=e.rotate(),c=s,u=e.translate(),f=m(s);r=g(e,t),h.call(a,&quot;zoom&quot;,(function(){var a=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(g(e,a)){e.rotate(s).translate(u);var l=g(e,a),h=y(r,l),p=T(v(f,h)),m=i.r=x(p,r,c);isFinite(m[0])&amp;&amp;isFinite(m[1])&amp;&amp;isFinite(m[2])||(m=c),e.rotate(m),c=m}}else r=g(e,t=a);d(o.of(this,arguments))})),p(o.of(this,arguments))})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),h.call(a,&quot;zoom&quot;,null),b(o.of(this,arguments)),f(t,e,_)})).on(&quot;zoom.redraw&quot;,(function(){t.render();var r=e.rotate();t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.projection.rotation.lon&quot;:-r[0],&quot;geo.projection.rotation.lat&quot;:-r[1]})})),n.rebind(a,o,&quot;on&quot;)}function g(t,e){var r=t.invert(e);return r&amp;&amp;isFinite(r[0])&amp;&amp;isFinite(r[1])&amp;&amp;function(t){var e=t[0]*o,r=t[1]*o,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function m(t){var e=.5*t[0]*o,r=.5*t[1]*o,n=.5*t[2]*o,i=Math.sin(e),a=Math.cos(e),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return[a*l*u+i*s*c,i*l*u-a*s*c,a*s*u+i*l*c,a*l*c-i*s*u]}function v(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],c=e[3];return[r*o-n*s-i*l-a*c,r*s+n*o+i*c-a*l,r*l-n*c+i*o+a*s,r*c+n*l-i*s+a*o]}function y(t,e){if(t&amp;&amp;e){var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(k(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,k(t,e)))),a=Math.sin(i)/n;return n&amp;&amp;[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function x(t,e,r){var n=w(e,2,t[0]);n=w(n,1,t[1]),n=w(n,0,t[2]-r[2]);var i,a,o=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,o)*s,d=Math.sqrt(o*o+l*l);Math.abs(f)&gt;d?(a=(f&gt;0?90:-90)-p,i=0):(a=Math.asin(f/d)*s-p,i=Math.sqrt(d*d-f*f));var g=180-a-2*p,m=(Math.atan2(h,u)-Math.atan2(c,i))*s,v=(Math.atan2(h,u)-Math.atan2(c,-i))*s;return b(r[0],r[1],a,m)&lt;=b(r[0],r[1],g,v)?[a,m,r[2]]:[g,v,r[2]]}function b(t,e,r,n){var i=_(r-t),a=_(n-e);return Math.sqrt(i*i+a*a)}function _(t){return(t%360+540)%360-180}function w(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function k(t,e){for(var r=0,n=0,i=t.length;n&lt;i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?h:e._isClipped?d:p)(t,r)}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;@plotly/d3&quot;:58}],891:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;./cartesian/constants&quot;).SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s&lt;t.length;s++){var l=t[s];l[0].trace[a]===r&amp;&amp;o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=&quot;string&quot;==typeof e?n.getModule(e).plot:&quot;function&quot;==typeof e?e:e.plot))return[i,t];for(var o=0;o&lt;t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(&quot;gl2d&quot;===e){var u=r.match(i);o=&quot;x&quot;+u[1],s=&quot;y&quot;+u[2]}for(var f=0;f&lt;t.length;f++)a=t[f],&quot;gl2d&quot;===e&amp;&amp;n.traceIs(a,&quot;gl2d&quot;)?a[l[0]]===o&amp;&amp;a[l[1]]===s&amp;&amp;c.push(a):a[l]===r&amp;&amp;c.push(a);return c}},{&quot;../registry&quot;:931,&quot;./cartesian/constants&quot;:861}],892:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-change&quot;),i=t(&quot;mouse-wheel&quot;),a=t(&quot;mouse-event-offset&quot;),o=t(&quot;../cartesian/constants&quot;),s=t(&quot;has-passive-events&quot;);function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,g=o.MINZOOM*r.pixelRatio;function m(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case&quot;zoom&quot;:if(e){var v=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=v,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=v,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&amp;&amp;c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)&lt;g,b=Math.abs(c.dragStart[1]-i)&lt;g;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i&lt;e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&amp;&amp;b)x&amp;&amp;(c.boxEnd[0]=c.boxStart[0]),b&amp;&amp;(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)&gt;Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s&gt;=0?1:-1),c.boxEnd[1]&lt;l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]&gt;l[3]&amp;&amp;(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a&gt;=0?1:-1),c.boxEnd[0]&lt;l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]&gt;l[2]&amp;&amp;(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&amp;&amp;(m(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&amp;&amp;(m(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&amp;&amp;(c.boxInited=!1);break;case&quot;pan&quot;:c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)&lt;d&amp;&amp;(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)&lt;d&amp;&amp;(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&amp;&amp;(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(&quot;touchstart&quot;,(function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchmove&quot;,(function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchend&quot;,(function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),c.wheelListener=i(e,(function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),!0),c}},{&quot;../cartesian/constants&quot;:861,&quot;has-passive-events&quot;:444,&quot;mouse-change&quot;:470,&quot;mouse-event-offset&quot;:471,&quot;mouse-wheel&quot;:473}],893:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../cartesian/axes&quot;),i=t(&quot;../../lib/str2rgbarray&quot;);function a(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[&quot;x&quot;,&quot;y&quot;],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=&quot;&quot;,this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=&quot;sans-serif&quot;,this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var o=a.prototype,s=[&quot;xaxis&quot;,&quot;yaxis&quot;];o.merge=function(t){var e,r,n,a,o,l,c,u,f,h,p;for(this.titleEnable=!1,this.backgroundColor=i(t.plot_bgcolor),h=0;h&lt;2;++h){var d=(e=s[h]).charAt(0);for(n=(r=t[this.scene[e]._name]).title.text===this.scene.fullLayout._dfltTitle[d]?&quot;&quot;:r.title.text,p=0;p&lt;=2;p+=2)this.labelEnable[h+p]=!1,this.labels[h+p]=n,this.labelColor[h+p]=i(r.title.font.color),this.labelFont[h+p]=r.title.font.family,this.labelSize[h+p]=r.title.font.size,this.labelPad[h+p]=this.getLabelPad(e,r),this.tickEnable[h+p]=!1,this.tickColor[h+p]=i((r.tickfont||{}).color),this.tickAngle[h+p]=&quot;auto&quot;===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[h+p]=this.getTickPad(r),this.tickMarkLength[h+p]=0,this.tickMarkWidth[h+p]=r.tickwidth||0,this.tickMarkColor[h+p]=i(r.tickcolor),this.borderLineEnable[h+p]=!1,this.borderLineColor[h+p]=i(r.linecolor),this.borderLineWidth[h+p]=r.linewidth||0;c=this.hasSharedAxis(r),o=this.hasAxisInDfltPos(e,r)&amp;&amp;!c,l=this.hasAxisInAltrPos(e,r)&amp;&amp;!c,a=r.mirror||!1,u=c?-1!==String(a).indexOf(&quot;all&quot;):!!a,f=c?&quot;allticks&quot;===a:-1!==String(a).indexOf(&quot;ticks&quot;),o?this.labelEnable[h]=!0:l&amp;&amp;(this.labelEnable[h+2]=!0),o?this.tickEnable[h]=r.showticklabels:l&amp;&amp;(this.tickEnable[h+2]=r.showticklabels),(o||u)&amp;&amp;(this.borderLineEnable[h]=r.showline),(l||u)&amp;&amp;(this.borderLineEnable[h+2]=r.showline),(o||f)&amp;&amp;(this.tickMarkLength[h]=this.getTickMarkLength(r)),(l||f)&amp;&amp;(this.tickMarkLength[h+2]=this.getTickMarkLength(r)),this.gridLineEnable[h]=r.showgrid,this.gridLineColor[h]=i(r.gridcolor),this.gridLineWidth[h]=r.gridwidth,this.zeroLineEnable[h]=r.zeroline,this.zeroLineColor[h]=i(r.zerolinecolor),this.zeroLineWidth[h]=r.zerolinewidth}},o.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},o.hasAxisInDfltPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;bottom&quot;===r:&quot;yaxis&quot;===t?&quot;left&quot;===r:void 0},o.hasAxisInAltrPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;top&quot;===r:&quot;yaxis&quot;===t?&quot;right&quot;===r:void 0},o.getLabelPad=function(t,e){var r=e.title.font.size,n=e.showticklabels;return&quot;xaxis&quot;===t?&quot;top&quot;===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:&quot;yaxis&quot;===t?&quot;right&quot;===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},o.getTickPad=function(t){return&quot;outside&quot;===t.ticks?10+t.ticklen:15},o.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return&quot;inside&quot;===t.ticks?-e:e},e.exports=function(t){return new a(t)}},{&quot;../../lib/str2rgbarray&quot;:828,&quot;../cartesian/axes&quot;:854}],894:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;./scene2d&quot;),a=t(&quot;../layout_attributes&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;../cartesian/constants&quot;),l=t(&quot;../cartesian&quot;),c=t(&quot;../../components/fx/layout_attributes&quot;),u=t(&quot;../get_data&quot;).getSubplotData;r.name=&quot;gl2d&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(&quot;../cartesian/attributes&quot;),r.supplyLayoutDefaults=function(t,e,r){e._has(&quot;cartesian&quot;)||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,&quot;plot&quot;,&quot;from-root&quot;),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a&lt;n.length;a++){var o=n[a],s=e._plots[o],l=u(r,&quot;gl2d&quot;,o),c=s._scene2d;void 0===c&amp;&amp;(c=new i({id:o,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a&lt;i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d){var c=u(t,&quot;gl2d&quot;,o);0===c.length&amp;&amp;(s._scene2d.destroy(),delete n._plots[o])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:a,x:0,y:0,width:&quot;100%&quot;,height:&quot;100%&quot;,preserveAspectRatio:&quot;none&quot;}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{&quot;../../components/fx/layout_attributes&quot;:707,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../plot_api/edit_types&quot;:836,&quot;../cartesian&quot;:868,&quot;../cartesian/attributes&quot;:852,&quot;../cartesian/constants&quot;:861,&quot;../get_data&quot;:891,&quot;../layout_attributes&quot;:908,&quot;./scene2d&quot;:895}],895:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;gl-plot2d&quot;),c=t(&quot;gl-spikes2d&quot;),u=t(&quot;gl-select-box&quot;),f=t(&quot;webgl-context&quot;),h=t(&quot;./convert&quot;),p=t(&quot;./camera&quot;),d=t(&quot;../../lib/show_no_webgl_msg&quot;),g=t(&quot;../cartesian/constraints&quot;),m=g.enforce,v=g.clean,y=t(&quot;../cartesian/autorange&quot;).doAutoRange,x=t(&quot;../../components/dragelement/helpers&quot;),b=x.drawMode,_=x.selectMode,w=[&quot;xaxis&quot;,&quot;yaxis&quot;],T=t(&quot;../cartesian/constants&quot;).SUBPLOT_PATTERN;function k(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=k;var A=k.prototype;A.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;Error creating static canvas/context for image server&quot;);this.canvas=n,this.gl=i}else{var t=this.container.querySelector(&quot;.gl-canvas-focus&quot;),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return d(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=&quot;100%&quot;,r.style.height=&quot;100%&quot;,r.style.position=&quot;absolute&quot;,r.style.top=&quot;0px&quot;,r.style.left=&quot;0px&quot;,r.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.updateSize(r);var a=this.svgContainer=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);a.style.position=&quot;absolute&quot;,a.style.top=a.style.left=&quot;0px&quot;,a.style.width=a.style.height=&quot;100%&quot;,a.style[&quot;z-index&quot;]=20,a.style[&quot;pointer-events&quot;]=&quot;none&quot;;var o=this.mouseContainer=document.createElement(&quot;div&quot;);o.style.position=&quot;absolute&quot;,o.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.pickCanvas=this.container.querySelector(&quot;.gl-canvas-pick&quot;);var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(&quot;mouseout&quot;,(function(){l.isMouseOver=!1,l.unhover()})),o.addEventListener(&quot;mouseover&quot;,(function(){l.isMouseOver=!0}))},A.toImage=function(t){t||(t=&quot;png&quot;),this.stopped=!0,this.staticPlot&amp;&amp;this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o&lt;s;++o,--s)for(var l=0;l&lt;r;++l)for(var c=0;c&lt;4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(&quot;canvas&quot;);f.width=r,f.height=i;var h,p=f.getContext(&quot;2d&quot;),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case&quot;jpeg&quot;:h=f.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:h=f.toDataURL(&quot;image/webp&quot;);break;default:h=f.toDataURL(&quot;image/png&quot;)}return this.staticPlot&amp;&amp;this.container.removeChild(n),h},A.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&amp;&amp;t.height===o||(t.width=a,t.height=o),t},A.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e&lt;2;++e)for(var r=0;r&lt;t[e].length;++r)t[e][r].text=t[e][r].text+&quot;&quot;;return t},A.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(T),r=&quot;xaxis&quot;+e[1],n=&quot;yaxis&quot;+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},A.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout,i={},o=i[e._name+&quot;.range&quot;]=e.range.slice(),s=i[r._name+&quot;.range&quot;]=r.range.slice();i[e._name+&quot;.autorange&quot;]=e.autorange,i[r._name+&quot;.autorange&quot;]=r.autorange,a.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i);var l=n[e._name];l.range=o,l.autorange=e.autorange;var c=n[r._name];c.range=s,c.autorange=r.autorange,i.lastInputTime=this.camera.lastInputTime,t.emit(&quot;plotly_relayout&quot;,i)},A.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r&lt;2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a&lt;n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&amp;&amp;(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},A.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r&lt;e.length;r++){var n=e[r];n.xref===this.xaxis._id&amp;&amp;n.yref===this.yaxis._id&amp;&amp;a.getComponentMethod(&quot;annotations&quot;,&quot;drawOne&quot;)(t,r)}},A.destroy=function(){if(this.glplot){var t=this.traces;t&amp;&amp;Object.keys(t).map((function(e){t[e].dispose(),delete t[e]})),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null}},A.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:r._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis,_size:r._size}};v(s,this.xaxis),v(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+&quot;px&quot;,this.mouseContainer.style.height=u.h*(h[1]-h[0])+&quot;px&quot;,this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+&quot;px&quot;,this.mouseContainer.style.top=u.t+(1-h[1])*u.h+&quot;px&quot;,c=0;c&lt;2;++c)(l=this[w[c]])._length=o.viewBox[c+2]-o.viewBox[c],y(this.graphDiv,l),l.setScale();m(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},A.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},A.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},A.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r&lt;a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n&lt;t.length;n++)if((i=t[n]).uid===o&amp;&amp;i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r&lt;t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort((function(t,e){return t._trace.index-e._trace.index}))},A.updateFx=function(t){_(t)||b(t)?(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;none&quot;):(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;auto&quot;),this.mouseContainer.style.cursor=&quot;pan&quot;===t?&quot;move&quot;:&quot;zoom&quot;===t?&quot;crosshair&quot;:null},A.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a&lt;this.fullData.length;a++)this.fullData[a].uid===n&amp;&amp;(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},A.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&amp;&amp;0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&amp;&amp;&quot;zoom&quot;===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u&lt;2;u++)e.boxStart[u]===e.boxEnd[u]&amp;&amp;(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&amp;&amp;this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&amp;&amp;a.object._trace.handlePick(a);if(d&amp;&amp;n&amp;&amp;this.emitPointAction(d,&quot;plotly_click&quot;),a&amp;&amp;&quot;skip&quot;!==a.object._trace.hoverinfo&amp;&amp;i.hovermode&amp;&amp;d&amp;&amp;(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var g=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),g.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,&quot;plotly_hover&quot;);var m=this.fullData[g.trace.index]||{},v=g.pointIndex,y=s.castHoverinfo(m,i,v);if(y&amp;&amp;&quot;all&quot;!==y){var x=y.split(&quot;+&quot;);-1===x.indexOf(&quot;x&quot;)&amp;&amp;(g.traceCoord[0]=void 0),-1===x.indexOf(&quot;y&quot;)&amp;&amp;(g.traceCoord[1]=void 0),-1===x.indexOf(&quot;z&quot;)&amp;&amp;(g.traceCoord[2]=void 0),-1===x.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===x.indexOf(&quot;name&quot;)&amp;&amp;(g.name=void 0)}s.loneHover({x:g.screenCoord[0],y:g.screenCoord[1],xLabel:this.hoverFormatter(&quot;xaxis&quot;,g.traceCoord[0]),yLabel:this.hoverFormatter(&quot;yaxis&quot;,g.traceCoord[1]),zLabel:g.traceCoord[2],text:g.textLabel,name:g.name,color:s.castHoverOption(m,v,&quot;bgcolor&quot;)||g.color,borderColor:s.castHoverOption(m,v,&quot;bordercolor&quot;),fontFamily:s.castHoverOption(m,v,&quot;font.family&quot;),fontSize:s.castHoverOption(m,v,&quot;font.size&quot;),fontColor:s.castHoverOption(m,v,&quot;font.color&quot;),nameLength:s.castHoverOption(m,v,&quot;namelength&quot;),textAlign:s.castHoverOption(m,v,&quot;align&quot;)},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},A.unhover=function(){this.lastPickResult&amp;&amp;(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(&quot;plotly_unhover&quot;),s.loneUnhover(this.svgContainer))},A.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),&quot;hover&quot;).text}}},{&quot;../../components/dragelement/helpers&quot;:684,&quot;../../components/fx&quot;:706,&quot;../../lib/show_no_webgl_msg&quot;:825,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;../cartesian/autorange&quot;:853,&quot;../cartesian/constants&quot;:861,&quot;../cartesian/constraints&quot;:862,&quot;./camera&quot;:892,&quot;./convert&quot;:893,&quot;gl-plot2d&quot;:322,&quot;gl-select-box&quot;:337,&quot;gl-spikes2d&quot;:346,&quot;webgl-context&quot;:629}],896:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../components/fx/layout_attributes&quot;),a=t(&quot;./scene&quot;),o=t(&quot;../get_data&quot;).getSubplotData,s=t(&quot;../../lib&quot;),l=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;gl3d&quot;,r.attr=&quot;scene&quot;,r.idRoot=&quot;scene&quot;,r.idRegex=r.attrRegex=s.counterRegex(&quot;scene&quot;),r.attributes=t(&quot;./layout/attributes&quot;),r.layoutAttributes=t(&quot;./layout/layout_attributes&quot;),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.supplyLayoutDefaults=t(&quot;./layout/defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i&lt;n.length;i++){var s=n[i],l=o(r,&quot;gl3d&quot;,s),c=e[s],u=c.camera,f=c._scene;f||(f=new a({id:s,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:u},e),c._scene=f),f.viewInitial||(f.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),f.plot(l,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._scene&amp;&amp;(n[o]._scene.destroy(),n._infolayer&amp;&amp;n._infolayer.selectAll(&quot;.annotation-&quot;+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i&lt;r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:&quot;none&quot;}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),&quot;scene&quot;+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{&quot;../../components/fx/layout_attributes&quot;:707,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;../../plot_api/edit_types&quot;:836,&quot;../get_data&quot;:891,&quot;./layout/attributes&quot;:897,&quot;./layout/defaults&quot;:901,&quot;./layout/layout_attributes&quot;:902,&quot;./scene&quot;:906}],897:[function(t,e,r){&quot;use strict&quot;;e.exports={scene:{valType:&quot;subplotid&quot;,dflt:&quot;scene&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],898:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../components/color&quot;),i=t(&quot;../../cartesian/layout_attributes&quot;),a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../plot_api/edit_types&quot;).overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:&quot;boolean&quot;,dflt:!0},spikesides:{valType:&quot;boolean&quot;,dflt:!0},spikethickness:{valType:&quot;number&quot;,min:0,dflt:2},spikecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},showbackground:{valType:&quot;boolean&quot;,dflt:!1},backgroundcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(204, 204, 204, 0.5)&quot;},showaxeslabels:{valType:&quot;boolean&quot;,dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:{text:i.title.text,font:i.title.font},type:a({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:i.autorange,rangemode:i.rangemode,range:a({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],anim:!1}),tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:&quot;rgb(204, 204, 204)&quot;}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},&quot;plot&quot;,&quot;from-root&quot;)},{&quot;../../../components/color&quot;:666,&quot;../../../lib/extend&quot;:793,&quot;../../../plot_api/edit_types&quot;:836,&quot;../../cartesian/layout_attributes&quot;:869}],899:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../../lib&quot;),a=t(&quot;../../../plot_api/plot_template&quot;),o=t(&quot;./axis_attributes&quot;),s=t(&quot;../../cartesian/type_defaults&quot;),l=t(&quot;../../cartesian/axis_defaults&quot;),c=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p&lt;c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(&quot;gridcolor&quot;,n(f.color,r.bgColor,13600/187).toRgbString()),h(&quot;title.text&quot;,d[0]),f.setScale=i.noop,h(&quot;showspikes&quot;)&amp;&amp;(h(&quot;spikesides&quot;),h(&quot;spikethickness&quot;),h(&quot;spikecolor&quot;,f.color)),h(&quot;showaxeslabels&quot;),h(&quot;showbackground&quot;)&amp;&amp;h(&quot;backgroundcolor&quot;)}}},{&quot;../../../lib&quot;:803,&quot;../../../plot_api/plot_template&quot;:843,&quot;../../cartesian/axis_defaults&quot;:856,&quot;../../cartesian/type_defaults&quot;:880,&quot;./axis_attributes&quot;:898,tinycolor2:598}],900:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=[&quot;Open Sans&quot;,&quot;Open Sans&quot;,&quot;Open Sans&quot;],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t,e){for(var r=0;r&lt;3;++r){var o=e[a[r]];o.visible?(this.labels[r]=t._meta?i.templateString(o.title.text,t._meta):o.title.text,&quot;font&quot;in o.title&amp;&amp;(o.title.font.color&amp;&amp;(this.labelColor[r]=n(o.title.font.color)),o.title.font.family&amp;&amp;(this.labelFont[r]=o.title.font.family),o.title.font.size&amp;&amp;(this.labelSize[r]=o.title.font.size)),&quot;showline&quot;in o&amp;&amp;(this.lineEnable[r]=o.showline),&quot;linecolor&quot;in o&amp;&amp;(this.lineColor[r]=n(o.linecolor)),&quot;linewidth&quot;in o&amp;&amp;(this.lineWidth[r]=o.linewidth),&quot;showgrid&quot;in o&amp;&amp;(this.gridEnable[r]=o.showgrid),&quot;gridcolor&quot;in o&amp;&amp;(this.gridColor[r]=n(o.gridcolor)),&quot;gridwidth&quot;in o&amp;&amp;(this.gridWidth[r]=o.gridwidth),&quot;log&quot;===o.type?this.zeroEnable[r]=!1:&quot;zeroline&quot;in o&amp;&amp;(this.zeroEnable[r]=o.zeroline),&quot;zerolinecolor&quot;in o&amp;&amp;(this.zeroLineColor[r]=n(o.zerolinecolor)),&quot;zerolinewidth&quot;in o&amp;&amp;(this.zeroLineWidth[r]=o.zerolinewidth),&quot;ticks&quot;in o&amp;&amp;o.ticks?this.lineTickEnable[r]=!0:this.lineTickEnable[r]=!1,&quot;ticklen&quot;in o&amp;&amp;(this.lineTickLength[r]=this._defaultLineTickLength[r]=o.ticklen),&quot;tickcolor&quot;in o&amp;&amp;(this.lineTickColor[r]=n(o.tickcolor)),&quot;tickwidth&quot;in o&amp;&amp;(this.lineTickWidth[r]=o.tickwidth),&quot;tickangle&quot;in o&amp;&amp;(this.tickAngle[r]=&quot;auto&quot;===o.tickangle?-3600:Math.PI*-o.tickangle/180),&quot;showticklabels&quot;in o&amp;&amp;(this.tickEnable[r]=o.showticklabels),&quot;tickfont&quot;in o&amp;&amp;(o.tickfont.color&amp;&amp;(this.tickColor[r]=n(o.tickfont.color)),o.tickfont.family&amp;&amp;(this.tickFont[r]=o.tickfont.family),o.tickfont.size&amp;&amp;(this.tickSize[r]=o.tickfont.size)),&quot;mirror&quot;in o?-1!==[&quot;ticks&quot;,&quot;all&quot;,&quot;allticks&quot;].indexOf(o.mirror)?(this.lineTickMirror[r]=!0,this.lineMirror[r]=!0):!0===o.mirror?(this.lineTickMirror[r]=!1,this.lineMirror[r]=!0):(this.lineTickMirror[r]=!1,this.lineMirror[r]=!1):this.lineMirror[r]=!1,&quot;showbackground&quot;in o&amp;&amp;!1!==o.showbackground?(this.backgroundEnable[r]=!0,this.backgroundColor[r]=n(o.backgroundcolor)):this.backgroundEnable[r]=!1):(this.tickEnable[r]=!1,this.labelEnable[r]=!1,this.lineEnable[r]=!1,this.lineTickEnable[r]=!1,this.gridEnable[r]=!1,this.zeroEnable[r]=!1,this.backgroundEnable[r]=!1)}},e.exports=function(t,e){var r=new o;return r.merge(t,e),r}},{&quot;../../../lib&quot;:803,&quot;../../../lib/str2rgbarray&quot;:828}],901:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib&quot;),i=t(&quot;../../../components/color&quot;),a=t(&quot;../../../registry&quot;),o=t(&quot;../../subplot_defaults&quot;),s=t(&quot;./axis_defaults&quot;),l=t(&quot;./layout_attributes&quot;),c=t(&quot;../../get_data&quot;).getSubplotData;function u(t,e,r,n){for(var o=r(&quot;bgcolor&quot;),l=i.combine(o,n.paper_bgcolor),u=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],f=0;f&lt;u.length;f++)r(&quot;camera.&quot;+u[f]+&quot;.x&quot;),r(&quot;camera.&quot;+u[f]+&quot;.y&quot;),r(&quot;camera.&quot;+u[f]+&quot;.z&quot;);r(&quot;camera.projection.type&quot;);var h=!!r(&quot;aspectratio.x&quot;)&amp;&amp;!!r(&quot;aspectratio.y&quot;)&amp;&amp;!!r(&quot;aspectratio.z&quot;),p=r(&quot;aspectmode&quot;,h?&quot;manual&quot;:&quot;auto&quot;);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},&quot;manual&quot;===p&amp;&amp;(e.aspectmode=&quot;auto&quot;),t.aspectmode=e.aspectmode);var d=c(n.fullData,&quot;gl3d&quot;,n.id);s(t,e,{font:n.font,scene:n.id,data:d,bgColor:l,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),a.getComponentMethod(&quot;annotations3d&quot;,&quot;handleDefaults&quot;)(t,e,n);var g=n.getDfltFromLayout(&quot;dragmode&quot;);if(!1!==g&amp;&amp;!g)if(g=&quot;orbit&quot;,t.camera&amp;&amp;t.camera.up){var m=t.camera.up.x,v=t.camera.up.y,y=t.camera.up.z;0!==y&amp;&amp;(m&amp;&amp;v&amp;&amp;y?y/Math.sqrt(m*m+v*v+y*y)&gt;.999&amp;&amp;(g=&quot;turntable&quot;):g=&quot;turntable&quot;)}else g=&quot;turntable&quot;;r(&quot;dragmode&quot;,g),r(&quot;hovermode&quot;,n.getDfltFromLayout(&quot;hovermode&quot;))}e.exports=function(t,e,r){var i=e._basePlotModules.length&gt;1;o(t,e,r,{type:&quot;gl3d&quot;,attributes:l,handleDefaults:u,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{&quot;../../../components/color&quot;:666,&quot;../../../lib&quot;:803,&quot;../../../registry&quot;:931,&quot;../../get_data&quot;:891,&quot;../../subplot_defaults&quot;:925,&quot;./axis_defaults&quot;:899,&quot;./layout_attributes&quot;:902}],902:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_attributes&quot;),i=t(&quot;../../domain&quot;).attributes,a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../lib&quot;).counterRegex;function s(t,e,r){return{x:{valType:&quot;number&quot;,dflt:t,editType:&quot;camera&quot;},y:{valType:&quot;number&quot;,dflt:e,editType:&quot;camera&quot;},z:{valType:&quot;number&quot;,dflt:r,editType:&quot;camera&quot;},editType:&quot;camera&quot;}}e.exports={_arrayAttrRegexps:[o(&quot;scene&quot;,&quot;.annotations&quot;,!0)],bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;plot&quot;},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:&quot;enumerated&quot;,values:[&quot;perspective&quot;,&quot;orthographic&quot;],dflt:&quot;perspective&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;camera&quot;},domain:i({name:&quot;scene&quot;,editType:&quot;plot&quot;}),aspectmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;cube&quot;,&quot;data&quot;,&quot;manual&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;aspectratio.x&quot;:void 0,&quot;aspectratio.y&quot;:void 0,&quot;aspectratio.z&quot;:void 0}},aspectratio:{x:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},y:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},z:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},editType:&quot;plot&quot;,impliedEdits:{aspectmode:&quot;manual&quot;}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:&quot;enumerated&quot;,values:[&quot;orbit&quot;,&quot;turntable&quot;,&quot;zoom&quot;,&quot;pan&quot;,!1],editType:&quot;plot&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;closest&quot;,!1],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;plot&quot;,_deprecated:{cameraposition:{valType:&quot;info_array&quot;,editType:&quot;camera&quot;}}}},{&quot;../../../lib&quot;:803,&quot;../../../lib/extend&quot;:793,&quot;../../domain&quot;:882,&quot;./axis_attributes&quot;:898}],903:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e&lt;3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{&quot;../../../lib/str2rgbarray&quot;:828}],904:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],c=0;c&lt;3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/t.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/t.dataScale[c],u.range[1]=r[c].hi/t.dataScale[c],u._m=1/(t.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&amp;&amp;(u.range[0]-=1,u.range[1]+=1);var f=u.tickmode;if(&quot;auto&quot;===u.tickmode){u.tickmode=&quot;linear&quot;;var h=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/h)}for(var p=n.calcTicks(u,{msUTC:!0}),d=0;d&lt;p.length;++d)p[d].x=p[d].x*t.dataScale[c],&quot;date&quot;===u.type&amp;&amp;(p[d].text=p[d].text.replace(/\&lt;br\&gt;/g,&quot; &quot;));l[c]=p,u.tickmode=f}}e.ticks=l;for(c=0;c&lt;3;++c){o[c]=.5*(t.glplot.bounds[0][c]+t.glplot.bounds[1][c]);for(d=0;d&lt;2;++d)e.bounds[d][c]=t.glplot.bounds[d][c]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r&lt;3;++r){for(var n=t[r],i=new Array(n.length),a=0;a&lt;n.length;++a)i[a]=n[a].x;e[r]=i}return e}(l)};var n=t(&quot;../../cartesian/axes&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],o=[0,0,0]},{&quot;../../../lib&quot;:803,&quot;../../cartesian/axes&quot;:854}],905:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r&lt;4;++r)for(n=0;n&lt;4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],906:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;gl-plot3d&quot;),o=a.createCamera,s=a.createScene,l=t(&quot;webgl-context&quot;),c=t(&quot;has-passive-events&quot;),u=t(&quot;../../registry&quot;),f=t(&quot;../../lib&quot;),h=f.preserveDrawingBuffer(),p=t(&quot;../../plots/cartesian/axes&quot;),d=t(&quot;../../components/fx&quot;),g=t(&quot;../../lib/str2rgbarray&quot;),m=t(&quot;../../lib/show_no_webgl_msg&quot;),v=t(&quot;./project&quot;),y=t(&quot;./layout/convert&quot;),x=t(&quot;./layout/spikes&quot;),b=t(&quot;./layout/tick_marks&quot;);function _(t,e){var r=document.createElement(&quot;div&quot;),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);i.style.position=&quot;absolute&quot;,i.style.top=i.style.left=&quot;0px&quot;,i.style.width=i.style.height=&quot;100%&quot;,i.style[&quot;z-index&quot;]=20,i.style[&quot;pointer-events&quot;]=&quot;none&quot;,r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=&quot;absolute&quot;,r.style.top=r.style.left=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,n.appendChild(r),this.fullLayout=e,this.id=t.id||&quot;scene&quot;,this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=x(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;convert&quot;),this.drawAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;draw&quot;),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var t={canvas:this.canvas,gl:this.gl,glOptions:{preserveDrawingBuffer:h,premultipliedAlpha:!0,antialias:!0},container:this.container,axes:this.axesOptions,spikes:this.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:this.camera,pixelRatio:this.pixelRatio};if(this.staticMode){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=l({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;error creating static canvas/context for image server&quot;);t.gl=i,t.canvas=n}return t};var T=!0;w.tryCreatePlot=function(){var t=this.prepareOptions(),e=!0;try{this.glplot=s(t)}catch(r){if(this.staticMode||!T||h)e=!1;else{f.warn([&quot;webgl setup failed possibly due to&quot;,&quot;false preserveDrawingBuffer config.&quot;,&quot;The mobile/tablet device may not be detected by is-mobile module.&quot;,&quot;Enabling preserveDrawingBuffer in second attempt to create webgl scene...&quot;].join(&quot; &quot;));try{h=t.glOptions.preserveDrawingBuffer=!0,this.glplot=s(t)}catch(r){h=t.glOptions.preserveDrawingBuffer=!1,e=!1}}}return T=!1,e},w.initializeGLCamera=function(){var t=this.fullSceneLayout.camera,e=&quot;orthographic&quot;===t.projection.type;this.camera=o(this.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:e,zoomMin:.01,zoomMax:100,mode:&quot;orbit&quot;})},w.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return m(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&amp;&amp;(e[t.id+&quot;.camera&quot;]=t.getCamera()),t.isAspectChanged(r)&amp;&amp;(e[t.id+&quot;.aspectratio&quot;]=t.glplot.getAspectratio(),&quot;manual&quot;!==r[t.id].aspectmode&amp;&amp;(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+&quot;.aspectmode&quot;]=&quot;manual&quot;)),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit(&quot;plotly_relayout&quot;,e)}};return t.glplot.canvas&amp;&amp;(t.glplot.canvas.addEventListener(&quot;mouseup&quot;,(function(){i(t)})),t.glplot.canvas.addEventListener(&quot;wheel&quot;,(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX&gt;r.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&amp;&amp;{passive:!1}),t.glplot.canvas.addEventListener(&quot;mousemove&quot;,(function(){if(!1!==t.fullSceneLayout.dragmode&amp;&amp;0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit(&quot;plotly_relayouting&quot;,e)}})),t.staticMode||t.glplot.canvas.addEventListener(&quot;webglcontextlost&quot;,(function(r){e&amp;&amp;e.emit&amp;&amp;e.emit(&quot;plotly_webglcontextlost&quot;,{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 &quot;+s+&quot; &quot;+l),n.setAttributeNS(null,&quot;width&quot;,s),n.setAttributeNS(null,&quot;height&quot;,l),b(e),e.glplot.axes.update(e.axesOptions);for(var c,u=Object.keys(e.traces),h=null,g=e.glplot.selection,m=0;m&lt;u.length;++m)&quot;skip&quot;!==(t=e.traces[u[m]]).data.hoverinfo&amp;&amp;t.handlePick(g)&amp;&amp;(h=t),t.setContourLevels&amp;&amp;t.setContourLevels();function y(t,r,n){var i=e.fullSceneLayout[t+&quot;axis&quot;];return&quot;log&quot;!==i.type&amp;&amp;(r=i.d2l(r)),p.hoverLabelText(i,r,n)}if(null!==h){var x=v(e.glplot.cameraParams,g.dataCoordinate);t=h.data;var _,w=r._fullData[t.index],T=g.index,k={xLabel:y(&quot;x&quot;,g.traceCoordinate[0],t.xhoverformat),yLabel:y(&quot;y&quot;,g.traceCoordinate[1],t.yhoverformat),zLabel:y(&quot;z&quot;,g.traceCoordinate[2],t.zhoverformat)},A=d.castHoverinfo(w,e.fullLayout,T),M=(A||&quot;&quot;).split(&quot;+&quot;),S=A&amp;&amp;&quot;all&quot;===A;w.hovertemplate||S||(-1===M.indexOf(&quot;x&quot;)&amp;&amp;(k.xLabel=void 0),-1===M.indexOf(&quot;y&quot;)&amp;&amp;(k.yLabel=void 0),-1===M.indexOf(&quot;z&quot;)&amp;&amp;(k.zLabel=void 0),-1===M.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===M.indexOf(&quot;name&quot;)&amp;&amp;(h.name=void 0));var E=[];&quot;cone&quot;===t.type||&quot;streamtube&quot;===t.type?(k.uLabel=y(&quot;x&quot;,g.traceCoordinate[3],t.uhoverformat),(S||-1!==M.indexOf(&quot;u&quot;))&amp;&amp;E.push(&quot;u: &quot;+k.uLabel),k.vLabel=y(&quot;y&quot;,g.traceCoordinate[4],t.vhoverformat),(S||-1!==M.indexOf(&quot;v&quot;))&amp;&amp;E.push(&quot;v: &quot;+k.vLabel),k.wLabel=y(&quot;z&quot;,g.traceCoordinate[5],t.whoverformat),(S||-1!==M.indexOf(&quot;w&quot;))&amp;&amp;E.push(&quot;w: &quot;+k.wLabel),k.normLabel=g.traceCoordinate[6].toPrecision(3),(S||-1!==M.indexOf(&quot;norm&quot;))&amp;&amp;E.push(&quot;norm: &quot;+k.normLabel),&quot;streamtube&quot;===t.type&amp;&amp;(k.divergenceLabel=g.traceCoordinate[7].toPrecision(3),(S||-1!==M.indexOf(&quot;divergence&quot;))&amp;&amp;E.push(&quot;divergence: &quot;+k.divergenceLabel)),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):&quot;isosurface&quot;===t.type||&quot;volume&quot;===t.type?(k.valueLabel=p.hoverLabelText(e._mockAxis,e._mockAxis.d2l(g.traceCoordinate[3]),t.valuehoverformat),E.push(&quot;value: &quot;+k.valueLabel),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):_=g.textLabel;var L={x:g.traceCoordinate[0],y:g.traceCoordinate[1],z:g.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};d.appendArrayPointValue(L,w,T),t._module.eventData&amp;&amp;(L=w._module.eventData(L,g,w,{},T));var C={points:[L]};if(e.fullSceneLayout.hovermode){var P=[];d.loneHover({trace:w,x:(.5+.5*x[0]/x[3])*s,y:(.5-.5*x[1]/x[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:_,name:h.name,color:d.castHoverOption(w,T,&quot;bgcolor&quot;)||h.color,borderColor:d.castHoverOption(w,T,&quot;bordercolor&quot;),fontFamily:d.castHoverOption(w,T,&quot;font.family&quot;),fontSize:d.castHoverOption(w,T,&quot;font.size&quot;),fontColor:d.castHoverOption(w,T,&quot;font.color&quot;),nameLength:d.castHoverOption(w,T,&quot;namelength&quot;),textAlign:d.castHoverOption(w,T,&quot;align&quot;),hovertemplate:f.castOption(w,T,&quot;hovertemplate&quot;),hovertemplateLabels:f.extendFlat({},L,k),eventData:[L]},{container:n,gd:r,inOut_bbox:P}),L.bbox=P[0]}g.buttons&amp;&amp;g.distance&lt;5?r.emit(&quot;plotly_click&quot;,C):r.emit(&quot;plotly_hover&quot;,C),c=C}else d.loneUnhover(n),r.emit(&quot;plotly_unhover&quot;,c);e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error(&quot;Catastrophic and unrecoverable WebGL error. Context lost.&quot;)};requestAnimationFrame(e)};var k=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function A(t,e,r){for(var n=t.fullSceneLayout,i=0;i&lt;3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+&quot;calendar&quot;],u=e[&quot;_&quot;+o+&quot;length&quot;];if(f.isArrayOrTypedArray(l))for(var h,p=0;p&lt;(u||l.length);p++)if(f.isArrayOrTypedArray(l[p]))for(var d=0;d&lt;l[p].length;++d)h=s.d2l(l[p][d],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],u-1)}}w.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];this.fullLayout=e,this.fullSceneLayout=c,this.axesOptions.merge(e,c),this.spikeOptions.merge(c),this.setViewport(c),this.updateFx(c.dragmode,c.hovermode),this.camera.enableWheel=this.graphDiv._context._scrollZoom.gl3d,this.glplot.setClearColor(g(c.bgcolor)),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;A(this,n,f);!function(t,e){for(var r=t.fullSceneLayout,n=r.annotations||[],i=0;i&lt;3;i++)for(var a=k[i],o=a.charAt(0),s=r[a],l=0;l&lt;n.length;l++){var c=n[l];if(c.visible){var u=s.r2l(c[o]);!isNaN(u)&amp;&amp;isFinite(u)&amp;&amp;(e[0][i]=Math.min(e[0][i],u),e[1][i]=Math.max(e[1][i],u))}}}(this,f);var h=[1,1,1];for(o=0;o&lt;3;++o)f[1][o]===f[0][o]?h[o]=1:h[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=h,this.convertAnnotations(this),a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a&lt;p.length;++a){for(o=0;o&lt;t.length;++o)if(t[o].uid===p[a]&amp;&amp;!0===t[o].visible&amp;&amp;0!==t[o]._length)continue t;(i=this.traces[p[a]]).dispose(),delete this.traces[p[a]]}this.glplot.objects.sort((function(t,e){return t._trace.data.index-e._trace.data.index}));var d,m=[[0,0,0],[0,0,0]],v=[],y={};for(a=0;a&lt;3;++a){if((l=(s=c[k[a]]).type)in y?(y[l].acc*=h[a],y[l].count+=1):y[l]={acc:h[a],count:1},s.autorange){m[0][a]=1/0,m[1][a]=-1/0;var x=this.glplot.objects,b=this.fullSceneLayout.annotations||[],_=s._name.charAt(0);for(o=0;o&lt;x.length;o++){var w=x[o],T=w.bounds,M=w._trace.data._pad||0;&quot;ErrorBars&quot;===w.constructor.name&amp;&amp;s._lowerLogErrorBound?m[0][a]=Math.min(m[0][a],s._lowerLogErrorBound):m[0][a]=Math.min(m[0][a],T[0][a]/h[a]-M),m[1][a]=Math.max(m[1][a],T[1][a]/h[a]+M)}for(o=0;o&lt;b.length;o++){var S=b[o];if(S.visible){var E=s.r2l(S[_]);m[0][a]=Math.min(m[0][a],E),m[1][a]=Math.max(m[1][a],E)}}if(&quot;rangemode&quot;in s&amp;&amp;&quot;tozero&quot;===s.rangemode&amp;&amp;(m[0][a]=Math.min(m[0][a],0),m[1][a]=Math.max(m[1][a],0)),m[0][a]&gt;m[1][a])m[0][a]=-1,m[1][a]=1;else{var L=m[1][a]-m[0][a];m[0][a]-=L/32,m[1][a]+=L/32}if(&quot;reversed&quot;===s.autorange){var C=m[0][a];m[0][a]=m[1][a],m[1][a]=C}}else{var P=s.range;m[0][a]=s.r2l(P[0]),m[1][a]=s.r2l(P[1])}m[0][a]===m[1][a]&amp;&amp;(m[0][a]-=1,m[1][a]+=1),v[a]=m[1][a]-m[0][a],this.glplot.setBounds(a,{min:m[0][a]*h[a],max:m[1][a]*h[a]})}var I=c.aspectmode;if(&quot;cube&quot;===I)d=[1,1,1];else if(&quot;manual&quot;===I){var O=c.aspectratio;d=[O.x,O.y,O.z]}else{if(&quot;auto&quot;!==I&amp;&amp;&quot;data&quot;!==I)throw new Error(&quot;scene.js aspectRatio was not one of the enumerated types&quot;);var z=[1,1,1];for(a=0;a&lt;3;++a){var D=y[l=(s=c[k[a]]).type];z[a]=Math.pow(D.acc,1/D.count)/h[a]}d=&quot;data&quot;===I||Math.max.apply(null,z)/Math.min.apply(null,z)&lt;=4?z:[1,1,1]}c.aspectratio.x=u.aspectratio.x=d[0],c.aspectratio.y=u.aspectratio.y=d[1],c.aspectratio.z=u.aspectratio.z=d[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var R=c.domain||null,F=e._size||null;if(R&amp;&amp;F){var B=this.container.style;B.position=&quot;absolute&quot;,B.left=F.l+R.x[0]*F.w+&quot;px&quot;,B.top=F.t+(1-R.y[1])*F.h+&quot;px&quot;,B.width=F.w*(R.x[1]-R.x[0])+&quot;px&quot;,B.height=F.h*(R.y[1]-R.y[0])+&quot;px&quot;}this.glplot.redraw()}},w.destroy=function(){this.glplot&amp;&amp;(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},w.getCamera=function(){var t;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(t=this.camera).up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?&quot;orthographic&quot;:&quot;perspective&quot;}}},w.setViewport=function(t){var e,r=t.camera;this.camera.lookAt.apply(this,[[(e=r).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]),this.glplot.setAspectratio(t.aspectratio),&quot;orthographic&quot;===r.projection.type!==this.camera._ortho&amp;&amp;(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},w.isCameraChanged=function(t){var e=this.getCamera(),r=f.nestedProperty(t,this.id+&quot;.camera&quot;).get();function n(t,e,r,n){var i=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];return e[i[r]]&amp;&amp;t[i[r]][a[n]]===e[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a&lt;3;a++)for(var o=0;o&lt;3;o++)if(!n(e,r,a,o)){i=!0;break}(!r.projection||e.projection&amp;&amp;e.projection.type!==r.projection.type)&amp;&amp;(i=!0)}return i},w.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;).get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this.fullLayout,l=this.isCameraChanged(t),c=this.isAspectChanged(t),h=l||c;if(h){var p={};if(l&amp;&amp;(e=this.getCamera(),n=(r=f.nestedProperty(t,this.id+&quot;.camera&quot;)).get(),p[this.id+&quot;.camera&quot;]=n),c&amp;&amp;(i=this.glplot.getAspectratio(),o=(a=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;)).get(),p[this.id+&quot;.aspectratio&quot;]=o),u.call(&quot;_storeDirectGUIEdit&quot;,t,s._preGUI,p),l)r.set(e),f.nestedProperty(s,this.id+&quot;.camera&quot;).set(e);if(c)a.set(i),f.nestedProperty(s,this.id+&quot;.aspectratio&quot;).set(i),this.glplot.redraw()}return h},w.updateFx=function(t,e){var r=this.camera;if(r)if(&quot;orbit&quot;===t)r.mode=&quot;orbit&quot;,r.keyBindingMode=&quot;rotate&quot;;else if(&quot;turntable&quot;===t){r.up=[0,0,1],r.mode=&quot;turntable&quot;,r.keyBindingMode=&quot;rotate&quot;;var n=this.graphDiv,i=n._fullLayout,a=this.fullSceneLayout.camera,o=a.up.x,s=a.up.y,l=a.up.z;if(l/Math.sqrt(o*o+s*s+l*l)&lt;.999){var c=this.id+&quot;.camera.up&quot;,h={x:0,y:0,z:1},p={};p[c]=h;var d=n.layout;u.call(&quot;_storeDirectGUIEdit&quot;,d,i._preGUI,p),a.up=h,f.nestedProperty(d,c).set(h)}}else r.keyBindingMode=t;this.fullSceneLayout.hovermode=e},w.toImage=function(t){t||(t=&quot;png&quot;),this.staticMode&amp;&amp;this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a),function(t,e,r){for(var n=0,i=r-1;n&lt;i;++n,--i)for(var a=0;a&lt;e;++a)for(var o=0;o&lt;4;++o){var s=4*(e*n+a)+o,l=4*(e*i+a)+o,c=t[s];t[s]=t[l],t[l]=c}}(a,r,i),function(t,e,r){for(var n=0;n&lt;r;++n)for(var i=0;i&lt;e;++i){var a=4*(e*n+i),o=t[a+3];if(o&gt;0)for(var s=255/o,l=0;l&lt;3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(a,r,i);var o=document.createElement(&quot;canvas&quot;);o.width=r,o.height=i;var s,l=o.getContext(&quot;2d&quot;),c=l.createImageData(r,i);switch(c.data.set(a),l.putImageData(c,0,0),t){case&quot;jpeg&quot;:s=o.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:s=o.toDataURL(&quot;image/webp&quot;);break;default:s=o.toDataURL(&quot;image/png&quot;)}return this.staticMode&amp;&amp;this.container.removeChild(n),s},w.setConvert=function(){for(var t=0;t&lt;3;t++){var e=this.fullSceneLayout[k[t]];p.setConvert(e,this.fullLayout),e.setScale=f.noop}},w.make4thDimension=function(){var t=this.graphDiv._fullLayout;this._mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},p.setConvert(this._mockAxis,t)},e.exports=_},{&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../lib/show_no_webgl_msg&quot;:825,&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;./layout/convert&quot;:900,&quot;./layout/spikes&quot;:903,&quot;./layout/tick_marks&quot;:904,&quot;./project&quot;:905,&quot;gl-plot3d&quot;:326,&quot;has-passive-events&quot;:444,&quot;webgl-context&quot;:629}],907:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a&lt;n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],908:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;./animation_attributes&quot;),a=t(&quot;../components/color/attributes&quot;),o=t(&quot;../components/shapes/draw_newshape/attributes&quot;),s=t(&quot;./pad_attributes&quot;),l=t(&quot;../lib/extend&quot;).extendFlat,c=n({editType:&quot;calc&quot;});c.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=a.defaultLine,e.exports={font:c,title:{text:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},font:n({editType:&quot;layoutstyle&quot;}),xref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},yref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},x:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;layoutstyle&quot;},y:{valType:&quot;number&quot;,min:0,max:1,dflt:&quot;auto&quot;,editType:&quot;layoutstyle&quot;},xanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;layoutstyle&quot;},yanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;layoutstyle&quot;},pad:l(s({editType:&quot;layoutstyle&quot;}),{}),editType:&quot;layoutstyle&quot;},uniformtext:{mode:{valType:&quot;enumerated&quot;,values:[!1,&quot;hide&quot;,&quot;show&quot;],dflt:!1,editType:&quot;plot&quot;},minsize:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},autosize:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:10,dflt:700,editType:&quot;plot&quot;},height:{valType:&quot;number&quot;,min:10,dflt:450,editType:&quot;plot&quot;},margin:{l:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},t:{valType:&quot;number&quot;,min:0,dflt:100,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},autoexpand:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},computed:{valType:&quot;any&quot;,editType:&quot;none&quot;},paper_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;plot&quot;},plot_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;layoutstyle&quot;},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},separators:{valType:&quot;string&quot;,editType:&quot;plot&quot;},hidesources:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},showlegend:{valType:&quot;boolean&quot;,editType:&quot;legend&quot;},colorway:{valType:&quot;colorlist&quot;,dflt:a.defaults,editType:&quot;calc&quot;},datarevision:{valType:&quot;any&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},selectionrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},template:{valType:&quot;any&quot;,editType:&quot;calc&quot;},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},transition:l({},i.transition,{editType:&quot;none&quot;}),_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},titlefont:n({editType:&quot;layoutstyle&quot;})}}},{&quot;../components/color/attributes&quot;:665,&quot;../components/shapes/draw_newshape/attributes&quot;:751,&quot;../lib/extend&quot;:793,&quot;./animation_attributes&quot;:848,&quot;./font_attributes&quot;:883,&quot;./pad_attributes&quot;:916}],909:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/sort_object_keys&quot;),i='\xa9 &lt;a target=&quot;_blank&quot; href=&quot;https://www.openstreetmap.org/copyright&quot;&gt;OpenStreetMap&lt;/a&gt; contributors',a=['\xa9 &lt;a target=&quot;_blank&quot; href=&quot;https://carto.com/&quot;&gt;Carto&lt;/a&gt;',i].join(&quot; &quot;),o=['Map tiles by &lt;a target=&quot;_blank&quot; href=&quot;https://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;','under &lt;a target=&quot;_blank&quot; href=&quot;https://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt;',&quot;|&quot;,'Data by &lt;a target=&quot;_blank&quot; href=&quot;https://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt; contributors','under &lt;a target=&quot;_blank&quot; href=&quot;https://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;'].join(&quot; &quot;),s={&quot;open-street-map&quot;:{id:&quot;osm&quot;,version:8,sources:{&quot;plotly-osm-tiles&quot;:{type:&quot;raster&quot;,attribution:i,tiles:[&quot;https://a.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;,&quot;https://b.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-osm-tiles&quot;,type:&quot;raster&quot;,source:&quot;plotly-osm-tiles&quot;,minzoom:0,maxzoom:22}]},&quot;white-bg&quot;:{id:&quot;white-bg&quot;,version:8,sources:{},layers:[{id:&quot;white-bg&quot;,type:&quot;background&quot;,paint:{&quot;background-color&quot;:&quot;#FFFFFF&quot;},minzoom:0,maxzoom:22}]},&quot;carto-positron&quot;:{id:&quot;carto-positron&quot;,version:8,sources:{&quot;plotly-carto-positron&quot;:{type:&quot;raster&quot;,attribution:a,tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-positron&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-positron&quot;,minzoom:0,maxzoom:22}]},&quot;carto-darkmatter&quot;:{id:&quot;carto-darkmatter&quot;,version:8,sources:{&quot;plotly-carto-darkmatter&quot;:{type:&quot;raster&quot;,attribution:a,tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-darkmatter&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-darkmatter&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-terrain&quot;:{id:&quot;stamen-terrain&quot;,version:8,sources:{&quot;plotly-stamen-terrain&quot;:{type:&quot;raster&quot;,attribution:o,tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-terrain&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-terrain&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-toner&quot;:{id:&quot;stamen-toner&quot;,version:8,sources:{&quot;plotly-stamen-toner&quot;:{type:&quot;raster&quot;,attribution:o,tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-toner&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-toner&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-watercolor&quot;:{id:&quot;stamen-watercolor&quot;,version:8,sources:{&quot;plotly-stamen-watercolor&quot;:{type:&quot;raster&quot;,attribution:['Map tiles by &lt;a target=&quot;_blank&quot; href=&quot;https://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;','under &lt;a target=&quot;_blank&quot; href=&quot;https://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt;',&quot;|&quot;,'Data by &lt;a target=&quot;_blank&quot; href=&quot;https://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt; contributors','under &lt;a target=&quot;_blank&quot; href=&quot;https://creativecommons.org/licenses/by-sa/3.0&quot;&gt;CC BY SA&lt;/a&gt;'].join(&quot; &quot;),tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-watercolor&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-watercolor&quot;,minzoom:0,maxzoom:22}]}},l=n(s);e.exports={requiredVersion:&quot;1.10.1&quot;,styleUrlPrefix:&quot;mapbox://styles/mapbox/&quot;,styleUrlSuffix:&quot;v9&quot;,styleValuesMapbox:[&quot;basic&quot;,&quot;streets&quot;,&quot;outdoors&quot;,&quot;light&quot;,&quot;dark&quot;,&quot;satellite&quot;,&quot;satellite-streets&quot;],styleValueDflt:&quot;basic&quot;,stylesNonMapbox:s,styleValuesNonMapbox:l,traceLayerPrefix:&quot;plotly-trace-layer-&quot;,layoutLayerPrefix:&quot;plotly-layout-layer-&quot;,wrongVersionErrorMsg:[&quot;Your custom plotly.js bundle is not using the correct mapbox-gl version&quot;,&quot;Please install mapbox-gl@1.10.1.&quot;].join(&quot;\n&quot;),noAccessTokenErrorMsg:[&quot;Missing Mapbox access token.&quot;,&quot;Mapbox trace type require a Mapbox access token to be registered.&quot;,&quot;For example:&quot;,&quot;  Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });&quot;,&quot;More info here: https://www.mapbox.com/help/define-access-token/&quot;].join(&quot;\n&quot;),missingStyleErrorMsg:[&quot;No valid mapbox style found, please set `mapbox.style` to one of:&quot;,l.join(&quot;, &quot;),&quot;or register a Mapbox access token to use a Mapbox-served style.&quot;].join(&quot;\n&quot;),multipleTokensErrorMsg:[&quot;Set multiple mapbox access token across different mapbox subplot,&quot;,&quot;using first token found as mapbox-gl does not allow multipleaccess tokens on the same page.&quot;].join(&quot;\n&quot;),mapOnErrorMsg:&quot;Mapbox error.&quot;,mapboxLogo:{path0:&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot;,path1:&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot;,path2:&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot;,polygon:&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34&quot;},styleRules:{map:&quot;overflow:hidden;position:relative;&quot;,&quot;missing-css&quot;:&quot;display:none;&quot;,canary:&quot;background-color:salmon;&quot;,&quot;ctrl-bottom-left&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;&quot;,&quot;ctrl-bottom-right&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;&quot;,ctrl:&quot;clear: both; pointer-events: auto; transform: translate(0, 0);&quot;,&quot;ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: none;&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: block; margin-top:2px&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover&quot;:&quot;padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;&quot;,&quot;ctrl-attrib.mapboxgl-compact::after&quot;:'content: &quot;&quot;; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=&quot;0 0 20 20&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E %3Cpath fill=&quot;%23333333&quot; fill-rule=&quot;evenodd&quot; d=&quot;M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0&quot;/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',&quot;ctrl-attrib.mapboxgl-compact&quot;:&quot;min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;&quot;,&quot;ctrl-bottom-right &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; right: 0&quot;,&quot;ctrl-bottom-left &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; left: 0&quot;,&quot;ctrl-bottom-left .mapboxgl-ctrl&quot;:&quot;margin: 0 0 10px 10px; float: left;&quot;,&quot;ctrl-bottom-right .mapboxgl-ctrl&quot;:&quot;margin: 0 10px 10px 0; float: right;&quot;,&quot;ctrl-attrib&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a:hover&quot;:&quot;color: inherit; text-decoration: underline;&quot;,&quot;ctrl-attrib .mapbox-improve-map&quot;:&quot;font-weight: bold; margin-left: 2px;&quot;,&quot;attrib-empty&quot;:&quot;display: none;&quot;,&quot;ctrl-logo&quot;:'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?%3E %3Csvg version=&quot;1.1&quot; id=&quot;Layer_1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; viewBox=&quot;0 0 21 21&quot; style=&quot;enable-background:new 0 0 21 21;&quot; xml:space=&quot;preserve&quot;%3E%3Cg transform=&quot;translate(0,0.01)&quot;%3E%3Cpath d=&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3Cpath d=&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpath d=&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpolygon points=&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 &quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3C/g%3E%3C/svg%3E\')'}}},{&quot;../../lib/sort_object_keys&quot;:826}],910:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t.split(&quot; &quot;),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[&quot;&quot;,&quot;&quot;],u=[0,0];switch(i){case&quot;top&quot;:c[0]=&quot;top&quot;,u[1]=-l;break;case&quot;bottom&quot;:c[0]=&quot;bottom&quot;,u[1]=l}switch(a){case&quot;left&quot;:c[1]=&quot;right&quot;,u[0]=-s;break;case&quot;right&quot;:c[1]=&quot;left&quot;,u[0]=s}return{anchor:c[0]&amp;&amp;c[1]?c.join(&quot;-&quot;):c[0]?c[0]:c[1]?c[1]:&quot;center&quot;,offset:u}}},{&quot;../../lib&quot;:803}],911:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=i.strScale,s=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,l=t(&quot;../../constants/xmlns_namespaces&quot;),c=t(&quot;@plotly/d3&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./mapbox&quot;),p=r.constants=t(&quot;./constants&quot;);function d(t){return&quot;string&quot;==typeof t&amp;&amp;(-1!==p.styleValuesMapbox.indexOf(t)||0===t.indexOf(&quot;mapbox://&quot;))}r.name=&quot;mapbox&quot;,r.attr=&quot;subplot&quot;,r.idRoot=&quot;mapbox&quot;,r.idRegex=r.attrRegex=i.counterRegex(&quot;mapbox&quot;),r.attributes={subplot:{valType:&quot;subplotid&quot;,dflt:&quot;mapbox&quot;,editType:&quot;calc&quot;}},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.mapbox;if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(t,e){var r=t._fullLayout;if(&quot;&quot;===t._context.mapboxAccessToken)return&quot;&quot;;for(var n=[],a=[],o=!1,s=!1,l=0;l&lt;e.length;l++){var c=r[e[l]],u=c.accesstoken;d(c.style)&amp;&amp;(u?i.pushUnique(n,u):(d(c._input.style)&amp;&amp;(i.error(&quot;Uses Mapbox map style, but did not set an access token.&quot;),o=!0),s=!0)),u&amp;&amp;i.pushUnique(a,u)}if(s){var f=o?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw i.error(f),new Error(f)}return n.length?(n.length&gt;1&amp;&amp;i.warn(p.multipleTokensErrorMsg),n[0]):(a.length&amp;&amp;i.log([&quot;Listed mapbox access token(s)&quot;,a.join(&quot;,&quot;),&quot;but did not use a Mapbox map style, ignoring token(s).&quot;].join(&quot; &quot;)),&quot;&quot;)}(t,a);n.accessToken=o;for(var l=0;l&lt;a.length;l++){var c=a[l],u=s(r,&quot;mapbox&quot;,c),f=e[c],g=f._subplot;g||(g=new h(t,c),e[c]._subplot=g),g.viewInitial||(g.viewInitial={center:i.extendFlat({},f.center),zoom:f.zoom,bearing:f.bearing,pitch:f.pitch}),g.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._subplot&amp;&amp;n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i&lt;r.length;i++){var s=e[r[i]],h=s.domain,d=s._subplot.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:d,x:n.l+n.w*h.x[0],y:n.t+n.h*(1-h.y[1]),width:n.w*(h.x[1]-h.x[0]),height:n.h*(h.y[1]-h.y[0]),preserveAspectRatio:&quot;none&quot;});var g=c.select(s._subplot.div);if(!(null===g.select(&quot;.mapboxgl-ctrl-logo&quot;).node().offsetParent)){var m=e._glimages.append(&quot;g&quot;);m.attr(&quot;transform&quot;,a(n.l+n.w*h.x[0]+10,n.t+n.h*(1-h.y[0])-31)),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path0).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;}),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path1).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path2).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;polygon&quot;).attr(&quot;points&quot;,p.mapboxLogo.polygon).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;})}var v=g.select(&quot;.mapboxgl-ctrl-attrib&quot;).text().replace(&quot;Improve this map&quot;,&quot;&quot;),y=e._glimages.append(&quot;g&quot;),x=y.append(&quot;text&quot;);x.text(v).classed(&quot;static-attribution&quot;,!0).attr({&quot;font-size&quot;:12,&quot;font-family&quot;:&quot;Arial&quot;,color:&quot;rgba(0, 0, 0, 0.75)&quot;,&quot;text-anchor&quot;:&quot;end&quot;,&quot;data-unformatted&quot;:v});var b=u.bBox(x.node()),_=n.w*(h.x[1]-h.x[0]);if(b.width&gt;_/2){var w=v.split(&quot;|&quot;).join(&quot;&lt;br&gt;&quot;);x.text(w).attr(&quot;data-unformatted&quot;,w).call(f.convertToTspans,t),b=u.bBox(x.node())}x.attr(&quot;transform&quot;,a(-3,8-b.height)),y.insert(&quot;rect&quot;,&quot;.static-attribution&quot;).attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:&quot;rgba(255, 255, 255, 0.75)&quot;});var T=1;b.width+6&gt;_&amp;&amp;(T=_/(b.width+6));var k=[n.l+n.w*h.x[1],n.t+n.h*(1-h.y[0])];y.attr(&quot;transform&quot;,a(k[0],k[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n&lt;r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{&quot;../../components/drawing&quot;:688,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/get_data&quot;:891,&quot;./constants&quot;:909,&quot;./layout_attributes&quot;:913,&quot;./layout_defaults&quot;:914,&quot;./mapbox&quot;:915,&quot;@plotly/d3&quot;:58,&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;:461}],912:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/svg_text_utils&quot;).sanitizeHTML,a=t(&quot;./convert_text_opts&quot;),o=t(&quot;./constants&quot;);function s(t,e){this.subplot=t,this.uid=t.uid+&quot;-&quot;+e,this.index=e,this.idSource=&quot;source-&quot;+this.uid,this.idLayer=o.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var l=s.prototype;function c(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&amp;&amp;e.length&gt;0){for(var r=0;r&lt;e.length;r++)if(&quot;string&quot;!=typeof e[r]||0===e[r].length)return!1;return!0}return n.isPlainObject(e)||&quot;string&quot;==typeof e&amp;&amp;e.length&gt;0}function u(t){var e={},r={};switch(t.type){case&quot;circle&quot;:n.extendFlat(r,{&quot;circle-radius&quot;:t.circle.radius,&quot;circle-color&quot;:t.color,&quot;circle-opacity&quot;:t.opacity});break;case&quot;line&quot;:n.extendFlat(r,{&quot;line-width&quot;:t.line.width,&quot;line-color&quot;:t.color,&quot;line-opacity&quot;:t.opacity,&quot;line-dasharray&quot;:t.line.dash});break;case&quot;fill&quot;:n.extendFlat(r,{&quot;fill-color&quot;:t.color,&quot;fill-outline-color&quot;:t.fill.outlinecolor,&quot;fill-opacity&quot;:t.opacity});break;case&quot;symbol&quot;:var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{&quot;icon-image&quot;:i.icon+&quot;-15&quot;,&quot;icon-size&quot;:i.iconsize/10,&quot;text-field&quot;:i.text,&quot;text-size&quot;:i.textfont.size,&quot;text-anchor&quot;:o.anchor,&quot;text-offset&quot;:o.offset,&quot;symbol-placement&quot;:i.placement}),n.extendFlat(r,{&quot;icon-color&quot;:t.color,&quot;text-color&quot;:i.textfont.color,&quot;text-opacity&quot;:t.opacity});break;case&quot;raster&quot;:n.extendFlat(r,{&quot;raster-fade-duration&quot;:0,&quot;raster-opacity&quot;:t.opacity})}return{layout:e,paint:r}}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&amp;&amp;&quot;image&quot;===this.sourceType&amp;&amp;&quot;image&quot;===t.sourcetype&amp;&amp;(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&amp;&amp;this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&amp;&amp;e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,a={type:r};&quot;geojson&quot;===r?e=&quot;data&quot;:&quot;vector&quot;===r?e=&quot;string&quot;==typeof n?&quot;url&quot;:&quot;tiles&quot;:&quot;raster&quot;===r?(e=&quot;tiles&quot;,a.tileSize=256):&quot;image&quot;===r&amp;&amp;(e=&quot;url&quot;,a.coordinates=t.coordinates);a[e]=n,t.sourceattribution&amp;&amp;(a.attribution=i(t.sourceattribution));return a}(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if(&quot;traces&quot;===t)for(var e=this.subplot.getMapLayers(),r=0;r&lt;e.length;r++){var n=e[r].id;if(&quot;string&quot;==typeof n&amp;&amp;0===n.indexOf(o.traceLayerPrefix)){t=n;break}}return t},l.updateLayer=function(t){var e=this.subplot,r=u(t),n=this.lookupBelow(),i=this.findFollowingMapboxLayerId(n);this.removeLayer(),c(t)&amp;&amp;e.addLayer({id:this.idLayer,source:this.idSource,&quot;source-layer&quot;:t.sourcelayer||&quot;&quot;,type:t.type,minzoom:t.minzoom,maxzoom:t.maxzoom,layout:r.layout,paint:r.paint},i),this.layerType=t.type,this.below=n},l.updateStyle=function(t){if(c(t)){var e=u(t);this.subplot.setOptions(this.idLayer,&quot;setLayoutProperty&quot;,e.layout),this.subplot.setOptions(this.idLayer,&quot;setPaintProperty&quot;,e.paint)}},l.removeLayer=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer)},l.dispose=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer),t.getSource(this.idSource)&amp;&amp;t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new s(t,e);return n.update(r),n}},{&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;./constants&quot;:909,&quot;./convert_text_opts&quot;:910}],913:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).defaultLine,a=t(&quot;../domain&quot;).attributes,o=t(&quot;../font_attributes&quot;),s=t(&quot;../../traces/scatter/attributes&quot;).textposition,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;./constants&quot;),f=o({});f.family.dflt=&quot;Open Sans Regular, Arial Unicode MS Regular&quot;,(e.exports=l({_arrayAttrRegexps:[n.counterRegex(&quot;mapbox&quot;,&quot;.layers&quot;,!0)],domain:a({name:&quot;mapbox&quot;}),accesstoken:{valType:&quot;string&quot;,noBlank:!0,strict:!0},style:{valType:&quot;any&quot;,values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt},center:{lon:{valType:&quot;number&quot;,dflt:0},lat:{valType:&quot;number&quot;,dflt:0}},zoom:{valType:&quot;number&quot;,dflt:1},bearing:{valType:&quot;number&quot;,dflt:0},pitch:{valType:&quot;number&quot;,dflt:0},layers:c(&quot;layer&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},sourcetype:{valType:&quot;enumerated&quot;,values:[&quot;geojson&quot;,&quot;vector&quot;,&quot;raster&quot;,&quot;image&quot;],dflt:&quot;geojson&quot;},source:{valType:&quot;any&quot;},sourcelayer:{valType:&quot;string&quot;,dflt:&quot;&quot;},sourceattribution:{valType:&quot;string&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;line&quot;,&quot;fill&quot;,&quot;symbol&quot;,&quot;raster&quot;],dflt:&quot;circle&quot;},coordinates:{valType:&quot;any&quot;},below:{valType:&quot;string&quot;},color:{valType:&quot;color&quot;,dflt:i},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},minzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:0},maxzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:24},circle:{radius:{valType:&quot;number&quot;,dflt:15}},line:{width:{valType:&quot;number&quot;,dflt:2},dash:{valType:&quot;data_array&quot;}},fill:{outlinecolor:{valType:&quot;color&quot;,dflt:i}},symbol:{icon:{valType:&quot;string&quot;,dflt:&quot;marker&quot;},iconsize:{valType:&quot;number&quot;,dflt:10},text:{valType:&quot;string&quot;,dflt:&quot;&quot;},placement:{valType:&quot;enumerated&quot;,values:[&quot;point&quot;,&quot;line&quot;,&quot;line-center&quot;],dflt:&quot;point&quot;},textfont:f,textposition:n.extendFlat({},s,{arrayOk:!1})}})},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../../traces/scatter/attributes&quot;:1218,&quot;../domain&quot;:882,&quot;../font_attributes&quot;:883,&quot;./constants&quot;:909}],914:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../array_container_defaults&quot;),o=t(&quot;./layout_attributes&quot;);function s(t,e,r,n){r(&quot;accesstoken&quot;,n.accessToken),r(&quot;style&quot;),r(&quot;center.lon&quot;),r(&quot;center.lat&quot;),r(&quot;zoom&quot;),r(&quot;bearing&quot;),r(&quot;pitch&quot;),a(t,e,{name:&quot;layers&quot;,handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(&quot;visible&quot;)){var i,a=r(&quot;sourcetype&quot;),s=&quot;raster&quot;===a||&quot;image&quot;===a;r(&quot;source&quot;),r(&quot;sourceattribution&quot;),&quot;vector&quot;===a&amp;&amp;r(&quot;sourcelayer&quot;),&quot;image&quot;===a&amp;&amp;r(&quot;coordinates&quot;),s&amp;&amp;(i=&quot;raster&quot;);var l=r(&quot;type&quot;,i);s&amp;&amp;&quot;raster&quot;!==l&amp;&amp;(l=e.type=&quot;raster&quot;,n.log(&quot;Source types *raster* and *image* must drawn *raster* layer type.&quot;)),r(&quot;below&quot;),r(&quot;color&quot;),r(&quot;opacity&quot;),r(&quot;minzoom&quot;),r(&quot;maxzoom&quot;),&quot;circle&quot;===l&amp;&amp;r(&quot;circle.radius&quot;),&quot;line&quot;===l&amp;&amp;(r(&quot;line.width&quot;),r(&quot;line.dash&quot;)),&quot;fill&quot;===l&amp;&amp;r(&quot;fill.outlinecolor&quot;),&quot;symbol&quot;===l&amp;&amp;(r(&quot;symbol.icon&quot;),r(&quot;symbol.iconsize&quot;),r(&quot;symbol.text&quot;),n.coerceFont(r,&quot;symbol.textfont&quot;),r(&quot;symbol.textposition&quot;),r(&quot;symbol.placement&quot;))}}e.exports=function(t,e,r){i(t,e,r,{type:&quot;mapbox&quot;,attributes:o,handleDefaults:s,partition:&quot;y&quot;,accessToken:e._mapboxAccessToken})}},{&quot;../../lib&quot;:803,&quot;../array_container_defaults&quot;:849,&quot;../subplot_defaults&quot;:925,&quot;./layout_attributes&quot;:913}],915:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../cartesian/axes&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../../components/dragelement/helpers&quot;),f=u.rectMode,h=u.drawMode,p=u.selectMode,d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).clearSelectionsCache,v=t(&quot;../cartesian/select&quot;).selectOnClick,y=t(&quot;./constants&quot;),x=t(&quot;./layers&quot;);function b(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+&quot;-&quot;+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var _=b.prototype;_.plot=function(t,e,r){var n,i=this,a=e[i.id];i.map&amp;&amp;a.accesstoken!==i.accessToken&amp;&amp;(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]),n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},_.createMap=function(t,e,r,i){var o=this,s=e[o.id],l=o.styleObj=T(s.style);o.accessToken=s.accesstoken;var c=o.map=new n.Map({container:o.div,style:l.style,center:A(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0}));c._canvas.style.left=&quot;0px&quot;,c._canvas.style.top=&quot;0px&quot;,o.rejectOnError(i),o.isStatic||o.initFx(t,e);var u=[];u.push(new Promise((function(t){c.once(&quot;load&quot;,t)}))),u=u.concat(a.fetchTraceGeoData(t)),Promise.all(u).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)})).catch(i)},_.updateMap=function(t,e,r,n){var i=this,o=i.map,s=e[this.id];i.rejectOnError(n);var l=[],c=T(s.style);JSON.stringify(i.styleObj)!==JSON.stringify(c)&amp;&amp;(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise((function(t){o.once(&quot;styledata&quot;,t)})))),l=l.concat(a.fetchTraceGeoData(t)),Promise.all(l).then((function(){i.fillBelowLookup(t,e),i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})).catch(n)},_.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r&lt;t.length;r++){var s=t[r][0].trace,l=s._module;&quot;string&quot;==typeof s.below?n=s.below:l.getBelow&amp;&amp;(n=l.getBelow(s,this)),&quot;&quot;===n&amp;&amp;(o=!0),a[&quot;trace-&quot;+s.uid]=n||&quot;&quot;}for(r=0;r&lt;i.length;r++){var c=i[r];n=&quot;string&quot;==typeof c.below?c.below:o?&quot;traces&quot;:&quot;&quot;,a[&quot;layout-&quot;+r]=n}var u,f,h={};for(u in a)h[n=a[u]]?h[n].push(u):h[n]=[u];for(n in h){var p=h[n];if(p.length&gt;1)for(r=0;r&lt;p.length;r++)0===(u=p[r]).indexOf(&quot;trace-&quot;)?(f=u.split(&quot;trace-&quot;)[1],this.traceHash[f]&amp;&amp;(this.traceHash[f].below=null)):0===u.indexOf(&quot;layout-&quot;)&amp;&amp;(f=u.split(&quot;layout-&quot;)[1],this.layerList[f]&amp;&amp;(this.layerList[f].below=null))}};var w={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function T(t){var e={};return i.isPlainObject(t)?(e.id=t.id,e.style=t):&quot;string&quot;==typeof t?(e.id=t,-1!==y.styleValuesMapbox.indexOf(t)?e.style=k(t):y.stylesNonMapbox[t]?e.style=y.stylesNonMapbox[t]:e.style=t):(e.id=y.styleValueDflt,e.style=k(y.styleValueDflt)),e.transition={duration:0,delay:0},e}function k(t){return y.styleUrlPrefix+t+&quot;-&quot;+y.styleUrlSuffix}function A(t){return[t.lon,t.lat]}_.updateData=function(t){var e,r,n,i,a=this.traceHash,o=t.slice().sort((function(t,e){return w[t[0].trace.type]-w[e[0].trace.type]}));for(n=0;n&lt;o.length;n++){var s=o[n],l=!1;(e=a[(r=s[0].trace).uid])&amp;&amp;(e.type===r.type?(e.update(s),l=!0):e.dispose()),!l&amp;&amp;r._module&amp;&amp;(a[r.uid]=r._module.plot(this,s))}var c=Object.keys(a);t:for(n=0;n&lt;c.length;n++){var u=c[n];for(i=0;i&lt;t.length;i++)if(u===(r=t[i][0].trace).uid)continue t;(e=a[u]).dispose(),delete a[u]}},_.updateLayout=function(t){var e=this.map,r=t[this.id];this.dragging||this.wheeling||(e.setCenter(A(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch)),this.updateLayers(t),this.updateFramework(t),this.updateFx(t),this.map.resize(),this.gd._context._scrollZoom.mapbox?e.scrollZoom.enable():e.scrollZoom.disable()},_.resolveOnRender=function(t){var e=this.map;e.on(&quot;render&quot;,(function r(){e.loaded()&amp;&amp;(e.off(&quot;render&quot;,r),setTimeout(t,10))}))},_.rejectOnError=function(t){var e=this.map;function r(){t(new Error(y.mapOnErrorMsg))}e.once(&quot;error&quot;,r),e.once(&quot;style.error&quot;,r),e.once(&quot;source.error&quot;,r),e.once(&quot;tile.error&quot;,r),e.once(&quot;layer.error&quot;,r)},_.createFramework=function(t){var e=this,r=e.div=document.createElement(&quot;div&quot;);r.id=e.uid,r.style.position=&quot;absolute&quot;,e.container.appendChild(r),e.xaxis={_id:&quot;x&quot;,c2p:function(t){return e.project(t).x}},e.yaxis={_id:&quot;y&quot;,c2p:function(t){return e.project(t).y}},e.updateFramework(t),e.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},s.setConvert(e.mockAxis,t)},_.initFx=function(t,e){var r=this,n=r.gd,i=r.map;function a(){c.loneUnhover(e._hoverlayer)}function s(){var t=r.getView();n.emit(&quot;plotly_relayouting&quot;,r.getViewEditsWithDerived(t))}i.on(&quot;moveend&quot;,(function(t){if(r.map){var e=n._fullLayout;if(t.originalEvent||r.wheeling){var i=e[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,e._preGUI,r.getViewEdits(i));var a=r.getView();i._input.center=i.center=a.center,i._input.zoom=i.zoom=a.zoom,i._input.bearing=i.bearing=a.bearing,i._input.pitch=i.pitch=a.pitch,n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))}t.originalEvent&amp;&amp;&quot;mouseup&quot;===t.originalEvent.type?r.dragging=!1:r.wheeling&amp;&amp;(r.wheeling=!1),e._rehover&amp;&amp;e._rehover()}})),i.on(&quot;wheel&quot;,(function(){r.wheeling=!0})),i.on(&quot;mousemove&quot;,(function(t){var e=r.div.getBoundingClientRect(),a=[t.originalEvent.offsetX,t.originalEvent.offsetY];t.target.getBoundingClientRect=function(){return e},r.xaxis.p2c=function(){return i.unproject(a).lng},r.yaxis.p2c=function(){return i.unproject(a).lat},n._fullLayout._rehover=function(){n._fullLayout._hoversubplot===r.id&amp;&amp;n._fullLayout[r.id]&amp;&amp;c.hover(n,t,r.id)},c.hover(n,t,r.id),n._fullLayout._hoversubplot=r.id})),i.on(&quot;dragstart&quot;,(function(){r.dragging=!0,a()})),i.on(&quot;zoomstart&quot;,a),i.on(&quot;mouseout&quot;,(function(){n._fullLayout._hoversubplot=null})),i.on(&quot;drag&quot;,s),i.on(&quot;zoom&quot;,s),i.on(&quot;dblclick&quot;,(function(){var t=n._fullLayout[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,n._fullLayout._preGUI,r.getViewEdits(t));var e=r.viewInitial;i.setCenter(A(e.center)),i.setZoom(e.zoom),i.setBearing(e.bearing),i.setPitch(e.pitch);var a=r.getView();t._input.center=t.center=a.center,t._input.zoom=t.zoom=a.zoom,t._input.bearing=t.bearing=a.bearing,t._input.pitch=t.pitch=a.pitch,n.emit(&quot;plotly_doubleclick&quot;,null),n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))})),r.clearSelect=function(){m(r.dragOptions),g(r.dragOptions.gd)},r.onClickInPanFn=function(t){return function(e){var i=n._fullLayout.clickmode;i.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;v(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(n,e.originalEvent)}}},_.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=f(o)?function(t,r){(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(&quot;click&quot;,e.onClickInPanHandler),p(o)||h(o)?(r.dragPan.disable(),r.on(&quot;zoomstart&quot;,e.clearSelect),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off(&quot;zoomstart&quot;,e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(&quot;click&quot;,e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},_.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+&quot;px&quot;,n.height=r.h*(e.y[1]-e.y[0])+&quot;px&quot;,n.left=r.l+e.x[0]*r.w+&quot;px&quot;,n.top=r.t+(1-e.y[1])*r.h+&quot;px&quot;,this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},_.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e&lt;n.length;e++)n[e].dispose();for(n=this.layerList=[],e=0;e&lt;r.length;e++)n.push(x(this,e,r[e]))}else for(e=0;e&lt;r.length;e++)n[e].update(r[e])},_.destroy=function(){this.map&amp;&amp;(this.map.remove(),this.map=null,this.container.removeChild(this.div))},_.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},_.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},_.getMapLayers=function(){return this.map.getStyle().layers},_.addLayer=function(t,e){var r=this.map;if(&quot;string&quot;==typeof e){if(&quot;&quot;===e)return void r.addLayer(t,e);for(var n=this.getMapLayers(),a=0;a&lt;n.length;a++)if(e===n[a].id)return void r.addLayer(t,e);i.warn([&quot;Trying to add layer with *below* value&quot;,e,&quot;referencing a layer that does not exist&quot;,&quot;or that does not yet exist.&quot;].join(&quot; &quot;))}r.addLayer(t)},_.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},_.getView=function(){var t=this.map,e=t.getCenter(),r={lon:e.lng,lat:e.lat},n=t.getCanvas(),i=n.width,a=n.height;return{center:r,zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch(),_derived:{coordinates:[t.unproject([0,0]).toArray(),t.unproject([i,0]).toArray(),t.unproject([i,a]).toArray(),t.unproject([0,a]).toArray()]}}},_.getViewEdits=function(t){for(var e=this.id,r=[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;],n={},i=0;i&lt;r.length;i++){var a=r[i];n[e+&quot;.&quot;+a]=t[a]}return n},_.getViewEditsWithDerived=function(t){var e=this.id,r=this.getViewEdits(t);return r[e+&quot;._derived&quot;]=t._derived,r},e.exports=b},{&quot;../../components/dragelement&quot;:685,&quot;../../components/dragelement/helpers&quot;:684,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../lib/geo_location_utils&quot;:796,&quot;../../registry&quot;:931,&quot;../cartesian/axes&quot;:854,&quot;../cartesian/select&quot;:874,&quot;./constants&quot;:909,&quot;./layers&quot;:912,&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;:461}],916:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType;return{t:{valType:&quot;number&quot;,dflt:0,editType:e},r:{valType:&quot;number&quot;,dflt:0,editType:e},b:{valType:&quot;number&quot;,dflt:0,editType:e},l:{valType:&quot;number&quot;,dflt:0,editType:e},editType:e}}},{}],917:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-time-format&quot;).timeFormatLocale,a=t(&quot;d3-format&quot;).formatLocale,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;../registry&quot;),l=t(&quot;../plot_api/plot_schema&quot;),c=t(&quot;../plot_api/plot_template&quot;),u=t(&quot;../lib&quot;),f=t(&quot;../components/color&quot;),h=t(&quot;../constants/numerical&quot;).BADNUM,p=t(&quot;./cartesian/axis_ids&quot;),d=t(&quot;./cartesian/handle_outline&quot;).clearSelect,g=t(&quot;./animation_attributes&quot;),m=t(&quot;./frame_attributes&quot;),v=t(&quot;../plots/get_data&quot;).getModuleCalcData,y=u.relinkPrivateKeys,x=u._,b=e.exports={};u.extendFlat(b,s),b.attributes=t(&quot;./attributes&quot;),b.attributes.type.values=b.allTypes,b.fontAttrs=t(&quot;./font_attributes&quot;),b.layoutAttributes=t(&quot;./layout_attributes&quot;),b.fontWeight=&quot;normal&quot;;var _=b.transformsRegistry,w=t(&quot;./command&quot;);b.executeAPICommand=w.executeAPICommand,b.computeAPICommandBindings=w.computeAPICommandBindings,b.manageCommandObserver=w.manageCommandObserver,b.hasSimpleAPICommandBindings=w.hasSimpleAPICommandBindings,b.redrawText=function(t){return t=u.getGraphDiv(t),new Promise((function(e){setTimeout((function(){t._fullLayout&amp;&amp;(s.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),s.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),s.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),e(b.previousPromises(t)))}),300)}))},b.resize=function(t){var e;t=u.getGraphDiv(t);var r=new Promise((function(r,n){t&amp;&amp;!u.isHidden(t)||n(new Error(&quot;Resize must be passed a displayed plot div element.&quot;)),t._redrawTimer&amp;&amp;clearTimeout(t._redrawTimer),t._resolveResize&amp;&amp;(e=t._resolveResize),t._resolveResize=r,t._redrawTimer=setTimeout((function(){if(!t.layout||t.layout.width&amp;&amp;t.layout.height||u.isHidden(t))r(t);else{delete t.layout.width,delete t.layout.height;var e=t.changed;t.autoplay=!0,s.call(&quot;relayout&quot;,t,{autosize:!0}).then((function(){t.changed=e,t._resolveResize===r&amp;&amp;(delete t._resolveResize,r(t))}))}}),100)}));return e&amp;&amp;e(r),r},b.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then((function(){t._promises=[]}))},b.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=u.ensureSingle(e._paper,&quot;text&quot;,&quot;js-plot-link-container&quot;,(function(t){t.style({&quot;font-family&quot;:'&quot;Open Sans&quot;, Arial, sans-serif',&quot;font-size&quot;:&quot;12px&quot;,fill:f.defaultLine,&quot;pointer-events&quot;:&quot;all&quot;}).each((function(){var t=n.select(this);t.append(&quot;tspan&quot;).classed(&quot;js-link-to-tool&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-link-spacer&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-sourcelinks&quot;,!0)}))})),i=r.node(),a={y:e._paper.attr(&quot;height&quot;)-9};document.body.contains(i)&amp;&amp;i.getComputedTextLength()&gt;=e.width-20?(a[&quot;text-anchor&quot;]=&quot;start&quot;,a.x=5):(a[&quot;text-anchor&quot;]=&quot;end&quot;,a.x=e._paper.attr(&quot;width&quot;)-7),r.attr(a);var o=r.select(&quot;.js-link-to-tool&quot;),s=r.select(&quot;.js-link-spacer&quot;),l=r.select(&quot;.js-sourcelinks&quot;);t._context.showSources&amp;&amp;t._context.showSources(t),t._context.showLink&amp;&amp;function(t,e){e.text(&quot;&quot;);var r=e.append(&quot;a&quot;).attr({&quot;xlink:xlink:href&quot;:&quot;#&quot;,class:&quot;link--impt link--embedview&quot;,&quot;font-weight&quot;:&quot;bold&quot;}).text(t._context.linkText+&quot; &quot;+String.fromCharCode(187));if(t._context.sendData)r.on(&quot;click&quot;,(function(){b.sendDataToCloud(t)}));else{var n=window.location.pathname.split(&quot;/&quot;),i=window.location.search;r.attr({&quot;xlink:xlink:show&quot;:&quot;new&quot;,&quot;xlink:xlink:href&quot;:&quot;/&quot;+n[2].split(&quot;.&quot;)[0]+&quot;/&quot;+n[1]+i})}}(t,o),s.text(o.text()&amp;&amp;l.text()?&quot; - &quot;:&quot;&quot;)}},b.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit(&quot;plotly_beforeexport&quot;);var r=n.select(t).append(&quot;div&quot;).attr(&quot;id&quot;,&quot;hiddenform&quot;).style(&quot;display&quot;,&quot;none&quot;),i=r.append(&quot;form&quot;).attr({action:e+&quot;/external&quot;,method:&quot;post&quot;,target:&quot;_blank&quot;});return i.append(&quot;input&quot;).attr({type:&quot;text&quot;,name:&quot;data&quot;}).node().value=b.graphJson(t,!1,&quot;keepdata&quot;),i.node().submit(),r.remove(),t.emit(&quot;plotly_afterexport&quot;),!1}};var T=[&quot;days&quot;,&quot;shortDays&quot;,&quot;months&quot;,&quot;shortMonths&quot;,&quot;periods&quot;,&quot;dateTime&quot;,&quot;date&quot;,&quot;time&quot;,&quot;decimal&quot;,&quot;thousands&quot;,&quot;grouping&quot;,&quot;currency&quot;],k=[&quot;year&quot;,&quot;month&quot;,&quot;dayMonth&quot;,&quot;dayMonthYear&quot;];function A(t,e){var r=t._context.locale;r||(r=&quot;en-US&quot;);var n=!1,i={};function a(t){for(var r=!0,a=0;a&lt;e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&amp;&amp;(n=!0)}for(var o=0;o&lt;2;o++){for(var l=t._context.locales,c=0;c&lt;2;c++){var u=(l[r]||{}).format;if(u&amp;&amp;(a(u),n))break;l=s.localeRegistry}var f=r.split(&quot;-&quot;)[0];if(n||f===r)break;r=f}return n||a(s.localeRegistry.en.format),i}function M(t,e){var r={_fullLayout:e},n=&quot;x&quot;===t._id.charAt(0),i=t._mainAxis._anchorAxis,a=&quot;&quot;,o=&quot;&quot;,s=&quot;&quot;;if(i&amp;&amp;(s=i._mainAxis._id,a=n?t._id+s:s+t._id),!a||!e._plots[a]){a=&quot;&quot;;for(var l=t._counterAxes,c=0;c&lt;l.length;c++){var u=l[c],f=n?t._id+u:u+t._id;o||(o=f);var h=p.getFromId(r,u);if(s&amp;&amp;h.overlaying===s){a=f;break}}}return a||o}function S(t){var e=t.transforms;if(Array.isArray(e)&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++){var n=e[r],i=n._module||_[n.type];if(i&amp;&amp;i.makesData)return!0}return!1}function E(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o&lt;i.length;o++){var s=i[o],l=_[s.type];l&amp;&amp;l.transform&amp;&amp;(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function L(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;px&quot;===t.substr(t.length-2)&amp;&amp;parseFloat(t)}function C(t){var e=t.margin;if(!t._size){var r=t._size={l:Math.round(e.l),r:Math.round(e.r),t:Math.round(e.t),b:Math.round(e.b),p:Math.round(e.pad)};r.w=Math.round(t.width)-r.l-r.r,r.h=Math.round(t.height)-r.t-r.b}t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}b.supplyDefaults=function(t,e){var r=e&amp;&amp;e.skipUpdateCalc,n=t._fullLayout||{};if(n._skipDefaults)delete n._skipDefaults;else{var o,l=t._fullLayout={},c=t.layout||{},f=t._fullData||[],h=t._fullData=[],p=t.data||[],g=t.calcdata||[],m=t._context||{};t._transitionData||b.createTransitionData(t),l._dfltTitle={plot:x(t,&quot;Click to enter Plot title&quot;),x:x(t,&quot;Click to enter X axis title&quot;),y:x(t,&quot;Click to enter Y axis title&quot;),colorbar:x(t,&quot;Click to enter Colorscale title&quot;),annotation:x(t,&quot;new text&quot;)},l._traceWord=x(t,&quot;trace&quot;);var v=A(t,T);if(l._mapboxAccessToken=m.mapboxAccessToken,n._initialAutoSizeIsDone){var _=n.width,w=n.height;b.supplyLayoutGlobalDefaults(c,l,v),c.width||(l.width=_),c.height||(l.height=w),b.sanitizeMargins(l)}else{b.supplyLayoutGlobalDefaults(c,l,v);var M=!c.width||!c.height,S=l.autosize,E=m.autosizable;M&amp;&amp;(S||E)?b.plotAutoSize(t,c,l):M&amp;&amp;b.sanitizeMargins(l),!S&amp;&amp;M&amp;&amp;(c.width=l.width,c.height=l.height)}l._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),{numberFormat:function(e){try{e=a(t).format(u.adjustFormat(e))}catch(t){return u.warnBadFormat(e),u.noFormat}return e},timeFormat:i(t).utcFormat}}(v,l.separators),l._extraFormat=A(t,k),l._initialAutoSizeIsDone=!0,l._dataLength=p.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var L=l._subplots=function(){var t,e,r=s.collectableSubplotTypes,n={};if(!r){r=[];var i=s.subplotsRegistry;for(var a in i){var o=i[a].attr;if(o&amp;&amp;(r.push(a),Array.isArray(o)))for(e=0;e&lt;o.length;e++)u.pushUnique(r,o[e])}}for(t=0;t&lt;r.length;t++)n[r[t]]=[];return n}(),P=l._splomAxes={x:{},y:{}},I=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r&lt;t.length;r++){var o=t[r]._fullInput;o!==n&amp;&amp;a.push(o),n=o}var s=a.length,l=new Array(i),c={};function f(t,e){l[e]=t,c[t]=1}function h(t,e){if(t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;!c[t])return f(t,e),!0}for(r=0;r&lt;i;r++){var p=e[r].uid;&quot;number&quot;==typeof p&amp;&amp;(p=String(p)),h(p,r)||(r&lt;s&amp;&amp;h(a[r].uid,r)||f(u.randstr(c),r))}return l}(f,p),l._globalTransforms=(t._context||{}).globalTransforms,b.supplyDataDefaults(p,h,c,l);var O=Object.keys(P.x),z=Object.keys(P.y);if(O.length&gt;1&amp;&amp;z.length&gt;1){for(s.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(c,l),o=0;o&lt;O.length;o++)u.pushUnique(L.xaxis,O[o]);for(o=0;o&lt;z.length;o++)u.pushUnique(L.yaxis,z[o]);for(var D in I)u.pushUnique(L.cartesian,D)}if(l._has=b._hasPlotType.bind(l),f.length===h.length)for(o=0;o&lt;h.length;o++)y(h[o],f[o]);b.supplyLayoutModuleDefaults(c,l,h,t._transitionData);var R=l._visibleModules,F=[];for(o=0;o&lt;R.length;o++){var B=R[o].crossTraceDefaults;B&amp;&amp;u.pushUnique(F,B)}for(o=0;o&lt;F.length;o++)F[o](h,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&amp;&amp;&quot;splom&quot;===l._basePlotModules[0].name&amp;&amp;O.length&gt;15&amp;&amp;z.length&gt;15&amp;&amp;0===l.shapes.length&amp;&amp;0===l.images.length,b.linkSubplots(h,l,f,n),b.cleanPlot(h,l,f,n);var N=!(!n._has||!n._has(&quot;gl2d&quot;)),j=!(!l._has||!l._has(&quot;gl2d&quot;)),U=!(!n._has||!n._has(&quot;cartesian&quot;))||N,V=!(!l._has||!l._has(&quot;cartesian&quot;))||j;U&amp;&amp;!V?n._bgLayer.remove():V&amp;&amp;!U&amp;&amp;(l._shouldCreateBgLayer=!0),n._zoomlayer&amp;&amp;!t._dragging&amp;&amp;d({_fullLayout:n}),function(t,e){var r,n=[];e.meta&amp;&amp;(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i&lt;t.length;i++){var a=t[i];a.meta?n[a.index]=a._meta={meta:a.meta}:e.meta&amp;&amp;(a._meta={meta:e.meta}),e.meta&amp;&amp;(a._meta.layout={meta:e.meta})}n.length&amp;&amp;(r||(r=e._meta={}),r.data=n)}(h,l),y(l,n),s.getComponentMethod(&quot;colorscale&quot;,&quot;crossTraceDefaults&quot;)(h,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var q,H=l._tracePreGUI,G={};for(q in H)G[q]=&quot;old&quot;;for(o=0;o&lt;h.length;o++)G[q=h[o]._fullInput.uid]||(H[q]={}),G[q]=&quot;new&quot;;for(q in G)&quot;old&quot;===G[q]&amp;&amp;delete H[q];C(l),s.getComponentMethod(&quot;rangeslider&quot;,&quot;makeData&quot;)(l),r||g.length!==h.length||b.supplyDefaultsUpdateCalc(g,h)}},b.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=(t[r]||[])[0];if(i&amp;&amp;i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,l,c=a._arrayAttrs;for(o=0;o&lt;c.length;o++)s=c[o],l=u.nestedProperty(a,s).get().slice(),u.nestedProperty(n,s).set(l)}i.trace=n}}},b.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},b._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e&lt;r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e&lt;n.length;e++){var i=n[e].name;if(i===t)return!0;var a=s.modules[i];if(a&amp;&amp;a.categories[t])return!0}return!1},b.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i&lt;o.length;i++){var s=o[i];s.clean&amp;&amp;s.clean(t,e,r,n)}var l=n._has&amp;&amp;n._has(&quot;gl&quot;),c=e._has&amp;&amp;e._has(&quot;gl&quot;);l&amp;&amp;!c&amp;&amp;void 0!==n._glcontainer&amp;&amp;(n._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),n._glcontainer.selectAll(&quot;.no-webgl&quot;).remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i&lt;r.length;i++){var f=r[i].uid;for(a=0;a&lt;t.length;a++){if(f===t[a].uid)continue t}u&amp;&amp;n._infolayer.select(&quot;.cb&quot;+f).remove()}},b.linkSubplots=function(t,e,r,n){var i,a,o=n._plots||{},l=e._plots={},c=e._subplots,f={_fullData:t,_fullLayout:e},h=c.cartesian.concat(c.gl2d||[]);for(i=0;i&lt;h.length;i++){var d,g=h[i],m=o[g],v=p.getFromId(f,g,&quot;x&quot;),y=p.getFromId(f,g,&quot;y&quot;);for(m?d=l[g]=m:(d=l[g]={}).id=g,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(g),y._subplotsWith.push(g),d.xaxis=v,d.yaxis=y,d._hasClipOnAxisFalse=!1,a=0;a&lt;t.length;a++){var x=t[a];if(x.xaxis===d.xaxis._id&amp;&amp;x.yaxis===d.yaxis._id&amp;&amp;!1===x.cliponaxis){d._hasClipOnAxisFalse=!0;break}}}var b,_=p.list(f,null,!0);for(i=0;i&lt;_.length;i++){var w=null;(b=_[i]).overlaying&amp;&amp;(w=p.getFromId(f,b.overlaying))&amp;&amp;w.overlaying&amp;&amp;(b.overlaying=!1,w=null),b._mainAxis=w||b,w&amp;&amp;(b.domain=w.domain.slice()),b._anchorAxis=&quot;free&quot;===b.anchor?null:p.getFromId(f,b.anchor)}for(i=0;i&lt;_.length;i++)if((b=_[i])._counterAxes.sort(p.idSort),b._subplotsWith.sort(u.subplotSort),b._mainSubplot=M(b,e),b._counterAxes.length&amp;&amp;(b.spikemode&amp;&amp;-1!==b.spikemode.indexOf(&quot;across&quot;)||b.automargin&amp;&amp;b.mirror&amp;&amp;&quot;free&quot;!==b.anchor||s.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(b))){var T=1,k=0;for(a=0;a&lt;b._counterAxes.length;a++){var A=p.getFromId(f,b._counterAxes[a]);T=Math.min(T,A.domain[0]),k=Math.max(k,A.domain[1])}T&lt;k&amp;&amp;(b._counterDomainMin=T,b._counterDomainMax=k)}},b.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],l.crawl(t._module.attributes,(function(t,n,i,a){r[a]=n,r.length=a+1,&quot;color&quot;===t.valType&amp;&amp;void 0===t.dflt&amp;&amp;e.push(r.join(&quot;.&quot;))}))),n=0;n&lt;e.length;n++){u.nestedProperty(t,&quot;_input.&quot;+e[n]).get()||u.nestedProperty(t,e[n]).set(null)}},b.supplyDataDefaults=function(t,e,r,n){var i,a,o,l=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,d=0;function g(t){e.push(t);var r=t._module;r&amp;&amp;(u.pushUnique(l,r),!0===t.visible&amp;&amp;u.pushUnique(f,r),u.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&amp;&amp;d++)}n._transformModules=[];var m={},v=[],x=(r.template||{}).data||{},_=c.traceTemplater(x);for(i=0;i&lt;t.length;i++){if(o=t[i],(a=_.newTrace(o)).uid=n._traceUids[i],b.supplyTraceDefaults(o,a,d,n,i),a.index=i,a._input=o,a._expandedIndex=p,a.transforms&amp;&amp;a.transforms.length)for(var w=!1!==o.visible&amp;&amp;!1===a.visible,T=E(a,e,r,n),k=0;k&lt;T.length;k++){var A=T[k],M={_template:a._template,type:a.type,uid:a.uid+k};w&amp;&amp;!1===A.visible&amp;&amp;delete A.visible,b.supplyTraceDefaults(A,M,p,n,i),y(M,A),M.index=i,M._input=o,M._fullInput=a,M._expandedIndex=p,M._expandedInput=A,g(M)}else a._fullInput=a,a._expandedInput=a,g(a);s.traceIs(a,&quot;carpetAxis&quot;)&amp;&amp;(m[a.carpet]=a),s.traceIs(a,&quot;carpetDependent&quot;)&amp;&amp;v.push(i)}for(i=0;i&lt;v.length;i++)if((a=e[v[i]]).visible){var S=m[a.carpet];a._carpet=S,S&amp;&amp;S.visible?(a.xaxis=S.xaxis,a.yaxis=S.yaxis):a.visible=!1}},b.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return u.coerce(t||{},r,g,e,n)}if(n(&quot;mode&quot;),n(&quot;direction&quot;),n(&quot;fromcurrent&quot;),Array.isArray(t.frame))for(r.frame=[],e=0;e&lt;t.frame.length;e++)r.frame[e]=b.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=b.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e&lt;t.transition.length;e++)r.transition[e]=b.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=b.supplyAnimationTransitionDefaults(t.transition||{});return r},b.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return u.coerce(t||{},e,g.frame,r,n)}return r(&quot;duration&quot;),r(&quot;redraw&quot;),e},b.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return u.coerce(t||{},e,g.transition,r,n)}return r(&quot;duration&quot;),r(&quot;easing&quot;),e},b.supplyFrameDefaults=function(t){var e={};function r(r,n){return u.coerce(t,e,m,r,n)}return r(&quot;group&quot;),r(&quot;name&quot;),r(&quot;traces&quot;),r(&quot;baseframe&quot;),r(&quot;data&quot;),r(&quot;layout&quot;),e},b.supplyTraceDefaults=function(t,e,r,n,i){var a,o=n.colorway||f.defaults,l=o[r%o.length];function c(r,n){return u.coerce(t,e,b.attributes,r,n)}var h=c(&quot;visible&quot;);c(&quot;type&quot;),c(&quot;name&quot;,n._traceWord+&quot; &quot;+i),c(&quot;uirevision&quot;,n.uirevision);var p=b.getModule(e);if(e._module=p,p){var d=p.basePlotModule,g=d.attr,m=d.attributes;if(g&amp;&amp;m){var v=n._subplots,y=&quot;&quot;;if(h||&quot;gl2d&quot;!==d.name){if(Array.isArray(g))for(a=0;a&lt;g.length;a++){var x=g[a],_=u.coerce(t,e,m,x);v[x]&amp;&amp;u.pushUnique(v[x],_),y+=_}else y=u.coerce(t,e,m,g);v[d.name]&amp;&amp;u.pushUnique(v[d.name],y)}}}if(h){if(c(&quot;customdata&quot;),c(&quot;ids&quot;),c(&quot;meta&quot;),s.traceIs(e,&quot;showLegend&quot;))u.coerce(t,e,p.attributes.showlegend?p.attributes:b.attributes,&quot;showlegend&quot;),c(&quot;legendgroup&quot;),c(&quot;legendgrouptitle.text&quot;)&amp;&amp;u.coerceFont(c,&quot;legendgrouptitle.font&quot;,u.extendFlat({},n.font,{size:Math.round(1.1*n.font.size)})),c(&quot;legendrank&quot;),e._dfltShowLegend=!0;else e._dfltShowLegend=!1;p&amp;&amp;p.supplyDefaults(t,e,l,n),s.traceIs(e,&quot;noOpacity&quot;)||c(&quot;opacity&quot;),s.traceIs(e,&quot;notLegendIsolatable&quot;)&amp;&amp;(e.visible=!!e.visible),s.traceIs(e,&quot;noHover&quot;)||(e.hovertemplate||u.coerceHoverinfo(t,e,n),&quot;parcats&quot;!==e.type&amp;&amp;s.getComponentMethod(&quot;fx&quot;,&quot;supplyDefaults&quot;)(t,e,l,n)),p&amp;&amp;p.selectPoints&amp;&amp;c(&quot;selectedpoints&quot;),b.supplyTransformDefaults(t,e,n)}return e},b.hasMakesDataTransform=S,b.supplyTransformDefaults=function(t,e,r){if(e._length||S(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l&lt;o.length;l++){var c,f=o[l],h=f.type,p=_[h],d=!(f._module&amp;&amp;f._module===p),g=p&amp;&amp;&quot;function&quot;==typeof p.transform;p||u.warn(&quot;Unrecognized transform type &quot;+h+&quot;.&quot;),p&amp;&amp;p.supplyDefaults&amp;&amp;(d||g)?((c=p.supplyDefaults(f,e,r,t)).type=h,c._module=p,u.pushUnique(i,p)):c=u.extendFlat({},f),s.push(c)}}},b.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return u.coerce(t,e,b.layoutAttributes,r,n)}var i=t.template;u.isPlainObject(i)&amp;&amp;(e.template=i,e._template=i.layout,e._dataTemplate=i.data),n(&quot;autotypenumbers&quot;);var a=u.coerceFont(n,&quot;font&quot;);n(&quot;title.text&quot;,e._dfltTitle.plot),u.coerceFont(n,&quot;title.font&quot;,{family:a.family,size:Math.round(1.4*a.size),color:a.color}),n(&quot;title.xref&quot;),n(&quot;title.yref&quot;),n(&quot;title.x&quot;),n(&quot;title.y&quot;),n(&quot;title.xanchor&quot;),n(&quot;title.yanchor&quot;),n(&quot;title.pad.t&quot;),n(&quot;title.pad.r&quot;),n(&quot;title.pad.b&quot;),n(&quot;title.pad.l&quot;),n(&quot;uniformtext.mode&quot;)&amp;&amp;n(&quot;uniformtext.minsize&quot;),n(&quot;autosize&quot;,!(t.width&amp;&amp;t.height)),n(&quot;width&quot;),n(&quot;height&quot;),n(&quot;margin.l&quot;),n(&quot;margin.r&quot;),n(&quot;margin.t&quot;),n(&quot;margin.b&quot;),n(&quot;margin.pad&quot;),n(&quot;margin.autoexpand&quot;),t.width&amp;&amp;t.height&amp;&amp;b.sanitizeMargins(e),s.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(t,e),n(&quot;paper_bgcolor&quot;),n(&quot;separators&quot;,r.decimal+r.thousands),n(&quot;hidesources&quot;),n(&quot;colorway&quot;),n(&quot;datarevision&quot;);var o=n(&quot;uirevision&quot;);n(&quot;editrevision&quot;,o),n(&quot;selectionrevision&quot;,o),s.getComponentMethod(&quot;modebar&quot;,&quot;supplyLayoutDefaults&quot;)(t,e),s.getComponentMethod(&quot;shapes&quot;,&quot;supplyDrawNewShapeDefaults&quot;)(t,e,n),n(&quot;meta&quot;),u.isPlainObject(t.transition)&amp;&amp;(n(&quot;transition.duration&quot;),n(&quot;transition.easing&quot;),n(&quot;transition.ordering&quot;)),s.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;),s.getComponentMethod(&quot;fx&quot;,&quot;supplyLayoutGlobalDefaults&quot;)(t,e,n)},b.plotAutoSize=function(t,e,r){var n,i,a=t._context||{},s=a.frameMargins,l=u.isPlotDiv(t);if(l&amp;&amp;t.emit(&quot;plotly_autosize&quot;),a.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=&quot;hidden&quot;;else{var c=l?window.getComputedStyle(t):{};if(n=L(c.width)||L(c.maxWidth)||r.width,i=L(c.height)||L(c.maxHeight)||r.height,o(s)&amp;&amp;s&gt;0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var h=b.layoutAttributes.width.min,p=b.layoutAttributes.height.min;n&lt;h&amp;&amp;(n=h),i&lt;p&amp;&amp;(i=p);var d=!e.width&amp;&amp;Math.abs(r.width-n)&gt;1,g=!e.height&amp;&amp;Math.abs(r.height-i)&gt;1;(g||d)&amp;&amp;(d&amp;&amp;(r.width=n),g&amp;&amp;(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),b.sanitizeMargins(r)},b.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,o,l=s.componentsRegistry,c=e._basePlotModules,f=s.subplotsRegistry.cartesian;for(i in l)(o=l[i]).includeBasePlot&amp;&amp;o.includeBasePlot(t,e);for(var h in c.length||c.push(f),e._has(&quot;cartesian&quot;)&amp;&amp;(s.getComponentMethod(&quot;grid&quot;,&quot;contentDefaults&quot;)(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(u.subplotSort);for(a=0;a&lt;c.length;a++)(o=c[a]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r);var p=e._modules;for(a=0;a&lt;p.length;a++)(o=p[a]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(a=0;a&lt;d.length;a++)(o=d[a]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r,n);for(i in l)(o=l[i]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r)},b.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&amp;&amp;(e._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),e._glcontainer.remove(),e._glcanvas=null),e._modeBar&amp;&amp;e._modeBar.destroy(),t._transitionData&amp;&amp;(t._transitionData._interruptCallbacks&amp;&amp;(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&amp;&amp;window.cancelAnimationFrame(t._transitionData._animationRaf)),u.clearThrottle(),u.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._dragdata,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&amp;&amp;t.removeAllListeners()},b.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e&lt;r.length;e++){var i=r[e];i.style&amp;&amp;u.pushUnique(n,i.style)}for(e=0;e&lt;n.length;e++)n[e](t)},b.sanitizeMargins=function(t){if(t&amp;&amp;t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a&lt;0&amp;&amp;(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o&lt;0&amp;&amp;(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},b.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},b.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1};b.autoMargin=function(t,e,r){var n=t._fullLayout,i=n.width,a=n.height,o=n.margin,s=u.constrain(i-o.l-o.r,2,64),l=u.constrain(a-o.t-o.b,2,64),c=Math.max(0,i-s),f=Math.max(0,a-l),h=n._pushmargin,p=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var d=r.pad;if(void 0===d&amp;&amp;(d=Math.min(12,o.l,o.r,o.t,o.b)),c){var g=(r.l+r.r)/c;g&gt;1&amp;&amp;(r.l/=g,r.r/=g)}if(f){var m=(r.t+r.b)/f;m&gt;1&amp;&amp;(r.t/=m,r.b/=m)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,x=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:v,size:r.l+d},r:{val:y,size:r.r+d},b:{val:_,size:r.b+d},t:{val:x,size:r.t+d}},p[e]=1}else delete h[e],delete p[e];if(!n._replotting)return b.doAutoMargin(t)}},b.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),C(e);var i=e._size,a=e.margin,l=u.extendFlat({},i),c=a.l,f=a.r,h=a.t,d=a.b,g=e._pushmargin,m=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in g)m[v]||delete g[v];for(var y in g.base={l:{val:0,size:c},r:{val:1,size:f},t:{val:1,size:h},b:{val:0,size:d}},g){var x=g[y].l||{},_=g[y].b||{},w=x.val,T=x.size,k=_.val,A=_.size;for(var M in g){if(o(T)&amp;&amp;g[M].r){var S=g[M].r.val,E=g[M].r.size;if(S&gt;w){var L=(T*S+(E-r)*w)/(S-w),P=(E*(1-w)+(T-r)*(1-S))/(S-w);L+P&gt;c+f&amp;&amp;(c=L,f=P)}}if(o(A)&amp;&amp;g[M].t){var I=g[M].t.val,O=g[M].t.size;if(I&gt;k){var z=(A*I+(O-n)*k)/(I-k),D=(O*(1-k)+(A-n)*(1-I))/(I-k);z+D&gt;d+h&amp;&amp;(d=z,h=D)}}}}}var R=u.constrain(r-a.l-a.r,2,64),F=u.constrain(n-a.t-a.b,2,64),B=Math.max(0,r-R),N=Math.max(0,n-F);if(B){var j=(c+f)/B;j&gt;1&amp;&amp;(c/=j,f/=j)}if(N){var U=(d+h)/N;U&gt;1&amp;&amp;(d/=U,h/=U)}if(i.l=Math.round(c),i.r=Math.round(f),i.t=Math.round(h),i.b=Math.round(d),i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&amp;&amp;b.didMarginChange(l,i)){&quot;_redrawFromAutoMarginCount&quot;in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(m).length);if(e._redrawFromAutoMarginCount&lt;V)return s.call(&quot;_doPlot&quot;,t);e._size=l,u.warn(&quot;Too many auto-margin redraws.&quot;)}!function(t){var e=p.list(t,&quot;&quot;,!0);[&quot;_adjustTickLabelsOverflow&quot;,&quot;_hideCounterAxisInsideTickLabels&quot;].forEach((function(t){for(var r=0;r&lt;e.length;r++){var n=e[r][t];n&amp;&amp;n()}}))}(t)};var P=[&quot;l&quot;,&quot;r&quot;,&quot;t&quot;,&quot;b&quot;,&quot;p&quot;,&quot;w&quot;,&quot;h&quot;];function I(t,e,r){var n=!1;var i=[b.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},r.prepareFn,b.rehover,function(){return t.emit(&quot;plotly_transitioning&quot;,[]),new Promise((function(i){t._transitioning=!0,e.duration&gt;0&amp;&amp;(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&amp;&amp;t._transitionData._interruptCallbacks.push((function(){return s.call(&quot;redraw&quot;,t)})),t._transitionData._interruptCallbacks.push((function(){t.emit(&quot;plotly_transitioninterrupted&quot;,[])}));var a=0,o=0;function l(){return a++,function(){o++,n||o!==a||function(e){if(!t._transitionData)return;(function(t){if(t)for(;t.length;)t.shift()})(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return s.call(&quot;redraw&quot;,t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(&quot;plotly_transitioned&quot;,[])})).then(e)}(i)}}r.runFn(l),setTimeout(l())}))}],a=u.syncOrAsync(i,t);return a&amp;&amp;a.then||(a=Promise.resolve()),a.then((function(){return t}))}b.didMarginChange=function(t,e){for(var r=0;r&lt;P.length;r++){var n=P[r],i=t[n],a=e[n];if(!o(i)||Math.abs(a-i)&gt;1)return!0}return!1},b.graphJson=function(t,e,r,n,i,a){(i&amp;&amp;e&amp;&amp;!t._fullData||i&amp;&amp;!e&amp;&amp;!t._fullLayout)&amp;&amp;b.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function c(t,e){if(&quot;function&quot;==typeof t)return e?&quot;_function_&quot;:null;if(u.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===[&quot;_&quot;,&quot;[&quot;].indexOf(a.charAt(0)))if(&quot;function&quot;!=typeof t[a]){if(&quot;keepdata&quot;===r){if(&quot;src&quot;===a.substr(a.length-3))return}else if(&quot;keepstream&quot;===r){if(&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0&amp;&amp;!u.isPlainObject(t.stream))return}else if(&quot;keepall&quot;!==r&amp;&amp;&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0)return;i[a]=c(t[a],e)}else e&amp;&amp;(i[a]=&quot;_function&quot;)})),i}return Array.isArray(t)?t.map((function(t){return c(t,e)})):u.isTypedArray(t)?u.simpleMap(t,u.identity):u.isJSDate(t)?u.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=c(t);return e&amp;&amp;delete r.fit,r}))};if(!e&amp;&amp;(f.layout=c(s),i)){var h=s._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return l&amp;&amp;(f.frames=c(l)),a&amp;&amp;(f.config=c(t._context,!0)),&quot;object&quot;===n?f:JSON.stringify(f)},b.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r&lt;e.length;r++)switch((n=e[r]).type){case&quot;replace&quot;:i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&amp;&amp;(delete o[s],o[l]=i);break;case&quot;insert&quot;:o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case&quot;delete&quot;:delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},b.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(&quot;computeFrame must be given a string frame name&quot;);var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&amp;&amp;(s=o[s.baseframe.toString()])&amp;&amp;-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&amp;&amp;(u.layout=b.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r&lt;s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r&lt;s.data.length;r++)null!=(i=n[r])&amp;&amp;(-1===(a=u.traces.indexOf(i))&amp;&amp;(a=u.data.length,u.traces[a]=i),u.data[a]=b.extendTrace(u.data[a],s.data[r]))}return u},b.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n&lt;r.length;n++){var i=r[n];i&amp;&amp;i.name&amp;&amp;(e[i.name]=i)}},b.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,c,f=u.extendDeepNoArrays({},e||{}),h=u.expandObjectPaths(f),p={};if(r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)void 0===(i=(n=u.nestedProperty(h,r[a])).get())?u.nestedProperty(p,r[a]).set(null):(n.set(null),u.nestedProperty(p,r[a]).set(i));if(t=u.extendDeepNoArrays(t||{},h),r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)if(l=u.nestedProperty(p,r[a]).get()){for(c=(s=u.nestedProperty(t,r[a])).get(),Array.isArray(c)||(c=[],s.set(c)),o=0;o&lt;l.length;o++){var d=l[o];c[o]=null===d?null:b.extendObjectWithContainers(c[o],d)}s.set(c)}return t},b.dataArrayContainers=[&quot;transforms&quot;,&quot;dimensions&quot;],b.layoutArrayContainers=s.layoutArrayContainers,b.extendTrace=function(t,e){return b.extendObjectWithContainers(t,e,b.dataArrayContainers)},b.extendLayout=function(t,e){return b.extendObjectWithContainers(t,e,b.layoutArrayContainers)},b.transition=function(t,e,r,n,i,a){var o={redraw:i.redraw},s={},l=[];return o.prepareFn=function(){for(var i=Array.isArray(e)?e.length:0,a=n.slice(0,i),o=0;o&lt;a.length;o++){var c=a[o],f=t._fullData[c]._module;if(f){if(f.animatable){var h=f.basePlotModule.name;s[h]||(s[h]=[]),s[h].push(c)}t.data[a[o]]=b.extendTrace(t.data[a[o]],e[o])}}var p=u.expandObjectPaths(u.extendDeepNoArrays({},r)),d=/^[xy]axis[0-9]*$/;for(var g in p)d.test(g)&amp;&amp;delete p[g].range;b.extendLayout(t.layout,p),delete t.calcdata,b.supplyDefaults(t),b.doCalcdata(t);var m=u.expandObjectPaths(r);if(m){var v=t._fullLayout._plots;for(var y in v){var x=v[y],_=x.xaxis,w=x.yaxis,T=_.range.slice(),k=w.range.slice(),A=null,M=null,S=null,E=null;Array.isArray(m[_._name+&quot;.range&quot;])?A=m[_._name+&quot;.range&quot;].slice():Array.isArray((m[_._name]||{}).range)&amp;&amp;(A=m[_._name].range.slice()),Array.isArray(m[w._name+&quot;.range&quot;])?M=m[w._name+&quot;.range&quot;].slice():Array.isArray((m[w._name]||{}).range)&amp;&amp;(M=m[w._name].range.slice()),T&amp;&amp;A&amp;&amp;(_.r2l(T[0])!==_.r2l(A[0])||_.r2l(T[1])!==_.r2l(A[1]))&amp;&amp;(S={xr0:T,xr1:A}),k&amp;&amp;M&amp;&amp;(w.r2l(k[0])!==w.r2l(M[0])||w.r2l(k[1])!==w.r2l(M[1]))&amp;&amp;(E={yr0:k,yr1:M}),(S||E)&amp;&amp;l.push(u.extendFlat({plotinfo:x},S,E))}}return Promise.resolve()},o.runFn=function(e){var n,i,o=t._fullLayout._basePlotModules,c=l.length;if(r)for(i=0;i&lt;o.length;i++)o[i].transitionAxes&amp;&amp;o[i].transitionAxes(t,l,a,e);for(var f in c?((n=u.extendFlat({},a)).duration=0,delete s.cartesian):n=a,s){var h=s[f];t._fullData[h[0]]._module.basePlotModule.plot(t,h,n,e)}},I(t,a,o)},b.transitionFromReact=function(t,e,r,n){var i=t._fullLayout,a=i.transition,o={},s=[];return o.prepareFn=function(){var t=i._plots;for(var a in o.redraw=!1,&quot;some&quot;===e.anim&amp;&amp;(o.redraw=!0),&quot;some&quot;===r.anim&amp;&amp;(o.redraw=!0),t){var l=t[a],c=l.xaxis,f=l.yaxis,h=n[c._name].range.slice(),p=n[f._name].range.slice(),d=c.range.slice(),g=f.range.slice();c.setScale(),f.setScale();var m=null,v=null;c.r2l(h[0])===c.r2l(d[0])&amp;&amp;c.r2l(h[1])===c.r2l(d[1])||(m={xr0:h,xr1:d}),f.r2l(p[0])===f.r2l(g[0])&amp;&amp;f.r2l(p[1])===f.r2l(g[1])||(v={yr0:p,yr1:g}),(m||v)&amp;&amp;s.push(u.extendFlat({plotinfo:l},m,v))}return Promise.resolve()},o.runFn=function(r){for(var n,i,o,l=t._fullData,c=t._fullLayout._basePlotModules,f=[],h=0;h&lt;l.length;h++)f.push(h);function p(){if(t._fullLayout)for(var e=0;e&lt;c.length;e++)c[e].transitionAxes&amp;&amp;c[e].transitionAxes(t,s,n,r)}function d(){if(t._fullLayout)for(var e=0;e&lt;c.length;e++)c[e].plot(t,o,i,r)}s.length&amp;&amp;e.anim?&quot;traces first&quot;===a.ordering?(n=u.extendFlat({},a,{duration:0}),o=f,i=a,setTimeout(p,a.duration),d()):(n=a,o=null,i=u.extendFlat({},a,{duration:0}),setTimeout(d,n.duration),p()):s.length?(n=a,p()):e.anim&amp;&amp;(o=f,i=a,d())},I(t,a,o)},b.doCalcdata=function(t,e){var r,n,i,a,o=p.list(t),c=t._fullData,f=t._fullLayout,d=new Array(c.length),g=(t.calcdata||[]).slice();for(t.calcdata=d,f._numBoxes=0,f._numViolins=0,f._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,f._piecolormap={},f._sunburstcolormap={},f._treemapcolormap={},f._iciclecolormap={},f._funnelareacolormap={},i=0;i&lt;c.length;i++)Array.isArray(e)&amp;&amp;-1===e.indexOf(i)&amp;&amp;(d[i]=g[i]);for(i=0;i&lt;c.length;i++)(r=c[i])._arrayAttrs=l.findArrayAttributes(r),r._extremes={};var m=f._subplots.polar||[];for(i=0;i&lt;m.length;i++)o.push(f[m[i]].radialaxis,f[m[i]].angularaxis);for(var v in f._colorAxes){var y=f[v];!1!==y.cauto&amp;&amp;(delete y.cmin,delete y.cmax)}var x=!1;function b(e){if(r=c[e],n=r._module,!0===r.visible&amp;&amp;r.transforms){if(n&amp;&amp;n.calc){var i=n.calc(t,r);i[0]&amp;&amp;i[0].t&amp;&amp;i[0].t._scene&amp;&amp;delete i[0].t._scene.dirty}for(a=0;a&lt;r.transforms.length;a++){var o=r.transforms[a];(n=_[o.type])&amp;&amp;n.calcTransform&amp;&amp;(r._hasCalcTransform=!0,x=!0,n.calcTransform(t,r,o))}}}function w(e,i){if(r=c[e],!!(n=r._module).isContainer===i){var o=[];if(!0===r.visible&amp;&amp;0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(a=s.length-1;a&gt;=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&amp;&amp;n.calc&amp;&amp;(o=n.calc(t,r))}Array.isArray(o)&amp;&amp;o[0]||(o=[{x:h,y:h}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(z(o,c,f),i=0;i&lt;c.length;i++)w(i,!0);for(i=0;i&lt;c.length;i++)b(i);for(x&amp;&amp;z(o,c,f),i=0;i&lt;c.length;i++)w(i,!0);for(i=0;i&lt;c.length;i++)w(i,!1);D(t);var T=function(t,e){var r,n,i,a,o,l=[];function c(t,r,n){var i=r._id.charAt(0);if(&quot;histogram2dcontour&quot;===t){var a=r._counterAxes[0],o=p.getFromId(e,a),s=&quot;x&quot;===i||&quot;x&quot;===a&amp;&amp;&quot;category&quot;===o.type,l=&quot;y&quot;===i||&quot;y&quot;===a&amp;&amp;&quot;category&quot;===o.type;return function(t,e){return 0===t||0===e||s&amp;&amp;t===n[e].length-1||l&amp;&amp;e===n.length-1?-1:(&quot;y&quot;===i?e:t)-1}}return function(t,e){return&quot;y&quot;===i?e:t}}var f={min:function(t){return u.aggNums(Math.min,null,t)},max:function(t){return u.aggNums(Math.max,null,t)},sum:function(t){return u.aggNums((function(t,e){return t+e}),null,t)},total:function(t){return u.aggNums((function(t,e){return t+e}),null,t)},mean:function(t){return u.mean(t)},median:function(t){return u.median(t)}};for(r=0;r&lt;t.length;r++){var h=t[r];if(&quot;category&quot;===h.type){var d=h.categoryorder.match(O);if(d){var g=d[1],m=d[2],v=h._id.charAt(0),y=&quot;x&quot;===v,x=[];for(n=0;n&lt;h._categories.length;n++)x.push([h._categories[n],[]]);for(n=0;n&lt;h._traceIndices.length;n++){var b=h._traceIndices[n],_=e._fullData[b];if(!0===_.visible){var w=_.type;s.traceIs(_,&quot;histogram&quot;)&amp;&amp;(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=&quot;splom&quot;===w,k=&quot;scattergl&quot;===w,A=e.calcdata[b];for(i=0;i&lt;A.length;i++){var M,S,E=A[i];if(T){var L=_._axesDim[h._id];if(!y){var C=_._diag[L][0];C&amp;&amp;(h=e._fullLayout[p.id2name(C)])}var P=E.trace.dimensions[L].values;for(a=0;a&lt;P.length;a++)for(M=h._categoriesMap[P[a]],o=0;o&lt;E.trace.dimensions.length;o++)if(o!==L){var I=E.trace.dimensions[o];x[M][1].push(I.values[a])}}else if(k){for(a=0;a&lt;E.t.x.length;a++)y?(M=E.t.x[a],S=E.t.y[a]):(M=E.t.y[a],S=E.t.x[a]),x[M][1].push(S);E.t&amp;&amp;E.t._scene&amp;&amp;delete E.t._scene.dirty}else if(E.hasOwnProperty(&quot;z&quot;)){S=E.z;var z=c(_.type,h,S);for(a=0;a&lt;S.length;a++)for(o=0;o&lt;S[a].length;o++)(M=z(o,a))+1&amp;&amp;x[M][1].push(S[a][o])}else for(void 0===(M=E.p)&amp;&amp;(M=E[v]),void 0===(S=E.s)&amp;&amp;(S=E.v),void 0===S&amp;&amp;(S=y?E.y:E.x),Array.isArray(S)||(S=void 0===S?[]:[S]),a=0;a&lt;S.length;a++)x[M][1].push(S[a])}}}h._categoriesValue=x;var D=[];for(n=0;n&lt;x.length;n++)D.push([x[n][0],f[g](x[n][1])]);D.sort((function(t,e){return t[1]-e[1]})),h._categoriesAggregatedValue=D,h._initialCategories=D.map((function(t){return t[0]})),&quot;descending&quot;===m&amp;&amp;h._initialCategories.reverse(),l=l.concat(h.sortByInitialCategories())}}}return l}(o,t);if(T.length){for(f._numBoxes=0,f._numViolins=0,i=0;i&lt;T.length;i++)w(T[i],!0);for(i=0;i&lt;T.length;i++)w(T[i],!1);D(t)}s.getComponentMethod(&quot;fx&quot;,&quot;calc&quot;)(t),s.getComponentMethod(&quot;errorbars&quot;,&quot;calc&quot;)(t)};var O=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(t,e,r){var n={};function i(t){t.clearCalc(),&quot;multicategory&quot;===t.type&amp;&amp;t.setupMultiCategory(e),n[t._id]=1}u.simpleMap(t,i);for(var a=r._axisMatchGroups||[],o=0;o&lt;a.length;o++)for(var s in a[o])n[s]||i(r[p.id2name(s)])}function D(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r&lt;a.length;r++){var s=a[r],l=s.crossTraceCalc;if(l){var c=s.basePlotModule.name;o[c]?u.pushUnique(o[c],l):o[c]=[l]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e&lt;h.length;e++){var p=h[e],d=&quot;cartesian&quot;===n?i._plots[p]:i[p];for(r=0;r&lt;f.length;r++)f[r](t,d,p)}else for(r=0;r&lt;f.length;r++)f[r](t)}}b.rehover=function(t){t._fullLayout._rehover&amp;&amp;t._fullLayout._rehover()},b.redrag=function(t){t._fullLayout._redrag&amp;&amp;t._fullLayout._redrag()},b.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i&lt;r.length;i++){var s=r[i],l=s[0].trace;l.visible&amp;&amp;(o[l.type]=o[l.type]||[],o[l.type].push(s))}for(var c in a)if(!o[c]){var f=a[c][0];f[0].trace.visible=!1,o[c]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,u.filterVisible(p),n)}e.traceHash=o},b.plotBasePlot=function(t,e,r,n,i){var a=s.getModule(t),o=v(e.calcdata,a)[0];a.plot(e,o,n,i)},b.cleanBasePlot=function(t,e,r,n,i){var a=i._has&amp;&amp;i._has(t),o=r._has&amp;&amp;r._has(t);a&amp;&amp;!o&amp;&amp;i[&quot;_&quot;+t+&quot;layer&quot;].selectAll(&quot;g.trace&quot;).remove()}},{&quot;../components/color&quot;:666,&quot;../constants/numerical&quot;:779,&quot;../lib&quot;:803,&quot;../plot_api/plot_schema&quot;:842,&quot;../plot_api/plot_template&quot;:843,&quot;../plots/get_data&quot;:891,&quot;../registry&quot;:931,&quot;./animation_attributes&quot;:848,&quot;./attributes&quot;:850,&quot;./cartesian/axis_ids&quot;:858,&quot;./cartesian/handle_outline&quot;:865,&quot;./command&quot;:881,&quot;./font_attributes&quot;:883,&quot;./frame_attributes&quot;:884,&quot;./layout_attributes&quot;:908,&quot;@plotly/d3&quot;:58,&quot;d3-format&quot;:167,&quot;d3-time-format&quot;:175,&quot;fast-isnumeric&quot;:249}],918:[function(t,e,r){&quot;use strict&quot;;e.exports={attr:&quot;subplot&quot;,name:&quot;polar&quot;,axisNames:[&quot;angularaxis&quot;,&quot;radialaxis&quot;],axisName2dataArray:{angularaxis:&quot;theta&quot;,radialaxis:&quot;r&quot;},layerNames:[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;angular-grid&quot;,&quot;radial-grid&quot;,&quot;frontplot&quot;,&quot;angular-line&quot;,&quot;radial-line&quot;,&quot;angular-axis&quot;,&quot;radial-axis&quot;],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],919:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/polygon&quot;).tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&amp;&amp;c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&amp;&amp;c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r&lt;n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function g(t){return n.mod(t,f)}function m(t){return o(t,[e,r])}var v=a(i,(function(t){return m(t)?l(t,e):1/0})),y=d(i[v],i[g(v-1)],e);for(h.push(y),s=v,u=0;u&lt;f;s++,u++){var x=i[g(s)];if(!m(x))break;h.push(p(x))}var b=a(i,(function(t){return m(t)?l(t,r):1/0})),_=d(i[b],i[g(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)&gt;1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a&lt;n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]&lt;r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&amp;&amp;!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s&lt;o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,(function(e){var r=s(e,t);return r&gt;0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return&quot;M&quot;+h(u(t,e,r,n),i,a).join(&quot;L&quot;)},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t&lt;e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return&quot;M&quot;+h(u(l,r,n,i),a,o).reverse().join(&quot;L&quot;)+&quot;M&quot;+c.join(&quot;L&quot;)}}},{&quot;../../lib&quot;:803,&quot;../../lib/polygon&quot;:815}],920:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./polar&quot;),o=t(&quot;./constants&quot;),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:&quot;subplotid&quot;,dflt:l,editType:&quot;calc&quot;},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o&lt;i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&amp;&amp;n._has(&quot;gl&quot;),o=e._has&amp;&amp;e._has(&quot;gl&quot;),s=a&amp;&amp;!o,c=0;c&lt;i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&amp;&amp;f)for(var h in f.framework.remove(),f.layers[&quot;radial-axis-title&quot;].remove(),f.clipPaths)f.clipPaths[h].remove();s&amp;&amp;f._scene&amp;&amp;(f._scene.destroy(),f._scene=null)}},toSVG:t(&quot;../cartesian&quot;).toSVG}},{&quot;../../lib&quot;:803,&quot;../cartesian&quot;:868,&quot;../get_data&quot;:891,&quot;./constants&quot;:918,&quot;./layout_attributes&quot;:921,&quot;./layout_defaults&quot;:922,&quot;./polar&quot;:923}],921:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../cartesian/layout_attributes&quot;),a=t(&quot;../domain&quot;).attributes,o=t(&quot;../../lib&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},&quot;plot&quot;,&quot;from-root&quot;),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},&quot;plot&quot;,&quot;from-root&quot;),u={visible:o({},i.visible,{dflt:!0}),type:o({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:o({},i.autorange,{editType:&quot;plot&quot;}),rangemode:{valType:&quot;enumerated&quot;,values:[&quot;tozero&quot;,&quot;nonnegative&quot;,&quot;normal&quot;],dflt:&quot;tozero&quot;,editType:&quot;calc&quot;},range:o({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;plot&quot;}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:&quot;angle&quot;,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;clockwise&quot;,editType:&quot;plot&quot;},title:{text:o({},i.title.text,{editType:&quot;plot&quot;,dflt:&quot;&quot;}),font:o({},i.title.font,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:i.autotypenumbers,categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc&quot;},period:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},direction:{valType:&quot;enumerated&quot;,values:[&quot;counterclockwise&quot;,&quot;clockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;angle&quot;,editType:&quot;calc&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;};o(f,l,c),e.exports={domain:a({name:&quot;polar&quot;,editType:&quot;plot&quot;}),sector:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],dflt:[0,360],editType:&quot;plot&quot;},hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;,dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:&quot;enumerated&quot;,values:[&quot;circular&quot;,&quot;linear&quot;],dflt:&quot;circular&quot;,editType:&quot;plot&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib&quot;:803,&quot;../../plot_api/edit_types&quot;:836,&quot;../cartesian/layout_attributes&quot;:869,&quot;../domain&quot;:882}],922:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../get_data&quot;).getSubplotData,l=t(&quot;../cartesian/tick_value_defaults&quot;),c=t(&quot;../cartesian/tick_mark_defaults&quot;),u=t(&quot;../cartesian/tick_label_defaults&quot;),f=t(&quot;../cartesian/category_order_defaults&quot;),h=t(&quot;../cartesian/line_grid_defaults&quot;),p=t(&quot;../cartesian/axis_autotype&quot;),d=t(&quot;./layout_attributes&quot;),g=t(&quot;./set_convert&quot;),m=t(&quot;./constants&quot;),v=m.axisNames;function y(t,e,r,o){var p=r(&quot;bgcolor&quot;);o.bgColor=i.combine(p,o.paper_bgcolor);var y=r(&quot;sector&quot;);r(&quot;hole&quot;);var b,_=s(o.fullData,m.name,o.id),w=o.layoutOut;function T(t,e){return r(b+&quot;.&quot;+t,e)}for(var k=0;k&lt;v.length;k++){b=v[k],n.isPlainObject(t[b])||(t[b]={});var A=t[b],M=a.newContainer(e,b);M._id=M._name=b,M._attr=o.id+&quot;.&quot;+b,M._traceIndices=_.map((function(t){return t._expandedIndex}));var S=m.axisName2dataArray[b],E=x(A,M,T,_,S,o);f(A,M,T,{axData:_,dataAttr:S});var L,C,P=T(&quot;visible&quot;);switch(g(M,e,w),T(&quot;uirevision&quot;,e.uirevision),P&amp;&amp;(C=(L=T(&quot;color&quot;))===A.color?L:o.font.color),M._m=1,b){case&quot;radialaxis&quot;:var I=T(&quot;autorange&quot;,!M.isValidRange(A.range));A.autorange=I,!I||&quot;linear&quot;!==E&amp;&amp;&quot;-&quot;!==E||T(&quot;rangemode&quot;),&quot;reversed&quot;===I&amp;&amp;(M._m=-1),T(&quot;range&quot;),M.cleanRange(&quot;range&quot;,{dfltRange:[0,1]}),P&amp;&amp;(T(&quot;side&quot;),T(&quot;angle&quot;,y[0]),T(&quot;title.text&quot;),n.coerceFont(T,&quot;title.font&quot;,{family:o.font.family,size:n.bigFont(o.font.size),color:C}));break;case&quot;angularaxis&quot;:if(&quot;date&quot;===E){n.log(&quot;Polar plots do not support date angular axes yet.&quot;);for(var O=0;O&lt;_.length;O++)_[O].visible=!1;E=A.type=M.type=&quot;linear&quot;}T(&quot;linear&quot;===E?&quot;thetaunit&quot;:&quot;period&quot;);var z=T(&quot;direction&quot;);T(&quot;rotation&quot;,{counterclockwise:0,clockwise:90}[z])}if(P)l(A,M,T,M.type),u(A,M,T,M.type,{tickSuffixDflt:&quot;degrees&quot;===M.thetaunit?&quot;\xb0&quot;:void 0}),c(A,M,T,{outerTicks:!0}),T(&quot;showticklabels&quot;)&amp;&amp;(n.coerceFont(T,&quot;tickfont&quot;,{family:o.font.family,size:o.font.size,color:C}),T(&quot;tickangle&quot;),T(&quot;tickformat&quot;)),h(A,M,T,{dfltColor:L,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:d[b]}),T(&quot;layer&quot;);&quot;category&quot;!==E&amp;&amp;T(&quot;hoverformat&quot;),M._input=A}&quot;category&quot;===e.angularaxis.type&amp;&amp;r(&quot;gridshape&quot;)}function x(t,e,r,n,i,a){var o=r(&quot;autotypenumbers&quot;,a.autotypenumbersDflt);if(&quot;-&quot;===r(&quot;type&quot;)){for(var s,l=0;l&lt;n.length;l++)if(n[l].visible){s=n[l];break}s&amp;&amp;s[i]&amp;&amp;(e.type=p(s[i],&quot;gregorian&quot;,{noMultiCategory:!0,autotypenumbers:o})),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:m.name,attributes:d,handleDefaults:y,font:e.font,autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../cartesian/axis_autotype&quot;:855,&quot;../cartesian/category_order_defaults&quot;:859,&quot;../cartesian/line_grid_defaults&quot;:871,&quot;../cartesian/tick_label_defaults&quot;:876,&quot;../cartesian/tick_mark_defaults&quot;:877,&quot;../cartesian/tick_value_defaults&quot;:878,&quot;../get_data&quot;:891,&quot;../subplot_defaults&quot;:925,&quot;./constants&quot;:918,&quot;./layout_attributes&quot;:921,&quot;./set_convert&quot;:924}],923:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../plots&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../cartesian/set_convert&quot;),d=t(&quot;./set_convert&quot;),g=t(&quot;../cartesian/autorange&quot;).doAutoRange,m=t(&quot;../cartesian/dragbox&quot;),v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../../components/fx&quot;),x=t(&quot;../../components/titles&quot;),b=t(&quot;../cartesian/select&quot;).prepSelect,_=t(&quot;../cartesian/select&quot;).selectOnClick,w=t(&quot;../cartesian/select&quot;).clearSelect,T=t(&quot;../../lib/setcursor&quot;),k=t(&quot;../../lib/clear_gl_canvases&quot;),A=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,M=t(&quot;../../constants/alignment&quot;).MID_SHIFT,S=t(&quot;./constants&quot;),E=t(&quot;./helpers&quot;),L=o._,C=o.mod,P=o.deg2rad,I=o.rad2deg;function O(t,e){this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=t._fullLayout,n=&quot;clip&quot;+r._uid+e;this.clipIds.forTraces=n+&quot;-for-traces&quot;,this.clipPaths.forTraces=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,this.clipIds.forTraces),this.clipPaths.forTraces.append(&quot;path&quot;),this.framework=r._polarlayer.append(&quot;g&quot;).attr(&quot;class&quot;,e),this.radialTickLayout=null,this.angularTickLayout=null}var z=O.prototype;function D(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return&quot;side&quot;in t&amp;&amp;(e+=t.side),e}function R(t,e){return e[o.findIndexOfMin(e,(function(e){return o.angleDist(t,e)}))]}function F(t,e,r){return e?(t.attr(&quot;display&quot;,null),t.attr(r)):t&amp;&amp;t.attr(&quot;display&quot;,&quot;none&quot;),t}e.exports=function(t,e){return new O(t,e)},z.plot=function(t,e){var r=e[this.id];this._hasClipOnAxisFalse=!1;for(var n=0;n&lt;t.length;n++){if(!1===t[n][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(e,r),this.updateLayout(e,r),f.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r)},z.updateLayers=function(t,e){var r=this.layers,i=e.radialaxis,a=e.angularaxis,o=S.layerNames,s=o.indexOf(&quot;frontplot&quot;),l=o.slice(0,s),c=&quot;below traces&quot;===a.layer,u=&quot;below traces&quot;===i.layer;c&amp;&amp;l.push(&quot;angular-line&quot;),u&amp;&amp;l.push(&quot;radial-line&quot;),c&amp;&amp;l.push(&quot;angular-axis&quot;),u&amp;&amp;l.push(&quot;radial-axis&quot;),l.push(&quot;frontplot&quot;),c||l.push(&quot;angular-line&quot;),u||l.push(&quot;radial-line&quot;),c||l.push(&quot;angular-axis&quot;),u||l.push(&quot;radial-axis&quot;);var f=this.framework.selectAll(&quot;.polarsublayer&quot;).data(l,String);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;polarsublayer &quot;+t})).each((function(t){var e=r[t]=n.select(this);switch(t){case&quot;frontplot&quot;:e.append(&quot;g&quot;).classed(&quot;barlayer&quot;,!0),e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0);break;case&quot;backplot&quot;:e.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0);break;case&quot;plotbg&quot;:r.bg=e.append(&quot;path&quot;);break;case&quot;radial-grid&quot;:case&quot;angular-grid&quot;:e.style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;radial-line&quot;:e.append(&quot;line&quot;).style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;angular-line&quot;:e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;)}})),f.order()},z.updateLayout=function(t,e){var r=this.layers,n=t._size,i=e.radialaxis,a=e.angularaxis,o=e.domain.x,s=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-s[1]);var f=this.xLength=n.w*(o[1]-o[0]),h=this.yLength=n.h*(s[1]-s[0]),p=e.sector;this.sectorInRad=p.map(P);var d,g,m,v,y,x=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=C(a,360),l=s+o,c=Math.cos(P(s)),u=Math.sin(P(s)),f=Math.cos(P(l)),h=Math.sin(P(l));i=s&lt;=90&amp;&amp;l&gt;=90||s&gt;90&amp;&amp;l&gt;=450?1:u&lt;=0&amp;&amp;h&lt;=0?0:Math.max(u,h);e=s&lt;=180&amp;&amp;l&gt;=180||s&gt;180&amp;&amp;l&gt;=540?-1:c&gt;=0&amp;&amp;f&gt;=0?0:Math.min(c,f);r=s&lt;=270&amp;&amp;l&gt;=270||s&gt;270&amp;&amp;l&gt;=630?-1:u&gt;=0&amp;&amp;h&gt;=0?0:Math.min(u,h);n=l&gt;=360?1:c&lt;=0&amp;&amp;f&lt;=0?0:Math.max(c,f);return[e,r,n,i]}(p),b=x[2]-x[0],_=x[3]-x[1],w=h/f,T=Math.abs(_/b);w&gt;T?(d=f,y=(h-(g=f*T))/n.h/2,m=[o[0],o[1]],v=[s[0]+y,s[1]-y]):(g=h,y=(f-(d=h/T))/n.w/2,m=[o[0]+y,o[1]-y],v=[s[0],s[1]]),this.xLength2=d,this.yLength2=g,this.xDomain2=m,this.yDomain2=v;var k=this.xOffset2=n.l+n.w*m[0],A=this.yOffset2=n.t+n.h*(1-v[1]),M=this.radius=d/b,S=this.innerRadius=e.hole*M,E=this.cx=k-M*x[0],L=this.cy=A+M*x[3],I=this.cxx=E-k,O=this.cyy=L-A;this.radialAxis=this.mockAxis(t,e,i,{_id:&quot;x&quot;,side:{counterclockwise:&quot;top&quot;,clockwise:&quot;bottom&quot;}[i.side],_realSide:i.side,domain:[S/n.w,M/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{side:&quot;right&quot;,domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:&quot;x&quot;,domain:m}),this.yaxis=this.mockCartesianAxis(t,e,{_id:&quot;y&quot;,domain:v});var z=this.pathSubplot();this.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;d&quot;,z).attr(&quot;transform&quot;,l(I,O)),r.frontplot.attr(&quot;transform&quot;,l(k,A)).call(u.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces,this.gd),r.bg.attr(&quot;d&quot;,z).attr(&quot;transform&quot;,l(E,L)).call(c.fill,e.bgcolor)},z.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return d(i,e,t),i},z.mockCartesianAxis=function(t,e,r){var n=this,i=r._id,a=o.extendFlat({type:&quot;linear&quot;},r);p(a,t);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var t=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-e.hole);a.range=[t[r[0]]*l,t[r[1]]*l]},a.isPtWithinRange=&quot;x&quot;===i?function(t){return n.isPtInside(t)}:function(){return!0},a.setRange(),a.setScale(),a},z.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=e.radialaxis;n.setScale(),g(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,&quot;gregorian&quot;),n.r2l(a[1],null,&quot;gregorian&quot;)]},z.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.radialaxis,g=C(e.sector[0],360),m=r.radialAxis,v=u&lt;a;r.fillViewInitialKey(&quot;radialaxis.angle&quot;,d.angle),r.fillViewInitialKey(&quot;radialaxis.range&quot;,m.range.slice()),m.setGeometry(),&quot;auto&quot;===m.tickangle&amp;&amp;g&gt;90&amp;&amp;g&lt;=270&amp;&amp;(m.tickangle=180);var y=function(t){return l(m.l2p(t.x)+u,0)},x=D(d);if(r.radialTickLayout!==x&amp;&amp;(i[&quot;radial-axis&quot;].selectAll(&quot;.xtick&quot;).remove(),r.radialTickLayout=x),v){m.setScale();var b=h.calcTicks(m),_=h.clipEnds(m,b),w=h.getTickSigns(m)[2];h.drawTicks(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],path:h.makeTickPath(m,0,w),transFn:y,crisp:!1}),h.drawGrid(n,m,{vals:_,layer:i[&quot;radial-grid&quot;],path:function(t){return r.pathArc(m.r2p(t.x)+u)},transFn:o.noop,crisp:!1}),h.drawLabels(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],transFn:y,labelFns:h.makeLabelFns(m,0)})}var T=r.radialAxisAngle=r.vangles?I(R(P(d.angle),r.vangles)):d.angle,k=l(f,p),A=k+s(-T);F(i[&quot;radial-axis&quot;],v&amp;&amp;(d.showticklabels||d.ticks),{transform:A}),F(i[&quot;radial-grid&quot;],v&amp;&amp;d.showgrid,{transform:k}),F(i[&quot;radial-line&quot;].select(&quot;line&quot;),v&amp;&amp;d.showline,{x1:u,y1:0,x2:a,y2:0,transform:A}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},z.updateRadialAxisTitle=function(t,e,r){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=e.radialaxis,l=this.id+&quot;title&quot;,c=void 0!==r?r:this.radialAxisAngle,f=P(c),h=Math.cos(f),p=Math.sin(f),d=0;if(s.title){var g=u.bBox(this.layers[&quot;radial-axis&quot;].node()).height,m=s.title.font.size;d=&quot;counterclockwise&quot;===s.side?-g-.4*m:g+.8*m}this.layers[&quot;radial-axis-title&quot;]=x.draw(n,l,{propContainer:s,propName:this.id+&quot;.radialaxis.title&quot;,placeholder:L(n,&quot;Click to enter radial axis title&quot;),attributes:{x:a+i/2*h+d*p,y:o-i/2*p+d*h,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:-c}})},z.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.angularaxis,g=r.angularAxis;r.fillViewInitialKey(&quot;angularaxis.rotation&quot;,d.rotation),g.setGeometry(),g.setScale();var m=function(t){return g.t2g(t.x)};&quot;linear&quot;===g.type&amp;&amp;&quot;radians&quot;===g.thetaunit&amp;&amp;(g.tick0=I(g.tick0),g.dtick=I(g.dtick));var v=function(t){return l(f+a*Math.cos(t),p-a*Math.sin(t))},y=h.makeLabelFns(g,0).labelStandoff,x={xFn:function(t){var e=m(t);return Math.cos(e)*y},yFn:function(t){var e=m(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(y+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*M)},anchorFn:function(t){var e=m(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},heightFn:function(t,e,r){var n=m(t);return-.5*(1+Math.sin(n))*r}},b=D(d);r.angularTickLayout!==b&amp;&amp;(i[&quot;angular-axis&quot;].selectAll(&quot;.&quot;+g._id+&quot;tick&quot;).remove(),r.angularTickLayout=b);var _,w=h.calcTicks(g);if(&quot;linear&quot;===e.gridshape?(_=w.map(m),o.angleDelta(_[0],_[1])&lt;0&amp;&amp;(_=_.slice().reverse())):_=null,r.vangles=_,&quot;category&quot;===g.type&amp;&amp;(w=w.filter((function(t){return o.isAngleInsideSector(m(t),r.sectorInRad)}))),g.visible){var T=&quot;inside&quot;===g.ticks?-1:1,k=(g.linewidth||1)/2;h.drawTicks(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],path:&quot;M&quot;+T*k+&quot;,0h&quot;+T*g.ticklen,transFn:function(t){var e=m(t);return v(e)+s(-I(e))},crisp:!1}),h.drawGrid(n,g,{vals:w,layer:i[&quot;angular-grid&quot;],path:function(t){var e=m(t),r=Math.cos(e),n=Math.sin(e);return&quot;M&quot;+[f+u*r,p-u*n]+&quot;L&quot;+[f+a*r,p-a*n]},transFn:o.noop,crisp:!1}),h.drawLabels(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],repositionOnUpdate:!0,transFn:function(t){return v(m(t))},labelFns:x})}F(i[&quot;angular-line&quot;].select(&quot;path&quot;),d.showline,{d:r.pathSubplot(),transform:l(f,p)}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},z.updateFx=function(t,e){this.gd._context.staticPlot||(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1),this.updateMainDrag(t))},z.updateMainDrag=function(t){var e,r,s=this,c=s.gd,u=s.layers,f=t._zoomlayer,h=S.MINZOOM,p=S.OFFEDGE,d=s.radius,g=s.innerRadius,x=s.cx,T=s.cy,k=s.cxx,A=s.cyy,M=s.sectorInRad,L=s.vangles,C=s.radialAxis,P=E.clampTiny,I=E.findXYatLength,O=E.findEnclosingVertexAngles,z=S.cornerHalfWidth,D=S.cornerLen/2,R=m.makeDragger(u,&quot;path&quot;,&quot;maindrag&quot;,&quot;crosshair&quot;);n.select(R).attr(&quot;d&quot;,s.pathSubplot()).attr(&quot;transform&quot;,l(x,T));var F,B,N,j,U,V,q,H,G,Y={element:R,gd:c,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function W(t,e){return Math.sqrt(t*t+e*e)}function X(t,e){return W(t-k,e-A)}function Z(t,e){return Math.atan2(A-e,t-k)}function J(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function K(t,e){if(0===t)return s.pathSector(2*z);var r=D/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,d)),o=a-z,l=a+z;return&quot;M&quot;+J(o,n)+&quot;A&quot;+[o,o]+&quot; 0,0,0 &quot;+J(o,i)+&quot;L&quot;+J(l,i)+&quot;A&quot;+[l,l]+&quot; 0,0,1 &quot;+J(l,n)+&quot;Z&quot;}function Q(t,e,r){if(0===t)return s.pathSector(2*z);var n,i,a=J(t,e),o=J(t,r),l=P((a[0]+o[0])/2),c=P((a[1]+o[1])/2);if(l&amp;&amp;c){var u=c/l,f=-1/u,h=I(z,u,l,c);n=I(D,f,h[0][0],h[0][1]),i=I(D,f,h[1][0],h[1][1])}else{var p,d;c?(p=D,d=z):(p=z,d=D),n=[[l-p,c-d],[l+p,c-d]],i=[[l-p,c+d],[l+p,c+d]]}return&quot;M&quot;+n.join(&quot;L&quot;)+&quot;L&quot;+i.reverse().join(&quot;L&quot;)+&quot;Z&quot;}function $(t,e){return e=Math.max(Math.min(e,d),g),t&lt;p?t=0:d-t&lt;p?t=d:e&lt;p?e=0:d-e&lt;p&amp;&amp;(e=d),Math.abs(e-t)&gt;h?(t&lt;e?(N=t,j=e):(N=e,j=t),!0):(N=null,j=null,!1)}function tt(t,e){t=t||U,e=e||&quot;M0,0Z&quot;,H.attr(&quot;d&quot;,t),G.attr(&quot;d&quot;,e),m.transitionZoombox(H,G,V,q),V=!0;var r={};at(r),c.emit(&quot;plotly_relayouting&quot;,r)}function et(t,n){var i,a,o=F+(t*=e),l=B+(n*=r),c=X(F,B),u=Math.min(X(o,l),d),f=Z(F,B);$(c,u)&amp;&amp;(i=U+s.pathSector(j),N&amp;&amp;(i+=s.pathSector(N)),a=K(N,f)+K(j,f)),tt(i,a)}function rt(t,e,r,n){var i=E.findIntersectionXY(r,n,r,[t-k,A-e]);return W(i[0],i[1])}function nt(t,e){var r,n,i=F+t,a=B+e,o=Z(F,B),l=Z(i,a),c=O(o,L),u=O(l,L);$(rt(F,B,c[0],c[1]),Math.min(rt(i,a,u[0],u[1]),d))&amp;&amp;(r=U+s.pathSector(j),N&amp;&amp;(r+=s.pathSector(N)),n=[Q(N,c[0],c[1]),Q(j,c[0],c[1])].join(&quot; &quot;)),tt(r,n)}function it(){if(m.removeZoombox(c),null!==N&amp;&amp;null!==j){var t={};at(t),m.showDoubleClickNotifier(c),a.call(&quot;_guiRelayout&quot;,c,t)}}function at(t){var e=C._rl,r=(e[1]-e[0])/(1-g/d)/d,n=[e[0]+(N-g)*r,e[0]+(j-g)*r];t[s.id+&quot;.radialaxis.range&quot;]=n}function ot(t,e){var r=c._fullLayout.clickmode;if(m.removeZoombox(c),2===t){var n={};for(var i in s.viewInitial)n[s.id+&quot;.&quot;+i]=s.viewInitial[i];c.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,c,n)}r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;_(e,c,[s.xaxis],[s.yaxis],s.id,Y),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;y.click(c,e,s.id)}Y.prepFn=function(t,n,a){var l=c._fullLayout.dragmode,u=R.getBoundingClientRect();c._fullLayout._calcInverseTransform(c);var h=c._fullLayout._invTransform;e=c._fullLayout._invScaleX,r=c._fullLayout._invScaleY;var p=o.apply3DTransform(h)(n-u.left,a-u.top);if(F=p[0],B=p[1],L){var g=E.findPolygonOffset(d,M[0],M[1],L);F+=k+g[0],B+=A+g[1]}switch(l){case&quot;zoom&quot;:Y.moveFn=L?nt:et,Y.clickFn=ot,Y.doneFn=it,function(){N=null,j=null,U=s.pathSubplot(),V=!1;var t=c._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(H=m.makeZoombox(f,q,x,T,U)).attr(&quot;fill-rule&quot;,&quot;evenodd&quot;),G=m.makeCorners(f,x,T),w(c)}();break;case&quot;select&quot;:case&quot;lasso&quot;:b(t,n,a,Y,l)}},R.onmousemove=function(t){y.hover(c,t,s.id),c._fullLayout._lasthover=R,c._fullLayout._hoversubplot=s.id},R.onmouseout=function(t){c._dragging||v.unhover(c,t)},v.init(Y)},z.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,h=i.innerRadius,p=i.cx,d=i.cy,g=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(g.visible){var b,_,T,M=P(i.radialAxisAngle),E=g._rl,L=E[0],C=E[1],O=E[r],z=.75*(E[1]-E[0])/(1-e.hole)/f;r?(b=p+(f+x)*Math.cos(M),_=d-(f+x)*Math.sin(M),T=&quot;radialdrag&quot;):(b=p+(h-x)*Math.cos(M),_=d-(h-x)*Math.sin(M),T=&quot;radialdrag-inner&quot;);var D,B,N,j=m.makeRectDragger(u,T,&quot;crosshair&quot;,-x,-x,y,y),U={element:j,gd:c};F(n.select(j),g.visible&amp;&amp;h&lt;f,{transform:l(b,_)}),U.prepFn=function(){D=null,B=null,N=null,U.moveFn=V,U.doneFn=q,w(c)},U.clampFn=function(t,e){return Math.sqrt(t*t+e*e)&lt;S.MINDRAG&amp;&amp;(t=0,e=0),[t,e]},v.init(U)}function V(t,e){if(D)D(t,e);else{var n=[t,-e],a=[Math.cos(M),Math.sin(M)],s=Math.abs(o.dot(n,a)/Math.sqrt(o.dot(n,n)));isNaN(s)||(D=s&lt;.5?H:G)}var l={};!function(t){null!==B?t[i.id+&quot;.radialaxis.angle&quot;]=B:null!==N&amp;&amp;(t[i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;]=N)}(l),c.emit(&quot;plotly_relayouting&quot;,l)}function q(){null!==B?a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.angle&quot;,B):null!==N&amp;&amp;a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;,N)}function H(t,e){if(0!==r){var n=b+t,a=_+e;B=Math.atan2(d-a,n-p),i.vangles&amp;&amp;(B=R(B,i.vangles)),B=I(B);var o=l(p,d)+s(-B);u[&quot;radial-axis&quot;].attr(&quot;transform&quot;,o),u[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,o);var c=i.gd._fullLayout,f=c[i.id];i.updateRadialAxisTitle(c,f,B)}}function G(t,e){var n=o.dot([t,-e],[Math.cos(M),Math.sin(M)]);if(N=O-z*n,z&gt;0==(r?N&gt;L:N&lt;C)){var s=c._fullLayout,l=s[i.id];g.range[r]=N,g._rl[r]=N,i.updateRadialAxis(s,l),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale();var u=!1;for(var f in i.traceHash){var h=i.traceHash[f],p=o.filterVisible(h);h[0][0].trace._module.plot(c,i,p,l),a.traceIs(f,&quot;gl&quot;)&amp;&amp;p.length&amp;&amp;(u=!0)}u&amp;&amp;(k(c),A(c))}else N=null}},z.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,c=e.radius,f=e.angularAxis,h=e.cx,p=e.cy,d=e.cxx,g=e.cyy,y=S.angularDragBoxSize,x=m.makeDragger(i,&quot;path&quot;,&quot;angulardrag&quot;,&quot;move&quot;),b={element:x,gd:r};function _(t,e){return Math.atan2(g+y-e,t-d-y)}n.select(x).attr(&quot;d&quot;,e.pathAnnulus(c,c+y)).attr(&quot;transform&quot;,l(h,p)).call(T,&quot;move&quot;);var M,E,L,C,P,O,z=i.frontplot.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;),D=z.selectAll(&quot;.point&quot;),R=z.selectAll(&quot;.textpoint&quot;);function F(c,m){var v=e.gd._fullLayout,y=v[e.id],x=_(M+c*t._invScaleX,E+m*t._invScaleY),b=I(x-O);if(C=L+b,i.frontplot.attr(&quot;transform&quot;,l(e.xOffset2,e.yOffset2)+s([-b,d,g])),e.vangles){P=e.radialAxisAngle+b;var w=l(h,p)+s(-b),T=l(h,p)+s(-P);i.bg.attr(&quot;transform&quot;,w),i[&quot;radial-grid&quot;].attr(&quot;transform&quot;,w),i[&quot;radial-axis&quot;].attr(&quot;transform&quot;,T),i[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,T),e.updateRadialAxisTitle(v,y,P)}else e.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;transform&quot;,l(d,g)+s(b));D.each((function(){var t=n.select(this),e=u.getTranslate(t);t.attr(&quot;transform&quot;,l(e.x,e.y)+s([b]))})),R.each((function(){var t=n.select(this),e=t.select(&quot;text&quot;),r=u.getTranslate(t);t.attr(&quot;transform&quot;,s([b,e.attr(&quot;x&quot;),e.attr(&quot;y&quot;)])+l(r.x,r.y))})),f.rotation=o.modHalf(C,360),e.updateAngularAxis(v,y),e._hasClipOnAxisFalse&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;z.call(u.hideOutsideRangePoints,e);var S=!1;for(var F in e.traceHash)if(a.traceIs(F,&quot;gl&quot;)){var N=e.traceHash[F],j=o.filterVisible(N);N[0][0].trace._module.plot(r,e,j,y),j.length&amp;&amp;(S=!0)}S&amp;&amp;(k(r),A(r));var U={};B(U),r.emit(&quot;plotly_relayouting&quot;,U)}function B(t){t[e.id+&quot;.angularaxis.rotation&quot;]=C,e.vangles&amp;&amp;(t[e.id+&quot;.radialaxis.angle&quot;]=P)}function N(){R.select(&quot;text&quot;).attr(&quot;transform&quot;,null);var t={};B(t),a.call(&quot;_guiRelayout&quot;,r,t)}b.prepFn=function(n,i,a){var s=t[e.id];L=s.angularaxis.rotation;var l=x.getBoundingClientRect();M=i-l.left,E=a-l.top,r._fullLayout._calcInverseTransform(r);var c=o.apply3DTransform(t._invTransform)(M,E);M=c[0],E=c[1],O=_(M,E),b.moveFn=F,b.doneFn=N,w(r)},e.vangles&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;(b.prepFn=o.noop,T(n.select(x),null)),v.init(b)},z.isPtInside=function(t){var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?E.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},z.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathArc)(t,e[0],e[1],r)},z.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathSector)(t,e[0],e[1],r)},z.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?E.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},z.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},z.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{&quot;../../components/color&quot;:666,&quot;../../components/dragelement&quot;:685,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../components/titles&quot;:764,&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/clear_gl_canvases&quot;:787,&quot;../../lib/setcursor&quot;:824,&quot;../../plot_api/subroutines&quot;:844,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;../cartesian/autorange&quot;:853,&quot;../cartesian/dragbox&quot;:863,&quot;../cartesian/select&quot;:874,&quot;../cartesian/set_convert&quot;:875,&quot;../plots&quot;:917,&quot;./constants&quot;:918,&quot;./helpers&quot;:919,&quot;./set_convert&quot;:924,&quot;@plotly/d3&quot;:58,tinycolor2:598}],924:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../cartesian/set_convert&quot;),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case&quot;x&quot;:case&quot;radialaxis&quot;:!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e&gt;n?function(t){return t&lt;=0}:function(t){return t&gt;=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case&quot;angularaxis&quot;:!function(t,e){var r=t.type;if(&quot;linear&quot;===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return&quot;degrees&quot;===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return&quot;degrees&quot;===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&amp;&amp;&quot;linear&quot;===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o&lt;l;o++)a[o]=c(s[o])}else{var u=i+&quot;0&quot;,f=&quot;d&quot;+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o&lt;l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},g=function(t){return(t-p)/h};switch(r){case&quot;linear&quot;:s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(g).map(o);break;case&quot;category&quot;:var m=t._categories.length,v=t.period?Math.max(t.period,m):m;0===v&amp;&amp;(v=1),s=c=function(t){return 2*t*Math.PI/v},i=l=function(t){return t*v/Math.PI/2},t.range=[0,v]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(g(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(g(t))}}}(t,e)}}},{&quot;../../lib&quot;:803,&quot;../cartesian/set_convert&quot;:875}],925:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;),a=t(&quot;./domain&quot;).defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||&quot;x&quot;,p=e._subplots[c],d=p.length,g=d&amp;&amp;p[0].replace(/\d+$/,&quot;&quot;);function m(t,e){return n.coerce(s,l,u,t,e)}for(var v=0;v&lt;d;v++){var y=p[v];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,g),m(&quot;uirevision&quot;,e.uirevision);var x={};x[h]=[v/d,(v+1)/d],a(l,e,m,x),o.id=y,f(s,l,m,o)}}},{&quot;../lib&quot;:803,&quot;../plot_api/plot_template&quot;:843,&quot;./domain&quot;:882}],926:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/docs&quot;);n.FORMAT_LINK,n.DATE_FORMAT_LINK;function i(t){var e=t.description?&quot; &quot;+t.description:&quot;&quot;,r=t.keys||[];if(r.length&gt;0){for(var n=[],i=0;i&lt;r.length;i++)n[i]=&quot;`&quot;+r[i]+&quot;`&quot;;e+=&quot;Finally, the template string has access to &quot;,e=1===r.length?&quot;variable &quot;+n[0]:&quot;variables &quot;+n.slice(0,-1).join(&quot;, &quot;)+&quot; and &quot;+n.slice(-1)+&quot;.&quot;}return e}r.hovertemplateAttrs=function(t,e){t=t||{};i(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;none&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r},r.texttemplateAttrs=function(t,e){t=t||{};i(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;calc&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r}},{&quot;../constants/docs&quot;:774}],927:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./ternary&quot;),i=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,a=t(&quot;../../lib&quot;).counterRegex;r.name=&quot;ternary&quot;;var o=r.attr=&quot;subplot&quot;;r.idRoot=&quot;ternary&quot;,r.idRegex=r.attrRegex=a(&quot;ternary&quot;),(r.attributes={})[o]={valType:&quot;subplotid&quot;,dflt:&quot;ternary&quot;,editType:&quot;calc&quot;},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o&lt;a.length;o++){var s=a[o],l=i(r,&quot;ternary&quot;,s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[&quot;a-title&quot;].remove(),s.layers[&quot;b-title&quot;].remove(),s.layers[&quot;c-title&quot;].remove())}}},{&quot;../../lib&quot;:803,&quot;../../plots/get_data&quot;:891,&quot;./layout_attributes&quot;:928,&quot;./layout_defaults&quot;:929,&quot;./ternary&quot;:930}],928:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;../cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/extend&quot;).extendFlat,l={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:&quot;number&quot;,dflt:0,min:0},_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},c=e.exports=o({domain:i({name:&quot;ternary&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:n.background},sum:{valType:&quot;number&quot;,dflt:1,min:0},aaxis:l,baxis:l,caxis:l},&quot;plot&quot;,&quot;from-root&quot;);c.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../cartesian/layout_attributes&quot;:869,&quot;../domain&quot;:882}],929:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../cartesian/tick_label_defaults&quot;),l=t(&quot;../cartesian/tick_mark_defaults&quot;),c=t(&quot;../cartesian/tick_value_defaults&quot;),u=t(&quot;../cartesian/line_grid_defaults&quot;),f=t(&quot;./layout_attributes&quot;),h=[&quot;aaxis&quot;,&quot;baxis&quot;,&quot;caxis&quot;];function p(t,e,r,a){var o,s,l,c=r(&quot;bgcolor&quot;),u=r(&quot;sum&quot;);a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f&lt;h.length;f++)s=t[o=h[f]]||{},(l=i.newContainer(e,o))._name=o,d(s,l,a,e);var p=e.aaxis,g=e.baxis,m=e.caxis;p.min+g.min+m.min&gt;=u&amp;&amp;(p.min=0,g.min=0,m.min=0,t.aaxis&amp;&amp;delete t.aaxis.min,t.baxis&amp;&amp;delete t.baxis.min,t.caxis&amp;&amp;delete t.caxis.min)}function d(t,e,r,n){var i=f[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o(&quot;uirevision&quot;,n.uirevision),e.type=&quot;linear&quot;;var h=o(&quot;color&quot;),p=h!==i.color.dflt?h:r.font.color,d=e._name.charAt(0).toUpperCase(),g=&quot;Component &quot;+d,m=o(&quot;title.text&quot;,g);e._hovertitle=m===g?m:d,a.coerceFont(o,&quot;title.font&quot;,{family:r.font.family,size:a.bigFont(r.font.size),color:p}),o(&quot;min&quot;),c(t,e,o,&quot;linear&quot;),s(t,e,o,&quot;linear&quot;,{}),l(t,e,o,{outerTicks:!0}),o(&quot;showticklabels&quot;)&amp;&amp;(a.coerceFont(o,&quot;tickfont&quot;,{family:r.font.family,size:r.font.size,color:p}),o(&quot;tickangle&quot;),o(&quot;tickformat&quot;)),u(t,e,o,{dfltColor:h,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o(&quot;hoverformat&quot;),o(&quot;layer&quot;)}e.exports=function(t,e,r){o(t,e,r,{type:&quot;ternary&quot;,attributes:f,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../cartesian/line_grid_defaults&quot;:871,&quot;../cartesian/tick_label_defaults&quot;:876,&quot;../cartesian/tick_mark_defaults&quot;:877,&quot;../cartesian/tick_value_defaults&quot;:878,&quot;../subplot_defaults&quot;:925,&quot;./layout_attributes&quot;:928}],930:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o._,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../cartesian/set_convert&quot;),h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../plots&quot;),d=t(&quot;../cartesian/axes&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/fx&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.freeMode,x=v.rectMode,b=t(&quot;../../components/titles&quot;),_=t(&quot;../cartesian/select&quot;).prepSelect,w=t(&quot;../cartesian/select&quot;).selectOnClick,T=t(&quot;../cartesian/select&quot;).clearSelect,k=t(&quot;../cartesian/select&quot;).clearSelectionsCache,A=t(&quot;../cartesian/constants&quot;);function M(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=M;var S=M.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i&lt;t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),p.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(&quot;path&quot;).call(c.fill,r.bgcolor)},S.makeFramework=function(t){var e=this.graphDiv,r=t[this.id],n=this.clipId=&quot;clip&quot;+this.layoutId+this.id,i=this.clipIdRelative=&quot;clip-relative&quot;+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,&quot;clipPath&quot;,n,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.clipDefRelative=o.ensureSingleById(t._clips,&quot;clipPath&quot;,i,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.plotContainer=o.ensureSingle(this.container,&quot;g&quot;,this.id),this.updateLayers(r),u.setClipUrl(this.layers.backplot,n,e),u.setClipUrl(this.layers.grids,n,e)},S.updateLayers=function(t){var e=this.layers,r=[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;grids&quot;];&quot;below traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;below traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;below traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;),r.push(&quot;frontplot&quot;),&quot;above traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;above traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;above traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;);var i=this.plotContainer.selectAll(&quot;g.toplevel&quot;).data(r,String),a=[&quot;agrid&quot;,&quot;bgrid&quot;,&quot;cgrid&quot;];i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;toplevel &quot;+t})).each((function(t){var r=n.select(this);e[t]=r,&quot;frontplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):&quot;backplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0):&quot;plotbg&quot;===t?r.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;):&quot;aline&quot;===t||&quot;bline&quot;===t||&quot;cline&quot;===t?r.append(&quot;path&quot;):&quot;grids&quot;===t&amp;&amp;a.forEach((function(t){e[t]=r.append(&quot;g&quot;).classed(&quot;grid &quot;+t,!0)}))})),i.order()};var E=Math.sqrt(4/3);S.adjustLayout=function(t,e){var r,n,i,a,o,l,p=this,d=t.domain,g=(d.x[0]+d.x[1])/2,m=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],y=d.y[1]-d.y[0],x=v*e.w,b=y*e.h,_=t.sum,w=t.aaxis.min,T=t.baxis.min,k=t.caxis.min;x&gt;E*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=e.l+e.w*g-i/2,n=e.t+e.h*(1-m)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=_,p.xaxis={type:&quot;linear&quot;,range:[w+2*k-_,_-w-2*T],domain:[g-o/2,g+o/2],_id:&quot;x&quot;},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a&gt;=p.aaxis.range[0]&amp;&amp;t.a&lt;=p.aaxis.range[1]&amp;&amp;t.b&gt;=p.baxis.range[1]&amp;&amp;t.b&lt;=p.baxis.range[0]&amp;&amp;t.c&gt;=p.caxis.range[1]&amp;&amp;t.c&lt;=p.caxis.range[0]},p.yaxis={type:&quot;linear&quot;,range:[w,_-T-k],domain:[m-l/2,m+l/2],_id:&quot;y&quot;},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var A=p.yaxis.domain[0],M=p.aaxis=h({},t.aaxis,{range:[w,_-T-k],side:&quot;left&quot;,tickangle:(+t.aaxis.tickangle||0)-30,domain:[A,A+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(M,p.graphDiv._fullLayout),M.setScale();var S=p.baxis=h({},t.baxis,{range:[_-w-k,T],side:&quot;bottom&quot;,domain:p.xaxis.domain,anchor:&quot;free&quot;,position:0,_id:&quot;x&quot;,_length:i});f(S,p.graphDiv._fullLayout),S.setScale();var L=p.caxis=h({},t.caxis,{range:[_-w-T,k],side:&quot;right&quot;,tickangle:(+t.caxis.tickangle||0)+30,domain:[A,A+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(L,p.graphDiv._fullLayout),L.setScale();var C=&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDef.select(&quot;path&quot;).attr(&quot;d&quot;,C),p.layers.plotbg.select(&quot;path&quot;).attr(&quot;d&quot;,C);var P=&quot;M0,&quot;+a+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDefRelative.select(&quot;path&quot;).attr(&quot;d&quot;,P);var I=s(r,n);p.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,I),p.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,null);var O=s(r-S._offset,n+a);p.layers.baxis.attr(&quot;transform&quot;,O),p.layers.bgrid.attr(&quot;transform&quot;,O);var z=s(r+i/2,n)+&quot;rotate(30)&quot;+s(0,-M._offset);p.layers.aaxis.attr(&quot;transform&quot;,z),p.layers.agrid.attr(&quot;transform&quot;,z);var D=s(r+i/2,n)+&quot;rotate(-30)&quot;+s(0,-L._offset);p.layers.caxis.attr(&quot;transform&quot;,D),p.layers.cgrid.attr(&quot;transform&quot;,D),p.drawAxes(!0),p.layers.aline.select(&quot;path&quot;).attr(&quot;d&quot;,M.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;l&quot;+i/2+&quot;,-&quot;+a:&quot;M0,0&quot;).call(c.stroke,M.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(M.linewidth||0)+&quot;px&quot;),p.layers.bline.select(&quot;path&quot;).attr(&quot;d&quot;,S.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i:&quot;M0,0&quot;).call(c.stroke,S.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(S.linewidth||0)+&quot;px&quot;),p.layers.cline.select(&quot;path&quot;).attr(&quot;d&quot;,L.showline?&quot;M&quot;+(r+i/2)+&quot;,&quot;+n+&quot;l&quot;+i/2+&quot;,&quot;+a:&quot;M0,0&quot;).call(c.stroke,L.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(L.linewidth||0)+&quot;px&quot;),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this.graphDiv,r=this.id.substr(7)+&quot;title&quot;,n=this.layers,i=this.aaxis,a=this.baxis,o=this.caxis;if(this.drawAx(i),this.drawAx(a),this.drawAx(o),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(&quot;outside&quot;===o.ticks?.87*o.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+(&quot;outside&quot;===a.ticks?a.ticklen:0)+3;n[&quot;a-title&quot;]=b.draw(e,&quot;a&quot;+r,{propContainer:i,propName:this.id+&quot;.aaxis.title&quot;,placeholder:l(e,&quot;Click to enter Component A title&quot;),attributes:{x:this.x0+this.w/2,y:this.y0-i.title.font.size/3-s,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;b-title&quot;]=b.draw(e,&quot;b&quot;+r,{propContainer:a,propName:this.id+&quot;.baxis.title&quot;,placeholder:l(e,&quot;Click to enter Component B title&quot;),attributes:{x:this.x0-c,y:this.y0+this.h+.83*a.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;c-title&quot;]=b.draw(e,&quot;c&quot;+r,{propContainer:o,propName:this.id+&quot;.caxis.title&quot;,placeholder:l(e,&quot;Click to enter Component C title&quot;),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}})}},S.drawAx=function(t){var e,r=this.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=this.layers[n],l=i+&quot;tickLayout&quot;,c=(e=t).ticks+String(e.ticklen)+String(e.showticklabels);this[l]!==c&amp;&amp;(s.selectAll(&quot;.&quot;+a+&quot;tick&quot;).remove(),this[l]=c),t.setScale();var u=d.calcTicks(t),f=d.clipEnds(t,u),h=d.makeTransTickFn(t),p=d.getTickSigns(t)[2],g=o.deg2rad(30),m=p*(t.linewidth||1)/2,v=p*t.ticklen,y=this.w,x=this.h,b=&quot;b&quot;===i?&quot;M0,&quot;+m+&quot;l&quot;+Math.sin(g)*v+&quot;,&quot;+Math.cos(g)*v:&quot;M&quot;+m+&quot;,0l&quot;+Math.cos(g)*v+&quot;,&quot;+-Math.sin(g)*v,_={a:&quot;M0,0l&quot;+x+&quot;,-&quot;+y/2,b:&quot;M0,0l-&quot;+y/2+&quot;,-&quot;+x,c:&quot;M0,0l-&quot;+x+&quot;,&quot;+y/2}[i];d.drawTicks(r,t,{vals:&quot;inside&quot;===t.ticks?f:u,layer:s,path:b,transFn:h,crisp:!1}),d.drawGrid(r,t,{vals:f,layer:this.layers[i+&quot;grid&quot;],path:_,transFn:h,crisp:!1}),d.drawLabels(r,t,{vals:u,layer:s,transFn:h,labelFns:d.makeLabelFns(t,0,30)})};var L=A.MINZOOM/2+.87,C=&quot;m-0.87,.5h&quot;+L+&quot;v3h-&quot;+(L+5.2)+&quot;l&quot;+(L/2+2.6)+&quot;,-&quot;+(.87*L+4.5)+&quot;l2.6,1.5l-&quot;+L/2+&quot;,&quot;+.87*L+&quot;Z&quot;,P=&quot;m0.87,.5h-&quot;+L+&quot;v3h&quot;+(L+5.2)+&quot;l-&quot;+(L/2+2.6)+&quot;,-&quot;+(.87*L+4.5)+&quot;l-2.6,1.5l&quot;+L/2+&quot;,&quot;+.87*L+&quot;Z&quot;,I=&quot;m0,1l&quot;+L/2+&quot;,&quot;+.87*L+&quot;l2.6,-1.5l-&quot;+(L/2+2.6)+&quot;,-&quot;+(.87*L+4.5)+&quot;l-&quot;+(L/2+2.6)+&quot;,&quot;+(.87*L+4.5)+&quot;l2.6,1.5l&quot;+L/2+&quot;,-&quot;+.87*L+&quot;Z&quot;,O=!0;function z(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,h,p,d,v,b,T,k,M=this,S=M.layers.plotbg.select(&quot;path&quot;).node(),L=M.graphDiv,D=L._fullLayout._zoomlayer;function R(t){var e={};return e[M.id+&quot;.aaxis.min&quot;]=t.a,e[M.id+&quot;.baxis.min&quot;]=t.b,e[M.id+&quot;.caxis.min&quot;]=t.c,e}function F(t,e){var r=L._fullLayout.clickmode;z(L),2===t&amp;&amp;(L.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,L,R({a:0,b:0,c:0}))),r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;w(e,L,[M.xaxis],[M.yaxis],M.id,M.dragOptions),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;m.click(L,e,M.id)}function B(t,e){return 1-e/M.h}function N(t,e){return 1-(t+(M.h-e)/Math.sqrt(3))/M.w}function j(t,e){return(t-(M.h-e)/Math.sqrt(3))/M.w}function U(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,B(0,n),B(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,j(r,n),j(o,s))),g=(l/2+u)*M.w,m=(1-l/2-c)*M.w,y=(g+m)/2,x=m-g,_=(1-l)*M.h,w=_-x/E;x&lt;A.MINZOOM?(p=f,T.attr(&quot;d&quot;,v),k.attr(&quot;d&quot;,&quot;M0,0Z&quot;)):(p={a:f.a+l*h,b:f.b+c*h,c:f.c+u*h},T.attr(&quot;d&quot;,v+&quot;M&quot;+g+&quot;,&quot;+_+&quot;H&quot;+m+&quot;L&quot;+y+&quot;,&quot;+w+&quot;L&quot;+g+&quot;,&quot;+_+&quot;Z&quot;),k.attr(&quot;d&quot;,&quot;M&quot;+r+&quot;,&quot;+n+&quot;m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM&quot;+g+&quot;,&quot;+_+C+&quot;M&quot;+m+&quot;,&quot;+_+P+&quot;M&quot;+y+&quot;,&quot;+w+I)),b||(T.transition().style(&quot;fill&quot;,d&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),k.transition().style(&quot;opacity&quot;,1).duration(200),b=!0),L.emit(&quot;plotly_relayouting&quot;,R(p))}function V(){z(L),p!==f&amp;&amp;(a.call(&quot;_guiRelayout&quot;,L,R(p)),O&amp;&amp;L.data&amp;&amp;L._context.showTips&amp;&amp;(o.notifier(l(L,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),O=!1))}function q(t,e){var r=t/M.xaxis._m,n=e/M.yaxis._m,i=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),a=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]&lt;0&amp;&amp;(i[1]+i[0]/2&lt;0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[a],b:i[l],c:i[c]},e=(f.a-p.a)*M.yaxis._m,t=(f.c-p.c-f.b+p.b)*M.xaxis._m);var h=s(M.x0+t,M.y0+e);M.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,h);var d=s(-t,-e);M.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,d),M.aaxis.range=[p.a,M.sum-p.b-p.c],M.baxis.range=[M.sum-p.a-p.c,p.b],M.caxis.range=[M.sum-p.a-p.b,p.c],M.drawAxes(!1),M._hasClipOnAxisFalse&amp;&amp;M.plotContainer.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;).call(u.hideOutsideRangePoints,M),L.emit(&quot;plotly_relayouting&quot;,R(p))}function H(){a.call(&quot;_guiRelayout&quot;,L,R(p))}this.dragOptions={element:S,gd:L,plotinfo:{id:M.id,domain:L._fullLayout[M.id].domain,xaxis:M.xaxis,yaxis:M.yaxis},subplot:M.id,prepFn:function(a,l,u){M.dragOptions.xaxes=[M.xaxis],M.dragOptions.yaxes=[M.yaxis],t=L._fullLayout._invScaleX,e=L._fullLayout._invScaleY;var g=M.dragOptions.dragmode=L._fullLayout.dragmode;y(g)?M.dragOptions.minDrag=1:M.dragOptions.minDrag=void 0,&quot;zoom&quot;===g?(M.dragOptions.moveFn=U,M.dragOptions.clickFn=F,M.dragOptions.doneFn=V,function(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,L._fullLayout._calcInverseTransform(L);var u=L._fullLayout._invTransform,g=o.apply3DTransform(u)(r,n);r=g[0],n=g[1],f={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},p=f,h=M.aaxis.range[1]-f.a,d=i(M.graphDiv._fullLayout[M.id].bgcolor).getLuminance(),v=&quot;M0,&quot;+M.h+&quot;L&quot;+M.w/2+&quot;, 0L&quot;+M.w+&quot;,&quot;+M.h+&quot;Z&quot;,b=!1,T=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).attr(&quot;transform&quot;,s(M.x0,M.y0)).style({fill:d&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;d&quot;,v),k=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).attr(&quot;transform&quot;,s(M.x0,M.y0)).style({fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;d&quot;,&quot;M0,0Z&quot;),M.clearSelect(L)}(0,l,u)):&quot;pan&quot;===g?(M.dragOptions.moveFn=q,M.dragOptions.clickFn=F,M.dragOptions.doneFn=H,f={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},p=f,M.clearSelect(L)):(x(g)||y(g))&amp;&amp;_(a,l,u,M.dragOptions,g)}},S.onmousemove=function(t){m.hover(L,t,M.id),L._fullLayout._lasthover=S,L._fullLayout._hoversubplot=M.id},S.onmouseout=function(t){L._dragging||g.unhover(L,t)},g.init(this.dragOptions)}},{&quot;../../components/color&quot;:666,&quot;../../components/dragelement&quot;:685,&quot;../../components/dragelement/helpers&quot;:684,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../components/titles&quot;:764,&quot;../../lib&quot;:803,&quot;../../lib/extend&quot;:793,&quot;../../registry&quot;:931,&quot;../cartesian/axes&quot;:854,&quot;../cartesian/constants&quot;:861,&quot;../cartesian/select&quot;:874,&quot;../cartesian/set_convert&quot;:875,&quot;../plots&quot;:917,&quot;@plotly/d3&quot;:58,tinycolor2:598}],931:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/loggers&quot;),i=t(&quot;./lib/noop&quot;),a=t(&quot;./lib/push_unique&quot;),o=t(&quot;./lib/is_plain_object&quot;),s=t(&quot;./lib/dom&quot;).addStyleRule,l=t(&quot;./lib/extend&quot;),c=t(&quot;./plots/attributes&quot;),u=t(&quot;./plots/layout_attributes&quot;),f=l.extendFlat,h=l.extendDeepAll;function p(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(&quot;Type &quot;+e+&quot; already registered&quot;);else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(&quot;Plot type &quot;+e+&quot; already registered.&quot;);for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)b(i,t.name)}(t.basePlotModule);for(var o={},l=0;l&lt;i.length;l++)o[i[l]]=!0,r.allCategories[i[l]]=!0;for(var c in r.modules[e]={_module:t,categories:o},a&amp;&amp;Object.keys(a).length&amp;&amp;(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)y(c,e);t.layoutAttributes&amp;&amp;f(r.traceLayoutAttributes,t.layoutAttributes);var u=t.basePlotModule,h=u.name;if(&quot;mapbox&quot;===h){var p=u.constants.styleRules;for(var d in p)s(&quot;.js-plotly-plot .plotly .mapboxgl-&quot;+d,p[d])}&quot;geo&quot;!==h&amp;&amp;&quot;mapbox&quot;!==h||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function d(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Component module *name* must be a string.&quot;);var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&amp;&amp;(t.layoutAttributes._isLinkedToArray&amp;&amp;a(r.layoutArrayContainers,e),v(t)),r.modules)y(e,n);for(var i in r.subplotsRegistry)b(e,i);for(var o in r.transformsRegistry)x(e,o);t.schema&amp;&amp;t.schema.layout&amp;&amp;h(u,t.schema.layout)}function g(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Transform module *name* must be a string.&quot;);var e=&quot;Transform module &quot;+t.name,i=&quot;function&quot;==typeof t.transform,a=&quot;function&quot;==typeof t.calcTransform;if(!i&amp;&amp;!a)throw new Error(e+&quot; is missing a *transform* or *calcTransform* method.&quot;);for(var s in i&amp;&amp;a&amp;&amp;n.log([e+&quot; has both a *transform* and *calcTransform* methods.&quot;,&quot;Please note that all *transform* methods are executed&quot;,&quot;before all *calcTransform* methods.&quot;].join(&quot; &quot;)),o(t.attributes)||n.log(e+&quot; registered without an *attributes* object.&quot;),&quot;function&quot;!=typeof t.supplyDefaults&amp;&amp;n.log(e+&quot; registered without a *supplyDefaults* method.&quot;),r.transformsRegistry[t.name]=t,r.componentsRegistry)x(s,t.name)}function m(t){var e=t.name,n=e.split(&quot;-&quot;)[0],i=t.dictionary,a=t.format,o=i&amp;&amp;Object.keys(i).length,s=a&amp;&amp;Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&amp;&amp;u.dictionary===c.dictionary&amp;&amp;(u.dictionary=i),s&amp;&amp;u.format===c.format&amp;&amp;(u.format=a)}o&amp;&amp;(c.dictionary=i),s&amp;&amp;(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n&lt;e.length;n++)a(r.layoutArrayRegexes,e[n])}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.traces){var i=n.traces[e];i&amp;&amp;h(r.modules[e]._module.attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.transforms){var i=n.transforms[e];i&amp;&amp;h(r.transformsRegistry[e].attributes,i)}}function b(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=&quot;subplot&quot;===i.attr?i.name:i.attr;Array.isArray(o)&amp;&amp;(o=o[0]);var s=n.subplots[o];a&amp;&amp;s&amp;&amp;h(a,s)}}function _(t){return&quot;object&quot;==typeof t&amp;&amp;(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.collectableSubplotTypes=null,r.register=function(t){if(r.collectableSubplotTypes=null,!t)throw new Error(&quot;No argument passed to Plotly.register.&quot;);t&amp;&amp;!Array.isArray(t)&amp;&amp;(t=[t]);for(var e=0;e&lt;t.length;e++){var n=t[e];if(!n)throw new Error(&quot;Invalid module was attempted to be registered!&quot;);switch(n.moduleType){case&quot;trace&quot;:p(n);break;case&quot;transform&quot;:g(n);break;case&quot;component&quot;:d(n);break;case&quot;locale&quot;:m(n);break;case&quot;apiMethod&quot;:var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(&quot;Invalid module was attempted to be registered!&quot;)}}},r.getModule=function(t){var e=r.modules[_(t)];return!!e&amp;&amp;e._module},r.traceIs=function(t,e){if(&quot;various&quot;===(t=_(t)))return!1;var i=r.modules[t];return i||(t&amp;&amp;n.log(&quot;Unrecognized trace type &quot;+t+&quot;.&quot;),i=r.modules[c.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i&lt;n.length;i++)n[i].type===e&amp;&amp;r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n&lt;r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&amp;&amp;n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{&quot;./lib/dom&quot;:791,&quot;./lib/extend&quot;:793,&quot;./lib/is_plain_object&quot;:804,&quot;./lib/loggers&quot;:807,&quot;./lib/noop&quot;:812,&quot;./lib/push_unique&quot;:818,&quot;./plots/attributes&quot;:850,&quot;./plots/layout_attributes&quot;:908}],932:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=i.extendFlat,o=i.extendDeep;function s(t){var e;switch(t){case&quot;themes__thumb&quot;:e={autosize:!0,width:150,height:150,title:{text:&quot;&quot;},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case&quot;thumbnail&quot;:e={title:{text:&quot;&quot;},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:&quot;&quot;,margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r,i,l=t.data,c=t.layout,u=o([],l),f=o({},c,s(e.tileClass)),h=t._context||{};if(e.width&amp;&amp;(f.width=e.width),e.height&amp;&amp;(f.height=e.height),&quot;thumbnail&quot;===e.tileClass||&quot;themes__thumb&quot;===e.tileClass){f.annotations=[];var p=Object.keys(f);for(r=0;r&lt;p.length;r++)i=p[r],[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;].indexOf(i.slice(0,5))&gt;-1&amp;&amp;(f[p[r]].title={text:&quot;&quot;});for(r=0;r&lt;u.length;r++){var d=u[r];d.showscale=!1,d.marker&amp;&amp;(d.marker.showscale=!1),n.traceIs(d,&quot;pie-like&quot;)&amp;&amp;(d.textposition=&quot;none&quot;)}}if(Array.isArray(e.annotations))for(r=0;r&lt;e.annotations.length;r++)f.annotations.push(e.annotations[r]);var g=Object.keys(f).filter((function(t){return t.match(/^scene\d*$/)}));if(g.length){var m={};for(&quot;thumbnail&quot;===e.tileClass&amp;&amp;(m={title:{text:&quot;&quot;},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r&lt;g.length;r++){var v=f[g[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),a(v.xaxis,m),a(v.yaxis,m),a(v.zaxis,m),v._scene=null}}var y=document.createElement(&quot;div&quot;);e.tileClass&amp;&amp;(y.className=e.tileClass);var x={gd:y,td:y,layout:f,data:u,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:h.mapboxAccessToken}};return&quot;transparent&quot;!==e.setBackground&amp;&amp;(x.config.setBackground=e.setBackground||&quot;opaque&quot;),x.gd.defaultLayout=s(e.tileClass),x}},{&quot;../lib&quot;:803,&quot;../registry&quot;:931}],933:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/to_image&quot;),a=t(&quot;./filesaver&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e){var r;return n.isPlainObject(t)||(r=n.getGraphDiv(t)),(e=e||{}).format=e.format||&quot;png&quot;,e.width=e.width||null,e.height=e.height||null,e.imageDataOnly=!0,new Promise((function(s,l){r&amp;&amp;r._snapshotInProgress&amp;&amp;l(new Error(&quot;Snapshotting already in progress.&quot;)),n.isIE()&amp;&amp;&quot;svg&quot;!==e.format&amp;&amp;l(new Error(o.MSG_IE_BAD_FORMAT)),r&amp;&amp;(r._snapshotInProgress=!0);var c=i(t,e),u=e.filename||t.fn||&quot;newplot&quot;;u+=&quot;.&quot;+e.format.replace(&quot;-&quot;,&quot;.&quot;),c.then((function(t){return r&amp;&amp;(r._snapshotInProgress=!1),a(t,u,e.format)})).then((function(t){s(t)})).catch((function(t){r&amp;&amp;(r._snapshotInProgress=!1),l(t)}))}))}},{&quot;../lib&quot;:803,&quot;../plot_api/to_image&quot;:846,&quot;./filesaver&quot;:934,&quot;./helpers&quot;:935}],934:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e,r){var a=document.createElement(&quot;a&quot;),o=&quot;download&quot;in a;return new Promise((function(s,l){var c,u;if(n.isIE())return c=i.createBlob(t,&quot;svg&quot;),window.navigator.msSaveBlob(c,e),c=null,s(e);if(o)return c=i.createBlob(t,r),u=i.createObjectURL(c),a.href=u,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),i.revokeObjectURL(u),c=null,s(e);if(n.isSafari()){var f=&quot;svg&quot;===r?&quot;,&quot;:&quot;;base64,&quot;;return i.octetStream(f+encodeURIComponent(t)),s(e)}l(new Error(&quot;download error&quot;))}))}},{&quot;../lib&quot;:803,&quot;./helpers&quot;:935}],935:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);r.getDelay=function(t){return t._has&amp;&amp;(t._has(&quot;gl3d&quot;)||t._has(&quot;gl2d&quot;)||t._has(&quot;mapbox&quot;))?500:0},r.getRedrawFunc=function(t){return function(){n.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},r.encodeSVG=function(t){return&quot;data:image/svg+xml,&quot;+encodeURIComponent(t)},r.encodeJSON=function(t){return&quot;data:application/json,&quot;+encodeURIComponent(t)};var i=window.URL||window.webkitURL;r.createObjectURL=function(t){return i.createObjectURL(t)},r.revokeObjectURL=function(t){return i.revokeObjectURL(t)},r.createBlob=function(t,e){if(&quot;svg&quot;===e)return new window.Blob([t],{type:&quot;image/svg+xml;charset=utf-8&quot;});if(&quot;full-json&quot;===e)return new window.Blob([t],{type:&quot;application/json;charset=utf-8&quot;});var r=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i&lt;e;i++)n[i]=t.charCodeAt(i);return r}(window.atob(t));return new window.Blob([r],{type:&quot;image/&quot;+e})},r.octetStream=function(t){document.location.href=&quot;data:application/octet-stream&quot;+t},r.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,r.MSG_IE_BAD_FORMAT=&quot;Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.&quot;},{&quot;../registry&quot;:931}],936:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(&quot;./cloneplot&quot;),toSVG:t(&quot;./tosvg&quot;),svgToImg:t(&quot;./svgtoimg&quot;),toImage:t(&quot;./toimage&quot;),downloadImage:t(&quot;./download&quot;)};e.exports=i},{&quot;./cloneplot&quot;:932,&quot;./download&quot;:933,&quot;./helpers&quot;:935,&quot;./svgtoimg&quot;:937,&quot;./toimage&quot;:938,&quot;./tosvg&quot;:939}],937:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;events&quot;).EventEmitter,a=t(&quot;./helpers&quot;);e.exports=function(t){var e=t.emitter||new i,r=new Promise((function(i,o){var s=window.Image,l=t.svg,c=t.format||&quot;png&quot;;if(n.isIE()&amp;&amp;&quot;svg&quot;!==c){var u=new Error(a.MSG_IE_BAD_FORMAT);return o(u),t.promise?r:e.emit(&quot;error&quot;,u)}var f,h,p=t.canvas,d=t.scale||1,g=t.width||300,m=t.height||150,v=d*g,y=d*m,x=p.getContext(&quot;2d&quot;),b=new s;&quot;svg&quot;===c||n.isSafari()?h=a.encodeSVG(l):(f=a.createBlob(l,&quot;svg&quot;),h=a.createObjectURL(f)),p.width=v,p.height=y,b.onload=function(){var r;switch(f=null,a.revokeObjectURL(h),&quot;svg&quot;!==c&amp;&amp;x.drawImage(b,0,0,v,y),c){case&quot;jpeg&quot;:r=p.toDataURL(&quot;image/jpeg&quot;);break;case&quot;png&quot;:r=p.toDataURL(&quot;image/png&quot;);break;case&quot;webp&quot;:r=p.toDataURL(&quot;image/webp&quot;);break;case&quot;svg&quot;:r=h;break;default:var n=&quot;Image format is not jpeg, png, svg or webp.&quot;;if(o(new Error(n)),!t.promise)return e.emit(&quot;error&quot;,n)}i(r),t.promise||e.emit(&quot;success&quot;,r)},b.onerror=function(r){if(f=null,a.revokeObjectURL(h),o(r),!t.promise)return e.emit(&quot;error&quot;,r)},b.src=h}));return t.promise?r:e}},{&quot;../lib&quot;:803,&quot;./helpers&quot;:935,events:116}],938:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i=t(&quot;../registry&quot;),a=t(&quot;../lib&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./cloneplot&quot;),l=t(&quot;./tosvg&quot;),c=t(&quot;./svgtoimg&quot;);e.exports=function(t,e){var r=new n,u=s(t,{format:&quot;png&quot;}),f=u.gd;f.style.position=&quot;absolute&quot;,f.style.left=&quot;-5000px&quot;,document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(&quot;_doPlot&quot;,f,u.data,u.layout,u.config).then(h).then((function(){var t=o.getDelay(f._fullLayout);setTimeout((function(){var t=l(f),n=document.createElement(&quot;canvas&quot;);n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&amp;&amp;document.body.removeChild(f)}}),t)})).catch((function(t){r.emit(&quot;error&quot;,t)})),r}},{&quot;../lib&quot;:803,&quot;../registry&quot;:931,&quot;./cloneplot&quot;:932,&quot;./helpers&quot;:935,&quot;./svgtoimg&quot;:937,&quot;./tosvg&quot;:939,events:116}],939:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../components/drawing&quot;),o=t(&quot;../components/color&quot;),s=t(&quot;../constants/xmlns_namespaces&quot;),l=/&quot;/g,c=new RegExp('(&quot;TOBESTRIPPED)|(TOBESTRIPPED&quot;)',&quot;g&quot;);e.exports=function(t,e,r){var u,f,h=t._fullLayout,p=h._paper,d=h._toppaper,g=h.width,m=h.height;p.insert(&quot;rect&quot;,&quot;:first-child&quot;).call(a.setRect,0,0,g,m).call(o.fill,h.paper_bgcolor);var v=h._basePlotModules||[];for(u=0;u&lt;v.length;u++){var y=v[u];y.toSVG&amp;&amp;y.toSVG(t)}if(d){var x=d.node().childNodes,b=Array.prototype.slice.call(x);for(u=0;u&lt;b.length;u++){var _=b[u];_.childNodes.length&amp;&amp;p.node().appendChild(_)}}h._draggers&amp;&amp;h._draggers.remove(),p.node().style.background=&quot;&quot;,p.selectAll(&quot;text&quot;).attr({&quot;data-unformatted&quot;:null,&quot;data-math&quot;:null}).each((function(){var t=n.select(this);if(&quot;hidden&quot;!==this.style.visibility&amp;&amp;&quot;none&quot;!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&amp;&amp;-1!==e.indexOf('&quot;')&amp;&amp;t.style(&quot;font-family&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;))}else t.remove()}));var w=[];if(h._gradientUrlQueryParts)for(f in h._gradientUrlQueryParts)w.push(f);if(h._patternUrlQueryParts)for(f in h._patternUrlQueryParts)w.push(f);w.length&amp;&amp;p.selectAll(w.join(&quot;,&quot;)).each((function(){var t=n.select(this),e=this.style.fill;e&amp;&amp;-1!==e.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;fill&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;));var r=this.style.stroke;r&amp;&amp;-1!==r.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;stroke&quot;,r.replace(l,&quot;TOBESTRIPPED&quot;))})),&quot;pdf&quot;!==e&amp;&amp;&quot;eps&quot;!==e||p.selectAll(&quot;#MathJax_SVG_glyphs path&quot;).attr(&quot;stroke-width&quot;,0),p.node().setAttributeNS(s.xmlns,&quot;xmlns&quot;,s.svg),p.node().setAttributeNS(s.xmlns,&quot;xmlns:xlink&quot;,s.xlink),&quot;svg&quot;===e&amp;&amp;r&amp;&amp;(p.attr(&quot;width&quot;,r*g),p.attr(&quot;height&quot;,r*m),p.attr(&quot;viewBox&quot;,&quot;0 0 &quot;+g+&quot; &quot;+m));var T=(new window.XMLSerializer).serializeToString(p.node());return T=function(t){var e=n.select(&quot;body&quot;).append(&quot;div&quot;).style({display:&quot;none&quot;}).html(&quot;&quot;),r=t.replace(/(&amp;[^;]*;)/gi,(function(t){return&quot;&amp;lt;&quot;===t?&quot;&amp;#60;&quot;:&quot;&amp;rt;&quot;===t?&quot;&amp;#62;&quot;:-1!==t.indexOf(&quot;&lt;&quot;)||-1!==t.indexOf(&quot;&gt;&quot;)?&quot;&quot;:e.html(t).text()}));return e.remove(),r}(T),T=(T=T.replace(/&amp;(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,&quot;&amp;amp;&quot;)).replace(c,&quot;'&quot;),i.isIE()&amp;&amp;(T=(T=(T=T.replace(/&quot;/gi,&quot;'&quot;)).replace(/(\('#)([^']*)('\))/gi,'(&quot;#$2&quot;)')).replace(/(\\')/gi,'&quot;')),T}},{&quot;../components/color&quot;:666,&quot;../components/drawing&quot;:688,&quot;../constants/xmlns_namespaces&quot;:780,&quot;../lib&quot;:803,&quot;@plotly/d3&quot;:58}],940:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;,!0),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:803}],941:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../plots/font_attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../components/drawing/attributes&quot;).pattern,f=t(&quot;../../lib/extend&quot;).extendFlat,h=l({editType:&quot;calc&quot;,arrayOk:!0,colorEditType:&quot;style&quot;}),p=f({},n.marker.line.width,{dflt:0}),d=f({width:p,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),g=f({line:d,editType:&quot;calc&quot;},s(&quot;marker&quot;),{opacity:{valType:&quot;number&quot;,arrayOk:!0,dflt:1,min:0,max:1,editType:&quot;style&quot;},pattern:u});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),text:n.text,texttemplate:o({editType:&quot;plot&quot;},{keys:c.eventDataKeys}),hovertext:n.hovertext,hovertemplate:a({},{keys:c.eventDataKeys}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;calc&quot;},insidetextanchor:{valType:&quot;enumerated&quot;,values:[&quot;end&quot;,&quot;middle&quot;,&quot;start&quot;],dflt:&quot;end&quot;,editType:&quot;plot&quot;},textangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;plot&quot;},textfont:f({},h,{}),insidetextfont:f({},h,{}),outsidetextfont:f({},h,{}),constraintext:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},cliponaxis:f({},n.cliponaxis,{}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},base:{valType:&quot;any&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},offset:{valType:&quot;number&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,dflt:null,min:0,arrayOk:!0,editType:&quot;calc&quot;},marker:g,offsetgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},alignmentgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:&quot;style&quot;},textfont:n.selected.textfont,editType:&quot;style&quot;},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:&quot;style&quot;},textfont:n.unselected.textfont,editType:&quot;style&quot;},_deprecated:{bardir:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;v&quot;,&quot;h&quot;]}}}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/drawing/attributes&quot;:687,&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218,&quot;./constants&quot;:943}],942:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;./arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;);e.exports=function(t,e){var r,c,u,f,h,p,d=n.getFromId(t,e.xaxis||&quot;x&quot;),g=n.getFromId(t,e.yaxis||&quot;y&quot;),m={msUTC:!(!e.base&amp;&amp;0!==e.base)};&quot;h&quot;===e.orientation?(r=d.makeCalcdata(e,&quot;x&quot;,m),u=g.makeCalcdata(e,&quot;y&quot;),f=i(e,g,&quot;y&quot;,u),h=!!e.yperiodalignment,p=&quot;y&quot;):(r=g.makeCalcdata(e,&quot;y&quot;,m),u=d.makeCalcdata(e,&quot;x&quot;),f=i(e,d,&quot;x&quot;,u),h=!!e.xperiodalignment,p=&quot;x&quot;),c=f.vals;for(var v=Math.min(c.length,r.length),y=new Array(v),x=0;x&lt;v;x++)y[x]={p:c[x],s:r[x]},h&amp;&amp;(y[x].orig_p=u[x],y[x][p+&quot;End&quot;]=f.ends[x],y[x][p+&quot;Start&quot;]=f.starts[x]),e.ids&amp;&amp;(y[x].id=String(e.ids[x]));return a(e,&quot;marker&quot;)&amp;&amp;o(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),a(e,&quot;marker.line&quot;)&amp;&amp;o(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),s(y,e),l(y,e),y}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/calc_selection&quot;:1220,&quot;./arrays_to_calcdata&quot;:940}],943:[function(t,e,r){&quot;use strict&quot;;e.exports={TEXTPAD:3,eventDataKeys:[&quot;value&quot;,&quot;label&quot;]}},{}],944:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=t(&quot;./sieve.js&quot;);function u(t,e,r,o,u){if(o.length){var b,_,w,T;switch(function(t,e){var r,a;for(r=0;r&lt;e.length;r++){var o,s=e[r],l=s[0].trace,c=&quot;funnel&quot;===l.type?l._base:l.base,u=&quot;h&quot;===l.orientation?l.xcalendar:l.ycalendar,f=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?function(){return null}:t.d2c;if(i(c)){for(a=0;a&lt;Math.min(c.length,s.length);a++)o=f(c[a],0,u),n(o)?(s[a].b=+o,s[a].hasB=1):s[a].b=0;for(;a&lt;s.length;a++)s[a].b=0}else{o=f(c,0,u);var h=n(o);for(o=h?o:0,a=0;a&lt;s.length;a++)s[a].b=o,h&amp;&amp;(s[a].hasB=1)}}}(r,o),u.mode){case&quot;overlay&quot;:f(e,r,o,u);break;case&quot;group&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.offset?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{posAxis:e,sepNegVal:!1,overlapNoMerge:!i.norm});(function(t,e,r,n){for(var i=t._fullLayout,a=r.positions,o=r.distinctPositions,s=r.minDiff,c=r.traces,u=c.length,f=a.length!==o.length,h=s*(1-n.gap),m=l(i,e._id)+c[0][0].trace.orientation,v=i._alignmentOpts[m]||{},y=0;y&lt;u;y++){var x,b,_=c[y],w=_[0].trace,T=v[w.alignmentgroup]||{},k=Object.keys(T.offsetGroups||{}).length,A=(x=k?h/k:f?h/u:h)*(1-(n.groupgap||0));b=k?((2*w._offsetIndex+1-k)*x-A)/2:f?((2*y+1-u)*x-A)/2:-A/2;var M=_[0].t;M.barwidth=A,M.poffset=b,M.bargroupwidth=h,M.bardelta=s}r.binWidth=c[0][0].t.barwidth/100,p(r),d(e,r),g(e,r,f)})(t,e,o,i),function(t,e){for(var r=t.traces,n=0;n&lt;r.length;n++){var i=r[n];if(void 0===i[0].trace.base)for(var o=new c([i],{posAxis:e,sepNegVal:!0,overlapNoMerge:!0}),s=0;s&lt;i.length;s++){var l=i[s];if(l.p!==a){var u=o.put(l.p,l.b+l.s);u&amp;&amp;(l.b=u)}}}}(o,e),i.norm?(v(o),y(r,o,i)):m(r,o)}(t,e,r,_,u),b.length&amp;&amp;f(e,r,b,u);break;case&quot;stack&quot;:case&quot;relative&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.base?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{posAxis:e,sepNegVal:&quot;relative&quot;===i.mode,overlapNoMerge:!(i.norm||&quot;stack&quot;===i.mode||&quot;relative&quot;===i.mode)});h(e,o,i),function(t,e,r){var n,i,o,l,c,u,f=x(t),h=e.traces;for(l=0;l&lt;h.length;l++)if(n=h[l],&quot;funnel&quot;===(i=n[0].trace).type)for(c=0;c&lt;n.length;c++)(u=n[c]).s!==a&amp;&amp;e.put(u.p,-.5*u.s);for(l=0;l&lt;h.length;l++){n=h[l],i=n[0].trace,o=&quot;funnel&quot;===i.type;var p=[];for(c=0;c&lt;n.length;c++)if((u=n[c]).s!==a){var d;d=o?u.s:u.s+u.b;var g=e.put(u.p,d),m=g+d;u.b=g,u[f]=m,r.norm||(p.push(m),u.hasB&amp;&amp;p.push(g))}r.norm||(i._extremes[t._id]=s.findExtremes(t,p,{tozero:!0,padded:!0}))}}(r,o,i);for(var l=0;l&lt;n.length;l++)for(var u=n[l],f=0;f&lt;u.length;f++){var p=u[f];if(p.s!==a)p.b+p.s===o.get(p.p,p.s)&amp;&amp;(p._outmost=!0)}i.norm&amp;&amp;y(r,o,i)}(0,e,r,_,u),b.length&amp;&amp;f(e,r,b,u)}!function(t,e){var r,i,a,o=x(e),s={},l=1/0,c=-1/0;for(r=0;r&lt;t.length;r++)for(a=t[r],i=0;i&lt;a.length;i++){var u=a[i].p;n(u)&amp;&amp;(l=Math.min(l,u),c=Math.max(c,u))}var f=1e4/(c-l),h=s.round=function(t){return String(Math.round(f*(t-l)))};for(r=0;r&lt;t.length;r++){(a=t[r])[0].t.extents=s;var p=a[0].t.poffset,d=Array.isArray(p);for(i=0;i&lt;a.length;i++){var g=a[i],m=g[o]-g.w/2;if(n(m)){var v=g[o]+g.w/2,y=h(g.p);s[y]?s[y]=[Math.min(m,s[y][0]),Math.max(v,s[y][1])]:s[y]=[m,v]}g.p0=g.p+(d?p[i]:p),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,e)}}function f(t,e,r,n){for(var i=0;i&lt;r.length;i++){var a=r[i],o=new c([a],{posAxis:t,sepNegVal:!1,overlapNoMerge:!n.norm});h(t,o,n),n.norm?(v(o),y(e,o,n)):m(e,o)}}function h(t,e,r){for(var n=e.minDiff,i=e.traces,a=n*(1-r.gap),o=a*(1-(r.groupgap||0)),s=-o/2,l=0;l&lt;i.length;l++){var c=i[l][0].t;c.barwidth=o,c.poffset=s,c.bargroupwidth=a,c.bardelta=n}e.binWidth=i[0][0].t.barwidth/100,p(e),d(t,e),g(t,e)}function p(t){var e,r,a=t.traces;for(e=0;e&lt;a.length;e++){var o,s=a[e],l=s[0],c=l.trace,u=l.t,f=c._offset||c.offset,h=u.poffset;if(i(f)){for(o=Array.prototype.slice.call(f,0,s.length),r=0;r&lt;o.length;r++)n(o[r])||(o[r]=h);for(r=o.length;r&lt;s.length;r++)o.push(h);u.poffset=o}else void 0!==f&amp;&amp;(u.poffset=f);var p=c._width||c.width,d=u.barwidth;if(i(p)){var g=Array.prototype.slice.call(p,0,s.length);for(r=0;r&lt;g.length;r++)n(g[r])||(g[r]=d);for(r=g.length;r&lt;s.length;r++)g.push(d);if(u.barwidth=g,void 0===f){for(o=[],r=0;r&lt;s.length;r++)o.push(h+(d-g[r])/2);u.poffset=o}}else void 0!==p&amp;&amp;(u.barwidth=p,void 0===f&amp;&amp;(u.poffset=h+(d-p)/2))}}function d(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++)for(var a=r[i],o=a[0].t,s=o.poffset,l=Array.isArray(s),c=o.barwidth,u=Array.isArray(c),f=0;f&lt;a.length;f++){var h=a[f],p=h.w=u?c[f]:c;h[n]=h.p+(l?s[f]:s)+p/2}}function g(t,e,r){var n=e.traces,i=e.minDiff/2;s.minDtick(t,e.minDiff,e.distinctPositions[0],r);for(var a=0;a&lt;n.length;a++){var o,l,c,u,f=n[a],h=f[0],p=h.trace,d=[];for(u=0;u&lt;f.length;u++)l=(o=f[u]).p-i,c=o.p+i,d.push(l,c);if(p.width||p.offset){var g=h.t,m=g.poffset,v=g.barwidth,y=Array.isArray(m),x=Array.isArray(v);for(u=0;u&lt;f.length;u++){o=f[u];var b=y?m[u]:m,_=x?v[u]:v;c=(l=o.p+b)+_,d.push(l,c)}}p._extremes[t._id]=s.findExtremes(t,d,{padded:!1})}}function m(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++){for(var a=r[i],o=a[0].trace,l=[],c=!1,u=0;u&lt;a.length;u++){var f=a[u],h=f.b,p=h+f.s;f[n]=p,l.push(p),f.hasB&amp;&amp;l.push(h),f.hasB&amp;&amp;f.b||(c=!0)}o._extremes[t._id]=s.findExtremes(t,l,{tozero:c,padded:!0})}}function v(t){for(var e=t.traces,r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++){var o=n[i];o.s!==a&amp;&amp;t.put(o.p,o.b+o.s)}}function y(t,e,r){var i=e.traces,o=x(t),l=&quot;fraction&quot;===r.norm?1:100,c=l/1e9,u=t.l2c(t.c2l(0)),f=&quot;stack&quot;===r.mode?l:u;function h(e){return n(t.c2l(e))&amp;&amp;(e&lt;u-c||e&gt;f+c||!n(u))}for(var p=0;p&lt;i.length;p++){for(var d=i[p],g=d[0].trace,m=[],v=!1,y=!1,b=0;b&lt;d.length;b++){var _=d[b];if(_.s!==a){var w=Math.abs(l/e.get(_.p,_.s));_.b*=w,_.s*=w;var T=_.b,k=T+_.s;_[o]=k,m.push(k),y=y||h(k),_.hasB&amp;&amp;(m.push(T),y=y||h(T)),_.hasB&amp;&amp;_.b||(v=!0)}}g._extremes[t._id]=s.findExtremes(t,m,{tozero:v,padded:y})}}function x(t){return t._id.charAt(0)}e.exports={crossTraceCalc:function(t,e){for(var r=e.xaxis,n=e.yaxis,i=t._fullLayout,a=t._fullData,s=t.calcdata,l=[],c=[],f=0;f&lt;a.length;f++){var h=a[f];if(!0===h.visible&amp;&amp;o.traceIs(h,&quot;bar&quot;)&amp;&amp;h.xaxis===r._id&amp;&amp;h.yaxis===n._id&amp;&amp;(&quot;h&quot;===h.orientation?l.push(s[f]):c.push(s[f]),h._computePh))for(var p=t.calcdata[f],d=0;d&lt;p.length;d++)&quot;function&quot;==typeof p[d].ph0&amp;&amp;(p[d].ph0=p[d].ph0()),&quot;function&quot;==typeof p[d].ph1&amp;&amp;(p[d].ph1=p[d].ph1())}var g={xCat:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type,yCat:&quot;category&quot;===n.type||&quot;multicategory&quot;===n.type,mode:i.barmode,norm:i.barnorm,gap:i.bargap,groupgap:i.bargroupgap};u(t,r,n,c,g),u(t,n,r,l,g)},setGroupPositions:u}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/constraints&quot;:862,&quot;../../registry&quot;:931,&quot;./sieve.js&quot;:954,&quot;fast-isnumeric&quot;:249}],945:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,u=t(&quot;./attributes&quot;),f=n.coerceFont;function h(t,e,r,n){var i=e.orientation,a=e[{v:&quot;x&quot;,h:&quot;y&quot;}[i]+&quot;axis&quot;],o=c(r,a)+i,s=r._alignmentOpts||{},l=n(&quot;alignmentgroup&quot;),u=s[o];u||(u=s[o]={});var f=u[l];f?f.traces.push(e):f=u[l]={traces:[e],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var h=n(&quot;offsetgroup&quot;),p=f.offsetGroups,d=p[h];h&amp;&amp;(d||(d=p[h]={offsetIndex:Object.keys(p).length}),e._offsetIndex=d.offsetIndex)}function p(t,e,r,i,a,o){var s=!(!1===(o=o||{}).moduleHasSelected),l=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),h=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),d=!!o.hasPathbar,g=Array.isArray(a)||&quot;auto&quot;===a,m=g||&quot;inside&quot;===a,v=g||&quot;outside&quot;===a;if(m||v){var y=f(i,&quot;textfont&quot;,r.font),x=n.extendFlat({},y),b=!(t.textfont&amp;&amp;t.textfont.color);if(b&amp;&amp;delete x.color,f(i,&quot;insidetextfont&quot;,x),d){var _=n.extendFlat({},y);b&amp;&amp;delete _.color,f(i,&quot;pathbar.textfont&quot;,_)}v&amp;&amp;f(i,&quot;outsidetextfont&quot;,y),s&amp;&amp;i(&quot;selected.textfont.color&quot;),l&amp;&amp;i(&quot;unselected.textfont.color&quot;),c&amp;&amp;i(&quot;constraintext&quot;),u&amp;&amp;i(&quot;cliponaxis&quot;),h&amp;&amp;i(&quot;textangle&quot;),i(&quot;texttemplate&quot;)}m&amp;&amp;p&amp;&amp;i(&quot;insidetextanchor&quot;)}e.exports={supplyDefaults:function(t,e,r,c){function f(r,i){return n.coerce(t,e,u,r,i)}if(o(t,e,c,f)){s(t,e,c,f),f(&quot;xhoverformat&quot;),f(&quot;yhoverformat&quot;),f(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),f(&quot;base&quot;),f(&quot;offset&quot;),f(&quot;width&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;);var h=f(&quot;textposition&quot;);p(t,e,c,f,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(t,e,f,r,c);var d=(e.marker.line||{}).color,g=a.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);g(t,e,d||i.defaultLine,{axis:&quot;y&quot;}),g(t,e,d||i.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1},crossTraceDefaults:function(t,e){var r;function i(t){return n.coerce(r._input,r,u,t)}if(&quot;group&quot;===e.barmode)for(var a=0;a&lt;t.length;a++)&quot;bar&quot;===(r=t[a]).type&amp;&amp;(r._input,h(0,r,e,i))},handleGroupingDefaults:h,handleText:p}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/constraints&quot;:862,&quot;../../registry&quot;:931,&quot;../scatter/period_defaults&quot;:1238,&quot;../scatter/xy_defaults&quot;:1245,&quot;./attributes&quot;:941,&quot;./style_defaults&quot;:956}],946:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),&quot;h&quot;===r.orientation?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},{}],947:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../lib&quot;).isArrayOrTypedArray;r.coerceString=function(t,e,r){if(&quot;string&quot;==typeof e){if(e||!t.noBlank)return e}else if((&quot;number&quot;==typeof e||!0===e)&amp;&amp;!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&amp;&amp;e&lt;i||void 0!==a&amp;&amp;e&gt;a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&amp;&amp;(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e&lt;t.length&amp;&amp;(r=t[e]):r=t,r},r.getLineWidth=function(t,e){return 0&lt;e.mlw?e.mlw:a(t.marker.line.width)?0:t.marker.line.width}},{&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],948:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./helpers&quot;).getLineWidth,l=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,c=t(&quot;../../constants/numerical&quot;).BADNUM;function u(t,e,r,i,a){var s,u,f,h,p,d,g,m=t.cd,v=m[0].trace,y=m[0].t,x=&quot;closest&quot;===i,b=&quot;waterfall&quot;===v.type,_=t.maxHoverDistance,w=t.maxSpikeDistance;&quot;h&quot;===v.orientation?(s=r,u=e,f=&quot;y&quot;,h=&quot;x&quot;,p=z,d=I):(s=e,u=r,f=&quot;x&quot;,h=&quot;y&quot;,d=z,p=I);var T=v[f+&quot;period&quot;],k=x||T;function A(t){return S(t,-1)}function M(t){return S(t,1)}function S(t,e){var r=t.w;return t[f]+e*r/2}function E(t){return t[f+&quot;End&quot;]-t[f+&quot;Start&quot;]}var L=x?A:T?function(t){return t.p-E(t)/2}:function(t){return Math.min(A(t),t.p-y.bardelta/2)},C=x?M:T?function(t){return t.p+E(t)/2}:function(t){return Math.max(M(t),t.p+y.bardelta/2)};function P(t,e,r){return a.finiteRange&amp;&amp;(r=0),n.inbox(t-s,e-s,r+Math.min(1,Math.abs(e-t)/g)-1)}function I(t){return P(L(t),C(t),_)}function O(t){var e=t[h];if(b){var r=Math.abs(t.rawS)||0;u&gt;0?e+=r:u&lt;0&amp;&amp;(e-=r)}return e}function z(t){var e=u,r=t.b,i=O(t);return n.inbox(r-e,i-e,_+(i-e)/(i-r)-1)}var D=t[f+&quot;a&quot;],R=t[h+&quot;a&quot;];g=Math.abs(D.r2c(D.range[1])-D.r2c(D.range[0]));var F=n.getDistanceFunction(i,p,d,(function(t){return(p(t)+d(t))/2}));if(n.getClosest(m,F,t),!1!==t.index&amp;&amp;m[t.index].p!==c){k||(L=function(t){return Math.min(A(t),t.p-y.bargroupwidth/2)},C=function(t){return Math.max(M(t),t.p+y.bargroupwidth/2)});var B=m[t.index],N=v.base?B.b+B.s:B.s;t[h+&quot;0&quot;]=t[h+&quot;1&quot;]=R.c2p(B[h],!0),t[h+&quot;LabelVal&quot;]=N;var j=y.extents[y.extents.round(B.p)];t[f+&quot;0&quot;]=D.c2p(x?L(B):j[0],!0),t[f+&quot;1&quot;]=D.c2p(x?C(B):j[1],!0);var U=void 0!==B.orig_p;return t[f+&quot;LabelVal&quot;]=U?B.orig_p:B.p,t.labelLabel=l(D,t[f+&quot;LabelVal&quot;],v[f+&quot;hoverformat&quot;]),t.valueLabel=l(R,t[h+&quot;LabelVal&quot;],v[h+&quot;hoverformat&quot;]),t.baseLabel=l(R,B.b,v[h+&quot;hoverformat&quot;]),t.spikeDistance=(function(t){var e=u,r=t.b,i=O(t);return n.inbox(r-e,i-e,w+(i-e)/(i-r)-1)}(B)+function(t){return P(A(t),M(t),w)}(B))/2,t[f+&quot;Spike&quot;]=D.c2p(B.p,!0),o(B,v,t),t.hovertemplate=v.hovertemplate,t}}function f(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&amp;&amp;i?n:void 0}e.exports={hoverPoints:function(t,e,r,n,a){var o=u(t,e,r,n,a);if(o){var s=o.cd,l=s[0].trace,c=s[o.index];return o.color=f(l,c),i.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(c,l,o),[o]}},hoverOnBars:u,getTraceColor:f}},{&quot;../../components/color&quot;:666,&quot;../../components/fx&quot;:706,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;./helpers&quot;:947}],949:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,colorbar:t(&quot;../scatter/marker_colorbar&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;bar&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],animatable:!0,meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../scatter/marker_colorbar&quot;:1236,&quot;./arrays_to_calcdata&quot;:940,&quot;./attributes&quot;:941,&quot;./calc&quot;:942,&quot;./cross_trace_calc&quot;:944,&quot;./defaults&quot;:945,&quot;./event_data&quot;:946,&quot;./hover&quot;:948,&quot;./layout_attributes&quot;:950,&quot;./layout_defaults&quot;:951,&quot;./plot&quot;:952,&quot;./select&quot;:953,&quot;./style&quot;:955}],950:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;,&quot;relative&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},barnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},bargroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],951:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=s(&quot;barmode&quot;),p=0;p&lt;r.length;p++){var d=r[p];if(n.traceIs(d,&quot;bar&quot;)&amp;&amp;d.visible){if(l=!0,&quot;group&quot;===h){var g=d.xaxis+d.yaxis;f[g]&amp;&amp;(u=!0),f[g]=!0}if(d.visible&amp;&amp;&quot;histogram&quot;===d.type)&quot;category&quot;!==i.getFromId({_fullLayout:e},d[&quot;v&quot;===d.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]).type&amp;&amp;(c=!0)}}l?(&quot;overlay&quot;!==h&amp;&amp;s(&quot;barnorm&quot;),s(&quot;bargap&quot;,c&amp;&amp;!u?0:.2),s(&quot;bargroupgap&quot;)):delete e.barmode}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;./layout_attributes&quot;:950}],952:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../registry&quot;),u=t(&quot;../../plots/cartesian/axes&quot;).tickText,f=t(&quot;./uniform_text&quot;),h=f.recordMinTextSize,p=f.clearMinTextSize,d=t(&quot;./style&quot;),g=t(&quot;./helpers&quot;),m=t(&quot;./constants&quot;),v=t(&quot;./attributes&quot;),y=v.text,x=v.textposition,b=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,_=m.TEXTPAD;function w(t){return t.id}function T(t){if(t.ids)return w}function k(t,e){return t&lt;e?1:-1}function A(t,e,r,n){var i;return!e.uniformtext.mode&amp;&amp;M(r)?(n&amp;&amp;(i=n()),t.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){i&amp;&amp;i()})).each(&quot;interrupt&quot;,(function(){i&amp;&amp;i()}))):t}function M(t){return t&amp;&amp;t.duration&gt;0}function S(t){return&quot;auto&quot;===t?0:t}function E(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function L(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||&quot;end&quot;,u=&quot;end&quot;===c,f=&quot;start&quot;===c,h=((a.leftToRight||0)+1)/2,p=1-h,d=i.width,g=i.height,m=Math.abs(e-t),v=Math.abs(n-r),y=m&gt;2*_&amp;&amp;v&gt;2*_?_:0;m-=2*y,v-=2*y;var x=S(l);&quot;auto&quot;!==l||d&lt;=m&amp;&amp;g&lt;=v||!(d&gt;m||g&gt;v)||(d&gt;v||g&gt;m)&amp;&amp;d&lt;g==m&lt;v||(x+=90);var b=E(i,x),w=1;s&amp;&amp;(w=Math.min(1,m/b.x,v/b.y));var T=i.left*p+i.right*h,A=(i.top+i.bottom)/2,M=(t+_)*p+(e-_)*h,L=(r+n)/2,C=0,P=0;if(f||u){var I=(o?b.x:b.y)/2,O=o?k(t,e):k(r,n);o?f?(M=t+O*y,C=-O*I):(M=e-O*y,C=O*I):f?(L=r+O*y,P=-O*I):(L=n-O*y,P=O*I)}return{textX:T,textY:A,targetX:M,targetY:L,anchorX:C,anchorY:P,scale:w,rotate:x}}e.exports={plot:function(t,e,r,f,m,v){var w=e.xaxis,C=e.yaxis,P=t._fullLayout;m||(m={mode:P.barmode,norm:P.barmode,gap:P.bargap,groupgap:P.bargroupgap},p(&quot;bar&quot;,P));var I=a.makeTraceGroups(f,r,&quot;trace bars&quot;).each((function(r){var c=n.select(this),f=r[0].trace,p=&quot;waterfall&quot;===f.type,I=&quot;funnel&quot;===f.type,O=&quot;bar&quot;===f.type||I,z=0;p&amp;&amp;f.connector.visible&amp;&amp;&quot;between&quot;===f.connector.mode&amp;&amp;(z=f.connector.line.width/2);var D=&quot;h&quot;===f.orientation,R=M(m),F=a.ensureSingle(c,&quot;g&quot;,&quot;points&quot;),B=T(f),N=F.selectAll(&quot;g.point&quot;).data(a.identity,B);N.enter().append(&quot;g&quot;).classed(&quot;point&quot;,!0),N.exit().remove(),N.each((function(c,p){var T,M,I=n.select(this),F=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),n?[i,a]:[a,i]}(c,w,C,D),B=F[0][0],N=F[0][1],j=F[1][0],U=F[1][1],V=0==(D?N-B:U-j);if(V&amp;&amp;O&amp;&amp;g.getLineWidth(f,c)&amp;&amp;(V=!1),V||(V=!(i(B)&amp;&amp;i(N)&amp;&amp;i(j)&amp;&amp;i(U))),c.isBlank=V,V&amp;&amp;(D?N=B:U=j),z&amp;&amp;!V&amp;&amp;(D?(B-=k(B,N)*z,N+=k(B,N)*z):(j-=k(j,U)*z,U+=k(j,U)*z)),&quot;waterfall&quot;===f.type){if(!V){var q=f[c.dir].marker;T=q.line.width,M=q.color}}else T=g.getLineWidth(f,c),M=c.mc||f.marker.color;function H(t){var e=n.round(T/2%1,2);return 0===m.gap&amp;&amp;0===m.groupgap?n.round(Math.round(t)-e,2):t}if(!t._context.staticPlot){var G=s.opacity(M)&lt;1||T&gt;.01?H:function(t,e,r){return r&amp;&amp;t===e?t:Math.abs(t-e)&gt;=2?H(t):t&gt;e?Math.ceil(t):Math.floor(t)};B=G(B,N,D),N=G(N,B,D),j=G(j,U,!D),U=G(U,j,!D)}var Y=A(a.ensureSingle(I,&quot;path&quot;),P,m,v);if(Y.style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;d&quot;,isNaN((N-B)*(U-j))||V&amp;&amp;t._context.staticPlot?&quot;M0,0Z&quot;:&quot;M&quot;+B+&quot;,&quot;+j+&quot;V&quot;+U+&quot;H&quot;+N+&quot;V&quot;+j+&quot;Z&quot;).call(l.setClipUrl,e.layerClipId,t),!P.uniformtext.mode&amp;&amp;R){var W=l.makePointStyleFns(f);l.singlePointStyle(c,Y,f,W,t)}!function(t,e,r,n,i,s,c,f,p,m,v){var w,T=e.xaxis,M=e.yaxis,C=t._fullLayout;function P(e,r,n){return a.ensureSingle(e,&quot;text&quot;).text(r).attr({class:&quot;bartext bartext-&quot;+w,&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1}).call(l.font,n).call(o.convertToTspans,t)}var I=n[0].trace,O=&quot;h&quot;===I.orientation,z=function(t,e,r,n,i){var o,s=e[0].trace;o=s.texttemplate?function(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,&quot;texttemplate&quot;);if(!s)return&quot;&quot;;var l,c,f,h,p=&quot;waterfall&quot;===o.type,d=&quot;funnel&quot;===o.type;&quot;h&quot;===o.orientation?(l=&quot;y&quot;,c=i,f=&quot;x&quot;,h=n):(l=&quot;x&quot;,c=n,f=&quot;y&quot;,h=i);function g(t){return u(h,h.c2l(t),!0).text}var m=e[r],v={};v.label=m.p,v.labelLabel=v[l+&quot;Label&quot;]=(y=m.p,u(c,c.c2l(y),!0).text);var y;var x=a.castOption(o,m.i,&quot;text&quot;);(0===x||x)&amp;&amp;(v.text=x);v.value=m.s,v.valueLabel=v[f+&quot;Label&quot;]=g(m.s);var _={};b(_,o,m.i),p&amp;&amp;(v.delta=+m.rawS||m.s,v.deltaLabel=g(v.delta),v.final=m.v,v.finalLabel=g(v.final),v.initial=v.final-v.delta,v.initialLabel=g(v.initial));d&amp;&amp;(v.value=m.s,v.valueLabel=g(v.value),v.percentInitial=m.begR,v.percentInitialLabel=a.formatPercent(m.begR),v.percentPrevious=m.difR,v.percentPreviousLabel=a.formatPercent(m.difR),v.percentTotal=m.sumR,v.percenTotalLabel=a.formatPercent(m.sumR));var w=a.castOption(o,m.i,&quot;customdata&quot;);w&amp;&amp;(v.customdata=w);return a.texttemplateString(s,v,t._d3locale,_,v,o._meta||{})}(t,e,r,n,i):s.textinfo?function(t,e,r,n){var i=t[0].trace,o=&quot;h&quot;===i.orientation,s=&quot;waterfall&quot;===i.type,l=&quot;funnel&quot;===i.type;function c(t){return u(o?r:n,+t,!0).text}var f,h=i.textinfo,p=t[e],d=h.split(&quot;+&quot;),g=[],m=function(t){return-1!==d.indexOf(t)};m(&quot;label&quot;)&amp;&amp;g.push((v=t[e].p,u(o?n:r,v,!0).text));var v;m(&quot;text&quot;)&amp;&amp;(0===(f=a.castOption(i,p.i,&quot;text&quot;))||f)&amp;&amp;g.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;m(&quot;initial&quot;)&amp;&amp;g.push(c(b)),m(&quot;delta&quot;)&amp;&amp;g.push(c(y)),m(&quot;final&quot;)&amp;&amp;g.push(c(x))}if(l){m(&quot;value&quot;)&amp;&amp;g.push(c(p.s));var _=0;m(&quot;percent initial&quot;)&amp;&amp;_++,m(&quot;percent previous&quot;)&amp;&amp;_++,m(&quot;percent total&quot;)&amp;&amp;_++;var w=_&gt;1;m(&quot;percent initial&quot;)&amp;&amp;(f=a.formatPercent(p.begR),w&amp;&amp;(f+=&quot; of initial&quot;),g.push(f)),m(&quot;percent previous&quot;)&amp;&amp;(f=a.formatPercent(p.difR),w&amp;&amp;(f+=&quot; of previous&quot;),g.push(f)),m(&quot;percent total&quot;)&amp;&amp;(f=a.formatPercent(p.sumR),w&amp;&amp;(f+=&quot; of total&quot;),g.push(f))}return g.join(&quot;&lt;br&gt;&quot;)}(e,r,n,i):g.getValue(s.text,r);return g.coerceString(y,o)}(C,n,i,T,M);w=function(t,e){var r=g.getValue(t.textposition,e);return g.coerceEnumerated(x,r)}(I,i);var D=&quot;stack&quot;===m.mode||&quot;relative&quot;===m.mode,R=n[i],F=!D||R._outmost;if(!z||&quot;none&quot;===w||(R.isBlank||s===c||f===p)&amp;&amp;(&quot;auto&quot;===w||&quot;inside&quot;===w))return void r.select(&quot;text&quot;).remove();var B=C.font,N=d.getBarColor(n[i],I),j=d.getInsideTextFont(I,i,B,N),U=d.getOutsideTextFont(I,i,B),V=r.datum();O?&quot;log&quot;===T.type&amp;&amp;V.s0&lt;=0&amp;&amp;(s=T.range[0]&lt;T.range[1]?0:T._length):&quot;log&quot;===M.type&amp;&amp;V.s0&lt;=0&amp;&amp;(f=M.range[0]&lt;M.range[1]?M._length:0);var q,H,G,Y,W,X=Math.abs(c-s)-2*_,Z=Math.abs(p-f)-2*_;&quot;outside&quot;===w&amp;&amp;(F||R.hasB||(w=&quot;inside&quot;));if(&quot;auto&quot;===w)if(F){w=&quot;inside&quot;,W=a.ensureUniformFontSize(t,j),q=P(r,z,W),H=l.bBox(q.node()),G=H.width,Y=H.height;var J=G&lt;=X&amp;&amp;Y&lt;=Z,K=G&lt;=Z&amp;&amp;Y&lt;=X,Q=O?X&gt;=G*(Z/Y):Z&gt;=Y*(X/G);G&gt;0&amp;&amp;Y&gt;0&amp;&amp;(J||K||Q)?w=&quot;inside&quot;:(w=&quot;outside&quot;,q.remove(),q=null)}else w=&quot;inside&quot;;if(!q){W=a.ensureUniformFontSize(t,&quot;outside&quot;===w?U:j);var $=(q=P(r,z,W)).attr(&quot;transform&quot;);if(q.attr(&quot;transform&quot;,&quot;&quot;),H=l.bBox(q.node()),G=H.width,Y=H.height,q.attr(&quot;transform&quot;,$),G&lt;=0||Y&lt;=0)return void q.remove()}var tt,et,rt=I.textangle;&quot;outside&quot;===w?(et=&quot;both&quot;===I.constraintext||&quot;outside&quot;===I.constraintext,tt=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,f=i.height,h=Math.abs(e-t),p=Math.abs(n-r);o=s?p&gt;2*_?_:0:h&gt;2*_?_:0;var d=1;l&amp;&amp;(d=s?Math.min(1,p/f):Math.min(1,h/u));var g=S(c),m=E(i,g),v=(s?m.x:m.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(t+e)/2,w=(r+n)/2,T=0,A=0,M=s?k(e,t):k(r,n);s?(b=e-M*o,T=M*v):(w=n+M*o,A=-M*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:A,scale:d,rotate:g}}(s,c,f,p,H,{isHorizontal:O,constrained:et,angle:rt})):(et=&quot;both&quot;===I.constraintext||&quot;inside&quot;===I.constraintext,tt=L(s,c,f,p,H,{isHorizontal:O,constrained:et,angle:rt,anchor:I.insidetextanchor}));tt.fontSize=W.size,h(I.type,tt,C),R.transform=tt,A(q,C,m,v).attr(&quot;transform&quot;,a.getTextTransform(tt))}(t,e,I,r,p,B,N,j,U,m,v),e.layerClipId&amp;&amp;l.hideOutsideRangePoint(c,I.select(&quot;text&quot;),w,C,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;l.setClipUrl(c,j?null:e.layerClipId,t)}));c.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,I,e,m)},toMoveInsideBar:L}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../components/fx/helpers&quot;:702,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;./attributes&quot;:941,&quot;./constants&quot;:943,&quot;./helpers&quot;:947,&quot;./style&quot;:955,&quot;./uniform_text&quot;:957,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],953:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l=&quot;funnel&quot;===s.type,c=&quot;h&quot;===s.orientation,u=[];if(!1===e)for(r=0;r&lt;i.length;r++)i[r].selected=0;else for(r=0;r&lt;i.length;r++){var f=i[r],h=&quot;ct&quot;in f?f.ct:n(f,a,o,c,l);e.contains(h,!1,r,t)?(u.push({pointNumber:r,x:a.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},{}],954:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=t(&quot;../../lib&quot;).distinctVals,i=t(&quot;../../constants/numerical&quot;).BADNUM;function a(t,e){this.traces=t,this.sepNegVal=e.sepNegVal,this.overlapNoMerge=e.overlapNoMerge;for(var r=1/0,a=[],o=0;o&lt;t.length;o++){for(var s=t[o],l=0;l&lt;s.length;l++){var c=s[l];c.p!==i&amp;&amp;a.push(c.p)}s[0]&amp;&amp;s[0].width1&amp;&amp;(r=Math.min(s[0].width1,r))}this.positions=a;var u=n(a);this.distinctPositions=u.vals,1===u.vals.length&amp;&amp;r!==1/0?this.minDiff=r:this.minDiff=Math.min(u.minDiff,r);var f=(e.posAxis||{}).type;&quot;category&quot;!==f&amp;&amp;&quot;multicategory&quot;!==f||(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e&lt;0&amp;&amp;this.sepNegVal?&quot;v&quot;:&quot;^&quot;)+(this.overlapNoMerge?t:Math.round(t/this.binWidth))}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803}],955:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../registry&quot;),l=t(&quot;./uniform_text&quot;).resizeText,c=t(&quot;./attributes&quot;),u=c.textfont,f=c.insidetextfont,h=c.outsidetextfont,p=t(&quot;./helpers&quot;);function d(t,e,r){a.pointStyle(t.selectAll(&quot;path&quot;),e,r),g(t,e,r)}function g(t,e,r){t.selectAll(&quot;text&quot;).each((function(t){var i=n.select(this),s=o.ensureUniformFontSize(r,m(i,t,e,r));a.font(i,s)}))}function m(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(&quot;bartext-inside&quot;)){var o=_(e,r);a=y(r,e.i,i,o)}else t.classed(&quot;bartext-outside&quot;)&amp;&amp;(a=x(r,e.i,i));return a}function v(t,e,r){return b(u,t.textfont,e,r)}function y(t,e,r,n){var a=v(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&amp;&amp;void 0===t.textfont.color[e])&amp;&amp;(a={color:i.contrast(n),family:a.family,size:a.size}),b(f,t.insidetextfont,e,a)}function x(t,e,r){var n=v(t,e,r);return b(h,t.outsidetextfont,e,n)}function b(t,e,r,n){e=e||{};var i=p.getValue(e.family,r),a=p.getValue(e.size,r),o=p.getValue(e.color,r);return{family:p.coerceString(t.family,i,n.family),size:p.coerceNumber(t.size,a,n.size),color:p.coerceColor(t.color,o,n.color)}}function _(t,e){return&quot;waterfall&quot;===e.type?e[t.dir].marker.color:t.mcc||t.mc||e.marker.color}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.barlayer&quot;).selectAll(&quot;g.trace&quot;);l(t,e,&quot;bar&quot;);var r=e.size(),i=t._fullLayout;e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})).each((function(t){(&quot;stack&quot;===i.barmode&amp;&amp;r&gt;1||0===i.bargap&amp;&amp;0===i.bargroupgap&amp;&amp;!t[0].trace.marker.line.width)&amp;&amp;n.select(this).attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)})),e.selectAll(&quot;g.points&quot;).each((function(e){d(n.select(this),e[0].trace,t)})),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},styleTextPoints:g,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(&quot;path&quot;),e),function(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,m(s,t,e,r));var l=e.selected.textfont&amp;&amp;e.selected.textfont.color;l&amp;&amp;(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}(t.selectAll(&quot;text&quot;),e,r)}(r,i,t):(d(r,i,t),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:941,&quot;./helpers&quot;:947,&quot;./uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],956:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../lib&quot;).coercePattern;e.exports=function(t,e,r,s,l){var c=r(&quot;marker.color&quot;,s),u=i(t,&quot;marker&quot;);u&amp;&amp;a(t,e,l,r,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.color&quot;,n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,l,r,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.width&quot;),r(&quot;marker.opacity&quot;),o(r,&quot;marker.pattern&quot;,c,u),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;)}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale/defaults&quot;:676,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../lib&quot;:803}],957:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;);function a(t){return&quot;_&quot;+t+&quot;Text_minsize&quot;}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=a(t),i=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o&lt;i,r[n]=r[n]||1/0,e.hide||(r[n]=Math.min(r[n],Math.max(o,i)))}},clearMinTextSize:function(t,e){e[a(t)]=void 0},resizeText:function(t,e,r){var a=t._fullLayout,o=a[&quot;_&quot;+r+&quot;Text_minsize&quot;];if(o){var s,l=&quot;hide&quot;===a.uniformtext.mode;switch(r){case&quot;funnelarea&quot;:case&quot;pie&quot;:case&quot;sunburst&quot;:s=&quot;g.slice&quot;;break;case&quot;treemap&quot;:case&quot;icicle&quot;:s=&quot;g.slice, g.pathbar&quot;;break;default:s=&quot;g.points &gt; g.point&quot;}e.selectAll(s).each((function(t){var e=t.transform;e&amp;&amp;(e.scale=l&amp;&amp;e.hide?0:o/e.fontSize,n.select(this).select(&quot;text&quot;).attr(&quot;transform&quot;,i.getTextTransform(e)))}))}}}},{&quot;../../lib&quot;:803,&quot;@plotly/d3&quot;:58}],958:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../scatterpolar/attributes&quot;),o=t(&quot;../bar/attributes&quot;);e.exports={r:a.r,theta:a.theta,r0:a.r0,dr:a.dr,theta0:a.theta0,dtheta:a.dtheta,thetaunit:a.thetaunit,base:i({},o.base,{}),offset:i({},o.offset,{}),width:i({},o.width,{}),text:i({},o.text,{}),hovertext:i({},o.hovertext,{}),marker:o.marker,hoverinfo:a.hoverinfo,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/template_attributes&quot;:926,&quot;../bar/attributes&quot;:941,&quot;../scatterpolar/attributes&quot;:1292}],959:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;../bar/arrays_to_calcdata&quot;),o=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions,s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../registry&quot;).traceIs,c=t(&quot;../../lib&quot;).extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,&quot;r&quot;),f=c.makeCalcdata(e,&quot;theta&quot;),h=e._length,p=new Array(h),d=u,g=f,m=0;m&lt;h;m++)p[m]={p:g[m],s:d[m]};function v(t){var r=e[t];void 0!==r&amp;&amp;(e[&quot;_&quot;+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return&quot;linear&quot;===c.type&amp;&amp;(v(&quot;width&quot;),v(&quot;offset&quot;)),n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a&lt;n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&amp;&amp;l(u,&quot;bar&quot;)&amp;&amp;u.subplot===r&amp;&amp;i.push(s)}var f=c({},e.radialaxis,{_id:&quot;x&quot;}),h=e.angularaxis;o(t,h,f,i,{mode:e.barmode,norm:e.barnorm,gap:e.bargap,groupgap:e.bargroupgap})}}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../bar/arrays_to_calcdata&quot;:940,&quot;../bar/cross_trace_calc&quot;:944,&quot;../scatter/calc_selection&quot;:1220}],960:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,a=t(&quot;../bar/style_defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(&quot;thetaunit&quot;),l(&quot;base&quot;),l(&quot;offset&quot;),l(&quot;width&quot;),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../bar/style_defaults&quot;:956,&quot;../scatterpolar/defaults&quot;:1294,&quot;./attributes&quot;:958}],961:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../bar/hover&quot;).getTraceColor,o=i.fillText,s=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText,l=t(&quot;../../plots/polar/helpers&quot;).isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,g=d?l:i.isPtInsideSector,m=t.maxHoverDistance,v=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]&gt;h.range[1]&amp;&amp;(x+=Math.PI);if(n.getClosest(c,(function(t){return g(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?m+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s&lt;0&amp;&amp;(t.idealAlign=&quot;left&quot;),[t]}}},{&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../plots/polar/helpers&quot;:919,&quot;../bar/hover&quot;:948,&quot;../scatterpolar/hover&quot;:1296}],962:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;barpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;bar&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;../scatterpolar/format_labels&quot;),style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:920,&quot;../bar/select&quot;:953,&quot;../bar/style&quot;:955,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scatterpolar/format_labels&quot;:1295,&quot;./attributes&quot;:958,&quot;./calc&quot;:959,&quot;./defaults&quot;:960,&quot;./hover&quot;:961,&quot;./layout_attributes&quot;:963,&quot;./layout_defaults&quot;:964,&quot;./plot&quot;:965}],963:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,dflt:.1,min:0,max:1,editType:&quot;calc&quot;}}},{}],964:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l&lt;r.length;l++){var c=r[l];&quot;barpolar&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;(o[a=c.subplot]||(s(&quot;barmode&quot;),s(&quot;bargap&quot;),o[a]=1))}}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:963}],965:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../plots/polar/helpers&quot;);e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)&gt;0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(&quot;g.barlayer&quot;);a.makeTraceGroups(p,r,&quot;trace bars&quot;).each((function(){var r=n.select(this),s=a.ensureSingle(r,&quot;g&quot;,&quot;points&quot;).selectAll(&quot;g.point&quot;).data(a.identity);s.enter().append(&quot;g&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).style(&quot;stroke-miterlimit&quot;,2).classed(&quot;point&quot;,!0),s.exit().remove(),s.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&amp;&amp;i(s)&amp;&amp;i(p)&amp;&amp;i(d)&amp;&amp;o!==s&amp;&amp;p!==d){var g=u.c2g(t.s1),m=(p+d)/2;t.ct=[l.c2p(g*Math.cos(m)),c.c2p(g*Math.sin(m))],e=h(o,s,p,d)}else e=&quot;M0,0Z&quot;;a.ensureSingle(r,&quot;path&quot;).attr(&quot;d&quot;,e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../plots/polar/helpers&quot;:919,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:249}],966:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../bar/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=c.line;e.exports={y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,editType:&quot;calc&quot;},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),name:{valType:&quot;string&quot;,editType:&quot;calc+clearAxisTypes&quot;},q1:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},median:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},q3:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},lowerfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},upperfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},notched:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},notchwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.25,editType:&quot;calc&quot;},notchspan:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},boxpoints:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;outliers&quot;,&quot;suspectedoutliers&quot;,!1],editType:&quot;calc&quot;},jitter:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},pointpos:{valType:&quot;number&quot;,min:-2,max:2,editType:&quot;calc&quot;},boxmean:{valType:&quot;enumerated&quot;,values:[!0,&quot;sd&quot;,!1],editType:&quot;calc&quot;},mean:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sd:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},quartilemethod:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;exclusive&quot;,&quot;inclusive&quot;],dflt:&quot;linear&quot;,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},marker:{outliercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0, 0, 0, 0)&quot;,editType:&quot;style&quot;},symbol:l({},c.symbol,{arrayOk:!1,editType:&quot;plot&quot;}),opacity:l({},c.opacity,{arrayOk:!1,dflt:1,editType:&quot;style&quot;}),size:l({},c.size,{arrayOk:!1,editType:&quot;calc&quot;}),color:l({},c.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:l({},u.color,{arrayOk:!1,dflt:a.defaultLine,editType:&quot;style&quot;}),width:l({},u.width,{arrayOk:!1,dflt:0,editType:&quot;style&quot;}),outliercolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},outlierwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,whiskerwidth:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;calc&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:&quot;style&quot;},unselected:{marker:n.unselected.marker,editType:&quot;style&quot;},text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),hovertemplate:s({}),hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;boxes&quot;,&quot;points&quot;],dflt:&quot;boxes+points&quot;,editType:&quot;style&quot;}}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../bar/attributes&quot;:941,&quot;../scatter/attributes&quot;:1218}],967:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=o._;e.exports=function(t,e){var r,c,y,x,b,_,w,T=t._fullLayout,k=i.getFromId(t,e.xaxis||&quot;x&quot;),A=i.getFromId(t,e.yaxis||&quot;y&quot;),M=[],S=&quot;violin&quot;===e.type?&quot;_numViolins&quot;:&quot;_numBoxes&quot;;&quot;h&quot;===e.orientation?(y=k,x=&quot;x&quot;,b=A,_=&quot;y&quot;,w=!!e.yperiodalignment):(y=A,x=&quot;y&quot;,b=k,_=&quot;x&quot;,w=!!e.xperiodalignment);var E,L,C,P,I,O,z=function(t,e,r,i){var s,l=e+&quot;0&quot;in t,c=&quot;d&quot;+e in t;if(e in t||l&amp;&amp;c){var u=r.makeCalcdata(t,e);return[a(t,r,e,u).vals,u]}s=l?t[e+&quot;0&quot;]:&quot;name&quot;in t&amp;&amp;(&quot;category&quot;===r.type||n(t.name)&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)||o.isDateTime(t.name)&amp;&amp;&quot;date&quot;===r.type)?t.name:i;for(var f=&quot;multicategory&quot;===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+&quot;calendar&quot;]),h=t._length,p=new Array(h),d=0;d&lt;h;d++)p[d]=f;return[p]}(e,_,b,T[S]),D=z[0],R=z[1],F=o.distinctVals(D,b),B=F.vals,N=F.minDiff/2,j=&quot;all&quot;===(e.boxpoints||e.points)?o.identity:function(t){return t.v&lt;E.lf||t.v&gt;E.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return y.d2c((e[t]||[])[r])},q=1/0,H=-1/0;for(r=0;r&lt;e._length;r++){var G=D[r];if(n(G)){if((E={}).pos=E[_]=G,w&amp;&amp;R&amp;&amp;(E.orig_p=R[r]),E.q1=V(&quot;q1&quot;),E.med=V(&quot;median&quot;),E.q3=V(&quot;q3&quot;),L=[],U&amp;&amp;o.isArrayOrTypedArray(U[r]))for(c=0;c&lt;U[r].length;c++)(O=y.d2c(U[r][c]))!==s&amp;&amp;(u(I={v:O,i:[r,c]},e,[r,c]),L.push(I));if(E.pts=L.sort(f),P=(C=E[x]=L.map(h)).length,E.med!==s&amp;&amp;E.q1!==s&amp;&amp;E.q3!==s&amp;&amp;E.med&gt;=E.q1&amp;&amp;E.q3&gt;=E.med){var Y=V(&quot;lowerfence&quot;);E.lf=Y!==s&amp;&amp;Y&lt;=E.q1?Y:p(E,C,P);var W=V(&quot;upperfence&quot;);E.uf=W!==s&amp;&amp;W&gt;=E.q3?W:d(E,C,P);var X=V(&quot;mean&quot;);E.mean=X!==s?X:P?o.mean(C,P):(E.q1+E.q3)/2;var Z=V(&quot;sd&quot;);E.sd=X!==s&amp;&amp;Z&gt;=0?Z:P?o.stdev(C,P,E.mean):E.q3-E.q1,E.lo=g(E),E.uo=m(E);var J=V(&quot;notchspan&quot;);J=J!==s&amp;&amp;J&gt;0?J:v(E,P),E.ln=E.med-J,E.un=E.med+J;var K=E.lf,Q=E.uf;e.boxpoints&amp;&amp;C.length&amp;&amp;(K=Math.min(K,C[0]),Q=Math.max(Q,C[P-1])),e.notched&amp;&amp;(K=Math.min(K,E.ln),Q=Math.max(Q,E.un)),E.min=K,E.max=Q}else{var $;o.warn([&quot;Invalid input - make sure that q1 &lt;= median &lt;= q3&quot;,&quot;q1 = &quot;+E.q1,&quot;median = &quot;+E.med,&quot;q3 = &quot;+E.q3].join(&quot;\n&quot;)),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}q=Math.min(q,E.min),H=Math.max(H,E.max),E.pts2=L.filter(j),M.push(E)}}e._extremes[y._id]=i.findExtremes(y,[q,H],{padded:!0})}else{var tt=y.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i&lt;r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(B,N),rt=B.length,nt=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=[];return e}(rt);for(r=0;r&lt;e._length;r++)if(O=tt[r],n(O)){var it=o.findBin(D[r],et);it&gt;=0&amp;&amp;it&lt;rt&amp;&amp;(u(I={v:O,i:r},e,r),nt[it].push(I))}var at=1/0,ot=-1/0,st=e.quartilemethod,lt=&quot;exclusive&quot;===st,ct=&quot;inclusive&quot;===st;for(r=0;r&lt;rt;r++)if(nt[r].length&gt;0){var ut,ft;if((E={}).pos=E[_]=B[r],L=E.pts=nt[r].sort(f),P=(C=E[x]=L.map(h)).length,E.min=C[0],E.max=C[P-1],E.mean=o.mean(C,P),E.sd=o.stdev(C,P,E.mean),E.med=o.interp(C,.5),P%2&amp;&amp;(lt||ct))lt?(ut=C.slice(0,P/2),ft=C.slice(P/2+1)):ct&amp;&amp;(ut=C.slice(0,P/2+1),ft=C.slice(P/2)),E.q1=o.interp(ut,.5),E.q3=o.interp(ft,.5);else E.q1=o.interp(C,.25),E.q3=o.interp(C,.75);E.lf=p(E,C,P),E.uf=d(E,C,P),E.lo=g(E),E.uo=m(E);var ht=v(E,P);E.ln=E.med-ht,E.un=E.med+ht,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=L.filter(j),M.push(E)}e._extremes[y._id]=i.findExtremes(y,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r&lt;t.length;r++){for(var n=t[r].pts||[],i={},a=0;a&lt;n.length;a++)i[n[a].i]=a;o.tagSelected(n,e,i)}}(M,e),M.length&gt;0?(M[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(t,&quot;median:&quot;),min:l(t,&quot;min:&quot;),q1:l(t,&quot;q1:&quot;),q3:l(t,&quot;q3:&quot;),max:l(t,&quot;max:&quot;),mean:&quot;sd&quot;===e.boxmean?l(t,&quot;mean \xb1 \u03c3:&quot;):l(t,&quot;mean:&quot;),lf:l(t,&quot;lower fence:&quot;),uf:l(t,&quot;upper fence:&quot;)}},T[S]++,M):[{t:{empty:!0}}]};var c={text:&quot;tx&quot;,hovertext:&quot;htx&quot;};function u(t,e,r){for(var n in c)o.isArrayOrTypedArray(e[n])&amp;&amp;(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&amp;&amp;(t[c[n]]=e[n][r[0]][r[1]]):t[c[n]]=e[n][r])}function f(t,e){return t.v-e.v}function h(t){return t.v}function p(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(o.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function d(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(o.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function g(t){return 4*t.q1-3*t.q3}function m(t){return 4*t.q3-3*t.q1}function v(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;fast-isnumeric&quot;:249}],968:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,o=[&quot;v&quot;,&quot;h&quot;];function s(t,e,r,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=o._id,p=h.charAt(0),d=[],g=0;for(s=0;s&lt;r.length;s++)for(c=u[r[s]],l=0;l&lt;c.length;l++)d.push(o.c2l(c[l].pos,!0)),g+=(c[l].pts2||[]).length;if(d.length){var m=i.distinctVals(d);&quot;category&quot;!==o.type&amp;&amp;&quot;multicategory&quot;!==o.type||(m.minDiff=1);var v=m.minDiff/2;n.minDtick(o,m.minDiff,m.vals[0],!0);var y=f[&quot;violin&quot;===t?&quot;_numViolins&quot;:&quot;_numBoxes&quot;],x=&quot;group&quot;===f[t+&quot;mode&quot;]&amp;&amp;y&gt;1,b=1-f[t+&quot;gap&quot;],_=1-f[t+&quot;groupgap&quot;];for(s=0;s&lt;r.length;s++){var w,T,k,A,M,S,E=(c=u[r[s]])[0].trace,L=c[0].t,C=E.width,P=E.side;if(C)w=T=A=C/2,k=0;else if(w=v,x){var I=a(f,o._id)+E.orientation,O=(f._alignmentOpts[I]||{})[E.alignmentgroup]||{},z=Object.keys(O.offsetGroups||{}).length,D=z||y;T=w*b*_/D,k=2*w*(((z?E._offsetIndex:L.num)+.5)/D-.5)*b,A=w*b/D}else T=w*b*_,k=0,A=w;L.dPos=w,L.bPos=k,L.bdPos=T,L.wHover=A;var R,F,B,N,j,U,V=k+T,q=Boolean(C);if(&quot;positive&quot;===P?(M=w*(C?1:.5),R=V,S=R=k):&quot;negative&quot;===P?(M=R=k,S=w*(C?1:.5),F=V):(M=S=w,R=F=V),(E.boxpoints||E.points)&amp;&amp;g&gt;0){var H=E.pointpos,G=E.jitter,Y=E.marker.size/2,W=0;H+G&gt;=0&amp;&amp;((W=V*(H+G))&gt;M?(q=!0,j=Y,B=W):W&gt;R&amp;&amp;(j=Y,B=M)),W&lt;=M&amp;&amp;(B=M);var X=0;H-G&lt;=0&amp;&amp;((X=-V*(H-G))&gt;S?(q=!0,U=Y,N=X):X&gt;F&amp;&amp;(U=Y,N=S)),X&lt;=S&amp;&amp;(N=S)}else B=M,N=S;var Z=new Array(c.length);for(l=0;l&lt;c.length;l++)Z[l]=c[l].pos;E._extremes[h]=n.findExtremes(o,Z,{padded:q,vpadminus:N,vpadplus:B,vpadLinearized:!0,ppadminus:{x:U,y:j}[p],ppadplus:{x:j,y:U}[p]})}}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,a=0;a&lt;o.length;a++){for(var l=o[a],c=&quot;h&quot;===l?i:n,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;box&quot;!==d.type&amp;&amp;&quot;candlestick&quot;!==d.type||p.empty||(d.orientation||&quot;v&quot;)!==l||d.xaxis!==n._id||d.yaxis!==i._id||u.push(f)}s(&quot;box&quot;,t,u,c)}},setPositionOffset:s}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/constraints&quot;:862}],969:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,l=t(&quot;../../plots/cartesian/axis_autotype&quot;),c=t(&quot;./attributes&quot;);function u(t,e,r,a){function o(t){var e=0;return t&amp;&amp;t.length&amp;&amp;(e+=1,n.isArrayOrTypedArray(t[0])&amp;&amp;t[0].length&amp;&amp;(e+=1)),e}function s(e){return n.validate(t[e],c[e])}var u,f=r(&quot;y&quot;),h=r(&quot;x&quot;);if(&quot;box&quot;===e.type){var p=r(&quot;q1&quot;),d=r(&quot;median&quot;),g=r(&quot;q3&quot;);e._hasPreCompStats=p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length&amp;&amp;g&amp;&amp;g.length,u=Math.min(n.minRowLength(p),n.minRowLength(d),n.minRowLength(g))}var m,v,y=o(f),x=o(h),b=y&amp;&amp;n.minRowLength(f),_=x&amp;&amp;n.minRowLength(h),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(e._hasPreCompStats)switch(String(x)+String(y)){case&quot;00&quot;:var k=s(&quot;x0&quot;)||s(&quot;dx&quot;);m=(s(&quot;y0&quot;)||s(&quot;dy&quot;))&amp;&amp;!k?&quot;h&quot;:&quot;v&quot;,v=u;break;case&quot;10&quot;:m=&quot;v&quot;,v=Math.min(u,_);break;case&quot;20&quot;:m=&quot;h&quot;,v=Math.min(u,h.length);break;case&quot;01&quot;:m=&quot;h&quot;,v=Math.min(u,b);break;case&quot;02&quot;:m=&quot;v&quot;,v=Math.min(u,f.length);break;case&quot;12&quot;:m=&quot;v&quot;,v=Math.min(u,_,f.length);break;case&quot;21&quot;:m=&quot;h&quot;,v=Math.min(u,h.length,b);break;case&quot;11&quot;:v=0;break;case&quot;22&quot;:var A,M=!1;for(A=0;A&lt;h.length;A++)if(&quot;category&quot;===l(h[A],w,T)){M=!0;break}if(M)m=&quot;v&quot;,v=Math.min(u,_,f.length);else{for(A=0;A&lt;f.length;A++)if(&quot;category&quot;===l(f[A],w,T)){M=!0;break}M?(m=&quot;h&quot;,v=Math.min(u,h.length,b)):(m=&quot;v&quot;,v=Math.min(u,_,f.length))}}else y&gt;0?(m=&quot;v&quot;,v=x&gt;0?Math.min(_,b):Math.min(b)):x&gt;0?(m=&quot;h&quot;,v=Math.min(_)):v=0;if(v){e._length=v;var S=r(&quot;orientation&quot;,m);e._hasPreCompStats?&quot;v&quot;===S&amp;&amp;0===x?(r(&quot;x0&quot;,0),r(&quot;dx&quot;,1)):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;(r(&quot;y0&quot;,0),r(&quot;dy&quot;,1)):&quot;v&quot;===S&amp;&amp;0===x?r(&quot;x0&quot;):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;r(&quot;y0&quot;),i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a)}else e.visible=!1}function f(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,&quot;marker.outliercolor&quot;),s=r(&quot;marker.line.outliercolor&quot;),l=&quot;outliers&quot;;e._hasPreCompStats?l=&quot;all&quot;:(o||s)&amp;&amp;(l=&quot;suspectedoutliers&quot;);var u=r(a+&quot;points&quot;,l);u?(r(&quot;jitter&quot;,&quot;all&quot;===u?.3:0),r(&quot;pointpos&quot;,&quot;all&quot;===u?-1.5:0),r(&quot;marker.symbol&quot;),r(&quot;marker.opacity&quot;),r(&quot;marker.size&quot;),r(&quot;marker.color&quot;,e.line.color),r(&quot;marker.line.color&quot;),r(&quot;marker.line.width&quot;),&quot;suspectedoutliers&quot;===u&amp;&amp;(r(&quot;marker.line.outliercolor&quot;,e.marker.color),r(&quot;marker.line.outlierwidth&quot;)),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;),r(&quot;selected.marker.size&quot;),r(&quot;unselected.marker.size&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;)):delete e.marker;var f=r(&quot;hoveron&quot;);&quot;all&quot;!==f&amp;&amp;-1===f.indexOf(&quot;points&quot;)||r(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function s(r,i){return n.coerce(t,e,c,r,i)}if(u(t,e,s,i),!1!==e.visible){o(t,e,i,s),s(&quot;xhoverformat&quot;),s(&quot;yhoverformat&quot;);var l=e._hasPreCompStats;l&amp;&amp;(s(&quot;lowerfence&quot;),s(&quot;upperfence&quot;)),s(&quot;line.color&quot;,(t.marker||{}).color||r),s(&quot;line.width&quot;),s(&quot;fillcolor&quot;,a.addOpacity(e.line.color,.5));var h=!1;if(l){var p=s(&quot;mean&quot;),d=s(&quot;sd&quot;);p&amp;&amp;p.length&amp;&amp;(h=!0,d&amp;&amp;d.length&amp;&amp;(h=&quot;sd&quot;))}s(&quot;boxmean&quot;,h),s(&quot;whiskerwidth&quot;),s(&quot;width&quot;),s(&quot;quartilemethod&quot;);var g=!1;if(l){var m=s(&quot;notchspan&quot;);m&amp;&amp;m.length&amp;&amp;(g=!0)}else n.validate(t.notchwidth,c.notchwidth)&amp;&amp;(g=!0);s(&quot;notched&quot;,g)&amp;&amp;s(&quot;notchwidth&quot;),f(t,e,s,{prefix:&quot;box&quot;})}},crossTraceDefaults:function(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;o&lt;t.length;o++){var l=(i=t[o]).type;&quot;box&quot;!==l&amp;&amp;&quot;violin&quot;!==l||(r=i._input,&quot;group&quot;===e[l+&quot;mode&quot;]&amp;&amp;s(r,i,e,a))}},handleSampleDefaults:u,handlePointsDefaults:f}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_autotype&quot;:855,&quot;../../registry&quot;:931,&quot;../bar/defaults&quot;:945,&quot;../scatter/period_defaults&quot;:1238,&quot;./attributes&quot;:966}],970:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return e.hoverOnBox&amp;&amp;(t.hoverOnBox=e.hoverOnBox),&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],971:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=i.fillText;function l(t,e,r,s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w=t.cd,T=t.xa,k=t.ya,A=w[0].trace,M=w[0].t,S=&quot;violin&quot;===A.type,E=[],L=M.bdPos,C=M.wHover,P=function(t){return u.c2l(t.pos)+M.bPos-u.c2l(p)};S&amp;&amp;&quot;both&quot;!==A.side?(&quot;positive&quot;===A.side&amp;&amp;(m=function(t){var e=P(t);return a.inbox(e,e+C,v)},x=L,b=0),&quot;negative&quot;===A.side&amp;&amp;(m=function(t){var e=P(t);return a.inbox(e-C,e,v)},x=0,b=L)):(m=function(t){var e=P(t);return a.inbox(e-C,e+C,v)},x=b=L),_=S?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,v)}:function(t){return a.inbox(t.min-h,t.max-h,v)},&quot;h&quot;===A.orientation?(h=e,p=r,d=_,g=m,l=&quot;y&quot;,u=k,c=&quot;x&quot;,f=T):(h=r,p=e,d=m,g=_,l=&quot;x&quot;,u=T,c=&quot;y&quot;,f=k);var I=Math.min(1,L/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function O(t){return(d(t)+g(t))/2}v=t.maxHoverDistance-I,y=t.maxSpikeDistance-I;var z=a.getDistanceFunction(s,d,g,O);if(a.getClosest(w,z,t),!1===t.index)return[];var D=w[t.index],R=A.line.color,F=(A.marker||{}).color;o.opacity(R)&amp;&amp;A.line.width?t.color=R:o.opacity(F)&amp;&amp;A.boxpoints?t.color=F:t.color=A.fillcolor,t[l+&quot;0&quot;]=u.c2p(D.pos+M.bPos-b,!0),t[l+&quot;1&quot;]=u.c2p(D.pos+M.bPos+x,!0),t[l+&quot;LabelVal&quot;]=void 0!==D.orig_p?D.orig_p:D.pos;var B=l+&quot;Spike&quot;;t.spikeDistance=O(D)*y/v,t[B]=u.c2p(D.pos,!0);var N={},j=[&quot;med&quot;,&quot;q1&quot;,&quot;q3&quot;,&quot;min&quot;,&quot;max&quot;];(A.boxmean||(A.meanline||{}).visible)&amp;&amp;j.push(&quot;mean&quot;),(A.boxpoints||A.points)&amp;&amp;j.push(&quot;lf&quot;,&quot;uf&quot;);for(var U=0;U&lt;j.length;U++){var V=j[U];if(V in D&amp;&amp;!(D[V]in N)){N[D[V]]=!0;var q=D[V],H=f.c2p(q,!0),G=i.extendFlat({},t);G.attr=V,G[c+&quot;0&quot;]=G[c+&quot;1&quot;]=H,G[c+&quot;LabelVal&quot;]=q,G[c+&quot;Label&quot;]=(M.labels?M.labels[V]+&quot; &quot;:&quot;&quot;)+n.hoverLabelText(f,q,A[c+&quot;hoverformat&quot;]),G.hoverOnBox=!0,&quot;mean&quot;===V&amp;&amp;&quot;sd&quot;in D&amp;&amp;&quot;sd&quot;===A.boxmean&amp;&amp;(G[c+&quot;err&quot;]=D.sd),t.name=&quot;&quot;,t.spikeDistance=void 0,t[B]=void 0,G.hovertemplate=!1,E.push(G)}}return E}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),g=a.quadrature((function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)}),(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)})),m=!1,v=0;v&lt;c.length;v++){o=c[v];for(var y=0;y&lt;(o.pts||[]).length;y++){var x=g(l=o.pts[y]);x&lt;=t.distance&amp;&amp;(t.distance=x,m=[v,y])}}if(!m)return!1;l=(o=c[m[0]]).pts[m[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,y0:_-w,y1:_+w,spikeDistance:t.distance,hovertemplate:h.hovertemplate});var T,k=o.orig_p,A=void 0!==k?k:o.pos;return&quot;h&quot;===h.orientation?(T=f,n.xLabelVal=l.x,n.yLabelVal=A):(T=u,n.xLabelVal=A,n.yLabelVal=l.y),n[T._id.charAt(0)+&quot;Spike&quot;]=T.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(&quot;boxes&quot;)&amp;&amp;(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(&quot;points&quot;)&amp;&amp;(i=c(t,e,r)),&quot;closest&quot;===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{&quot;../../components/color&quot;:666,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],972:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;).supplyLayoutDefaults,calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;box&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;boxLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:966,&quot;./calc&quot;:967,&quot;./cross_trace_calc&quot;:968,&quot;./defaults&quot;:969,&quot;./event_data&quot;:970,&quot;./hover&quot;:971,&quot;./layout_attributes&quot;:973,&quot;./layout_defaults&quot;:974,&quot;./plot&quot;:975,&quot;./select&quot;:976,&quot;./style&quot;:977}],973:[function(t,e,r){&quot;use strict&quot;;e.exports={boxmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;overlay&quot;,editType:&quot;calc&quot;},boxgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;},boxgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;}}},{}],974:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./layout_attributes&quot;);function o(t,e,r,i,a){for(var o=a+&quot;Layout&quot;,s=!1,l=0;l&lt;r.length;l++){var c=r[l];if(n.traceIs(c,o)){s=!0;break}}s&amp;&amp;(i(a+&quot;mode&quot;),i(a+&quot;gap&quot;),i(a+&quot;groupgap&quot;))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,(function(r,n){return i.coerce(t,e,a,r,n)}),&quot;box&quot;)},_supply:o}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./layout_attributes&quot;:973}],975:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;);function o(t,e,r,a){var o,s,l=&quot;h&quot;===r.orientation,c=e.val,u=e.pos,f=!!u.rangebreaks,h=a.bPos,p=a.wdPos||0,d=a.bPosPxOffset||0,g=r.whiskerwidth||0,m=r.notched||!1,v=m?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var y=t.selectAll(&quot;path.box&quot;).data(&quot;violin&quot;!==r.type||r.box.visible?i.identity:[]);y.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;box&quot;),y.exit().remove(),y.each((function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=u.c2l(t.pos+h,!0),a=u.l2p(e-o)+d,y=u.l2p(e+s)+d,x=f?(a+y)/2:u.l2p(e)+d,b=r.whiskerwidth,_=f?a*b+(1-b)*x:u.l2p(e-p)+d,w=f?y*b+(1-b)*x:u.l2p(e+p)+d,T=u.l2p(e-o*v)+d,k=u.l2p(e+s*v)+d,A=c.c2p(t.q1,!0),M=c.c2p(t.q3,!0),S=i.constrain(c.c2p(t.med,!0),Math.min(A,M)+1,Math.max(A,M)-1),E=void 0===t.lf||!1===r.boxpoints,L=c.c2p(E?t.min:t.lf,!0),C=c.c2p(E?t.max:t.uf,!0),P=c.c2p(t.ln,!0),I=c.c2p(t.un,!0);l?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+S+&quot;,&quot;+T+&quot;V&quot;+k+&quot;M&quot;+A+&quot;,&quot;+a+&quot;V&quot;+y+(m?&quot;H&quot;+P+&quot;L&quot;+S+&quot;,&quot;+k+&quot;L&quot;+I+&quot;,&quot;+y:&quot;&quot;)+&quot;H&quot;+M+&quot;V&quot;+a+(m?&quot;H&quot;+I+&quot;L&quot;+S+&quot;,&quot;+T+&quot;L&quot;+P+&quot;,&quot;+a:&quot;&quot;)+&quot;ZM&quot;+A+&quot;,&quot;+x+&quot;H&quot;+L+&quot;M&quot;+M+&quot;,&quot;+x+&quot;H&quot;+C+(0===g?&quot;&quot;:&quot;M&quot;+L+&quot;,&quot;+_+&quot;V&quot;+w+&quot;M&quot;+C+&quot;,&quot;+_+&quot;V&quot;+w)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+T+&quot;,&quot;+S+&quot;H&quot;+k+&quot;M&quot;+a+&quot;,&quot;+A+&quot;H&quot;+y+(m?&quot;V&quot;+P+&quot;L&quot;+k+&quot;,&quot;+S+&quot;L&quot;+y+&quot;,&quot;+I:&quot;&quot;)+&quot;V&quot;+M+&quot;H&quot;+a+(m?&quot;V&quot;+I+&quot;L&quot;+T+&quot;,&quot;+S+&quot;L&quot;+a+&quot;,&quot;+P:&quot;&quot;)+&quot;ZM&quot;+x+&quot;,&quot;+A+&quot;V&quot;+L+&quot;M&quot;+x+&quot;,&quot;+M+&quot;V&quot;+C+(0===g?&quot;&quot;:&quot;M&quot;+_+&quot;,&quot;+L+&quot;H&quot;+w+&quot;M&quot;+_+&quot;,&quot;+C+&quot;H&quot;+w))}))}function s(t,e,r,n){var o=e.x,s=e.y,l=n.bdPos,c=n.bPos,u=r.boxpoints||r.points;i.seedPseudoRandom();var f=t.selectAll(&quot;g.points&quot;).data(u?function(t){return t.forEach((function(t){t.t=n,t.trace=r})),t}:[]);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;points&quot;),f.exit().remove();var h=f.selectAll(&quot;path&quot;).data((function(t){var e,n,a=t.pts2,o=Math.max((t.max-t.min)/10,t.q3-t.q1),s=1e-9*o,f=.01*o,h=[],p=0;if(r.jitter){if(0===o)for(p=1,h=new Array(a.length),e=0;e&lt;a.length;e++)h[e]=1;else for(e=0;e&lt;a.length;e++){var d=Math.max(0,e-5),g=a[d].v,m=Math.min(a.length-1,e+5),v=a[m].v;&quot;all&quot;!==u&amp;&amp;(a[e].v&lt;t.lf?v=Math.min(v,t.lf):g=Math.max(g,t.uf));var y=Math.sqrt(f*(m-d)/(v-g+s))||0;y=i.constrain(Math.abs(y),0,1),h.push(y),p=Math.max(y,p)}n=2*r.jitter/(p||1)}for(e=0;e&lt;a.length;e++){var x=a[e],b=x.v,_=r.jitter?n*h[e]*(i.pseudoRandom()-.5):0,w=t.pos+c+l*(r.pointpos+_);&quot;h&quot;===r.orientation?(x.y=w,x.x=b):(x.x=w,x.y=b),&quot;suspectedoutliers&quot;===u&amp;&amp;b&lt;t.uo&amp;&amp;b&gt;t.lo&amp;&amp;(x.so=!0)}return a}));h.enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0),h.exit().remove(),h.call(a.translatePoints,o,s)}function l(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,h=a.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll(&quot;path.mean&quot;).data(&quot;box&quot;===r.type&amp;&amp;r.boxmean||&quot;violin&quot;===r.type&amp;&amp;r.box.visible&amp;&amp;r.meanline.visible?i.identity:[]);d.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;mean&quot;).style({fill:&quot;none&quot;,&quot;vector-effect&quot;:&quot;non-scaling-stroke&quot;}),d.exit().remove(),d.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+h,a=c.l2p(e+s)+h,d=u?(i+a)/2:c.l2p(e)+h,g=l.c2p(t.mean,!0),m=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);&quot;h&quot;===r.orientation?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+g+&quot;,&quot;+i+&quot;V&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+m+&quot;,&quot;+d+&quot;L&quot;+g+&quot;,&quot;+i+&quot;L&quot;+v+&quot;,&quot;+d+&quot;Z&quot;:&quot;&quot;)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+i+&quot;,&quot;+g+&quot;H&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+d+&quot;,&quot;+m+&quot;L&quot;+i+&quot;,&quot;+g+&quot;L&quot;+d+&quot;,&quot;+v+&quot;Z&quot;:&quot;&quot;))}))}e.exports={plot:function(t,e,r,a){var c=e.xaxis,u=e.yaxis;i.makeTraceGroups(a,r,&quot;trace boxes&quot;).each((function(t){var e,r,i=n.select(this),a=t[0],f=a.t,h=a.trace;(f.wdPos=f.bdPos*h.whiskerwidth,!0!==h.visible||f.empty)?i.remove():(&quot;h&quot;===h.orientation?(e=u,r=c):(e=c,r=u),o(i,{pos:e,val:r},h,f),s(i,{x:c,y:u},h,f),l(i,{pos:e,val:r},h,f))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;@plotly/d3&quot;:58}],976:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],977:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;);e.exports={style:function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.trace.boxes&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(&quot;stroke-width&quot;,e+&quot;px&quot;).call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(&quot;path.box&quot;);if(&quot;candlestick&quot;===o.type)c.each((function(t){if(!t.empty){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(&quot;opacity&quot;,o.selectedpoints&amp;&amp;!t.selected?.3:1)}}));else{l(c,s,o.line.color,o.fillcolor),r.selectAll(&quot;path.mean&quot;).style({&quot;stroke-width&quot;:s,&quot;stroke-dasharray&quot;:2*s+&quot;px,&quot;+s+&quot;px&quot;}).call(i.stroke,o.line.color);var u=r.selectAll(&quot;path.point&quot;);a.pointStyle(u,o,t)}}))},styleOnSelect:function(t,e,r){var n=e[0].trace,i=r.selectAll(&quot;path.point&quot;);n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;@plotly/d3&quot;:58}],978:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../ohlc/attributes&quot;),o=t(&quot;../box/attributes&quot;);function s(t){return{line:{color:n({},o.line.color,{dflt:t}),width:o.line.width,editType:&quot;style&quot;},fillcolor:o.fillcolor,editType:&quot;style&quot;}}e.exports={xperiod:a.xperiod,xperiod0:a.xperiod0,xperiodalignment:a.xperiodalignment,xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),x:a.x,open:a.open,high:a.high,low:a.low,close:a.close,line:{width:n({},o.line.width,{}),editType:&quot;style&quot;},increasing:s(a.increasing.line.color.dflt),decreasing:s(a.decreasing.line.color.dflt),text:a.text,hovertext:a.hovertext,whiskerwidth:n({},o.whiskerwidth,{dflt:0}),hoverlabel:a.hoverlabel}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../box/attributes&quot;:966,&quot;../ohlc/attributes&quot;:1164}],979:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../ohlc/calc&quot;).calcCommon;function s(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,l=i.getFromId(t,e.xaxis),c=i.getFromId(t,e.yaxis),u=l.makeCalcdata(e,&quot;x&quot;),f=a(e,l,&quot;x&quot;,u).vals,h=o(t,e,u,f,c,s);return h.length?(n.extendFlat(h[0].t,{num:r._numBoxes,dPos:n.distinctVals(f).minDiff/2,posLetter:&quot;x&quot;,valLetter:&quot;y&quot;}),r._numBoxes++,h):[{t:{empty:!0}}]}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;../ohlc/calc&quot;:1165}],980:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../ohlc/ohlc_defaults&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,n){var a=r(n+&quot;.line.color&quot;);r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.fillcolor&quot;,i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function c(r,i){return n.coerce(t,e,s,r,i)}a(t,e,c,i)?(o(t,e,i,c,{x:!0}),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;),c(&quot;line.width&quot;),l(t,e,c,&quot;increasing&quot;),l(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;whiskerwidth&quot;),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../ohlc/ohlc_defaults&quot;:1169,&quot;../scatter/period_defaults&quot;:1238,&quot;./attributes&quot;:978}],981:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;candlestick&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;,&quot;candlestick&quot;,&quot;boxLayout&quot;],meta:{},attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../box/layout_attributes&quot;),supplyLayoutDefaults:t(&quot;../box/layout_defaults&quot;).supplyLayoutDefaults,crossTraceCalc:t(&quot;../box/cross_trace_calc&quot;).crossTraceCalc,supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;../box/plot&quot;).plot,layerName:&quot;boxlayer&quot;,style:t(&quot;../box/style&quot;).style,hoverPoints:t(&quot;../ohlc/hover&quot;).hoverPoints,selectPoints:t(&quot;../ohlc/select&quot;)}},{&quot;../../plots/cartesian&quot;:868,&quot;../box/cross_trace_calc&quot;:968,&quot;../box/layout_attributes&quot;:973,&quot;../box/layout_defaults&quot;:974,&quot;../box/plot&quot;:975,&quot;../box/style&quot;:977,&quot;../ohlc/hover&quot;:1167,&quot;../ohlc/select&quot;:1171,&quot;./attributes&quot;:978,&quot;./calc&quot;:979,&quot;./defaults&quot;:980}],982:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_defaults&quot;),i=t(&quot;../../plot_api/plot_template&quot;);e.exports=function(t,e,r,a,o){a(&quot;a&quot;)||(a(&quot;da&quot;),a(&quot;a0&quot;)),a(&quot;b&quot;)||(a(&quot;db&quot;),a(&quot;b0&quot;)),function(t,e,r,a){[&quot;aaxis&quot;,&quot;baxis&quot;].forEach((function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:&quot;x&quot;,id:s+&quot;axis&quot;,letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||&quot;-&quot;===l.type||(t[o]={type:l.type})}))}(t,e,r,o)}},{&quot;../../plot_api/plot_template&quot;:843,&quot;./axis_defaults&quot;:987}],983:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r&gt;=10)return null;for(var i=1/0,a=-1/0,o=e.length,s=0;s&lt;o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&amp;&amp;(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{&quot;../../lib&quot;:803}],984:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./axis_attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=n({editType:&quot;calc&quot;});o.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},a0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},da:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},db:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},cheaterslope:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},aaxis:i,baxis:i,font:o,color:{valType:&quot;color&quot;,dflt:a.defaultLine,editType:&quot;plot&quot;},transforms:void 0}},{&quot;../../components/color/attributes&quot;:665,&quot;../../plots/font_attributes&quot;:883,&quot;./axis_attributes&quot;:986}],985:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g,m,v,y=n(r)?&quot;a&quot;:&quot;b&quot;,x=(&quot;a&quot;===y?t.aaxis:t.baxis).smoothing,b=&quot;a&quot;===y?t.a2i:t.b2j,_=&quot;a&quot;===y?r:i,w=&quot;a&quot;===y?i:r,T=&quot;a&quot;===y?e.a.length:e.b.length,k=&quot;a&quot;===y?e.b.length:e.a.length,A=Math.floor(&quot;a&quot;===y?t.b2j(w):t.a2i(w)),M=&quot;a&quot;===y?function(e){return t.evalxy([],e,A)}:function(e){return t.evalxy([],A,e)};x&amp;&amp;(s=Math.max(0,Math.min(k-2,A)),l=A-s,o=&quot;a&quot;===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),L=S&lt;E?1:-1,C=1e-8*(E-S),P=L&gt;0?Math.floor:Math.ceil,I=L&gt;0?Math.ceil:Math.floor,O=L&gt;0?Math.min:Math.max,z=L&gt;0?Math.max:Math.min,D=P(S+C),R=I(E-C),F=[[f=M(S)]];for(a=D;a*L&lt;R*L;a+=L)c=[],g=z(S,a),v=(m=O(E,a+L))-g,u=Math.max(0,Math.min(T-2,Math.floor(.5*(g+m)))),h=M(m),x&amp;&amp;(p=o(u,g-u),d=o(u,m-u),c.push([f[0]+p[0]/3*v,f[1]+p[1]/3*v]),c.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),c.push(h),F.push(c),f=h;return F}},{&quot;../../lib&quot;:803}],986:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../plots/cartesian/layout_attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionWithDates,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports={color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},smoothing:{valType:&quot;number&quot;,dflt:1,min:0,max:1.3,editType:&quot;calc&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},font:n({editType:&quot;calc&quot;}),offset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;},editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;date&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;},autotypenumbers:a.autotypenumbers,autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;calc&quot;},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,editType:&quot;calc&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}]},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cheatertype:{valType:&quot;enumerated&quot;,values:[&quot;index&quot;,&quot;value&quot;],dflt:&quot;value&quot;,editType:&quot;calc&quot;},tickmode:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;array&quot;],dflt:&quot;array&quot;,editType:&quot;calc&quot;},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},tickvals:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},showticklabels:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;end&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;start&quot;,editType:&quot;calc&quot;},tickfont:n({editType:&quot;calc&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;calc&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;calc&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;calc&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;,description:o(&quot;tick label&quot;)},tickformatstops:s(a.tickformatstops,&quot;calc&quot;,&quot;from-root&quot;),categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},labelpadding:{valType:&quot;integer&quot;,dflt:10,editType:&quot;calc&quot;},labelprefix:{valType:&quot;string&quot;,editType:&quot;calc&quot;},labelsuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;calc&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},gridcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},showgrid:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},minorgridcount:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},minorgridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},minorgridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;calc&quot;},startline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},startlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},startlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},endlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},tick0:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},dtick:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},arraytick0:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},arraydtick:{valType:&quot;integer&quot;,min:1,dflt:1,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;calc&quot;},titlefont:n({editType:&quot;calc&quot;}),titleoffset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;}},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:665,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/font_attributes&quot;:883}],987:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./attributes&quot;),i=t(&quot;../../components/color&quot;).addOpacity,a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),l=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),c=t(&quot;../../plots/cartesian/category_order_defaults&quot;),u=t(&quot;../../plots/cartesian/set_convert&quot;),f=t(&quot;../../plots/cartesian/axis_autotype&quot;);e.exports=function(t,e,r){var h=r.letter,p=r.font||{},d=n[h+&quot;axis&quot;];function g(r,n){return o.coerce(t,e,d,r,n)}function m(r,n){return o.coerce2(t,e,d,r,n)}r.name&amp;&amp;(e._name=r.name,e._id=r.name),g(&quot;autotypenumbers&quot;,r.autotypenumbersDflt);var v=g(&quot;type&quot;);(&quot;-&quot;===v&amp;&amp;(r.data&amp;&amp;function(t,e){if(&quot;-&quot;!==t.type)return;var r=t._id.charAt(0),n=t[r+&quot;calendar&quot;];t.type=f(e,n,{autotypenumbers:t.autotypenumbers})}(e,r.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:v=t.type=e.type),g(&quot;smoothing&quot;),g(&quot;cheatertype&quot;),g(&quot;showticklabels&quot;),g(&quot;labelprefix&quot;,h+&quot; = &quot;),g(&quot;labelsuffix&quot;),g(&quot;showtickprefix&quot;),g(&quot;showticksuffix&quot;),g(&quot;separatethousands&quot;),g(&quot;tickformat&quot;),g(&quot;exponentformat&quot;),g(&quot;minexponent&quot;),g(&quot;showexponent&quot;),g(&quot;categoryorder&quot;),g(&quot;tickmode&quot;),g(&quot;tickvals&quot;),g(&quot;ticktext&quot;),g(&quot;tick0&quot;),g(&quot;dtick&quot;),&quot;array&quot;===e.tickmode&amp;&amp;(g(&quot;arraytick0&quot;),g(&quot;arraydtick&quot;)),g(&quot;labelpadding&quot;),e._hovertitle=h,&quot;date&quot;===v)&amp;&amp;a.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,r.calendar);u(e,r.fullLayout),e.c2p=o.identity;var y=g(&quot;color&quot;,r.dfltColor),x=y===t.color?y:p.color;g(&quot;title.text&quot;)&amp;&amp;(o.coerceFont(g,&quot;title.font&quot;,{family:p.family,size:o.bigFont(p.size),color:x}),g(&quot;title.offset&quot;)),g(&quot;tickangle&quot;),g(&quot;autorange&quot;,!e.isValidRange(t.range))&amp;&amp;g(&quot;rangemode&quot;),g(&quot;range&quot;),e.cleanRange(),g(&quot;fixedrange&quot;),s(t,e,g,v),l(t,e,g,v,r),c(t,e,g,{data:r.data,dataAttr:h});var b=m(&quot;gridcolor&quot;,i(y,.3)),_=m(&quot;gridwidth&quot;),w=g(&quot;showgrid&quot;);w||(delete e.gridcolor,delete e.gridwidth);var T=m(&quot;startlinecolor&quot;,y),k=m(&quot;startlinewidth&quot;,_);g(&quot;startline&quot;,e.showgrid||!!T||!!k)||(delete e.startlinecolor,delete e.startlinewidth);var A=m(&quot;endlinecolor&quot;,y),M=m(&quot;endlinewidth&quot;,_);return g(&quot;endline&quot;,e.showgrid||!!A||!!M)||(delete e.endlinecolor,delete e.endlinewidth),w?(g(&quot;minorgridcount&quot;),g(&quot;minorgridwidth&quot;,_),g(&quot;minorgridcolor&quot;,i(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),&quot;none&quot;===e.showticklabels&amp;&amp;(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.minexponent,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(&quot;tickmode&quot;),e}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_autotype&quot;:855,&quot;../../plots/cartesian/category_order_defaults&quot;:859,&quot;../../plots/cartesian/set_convert&quot;:875,&quot;../../plots/cartesian/tick_label_defaults&quot;:876,&quot;../../plots/cartesian/tick_value_defaults&quot;:878,&quot;../../registry&quot;:931,&quot;./attributes&quot;:984}],988:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;).isArray1D,a=t(&quot;./cheater_basis&quot;),o=t(&quot;./array_minmax&quot;),s=t(&quot;./calc_gridlines&quot;),l=t(&quot;./calc_labels&quot;),c=t(&quot;./calc_clippath&quot;),u=t(&quot;../heatmap/clean_2d_array&quot;),f=t(&quot;./smooth_fill_2d_array&quot;),h=t(&quot;../heatmap/convert_column_xyz&quot;),p=t(&quot;./set_convert&quot;);e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),g=e.aaxis,m=e.baxis,v=e.x,y=e.y,x=[];v&amp;&amp;i(v)&amp;&amp;x.push(&quot;x&quot;),y&amp;&amp;i(y)&amp;&amp;x.push(&quot;y&quot;),x.length&amp;&amp;h(e,g,m,&quot;a&quot;,&quot;b&quot;,x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;v=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var T=&quot;index&quot;===g.cheatertype?b.length:b,k=&quot;index&quot;===m.cheatertype?_.length:_;v=a(T,k,e.cheaterslope)}e._x=v=u(v),e._y=y=u(y),f(v,b,_),f(y,b,_),p(e),e.setScale();var A=o(v),M=o(y),S=.5*(A[1]-A[0]),E=.5*(A[1]+A[0]),L=.5*(M[1]-M[0]),C=.5*(M[1]+M[0]);return A=[E-1.3*S,E+1.3*S],M=[C-1.3*L,C+1.3*L],e._extremes[r._id]=n.findExtremes(r,A,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,M,{padded:!0}),s(e,&quot;a&quot;,&quot;b&quot;),s(e,&quot;b&quot;,&quot;a&quot;),l(e,g),l(e,m),w.clipsegments=c(e._xctrl,e._yctrl,g,m),w.x=v,w.y=y,w.a=b,w.b=_,[w]}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../heatmap/clean_2d_array&quot;:1087,&quot;../heatmap/convert_column_xyz&quot;:1089,&quot;./array_minmax&quot;:983,&quot;./calc_clippath&quot;:989,&quot;./calc_gridlines&quot;:990,&quot;./calc_labels&quot;:991,&quot;./cheater_basis&quot;:993,&quot;./set_convert&quot;:1006,&quot;./smooth_fill_2d_array&quot;:1007}],989:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i&lt;=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i&lt;=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i&gt;=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i&gt;=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],990:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,g,m,v,y,x=t[&quot;_&quot;+e],b=t[e+&quot;axis&quot;],_=b._gridlines=[],w=b._minorgridlines=[],T=b._boundarylines=[],k=t[&quot;_&quot;+r],A=t[r+&quot;axis&quot;];&quot;array&quot;===b.tickmode&amp;&amp;(b.tickvals=x.slice());var M=t._xctrl,S=t._yctrl,E=M[0].length,L=M.length,C=t._a.length,P=t._b.length;n.prepTicks(b),&quot;array&quot;===b.tickmode&amp;&amp;delete b.tickvals;var I=b.smoothing?3:1;function O(n){var i,a,o,s,l,c,u,f,p,d,g,m,v=[],y=[],x={};if(&quot;b&quot;===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(P-2,a))),s=a-o,x.length=P,x.crossLength=C,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i&lt;C;i++)c=Math.min(C-2,i),u=i-c,f=t.evalxy([],i,a),A.smoothing&amp;&amp;i&gt;0&amp;&amp;(p=t.dxydi([],i-1,o,0,s),v.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),v.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(C-2,i))),u=i-c,x.length=C,x.crossLength=P,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a&lt;P;a++)o=Math.min(P-2,a),s=a-o,f=t.evalxy([],i,a),A.smoothing&amp;&amp;a&gt;0&amp;&amp;(g=t.dxydj([],c,a-1,u,0),v.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),m=t.dxydj([],c,a-1,u,1),v.push(f[0]-m[0]/3),y.push(f[1]-m[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=A,x.value=n,x.constvar=r,x.index=h,x.x=v,x.y=y,x.smoothing=A.smoothing,x}function z(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=k.length,&quot;b&quot;===e)for(o=Math.max(0,Math.min(P-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i&lt;E;i++)c[i]=M[n*I][i],u[i]=S[n*I][i];else for(a=Math.max(0,Math.min(C-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i&lt;L;i++)c[i]=M[i][n*I],u[i]=S[i][n*I];return f.axisLetter=e,f.axis=b,f.crossAxis=A,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=A.smoothing,f}if(&quot;array&quot;===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort((function(t,e){return t-e})))[0]-1,f=c[1]+1,h=u;h&lt;f;h++)(o=b.arraytick0+b.arraydtick*h)&lt;0||o&gt;x.length-1||_.push(i(z(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h&lt;f;h++)if(s=b.arraytick0+b.arraydtick*h,g=Math.min(s+b.arraydtick,x.length-1),!(s&lt;0||s&gt;x.length-1||g&lt;0||g&gt;x.length-1))for(m=x[s],v=x[g],a=0;a&lt;b.minorgridcount;a++)(y=g-s)&lt;=0||(d=m+(v-m)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(O(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(z(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(z(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],h=u;h&lt;=f;h++)p=b.tick0+b.dtick*h,_.push(i(O(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h&lt;f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a&lt;b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(O(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(O(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(O(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axes&quot;:854}],991:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r&lt;l.length;r++)o=l[r],-1!==[&quot;start&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[&quot;end&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axes&quot;:854}],992:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&amp;&amp;u/h),e[1]+(h&amp;&amp;f/h)],[e[0]-(p&amp;&amp;u/p),e[1]-(p&amp;&amp;f/p)]]}},{}],993:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&amp;&amp;(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&amp;&amp;(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var g=1/0,m=-1/0;for(a=0;a&lt;h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i&lt;f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,g=Math.min(c,g),m=Math.max(c,m),u[a][i]=c;var v=1/(m-g),y=-g*v;for(a=0;a&lt;h;a++)for(i=0;i&lt;f;i++)u[a][i]=v*u[a][i]+y;return u}},{&quot;../../lib&quot;:803}],994:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./catmull_rom&quot;),i=t(&quot;../../lib&quot;).ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,g,m,v,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f&lt;w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u&lt;b;u++,h+=l?3:1)for(p=t[h],d=e[h],g=r[u],m=o[u],c=0,f=0;c&lt;x;c++,f+=s?3:1)p[f]=g[c],d[f]=m[c];if(s)for(u=0,h=0;u&lt;b;u++,h+=l?3:1){for(c=1,f=3;c&lt;x-1;c++,f+=3)v=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=v[0][0],e[h][f-1]=v[0][1],t[h][f+1]=v[1][0],e[h][f+1]=v[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f&lt;_;f++){for(h=3;h&lt;w-3;h+=3)v=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=v[0][0],e[h-1][f]=v[0][1],t[h+1][f]=v[1][0],e[h+1][f]=v[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&amp;&amp;l)for(h=1;h&lt;w;h+=(h+1)%3==0?2:1){for(f=3;f&lt;_-3;f+=3)v=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+v[0][0]),e[h][f-1]=.5*(e[h][f-1]+v[0][1]),t[h][f+1]=.5*(t[h][f+1]+v[1][0]),e[h][f+1]=.5*(e[h][f+1]+v[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{&quot;../../lib&quot;:803,&quot;./catmull_rom&quot;:992}],995:[function(t,e,r){&quot;use strict&quot;;e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],996:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,g=p*i*2,m=-3*d,v=3*(d-g),y=3*(g-h),x=3*h,b=a*a,_=b*a,w=1-a,T=w*w,k=T*w;for(f=0;f&lt;t.length;f++)o=m*(u=t[f])[n][r]+v*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=m*u[n+1][r]+v*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=m*u[n+2][r]+v*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=m*u[n+3][r]+v*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=k*o+3*(T*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,g=3*(h-p),m=3*(p-u),v=3*u,y=1-a;for(l=0;l&lt;t.length;l++)o=d*(c=t[l])[n][r]+g*c[n][r+1]+m*c[n][r+2]+v*c[n][r+3],s=d*c[n+1][r]+g*c[n+1][r+1]+m*c[n+1][r+2]+v*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],997:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,g=d*d,m=g*d,v=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),T=3*(b-v),k=3*v;for(f=0;f&lt;t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+T*u[n+2][r]+k*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+T*u[n+2][r+1]+k*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+T*u[n+2][r+2]+k*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+T*u[n+2][r+3]+k*u[n+3][r+3],e[f]=m*o+3*(g*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,g=-3*p,m=3*(p-d),v=3*(d-f),y=3*f;for(l=0;l&lt;t.length;l++)o=g*(c=t[l])[n][r]+m*c[n+1][r]+v*c[n+2][r]+y*c[n+3][r],s=g*c[n][r+1]+m*c[n+1][r+1]+v*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],998:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&amp;&amp;i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=g*g,w=_*g,T=1-g,k=T*T,A=k*T;for(f=0;f&lt;t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*m*u[p][h+2])+v*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*m*u[p+1][h+2])+v*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*m*u[p+2][h+2])+v*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*m*u[p+3][h+2])+v*u[p+3][h+3],e[f]=A*i+3*(k*g*s+T*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=1-g;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+g*f[p+1][h],s=_*f[p][h+1]+g*f[p+1][h+1],l=_*f[p][h+2]+g*f[p+1][h+1],c=_*f[p][h+3]+g*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*m*l)+v*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));p*=3;var m=g*g,v=m*g,y=1-g,x=y*y,b=x*y,_=1-d;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*g*s+y*m*l)+v*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,g=1-h;for(l=0;l&lt;t.length;l++)i=g*(c=t[l])[f][u]+h*c[f][u+1],s=g*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],999:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xy_defaults&quot;),a=t(&quot;./ab_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../components/color/attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=&quot;clip&quot;+e.uid+&quot;carpet&quot;;var u=c(&quot;color&quot;,s.defaultLine);(n.coerceFont(c,&quot;font&quot;),c(&quot;carpet&quot;),a(t,e,l,c,u),e.a&amp;&amp;e.b)?(e.a.length&lt;3&amp;&amp;(e.aaxis.smoothing=0),e.b.length&lt;3&amp;&amp;(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&amp;&amp;c(&quot;cheaterslope&quot;)):e.visible=!1}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib&quot;:803,&quot;./ab_defaults&quot;:982,&quot;./attributes&quot;:984,&quot;./xy_defaults&quot;:1008}],1e3:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),plot:t(&quot;./plot&quot;),calc:t(&quot;./calc&quot;),animatable:!0,isContainer:!0,moduleType:&quot;trace&quot;,name:&quot;carpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;carpetAxis&quot;,&quot;notLegendIsolatable&quot;,&quot;noMultiCategory&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:984,&quot;./calc&quot;:988,&quot;./defaults&quot;:999,&quot;./plot&quot;:1005}],1001:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i&lt;n;i++){var a=t._fullData[i];if(a.index!==e.index&amp;&amp;(&quot;carpet&quot;===a.type&amp;&amp;(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],1002:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(0===t.length)return&quot;&quot;;var n,i=[],a=r?3:1;for(n=0;n&lt;t.length;n+=a)i.push(t[n]+&quot;,&quot;+e[n]),r&amp;&amp;n&lt;t.length-a&amp;&amp;(i.push(&quot;C&quot;),i.push([t[n+1]+&quot;,&quot;+e[n+1],t[n+2]+&quot;,&quot;+e[n+2]+&quot; &quot;].join(&quot; &quot;)));return i.join(r?&quot;&quot;:&quot;L&quot;)}},{}],1003:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length&gt;e.length&amp;&amp;(t=t.slice(0,e.length)):t=[],i=0;i&lt;e.length;i++)t[i]=r(e[i]);return t}},{&quot;../../lib&quot;:803}],1004:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p&lt;-90?(p+=180,l=-l):p&gt;90&amp;&amp;(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],1005:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;./map_1d_array&quot;),o=t(&quot;./makepath&quot;),s=t(&quot;./orient_text&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;),u=c.strRotate,f=c.strTranslate,h=t(&quot;../../constants/alignment&quot;);function p(t,e,r,i,s,l){var c=&quot;const-&quot;+s+&quot;-lines&quot;,u=r.selectAll(&quot;.&quot;+c).data(l);u.enter().append(&quot;path&quot;).classed(c,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),u.each((function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=&quot;M&quot;+o(c,u,i.smoothing);n.select(this).attr(&quot;d&quot;,f).style(&quot;stroke-width&quot;,i.width).style(&quot;stroke&quot;,i.color).style(&quot;fill&quot;,&quot;none&quot;)})),u.exit().remove()}function d(t,e,r,a,o,c,h,p){var d=c.selectAll(&quot;text.&quot;+p).data(h);d.enter().append(&quot;text&quot;).classed(p,!0);var g=0,m={};return d.each((function(o,c){var h;if(&quot;auto&quot;===o.axis.tickangle)h=s(a,e,r,o.xy,o.dxy);else{var p=(o.axis.tickangle+180)*Math.PI/180;h=s(a,e,r,o.xy,[Math.cos(p),Math.sin(p)])}c||(m={angle:h.angle,flip:h.flip});var d=(o.endAnchor?-1:1)*h.flip,v=n.select(this).attr({&quot;text-anchor&quot;:d&gt;0?&quot;start&quot;:&quot;end&quot;,&quot;data-notex&quot;:1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr(&quot;transform&quot;,f(h.p[0],h.p[1])+u(h.angle)+f(o.axis.labelpadding*d,.3*y.height)),g=Math.max(g,y.width+o.axis.labelpadding)})),d.exit().remove(),m.maxExtent=g,m}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,f=t._fullLayout._clips;c.makeTraceGroups(i,r,&quot;trace&quot;).each((function(e){var r=n.select(this),i=e[0],h=i.trace,g=h.aaxis,m=h.baxis,y=c.ensureSingle(r,&quot;g&quot;,&quot;minorlayer&quot;),x=c.ensureSingle(r,&quot;g&quot;,&quot;majorlayer&quot;),b=c.ensureSingle(r,&quot;g&quot;,&quot;boundarylayer&quot;),_=c.ensureSingle(r,&quot;g&quot;,&quot;labellayer&quot;);r.style(&quot;opacity&quot;,h.opacity),p(l,u,x,g,&quot;a&quot;,g._gridlines),p(l,u,x,m,&quot;b&quot;,m._gridlines),p(l,u,y,g,&quot;a&quot;,g._minorgridlines),p(l,u,y,m,&quot;b&quot;,m._minorgridlines),p(l,u,b,g,&quot;a-boundary&quot;,g._boundarylines),p(l,u,b,m,&quot;b-boundary&quot;,m._boundarylines);var w=d(t,l,u,h,i,_,g._labels,&quot;a-label&quot;),T=d(t,l,u,h,i,_,m._labels,&quot;b-label&quot;);!function(t,e,r,n,i,a,o,l){var u,f,h,p,d=c.aggNums(Math.min,null,r.a),g=c.aggNums(Math.max,null,r.a),m=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(d+g),f=m,h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&amp;&amp;c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));v(t,e,r,n,h,p,r.aaxis,i,a,o,&quot;a-title&quot;),u=d,f=.5*(m+y),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&amp;&amp;c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));v(t,e,r,n,h,p,r.baxis,i,a,l,&quot;b-title&quot;)}(t,_,h,i,l,u,w,T),function(t,e,r,n,i){var s,l,u,f,h=r.select(&quot;#&quot;+t._clipPathId);h.size()||(h=r.append(&quot;clipPath&quot;).classed(&quot;carpetclip&quot;,!0));var p=c.ensureSingle(h,&quot;path&quot;,&quot;carpetboundary&quot;),d=e.clipsegments,g=[];for(f=0;f&lt;d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),g.push(o(l,u,s.bicubic));var m=&quot;M&quot;+g.join(&quot;L&quot;)+&quot;Z&quot;;h.attr(&quot;id&quot;,t._clipPathId),p.attr(&quot;d&quot;,m)}(h,i,f,l,u)}))};var g=h.LINE_SPACING,m=(1-h.MID_SHIFT)/g+1;function v(t,e,r,a,o,c,h,p,d,v,y){var x=[];h.title.text&amp;&amp;x.push(h.title.text);var b=e.selectAll(&quot;text.&quot;+y).data(x),_=v.maxExtent;b.enter().append(&quot;text&quot;).classed(y,!0),b.each((function(){var e=s(r,p,d,o,c);-1===[&quot;start&quot;,&quot;both&quot;].indexOf(h.showticklabels)&amp;&amp;(_=0);var a=h.title.font.size;_+=a+h.title.offset;var y=(v.angle+(v.flip&lt;0?180:0)-e.angle+450)%360,x=y&gt;90&amp;&amp;y&lt;270,b=n.select(this);b.text(h.title.text).call(l.convertToTspans,t),x&amp;&amp;(_=(-l.lineCount(b)+m)*g*a-_),b.attr(&quot;transform&quot;,f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(i.font,h.title.font)})),b.exit().remove()}},{&quot;../../components/drawing&quot;:688,&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;./makepath&quot;:1002,&quot;./map_1d_array&quot;:1003,&quot;./orient_text&quot;:1004,&quot;@plotly/d3&quot;:58}],1006:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/search&quot;).findBin,a=t(&quot;./compute_control_points&quot;),o=t(&quot;./create_spline_evaluator&quot;),s=t(&quot;./create_i_derivative_evaluator&quot;),l=t(&quot;./create_j_derivative_evaluator&quot;);e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],g=r[0],m=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=v*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,g-=b,m+=b,t.isVisible=function(t,e){return t&gt;p&amp;&amp;t&lt;d&amp;&amp;e&gt;g&amp;&amp;e&lt;m},t.isOccluded=function(t,e){return t&lt;p||t&gt;d||e&lt;g||e&gt;m},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&amp;&amp;(n&lt;e[0]||n&gt;e[c-1]|i&lt;r[0]||i&gt;r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,g=0,m=0,v=[];n&lt;e[0]?(f=0,h=0,g=(n-e[0])/(e[1]-e[0])):n&gt;e[c-1]?(f=c-2,h=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i&lt;r[0]?(p=0,d=0,m=(i-r[0])/(r[1]-r[0])):i&gt;r[u-1]?(p=u-2,d=1,m=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),g&amp;&amp;(t.dxydi(v,f,p,h,d),l[0]+=v[0]*g,l[1]+=v[1]*g),m&amp;&amp;(t.dxydj(v,f,p,h,d),l[0]+=v[0]*m,l[1]+=v[1]*m)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{&quot;../../lib/search&quot;:823,&quot;./compute_control_points&quot;:994,&quot;./constants&quot;:995,&quot;./create_i_derivative_evaluator&quot;:996,&quot;./create_j_derivative_evaluator&quot;:997,&quot;./create_spline_evaluator&quot;:998}],1007:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e&gt;0&amp;&amp;void 0!==(n=t[r][e-1])&amp;&amp;(a++,i+=n),e&lt;c-1&amp;&amp;void 0!==(n=t[r][e+1])&amp;&amp;(a++,i+=n),r&gt;0&amp;&amp;void 0!==(n=t[r-1][e])&amp;&amp;(a++,i+=n),r&lt;u-1&amp;&amp;void 0!==(n=t[r+1][e])&amp;&amp;(a++,i+=n),i/Math.max(1,a)}var h,p,d,g,m,v,y,x,b,_,w,T=0;for(i=0;i&lt;c;i++)for(a=0;a&lt;u;a++)void 0===t[a][i]&amp;&amp;(s.push(i),l.push(a),t[a][i]=f(i,a)),T=Math.max(T,Math.abs(t[a][i]));if(!s.length)return t;var k=0,A=0,M=s.length;do{for(k=0,o=0;o&lt;M;o++){i=s[o],a=l[o];var S,E,L,C,P,I,O=0,z=0;0===i?(L=e[P=Math.min(c-1,2)],C=e[1],S=t[a][P],z+=(E=t[a][1])+(E-S)*(e[0]-C)/(C-L),O++):i===c-1&amp;&amp;(L=e[P=Math.max(0,c-3)],C=e[c-2],S=t[a][P],z+=(E=t[a][c-2])+(E-S)*(e[c-1]-C)/(C-L),O++),(0===i||i===c-1)&amp;&amp;a&gt;0&amp;&amp;a&lt;u-1&amp;&amp;(h=r[a+1]-r[a],z+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),O++),0===a?(L=r[I=Math.min(u-1,2)],C=r[1],S=t[I][i],z+=(E=t[1][i])+(E-S)*(r[0]-C)/(C-L),O++):a===u-1&amp;&amp;(L=r[I=Math.max(0,u-3)],C=r[u-2],S=t[I][i],z+=(E=t[u-2][i])+(E-S)*(r[u-1]-C)/(C-L),O++),(0===a||a===u-1)&amp;&amp;i&gt;0&amp;&amp;i&lt;c-1&amp;&amp;(h=e[i+1]-e[i],z+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),O++),O?z/=O:(d=e[i+1]-e[i],g=e[i]-e[i-1],x=(m=r[a+1]-r[a])*(v=r[a]-r[a-1])*(m+v),z=((y=d*g*(d+g))*(v*t[a+1][i]+m*t[a-1][i])+x*(g*t[a][i+1]+d*t[a][i-1]))/(x*(g+d)+y*(v+m))),k+=(_=(b=z-t[a][i])/T)*_,w=O?0:.85,t[a][i]+=b*(1+w)}k=Math.sqrt(k)}while(A++&lt;100&amp;&amp;k&gt;1e-5);return n.log(&quot;Smoother converged to&quot;,k,&quot;after&quot;,A,&quot;iterations&quot;),t}},{&quot;../../lib&quot;:803}],1008:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArray1D;e.exports=function(t,e,r){var i=r(&quot;x&quot;),a=i&amp;&amp;i.length,o=r(&quot;y&quot;),s=o&amp;&amp;o.length;if(!a&amp;&amp;!s)return!1;if(e._cheater=!i,a&amp;&amp;!n(i)||s&amp;&amp;!n(o))e._length=null;else{var l=a?i.length:1/0;s&amp;&amp;(l=Math.min(l,o.length)),e.a&amp;&amp;e.a.length&amp;&amp;(l=Math.min(l,e.a.length)),e.b&amp;&amp;e.b.length&amp;&amp;(l=Math.min(l,e.b.length)),e._length=l}return!0}},{&quot;../../lib&quot;:803}],1009:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../scattergeo/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/color/attributes&quot;).defaultLine,l=t(&quot;../../lib/extend&quot;).extendFlat,c=i.marker.line;e.exports=l({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},locationmode:i.locationmode,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,arrayOk:!0,min:0,max:1,dflt:1,editType:&quot;style&quot;},editType:&quot;calc&quot;},selected:{marker:{opacity:i.selected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:l({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;location&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/color/attributes&quot;:665,&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scattergeo/attributes&quot;:1260}],1010:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;);function l(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f&lt;c;f++){var h=u[f]={},p=e.locations[f],d=e.z[f];r(p)&amp;&amp;n(d)?(h.loc=p,h.z=d):(h.loc=null,h.z=i),h.index=f}return o(u,e),a(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),s(u,e),u}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../constants/numerical&quot;:779,&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/calc_selection&quot;:1220,&quot;fast-isnumeric&quot;:249}],1011:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;);if(l&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length){e._length=Math.min(l.length,c.length);var u,f=s(&quot;geojson&quot;);(&quot;string&quot;==typeof f&amp;&amp;&quot;&quot;!==f||n.isPlainObject(f))&amp;&amp;(u=&quot;geojson-id&quot;),&quot;geojson-id&quot;===s(&quot;locationmode&quot;,u)&amp;&amp;s(&quot;featureidkey&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)}else e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;./attributes&quot;:1009}],1012:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.location=e.location,t.z=e.z;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t.ct=a.ct,t}},{}],1013:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot,p=[e,r],d=[e+360,r];for(s=0;s&lt;u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l&lt;o._polygons.length;l++)o._polygons[l].contains(p)&amp;&amp;(c=!c),o._polygons[l].contains(d)&amp;&amp;(c=!c);if(c)break}if(c&amp;&amp;o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,t.zLabel=n.tickText(h.mockAxis,h.mockAxis.c2l(o.z),&quot;hover&quot;).text,t.hovertemplate=o.hovertemplate,function(t,e,r){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,o=String(r.loc),s=&quot;all&quot;===n?i.hoverinfo.flags:n.split(&quot;+&quot;),l=-1!==s.indexOf(&quot;name&quot;),c=-1!==s.indexOf(&quot;location&quot;),u=-1!==s.indexOf(&quot;z&quot;),f=-1!==s.indexOf(&quot;text&quot;),h=[];!l&amp;&amp;c?t.nameOverride=o:(l&amp;&amp;(t.nameOverride=e.name),c&amp;&amp;h.push(o));u&amp;&amp;h.push(t.zLabel);f&amp;&amp;a(r,e,h);t.extraText=h.join(&quot;&lt;br&gt;&quot;)}(t,f,o),[t]}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;./attributes&quot;:1009}],1014:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;choropleth&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/geo&quot;:887,&quot;../heatmap/colorbar&quot;:1088,&quot;./attributes&quot;:1009,&quot;./calc&quot;:1010,&quot;./defaults&quot;:1011,&quot;./event_data&quot;:1012,&quot;./hover&quot;:1013,&quot;./plot&quot;:1015,&quot;./select&quot;:1016,&quot;./style&quot;:1017}],1015:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,s=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,l=t(&quot;./style&quot;).style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],i=n._subplot,l=r.locationmode,c=r._length,u=&quot;geojson-id&quot;===l?a.extractTraceFeature(t):o(r,i.topojson),f=[],h=[],p=0;p&lt;c;p++){var d=t[p],g=&quot;geojson-id&quot;===l?d.fOut:a.locationToFeature(l,d.loc,u);if(g){d.geojson=g,d.ct=g.properties.ct,d._polygons=a.feature2polygons(g);var m=a.computeBbox(g);f.push(m[0],m[2]),h.push(m[1],m[3])}else d.geojson=null}if(&quot;geojson&quot;===n.fitbounds&amp;&amp;&quot;geojson-id&quot;===l){var v=a.computeBbox(a.getTraceGeojson(r));f=[v[0],v[2]],h=[v[1],v[3]]}var y={padded:!0};r._extremes.lon=s(n.lonaxis._ax,f,y),r._extremes.lat=s(n.lataxis._ax,h,y)},plot:function(t,e,r){var a=e.layers.backplot.select(&quot;.choroplethlayer&quot;);i.makeTraceGroups(a,r,&quot;trace choropleth&quot;).each((function(e){var r=n.select(this).selectAll(&quot;path.choroplethlocation&quot;).data(i.identity);r.enter().append(&quot;path&quot;).classed(&quot;choroplethlocation&quot;,!0),r.exit().remove(),l(t,e)}))}}},{&quot;../../lib&quot;:803,&quot;../../lib/geo_location_utils&quot;:796,&quot;../../lib/topojson_utils&quot;:832,&quot;../../plots/cartesian/autorange&quot;:853,&quot;./style&quot;:1017,&quot;@plotly/d3&quot;:58}],1016:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)(i=(n=s[r]).ct)&amp;&amp;(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],1017:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;);function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(&quot;.choroplethlocation&quot;),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFuncFromTrace(r);s.each((function(t){n.select(this).attr(&quot;fill&quot;,u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,&quot;&quot;,t.mlw||c.width||0).style(&quot;opacity&quot;,l.opacity)})),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&amp;&amp;s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(&quot;.choroplethlocation&quot;),n,t):s(t,e)}}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale&quot;:678,&quot;../../components/drawing&quot;:688,&quot;@plotly/d3&quot;:58}],1018:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../choropleth/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:s({},n.featureidkey,{}),below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:&quot;plot&quot;}),width:s({},n.marker.line.width,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},opacity:s({},n.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:[&quot;properties&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})},i(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../choropleth/attributes&quot;:1009}],1019:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/geojson_utils&quot;).makeBlank,l=t(&quot;../../lib/geo_location_utils&quot;);function c(t){var e,r=t[0].trace,n=r._opts;if(r.selectedpoints){for(var a=o.makeSelectedPointStyleFns(r),s=0;s&lt;t.length;s++){var l=t[s];l.fOut&amp;&amp;(l.fOut.properties.mo2=a.selectedOpacityFn(l))}e={type:&quot;identity&quot;,property:&quot;mo2&quot;}}else e=i.isArrayOrTypedArray(r.marker.opacity)?{type:&quot;identity&quot;,property:&quot;mo&quot;}:r.marker.opacity;return i.extendFlat(n.fill.paint,{&quot;fill-opacity&quot;:e}),i.extendFlat(n.line.paint,{&quot;line-opacity&quot;:e}),n}e.exports={convert:function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,o={layout:{visibility:&quot;none&quot;},paint:{}},u={layout:{visibility:&quot;none&quot;},paint:{}},f=e._opts={fill:o,line:u,geojson:s()};if(!r)return f;var h=l.extractTraceFeature(t);if(!h)return f;var p,d,g,m=a.makeColorScaleFuncFromTrace(e),v=e.marker,y=v.line||{};i.isArrayOrTypedArray(v.opacity)&amp;&amp;(p=function(t){var e=t.mo;return n(e)?+i.constrain(e,0,1):0}),i.isArrayOrTypedArray(y.color)&amp;&amp;(d=function(t){return t.mlc}),i.isArrayOrTypedArray(y.width)&amp;&amp;(g=function(t){return t.mlw});for(var x=0;x&lt;t.length;x++){var b=t[x],_=b.fOut;if(_){var w=_.properties;w.fc=m(b.z),p&amp;&amp;(w.mo=p(b)),d&amp;&amp;(w.mlc=d(b)),g&amp;&amp;(w.mlw=g(b)),b.ct=w.ct,b._polygons=l.feature2polygons(_)}}var T=p?{type:&quot;identity&quot;,property:&quot;mo&quot;}:v.opacity;return i.extendFlat(o.paint,{&quot;fill-color&quot;:{type:&quot;identity&quot;,property:&quot;fc&quot;},&quot;fill-opacity&quot;:T}),i.extendFlat(u.paint,{&quot;line-color&quot;:d?{type:&quot;identity&quot;,property:&quot;mlc&quot;}:y.color,&quot;line-width&quot;:g?{type:&quot;identity&quot;,property:&quot;mlw&quot;}:y.width,&quot;line-opacity&quot;:T}),o.layout.visibility=&quot;visible&quot;,u.layout.visibility=&quot;visible&quot;,f.geojson={type:&quot;FeatureCollection&quot;,features:h},c(t),f},convertOnSelect:c}},{&quot;../../components/colorscale&quot;:678,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/geo_location_utils&quot;:796,&quot;../../lib/geojson_utils&quot;:797,&quot;fast-isnumeric&quot;:249}],1020:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;),u=s(&quot;geojson&quot;);n.isArrayOrTypedArray(l)&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length&amp;&amp;(&quot;string&quot;==typeof u&amp;&amp;&quot;&quot;!==u||n.isPlainObject(u))?(s(&quot;featureidkey&quot;),e._length=Math.min(l.length,c.length),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;./attributes&quot;:1018}],1021:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../choropleth/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;../choropleth/hover&quot;),eventData:t(&quot;../choropleth/event_data&quot;),selectPoints:t(&quot;../choropleth/select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n&gt;=0;n--){var i=r[n].id;if(&quot;string&quot;==typeof i&amp;&amp;0===i.indexOf(&quot;water&quot;))for(var a=n+1;a&lt;r.length;a++)if(&quot;string&quot;==typeof(i=r[a].id)&amp;&amp;-1===i.indexOf(&quot;plotly-&quot;))return i}},moduleType:&quot;trace&quot;,name:&quot;choroplethmapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;choropleth_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:911,&quot;../choropleth/calc&quot;:1010,&quot;../choropleth/event_data&quot;:1012,&quot;../choropleth/hover&quot;:1013,&quot;../choropleth/select&quot;:1016,&quot;../heatmap/colorbar&quot;:1088,&quot;./attributes&quot;:1018,&quot;./defaults&quot;:1020,&quot;./plot&quot;:1022}],1022:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;).convert,i=t(&quot;./convert&quot;).convertOnSelect,a=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function o(t,e){this.type=&quot;choroplethmapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;fill&quot;,a+e+&quot;-fill&quot;],[&quot;line&quot;,a+e+&quot;-line&quot;]],this.below=null}var s=o.prototype;s.update=function(t){this._update(n(t))},s.updateOnSelect=function(t){this._update(i(t))},s._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i&lt;r.length;i++){var a=r[i],o=a[0],s=a[1],l=t[o];e.setOptions(s,&quot;setLayoutProperty&quot;,l.layout),&quot;visible&quot;===l.layout.visibility&amp;&amp;e.setOptions(s,&quot;setPaintProperty&quot;,l.paint)}},s._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},s._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(a,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:909,&quot;./convert&quot;:1019}],1023:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../mesh3d/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;absolute&quot;],editType:&quot;calc&quot;,dflt:&quot;scaled&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},anchor:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;tip&quot;,&quot;tail&quot;,&quot;cm&quot;,&quot;center&quot;],dflt:&quot;cm&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:a({editType:&quot;calc&quot;},{keys:[&quot;norm&quot;]}),uhoverformat:i(&quot;u&quot;,1),vhoverformat:i(&quot;v&quot;,1),whoverformat:i(&quot;w&quot;,1),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){c[t]=o[t]})),c.hoverinfo=l({},s.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),c.transforms=void 0,e.exports=c},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../mesh3d/attributes&quot;:1159}],1024:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c&lt;o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(t,e,{vals:[l,s],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:674}],1025:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-cone3d&quot;),i=t(&quot;gl-cone3d&quot;).createConeMesh,a=t(&quot;../../lib&quot;).simpleMap,o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;);function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Array.isArray(l)&amp;&amp;void 0!==l[e]?t.textLabel=l[e]:l&amp;&amp;(t.textLabel=l),!0}};var f={xaxis:0,yaxis:1,zaxis:2},h={tip:1,tail:0,cm:.25,center:.5},p={tip:1,tail:1,cm:.75,center:.5};function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c={};function u(t,e){var n=r[e],o=i[f[e]];return a(t,(function(t){return n.d2l(t)*o}))}c.vectors=l(u(e.u,&quot;xaxis&quot;),u(e.v,&quot;yaxis&quot;),u(e.w,&quot;zaxis&quot;),e._len),c.positions=l(u(e.x,&quot;xaxis&quot;),u(e.y,&quot;yaxis&quot;),u(e.z,&quot;zaxis&quot;),e._len);var d=s(e);c.colormap=o(e),c.vertexIntensityBounds=[d.min/e._normMax,d.max/e._normMax],c.coneOffset=h[e.anchor],&quot;scaled&quot;===e.sizemode?c.coneSize=e.sizeref||.5:c.coneSize=e.sizeref&amp;&amp;e._normMax?e.sizeref/e._normMax:.5;var g=n(c),m=e.lightposition;return g.lightPosition=[m.x,m.y,m.z],g.ambient=e.lighting.ambient,g.diffuse=e.lighting.diffuse,g.specular=e.lighting.specular,g.roughness=e.lighting.roughness,g.fresnel=e.lighting.fresnel,g.opacity=e.opacity,e._pad=p[e.anchor]*g.vectorScale*g.coneScale*e._normMax,g}u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../lib/gl_format_color&quot;:799,&quot;../../plots/gl3d/zip3&quot;:907,&quot;gl-cone3d&quot;:268}],1026:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;sizeref&quot;),s(&quot;sizemode&quot;),s(&quot;anchor&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;uhoverformat&quot;),s(&quot;vhoverformat&quot;),s(&quot;whoverformat&quot;),s(&quot;xhoverformat&quot;),s(&quot;yhoverformat&quot;),s(&quot;zhoverformat&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;./attributes&quot;:1023}],1027:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;cone&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.norm=e.traceCoordinate[6],t},meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1023,&quot;./calc&quot;:1024,&quot;./convert&quot;:1025,&quot;./defaults&quot;:1026}],1028:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;),o=a.axisHoverFormat,s=a.descriptionOnlyNumbers,l=t(&quot;../../components/colorscale/attributes&quot;),c=t(&quot;../../components/drawing/attributes&quot;).dash,u=t(&quot;../../plots/font_attributes&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../constants/filter_ops&quot;),p=h.COMPARISON_OPS2,d=h.INTERVAL_OPS,g=i.line;e.exports=f({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),zhoverformat:o(&quot;z&quot;,1),hovertemplate:n.hovertemplate,hoverongaps:n.hoverongaps,connectgaps:f({},n.connectgaps,{}),fillcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},autocontour:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;contours.start&quot;:void 0,&quot;contours.end&quot;:void 0,&quot;contours.size&quot;:void 0}},ncontours:{valType:&quot;integer&quot;,dflt:15,min:1,editType:&quot;calc&quot;},contours:{type:{valType:&quot;enumerated&quot;,values:[&quot;levels&quot;,&quot;constraint&quot;],dflt:&quot;levels&quot;,editType:&quot;calc&quot;},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;heatmap&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},showlabels:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},labelfont:u({editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),labelformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;,description:s(&quot;contour label&quot;)},operation:{valType:&quot;enumerated&quot;,values:[].concat(p).concat(d),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:f({},g.color,{editType:&quot;style+colorbars&quot;}),width:{valType:&quot;number&quot;,min:0,editType:&quot;style+colorbars&quot;},dash:c,smoothing:f({},g.smoothing,{}),editType:&quot;plot&quot;}},l(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/drawing/attributes&quot;:687,&quot;../../constants/filter_ops&quot;:775,&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/font_attributes&quot;:883,&quot;../heatmap/attributes&quot;:1085,&quot;../scatter/attributes&quot;:1218}],1029:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;../heatmap/calc&quot;),a=t(&quot;./set_contours&quot;),o=t(&quot;./end_plus&quot;);e.exports=function(t,e){var r=i(t,e),s=r[0].z;a(e,s);var l,c=e.contours,u=n.extractOpts(e);if(&quot;heatmap&quot;===c.coloring&amp;&amp;u.auto&amp;&amp;!1===e.autocontour){var f=c.start,h=o(c),p=c.size||1,d=Math.floor((h-f)/p)+1;isFinite(p)||(p=1,d=1);var g=f-p/2;l=[g,g+d*p]}else l=s;return n.calc(t,e,{vals:l,cLetter:&quot;z&quot;}),r}},{&quot;../../components/colorscale&quot;:678,&quot;../heatmap/calc&quot;:1086,&quot;./end_plus&quot;:1039,&quot;./set_contours&quot;:1047}],1030:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t[0],i=n.z;switch(e.type){case&quot;levels&quot;:var a=Math.min(i[0][0],i[0][1]);for(r=0;r&lt;t.length;r++){var o=t[r];o.prefixBoundary=!o.edgepaths.length&amp;&amp;(a&gt;o.level||o.starts.length&amp;&amp;a===o.level)}break;case&quot;constraint&quot;:if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r&lt;l;r++)u=Math.min(u,i[r][0]),u=Math.min(u,i[r][s-1]),c=Math.max(c,i[r][0]),c=Math.max(c,i[r][s-1]);for(r=1;r&lt;s-1;r++)u=Math.min(u,i[0][r]),u=Math.min(u,i[l-1][r]),c=Math.max(c,i[0][r]),c=Math.max(c,i[l-1][r]);var f,h,p=e.value;switch(e._operation){case&quot;&gt;&quot;:p&gt;c&amp;&amp;(n.prefixBoundary=!0);break;case&quot;&lt;&quot;:(p&lt;u||n.starts.length&amp;&amp;p===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;[]&quot;:f=Math.min(p[0],p[1]),((h=Math.max(p[0],p[1]))&lt;u||f&gt;c||n.starts.length&amp;&amp;h===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;][&quot;:f=Math.min(p[0],p[1]),h=Math.max(p[0],p[1]),f&lt;u&amp;&amp;h&gt;c&amp;&amp;(n.prefixBoundary=!0)}}}},{}],1031:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;./make_color_map&quot;),a=t(&quot;./end_plus&quot;);e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;,calc:function(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if(&quot;heatmap&quot;===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else&quot;fill&quot;===c&amp;&amp;(r._fillcolor=u);r._line={color:&quot;lines&quot;===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},{&quot;../../components/colorscale&quot;:678,&quot;./end_plus&quot;:1039,&quot;./make_color_map&quot;:1044}],1032:[function(t,e,r){&quot;use strict&quot;;e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],1033:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./label_defaults&quot;),a=t(&quot;../../components/color&quot;),o=a.addOpacity,s=a.opacity,l=t(&quot;../../constants/filter_ops&quot;),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,g=e.contours,m=r(&quot;contours.operation&quot;);(g._operation=c[m],function(t,e){var r;-1===u.indexOf(e.operation)?(t(&quot;contours.value&quot;,[0,1]),Array.isArray(e.value)?e.value.length&gt;2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length&lt;2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&amp;&amp;(r=parseFloat(e.value),e.value=[r,r+1])):(t(&quot;contours.value&quot;,0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,g),&quot;=&quot;===m?h=g.showlines=!0:(h=r(&quot;contours.showlines&quot;),d=r(&quot;fillcolor&quot;,o((t.line||{}).color||l,.5))),h)&amp;&amp;(p=r(&quot;line.color&quot;,d&amp;&amp;s(d)?o(e.fillcolor,1):l),r(&quot;line.width&quot;,2),r(&quot;line.dash&quot;));r(&quot;line.smoothing&quot;),i(r,a,p,f)}},{&quot;../../components/color&quot;:666,&quot;../../constants/filter_ops&quot;:775,&quot;./label_defaults&quot;:1043,&quot;fast-isnumeric&quot;:249}],1034:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/filter_ops&quot;),i=t(&quot;fast-isnumeric&quot;);function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&amp;&amp;(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={&quot;[]&quot;:o(&quot;[]&quot;),&quot;][&quot;:o(&quot;][&quot;),&quot;&gt;&quot;:s(&quot;&gt;&quot;),&quot;&lt;&quot;:s(&quot;&lt;&quot;),&quot;=&quot;:s(&quot;=&quot;)}},{&quot;../../constants/filter_ops&quot;:775,&quot;fast-isnumeric&quot;:249}],1035:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=n(&quot;contours.start&quot;),a=n(&quot;contours.end&quot;),o=!1===i||!1===a,s=r(&quot;contours.size&quot;);!(o?e.autocontour=!0:r(&quot;autocontour&quot;,!1))&amp;&amp;s||r(&quot;ncontours&quot;)}},{}],1036:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case&quot;=&quot;:case&quot;&lt;&quot;:return t;case&quot;&gt;&quot;:for(1!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality operation.&quot;),a=t[0],r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);return t;case&quot;][&quot;:var c=s;s=l,l=c;case&quot;[]&quot;:for(2!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality range operation.&quot;),a=i(t[0]),o=i(t[1]),r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));for(;o.starts.length;)a.starts.push(l(o.starts.shift()));return[a]}}},{&quot;../../lib&quot;:803}],1037:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./constraint_defaults&quot;),s=t(&quot;./contours_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(i(t,e,f,u)){a(t,e,u,f),f(&quot;xhoverformat&quot;),f(&quot;yhoverformat&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;hoverongaps&quot;);var h=&quot;constraint&quot;===f(&quot;contours.type&quot;);f(&quot;connectgaps&quot;,n.isArray1D(e.z)),h?o(t,e,f,u,r):(s(t,e,f,(function(r){return n.coerce2(t,e,c,r)})),l(t,e,f,u))}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../heatmap/xyz_defaults&quot;:1099,&quot;../scatter/period_defaults&quot;:1238,&quot;./attributes&quot;:1028,&quot;./constraint_defaults&quot;:1033,&quot;./contours_defaults&quot;:1035,&quot;./style_defaults&quot;:1049}],1038:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constraint_mapping&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t,e,r){for(var o=&quot;constraint&quot;===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h&lt;c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length&gt;1e3){n.warn(&quot;Too many contours, clipping at 1000&quot;,t);break}return l}},{&quot;../../lib&quot;:803,&quot;./constraint_mapping&quot;:1034,&quot;./end_plus&quot;:1039}],1039:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t.end+t.size/1e6}},{}],1040:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;);function a(t,e,r,n){return Math.abs(t[0]-e[0])&lt;r&amp;&amp;Math.abs(t[1]-e[1])&lt;n}function o(t,e,r,o,l){var c,u=e.join(&quot;,&quot;),f=t.crossings[u],h=function(t,e,r){var n=0,a=0;t&gt;20&amp;&amp;e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(f,r,e),p=[s(t,e,[-h[0],-h[1]])],d=t.z.length,g=t.z[0].length,m=e.slice(),v=h.slice();for(c=0;c&lt;1e4;c++){if(f&gt;20?(f=i.CHOOSESADDLE[f][(h[0]||h[1])&lt;0?0:1],t.crossings[u]=i.SADDLEREMAINDER[f]):delete t.crossings[u],!(h=i.NEWDELTA[f])){n.log(&quot;Found bad marching index:&quot;,f,e,t.level);break}p.push(s(t,e,h)),e[0]+=h[0],e[1]+=h[1],u=e.join(&quot;,&quot;),a(p[p.length-1],p[p.length-2],o,l)&amp;&amp;p.pop();var y=h[0]&amp;&amp;(e[0]&lt;0||e[0]&gt;g-2)||h[1]&amp;&amp;(e[1]&lt;0||e[1]&gt;d-2);if(e[0]===m[0]&amp;&amp;e[1]===m[1]&amp;&amp;h[0]===v[0]&amp;&amp;h[1]===v[1]||r&amp;&amp;y)break;f=t.crossings[u]}1e4===c&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;);var x,b,_,w,T,k,A,M,S,E,L,C,P,I,O,z=a(p[0],p[p.length-1],o,l),D=0,R=.2*t.smoothing,F=[],B=0;for(c=1;c&lt;p.length;c++)C=p[c],P=p[c-1],I=void 0,O=void 0,I=C[2]-P[2],O=C[3]-P[3],D+=A=Math.sqrt(I*I+O*O),F.push(A);var N=D/F.length*R;function j(t){return p[t%p.length]}for(c=p.length-2;c&gt;=B;c--)if((x=F[c])&lt;N){for(_=0,b=c-1;b&gt;=B&amp;&amp;x+F[b]&lt;N;b--)x+=F[b];if(z&amp;&amp;c===p.length-2)for(_=0;_&lt;b&amp;&amp;x+F[_]&lt;N;_++)x+=F[_];T=c-b+_+1,k=Math.floor((c+b+_+2)/2),w=z||c!==p.length-2?z||-1!==b?T%2?j(k):[(j(k)[0]+j(k+1)[0])/2,(j(k)[1]+j(k+1)[1])/2]:p[0]:p[p.length-1],p.splice(b+1,c-b+1,w),c=b+1,_&amp;&amp;(B=_),z&amp;&amp;(c===p.length-2?p[_]=p[p.length-1]:0===c&amp;&amp;(p[p.length-1]=p[0]))}for(p.splice(0,B),c=0;c&lt;p.length;c++)p[c].length=2;if(!(p.length&lt;2))if(z)p.pop(),t.paths.push(p);else{r||n.log(&quot;Unclosed interior contour?&quot;,t.level,m.join(&quot;,&quot;),p.join(&quot;L&quot;));var U=!1;for(M=0;M&lt;t.edgepaths.length;M++)if(E=t.edgepaths[M],!U&amp;&amp;a(E[0],p[p.length-1],o,l)){p.pop(),U=!0;var V=!1;for(S=0;S&lt;t.edgepaths.length;S++)if(a((L=t.edgepaths[S])[L.length-1],p[0],o,l)){V=!0,p.shift(),t.edgepaths.splice(M,1),S===M?t.paths.push(p.concat(L)):(S&gt;M&amp;&amp;S--,t.edgepaths[S]=L.concat(p,E));break}V||(t.edgepaths[M]=p.concat(E))}for(M=0;M&lt;t.edgepaths.length&amp;&amp;!U;M++)a((E=t.edgepaths[M])[E.length-1],p[0],o,l)&amp;&amp;(p.shift(),t.edgepaths[M]=E.concat(p),U=!0);U||t.edgepaths.push(p)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var c=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-c)*t.y[i]+c*t.y[i+1],!0),n,i+c]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a&lt;t.length;a++){for(s=t[a],l=0;l&lt;s.starts.length;l++)o(s,s.starts[l],&quot;edge&quot;,e,r);for(i=0;Object.keys(s.crossings).length&amp;&amp;i&lt;1e4;)i++,o(s,Object.keys(s.crossings)[0].split(&quot;,&quot;).map(Number),void 0,e,r);1e4===i&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;)}}},{&quot;../../lib&quot;:803,&quot;./constants&quot;:1032}],1041:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../heatmap/hover&quot;);e.exports=function(t,e,r,a,o){o||(o={}),o.isContour=!0;var s=i(t,e,r,a,o);return s&amp;&amp;s.forEach((function(t){var e=t.trace;&quot;constraint&quot;===e.contours.type&amp;&amp;(e.fillcolor&amp;&amp;n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&amp;&amp;n.opacity(e.line.color)&amp;&amp;(t.color=n.addOpacity(e.line.color,1)))})),s}},{&quot;../../components/color&quot;:666,&quot;../heatmap/hover&quot;:1092}],1042:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),colorbar:t(&quot;./colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;contour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:1028,&quot;./calc&quot;:1029,&quot;./colorbar&quot;:1031,&quot;./defaults&quot;:1037,&quot;./hover&quot;:1041,&quot;./plot&quot;:1046,&quot;./style&quot;:1048}],1043:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i){if(i||(i={}),t(&quot;contours.showlabels&quot;)){var a=e.font;n.coerceFont(t,&quot;contours.labelfont&quot;,{family:a.family,size:a.size,color:r}),t(&quot;contours.labelformat&quot;)}!1!==i.hasHover&amp;&amp;t(&quot;zhoverformat&quot;)}},{&quot;../../lib&quot;:803}],1044:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/colorscale&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=&quot;lines&quot;===e.coloring?0:1,u=i.extractOpts(t);isFinite(s)||(s=1,l=1);var f,h,p=u.reversescale?i.flipScale(u.colorscale):u.colorscale,d=p.length,g=new Array(d),m=new Array(d);if(&quot;heatmap&quot;===e.coloring){var v=u.min,y=u.max;for(h=0;h&lt;d;h++)f=p[h],g[h]=f[0]*(y-v)+v,m[h]=f[1];var x=n.extent([v,y,e.start,e.start+s*(l-1)]),b=x[v&lt;y?0:1],_=x[v&lt;y?1:0];b!==v&amp;&amp;(g.splice(0,0,b),m.splice(0,0,m[0])),_!==y&amp;&amp;(g.push(_),m.push(m[m.length-1]))}else for(h=0;h&lt;d;h++)f=p[h],g[h]=(f[0]*(l+c-1)-c/2)*s+r,m[h]=f[1];return i.makeColorScaleFunc({domain:g,range:m},{noNumericCheck:!0})}},{&quot;../../components/colorscale&quot;:678,&quot;./end_plus&quot;:1039,&quot;@plotly/d3&quot;:58}],1045:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);function i(t,e){var r=(e[0][0]&gt;t?0:1)+(e[0][1]&gt;t?0:2)+(e[1][1]&gt;t?0:4)+(e[1][0]&gt;t?0:8);return 5===r||10===r?t&gt;(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,g=2===p||2===d;for(r=0;r&lt;p-1;r++)for(o=[],0===r&amp;&amp;(o=o.concat(n.BOTTOMSTART)),r===p-2&amp;&amp;(o=o.concat(n.TOPSTART)),e=0;e&lt;d-1;e++)for(a=o.slice(),0===e&amp;&amp;(a=a.concat(n.LEFTSTART)),e===d-2&amp;&amp;(a=a.concat(n.RIGHTSTART)),s=e+&quot;,&quot;+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f&lt;t.length;f++)(c=i((u=t[f]).level,l))&amp;&amp;(u.crossings[s]=c,-1!==a.indexOf(c)&amp;&amp;(u.starts.push([e,r]),g&amp;&amp;-1!==a.indexOf(c,a.indexOf(c)+1)&amp;&amp;u.starts.push([e,r])))}},{&quot;./constants&quot;:1032}],1046:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../../plots/cartesian/set_convert&quot;),u=t(&quot;../heatmap/plot&quot;),f=t(&quot;./make_crossings&quot;),h=t(&quot;./find_all_paths&quot;),p=t(&quot;./empty_pathinfo&quot;),d=t(&quot;./convert_to_constraints&quot;),g=t(&quot;./close_boundaries&quot;),m=t(&quot;./constants&quot;),v=m.LABELOPTIMIZER;function y(t,e){var r,n,o,s,l,c,u,f=&quot;&quot;,h=0,p=t.edgepaths.map((function(t,e){return e})),d=!0;function g(t){return Math.abs(t[1]-e[2][1])&lt;.01}function m(t){return Math.abs(t[0]-e[0][0])&lt;.01}function v(t){return Math.abs(t[0]-e[2][0])&lt;.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,&quot;L&quot;),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o&lt;4;o++){if(!r){i.log(&quot;Missing end?&quot;,h,t);break}for(u=r,Math.abs(u[1]-e[0][1])&lt;.01&amp;&amp;!v(r)?n=e[1]:m(r)?n=e[0]:g(r)?n=e[3]:v(r)&amp;&amp;(n=e[2]),l=0;l&lt;t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])&lt;.01?Math.abs(r[0]-y[0])&lt;.01&amp;&amp;(y[1]-r[1])*(n[1]-y[1])&gt;=0&amp;&amp;(n=y,s=l):Math.abs(r[1]-n[1])&lt;.01?Math.abs(r[1]-y[1])&lt;.01&amp;&amp;(y[0]-r[0])*(n[0]-y[0])&gt;=0&amp;&amp;(n=y,s=l):i.log(&quot;endpt to newendpt is not vert. or horz.&quot;,r,n,y)}if(r=n,s&gt;=0)break;f+=&quot;L&quot;+n}if(s===t.edgepaths.length){i.log(&quot;unclosed perimeter path&quot;);break}h=s,(d=-1===p.indexOf(h))&amp;&amp;(h=p[0],f+=&quot;Z&quot;)}for(h=0;h&lt;t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function x(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s&gt;n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l&gt;n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h&lt;1||p&lt;1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,x=l+f,b=0;b&lt;r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,T=Math.sin(_.theta)*_.width/2,k=2*i.segmentDistance(g,m,y,x,_.x-w,_.y-T,_.x+w,_.y+T)/(e.height+_.height),A=_.level===e.level,M=A?v.SAMELEVELDISTANCE:1;if(k&lt;=M)return 1/0;d+=v.NEIGHBORCOST*(A?v.SAMELEVELFACTOR:1)/(k-M)}return d}function b(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e&lt;o;e++)s.push(1);for(e=0;e&lt;a;e++)i.push(s.slice());for(e=0;e&lt;n.length;e++)i[(r=n[e])[0]][r[1]]=0;return t.zmask=i,i}r.plot=function(t,e,o,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,o,&quot;contour&quot;).each((function(o){var s=n.select(this),v=o[0],x=v.trace,_=v.x,w=v.y,T=x.contours,k=p(T,e,v),A=i.ensureSingle(s,&quot;g&quot;,&quot;heatmapcoloring&quot;),M=[];&quot;heatmap&quot;===T.coloring&amp;&amp;(M=[o]),u(t,e,M,A),f(k),h(k);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),L=c.c2p(w[0],!0),C=c.c2p(w[w.length-1],!0),P=[[S,C],[E,C],[E,L],[S,L]],I=k;&quot;constraint&quot;===T.type&amp;&amp;(I=d(k,T._operation)),function(t,e,r){var n=i.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;===r.coloring?[0]:[]);n.enter().append(&quot;path&quot;),n.exit().remove(),n.attr(&quot;d&quot;,&quot;M&quot;+e.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(s,P,T),function(t,e,r,a){var o=&quot;fill&quot;===a.coloring||&quot;constraint&quot;===a.type&amp;&amp;&quot;=&quot;!==a._operation,s=&quot;M&quot;+r.join(&quot;L&quot;)+&quot;Z&quot;;o&amp;&amp;g(e,a);var l=i.ensureSingle(t,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(o?e:[]);l.enter().append(&quot;path&quot;),l.exit().remove(),l.each((function(t){var e=(t.prefixBoundary?s:&quot;&quot;)+y(t,r);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(s,I,P,T),function(t,e,o,s,l){var c=i.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),u=!1!==l.showlines,f=l.showlabels,h=u&amp;&amp;f,p=r.createLines(c,u||f,e),d=r.createLineClip(c,h,o,s.trace.uid),g=t.selectAll(&quot;g.contourlabels&quot;).data(f?[0]:[]);if(g.exit().remove(),g.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),f){var v=[],y=[];i.clearLocationCache();var x=r.labelFormatter(o,s),b=a.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(a.font,l.labelfont),_=e[0].xaxis,w=e[0].yaxis,T=_._length,k=w._length,A=_.range,M=w.range,S=i.aggNums(Math.min,null,s.x),E=i.aggNums(Math.max,null,s.x),L=i.aggNums(Math.min,null,s.y),C=i.aggNums(Math.max,null,s.y),P=Math.max(_.c2p(S,!0),0),I=Math.min(_.c2p(E,!0),T),O=Math.max(w.c2p(C,!0),0),z=Math.min(w.c2p(L,!0),k),D={};A[0]&lt;A[1]?(D.left=P,D.right=I):(D.left=I,D.right=P),M[0]&lt;M[1]?(D.top=O,D.bottom=z):(D.top=z,D.bottom=O),D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2,v.push([[D.left,D.top],[D.right,D.top],[D.right,D.bottom],[D.left,D.bottom]]);var R=Math.sqrt(T*T+k*k),F=m.LABELDISTANCE*R/Math.max(1,e.length/m.LABELINCREASE);p.each((function(t){var e=r.calcTextOpts(t.level,x,b,o);n.select(this).selectAll(&quot;path&quot;).each((function(){var t=i.getVisibleSegment(this,D,e.height/2);if(t&amp;&amp;!(t.len&lt;(e.width+e.height)*m.LABELMIN))for(var n=Math.min(Math.ceil(t.len/F),m.LABELMAX),a=0;a&lt;n;a++){var o=r.findBestTextLocation(this,t,e,y,D);if(!o)break;r.addLabelData(o,e,y,v)}}))})),b.remove(),r.drawLabels(g,y,o,d,h?v:null)}f&amp;&amp;!u&amp;&amp;p.remove()}(s,k,t,v,T),function(t,e,r,n,o){var s=n.trace,l=r._fullLayout._clips,c=&quot;clip&quot;+s.uid,u=l.selectAll(&quot;#&quot;+c).data(s.connectgaps?[]:[0]);if(u.enter().append(&quot;clipPath&quot;).classed(&quot;contourclip&quot;,!0).attr(&quot;id&quot;,c),u.exit().remove(),!1===s.connectgaps){var p={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};f([p]),h([p]),g([p],{type:&quot;levels&quot;}),i.ensureSingle(u,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,(p.prefixBoundary?&quot;M&quot;+o.join(&quot;L&quot;)+&quot;Z&quot;:&quot;&quot;)+y(p,o))}else c=null;a.setClipUrl(t,c,r)}(s,e,t,v,P)}))},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(&quot;g.contourlevel&quot;).data(e?r:[]);if(i.exit().remove(),i.enter().append(&quot;g&quot;).classed(&quot;contourlevel&quot;,!0),e){var o=i.selectAll(&quot;path.openline&quot;).data((function(t){return t.pedgepaths||t.edgepaths}));o.exit().remove(),o.enter().append(&quot;path&quot;).classed(&quot;openline&quot;,!0),o.attr(&quot;d&quot;,(function(t){return a.smoothopen(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;);var s=i.selectAll(&quot;path.closedline&quot;).data((function(t){return t.ppaths||t.paths}));s.exit().remove(),s.enter().append(&quot;path&quot;).classed(&quot;closedline&quot;,!0),s.attr(&quot;d&quot;,(function(t){return a.smoothclosed(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;)}return i},r.createLineClip=function(t,e,r,n){var i=e?&quot;clipline&quot;+n:null,o=r._fullLayout._clips.selectAll(&quot;#&quot;+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(&quot;clipPath&quot;).classed(&quot;contourlineclip&quot;,!0).attr(&quot;id&quot;,i),a.setClipUrl(t,i,r),o},r.labelFormatter=function(t,e){var r=t._fullLayout,n=e.trace,i=n.contours,a={type:&quot;linear&quot;,_id:&quot;ycontour&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;};if(i.labelformat)a.tickformat=i.labelformat,c(a,r);else{var s=o.extractOpts(n);if(s&amp;&amp;s.colorbar&amp;&amp;s.colorbar._axis)a=s.colorbar._axis;else{if(&quot;constraint&quot;===i.type){var u=i.value;Array.isArray(u)?a.range=[u[0],u[u.length-1]]:a.range=[u,u]}else a.range=[i.start,i.end],a.nticks=(i.end-i.start)/i.size;a.range[0]===a.range[1]&amp;&amp;(a.range[1]+=a.range[0]||1),a.nticks||(a.nticks=1e3),c(a,r),l.prepTicks(a),a._tmin=null,a._tmax=null}}return function(t){return l.tickText(a,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(s.convertToTspans,n);var o=r.node(),l=a.bBox(o,!0);return{text:i,width:l.width,height:l.height,fontSize:+o.style[&quot;font-size&quot;].replace(&quot;px&quot;,&quot;&quot;),level:t,dy:(l.top+l.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p&lt;v.ITERATIONS;p++){for(var d=o;d&lt;l;d+=s){var g=i.getTextLocation(t,e.total,d,f),m=x(g,r,n,a);m&lt;h&amp;&amp;(h=m,u=g,c=d)}if(h&gt;2*v.MAXCOST)break;p&amp;&amp;(s/=2),l=(o=c-s/2)+1.5*s}if(h&lt;=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),h=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},p=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(p)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll(&quot;text&quot;).data(e,(function(t){return t.text+&quot;,&quot;+t.x+&quot;,&quot;+t.y+&quot;,&quot;+t.theta}));if(l.exit().remove(),l.enter().append(&quot;text&quot;).attr({&quot;data-notex&quot;:1,&quot;text-anchor&quot;:&quot;middle&quot;}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:&quot;rotate(&quot;+180*t.theta/Math.PI+&quot; &quot;+e+&quot; &quot;+i+&quot;)&quot;}).call(s.convertToTspans,r)})),o){for(var c=&quot;&quot;,u=0;u&lt;o.length;u++)c+=&quot;M&quot;+o[u].join(&quot;L&quot;)+&quot;Z&quot;;i.ensureSingle(a,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,c)}}},{&quot;../../components/colorscale&quot;:678,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/set_convert&quot;:875,&quot;../heatmap/plot&quot;:1096,&quot;./close_boundaries&quot;:1030,&quot;./constants&quot;:1032,&quot;./convert_to_constraints&quot;:1036,&quot;./empty_pathinfo&quot;:1038,&quot;./find_all_paths&quot;:1040,&quot;./make_crossings&quot;:1045,&quot;@plotly/d3&quot;:58}],1047:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;);function a(t,e,r){var i={type:&quot;linear&quot;,range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t,e){var r=t.contours;if(t.autocontour){var o=t.zmin,s=t.zmax;(t.zauto||void 0===o)&amp;&amp;(o=i.aggNums(Math.min,null,e)),(t.zauto||void 0===s)&amp;&amp;(s=i.aggNums(Math.max,null,e));var l=a(o,s,t.ncontours);r.size=l.dtick,r.start=n.tickFirst(l),l.range.reverse(),r.end=n.tickFirst(l),r.start===o&amp;&amp;(r.start+=r.size),r.end===s&amp;&amp;(r.end-=r.size),r.start&gt;r.end&amp;&amp;(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if(&quot;constraint&quot;!==r.type){var c,u=r.start,f=r.end,h=t._input.contours;if(u&gt;f&amp;&amp;(r.start=h.start=f,f=r.end=h.end=u,u=r.start),!(r.size&gt;0))c=u===f?1:a(u,f,t.ncontours).dtick,h.size=r.size=c}}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],1048:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../heatmap/style&quot;),o=t(&quot;./make_color_map&quot;);e.exports=function(t){var e=n.select(t).selectAll(&quot;g.contour&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=&quot;constraint&quot;===a.type,f=!u&amp;&amp;&quot;lines&quot;===a.coloring,h=!u&amp;&amp;&quot;fill&quot;===a.coloring,p=f||h?o(r):null;e.selectAll(&quot;g.contourlevel&quot;).each((function(t){n.select(this).selectAll(&quot;path&quot;).call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)}));var d=a.labelfont;if(e.selectAll(&quot;g.contourlabels text&quot;).each((function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})})),u)e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,r.fillcolor);else if(h){var g;e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,(function(t){return void 0===g&amp;&amp;(g=t.level),p(t.level+.5*l)})),void 0===g&amp;&amp;(g=c),e.selectAll(&quot;g.contourbg path&quot;).style(&quot;fill&quot;,p(g-.5*l))}})),a(t)}},{&quot;../../components/drawing&quot;:688,&quot;../heatmap/style&quot;:1097,&quot;./make_color_map&quot;:1044,&quot;@plotly/d3&quot;:58}],1049:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/defaults&quot;),i=t(&quot;./label_defaults&quot;);e.exports=function(t,e,r,a,o){var s,l=r(&quot;contours.coloring&quot;),c=&quot;&quot;;&quot;fill&quot;===l&amp;&amp;(s=r(&quot;contours.showlines&quot;)),!1!==s&amp;&amp;(&quot;lines&quot;!==l&amp;&amp;(c=r(&quot;line.color&quot;,&quot;#000&quot;)),r(&quot;line.width&quot;,.5),r(&quot;line.dash&quot;)),&quot;none&quot;!==l&amp;&amp;(!0!==t.showlegend&amp;&amp;(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})),r(&quot;line.smoothing&quot;),i(r,a,c,o)}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;./label_defaults&quot;:1043}],1050:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=i.contours;e.exports=o({carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},transforms:void 0},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../contour/attributes&quot;:1028,&quot;../heatmap/attributes&quot;:1085}],1051:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../heatmap/convert_column_xyz&quot;),o=t(&quot;../heatmap/clean_2d_array&quot;),s=t(&quot;../heatmap/interp2d&quot;),l=t(&quot;../heatmap/find_empties&quot;),c=t(&quot;../heatmap/make_bound_array&quot;),u=t(&quot;./defaults&quot;),f=t(&quot;../carpet/lookup_carpetid&quot;),h=t(&quot;../contour/set_contours&quot;);e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){if(!e.a||!e.b){var p=t.data[r.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var g=function(t,e){var r,u,f,h,p,d,g,m=e._carpetTrace,v=m.aaxis,y=m.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&amp;&amp;a(e,v,y,&quot;a&quot;,&quot;b&quot;,[&quot;z&quot;]);r=e._a=e._a||e.a,h=e._b=e._b||e.b,r=r?v.makeCalcdata(e,&quot;_a&quot;):[],h=h?y.makeCalcdata(e,&quot;_b&quot;):[],u=e.a0||0,f=e.da||1,p=e.b0||0,d=e.db||1,g=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(g),s(g,e._emptypoints);var x=i.maxRowLength(g),b=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,_=c(e,b,u,f,x,v),w=&quot;scaled&quot;===e.ytype?&quot;&quot;:h,T=c(e,w,p,d,g.length,y),k={a:_,b:T,z:g};&quot;levels&quot;===e.contours.type&amp;&amp;&quot;none&quot;!==e.contours.coloring&amp;&amp;n(t,e,{vals:g,containerStr:&quot;&quot;,cLetter:&quot;z&quot;});return[k]}(t,e);return h(e,e._z),g}}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../lib&quot;:803,&quot;../carpet/lookup_carpetid&quot;:1001,&quot;../contour/set_contours&quot;:1047,&quot;../heatmap/clean_2d_array&quot;:1087,&quot;../heatmap/convert_column_xyz&quot;:1089,&quot;../heatmap/find_empties&quot;:1091,&quot;../heatmap/interp2d&quot;:1094,&quot;../heatmap/make_bound_array&quot;:1095,&quot;./defaults&quot;:1052}],1052:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../contour/constraint_defaults&quot;),s=t(&quot;../contour/contours_defaults&quot;),l=t(&quot;../contour/style_defaults&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(&quot;carpet&quot;),t.a&amp;&amp;t.b){if(!i(t,e,u,c,&quot;a&quot;,&quot;b&quot;))return void(e.visible=!1);u(&quot;text&quot;),&quot;constraint&quot;===u(&quot;contours.type&quot;)?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,(function(r){return n.coerce2(t,e,a,r)})),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{&quot;../../lib&quot;:803,&quot;../contour/constraint_defaults&quot;:1033,&quot;../contour/contours_defaults&quot;:1035,&quot;../contour/style_defaults&quot;:1049,&quot;../heatmap/xyz_defaults&quot;:1099,&quot;./attributes&quot;:1050}],1053:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../contour/colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../contour/style&quot;),moduleType:&quot;trace&quot;,name:&quot;contourcarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;contour&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;hasLines&quot;,&quot;carpetDependent&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../contour/colorbar&quot;:1031,&quot;../contour/style&quot;:1048,&quot;./attributes&quot;:1050,&quot;./calc&quot;:1051,&quot;./defaults&quot;:1052,&quot;./plot&quot;:1054}],1054:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../carpet/map_1d_array&quot;),a=t(&quot;../carpet/makepath&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../contour/make_crossings&quot;),c=t(&quot;../contour/find_all_paths&quot;),u=t(&quot;../contour/plot&quot;),f=t(&quot;../contour/constants&quot;),h=t(&quot;../contour/convert_to_constraints&quot;),p=t(&quot;../contour/empty_pathinfo&quot;),d=t(&quot;../contour/close_boundaries&quot;),g=t(&quot;../carpet/lookup_carpetid&quot;),m=t(&quot;../carpet/axis_aligned_line&quot;);function v(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,b){var _=e.xaxis,w=e.yaxis;s.makeTraceGroups(b,r,&quot;contour&quot;).each((function(r){var b=n.select(this),T=r[0],k=T.trace,A=k._carpetTrace=g(t,k),M=t.calcdata[A.index][0];if(A.visible&amp;&amp;&quot;legendonly&quot;!==A.visible){var S=T.a,E=T.b,L=k.contours,C=p(L,e,T),P=&quot;constraint&quot;===L.type,I=L._operation,O=P?&quot;=&quot;===I?&quot;lines&quot;:&quot;fill&quot;:L.coloring,z=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(C);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(C,D,R);var F,B,N,j,U=C;&quot;constraint&quot;===L.type&amp;&amp;(U=h(C,I)),function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r&lt;t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n&lt;a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i&lt;u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n&lt;a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i&lt;u.length;i++)c[i]=e(u[i]);s.push(c)}}}(C,H);var V=[];for(j=M.clipsegments.length-1;j&gt;=0;j--)F=M.clipsegments[j],B=i([],F.x,_.c2p),N=i([],F.y,w.c2p),B.reverse(),N.reverse(),V.push(a(B,N,F.bicubic));var q=&quot;M&quot;+V.join(&quot;L&quot;)+&quot;Z&quot;;!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;!==l||o?[]:[0]);p.enter().append(&quot;path&quot;),p.exit().remove();var d=[];for(h=0;h&lt;e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(&quot;d&quot;,&quot;M&quot;+d.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(b,M.clipsegments,_,w,P,O),function(t,e,r,i,a,l,c,u,f,h,p){var g=&quot;fill&quot;===h;g&amp;&amp;d(a,t.contours);var v=s.ensureSingle(e,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(g?a:[]);v.enter().append(&quot;path&quot;),v.exit().remove(),v.each((function(t){var e=(t.prefixBoundary?p:&quot;&quot;)+function(t,e,r,n,i,a,l,c){var u,f,h,p,d,g,v,y=&quot;&quot;,x=e.edgepaths.map((function(t,e){return e})),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function T(t){return Math.abs(t[1]-r[0][1])&lt;w}function k(t){return Math.abs(t[1]-r[2][1])&lt;w}function A(t){return Math.abs(t[0]-r[0][0])&lt;_}function M(t){return Math.abs(t[0]-r[2][0])&lt;_}function S(t,e){var r,n,o,s,u=&quot;&quot;;for(T(t)&amp;&amp;!M(t)||k(t)&amp;&amp;!A(t)?(s=i.aaxis,o=m(i,a,[t[0],e[0]],.5*(t[1]+e[1]))):(s=i.baxis,o=m(i,a,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r&lt;o.length;r++)for(u+=s.smoothing?&quot;C&quot;:&quot;L&quot;,n=0;n&lt;o[r].length;n++){var f=o[r][n];u+=[l.c2p(f[0]),c.c2p(f[1])]+&quot; &quot;}return u}u=0,f=null;for(;x.length;){var E=e.edgepaths[u][0];for(f&amp;&amp;(y+=S(f,E)),v=o.smoothopen(e.edgepaths[u].map(n),e.smoothing),y+=b?v:v.replace(/^M/,&quot;L&quot;),x.splice(x.indexOf(u),1),f=e.edgepaths[u][e.edgepaths[u].length-1],d=-1,p=0;p&lt;4;p++){if(!f){s.log(&quot;Missing end?&quot;,u,e);break}for(T(f)&amp;&amp;!M(f)?h=r[1]:A(f)?h=r[0]:k(f)?h=r[3]:M(f)&amp;&amp;(h=r[2]),g=0;g&lt;e.edgepaths.length;g++){var L=e.edgepaths[g][0];Math.abs(f[0]-h[0])&lt;_?Math.abs(f[0]-L[0])&lt;_&amp;&amp;(L[1]-f[1])*(h[1]-L[1])&gt;=0&amp;&amp;(h=L,d=g):Math.abs(f[1]-h[1])&lt;w?Math.abs(f[1]-L[1])&lt;w&amp;&amp;(L[0]-f[0])*(h[0]-L[0])&gt;=0&amp;&amp;(h=L,d=g):s.log(&quot;endpt to newendpt is not vert. or horz.&quot;,f,h,L)}if(d&gt;=0)break;y+=S(f,h),f=h}if(d===e.edgepaths.length){s.log(&quot;unclosed perimeter path&quot;);break}u=d,(b=-1===x.indexOf(u))&amp;&amp;(u=x[0],y+=S(f,h)+&quot;Z&quot;,f=null)}for(u=0;u&lt;e.paths.length;u++)y+=o.smoothclosed(e.paths[u].map(n),e.smoothing);return y}(0,t,l,c,u,f,r,i);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(k,b,_,w,U,z,H,A,M,O,q),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),p=!1!==a.showlines,d=a.showlabels,g=p&amp;&amp;d,m=u.createLines(h,p||d,e),b=u.createLineClip(h,g,r,i.trace.uid),_=t.selectAll(&quot;g.contourlabels&quot;).data(d?[0]:[]);if(_.exit().remove(),_.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),d){var w=l.xaxis,T=l.yaxis,k=w._length,A=T._length,M=[[[0,0],[k,0],[k,A],[0,A]]],S=[];s.clearLocationCache();var E=u.labelFormatter(r,i),L=o.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(o.font,a.labelfont),C={left:0,right:k,center:k/2,top:0,bottom:A,middle:A/2},P=Math.sqrt(k*k+A*A),I=f.LABELDISTANCE*P/Math.max(1,e.length/f.LABELINCREASE);m.each((function(t){var e=u.calcTextOpts(t.level,E,L,r);n.select(this).selectAll(&quot;path&quot;).each((function(r){var n=s.getVisibleSegment(this,C,e.height/2);if(n&amp;&amp;(function(t,e,r,n,i,a){for(var o,s=0;s&lt;r.pedgepaths.length;s++)e===r.pedgepaths[s]&amp;&amp;(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)&lt;.1||Math.abs(t[0]-c)&lt;.1)&amp;&amp;(r=y(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),(Math.abs(t[1]-u)&lt;.1||Math.abs(t[1]-f)&lt;.1)&amp;&amp;(r=y(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),n}var p=v(t,0,1),d=v(t,n.total,n.total-1),g=h(o[0],p),m=n.total-h(o[o.length-1],d);n.min&lt;g&amp;&amp;(n.min=g);n.max&gt;m&amp;&amp;(n.max=m);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len&lt;(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/I),f.LABELMAX),a=0;a&lt;i;a++){var o=u.findBestTextLocation(this,n,e,S,C);if(!o)break;u.addLabelData(o,e,S,M)}}))})),L.remove(),u.drawLabels(_,S,r,b,g?M:null)}d&amp;&amp;!p&amp;&amp;m.remove()}(b,C,t,T,L,e,A),o.setClipUrl(b,A._clipPathId,t)}function H(t){var e=A.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),w.c2p(e[1])]}}))}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../carpet/axis_aligned_line&quot;:985,&quot;../carpet/lookup_carpetid&quot;:1001,&quot;../carpet/makepath&quot;:1002,&quot;../carpet/map_1d_array&quot;:1003,&quot;../contour/close_boundaries&quot;:1030,&quot;../contour/constants&quot;:1032,&quot;../contour/convert_to_constraints&quot;:1036,&quot;../contour/empty_pathinfo&quot;:1038,&quot;../contour/find_all_paths&quot;:1040,&quot;../contour/make_crossings&quot;:1045,&quot;../contour/plot&quot;:1046,&quot;@plotly/d3&quot;:58}],1055:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../scattermapbox/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},radius:{valType:&quot;number&quot;,editType:&quot;plot&quot;,arrayOk:!0,min:1,dflt:30},below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scattermapbox/attributes&quot;:1283}],1056:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;../../lib&quot;)._;e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=e.z,u=i(c)&amp;&amp;c.length,f=0;f&lt;r;f++){var h=l[f]={},p=e.lon[f],d=e.lat[f];if(h.lonlat=n(p)&amp;&amp;n(d)?[+p,+d]:[a,a],u){var g=c[f];h.z=n(g)?g:a}}return o(t,e,{vals:u?c:[0,1],containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),r&amp;&amp;(l[0].t={labels:{lat:s(t,&quot;lat:&quot;)+&quot; &quot;,lon:s(t,&quot;lon:&quot;)+&quot; &quot;}}),l}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],1057:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;../../lib/geojson_utils&quot;).makeBlank;e.exports=function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,c=e._opts={heatmap:{layout:{visibility:&quot;none&quot;},paint:{}},geojson:l()};if(!r)return c;var u,f=[],h=e.z,p=e.radius,d=i.isArrayOrTypedArray(h)&amp;&amp;h.length,g=i.isArrayOrTypedArray(p);for(u=0;u&lt;t.length;u++){var m=t[u],v=m.lonlat;if(v[0]!==s){var y={};if(d){var x=m.z;y.z=x!==s?x:0}g&amp;&amp;(y.r=n(p[u])&amp;&amp;p[u]&gt;0?+p[u]:0),f.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:v},properties:y})}}var b=o.extractOpts(e),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,a.opacity(w)&lt;1?w:a.addOpacity(w,0)];for(u=1;u&lt;_.length;u++)T.push(_[u][0],_[u][1]);var k=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;get&quot;,&quot;z&quot;],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{&quot;heatmap-weight&quot;:d?k:1/(b.max-b.min),&quot;heatmap-color&quot;:T,&quot;heatmap-radius&quot;:g?{type:&quot;identity&quot;,property:&quot;r&quot;}:e.radius,&quot;heatmap-opacity&quot;:e.opacity}),c.geojson={type:&quot;FeatureCollection&quot;,features:f},c.heatmap.layout.visibility=&quot;visible&quot;,c}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale&quot;:678,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../lib/geojson_utils&quot;:797,&quot;fast-isnumeric&quot;:249}],1058:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;lon&quot;)||[],c=s(&quot;lat&quot;)||[],u=Math.min(l.length,c.length);u?(e._length=u,s(&quot;z&quot;),s(&quot;radius&quot;),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;./attributes&quot;:1055}],1059:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}},{}],1060:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../scattermapbox/hover&quot;).hoverPoints,a=t(&quot;../scattermapbox/hover&quot;).getExtraText;e.exports=function(t,e,r){var o=i(t,e,r);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,&quot;z&quot;in u){var f=s.subplot.mockAxis;s.z=u.z,s.zLabel=n.tickText(f,f.c2l(u.z),&quot;hover&quot;).text}return s.extraText=a(c,u,l[0].t.labels),[s]}}},{&quot;../../plots/cartesian/axes&quot;:854,&quot;../scattermapbox/hover&quot;:1288}],1061:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),formatLabels:t(&quot;../scattermapbox/format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n&lt;r.length;n++){var i=r[n],a=i.id;if(&quot;symbol&quot;===i.type&amp;&amp;&quot;string&quot;==typeof a&amp;&amp;-1===a.indexOf(&quot;plotly-&quot;))return a}},moduleType:&quot;trace&quot;,name:&quot;densitymapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;density_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:911,&quot;../heatmap/colorbar&quot;:1088,&quot;../scattermapbox/format_labels&quot;:1287,&quot;./attributes&quot;:1055,&quot;./calc&quot;:1056,&quot;./defaults&quot;:1058,&quot;./event_data&quot;:1059,&quot;./hover&quot;:1060,&quot;./plot&quot;:1062}],1062:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function a(t,e){this.type=&quot;densitymapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;heatmap&quot;,i+e+&quot;-heatmap&quot;]],this.below=null}var o=a.prototype;o.update=function(t){var e=this.subplot,r=this.layerList,i=n(t),a=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o&lt;r.length;o++){var s=r[o],l=s[0],c=s[1],u=i[l];e.setOptions(c,&quot;setLayoutProperty&quot;,u.layout),&quot;visible&quot;===u.layout.visibility&amp;&amp;e.setOptions(c,&quot;setPaintProperty&quot;,u.paint)}},o._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},o._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(o,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),i}},{&quot;../../plots/mapbox/constants&quot;:909,&quot;./convert&quot;:1057}],1063:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:803}],1064:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../bar/attributes&quot;),a=t(&quot;../scatter/attributes&quot;).line,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,u=t(&quot;./constants&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../components/color&quot;);e.exports={x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,xhoverformat:s(&quot;x&quot;),yhoverformat:s(&quot;y&quot;),hovertext:i.hovertext,hovertemplate:l({},{keys:u.eventDataKeys}),hoverinfo:f({},o.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;,&quot;value&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:c({editType:&quot;plot&quot;},{keys:u.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),text:i.text,textposition:i.textposition,insidetextanchor:f({},i.insidetextanchor,{dflt:&quot;middle&quot;}),textangle:f({},i.textangle,{dflt:0}),textfont:i.textfont,insidetextfont:i.insidetextfont,outsidetextfont:i.outsidetextfont,constraintext:i.constraintext,cliponaxis:i.cliponaxis,orientation:f({},i.orientation,{}),offset:f({},i.offset,{arrayOk:!1}),width:f({},i.width,{arrayOk:!1}),marker:(n=f({},i.marker),delete n.pattern,n),connector:{fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:f({},a.color,{dflt:h.defaultLine}),width:f({},a.width,{dflt:0,editType:&quot;plot&quot;}),dash:a.dash,editType:&quot;style&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup}},{&quot;../../components/color&quot;:666,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../bar/attributes&quot;:941,&quot;../scatter/attributes&quot;:1218,&quot;./constants&quot;:1066}],1065:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;./arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return t===s?0:t}e.exports=function(t,e){var r,c,u,f,h,p,d,g,m=n.getFromId(t,e.xaxis||&quot;x&quot;),v=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=m.makeCalcdata(e,&quot;x&quot;),u=v.makeCalcdata(e,&quot;y&quot;),f=i(e,v,&quot;y&quot;,u),h=!!e.yperiodalignment,p=&quot;y&quot;):(r=v.makeCalcdata(e,&quot;y&quot;),u=m.makeCalcdata(e,&quot;x&quot;),f=i(e,m,&quot;x&quot;,u),h=!!e.xperiodalignment,p=&quot;x&quot;),c=f.vals;var y,x=Math.min(c.length,r.length),b=new Array(x);for(e._base=[],d=0;d&lt;x;d++){r[d]&lt;0&amp;&amp;(r[d]=s);var _=!1;r[d]!==s&amp;&amp;d+1&lt;x&amp;&amp;r[d+1]!==s&amp;&amp;(_=!0),g=b[d]={p:c[d],s:r[d],cNext:_},e._base[d]=-.5*g.s,h&amp;&amp;(b[d].orig_p=u[d],b[d][p+&quot;End&quot;]=f.ends[d],b[d][p+&quot;Start&quot;]=f.starts[d]),e.ids&amp;&amp;(g.id=String(e.ids[d])),0===d&amp;&amp;(b[0].vTotal=0),b[0].vTotal+=l(g.s),g.begR=l(g.s)/l(b[0].s)}for(d=0;d&lt;x;d++)(g=b[d]).s!==s&amp;&amp;(g.sumR=g.s/b[0].vTotal,g.difR=void 0!==y?g.s/y:1,y=g.s);return a(b,e),o(b,e),b}},{&quot;../../constants/numerical&quot;:779,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/calc_selection&quot;:1220,&quot;./arrays_to_calcdata&quot;:1063}],1066:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;percentInitial&quot;,&quot;percentPrevious&quot;,&quot;percentTotal&quot;]}},{}],1067:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i],d=&quot;h&quot;===p.orientation;!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;funnel&quot;===p.type&amp;&amp;(r=s[i],d?h.push(r):f.push(r),u.push(r))}var g={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(n(t,l,c,f,g),n(t,c,l,h,g),i=0;i&lt;u.length;i++){r=u[i];for(var m=0;m&lt;r.length;m++)m+1&lt;r.length&amp;&amp;(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0,r[m].nextP1=r[m+1].p1,r[m].nextS1=r[m+1].s1)}}},{&quot;../bar/cross_trace_calc&quot;:944}],1068:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;);e.exports={supplyDefaults:function(t,e,r,i){function u(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,u)){s(t,e,i,u),u(&quot;xhoverformat&quot;),u(&quot;yhoverformat&quot;),u(&quot;orientation&quot;,e.y&amp;&amp;!e.x?&quot;v&quot;:&quot;h&quot;),u(&quot;offset&quot;),u(&quot;width&quot;);var f=u(&quot;text&quot;);u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);var h=u(&quot;textposition&quot;);a(t,e,i,u,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;===e.textposition||e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(f)?&quot;text+value&quot;:&quot;value&quot;);var p=u(&quot;marker.color&quot;,r);if(u(&quot;marker.line.color&quot;,c.defaultLine),u(&quot;marker.line.width&quot;),u(&quot;connector.visible&quot;))u(&quot;connector.fillcolor&quot;,function(t){var e=n.isArrayOrTypedArray(t)?&quot;#000&quot;:t;return c.addOpacity(e,.5*c.opacity(e))}(p)),u(&quot;connector.line.width&quot;)&amp;&amp;(u(&quot;connector.line.color&quot;),u(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.funnelmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../bar/defaults&quot;:945,&quot;../scatter/period_defaults&quot;:1238,&quot;../scatter/xy_defaults&quot;:1245,&quot;./attributes&quot;:1064}],1069:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;percentInitial&quot;in e&amp;&amp;(t.percentInitial=e.percentInitial),&quot;percentPrevious&quot;in e&amp;&amp;(t.percentPrevious=e.percentPrevious),&quot;percentTotal&quot;in e&amp;&amp;(t.percentTotal=e.percentTotal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1070:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;).opacity,i=t(&quot;../bar/hover&quot;).hoverOnBars,a=t(&quot;../../lib&quot;).formatPercent;e.exports=function(t,e,r,o,s){var l=i(t,e,r,o,s);if(l){var c=l.cd,u=c[0].trace,f=&quot;h&quot;===u.orientation,h=c[l.index];l[(f?&quot;x&quot;:&quot;y&quot;)+&quot;LabelVal&quot;]=h.s,l.percentInitial=h.begR,l.percentInitialLabel=a(h.begR,1),l.percentPrevious=h.difR,l.percentPreviousLabel=a(h.difR,1),l.percentTotal=h.sumR,l.percentTotalLabel=a(h.sumR,1);var p=h.hi||u.hoverinfo,d=[];if(p&amp;&amp;&quot;none&quot;!==p&amp;&amp;&quot;skip&quot;!==p){var g=&quot;all&quot;===p,m=p.split(&quot;+&quot;),v=function(t){return g||-1!==m.indexOf(t)};v(&quot;percent initial&quot;)&amp;&amp;d.push(l.percentInitialLabel+&quot; of initial&quot;),v(&quot;percent previous&quot;)&amp;&amp;d.push(l.percentPreviousLabel+&quot; of previous&quot;),v(&quot;percent total&quot;)&amp;&amp;d.push(l.percentTotalLabel+&quot; of total&quot;)}return l.extraText=d.join(&quot;&lt;br&gt;&quot;),l.color=function(t,e){var r=t.marker,i=e.mc||r.color,a=e.mlc||r.line.color,o=e.mlw||r.line.width;if(n(i))return i;if(n(a)&amp;&amp;o)return a}(u,h),[l]}}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../bar/hover&quot;:948}],1071:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;funnel&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../bar/select&quot;:953,&quot;./attributes&quot;:1064,&quot;./calc&quot;:1065,&quot;./cross_trace_calc&quot;:1067,&quot;./defaults&quot;:1068,&quot;./event_data&quot;:1069,&quot;./hover&quot;:1070,&quot;./layout_attributes&quot;:1072,&quot;./layout_defaults&quot;:1073,&quot;./plot&quot;:1074,&quot;./style&quot;:1075}],1072:[function(t,e,r){&quot;use strict&quot;;e.exports={funnelmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},funnelgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},funnelgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1073:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;funnel&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;funnelmode&quot;),o(&quot;funnelgap&quot;,.2),o(&quot;funnelgroupgap&quot;))}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1072}],1074:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;function c(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),i[3]=o.c2p(t.nextS1,!0),a[3]=s.c2p(t.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(t,e,r,u){var f=t._fullLayout;l(&quot;funnel&quot;,f),function(t,e,r,s){var l=e.xaxis,u=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),f=r[0].trace,h=i.ensureSingle(s,&quot;g&quot;,&quot;regions&quot;);if(f.connector&amp;&amp;f.connector.visible){var p=&quot;h&quot;===f.orientation,d=h.selectAll(&quot;g.region&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;region&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var f=c(r,l,u,p),h=f[0],d=f[1],m=&quot;&quot;;h[0]!==o&amp;&amp;d[0]!==o&amp;&amp;h[1]!==o&amp;&amp;d[1]!==o&amp;&amp;h[2]!==o&amp;&amp;d[2]!==o&amp;&amp;h[3]!==o&amp;&amp;d[3]!==o&amp;&amp;(m+=p?&quot;M&quot;+h[0]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[2]+&quot;H&quot;+h[3]+&quot;L&quot;+h[1]+&quot;,&quot;+d[1]+&quot;Z&quot;:&quot;M&quot;+h[1]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[3]+&quot;V&quot;+d[2]+&quot;L&quot;+h[1]+&quot;,&quot;+d[0]+&quot;Z&quot;),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else h.remove()}))}(t,e,r,u),function(t,e,r,o){var s=e.xaxis,l=e.yaxis;i.makeTraceGroups(o,r,&quot;trace bars&quot;).each((function(r){var o=n.select(this),u=r[0].trace,f=i.ensureSingle(o,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible&amp;&amp;u.connector.line.width){var h=&quot;h&quot;===u.orientation,p=f.selectAll(&quot;g.line&quot;).data(i.identity);p.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),p.exit().remove();var d=p.size();p.each((function(r,o){if(o===d-1||r.cNext){var u=c(r,s,l,h),f=u[0],p=u[1],g=&quot;&quot;;void 0!==f[3]&amp;&amp;void 0!==p[3]&amp;&amp;(h?(g+=&quot;M&quot;+f[0]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[3]+&quot;,&quot;+p[2]):(g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[3],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[0]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2])),&quot;&quot;===g&amp;&amp;(g=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,g).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,u),s.plot(t,e,r,u,{mode:f.funnelmode,norm:f.funnelmode,gap:f.funnelgap,groupgap:f.funnelgroupgap})}},{&quot;../../components/drawing&quot;:688,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../bar/plot&quot;:952,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1075:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.funnellayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;funnel&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.regions&quot;).each((function(){n.select(this).selectAll(&quot;path&quot;).style(&quot;stroke-width&quot;,0).call(a.fill,s.connector.fillcolor)})),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../constants/interactions&quot;:778,&quot;../bar/style&quot;:955,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1076:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;]}),texttemplate:s({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),hoverinfo:l({},i.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:o({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),textposition:l({},n.textposition,{values:[&quot;inside&quot;,&quot;none&quot;],dflt:&quot;inside&quot;}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;],dflt:&quot;top center&quot;}),editType:&quot;plot&quot;},domain:a({name:&quot;funnelarea&quot;,trace:!0,editType:&quot;calc&quot;}),aspectratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},baseratio:{valType:&quot;number&quot;,min:0,max:1,dflt:.333,editType:&quot;plot&quot;}}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/domain&quot;:882,&quot;../../plots/template_attributes&quot;:926,&quot;../pie/attributes&quot;:1192}],1077:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;funnelarea&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1078:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/calc&quot;);e.exports={calc:function(t,e){return n.calc(t,e)},crossTraceCalc:function(t){n.crossTraceCalc(t,{type:&quot;funnelarea&quot;})}}},{&quot;../pie/calc&quot;:1194}],1079:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../pie/defaults&quot;).handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c(&quot;labels&quot;),f=c(&quot;values&quot;),h=s(u,f),p=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),p){e._length=p,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;,l.paper_bgcolor),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var d,g=c(&quot;text&quot;),m=c(&quot;texttemplate&quot;);if(m||(d=c(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),m||d&amp;&amp;&quot;none&quot;!==d){var v=c(&quot;textposition&quot;);o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c(&quot;title.text&quot;)&amp;&amp;(c(&quot;title.position&quot;),n.coerceFont(c,&quot;title.font&quot;,l.font)),c(&quot;aspectratio&quot;),c(&quot;baseratio&quot;)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;../bar/defaults&quot;:945,&quot;../pie/defaults&quot;:1195,&quot;./attributes&quot;:1076}],1080:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;funnelarea&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;funnelarea&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOne:t(&quot;../pie/style_one&quot;),meta:{}}},{&quot;../pie/style_one&quot;:1203,&quot;./attributes&quot;:1076,&quot;./base_plot&quot;:1077,&quot;./calc&quot;:1078,&quot;./defaults&quot;:1079,&quot;./layout_attributes&quot;:1081,&quot;./layout_defaults&quot;:1082,&quot;./plot&quot;:1083,&quot;./style&quot;:1084}],1081:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/layout_attributes&quot;).hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendfunnelareacolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{&quot;../pie/layout_attributes&quot;:1199}],1082:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;funnelareacolorway&quot;,e.colorway),r(&quot;extendfunnelareacolors&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1081}],1083:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../lib&quot;),o=a.strScale,s=a.strTranslate,l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/plot&quot;).toMoveInsideBar,u=t(&quot;../bar/uniform_text&quot;),f=u.recordMinTextSize,h=u.clearMinTextSize,p=t(&quot;../pie/helpers&quot;),d=t(&quot;../pie/plot&quot;),g=d.attachFxHandlers,m=d.determineInsideTextFont,v=d.layoutAreas,y=d.prerenderTitles,x=d.positionTitleOutside,b=d.formatSliceLabel;function _(t,e){return&quot;l&quot;+(e[0]-t[0])+&quot;,&quot;+(e[1]-t[1])}e.exports=function(t,e){var r=t._fullLayout;h(&quot;funnelarea&quot;,r),y(e,t),v(e,r._size),a.makeTraceGroups(r._funnelarealayer,e,&quot;trace&quot;).each((function(e){var u=n.select(this),h=e[0],d=h.trace;!function(t){if(!t.length)return;var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i&gt;.999&amp;&amp;(i=.999);var a,o=Math.pow(i,2),s=e.vTotal,l=s,c=s*o/(1-o)/s;function u(){var t,e={x:t=Math.sqrt(c),y:-t};return[e.x,e.y]}var f,h,p=[];for(p.push(u()),f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var d=h.v/l;c+=d,p.push(u())}var g=1/0,m=-1/0;for(f=0;f&lt;p.length;f++)a=p[f],g=Math.min(g,a[1]),m=Math.max(m,a[1]);for(f=0;f&lt;p.length;f++)p[f][1]-=(m+g)/2;var v=p[p.length-1][0],y=e.r,x=(m-g)/2,b=y/v,_=y/x*n;for(e.r=_*x,f=0;f&lt;p.length;f++)p[f][0]*=b,p[f][1]*=_;var w=[-(a=p[0])[0],a[1]],T=[a[0],a[1]],k=0;for(f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var A=p[k+=1][0],M=p[k][1];h.TL=[-A,M],h.TR=[A,M],h.BL=w,h.BR=T,h.pxmid=(S=h.TR,E=h.BR,[.5*(S[0]+E[0]),.5*(S[1]+E[1])]),w=h.TL,T=h.TR}var S,E}(e),u.each((function(){var u=n.select(this).selectAll(&quot;g.slice&quot;).data(e);u.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{o.pointNumber=o.i,o.curveNumber=d.index;var u=h.cx,v=h.cy,y=n.select(this),x=y.selectAll(&quot;path.surface&quot;).data([o]);x.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),y.call(g,t,e);var w=&quot;M&quot;+(u+o.TR[0])+&quot;,&quot;+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+&quot;Z&quot;;x.attr(&quot;d&quot;,w),b(t,o,h);var T=p.castOption(d.textposition,o.pts),k=y.selectAll(&quot;g.slicetext&quot;).data(o.text&amp;&amp;&quot;none&quot;!==T?[0]:[]);k.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),k.exit().remove(),k.each((function(){var h=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),p=a.ensureUniformFontSize(t,m(d,o,r.font));h.text(o.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,p).call(l.convertToTspans,t);var g,y,x,b=i.bBox(h.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(g=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:&quot;middle&quot;})).fontSize=p.size,f(d.type,g,r),e[s].transform=g,h.attr(&quot;transform&quot;,a.getTextTransform(g))}))}}));var v=n.select(this).selectAll(&quot;g.titletext&quot;).data(d.title.text?[0]:[]);v.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),v.exit().remove(),v.each((function(){var e=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=d.title.text;d._meta&amp;&amp;(c=a.templateString(c,d._meta)),e.text(c).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,d.title.font).call(l.convertToTspans,t);var u=x(h,r._size);e.attr(&quot;transform&quot;,s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../bar/plot&quot;:952,&quot;../bar/uniform_text&quot;:957,&quot;../pie/helpers&quot;:1197,&quot;../pie/plot&quot;:1201,&quot;@plotly/d3&quot;:58}],1084:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../pie/style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;funnelarea&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:957,&quot;../pie/style_one&quot;:1203,&quot;@plotly/d3&quot;:58}],1085:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=l({z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},x:l({},n.x,{impliedEdits:{xtype:&quot;array&quot;}}),x0:l({},n.x0,{impliedEdits:{xtype:&quot;scaled&quot;}}),dx:l({},n.dx,{impliedEdits:{xtype:&quot;scaled&quot;}}),y:l({},n.y,{impliedEdits:{ytype:&quot;array&quot;}}),y0:l({},n.y0,{impliedEdits:{ytype:&quot;scaled&quot;}}),dy:l({},n.dy,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod:l({},n.xperiod,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod:l({},n.yperiod,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod0:l({},n.xperiod0,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod0:l({},n.yperiod0,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiodalignment:l({},n.xperiodalignment,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiodalignment:l({},n.yperiodalignment,{impliedEdits:{ytype:&quot;scaled&quot;}}),text:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transpose:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},xtype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},ytype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,&quot;best&quot;,!1],dflt:!1,editType:&quot;calc&quot;},hoverongaps:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;none&quot;},connectgaps:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},xgap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),zhoverformat:a(&quot;z&quot;,1),hovertemplate:o(),showlegend:l({},i.showlegend,{dflt:!1})},{transforms:void 0},s(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1086:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../histogram2d/calc&quot;),l=t(&quot;../../components/colorscale/calc&quot;),c=t(&quot;./convert_column_xyz&quot;),u=t(&quot;./clean_2d_array&quot;),f=t(&quot;./interp2d&quot;),h=t(&quot;./find_empties&quot;),p=t(&quot;./make_bound_array&quot;),d=t(&quot;../../constants/numerical&quot;).BADNUM;function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++){var i=t[n];i!==d&amp;&amp;e.push(i)}return e}e.exports=function(t,e){var r,m,v,y,x,b,_,w,T,k,A,M=a.getFromId(t,e.xaxis||&quot;x&quot;),S=a.getFromId(t,e.yaxis||&quot;y&quot;),E=n.traceIs(e,&quot;contour&quot;),L=n.traceIs(e,&quot;histogram&quot;),C=n.traceIs(e,&quot;gl2d&quot;),P=E?&quot;best&quot;:e.zsmooth;if(M._minDtick=0,S._minDtick=0,L)y=(A=s(t,e)).orig_x,r=A.x,m=A.x0,v=A.dx,w=A.orig_y,x=A.y,b=A.y0,_=A.dy,T=A.z;else{var I=e.z;i.isArray1D(I)?(c(e,M,S,&quot;x&quot;,&quot;y&quot;,[&quot;z&quot;]),r=e._x,x=e._y,I=e._z):(y=e.x?M.makeCalcdata(e,&quot;x&quot;):[],w=e.y?S.makeCalcdata(e,&quot;y&quot;):[],r=o(e,M,&quot;x&quot;,y).vals,x=o(e,S,&quot;y&quot;,w).vals,e._x=r,e._y=x),m=e.x0,v=e.dx,b=e.y0,_=e.dy,T=u(I,e,M,S)}function O(t){P=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: &quot;fast&quot;: '+t)}if((M.rangebreaks||S.rangebreaks)&amp;&amp;(T=function(t,e,r){for(var n=[],i=-1,a=0;a&lt;r.length;a++)if(e[a]!==d){i++,n[i]=[];for(var o=0;o&lt;r[a].length;o++)t[o]!==d&amp;&amp;n[i].push(r[a][o])}return n}(r,x,T),L||(r=g(r),x=g(x),e._x=r,e._y=x)),L||!E&amp;&amp;!e.connectgaps||(e._emptypoints=h(T),f(T,e._emptypoints)),&quot;fast&quot;===P)if(&quot;log&quot;===M.type||&quot;log&quot;===S.type)O(&quot;log axis found&quot;);else if(!L){if(r.length){var z=(r[r.length-1]-r[0])/(r.length-1),D=Math.abs(z/100);for(k=0;k&lt;r.length-1;k++)if(Math.abs(r[k+1]-r[k]-z)&gt;D){O(&quot;x scale is not linear&quot;);break}}if(x.length&amp;&amp;&quot;fast&quot;===P){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;k&lt;x.length-1;k++)if(Math.abs(x[k+1]-x[k]-R)&gt;F){O(&quot;y scale is not linear&quot;);break}}}var B=i.maxRowLength(T),N=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,j=p(e,N,m,v,B,M),U=&quot;scaled&quot;===e.ytype?&quot;&quot;:x,V=p(e,U,b,_,T.length,S);C||(e._extremes[M._id]=a.findExtremes(M,j),e._extremes[S._id]=a.findExtremes(S,V));var q={x:j,y:V,z:T,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&amp;&amp;y&amp;&amp;(q.orig_x=y),e.yperiodalignment&amp;&amp;w&amp;&amp;(q.orig_y=w),N&amp;&amp;N.length===j.length-1&amp;&amp;(q.xCenter=N),U&amp;&amp;U.length===V.length-1&amp;&amp;(q.yCenter=U),L&amp;&amp;(q.xRanges=A.xRanges,q.yRanges=A.yRanges,q.pts=A.pts),E||l(t,e,{vals:T,cLetter:&quot;z&quot;}),E&amp;&amp;e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring){var H={type:&quot;contour&quot;===e.type?&quot;heatmap&quot;:&quot;histogram2d&quot;,xcalendar:e.xcalendar,ycalendar:e.ycalendar};q.xfill=p(H,N,m,v,B,M),q.yfill=p(H,U,b,_,T.length,S)}return[q]}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;../histogram2d/calc&quot;:1118,&quot;./clean_2d_array&quot;:1087,&quot;./convert_column_xyz&quot;:1089,&quot;./find_empties&quot;:1091,&quot;./interp2d&quot;:1094,&quot;./make_bound_array&quot;:1095}],1087:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,h;function p(t){if(n(t))return+t}if(e&amp;&amp;e.transpose){for(s=0,f=0;f&lt;t.length;f++)s=Math.max(s,t[f].length);if(0===s)return!1;c=function(t){return t.length},u=function(t,e,r){return(t[r]||[])[e]}}else s=t.length,c=function(t,e){return t[e].length},u=function(t,e,r){return(t[e]||[])[r]};var d=function(t,e,r){return e===a||r===a?a:u(t,e,r)};function g(t){if(e&amp;&amp;&quot;carpet&quot;!==e.type&amp;&amp;&quot;contourcarpet&quot;!==e.type&amp;&amp;t&amp;&amp;&quot;category&quot;===t.type&amp;&amp;e[&quot;_&quot;+t._id.charAt(0)].length){var r=t._id.charAt(0),n={},o=e[&quot;_&quot;+r+&quot;CategoryMap&quot;]||e[r];for(f=0;f&lt;o.length;f++)n[o[f]]=f;return function(e){var r=n[t._categories[e]];return r+1?r:a}}return i.identity}var m=g(r),v=g(o);o&amp;&amp;&quot;category&quot;===o.type&amp;&amp;(s=o._categories.length);var y=new Array(s);for(f=0;f&lt;s;f++)for(l=r&amp;&amp;&quot;category&quot;===r.type?r._categories.length:c(t,f),y[f]=new Array(l),h=0;h&lt;l;h++)y[f][h]=p(d(t,v(f),m(h)));return y}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;fast-isnumeric&quot;:249}],1088:[function(t,e,r){&quot;use strict&quot;;e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;}},{}],1089:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/align_period&quot;);e.exports=function(t,e,r,o,s,l){var c=t._length,u=e.makeCalcdata(t,o),f=r.makeCalcdata(t,s);u=a(t,e,o,u).vals,f=a(t,r,s,f).vals;var h,p,d,g,m=t.text,v=void 0!==m&amp;&amp;n.isArray1D(m),y=t.hovertext,x=void 0!==y&amp;&amp;n.isArray1D(y),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(f),T=w.vals,k=[],A=T.length,M=_.length;for(h=0;h&lt;l.length;h++)k[h]=n.init2dArray(A,M);v&amp;&amp;(d=n.init2dArray(A,M)),x&amp;&amp;(g=n.init2dArray(A,M));var S=n.init2dArray(A,M);for(h=0;h&lt;c;h++)if(u[h]!==i&amp;&amp;f[h]!==i){var E=n.findBin(u[h]+b.minDiff/2,_),L=n.findBin(f[h]+w.minDiff/2,T);for(p=0;p&lt;l.length;p++){var C=t[l[p]];k[p][L][E]=C[h],S[L][E]=h}v&amp;&amp;(d[L][E]=m[h]),x&amp;&amp;(g[L][E]=y[h])}for(t[&quot;_&quot;+o]=_,t[&quot;_&quot;+s]=T,p=0;p&lt;l.length;p++)t[&quot;_&quot;+l[p]]=k[p];v&amp;&amp;(t._text=d),x&amp;&amp;(t._hovertext=g),e&amp;&amp;&quot;category&quot;===e.type&amp;&amp;(t[&quot;_&quot;+o+&quot;CategoryMap&quot;]=_.map((function(t){return e._categories[t]}))),r&amp;&amp;&quot;category&quot;===r.type&amp;&amp;(t[&quot;_&quot;+s+&quot;CategoryMap&quot;]=T.map((function(t){return r._categories[t]}))),t._after2before=S}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851}],1090:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./style_defaults&quot;),s=t(&quot;../../components/colorscale/defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}i(t,e,u,c)?(a(t,e,c,u),u(&quot;xhoverformat&quot;),u(&quot;yhoverformat&quot;),u(&quot;text&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;),o(t,e,u,c),u(&quot;hoverongaps&quot;),u(&quot;connectgaps&quot;,n.isArray1D(e.z)&amp;&amp;!1!==e.zsmooth),s(t,e,c,u,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../scatter/period_defaults&quot;:1238,&quot;./attributes&quot;:1085,&quot;./style_defaults&quot;:1098,&quot;./xyz_defaults&quot;:1099}],1091:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).maxRowLength;e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],g=[0,0,0],m=n(t);for(r=0;r&lt;t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i&lt;m;i++)void 0===d[i]&amp;&amp;((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&amp;&amp;s++,0===i&amp;&amp;s++,r===t.length-1&amp;&amp;s++,i===d.length-1&amp;&amp;s++,s&lt;4&amp;&amp;(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o&gt;=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&amp;&amp;(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw&quot;findEmpties iterated with no new neighbors&quot;;for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{&quot;../../lib&quot;:803}],1092:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts;e.exports=function(t,e,r,s,l){l||(l={});var c,u,f,h,p=l.isContour,d=t.cd[0],g=d.trace,m=t.xa,v=t.ya,y=d.x,x=d.y,b=d.z,_=d.xCenter,w=d.yCenter,T=d.zmask,k=g.zhoverformat,A=y,M=x;if(!1!==t.index){try{f=Math.round(t.index[1]),h=Math.round(t.index[0])}catch(e){return void i.error(&quot;Error hovering on heatmap, pointNumber must be [row,col], found:&quot;,t.index)}if(f&lt;0||f&gt;=b[0].length||h&lt;0||h&gt;b.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)&gt;0||n.inbox(r-x[0],r-x[x.length-1],0)&gt;0)return;if(p){var S;for(A=[2*y[0]-y[1]],S=1;S&lt;y.length;S++)A.push((y[S]+y[S-1])/2);for(A.push([2*y[y.length-1]-y[y.length-2]]),M=[2*x[0]-x[1]],S=1;S&lt;x.length;S++)M.push((x[S]+x[S-1])/2);M.push([2*x[x.length-1]-x[x.length-2]])}f=Math.max(0,Math.min(A.length-2,i.findBin(e,A))),h=Math.max(0,Math.min(M.length-2,i.findBin(r,M)))}var E,L,C=m.c2p(y[f]),P=m.c2p(y[f+1]),I=v.c2p(x[h]),O=v.c2p(x[h+1]);p?(E=d.orig_x||y,L=d.orig_y||x,P=C,c=E[f],O=I,u=L[h]):(E=d.orig_x||_||y,L=d.orig_y||w||x,c=_?E[f]:(E[f]+E[f+1])/2,u=w?L[h]:(L[h]+L[h+1])/2,m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(c=y[f]),v&amp;&amp;&quot;category&quot;===v.type&amp;&amp;(u=x[h]),g.zsmooth&amp;&amp;(C=P=m.c2p(c),I=O=v.c2p(u)));var z=b[h][f];if(T&amp;&amp;!T[h][f]&amp;&amp;(z=void 0),void 0!==z||g.hoverongaps){var D;Array.isArray(d.hovertext)&amp;&amp;Array.isArray(d.hovertext[h])?D=d.hovertext[h][f]:Array.isArray(d.text)&amp;&amp;Array.isArray(d.text[h])&amp;&amp;(D=d.text[h][f]);var R=o(g),F={type:&quot;linear&quot;,range:[R.min,R.max],hoverformat:k,_separators:m._separators,_numFormat:m._numFormat},B=a.tickText(F,z,&quot;hover&quot;).text;return[i.extendFlat(t,{index:g._after2before?g._after2before[h][f]:[h,f],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:C,x1:P,y0:I,y1:O,xLabelVal:c,yLabelVal:u,zLabelVal:z,zLabel:B,text:D})]}}},{&quot;../../components/colorscale&quot;:678,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],1093:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./colorbar&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmap&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:1085,&quot;./calc&quot;:1086,&quot;./colorbar&quot;:1088,&quot;./defaults&quot;:1090,&quot;./hover&quot;:1092,&quot;./plot&quot;:1096,&quot;./style&quot;:1097}],1094:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,g,m,v=0;for(s=0;s&lt;e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l&lt;4;l++)(u=t[a+(c=i[l])[0]])&amp;&amp;void 0!==(f=u[o+c[1]])&amp;&amp;(0===p?g=m=f:(g=Math.min(g,f),m=Math.max(m,f)),h++,p+=f);if(0===h)throw&quot;iterateInterp2d order is wrong: no defined neighbors&quot;;t[a][o]=p/h,void 0===d?h&lt;4&amp;&amp;(v=1):(t[a][o]=(1+r)*t[a][o]-r*d,m&gt;g&amp;&amp;(v=Math.max(v,Math.abs(t[a][o]-d)/(m-g))))}return v}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r&lt;e.length&amp;&amp;!(e[r][2]&lt;4);r++);for(e=e.slice(r),r=0;r&lt;100&amp;&amp;i&gt;.01;r++)i=o(t,e,a(i));return i&gt;.01&amp;&amp;n.log(&quot;interp2d didn't converge quickly&quot;,i),t}},{&quot;../../lib&quot;:803}],1095:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,&quot;contour&quot;),p=n.traceIs(t,&quot;histogram&quot;),d=n.traceIs(t,&quot;gl2d&quot;);if(i(e)&amp;&amp;e.length&gt;1&amp;&amp;!p&amp;&amp;&quot;category&quot;!==s.type){var g=e.length;if(!(g&lt;=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u&lt;g;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[g-1]-.5*e[g-2])}if(g&lt;o){var m=f[f.length-1],v=m-f[f.length-2];for(u=g;u&lt;o;u++)m+=v,f.push(m)}}else{var y=t[s._id.charAt(0)+&quot;calendar&quot;];if(p)l=s.r2c(r,0,y);else if(i(e)&amp;&amp;1===e.length)l=e[0];else if(void 0===r)l=0;else{l=(&quot;log&quot;===s.type?s.d2c:s.r2c)(r,0,y)}for(c=a||1,u=h||d?0:-.5;u&lt;o;u++)f.push(l+c*u)}return f}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],1096:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,l=t(&quot;../../constants/xmlns_namespaces&quot;);function c(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&amp;&amp;s!==r&amp;&amp;c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function u(t,e){var r=e.length-1,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a&lt;=0?{bin0:n,bin1:n,frac:0}:a&lt;.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function f(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,h){var p=e.xaxis,d=e.yaxis;o.makeTraceGroups(h,r,&quot;hm&quot;).each((function(e){var r,h,g,m,v,y,x=n.select(this),b=e[0],_=b.trace,w=b.z,T=b.x,k=b.y,A=b.xCenter,M=b.yCenter,S=a.traceIs(_,&quot;contour&quot;),E=S?&quot;best&quot;:_.zsmooth,L=w.length,C=o.maxRowLength(w),P=!1,I=!1;for(y=0;void 0===r&amp;&amp;y&lt;T.length-1;)r=p.c2p(T[y]),y++;for(y=T.length-1;void 0===h&amp;&amp;y&gt;0;)h=p.c2p(T[y]),y--;for(h&lt;r&amp;&amp;(g=h,h=r,r=g,P=!0),y=0;void 0===m&amp;&amp;y&lt;k.length-1;)m=d.c2p(k[y]),y++;for(y=k.length-1;void 0===v&amp;&amp;y&gt;0;)v=d.c2p(k[y]),y--;if(v&lt;m&amp;&amp;(g=m,m=v,v=g,I=!0),S&amp;&amp;(A=T,M=k,T=b.xfill,k=b.yfill),&quot;fast&quot;!==E){var O=&quot;best&quot;===E?0:.5;r=Math.max(-O*p._length,r),h=Math.min((1+O)*p._length,h),m=Math.max(-O*d._length,m),v=Math.min((1+O)*d._length,v)}var z=Math.round(h-r),D=Math.round(v-m);if(z&lt;=0||D&lt;=0){x.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var R,F;&quot;fast&quot;===E?(R=C,F=L):(R=z,F=D);var B=document.createElement(&quot;canvas&quot;);B.width=R,B.height=F;var N,j,U=B.getContext(&quot;2d&quot;),V=s(_,{noNumericCheck:!0,returnArray:!0});&quot;fast&quot;===E?(N=P?function(t){return C-1-t}:o.identity,j=I?function(t){return L-1-t}:o.identity):(N=function(t){return o.constrain(Math.round(p.c2p(T[t])-r),0,z)},j=function(t){return o.constrain(Math.round(d.c2p(k[t])-m),0,D)});var q,H,G,Y,W,X=j(0),Z=[X,X],J=P?0:1,K=I?0:1,Q=0,$=0,tt=0,et=0;if(E){var rt,nt=0;try{rt=new Uint8Array(z*D*4)}catch(t){rt=new Array(z*D*4)}if(&quot;best&quot;===E){var it,at,ot,st=A||T,lt=M||k,ct=new Array(st.length),ut=new Array(lt.length),ft=new Array(z),ht=A?u:c,pt=M?u:c;for(y=0;y&lt;st.length;y++)ct[y]=Math.round(p.c2p(st[y])-r);for(y=0;y&lt;lt.length;y++)ut[y]=Math.round(d.c2p(lt[y])-m);for(y=0;y&lt;z;y++)ft[y]=ht(y,ct);for(H=0;H&lt;D;H++)for(at=w[(it=pt(H,ut)).bin0],ot=w[it.bin1],y=0;y&lt;z;y++,nt+=4)f(rt,nt,W=kt(at,ot,ft[y],it))}else for(H=0;H&lt;L;H++)for(Y=w[H],Z=j(H),y=0;y&lt;z;y++)W=Tt(Y[y],1),f(rt,nt=4*(Z*z+N(y)),W);var dt=U.createImageData(z,D);try{dt.data.set(rt)}catch(t){var gt=dt.data,mt=gt.length;for(H=0;H&lt;mt;H++)gt[H]=rt[H]}U.putImageData(dt,0,0)}else{var vt=_.xgap,yt=_.ygap,xt=Math.floor(vt/2),bt=Math.floor(yt/2);for(H=0;H&lt;L;H++)if(Y=w[H],Z.reverse(),Z[K]=j(H+1),Z[0]!==Z[1]&amp;&amp;void 0!==Z[0]&amp;&amp;void 0!==Z[1])for(q=[G=N(0),G],y=0;y&lt;C;y++)q.reverse(),q[J]=N(y+1),q[0]!==q[1]&amp;&amp;void 0!==q[0]&amp;&amp;void 0!==q[1]&amp;&amp;(W=Tt(Y[y],(q[1]-q[0])*(Z[1]-Z[0])),U.fillStyle=&quot;rgba(&quot;+W.join(&quot;,&quot;)+&quot;)&quot;,U.fillRect(q[0]+xt,Z[0]+bt,q[1]-q[0]-vt,Z[1]-Z[0]-yt))}$=Math.round($/Q),tt=Math.round(tt/Q),et=Math.round(et/Q);var _t=i(&quot;rgb(&quot;+$+&quot;,&quot;+tt+&quot;,&quot;+et+&quot;)&quot;);t._hmpixcount=(t._hmpixcount||0)+Q,t._hmlumcount=(t._hmlumcount||0)+Q*_t.getLuminance();var wt=x.selectAll(&quot;image&quot;).data(e);wt.enter().append(&quot;svg:image&quot;).attr({xmlns:l.svg,preserveAspectRatio:&quot;none&quot;}),wt.attr({height:D,width:z,x:r,y:m,&quot;xlink:href&quot;:B.toDataURL(&quot;image/png&quot;)})}function Tt(t,e){if(void 0!==t){var r=V(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=e,$+=r[0]*e,tt+=r[1]*e,et+=r[2]*e,r}return[0,0,0,0]}function kt(t,e,r,n){var i=t[r.bin0];if(void 0===i)return Tt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,Tt(i+r.frac*c+n.frac*(u+r.frac*a))}}))}},{&quot;../../components/colorscale&quot;:678,&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;@plotly/d3&quot;:58,tinycolor2:598}],1097:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.hm image&quot;).style(&quot;opacity&quot;,(function(t){return t.trace.opacity}))}},{&quot;@plotly/d3&quot;:58}],1098:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){!1===r(&quot;zsmooth&quot;)&amp;&amp;(r(&quot;xgap&quot;),r(&quot;ygap&quot;)),r(&quot;zhoverformat&quot;)}},{}],1099:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;);function o(t,e){var r=e(t);return&quot;scaled&quot;===(r?e(t+&quot;type&quot;,&quot;array&quot;):&quot;scaled&quot;)&amp;&amp;(e(t+&quot;0&quot;),e(&quot;d&quot;+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(&quot;z&quot;);if(l=l||&quot;x&quot;,c=c||&quot;y&quot;,void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){u=r(l),f=r(c);var p=i.minRowLength(u),d=i.minRowLength(f);if(0===p||0===d)return 0;e._length=Math.min(p,d,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s&lt;t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length&gt;0&amp;&amp;(a=!0);for(var l=0;l&lt;e.length;l++)if(n(e[l])){o=!0;break}}return r&amp;&amp;a&amp;&amp;o}(h))return 0;r(&quot;transpose&quot;),e._length=null}return&quot;heatmapgl&quot;===t.type||a.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[l,c],s),!0}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;fast-isnumeric&quot;:249}],1100:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=[&quot;z&quot;,&quot;x&quot;,&quot;x0&quot;,&quot;dx&quot;,&quot;y&quot;,&quot;y0&quot;,&quot;dy&quot;,&quot;text&quot;,&quot;transpose&quot;,&quot;xtype&quot;,&quot;ytype&quot;],l={},c=0;c&lt;s.length;c++){var u=s[c];l[u]=n[u]}l.zsmooth={valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:&quot;fast&quot;,editType:&quot;calc&quot;},a(l,i(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1})),e.exports=o(l,&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../heatmap/attributes&quot;:1085}],1101:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-heatmap2d&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib/str2rgbarray&quot;);function o(t,e){this.scene=t,this.uid=e,this.type=&quot;heatmapgl&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:&quot;fast&quot;,z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y,this.options.zsmooth=t.zsmooth;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l&lt;i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f&lt;4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c,u,f=this.scene.xaxis,h=this.scene.yaxis;!1===t.zsmooth&amp;&amp;(c={ppad:r.x[1]-r.x[0]},u={ppad:r.y[1]-r.y[0]}),t._extremes[f._id]=i.findExtremes(f,r.x,c),t._extremes[h._id]=i.findExtremes(h,r.y,u)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/cartesian/axes&quot;:854,&quot;gl-heatmap2d&quot;:278}],1102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s)?(l(&quot;text&quot;),l(&quot;zsmooth&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../heatmap/xyz_defaults&quot;:1099,&quot;./attributes&quot;:1100}],1103:[function(t,e,r){&quot;use strict&quot;;[&quot;*heatmapgl* trace is deprecated!&quot;,&quot;Please consider switching to the *heatmap* or *image* trace types.&quot;,&quot;Alternatively you could contribute/sponsor rewriting this trace type&quot;,&quot;based on cartesian features and using regl framework.&quot;].join(&quot; &quot;);e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmapgl&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;2dMap&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:894,&quot;../heatmap/calc&quot;:1086,&quot;../heatmap/colorbar&quot;:1088,&quot;./attributes&quot;:1100,&quot;./convert&quot;:1101,&quot;./defaults&quot;:1102}],1104:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;./bin_attributes&quot;),s=t(&quot;./constants&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),orientation:n.orientation,histfunc:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;min&quot;,&quot;max&quot;],dflt:&quot;count&quot;,editType:&quot;calc&quot;},histnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;percent&quot;,&quot;probability&quot;,&quot;density&quot;,&quot;probability density&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},cumulative:{enabled:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;increasing&quot;,&quot;decreasing&quot;],dflt:&quot;increasing&quot;,editType:&quot;calc&quot;},currentbin:{valType:&quot;enumerated&quot;,values:[&quot;include&quot;,&quot;exclude&quot;,&quot;half&quot;],dflt:&quot;include&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},nbinsx:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},xbins:o(&quot;x&quot;,!0),nbinsy:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},ybins:o(&quot;y&quot;,!0),autobinx:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},autobiny:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},bingroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:a({},{keys:s.eventDataKeys}),marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../bar/attributes&quot;:941,&quot;./bin_attributes&quot;:1106,&quot;./constants&quot;:1110}],1105:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=t.length,n=0,i=0;i&lt;r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],1106:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return{start:{valType:&quot;any&quot;,editType:&quot;calc&quot;},end:{valType:&quot;any&quot;,editType:&quot;calc&quot;},size:{valType:&quot;any&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}}},{}],1107:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&amp;&amp;(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&gt;a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&lt;a){var o=a-r[t];return r[t]=a,o}}return 0}}},{&quot;fast-isnumeric&quot;:249}],1108:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(&quot;../../plots/cartesian/axes&quot;).tickIncrement;function f(t,e,r,n){if(t*e&lt;=0)return 1/0;for(var i=Math.abs(e-t),a=&quot;date&quot;===r.type,o=h(i,a),s=0;s&lt;10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&amp;&amp;t&gt;c?t&gt;o?t&gt;1.1*i?i:t&gt;1.1*a?a:o:t&gt;s?s:t&gt;l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&amp;&amp;t&gt;o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)&gt;.1}function d(t,e,r){var n=e.c2d(t,i,r).split(&quot;-&quot;);return&quot;&quot;===n[0]&amp;&amp;(n.unshift(),n[0]=&quot;-&quot;+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],g=r[1],m=Math.min(f(d+h,d+p,n,a),f(g+h,g+p,n,a)),v=Math.min(f(d+c,d+h,n,a),f(g+c,g+h,n,a));if(m&gt;v&amp;&amp;v&lt;Math.abs(g-d)/4e3?(s=m,l=!1):(s=Math.min(m,v),l=!0),&quot;date&quot;===n.type&amp;&amp;s&gt;o){var y=s===i?1:6,x=s===i?&quot;M12&quot;:&quot;M1&quot;;return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(&quot;-&quot;,y);s&gt;0&amp;&amp;(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c&lt;e){var f=u(c,x,!1,a);(c+f)/2&lt;e+t&amp;&amp;(c=f)}return r&amp;&amp;l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10&lt;e&amp;&amp;n+.9*s&lt;e+t&amp;&amp;(n+=s),r&amp;&amp;l&amp;&amp;(n-=s),n}}},{&quot;../../constants/numerical&quot;:779,&quot;../../plots/cartesian/axes&quot;:854}],1109:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../bar/arrays_to_calcdata&quot;),l=t(&quot;./bin_functions&quot;),c=t(&quot;./norm_functions&quot;),u=t(&quot;./average&quot;),f=t(&quot;./bin_label_vals&quot;);function h(t,e,r,s,l){var c,u,f,p,d,g,m,v=s+&quot;bins&quot;,y=t._fullLayout,x=e[&quot;_&quot;+s+&quot;bingroup&quot;],b=y._histogramBinOpts[x],_=&quot;overlay&quot;===y.barmode,w=function(t){return r.r2c(t,0,p)},T=function(t){return r.c2r(t,0,p)},k=&quot;date&quot;===r.type?function(t){return t||0===t?i.cleanDate(t,null,p):null}:function(t){return n(t)?Number(t):null};function A(t,e,r){e[t+&quot;Found&quot;]?(e[t]=k(e[t]),null===e[t]&amp;&amp;(e[t]=r[t])):(g[t]=e[t]=r[t],i.nestedProperty(u[0],v+&quot;.&quot;+t).set(r[t]))}if(e[&quot;_&quot;+s+&quot;autoBinFinished&quot;])delete e[&quot;_&quot;+s+&quot;autoBinFinished&quot;];else{u=b.traces;var M=[],S=!0,E=!1,L=!1;for(c=0;c&lt;u.length;c++)if((f=u[c]).visible){var C=b.dirs[c];d=f[&quot;_&quot;+C+&quot;pos0&quot;]=r.makeCalcdata(f,C),M=i.concat(M,d),delete f[&quot;_&quot;+s+&quot;autoBinFinished&quot;],!0===e.visible&amp;&amp;(S?S=!1:(delete f._autoBin,f[&quot;_&quot;+s+&quot;autoBinFinished&quot;]=1),a.traceIs(f,&quot;2dMap&quot;)&amp;&amp;(E=!0),&quot;histogram2dcontour&quot;===f.type&amp;&amp;(L=!0))}p=u[0][s+&quot;calendar&quot;];var P=o.autoBin(M,r,b.nbins,E,p,b.sizeFound&amp;&amp;b.size),I=u[0]._autoBin={};if(g=I[b.dirs[0]]={},L&amp;&amp;(b.size||(P.start=T(o.tickIncrement(w(P.start),P.size,!0,p))),void 0===b.end&amp;&amp;(P.end=T(o.tickIncrement(w(P.end),P.size,!1,p)))),_&amp;&amp;!a.traceIs(e,&quot;2dMap&quot;)&amp;&amp;0===P._dataSpan&amp;&amp;&quot;category&quot;!==r.type&amp;&amp;&quot;multicategory&quot;!==r.type){if(l)return[P,d,!0];P=function(t,e,r,n,a){var o,s,l,c=t._fullLayout,u=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s&lt;o.length;s++){var l=o[s];&quot;histogram&quot;===l.type&amp;&amp;!0===l.visible&amp;&amp;l.orientation===i&amp;&amp;l.xaxis===r&amp;&amp;l.yaxis===n&amp;&amp;a.push(l)}return a}(t,e),f=!1,p=1/0,d=[e];for(o=0;o&lt;u.length;o++)if((s=u[o])===e)f=!0;else if(f){var g=h(t,s,r,n,!0),m=g[0],v=g[2];s[&quot;_&quot;+n+&quot;autoBinFinished&quot;]=1,s[&quot;_&quot;+n+&quot;pos0&quot;]=g[1],v?d.push(s):p=Math.min(p,m.size)}else l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]],p=Math.min(p,l.size||s[a].size);var y=new Array(d.length);for(o=0;o&lt;d.length;o++)for(var x=d[o][&quot;_&quot;+n+&quot;pos0&quot;],b=0;b&lt;x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}isFinite(p)||(p=i.distinctVals(y).minDiff);for(o=0;o&lt;d.length;o++){var _=(s=d[o])[n+&quot;calendar&quot;],w={start:r.c2r(y[o]-p/2,0,_),end:r.c2r(y[o]+p/2,0,_),size:p};s._input[a]=s[a]=w,(l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]])&amp;&amp;i.extendFlat(l,w)}return e[a]}(t,e,r,s,v)}(m=f.cumulative||{}).enabled&amp;&amp;&quot;include&quot;!==m.currentbin&amp;&amp;(&quot;decreasing&quot;===m.direction?P.start=T(o.tickIncrement(w(P.start),P.size,!0,p)):P.end=T(o.tickIncrement(w(P.end),P.size,!1,p))),b.size=P.size,b.sizeFound||(g.size=P.size,i.nestedProperty(u[0],v+&quot;.size&quot;).set(P.size)),A(&quot;start&quot;,b,P),A(&quot;end&quot;,b,P)}d=e[&quot;_&quot;+s+&quot;pos0&quot;],delete e[&quot;_&quot;+s+&quot;pos0&quot;];var O=e._input[v]||{},z=i.extendFlat({},b),D=b.start,R=r.r2l(O.start),F=void 0!==R;if((b.startFound||F)&amp;&amp;R!==r.r2l(D)){var B=F?R:i.aggNums(Math.min,null,d),N={type:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type?&quot;linear&quot;:r.type,r2l:r.r2l,dtick:b.size,tick0:D,calendar:p,range:[B,o.tickIncrement(B,b.size,!1,p)].map(r.l2r)},j=o.tickFirst(N);j&gt;r.r2l(B)&amp;&amp;(j=o.tickIncrement(j,b.size,!0,p)),z.start=r.l2r(j),F||i.nestedProperty(e,v+&quot;.start&quot;).set(z.start)}var U=b.end,V=r.r2l(O.end),q=void 0!==V;if((b.endFound||q)&amp;&amp;V!==r.r2l(U)){var H=q?V:i.aggNums(Math.max,null,d);z.end=r.l2r(H),q||i.nestedProperty(e,v+&quot;.start&quot;).set(z.end)}var G=&quot;autobin&quot;+s;return!1===e._input[G]&amp;&amp;(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[z,d]}e.exports={calc:function(t,e){var r,a,p,d,g=[],m=[],v=o.getFromId(t,&quot;h&quot;===e.orientation?e.yaxis:e.xaxis),y=&quot;h&quot;===e.orientation?&quot;y&quot;:&quot;x&quot;,x={x:&quot;y&quot;,y:&quot;x&quot;}[y],b=e[y+&quot;calendar&quot;],_=e.cumulative,w=h(t,e,v,y),T=w[0],k=w[1],A=&quot;string&quot;==typeof T.size,M=[],S=A?M:T,E=[],L=[],C=[],P=0,I=e.histnorm,O=e.histfunc,z=-1!==I.indexOf(&quot;density&quot;);_.enabled&amp;&amp;z&amp;&amp;(I=I.replace(/ ?density$/,&quot;&quot;),z=!1);var D,R=&quot;max&quot;===O||&quot;min&quot;===O?null:0,F=l.count,B=c[I],N=!1,j=function(t){return v.r2c(t,0,b)};for(i.isArrayOrTypedArray(e[x])&amp;&amp;&quot;count&quot;!==O&amp;&amp;(D=e[x],N=&quot;avg&quot;===O,F=l[O]),r=j(T.start),p=j(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r&lt;p&amp;&amp;g.length&lt;1e6&amp;&amp;(a=o.tickIncrement(r,T.size,!1,b),g.push((r+a)/2),m.push(R),C.push([]),M.push(r),z&amp;&amp;E.push(1/(a-r)),N&amp;&amp;L.push(0),!(a&lt;=r));)r=a;M.push(r),A||&quot;date&quot;!==v.type||(S={start:j(S.start),end:j(S.end),size:S.size}),t._fullLayout._roundFnOpts||(t._fullLayout._roundFnOpts={});var U=e[&quot;_&quot;+y+&quot;bingroup&quot;],V={leftGap:1/0,rightGap:1/0};U&amp;&amp;(t._fullLayout._roundFnOpts[U]||(t._fullLayout._roundFnOpts[U]=V),V=t._fullLayout._roundFnOpts[U]);var q,H=m.length,G=!0,Y=V.leftGap,W=V.rightGap,X={};for(r=0;r&lt;k.length;r++){var Z=k[r];(d=i.findBin(Z,S))&gt;=0&amp;&amp;d&lt;H&amp;&amp;(P+=F(d,r,m,D,L),G&amp;&amp;C[d].length&amp;&amp;Z!==k[C[d][0]]&amp;&amp;(G=!1),C[d].push(r),X[r]=d,Y=Math.min(Y,Z-M[d]),W=Math.min(W,M[d+1]-Z))}V.leftGap=Y,V.rightGap=W,G||(q=function(e,r){return function(){var n=t._fullLayout._roundFnOpts[U];return f(n.leftGap,n.rightGap,M,v,b)(e,r)}}),N&amp;&amp;(P=u(m,L)),B&amp;&amp;B(m,P,E),_.enabled&amp;&amp;function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(&quot;half&quot;===r)if(&quot;increasing&quot;===e)for(o(0),n=1;n&lt;t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n&gt;=0;n--)s(n);else if(&quot;increasing&quot;===e){for(n=1;n&lt;t.length;n++)t[n]+=t[n-1];&quot;exclude&quot;===r&amp;&amp;(t.unshift(0),t.pop())}else{for(n=t.length-2;n&gt;=0;n--)t[n]+=t[n+1];&quot;exclude&quot;===r&amp;&amp;(t.push(0),t.shift())}}(m,_.direction,_.currentbin);var J=Math.min(g.length,m.length),K=[],Q=0,$=J-1;for(r=0;r&lt;J;r++)if(m[r]){Q=r;break}for(r=J-1;r&gt;=Q;r--)if(m[r]){$=r;break}for(r=Q;r&lt;=$;r++)if(n(g[r])&amp;&amp;n(m[r])){var tt={p:g[r],s:m[r],b:0};_.enabled||(tt.pts=C[r],G?tt.ph0=tt.ph1=C[r].length?k[C[r][0]]:g[r]:(e._computePh=!0,tt.ph0=q(M[r]),tt.ph1=q(M[r+1],!0))),K.push(tt)}return 1===K.length&amp;&amp;(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,b)-K[0].p),s(K,e),i.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;i.tagSelected(K,e,X),K},calcAllAutoBins:h}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../registry&quot;:931,&quot;../bar/arrays_to_calcdata&quot;:940,&quot;./average&quot;:1105,&quot;./bin_functions&quot;:1107,&quot;./bin_label_vals&quot;:1108,&quot;./norm_functions&quot;:1116,&quot;fast-isnumeric&quot;:249}],1110:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;binNumber&quot;]}},{}],1111:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../../registry&quot;).traceIs,o=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,s=n.nestedProperty,l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=[{aStr:{x:&quot;xbins.start&quot;,y:&quot;ybins.start&quot;},name:&quot;start&quot;},{aStr:{x:&quot;xbins.end&quot;,y:&quot;ybins.end&quot;},name:&quot;end&quot;},{aStr:{x:&quot;xbins.size&quot;,y:&quot;ybins.size&quot;},name:&quot;size&quot;},{aStr:{x:&quot;nbinsx&quot;,y:&quot;nbinsy&quot;},name:&quot;nbins&quot;}],u=[&quot;x&quot;,&quot;y&quot;];e.exports=function(t,e){var r,f,h,p,d,g,m,v=e._histogramBinOpts={},y=[],x={},b=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return&quot;v&quot;===t.orientation?&quot;x&quot;:&quot;y&quot;}function T(t,r,a){var o=t.uid+&quot;__&quot;+a;r||(r=o);var s=function(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+&quot;calendar&quot;]||&quot;&quot;,c=v[r],u=!0;c&amp;&amp;(s===c.axType&amp;&amp;l===c.calendar?(u=!1,c.traces.push(t),c.dirs.push(a)):(r=o,s!==c.axType&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set on a&quot;,&quot;type:&quot;+s,&quot;axis&quot;,&quot;with bins on&quot;,&quot;type:&quot;+c.axType,&quot;axis.&quot;].join(&quot; &quot;)),l!==c.calendar&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set with a&quot;,l,&quot;calendar&quot;,&quot;with bins&quot;,c.calendar?&quot;on a &quot;+c.calendar+&quot; calendar&quot;:&quot;w/o a set calendar&quot;].join(&quot; &quot;)))),u&amp;&amp;(v[r]={traces:[t],dirs:[a],axType:s,calendar:t[a+&quot;calendar&quot;]||&quot;&quot;}),t[&quot;_&quot;+a+&quot;bingroup&quot;]=r}for(d=0;d&lt;t.length;d++)r=t[d],a(r,&quot;histogram&quot;)&amp;&amp;(y.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,a(r,&quot;2dMap&quot;)||o(r._input,r,e,_));var k=e._alignmentOpts||{};for(d=0;d&lt;y.length;d++){if(r=y[d],h=&quot;&quot;,!a(r,&quot;2dMap&quot;)){if(p=w(r),&quot;group&quot;===e.barmode&amp;&amp;r.alignmentgroup){var A=r[p+&quot;axis&quot;],M=l(e,A)+r.orientation;(k[M]||{})[r.alignmentgroup]&amp;&amp;(h=M)}h||&quot;overlay&quot;===e.barmode||(h=l(e,r.xaxis)+l(e,r.yaxis)+w(r))}h?(x[h]||(x[h]=[]),x[h].push(r)):b.push(r)}for(h in x)if(1!==(f=x[h]).length){var S=!1;for(f.length&amp;&amp;(r=f[0],S=_(&quot;bingroup&quot;)),h=S||h,d=0;d&lt;f.length;d++){var E=(r=f[d])._input.bingroup;E&amp;&amp;E!==h&amp;&amp;n.warn([&quot;Trace&quot;,r.index,&quot;must match&quot;,&quot;within bingroup&quot;,h+&quot;.&quot;,&quot;Ignoring its bingroup:&quot;,E,&quot;setting.&quot;].join(&quot; &quot;)),r.bingroup=h,T(r,h,w(r))}}else b.push(f[0]);for(d=0;d&lt;b.length;d++){r=b[d];var L=_(&quot;bingroup&quot;);if(a(r,&quot;2dMap&quot;))for(m=0;m&lt;2;m++){var C=_((p=u[m])+&quot;bingroup&quot;,L?L+&quot;__&quot;+p:null);T(r,C,p)}else T(r,L,w(r))}for(h in v){var P=v[h];for(f=P.traces,g=0;g&lt;c.length;g++){var I,O,z=c[g],D=z.name;if(&quot;nbins&quot;!==D||!P.sizeFound){for(d=0;d&lt;f.length;d++){if(r=f[d],p=P.dirs[d],I=z.aStr[p],void 0!==s(r._input,I).get()){P[D]=_(I),P[D+&quot;Found&quot;]=!0;break}(O=(r._autoBin||{})[p]||{})[D]&amp;&amp;s(r,I).set(O[D])}if(&quot;start&quot;===D||&quot;end&quot;===D)for(;d&lt;f.length;d++)(r=f[d])[&quot;_&quot;+p+&quot;bingroup&quot;]&amp;&amp;_(I,(O=(r._autoBin||{})[p]||{})[D]);&quot;nbins&quot;!==D||P.sizeFound||P.nbinsFound||(r=f[0],P[D]=_(I))}}}}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../plots/cartesian/constraints&quot;:862,&quot;../../registry&quot;:931,&quot;../bar/defaults&quot;:945}],1112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../bar/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,n){return i.coerce(t,e,s,r,n)}var u=c(&quot;x&quot;),f=c(&quot;y&quot;);c(&quot;cumulative.enabled&quot;)&amp;&amp;(c(&quot;cumulative.direction&quot;),c(&quot;cumulative.currentbin&quot;)),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;);var h=c(&quot;orientation&quot;,f&amp;&amp;!u?&quot;h&quot;:&quot;v&quot;),p=&quot;v&quot;===h?&quot;x&quot;:&quot;y&quot;,d=&quot;v&quot;===h?&quot;y&quot;:&quot;x&quot;,g=u&amp;&amp;f?Math.min(i.minRowLength(u)&amp;&amp;i.minRowLength(f)):i.minRowLength(e[p]||[]);if(g){e._length=g,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],l),e[d]&amp;&amp;c(&quot;histfunc&quot;),c(&quot;histnorm&quot;),c(&quot;autobin&quot;+p),o(t,e,c,r,l),i.coerceSelectionMarkerOpacity(e,c);var m=(e.marker.line||{}).color,v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,m||a.defaultLine,{axis:&quot;y&quot;}),v(t,e,m||a.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;})}else e.visible=!1}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../bar/style_defaults&quot;:956,&quot;./attributes&quot;:1104}],1113:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;zLabelVal&quot;in e&amp;&amp;(t.z=e.zLabelVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s&lt;o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],1114:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/hover&quot;).hoverPoints,i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o){var s=n(t,e,r,a,o);if(s){var l=(t=s[0]).cd[t.index],c=t.cd[0].trace;if(!c.cumulative.enabled){var u=&quot;h&quot;===c.orientation?&quot;y&quot;:&quot;x&quot;;t[u+&quot;Label&quot;]=i(t[u+&quot;a&quot;],[l.ph0,l.ph1],c[u+&quot;hoverformat&quot;])}return s}}},{&quot;../../plots/cartesian/axes&quot;:854,&quot;../bar/hover&quot;:948}],1115:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../bar/layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),supplyLayoutDefaults:t(&quot;../bar/layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;../bar/cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;../bar/plot&quot;).plot,layerName:&quot;barlayer&quot;,style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,colorbar:t(&quot;../scatter/marker_colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;histogram&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../bar/cross_trace_calc&quot;:944,&quot;../bar/layout_attributes&quot;:950,&quot;../bar/layout_defaults&quot;:951,&quot;../bar/plot&quot;:952,&quot;../bar/select&quot;:953,&quot;../bar/style&quot;:955,&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1104,&quot;./calc&quot;:1109,&quot;./cross_trace_defaults&quot;:1111,&quot;./defaults&quot;:1112,&quot;./event_data&quot;:1113,&quot;./hover&quot;:1114}],1116:[function(t,e,r){&quot;use strict&quot;;e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i&lt;r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a&lt;i;a++)t[a]*=r[a]*n},&quot;probability density&quot;:function(t,e,r,n){var i=t.length;n&amp;&amp;(e/=n);for(var a=0;a&lt;i;a++)t[a]*=r[a]/e}}},{}],1117:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram/attributes&quot;),i=t(&quot;../histogram/bin_attributes&quot;),a=t(&quot;../heatmap/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=u({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{color:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(&quot;x&quot;),nbinsy:n.nbinsy,ybins:i(&quot;y&quot;),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:u({},n.bingroup,{}),xbingroup:u({},n.bingroup,{}),ybingroup:u({},n.bingroup,{}),xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,xhoverformat:s(&quot;x&quot;),yhoverformat:s(&quot;y&quot;),zhoverformat:s(&quot;z&quot;,1),hovertemplate:l({},{keys:&quot;z&quot;}),showlegend:u({},o.showlegend,{dflt:!1})},c(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../heatmap/attributes&quot;:1085,&quot;../histogram/attributes&quot;:1104,&quot;../histogram/bin_attributes&quot;:1106}],1118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../histogram/bin_functions&quot;),o=t(&quot;../histogram/norm_functions&quot;),s=t(&quot;../histogram/average&quot;),l=t(&quot;../histogram/bin_label_vals&quot;),c=t(&quot;../histogram/calc&quot;).calcAllAutoBins;function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i&lt;t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i&lt;t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s),u=l(r,n,t,i,a);for(o=0;o&lt;s;o++){var f=(e||[])[o];c[o]=void 0===f?[u(t[o]),u(t[o+1],!0)]:[f,f]}return c}e.exports=function(t,e){var r,l,p,d,g=i.getFromId(t,e.xaxis),m=i.getFromId(t,e.yaxis),v=e.xcalendar,y=e.ycalendar,x=function(t){return g.r2c(t,0,v)},b=function(t){return m.r2c(t,0,y)},_=c(t,e,g,&quot;x&quot;),w=_[0],T=_[1],k=c(t,e,m,&quot;y&quot;),A=k[0],M=k[1],S=e._length;T.length&gt;S&amp;&amp;T.splice(S,T.length-S),M.length&gt;S&amp;&amp;M.splice(S,M.length-S);var E=[],L=[],C=[],P=&quot;string&quot;==typeof w.size,I=&quot;string&quot;==typeof A.size,O=[],z=[],D=P?O:w,R=I?z:A,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf(&quot;density&quot;),q=&quot;max&quot;===U||&quot;min&quot;===U?null:0,H=a.count,G=o[j],Y=!1,W=[],X=[],Z=&quot;z&quot;in e?e.z:&quot;marker&quot;in e&amp;&amp;Array.isArray(e.marker.color)?e.marker.color:&quot;&quot;;Z&amp;&amp;&quot;count&quot;!==U&amp;&amp;(Y=&quot;avg&quot;===U,H=a[U]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-i.tickIncrement(K,J,!1,v))/1e6;for(r=K;r&lt;Q;r=i.tickIncrement(r,J,!1,v))L.push(q),O.push(r),Y&amp;&amp;C.push(0);O.push(r);var $,tt=L.length,et=(r-K)/tt,rt=($=K+et/2,g.c2r($,0,v)),nt=A.size,it=b(A.start),at=b(A.end)+(it-i.tickIncrement(it,nt,!1,y))/1e6;for(r=it;r&lt;at;r=i.tickIncrement(r,nt,!1,y)){E.push(L.slice()),z.push(r);var ot=new Array(tt);for(l=0;l&lt;tt;l++)ot[l]=[];N.push(ot),Y&amp;&amp;B.push(C.slice())}z.push(r);var st=E.length,lt=(r-it)/st,ct=function(t){return m.c2r(t,0,y)}(it+lt/2);V&amp;&amp;(W=u(L.length,D,et,P),X=u(E.length,R,lt,I)),P||&quot;date&quot;!==g.type||(D=f(x,D)),I||&quot;date&quot;!==m.type||(R=f(b,R));var ut=!0,ft=!0,ht=new Array(tt),pt=new Array(st),dt=1/0,gt=1/0,mt=1/0,vt=1/0;for(r=0;r&lt;S;r++){var yt=T[r],xt=M[r];p=n.findBin(yt,D),d=n.findBin(xt,R),p&gt;=0&amp;&amp;p&lt;tt&amp;&amp;d&gt;=0&amp;&amp;d&lt;st&amp;&amp;(F+=H(p,r,E[d],Z,B[d]),N[d][p].push(r),ut&amp;&amp;(void 0===ht[p]?ht[p]=yt:ht[p]!==yt&amp;&amp;(ut=!1)),ft&amp;&amp;(void 0===pt[d]?pt[d]=xt:pt[d]!==xt&amp;&amp;(ft=!1)),dt=Math.min(dt,yt-O[p]),gt=Math.min(gt,O[p+1]-yt),mt=Math.min(mt,xt-z[d]),vt=Math.min(vt,z[d+1]-xt))}if(Y)for(d=0;d&lt;st;d++)F+=s(E[d],B[d]);if(G)for(d=0;d&lt;st;d++)G(E[d],F,W,X[d]);return{x:T,xRanges:h(O,ut&amp;&amp;ht,dt,gt,g,v),x0:rt,dx:et,y:M,yRanges:h(z,ft&amp;&amp;pt,mt,vt,m,y),y0:ct,dy:lt,z:E,pts:N}}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../histogram/average&quot;:1105,&quot;../histogram/bin_functions&quot;:1107,&quot;../histogram/bin_label_vals&quot;:1108,&quot;../histogram/calc&quot;:1109,&quot;../histogram/norm_functions&quot;:1116}],1119:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./sample_defaults&quot;),a=t(&quot;../heatmap/style_defaults&quot;),o=t(&quot;../../components/colorscale/defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,l),o(t,e,l,c,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),c(&quot;hovertemplate&quot;),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;))}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../heatmap/style_defaults&quot;:1098,&quot;./attributes&quot;:1117,&quot;./sample_defaults&quot;:1122}],1120:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/hover&quot;),i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o){var s=n(t,e,r,a,o);if(s){var l=(t=s[0]).index,c=l[0],u=l[1],f=t.cd[0],h=f.trace,p=f.xRanges[u],d=f.yRanges[c];return t.xLabel=i(t.xa,[p[0],p[1]],h.xhoverformat),t.yLabel=i(t.ya,[d[0],d[1]],h.yhoverformat),s}}},{&quot;../../plots/cartesian/axes&quot;:854,&quot;../heatmap/hover&quot;:1092}],1121:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;../heatmap/plot&quot;),layerName:&quot;heatmaplayer&quot;,colorbar:t(&quot;../heatmap/colorbar&quot;),style:t(&quot;../heatmap/style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;../histogram/event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2d&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../heatmap/calc&quot;:1086,&quot;../heatmap/colorbar&quot;:1088,&quot;../heatmap/plot&quot;:1096,&quot;../heatmap/style&quot;:1097,&quot;../histogram/cross_trace_defaults&quot;:1111,&quot;../histogram/event_data&quot;:1113,&quot;./attributes&quot;:1117,&quot;./defaults&quot;:1119,&quot;./hover&quot;:1120}],1122:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=i.minRowLength(o),c=i.minRowLength(s);l&amp;&amp;c?(e._length=Math.min(l,c),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a),(r(&quot;z&quot;)||r(&quot;marker.color&quot;))&amp;&amp;r(&quot;histfunc&quot;),r(&quot;histnorm&quot;),r(&quot;autobinx&quot;),r(&quot;autobiny&quot;)):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],1123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram2d/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:{color:i.line.color,width:s({},i.line.width,{dflt:.5}),dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),zhoverformat:o(&quot;z&quot;,1),hovertemplate:n.hovertemplate},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../contour/attributes&quot;:1028,&quot;../histogram2d/attributes&quot;:1117}],1124:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../histogram2d/sample_defaults&quot;),a=t(&quot;../contour/contours_defaults&quot;),o=t(&quot;../contour/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,(function(r){return n.coerce2(t,e,s,r)})),o(t,e,c,l),c(&quot;hovertemplate&quot;),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;))}},{&quot;../../lib&quot;:803,&quot;../contour/contours_defaults&quot;:1035,&quot;../contour/style_defaults&quot;:1049,&quot;../histogram2d/sample_defaults&quot;:1122,&quot;./attributes&quot;:1123}],1125:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../contour/calc&quot;),plot:t(&quot;../contour/plot&quot;).plot,layerName:&quot;contourlayer&quot;,style:t(&quot;../contour/style&quot;),colorbar:t(&quot;../contour/colorbar&quot;),hoverPoints:t(&quot;../contour/hover&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2dcontour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../contour/calc&quot;:1029,&quot;../contour/colorbar&quot;:1031,&quot;../contour/hover&quot;:1041,&quot;../contour/plot&quot;:1046,&quot;../contour/style&quot;:1048,&quot;../histogram/cross_trace_defaults&quot;:1111,&quot;./attributes&quot;:1123,&quot;./defaults&quot;:1124}],1126:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;../treemap/attributes&quot;),u=t(&quot;../treemap/constants&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;plot&quot;},flip:c.tiling.flip,pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:f({colors:l.marker.colors,line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:l.leaf,pathbar:c.pathbar,text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:u.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:u.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:c.outsidetextfont,textposition:c.textposition,sort:s.sort,root:l.root,domain:o({name:&quot;icicle&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/domain&quot;:882,&quot;../../plots/template_attributes&quot;:926,&quot;../pie/attributes&quot;:1192,&quot;../sunburst/attributes&quot;:1330,&quot;../treemap/attributes&quot;:1356,&quot;../treemap/constants&quot;:1359}],1127:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;icicle&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;icicle&quot;,t)}},{&quot;../sunburst/calc&quot;:1332}],1129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var g=h(&quot;values&quot;);g&amp;&amp;g.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),h(&quot;tiling.orientation&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var m=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;),h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor),h(&quot;marker.colors&quot;);var y=e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;y&amp;&amp;f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),h(&quot;leaf.opacity&quot;,y?1:.7),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;../bar/constants&quot;:943,&quot;../bar/defaults&quot;:945,&quot;./attributes&quot;:1126}],1130:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;../treemap/constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var g=d.width,m=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,A=d.makeUpdateTextInterpolator,M=d.prevEntry,S=t._fullLayout,E=e[0].trace,L=-1!==E.textposition.indexOf(&quot;left&quot;),C=-1!==E.textposition.indexOf(&quot;right&quot;),P=-1!==E.textposition.indexOf(&quot;bottom&quot;),I=s(r,[g,m],{flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,orientation:E.tiling.orientation,pad:{inner:E.tiling.pad},maxDepth:E._maxDepth}).descendants(),O=1/0,z=-1/0;I.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(O=Math.min(O,e),z=Math.max(z,e))})),p=p.data(I,u.getPtId),E._maxVisibleLayers=isFinite(z)?z-O+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[g,m],x),p.order();var D=null;if(w&amp;&amp;M){var R=u.getPtId(M);p.each((function(t){null===D&amp;&amp;u.getPtId(t)===R&amp;&amp;(D={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var F=function(){return D||{x0:0,x1:g,y0:0,y1:m}},B=p;return w&amp;&amp;(B=B.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),B.each((function(s){s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-E.tiling.pad),s._hoverY=y(P?s.y1-E.tiling.pad/2:s.y0+E.tiling.pad/2);var p=n.select(this),d=i.ensureSingle(p,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?d.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,F(),[g,m],{orientation:E.tiling.orientation,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1});return function(t){return x(e(t))}})):d.attr(&quot;d&quot;,x),p.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),d.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=h(s,r,E,e,S)||&quot;&quot;;var T=i.ensureSingle(p,&quot;g&quot;,&quot;slicetext&quot;),M=i.ensureSingle(T,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),I=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));M.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,C?&quot;end&quot;:L?&quot;start&quot;:&quot;middle&quot;).call(a.font,I).call(o.convertToTspans,t),s.textBB=a.bBox(M.node()),s.transform=b(s,{fontSize:I.size}),s.transform.fontSize=I.size,w?M.transition().attrTween(&quot;transform&quot;,(function(t){var e=A(t,!1,F(),[g,m]);return function(t){return _(e(t))}})):M.attr(&quot;transform&quot;,_(s))})),D}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../sunburst/fx&quot;:1335,&quot;../sunburst/helpers&quot;:1336,&quot;../sunburst/plot&quot;:1340,&quot;../treemap/constants&quot;:1359,&quot;./partition&quot;:1134,&quot;./style&quot;:1136,&quot;@plotly/d3&quot;:58}],1131:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;icicle&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1126,&quot;./base_plot&quot;:1127,&quot;./calc&quot;:1128,&quot;./defaults&quot;:1129,&quot;./layout_attributes&quot;:1132,&quot;./layout_defaults&quot;:1133,&quot;./plot&quot;:1135,&quot;./style&quot;:1136}],1132:[function(t,e,r){&quot;use strict&quot;;e.exports={iciclecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendiciclecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1133:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;iciclecolorway&quot;,e.colorway),r(&quot;extendiciclecolors&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1132}],1134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;../treemap/flip_tree&quot;);e.exports=function(t,e,r){var a=r.flipX,o=r.flipY,s=&quot;h&quot;===r.orientation,l=r.maxDepth,c=e[0],u=e[1];l&amp;&amp;(c=(t.height+1)*e[0]/Math.min(t.height+1,l),u=(t.height+1)*e[1]/Math.min(t.height+1,l));var f=n.partition().padding(r.pad.inner).size(s?[e[1],c]:[e[0],u])(t);return(s||a||o)&amp;&amp;i(f,e,{swapXY:s,flipX:a,flipY:o}),f}},{&quot;../treemap/flip_tree&quot;:1364,&quot;d3-hierarchy&quot;:170}],1135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../treemap/draw&quot;),i=t(&quot;./draw_descendants&quot;);e.exports=function(t,e,r,a){return n(t,e,r,a,{type:&quot;icicle&quot;,drawDescendants:i})}},{&quot;../treemap/draw&quot;:1361,&quot;./draw_descendants&quot;:1130}],1136:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._iciclelayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;icicle&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1137:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;./constants&quot;).colormodel,s=[&quot;rgb&quot;,&quot;rgba&quot;,&quot;rgba256&quot;,&quot;hsl&quot;,&quot;hsla&quot;],l=[],c=[],u=0;u&lt;s.length;u++){var f=o[s[u]];l.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zminDflt||f.min).join(&quot;, &quot;)+&quot;].&quot;),c.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zmaxDflt||f.max).join(&quot;, &quot;)+&quot;].&quot;)}e.exports=a({source:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},colormodel:{valType:&quot;enumerated&quot;,values:s,editType:&quot;calc&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:!1,editType:&quot;plot&quot;},zmin:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},zmax:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hoverinfo:a({},n.hoverinfo,{flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;color&quot;,&quot;name&quot;,&quot;text&quot;],dflt:&quot;x+y+z+text+name&quot;}),hovertemplate:i({},{keys:[&quot;z&quot;,&quot;color&quot;,&quot;colormodel&quot;]}),transforms:void 0})},{&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;./constants&quot;:1139}],1138:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../lib&quot;).maxRowLength,l=t(&quot;./helpers&quot;).getImageSize;function c(t,e,r,i){return function(a){return n.constrain((a-t)*e,r,i)}}function u(t,e){return function(r){return n.constrain(r,t,e)}}e.exports=function(t,e){var r,n;if(e._hasZ)r=e.z.length,n=s(e.z);else if(e._hasSource){var f=l(e.source);r=f.height,n=f.width}var h,p=o.getFromId(t,e.xaxis||&quot;x&quot;),d=o.getFromId(t,e.yaxis||&quot;y&quot;),g=p.d2c(e.x0)-e.dx/2,m=d.d2c(e.y0)-e.dy/2,v=[g,g+n*e.dx],y=[m,m+r*e.dy];if(p&amp;&amp;&quot;log&quot;===p.type)for(h=0;h&lt;n;h++)v.push(g+h*e.dx);if(d&amp;&amp;&quot;log&quot;===d.type)for(h=0;h&lt;r;h++)y.push(m+h*e.dy);return e._extremes[p._id]=o.findExtremes(p,v),e._extremes[d._id]=o.findExtremes(d,y),e._scaler=function(t){var e=i.colormodel[t.colormodel],r=(e.colormodel||t.colormodel).length;t._sArray=[];for(var n=0;n&lt;r;n++)e.min[n]!==t.zmin[n]||e.max[n]!==t.zmax[n]?t._sArray.push(c(t.zmin[n],(e.max[n]-e.min[n])/(t.zmax[n]-t.zmin[n]),e.min[n],e.max[n])):t._sArray.push(u(e.min[n],e.max[n]));return function(e){for(var n=e.slice(0,r),i=0;i&lt;r;i++){var o=n[i];if(!a(o))return!1;n[i]=t._sArray[i](o)}return n}}(e),[{x0:g,y0:m,z:e.z,w:n,h:r}]}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;./constants&quot;:1139,&quot;./helpers&quot;:1142,&quot;fast-isnumeric&quot;:249}],1139:[function(t,e,r){&quot;use strict&quot;;e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(t){return t.slice(0,3)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba256:{colormodel:&quot;rgba&quot;,zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(t){var e=t.slice(0,3);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(t){var e=t.slice(0,4);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;,&quot;&quot;]}},pixelatedStyle:[&quot;image-rendering: optimizeSpeed&quot;,&quot;image-rendering: -moz-crisp-edges&quot;,&quot;image-rendering: -o-crisp-edges&quot;,&quot;image-rendering: -webkit-optimize-contrast&quot;,&quot;image-rendering: optimize-contrast&quot;,&quot;image-rendering: crisp-edges&quot;,&quot;image-rendering: pixelated&quot;,&quot;&quot;].join(&quot;; &quot;)}},{}],1140:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX;e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;source&quot;),e.source&amp;&amp;!e.source.match(o)&amp;&amp;delete e.source,e._hasSource=!!e.source;var s,l=r(&quot;z&quot;);(e._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),e._hasZ||e._hasSource)?(r(&quot;x0&quot;),r(&quot;y0&quot;),r(&quot;dx&quot;),r(&quot;dy&quot;),e._hasZ?(r(&quot;colormodel&quot;,&quot;rgb&quot;),r(&quot;zmin&quot;,(s=a.colormodel[e.colormodel]).zminDflt||s.min),r(&quot;zmax&quot;,s.zmaxDflt||s.max)):e._hasSource&amp;&amp;(e.colormodel=&quot;rgba256&quot;,s=a.colormodel[e.colormodel],e.zmin=s.zminDflt,e.zmax=s.zmaxDflt),r(&quot;zsmooth&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;),r(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../snapshot/helpers&quot;:935,&quot;./attributes&quot;:1137,&quot;./constants&quot;:1139}],1141:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t.color=e.color,t.colormodel=e.trace.colormodel,t.z||(t.z=e.color),t}},{}],1142:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;probe-image-size/sync&quot;),i=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX,a=t(&quot;buffer/&quot;).Buffer;r.getImageSize=function(t){var e=t.replace(i,&quot;&quot;),r=new a(e,&quot;base64&quot;);return n(r)}},{&quot;../../snapshot/helpers&quot;:935,&quot;buffer/&quot;:117,&quot;probe-image-size/sync&quot;:527}],1143:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./constants&quot;);e.exports=function(t,e,r){var o=t.cd[0],s=o.trace,l=t.xa,c=t.ya;if(!(n.inbox(e-o.x0,e-(o.x0+o.w*s.dx),0)&gt;0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)&gt;0)){var u,f=Math.floor((e-o.x0)/s.dx),h=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[h][f]:s._hasSource&amp;&amp;(u=s._canvas.el.getContext(&quot;2d&quot;).getImageData(f,h,1,1).data),u){var p,d=o.hi||s.hoverinfo;if(d){var g=d.split(&quot;+&quot;);-1!==g.indexOf(&quot;all&quot;)&amp;&amp;(g=[&quot;color&quot;]),-1!==g.indexOf(&quot;color&quot;)&amp;&amp;(p=!0)}var m,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||p)&amp;&amp;(w.push(&quot;[&quot;+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(&quot;, &quot;)),4===x&amp;&amp;w.push(&quot;, &quot;+b[3]+_[3]),w.push(&quot;]&quot;),w=w.join(&quot;&quot;),t.extraText=y.toUpperCase()+&quot;: &quot;+w),Array.isArray(s.hovertext)&amp;&amp;Array.isArray(s.hovertext[h])?m=s.hovertext[h][f]:Array.isArray(s.text)&amp;&amp;Array.isArray(s.text[h])&amp;&amp;(m=s.text[h][f]);var T=c.c2p(o.y0+(h+.5)*s.dy),k=o.x0+(f+.5)*s.dx,A=o.y0+(h+.5)*s.dy,M=&quot;[&quot;+u.slice(0,s.colormodel.length).join(&quot;, &quot;)+&quot;]&quot;;return[i.extendFlat(t,{index:[h,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:A,yLabelVal:A,zLabelVal:M,text:m,hovertemplateLabels:{zLabel:M,colorLabel:w,&quot;color[0]Label&quot;:b[0]+_[0],&quot;color[1]Label&quot;:b[1]+_[1],&quot;color[2]Label&quot;:b[2]+_[2],&quot;color[3]Label&quot;:b[3]+_[3]}})]}}}},{&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;./constants&quot;:1139}],1144:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;image&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;noSortingByValue&quot;],animatable:!1,meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:1137,&quot;./calc&quot;:1138,&quot;./defaults&quot;:1140,&quot;./event_data&quot;:1141,&quot;./hover&quot;:1143,&quot;./plot&quot;:1145,&quot;./style&quot;:1146}],1145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;./constants&quot;),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,h=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,&quot;im&quot;).each((function(e){var r=n.select(this),l=e[0],c=l.trace,p=(&quot;fast&quot;===c.zsmooth||!1===c.zsmooth&amp;&amp;h)&amp;&amp;!c._hasZ&amp;&amp;c._hasSource&amp;&amp;&quot;linear&quot;===u.type&amp;&amp;&quot;linear&quot;===f.type;c._realImage=p;var d,g,m,v,y,x,b=l.z,_=l.x0,w=l.y0,T=l.w,k=l.h,A=c.dx,M=c.dy;for(x=0;void 0===d&amp;&amp;x&lt;T;)d=u.c2p(_+x*A),x++;for(x=T;void 0===g&amp;&amp;x&gt;0;)g=u.c2p(_+x*A),x--;for(x=0;void 0===v&amp;&amp;x&lt;k;)v=f.c2p(w+x*M),x++;for(x=k;void 0===y&amp;&amp;x&gt;0;)y=f.c2p(w+x*M),x--;if(g&lt;d&amp;&amp;(m=g,g=d,d=m),y&lt;v&amp;&amp;(m=v,v=y,y=m),!p){d=Math.max(-.5*u._length,d),g=Math.min(1.5*u._length,g),v=Math.max(-.5*f._length,v),y=Math.min(1.5*f._length,y)}var S=Math.round(g-d),E=Math.round(y-v);if(S&lt;=0||E&lt;=0){r.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var L=r.selectAll(&quot;image&quot;).data([e]);L.enter().append(&quot;svg:image&quot;).attr({xmlns:o.svg,preserveAspectRatio:&quot;none&quot;}),L.exit().remove();var C=!1===c.zsmooth?s.pixelatedStyle:&quot;&quot;;if(p){var P=i.simpleMap(u.range,u.r2l),I=i.simpleMap(f.range,f.r2l),O=P[1]&lt;P[0],z=I[1]&gt;I[0];if(O||z){var D=d+S/2,R=v+E/2;C+=&quot;transform:&quot;+a(D+&quot;px&quot;,R+&quot;px&quot;)+&quot;scale(&quot;+(O?-1:1)+&quot;,&quot;+(z?-1:1)+&quot;)&quot;+a(-D+&quot;px&quot;,-R+&quot;px&quot;)+&quot;;&quot;}}L.attr(&quot;style&quot;,C);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&amp;&amp;c._canvas.el.width===T&amp;&amp;c._canvas.el.height===k&amp;&amp;c._canvas.source===c.source)t();else{var e=document.createElement(&quot;canvas&quot;);e.width=T,e.height=k;var r=e.getContext(&quot;2d&quot;);c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute(&quot;src&quot;,c.source)}})).then((function(){var t;if(c._hasZ)t=B((function(t,e){return b[e][t]})).toDataURL(&quot;image/png&quot;);else if(c._hasSource)if(p)t=c.source;else{var e=c._canvas.el.getContext(&quot;2d&quot;).getImageData(0,0,T,k).data;t=B((function(t,r){var n=4*(r*T+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL(&quot;image/png&quot;)}L.attr({&quot;xlink:href&quot;:t,height:E,width:S,x:d,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement(&quot;canvas&quot;);e.width=S,e.height=E;var r,n=e.getContext(&quot;2d&quot;),a=function(t){return i.constrain(Math.round(u.c2p(_+t*A)-d),0,S)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*M)-v),0,E)},h=s.colormodel[c.colormodel],p=h.colormodel||c.colormodel,g=h.fmt;for(x=0;x&lt;l.w;x++){var m=a(x),y=a(x+1);if(y!==m&amp;&amp;!isNaN(y)&amp;&amp;!isNaN(m))for(var b=0;b&lt;l.h;b++){var T=o(b),k=o(b+1);k===T||isNaN(k)||isNaN(T)||!t(x,b)||(r=c._scaler(t(x,b)),n.fillStyle=r?p+&quot;(&quot;+g(r).join(&quot;,&quot;)+&quot;)&quot;:&quot;rgba(0,0,0,0)&quot;,n.fillRect(m,T,y-m,k-T))}}return e}}))}},{&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../lib&quot;:803,&quot;./constants&quot;:1139,&quot;@plotly/d3&quot;:58}],1146:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.im image&quot;).style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity}))}},{&quot;@plotly/d3&quot;:58}],1147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../lib/extend&quot;).extendDeep,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/color/attributes&quot;),l=t(&quot;../../plots/domain&quot;).attributes,c=t(&quot;../../plots/cartesian/layout_attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../constants/delta.js&quot;),h=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionOnlyNumbers,p=o({editType:&quot;plot&quot;,colorEditType:&quot;plot&quot;}),d={color:{valType:&quot;color&quot;,editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},thickness:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;plot&quot;},editType:&quot;calc&quot;},g={valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},m=u(&quot;step&quot;,i({},d,{range:g}));e.exports={mode:{valType:&quot;flaglist&quot;,editType:&quot;calc&quot;,flags:[&quot;number&quot;,&quot;delta&quot;,&quot;gauge&quot;],dflt:&quot;number&quot;},value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,anim:!0},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},domain:l({name:&quot;indicator&quot;,trace:!0,editType:&quot;calc&quot;}),title:{text:{valType:&quot;string&quot;,editType:&quot;plot&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},font:n({},p,{}),editType:&quot;plot&quot;},number:{valueformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;,description:h(&quot;value&quot;)},font:n({},p,{}),prefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},suffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;},delta:{reference:{valType:&quot;number&quot;,editType:&quot;calc&quot;},position:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},relative:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;,dflt:!1},valueformat:{valType:&quot;string&quot;,editType:&quot;plot&quot;,description:h(&quot;value&quot;)},increasing:{symbol:{valType:&quot;string&quot;,dflt:f.INCREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.INCREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},decreasing:{symbol:{valType:&quot;string&quot;,dflt:f.DECREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.DECREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},font:n({},p,{}),editType:&quot;calc&quot;},gauge:{shape:{valType:&quot;enumerated&quot;,editType:&quot;plot&quot;,dflt:&quot;angular&quot;,values:[&quot;angular&quot;,&quot;bullet&quot;]},bar:i({},d,{color:{dflt:&quot;green&quot;}}),bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},axis:a({range:g,visible:n({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:n({},c.ticks,{dflt:&quot;outside&quot;}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:&quot;plot&quot;},&quot;plot&quot;),steps:m,threshold:{line:{color:n({},d.line.color,{}),width:n({},d.line.width,{dflt:1}),editType:&quot;plot&quot;},thickness:n({},d.thickness,{dflt:.85}),value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:!1},editType:&quot;plot&quot;},editType:&quot;plot&quot;}}},{&quot;../../components/color/attributes&quot;:665,&quot;../../constants/delta.js&quot;:773,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883}],1148:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;indicator&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1149:[function(t,e,r){&quot;use strict&quot;;e.exports={calc:function(t,e){var r=[],n=e.value;&quot;number&quot;!=typeof e._lastValue&amp;&amp;(e._lastValue=e.value);var i=e._lastValue,a=i;return e._hasDelta&amp;&amp;&quot;number&quot;==typeof e.delta.reference&amp;&amp;(a=e.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}}},{}],1150:[function(t,e,r){&quot;use strict&quot;;e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},{}],1151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./constants.js&quot;),c=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),u=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),f=t(&quot;../../plots/cartesian/tick_label_defaults&quot;);function h(t,e){function r(r,a){return n.coerce(t,e,i.gauge.steps,r,a)}r(&quot;color&quot;),r(&quot;line.color&quot;),r(&quot;line.width&quot;),r(&quot;range&quot;),r(&quot;thickness&quot;)}e.exports={supplyDefaults:function(t,e,r,p){function d(r,a){return n.coerce(t,e,i,r,a)}a(e,p,d),d(&quot;mode&quot;),e._hasNumber=-1!==e.mode.indexOf(&quot;number&quot;),e._hasDelta=-1!==e.mode.indexOf(&quot;delta&quot;),e._hasGauge=-1!==e.mode.indexOf(&quot;gauge&quot;);var g=d(&quot;value&quot;);e._range=[0,&quot;number&quot;==typeof g?1.5*g:1];var m,v,y,x,b,_,w=new Array(2);function T(t,e){return n.coerce(y,x,i.gauge,t,e)}function k(t,e){return n.coerce(b,_,i.gauge.axis,t,e)}if(e._hasNumber&amp;&amp;(d(&quot;number.valueformat&quot;),d(&quot;number.font.color&quot;,p.font.color),d(&quot;number.font.family&quot;,p.font.family),d(&quot;number.font.size&quot;),void 0===e.number.font.size&amp;&amp;(e.number.font.size=l.defaultNumberFontSize,w[0]=!0),d(&quot;number.prefix&quot;),d(&quot;number.suffix&quot;),m=e.number.font.size),e._hasDelta&amp;&amp;(d(&quot;delta.font.color&quot;,p.font.color),d(&quot;delta.font.family&quot;,p.font.family),d(&quot;delta.font.size&quot;),void 0===e.delta.font.size&amp;&amp;(e.delta.font.size=(e._hasNumber?.5:1)*(m||l.defaultNumberFontSize),w[1]=!0),d(&quot;delta.reference&quot;,e.value),d(&quot;delta.relative&quot;),d(&quot;delta.valueformat&quot;,e.delta.relative?&quot;2%&quot;:&quot;&quot;),d(&quot;delta.increasing.symbol&quot;),d(&quot;delta.increasing.color&quot;),d(&quot;delta.decreasing.symbol&quot;),d(&quot;delta.decreasing.color&quot;),d(&quot;delta.position&quot;),v=e.delta.font.size),e._scaleNumbers=(!e._hasNumber||w[0])&amp;&amp;(!e._hasDelta||w[1])||!1,d(&quot;title.font.color&quot;,p.font.color),d(&quot;title.font.family&quot;,p.font.family),d(&quot;title.font.size&quot;,.25*(m||v||l.defaultNumberFontSize)),d(&quot;title.text&quot;),e._hasGauge){(y=t.gauge)||(y={}),x=o.newContainer(e,&quot;gauge&quot;),T(&quot;shape&quot;),(e._isBullet=&quot;bullet&quot;===e.gauge.shape)||d(&quot;title.align&quot;,&quot;center&quot;),(e._isAngular=&quot;angular&quot;===e.gauge.shape)||d(&quot;align&quot;,&quot;center&quot;),T(&quot;bgcolor&quot;,p.paper_bgcolor),T(&quot;borderwidth&quot;),T(&quot;bordercolor&quot;),T(&quot;bar.color&quot;),T(&quot;bar.line.color&quot;),T(&quot;bar.line.width&quot;),T(&quot;bar.thickness&quot;,l.valueThickness*(&quot;bullet&quot;===e.gauge.shape?.5:1)),s(y,x,{name:&quot;steps&quot;,handleItemDefaults:h}),T(&quot;threshold.value&quot;),T(&quot;threshold.thickness&quot;),T(&quot;threshold.line.width&quot;),T(&quot;threshold.line.color&quot;),b={},y&amp;&amp;(b=y.axis||{}),_=o.newContainer(x,&quot;axis&quot;),k(&quot;visible&quot;),e._range=k(&quot;range&quot;,e._range);var A={outerTicks:!0};c(b,_,k,&quot;linear&quot;),f(b,_,k,&quot;linear&quot;,A),u(b,_,k,A)}else d(&quot;title.align&quot;,&quot;center&quot;),d(&quot;align&quot;,&quot;center&quot;),e._isAngular=e._isBullet=!1;e._length=null}}},{&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/tick_label_defaults&quot;:876,&quot;../../plots/cartesian/tick_mark_defaults&quot;:877,&quot;../../plots/cartesian/tick_value_defaults&quot;:878,&quot;../../plots/domain&quot;:882,&quot;./attributes&quot;:1147,&quot;./constants.js&quot;:1150}],1152:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;indicator&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;svg&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],animatable:!0,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),meta:{}}},{&quot;./attributes&quot;:1147,&quot;./base_plot&quot;:1148,&quot;./calc&quot;:1149,&quot;./defaults&quot;:1151,&quot;./plot&quot;:1153}],1153:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-interpolate&quot;).interpolate,a=t(&quot;d3-interpolate&quot;).interpolateNumber,o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strTranslate,c=o.rad2deg,u=t(&quot;../../constants/alignment&quot;).MID_SHIFT,f=t(&quot;../../components/drawing&quot;),h=t(&quot;./constants&quot;),p=t(&quot;../../lib/svg_text_utils&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../plots/cartesian/axis_defaults&quot;),m=t(&quot;../../plots/cartesian/position_defaults&quot;),v=t(&quot;../../plots/cartesian/layout_attributes&quot;),y=t(&quot;../../components/color&quot;),x={left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;},b={left:0,center:.5,right:1},_=/[yzafpn\xb5mkMGTPEZY]/;function w(t){return t&amp;&amp;t.duration&gt;0}function T(t){t.each((function(t){y.stroke(n.select(this),t.line.color)})).each((function(t){y.fill(n.select(this),t.color)})).style(&quot;stroke-width&quot;,(function(t){return t.line.width}))}function k(t,e,r){var n=t._fullLayout,i=o.extendFlat({type:&quot;linear&quot;,ticks:&quot;outside&quot;,range:r,showline:!0},e),a={type:&quot;linear&quot;,_id:&quot;x&quot;+e._id},s={letter:&quot;x&quot;,font:n.font,noHover:!0,noTickson:!0};function l(t,e){return o.coerce(i,a,v,t,e)}return g(i,a,l,s,n),m(i,a,l,s),a}function A(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+&quot;x&quot;+r]}function M(t,e,r,i){var a=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;text&quot;),o=n.select(a);return o.text(t).attr(&quot;x&quot;,0).attr(&quot;y&quot;,0).attr(&quot;text-anchor&quot;,r).attr(&quot;data-unformatted&quot;,t).call(p.convertToTspans,i).call(f.font,e),f.bBox(o.node())}function S(t,e,r,n,i,a){var s=&quot;_cache&quot;+e;t[s]&amp;&amp;t[s].key===i||(t[s]={key:i,value:r});var l=o.aggNums(a,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,g){var m,v=t._fullLayout;w(r)&amp;&amp;g&amp;&amp;(m=g()),o.makeTraceGroups(v._indicatorlayer,e,&quot;trace&quot;).each((function(e){var g,E,L,C,P,I=e[0].trace,O=n.select(this),z=I._hasGauge,D=I._isAngular,R=I._isBullet,F=I.domain,B={w:v._size.w*(F.x[1]-F.x[0]),h:v._size.h*(F.y[1]-F.y[0]),l:v._size.l+v._size.w*F.x[0],r:v._size.r+v._size.w*(1-F.x[1]),t:v._size.t+v._size.h*(1-F.y[1]),b:v._size.b+v._size.h*F.y[0]},N=B.l+B.w/2,j=B.t+B.h/2,U=Math.min(B.w/2,B.h),V=h.innerRadius*U,q=I.align||&quot;center&quot;;if(E=j,z){if(D&amp;&amp;(g=N,E=j+U/2,L=function(t){return function(t,e){var r=Math.sqrt(t.width/2*(t.width/2)+t.height*t.height);return[e/r,t,e]}(t,.9*V)}),R){var H=h.bulletPadding,G=1-h.bulletNumberDomainSize+H;g=B.l+(G+(1-G)*b[q])*B.w,L=function(t){return A(t,(h.bulletNumberDomainSize-H)*B.w,B.h)}}}else g=B.l+b[q]*B.w,L=function(t){return A(t,B.w,B.h)};!function(t,e,r,i){var c,u,h,g=r[0].trace,m=i.numbersX,v=i.numbersY,T=g.align||&quot;center&quot;,A=x[T],E=i.transitionOpts,L=i.onComplete,C=o.ensureSingle(e,&quot;g&quot;,&quot;numbers&quot;),P=[];g._hasNumber&amp;&amp;P.push(&quot;number&quot;);g._hasDelta&amp;&amp;(P.push(&quot;delta&quot;),&quot;left&quot;===g.delta.position&amp;&amp;P.reverse());var I=C.selectAll(&quot;text&quot;).data(P);function O(e,r,n,i){if(!e.match(&quot;s&quot;)||n&gt;=0==i&gt;=0||r(n).slice(-1).match(_)||r(i).slice(-1).match(_))return r;var a=e.slice().replace(&quot;s&quot;,&quot;f&quot;).replace(/\d+/,(function(t){return parseInt(t)-1})),o=k(t,{tickformat:a});return function(t){return Math.abs(t)&lt;1?d.tickText(o,t).text:r(t)}}I.enter().append(&quot;text&quot;),I.attr(&quot;text-anchor&quot;,(function(){return A})).attr(&quot;class&quot;,(function(t){return t})).attr(&quot;x&quot;,null).attr(&quot;y&quot;,null).attr(&quot;dx&quot;,null).attr(&quot;dy&quot;,null),I.exit().remove();var z,D=g.mode+g.align;g._hasDelta&amp;&amp;(z=function(){var e=k(t,{tickformat:g.delta.valueformat},g._range);e.setScale(),d.prepTicks(e);var i=function(t){return d.tickText(e,t).text},o=function(t){return g.delta.relative?t.relativeDelta:t.delta},s=function(t,e){return 0===t||&quot;number&quot;!=typeof t||isNaN(t)?&quot;-&quot;:(t&gt;0?g.delta.increasing.symbol:g.delta.decreasing.symbol)+e(t)},l=function(t){return t.delta&gt;=0?g.delta.increasing.color:g.delta.decreasing.color};void 0===g._deltaLastValue&amp;&amp;(g._deltaLastValue=o(r[0]));var c=C.select(&quot;text.delta&quot;);function h(){c.text(s(o(r[0]),i)).call(y.fill,l(r[0])).call(p.convertToTspans,t)}return c.call(f.font,g.delta.font).call(y.fill,l({delta:g._deltaLastValue})),w(E)?c.transition().duration(E.duration).ease(E.easing).tween(&quot;text&quot;,(function(){var t=n.select(this),e=o(r[0]),c=g._deltaLastValue,u=O(g.delta.valueformat,i,c,e),f=a(c,e);return g._deltaLastValue=e,function(e){t.text(s(f(e),u)),t.call(y.fill,l({delta:f(e)}))}})).each(&quot;end&quot;,(function(){h(),L&amp;&amp;L()})).each(&quot;interrupt&quot;,(function(){h(),L&amp;&amp;L()})):h(),u=M(s(o(r[0]),i),g.delta.font,A,t),c}(),D+=g.delta.position+g.delta.font.size+g.delta.font.family+g.delta.valueformat,D+=g.delta.increasing.symbol+g.delta.decreasing.symbol,h=u);g._hasNumber&amp;&amp;(!function(){var e=k(t,{tickformat:g.number.valueformat},g._range);e.setScale(),d.prepTicks(e);var i=function(t){return d.tickText(e,t).text},o=g.number.suffix,s=g.number.prefix,l=C.select(&quot;text.number&quot;);function u(){var e=&quot;number&quot;==typeof r[0].y?s+i(r[0].y)+o:&quot;-&quot;;l.text(e).call(f.font,g.number.font).call(p.convertToTspans,t)}w(E)?l.transition().duration(E.duration).ease(E.easing).each(&quot;end&quot;,(function(){u(),L&amp;&amp;L()})).each(&quot;interrupt&quot;,(function(){u(),L&amp;&amp;L()})).attrTween(&quot;text&quot;,(function(){var t=n.select(this),e=a(r[0].lastY,r[0].y);g._lastValue=r[0].y;var l=O(g.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(s+l(e(r))+o)}})):u(),c=M(s+i(r[0].y)+o,g.number.font,A,t)}(),D+=g.number.font.size+g.number.font.family+g.number.valueformat+g.number.suffix+g.number.prefix,h=c);if(g._hasDelta&amp;&amp;g._hasNumber){var R,F,B=[(c.left+c.right)/2,(c.top+c.bottom)/2],N=[(u.left+u.right)/2,(u.top+u.bottom)/2],j=.75*g.delta.font.size;&quot;left&quot;===g.delta.position&amp;&amp;(R=S(g,&quot;deltaPos&quot;,0,-1*(c.width*b[g.align]+u.width*(1-b[g.align])+j),D,Math.min),F=B[1]-N[1],h={width:c.width+u.width+j,height:Math.max(c.height,u.height),left:u.left+R,right:c.right,top:Math.min(c.top,u.top+F),bottom:Math.max(c.bottom,u.bottom+F)}),&quot;right&quot;===g.delta.position&amp;&amp;(R=S(g,&quot;deltaPos&quot;,0,c.width*(1-b[g.align])+u.width*b[g.align]+j,D,Math.max),F=B[1]-N[1],h={width:c.width+u.width+j,height:Math.max(c.height,u.height),left:c.left,right:u.right+R,top:Math.min(c.top,u.top+F),bottom:Math.max(c.bottom,u.bottom+F)}),&quot;bottom&quot;===g.delta.position&amp;&amp;(R=null,F=u.height,h={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height,bottom:c.bottom+u.height}),&quot;top&quot;===g.delta.position&amp;&amp;(R=null,F=c.top,h={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height-u.height,bottom:c.bottom}),z.attr({dx:R,dy:F})}(g._hasNumber||g._hasDelta)&amp;&amp;C.attr(&quot;transform&quot;,(function(){var t=i.numbersScaler(h);D+=t[2];var e,r=S(g,&quot;numbersScale&quot;,1,t[0],D,Math.min);g._scaleNumbers||(r=1),e=g._isAngular?v-r*h.bottom:v-r*(h.top+h.bottom)/2,g._numbersTop=r*h.top+e;var n=h[T];&quot;center&quot;===T&amp;&amp;(n=(h.left+h.right)/2);var a=m-r*n;return a=S(g,&quot;numbersTranslate&quot;,0,a,D,Math.max),l(a,e)+s(r)}))}(t,O,e,{numbersX:g,numbersY:E,numbersScaler:L,transitionOpts:r,onComplete:m}),z&amp;&amp;(C={range:I.gauge.axis.range,color:I.gauge.bgcolor,line:{color:I.gauge.bordercolor,width:0},thickness:1},P={range:I.gauge.axis.range,color:&quot;rgba(0, 0, 0, 0)&quot;,line:{color:I.gauge.bordercolor,width:I.gauge.borderwidth},thickness:1});var Y=O.selectAll(&quot;g.angular&quot;).data(D?e:[]);Y.exit().remove();var W=O.selectAll(&quot;g.angularaxis&quot;).data(D?e:[]);W.exit().remove(),D&amp;&amp;function(t,e,r,a){var o,s,f,h,p=r[0].trace,g=a.size,m=a.radius,v=a.innerRadius,y=a.gaugeBg,x=a.gaugeOutline,b=[g.l+g.w/2,g.t+g.h/2+m/2],_=a.gauge,A=a.layer,M=a.transitionOpts,S=a.onComplete,E=Math.PI/2;function L(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-E;return r&lt;-E?-E:r&gt;E?E:r}function C(t){return n.svg.arc().innerRadius((v+m)/2-t/2*(m-v)).outerRadius((v+m)/2+t/2*(m-v)).startAngle(-E)}function P(t){t.attr(&quot;d&quot;,(function(t){return C(t.thickness).startAngle(L(t.range[0])).endAngle(L(t.range[1]))()}))}_.enter().append(&quot;g&quot;).classed(&quot;angular&quot;,!0),_.attr(&quot;transform&quot;,l(b[0],b[1])),A.enter().append(&quot;g&quot;).classed(&quot;angularaxis&quot;,!0).classed(&quot;crisp&quot;,!0),A.selectAll(&quot;g.xangularaxistick,path,text&quot;).remove(),(o=k(t,p.gauge.axis)).type=&quot;linear&quot;,o.range=p.gauge.axis.range,o._id=&quot;xangularaxis&quot;,o.ticklabeloverflow=&quot;allow&quot;,o.setScale();var I=function(t){return(o.range[0]-t.x)/(o.range[1]-o.range[0])*Math.PI+Math.PI},O={},z=d.makeLabelFns(o,0).labelStandoff;O.xFn=function(t){var e=I(t);return Math.cos(e)*z},O.yFn=function(t){var e=I(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(z+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*u)},O.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},O.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var D=function(t){return l(b[0]+m*Math.cos(t),b[1]-m*Math.sin(t))};f=function(t){return D(I(t))};if(s=d.calcTicks(o),h=d.getTickSigns(o)[2],o.visible){h=&quot;inside&quot;===o.ticks?-1:1;var R=(o.linewidth||1)/2;d.drawTicks(t,o,{vals:s,layer:A,path:&quot;M&quot;+h*R+&quot;,0h&quot;+h*o.ticklen,transFn:function(t){var e=I(t);return D(e)+&quot;rotate(&quot;+-c(e)+&quot;)&quot;}}),d.drawLabels(t,o,{vals:s,layer:A,transFn:f,labelFns:O})}var F=[y].concat(p.gauge.steps),B=_.selectAll(&quot;g.bg-arc&quot;).data(F);B.enter().append(&quot;g&quot;).classed(&quot;bg-arc&quot;,!0).append(&quot;path&quot;),B.select(&quot;path&quot;).call(P).call(T),B.exit().remove();var N=C(p.gauge.bar.thickness),j=_.selectAll(&quot;g.value-arc&quot;).data([p.gauge.bar]);j.enter().append(&quot;g&quot;).classed(&quot;value-arc&quot;,!0).append(&quot;path&quot;);var U=j.select(&quot;path&quot;);w(M)?(U.transition().duration(M.duration).ease(M.easing).each(&quot;end&quot;,(function(){S&amp;&amp;S()})).each(&quot;interrupt&quot;,(function(){S&amp;&amp;S()})).attrTween(&quot;d&quot;,(V=N,q=L(r[0].lastY),H=L(r[0].y),function(){var t=i(q,H);return function(e){return V.endAngle(t(e))()}})),p._lastValue=r[0].y):U.attr(&quot;d&quot;,&quot;number&quot;==typeof r[0].y?N.endAngle(L(r[0].y)):&quot;M0,0Z&quot;);var V,q,H;U.call(T),j.exit().remove(),F=[];var G=p.gauge.threshold.value;(G||0===G)&amp;&amp;F.push({range:[G,G],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var Y=_.selectAll(&quot;g.threshold-arc&quot;).data(F);Y.enter().append(&quot;g&quot;).classed(&quot;threshold-arc&quot;,!0).append(&quot;path&quot;),Y.select(&quot;path&quot;).call(P).call(T),Y.exit().remove();var W=_.selectAll(&quot;g.gauge-outline&quot;).data([x]);W.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;path&quot;),W.select(&quot;path&quot;).call(P).call(T),W.exit().remove()}(t,0,e,{radius:U,innerRadius:V,gauge:Y,layer:W,size:B,gaugeBg:C,gaugeOutline:P,transitionOpts:r,onComplete:m});var X=O.selectAll(&quot;g.bullet&quot;).data(R?e:[]);X.exit().remove();var Z=O.selectAll(&quot;g.bulletaxis&quot;).data(R?e:[]);Z.exit().remove(),R&amp;&amp;function(t,e,r,n){var i,a,o,s,c,u=r[0].trace,f=n.gauge,p=n.layer,g=n.gaugeBg,m=n.gaugeOutline,v=n.size,x=u.domain,b=n.transitionOpts,_=n.onComplete;f.enter().append(&quot;g&quot;).classed(&quot;bullet&quot;,!0),f.attr(&quot;transform&quot;,l(v.l,v.t)),p.enter().append(&quot;g&quot;).classed(&quot;bulletaxis&quot;,!0).classed(&quot;crisp&quot;,!0),p.selectAll(&quot;g.xbulletaxistick,path,text&quot;).remove();var A=v.h,M=u.gauge.bar.thickness*A,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(u._hasNumber||u._hasDelta?1-h.bulletNumberDomainSize:1);(i=k(t,u.gauge.axis))._id=&quot;xbulletaxis&quot;,i.domain=[S,E],i.setScale(),a=d.calcTicks(i),o=d.makeTransTickFn(i),s=d.getTickSigns(i)[2],c=v.t+v.h,i.visible&amp;&amp;(d.drawTicks(t,i,{vals:&quot;inside&quot;===i.ticks?d.clipEnds(i,a):a,layer:p,path:d.makeTickPath(i,c,s),transFn:o}),d.drawLabels(t,i,{vals:a,layer:p,transFn:o,labelFns:d.makeLabelFns(i,c)}));function L(t){t.attr(&quot;width&quot;,(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr(&quot;x&quot;,(function(t){return i.c2p(t.range[0])})).attr(&quot;y&quot;,(function(t){return.5*(1-t.thickness)*A})).attr(&quot;height&quot;,(function(t){return t.thickness*A}))}var C=[g].concat(u.gauge.steps),P=f.selectAll(&quot;g.bg-bullet&quot;).data(C);P.enter().append(&quot;g&quot;).classed(&quot;bg-bullet&quot;,!0).append(&quot;rect&quot;),P.select(&quot;rect&quot;).call(L).call(T),P.exit().remove();var I=f.selectAll(&quot;g.value-bullet&quot;).data([u.gauge.bar]);I.enter().append(&quot;g&quot;).classed(&quot;value-bullet&quot;,!0).append(&quot;rect&quot;),I.select(&quot;rect&quot;).attr(&quot;height&quot;,M).attr(&quot;y&quot;,(A-M)/2).call(T),w(b)?I.select(&quot;rect&quot;).transition().duration(b.duration).ease(b.easing).each(&quot;end&quot;,(function(){_&amp;&amp;_()})).each(&quot;interrupt&quot;,(function(){_&amp;&amp;_()})).attr(&quot;width&quot;,Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y)))):I.select(&quot;rect&quot;).attr(&quot;width&quot;,&quot;number&quot;==typeof r[0].y?Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y))):0);I.exit().remove();var O=r.filter((function(){return u.gauge.threshold.value||0===u.gauge.threshold.value})),z=f.selectAll(&quot;g.threshold-bullet&quot;).data(O);z.enter().append(&quot;g&quot;).classed(&quot;threshold-bullet&quot;,!0).append(&quot;line&quot;),z.select(&quot;line&quot;).attr(&quot;x1&quot;,i.c2p(u.gauge.threshold.value)).attr(&quot;x2&quot;,i.c2p(u.gauge.threshold.value)).attr(&quot;y1&quot;,(1-u.gauge.threshold.thickness)/2*A).attr(&quot;y2&quot;,(1-(1-u.gauge.threshold.thickness)/2)*A).call(y.stroke,u.gauge.threshold.line.color).style(&quot;stroke-width&quot;,u.gauge.threshold.line.width),z.exit().remove();var D=f.selectAll(&quot;g.gauge-outline&quot;).data([m]);D.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;rect&quot;),D.select(&quot;rect&quot;).call(L).call(T),D.exit().remove()}(t,0,e,{gauge:X,layer:Z,size:B,gaugeBg:C,gaugeOutline:P,transitionOpts:r,onComplete:m});var J=O.selectAll(&quot;text.title&quot;).data(e);J.exit().remove(),J.enter().append(&quot;text&quot;).classed(&quot;title&quot;,!0),J.attr(&quot;text-anchor&quot;,(function(){return R?x.right:x[I.title.align]})).text(I.title.text).call(f.font,I.title.font).call(p.convertToTspans,t),J.attr(&quot;transform&quot;,(function(){var t,e=B.l+B.w*b[I.title.align],r=h.titlePadding,n=f.bBox(J.node());if(z){if(D)if(I.gauge.axis.visible)t=f.bBox(W.node()).top-r-n.bottom;else t=B.t+B.h/2-U/2-n.bottom-r;R&amp;&amp;(t=E-(n.top+n.bottom)/2,e=B.l-h.bulletPadding*B.w)}else t=I._numbersTop-r-n.bottom;return l(e,t)}))}))}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/axis_defaults&quot;:856,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/cartesian/position_defaults&quot;:872,&quot;./constants&quot;:1150,&quot;@plotly/d3&quot;:58,&quot;d3-interpolate&quot;:171}],1154:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../mesh3d/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../plot_api/edit_types&quot;).overrideAll;var u=e.exports=c(l({x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},z:{valType:&quot;data_array&quot;},value:{valType:&quot;data_array&quot;},isomin:{valType:&quot;number&quot;},isomax:{valType:&quot;number&quot;},surface:{show:{valType:&quot;boolean&quot;,dflt:!0},count:{valType:&quot;integer&quot;,dflt:2,min:1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1},pattern:{valType:&quot;flaglist&quot;,flags:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;],extras:[&quot;all&quot;,&quot;odd&quot;,&quot;even&quot;],dflt:&quot;all&quot;}},spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:.15}},slices:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},caps:{x:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:a(),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),valuehoverformat:i(&quot;value&quot;,1),showlegend:l({},s.showlegend,{dflt:!1})},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:o.opacity,lightposition:o.lightposition,lighting:o.lighting,flatshading:o.flatshading,contour:o.contour,hoverinfo:l({},s.hoverinfo)}),&quot;calc&quot;,&quot;nested&quot;);u.flatshading.dflt=!0,u.lighting.facenormalsepsilon.dflt=0,u.x.editType=u.y.editType=u.z.editType=u.value.editType=&quot;calc+clearAxisTypes&quot;,u.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../mesh3d/attributes&quot;:1159}],1155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../streamtube/calc&quot;).processGrid,a=t(&quot;../streamtube/calc&quot;).filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l&lt;e._len;l++){var c=e._value[l];o=Math.min(o,c),s=Math.max(s,c)}e._minValues=o,e._maxValues=s,e._vMin=void 0===e.isomin||null===e.isomin?o:e.isomin,e._vMax=void 0===e.isomax||null===e.isomin?s:e.isomax,n(t,e,{vals:[e._vMin,e._vMax],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../streamtube/calc&quot;:1326}],1156:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=function(t,e){for(var r=e.length-1;r&gt;0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i&gt;n&amp;&amp;n&lt;t&amp;&amp;t&lt;=i)return{id:r,distRatio:(i-t)/(i-n)}}return{id:0,distRatio:0}};function c(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},u.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=h(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},c=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=i(t),this.mesh.update(l)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var f=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;];function h(t){t._meshI=[],t._meshJ=[],t._meshK=[];var e,r,n,i,a,o,s,c=t.surface.show,u=t.spaceframe.show,h=t.surface.fill,p=t.spaceframe.fill,d=!1,g=!1,m=0,v=t._Xs,y=t._Ys,x=t._Zs,b=v.length,_=y.length,w=x.length,T=f.indexOf(t._gridFill.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;)),k=function(t,e,r){switch(T){case 5:return r+w*e+w*_*t;case 4:return r+w*t+w*b*e;case 3:return e+_*r+_*w*t;case 2:return e+_*t+_*b*r;case 1:return t+b*r+b*w*e;default:return t+b*e+b*_*r}},A=t._minValues,M=t._maxValues,S=t._vMin,E=t._vMax;function L(t,e,s){for(var l=o.length,c=r;c&lt;l;c++)if(t===n[c]&amp;&amp;e===i[c]&amp;&amp;s===a[c])return c;return-1}function C(){r=e}function P(){n=[],i=[],a=[],o=[],e=0,C()}function I(t,r,s,l){return n.push(t),i.push(r),a.push(s),o.push(l),++e-1}function O(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=t[i]*(1-r)+r*e[i];return n}function z(t){s=t}function D(t,e){return&quot;all&quot;===t||null===t||t.indexOf(e)&gt;-1}function R(t,e){return null===t?e:t}function F(e,r,n){C();var i,a,o,l=[r],c=[n];if(s&gt;=1)l=[r],c=[n];else if(s&gt;0){var u=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=(t[i]+e[i]+r[i])/3;return n}(r,n,i),o=Math.sqrt(1-s),l=O(a,r,o),c=O(a,n,o),u=O(a,i,o),f=e[0],h=e[1],p=e[2];return{xyzv:[[r,n,c],[c,l,r],[n,i,u],[u,c,n],[i,r,l],[l,u,i]],abc:[[f,h,-1],[-1,-1,f],[h,p,-1],[-1,-1,h],[p,f,-1],[-1,-1,p]]}}(r,n);l=u.xyzv,c=u.abc}for(var f=0;f&lt;l.length;f++){r=l[f],n=c[f];for(var h=[],p=0;p&lt;3;p++){var d=r[p][0],g=r[p][1],v=r[p][2],y=r[p][3],x=n[p]&gt;-1?n[p]:L(d,g,v);h[p]=x&gt;-1?x:I(d,g,v,R(e,y))}i=h[0],a=h[1],o=h[2],t._meshI.push(i),t._meshJ.push(a),t._meshK.push(o),++m}}function B(t,e,r,n){var i=t[3];i&lt;r&amp;&amp;(i=r),i&gt;n&amp;&amp;(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s&lt;4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function N(t,e,r){return t&gt;=e&amp;&amp;t&lt;=r}function j(t){var e=.001*(E-S);return t&gt;=S-e&amp;&amp;t&lt;=E+e}function U(e){for(var r=[],n=0;n&lt;4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function V(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(e[0][3],n,i),N(e[1][3],n,i),N(e[2][3],n,i)];if(!s[0]&amp;&amp;!s[1]&amp;&amp;!s[2])return!1;var l=function(t,e,r){return j(e[0][3])&amp;&amp;j(e[1][3])&amp;&amp;j(e[2][3])?(F(t,e,r),!0):a&lt;3&amp;&amp;V(t,e,r,S,E,++a)};if(s[0]&amp;&amp;s[1]&amp;&amp;s[2])return l(t,e,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&amp;&amp;s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(h,u,n,i),d=B(h,f,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,o=l(t,[u,f,d],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&amp;&amp;!s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(f,u,n,i),d=B(h,u,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function q(t,e,r,n){var i=!1,a=U(e),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&amp;&amp;o[1]&amp;&amp;o[2]&amp;&amp;o[3])return g&amp;&amp;(i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]];if(g)i=F(t,[c,u,f],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=B(h,c,r,n),d=B(h,u,r,n),m=B(h,f,r,n);i=F(null,[p,d,m],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(f,c,r,n),d=B(f,u,r,n),m=B(h,u,r,n),v=B(h,c,r,n);g?(i=F(t,[c,v,p],[e[l[0]],-1,-1])||i,i=F(t,[u,d,m],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[p,d,m,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&amp;&amp;!o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(u,c,r,n),d=B(f,c,r,n),m=B(h,c,r,n);g?(i=F(t,[c,p,d],[e[l[0]],-1,-1])||i,i=F(t,[c,d,m],[e[l[0]],-1,-1])||i,i=F(t,[c,m,p],[e[l[0]],-1,-1])||i):i=F(null,[p,d,m],[-1,-1,-1])||i,s=!0}})),i)}function H(t,e,r,n,i,a,o,s,l,c,u){var f=!1;return d&amp;&amp;(D(t,&quot;A&quot;)&amp;&amp;(f=q(null,[e,r,n,a],c,u)||f),D(t,&quot;B&quot;)&amp;&amp;(f=q(null,[r,n,i,l],c,u)||f),D(t,&quot;C&quot;)&amp;&amp;(f=q(null,[r,a,o,l],c,u)||f),D(t,&quot;D&quot;)&amp;&amp;(f=q(null,[n,a,s,l],c,u)||f),D(t,&quot;E&quot;)&amp;&amp;(f=q(null,[r,n,a,l],c,u)||f)),g&amp;&amp;(f=q(t,[r,n,a,l],c,u)||f),f}function G(t,e,r,n,i,a,o,s){return[!0===s[0]||V(t,U([e,r,n]),[e,r,n],a,o),!0===s[1]||V(t,U([n,i,e]),[n,i,e],a,o)]}function Y(t,e,r,n,i,a,o,s,l){return s?G(t,e,r,i,n,a,o,l):G(t,r,i,n,e,a,o,l)}function W(t,e,r,n,i,a,o){var s,l,c,u,f=!1,h=function(){f=V(t,[s,l,c],[-1,-1,-1],i,a)||f,f=V(t,[c,u,s],[-1,-1,-1],i,a)||f},p=o[0],d=o[1],g=o[2];return p&amp;&amp;(s=O(U([k(e,r-0,n-0)])[0],U([k(e-1,r-0,n-0)])[0],p),l=O(U([k(e,r-0,n-1)])[0],U([k(e-1,r-0,n-1)])[0],p),c=O(U([k(e,r-1,n-1)])[0],U([k(e-1,r-1,n-1)])[0],p),u=O(U([k(e,r-1,n-0)])[0],U([k(e-1,r-1,n-0)])[0],p),h()),d&amp;&amp;(s=O(U([k(e-0,r,n-0)])[0],U([k(e-0,r-1,n-0)])[0],d),l=O(U([k(e-0,r,n-1)])[0],U([k(e-0,r-1,n-1)])[0],d),c=O(U([k(e-1,r,n-1)])[0],U([k(e-1,r-1,n-1)])[0],d),u=O(U([k(e-1,r,n-0)])[0],U([k(e-1,r-1,n-0)])[0],d),h()),g&amp;&amp;(s=O(U([k(e-0,r-0,n)])[0],U([k(e-0,r-0,n-1)])[0],g),l=O(U([k(e-0,r-1,n)])[0],U([k(e-0,r-1,n-1)])[0],g),c=O(U([k(e-1,r-1,n)])[0],U([k(e-1,r-1,n-1)])[0],g),u=O(U([k(e-1,r-0,n)])[0],U([k(e-1,r-0,n-1)])[0],g),h()),f}function X(t,e,r,n,i,a,o,s,l,c,u,f){var h=t;return f?(d&amp;&amp;&quot;even&quot;===t&amp;&amp;(h=null),H(h,e,r,n,i,a,o,s,l,c,u)):(d&amp;&amp;&quot;odd&quot;===t&amp;&amp;(h=null),H(h,l,s,o,a,i,n,r,e,c,u))}function Z(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;w;c++)for(var u=1;u&lt;_;u++)a.push(Y(t,k(l,u-1,c-1),k(l,u-1,c),k(l,u,c-1),k(l,u,c),r,n,(l+u+c)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function J(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;b;c++)for(var u=1;u&lt;w;u++)a.push(Y(t,k(c-1,l,u-1),k(c,l,u-1),k(c-1,l,u),k(c,l,u),r,n,(c+l+u)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function K(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;_;c++)for(var u=1;u&lt;b;u++)a.push(Y(t,k(u-1,c-1,l),k(u-1,c,l),k(u,c-1,l),k(u,c,l),r,n,(u+c+l)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function Q(t,e,r){for(var n=1;n&lt;w;n++)for(var i=1;i&lt;_;i++)for(var a=1;a&lt;b;a++)X(t,k(a-1,i-1,n-1),k(a-1,i-1,n),k(a-1,i,n-1),k(a-1,i,n),k(a,i-1,n-1),k(a,i-1,n),k(a,i,n-1),k(a,i,n),e,r,(a+i+n)%2)}function $(t,e,r){d=!0,Q(t,e,r),d=!1}function tt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;w;u++)for(var f=1;f&lt;_;f++)o.push(W(t,c,f,u,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function et(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;b;u++)for(var f=1;f&lt;w;f++)o.push(W(t,u,c,f,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function rt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;_;u++)for(var f=1;f&lt;b;f++)o.push(W(t,f,u,c,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function nt(t,e){for(var r=[],n=t;n&lt;e;n++)r.push(n);return r}return function(){if(P(),function(){for(var e=0;e&lt;b;e++)for(var r=0;r&lt;_;r++)for(var n=0;n&lt;w;n++){var i=k(e,r,n);I(t._x[i],t._y[i],t._z[i],t._value[i])}}(),u&amp;&amp;p&amp;&amp;(z(p),g=!0,Q(null,S,E),g=!1),c&amp;&amp;h){z(h);for(var e=t.surface.pattern,r=t.surface.count,s=0;s&lt;r;s++){var f=1===r?.5:s/(r-1),d=(1-f)*S+f*E,T=Math.abs(d-A)&gt;Math.abs(d-M)?[A,d]:[d,M];$(e,T[0],T[1])}}var L=[[Math.min(S,M),Math.max(S,M)],[Math.min(A,E),Math.max(A,E)]];[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(e){for(var r=[],n=0;n&lt;L.length;n++){var i=0,a=L[n][0],o=L[n][1],s=t.slices[e];if(s.show&amp;&amp;s.fill){z(s.fill);var c=[],u=[],f=[];if(s.locations.length)for(var h=0;h&lt;s.locations.length;h++){var p=l(s.locations[h],&quot;x&quot;===e?v:&quot;y&quot;===e?y:x);0===p.distRatio?c.push(p.id):p.id&gt;0&amp;&amp;(u.push(p.id),&quot;x&quot;===e?f.push([p.distRatio,0,0]):&quot;y&quot;===e?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else c=nt(1,&quot;x&quot;===e?b-1:&quot;y&quot;===e?_-1:w-1);u.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?tt(null,u,a,o,f,r[i]):&quot;y&quot;===e?et(null,u,a,o,f,r[i]):rt(null,u,a,o,f,r[i]),i++),c.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?Z(null,c,a,o,r[i]):&quot;y&quot;===e?J(null,c,a,o,r[i]):K(null,c,a,o,r[i]),i++)}var d=t.caps[e];d.show&amp;&amp;d.fill&amp;&amp;(z(d.fill),r[i]=&quot;x&quot;===e?Z(null,[0,b-1],a,o,r[i]):&quot;y&quot;===e?J(null,[0,_-1],a,o,r[i]):K(null,[0,w-1],a,o,r[i]),i++)}})),0===m&amp;&amp;P(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:h,createIsosurfaceTrace:function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib/gl_format_color&quot;:799,&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/gl3d/zip3&quot;:907,&quot;gl-mesh3d&quot;:315}],1157:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../components/colorscale/defaults&quot;);function s(t,e,r,n,a){var s=a(&quot;isomin&quot;),l=a(&quot;isomax&quot;);null!=l&amp;&amp;null!=s&amp;&amp;s&gt;l&amp;&amp;(e.isomin=null,e.isomax=null);var c=a(&quot;x&quot;),u=a(&quot;y&quot;),f=a(&quot;z&quot;),h=a(&quot;value&quot;);c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length?(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],n),a(&quot;valuehoverformat&quot;),[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(t){a(t+&quot;hoverformat&quot;);var e=&quot;caps.&quot;+t;a(e+&quot;.show&quot;)&amp;&amp;a(e+&quot;.fill&quot;);var r=&quot;slices.&quot;+t;a(r+&quot;.show&quot;)&amp;&amp;(a(r+&quot;.fill&quot;),a(r+&quot;.locations&quot;))})),a(&quot;spaceframe.show&quot;)&amp;&amp;a(&quot;spaceframe.fill&quot;),a(&quot;surface.show&quot;)&amp;&amp;(a(&quot;surface.count&quot;),a(&quot;surface.fill&quot;),a(&quot;surface.pattern&quot;)),a(&quot;contour.show&quot;)&amp;&amp;(a(&quot;contour.color&quot;),a(&quot;contour.width&quot;)),[&quot;text&quot;,&quot;hovertext&quot;,&quot;hovertemplate&quot;,&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;opacity&quot;].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,r,i){s(t,e,r,i,(function(r,i){return n.coerce(t,e,a,r,i)}))},supplyIsoDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:1154}],1158:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;).createIsosurfaceTrace,moduleType:&quot;trace&quot;,name:&quot;isosurface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1154,&quot;./calc&quot;:1155,&quot;./convert&quot;:1156,&quot;./defaults&quot;:1157}],1159:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../surface/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=l({x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},i:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},j:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},k:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:a({editType:&quot;calc&quot;}),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),delaunayaxis:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],dflt:&quot;z&quot;,editType:&quot;calc&quot;},alphahull:{valType:&quot;number&quot;,dflt:-1,editType:&quot;calc&quot;},intensity:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},intensitymode:{valType:&quot;enumerated&quot;,values:[&quot;vertex&quot;,&quot;cell&quot;],dflt:&quot;vertex&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},vertexcolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},facecolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transforms:void 0},n(&quot;&quot;,{colorAttr:&quot;`intensity`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:o.opacity,flatshading:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},contour:{show:l({},o.contours.x.show,{}),color:o.contours.x.color,width:o.contours.x.width,editType:&quot;calc&quot;},lightposition:{x:l({},o.lightposition.x,{dflt:1e5}),y:l({},o.lightposition.y,{dflt:1e5}),z:l({},o.lightposition.z,{dflt:0}),editType:&quot;calc&quot;},lighting:l({vertexnormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-12,editType:&quot;calc&quot;},facenormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-6,editType:&quot;calc&quot;},editType:&quot;calc&quot;},o.lighting),hoverinfo:l({},s.hoverinfo,{editType:&quot;calc&quot;}),showlegend:l({},s.showlegend,{dflt:!1})})},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../surface/attributes&quot;:1342}],1160:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.intensity&amp;&amp;n(t,e,{vals:e.intensity,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:674}],1161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;delaunay-triangulate&quot;),a=t(&quot;alpha-shape&quot;),o=t(&quot;convex-hull&quot;),s=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,l=t(&quot;../../lib/str2rgbarray&quot;),c=t(&quot;../../components/colorscale&quot;).extractOpts,u=t(&quot;../../plots/gl3d/zip3&quot;);function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.color=&quot;#fff&quot;,this.data=null,this.showContour=!1}var h=f.prototype;function p(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=l(t[n]);return e}function d(t,e,r,n){for(var i=[],a=e.length,o=0;o&lt;a;o++)i[o]=t.d2l(e[o],0,n)*r;return i}function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=Math.round(t[n]);return e}function m(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(t[n]&lt;=-.5||t[n]&gt;=e-.5)return!1;return!0}h.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&amp;&amp;void 0!==r[e]?t.textLabel=r[e]:r&amp;&amp;(t.textLabel=r),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,f=t.x.length,h=u(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&amp;&amp;t.j&amp;&amp;t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!m(t.i,f)||!m(t.j,f)||!m(t.k,f))return;n=u(g(t.i),g(t.j),g(t.k))}else n=0===t.alphahull?o(h):t.alphahull&gt;0?a(t.alphahull,h):function(t,e){for(var r=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].indexOf(t),n=[],a=e.length,o=0;o&lt;a;o++)n[o]=[e[o][(r+1)%3],e[o][(r+2)%3]];return i(n)}(t.delaunayaxis,h);var v={positions:h,cells:n,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};if(t.intensity){var y=c(t);this.color=&quot;#fff&quot;;var x=t.intensitymode;v[x+&quot;Intensity&quot;]=t.intensity,v[x+&quot;IntensityBounds&quot;]=[y.min,y.max],v.colormap=s(t)}else t.vertexcolor?(this.color=t.vertexcolor[0],v.vertexColors=p(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],v.cellColors=p(t.facecolor)):(this.color=t.color,v.meshColor=l(t.color));this.mesh.update(v)},h.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new f(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib/gl_format_color&quot;:799,&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/gl3d/zip3&quot;:907,&quot;alpha-shape&quot;:75,&quot;convex-hull&quot;:141,&quot;delaunay-triangulate&quot;:180,&quot;gl-mesh3d&quot;:315}],1162:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map((function(t){var e=l(t);return e&amp;&amp;i.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&amp;&amp;t.length===e[0].length}))&amp;&amp;e}c([&quot;x&quot;,&quot;y&quot;,&quot;z&quot;])?(c([&quot;i&quot;,&quot;j&quot;,&quot;k&quot;]),(!e.i||e.j&amp;&amp;e.k)&amp;&amp;(!e.j||e.k&amp;&amp;e.i)&amp;&amp;(!e.k||e.i&amp;&amp;e.j)?(n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],s),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;alphahull&quot;,&quot;delaunayaxis&quot;,&quot;opacity&quot;].forEach((function(t){l(t)})),l(&quot;contour.show&quot;)&amp;&amp;(l(&quot;contour.color&quot;),l(&quot;contour.width&quot;)),&quot;intensity&quot;in t?(l(&quot;intensity&quot;),l(&quot;intensitymode&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;c&quot;})):(e.showscale=!1,&quot;facecolor&quot;in t?l(&quot;facecolor&quot;):&quot;vertexcolor&quot;in t?l(&quot;vertexcolor&quot;):l(&quot;color&quot;,r)),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),l(&quot;xhoverformat&quot;),l(&quot;yhoverformat&quot;),l(&quot;zhoverformat&quot;),e._length=null):e.visible=!1):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:1159}],1163:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;mesh3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1159,&quot;./calc&quot;:1160,&quot;./convert&quot;:1161,&quot;./defaults&quot;:1162}],1164:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../components/drawing/attributes&quot;).dash,s=t(&quot;../../components/fx/attributes&quot;),l=t(&quot;../../constants/delta.js&quot;),c=l.INCREASING.COLOR,u=l.DECREASING.COLOR,f=i.line;function h(t){return{line:{color:n({},f.color,{dflt:t}),width:f.width,dash:o,editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},open:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},high:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},low:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},close:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{width:n({},f.width,{}),dash:n({},o,{}),editType:&quot;style&quot;},increasing:h(c),decreasing:h(u),text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},tickwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.3,editType:&quot;calc&quot;},hoverlabel:n({},s.hoverlabel,{split:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;style&quot;}})}},{&quot;../../components/drawing/attributes&quot;:687,&quot;../../components/fx/attributes&quot;:697,&quot;../../constants/delta.js&quot;:773,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../scatter/attributes&quot;:1218}],1165:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=n._,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r,n){return{o:t,h:e,l:r,c:n}}function c(t,e,r,o,l,c){for(var u=l.makeCalcdata(e,&quot;open&quot;),f=l.makeCalcdata(e,&quot;high&quot;),h=l.makeCalcdata(e,&quot;low&quot;),p=l.makeCalcdata(e,&quot;close&quot;),d=Array.isArray(e.text),g=Array.isArray(e.hovertext),m=!0,v=null,y=!!e.xperiodalignment,x=[],b=0;b&lt;o.length;b++){var _=o[b],w=u[b],T=f[b],k=h[b],A=p[b];if(_!==s&amp;&amp;w!==s&amp;&amp;T!==s&amp;&amp;k!==s&amp;&amp;A!==s){A===w?null!==v&amp;&amp;A!==v&amp;&amp;(m=A&gt;v):m=A&gt;w,v=A;var M=c(w,T,k,A);M.pos=_,M.yc=(w+A)/2,M.i=b,M.dir=m?&quot;increasing&quot;:&quot;decreasing&quot;,M.x=M.pos,M.y=[k,T],y&amp;&amp;(M.orig_p=r[b]),d&amp;&amp;(M.tx=e.text[b]),g&amp;&amp;(M.htx=e.hovertext[b]),x.push(M)}else x.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(h,f),{padded:!0}),x.length&amp;&amp;(x[0].t={labels:{open:i(t,&quot;open:&quot;)+&quot; &quot;,high:i(t,&quot;high:&quot;)+&quot; &quot;,low:i(t,&quot;low:&quot;)+&quot; &quot;,close:i(t,&quot;close:&quot;)+&quot; &quot;}}),x}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),s=function(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a&lt;s.length;a++){var c=s[a];if(&quot;ohlc&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;c.xaxis===e._id){l.push(c);var u=e.makeCalcdata(c,&quot;x&quot;);c._origX=u;var f=o(r,e,&quot;x&quot;,u).vals;c._xcalc=f;var h=n.distinctVals(f).minDiff;h&amp;&amp;isFinite(h)&amp;&amp;(i=Math.min(i,h))}}for(i===1/0&amp;&amp;(i=1),a=0;a&lt;l.length;a++)l[a]._minDiff=i}return i*r.tickwidth}(t,r,e),u=e._minDiff;e._minDiff=null;var f=e._origX;e._origX=null;var h=e._xcalc;e._xcalc=null;var p=c(t,e,f,h,i,l);return e._extremes[r._id]=a.findExtremes(r,h,{vpad:u/2}),p.length?(n.extendFlat(p[0].t,{wHover:u/2,tickLen:s}),p):[{t:{empty:!0}}]},calcCommon:c}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854}],1166:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./ohlc_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){r(n+&quot;.line.color&quot;),r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.line.dash&quot;,e.line.dash)}e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}i(t,e,c,l)?(a(t,e,l,c,{x:!0}),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;),c(&quot;line.width&quot;),c(&quot;line.dash&quot;),s(t,e,c,&quot;increasing&quot;),s(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;tickwidth&quot;),l._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/period_defaults&quot;:1238,&quot;./attributes&quot;:1164,&quot;./ohlc_defaults&quot;:1169}],1167:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;).fillText,l=t(&quot;../../constants/delta.js&quot;),c={increasing:l.INCREASING.SYMBOL,decreasing:l.DECREASING.SYMBOL};function u(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=&quot;ohlc&quot;===h?&quot;l&quot;:&quot;min&quot;,d=&quot;ohlc&quot;===h?&quot;h&quot;:&quot;max&quot;,g=f.bPos||0,m=f.bdPos||f.tickLen,v=f.wHover,y=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function x(t){var r=function(t){return t.pos+g-e}(t);return a.inbox(r-v,r+v,i)}function b(t){var e=t[p],n=t[d];return e===n||a.inbox(e-r,n-r,i)}function _(t){return(x(t)+b(t))/2}i=t.maxHoverDistance-y,s=t.maxSpikeDistance-y;var w=a.getDistanceFunction(n,x,b,_);if(a.getClosest(l,w,t),!1===t.index)return null;var T=l[t.index];if(T.empty)return null;var k=u[T.dir],A=k.line.color;return o.opacity(A)&amp;&amp;k.line.width?t.color=A:t.color=k.fillcolor,t.x0=c.c2p(T.pos+g-m,!0),t.x1=c.c2p(T.pos+g+m,!0),t.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,t.spikeDistance=_(T)*s/i,t.xSpike=c.c2p(T.pos,!0),t}function f(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,c=o[0].t,f=[],h=u(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(&quot;+&quot;);if(!(&quot;all&quot;===p||-1!==d.indexOf(&quot;y&quot;)))return[];for(var g=[&quot;high&quot;,&quot;open&quot;,&quot;close&quot;,&quot;low&quot;],m={},v=0;v&lt;g.length;v++){var y,x=g[v],b=l[x][h.index],_=s.c2p(b,!0);b in m?(y=m[b]).yLabel+=&quot;&lt;br&gt;&quot;+c.labels[x]+n.hoverLabelText(s,b,l.yhoverformat):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b,l.yhoverformat),y.name=&quot;&quot;,f.push(y),m[b]=y)}return f}function h(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,f=a[0].t,h=u(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,g=p.dir;function m(t){return f.labels[t]+n.hoverLabelText(o,l[t][d],l.yhoverformat)}var v=p.hi||l.hoverinfo,y=v.split(&quot;+&quot;),x=&quot;all&quot;===v,b=x||-1!==y.indexOf(&quot;y&quot;),_=x||-1!==y.indexOf(&quot;text&quot;),w=b?[m(&quot;open&quot;),m(&quot;high&quot;),m(&quot;low&quot;),m(&quot;close&quot;)+&quot;  &quot;+c[g]]:[];return _&amp;&amp;s(p,l,w),h.extraText=w.join(&quot;&lt;br&gt;&quot;),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?f(t,e,r,n):h(t,e,r,n)},hoverSplit:f,hoverOnPoints:h}},{&quot;../../components/color&quot;:666,&quot;../../components/fx&quot;:706,&quot;../../constants/delta.js&quot;:773,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],1168:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;ohlc&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;],meta:{},attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;)}},{&quot;../../plots/cartesian&quot;:868,&quot;./attributes&quot;:1164,&quot;./calc&quot;:1165,&quot;./defaults&quot;:1166,&quot;./hover&quot;:1167,&quot;./plot&quot;:1170,&quot;./select&quot;:1171,&quot;./style&quot;:1172}],1169:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;open&quot;),l=r(&quot;high&quot;),c=r(&quot;low&quot;),u=r(&quot;close&quot;);if(r(&quot;hoverlabel.split&quot;),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;],a),s&amp;&amp;l&amp;&amp;c&amp;&amp;u){var f=Math.min(s.length,l.length,c.length,u.length);return o&amp;&amp;(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],1170:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,&quot;trace ohlc&quot;).each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll(&quot;path&quot;).data(i.identity);u.enter().append(&quot;path&quot;),u.exit().remove(),u.attr(&quot;d&quot;,(function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return&quot;M&quot;+e+&quot;,&quot;+o.c2p(t.o,!0)+&quot;H&quot;+n+&quot;M&quot;+n+&quot;,&quot;+o.c2p(t.h,!0)+&quot;V&quot;+o.c2p(t.l,!0)+&quot;M&quot;+r+&quot;,&quot;+o.c2p(t.c,!0)+&quot;H&quot;+n}))}}))}},{&quot;../../lib&quot;:803,&quot;@plotly/d3&quot;:58}],1171:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r&lt;n.length;r++)n[r].selected=0;else for(r=0;r&lt;n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],1172:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;);e.exports=function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.ohlclayer&quot;).selectAll(&quot;g.trace&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(t){var e=t[0].trace;n.select(this).selectAll(&quot;path&quot;).each((function(t){if(!t.empty){var r=e[t.dir].line;n.select(this).style(&quot;fill&quot;,&quot;none&quot;).call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(&quot;opacity&quot;,e.selectedpoints&amp;&amp;!t.selected?.3:1)}}))}))}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;@plotly/d3&quot;:58}],1173:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/domain&quot;).attributes,c=n({editType:&quot;calc&quot;},o(&quot;line&quot;,{editTypeOverride:&quot;calc&quot;}),{shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hspline&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;]})});e.exports={domain:l({name:&quot;parcats&quot;,trace:!0,editType:&quot;calc&quot;}),hoverinfo:n({},i.hoverinfo,{flags:[&quot;count&quot;,&quot;probability&quot;],editType:&quot;plot&quot;,arrayOk:!1}),hoveron:{valType:&quot;enumerated&quot;,values:[&quot;category&quot;,&quot;color&quot;,&quot;dimension&quot;],dflt:&quot;category&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;,&quot;category&quot;,&quot;categorycount&quot;,&quot;colorcount&quot;,&quot;bandcolorcount&quot;]}),arrangement:{valType:&quot;enumerated&quot;,values:[&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;perpendicular&quot;,editType:&quot;plot&quot;},bundlecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},sortpaths:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;backward&quot;],dflt:&quot;forward&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;calc&quot;}),tickfont:a({editType:&quot;calc&quot;}),dimensions:{_isLinkedToArray:&quot;dimension&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},displayindex:{valType:&quot;integer&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;,visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}},line:c,counts:{valType:&quot;number&quot;,min:0,dflt:1,arrayOk:!0,editType:&quot;calc&quot;},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/template_attributes&quot;:926}],1174:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;parcats&quot;,r.plot=function(t,e,r,a){var o=n(t.calcdata,&quot;parcats&quot;);if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcats&quot;),a=e._has&amp;&amp;e._has(&quot;parcats&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.parcats&quot;).remove()}},{&quot;../../plots/get_data&quot;:891,&quot;./plot&quot;:1179}],1175:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../../lib/filter_unique.js&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;fast-isnumeric&quot;);function u(t,e,r){t.valueInds.push(e),t.count+=r}function f(t,e,r){return{categoryInds:t,color:e,rawColor:r,valueInds:[],count:0}}function h(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var p,d,g,m=r.map((function(t){var e;if(&quot;trace&quot;===t.categoryorder)e=null;else if(&quot;array&quot;===t.categoryorder)e=t.categoryarray;else{e=o(t.values);for(var r=!0,n=0;n&lt;e.length;n++)if(!c(e[n])){r=!1;break}e.sort(r?l.sorterAsc:void 0),&quot;category descending&quot;===t.categoryorder&amp;&amp;(e=e.reverse())}return function(t,e){e=null==e?[]:e.map((function(t){return t}));var r={},n={},i=[];e.forEach((function(t,e){r[t]=0,n[t]=e}));for(var a=0;a&lt;t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map((function(t){return r[t]}));return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)}));p=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;r++){if(t[r]&lt;0||t[r]&gt;=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map((function(t){return t.displayindex}))))for(e=0;e&lt;t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e&lt;t.length;e++)t[e]._displayindex=e}(r),r.forEach((function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r&lt;e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,m[e])}));var v,y=e.line;y?(i(e,&quot;line&quot;)&amp;&amp;a(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),v=s.tryColorscale(y)):v=l.identity;var x,b,_,w,T,k=r[0].values.length,A={},M=m.map((function(t){return t.inds}));for(g=0,x=0;x&lt;k;x++){var S=[];for(b=0;b&lt;M.length;b++)S.push(M[b][x]);d=p[x%p.length],g+=d;var E=(_=x,w=void 0,T=void 0,l.isArrayOrTypedArray(y.color)?T=w=y.color[_%y.color.length]:w=y.color,{color:v(w),rawColor:T}),L=S+&quot;-&quot;+E.rawColor;void 0===A[L]&amp;&amp;(A[L]=f(S,E.color,E.rawColor)),h(A[L],x,d)}var C,P=r.map((function(t,e){return function(t,e,r,n,i){return{dimensionInd:t,containerInd:e,displayInd:r,dimensionLabel:n,count:i,categories:[],dragX:null}}(e,t._index,t._displayindex,t.label,g)}));for(x=0;x&lt;k;x++)for(d=p[x%p.length],b=0;b&lt;P.length;b++){var I=P[b].containerInd,O=m[b].inds[x],z=P[b].categories;if(void 0===z[O]){var D=e.dimensions[I]._categoryarray[O],R=e.dimensions[I]._ticktext[O];z[O]={dimensionInd:b,categoryInd:C=O,categoryValue:D,displayInd:C,categoryLabel:R,valueInds:[],count:0,dragY:null}}u(z[O],x,d)}return n(function(t,e,r){var n=t.map((function(t){return t.categories.length})).reduce((function(t,e){return Math.max(t,e)}));return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(P,A,g))}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/filter_unique.js&quot;:794,&quot;../../lib/gup&quot;:800,&quot;fast-isnumeric&quot;:249}],1176:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../parcoords/merge_length&quot;);function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(&quot;values&quot;),a=r(&quot;visible&quot;);if(i&amp;&amp;i.length||(a=e.visible=!1),a){r(&quot;label&quot;),r(&quot;displayindex&quot;,e._index);var o,s=t.categoryarray,c=Array.isArray(s)&amp;&amp;s.length&gt;0;c&amp;&amp;(o=&quot;array&quot;);var u=r(&quot;categoryorder&quot;,o);&quot;array&quot;===u?(r(&quot;categoryarray&quot;),r(&quot;ticktext&quot;)):(delete t.categoryarray,delete t.ticktext),c||&quot;array&quot;!==u||(e.categoryorder=&quot;trace&quot;)}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=function(t,e,r,o,s){s(&quot;line.shape&quot;),s(&quot;line.hovertemplate&quot;);var l=s(&quot;line.color&quot;,o.colorway[0]);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&amp;&amp;p.length||(e.visible=!1),c(e,p,&quot;values&quot;,d),h(&quot;hoveron&quot;),h(&quot;hovertemplate&quot;),h(&quot;arrangement&quot;),h(&quot;bundlecolors&quot;),h(&quot;sortpaths&quot;),h(&quot;counts&quot;);var g={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,&quot;labelfont&quot;,g);var m={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,&quot;tickfont&quot;,m)}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/domain&quot;:882,&quot;../parcoords/merge_length&quot;:1189,&quot;./attributes&quot;:1173}],1177:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcats&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1173,&quot;./base_plot&quot;:1174,&quot;./calc&quot;:1175,&quot;./defaults&quot;:1176,&quot;./plot&quot;:1179}],1178:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-interpolate&quot;).interpolateNumber,a=t(&quot;../../plot_api/plot_api&quot;),o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../components/drawing&quot;),u=t(&quot;tinycolor2&quot;),f=t(&quot;../../lib/svg_text_utils&quot;);function h(t,e,r,i){var a=t.map(F.bind(0,e,r)),o=i.selectAll(&quot;g.parcatslayer&quot;).data([null]);o.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;parcatslayer&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;);var u=o.selectAll(&quot;g.trace.parcats&quot;).data(a,p),h=u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;trace parcats&quot;);u.attr(&quot;transform&quot;,(function(t){return l(t.x,t.y)})),h.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;paths&quot;);var y=u.select(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;).data((function(t){return t.paths}),p);y.attr(&quot;fill&quot;,(function(t){return t.model.color}));var x=y.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;path&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,0);_(x),y.attr(&quot;d&quot;,(function(t){return t.svgD})),x.empty()||y.sort(g),y.exit().remove(),y.on(&quot;mouseover&quot;,m).on(&quot;mouseout&quot;,v).on(&quot;click&quot;,b),h.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimensions&quot;);var w=u.select(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;).data((function(t){return t.dimensions}),p);w.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimension&quot;),w.attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),w.exit().remove();var A=w.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),p),M=A.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;category&quot;);A.attr(&quot;transform&quot;,(function(t){return l(0,t.y)})),M.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;catrect&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;),A.select(&quot;rect.catrect&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),T(M);var S=A.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),p);S.each((function(){s.raiseToTop(this)})),S.attr(&quot;fill&quot;,(function(t){return t.color}));var E=S.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);S.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;perpendicular&quot;===t.parcatsViewModel.arrangement?&quot;ns-resize&quot;:&quot;move&quot;})),k(E),S.exit().remove(),M.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;catlabel&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;);var z=e._fullLayout.paper_bgcolor;A.select(&quot;text.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return d(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).style(&quot;text-shadow&quot;,f.makeTextShadow(z)).style(&quot;fill&quot;,&quot;rgb(0, 0, 0)&quot;).attr(&quot;x&quot;,(function(t){return d(t)?t.width+5:-5})).attr(&quot;y&quot;,(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){c.font(n.select(this),t.parcatsViewModel.categorylabelfont),f.convertToTspans(n.select(this),e)})),M.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;dimlabel&quot;),A.select(&quot;text.dimlabel&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).attr(&quot;alignment-baseline&quot;,&quot;baseline&quot;).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;ew-resize&quot;})).attr(&quot;x&quot;,(function(t){return t.width/2})).attr(&quot;y&quot;,-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){c.font(n.select(this),t.parcatsViewModel.labelfont)})),A.selectAll(&quot;rect.bandrect&quot;).on(&quot;mouseover&quot;,L).on(&quot;mouseout&quot;,C),A.exit().remove(),w.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on(&quot;dragstart&quot;,P).on(&quot;drag&quot;,I).on(&quot;dragend&quot;,O)),u.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;),t.dimensionSelection=n.select(this).selectAll(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;)})),u.exit().remove()}function p(t){return t.key}function d(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function g(t,e){return t.model.rawColor&gt;e.model.rawColor?1:t.model.rawColor&lt;e.model.rawColor?-1:0}function m(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){s.raiseToTop(this),w(n.select(this));var e=y(t),r=x(t);if(t.parcatsViewModel.graphDiv.emit(&quot;plotly_hover&quot;,{points:e,event:n.event,constraints:r}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;)){var i,a,l,c=n.mouse(this)[0],f=t.parcatsViewModel.graphDiv,h=t.parcatsViewModel.trace,p=f._fullLayout,d=p._paperdiv.node().getBoundingClientRect(),g=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(l=0;l&lt;t.leftXs.length-1;l++)if(t.leftXs[l]+t.dimWidths[l]-2&lt;=c&amp;&amp;c&lt;=t.leftXs[l+1]+2){var m=t.parcatsViewModel.dimensions[l],v=t.parcatsViewModel.dimensions[l+1];i=(m.x+m.width+v.x)/2,a=(t.topYs[l]+t.topYs[l+1]+t.height)/2;break}var b=t.parcatsViewModel.x+i,_=t.parcatsViewModel.y+a,T=u.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;]),k=t.model.count,A=k/t.parcatsViewModel.model.count,M={countLabel:k,probabilityLabel:A.toFixed(3)},S=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;S.push([&quot;Count:&quot;,M.countLabel].join(&quot; &quot;)),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;S.push([&quot;P:&quot;,M.probabilityLabel].join(&quot; &quot;));var E=S.join(&quot;&lt;br&gt;&quot;),L=n.mouse(f)[0];o.loneHover({trace:h,x:b-d.left+g.left,y:_-d.top+g.top,text:E,color:t.model.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:10,fontColor:T,idealAlign:L&lt;b?&quot;right&quot;:&quot;left&quot;,hovertemplate:(h.line||{}).hovertemplate,hovertemplateLabels:M,eventData:[{data:h._input,fullData:h,count:k,probability:A}]},{container:p._hoverlayer.node(),outerContainer:p._paper.node(),gd:f})}}}function v(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;(_(n.select(this)),o.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(g),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;))){var e=y(t),r=x(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_unhover&quot;,{points:e,event:n.event,constraints:r})}}function y(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n&lt;t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function x(t){for(var e={},r=t.parcatsViewModel.model.dimensions,n=0;n&lt;r.length;n++){var i=r[n],a=i.categories[t.model.categoryInds[n]];e[i.containerInd]=a.categoryValue}return void 0!==t.model.rawColor&amp;&amp;(e.color=t.model.rawColor),e}function b(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){var e=y(t),r=x(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_click&quot;,{points:e,event:n.event,constraints:r})}}function _(t){t.attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,.6).attr(&quot;stroke&quot;,&quot;lightgray&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1)}function w(t){t.attr(&quot;fill-opacity&quot;,.8).attr(&quot;stroke&quot;,(function(t){return u.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;])})).attr(&quot;stroke-width&quot;,.3)}function T(t){t.select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1).attr(&quot;stroke-opacity&quot;,1)}function k(t){t.attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1).attr(&quot;fill-opacity&quot;,1)}function A(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter((function(e){return e.model.categoryInds[r]===n&amp;&amp;e.model.color===t.color}))}function M(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;),l=[];s.each((function(t){A(t).each((function(t){Array.prototype.push.apply(l,y(t))}))}));var c={};c[a.dimensionInd]=a.categoryValue,o.emit(e,{points:l,event:r,constraints:c})}function S(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=A(i),l=[];s.each((function(t){Array.prototype.push.apply(l,y(t))}));var c={};c[a.dimensionInd]=a.categoryValue,void 0!==i.rawColor&amp;&amp;(c.color=i.rawColor),o.emit(e,{points:l,event:r,constraints:c})}function E(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=n.select(r.parentNode).select(&quot;rect.catrect&quot;),c=l.node().getBoundingClientRect(),u=l.datum(),f=u.parcatsViewModel,h=f.model.dimensions[u.model.dimensionInd],p=f.trace,d=c.top+c.height/2;f.dimensions.length&gt;1&amp;&amp;h.displayInd===f.dimensions.length-1?(i=c.left,a=&quot;left&quot;):(i=c.left+c.width,a=&quot;right&quot;);var g=u.model.count,m=u.model.categoryLabel,v=g/u.parcatsViewModel.model.count,y={countLabel:g,categoryLabel:m,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;x.push([&quot;Count:&quot;,y.countLabel].join(&quot; &quot;)),-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;x.push([&quot;P(&quot;+y.categoryLabel+&quot;):&quot;,y.probabilityLabel].join(&quot; &quot;));var b=x.join(&quot;&lt;br&gt;&quot;);return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:b,color:&quot;lightgray&quot;,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:12,fontColor:&quot;black&quot;,idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:y,eventData:[{data:p._input,fullData:p,count:g,category:m,probability:v}]}}function L(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){if(n.mouse(this)[1]&lt;-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,a=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron;if(&quot;color&quot;===l?(!function(t){var e=n.select(t).datum(),r=A(e);w(r),r.each((function(){s.raiseToTop(this)})),n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).filter((function(t){return t.color===e.color})).each((function(){s.raiseToTop(this),n.select(this).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1.5)}))}(this),S(this,&quot;plotly_hover&quot;,n.event)):(!function(t){n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(t){var e=A(t);w(e),e.each((function(){s.raiseToTop(this)}))})),n.select(t.parentNode).select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,2.5)}(this),M(this,&quot;plotly_hover&quot;,n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;))&quot;category&quot;===l?e=E(r,a,this):&quot;color&quot;===l?e=function(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),c=n.select(r).datum(),f=c.categoryViewModel,h=f.parcatsViewModel,p=h.model.dimensions[f.model.dimensionInd],d=h.trace,g=l.y+l.height/2;h.dimensions.length&gt;1&amp;&amp;p.displayInd===h.dimensions.length-1?(i=l.left,a=&quot;left&quot;):(i=l.left+l.width,a=&quot;right&quot;);var m=f.model.categoryLabel,v=c.parcatsViewModel.model.count,y=0;c.categoryViewModel.bands.forEach((function(t){t.color===c.color&amp;&amp;(y+=t.count)}));var x=f.model.count,b=0;h.pathSelection.each((function(t){t.model.color===c.color&amp;&amp;(b+=t.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:m,probabilityLabel:_.toFixed(3)},A=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;A.push([&quot;Count:&quot;,k.countLabel].join(&quot; &quot;)),-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;(A.push(&quot;P(color \u2229 &quot;+m+&quot;): &quot;+k.probabilityLabel),A.push(&quot;P(&quot;+m+&quot; | color): &quot;+w.toFixed(3)),A.push(&quot;P(color | &quot;+m+&quot;): &quot;+T.toFixed(3)));var M=A.join(&quot;&lt;br&gt;&quot;),S=u.mostReadable(c.color,[&quot;black&quot;,&quot;white&quot;]);return{trace:d,x:o*(i-e.left),y:s*(g-e.top),text:M,color:c.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:m,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,a,this):&quot;dimension&quot;===l&amp;&amp;(e=function(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(){i.push(E(t,e,this))})),i}(r,a,this)),e&amp;&amp;o.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(t){var e=t.parcatsViewModel;if(!e.dragDimension&amp;&amp;(_(e.pathSelection),T(e.dimensionSelection.selectAll(&quot;g.category&quot;)),k(e.dimensionSelection.selectAll(&quot;g.category&quot;).selectAll(&quot;rect.bandrect&quot;)),o.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(g),-1===e.hoverinfoItems.indexOf(&quot;skip&quot;))){&quot;color&quot;===t.parcatsViewModel.hoveron?S(this,&quot;plotly_unhover&quot;,n.event):M(this,&quot;plotly_unhover&quot;,n.event)}}function P(t){&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2&lt;=r&amp;&amp;r&lt;=e.width+2&amp;&amp;-2&lt;=i&amp;&amp;i&lt;=e.height+2&amp;&amp;(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,s.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(e){e.y&lt;i&amp;&amp;i&lt;=e.y+e.height&amp;&amp;(t.potentialClickBand=this)})))})),t.parcatsViewModel.dragDimension=t,o.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function I(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&amp;&amp;s&lt;u.y+u.height/2&amp;&amp;(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&amp;&amp;s+o.height&gt;f.y+f.height/2&amp;&amp;(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||&quot;freeform&quot;===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&amp;&amp;a.model.dragX&lt;h.x+h.width&amp;&amp;(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&amp;&amp;a.model.dragX+a.width&gt;p.x&amp;&amp;(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}j(t.parcatsViewModel),N(t.parcatsViewModel),R(t.parcatsViewModel),D(t.parcatsViewModel)}}function O(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;null!==t.dragDimensionDisplayInd){n.select(this).selectAll(&quot;text&quot;).attr(&quot;font-weight&quot;,&quot;normal&quot;);var e={},r=z(t.parcatsViewModel),i=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==i[e]}));o&amp;&amp;i.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[&quot;dimensions[&quot;+i+&quot;].displayindex&quot;]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryarray&quot;]=[u],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].ticktext&quot;]=[f],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryorder&quot;]=&quot;array&quot;}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)&amp;&amp;!t.dragHasMoved&amp;&amp;t.potentialClickBand&amp;&amp;(&quot;color&quot;===t.parcatsViewModel.hoveron?S(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent):M(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,j(t.parcatsViewModel),N(t.parcatsViewModel),n.transition().duration(300).ease(&quot;cubic-in-out&quot;).each((function(){R(t.parcatsViewModel,!0),D(t.parcatsViewModel,!0)})).each(&quot;end&quot;,(function(){(o||s)&amp;&amp;a.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n&lt;r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function D(t,e){var r;void 0===e&amp;&amp;(e=!1),t.pathSelection.data((function(t){return t.paths}),p),(r=t.pathSelection,e?r.transition():r).attr(&quot;d&quot;,(function(t){return t.svgD}))}function R(t,e){function r(t){return e?t.transition():t}void 0===e&amp;&amp;(e=!1),t.dimensionSelection.data((function(t){return t.dimensions}),p);var i=t.dimensionSelection.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),p);r(t.dimensionSelection).attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),r(i).attr(&quot;transform&quot;,(function(t){return l(0,t.y)})),i.select(&quot;.dimlabel&quot;).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})),i.select(&quot;.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return d(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;x&quot;,(function(t){return d(t)?t.width+5:-5})).each((function(t){var e,r;d(t)?(e=t.width+5,r=&quot;start&quot;):(e=-5,r=&quot;end&quot;),n.select(this).selectAll(&quot;tspan&quot;).attr(&quot;x&quot;,e).attr(&quot;text-anchor&quot;,r)}));var a=i.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),p),o=a.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;cursor&quot;,&quot;move&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);a.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})),k(o),a.each((function(){s.raiseToTop(this)})),a.exit().remove()}function F(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=&quot;all&quot;===o.hoverinfo?[&quot;count&quot;,&quot;probability&quot;]:(o.hoverinfo||&quot;&quot;).split(&quot;+&quot;);var g={trace:o,key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};return i.dimensions&amp;&amp;(j(g),N(g)),g}function B(t,e,r,n,a){var o,s,l=[],c=[];for(s=0;s&lt;r.length-1;s++)o=i(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=&quot;M &quot;+t[0]+&quot;,&quot;+e[0];for(u+=&quot;l&quot;+r[0]+&quot;,0 &quot;,s=1;s&lt;r.length;s++)u+=&quot;C&quot;+l[s-1]+&quot;,&quot;+e[s-1]+&quot; &quot;+c[s-1]+&quot;,&quot;+e[s]+&quot; &quot;+t[s]+&quot;,&quot;+e[s],u+=&quot;l&quot;+r[s]+&quot;,0 &quot;;for(u+=&quot;l0,&quot;+n+&quot; &quot;,u+=&quot;l -&quot;+r[r.length-1]+&quot;,0 &quot;,s=r.length-2;s&gt;=0;s--)u+=&quot;C&quot;+c[s]+&quot;,&quot;+(e[s+1]+n)+&quot; &quot;+l[s]+&quot;,&quot;+(e[s]+n)+&quot; &quot;+(t[s]+r[s])+&quot;,&quot;+(e[s]+n),u+=&quot;l-&quot;+r[s]+&quot;,0 &quot;;return u+=&quot;Z&quot;}function N(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&amp;&amp;c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return&quot;backward&quot;===t.sortpaths&amp;&amp;(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&amp;&amp;(n.unshift(e.rawColor),i.unshift(r.rawColor)),n&lt;i?-1:n&gt;i?1:0}));for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),g=0;g&lt;c.length;g++){var m,v=c[g];m=p&gt;0?d*(v.count/p):0;for(var y,x=new Array(n.length),b=0;b&lt;v.categoryInds.length;b++){var _=v.categoryInds[b],w=i[b][_],T=a[b];x[T]=n[T][w],n[T][w]+=m;var k=t.dimensions[T].categories[w],A=k.bands.length,M=k.bands[A-1];if(void 0===M||v.rawColor!==M.rawColor){var S=void 0===M?0:M.y+M.height;k.bands.push({key:S,color:v.color,rawColor:v.rawColor,height:m,width:k.width,count:v.count,y:S,categoryViewModel:k,parcatsViewModel:t})}else{var E=k.bands[A-1];E.height+=m,E.count+=v.count}}y=&quot;hspline&quot;===t.pathShape?B(s,x,l,m,.5):B(s,x,l,m,0),h[g]={key:v.valueInds[0],model:v,height:m,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function j(t){var e=t.model.dimensions.map((function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}}));e.sort((function(t,e){return t.displayInd-e.displayInd}));var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(U(t,a))}t.dimensions=r}function U(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n&gt;1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),g=8*(f-h)/2,m=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(m.sort((function(t,e){return t.displayInd-e.displayInd})),c=0;c&lt;h;c++)l=m[c].categoryInd,o=e.categories[l],a=p&gt;0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:t},g=g+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){h(r,t,n,e)}},{&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plot_api/plot_api&quot;:840,&quot;@plotly/d3&quot;:58,&quot;d3-interpolate&quot;:171,tinycolor2:598}],1179:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcats&quot;);e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{&quot;./parcats&quot;:1178}],1180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/layout_attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports={domain:o({name:&quot;parcoords&quot;,trace:!0,editType:&quot;plot&quot;}),labelangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},labelside:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;plot&quot;}),tickfont:a({editType:&quot;plot&quot;}),rangefont:a({editType:&quot;plot&quot;}),dimensions:l(&quot;dimension&quot;,{label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},tickvals:s({},i.tickvals,{editType:&quot;plot&quot;}),ticktext:s({},i.ticktext,{editType:&quot;plot&quot;}),tickformat:s({},i.tickformat,{editType:&quot;plot&quot;}),visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},constraintrange:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:&quot;1-2&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},multiselect:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}),line:s({editType:&quot;calc&quot;},n(&quot;line&quot;,{colorscaleDflt:&quot;Viridis&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/layout_attributes&quot;:869,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883}],1181:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;@plotly/d3&quot;),a=t(&quot;../../lib/gup&quot;).keyFun,o=t(&quot;../../lib/gup&quot;).repeat,s=t(&quot;../../lib&quot;).sorterAsc,l=t(&quot;../../lib&quot;).strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function h(t,e){return t*(1-f)+e*f}function p(t,e,r,n){if(function(t,e){for(var r=0;r&lt;e.length;r++)if(t&gt;=e[r][0]&amp;&amp;t&lt;=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i&lt;0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*f&lt;i*o;f+=i){var p=f+i,d=e[p];if(i*r&lt;i*h(l,d))return u(l,c);if(i*r&lt;i*d||p===o)return u(d,l);c=l,l=d}}function d(t){t.attr(&quot;x&quot;,-n.bar.captureWidth/2).attr(&quot;width&quot;,n.bar.captureWidth)}function g(t){t.attr(&quot;visibility&quot;,&quot;visible&quot;).style(&quot;visibility&quot;,&quot;visible&quot;).attr(&quot;fill&quot;,&quot;yellow&quot;).attr(&quot;opacity&quot;,0)}function m(t){if(!t.brush.filterSpecified)return&quot;0,&quot;+t.height;for(var e,r,n,i=v(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s&lt;i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)&lt;i.length&amp;&amp;(o=i[n][0]-e[1]);return a.push(t.height),a}function v(t,e){return t.map((function(t){return t.map((function(t){return Math.max(0,t*e)})).sort(s)}))}function y(){i.select(document.body).style(&quot;cursor&quot;,null)}function x(t){t.attr(&quot;stroke-dasharray&quot;,m)}function b(t,e){var r=i.select(t).selectAll(&quot;.highlight, .highlight-shadow&quot;);x(e?r.transition().duration(n.bar.snapDuration).each(&quot;end&quot;,e):r)}function _(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=v(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r&lt;=c.length;r++){var p=c[r];if(p&amp;&amp;p[0]&lt;=e&amp;&amp;e&lt;=p[1]){u=r;break}if(f=r?r-1:NaN,p&amp;&amp;p[0]&gt;e){h=r;break}}if(a=u,isNaN(a)&amp;&amp;(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]&lt;c[h][0]-e?f:h),!isNaN(a)){var d=c[a],g=function(t,e){var r=n.bar.handleHeight;if(!(e&gt;t[1]+r||e&lt;t[0]-r))return e&gt;=.9*t[1]+.1*t[0]?&quot;n&quot;:e&lt;=.9*t[0]+.1*t[1]?&quot;s&quot;:&quot;ns&quot;}(d,e);g&amp;&amp;(o.interval=l[a],o.intervalPix=d,o.region=g)}}if(t.ordinal&amp;&amp;!o.region){var m=t.unitTickvals,y=t.unitToPaddedPx.invert(e);for(r=0;r&lt;m.length;r++){var x=[.25*m[Math.max(r-1,0)]+.75*m[r],.25*m[Math.min(r+1,m.length-1)]+.75*m[r]];if(y&gt;=x[0]&amp;&amp;y&lt;=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),b(t.parentNode)}function T(t,e){var r=_(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a=&quot;crosshair&quot;;r.clickableOrdinalRange?a=&quot;pointer&quot;:r.region&amp;&amp;(a=r.region+&quot;-resize&quot;),i.select(document.body).style(&quot;cursor&quot;,a)}function k(t){t.on(&quot;mousemove&quot;,(function(t){i.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on(&quot;mouseleave&quot;,(function(t){t.parent.inBrushDrag||y()})).call(i.behavior.drag().on(&quot;dragstart&quot;,(function(t){!function(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=_(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar=&quot;ns&quot;===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&amp;&amp;o.filterSpecified?o.filter.getConsolidated():[],l&amp;&amp;(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&amp;&amp;t[1]!==l[1]}))),c.startExtent=s.region?l[&quot;s&quot;===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}(this,t)})).on(&quot;drag&quot;,(function(t){w(this,t)})).on(&quot;dragend&quot;,(function(t){!function(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&amp;&amp;e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&amp;&amp;M(r)):M(r),a.brushCallback(e),b(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]&lt;l[0]&amp;&amp;l.reverse(),a.newExtent=[p(0,l,a.newExtent[0],a.stayingIntervals),p(1,l,a.newExtent[1],a.stayingIntervals)];var c=a.newExtent[1]&gt;a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||M(r),a.brushCallback(e),c?b(t.parentNode,s):(s(),b(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,t)})))}function A(t,e){return t[0]-e[0]}function M(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&amp;&amp;i[0]&lt;=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&amp;&amp;n[0][0]&gt;n[0][1]&amp;&amp;(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(A)).length&amp;&amp;r[0][0]===-1/0&amp;&amp;r[0][1]===1/0&amp;&amp;(r=[[0,-1]]),t=S(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t,e){var r=t.selectAll(&quot;.&quot;+n.cn.axisBrush).data(o,a);r.enter().append(&quot;g&quot;).classed(n.cn.axisBrush,!0),function(t,e){var r=t.selectAll(&quot;.background&quot;).data(o);r.enter().append(&quot;rect&quot;).classed(&quot;background&quot;,!0).call(d).call(g).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,l(0,n.verticalPadding)),r.call(k).attr(&quot;height&quot;,(function(t){return t.height-n.verticalPadding}));var i=t.selectAll(&quot;.highlight-shadow&quot;).data(o);i.enter().append(&quot;line&quot;).classed(&quot;highlight-shadow&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width+n.bar.strokeWidth).attr(&quot;stroke&quot;,e).attr(&quot;opacity&quot;,n.bar.strokeOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),i.attr(&quot;y1&quot;,(function(t){return t.height})).call(x);var a=t.selectAll(&quot;.highlight&quot;).data(o);a.enter().append(&quot;line&quot;).classed(&quot;highlight&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width-n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.fillColor).attr(&quot;opacity&quot;,n.bar.fillOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),a.attr(&quot;y1&quot;,(function(t){return t.height})).call(x)}(r,e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?S(t.sort(A)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[p(0,r,t[0],[]),p(1,r,t[1],[])];if(e[1]&gt;e[0])return e})).filter((function(t){return t}))).length)return}return t.length&gt;1?t:t[0]}}},{&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800,&quot;./constants&quot;:1184,&quot;@plotly/d3&quot;:58}],1182:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;parcoords&quot;,r.plot=function(t){var e=i(t.calcdata,&quot;parcoords&quot;)[0];e.length&amp;&amp;a(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcoords&quot;),a=e._has&amp;&amp;e._has(&quot;parcoords&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.parcoords&quot;).remove(),n._glimages.selectAll(&quot;*&quot;).remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.style.width,height:this.style.height})})),window.setTimeout((function(){n.selectAll(&quot;#filterBarPattern&quot;).attr(&quot;id&quot;,&quot;filterBarPattern&quot;)}),60)}},{&quot;../../constants/xmlns_namespaces&quot;:780,&quot;../../plots/get_data&quot;:891,&quot;./plot&quot;:1191,&quot;@plotly/d3&quot;:58}],1183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale&quot;),a=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(t,e){var r,o;return i.hasColorscale(e,&quot;line&quot;)&amp;&amp;n(e.line.color)?(r=e.line.color,o=i.extractOpts(e.line).colorscale,i.calc(t,e,{vals:r,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;})):(r=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=.5;return e}(e._length),o=[[0,e.line.color],[1,e.line.color]]),a({lineColor:r,cscale:o})}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800}],1184:[function(t,e,r){&quot;use strict&quot;;e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[&quot;contextLineLayer&quot;,&quot;focusLineLayer&quot;,&quot;pickLineLayer&quot;],axisTitleOffset:28,axisExtentOffset:10,deselectedLineColor:&quot;#777&quot;,bar:{width:4,captureWidth:10,fillColor:&quot;magenta&quot;,fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:&quot;axis-extent-text&quot;,parcoordsLineLayers:&quot;parcoords-line-layers&quot;,parcoordsLineLayer:&quot;parcoords-lines&quot;,parcoords:&quot;parcoords&quot;,parcoordsControlView:&quot;parcoords-control-view&quot;,yAxis:&quot;y-axis&quot;,axisOverlays:&quot;axis-overlays&quot;,axis:&quot;axis&quot;,axisHeading:&quot;axis-heading&quot;,axisTitle:&quot;axis-title&quot;,axisExtent:&quot;axis-extent&quot;,axisExtentTop:&quot;axis-extent-top&quot;,axisExtentTopText:&quot;axis-extent-top-text&quot;,axisExtentBottom:&quot;axis-extent-bottom&quot;,axisExtentBottomText:&quot;axis-extent-bottom-text&quot;,axisBrush:&quot;axis-brush&quot;},id:{filterBarPattern:&quot;filter-bar-pattern&quot;}}},{}],1185:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;./attributes&quot;),u=t(&quot;./axisbrush&quot;),f=t(&quot;./constants&quot;).maxDimensionCount,h=t(&quot;./merge_length&quot;);function p(t,e,r,i){function a(r,i){return n.coerce(t,e,c.dimensions,r,i)}var o=a(&quot;values&quot;),s=a(&quot;visible&quot;);if(o&amp;&amp;o.length||(s=e.visible=!1),s){a(&quot;label&quot;),a(&quot;tickvals&quot;),a(&quot;ticktext&quot;),a(&quot;tickformat&quot;);var f=a(&quot;range&quot;);e._ax={_id:&quot;y&quot;,type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;,range:f},l.setConvert(e._ax,i.layout),a(&quot;multiselect&quot;);var h=a(&quot;constraintrange&quot;);h&amp;&amp;(e.constraintrange=u.cleanRanges(h,e))}}e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,c,r,i)}var d=t.dimensions;Array.isArray(d)&amp;&amp;d.length&gt;f&amp;&amp;(n.log(&quot;parcoords traces support up to &quot;+f+&quot; dimensions at the moment&quot;),d.splice(f));var g=s(t,e,{name:&quot;dimensions&quot;,layout:l,handleItemDefaults:p}),m=function(t,e,r,o,s){var l=s(&quot;line.color&quot;,r);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,l,u);o(e,l,u),Array.isArray(g)&amp;&amp;g.length||(e.visible=!1),h(e,g,&quot;values&quot;,m);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,&quot;labelfont&quot;,v),n.coerceFont(u,&quot;tickfont&quot;,v),n.coerceFont(u,&quot;rangefont&quot;,v),u(&quot;labelangle&quot;),u(&quot;labelside&quot;)}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/domain&quot;:882,&quot;./attributes&quot;:1180,&quot;./axisbrush&quot;:1181,&quot;./constants&quot;:1184,&quot;./merge_length&quot;:1189}],1186:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!(&quot;visible&quot;in t)}},{&quot;../../lib&quot;:803}],1187:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcoords&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],meta:{}}},{&quot;./attributes&quot;:1180,&quot;./base_plot&quot;:1182,&quot;./calc&quot;:1183,&quot;./defaults&quot;:1185,&quot;./plot&quot;:1191}],1188:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n               p17_20, p21_24, p25_28, p29_32,\n               p33_36, p37_40, p41_44, p45_48,\n               p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n             loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\nuniform sampler2D maskTexture, palette;\n\nbool isPick    = (drwLayer &gt; 1.5);\nbool isContext = (drwLayer &lt; 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n    return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n    float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n    return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n    return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n    return (lo &lt; hi) &amp;&amp; (lo &gt; p || p &gt; hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n    return (\n        fOutside(p[0], lo[0], hi[0]) ||\n        fOutside(p[1], lo[1], hi[1]) ||\n        fOutside(p[2], lo[2], hi[2]) ||\n        fOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n    return (\n        vOutside(p[0], lo[0], hi[0]) ||\n        vOutside(p[1], lo[1], hi[1]) ||\n        vOutside(p[2], lo[2], hi[2]) ||\n        vOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n    return mOutside(A, loA, hiA) ||\n           mOutside(B, loB, hiB) ||\n           mOutside(C, loC, hiC) ||\n           mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n    mat4 pnts[4];\n    pnts[0] = A;\n    pnts[1] = B;\n    pnts[2] = C;\n    pnts[3] = D;\n\n    for(int i = 0; i &lt; 4; ++i) {\n        for(int j = 0; j &lt; 4; ++j) {\n            for(int k = 0; k &lt; 4; ++k) {\n                if(0 == iMod(\n                    int(255.0 * texture2D(maskTexture,\n                        vec2(\n                            (float(i * 2 + j / 2) + 0.5) / 8.0,\n                            (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n                        ))[3]\n                    ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n                    2\n                )) return true;\n            }\n        }\n    }\n    return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float x = 0.5 * sign(v) + 0.5;\n    float y = axisY(x, A, B, C, D);\n    float z = 1.0 - abs(v);\n\n    z += isContext ? 0.0 : 2.0 * float(\n        outsideBoundingBox(A, B, C, D) ||\n        outsideRasterMask(A, B, C, D)\n    );\n\n    return vec4(\n        2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n        z,\n        1.0\n    );\n}\n\nvoid main() {\n    mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n    mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n    mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n    mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n    float v = colors[3];\n\n    gl_Position = position(isContext, v, A, B, C, D);\n\n    fragColor =\n        isContext ? vec4(contextColor) :\n        isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n&quot;]),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n    gl_FragColor = fragColor;\n}\n&quot;]),o=t(&quot;./constants&quot;).maxDimensionCount,s=t(&quot;../../lib&quot;),l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:&quot;rgba&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;};function f(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function h(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&amp;&amp;(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],f(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c&lt;i&amp;&amp;(r.currentRafs[o]=window.requestAnimationFrame((function(){s(l+1)}))),r.drawCompleted=!1)}(0)}function p(t,e){for(var r=new Array(256),n=0;n&lt;256;n++)r[n]=t(n/255).concat(e);return r}function d(t,e){return(t&gt;&gt;&gt;8*e)%256/255}function g(t,e,r){for(var n=new Array(8*e),i=0,a=0;a&lt;e;a++)for(var o=0;o&lt;2;o++)for(var s=0;s&lt;4;s++){var l=4*t+s,c=r[64*a+l];63===l&amp;&amp;0===o&amp;&amp;(c*=-1),n[i++]=c}return n}function m(t){var e=&quot;0&quot;+t;return e.substr(e.length-2)}function v(t){return t&lt;o?&quot;p&quot;+m(t+1)+&quot;_&quot;+m(t+4):&quot;colors&quot;}function y(t,e,r,n,i,a,o,l,c,u,f,h,p,d){for(var g=[[],[]],m=0;m&lt;64;m++)g[0][m]=m===i?1:0,g[1][m]=m===a?1:0;o*=d,l*=d,c*=d,u*=d;var v=t.lines.canvasOverdrag*d,y=t.domain,x=t.canvasWidth*d,b=t.canvasHeight*d,_=t.pad.l*d,w=t.pad.b*d,T=t.layoutHeight*d,k=t.layoutWidth*d,A=t.deselectedLines.color;return s.extendFlat({key:f,resolution:[x,b],viewBoxPos:[o+v,l],viewBoxSize:[c,u],i0:i,i1:a,dim0A:g[0].slice(0,16),dim0B:g[0].slice(16,32),dim0C:g[0].slice(32,48),dim0D:g[0].slice(48,64),dim1A:g[1].slice(0,16),dim1B:g[1].slice(16,32),dim1C:g[1].slice(32,48),dim1D:g[1].slice(48,64),drwLayer:h,contextColor:[A[0]/255,A[1]/255,A[2]/255,A[3]&lt;1?A[3]:Math.max(1/255,Math.pow(1/t.lines.color.length,1/3))],scissorX:(n===e?0:o+v)+(_-v)+k*y.x[0],scissorWidth:(n===r?x-o+v:c+.5)+(n===e?o+v:0),scissorY:l+w+T*y.y[0],scissorHeight:u,viewportX:_-v+k*y.x[0],viewportY:w+T*y.y[0],viewportWidth:x,viewportHeight:b},p)}function x(t){var e=Math.max(0,Math.floor(2047*t[0]),0),r=Math.min(2047,Math.ceil(2047*t[1]),2047);return[Math.min(e,r),Math.max(e,r)]}e.exports=function(t,e){var r,n,l,m,b,_=e.context,w=e.pick,T=e.regl,k=T._gl,A=k.getParameter(k.ALIASED_LINE_WIDTH_RANGE),M=Math.max(A[0],Math.min(A[1],e.viewModel.plotGlPixelRatio)),S={currentRafs:{},drawCompleted:!0,clearOnly:!1},E=function(t){for(var e={},r=0;r&lt;=o;r+=4)e[v(r)]=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)});return e}(T),L=T.texture(u),C=[];I(e);var P=T({profile:!1,blend:{enable:_,func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:1,dstAlpha:1},equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},color:[0,0,0,0]},depth:{enable:!_,mask:!0,func:&quot;less&quot;,range:[0,1]},cull:{enable:!0,face:&quot;back&quot;},scissor:{enable:!0,box:{x:T.prop(&quot;scissorX&quot;),y:T.prop(&quot;scissorY&quot;),width:T.prop(&quot;scissorWidth&quot;),height:T.prop(&quot;scissorHeight&quot;)}},viewport:{x:T.prop(&quot;viewportX&quot;),y:T.prop(&quot;viewportY&quot;),width:T.prop(&quot;viewportWidth&quot;),height:T.prop(&quot;viewportHeight&quot;)},dither:!1,vert:i,frag:a,primitive:&quot;lines&quot;,lineWidth:M,attributes:E,uniforms:{resolution:T.prop(&quot;resolution&quot;),viewBoxPos:T.prop(&quot;viewBoxPos&quot;),viewBoxSize:T.prop(&quot;viewBoxSize&quot;),dim0A:T.prop(&quot;dim0A&quot;),dim1A:T.prop(&quot;dim1A&quot;),dim0B:T.prop(&quot;dim0B&quot;),dim1B:T.prop(&quot;dim1B&quot;),dim0C:T.prop(&quot;dim0C&quot;),dim1C:T.prop(&quot;dim1C&quot;),dim0D:T.prop(&quot;dim0D&quot;),dim1D:T.prop(&quot;dim1D&quot;),loA:T.prop(&quot;loA&quot;),hiA:T.prop(&quot;hiA&quot;),loB:T.prop(&quot;loB&quot;),hiB:T.prop(&quot;hiB&quot;),loC:T.prop(&quot;loC&quot;),hiC:T.prop(&quot;hiC&quot;),loD:T.prop(&quot;loD&quot;),hiD:T.prop(&quot;hiD&quot;),palette:L,contextColor:T.prop(&quot;contextColor&quot;),maskTexture:T.prop(&quot;maskTexture&quot;),drwLayer:T.prop(&quot;drwLayer&quot;),maskHeight:T.prop(&quot;maskHeight&quot;)},offset:T.prop(&quot;offset&quot;),count:T.prop(&quot;count&quot;)});function I(t){r=t.model,n=t.viewModel,l=n.dimensions.slice(),m=l[0]?l[0].values.length:0;var e=r.lines,i=w?e.color.map((function(t,r){return r/e.color.length})):e.color,a=function(t,e,r){for(var n,i=new Array(t*(o+4)),a=0,s=0;s&lt;t;s++){for(var l=0;l&lt;o;l++)i[a++]=l&lt;e.length?e[l].paddedUnitValues[s]:.5;i[a++]=d(s,2),i[a++]=d(s,1),i[a++]=d(s,0),i[a++]=(n=r[s],Math.max(1e-6,Math.min(.999999,n)))}return i}(m,l,i);!function(t,e,r){for(var n=0;n&lt;=o;n+=4)t[v(n)](g(n/4,e,r))}(E,m,a),_||w||(L=T.texture(s.extendFlat({data:p(r.unitToColor,255)},u)))}return{render:function(t,e,n){var i,a,o,s=t.length,c=1/0,u=-1/0;for(i=0;i&lt;s;i++)t[i].dim0.canvasX&lt;c&amp;&amp;(c=t[i].dim0.canvasX,a=i),t[i].dim1.canvasX&gt;u&amp;&amp;(u=t[i].dim1.canvasX,o=i);0===s&amp;&amp;f(T,0,0,r.canvasWidth,r.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n&lt;64;n++){var a=!t&amp;&amp;n&lt;l.length?l[n].brush.filter.getBounds():[-1/0,1/0];i[0][n]=a[0],i[1][n]=a[1]}var o=new Array(16384);for(e=0;e&lt;16384;e++)o[e]=255;if(!t)for(e=0;e&lt;l.length;e++){var s=e%8,c=(e-s)/8,u=Math.pow(2,s),f=l[e].brush.filter.get();if(!(f.length&lt;2)){var h=x(f[0])[1];for(r=1;r&lt;f.length;r++){var p=x(f[r]);for(n=h+1;n&lt;p[0];n++)o[8*n+c]&amp;=~u;h=Math.max(h,p[1])}}}var d={shape:[8,2048],format:&quot;alpha&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;,data:o};return b?b(d):b=T.texture(d),{maskTexture:b,maskHeight:2048,loA:i[0].slice(0,16),loB:i[0].slice(16,32),loC:i[0].slice(32,48),loD:i[0].slice(48,64),hiA:i[1].slice(0,16),hiB:i[1].slice(16,32),hiC:i[1].slice(32,48),hiD:i[1].slice(48,64)}}(_);for(i=0;i&lt;s;i++){var d=t[i],g=d.dim0.crossfilterDimensionIndex,v=d.dim1.crossfilterDimensionIndex,k=d.canvasX,A=d.canvasY,M=k+d.panelSizeX,E=d.plotGlPixelRatio;if(e||!C[g]||C[g][0]!==k||C[g][1]!==M){C[g]=[k,M];var L=y(r,a,o,i,g,v,k,A,d.panelSizeX,d.panelSizeY,d.dim0.crossfilterDimensionIndex,_?0:w?2:1,p,E);S.clearOnly=n;var I=e?r.lines.blockLineCount:m;h(T,P,S,I,m,L)}}},readPixel:function(t,e){return T.read({x:t,y:e,width:1,height:1,data:c}),c},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return T.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[&quot;pointer-events&quot;]=&quot;none&quot;,L.destroy(),b&amp;&amp;b.destroy(),E)E[e].destroy()},update:I}}},{&quot;../../lib&quot;:803,&quot;./constants&quot;:1184,glslify:442}],1189:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(n=Math.min(n,a[r].length));for(n===1/0&amp;&amp;(n=0),t._length=n,i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(a._length=n);return n}},{}],1190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;color-rgba&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=i.strRotate,c=i.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../components/colorscale&quot;),p=t(&quot;../../lib/gup&quot;),d=p.keyFun,g=p.repeat,m=p.unwrap,v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;./axisbrush&quot;),b=t(&quot;./lines&quot;);function _(t,e,r){return i.aggNums(t,null,e,r)}function w(t,e){return k(_(Math.min,t,e),_(Math.max,t,e))}function T(t){var e=t.range;return e?k(e[0],e[1]):w(t.values,t._length)}function k(t,e){return!isNaN(t)&amp;&amp;isFinite(t)||(t=0),!isNaN(e)&amp;&amp;isFinite(e)||(e=0),t===e&amp;&amp;(0===t?(t-=1,e+=1):(t*=.9,e*=1.1)),[t,e]}function A(t,e,r,i,o){var s,l,c=T(r);return i?n.scale.ordinal().domain(i.map((s=a(r.tickformat),l=o,l?function(t,e){var r=l[e];return null==r?s(t):r}:s))).range(i.map((function(r){var n=(r-c[0])/(c[1]-c[0]);return t-e+n*(2*e-t)}))):n.scale.linear().domain(c).range([t-e,e])}function M(t){if(t.tickvals){var e=T(t);return n.scale.ordinal().domain(t.tickvals).range(t.tickvals.map((function(t){return(t-e[0])/(e[1]-e[0])})))}}function S(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){var e=o(t[1]);return n.rgb(&quot;rgb(&quot;+e[0]+&quot;,&quot;+e[1]+&quot;,&quot;+e[2]+&quot;)&quot;)})),i=&quot;rgb&quot;.split(&quot;&quot;).map((function(t){return n.scale.linear().clamp(!0).domain(e).range(r.map((i=t,function(t){return t[i]})));var i}));return function(t){return i.map((function(e){return e(t)}))}}function E(t){return t.dimensions.some((function(t){return t.brush.filterSpecified}))}function L(t,e,r){var a=m(e),s=a.trace,l=v.convertTypedArray(a.lineColor),c=s.line,u={color:o(y.deselectedLineColor)},f=h.extractOpts(c),p=f.reversescale?h.flipScale(a.cscale):a.cscale,d=s.domain,g=s.dimensions,x=t.width,b=s.labelangle,_=s.labelside,w=s.labelfont,k=s.tickfont,A=s.rangefont,M=i.extendDeepNoArrays({},c,{color:l.map(n.scale.linear().domain(T({values:l,range:[f.min,f.max],_length:s._length}))),blockLineCount:y.blockLineCount,canvasOverdrag:y.overdrag*y.canvasPixelRatio}),E=Math.floor(x*(d.x[1]-d.x[0])),L=Math.floor(t.height*(d.y[1]-d.y[0])),C=t.margin||{l:80,r:80,t:100,b:80},P=E,I=L;return{key:r,colCount:g.filter(v.isVisible).length,dimensions:g,tickDistance:y.tickDistance,unitToColor:S(p),lines:M,deselectedLines:u,labelAngle:b,labelSide:_,labelFont:w,tickFont:k,rangeFont:A,layoutWidth:x,layoutHeight:t.height,domain:d,translateX:d.x[0]*x,translateY:t.height-d.y[1]*t.height,pad:C,canvasWidth:P*y.canvasPixelRatio+2*M.canvasOverdrag,canvasHeight:I*y.canvasPixelRatio,width:P,height:I,canvasPixelRatio:y.canvasPixelRatio}}function C(t,e,r){var o=r.width,s=r.height,l=r.dimensions,c=r.canvasPixelRatio,u=function(t){return o*t/Math.max(1,r.colCount-1)},f=y.verticalPadding/s,h=function(t,e){return n.scale.linear().range([e,t-e])}(s,y.verticalPadding),p={key:r.key,xScale:u,model:r,inBrushDrag:!1},d={};return p.dimensions=l.filter(v.isVisible).map((function(o,l){var g=function(t,e){return n.scale.linear().domain(T(t)).range([e,1-e])}(o,f),m=d[o.label];d[o.label]=(m||0)+1;var b=o.label+(m?&quot;__&quot;+m:&quot;&quot;),_=o.constraintrange,w=_&amp;&amp;_.length;w&amp;&amp;!Array.isArray(_[0])&amp;&amp;(_=[_]);var k=w?_.map((function(t){return t.map(g)})):[[-1/0,1/0]],S=o.values;S.length&gt;o._length&amp;&amp;(S=S.slice(0,o._length));var L,C=o.tickvals;function P(t,e){return{val:t,text:L[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(C)&amp;&amp;C.length){L=o.ticktext,Array.isArray(L)&amp;&amp;L.length?L.length&gt;C.length?L=L.slice(0,C.length):C.length&gt;L.length&amp;&amp;(C=C.slice(0,L.length)):L=C.map(a(o.tickformat));for(var O=1;O&lt;C.length;O++)if(C[O]&lt;C[O-1]){for(var z=C.map(P).sort(I),D=0;D&lt;C.length;D++)C[D]=z[D].val,L[D]=z[D].text;break}}else C=void 0;return S=v.convertTypedArray(S),{key:b,label:o.label,tickFormat:o.tickformat,tickvals:C,ticktext:L,ordinal:v.isOrdinal(o),multiselect:o.multiselect,xIndex:l,crossfilterDimensionIndex:l,visibleIndex:o._index,height:s,values:S,paddedUnitValues:S.map(g),unitTickvals:C&amp;&amp;C.map(g),xScale:u,x:u(l),canvasX:u(l)*c,unitToPaddedPx:h,domainScale:A(s,y.verticalPadding,o,C,L),ordinalScale:M(o),parent:p,model:r,brush:x.makeBrush(t,w,k,(function(){t.linePickActive(!1)}),(function(){var e=p;e.focusLayer&amp;&amp;e.focusLayer.render(e.panels,!0);var r=E(e);!t.contextShown()&amp;&amp;r?(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&amp;&amp;!r&amp;&amp;(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))}),(function(r){if(p.focusLayer.render(p.panels,!0),p.pickLayer&amp;&amp;p.pickLayer.render(p.panels,!0),t.linePickActive(!0),e&amp;&amp;e.filterChanged){var n=g.invert,a=r.map((function(t){return t.map(n).sort(i.sorterAsc)})).sort((function(t,e){return t[0]-e[0]}));e.filterChanged(p.key,o._index,a)}}))}})),p}function P(t){t.classed(y.cn.axisExtentText,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;default&quot;)}function I(t,e){var r=&quot;top&quot;===e?1:-1,n=t*Math.PI/180;return{dir:r,dx:Math.sin(n),dy:Math.cos(n),degrees:t}}function O(t,e,r){for(var n=e.panels||(e.panels=[]),i=t.data(),a=0;a&lt;i.length-1;a++){var o=n[a]||(n[a]={}),s=i[a],l=i[a+1];o.dim0=s,o.dim1=l,o.canvasX=s.canvasX,o.panelSizeX=l.canvasX-s.canvasX,o.panelSizeY=e.model.canvasHeight,o.y=0,o.canvasY=0,o.plotGlPixelRatio=r}}function z(t,e){return s.tickText(t._ax,e,!1).text}function D(t,e){if(t.ordinal)return&quot;&quot;;var r=t.domainScale.domain(),n=r[e?r.length-1:0];return z(t.model.dimensions[t.visibleIndex],n)}e.exports=function(t,e,r,a){var o=t._fullLayout,h=o._toppaper,p=o._glcontainer,_=t._context.plotGlPixelRatio,T=t._fullLayout.paper_bgcolor;!function(t){for(var e=0;e&lt;t.length;e++)for(var r=0;r&lt;t[e].length;r++)for(var n=t[e][r].trace,i=n.dimensions,a=0;a&lt;i.length;a++){var o=i[a].values,l=i[a]._ax;l&amp;&amp;(l.range?l.range=k(l.range[0],l.range[1]):l.range=w(o,n._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=i[a].tickformat,s.calcTicks(l),l.cleanRange())}}(e);var A,M,S=(A=!0,M=!1,{linePickActive:function(t){return arguments.length?A=!!t:A},contextShown:function(t){return arguments.length?M=!!t:M}}),R=e.filter((function(t){return m(t).trace.visible})).map(L.bind(0,r)).map(C.bind(0,S,a));p.each((function(t,e){return i.extendFlat(t,R[e])}));var F=p.selectAll(&quot;.gl-canvas&quot;).each((function(t){t.viewModel=R[0],t.viewModel.plotGlPixelRatio=_,t.viewModel.paperColor=T,t.model=t.viewModel?t.viewModel.model:null})),B=null;F.filter((function(t){return t.pick})).style(&quot;pointer-events&quot;,&quot;auto&quot;).on(&quot;mousemove&quot;,(function(t){if(S.linePickActive()&amp;&amp;t.lineLayer&amp;&amp;a&amp;&amp;a.hover){var e=n.event,r=this.width,i=this.height,o=n.mouse(this),s=o[0],l=o[1];if(s&lt;0||l&lt;0||s&gt;=r||l&gt;=i)return;var c=t.lineLayer.readPixel(s,i-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,h={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==B&amp;&amp;(u?a.hover(h):a.unhover&amp;&amp;a.unhover(h),B=f)}})),F.style(&quot;opacity&quot;,(function(t){return t.pick?0:1})),h.style(&quot;background&quot;,&quot;rgba(255, 255, 255, 0)&quot;);var N=h.selectAll(&quot;.&quot;+y.cn.parcoords).data(R,d);N.exit().remove(),N.enter().append(&quot;g&quot;).classed(y.cn.parcoords,!0).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;none&quot;),N.attr(&quot;transform&quot;,(function(t){return c(t.model.translateX,t.model.translateY)}));var j=N.selectAll(&quot;.&quot;+y.cn.parcoordsControlView).data(g,d);j.enter().append(&quot;g&quot;).classed(y.cn.parcoordsControlView,!0),j.attr(&quot;transform&quot;,(function(t){return c(t.model.pad.l,t.model.pad.t)}));var U=j.selectAll(&quot;.&quot;+y.cn.yAxis).data((function(t){return t.dimensions}),d);U.enter().append(&quot;g&quot;).classed(y.cn.yAxis,!0),j.each((function(t){O(U,t,_)})),F.each((function(t){if(t.viewModel){!t.lineLayer||a?t.lineLayer=b(this,t):t.lineLayer.update(t),(t.key||0===t.key)&amp;&amp;(t.viewModel[t.key]=t.lineLayer);var e=!t.context||a;t.lineLayer.render(t.viewModel.panels,e)}})),U.attr(&quot;transform&quot;,(function(t){return c(t.xScale(t.xIndex),0)})),U.call(n.behavior.drag().origin((function(t){return t})).on(&quot;drag&quot;,(function(t){var e=t.parent;S.linePickActive(!1),t.x=Math.max(-y.overdrag,Math.min(t.model.width+y.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,U.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),O(U,e,_),U.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr(&quot;transform&quot;,(function(t){return c(t.xScale(t.xIndex),0)})),n.select(this).attr(&quot;transform&quot;,c(t.x,0)),U.each((function(r,n,i){i===t.parent.key&amp;&amp;(e.dimensions[n]=r)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!E(e)),e.focusLayer.render&amp;&amp;e.focusLayer.render(e.panels)})).on(&quot;dragend&quot;,(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,O(U,e,_),n.select(this).attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!E(e)),e.focusLayer&amp;&amp;e.focusLayer.render(e.panels),e.pickLayer&amp;&amp;e.pickLayer.render(e.panels,!0),S.linePickActive(!0),a&amp;&amp;a.axesMoved&amp;&amp;a.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),U.exit().remove();var V=U.selectAll(&quot;.&quot;+y.cn.axisOverlays).data(g,d);V.enter().append(&quot;g&quot;).classed(y.cn.axisOverlays,!0),V.selectAll(&quot;.&quot;+y.cn.axis).remove();var q=V.selectAll(&quot;.&quot;+y.cn.axis).data(g,d);q.enter().append(&quot;g&quot;).classed(y.cn.axis,!0),q.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient(&quot;left&quot;).tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return v.isOrdinal(t)?e:z(t.model.dimensions[t.visibleIndex],e)})).scale(r)),f.font(q.selectAll(&quot;text&quot;),t.model.tickFont)})),q.selectAll(&quot;.domain, .tick&gt;line&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-opacity&quot;,.25).attr(&quot;stroke-width&quot;,&quot;1px&quot;),q.selectAll(&quot;text&quot;).style(&quot;text-shadow&quot;,u.makeTextShadow(T)).style(&quot;cursor&quot;,&quot;default&quot;);var H=V.selectAll(&quot;.&quot;+y.cn.axisHeading).data(g,d);H.enter().append(&quot;g&quot;).classed(y.cn.axisHeading,!0);var G=H.selectAll(&quot;.&quot;+y.cn.axisTitle).data(g,d);G.enter().append(&quot;text&quot;).classed(y.cn.axisTitle,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;ew-resize&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;),G.text((function(t){return t.label})).each((function(e){var r=n.select(this);f.font(r,e.model.labelFont),u.convertToTspans(r,t)})).attr(&quot;transform&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide),r=y.axisTitleOffset;return(e.dir&gt;0?&quot;&quot;:c(0,2*r+t.model.height))+l(e.degrees)+c(-r*e.dx,-r*e.dy)})).attr(&quot;text-anchor&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)&gt;Math.abs(e.dy)?e.dir*e.dx&lt;0?&quot;start&quot;:&quot;end&quot;:&quot;middle&quot;}));var Y=V.selectAll(&quot;.&quot;+y.cn.axisExtent).data(g,d);Y.enter().append(&quot;g&quot;).classed(y.cn.axisExtent,!0);var W=Y.selectAll(&quot;.&quot;+y.cn.axisExtentTop).data(g,d);W.enter().append(&quot;g&quot;).classed(y.cn.axisExtentTop,!0),W.attr(&quot;transform&quot;,c(0,-y.axisExtentOffset));var X=W.selectAll(&quot;.&quot;+y.cn.axisExtentTopText).data(g,d);X.enter().append(&quot;text&quot;).classed(y.cn.axisExtentTopText,!0).call(P),X.text((function(t){return D(t,!0)})).each((function(t){f.font(n.select(this),t.model.rangeFont)}));var Z=Y.selectAll(&quot;.&quot;+y.cn.axisExtentBottom).data(g,d);Z.enter().append(&quot;g&quot;).classed(y.cn.axisExtentBottom,!0),Z.attr(&quot;transform&quot;,(function(t){return c(0,t.model.height+y.axisExtentOffset)}));var J=Z.selectAll(&quot;.&quot;+y.cn.axisExtentBottomText).data(g,d);J.enter().append(&quot;text&quot;).classed(y.cn.axisExtentBottomText,!0).attr(&quot;dy&quot;,&quot;0.75em&quot;).call(P),J.text((function(t){return D(t,!1)})).each((function(t){f.font(n.select(this),t.model.rangeFont)})),x.ensureAxisBrush(V,T)}},{&quot;../../components/colorscale&quot;:678,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/cartesian/axes&quot;:854,&quot;./axisbrush&quot;:1181,&quot;./constants&quot;:1184,&quot;./helpers&quot;:1186,&quot;./lines&quot;:1188,&quot;@plotly/d3&quot;:58,&quot;color-rgba&quot;:133}],1191:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcoords&quot;),i=t(&quot;../../lib/prepare_regl&quot;),a=t(&quot;./helpers&quot;).isVisible;function o(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&amp;&amp;(i+=e.length),i}e.exports=function(t,e){var r=t._fullLayout;if(i(t)){var s={},l={},c={},u={},f=r._size;e.forEach((function(e,r){var n=e[0].trace;c[r]=n.index;var i=u[r]=n._fullInput.index;s[r]=t.data[i].dimensions,l[r]=t.data[i].dimensions.slice()}));n(t,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:function(e,n,i){var a=l[e][n],o=i.map((function(t){return t.slice()})),s=&quot;dimensions[&quot;+n+&quot;].constraintrange&quot;,f=r._tracePreGUI[t._fullData[c[e]]._fullInput.uid];if(void 0===f[s]){var h=a.constraintrange;f[s]=h||null}var p=t._fullData[c[e]].dimensions[n];o.length?(1===o.length&amp;&amp;(o=o[0]),a.constraintrange=o,p.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete p.constraintrange,o=null);var d={};d[s]=o,t.emit(&quot;plotly_restyle&quot;,[d,[u[e]]])},hover:function(e){t.emit(&quot;plotly_hover&quot;,e)},unhover:function(e){t.emit(&quot;plotly_unhover&quot;,e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return o(t,e,r)-o(t,e,n)}}(r,l[e].filter(a));s[e].sort(n),l[e].filter((function(t){return!a(t)})).sort((function(t){return l[e].indexOf(t)})).forEach((function(t){s[e].splice(s[e].indexOf(t),1),s[e].splice(l[e].indexOf(t),0,t)})),t.emit(&quot;plotly_restyle&quot;,[{dimensions:[s[e]]},[u[e]]])}})}}},{&quot;../../lib/prepare_regl&quot;:816,&quot;./helpers&quot;:1186,&quot;./parcoords&quot;:1190}],1192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/domain&quot;).attributes,a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/color/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a({editType:&quot;plot&quot;,arrayOk:!0,colorEditType:&quot;plot&quot;});e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},label0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},dlabel:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:o.defaultLine,arrayOk:!0,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoverinfo:c({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:s({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),texttemplate:l({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;radial&quot;,&quot;tangential&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:c({},u,{}),position:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},domain:i({name:&quot;pie&quot;,trace:!0,editType:&quot;calc&quot;}),hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},sort:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;number&quot;,min:-360,max:360,dflt:0,editType:&quot;calc&quot;},pull:{valType:&quot;number&quot;,min:0,max:1,dflt:0,arrayOk:!0,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},titlefont:c({},u,{}),titleposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;calc&quot;}}}},{&quot;../../components/color/attributes&quot;:665,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/template_attributes&quot;:926}],1193:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;pie&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1194:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../components/color&quot;),o={};function s(t){return function(e,r){return!!e&amp;&amp;(!!(e=i(e)).isValid()&amp;&amp;(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e))}}function l(t,e){var r,n=JSON.stringify(t),a=e[n];if(!a){for(a=t.slice(),r=0;r&lt;t.length;r++)a.push(i(t[r]).lighten(20).toHexString());for(r=0;r&lt;t.length;r++)a.push(i(t[r]).darken(20).toHexString());e[n]=a}return a}e.exports={calc:function(t,e){var r,i,a=[],o=t._fullLayout,l=o.hiddenlabels||[],c=e.labels,u=e.marker.colors||[],f=e.values,h=e._length,p=e._hasValues&amp;&amp;h;if(e.dlabel)for(c=new Array(h),r=0;r&lt;h;r++)c[r]=String(e.label0+r*e.dlabel);var d={},g=s(o[&quot;_&quot;+e.type+&quot;colormap&quot;]),m=0,v=!1;for(r=0;r&lt;h;r++){var y,x,b;if(p){if(y=f[r],!n(y))continue;if((y=+y)&lt;0)continue}else y=1;void 0!==(x=c[r])&amp;&amp;&quot;&quot;!==x||(x=r);var _=d[x=String(x)];void 0===_?(d[x]=a.length,(b=-1!==l.indexOf(x))||(m+=y),a.push({v:y,label:x,color:g(u[r],x),i:r,pts:[r],hidden:b})):(v=!0,(i=a[_]).v+=y,i.pts.push(r),i.hidden||(m+=y),!1===i.color&amp;&amp;u[r]&amp;&amp;(i.color=g(u[r],x)))}return(&quot;funnelarea&quot;===e.type?v:e.sort)&amp;&amp;a.sort((function(t,e){return e.v-t.v})),a[0]&amp;&amp;(a[0].vTotal=m),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r=&quot;pie&quot;);var n=t._fullLayout,i=t.calcdata,a=n[r+&quot;colorway&quot;],s=n[&quot;_&quot;+r+&quot;colormap&quot;];n[&quot;extend&quot;+r+&quot;colors&quot;]&amp;&amp;(a=l(a,o));for(var c=0,u=0;u&lt;i.length;u++){var f=i[u];if(f[0].trace.type===r)for(var h=0;h&lt;f.length;h++){var p=f[h];!1===p.color&amp;&amp;(s[p.label]?p.color=s[p.label]:(s[p.label]=p.color=a[c%a.length],c++))}}},makePullColorFn:s,generateExtendedColors:l}},{&quot;../../components/color&quot;:666,&quot;fast-isnumeric&quot;:249,tinycolor2:598}],1195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText;function l(t,e){var r=Array.isArray(t),a=i.isArrayOrTypedArray(e),o=Math.min(r?t.length:1/0,a?e.length:1/0);if(isFinite(o)||(o=0),o&amp;&amp;a){for(var s,l=0;l&lt;o;l++){var c=e[l];if(n(c)&amp;&amp;c&gt;0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c(&quot;labels&quot;),c(&quot;values&quot;)),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),f){e._length=f,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var h,p=c(&quot;text&quot;),d=c(&quot;texttemplate&quot;);if(d||(h=c(&quot;textinfo&quot;,Array.isArray(p)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),d||h&amp;&amp;&quot;none&quot;!==h){var g=c(&quot;textposition&quot;);s(t,e,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||&quot;auto&quot;===g||&quot;outside&quot;===g)&amp;&amp;c(&quot;automargin&quot;),(&quot;inside&quot;===g||&quot;auto&quot;===g||Array.isArray(g))&amp;&amp;c(&quot;insidetextorientation&quot;)}o(e,n,c);var m=c(&quot;hole&quot;);if(c(&quot;title.text&quot;)){var v=c(&quot;title.position&quot;,m?&quot;middle center&quot;:&quot;top center&quot;);m||&quot;middle center&quot;!==v||(e.title.position=&quot;top center&quot;),i.coerceFont(c,&quot;title.font&quot;,n.font)}c(&quot;sort&quot;),c(&quot;direction&quot;),c(&quot;rotation&quot;),c(&quot;pull&quot;)}else e.visible=!1}}},{&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;../bar/defaults&quot;:945,&quot;./attributes&quot;:1192,&quot;fast-isnumeric&quot;:249}],1196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx/helpers&quot;).appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return 1===t.pts.length&amp;&amp;(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),&quot;funnelarea&quot;===e.type&amp;&amp;(delete r.v,delete r.i),r}},{&quot;../../components/fx/helpers&quot;:702}],1197:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return-1!==t.indexOf(&quot;e&quot;)?t.replace(/[.]?0+e/,&quot;e&quot;):-1!==t.indexOf(&quot;.&quot;)?t.replace(/[.]?0+$/,&quot;&quot;):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+&quot;%&quot;},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r&lt;e.length;r++){var n=t[e[r]];if(n||0===n||&quot;&quot;===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0},r.getRotationAngle=function(t){return(&quot;auto&quot;===t?0:t)*Math.PI/180}},{&quot;../../lib&quot;:803}],1198:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOne:t(&quot;./style_one&quot;),moduleType:&quot;trace&quot;,name:&quot;pie&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;pie&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;./attributes&quot;:1192,&quot;./base_plot&quot;:1193,&quot;./calc&quot;:1194,&quot;./defaults&quot;:1195,&quot;./layout_attributes&quot;:1199,&quot;./layout_defaults&quot;:1200,&quot;./plot&quot;:1201,&quot;./style&quot;:1202,&quot;./style_one&quot;:1203}],1199:[function(t,e,r){&quot;use strict&quot;;e.exports={hiddenlabels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},piecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendpiecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;piecolorway&quot;,e.colorway),r(&quot;extendpiecolors&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1199}],1201:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strScale,u=l.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../bar/uniform_text&quot;),p=h.recordMinTextSize,d=h.clearMinTextSize,g=t(&quot;../bar/constants&quot;).TEXTPAD,m=t(&quot;./helpers&quot;),v=t(&quot;./event_data&quot;),y=t(&quot;../../lib&quot;).isValidTextValue;function x(t,e,r){var i=r[0],o=i.cx,s=i.cy,c=i.trace,u=&quot;funnelarea&quot;===c.type;&quot;_hasHoverLabel&quot;in c||(c._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in c||(c._hasHoverEvent=!1),t.on(&quot;mouseover&quot;,(function(t){var r=e._fullLayout,f=e._fullData[c.index];if(!e._dragging&amp;&amp;!1!==r.hovermode){var h=f.hoverinfo;if(Array.isArray(h)&amp;&amp;(h=a.castHoverinfo({hoverinfo:[m.castOption(h,t.pts)],_module:c._module},r,0)),&quot;all&quot;===h&amp;&amp;(h=&quot;label+text+value+percent+name&quot;),f.hovertemplate||&quot;none&quot;!==h&amp;&amp;&quot;skip&quot;!==h&amp;&amp;h){var p=t.rInscribed||0,d=o+t.pxmid[0]*(1-p),g=s+t.pxmid[1]*(1-p),y=r.separators,x=[];if(h&amp;&amp;-1!==h.indexOf(&quot;label&quot;)&amp;&amp;x.push(t.label),t.text=m.castOption(f.hovertext||f.text,t.pts),h&amp;&amp;-1!==h.indexOf(&quot;text&quot;)){var b=t.text;l.isValidTextValue(b)&amp;&amp;x.push(b)}t.value=t.v,t.valueLabel=m.formatPieValue(t.v,y),h&amp;&amp;-1!==h.indexOf(&quot;value&quot;)&amp;&amp;x.push(t.valueLabel),t.percent=t.v/i.vTotal,t.percentLabel=m.formatPiePercent(t.percent,y),h&amp;&amp;-1!==h.indexOf(&quot;percent&quot;)&amp;&amp;x.push(t.percentLabel);var _=f.hoverlabel,w=_.font,T=[];a.loneHover({trace:c,x0:d-p*i.r,x1:d+p*i.r,y:g,_x0:u?o+t.TL[0]:d-p*i.r,_x1:u?o+t.TR[0]:d+p*i.r,_y0:u?s+t.TL[1]:g-p*i.r,_y1:u?s+t.BL[1]:g+p*i.r,text:x.join(&quot;&lt;br&gt;&quot;),name:f.hovertemplate||-1!==h.indexOf(&quot;name&quot;)?f.name:void 0,idealAlign:t.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;,color:m.castOption(_.bgcolor,t.pts)||t.color,borderColor:m.castOption(_.bordercolor,t.pts),fontFamily:m.castOption(w.family,t.pts),fontSize:m.castOption(w.size,t.pts),fontColor:m.castOption(w.color,t.pts),nameLength:m.castOption(_.namelength,t.pts),textAlign:m.castOption(_.align,t.pts),hovertemplate:m.castOption(f.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,f)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e,inOut_bbox:T}),t.bbox=T[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,e.emit(&quot;plotly_hover&quot;,{points:[v(t,f)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(t){var r=e._fullLayout,i=e._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&amp;&amp;(t.originalEvent=n.event,e.emit(&quot;plotly_unhover&quot;,{points:[v(o,i)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&amp;&amp;(a.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)})),t.on(&quot;click&quot;,(function(t){var r=e._fullLayout,i=e._fullData[c.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function b(t,e,r){var n=m.castOption(t.insidetextfont.color,e.pts);!n&amp;&amp;t._input.textfont&amp;&amp;(n=m.castOption(t._input.textfont.color,e.pts));var i=m.castOption(t.insidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.insidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function _(t,e){for(var r,n,i=0;i&lt;t.length;i++)if((n=(r=t[i][0]).trace).title.text){var a=n.title.text;n._meta&amp;&amp;(a=l.templateString(a,n._meta));var o=s.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).text(a).call(s.font,n.title.font).call(f.convertToTspans,e),c=s.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(t,e,r){var n=r.r||e.rpx1,i=e.rInscribed;if(e.startangle===e.stopangle)return{rCenter:1-i,scale:0,rotate:0,textPosAngle:0};var a,o=e.ring,s=1===o&amp;&amp;Math.abs(e.startangle-e.stopangle)===2*Math.PI,l=e.halfangle,c=e.midangle,u=r.trace.insidetextorientation,f=&quot;horizontal&quot;===u,h=&quot;tangential&quot;===u,p=&quot;radial&quot;===u,d=&quot;auto&quot;===u,g=[];if(!d){var m,v=function(r,i){if(function(t,e){var r=t.startangle,n=t.stopangle;return r&gt;e&amp;&amp;e&gt;n||r&lt;e&amp;&amp;e&lt;n}(e,r)){var s=Math.abs(r-e.startangle),l=Math.abs(r-e.stopangle),c=s&lt;l?s:l;(a=&quot;tan&quot;===i?k(t,n,o,c,0):T(t,n,o,c,Math.PI/2)).textPosAngle=r,g.push(a)}};if(f||h){for(m=4;m&gt;=-4;m-=2)v(Math.PI*m,&quot;tan&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1),&quot;tan&quot;)}if(f||p){for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1.5),&quot;rad&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+.5),&quot;rad&quot;)}}if(s||d||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale&gt;=1)return a;g.push(a)}(d||p)&amp;&amp;((a=T(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a)),(d||h)&amp;&amp;((a=k(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a));for(var x=0,b=0,_=0;_&lt;g.length;_++){var w=g[_].scale;if(b&lt;w&amp;&amp;(b=w,x=_),!d&amp;&amp;b&gt;=1)break}return g[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:A(a,o/e),rotate:M(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:A(a,o/e),rotate:M(i+Math.PI/2)}}function A(t,e){return Math.cos(e)-t*e}function M(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function L(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r&lt;0&amp;&amp;(i*=-1),n&lt;0&amp;&amp;(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i&gt;0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function C(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=I(a),-1!==a.title.position.indexOf(&quot;top&quot;)?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(o.y+=(1+i)*t.r);var l,c,u=(l=t.r,c=t.trace.aspectratio,l/(void 0===c?1:c)),f=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf(&quot;left&quot;)?(f+=u,o.x-=(1+i)*u,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf(&quot;center&quot;)?f*=2:-1!==a.title.position.indexOf(&quot;right&quot;)&amp;&amp;(f+=u,o.x+=(1+i)*u,s.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=P(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function P(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function I(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;e&lt;t.pull.length;e++)t.pull[e]&gt;r&amp;&amp;(r=t.pull[e]);return r}function O(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n][0],a=i.trace,o=a.domain,s=e.w*(o.x[1]-o.x[0]),l=e.h*(o.y[1]-o.y[0]);a.title.text&amp;&amp;&quot;middle center&quot;!==a.title.position&amp;&amp;(l-=P(i,e));var c=s/2,u=l/2;&quot;funnelarea&quot;!==a.type||a.scalegroup||(u/=a.aspectratio),i.r=Math.min(c,u)/(1+I(a)),i.cx=e.l+e.w*(a.domain.x[1]+a.domain.x[0])/2,i.cy=e.t+e.h*(1-a.domain.y[0])-l/2,a.title.text&amp;&amp;-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(i.cy-=P(i,e)),a.scalegroup&amp;&amp;-1===r.indexOf(a.scalegroup)&amp;&amp;r.push(a.scalegroup)}!function(t,e){for(var r,n,i,a=0;a&lt;e.length;a++){var o=1/0,s=e[a];for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var l;if(&quot;pie&quot;===i.type)l=r.r*r.r;else if(&quot;funnelarea&quot;===i.type){var c,u;i.aspectratio&gt;1?(c=r.r,u=c/i.aspectratio):(u=r.r,c=u*i.aspectratio),c*=(1+i.baseratio)/2,l=c*u}o=Math.min(o,l/r.vTotal)}for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var f=o*r.vTotal;&quot;funnelarea&quot;===i.type&amp;&amp;(f/=(1+i.baseratio)/2,f/=i.aspectratio),r.r=Math.sqrt(f)}}}(t,r)}function z(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}function D(t,e,r){var n=t._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&amp;&amp;o&amp;&amp;&quot;none&quot;!==o){var s,c=o.split(&quot;+&quot;),u=function(t){return-1!==c.indexOf(t)},f=u(&quot;label&quot;),h=u(&quot;text&quot;),p=u(&quot;value&quot;),d=u(&quot;percent&quot;),g=n.separators;if(s=f?[e.label]:[],h){var v=m.getFirstFilled(i.text,e.pts);y(v)&amp;&amp;s.push(v)}p&amp;&amp;s.push(m.formatPieValue(e.v,g)),d&amp;&amp;s.push(m.formatPiePercent(e.v/r.vTotal,g)),e.text=s.join(&quot;&lt;br&gt;&quot;)}if(a){var x=l.castOption(i,e.i,&quot;texttemplate&quot;);if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:m.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:m.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,&quot;customdata&quot;)}}(e),_=m.getFirstFilled(i.text,e.pts);(y(_)||&quot;&quot;===_)&amp;&amp;(b.text=_),e.text=l.texttemplateString(x,b,t._fullLayout._d3locale,b,i._meta||{})}else e.text=&quot;&quot;}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,a=r._size;d(&quot;pie&quot;,r),_(e,t),O(e,a);var h=l.makeTraceGroups(r._pielayer,e,&quot;trace&quot;).each((function(e){var h=n.select(this),d=e[0],g=d.trace;!function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c=&quot;px0&quot;,u=&quot;px1&quot;;if(&quot;counterclockwise&quot;===o.direction){for(e=0;e&lt;t.length&amp;&amp;t[e].hidden;e++);if(e===t.length)return;s+=l*t[e].v,l*=-1,c=&quot;px1&quot;,u=&quot;px0&quot;}for(n=z(a,s),e=0;e&lt;t.length;e++)(r=t[e]).hidden||(r[c]=n,r.startangle=s,s+=l*r.v/2,r.pxmid=z(a,s),r.midangle=s,s+=l*r.v/2,n=z(a,s),r.stopangle=s,r[u]=n,r.largeArc=r.v&gt;i.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(e),h.attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),h.each((function(){var v=n.select(this).selectAll(&quot;g.slice&quot;).data(e);v.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{i.pointNumber=i.i,i.curveNumber=g.index,y[i.pxmid[1]&lt;0?0:1][i.pxmid[0]&lt;0?0:1].push(i);var o=d.cx,c=d.cy,u=n.select(this),h=u.selectAll(&quot;path.surface&quot;).data([i]);if(h.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),u.call(x,t,e),g.pull){var v=+m.castOption(g.pull,i.pts)||0;v&gt;0&amp;&amp;(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=g.hole;if(i.v===d.vTotal){var k=&quot;M&quot;+(o+i.px0[0])+&quot;,&quot;+(c+i.px0[1])+C(i.px0,i.pxmid,!0,1)+C(i.pxmid,i.px0,!0,1)+&quot;Z&quot;;T?h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px0[0])+&quot;,&quot;+(c+T*i.px0[1])+C(i.px0,i.pxmid,!1,T)+C(i.pxmid,i.px0,!1,T)+&quot;Z&quot;+k):h.attr(&quot;d&quot;,k)}else{var A=C(i.px0,i.px1,!0,1);if(T){var M=1-T;h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px1[0])+&quot;,&quot;+(c+T*i.px1[1])+C(i.px1,i.px0,!1,T)+&quot;l&quot;+M*i.px0[0]+&quot;,&quot;+M*i.px0[1]+A+&quot;Z&quot;)}else h.attr(&quot;d&quot;,&quot;M&quot;+o+&quot;,&quot;+c+&quot;l&quot;+i.px0[0]+&quot;,&quot;+i.px0[1]+A+&quot;Z&quot;)}D(t,i,d);var S=m.castOption(g.textposition,i.pts),E=u.selectAll(&quot;g.slicetext&quot;).data(i.text&amp;&amp;&quot;none&quot;!==S?[0]:[]);E.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),h=l.ensureUniformFontSize(t,&quot;outside&quot;===S?function(t,e,r){var n=m.castOption(t.outsidetextfont.color,e.pts)||m.castOption(t.textfont.color,e.pts)||r.color,i=m.castOption(t.outsidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.outsidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(g,i,r.font):b(g,i,r.font));u.text(i.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,h).call(f.convertToTspans,t);var v,y=s.bBox(u.node());if(&quot;outside&quot;===S)v=L(y,i);else if(v=w(y,i,d),&quot;auto&quot;===S&amp;&amp;v.scale&lt;1){var x=l.ensureUniformFontSize(t,g.outsidetextfont);u.call(s.font,x),v=L(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:z(d.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var A=v.targetY;i.yLabelMin=A-y.height/2,i.yLabelMid=A,i.yLabelMax=A+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=h.size,p(g.type,v,r),e[a].transform=v,u.attr(&quot;transform&quot;,l.getTextTransform(v))}))}function C(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return&quot;a&quot;+n*d.r+&quot;,&quot;+n*d.r+&quot; 0 &quot;+i.largeArc+(r?&quot; 1 &quot;:&quot; 0 &quot;)+a+&quot;,&quot;+o}}));var T=n.select(this).selectAll(&quot;g.titletext&quot;).data(g.title.text?[0]:[]);if(T.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),i=g.title.text;g._meta&amp;&amp;(i=l.templateString(i,g._meta)),r.text(i).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,g.title.font).call(f.convertToTspans,t),e=&quot;middle center&quot;===g.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):C(d,a),r.attr(&quot;transform&quot;,u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),_&amp;&amp;function(t,e){var r,n,i,a,o,s,l,c,u,f,h,p,d;function g(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,h,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),d=n?t.yLabelMin:t.yLabelMax,g=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=p-d;if(y*l&gt;0&amp;&amp;(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c&lt;f.length;c++)(u=f[c])===t||(m.castOption(e.pull,t.pts)||0)&gt;=(m.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l&gt;0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-d-t.labelExtraY)*l&gt;0&amp;&amp;(t.labelExtraY+=y):(g+t.labelExtraY-v)*l&gt;0&amp;&amp;(i=3*s*Math.abs(c-f.indexOf(t)),(h=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s&gt;0&amp;&amp;(t.labelExtraX+=h)))}for(n=0;n&lt;2;n++)for(i=n?g:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r&lt;2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),p=[],h=0;h&lt;c.length;h++)void 0!==c[h].yLabelMid&amp;&amp;p.push(c[h]);for(d=!1,h=0;n&amp;&amp;h&lt;u.length;h++)if(void 0!==u[h].yLabelMid){d=u[h];break}for(h=0;h&lt;p.length;h++){var x=h&amp;&amp;p[h-1];d&amp;&amp;!h&amp;&amp;(x=d),y(p[h],x)}}}(y,g),function(t,e){t.each((function(t){var r=n.select(this);if(t.labelExtraX||t.labelExtraY){var i=r.select(&quot;g.slicetext text&quot;);t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,i.attr(&quot;transform&quot;,l.getTextTransform(t.transform));var a=t.cxFinal+t.pxmid[0],s=&quot;M&quot;+a+&quot;,&quot;+(t.cyFinal+t.pxmid[1]),c=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]&lt;0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)&gt;Math.abs(f)?s+=&quot;l&quot;+f*t.pxmid[0]/t.pxmid[1]+&quot;,&quot;+f+&quot;H&quot;+(a+t.labelExtraX+c):s+=&quot;l&quot;+t.labelExtraX+&quot;,&quot;+u+&quot;v&quot;+(f-u)+&quot;h&quot;+c}else s+=&quot;V&quot;+(t.yLabelMid+t.labelExtraY)+&quot;h&quot;+c;l.ensureSingle(r,&quot;path&quot;,&quot;textline&quot;).call(o.stroke,e.outsidetextfont.color).attr({&quot;stroke-width&quot;:Math.min(2,e.outsidetextfont.size/8),d:s,fill:&quot;none&quot;})}else r.select(&quot;path.textline&quot;).remove()}))}(v,g),_&amp;&amp;g.automargin){var k=s.bBox(h.node()),A=g.domain,M=a.w*(A.x[1]-A.x[0]),S=a.h*(A.y[1]-A.y[0]),E=(.5*M-d.r)/a.w,P=(.5*S-d.r)/a.h;i.autoMargin(t,&quot;pie.&quot;+g.uid+&quot;.automargin&quot;,{xl:A.x[0]-E,xr:A.x[1]+E,yb:A.y[0]-P,yt:A.y[1]+P,l:Math.max(d.cx-d.r-k.left,0),r:Math.max(k.right-(d.cx+d.r),0),b:Math.max(k.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-k.top,0),pad:5})}}))}));setTimeout((function(){h.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this);t.attr(&quot;dy&quot;)&amp;&amp;t.attr(&quot;dy&quot;,t.attr(&quot;dy&quot;))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:C,prerenderTitles:_,layoutAreas:O,attachFxHandlers:x,computeTransform:R}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/plots&quot;:917,&quot;../bar/constants&quot;:943,&quot;../bar/uniform_text&quot;:957,&quot;./event_data&quot;:1196,&quot;./helpers&quot;:1197,&quot;@plotly/d3&quot;:58}],1202:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;./style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;pie&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:957,&quot;./style_one&quot;:1203,&quot;@plotly/d3&quot;:58}],1203:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./helpers&quot;).castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style(&quot;stroke-width&quot;,s).call(n.fill,e.color).call(n.stroke,o)}},{&quot;../../components/color&quot;:666,&quot;./helpers&quot;:1197}],1204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;);e.exports={x:n.x,y:n.y,xy:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},indices:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},xbounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ybounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:n.text,marker:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,arrayOk:!1,editType:&quot;calc&quot;},blend:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:.1,max:2,dflt:.5,editType:&quot;calc&quot;},sizemax:{valType:&quot;number&quot;,min:.1,dflt:20,editType:&quot;calc&quot;},border:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},arearatio:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:void 0}},{&quot;../scatter/attributes&quot;:1218}],1205:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-pointcloud2d&quot;),i=t(&quot;../../lib/str2rgbarray&quot;),a=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,o=t(&quot;../scatter/get_trace_color&quot;);function s(t,e){this.scene=t,this.uid=e,this.type=&quot;pointcloud&quot;,this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=&quot;rgb(0, 0, 0)&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&amp;&amp;t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length&gt;&gt;&gt;1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l&lt;e;l++)o=n[2*l],s=n[2*l+1],o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l&lt;e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l&lt;e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),m=i(t.marker.border.color),v=t.opacity*t.marker.opacity;g[3]*=v,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){y=c.length&lt;100||u.length&lt;100}this.pointcloudOptions.blend=y,m[3]*=v,this.pointcloudOptions.borderColor=m;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:T}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/cartesian/autorange&quot;:853,&quot;../scatter/get_trace_color&quot;:1228,&quot;gl-pointcloud2d&quot;:328}],1206:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;);e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(&quot;x&quot;),a(&quot;y&quot;),a(&quot;xbounds&quot;),a(&quot;ybounds&quot;),t.xy&amp;&amp;t.xy instanceof Float32Array&amp;&amp;(e.xy=t.xy),t.indices&amp;&amp;t.indices instanceof Int32Array&amp;&amp;(e.indices=t.indices),a(&quot;text&quot;),a(&quot;marker.color&quot;,r),a(&quot;marker.opacity&quot;),a(&quot;marker.blend&quot;),a(&quot;marker.sizemin&quot;),a(&quot;marker.sizemax&quot;),a(&quot;marker.border.color&quot;,r),a(&quot;marker.border.arearatio&quot;),e._length=null}},{&quot;../../lib&quot;:803,&quot;./attributes&quot;:1204}],1207:[function(t,e,r){&quot;use strict&quot;;[&quot;*pointcloud* trace is deprecated!&quot;,&quot;Please consider switching to the *scattergl* trace type.&quot;].join(&quot; &quot;);e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../scatter3d/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;pointcloud&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:894,&quot;../scatter3d/calc&quot;:1247,&quot;./attributes&quot;:1204,&quot;./convert&quot;:1205,&quot;./defaults&quot;:1206}],1208:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionOnlyNumbers,h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../../plot_api/edit_types&quot;).overrideAll;(e.exports=p({hoverinfo:h({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:&quot;sankey&quot;,trace:!0}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;},valueformat:{valType:&quot;string&quot;,dflt:&quot;.3s&quot;,description:f(&quot;value&quot;)},valuesuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;},arrangement:{valType:&quot;enumerated&quot;,values:[&quot;snap&quot;,&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;snap&quot;},textfont:n({}),customdata:void 0,node:{label:{valType:&quot;data_array&quot;,dflt:[]},groups:{valType:&quot;info_array&quot;,impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:&quot;number&quot;,editType:&quot;calc&quot;}},x:{valType:&quot;data_array&quot;,dflt:[]},y:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:.5,arrayOk:!0}},pad:{valType:&quot;number&quot;,arrayOk:!1,min:0,dflt:20},thickness:{valType:&quot;number&quot;,arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]})},link:{label:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0}},source:{valType:&quot;data_array&quot;,dflt:[]},target:{valType:&quot;data_array&quot;,dflt:[]},value:{valType:&quot;data_array&quot;,dflt:[]},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]}),colorscales:u(&quot;concentrationscales&quot;,{editType:&quot;calc&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;&quot;},cmax:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:1},cmin:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:0},colorscale:h(c().colorscale,{dflt:[[0,&quot;white&quot;],[1,&quot;black&quot;]]})})}},&quot;calc&quot;,&quot;nested&quot;)).transforms=void 0},{&quot;../../components/color/attributes&quot;:665,&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/fx/attributes&quot;:697,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/template_attributes&quot;:926}],1209:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../components/fx/layout_attributes&quot;),s=t(&quot;../../lib/setcursor&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../plots/cartesian/select&quot;).prepSelect,u=t(&quot;../../lib&quot;),f=t(&quot;../../registry&quot;);function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,a=&quot;pan&quot;===n.dragmode?&quot;move&quot;:&quot;crosshair&quot;,o=r._bgRect;if(&quot;pan&quot;!==i&amp;&amp;&quot;zoom&quot;!==i){s(o,a);var h={_id:&quot;x&quot;,c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:&quot;y&quot;,c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:o.node(),plotinfo:{id:e,xaxis:h,yaxis:p,fillRangeItems:u.noop},subplot:e,xaxes:[h],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;r&lt;e.length;r++)if(e[r].pointNumber===t)return e[r]}for(var l=0;l&lt;r.length;l++){var c=s(r[l].pointNumber);if(c)if(c.group){for(var u=0;u&lt;c.childrenNodes.length;u++)o.push(c.childrenNodes[u].pointNumber);a[c.pointNumber-i.node._count]=!1}else o.push(c.pointNumber)}n=a.filter(Boolean).concat([o]),f.call(&quot;_guiRestyle&quot;,t,{&quot;node.groups&quot;:[n]},e)},prepFn:function(t,e,r){c(t,e,r,d,i)}};l.init(d)}}r.name=&quot;sankey&quot;,r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){var e=i(t.calcdata,&quot;sankey&quot;)[0];a(t,e),r.updateFx(t)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;sankey&quot;),a=e._has&amp;&amp;e._has(&quot;sankey&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.sankey&quot;).remove(),n._paperdiv.selectAll(&quot;.bgsankey&quot;).remove())},r.updateFx=function(t){for(var e=0;e&lt;t._fullData.length;e++)h(t,e)}},{&quot;../../components/dragelement&quot;:685,&quot;../../components/fx/layout_attributes&quot;:707,&quot;../../lib&quot;:803,&quot;../../lib/setcursor&quot;:824,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/cartesian/select&quot;:874,&quot;../../plots/get_data&quot;:891,&quot;../../registry&quot;:931,&quot;./plot&quot;:1214}],1210:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;strongly-connected-components&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/gup&quot;).wrap,o=i.isArrayOrTypedArray,s=i.isIndex,l=t(&quot;../../components/colorscale&quot;);function c(t){var e,r=t.node,a=t.link,c=[],u=o(a.color),f=o(a.customdata),h={},p={},d=a.colorscales.length;for(e=0;e&lt;d;e++){var g=a.colorscales[e],m=l.extractScale(g,{cLetter:&quot;c&quot;}),v=l.makeColorScaleFunc(m);p[g.label]=v}var y=0;for(e=0;e&lt;a.value.length;e++)a.source[e]&gt;y&amp;&amp;(y=a.source[e]),a.target[e]&gt;y&amp;&amp;(y=a.target[e]);var x,b=y+1;t.node._count=b;var _=t.node.groups,w={};for(e=0;e&lt;_.length;e++){var T=_[e];for(x=0;x&lt;T.length;x++){var k=T[x],A=b+e;w.hasOwnProperty(k)?i.warn(&quot;Node &quot;+k+&quot; is already part of a group.&quot;):w[k]=A}}var M={source:[],target:[]};for(e=0;e&lt;a.value.length;e++){var S=a.value[e],E=a.source[e],L=a.target[e];if(S&gt;0&amp;&amp;s(E,b)&amp;&amp;s(L,b)&amp;&amp;(!w.hasOwnProperty(E)||!w.hasOwnProperty(L)||w[E]!==w[L])){w.hasOwnProperty(L)&amp;&amp;(L=w[L]),w.hasOwnProperty(E)&amp;&amp;(E=w[E]),L=+L,h[E=+E]=h[L]=!0;var C=&quot;&quot;;a.label&amp;&amp;a.label[e]&amp;&amp;(C=a.label[e]);var P=null;C&amp;&amp;p.hasOwnProperty(C)&amp;&amp;(P=p[C]),c.push({pointNumber:e,label:C,color:u?a.color[e]:a.color,customdata:f?a.customdata[e]:a.customdata,concentrationscale:P,source:E,target:L,value:+S}),M.source.push(E),M.target.push(L)}}var I=b+_.length,O=o(r.color),z=o(r.customdata),D=[];for(e=0;e&lt;I;e++)if(h[e]){var R=r.label[e];D.push({group:e&gt;b-1,childrenNodes:[],pointNumber:e,label:R,color:O?r.color[e]:r.color,customdata:z?r.customdata[e]:r.customdata})}var F=!1;return function(t,e,r){for(var a=i.init2dArray(t,0),o=0;o&lt;Math.min(e.length,r.length);o++)if(i.isIndex(e[o],t)&amp;&amp;i.isIndex(r[o],t)){if(e[o]===r[o])return!0;a[e[o]].push(r[o])}return n(a).components.some((function(t){return t.length&gt;1}))}(I,M.source,M.target)&amp;&amp;(F=!0),{circular:F,links:c,nodes:D,groups:_,groupLookup:w}}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800,&quot;strongly-connected-components&quot;:590}],1211:[function(t,e,r){&quot;use strict&quot;;e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:&quot;linear&quot;,cn:{sankey:&quot;sankey&quot;,sankeyLinks:&quot;sankey-links&quot;,sankeyLink:&quot;sankey-link&quot;,sankeyNodeSet:&quot;sankey-node-set&quot;,sankeyNode:&quot;sankey-node&quot;,nodeRect:&quot;node-rect&quot;,nodeLabel:&quot;node-label&quot;}}},{}],1212:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;tinycolor2&quot;),s=t(&quot;../../plots/domain&quot;).defaults,l=t(&quot;../../components/fx/hoverlabel_defaults&quot;),c=t(&quot;../../plot_api/plot_template&quot;),u=t(&quot;../../plots/array_container_defaults&quot;);function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r(&quot;label&quot;),r(&quot;cmin&quot;),r(&quot;cmax&quot;),r(&quot;colorscale&quot;)}e.exports=function(t,e,r,h){function p(r,a){return n.coerce(t,e,i,r,a)}var d=n.extendDeep(h.hoverlabel,t.hoverlabel),g=t.node,m=c.newContainer(e,&quot;node&quot;);function v(t,e){return n.coerce(g,m,i.node,t,e)}v(&quot;label&quot;),v(&quot;groups&quot;),v(&quot;x&quot;),v(&quot;y&quot;),v(&quot;pad&quot;),v(&quot;thickness&quot;),v(&quot;line.color&quot;),v(&quot;line.width&quot;),v(&quot;hoverinfo&quot;,t.hoverinfo),l(g,m,v,d),v(&quot;hovertemplate&quot;);var y=h.colorway;v(&quot;color&quot;,m.label.map((function(t,e){return a.addOpacity(function(t){return y[t%y.length]}(e),.8)}))),v(&quot;customdata&quot;);var x=t.link||{},b=c.newContainer(e,&quot;link&quot;);function _(t,e){return n.coerce(x,b,i.link,t,e)}_(&quot;label&quot;),_(&quot;source&quot;),_(&quot;target&quot;),_(&quot;value&quot;),_(&quot;line.color&quot;),_(&quot;line.width&quot;),_(&quot;hoverinfo&quot;,t.hoverinfo),l(x,b,_,d),_(&quot;hovertemplate&quot;);var w,T=o(h.paper_bgcolor).getLuminance()&lt;.333?&quot;rgba(255, 255, 255, 0.6)&quot;:&quot;rgba(0, 0, 0, 0.2)&quot;;_(&quot;color&quot;,n.repeat(T,b.value.length)),_(&quot;customdata&quot;),u(x,b,{name:&quot;colorscales&quot;,handleItemDefaults:f}),s(e,h,p),p(&quot;orientation&quot;),p(&quot;valueformat&quot;),p(&quot;valuesuffix&quot;),m.x.length&amp;&amp;m.y.length&amp;&amp;(w=&quot;freeform&quot;),p(&quot;arrangement&quot;,w),n.coerceFont(p,&quot;textfont&quot;,n.extendFlat({},h.font)),e._length=null}},{&quot;../../components/color&quot;:666,&quot;../../components/fx/hoverlabel_defaults&quot;:704,&quot;../../lib&quot;:803,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/array_container_defaults&quot;:849,&quot;../../plots/domain&quot;:882,&quot;./attributes&quot;:1208,tinycolor2:598}],1213:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;sankey&quot;,basePlotModule:t(&quot;./base_plot&quot;),selectPoints:t(&quot;./select.js&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1208,&quot;./base_plot&quot;:1209,&quot;./calc&quot;:1210,&quot;./defaults&quot;:1212,&quot;./plot&quot;:1214,&quot;./select.js&quot;:1216}],1214:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;./render&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/color&quot;),c=t(&quot;./constants&quot;).cn,u=i._;function f(t){return&quot;&quot;!==t}function h(t,e){return t.filter((function(t){return t.key===e.traceId}))}function p(t,e){n.select(t).select(&quot;path&quot;).style(&quot;fill-opacity&quot;,e),n.select(t).select(&quot;rect&quot;).style(&quot;fill-opacity&quot;,e)}function d(t){n.select(t).select(&quot;text.name&quot;).style(&quot;fill&quot;,&quot;black&quot;)}function g(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function m(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function v(t,e,r){e&amp;&amp;r&amp;&amp;h(r,e).selectAll(&quot;.&quot;+c.sankeyLink).filter(g(e)).call(x.bind(0,e,r,!1))}function y(t,e,r){e&amp;&amp;r&amp;&amp;h(r,e).selectAll(&quot;.&quot;+c.sankeyLink).filter(g(e)).call(b.bind(0,e,r,!1))}function x(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),i&amp;&amp;h(e,t).selectAll(&quot;.&quot;+c.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),r&amp;&amp;h(e,t).selectAll(&quot;.&quot;+c.sankeyNode).filter(m(t)).call(v)}function b(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),i&amp;&amp;h(e,t).selectAll(&quot;.&quot;+c.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),r&amp;&amp;h(e,t).selectAll(c.sankeyNode).filter(m(t)).call(y)}function _(t,e){var r=t.hoverlabel||{},n=i.nestedProperty(r,e).get();return!Array.isArray(n)&amp;&amp;n}e.exports=function(t,e){for(var r=t._fullLayout,i=r._paper,h=r._size,g=0;g&lt;t._fullData.length;g++)if(t._fullData[g].visible&amp;&amp;t._fullData[g].type===c.sankey&amp;&amp;!t._fullData[g]._viewInitial){var m=t._fullData[g].node;t._fullData[g]._viewInitial={node:{groups:m.groups.slice(),x:m.x.slice(),y:m.y.slice()}}}var w=u(t,&quot;source:&quot;)+&quot; &quot;,T=u(t,&quot;target:&quot;)+&quot; &quot;,k=u(t,&quot;concentration:&quot;)+&quot; &quot;,A=u(t,&quot;incoming flow count:&quot;)+&quot; &quot;,M=u(t,&quot;outgoing flow count:&quot;)+&quot; &quot;;o(t,i,e,{width:h.w,height:h.h,margin:{t:h.t,r:h.r,b:h.b,l:h.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(x.bind(0,r,i,!0)),&quot;skip&quot;!==r.link.trace.link.hoverinfo&amp;&amp;(r.link.fullData=r.link.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.link]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.link.trace.link;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){for(var c=[],u=0,h=0;h&lt;i.flow.links.length;h++){var g=i.flow.links[h];if(&quot;closest&quot;!==t._fullLayout.hovermode||i.link.pointNumber===g.pointNumber){i.link.pointNumber===g.pointNumber&amp;&amp;(u=h),g.fullData=g.trace,o=i.link.trace.link;var m=y(g),v={valueLabel:a(i.valueFormat)(g.value)+i.valueSuffix};c.push({x:m[0],y:m[1],name:v.valueLabel,text:[g.label||&quot;&quot;,w+g.source.label,T+g.target.label,g.concentrationscale?k+a(&quot;%0.2f&quot;)(g.flow.labelConcentration):&quot;&quot;].filter(f).join(&quot;&lt;br&gt;&quot;),color:_(o,&quot;bgcolor&quot;)||l.addOpacity(g.color,1),borderColor:_(o,&quot;bordercolor&quot;),fontFamily:_(o,&quot;font.family&quot;),fontSize:_(o,&quot;font.size&quot;),fontColor:_(o,&quot;font.color&quot;),nameLength:_(o,&quot;namelength&quot;),textAlign:_(o,&quot;align&quot;),idealAlign:n.event.x&lt;m[0]?&quot;right&quot;:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:v,eventData:[g]})}}s.loneHover(c,{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,anchorIndex:u}).each((function(){i.link.concentrationscale||p(this,.65),d(this)}))}}function y(t){var e,r;t.circular?(e=(t.circularPathData.leftInnerExtent+t.circularPathData.rightInnerExtent)/2,r=t.circularPathData.verticalFullExtent):(e=(t.source.x1+t.target.x0)/2,r=(t.y0+t.y1)/2);var n=[e,r];return&quot;v&quot;===t.trace.orientation&amp;&amp;n.reverse(),n[0]+=i.parent.translateX,n[1]+=i.parent.translateY,n}},unhover:function(e,i,a){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(b.bind(0,i,a,!0)),&quot;skip&quot;!==i.link.trace.link.hoverinfo&amp;&amp;(i.link.fullData=i.link.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.link]})),s.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],s.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(v,r,i),&quot;skip&quot;!==r.node.trace.node.hoverinfo&amp;&amp;(r.node.fullData=r.node.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.node]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){var l=n.select(e).select(&quot;.&quot;+c.nodeRect),u=t._fullLayout._paperdiv.node().getBoundingClientRect(),h=l.node().getBoundingClientRect(),g=h.left-2-u.left,m=h.right+2-u.left,v=h.top+h.height/4-u.top,y={valueLabel:a(i.valueFormat)(i.node.value)+i.valueSuffix};i.node.fullData=i.node.trace,t._fullLayout._calcInverseTransform(t);var x=t._fullLayout._invScaleX,b=t._fullLayout._invScaleY,w=s.loneHover({x0:x*g,x1:x*m,y:b*v,name:a(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,A+i.node.targetLinks.length,M+i.node.sourceLinks.length].filter(f).join(&quot;&lt;br&gt;&quot;),color:_(o,&quot;bgcolor&quot;)||i.tinyColorHue,borderColor:_(o,&quot;bordercolor&quot;),fontFamily:_(o,&quot;font.family&quot;),fontSize:_(o,&quot;font.size&quot;),fontColor:_(o,&quot;font.color&quot;),nameLength:_(o,&quot;namelength&quot;),textAlign:_(o,&quot;align&quot;),idealAlign:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:y,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});p(w,.85),d(w)}}},unhover:function(e,i,a){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(y,i,a),&quot;skip&quot;!==i.node.trace.node.hoverinfo&amp;&amp;(i.node.fullData=i.node.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.node]})),s.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var a=r.node;a.originalEvent=n.event,t._hoverdata=[a],n.select(e).call(y,r,i),s.click(t,{target:!0})}}})}},{&quot;../../components/color&quot;:666,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;./constants&quot;:1211,&quot;./render&quot;:1215,&quot;@plotly/d3&quot;:58}],1215:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-force&quot;),i=t(&quot;d3-interpolate&quot;).interpolateNumber,a=t(&quot;@plotly/d3&quot;),o=t(&quot;@plotly/d3-sankey&quot;),s=t(&quot;@plotly/d3-sankey-circular&quot;),l=t(&quot;./constants&quot;),c=t(&quot;tinycolor2&quot;),u=t(&quot;../../components/color&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../lib&quot;),p=h.strTranslate,d=h.strRotate,g=t(&quot;../../lib/gup&quot;),m=g.keyFun,v=g.repeat,y=g.unwrap,x=t(&quot;../../lib/svg_text_utils&quot;),b=t(&quot;../../registry&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.CAP_SHIFT,T=_.LINE_SPACING;function k(t,e,r){var n,i=y(e),a=i.trace,u=a.domain,f=&quot;h&quot;===a.orientation,p=a.node.pad,d=a.node.thickness,g=t.width*(u.x[1]-u.x[0]),m=t.height*(u.y[1]-u.y[0]),v=i._nodes,x=i._links,b=i.circular;(n=b?s.sankeyCircular().circularLinkGap(0):o.sankey()).iterations(l.sankeyIterations).size(f?[g,m]:[m,g]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodes(v).links(x);var _,w,T,k=n();for(var A in n.nodePadding()&lt;p&amp;&amp;h.warn(&quot;node.pad was reduced to &quot;,n.nodePadding(),&quot; to fit within the figure.&quot;),i._groupLookup){var M,S=parseInt(i._groupLookup[A]);for(_=0;_&lt;k.nodes.length;_++)if(k.nodes[_].pointNumber===S){M=k.nodes[_];break}if(M){var E={pointNumber:parseInt(A),x0:M.x0,x1:M.x1,y0:M.y0,y1:M.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};k.nodes.unshift(E),M.childrenNodes.unshift(E)}}if(function(){for(_=0;_&lt;k.nodes.length;_++){var t,e,r=k.nodes[_],n={};for(w=0;w&lt;r.targetLinks.length;w++)t=(e=r.targetLinks[w]).source.pointNumber+&quot;:&quot;+e.target.pointNumber,n.hasOwnProperty(t)||(n[t]=[]),n[t].push(e);var i=Object.keys(n);for(w=0;w&lt;i.length;w++){var a=n[t=i[w]],o=0,s={};for(T=0;T&lt;a.length;T++)s[(e=a[T]).label]||(s[e.label]=0),s[e.label]+=e.value,o+=e.value;for(T=0;T&lt;a.length;T++)(e=a[T]).flow={value:o,labelConcentration:s[e.label]/o,concentration:e.value/o,links:a},e.concentrationscale&amp;&amp;(e.color=c(e.concentrationscale(e.flow.labelConcentration)))}var l=0;for(w=0;w&lt;r.sourceLinks.length;w++)l+=r.sourceLinks[w].value;for(w=0;w&lt;r.sourceLinks.length;w++)(e=r.sourceLinks[w]).concentrationOut=e.value/l;var u=0;for(w=0;w&lt;r.targetLinks.length;w++)u+=r.targetLinks[w].value;for(w=0;w&lt;r.targetLinks.length;w++)(e=r.targetLinks[w]).concenrationIn=e.value/u}}(),a.node.x.length&amp;&amp;a.node.y.length){for(_=0;_&lt;Math.min(a.node.x.length,a.node.y.length,k.nodes.length);_++)if(a.node.x[_]&amp;&amp;a.node.y[_]){var L=[a.node.x[_]*g,a.node.y[_]*m];k.nodes[_].x0=L[0]-d/2,k.nodes[_].x1=L[0]+d/2;var C=k.nodes[_].y1-k.nodes[_].y0;k.nodes[_].y0=L[1]-C/2,k.nodes[_].y1=L[1]+C/2}if(&quot;snap&quot;===a.arrangement)!function(t){t.forEach((function(t){var e,r,n,i=0,a=t.length;for(t.sort((function(t,e){return t.y0-e.y0})),n=0;n&lt;a;++n)(e=t[n]).y0&gt;=i||(r=i-e.y0)&gt;1e-6&amp;&amp;(e.y0+=r,e.y1+=r),i=e.y1+p}))}(function(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_&lt;n.length;_++){var s=t[n[_].index];s.x0&gt;o+d&amp;&amp;(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}(v=k.nodes));n.update(k)}return{circular:b,key:r,trace:a,guid:h.randstr(),horizontal:f,width:g,height:m,nodePad:a.node.pad,nodeLineColor:a.node.line.color,nodeLineWidth:a.node.line.width,linkLineColor:a.link.line.color,linkLineWidth:a.link.line.width,valueFormat:a.valueformat,valueSuffix:a.valuesuffix,textFont:a.textfont,translateX:u.x[0]*t.width+t.margin.l,translateY:t.height-u.y[1]*t.height+t.margin.t,dragParallel:f?m:g,dragPerpendicular:f?g:m,arrangement:a.arrangement,sankey:n,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function A(t,e,r){var n=c(e.color),i=e.source.label+&quot;|&quot;+e.target.label+&quot;__&quot;+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:i,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:u.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:M,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function M(){return function(t){if(t.link.circular)return e=t.link,r=e.width/2,n=e.circularPathData,&quot;top&quot;===e.circularLinkType?&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 1 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 1 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 0 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 0 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot;Z&quot;:&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 0 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 0 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 1 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 1 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot;Z&quot;;var e,r,n,a=t.link.source.x1,o=t.link.target.x0,s=i(a,o),l=s(.5),c=s(.5),u=t.link.y0-t.link.width/2,f=t.link.y0+t.link.width/2,h=t.link.y1-t.link.width/2,p=t.link.y1+t.link.width/2;return&quot;M&quot;+a+&quot;,&quot;+u+&quot;C&quot;+l+&quot;,&quot;+u+&quot; &quot;+c+&quot;,&quot;+h+&quot; &quot;+o+&quot;,&quot;+h+&quot;L&quot;+o+&quot;,&quot;+p+&quot;C&quot;+c+&quot;,&quot;+p+&quot; &quot;+l+&quot;,&quot;+f+&quot; &quot;+a+&quot;,&quot;+f+&quot;Z&quot;}}function S(t,e){var r=c(e.color),n=l.nodePadAcross,i=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var a=e.dx,o=Math.max(.5,e.dy),s=&quot;node_&quot;+e.pointNumber;return e.group&amp;&amp;(s=h.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:s,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()&lt;=128,tinyColorHue:u.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,s].join(&quot;_&quot;),interactionState:t.interactionState,figure:t}}function E(t){t.attr(&quot;transform&quot;,(function(t){return p(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function L(t){t.call(E)}function C(t,e){t.call(L),e.attr(&quot;d&quot;,M())}function P(t){t.attr(&quot;width&quot;,(function(t){return t.node.x1-t.node.x0})).attr(&quot;height&quot;,(function(t){return t.visibleHeight}))}function I(t){return t.link.width&gt;1||t.linkLineWidth&gt;0}function O(t){return p(t.translateX,t.translateY)+(t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;)}function z(t,e,r){t.on(&quot;.basic&quot;,null).on(&quot;mouseover.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on(&quot;mousemove.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on(&quot;mouseout.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on(&quot;click.basic&quot;,(function(t){t.interactionState.hovered&amp;&amp;(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function D(t,e,r,i){var o=a.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on(&quot;dragstart&quot;,(function(a){if(&quot;fixed&quot;!==a.arrangement&amp;&amp;(h.ensureSingle(i._fullLayout._infolayer,&quot;g&quot;,&quot;dragcover&quot;,(function(t){i._fullLayout._dragCover=t})),h.raiseToTop(this),a.interactionState.dragInProgress=a.node,F(a.node),a.interactionState.hovered&amp;&amp;(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),&quot;snap&quot;===a.arrangement)){var o=a.traceId+&quot;|&quot;+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):function(t,e,r,i){!function(t){for(var e=0;e&lt;t.length;e++)t[e].y=(t[e].y0+t[e].y1)/2,t[e].x=(t[e].x0+t[e].x1)/2}(r.graph.nodes);var a=r.graph.nodes.filter((function(t){return t.originalX===r.node.originalX})).filter((function(t){return!t.partOfGroup}));r.forceLayouts[e]=n.forceSimulation(a).alphaDecay(0).force(&quot;collide&quot;,n.forceCollide().radius((function(t){return t.dy/2+r.nodePad/2})).strength(1).iterations(l.forceIterations)).force(&quot;constrain&quot;,function(t,e,r,n){return function(){for(var t=0,i=0;i&lt;r.length;i++){var a=r[i];a===n.interactionState.dragInProgress?(a.x=a.lastDraggedX,a.y=a.lastDraggedY):(a.vx=(a.originalX-a.x)/l.forceTicksPerFrame,a.y=Math.min(n.size-a.dy/2,Math.max(a.dy/2,a.y))),t=Math.max(t,Math.abs(a.vx),Math.abs(a.vy))}!n.interactionState.dragInProgress&amp;&amp;t&lt;.1&amp;&amp;n.forceLayouts[e].alpha()&gt;0&amp;&amp;n.forceLayouts[e].alpha(0)}}(0,e,a,r)).stop()}(0,o,a),function(t,e,r,n,i){window.requestAnimationFrame((function a(){var o;for(o=0;o&lt;l.forceTicksPerFrame;o++)r.forceLayouts[n].tick();if(function(t){for(var e=0;e&lt;t.length;e++)t[e].y0=t[e].y-t[e].dy/2,t[e].y1=t[e].y0+t[e].dy,t[e].x0=t[e].x-t[e].dx/2,t[e].x1=t[e].x0+t[e].dx}(r.graph.nodes),r.sankey.update(r.graph),C(t.filter(B(r)),e),r.forceLayouts[n].alpha()&gt;0)window.requestAnimationFrame(a);else{var s=r.node.originalX;r.node.x0=s-r.visibleWidth/2,r.node.x1=s+r.visibleWidth/2,R(r,i)}}))}(t,e,a,o,i)}})).on(&quot;drag&quot;,(function(r){if(&quot;fixed&quot;!==r.arrangement){var n=a.event.x,i=a.event.y;&quot;snap&quot;===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2):(&quot;freeform&quot;===r.arrangement&amp;&amp;(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),i=Math.max(0,Math.min(r.size-r.visibleHeight/2,i)),r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2),F(r.node),&quot;snap&quot;!==r.arrangement&amp;&amp;(r.sankey.update(r.graph),C(t.filter(B(r)),e))}})).on(&quot;dragend&quot;,(function(t){if(&quot;fixed&quot;!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e&lt;t.node.childrenNodes.length;e++)t.node.childrenNodes[e].x=t.node.x,t.node.childrenNodes[e].y=t.node.y;&quot;snap&quot;!==t.arrangement&amp;&amp;R(t,i)}}));t.on(&quot;.drag&quot;,null).call(o)}function R(t,e){for(var r=[],n=[],i=0;i&lt;t.graph.nodes.length;i++){var a=(t.graph.nodes[i].x0+t.graph.nodes[i].x1)/2,o=(t.graph.nodes[i].y0+t.graph.nodes[i].y1)/2;r.push(a/t.figure.width),n.push(o/t.figure.height)}b.call(&quot;_guiRestyle&quot;,e,{&quot;node.x&quot;:[r],&quot;node.y&quot;:[n]},t.trace.index).then((function(){e._fullLayout._dragCover&amp;&amp;e._fullLayout._dragCover.remove()}))}function F(t){t.lastDraggedX=t.x0+t.dx/2,t.lastDraggedY=t.y0+t.dy/2}function B(t){return function(e){return e.node.originalX===t.node.originalX}}e.exports=function(t,e,r,n,i){var o=!1;h.ensureSingle(t._fullLayout._infolayer,&quot;g&quot;,&quot;first-render&quot;,(function(){o=!0}));var s=t._fullLayout._dragCover,g=r.filter((function(t){return y(t).trace.visible})).map(k.bind(null,n)),b=e.selectAll(&quot;.&quot;+l.cn.sankey).data(g,m);b.exit().remove(),b.enter().append(&quot;g&quot;).classed(l.cn.sankey,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,O),b.each((function(e,r){t._fullData[r]._sankey=e;var n=&quot;bgsankey-&quot;+e.trace.uid+&quot;-&quot;+r;h.ensureSingle(t._fullLayout._draggers,&quot;rect&quot;,n),t._fullData[r]._bgRect=a.select(&quot;.&quot;+n),t._fullData[r]._bgRect.style(&quot;pointer-events&quot;,&quot;all&quot;).attr(&quot;width&quot;,e.width).attr(&quot;height&quot;,e.height).attr(&quot;x&quot;,e.translateX).attr(&quot;y&quot;,e.translateY).classed(&quot;bgsankey&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0})})),b.transition().ease(l.ease).duration(l.duration).attr(&quot;transform&quot;,O);var _=b.selectAll(&quot;.&quot;+l.cn.sankeyLinks).data(v,m);_.enter().append(&quot;g&quot;).classed(l.cn.sankeyLinks,!0).style(&quot;fill&quot;,&quot;none&quot;);var L=_.selectAll(&quot;.&quot;+l.cn.sankeyLink).data((function(t){return t.graph.links.filter((function(t){return t.value})).map(A.bind(null,t))}),m);L.enter().append(&quot;path&quot;).classed(l.cn.sankeyLink,!0).call(z,b,i.linkEvents),L.style(&quot;stroke&quot;,(function(t){return I(t)?u.tinyRGB(c(t.linkLineColor)):t.tinyColorHue})).style(&quot;stroke-opacity&quot;,(function(t){return I(t)?u.opacity(t.linkLineColor):t.tinyColorAlpha})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})).style(&quot;stroke-width&quot;,(function(t){return I(t)?t.linkLineWidth:1})).attr(&quot;d&quot;,M()),L.style(&quot;opacity&quot;,(function(){return t._context.staticPlot||o||s?1:0})).transition().ease(l.ease).duration(l.duration).style(&quot;opacity&quot;,1),L.exit().transition().ease(l.ease).duration(l.duration).style(&quot;opacity&quot;,0).remove();var C=b.selectAll(&quot;.&quot;+l.cn.sankeyNodeSet).data(v,m);C.enter().append(&quot;g&quot;).classed(l.cn.sankeyNodeSet,!0),C.style(&quot;cursor&quot;,(function(t){switch(t.arrangement){case&quot;fixed&quot;:return&quot;default&quot;;case&quot;perpendicular&quot;:return&quot;ns-resize&quot;;default:return&quot;move&quot;}}));var R=C.selectAll(&quot;.&quot;+l.cn.sankeyNode).data((function(t){var e=t.graph.nodes;return function(t){var e,r=[];for(e=0;e&lt;t.length;e++)t[e].originalX=(t[e].x0+t[e].x1)/2,t[e].originalY=(t[e].y0+t[e].y1)/2,-1===r.indexOf(t[e].originalX)&amp;&amp;r.push(t[e].originalX);for(r.sort((function(t,e){return t-e})),e=0;e&lt;t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.map(S.bind(null,t))}),m);R.enter().append(&quot;g&quot;).classed(l.cn.sankeyNode,!0).call(E).style(&quot;opacity&quot;,(function(e){return!t._context.staticPlot&amp;&amp;!o||e.partOfGroup?0:1})),R.call(z,b,i.nodeEvents).call(D,L,i,t),R.transition().ease(l.ease).duration(l.duration).call(E).style(&quot;opacity&quot;,(function(t){return t.partOfGroup?0:1})),R.exit().transition().ease(l.ease).duration(l.duration).style(&quot;opacity&quot;,0).remove();var F=R.selectAll(&quot;.&quot;+l.cn.nodeRect).data(v);F.enter().append(&quot;rect&quot;).classed(l.cn.nodeRect,!0).call(P),F.style(&quot;stroke-width&quot;,(function(t){return t.nodeLineWidth})).style(&quot;stroke&quot;,(function(t){return u.tinyRGB(c(t.nodeLineColor))})).style(&quot;stroke-opacity&quot;,(function(t){return u.opacity(t.nodeLineColor)})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),F.transition().ease(l.ease).duration(l.duration).call(P);var B=R.selectAll(&quot;.&quot;+l.cn.nodeLabel).data(v);B.enter().append(&quot;text&quot;).classed(l.cn.nodeLabel,!0).style(&quot;cursor&quot;,&quot;default&quot;),B.attr(&quot;data-notex&quot;,1).text((function(t){return t.node.label})).each((function(e){var r=a.select(this);f.font(r,e.textFont),x.convertToTspans(r,t)})).style(&quot;text-shadow&quot;,x.makeTextShadow(t._fullLayout.paper_bgcolor)).attr(&quot;text-anchor&quot;,(function(t){return t.horizontal&amp;&amp;t.left?&quot;end&quot;:&quot;start&quot;})).attr(&quot;transform&quot;,(function(t){var e=a.select(this),r=x.lineCount(e),n=t.textFont.size*((r-1)*T-w),i=t.nodeLineWidth/2+3,o=((t.horizontal?t.visibleHeight:t.visibleWidth)-n)/2;t.horizontal&amp;&amp;(t.left?i=-i:i+=t.visibleWidth);var s=t.horizontal?&quot;&quot;:&quot;scale(-1,1)&quot;+d(90);return p(t.horizontal?i:o,t.horizontal?o:i)+s})),B.transition().ease(l.ease).duration(l.duration)}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../constants/alignment&quot;:771,&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../registry&quot;:931,&quot;./constants&quot;:1211,&quot;@plotly/d3&quot;:58,&quot;@plotly/d3-sankey&quot;:57,&quot;@plotly/d3-sankey-circular&quot;:56,&quot;d3-force&quot;:166,&quot;d3-interpolate&quot;:171,tinycolor2:598}],1216:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=[],n=t.cd[0].trace,i=n._sankey.graph.nodes,a=0;a&lt;i.length;a++){var o=i[a];if(!o.partOfGroup){var s=[(o.x0+o.x1)/2,(o.y0+o.y1)/2];&quot;v&quot;===n.orientation&amp;&amp;s.reverse(),e&amp;&amp;e.contains(s,!1,a,t)&amp;&amp;r.push({pointNumber:o.pointNumber})}}return r}},{}],1217:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.texttemplate,t,&quot;txt&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;),n.mergeArray(e.customdata,t,&quot;data&quot;),n.mergeArray(e.textposition,t,&quot;tp&quot;),e.textfont&amp;&amp;(n.mergeArrayCastPositive(e.textfont.size,t,&quot;ts&quot;),n.mergeArray(e.textfont.color,t,&quot;tc&quot;),n.mergeArray(e.textfont.family,t,&quot;tf&quot;));var i=e.marker;if(i){n.mergeArrayCastPositive(i.size,t,&quot;ms&quot;),n.mergeArrayCastPositive(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.symbol,t,&quot;mx&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;i.line&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;));var o=i.gradient;o&amp;&amp;&quot;none&quot;!==o.type&amp;&amp;(n.mergeArray(o.type,t,&quot;mgt&quot;),n.mergeArray(o.color,t,&quot;mgc&quot;))}}},{&quot;../../lib&quot;:803}],1218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../components/drawing&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},xperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},yperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},xperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},yperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},xperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},yperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},xhoverformat:n(&quot;x&quot;),yhoverformat:n(&quot;y&quot;),stackgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc&quot;},groupnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},stackgaps:{valType:&quot;enumerated&quot;,values:[&quot;infer zero&quot;,&quot;interpolate&quot;],dflt:&quot;infer zero&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},texttemplate:i({},{}),hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;points&quot;,&quot;fills&quot;],editType:&quot;style&quot;},hovertemplate:a({},{keys:u.eventDataKeys}),line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;,anim:!0},shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;spline&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},smoothing:{valType:&quot;number&quot;,min:0,max:1.3,dflt:1,editType:&quot;plot&quot;},dash:f({},l,{editType:&quot;style&quot;}),simplify:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cliponaxis:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;tozeroy&quot;,&quot;tozerox&quot;,&quot;tonexty&quot;,&quot;tonextx&quot;,&quot;toself&quot;,&quot;tonext&quot;],editType:&quot;calc&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},marker:f({symbol:{valType:&quot;enumerated&quot;,values:c.symbolList,dflt:&quot;circle&quot;,arrayOk:!0,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,arrayOk:!0,editType:&quot;style&quot;,anim:!0},size:{valType:&quot;number&quot;,min:0,dflt:6,arrayOk:!0,editType:&quot;calc&quot;,anim:!0},maxdisplayed:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},sizeref:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;diameter&quot;,&quot;area&quot;],dflt:&quot;diameter&quot;,editType:&quot;calc&quot;},line:f({width:{valType:&quot;number&quot;,min:0,arrayOk:!0,editType:&quot;style&quot;,anim:!0},editType:&quot;calc&quot;},o(&quot;marker.line&quot;,{anim:!0})),gradient:{type:{valType:&quot;enumerated&quot;,values:[&quot;radial&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;none&quot;],arrayOk:!0,dflt:&quot;none&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{anim:!0})),selected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},unselected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;middle center&quot;,arrayOk:!0,editType:&quot;calc&quot;},textfont:s({editType:&quot;calc&quot;,colorEditType:&quot;style&quot;,arrayOk:!0})}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/drawing&quot;:688,&quot;../../components/drawing/attributes&quot;:687,&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/font_attributes&quot;:883,&quot;../../plots/template_attributes&quot;:926,&quot;./constants&quot;:1222}],1219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;./subtypes&quot;),c=t(&quot;./colorscale_calc&quot;),u=t(&quot;./arrays_to_calcdata&quot;),f=t(&quot;./calc_selection&quot;);function h(t,e,r,n,i,o,s){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[g(e)]===e.uid,d=(m(e,u,r,n)||{}).orientation,v=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};s&amp;&amp;(y.ppad=x.ppad=s);var b=c&lt;2||i[0]!==i[c-1]||o[0]!==o[c-1];b&amp;&amp;(&quot;tozerox&quot;===v||&quot;tonextx&quot;===v&amp;&amp;(p||&quot;h&quot;===d))?y.tozero=!0:(e.error_y||{}).visible||&quot;tonexty&quot;!==v&amp;&amp;&quot;tozeroy&quot;!==v&amp;&amp;(l.hasMarkers(e)||l.hasText(e))||(y.padded=!1,y.ppad=0),b&amp;&amp;(&quot;tozeroy&quot;===v||&quot;tonexty&quot;===v&amp;&amp;(p||&quot;v&quot;===d))?x.tozero=!0:&quot;tonextx&quot;!==v&amp;&amp;&quot;tozerox&quot;!==v||(x.padded=!1),f&amp;&amp;(e._extremes[f]=a.findExtremes(r,i,y)),h&amp;&amp;(e._extremes[h]=a.findExtremes(n,o,x))}function p(t,e){if(l.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=&quot;area&quot;===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var s={type:&quot;linear&quot;};a.setConvert(s);for(var c=s.makeCalcdata(t.marker,&quot;size&quot;),u=new Array(e),f=0;f&lt;e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function d(t,e){var r=g(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function g(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?&quot;-&quot;+e:&quot;&quot;)}function m(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=&quot;v&quot;===a.orientation?n:r;return&quot;linear&quot;===o.type||&quot;log&quot;===o.type?a:void 0}}e.exports={calc:function(t,e){var r,l,g,v,y,x,b=t._fullLayout,_=a.getFromId(t,e.xaxis||&quot;x&quot;),w=a.getFromId(t,e.yaxis||&quot;y&quot;),T=_.makeCalcdata(e,&quot;x&quot;),k=w.makeCalcdata(e,&quot;y&quot;),A=o(e,_,&quot;x&quot;,T),M=o(e,w,&quot;y&quot;,k),S=A.vals,E=M.vals,L=e._length,C=new Array(L),P=e.ids,I=m(e,b,_,w),O=!1;d(b,e);var z,D=&quot;x&quot;,R=&quot;y&quot;;I?(i.pushUnique(I.traceIndices,e._expandedIndex),(r=&quot;v&quot;===I.orientation)?(R=&quot;s&quot;,z=&quot;x&quot;):(D=&quot;s&quot;,z=&quot;y&quot;),y=&quot;interpolate&quot;===I.stackgaps):h(t,e,_,w,S,E,p(e,L));var F=!!e.xperiodalignment,B=!!e.yperiodalignment;for(l=0;l&lt;L;l++){var N=C[l]={},j=n(S[l]),U=n(E[l]);j&amp;&amp;U?(N[D]=S[l],N[R]=E[l],F&amp;&amp;(N.orig_x=T[l],N.xEnd=A.ends[l],N.xStart=A.starts[l]),B&amp;&amp;(N.orig_y=k[l],N.yEnd=M.ends[l],N.yStart=M.starts[l])):I&amp;&amp;(r?j:U)?(N[z]=r?S[l]:E[l],N.gap=!0,y?(N.s=s,O=!0):N.s=0):N[D]=N[R]=s,P&amp;&amp;(N.id=String(P[l]))}if(u(C,e),c(t,e),f(C,e),I){for(l=0;l&lt;C.length;)C[l][z]===s?C.splice(l,1):l++;if(i.sort(C,(function(t,e){return t[z]-e[z]||t.i-e.i})),O){for(l=0;l&lt;C.length-1&amp;&amp;C[l].gap;)l++;for((x=C[l].s)||(x=C[l].s=0),g=0;g&lt;l;g++)C[g].s=x;for(v=C.length-1;v&gt;l&amp;&amp;C[v].gap;)v--;for(x=C[v].s,g=C.length-1;g&gt;v;g--)C[g].s=x;for(;l&lt;v;)if(C[++l].gap){for(g=l+1;C[g].gap;)g++;for(var V=C[l-1][z],q=C[l-1].s,H=(C[g].s-q)/(C[g][z]-V);l&lt;g;)C[l].s=q+(C[l][z]-V)*H,l++}}}return C},calcMarkerSize:p,calcAxisExpansion:h,setFirstScatter:d,getStackOpts:m}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;./arrays_to_calcdata&quot;:1217,&quot;./calc_selection&quot;:1220,&quot;./colorscale_calc&quot;:1221,&quot;./subtypes&quot;:1243,&quot;fast-isnumeric&quot;:249}],1220:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;n.tagSelected(t,e)}},{&quot;../../lib&quot;:803}],1221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;./subtypes&quot;);e.exports=function(t,e){a.hasLines(e)&amp;&amp;n(e,&quot;line&quot;)&amp;&amp;i(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),a.hasMarkers(e)&amp;&amp;(n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}))}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../components/colorscale/helpers&quot;:677,&quot;./subtypes&quot;:1243}],1222:[function(t,e,r){&quot;use strict&quot;;e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],1223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calc&quot;);function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&amp;&amp;r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&amp;&amp;(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T=t.calcdata;for(var k in s){var A=(v=s[k]).traceIndices;if(A.length){for(y=&quot;interpolate&quot;===v.stackgaps,x=v.groupnorm,&quot;v&quot;===v.orientation?(b=&quot;x&quot;,_=&quot;y&quot;):(b=&quot;y&quot;,_=&quot;x&quot;),w=new Array(A.length),l=0;l&lt;w.length;l++)w[l]=!1;p=T[A[0]];var M=new Array(p.length);for(l=0;l&lt;p.length;l++)M[l]=p[l][b];for(l=1;l&lt;A.length;l++){for(h=T[A[l]],c=u=0;c&lt;h.length;c++){for(d=h[c][b];d&gt;M[u]&amp;&amp;u&lt;M.length;u++)i(h,c,M[u],l,w,y,b),c++;if(d!==M[u]){for(f=0;f&lt;l;f++)i(T[A[f]],u,d,f,w,y,b);M.splice(u,0,d)}u++}for(;u&lt;M.length;u++)i(h,c,M[u],l,w,y,b),c++}var S=M.length;for(c=0;c&lt;p.length;c++){for(g=p[c][_]=p[c].s,l=1;l&lt;A.length;l++)(h=T[A[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][_]=g;if(x)for(m=(&quot;fraction&quot;===x?g:g/100)||1,l=0;l&lt;A.length;l++){var E=T[A[l]][c];E[_]/=m,E.sNorm=E.s/m}}for(l=0;l&lt;A.length;l++){var L=(h=T[A[l]])[0].trace,C=n.calcMarkerSize(L,L._rawLength),P=Array.isArray(C);if(C&amp;&amp;w[l]||P){var I=C;for(C=new Array(S),c=0;c&lt;S;c++)C[c]=h[c].gap?0:P?I[h[c].i]:I}var O=new Array(S),z=new Array(S);for(c=0;c&lt;S;c++)O[c]=h[c].x,z[c]=h[c].y;n.calcAxisExpansion(t,L,r,a,O,z,C),h[0].t.orientation=v.orientation}}}}}},{&quot;./calc&quot;:1219}],1224:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0;e&lt;t.length;e++){var r=t[e];if(&quot;scatter&quot;===r.type){var n=r.fill;if(&quot;none&quot;!==n&amp;&amp;&quot;toself&quot;!==n&amp;&amp;(r.opacity=void 0,&quot;tonexty&quot;===n||&quot;tonextx&quot;===n))for(var i=e-1;i&gt;=0;i--){var a=t[i];if(&quot;scatter&quot;===a.type&amp;&amp;a.xaxis===r.xaxis&amp;&amp;a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1225:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;./subtypes&quot;),l=t(&quot;./xy_defaults&quot;),c=t(&quot;./period_defaults&quot;),u=t(&quot;./stack_defaults&quot;),f=t(&quot;./marker_defaults&quot;),h=t(&quot;./line_defaults&quot;),p=t(&quot;./line_shape_defaults&quot;),d=t(&quot;./text_defaults&quot;),g=t(&quot;./fillcolor_defaults&quot;);e.exports=function(t,e,r,m){function v(r,i){return n.coerce(t,e,a,r,i)}var y=l(t,e,m,v);if(y||(e.visible=!1),e.visible){c(t,e,m,v),v(&quot;xhoverformat&quot;),v(&quot;yhoverformat&quot;);var x=u(t,e,m,v),b=!x&amp;&amp;y&lt;o.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;v(&quot;text&quot;),v(&quot;hovertext&quot;),v(&quot;mode&quot;,b),s.hasLines(e)&amp;&amp;(h(t,e,r,m,v),p(t,e,v),v(&quot;connectgaps&quot;),v(&quot;line.simplify&quot;)),s.hasMarkers(e)&amp;&amp;f(t,e,r,m,v,{gradient:!0}),s.hasText(e)&amp;&amp;(v(&quot;texttemplate&quot;),d(t,e,m,v));var _=[];(s.hasMarkers(e)||s.hasText(e))&amp;&amp;(v(&quot;cliponaxis&quot;),v(&quot;marker.maxdisplayed&quot;),_.push(&quot;points&quot;)),v(&quot;fill&quot;,x?x.fillDflt:&quot;none&quot;),&quot;none&quot;!==e.fill&amp;&amp;(g(t,e,r,v),s.hasLines(e)||p(t,e,v));var w=(e.line||{}).color,T=(e.marker||{}).color;&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||_.push(&quot;fills&quot;),v(&quot;hoveron&quot;,_.join(&quot;+&quot;)||&quot;points&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;v(&quot;hovertemplate&quot;);var k=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);k(t,e,w||T||r,{axis:&quot;y&quot;}),k(t,e,w||T||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,v)}}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:1218,&quot;./constants&quot;:1222,&quot;./fillcolor_defaults&quot;:1226,&quot;./line_defaults&quot;:1231,&quot;./line_shape_defaults&quot;:1233,&quot;./marker_defaults&quot;:1237,&quot;./period_defaults&quot;:1238,&quot;./stack_defaults&quot;:1241,&quot;./subtypes&quot;:1243,&quot;./text_defaults&quot;:1244,&quot;./xy_defaults&quot;:1245}],1226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&amp;&amp;!i(s)?o=s:l&amp;&amp;!i(l)&amp;&amp;(o=l)}a(&quot;fillcolor&quot;,n.addOpacity((e.line||{}).color||o||r,.5))}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803}],1227:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a={_fullLayout:r},o=n.getFromTrace(a,e,&quot;x&quot;),s=n.getFromTrace(a,e,&quot;y&quot;);return i.xLabel=n.tickText(o,o.c2l(t.x),!0).text,i.yLabel=n.tickText(s,s.c2l(t.y),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:854}],1228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,a;if(&quot;lines&quot;===t.mode)return(r=t.line.color)&amp;&amp;n.opacity(r)?r:t.fillcolor;if(&quot;none&quot;===t.mode)return t.fill?t.fillcolor:&quot;&quot;;var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&amp;&amp;n.opacity(o)?o:s&amp;&amp;n.opacity(s)&amp;&amp;(e.mlw||((t.marker||{}).line||{}).width)?s:&quot;&quot;)?n.opacity(a)&lt;.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&amp;&amp;n.opacity(r)&amp;&amp;i.hasLines(t)&amp;&amp;t.line.width?r:t.fillcolor}},{&quot;../../components/color&quot;:666,&quot;./subtypes&quot;:1243}],1229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;./get_trace_color&quot;),s=t(&quot;../../components/color&quot;),l=n.fillText;e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),g=p.c2p(r),m=[d,g],v=f.hoveron||&quot;&quot;,y=-1!==f.mode.indexOf(&quot;markers&quot;)?3:.5,x=!!f.xperiodalignment,b=!!f.yperiodalignment;if(-1!==v.indexOf(&quot;points&quot;)){var _=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-g;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},w=i.getDistanceFunction(c,(function(t){if(x){var e=h.c2p(t.xStart),r=h.c2p(t.xEnd);return d&gt;=Math.min(e,r)&amp;&amp;d&lt;=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(h.c2p(t.x)-d);return a&lt;n?i*a/n:a-n+i}),(function(t){if(b){var e=p.c2p(t.yStart),r=p.c2p(t.yEnd);return g&gt;=Math.min(e,r)&amp;&amp;g&lt;=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(p.c2p(t.y)-g);return a&lt;n?i*a/n:a-n+i}),_);if(i.getClosest(u,w,t),!1!==t.index){var T=u[t.index],k=h.c2p(T.x,!0),A=p.c2p(T.y,!0),M=T.mrc||1;t.index=T.i;var S=u[0].t.orientation,E=S&amp;&amp;(T.sNorm||T.s),L=&quot;h&quot;===S?E:void 0!==T.orig_x?T.orig_x:T.x,C=&quot;v&quot;===S?E:void 0!==T.orig_y?T.orig_y:T.y;return n.extendFlat(t,{color:o(f,T),x0:k-M,x1:k+M,xLabelVal:L,y0:A-M,y1:A+M,yLabelVal:C,spikeDistance:_(T),hovertemplate:f.hovertemplate}),l(T,f,t),a.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(T,f,t),[t]}}if(-1!==v.indexOf(&quot;fills&quot;)&amp;&amp;f._polygons){var P,I,O,z,D,R,F,B,N,j=f._polygons,U=[],V=!1,q=1/0,H=-1/0,G=1/0,Y=-1/0;for(P=0;P&lt;j.length;P++)(O=j[P]).contains(m)&amp;&amp;(V=!V,U.push(O),G=Math.min(G,O.ymin),Y=Math.max(Y,O.ymax));if(V){var W=((G=Math.max(G,0))+(Y=Math.min(Y,p._length)))/2;for(P=0;P&lt;U.length;P++)for(z=U[P].pts,I=1;I&lt;z.length;I++)(B=z[I-1][1])&gt;W!=(N=z[I][1])&gt;=W&amp;&amp;(R=z[I-1][0],F=z[I][0],N-B&amp;&amp;(D=R+(F-R)*(W-B)/(N-B),q=Math.min(q,D),H=Math.max(H,D)));q=Math.max(q,0),H=Math.min(H,h._length);var X=s.defaultLine;return s.opacity(f.fillcolor)?X=f.fillcolor:s.opacity((f.line||{}).color)&amp;&amp;(X=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:q,x1:H,y0:W,y1:W,color:X,hovertemplate:!1}),delete t.index,f.text&amp;&amp;!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{&quot;../../components/color&quot;:666,&quot;../../components/fx&quot;:706,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./get_trace_color&quot;:1228}],1230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./cross_trace_calc&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;./select&quot;),animatable:!0,moduleType:&quot;trace&quot;,name:&quot;scatter&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;./arrays_to_calcdata&quot;:1217,&quot;./attributes&quot;:1218,&quot;./calc&quot;:1219,&quot;./cross_trace_calc&quot;:1223,&quot;./cross_trace_defaults&quot;:1224,&quot;./defaults&quot;:1225,&quot;./format_labels&quot;:1227,&quot;./hover&quot;:1229,&quot;./marker_colorbar&quot;:1236,&quot;./plot&quot;:1239,&quot;./select&quot;:1240,&quot;./style&quot;:1242,&quot;./subtypes&quot;:1243}],1231:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(&quot;line.color&quot;,r),i(t,&quot;line&quot;))?a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}):s(&quot;line.color&quot;,!n(c)&amp;&amp;c||r);s(&quot;line.width&quot;),(l||{}).noDash||s(&quot;line.dash&quot;)}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../components/colorscale/helpers&quot;:677,&quot;../../lib&quot;:803}],1232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(&quot;../../lib&quot;),c=l.segmentsIntersect,u=l.constrain,f=t(&quot;./constants&quot;);e.exports=function(t,e){var r,n,a,h,p,d,g,m,v,y,x,b,_,w,T,k,A,M,S=e.xaxis,E=e.yaxis,L=&quot;log&quot;===S.type,C=&quot;log&quot;===E.type,P=S._length,I=E._length,O=e.connectGaps,z=e.baseTolerance,D=e.shape,R=&quot;linear&quot;===D,F=e.fill&amp;&amp;&quot;none&quot;!==e.fill,B=[],N=f.minTolerance,j=t.length,U=new Array(j),V=0;function q(r){var n=t[r];if(!n)return!1;var a=e.linearized?S.l2p(n.x):S.c2p(n.x),l=e.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(L&amp;&amp;(a=S.c2p(n.x,!0)),a===i)return!1;C&amp;&amp;l===i&amp;&amp;(a*=Math.abs(S._m*I*(S._m&gt;0?o:s)/(E._m*P*(E._m&gt;0?o:s)))),a*=1e3}if(l===i){if(C&amp;&amp;(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function H(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c&gt;0&amp;&amp;c&lt;l){var u=o*a-s*i;if(u*u&lt;l)return!0}}function G(t,e){var r=t[0]/P,n=t[1]/I,i=Math.max(0,-r,r-1,-n,n-1);return i&amp;&amp;void 0!==A&amp;&amp;H(r,n,A,M)&amp;&amp;(i=0),i&amp;&amp;e&amp;&amp;H(r,n,e[0]/P,e[1]/I)&amp;&amp;(i=0),(1+f.toleranceGrowth*i)*z}function Y(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var W,X,Z,J,K,Q,$,tt=f.maxScreensAway,et=-P*tt,rt=P*(1+tt),nt=-I*tt,it=I*(1+tt),at=[[et,nt,rt,nt],[rt,nt,rt,it],[rt,it,et,it],[et,it,et,nt]];function ot(t){if(t[0]&lt;et||t[0]&gt;rt||t[1]&lt;nt||t[1]&gt;it)return[u(t[0],et,rt),u(t[1],nt,it)]}function st(t,e){return t[0]===e[0]&amp;&amp;(t[0]===et||t[0]===rt)||(t[1]===e[1]&amp;&amp;(t[1]===nt||t[1]===it)||void 0)}function lt(t,e,r){return function(n,i){var a=ot(n),o=ot(i),s=[];if(a&amp;&amp;o&amp;&amp;st(a,o))return s;a&amp;&amp;s.push(a),o&amp;&amp;s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&amp;&amp;((a&amp;&amp;o?c&gt;0==a[t]&gt;o[t]?a:o:a||o)[t]+=c);return s}}function ct(t){var e=t[0],r=t[1],n=e===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V&gt;1){var a=e===U[V-2][0],o=r===U[V-2][1];n&amp;&amp;(e===et||e===rt)&amp;&amp;a?o?V--:U[V-1]=t:i&amp;&amp;(r===nt||r===it)&amp;&amp;o?a?V--:U[V-1]=t:U[V++]=t}else U[V++]=t}function ut(t){U[V-1][0]!==t[0]&amp;&amp;U[V-1][1]!==t[1]&amp;&amp;ct([Z,J]),ct(t),K=null,Z=J=0}function ft(t){if(A=t[0]/P,M=t[1]/I,W=t[0]&lt;et?et:t[0]&gt;rt?rt:0,X=t[1]&lt;nt?nt:t[1]&gt;it?it:0,W||X){if(V)if(K){var e=$(K,t);e.length&gt;1&amp;&amp;(ut(e[0]),U[V++]=e[1])}else Q=$(U[V-1],t)[0],U[V++]=Q;else U[V++]=[W||t[0],X||t[1]];var r=U[V-1];W&amp;&amp;X&amp;&amp;(r[0]!==W||r[1]!==X)?(K&amp;&amp;(Z!==W&amp;&amp;J!==X?ct(Z&amp;&amp;J?(n=K,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a&gt;0?[o&gt;0?et:rt,it]:[o&gt;0?rt:et,nt]):[Z||W,J||X]):Z&amp;&amp;J&amp;&amp;ct([Z,J])),ct([W,X])):Z-W&amp;&amp;J-X&amp;&amp;ct([W||Z,X||J]),K=t,Z=W,J=X}else K&amp;&amp;ut($(K,t)[0]),U[V++]=t;var n,i,a,o}for(&quot;linear&quot;===D||&quot;spline&quot;===D?$=function(t,e){for(var r=[],n=0,i=0;i&lt;4;i++){var a=at[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&amp;&amp;(!n||Math.abs(o.x-r[0][0])&gt;1||Math.abs(o.y-r[0][1])&gt;1)&amp;&amp;(o=[o.x,o.y],n&amp;&amp;Y(o,t)&lt;Y(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:&quot;hv&quot;===D||&quot;vh&quot;===D?$=function(t,e){var r=[],n=ot(t),i=ot(e);return n&amp;&amp;i&amp;&amp;st(n,i)||(n&amp;&amp;r.push(n),i&amp;&amp;r.push(i)),r}:&quot;hvh&quot;===D?$=lt(0,et,rt):&quot;vhv&quot;===D&amp;&amp;($=lt(1,nt,it)),r=0;r&lt;j;r++)if(n=q(r)){for(V=0,K=null,ft(n),r++;r&lt;j;r++){if(!(h=q(r))){if(O)continue;break}if(R&amp;&amp;e.simplify){var ht=q(r+1);if(y=Y(h,n),F&amp;&amp;(0===V||V===j-1)||!(y&lt;G(h,ht)*N)){for(m=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=T=0,g=!1,a=h,r++;r&lt;t.length;r++){if(d=ht,ht=q(r+1),!d){if(O)continue;break}if(k=(v=[d[0]-n[0],d[1]-n[1]])[0]*m[1]-v[1]*m[0],w=Math.min(w,k),(T=Math.max(T,k))-w&gt;G(d,ht))break;a=d,(_=v[0]*m[0]+v[1]*m[1])&gt;x?(x=_,h=d,g=!1):_&lt;b&amp;&amp;(b=_,p=d,g=!0)}if(g?(ft(h),a!==p&amp;&amp;ft(p)):(p!==n&amp;&amp;ft(p),a!==h&amp;&amp;ft(h)),ft(a),r&gt;=t.length||!d)break;ft(d),n=d}}else ft(h)}K&amp;&amp;ct([Z||K[0],J||K[1]]),B.push(U.slice(0,V))}return B}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;./constants&quot;:1222}],1233:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){&quot;spline&quot;===r(&quot;line.shape&quot;)&amp;&amp;r(&quot;line.smoothing&quot;)}},{}],1234:[function(t,e,r){&quot;use strict&quot;;var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a&lt;r.length;a++)(o=(i=r[a][0].trace).stackgroup||&quot;&quot;)?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&amp;&amp;p&gt;=0?l=p:(l=p=h,h++),l&lt;f&amp;&amp;(u=!0),i._groupIndex=f=l;var d=r.slice();u&amp;&amp;d.sort((function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var g={};for(a=0;a&lt;d.length;a++)o=(i=d[a][0].trace).stackgroup||&quot;&quot;,!0===i.visible?(i._nexttrace=null,i.fill in n&amp;&amp;(s=g[o],i._prevtrace=s||null,s&amp;&amp;(s._nexttrace=i)),i._ownfill=i.fill&amp;&amp;(&quot;tozero&quot;===i.fill.substr(0,6)||&quot;toself&quot;===i.fill||&quot;to&quot;===i.fill.substr(0,2)&amp;&amp;!i._prevtrace),g[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],1235:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){e||(e=2);var r=t.marker,i=r.sizeref||1,a=r.sizemin||0,o=&quot;area&quot;===r.sizemode?function(t){return Math.sqrt(t/i)}:function(t){return t/i};return function(t){var r=o(t/e);return n(r)&amp;&amp;r&gt;0?Math.max(r,a):0}}},{&quot;fast-isnumeric&quot;:249}],1236:[function(t,e,r){&quot;use strict&quot;;e.exports={container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}},{}],1237:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./subtypes&quot;);e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&amp;&amp;(r=f),l(&quot;marker.symbol&quot;),l(&quot;marker.opacity&quot;,u?.7:1),l(&quot;marker.size&quot;),l(&quot;marker.color&quot;,r),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),c.noSelect||(l(&quot;selected.marker.color&quot;),l(&quot;unselected.marker.color&quot;),l(&quot;selected.marker.size&quot;),l(&quot;unselected.marker.size&quot;)),c.noLine||(l(&quot;marker.line.color&quot;,f&amp;&amp;!Array.isArray(f)&amp;&amp;e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),l(&quot;marker.line.width&quot;,u?1:0)),u&amp;&amp;(l(&quot;marker.sizeref&quot;),l(&quot;marker.sizemin&quot;),l(&quot;marker.sizemode&quot;)),c.gradient)&amp;&amp;(&quot;none&quot;!==l(&quot;marker.gradient.type&quot;)&amp;&amp;l(&quot;marker.gradient.color&quot;))}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale/defaults&quot;:676,&quot;../../components/colorscale/helpers&quot;:677,&quot;./subtypes&quot;:1243}],1238:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).dateTick0,i=t(&quot;../../constants/numerical&quot;).ONEWEEK;function a(t,e){return n(e,t%i==0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n(&quot;xperiod&quot;);o&amp;&amp;(n(&quot;xperiod0&quot;,a(o,e.xcalendar)),n(&quot;xperiodalignment&quot;))}if(i.y){var s=n(&quot;yperiod&quot;);s&amp;&amp;(n(&quot;yperiod0&quot;,a(s,e.ycalendar)),n(&quot;yperiodalignment&quot;))}}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803}],1239:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.ensureSingle,s=a.identity,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./subtypes&quot;),u=t(&quot;./line_points&quot;),f=t(&quot;./link_traces&quot;),h=t(&quot;../../lib/polygon&quot;).tester;function p(t,e,r,f,p,d,g){var m;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter((function(t){return t.x&gt;=u[0]&amp;&amp;t.x&lt;=u[1]&amp;&amp;t.y&gt;=f[0]&amp;&amp;t.y&lt;=f[1]})),g=Math.ceil(d.length/p),m=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&amp;&amp;n.marker.maxdisplayed&gt;0&amp;&amp;r&lt;e&amp;&amp;m++}));var v=Math.round(m*g/3+Math.floor(m/3)*g/7.1);i.forEach((function(t){delete t.vis})),d.forEach((function(t,e){0===Math.round((e+v)%g)&amp;&amp;(t.vis=!0)}))}(0,e,r,f,p);var v=!!g&amp;&amp;g.duration&gt;0;function y(t){return v?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(d),k=o(T,&quot;g&quot;,&quot;errorbars&quot;),A=o(T,&quot;g&quot;,&quot;lines&quot;),M=o(T,&quot;g&quot;,&quot;points&quot;),S=o(T,&quot;g&quot;,&quot;text&quot;);if(i.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,k,r,g),!0===_.visible){var E,L;y(T).style(&quot;opacity&quot;,_.opacity);var C=_.fill.charAt(_.fill.length-1);&quot;x&quot;!==C&amp;&amp;&quot;y&quot;!==C&amp;&amp;(C=&quot;&quot;),f[0][r.isRangePlot?&quot;nodeRangePlot3&quot;:&quot;node3&quot;]=T;var P,I,O=&quot;&quot;,z=[],D=_._prevtrace;D&amp;&amp;(O=D._prevRevpath||&quot;&quot;,L=D._nextFill,z=D._polygons);var R,F,B,N,j,U,V,q=&quot;&quot;,H=&quot;&quot;,G=[],Y=a.noop;if(E=_._ownFill,c.hasLines(_)||&quot;none&quot;!==_.fill){for(L&amp;&amp;L.datum(f),-1!==[&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split(&quot;&quot;).reverse().join(&quot;&quot;))):R=F=&quot;spline&quot;===w.shape?function(t){var e=t[t.length-1];return t.length&gt;1&amp;&amp;t[0][0]===e[0]&amp;&amp;t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return&quot;M&quot;+t.join(&quot;L&quot;)},B=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),m=0;m&lt;G.length;m++)_._polygons[m]=h(G[m]);G.length&amp;&amp;(N=G[0][0],U=(j=G[G.length-1])[j.length-1]),Y=function(t){return function(e){if(P=R(e),I=B(e),q?C?(q+=&quot;L&quot;+P.substr(1),H=I+&quot;L&quot;+H.substr(1)):(q+=&quot;Z&quot;+P,H=I+&quot;Z&quot;+H):(q=P,H=I),c.hasLines(_)&amp;&amp;e.length&gt;1){var r=n.select(this);if(r.datum(f),t)y(r.style(&quot;opacity&quot;,0).attr(&quot;d&quot;,P).call(l.lineGroupStyle)).style(&quot;opacity&quot;,1);else{var i=y(r);i.attr(&quot;d&quot;,P),l.singleLineStyle(f,i)}}}}}var W=A.selectAll(&quot;.js-line&quot;).data(G);y(W.exit()).style(&quot;opacity&quot;,0).remove(),W.each(Y(!1)),W.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(W,r.layerClipId,t),G.length?(E?(E.datum(f),N&amp;&amp;U&amp;&amp;(C?(&quot;y&quot;===C?N[1]=U[1]=b.c2p(0,!0):&quot;x&quot;===C&amp;&amp;(N[0]=U[0]=x.c2p(0,!0)),y(E).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;L&quot;+N+&quot;L&quot;+q.substr(1)).call(l.singleFillStyle)):y(E).attr(&quot;d&quot;,q+&quot;Z&quot;).call(l.singleFillStyle))):L&amp;&amp;(&quot;tonext&quot;===_.fill.substr(0,6)&amp;&amp;q&amp;&amp;O?(&quot;tonext&quot;===_.fill?y(L).attr(&quot;d&quot;,q+&quot;Z&quot;+O+&quot;Z&quot;).call(l.singleFillStyle):y(L).attr(&quot;d&quot;,q+&quot;L&quot;+O.substr(1)+&quot;Z&quot;).call(l.singleFillStyle),_._polygons=_._polygons.concat(z)):(Z(L),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=V):(E?Z(E):L&amp;&amp;Z(L),_._polygons=_._prevRevpath=_._prevPolygons=null),M.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,g=et;if(f||h){var m=s,_=u.stackgroup,w=_&amp;&amp;&quot;infer zero&quot;===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?K:J:_&amp;&amp;!w&amp;&amp;(m=Q),f&amp;&amp;(d=m),h&amp;&amp;(g=m)}var T,k=(o=e.selectAll(&quot;path.point&quot;).data(d,p)).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0);v&amp;&amp;k.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(&quot;opacity&quot;,0).transition().style(&quot;opacity&quot;,1),o.order(),f&amp;&amp;(T=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,T,t),r.layerClipId&amp;&amp;l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&amp;&amp;i.classed(&quot;plotly-customdata&quot;,null!==e.data&amp;&amp;void 0!==e.data)):a.remove()})),v?o.exit().transition().style(&quot;opacity&quot;,0).remove():o.exit().remove(),(o=i.selectAll(&quot;g&quot;).data(g,p)).enter().append(&quot;g&quot;).classed(&quot;textpoint&quot;,!0).append(&quot;text&quot;),o.order(),o.each((function(t){var e=n.select(this),i=y(e.select(&quot;text&quot;));l.translatePoint(t,i,x,b)?r.layerClipId&amp;&amp;l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll(&quot;text&quot;).call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(&quot;tspan.line&quot;).each((function(){y(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}(M,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(M,X,t),l.setClipUrl(S,X,t)}function Z(t){y(t).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function J(t){return t.filter((function(t){return!t.gap&amp;&amp;t.vis}))}function K(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function $(t){return t.id}function tt(t){if(t.ids)return $}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,g=!!a&amp;&amp;a.duration&gt;0,m=f(t,e,r);((u=i.selectAll(&quot;g.trace&quot;).data(m,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;trace scatter trace&quot;+t[0].trace.uid})).style(&quot;stroke-miterlimit&quot;,2),u.order(),function(t,e,r){e.each((function(e){var i=o(n.select(this),&quot;g&quot;,&quot;fills&quot;);l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&amp;&amp;c.push(&quot;_ownFill&quot;),a._nexttrace&amp;&amp;c.push(&quot;_nextFill&quot;);var u=i.selectAll(&quot;g&quot;).data(c,s);u.enter().append(&quot;g&quot;),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),&quot;path&quot;,&quot;js-fill&quot;)}))}))}(t,u,e),g)?(c&amp;&amp;(h=c()),n.transition().duration(a.duration).ease(a.easing).each(&quot;end&quot;,(function(){h&amp;&amp;h()})).each(&quot;interrupt&quot;,(function(){h&amp;&amp;h()})).each((function(){i.selectAll(&quot;g.trace&quot;).each((function(r,n){p(t,n,e,r,m,this,a)}))}))):u.each((function(r,n){p(t,n,e,r,m,this,a)}));d&amp;&amp;u.exit().remove(),i.selectAll(&quot;path:not([d])&quot;).remove()}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/polygon&quot;:815,&quot;../../registry&quot;:931,&quot;./line_points&quot;:1232,&quot;./link_traces&quot;:1234,&quot;./subtypes&quot;:1243,&quot;@plotly/d3&quot;:58}],1240:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&amp;&amp;!n.hasText(f))return[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&amp;&amp;e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{&quot;./subtypes&quot;:1243}],1241:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;orientation&quot;,&quot;groupnorm&quot;,&quot;stackgaps&quot;];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(&quot;stackgroup&quot;);if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;},h=0;h&lt;n.length;h++){var p=n[h],d=p+&quot;Found&quot;;if(!c[d]){var g=void 0!==t[p],m=&quot;orientation&quot;===p;if((g||u)&amp;&amp;(c[p]=i(p,f[p]),m&amp;&amp;(c.fillDflt=&quot;h&quot;===c[p]?&quot;tonextx&quot;:&quot;tonexty&quot;),g&amp;&amp;(c[d]=!0,!u&amp;&amp;(delete c.traces[0][p],m))))for(var v=0;v&lt;c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&amp;&amp;(y.fill=c.fillDflt)}}}return c}}},{}],1242:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../registry&quot;);function o(t,e,r){i.pointStyle(t.selectAll(&quot;path.point&quot;),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(&quot;text&quot;),e,r)}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.trace.scatter&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.selectAll(&quot;g.points&quot;).each((function(e){o(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.text&quot;).each((function(e){s(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.trace path.js-line&quot;).call(i.lineGroupStyle),e.selectAll(&quot;g.trace path.js-fill&quot;).call(i.fillGroupStyle),a.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},stylePoints:o,styleText:s,styleOnSelect:function(t,e,r){var n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(&quot;path.point&quot;),n),i.selectedTextStyle(r.selectAll(&quot;text&quot;),n)):(o(r,n,t),s(r,n,t))}}},{&quot;../../components/drawing&quot;:688,&quot;../../registry&quot;:931,&quot;@plotly/d3&quot;:58}],1243:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports={hasLines:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;lines&quot;)},hasMarkers:function(t){return t.visible&amp;&amp;(t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;markers&quot;)||&quot;splom&quot;===t.type)},hasText:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;text&quot;)},isBubble:function(t){return n.isPlainObject(t.marker)&amp;&amp;n.isArrayOrTypedArray(t.marker.size)}}},{&quot;../../lib&quot;:803}],1244:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i,a){a=a||{},i(&quot;textposition&quot;),n.coerceFont(i,&quot;textfont&quot;,r.font),a.noSelect||(i(&quot;selected.textfont.color&quot;),i(&quot;unselected.textfont.color&quot;))}},{&quot;../../lib&quot;:803}],1245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);e.exports=function(t,e,r,a){var o,s=a(&quot;x&quot;),l=a(&quot;y&quot;);if(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],r),s){var c=n.minRowLength(s);l?o=Math.min(c,n.minRowLength(l)):(o=c,a(&quot;y0&quot;),a(&quot;dy&quot;))}else{if(!l)return 0;o=n.minRowLength(l),a(&quot;x0&quot;),a(&quot;dx&quot;)}return e._length=o,o}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931}],1246:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../constants/gl3d_dashes&quot;),u=t(&quot;../../constants/gl3d_markers&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../plot_api/edit_types&quot;).overrideAll,p=t(&quot;../../lib/sort_object_keys&quot;),d=n.line,g=n.marker,m=g.line,v=f({width:d.width,dash:{valType:&quot;enumerated&quot;,values:p(c),dflt:&quot;solid&quot;}},i(&quot;line&quot;));var y=e.exports=h({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;},text:f({},n.text,{}),texttemplate:s({},{}),hovertext:f({},n.hovertext,{}),hovertemplate:o(),xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),zhoverformat:a(&quot;z&quot;),mode:f({},n.mode,{dflt:&quot;lines+markers&quot;}),surfaceaxis:{valType:&quot;enumerated&quot;,values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:&quot;color&quot;},projection:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:v,marker:f({symbol:{valType:&quot;enumerated&quot;,values:p(u),dflt:&quot;circle&quot;,arrayOk:!0},size:f({},g.size,{dflt:8}),sizeref:g.sizeref,sizemin:g.sizemin,sizemode:g.sizemode,opacity:f({},g.opacity,{arrayOk:!1}),colorbar:g.colorbar,line:f({width:f({},m.width,{arrayOk:!1})},i(&quot;marker.line&quot;))},i(&quot;marker&quot;)),textposition:f({},n.textposition,{dflt:&quot;top center&quot;}),textfont:{color:n.textfont.color,size:n.textfont.size,family:f({},n.textfont.family,{arrayOk:!1})},hoverinfo:f({},l.hoverinfo)},&quot;calc&quot;,&quot;nested&quot;);y.x.editType=y.y.editType=y.z.editType=&quot;calc+clearAxisTypes&quot;},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../constants/gl3d_dashes&quot;:776,&quot;../../constants/gl3d_markers&quot;:777,&quot;../../lib/extend&quot;:793,&quot;../../lib/sort_object_keys&quot;:826,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1247:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/arrays_to_calcdata&quot;),i=t(&quot;../scatter/colorscale_calc&quot;);e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(t,e),r}},{&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/colorscale_calc&quot;:1221}],1248:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;);function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;)(e),o=new Array(t.length),s=0;s&lt;t.length;s++){var l=a(+t[s],s);if(&quot;log&quot;===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u&gt;0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e&lt;t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s&lt;a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c&lt;3;c++)if(n[c])for(var u=0;u&lt;2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{&quot;../../registry&quot;:931}],1249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-line3d&quot;),i=t(&quot;gl-scatter3d&quot;),a=t(&quot;gl-error3d&quot;),o=t(&quot;gl-mesh3d&quot;),s=t(&quot;delaunay-triangulate&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../../lib/str2rgbarray&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/make_bubble_size_func&quot;),h=t(&quot;../../constants/gl3d_dashes&quot;),p=t(&quot;../../constants/gl3d_markers&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,m=t(&quot;./calc_errors&quot;);function v(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=&quot;&quot;,this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var y=v.prototype;function x(t){return null==t?0:t.indexOf(&quot;left&quot;)&gt;-1?-1:t.indexOf(&quot;right&quot;)&gt;-1?1:0}function b(t){return null==t?0:t.indexOf(&quot;top&quot;)&gt;-1?-1:t.indexOf(&quot;bottom&quot;)&gt;-1?1:0}function _(t,e){return e(4*t)}function w(t){return p[t]}function T(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o&lt;e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function k(t,e){var r,n,i,a,o,s,h=[],p=t.fullSceneLayout,v=t.dataScale,y=p.xaxis,k=p.yaxis,A=p.zaxis,M=e.marker,S=e.line,E=e.x||[],L=e.y||[],C=e.z||[],P=E.length,I=e.xcalendar,O=e.ycalendar,z=e.zcalendar;for(o=0;o&lt;P;o++)r=y.d2l(E[o],0,I)*v[0],n=k.d2l(L[o],0,O)*v[1],i=A.d2l(C[o],0,z)*v[2],h[o]=[r,n,i];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(P),o=0;o&lt;P;o++)s[o]=e.text;function D(t,e){var r=p[t];return d.tickText(r,r.d2l(e),!0).text}var R=e.texttemplate;if(R){var F=t.fullLayout._d3locale,B=Array.isArray(R),N=B?Math.min(R.length,P):P,j=B?function(t){return R[t]}:function(){return R};for(s=new Array(N),o=0;o&lt;N;o++){var U={x:E[o],y:L[o],z:C[o]},V={xLabel:D(&quot;xaxis&quot;,E[o]),yLabel:D(&quot;yaxis&quot;,L[o]),zLabel:D(&quot;zaxis&quot;,C[o])},q={};g(q,e,o);var H=e._meta||{};s[o]=l.texttemplateString(j(o),V,F,q,U,H)}}if(a={position:h,mode:e.mode,text:s},&quot;line&quot;in e&amp;&amp;(a.lineColor=u(S,1,P),a.lineWidth=S.width,a.lineDashes=S.dash),&quot;marker&quot;in e){var G=f(e);a.scatterColor=u(M,1,P),a.scatterSize=T(M.size,P,_,20,G),a.scatterMarker=T(M.symbol,P,w,&quot;\u25cf&quot;),a.scatterLineWidth=M.line.width,a.scatterLineColor=u(M.line,1,P),a.scatterAngle=0}&quot;textposition&quot;in e&amp;&amp;(a.textOffset=function(t){var e=[0,0];if(Array.isArray(t))for(var r=0;r&lt;t.length;r++)e[r]=[0,0],t[r]&amp;&amp;(e[r][0]=x(t[r]),e[r][1]=b(t[r]));else e[0]=x(t),e[1]=b(t);return e}(e.textposition),a.textColor=u(e.textfont,1,P),a.textSize=T(e.textfont.size,P,l.identity,12),a.textFont=e.textfont.family,a.textAngle=0);var Y=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(a.project=[!1,!1,!1],a.projectScale=[1,1,1],a.projectOpacity=[1,1,1],o=0;o&lt;3;++o){var W=e.projection[Y[o]];(a.project[o]=W.show)&amp;&amp;(a.projectOpacity[o]=W.opacity,a.projectScale[o]=W.scale)}a.errorBounds=m(e,v,p);var X=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i&lt;3;i++){var a=t[i];a&amp;&amp;!1!==a.copy_zstyle&amp;&amp;!1!==t[2].visible&amp;&amp;(a=t[2]),a&amp;&amp;a.visible&amp;&amp;(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return a.errorColor=X.color,a.errorLineWidth=X.lineWidth,a.errorCapSize=X.capSize,a.delaunayAxis=e.surfaceaxis,a.delaunayColor=c(e.surfacecolor),a}function A(t){if(l.isArrayOrTypedArray(t)){var e=t[0];return l.isArrayOrTypedArray(e)&amp;&amp;(t=e),&quot;rgb(&quot;+t.slice(0,3).map((function(t){return Math.round(255*t)}))+&quot;)&quot;}return null}function M(t){return l.isArrayOrTypedArray(t)?4===t.length&amp;&amp;&quot;number&quot;==typeof t[0]?A(t):t.map(A):null}y.handlePick=function(t){if(t.object&amp;&amp;(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&amp;&amp;t.object.highlight(null),this.scatterPlot&amp;&amp;(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=&quot;&quot;,this.textLabels&amp;&amp;(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&amp;&amp;(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},y.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=k(this.scene,t);&quot;mode&quot;in p&amp;&amp;(this.mode=p.mode),&quot;lineDashes&quot;in p&amp;&amp;p.lineDashes in h&amp;&amp;(f=h[p.lineDashes]),this.color=M(p.scatterColor)||M(p.lineColor),this.dataPoints=p.position,e={gl:this.scene.glplot.gl,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(&quot;lines&quot;)?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&amp;&amp;t.marker.opacity&amp;&amp;(d*=t.marker.opacity),r={gl:this.scene.glplot.gl,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(&quot;markers&quot;)?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:this.scene.glplot.gl,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(&quot;text&quot;)?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&amp;&amp;(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis&gt;=0){var g=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n&lt;t.length;++n){var c=t[n];!isNaN(c[i])&amp;&amp;isFinite(c[i])&amp;&amp;!isNaN(c[a])&amp;&amp;isFinite(c[a])&amp;&amp;(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n&lt;u.length;++n)for(var f=u[n],h=0;h&lt;f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);g.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(g):(g.gl=u,this.delaunayMesh=o(g),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&amp;&amp;(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new v(t,e.uid);return r.update(e),r}},{&quot;../../components/fx/helpers&quot;:702,&quot;../../constants/gl3d_dashes&quot;:776,&quot;../../constants/gl3d_markers&quot;:777,&quot;../../lib&quot;:803,&quot;../../lib/gl_format_color&quot;:799,&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/make_bubble_size_func&quot;:1235,&quot;./calc_errors&quot;:1248,&quot;delaunay-triangulate&quot;:180,&quot;gl-error3d&quot;:273,&quot;gl-line3d&quot;:281,&quot;gl-mesh3d&quot;:315,&quot;gl-scatter3d&quot;:334}],1250:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=r(&quot;z&quot;);n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],i),o&amp;&amp;s&amp;&amp;l&amp;&amp;(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;xhoverformat&quot;),f(&quot;yhoverformat&quot;),f(&quot;zhoverformat&quot;),f(&quot;mode&quot;),a.hasLines(e)&amp;&amp;(f(&quot;connectgaps&quot;),s(t,e,r,u,f)),a.hasMarkers(e)&amp;&amp;o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),l(t,e,u,f,{noSelect:!0}));var h=(e.line||{}).color,p=(e.marker||{}).color;f(&quot;surfaceaxis&quot;)&gt;=0&amp;&amp;f(&quot;surfacecolor&quot;,h||p);for(var d=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],g=0;g&lt;3;++g){var m=&quot;projection.&quot;+d[g];f(m+&quot;.show&quot;)&amp;&amp;(f(m+&quot;.opacity&quot;),f(m+&quot;.scale&quot;))}var v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,h||p||r,{axis:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;y&quot;,inherit:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;x&quot;,inherit:&quot;z&quot;})}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1246}],1251:[function(t,e,r){&quot;use strict&quot;;e.exports={plot:t(&quot;./convert&quot;),attributes:t(&quot;./attributes&quot;),markerSymbols:t(&quot;../../constants/gl3d_markers&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:[{container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}],calc:t(&quot;./calc&quot;),moduleType:&quot;trace&quot;,name:&quot;scatter3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../constants/gl3d_markers&quot;:777,&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1246,&quot;./calc&quot;:1247,&quot;./convert&quot;:1249,&quot;./defaults&quot;:1250}],1252:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},mode:l({},n.mode,{dflt:&quot;markers&quot;}),text:l({},n.text,{}),texttemplate:o({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:l({},u.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:u.smoothing,editType:&quot;calc&quot;},connectgaps:n.connectgaps,fill:l({},n.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:c.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:n.hoveron,hovertemplate:a()}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1253:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=t(&quot;../carpet/lookup_carpetid&quot;);e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c&lt;h;c++)if(u=e.a[c],f=e.b[c],n(u)&amp;&amp;n(f)){var g=r.ab2xy(+u,+f,!0),m=r.isVisible(+u,+f);m||(d=!0),p[c]={x:g[0],y:g[1],a:u,b:f,vis:m}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(t,e),a(p,e),o(p,e),p}}},{&quot;../carpet/lookup_carpetid&quot;:1001,&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/calc&quot;:1219,&quot;../scatter/calc_selection&quot;:1220,&quot;../scatter/colorscale_calc&quot;:1221,&quot;fast-isnumeric&quot;:249}],1254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(&quot;carpet&quot;),e.xaxis=&quot;x&quot;,e.yaxis=&quot;y&quot;;var d=p(&quot;a&quot;),g=p(&quot;b&quot;),m=Math.min(d.length,g.length);if(m){e._length=m,p(&quot;text&quot;),p(&quot;texttemplate&quot;),p(&quot;hovertext&quot;),p(&quot;mode&quot;,m&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;c(t,e,h,p);var v=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;marker.maxdisplayed&quot;),v.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||v.push(&quot;fills&quot;),&quot;fills&quot;!==p(&quot;hoveron&quot;,v.join(&quot;+&quot;)||&quot;points&quot;)&amp;&amp;p(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/constants&quot;:1222,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/line_shape_defaults&quot;:1233,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1252}],1255:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t.y=a.y,t}},{}],1256:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r={},n=e._carpet,i=n.ab2ij([t.a,t.b]),a=Math.floor(i[0]),o=i[0]-a,s=Math.floor(i[1]),l=i[1]-s,c=n.evalxy([],a,s,o,l);return r.yLabel=c[1].toFixed(3),r}},{}],1257:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;),i=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=p._carpet,g=p._module.formatLabels(h,p);s.yLabel=g.yLabel,delete s.text;var m=[];if(!p.hovertemplate){var v=(h.hi||p.hoverinfo).split(&quot;+&quot;);-1!==v.indexOf(&quot;all&quot;)&amp;&amp;(v=[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]),-1!==v.indexOf(&quot;a&quot;)&amp;&amp;y(d.aaxis,h.a),-1!==v.indexOf(&quot;b&quot;)&amp;&amp;y(d.baxis,h.b),m.push(&quot;y: &quot;+s.yLabel),-1!==v.indexOf(&quot;text&quot;)&amp;&amp;i(h,p,m),s.extraText=m.join(&quot;&lt;br&gt;&quot;)}return o}function y(t,e){var r;r=t.labelprefix&amp;&amp;t.labelprefix.length&gt;0?t.labelprefix.replace(/ = $/,&quot;&quot;):t._hovertitle,m.push(r+&quot;: &quot;+e.toFixed(3)+t.labelsuffix)}}},{&quot;../../lib&quot;:803,&quot;../scatter/hover&quot;:1229}],1258:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scattercarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;svg&quot;,&quot;carpet&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;carpetDependent&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scatter/select&quot;:1240,&quot;../scatter/style&quot;:1242,&quot;./attributes&quot;:1252,&quot;./calc&quot;:1253,&quot;./defaults&quot;:1254,&quot;./event_data&quot;:1255,&quot;./format_labels&quot;:1256,&quot;./hover&quot;:1257,&quot;./plot&quot;:1259}],1259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../components/drawing&quot;);e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||&quot;x&quot;),yaxis:i.getFromId(t,u.yaxis||&quot;y&quot;),plot:e.plot};for(n(t,f,r,o),s=0;s&lt;r.length;s++)l=r[s][0].trace,c=o.selectAll(&quot;g.trace&quot;+l.uid+&quot; .js-line&quot;),a.setClipUrl(c,r[s][0].carpet._clipPathId,t)}},{&quot;../../components/drawing&quot;:688,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/plot&quot;:1239}],1260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../plot_api/edit_types&quot;).overrideAll,f=a.marker,h=a.line,p=f.line;e.exports=u({lon:{valType:&quot;data_array&quot;},lat:{valType:&quot;data_array&quot;},locations:{valType:&quot;data_array&quot;},locationmode:{valType:&quot;enumerated&quot;,values:[&quot;ISO-3&quot;,&quot;USA-states&quot;,&quot;country names&quot;,&quot;geojson-id&quot;],dflt:&quot;ISO-3&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;id&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;location&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),textfont:a.textfont,textposition:a.textposition,line:{color:h.color,width:h.width,dash:l},connectgaps:a.connectgaps,marker:c({symbol:f.symbol,opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,colorbar:f.colorbar,line:c({width:p.width},s(&quot;marker.line&quot;)),gradient:f.gradient},s(&quot;marker&quot;)),fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;toself&quot;],dflt:&quot;none&quot;},fillcolor:a.fillcolor,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;location&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/drawing/attributes&quot;:687,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/colorscale_calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../lib&quot;)._;function c(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,u=Array.isArray(e.locations),f=u?e.locations.length:e._length,h=new Array(f);r=e.geojson?function(t){return c(t)||n(t)}:c;for(var p=0;p&lt;f;p++){var d=h[p]={};if(u){var g=e.locations[p];d.loc=r(g)?g:null}else{var m=e.lon[p],v=e.lat[p];n(m)&amp;&amp;n(v)?d.lonlat=[+m,+v]:d.lonlat=[i,i]}}return o(h,e),a(t,e),s(h,e),f&amp;&amp;(h[0].t={labels:{lat:l(t,&quot;lat:&quot;)+&quot; &quot;,lon:l(t,&quot;lon:&quot;)+&quot; &quot;}}),h}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/calc_selection&quot;:1220,&quot;../scatter/colorscale_calc&quot;:1221,&quot;fast-isnumeric&quot;:249}],1262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}var h,p=f(&quot;locations&quot;);if(p&amp;&amp;p.length){var d,g=f(&quot;geojson&quot;);(&quot;string&quot;==typeof g&amp;&amp;&quot;&quot;!==g||n.isPlainObject(g))&amp;&amp;(d=&quot;geojson-id&quot;),&quot;geojson-id&quot;===f(&quot;locationmode&quot;,d)&amp;&amp;f(&quot;featureidkey&quot;),h=p.length}else{var m=f(&quot;lon&quot;)||[],v=f(&quot;lat&quot;)||[];h=Math.min(m.length,v.length)}h?(e._length=h,f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f),f(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),s(t,e,u,f)),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1260}],1263:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t}},{}],1264:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.geo]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:854}],1265:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/get_trace_color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=h.projection.isLonLatOverEdges,d=h.project;if(n.getClosest(l,(function(t){var n=t.lonlat;if(n[0]===i)return 1/0;if(p(n))return 1/0;var a=d(n),o=d([e,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[u.c2p(m),f.c2p(m)],y=g.mrc||1;t.x0=v[0]-y,t.x1=v[0]+y,t.y0=v[1]-y,t.y1=v[1]+y,t.loc=g.loc,t.lon=m[0],t.lat=m[1];var x={};x[c.geo]={_subplot:h};var b=c._module.formatLabels(g,c,x);return t.lonLabel=b.lonLabel,t.latLabel=b.latLabel,t.color=a(c,g),t.extraText=function(t,e,r,n){if(t.hovertemplate)return;var i=e.hi||t.hoverinfo,a=&quot;all&quot;===i?s.hoverinfo.flags:i.split(&quot;+&quot;),l=-1!==a.indexOf(&quot;location&quot;)&amp;&amp;Array.isArray(t.locations),c=-1!==a.indexOf(&quot;lon&quot;),u=-1!==a.indexOf(&quot;lat&quot;),f=-1!==a.indexOf(&quot;text&quot;),h=[];function p(t){return t+&quot;\xb0&quot;}l?h.push(e.loc):c&amp;&amp;u?h.push(&quot;(&quot;+p(r.latLabel)+&quot;, &quot;+p(r.lonLabel)+&quot;)&quot;):c?h.push(n.lon+p(r.lonLabel)):u&amp;&amp;h.push(n.lat+p(r.latLabel));f&amp;&amp;o(e,t,h);return h.join(&quot;&lt;br&gt;&quot;)}(c,g,t,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:706,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../scatter/get_trace_color&quot;:1228,&quot;./attributes&quot;:1260}],1266:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;scattergeo&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/geo&quot;:887,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scatter/style&quot;:1242,&quot;./attributes&quot;:1260,&quot;./calc&quot;:1261,&quot;./defaults&quot;:1262,&quot;./event_data&quot;:1263,&quot;./format_labels&quot;:1264,&quot;./hover&quot;:1265,&quot;./plot&quot;:1267,&quot;./select&quot;:1268,&quot;./style&quot;:1269}],1267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../lib/geo_location_utils&quot;),l=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,c=t(&quot;../../constants/numerical&quot;).BADNUM,u=t(&quot;../scatter/calc&quot;).calcMarkerSize,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;./style&quot;);e.exports={calcGeoJSON:function(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,h=i._length;if(Array.isArray(i.locations)){var p=i.locationmode,d=&quot;geojson-id&quot;===p?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r&lt;h;r++){n=t[r];var g=&quot;geojson-id&quot;===p?n.fOut:s.locationToFeature(p,n.loc,d);n.lonlat=g?g.properties.ct:[c,c]}}var m,v,y={padded:!0};if(&quot;geojson&quot;===o.fitbounds&amp;&amp;&quot;geojson-id&quot;===i.locationmode){var x=s.computeBbox(s.getTraceGeojson(i));m=[x[0],x[2]],v=[x[1],x[3]]}else{for(m=new Array(h),v=new Array(h),r=0;r&lt;h;r++)n=t[r],m[r]=n.lonlat[0],v[r]=n.lonlat[1];y.ppad=u(i,h)}i._extremes.lon=l(o.lonaxis._ax,m,y),i._extremes.lat=l(o.lataxis._ax,v,y)},plot:function(t,e,r){var a=e.layers.frontplot.select(&quot;.scatterlayer&quot;),s=i.makeTraceGroups(a,r,&quot;trace scattergeo&quot;);function l(t,e){t.lonlat[0]===c&amp;&amp;n.select(e).remove()}s.selectAll(&quot;*&quot;).remove(),s.each((function(e){var r=n.select(this),a=e[0].trace;if(f.hasLines(a)||&quot;none&quot;!==a.fill){var s=o.calcTraceToLineCoords(e),c=&quot;none&quot;!==a.fill?o.makePolygon(s):o.makeLine(s);r.selectAll(&quot;path.js-line&quot;).data([{geojson:c,trace:a}]).enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;stroke-miterlimit&quot;,2)}f.hasMarkers(a)&amp;&amp;r.selectAll(&quot;path.point&quot;).data(i.identity).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0).each((function(t){l(t,this)})),f.hasText(a)&amp;&amp;r.selectAll(&quot;g&quot;).data(i.identity).enter().append(&quot;g&quot;).append(&quot;text&quot;).each((function(t){l(t,this)})),h(t,e)}))}}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../lib/geo_location_utils&quot;:796,&quot;../../lib/geojson_utils&quot;:797,&quot;../../lib/topojson_utils&quot;:832,&quot;../../plots/cartesian/autorange&quot;:853,&quot;../scatter/calc&quot;:1219,&quot;../scatter/subtypes&quot;:1243,&quot;./style&quot;:1269,&quot;@plotly/d3&quot;:58}],1268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&amp;&amp;!n.hasText(p))return[];if(!1===e)for(l=0;l&lt;c.length;l++)c[l].selected=0;else for(l=0;l&lt;c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&amp;&amp;(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{&quot;../../constants/numerical&quot;:779,&quot;../scatter/subtypes&quot;:1243}],1269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/style&quot;),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&amp;&amp;function(t,e){var r=e[0].trace,o=e[0].node3;o.style(&quot;opacity&quot;,e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(&quot;path.js-line&quot;).style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||&quot;&quot;,o.width||0),&quot;none&quot;!==r.fill&amp;&amp;e.call(a.fill,r.fillcolor)}))}(t,e)}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../scatter/style&quot;:1242,&quot;@plotly/d3&quot;:58}],1270:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../lib/sort_object_keys&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../plot_api/edit_types&quot;).overrideAll,u=t(&quot;./constants&quot;).DASHES,f=i.line,h=i.marker,p=h.line,d=e.exports=c({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;]},line:{color:f.color,width:f.width,shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},dash:{valType:&quot;enumerated&quot;,values:s(u),dflt:&quot;solid&quot;}},marker:l({},o(&quot;marker&quot;),{symbol:h.symbol,size:h.size,sizeref:h.sizeref,sizemin:h.sizemin,sizemode:h.sizemode,opacity:h.opacity,colorbar:h.colorbar,line:l({},o(&quot;marker.line&quot;),{width:p.width})}),connectgaps:i.connectgaps,fill:l({},i.fill,{dflt:&quot;none&quot;}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},&quot;calc&quot;,&quot;nested&quot;);d.x.editType=d.y.editType=d.x0.editType=d.y0.editType=&quot;calc+clearAxisTypes&quot;,d.hovertemplate=i.hovertemplate,d.texttemplate=i.texttemplate},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../lib/sort_object_keys&quot;:826,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../scatter/attributes&quot;:1218,&quot;./constants&quot;:1272}],1271:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,s=t(&quot;../../plots/cartesian/align_period&quot;),l=t(&quot;../scatter/calc&quot;),c=l.calcMarkerSize,u=l.calcAxisExpansion,f=l.setFirstScatter,h=t(&quot;../scatter/colorscale_calc&quot;),p=t(&quot;./convert&quot;),d=t(&quot;./scene_update&quot;),g=t(&quot;../../constants/numerical&quot;).BADNUM,m=t(&quot;./constants&quot;).TOO_MANY_POINTS;function v(t,e,r){var n=t._extremes[e._id],i=o(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(t,e){var r,o=t._fullLayout,l=a.getFromId(t,e.xaxis),y=a.getFromId(t,e.yaxis),x=o._plots[e.xaxis+e.yaxis],b=e._length,_=b&gt;=m,w=2*b,T={},k=l.makeCalcdata(e,&quot;x&quot;),A=y.makeCalcdata(e,&quot;y&quot;),M=s(e,l,&quot;x&quot;,k),S=s(e,y,&quot;y&quot;,A),E=M.vals,L=S.vals;e._x=E,e._y=L,e.xperiodalignment&amp;&amp;(e._origX=k,e._xStarts=M.starts,e._xEnds=M.ends),e.yperiodalignment&amp;&amp;(e._origY=A,e._yStarts=S.starts,e._yEnds=S.ends);var C=new Array(w),P=new Array(b);for(r=0;r&lt;b;r++)C[2*r]=E[r]===g?NaN:E[r],C[2*r+1]=L[r]===g?NaN:L[r],P[r]=r;if(&quot;log&quot;===l.type)for(r=0;r&lt;w;r+=2)C[r]=l.c2l(C[r]);if(&quot;log&quot;===y.type)for(r=1;r&lt;w;r+=2)C[r]=y.c2l(C[r]);_&amp;&amp;&quot;log&quot;!==l.type&amp;&amp;&quot;log&quot;!==y.type?T.tree=n(C):T.ids=P,h(t,e);var I,O=function(t,e,r,n,a,o){var s=p.style(t,r);s.marker&amp;&amp;(s.marker.positions=n);s.line&amp;&amp;n.length&gt;1&amp;&amp;i.extendFlat(s.line,p.linePositions(t,r,n));if(s.errorX||s.errorY){var l=p.errorBarPositions(t,r,n,a,o);s.errorX&amp;&amp;i.extendFlat(s.errorX,l.x),s.errorY&amp;&amp;i.extendFlat(s.errorY,l.y)}s.text&amp;&amp;(i.extendFlat(s.text,{positions:n},p.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},p.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},p.textPosition(t,r,s.text,s.markerUnsel)));return s}(t,0,e,C,E,L),z=d(t,x);return f(o,e),_?O.marker&amp;&amp;(I=O.marker.sizeAvg||Math.max(O.marker.size,3)):I=c(e,b),u(t,e,l,y,E,L,I),O.errorX&amp;&amp;v(e,l,O.errorX),O.errorY&amp;&amp;v(e,y,O.errorY),O.fill&amp;&amp;!z.fill2d&amp;&amp;(z.fill2d=!0),O.marker&amp;&amp;!z.scatter2d&amp;&amp;(z.scatter2d=!0),O.line&amp;&amp;!z.line2d&amp;&amp;(z.line2d=!0),!O.errorX&amp;&amp;!O.errorY||z.error2d||(z.error2d=!0),O.text&amp;&amp;!z.glText&amp;&amp;(z.glText=!0),O.marker&amp;&amp;(O.marker.snap=b),z.lineOptions.push(O.line),z.errorXOptions.push(O.errorX),z.errorYOptions.push(O.errorY),z.fillOptions.push(O.fill),z.markerOptions.push(O.marker),z.markerSelectedOptions.push(O.markerSel),z.markerUnselectedOptions.push(O.markerUnsel),z.textOptions.push(O.text),z.textSelectedOptions.push(O.textSel),z.textUnselectedOptions.push(O.textUnsel),z.selectBatch.push([]),z.unselectBatch.push([]),T._scene=z,T.index=z.count,T.x=E,T.y=L,T.positions=C,z.count++,[{x:!1,y:!1,t:T,trace:e}]}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/autorange&quot;:853,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../scatter/calc&quot;:1219,&quot;../scatter/colorscale_calc&quot;:1221,&quot;./constants&quot;:1272,&quot;./convert&quot;:1273,&quot;./scene_update&quot;:1281,&quot;@plotly/point-cluster&quot;:59}],1272:[function(t,e,r){&quot;use strict&quot;;e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1273:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;svg-path-sdf&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../plots/cartesian/axis_ids&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;../scatter/make_bubble_size_func&quot;),p=t(&quot;./helpers&quot;),d=t(&quot;./constants&quot;),g=t(&quot;../../constants/interactions&quot;).DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue;function y(t,e){var r,i=t._fullLayout,a=e._length,o=e.textfont,l=e.textposition,c=Array.isArray(l)?l:[l],u=o.color,f=o.size,h=o.family,p={},d=t._context.plotGlPixelRatio,g=e.texttemplate;if(g){p.text=[];var m=i._d3locale,y=Array.isArray(g),x=y?Math.min(g.length,a):a,b=y?function(t){return g[t]}:function(){return g};for(r=0;r&lt;x;r++){var _={i:r},w=e._module.formatLabels(_,e,i),T={};v(T,e,r);var k=e._meta||{};p.text.push(s.texttemplateString(b(r),w,m,T,_,k))}}else Array.isArray(e.text)&amp;&amp;e.text.length&lt;a?p.text=e.text.slice():p.text=e.text;if(Array.isArray(p.text))for(r=p.text.length;r&lt;a;r++)p.text[r]=&quot;&quot;;for(p.opacity=e.opacity,p.font={},p.align=[],p.baseline=[],r=0;r&lt;c.length;r++){var A=c[r].split(/\s+/);switch(A[1]){case&quot;left&quot;:p.align.push(&quot;right&quot;);break;case&quot;right&quot;:p.align.push(&quot;left&quot;);break;default:p.align.push(A[1])}switch(A[0]){case&quot;top&quot;:p.baseline.push(&quot;bottom&quot;);break;case&quot;bottom&quot;:p.baseline.push(&quot;top&quot;);break;default:p.baseline.push(A[0])}}if(Array.isArray(u))for(p.color=new Array(a),r=0;r&lt;a;r++)p.color[r]=u[r];else p.color=u;if(s.isArrayOrTypedArray(f)||Array.isArray(h))for(p.font=new Array(a),r=0;r&lt;a;r++){var M=p.font[r]={};M.size=(s.isTypedArray(f)?f[r]:Array.isArray(f)?n(f[r])?f[r]:0:f)*d,M.family=Array.isArray(h)?h[r]:h}else p.font={size:f*d,family:h};return p}function x(t){var e,r,n=t._length,i=t.marker,o={},l=s.isArrayOrTypedArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),g=s.isArrayOrTypedArray(i.size),m=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.isOpenSymbol(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var v=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e&lt;n;e++)y[e]=x}if(!Array.isArray(v[0])){var b=v;for(v=Array(n),e=0;e&lt;n;e++)v[e]=b}for(o.colors=v,o.borderColors=y,e=0;e&lt;n;e++){if(l){var _=i.symbol[e];r=p.isOpenSymbol(_)}r&amp;&amp;(y[e]=v[e].slice(),v[e]=v[e].slice(),v[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,&quot;uint8&quot;),o.color[3]=0,o.borderColor=a(i.color,&quot;uint8&quot;)):(o.color=a(i.color,&quot;uint8&quot;),o.borderColor=a(i.line.color,&quot;uint8&quot;)),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e&lt;n;e++)o.markers[e]=E(i.symbol[e]);else o.marker=E(i.symbol);var w,T=h(t,1);if(g||m){var k,A=o.sizes=new Array(n),M=o.borderSizes=new Array(n),S=0;if(g){for(e=0;e&lt;n;e++)A[e]=T(i.size[e]),S+=A[e];k=S/n}else for(w=T(i.size),e=0;e&lt;n;e++)A[e]=w;if(m)for(e=0;e&lt;n;e++)M[e]=i.line.width[e];else for(w=i.line.width,e=0;e&lt;n;e++)M[e]=w;o.sizeAvg=k}else o.size=T(i&amp;&amp;i.size||10),o.borderSizes=T(i.line.width);return o}function b(t,e){var r=t.marker,n={};return e?(e.marker&amp;&amp;e.marker.symbol?n=x(s.extendFlat({},r,e.marker)):e.marker&amp;&amp;(e.marker.size&amp;&amp;(n.size=e.marker.size),e.marker.color&amp;&amp;(n.colors=e.marker.color),void 0!==e.marker.opacity&amp;&amp;(n.opacity=e.marker.opacity)),n):n}function _(t,e,r){var n={};if(!r)return n;if(r.textfont){var i={opacity:1,text:e.text,texttemplate:e.texttemplate,textposition:e.textposition,textfont:s.extendFlat({},e.textfont)};r.textfont&amp;&amp;s.extendFlat(i.textfont,r.textfont),n=y(t,i)}return n}function w(t,e,r){var n={capSize:2*e.width*r,lineWidth:e.thickness*r,color:e.color};return e.copy_ystyle&amp;&amp;(n=t.error_y),n}var T=d.SYMBOL_SDF_SIZE,k=d.SYMBOL_SIZE,A=d.SYMBOL_STROKE,M={},S=l.symbolFuncs[0](.05*k);function E(t){if(&quot;circle&quot;===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.isDotSymbol(t);return M[t]?M[t]:(e=c&amp;&amp;!o?a(1.1*k)+S:a(k),r=i(e,{w:T,h:T,viewBox:[-k,-k,k,k],stroke:s?A:-A}),M[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=t._context.plotGlPixelRatio;if(!0!==e.visible)return n;if(f.hasText(e)&amp;&amp;(n.text=y(t,e),n.textSel=_(t,e,e.selected),n.textUnsel=_(t,e,e.unselected)),f.hasMarkers(e)&amp;&amp;(n.marker=x(e),n.markerSel=b(e,e.selected),n.markerUnsel=b(e,e.unselected),!e.unselected&amp;&amp;s.isArrayOrTypedArray(e.marker.opacity))){var a=e.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r&lt;a.length;r++)n.markerUnsel.opacity[r]=g*a[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width*i,color:e.line.color,opacity:e.opacity};var o=(d.DASHES[e.line.dash]||[1]).slice();for(r=0;r&lt;o.length;++r)o[r]*=e.line.width*i;n.line.dashes=o}return e.error_x&amp;&amp;e.error_x.visible&amp;&amp;(n.errorX=w(e,e.error_x,i)),e.error_y&amp;&amp;e.error_y.visible&amp;&amp;(n.errorY=w(e,e.error_y,i)),e.fill&amp;&amp;&quot;none&quot;!==e.fill&amp;&amp;(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:x,markerSelection:b,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&amp;&amp;o)if(&quot;hv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(&quot;hvh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(&quot;vhv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(&quot;vh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i&lt;n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length&gt;d.TOO_MANY_POINTS||f.hasMarkers(e)?&quot;rect&quot;:&quot;round&quot;;if(c&amp;&amp;e.connectgaps){var h=n[0],p=n[1];for(i=0;i&lt;n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=p):(h=n[i],p=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[&quot;error_&quot;+a];if(o&amp;&amp;o.visible&amp;&amp;(&quot;linear&quot;===i.type||&quot;log&quot;===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,g=-1/0,m=0,v=0;m&lt;f;m++,v+=4){var y=t[m];if(n(y)){var x=r[2*m+c],b=l(y,m),_=b[0],w=b[1];if(n(_)&amp;&amp;n(w)){var T=y-_,k=y+w;p[v+u[0]]=x-i.c2l(T),p[v+u[1]]=i.c2l(k)-x,p[v+u[2]]=0,p[v+u[3]]=0,d=Math.min(d,y-_),g=Math.max(g,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,g]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i&lt;a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length&gt;1?l[i]:l[0]:l,d=Array.isArray(c)?c.length&gt;1?c[i]:c[0]:c,g=m[p],v=m[d],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[g*y/h,x/h]}}return o}}},{&quot;../../components/drawing&quot;:688,&quot;../../components/fx/helpers&quot;:702,&quot;../../constants/interactions&quot;:778,&quot;../../lib&quot;:803,&quot;../../lib/gl_format_color&quot;:799,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../registry&quot;:931,&quot;../scatter/make_bubble_size_func&quot;:1235,&quot;../scatter/subtypes&quot;:1243,&quot;./constants&quot;:1272,&quot;./helpers&quot;:1277,&quot;color-normalize&quot;:131,&quot;fast-isnumeric&quot;:249,&quot;svg-path-sdf&quot;:595}],1274:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./helpers&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../scatter/constants&quot;),l=t(&quot;../scatter/subtypes&quot;),c=t(&quot;../scatter/xy_defaults&quot;),u=t(&quot;../scatter/period_defaults&quot;),f=t(&quot;../scatter/marker_defaults&quot;),h=t(&quot;../scatter/line_defaults&quot;),p=t(&quot;../scatter/fillcolor_defaults&quot;),d=t(&quot;../scatter/text_defaults&quot;);e.exports=function(t,e,r,g){function m(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&amp;&amp;a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),x=c(t,e,g,m);if(x){u(t,e,g,m),m(&quot;xhoverformat&quot;),m(&quot;yhoverformat&quot;);var b=x&lt;s.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;m(&quot;text&quot;),m(&quot;hovertext&quot;),m(&quot;hovertemplate&quot;),m(&quot;mode&quot;,b),l.hasLines(e)&amp;&amp;(m(&quot;connectgaps&quot;),h(t,e,r,g,m),m(&quot;line.shape&quot;)),l.hasMarkers(e)&amp;&amp;(f(t,e,r,g,m),m(&quot;marker.line.width&quot;,v||y?1:0)),l.hasText(e)&amp;&amp;(m(&quot;texttemplate&quot;),d(t,e,g,m));var _=(e.line||{}).color,w=(e.marker||{}).color;m(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;p(t,e,r,m);var T=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);T(t,e,_||w||r,{axis:&quot;y&quot;}),T(t,e,_||w||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,m)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../scatter/constants&quot;:1222,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/period_defaults&quot;:1238,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;../scatter/xy_defaults&quot;:1245,&quot;./attributes&quot;:1270,&quot;./helpers&quot;:1277}],1275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../constants/interactions&quot;).DESELECTDIM;e.exports={styleTextSelection:function(t){var e,r,o=t[0],s=o.trace,l=o.t,c=l._scene,u=l.index,f=c.selectBatch[u],h=c.unselectBatch[u],p=c.textOptions[u],d=c.textSelectedOptions[u]||{},g=c.textUnselectedOptions[u]||{},m=n.extendFlat({},p);if(f.length||h.length){var v=d.color,y=g.color,x=p.color,b=Array.isArray(x);for(m.color=new Array(s._length),e=0;e&lt;f.length;e++)r=f[e],m.color[r]=v||(b?x[r]:x);for(e=0;e&lt;h.length;e++){r=h[e];var _=b?x[r]:x;m.color[r]=y||(v?_:i.addOpacity(_,a))}}c.glText[u].update(m)}}},{&quot;../../components/color&quot;:666,&quot;../../constants/interactions&quot;:778,&quot;../../lib&quot;:803}],1276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;x&quot;in t||(t.x=e._x[i]),&quot;y&quot;in t||(t.y=e._y[i]),n(t,e,r)}},{&quot;../scatter/format_labels&quot;:1227}],1277:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);r.isOpenSymbol=function(t){return&quot;string&quot;==typeof t?n.OPEN_RE.test(t):t%200&gt;100},r.isDotSymbol=function(t){return&quot;string&quot;==typeof t?n.DOT_RE.test(t):t&gt;200}},{&quot;./constants&quot;:1272}],1278:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;);function o(t,e,r,o){var s=t.xa,l=t.ya,c=t.distance,u=t.dxy,f=t.index,h={pointNumber:f,x:e[f],y:r[f]};h.tx=Array.isArray(o.text)?o.text[f]:o.text,h.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,h.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,h.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&amp;&amp;(h.ts=i.isArrayOrTypedArray(p.size)?p.size[f]:p.size,h.tc=Array.isArray(p.color)?p.color[f]:p.color,h.tf=Array.isArray(p.family)?p.family[f]:p.family);var d=o.marker;d&amp;&amp;(h.ms=i.isArrayOrTypedArray(d.size)?d.size[f]:d.size,h.mo=i.isArrayOrTypedArray(d.opacity)?d.opacity[f]:d.opacity,h.mx=i.isArrayOrTypedArray(d.symbol)?d.symbol[f]:d.symbol,h.mc=i.isArrayOrTypedArray(d.color)?d.color[f]:d.color);var g=d&amp;&amp;d.line;g&amp;&amp;(h.mlc=Array.isArray(g.color)?g.color[f]:g.color,h.mlw=i.isArrayOrTypedArray(g.width)?g.width[f]:g.width);var m=d&amp;&amp;d.gradient;m&amp;&amp;&quot;none&quot;!==m.type&amp;&amp;(h.mgt=Array.isArray(m.type)?m.type[f]:m.type,h.mgc=Array.isArray(m.color)?m.color[f]:m.color);var v=s.c2p(h.x,!0),y=l.c2p(h.y,!0),x=h.mrc||1,b=o.hoverlabel;b&amp;&amp;(h.hbg=Array.isArray(b.bgcolor)?b.bgcolor[f]:b.bgcolor,h.hbc=Array.isArray(b.bordercolor)?b.bordercolor[f]:b.bordercolor,h.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[f]:b.font.size,h.htc=Array.isArray(b.font.color)?b.font.color[f]:b.font.color,h.htf=Array.isArray(b.font.family)?b.font.family[f]:b.font.family,h.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[f]:b.namelength);var _=o.hoverinfo;_&amp;&amp;(h.hi=Array.isArray(_)?_[f]:_);var w=o.hovertemplate;w&amp;&amp;(h.ht=Array.isArray(w)?w[f]:w);var T={};T[t.index]=h;var k=o._origX,A=o._origY,M=i.extendFlat({},t,{color:a(o,h),x0:v-x,x1:v+x,xLabelVal:k?k[f]:h.x,y0:y-x,y1:y+x,yLabelVal:A?A[f]:h.y,cd:T,distance:c,spikeDistance:u,hovertemplate:h.ht});return h.htx?M.text=h.htx:h.tx?M.text=h.tx:o.text&amp;&amp;(M.text=o.text),i.fillText(h,o,M),n.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(h,o,M),M}e.exports={hoverPoints:function(t,e,r,n){var i,a,s,l,c,u,f,h,p,d,g=t.cd,m=g[0].t,v=g[0].trace,y=t.xa,x=t.ya,b=m.x,_=m.y,w=y.c2p(e),T=x.c2p(r),k=t.distance;if(m.tree){var A=y.p2c(w-k),M=y.p2c(w+k),S=x.p2c(T-k),E=x.p2c(T+k);i=&quot;x&quot;===n?m.tree.range(Math.min(A,M),Math.min(x._rl[0],x._rl[1]),Math.max(A,M),Math.max(x._rl[0],x._rl[1])):m.tree.range(Math.min(A,M),Math.min(S,E),Math.max(A,M),Math.max(S,E))}else i=m.ids;var L=k;if(&quot;x&quot;===n){var C=!!v.xperiodalignment,P=!!v.yperiodalignment;for(u=0;u&lt;i.length;u++){if(l=b[a=i[u]],f=Math.abs(y.c2p(l)-w),C){var I=y.c2p(v._xStarts[a]),O=y.c2p(v._xEnds[a]);f=w&gt;=Math.min(I,O)&amp;&amp;w&lt;=Math.max(I,O)?0:1/0}if(f&lt;L){if(L=f,c=_[a],h=x.c2p(c)-T,P){var z=x.c2p(v._yStarts[a]),D=x.c2p(v._yEnds[a]);h=T&gt;=Math.min(z,D)&amp;&amp;T&lt;=Math.max(z,D)?0:1/0}d=Math.sqrt(f*f+h*h),s=i[u]}}}else for(u=i.length-1;u&gt;-1;u--)l=b[a=i[u]],c=_[a],f=y.c2p(l)-w,h=x.c2p(c)-T,(p=Math.sqrt(f*f+h*h))&lt;L&amp;&amp;(L=d=p,s=a);return t.index=s,t.distance=L,t.dxy=d,void 0===s?[t]:[o(t,b,_,v)]},calcHover:o}},{&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;../scatter/get_trace_color&quot;:1228}],1279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./hover&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;scattergl&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../scatter/cross_trace_defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:n.hoverPoints,selectPoints:t(&quot;./select&quot;),meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../scatter/cross_trace_defaults&quot;:1224,&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1270,&quot;./calc&quot;:1271,&quot;./defaults&quot;:1274,&quot;./format_labels&quot;:1276,&quot;./hover&quot;:1278,&quot;./plot&quot;:1280,&quot;./select&quot;:1282}],1280:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;regl-line2d&quot;),a=t(&quot;regl-error2d&quot;),o=t(&quot;gl-text&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/dragelement/helpers&quot;).selectMode,c=t(&quot;../../lib/prepare_regl&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../scatter/link_traces&quot;),h=t(&quot;./edit_style&quot;).styleTextSelection;function p(t,e,r,n){var i=t._size,a=t.width*n,o=t.height*n,s=i.l*n,l=i.b*n,c=i.r*n,u=i.t*n,f=i.w*n,h=i.h*n;return[s+e.domain[0]*f,l+r.domain[0]*h,a-c-(1-e.domain[1])*f,o-u-(1-r.domain[1])*h]}e.exports=function(t,e,r){if(r.length){var d,g,m=t._fullLayout,v=e._scene,y=e.xaxis,x=e.yaxis;if(v)if(c(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])){var b=v.count,_=m._glcanvas.data()[0].regl;if(f(t,e,r),v.dirty){if(!0===v.error2d&amp;&amp;(v.error2d=a(_)),!0===v.line2d&amp;&amp;(v.line2d=i(_)),!0===v.scatter2d&amp;&amp;(v.scatter2d=n(_)),!0===v.fill2d&amp;&amp;(v.fill2d=i(_)),!0===v.glText)for(v.glText=new Array(b),d=0;d&lt;b;d++)v.glText[d]=new o(_);if(v.glText){if(b&gt;v.glText.length){var w=b-v.glText.length;for(d=0;d&lt;w;d++)v.glText.push(new o(_))}else if(b&lt;v.glText.length){var T=v.glText.length-b;v.glText.splice(b,T).forEach((function(t){t.destroy()}))}for(d=0;d&lt;b;d++)v.glText[d].update(v.textOptions[d])}if(v.line2d&amp;&amp;(v.line2d.update(v.lineOptions),v.lineOptions=v.lineOptions.map((function(t){if(t&amp;&amp;t.positions){for(var e=t.positions,r=0;r&lt;e.length&amp;&amp;(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n&gt;r&amp;&amp;(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),v.line2d.update(v.lineOptions)),v.error2d){var k=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(k)}v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions),v.fillOrder=s.repeat(null,b),v.fill2d&amp;&amp;(v.fillOptions=v.fillOptions.map((function(t,e){var n=r[e];if(t&amp;&amp;n&amp;&amp;n[0]&amp;&amp;n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=v.lineOptions[e],u=[];s._ownfill&amp;&amp;u.push(e),s._nexttrace&amp;&amp;u.push(e+1),u.length&amp;&amp;(v.fillOrder[e]=u);var f,h,p=[],d=c&amp;&amp;c.positions||l.positions;if(&quot;tozeroy&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f+1]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h+1]);)h-=2;0!==d[f+1]&amp;&amp;(p=[d[f],0]),p=p.concat(d.slice(f,h+2)),0!==d[h+1]&amp;&amp;(p=p.concat([d[h],0]))}else if(&quot;tozerox&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h]);)h-=2;0!==d[f]&amp;&amp;(p=[0,d[f+1]]),p=p.concat(d.slice(f,h+2)),0!==d[h]&amp;&amp;(p=p.concat([0,d[h+1]]))}else if(&quot;toself&quot;===s.fill||&quot;tonext&quot;===s.fill){for(p=[],i=0,t.splitNull=!0,a=0;a&lt;d.length;a+=2)(isNaN(d[a])||isNaN(d[a+1]))&amp;&amp;((p=p.concat(d.slice(i,a))).push(d[i],d[i+1]),p.push(null,null),i=a+2);p=p.concat(d.slice(i)),i&amp;&amp;p.push(d[i],d[i+1])}else{var g=s._nexttrace;if(g){var m=v.lineOptions[e+1];if(m){var y=m.positions;if(&quot;tonexty&quot;===s.fill){for(p=d.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||p.push(x,b)}t.fill=g.fillcolor}}}}if(s._prevtrace&amp;&amp;&quot;tonext&quot;===s._prevtrace.fill){var _=v.lineOptions[e-1].positions,w=p.length/2,T=[i=w];for(a=0;a&lt;_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&amp;&amp;(T.push(a/2+w+1),i=a+2);p=p.concat(_),t.hole=T}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=p,t}})),v.fill2d.update(v.fillOptions))}var A=m.dragmode,M=l(A),S=m.clickmode.indexOf(&quot;select&quot;)&gt;-1;for(d=0;d&lt;b;d++){var E=r[d][0],L=E.trace,C=E.t,P=C.index,I=L._length,O=C.x,z=C.y;if(L.selectedpoints||M||S){if(M||(M=!0),L.selectedpoints){var D=v.selectBatch[P]=s.selIndices2selPoints(L),R={};for(g=0;g&lt;D.length;g++)R[D[g]]=1;var F=[];for(g=0;g&lt;I;g++)R[g]||F.push(g);v.unselectBatch[P]=F}var B=C.xpx=new Array(I),N=C.ypx=new Array(I);for(g=0;g&lt;I;g++)B[g]=y.c2p(O[g]),N[g]=x.c2p(z[g])}else C.xpx=C.ypx=null}if(M){if(v.select2d||(v.select2d=n(m._glcanvas.data()[1].regl)),v.scatter2d){var j=new Array(b);for(d=0;d&lt;b;d++)j[d]=v.selectBatch[d].length||v.unselectBatch[d].length?v.markerUnselectedOptions[d]:{};v.scatter2d.update(j)}v.select2d&amp;&amp;(v.select2d.update(v.markerOptions),v.select2d.update(v.markerSelectedOptions)),v.glText&amp;&amp;r.forEach((function(t){var e=((t||[])[0]||{}).trace||{};u.hasText(e)&amp;&amp;h(t)}))}else v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions);var U={viewport:p(m,y,x,t._context.plotGlPixelRatio),range:[(y._rl||y.range)[0],(x._rl||x.range)[0],(y._rl||y.range)[1],(x._rl||x.range)[1]]},V=s.repeat(U,v.count);v.fill2d&amp;&amp;v.fill2d.update(V),v.line2d&amp;&amp;v.line2d.update(V),v.error2d&amp;&amp;v.error2d.update(V.concat(V)),v.scatter2d&amp;&amp;v.scatter2d.update(V),v.select2d&amp;&amp;v.select2d.update(V),v.glText&amp;&amp;v.glText.forEach((function(t){t.update(U)}))}else v.init()}}},{&quot;../../components/dragelement/helpers&quot;:684,&quot;../../lib&quot;:803,&quot;../../lib/prepare_regl&quot;:816,&quot;../scatter/link_traces&quot;:1234,&quot;../scatter/subtypes&quot;:1243,&quot;./edit_style&quot;:1275,&quot;gl-text&quot;:355,&quot;regl-error2d&quot;:536,&quot;regl-line2d&quot;:537,&quot;regl-scatter2d&quot;:538}],1281:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=e._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return e._scene||((r=e._scene={}).init=function(){n.extendFlat(r,a,i)},r.init(),r.update=function(t){var e=n.repeat(t,r.count);if(r.fill2d&amp;&amp;r.fill2d.update(e),r.scatter2d&amp;&amp;r.scatter2d.update(e),r.line2d&amp;&amp;r.line2d.update(e),r.error2d&amp;&amp;r.error2d.update(e.concat(e)),r.select2d&amp;&amp;r.select2d.update(e),r.glText)for(var i=0;i&lt;r.count;i++)r.glText[i].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,i=r.error2d,a=r.line2d,o=r.scatter2d,s=r.glText,l=r.select2d,c=r.selectBatch,u=r.unselectBatch,f=0;f&lt;t;f++){if(e&amp;&amp;r.fillOrder[f]&amp;&amp;e.draw(r.fillOrder[f]),a&amp;&amp;r.lineOptions[f]&amp;&amp;a.draw(f),i&amp;&amp;(r.errorXOptions[f]&amp;&amp;i.draw(f),r.errorYOptions[f]&amp;&amp;i.draw(f+t)),o&amp;&amp;r.markerOptions[f])if(u[f].length){var h=n.repeat([],r.count);h[f]=u[f],o.draw(h)}else c[f].length||o.draw(f);s[f]&amp;&amp;r.textOptions[f]&amp;&amp;s[f].render()}l&amp;&amp;l.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&amp;&amp;r.fill2d.destroy&amp;&amp;r.fill2d.destroy(),r.scatter2d&amp;&amp;r.scatter2d.destroy&amp;&amp;r.scatter2d.destroy(),r.error2d&amp;&amp;r.error2d.destroy&amp;&amp;r.error2d.destroy(),r.line2d&amp;&amp;r.line2d.destroy&amp;&amp;r.line2d.destroy(),r.select2d&amp;&amp;r.select2d.destroy&amp;&amp;r.select2d.destroy(),r.glText&amp;&amp;r.glText.forEach((function(t){t.destroy&amp;&amp;t.destroy()})),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||n.extendFlat(r,i),r}},{&quot;../../lib&quot;:803}],1282:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;./edit_style&quot;).styleTextSelection;e.exports=function(t,e){var r=t.cd,a=t.xaxis,o=t.yaxis,s=[],l=r[0].trace,c=r[0].t,u=l._length,f=c.x,h=c.y,p=c._scene,d=c.index;if(!p)return s;var g=n.hasText(l),m=n.hasMarkers(l),v=!m&amp;&amp;!g;if(!0!==l.visible||v)return s;var y=[],x=[];if(!1!==e&amp;&amp;!e.degenerate)for(var b=0;b&lt;u;b++)e.contains([c.xpx[b],c.ypx[b]],!1,b,t)?(y.push(b),s.push({pointNumber:b,x:a.c2d(f[b]),y:o.c2d(h[b])})):x.push(b);if(m){var _=p.scatter2d;if(y.length||x.length){if(!p.selectBatch[d].length&amp;&amp;!p.unselectBatch[d].length){var w=new Array(p.count);w[d]=p.markerUnselectedOptions[d],_.update.apply(_,w)}}else{var T=new Array(p.count);T[d]=p.markerOptions[d],_.update.apply(_,T)}}return p.selectBatch[d]=y,p.unselectBatch[d]=x,g&amp;&amp;i(r),s}},{&quot;../scatter/subtypes&quot;:1243,&quot;./edit_style&quot;:1275}],1283:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scattergeo/attributes&quot;),o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/mapbox/layout_attributes&quot;),l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=a.line,p=a.marker;e.exports=f({lon:a.lon,lat:a.lat,mode:u({},o.mode,{dflt:&quot;markers&quot;}),text:u({},o.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;text&quot;]}),hovertext:u({},o.hovertext,{}),line:{color:h.color,width:h.width},connectgaps:o.connectgaps,marker:u({symbol:{valType:&quot;string&quot;,dflt:&quot;circle&quot;,arrayOk:!0},angle:{valType:&quot;number&quot;,dflt:&quot;auto&quot;,arrayOk:!0},allowoverlap:{valType:&quot;boolean&quot;,dflt:!1},opacity:p.opacity,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode},c(&quot;marker&quot;)),fill:a.fill,fillcolor:o.fillcolor,textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:&quot;string&quot;},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:u({},l.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/mapbox/layout_attributes&quot;:913,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218,&quot;../scattergeo/attributes&quot;:1260}],1284:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../components/colorscale&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../scatter/make_bubble_size_func&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../../plots/mapbox/convert_text_opts&quot;),h=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,p=t(&quot;../../lib/svg_text_utils&quot;).NEWLINES,d=t(&quot;../../lib/svg_text_utils&quot;).BR_TAG_ALL;function g(){return{geojson:o.makeBlank(),layout:{visibility:&quot;none&quot;},paint:{}}}function m(t,e){return i.isArrayOrTypedArray(t)?e?function(e){return n(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:v}function v(){return&quot;&quot;}function y(t){return t[0]===a}e.exports=function(t,e){var r,a=e[0].trace,x=!0===a.visible&amp;&amp;0!==a._length,b=&quot;none&quot;!==a.fill,_=u.hasLines(a),w=u.hasMarkers(a),T=u.hasText(a),k=w&amp;&amp;&quot;circle&quot;===a.marker.symbol,A=w&amp;&amp;&quot;circle&quot;!==a.marker.symbol,M=g(),S=g(),E=g(),L=g(),C={fill:M,line:S,circle:E,symbol:L};if(!x)return C;if((b||_)&amp;&amp;(r=o.calcTraceToLineCoords(e)),b&amp;&amp;(M.geojson=o.makePolygon(r),M.layout.visibility=&quot;visible&quot;,i.extendFlat(M.paint,{&quot;fill-color&quot;:a.fillcolor})),_&amp;&amp;(S.geojson=o.makeLine(r),S.layout.visibility=&quot;visible&quot;,i.extendFlat(S.paint,{&quot;line-width&quot;:a.line.width,&quot;line-color&quot;:a.line.color,&quot;line-opacity&quot;:a.opacity})),k){var P=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),g=i.isArrayOrTypedArray(f.opacity);function m(t){return u.opacity*t}p&amp;&amp;(r=s.hasColorscale(u,&quot;marker&quot;)?s.makeColorScaleFuncFromTrace(f):i.identity);d&amp;&amp;(a=c(u));g&amp;&amp;(o=function(t){return m(n(t)?+i.constrain(t,0,1):0)});var v,x=[];for(e=0;e&lt;t.length;e++){var b=t[e],_=b.lonlat;if(!y(_)){var w={};r&amp;&amp;(w.mcc=b.mcc=r(b.mc)),a&amp;&amp;(w.mrc=b.mrc=a(b.ms)),o&amp;&amp;(w.mo=o(b.mo)),h&amp;&amp;(w.selected=b.selected||0),x.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:_},properties:w})}}if(h)for(v=l.makeSelectedPointStyleFns(u),e=0;e&lt;x.length;e++){var T=x[e].properties;v.selectedOpacityFn&amp;&amp;(T.mo=m(v.selectedOpacityFn(T))),v.selectedColorFn&amp;&amp;(T.mcc=v.selectedColorFn(T)),v.selectedSizeFn&amp;&amp;(T.mrc=v.selectedSizeFn(T))}return{geojson:{type:&quot;FeatureCollection&quot;,features:x},mcc:p||v&amp;&amp;v.selectedColorFn?{type:&quot;identity&quot;,property:&quot;mcc&quot;}:f.color,mrc:d||v&amp;&amp;v.selectedSizeFn?{type:&quot;identity&quot;,property:&quot;mrc&quot;}:(k=f.size,k/2),mo:g||v&amp;&amp;v.selectedOpacityFn?{type:&quot;identity&quot;,property:&quot;mo&quot;}:m(f.opacity)};var k}(e);E.geojson=P.geojson,E.layout.visibility=&quot;visible&quot;,i.extendFlat(E.paint,{&quot;circle-color&quot;:P.mcc,&quot;circle-radius&quot;:P.mrc,&quot;circle-opacity&quot;:P.mo})}if((A||T)&amp;&amp;(L.geojson=function(t,e){for(var r=e._fullLayout,n=t[0].trace,a=n.marker||{},o=a.symbol,s=a.angle,l=&quot;circle&quot;!==o?m(o):v,c=&quot;auto&quot;!==s?m(s,!0):v,f=u.hasText(n)?m(n.text):v,g=[],x=0;x&lt;t.length;x++){var b=t[x];if(!y(b.lonlat)){var _,w=n.texttemplate;if(w){var T=Array.isArray(w)?w[x]||&quot;&quot;:w,k=n._module.formatLabels(b,n,r),A={};h(A,n,b.i);var M=n._meta||{};_=i.texttemplateString(T,k,r._d3locale,A,b,M)}else _=f(x);_&amp;&amp;(_=_.replace(p,&quot;&quot;).replace(d,&quot;\n&quot;)),g.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:b.lonlat},properties:{symbol:l(x),angle:c(x),text:_}})}}return{type:&quot;FeatureCollection&quot;,features:g}}(e,t),i.extendFlat(L.layout,{visibility:&quot;visible&quot;,&quot;icon-image&quot;:&quot;{symbol}-15&quot;,&quot;text-field&quot;:&quot;{text}&quot;}),A&amp;&amp;(i.extendFlat(L.layout,{&quot;icon-size&quot;:a.marker.size/10}),&quot;angle&quot;in a.marker&amp;&amp;&quot;auto&quot;!==a.marker.angle&amp;&amp;i.extendFlat(L.layout,{&quot;icon-rotate&quot;:{type:&quot;identity&quot;,property:&quot;angle&quot;},&quot;icon-rotation-alignment&quot;:&quot;map&quot;}),L.layout[&quot;icon-allow-overlap&quot;]=a.marker.allowoverlap,i.extendFlat(L.paint,{&quot;icon-opacity&quot;:a.opacity*a.marker.opacity,&quot;icon-color&quot;:a.marker.color})),T)){var I=(a.marker||{}).size,O=f(a.textposition,I);i.extendFlat(L.layout,{&quot;text-size&quot;:a.textfont.size,&quot;text-anchor&quot;:O.anchor,&quot;text-offset&quot;:O.offset}),i.extendFlat(L.paint,{&quot;text-color&quot;:a.textfont.color,&quot;text-opacity&quot;:a.opacity})}return C}},{&quot;../../components/colorscale&quot;:678,&quot;../../components/drawing&quot;:688,&quot;../../components/fx/helpers&quot;:702,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../lib/geojson_utils&quot;:797,&quot;../../lib/svg_text_utils&quot;:829,&quot;../../plots/mapbox/convert_text_opts&quot;:910,&quot;../scatter/make_bubble_size_func&quot;:1235,&quot;../scatter/subtypes&quot;:1243,&quot;fast-isnumeric&quot;:249}],1285:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(&quot;lon&quot;)||[],i=r(&quot;lat&quot;)||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(&quot;text&quot;),f(&quot;texttemplate&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),f(&quot;below&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f,{noDash:!0}),f(&quot;connectgaps&quot;)),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0}),f(&quot;marker.allowoverlap&quot;),f(&quot;marker.angle&quot;);var h=e.marker;&quot;circle&quot;!==h.symbol&amp;&amp;(n.isArrayOrTypedArray(h.size)&amp;&amp;(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&amp;&amp;(h.color=h.color[0]))}i.hasText(e)&amp;&amp;s(t,e,u,f,{noSelect:!0}),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1283}],1286:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1287:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:854}],1288:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;),o=i.fillText,s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){if(!t.hovertemplate){var n=(e.hi||t.hoverinfo).split(&quot;+&quot;),i=-1!==n.indexOf(&quot;all&quot;),a=-1!==n.indexOf(&quot;lon&quot;),s=-1!==n.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];return i||a&amp;&amp;s?c.push(&quot;(&quot;+u(l[1])+&quot;, &quot;+u(l[0])+&quot;)&quot;):a?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1])),(i||-1!==n.indexOf(&quot;text&quot;))&amp;&amp;o(e,t,c),c.join(&quot;&lt;br&gt;&quot;)}function u(t){return t+&quot;\xb0&quot;}}e.exports={hoverPoints:function(t,e,r){var o=t.cd,c=o[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e&gt;=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(o,(function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)}),t),!1!==t.index){var g=o[t.index],m=g.lonlat,v=[i.modHalf(m[0],360)+p,m[1]],y=u.c2p(v),x=f.c2p(v),b=g.mrc||1;t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b;var _={};_[c.subplot]={_subplot:h};var w=c._module.formatLabels(g,c,_);return t.lonLabel=w.lonLabel,t.latLabel=w.latLabel,t.color=a(c,g),t.extraText=l(c,g,o[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}},getExtraText:l}},{&quot;../../components/fx&quot;:706,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../scatter/get_trace_color&quot;:1228}],1289:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;../scattergeo/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.update(e)},moduleType:&quot;trace&quot;,name:&quot;scattermapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/mapbox&quot;:911,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scattergeo/calc&quot;:1261,&quot;./attributes&quot;:1283,&quot;./defaults&quot;:1285,&quot;./event_data&quot;:1286,&quot;./format_labels&quot;:1287,&quot;./hover&quot;:1288,&quot;./plot&quot;:1290,&quot;./select&quot;:1291}],1290:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix,a=[&quot;fill&quot;,&quot;line&quot;,&quot;circle&quot;,&quot;symbol&quot;];function o(t,e){this.type=&quot;scattermapbox&quot;,this.subplot=t,this.uid=e,this.sourceIds={fill:&quot;source-&quot;+e+&quot;-fill&quot;,line:&quot;source-&quot;+e+&quot;-line&quot;,circle:&quot;source-&quot;+e+&quot;-circle&quot;,symbol:&quot;source-&quot;+e+&quot;-symbol&quot;},this.layerIds={fill:i+e+&quot;-fill&quot;,line:i+e+&quot;-line&quot;,circle:i+e+&quot;-circle&quot;,symbol:i+e+&quot;-symbol&quot;},this.below=null}var s=o.prototype;s.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:&quot;geojson&quot;,data:e.geojson})},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){this.subplot.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint},r)},s.update=function(t){var e,r,i,o=this.subplot,s=o.map,l=n(o.gd,t),c=o.belowLookup[&quot;trace-&quot;+this.uid];if(c!==this.below){for(e=a.length-1;e&gt;=0;e--)r=a[e],s.removeLayer(this.layerIds[r]);for(e=0;e&lt;a.length;e++)i=l[r=a[e]],this.addLayer(r,i,c);this.below=c}for(e=0;e&lt;a.length;e++)i=l[r=a[e]],o.setOptions(this.layerIds[r],&quot;setLayoutProperty&quot;,i.layout),&quot;visible&quot;===i.layout.visibility&amp;&amp;(this.setSourceData(r,i),o.setOptions(this.layerIds[r],&quot;setPaintProperty&quot;,i.paint));t[0].trace._glTrace=this},s.dispose=function(){for(var t=this.subplot.map,e=a.length-1;e&gt;=0;e--){var r=a[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=e[0].trace,i=new o(t,r.uid),s=n(t.gd,e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid],c=0;c&lt;a.length;c++){var u=a[c],f=s[u];i.addSource(u,f),i.addLayer(u,f,l)}return e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:909,&quot;./convert&quot;:1284}],1291:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r&lt;o.length;r++)o[r].selected=0;else for(r=0;r&lt;o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../scatter/subtypes&quot;:1243}],1292:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=o.line;e.exports={mode:o.mode,r:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},theta:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},r0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dr:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},theta0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dtheta:{valType:&quot;number&quot;,editType:&quot;calc&quot;},thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;,&quot;gradians&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:o.text,texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:l.smoothing,editType:&quot;calc&quot;},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1293:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../scatter/colorscale_calc&quot;),s=t(&quot;../scatter/arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;),c=t(&quot;../scatter/calc&quot;).calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,&quot;r&quot;),d=h.makeCalcdata(e,&quot;theta&quot;),g=e._length,m=new Array(g),v=0;v&lt;g;v++){var y=p[v],x=d[v],b=m[v]={};n(y)&amp;&amp;n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,g);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(t,e),s(m,e),l(m,e),m}},{&quot;../../constants/numerical&quot;:779,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/calc&quot;:1219,&quot;../scatter/calc_selection&quot;:1220,&quot;../scatter/colorscale_calc&quot;:1221,&quot;fast-isnumeric&quot;:249}],1294:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/line_shape_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);function h(t,e,r,n){var i,a=n(&quot;r&quot;),o=n(&quot;theta&quot;);if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(&quot;theta0&quot;),n(&quot;dtheta&quot;));else{if(!o)return 0;i=e.theta.length,n(&quot;r0&quot;),n(&quot;dr&quot;)}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var g=h(t,e,p,d);if(g){d(&quot;thetaunit&quot;),d(&quot;mode&quot;,g&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),d(&quot;text&quot;),d(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;d(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,p,d),s(t,e,d),d(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&amp;&amp;(d(&quot;texttemplate&quot;),l(t,e,p,d));var m=[];(i.hasMarkers(e)||i.hasText(e))&amp;&amp;(d(&quot;cliponaxis&quot;),d(&quot;marker.maxdisplayed&quot;),m.push(&quot;points&quot;)),d(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||m.push(&quot;fills&quot;),d(&quot;hoveron&quot;,m.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{&quot;../../lib&quot;:803,&quot;../scatter/constants&quot;:1222,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/line_shape_defaults&quot;:1233,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1292}],1295:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var a,o,s={},l=r[e.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=r[e.subplot]).radialaxis,o=l.angularaxis);var c=a.c2l(t.r);s.rLabel=i.tickText(a,c,!0).text;var u=&quot;degrees&quot;===o.thetaunit?n.rad2deg(t.theta):t.theta;return s.thetaLabel=i.tickText(o,u,!0).text,s}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854}],1296:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);function i(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle=&quot;r&quot;,a._hovertitle=&quot;\u03b8&quot;;var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=t.hi||e.hoverinfo,c=[];function u(t,e){c.push(t._hovertitle+&quot;: &quot;+e)}if(!e.hovertemplate){var f=l.split(&quot;+&quot;);-1!==f.indexOf(&quot;all&quot;)&amp;&amp;(f=[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]),-1!==f.indexOf(&quot;r&quot;)&amp;&amp;u(i,n.rLabel),-1!==f.indexOf(&quot;theta&quot;)&amp;&amp;u(a,n.thetaLabel),-1!==f.indexOf(&quot;text&quot;)&amp;&amp;n.text&amp;&amp;(c.push(n.text),delete n.text),n.extraText=c.join(&quot;&lt;br&gt;&quot;)}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{&quot;../scatter/hover&quot;:1229}],1297:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scatter/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:920,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scatter/select&quot;:1240,&quot;../scatter/style&quot;:1242,&quot;./attributes&quot;:1292,&quot;./calc&quot;:1293,&quot;./defaults&quot;:1294,&quot;./format_labels&quot;:1295,&quot;./hover&quot;:1296,&quot;./plot&quot;:1298}],1298:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(&quot;g.scatterlayer&quot;),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c&lt;r.length;c++)for(var u=r[c],f=0;f&lt;u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),g=l.c2g(h.theta);h.x=d*Math.cos(g),h.y=d*Math.sin(g)}}n(t,o,r,a)}},{&quot;../../constants/numerical&quot;:779,&quot;../scatter/plot&quot;:1239}],1299:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/attributes&quot;),i=t(&quot;../scattergl/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs;e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:n.hovertext,hovertemplate:n.hovertemplate,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{&quot;../../plots/template_attributes&quot;:926,&quot;../scattergl/attributes&quot;:1270,&quot;../scatterpolar/attributes&quot;:1292}],1300:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/colorscale_calc&quot;),i=t(&quot;../scatter/calc&quot;).calcMarkerSize,a=t(&quot;../scattergl/convert&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r=t._fullLayout,l=e.subplot,c=r[l].radialaxis,u=r[l].angularaxis,f=e._r=c.makeCalcdata(e,&quot;r&quot;),h=e._theta=u.makeCalcdata(e,&quot;theta&quot;),p=e._length,d={};p&lt;f.length&amp;&amp;(f=f.slice(0,p)),p&lt;h.length&amp;&amp;(h=h.slice(0,p)),d.r=f,d.theta=h,n(t,e);var g,m=d.opts=a.style(t,e);return p&lt;s?g=i(e,p):m.marker&amp;&amp;(g=2*(m.marker.sizeAvg||Math.max(m.marker.size,3))),e._extremes.x=o.findExtremes(c,f,{ppad:g}),[{x:!1,y:!1,t:d,trace:e}]}},{&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/calc&quot;:1219,&quot;../scatter/colorscale_calc&quot;:1221,&quot;../scattergl/constants&quot;:1272,&quot;../scattergl/convert&quot;:1273}],1301:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(&quot;thetaunit&quot;),p(&quot;mode&quot;,d&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(s(t,e,r,h,p),p(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;o(t,e,r,h,p),i.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),l(t,e,h,p)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/constants&quot;:1222,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;../scatterpolar/defaults&quot;:1294,&quot;./attributes&quot;:1299}],1302:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;r&quot;in t||(t.r=e._r[i]),&quot;theta&quot;in t||(t.theta=e._theta[i]),n(t,e,r)}},{&quot;../scatterpolar/format_labels&quot;:1295}],1303:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scattergl/hover&quot;),i=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText;e.exports={hoverPoints:function(t,e,r,a){var o=t.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(t,e,r,a);if(c&amp;&amp;!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var f=t.subplot,h=u.cd[u.index],p=u.trace;if(h.r=s[u.index],h.theta=l[u.index],f.isPtInside(h))return u.xLabelVal=void 0,u.yLabelVal=void 0,i(h,p,f,u),c}}}},{&quot;../scattergl/hover&quot;:1278,&quot;../scatterpolar/hover&quot;:1296}],1304:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolargl&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scattergl/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:920,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scattergl/select&quot;:1282,&quot;./attributes&quot;:1299,&quot;./calc&quot;:1300,&quot;./defaults&quot;:1301,&quot;./format_labels&quot;:1302,&quot;./hover&quot;:1303,&quot;./plot&quot;:1305}],1305:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../scattergl/plot&quot;),o=t(&quot;../scattergl/scene_update&quot;),s=t(&quot;../scattergl/convert&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e,r){if(r.length){var u=e.radialAxis,f=e.angularAxis,h=o(t,e);return r.forEach((function(r){if(r&amp;&amp;r[0]&amp;&amp;r[0].trace){var a,o=r[0],p=o.trace,d=o.t,g=p._length,m=d.r,v=d.theta,y=d.opts,x=m.slice(),b=v.slice();for(a=0;a&lt;m.length;a++)e.isPtInside({r:m[a],theta:v[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*g),w=Array(g),T=Array(g);for(a=0;a&lt;g;a++){var k,A,M=x[a];if(i(M)){var S=u.c2g(M),E=f.c2g(b[a],p.thetaunit);k=S*Math.cos(E),A=S*Math.sin(E)}else k=A=NaN;w[a]=_[2*a]=k,T[a]=_[2*a+1]=A}d.tree=n(_),y.marker&amp;&amp;g&gt;=c&amp;&amp;(y.marker.cluster=d.tree),y.marker&amp;&amp;(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&amp;&amp;_.length&gt;1&amp;&amp;l.extendFlat(y.line,s.linePositions(t,p,_)),y.text&amp;&amp;(l.extendFlat(y.text,{positions:_},s.textPosition(t,p,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,p,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,p,y.text,y.markerUnsel))),y.fill&amp;&amp;!h.fill2d&amp;&amp;(h.fill2d=!0),y.marker&amp;&amp;!h.scatter2d&amp;&amp;(h.scatter2d=!0),y.line&amp;&amp;!h.line2d&amp;&amp;(h.line2d=!0),y.text&amp;&amp;!h.glText&amp;&amp;(h.glText=!0),h.lineOptions.push(y.line),h.fillOptions.push(y.fill),h.markerOptions.push(y.marker),h.markerSelectedOptions.push(y.markerSel),h.markerUnselectedOptions.push(y.markerUnsel),h.textOptions.push(y.text),h.textSelectedOptions.push(y.textSel),h.textUnselectedOptions.push(y.textUnsel),h.selectBatch.push([]),h.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=m,d.theta=v,d.positions=_,d._scene=h,d.index=h.count,h.count++}})),a(t,e,r)}}},{&quot;../../lib&quot;:803,&quot;../scattergl/constants&quot;:1272,&quot;../scattergl/convert&quot;:1273,&quot;../scattergl/plot&quot;:1280,&quot;../scattergl/scene_update&quot;:1281,&quot;@plotly/point-cluster&quot;:59,&quot;fast-isnumeric&quot;:249}],1306:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a.marker,f=a.line,h=u.line;e.exports={a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},c:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sum:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;calc&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),line:{color:f.color,width:f.width,dash:l,shape:c({},f.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:f.smoothing,editType:&quot;calc&quot;},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:c({},a.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:a.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:h.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:u.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:a.hoveron,hovertemplate:n()}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../components/drawing/attributes&quot;:687,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218}],1307:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],c={a:[&quot;b&quot;,&quot;c&quot;],b:[&quot;a&quot;,&quot;c&quot;],c:[&quot;a&quot;,&quot;b&quot;]};e.exports=function(t,e){var r,u,f,h,p,d,g=t._fullLayout[e.subplot].sum,m=e.sum||g,v={a:e.a,b:e.b,c:e.c};for(r=0;r&lt;l.length;r++)if(!v[f=l[r]]){for(p=v[c[f][0]],d=v[c[f][1]],h=new Array(p.length),u=0;u&lt;p.length;u++)h[u]=m-p[u]-d[u];v[f]=h}var y,x,b,_,w,T,k=e._length,A=new Array(k);for(r=0;r&lt;k;r++)y=v.a[r],x=v.b[r],b=v.c[r],n(y)&amp;&amp;n(x)&amp;&amp;n(b)?(1!==(_=g/((y=+y)+(x=+x)+(b=+b)))&amp;&amp;(y*=_,x*=_,b*=_),T=y,w=b-x,A[r]={x:w,y:T,a:y,b:x,c:b}):A[r]={x:!1,y:!1};return s(e,k),i(t,e),a(A,e),o(A,e),A}},{&quot;../scatter/arrays_to_calcdata&quot;:1217,&quot;../scatter/calc&quot;:1219,&quot;../scatter/calc_selection&quot;:1220,&quot;../scatter/colorscale_calc&quot;:1221,&quot;fast-isnumeric&quot;:249}],1308:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,g=p(&quot;a&quot;),m=p(&quot;b&quot;),v=p(&quot;c&quot;);if(g?(d=g.length,m?(d=Math.min(d,m.length),v&amp;&amp;(d=Math.min(d,v.length))):d=v?Math.min(d,v.length):0):m&amp;&amp;v&amp;&amp;(d=Math.min(m.length,v.length)),d){e._length=d,p(&quot;sum&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),p(&quot;mode&quot;,d&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),c(t,e,h,p));var y=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;cliponaxis&quot;),p(&quot;marker.maxdisplayed&quot;),y.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||y.push(&quot;fills&quot;),p(&quot;hoveron&quot;,y.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../scatter/constants&quot;:1222,&quot;../scatter/fillcolor_defaults&quot;:1226,&quot;../scatter/line_defaults&quot;:1231,&quot;../scatter/line_shape_defaults&quot;:1233,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scatter/text_defaults&quot;:1244,&quot;./attributes&quot;:1306}],1309:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1310:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot;return i.aLabel=n.tickText(a.aaxis,t.a,!0).text,i.bLabel=n.tickText(a.baxis,t.b,!0).text,i.cLabel=n.tickText(a.caxis,t.c,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:854}],1311:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&amp;&amp;!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var g=h._module.formatLabels(f,h,d);o.aLabel=g.aLabel,o.bLabel=g.bLabel,o.cLabel=g.cLabel;var m=f.hi||h.hoverinfo,v=[];if(!h.hovertemplate){var y=m.split(&quot;+&quot;);-1!==y.indexOf(&quot;all&quot;)&amp;&amp;(y=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]),-1!==y.indexOf(&quot;a&quot;)&amp;&amp;x(p.aaxis,o.aLabel),-1!==y.indexOf(&quot;b&quot;)&amp;&amp;x(p.baxis,o.bLabel),-1!==y.indexOf(&quot;c&quot;)&amp;&amp;x(p.caxis,o.cLabel)}return o.extraText=v.join(&quot;&lt;br&gt;&quot;),o.hovertemplate=h.hovertemplate,a}function x(t,e){v.push(t._hovertitle+&quot;: &quot;+e)}}},{&quot;../scatter/hover&quot;:1229}],1312:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scatterternary&quot;,basePlotModule:t(&quot;../../plots/ternary&quot;),categories:[&quot;ternary&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/ternary&quot;:927,&quot;../scatter/marker_colorbar&quot;:1236,&quot;../scatter/select&quot;:1240,&quot;../scatter/style&quot;:1242,&quot;./attributes&quot;:1306,&quot;./calc&quot;:1307,&quot;./defaults&quot;:1308,&quot;./event_data&quot;:1309,&quot;./format_labels&quot;:1310,&quot;./hover&quot;:1311,&quot;./plot&quot;:1313}],1313:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;);e.exports=function(t,e,r){var i=e.plotContainer;i.select(&quot;.scatterlayer&quot;).selectAll(&quot;*&quot;).remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(&quot;g.scatterlayer&quot;);n(t,a,r,o)}},{&quot;../scatter/plot&quot;:1239}],1314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../scattergl/attributes&quot;),l=t(&quot;../../plots/cartesian/constants&quot;).idRegex,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;../../lib/extend&quot;).extendFlat,f=n.marker,h=f.line,p=u(i(&quot;marker.line&quot;,{editTypeOverride:&quot;calc&quot;}),{width:u({},h.width,{editType:&quot;calc&quot;}),editType:&quot;calc&quot;}),d=u(i(&quot;marker&quot;),{symbol:f.symbol,size:u({},f.size,{editType:&quot;markerSize&quot;}),sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,opacity:f.opacity,colorbar:f.colorbar,line:p,editType:&quot;calc&quot;});function g(t){return{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;subplotid&quot;,regex:l[t],editType:&quot;plot&quot;}}}d.color.editType=d.cmin.editType=d.cmax.editType=&quot;style&quot;,e.exports={dimensions:c(&quot;dimension&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},axis:{type:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;],editType:&quot;calc+clearAxisTypes&quot;},matches:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc+clearAxisTypes&quot;},editType:&quot;calc+clearAxisTypes&quot;}),text:u({},s.text,{}),hovertext:u({},s.hovertext,{}),hovertemplate:o(),xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),marker:d,xaxes:g(&quot;x&quot;),yaxes:g(&quot;y&quot;),diagonal:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},showupperhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},showlowerhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},selected:{marker:s.selected.marker,editType:&quot;calc&quot;},unselected:{marker:s.unselected.marker,editType:&quot;calc&quot;},opacity:s.opacity}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/plot_template&quot;:843,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/cartesian/constants&quot;:861,&quot;../../plots/template_attributes&quot;:926,&quot;../scatter/attributes&quot;:1218,&quot;../scattergl/attributes&quot;:1270}],1315:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-line2d&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib/prepare_regl&quot;),o=t(&quot;../../plots/get_data&quot;).getModuleCalcData,s=t(&quot;../../plots/cartesian&quot;),l=t(&quot;../../plots/cartesian/axis_ids&quot;).getFromId,c=t(&quot;../../plots/cartesian/axes&quot;).shouldShowZeroLine;function u(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o&lt;i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&amp;&amp;(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&amp;&amp;(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch.length||r.unselectBatch.length?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function f(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._context.plotGlPixelRatio,n=t._fullLayout,i=n._size,a=[0,0,n.width*r,n.height*r],o={};function s(t,e,n,i,s,l){n*=r,i*=r,s*=r,l*=r;var c=e[t+&quot;color&quot;],u=e[t+&quot;width&quot;],f=String(c+u);f in o?o[f].data.push(NaN,NaN,n,i,s,l):o[f]={data:[n,i,s,l],join:&quot;rect&quot;,thickness:u*r,color:c,viewport:a,range:a,overlay:!1}}for(e in n._splomSubplots){var l,u,f=n._plots[e],h=f.xaxis,p=f.yaxis,d=h._gridVals,g=p._gridVals,m=h._offset,v=h._length,y=p._length,x=i.b+p.domain[0]*i.h,b=-p._m,_=-b*p.r2l(p.range[0],p.calendar);if(h.showgrid)for(e=0;e&lt;d.length;e++)l=m+h.l2p(d[e].x),s(&quot;grid&quot;,h,l,x,l,x+y);if(p.showgrid)for(e=0;e&lt;g.length;e++)u=x+_+b*g[e].x,s(&quot;grid&quot;,p,m,u,m+v,u);c(t,h,p)&amp;&amp;(l=m+h.l2p(0),s(&quot;zeroline&quot;,h,l,x,l,x+y)),c(t,p,h)&amp;&amp;s(&quot;zeroline&quot;,p,m,u=x+_+0,m+v,u)}var w=[];for(e in o)w.push(o[e]);return w}(t))}e.exports={name:&quot;splom&quot;,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(&quot;splom&quot;),n=o(t.calcdata,r)[0];a(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])&amp;&amp;(e._hasOnlyLargeSploms&amp;&amp;f(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&amp;&amp;f(t);for(var n=0;n&lt;e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];&quot;splom&quot;===i.type&amp;&amp;a&amp;&amp;a.matrix&amp;&amp;u(t,i,a)}},updateGrid:f,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i&lt;t.length;i++){var o=t[i];&quot;splom&quot;===o.type&amp;&amp;(a[o.uid]=1)}for(i=0;i&lt;r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&amp;&amp;c.destroy&amp;&amp;c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&amp;&amp;delete n._splomScenes,n._splomGrid&amp;&amp;!e._hasOnlyLargeSploms&amp;&amp;n._hasOnlyLargeSploms&amp;&amp;(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:s.updateFx,toSVG:s.toSVG}},{&quot;../../lib/prepare_regl&quot;:816,&quot;../../plots/cartesian&quot;:868,&quot;../../plots/cartesian/axes&quot;:854,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../../plots/get_data&quot;:891,&quot;../../registry&quot;:931,&quot;regl-line2d&quot;:537}],1316:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../scatter/calc&quot;).calcMarkerSize,o=t(&quot;../scatter/calc&quot;).calcAxisExpansion,s=t(&quot;../scatter/colorscale_calc&quot;),l=t(&quot;../scattergl/convert&quot;).markerSelection,c=t(&quot;../scattergl/convert&quot;).markerStyle,u=t(&quot;./scene_update&quot;),f=t(&quot;../../constants/numerical&quot;).BADNUM,h=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r,p,d,g,m,v,y=e.dimensions,x=e._length,b={},_=b.cdata=[],w=b.data=[],T=e._visibleDims=[];function k(t,r){for(var i=t.makeCalcdata({v:r.values,vcalendar:e.calendar},&quot;v&quot;),a=0;a&lt;i.length;a++)i[a]=i[a]===f?NaN:i[a];_.push(i),w.push(&quot;log&quot;===t.type?n.simpleMap(i,t.c2l):i)}for(r=0;r&lt;y.length;r++)if((d=y[r]).visible){if(g=i.getFromId(t,e._diag[r][0]),m=i.getFromId(t,e._diag[r][1]),g&amp;&amp;m&amp;&amp;g.type!==m.type){n.log(&quot;Skipping splom dimension &quot;+r+&quot; with conflicting axis types&quot;);continue}g?(k(g,d),m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(m._categories=g._categories.slice())):k(m,d),T.push(r)}for(s(t,e),n.extendFlat(b,c(e)),v=_.length*x&gt;h?b.sizeAvg||Math.max(b.size,3):a(e,x),p=0;p&lt;T.length;p++)d=y[r=T[p]],g=i.getFromId(t,e._diag[r][0])||{},m=i.getFromId(t,e._diag[r][1])||{},o(t,e,g,m,_[p],_[p],v);var A=u(t,e);return A.matrix||(A.matrix=!0),A.matrixOptions=b,A.selectedOptions=l(e,e.selected),A.unselectedOptions=l(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;../scatter/calc&quot;:1219,&quot;../scatter/colorscale_calc&quot;:1221,&quot;../scattergl/constants&quot;:1272,&quot;../scattergl/convert&quot;:1273,&quot;./scene_update&quot;:1323}],1317:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../scatter/subtypes&quot;),s=t(&quot;../scatter/marker_defaults&quot;),l=t(&quot;../parcoords/merge_length&quot;),c=t(&quot;../scattergl/helpers&quot;).isOpenSymbol;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(&quot;label&quot;);var i=r(&quot;values&quot;);i&amp;&amp;i.length?r(&quot;visible&quot;):e.visible=!1,r(&quot;axis.type&quot;),r(&quot;axis.matches&quot;)}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=h(&quot;diagonal.visible&quot;),g=h(&quot;showupperhalf&quot;),m=h(&quot;showlowerhalf&quot;);if(l(e,p,&quot;values&quot;)&amp;&amp;(d||g||m)){h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),h(&quot;xhoverformat&quot;),h(&quot;yhoverformat&quot;),s(t,e,r,f,h);var v=c(e.marker.symbol),y=o.isBubble(e);h(&quot;marker.line.width&quot;,v||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i&lt;s;i++){var p=i?i+1:&quot;&quot;;f[i]=&quot;x&quot;+p,h[i]=&quot;y&quot;+p}var d=n(&quot;xaxes&quot;,f),g=n(&quot;yaxes&quot;,h),m=e._diag=new Array(s);e._xaxes={},e._yaxes={};var v=[],y=[];function x(t,n,i,a){if(t){var o=t.charAt(0),s=r._splomAxes[o];if(e[&quot;_&quot;+o+&quot;axes&quot;][t]=1,a.push(t),!(t in s)){var l=s[t]={};i&amp;&amp;(l.label=i.label||&quot;&quot;,i.visible&amp;&amp;i.axis&amp;&amp;(i.axis.type&amp;&amp;(l.type=i.axis.type),i.axis.matches&amp;&amp;(l.matches=n)))}}}var b=!u&amp;&amp;!c,_=!u&amp;&amp;!l;for(e._axesDim={},i=0;i&lt;s;i++){var w=o[i],T=0===i,k=i===s-1,A=T&amp;&amp;b||k&amp;&amp;_?void 0:d[i],M=T&amp;&amp;_||k&amp;&amp;b?void 0:g[i];x(A,M,w,v),x(M,A,w,y),m[i]=[A,M],e._axesDim[A]=i,e._axesDim[M]=i}for(i=0;i&lt;v.length;i++)for(a=0;a&lt;y.length;a++){var S=v[i]+y[a];i&gt;a&amp;&amp;l||i&lt;a&amp;&amp;c?r._splomSubplots[S]=1:i!==a||!u&amp;&amp;c&amp;&amp;l||(r._splomSubplots[S]=1)}(!c||!u&amp;&amp;l&amp;&amp;c)&amp;&amp;(r._splomGridDflt.xside=&quot;bottom&quot;,r._splomGridDflt.yside=&quot;left&quot;)}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{&quot;../../lib&quot;:803,&quot;../../plots/array_container_defaults&quot;:849,&quot;../parcoords/merge_length&quot;:1189,&quot;../scatter/marker_defaults&quot;:1237,&quot;../scatter/subtypes&quot;:1243,&quot;../scattergl/helpers&quot;:1277,&quot;./attributes&quot;:1314}],1318:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scattergl/convert&quot;).markerStyle;e.exports=function(t,e){var r=e.trace,o=t._fullLayout._splomScenes[r.uid];if(o){i(t,r),n.extendFlat(o.matrixOptions,a(r));var s=n.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}},{&quot;../../lib&quot;:803,&quot;../scatter/colorscale_calc&quot;:1221,&quot;../scattergl/convert&quot;:1273}],1319:[function(t,e,r){&quot;use strict&quot;;r.getDimIndex=function(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a&lt;i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}},{}],1320:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i=t(&quot;../scattergl/hover&quot;).calcHover;e.exports={hoverPoints:function(t,e,r){var a=t.cd[0].trace,o=t.scene.matrixOptions.cdata,s=t.xa,l=t.ya,c=s.c2p(e),u=l.c2p(r),f=t.distance,h=n.getDimIndex(a,s),p=n.getDimIndex(a,l);if(!1===h||!1===p)return[t];for(var d,g,m=o[h],v=o[p],y=f,x=0;x&lt;m.length;x++){var b=m[x],_=v[x],w=s.c2p(b)-c,T=l.c2p(_)-u,k=Math.sqrt(w*w+T*T);k&lt;y&amp;&amp;(y=g=k,d=x)}return t.index=d,t.distance=y,t.dxy=g,void 0===d?[t]:[i(t,m,v,a)]}}},{&quot;../scattergl/hover&quot;:1278,&quot;./helpers&quot;:1319}],1321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../components/grid&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;splom&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;),editStyle:t(&quot;./edit_style&quot;),meta:{}},n.register(i)},{&quot;../../components/grid&quot;:710,&quot;../../registry&quot;:931,&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1314,&quot;./base_plot&quot;:1315,&quot;./calc&quot;:1316,&quot;./defaults&quot;:1317,&quot;./edit_style&quot;:1318,&quot;./hover&quot;:1320,&quot;./plot&quot;:1322,&quot;./select&quot;:1324}],1322:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-splom&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../components/dragelement/helpers&quot;).selectMode;function s(t,e){var r,s,l,c,u,f=t._fullLayout,h=f._size,p=e.trace,d=e.t,g=f._splomScenes[p.uid],m=g.matrixOptions,v=m.cdata,y=f._glcanvas.data()[0].regl,x=f.dragmode;if(0!==v.length){m.lower=p.showupperhalf,m.upper=p.showlowerhalf,m.diagonal=p.diagonal.visible;var b=p._visibleDims,_=v.length,w=g.viewOpts={};for(w.ranges=new Array(_),w.domains=new Array(_),u=0;u&lt;b.length;u++){l=b[u];var T=w.ranges[u]=new Array(4),k=w.domains[u]=new Array(4);(r=a.getFromId(t,p._diag[l][0]))&amp;&amp;(T[0]=r._rl[0],T[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(s=a.getFromId(t,p._diag[l][1]))&amp;&amp;(T[1]=s._rl[0],T[3]=s._rl[1],k[1]=s.domain[0],k[3]=s.domain[1])}var A=t._context.plotGlPixelRatio,M=h.l*A,S=h.b*A,E=h.w*A,L=h.h*A;w.viewport=[M,S,E+M,L+S],!0===g.matrix&amp;&amp;(g.matrix=n(y));var C=f.clickmode.indexOf(&quot;select&quot;)&gt;-1,P=!0;if(o(x)||!!p.selectedpoints||C){var I=p._length;if(p.selectedpoints){g.selectBatch=p.selectedpoints;var O=p.selectedpoints,z={};for(l=0;l&lt;O.length;l++)z[O[l]]=!0;var D=[];for(l=0;l&lt;I;l++)z[l]||D.push(l);g.unselectBatch=D}var R=d.xpx=new Array(_),F=d.ypx=new Array(_);for(u=0;u&lt;b.length;u++){if(l=b[u],r=a.getFromId(t,p._diag[l][0]))for(R[u]=new Array(I),c=0;c&lt;I;c++)R[u][c]=r.c2p(v[u][c]);if(s=a.getFromId(t,p._diag[l][1]))for(F[u]=new Array(I),c=0;c&lt;I;c++)F[u][c]=s.c2p(v[u][c])}if(g.selectBatch.length||g.unselectBatch.length){var B=i.extendFlat({},m,g.unselectedOptions,w),N=i.extendFlat({},m,g.selectedOptions,w);g.matrix.update(B,N),P=!1}}else d.xpx=d.ypx=null;if(P){var j=i.extendFlat({},m,w);g.matrix.update(j,null)}}}e.exports=function(t,e,r){if(r.length)for(var n=0;n&lt;r.length;n++)s(t,r[n][0])}},{&quot;../../components/dragelement/helpers&quot;:684,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:858,&quot;regl-splom&quot;:539}],1323:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t._fullLayout,i=e.uid,a=r._splomScenes;a||(a=r._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=a[e.uid];return s||((s=a[i]=n.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&amp;&amp;s.matrix.draw&amp;&amp;(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&amp;&amp;s.matrix.destroy&amp;&amp;s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||n.extendFlat(s,o),s}},{&quot;../../lib&quot;:803}],1324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;./helpers&quot;);e.exports=function(t,e){var r=t.cd,o=r[0].trace,s=r[0].t,l=t.scene,c=l.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!l)return h;var p=!i.hasMarkers(o)&amp;&amp;!i.hasText(o);if(!0!==o.visible||p)return h;var d=a.getDimIndex(o,u),g=a.getDimIndex(o,f);if(!1===d||!1===g)return h;var m=s.xpx[d],v=s.ypx[g],y=c[d],x=c[g],b=[],_=[];if(!1!==e&amp;&amp;!e.degenerate)for(var w=0;w&lt;y.length;w++)e.contains([m[w],v[w]],null,w,t)?(b.push(w),h.push({pointNumber:w,x:y[w],y:x[w]})):_.push(w);var T=l.matrixOptions;return b.length||_.length?l.selectBatch.length||l.unselectBatch.length||l.matrix.update(l.unselectedOptions,n.extendFlat({},T,l.selectedOptions,l.viewOpts)):l.matrix.update(T,null),l.selectBatch=b,l.unselectBatch=_,h}},{&quot;../../lib&quot;:803,&quot;../scatter/subtypes&quot;:1243,&quot;./helpers&quot;:1319}],1325:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../mesh3d/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},starts:{x:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},maxdisplayed:{valType:&quot;integer&quot;,min:0,dflt:1e3,editType:&quot;calc&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:1},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:a({editType:&quot;calc&quot;},{keys:[&quot;tubex&quot;,&quot;tubey&quot;,&quot;tubez&quot;,&quot;tubeu&quot;,&quot;tubev&quot;,&quot;tubew&quot;,&quot;norm&quot;,&quot;divergence&quot;]}),uhoverformat:i(&quot;u&quot;,1),vhoverformat:i(&quot;v&quot;,1),whoverformat:i(&quot;w&quot;,1),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){c[t]=o[t]})),c.hoverinfo=l({},s.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;divergence&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),c.transforms=void 0,e.exports=c},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../mesh3d/attributes&quot;:1159}],1326:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/calc&quot;);function a(t){var e,r,i,a,s,l,c,u,f,h,p,d,g=t._x,m=t._y,v=t._z,y=t._len,x=-1/0,b=1/0,_=-1/0,w=1/0,T=-1/0,k=1/0,A=&quot;&quot;;for(y&amp;&amp;(c=g[0],f=m[0],p=v[0]),y&gt;1&amp;&amp;(u=g[y-1],h=m[y-1],d=v[y-1]),e=0;e&lt;y;e++)x=Math.max(x,g[e]),b=Math.min(b,g[e]),_=Math.max(_,m[e]),w=Math.min(w,m[e]),T=Math.max(T,v[e]),k=Math.min(k,v[e]),a||g[e]===c||(a=!0,A+=&quot;x&quot;),s||m[e]===f||(s=!0,A+=&quot;y&quot;),l||v[e]===p||(l=!0,A+=&quot;z&quot;);a||(A+=&quot;x&quot;),s||(A+=&quot;y&quot;),l||(A+=&quot;z&quot;);var M=o(t._x),S=o(t._y),E=o(t._z);A=(A=(A=A.replace(&quot;x&quot;,(c&gt;u?&quot;-&quot;:&quot;+&quot;)+&quot;x&quot;)).replace(&quot;y&quot;,(f&gt;h?&quot;-&quot;:&quot;+&quot;)+&quot;y&quot;)).replace(&quot;z&quot;,(p&gt;d?&quot;-&quot;:&quot;+&quot;)+&quot;z&quot;);var L=function(){y=0,M=[],S=[],E=[]};(!y||y&lt;M.length*S.length*E.length)&amp;&amp;L();var C=function(t){return&quot;x&quot;===t?g:&quot;y&quot;===t?m:v},P=function(t){return&quot;x&quot;===t?M:&quot;y&quot;===t?S:E},I=function(t){return t[y-1]&lt;t[0]?-1:1},O=C(A[1]),z=C(A[3]),D=C(A[5]),R=P(A[1]).length,F=P(A[3]).length,B=P(A[5]).length,N=!1,j=function(t,e,r){return R*(F*t+e)+r},U=I(C(A[1])),V=I(C(A[3])),q=I(C(A[5]));for(e=0;e&lt;B-1;e++){for(r=0;r&lt;F-1;r++){for(i=0;i&lt;R-1;i++){var H=j(e,r,i),G=j(e,r,i+1),Y=j(e,r+1,i),W=j(e+1,r,i);if(O[H]*U&lt;O[G]*U&amp;&amp;z[H]*V&lt;z[Y]*V&amp;&amp;D[H]*q&lt;D[W]*q||(N=!0),N)break}if(N)break}if(N)break}return N&amp;&amp;(n.warn(&quot;Encountered arbitrary coordinates! Unable to input data grid.&quot;),L()),{xMin:b,yMin:w,zMin:k,xMax:x,yMax:_,zMax:T,Xs:M,Ys:S,Zs:E,len:y,fill:A}}function o(t){return n.distinctVals(t).vals}function s(t,e){if(void 0===e&amp;&amp;(e=t.length),n.isTypedArray(t))return t.subarray(0,e);for(var r=[],i=0;i&lt;e;i++)r[i]=+t[i];return r}e.exports={calc:function(t,e){e._len=Math.min(e.u.length,e.v.length,e.w.length,e.x.length,e.y.length,e.z.length),e._u=s(e.u,e._len),e._v=s(e.v,e._len),e._w=s(e.w,e._len),e._x=s(e.x,e._len),e._y=s(e.y,e._len),e._z=s(e.z,e._len);var r=a(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;var n,o,l,c=0;e.starts&amp;&amp;(n=s(e.starts.x||[]),o=s(e.starts.y||[]),l=s(e.starts.z||[]),c=Math.min(n.length,o.length,l.length)),e._startsX=n||[],e._startsY=o||[],e._startsZ=l||[];var u,f=0,h=1/0;for(u=0;u&lt;e._len;u++){var p=e._u[u],d=e._v[u],g=e._w[u],m=Math.sqrt(p*p+d*d+g*g);f=Math.max(f,m),h=Math.min(h,m)}for(i(t,e,{vals:[h,f],containerStr:&quot;&quot;,cLetter:&quot;c&quot;}),u=0;u&lt;c;u++){var v=n[u];r.xMax=Math.max(r.xMax,v),r.xMin=Math.min(r.xMin,v);var y=o[u];r.yMax=Math.max(r.yMax,y),r.yMin=Math.min(r.yMin,y);var x=l[u];r.zMax=Math.max(r.zMax,x),r.zMin=Math.min(r.zMin,x)}e._slen=c,e._normMax=f,e._xbnds=[r.xMin,r.xMax],e._ybnds=[r.yMin,r.yMax],e._zbnds=[r.zMin,r.zMax]},filter:s,processGrid:a}},{&quot;../../components/colorscale/calc&quot;:674,&quot;../../lib&quot;:803}],1327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-streamtube3d&quot;),i=n.createTubeMesh,a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;),c={xaxis:0,yaxis:1,zaxis:2};function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var f=u.prototype;function h(t){var e=t.length;return e&gt;2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function d(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(d(e._u,&quot;xaxis&quot;),d(e._v,&quot;yaxis&quot;),d(e._w,&quot;zaxis&quot;),u),!u)return{positions:[],cells:[]};var g=d(e._Xs,&quot;xaxis&quot;),m=d(e._Ys,&quot;yaxis&quot;),v=d(e._Zs,&quot;zaxis&quot;);if(f.meshgrid=[g,m,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(d(e._startsX,&quot;xaxis&quot;),d(e._startsY,&quot;yaxis&quot;),d(e._startsZ,&quot;zaxis&quot;));else{for(var y=m[0],x=h(g),b=h(v),_=new Array(x.length*b.length),w=0,T=0;T&lt;x.length;T++)for(var k=0;k&lt;b.length;k++)_[w++]=[x[T],y,b[k]];f.startingPositions=_}f.colormap=o(e),f.tubeSize=e.sizeref,f.maxLength=e.maxdisplayed;var A=d(e._xbnds,&quot;xaxis&quot;),M=d(e._ybnds,&quot;yaxis&quot;),S=d(e._zbnds,&quot;zaxis&quot;),E=p(g),L=p(m),C=p(v),P=[[A[0]-E[0],M[0]-L[0],S[0]-C[0]],[A[1]+E[1],M[1]+L[1],S[1]+C[1]]],I=n(f,P),O=s(e);I.vertexIntensityBounds=[O.min/e._normMax,O.max/e._normMax];var z=e.lightposition;return I.lightPosition=[z.x,z.y,z.z],I.ambient=e.lighting.ambient,I.diffuse=e.lighting.diffuse,I.specular=e.lighting.specular,I.roughness=e.lighting.roughness,I.fresnel=e.lighting.fresnel,I.opacity=e.opacity,e._pad=I.tubeScale*e.sizeref*2,I}f.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[c[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],&quot;xaxis&quot;),n(i[1],&quot;yaxis&quot;),n(i[2],&quot;zaxis&quot;),n(a[0],&quot;xaxis&quot;),n(a[1],&quot;yaxis&quot;),n(a[2],&quot;zaxis&quot;),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.hovertext||this.data.text,!0}},f.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new u(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../lib/gl_format_color&quot;:799,&quot;../../plots/gl3d/zip3&quot;:907,&quot;gl-streamtube3d&quot;:352}],1328:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;starts.x&quot;),s(&quot;starts.y&quot;),s(&quot;starts.z&quot;),s(&quot;maxdisplayed&quot;),s(&quot;sizeref&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;uhoverformat&quot;),s(&quot;vhoverformat&quot;),s(&quot;whoverformat&quot;),s(&quot;xhoverformat&quot;),s(&quot;yhoverformat&quot;),s(&quot;zhoverformat&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;./attributes&quot;:1325}],1329:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;streamtube&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1325,&quot;./calc&quot;:1326,&quot;./convert&quot;:1327,&quot;./defaults&quot;:1328}],1330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../pie/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},parents:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},branchvalues:{valType:&quot;enumerated&quot;,values:[&quot;remainder&quot;,&quot;total&quot;],dflt:&quot;remainder&quot;,editType:&quot;calc&quot;},count:{valType:&quot;flaglist&quot;,flags:[&quot;branches&quot;,&quot;leaves&quot;],dflt:&quot;leaves&quot;,editType:&quot;calc&quot;},level:{valType:&quot;any&quot;,editType:&quot;plot&quot;,anim:!0},maxdepth:{valType:&quot;integer&quot;,editType:&quot;plot&quot;,dflt:-1},marker:u({colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:u({},l.marker.line.color,{dflt:null}),width:u({},l.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},editType:&quot;plot&quot;},text:l.text,textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;},texttemplate:a({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:l.hovertext,hoverinfo:u({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;name&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],dflt:&quot;label+text+value+name&quot;}),hovertemplate:i({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextorientation:l.insidetextorientation,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{}),rotation:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},sort:l.sort,root:{color:{valType:&quot;color&quot;,editType:&quot;calc&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},editType:&quot;calc&quot;},domain:s({name:&quot;sunburst&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/domain&quot;:882,&quot;../../plots/template_attributes&quot;:926,&quot;../pie/attributes&quot;:1192,&quot;./constants&quot;:1333}],1331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;sunburst&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1332:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,s=t(&quot;../pie/calc&quot;).makePullColorFn,l=t(&quot;../pie/calc&quot;).generateExtendedColors,c=t(&quot;../../components/colorscale&quot;).calc,u=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,f={},h={},p={};r.calc=function(t,e){var r,l,f,h,p,d,g=t._fullLayout,m=e.ids,v=a.isArrayOrTypedArray(m),y=e.labels,x=e.parents,b=e.values,_=a.isArrayOrTypedArray(b),w=[],T={},k={},A=function(t){return t||&quot;number&quot;==typeof t},M=function(t){return!_||i(b[t])&amp;&amp;b[t]&gt;=0};v?(r=Math.min(m.length,x.length),l=function(t){return A(m[t])&amp;&amp;M(t)},f=function(t){return String(m[t])}):(r=Math.min(y.length,x.length),l=function(t){return A(y[t])&amp;&amp;M(t)},f=function(t){return String(y[t])}),_&amp;&amp;(r=Math.min(r,b.length));for(var S=0;S&lt;r;S++)if(l(S)){var E=f(S),L=A(x[S])?String(x[S]):&quot;&quot;,C={i:S,id:E,pid:L,label:A(y[S])?String(y[S]):&quot;&quot;};_&amp;&amp;(C.v=+b[S]),w.push(C),p=E,T[h=L]?T[h].push(p):T[h]=[p],k[p]=1}if(T[&quot;&quot;]){if(T[&quot;&quot;].length&gt;1){for(var P=a.randstr(),I=0;I&lt;w.length;I++)&quot;&quot;===w[I].pid&amp;&amp;(w[I].pid=P);w.unshift({hasMultipleRoots:!0,id:P,pid:&quot;&quot;,label:&quot;&quot;})}}else{var O,z=[];for(O in T)k[O]||z.push(O);if(1!==z.length)return a.warn([&quot;Multiple implied roots, cannot build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;These roots include:&quot;,z.join(&quot;, &quot;)].join(&quot; &quot;));O=z[0],w.unshift({hasImpliedRoot:!0,id:O,pid:&quot;&quot;,label:O})}try{d=n.stratify().id((function(t){return t.id})).parentId((function(t){return t.pid}))(w)}catch(t){return a.warn([&quot;Failed to build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;Error:&quot;,t.message].join(&quot; &quot;))}var D=n.hierarchy(d),R=!1;if(_)switch(e.branchvalues){case&quot;remainder&quot;:D.sum((function(t){return t.data.v}));break;case&quot;total&quot;:D.each((function(t){var r=t.data.data,n=r.v;if(t.children){var i=t.children.reduce((function(t,e){return t+e.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&amp;&amp;(n=i),n&lt;i*u)return R=!0,a.warn([&quot;Total value for node&quot;,t.data.data.id,&quot;of&quot;,e.name,&quot;is smaller than the sum of its children.&quot;,&quot;\nparent value =&quot;,n,&quot;\nchildren sum =&quot;,i].join(&quot; &quot;))}t.value=n}))}else!function t(e,r,n){var i=0,a=e.children;if(a){for(var o=a.length,s=0;s&lt;o;s++)i+=t(a[s],r,n);n.branches&amp;&amp;i++}else n.leaves&amp;&amp;i++;e.value=e.data.data.value=i,r._values||(r._values=[]);return r._values[e.data.data.i]=i,i}(D,e,{branches:-1!==e.count.indexOf(&quot;branches&quot;),leaves:-1!==e.count.indexOf(&quot;leaves&quot;)});if(!R){var F,B;e.sort&amp;&amp;D.sort((function(t,e){return e.value-t.value}));var N=e.marker.colors||[],j=!!N.length;return e._hasColorscale?(j||(N=_?e.values:e._values),c(t,e,{vals:N,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),B=o(e.marker)):F=s(g[&quot;_&quot;+e.type+&quot;colormap&quot;]),D.each((function(t){var r=t.data.data;r.color=e._hasColorscale?B(N[r.i]):F(N[r.i],r.id)})),w[0].hierarchy=D,w}},r._runCrossTraceCalc=function(t,e){var r=e._fullLayout,n=e.calcdata,i=r[t+&quot;colorway&quot;],a=r[&quot;_&quot;+t+&quot;colormap&quot;];r[&quot;extend&quot;+t+&quot;colors&quot;]&amp;&amp;(i=l(i,&quot;icicle&quot;===t?p:&quot;treemap&quot;===t?h:f));var o,s=0;function c(t){var e=t.data.data,r=e.id;!1===e.color&amp;&amp;(a[r]?e.color=a[r]:t.parent?t.parent.parent?e.color=t.parent.data.data.color:(a[r]=e.color=i[s%i.length],s++):e.color=o)}for(var u=0;u&lt;n.length;u++){var d=n[u][0];d.trace.type===t&amp;&amp;d.hierarchy&amp;&amp;(o=d.trace.root.color,d.hierarchy.each(c))}},r.crossTraceCalc=function(t){return r._runCrossTraceCalc(&quot;sunburst&quot;,t)}},{&quot;../../components/colorscale&quot;:678,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../pie/calc&quot;:1194,&quot;d3-hierarchy&quot;:170,&quot;fast-isnumeric&quot;:249}],1333:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;linear&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;]}},{}],1334:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../../components/colorscale&quot;),l=s.hasColorscale,c=s.handleDefaults;e.exports=function(t,e,r,s){function u(r,a){return n.coerce(t,e,i,r,a)}var f=u(&quot;labels&quot;),h=u(&quot;parents&quot;);if(f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length){var p=u(&quot;values&quot;);p&amp;&amp;p.length?u(&quot;branchvalues&quot;):u(&quot;count&quot;),u(&quot;level&quot;),u(&quot;maxdepth&quot;),u(&quot;marker.line.width&quot;)&amp;&amp;u(&quot;marker.line.color&quot;,s.paper_bgcolor),u(&quot;marker.colors&quot;);var d=e._hasColorscale=l(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;d&amp;&amp;c(t,e,s,u,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),u(&quot;leaf.opacity&quot;,d?1:.7);var g=u(&quot;text&quot;);u(&quot;texttemplate&quot;),e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+label&quot;:&quot;label&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);o(t,e,s,u,&quot;auto&quot;,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),u(&quot;insidetextorientation&quot;),u(&quot;sort&quot;),u(&quot;rotation&quot;),u(&quot;root.color&quot;),a(e,s,u),e._length=null}else e.visible=!1}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;../bar/defaults&quot;:945,&quot;./attributes&quot;:1330}],1335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/events&quot;),c=t(&quot;./helpers&quot;),u=t(&quot;../pie/helpers&quot;).formatPieValue;function f(t,e,r){for(var n=t.data.data,i={curveNumber:e.index,pointNumber:n.i,data:e._input,fullData:e},o=0;o&lt;r.length;o++){var s=r[o];s in t&amp;&amp;(i[s]=t[s])}return&quot;parentString&quot;in t&amp;&amp;!c.isHierarchyRoot(t)&amp;&amp;(i.parent=t.parentString),a(i,e,n.i),i}e.exports=function(t,e,r,a,h){var p=a[0],d=p.trace,g=p.hierarchy,m=&quot;sunburst&quot;===d.type,v=&quot;treemap&quot;===d.type||&quot;icicle&quot;===d.type;&quot;_hasHoverLabel&quot;in d||(d._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in d||(d._hasHoverEvent=!1);t.on(&quot;mouseover&quot;,(function(i){var a=r._fullLayout;if(!r._dragging&amp;&amp;!1!==a.hovermode){var l,y=r._fullData[d.index],x=i.data.data,b=x.i,_=c.isHierarchyRoot(i),w=c.getParent(g,i),T=c.getValue(i),k=function(t){return s.castOption(y,b,t)},A=k(&quot;hovertemplate&quot;),M=o.castHoverinfo(y,a,b),S=a.separators;if(A||M&amp;&amp;&quot;none&quot;!==M&amp;&amp;&quot;skip&quot;!==M){var E,L;m&amp;&amp;(E=p.cx+i.pxmid[0]*(1-i.rInscribed),L=p.cy+i.pxmid[1]*(1-i.rInscribed)),v&amp;&amp;(E=i._hoverX,L=i._hoverY);var C,P={},I=[],O=[],z=function(t){return-1!==I.indexOf(t)};M&amp;&amp;(I=&quot;all&quot;===M?y._module.attributes.hoverinfo.flags:M.split(&quot;+&quot;)),P.label=x.label,z(&quot;label&quot;)&amp;&amp;P.label&amp;&amp;O.push(P.label),x.hasOwnProperty(&quot;v&quot;)&amp;&amp;(P.value=x.v,P.valueLabel=u(P.value,S),z(&quot;value&quot;)&amp;&amp;O.push(P.valueLabel)),P.currentPath=i.currentPath=c.getPath(i.data),z(&quot;current path&quot;)&amp;&amp;!_&amp;&amp;O.push(P.currentPath);var D=[],R=function(){-1===D.indexOf(C)&amp;&amp;(O.push(C),D.push(C))};P.percentParent=i.percentParent=T/c.getValue(w),P.parent=i.parentString=c.getPtLabel(w),z(&quot;percent parent&quot;)&amp;&amp;(C=c.formatPercent(P.percentParent,S)+&quot; of &quot;+P.parent,R()),P.percentEntry=i.percentEntry=T/c.getValue(e),P.entry=i.entry=c.getPtLabel(e),!z(&quot;percent entry&quot;)||_||i.onPathbar||(C=c.formatPercent(P.percentEntry,S)+&quot; of &quot;+P.entry,R()),P.percentRoot=i.percentRoot=T/c.getValue(g),P.root=i.root=c.getPtLabel(g),z(&quot;percent root&quot;)&amp;&amp;!_&amp;&amp;(C=c.formatPercent(P.percentRoot,S)+&quot; of &quot;+P.root,R()),P.text=k(&quot;hovertext&quot;)||k(&quot;text&quot;),z(&quot;text&quot;)&amp;&amp;(C=P.text,s.isValidTextValue(C)&amp;&amp;O.push(C)),l=[f(i,y,h.eventDataKeys)];var F={trace:y,y:L,_x0:i._x0,_x1:i._x1,_y0:i._y0,_y1:i._y1,text:O.join(&quot;&lt;br&gt;&quot;),name:A||z(&quot;name&quot;)?y.name:void 0,color:k(&quot;hoverlabel.bgcolor&quot;)||x.color,borderColor:k(&quot;hoverlabel.bordercolor&quot;),fontFamily:k(&quot;hoverlabel.font.family&quot;),fontSize:k(&quot;hoverlabel.font.size&quot;),fontColor:k(&quot;hoverlabel.font.color&quot;),nameLength:k(&quot;hoverlabel.namelength&quot;),textAlign:k(&quot;hoverlabel.align&quot;),hovertemplate:A,hovertemplateLabels:P,eventData:l};m&amp;&amp;(F.x0=E-i.rInscribed*i.rpx1,F.x1=E+i.rInscribed*i.rpx1,F.idealAlign=i.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;),v&amp;&amp;(F.x=E,F.idealAlign=E&lt;0?&quot;left&quot;:&quot;right&quot;);var B=[];o.loneHover(F,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r,inOut_bbox:B}),l[0].bbox=B[0],d._hasHoverLabel=!0}if(v){var N=t.select(&quot;path.surface&quot;);h.styleOne(N,i,y,{hovered:!0})}d._hasHoverEvent=!0,r.emit(&quot;plotly_hover&quot;,{points:l||[f(i,y,h.eventDataKeys)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(e){var i=r._fullLayout,a=r._fullData[d.index],s=n.select(this).datum();if(d._hasHoverEvent&amp;&amp;(e.originalEvent=n.event,r.emit(&quot;plotly_unhover&quot;,{points:[f(s,a,h.eventDataKeys)],event:n.event}),d._hasHoverEvent=!1),d._hasHoverLabel&amp;&amp;(o.loneUnhover(i._hoverlayer.node()),d._hasHoverLabel=!1),v){var l=t.select(&quot;path.surface&quot;);h.styleOne(l,s,a,{hovered:!1})}})),t.on(&quot;click&quot;,(function(t){var e=r._fullLayout,a=r._fullData[d.index],s=m&amp;&amp;(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),p=c.isEntry(t)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),v=c.getPtId(p),y={points:[f(t,a,h.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,&quot;plotly_&quot;+d.type+&quot;click&quot;,y);if(!1!==x&amp;&amp;e.hovermode&amp;&amp;(r._hoverdata=[f(t,a,h.eventDataKeys)],o.click(r,n.event)),!s&amp;&amp;!1!==x&amp;&amp;!r._dragging&amp;&amp;!r._transitioning){i.call(&quot;_storeDirectGUIEdit&quot;,a,e._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[d.index]},_={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:&quot;immediate&quot;,fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call(&quot;animate&quot;,r,b,_)}}))}},{&quot;../../components/fx&quot;:706,&quot;../../components/fx/helpers&quot;:702,&quot;../../lib&quot;:803,&quot;../../lib/events&quot;:792,&quot;../../registry&quot;:931,&quot;../pie/helpers&quot;:1197,&quot;./helpers&quot;:1336,&quot;@plotly/d3&quot;:58}],1336:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib/setcursor&quot;),o=t(&quot;../pie/helpers&quot;);function s(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&amp;&amp;t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a&lt;i.length;a++){var o=i[a];if(r.getPtId(o)===e)return n=t.copy()}})),n||t},r.isEntry=function(t){return!t.parent},r.isLeaf=function(t){return!t.children},r.getPtId=function(t){return t.data.data.id},r.getPtLabel=function(t){return t.data.data.label},r.getValue=function(t){return t.value},r.isHierarchyRoot=function(t){return&quot;&quot;===s(t)},r.setSliceCursor=function(t,e,n){var i=n.isTransitioning;if(!i){var o=t.datum();i=n.hideOnRoot&amp;&amp;r.isHierarchyRoot(o)||n.hideOnLeaves&amp;&amp;r.isLeaf(o)}a(t,i?null:&quot;pointer&quot;)},r.getInsideTextFontKey=function(t,e,r,i,a){var o=(a||{}).onPathbar?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;,s=r.data.data.i;return n.castOption(e,s,o+&quot;.&quot;+t)||n.castOption(e,s,&quot;textfont.&quot;+t)||i.size},r.getOutsideTextFontKey=function(t,e,r,i){var a=r.data.data.i;return n.castOption(e,a,&quot;outsidetextfont.&quot;+t)||n.castOption(e,a,&quot;textfont.&quot;+t)||i.size},r.isOutsideText=function(t,e){return!t._hasColorscale&amp;&amp;r.isHierarchyRoot(e)},r.determineTextFont=function(t,e,a,o){return r.isOutsideText(t,e)?function(t,e,n){return{color:r.getOutsideTextFontKey(&quot;color&quot;,t,e,n),family:r.getOutsideTextFontKey(&quot;family&quot;,t,e,n),size:r.getOutsideTextFontKey(&quot;size&quot;,t,e,n)}}(t,e,a):function(t,e,a,o){var s=(o||{}).onPathbar,l=e.data.data,c=l.i,u=n.castOption(t,c,(s?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;)+&quot;.color&quot;);return!u&amp;&amp;t._input.textfont&amp;&amp;(u=n.castOption(t._input,c,&quot;textfont.color&quot;)),{color:u||i.contrast(l.color),family:r.getInsideTextFontKey(&quot;family&quot;,t,e,a,o),size:r.getInsideTextFontKey(&quot;size&quot;,t,e,a,o)}}(t,e,a,o)},r.hasTransition=function(t){return!!(t&amp;&amp;t.duration&gt;0)},r.getMaxDepth=function(t){return t.maxdepth&gt;=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,s(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,&quot;label&quot;).join(&quot;/&quot;)+&quot;/&quot;},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return&quot;0%&quot;===r&amp;&amp;(r=o.formatPiePercent(t,e)),r}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../../lib/setcursor&quot;:824,&quot;../pie/helpers&quot;:1197}],1337:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;sunburst&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1330,&quot;./base_plot&quot;:1331,&quot;./calc&quot;:1332,&quot;./defaults&quot;:1334,&quot;./layout_attributes&quot;:1338,&quot;./layout_defaults&quot;:1339,&quot;./plot&quot;:1340,&quot;./style&quot;:1341}],1338:[function(t,e,r){&quot;use strict&quot;;e.exports={sunburstcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendsunburstcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1339:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;sunburstcolorway&quot;,e.colorway),r(&quot;extendsunburstcolors&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1338}],1340:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-hierarchy&quot;),a=t(&quot;d3-interpolate&quot;).interpolate,o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/uniform_text&quot;),u=c.recordMinTextSize,f=c.clearMinTextSize,h=t(&quot;../pie/plot&quot;),p=t(&quot;../pie/helpers&quot;).getRotationAngle,d=h.computeTransform,g=h.transformInsideText,m=t(&quot;./style&quot;).styleOne,v=t(&quot;../bar/style&quot;).resizeText,y=t(&quot;./fx&quot;),x=t(&quot;./constants&quot;),b=t(&quot;./helpers&quot;);function _(t,e,c,f){var h=t._fullLayout,v=!h.uniformtext.mode&amp;&amp;b.hasTransition(f),_=n.select(c).selectAll(&quot;g.slice&quot;),T=e[0],k=T.trace,A=T.hierarchy,M=b.findEntryWithLevel(A,k.level),S=b.getMaxDepth(k),E=h._size,L=k.domain,C=E.w*(L.x[1]-L.x[0]),P=E.h*(L.y[1]-L.y[0]),I=.5*Math.min(C,P),O=T.cx=E.l+E.w*(L.x[1]+L.x[0])/2,z=T.cy=E.t+E.h*(1-L.y[0])-P/2;if(!M)return _.remove();var D=null,R={};v&amp;&amp;_.each((function(t){R[b.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!D&amp;&amp;b.isEntry(t)&amp;&amp;(D=t)}));var F=function(t){return i.partition().size([2*Math.PI,t.height+1])(t)}(M).descendants(),B=M.height+1,N=0,j=S;T.hasMultipleRoots&amp;&amp;b.isHierarchyRoot(M)&amp;&amp;(F=F.slice(1),B-=1,N=1,j+=1),F=F.filter((function(t){return t.y1&lt;=j}));var U=p(k.rotation);U&amp;&amp;F.forEach((function(t){t.x0+=U,t.x1+=U}));var V=Math.min(B,S),q=function(t){return(t-N)/V*I},H=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},G=function(t){return s.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,O,z)},Y=function(t){return O+w(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},W=function(t){return z+w(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(_=_.data(F,b.getPtId)).enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v?_.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=b.getPtId(t),n=R[r],i=R[b.getPtId(M)];if(i){var o=(t.x1&gt;i.x1?2*Math.PI:0)+U;e=t.rpx1&lt;i.rpx1?{x0:t.x0,x1:t.x1,rpx0:0,rpx1:0}:{x0:o,x1:o,rpx0:t.rpx0,rpx1:t.rpx1}}else{var s,l=b.getPtId(t.parent);_.each((function(t){if(b.getPtId(t)===l)return s=t}));var c,u=s.children;u.forEach((function(t,e){if(b.getPtId(t)===r)return c=e}));var f=u.length,h=a(s.x0,s.x1);e={rpx0:I,rpx1:I,x0:h(c/f),x1:h((c+1)/f)}}return a(n,e)}(t);return function(t){return G(e(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():_.exit().remove(),_.order();var X=null;if(v&amp;&amp;D){var Z=b.getPtId(D);_.each((function(t){null===X&amp;&amp;b.getPtId(t)===Z&amp;&amp;(X=t.x1)}))}var J=_;function K(t){var e=t.parent,r=R[b.getPtId(e)],n={};if(r){var i=e.children,o=i.indexOf(t),s=i.length,l=a(r.x0,r.x1);n.x0=l(o/s),n.x1=l(o/s)}else n.x0=n.x1=0;return n}v&amp;&amp;(J=J.transition().each(&quot;end&quot;,(function(){var e=n.select(this);b.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),J.each((function(i){var c=n.select(this),f=s.ensureSingle(c,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.rpx0=q(i.y0),i.rpx1=q(i.y1),i.xmid=(i.x0+i.x1)/2,i.pxmid=H(i.rpx1,i.xmid),i.midangle=-(i.xmid-Math.PI/2),i.startangle=-(i.x0-Math.PI/2),i.stopangle=-(i.x1-Math.PI/2),i.halfangle=.5*Math.min(s.angleDelta(i.x0,i.x1)||Math.PI,Math.PI),i.ring=1-i.rpx0/i.rpx1,i.rInscribed=function(t){return 0===t.rpx0&amp;&amp;s.isFullCircle([t.x0,t.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2))}(i),v?f.transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=R[b.getPtId(t)],n={x0:t.x0,x1:t.x1,rpx0:t.rpx0,rpx1:t.rpx1};if(r)e=r;else if(D)if(t.parent)if(X){var i=(t.x1&gt;X?2*Math.PI:0)+U;e={x0:i,x1:i}}else e={rpx0:I,rpx1:I},s.extendFlat(e,K(t));else e={rpx0:0,rpx1:0};else e={x0:U,x1:U};return a(e,n)}(t);return function(t){return G(e(t))}})):f.attr(&quot;d&quot;,G),c.call(y,M,t,e,{eventDataKeys:x.eventDataKeys,transitionTime:x.CLICK_TRANSITION_TIME,transitionEasing:x.CLICK_TRANSITION_EASING}).call(b.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),f.call(m,i,k);var p=s.ensureSingle(c,&quot;g&quot;,&quot;slicetext&quot;),_=s.ensureSingle(p,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),w=s.ensureUniformFontSize(t,b.determineTextFont(k,i,h.font));_.text(r.formatSliceLabel(i,M,k,e,h)).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(o.font,w).call(l.convertToTspans,t);var A=o.bBox(_.node());i.transform=g(A,i,T),i.transform.targetX=Y(i),i.transform.targetY=W(i);var S=function(t,e){var r=t.transform;return d(r,e),r.fontSize=w.size,u(k.type,r,h),s.getTextTransform(r)};v?_.transition().attrTween(&quot;transform&quot;,(function(t){var e=function(t){var e,r=R[b.getPtId(t)],n=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:n.textPosAngle,scale:0,rotate:n.rotate,rCenter:n.rCenter,x:n.x,y:n.y}},D)if(t.parent)if(X){var i=t.x1&gt;X?2*Math.PI:0;e.x0=e.x1=i}else s.extendFlat(e,K(t));else e.x0=e.x1=U;else e.x0=e.x1=U;var o=a(e.transform.textPosAngle,t.transform.textPosAngle),l=a(e.rpx1,t.rpx1),c=a(e.x0,t.x0),f=a(e.x1,t.x1),p=a(e.transform.scale,n.scale),d=a(e.transform.rotate,n.rotate),g=0===n.rCenter?3:0===e.transform.rCenter?1/3:1,m=a(e.transform.rCenter,n.rCenter);return function(t){var e=l(t),r=c(t),i=f(t),a=function(t){return m(Math.pow(t,g))}(t),s={pxmid:H(e,(r+i)/2),rpx1:e,transform:{textPosAngle:o(t),rCenter:a,x:n.x,y:n.y}};return u(k.type,n,h),{transform:{targetX:Y(s),targetY:W(s),scale:p(t),rotate:d(t),rCenter:a}}}}(t);return function(t){return S(e(t),A)}})):_.attr(&quot;transform&quot;,S(i,A))}))}function w(t){return e=t.rpx1,r=t.transform.textPosAngle,[e*Math.sin(r),-e*Math.cos(r)];var e,r}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,u=!s.uniformtext.mode&amp;&amp;b.hasTransition(r);(f(&quot;sunburst&quot;,s),(a=l.selectAll(&quot;g.trace.sunburst&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;sunburst&quot;,!0).attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),a.order(),u)?(i&amp;&amp;(o=i()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){o&amp;&amp;o()})).each(&quot;interrupt&quot;,(function(){o&amp;&amp;o()})).each((function(){l.selectAll(&quot;g.trace&quot;).each((function(e){_(t,e,this,r)}))}))):(a.each((function(e){_(t,e,this,r)})),s.uniformtext.mode&amp;&amp;v(t,s._sunburstlayer.selectAll(&quot;.trace&quot;),&quot;sunburst&quot;));c&amp;&amp;a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!(a||o&amp;&amp;&quot;none&quot;!==o))return&quot;&quot;;var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,h=b.isHierarchyRoot(t),p=b.getParent(f,t),d=b.getValue(t);if(!a){var g,m=o.split(&quot;+&quot;),v=function(t){return-1!==m.indexOf(t)},y=[];if(v(&quot;label&quot;)&amp;&amp;u.label&amp;&amp;y.push(u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;v(&quot;value&quot;)&amp;&amp;y.push(b.formatValue(u.v,l)),!h){v(&quot;current path&quot;)&amp;&amp;y.push(b.getPath(t.data));var x=0;v(&quot;percent parent&quot;)&amp;&amp;x++,v(&quot;percent entry&quot;)&amp;&amp;x++,v(&quot;percent root&quot;)&amp;&amp;x++;var _=x&gt;1;if(x){var w,T=function(t){g=b.formatPercent(w,l),_&amp;&amp;(g+=&quot; of &quot;+t),y.push(g)};v(&quot;percent parent&quot;)&amp;&amp;!h&amp;&amp;(w=d/b.getValue(p),T(&quot;parent&quot;)),v(&quot;percent entry&quot;)&amp;&amp;(w=d/b.getValue(e),T(&quot;entry&quot;)),v(&quot;percent root&quot;)&amp;&amp;(w=d/b.getValue(f),T(&quot;root&quot;))}}return v(&quot;text&quot;)&amp;&amp;(g=s.castOption(r,u.i,&quot;text&quot;),s.isValidTextValue(g)&amp;&amp;y.push(g)),y.join(&quot;&lt;br&gt;&quot;)}var k=s.castOption(r,u.i,&quot;texttemplate&quot;);if(!k)return&quot;&quot;;var A={};u.label&amp;&amp;(A.label=u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;(A.value=u.v,A.valueLabel=b.formatValue(u.v,l)),A.currentPath=b.getPath(t.data),h||(A.percentParent=d/b.getValue(p),A.percentParentLabel=b.formatPercent(A.percentParent,l),A.parent=b.getPtLabel(p)),A.percentEntry=d/b.getValue(e),A.percentEntryLabel=b.formatPercent(A.percentEntry,l),A.entry=b.getPtLabel(e),A.percentRoot=d/b.getValue(f),A.percentRootLabel=b.formatPercent(A.percentRoot,l),A.root=b.getPtLabel(f),u.hasOwnProperty(&quot;color&quot;)&amp;&amp;(A.color=u.color);var M=s.castOption(r,u.i,&quot;text&quot;);return(s.isValidTextValue(M)||&quot;&quot;===M)&amp;&amp;(A.text=M),A.customdata=s.castOption(r,u.i,&quot;customdata&quot;),s.texttemplateString(k,A,i._d3locale,A,r._meta||{})}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../bar/style&quot;:955,&quot;../bar/uniform_text&quot;:957,&quot;../pie/helpers&quot;:1197,&quot;../pie/plot&quot;:1201,&quot;./constants&quot;:1333,&quot;./fx&quot;:1335,&quot;./helpers&quot;:1336,&quot;./style&quot;:1341,&quot;@plotly/d3&quot;:58,&quot;d3-hierarchy&quot;:170,&quot;d3-interpolate&quot;:171}],1341:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;sunburst&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1342:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../plot_api/edit_types&quot;).overrideAll;function u(t){return{show:{valType:&quot;boolean&quot;,dflt:!1},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;},project:{x:{valType:&quot;boolean&quot;,dflt:!1},y:{valType:&quot;boolean&quot;,dflt:!1},z:{valType:&quot;boolean&quot;,dflt:!1}},color:{valType:&quot;color&quot;,dflt:n.defaultLine},usecolormap:{valType:&quot;boolean&quot;,dflt:!1},width:{valType:&quot;number&quot;,min:1,max:16,dflt:2},highlight:{valType:&quot;boolean&quot;,dflt:!0},highlightcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},highlightwidth:{valType:&quot;number&quot;,min:1,max:16,dflt:2}}}var f=e.exports=c(l({z:{valType:&quot;data_array&quot;},x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:o(),xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),zhoverformat:a(&quot;z&quot;),connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},surfacecolor:{valType:&quot;data_array&quot;}},i(&quot;&quot;,{colorAttr:&quot;z or surfacecolor&quot;,showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}),{contours:{x:u(),y:u(),z:u()},hidesurface:{valType:&quot;boolean&quot;,dflt:!1},lightposition:{x:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:10},y:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:1e4},z:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},diffuse:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},specular:{valType:&quot;number&quot;,min:0,max:2,dflt:.05},roughness:{valType:&quot;number&quot;,min:0,max:1,dflt:.5},fresnel:{valType:&quot;number&quot;,min:0,max:5,dflt:.2}},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},opacityscale:{valType:&quot;any&quot;,editType:&quot;calc&quot;},_deprecated:{zauto:l({},i.zauto,{}),zmin:l({},i.zmin,{}),zmax:l({},i.zmax,{})},hoverinfo:l({},s.hoverinfo),showlegend:l({},s.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);f.x.editType=f.y.editType=f.z.editType=&quot;calc+clearAxisTypes&quot;,f.transforms=void 0},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926}],1343:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:&quot;&quot;,cLetter:&quot;c&quot;}):n(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:674}],1344:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-surface3d&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;ndarray-linear-interpolate&quot;).d2,o=t(&quot;../heatmap/interp2d&quot;),s=t(&quot;../heatmap/find_empties&quot;),l=t(&quot;../../lib&quot;).isArrayOrTypedArray,c=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,u=t(&quot;../../lib/str2rgbarray&quot;),f=t(&quot;../../components/colorscale&quot;).extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=h.prototype;p.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},p.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},p.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&amp;&amp;this.data.connectgaps&amp;&amp;this.data._interpolatedZ&amp;&amp;(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},p.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a&lt;3;a++){var o=t.dataCoordinate[a];null!=o&amp;&amp;(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&amp;&amp;s[i]&amp;&amp;void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||&quot;&quot;,t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function g(t,e){if(t&lt;e)return 0;for(var r=0;0===Math.floor(t%e);)t/=e,r++;return r}function m(t){for(var e=[],r=0;r&lt;d.length;r++){var n=d[r];e.push(g(t,n))}return e}function v(t){for(var e=m(t),r=t,n=0;n&lt;d.length;n++)if(e[n]&gt;0){r=d[n];break}return r}function y(t,e){if(!(t&lt;1||e&lt;1)){for(var r=m(t),n=m(e),i=1,a=0;a&lt;d.length;a++)i*=Math.pow(d[a],Math.max(r[a],n[a]));return i}}p.calcXnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getXat(e-1,0),i=this.getXat(e,0);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r},p.calcYnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getYat(0,e-1),i=this.getYat(0,e);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r};var x=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],b=x[9],_=x[13];function w(t,e,r){var n=r[8]+r[2]*e[0]+r[5]*e[1];return t[0]=(r[6]+r[0]*e[0]+r[3]*e[1])/n,t[1]=(r[7]+r[1]*e[0]+r[4]*e[1])/n,t}function T(t,e,r){return function(t,e,r,n){for(var i=[0,0],o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++)r(i,[l,c],n),t.set(l,c,a(e,i[0],i[1]))}(t,e,w,r),t}function k(t,e){for(var r=!1,n=0;n&lt;t.length;n++)if(e===t[n]){r=!0;break}!1===r&amp;&amp;t.push(e)}p.estimateScale=function(t,e){for(var r=1+function(t){if(0!==t.length){for(var e=1,r=0;r&lt;t.length;r++)e=y(e,t[r]);return e}}(0===e?this.calcXnums(t):this.calcYnums(t));r&lt;b;)r*=2;for(;r&gt;_;)r--,r/=v(r),++r&lt;b&amp;&amp;(r=_);var n=Math.round(r/t);return n&gt;1?n:1},p.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],h=0;h&lt;t.length;++h){this.surface.padField(u,t[h]);var p=i(new Float32Array(o*s),[o,s]);T(p,u,f),t[h]=p}},p.setContourLevels=function(){var t,e,r,n=[[],[],[]],i=[!1,!1,!1],a=!1;for(t=0;t&lt;3;++t)if(this.showContour[t]&amp;&amp;(a=!0,this.contourSize[t]&gt;0&amp;&amp;null!==this.contourStart[t]&amp;&amp;null!==this.contourEnd[t]&amp;&amp;this.contourEnd[t]&gt;this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];e&lt;this.contourEnd[t];e+=this.contourSize[t])r=e*this.scene.dataScale[t],k(n[t],r);if(a){var o=[[],[],[]];for(t=0;t&lt;3;++t)this.showContour[t]&amp;&amp;(o[t]=i[t]?n[t]:this.scene.contourLevels[t]);this.surface.update({levels:o})}},p.update=function(t){var e,r,n,a,l=this.scene,h=l.fullSceneLayout,p=this.surface,d=c(t),g=l.dataScale,m=t.z[0].length,v=t._ylength,y=l.contourLevels;this.data=t;var x=[];for(e=0;e&lt;3;e++)for(x[e]=[],r=0;r&lt;m;r++)x[e][r]=[];for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)x[0][r][n]=this.getXat(r,n,t.xcalendar,h.xaxis),x[1][r][n]=this.getYat(r,n,t.ycalendar,h.yaxis),x[2][r][n]=this.getZat(r,n,t.zcalendar,h.zaxis);if(t.connectgaps)for(t._emptypoints=s(x[2]),o(x[2],t._emptypoints),t._interpolatedZ=[],r=0;r&lt;m;r++)for(t._interpolatedZ[r]=[],n=0;n&lt;v;n++)t._interpolatedZ[r][n]=x[2][r][n];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null==(a=x[e][r][n])?x[e][r][n]=NaN:a=x[e][r][n]*=g[e];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(this.minValues[e]&gt;a&amp;&amp;(this.minValues[e]=a),this.maxValues[e]&lt;a&amp;&amp;(this.maxValues[e]=a));for(e=0;e&lt;3;e++)this.objectOffset[e]=.5*(this.minValues[e]+this.maxValues[e]);for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(x[e][r][n]-=this.objectOffset[e]);var b=[i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v])];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)b[e].set(r,n,x[e][r][n]);x=[];var w={colormap:d,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:t.opacityscale,opacity:t.opacity},T=f(t);if(w.intensityBounds=[T.min,T.max],t.surfacecolor){var k=i(new Float32Array(m*v),[m,v]);for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)k.set(r,n,t.surfacecolor[n][r]);b.push(k)}else w.intensityBounds[0]*=g[2],w.intensityBounds[1]*=g[2];(_&lt;b[0].shape[0]||_&lt;b[0].shape[1])&amp;&amp;(this.refineData=!1),!0===this.refineData&amp;&amp;(this.dataScaleX=this.estimateScale(b[0].shape[0],0),this.dataScaleY=this.estimateScale(b[0].shape[1],1),1===this.dataScaleX&amp;&amp;1===this.dataScaleY||this.refineCoords(b)),t.surfacecolor&amp;&amp;(w.intensity=b.pop());var A=[!0,!0,!0],M=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(e=0;e&lt;3;++e){var S=t.contours[M[e]];A[e]=S.highlight,w.showContour[e]=S.show||S.highlight,w.showContour[e]&amp;&amp;(w.contourProject[e]=[S.project.x,S.project.y,S.project.z],S.show?(this.showContour[e]=!0,w.levels[e]=y[e],p.highlightColor[e]=w.contourColor[e]=u(S.color),S.usecolormap?p.highlightTint[e]=w.contourTint[e]=0:p.highlightTint[e]=w.contourTint[e]=1,w.contourWidth[e]=S.width,this.contourStart[e]=S.start,this.contourEnd[e]=S.end,this.contourSize[e]=S.size):(this.showContour[e]=!1,this.contourStart[e]=null,this.contourEnd[e]=null,this.contourSize[e]=0),S.highlight&amp;&amp;(w.dynamicColor[e]=u(S.highlightcolor),w.dynamicWidth[e]=S.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&amp;&amp;e[1]===r[1]&amp;&amp;e[2]===r[2]&amp;&amp;e[3]===r[3]})(d)&amp;&amp;(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=b,p.update(w),p.visible=t.visible,p.enableDynamic=A,p.enableHighlight=A,p.snapToData=!0,&quot;lighting&quot;in t&amp;&amp;(p.ambientLight=t.lighting.ambient,p.diffuseLight=t.lighting.diffuse,p.specularLight=t.lighting.specular,p.roughness=t.lighting.roughness,p.fresnel=t.lighting.fresnel),&quot;lightposition&quot;in t&amp;&amp;(p.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z])},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../lib/gl_format_color&quot;:799,&quot;../../lib/str2rgbarray&quot;:828,&quot;../heatmap/find_empties&quot;:1091,&quot;../heatmap/interp2d&quot;:1094,&quot;gl-surface3d&quot;:354,ndarray:483,&quot;ndarray-linear-interpolate&quot;:477}],1345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){var i=n(&quot;opacityscale&quot;);&quot;max&quot;===i?e.opacityscale=[[0,.1],[1,1]]:&quot;min&quot;===i?e.opacityscale=[[0,1],[1,.1]]:&quot;extremes&quot;===i?e.opacityscale=function(t,e){for(var r=[],n=0;n&lt;32;n++){var i=n/31,a=e+(1-e)*(1-Math.pow(Math.sin(t*i*Math.PI),2));r.push([i,Math.max(0,Math.min(1,a))])}return r}(1,.1):function(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var n=t[r];if(2!==n.length||+n[0]&lt;e)return!1;e=+n[0]}return!0}(i)||(e.opacityscale=void 0)}function l(t,e,r){e in t&amp;&amp;!(r in t)&amp;&amp;(t[r]=t[e])}e.exports={supplyDefaults:function(t,e,r,c){var u,f;function h(r,n){return i.coerce(t,e,o,r,n)}var p=h(&quot;x&quot;),d=h(&quot;y&quot;),g=h(&quot;z&quot;);if(!g||!g.length||p&amp;&amp;p.length&lt;1||d&amp;&amp;d.length&lt;1)e.visible=!1;else{e._xlength=Array.isArray(p)&amp;&amp;i.isArrayOrTypedArray(p[0])?g.length:g[0].length,e._ylength=g.length,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],c),h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),h(&quot;xhoverformat&quot;),h(&quot;yhoverformat&quot;),h(&quot;zhoverformat&quot;),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;hidesurface&quot;,&quot;connectgaps&quot;,&quot;opacity&quot;].forEach((function(t){h(t)}));var m=h(&quot;surfacecolor&quot;),v=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(u=0;u&lt;3;++u){var y=&quot;contours.&quot;+v[u],x=h(y+&quot;.show&quot;),b=h(y+&quot;.highlight&quot;);if(x||b)for(f=0;f&lt;3;++f)h(y+&quot;.project.&quot;+v[f]);x&amp;&amp;(h(y+&quot;.color&quot;),h(y+&quot;.width&quot;),h(y+&quot;.usecolormap&quot;)),b&amp;&amp;(h(y+&quot;.highlightcolor&quot;),h(y+&quot;.highlightwidth&quot;)),h(y+&quot;.start&quot;),h(y+&quot;.end&quot;),h(y+&quot;.size&quot;)}m||(l(t,&quot;zmin&quot;,&quot;cmin&quot;),l(t,&quot;zmax&quot;,&quot;cmax&quot;),l(t,&quot;zauto&quot;,&quot;cauto&quot;)),a(t,e,c,h,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(t,e,c,h),e._length=null}},opacityscaleDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:676,&quot;../../lib&quot;:803,&quot;../../registry&quot;:931,&quot;./attributes&quot;:1342}],1346:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;surface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;./attributes&quot;:1342,&quot;./calc&quot;:1343,&quot;./convert&quot;:1344,&quot;./defaults&quot;:1345}],1347:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/annotations/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionOnlyNumbers;(e.exports=a({domain:s({name:&quot;table&quot;,trace:!0}),columnwidth:{valType:&quot;number&quot;,arrayOk:!0,dflt:null},columnorder:{valType:&quot;data_array&quot;},header:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[],description:l(&quot;cell value&quot;)},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[],description:l(&quot;cell value&quot;)},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))}},&quot;calc&quot;,&quot;from-root&quot;)).transforms=void 0},{&quot;../../components/annotations/attributes&quot;:649,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/domain&quot;:882,&quot;../../plots/font_attributes&quot;:883}],1348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;table&quot;,r.plot=function(t){var e=n(t.calcdata,&quot;table&quot;)[0];e.length&amp;&amp;i(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;table&quot;),a=e._has&amp;&amp;e._has(&quot;table&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.table&quot;).remove()}},{&quot;../../plots/get_data&quot;:891,&quot;./plot&quot;:1355}],1349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(){return n({})}},{&quot;../../lib/gup&quot;:800}],1350:[function(t,e,r){&quot;use strict&quot;;e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:&quot;&lt;br&gt;&quot;,maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:&quot;cubic-out&quot;,scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:&quot;cubic-out&quot;,uplift:5,wrapSpacer:&quot; &quot;,wrapSplitCharacter:&quot; &quot;,cn:{table:&quot;table&quot;,tableControlView:&quot;table-control-view&quot;,scrollBackground:&quot;scroll-background&quot;,yColumn:&quot;y-column&quot;,columnBlock:&quot;column-block&quot;,scrollAreaClip:&quot;scroll-area-clip&quot;,scrollAreaClipRect:&quot;scroll-area-clip-rect&quot;,columnBoundary:&quot;column-boundary&quot;,columnBoundaryClippath:&quot;column-boundary-clippath&quot;,columnBoundaryRect:&quot;column-boundary-rect&quot;,columnCells:&quot;column-cells&quot;,columnCell:&quot;column-cell&quot;,cellRect:&quot;cell-rect&quot;,cellText:&quot;cell-text&quot;,cellTextHolder:&quot;cell-text-holder&quot;,scrollbarKit:&quot;scrollbar-kit&quot;,scrollbar:&quot;scrollbar&quot;,scrollbarSlider:&quot;scrollbar-slider&quot;,scrollbarGlyph:&quot;scrollbar-glyph&quot;,scrollbarCaptureZone:&quot;scrollbar-capture-zone&quot;}}},{}],1351:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;fast-isnumeric&quot;);function o(t){if(Array.isArray(t)){for(var e=0,r=0;r&lt;t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e&lt;r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e&lt;r.length;e++){var a=i-r[e].length;a&amp;&amp;(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=&quot;&quot;;return e}function u(t){return t.calcdata.columns.reduce((function(e,r){return r.xIndex&lt;t.xIndex?e+r.columnWidth:e}),0)}function f(t,e){return Object.keys(t).map((function(r){return i({},t[r],{auxiliaryBlocks:e})}))}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c&lt;t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)&gt;=e||c===t.length-1)&amp;&amp;(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&amp;&amp;!d[0].length&amp;&amp;(d[0]=[&quot;&quot;],d=l(d));var g=d.concat(p(r).map((function(){return c((d[0]||[&quot;&quot;]).length)}))),m=e.domain,v=Math.floor(t._fullLayout._size.w*(m.x[1]-m.x[0])),y=Math.floor(t._fullLayout._size.h*(m.y[1]-m.y[0])),x=e.header.values.length?g[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return e.cells.height})):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),T=f(h(x,_),[]),k=f(w,T),A={},M=e._fullInput.columnorder.concat(p(r.map((function(t,e){return e})))),S=g.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var L=Math.max(o(e.header.line.width),o(e.cells.line.width)),C={key:e.uid+t._context.staticPlot,translateX:m.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-m.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:L,height:y,columnOrder:M,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map((function(t){return t[0]})),gdColumnsOriginalOrder:g.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(t,e){var r=A[t];return A[t]=(r||0)+1,{key:t+&quot;__&quot;+A[t],label:t,specIndex:e,xIndex:M[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return C.columns.forEach((function(t){t.calcdata=C,t.x=u(t)})),C}},{&quot;../../lib/extend&quot;:793,&quot;./constants&quot;:1350,&quot;fast-isnumeric&quot;:249}],1352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:&quot;header&quot;,type:&quot;header&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:&quot;cells1&quot;,type:&quot;cells&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:&quot;cells2&quot;,type:&quot;cells&quot;,page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+(&quot;string&quot;==typeof r&amp;&amp;r.match(/[&lt;$&amp;&gt; ]/)?&quot;_keybuster_&quot;+Math.random():&quot;&quot;),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{&quot;../../lib/extend&quot;:793}],1353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(&quot;columnwidth&quot;),s(&quot;header.values&quot;),s(&quot;header.format&quot;),s(&quot;header.align&quot;),s(&quot;header.prefix&quot;),s(&quot;header.suffix&quot;),s(&quot;header.height&quot;),s(&quot;header.line.width&quot;),s(&quot;header.line.color&quot;),s(&quot;header.fill.color&quot;),n.coerceFont(s,&quot;header.font&quot;,n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s&lt;n;s++)o.push(s);e(&quot;columnorder&quot;,o)}(e,s),s(&quot;cells.values&quot;),s(&quot;cells.format&quot;),s(&quot;cells.align&quot;),s(&quot;cells.prefix&quot;),s(&quot;cells.suffix&quot;),s(&quot;cells.height&quot;),s(&quot;cells.line.width&quot;),s(&quot;cells.line.color&quot;),s(&quot;cells.fill.color&quot;),n.coerceFont(s,&quot;cells.font&quot;,n.extendFlat({},o.font)),e._length=null}},{&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;./attributes&quot;:1347}],1354:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;table&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1347,&quot;./base_plot&quot;:1348,&quot;./calc&quot;:1349,&quot;./defaults&quot;:1353,&quot;./plot&quot;:1355}],1355:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;@plotly/d3&quot;),a=t(&quot;../../lib&quot;).numberFormat,o=t(&quot;../../lib/gup&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;).raiseToTop,u=t(&quot;../../lib&quot;).strTranslate,f=t(&quot;../../lib&quot;).cancelTransition,h=t(&quot;./data_preparation_helper&quot;),p=t(&quot;./data_split_helpers&quot;),d=t(&quot;../../components/color&quot;);function g(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function m(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_scrollAreaBottomClip_&quot;+e.key}function v(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_columnBoundaryClippath_&quot;+e.calcdata.key+&quot;_&quot;+e.specIndex}function y(t){return[].concat.apply([],t.map((function(t){return t}))).map((function(t){return t.__data__}))}function x(t,e,r){var a=t.selectAll(&quot;.&quot;+n.cn.scrollbarKit).data(o.repeat,o.keyFun);a.enter().append(&quot;g&quot;).classed(n.cn.scrollbarKit,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),a.each((function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return D(e,e.length-1)+(e.length?R(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-S(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom})).attr(&quot;transform&quot;,(function(t){var e=t.width+n.scrollbarWidth/2+n.scrollbarOffset;return u(e,S(t))}));var s=a.selectAll(&quot;.&quot;+n.cn.scrollbar).data(o.repeat,o.keyFun);s.enter().append(&quot;g&quot;).classed(n.cn.scrollbar,!0);var l=s.selectAll(&quot;.&quot;+n.cn.scrollbarSlider).data(o.repeat,o.keyFun);l.enter().append(&quot;g&quot;).classed(n.cn.scrollbarSlider,!0),l.attr(&quot;transform&quot;,(function(t){return u(0,t.scrollbarState.topY||0)}));var c=l.selectAll(&quot;.&quot;+n.cn.scrollbarGlyph).data(o.repeat,o.keyFun);c.enter().append(&quot;line&quot;).classed(n.cn.scrollbarGlyph,!0).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,n.scrollbarWidth).attr(&quot;stroke-linecap&quot;,&quot;round&quot;).attr(&quot;y1&quot;,n.scrollbarWidth/2),c.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2})).attr(&quot;stroke-opacity&quot;,(function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4})),c.transition().delay(0).duration(0),c.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(&quot;stroke-opacity&quot;,0);var f=s.selectAll(&quot;.&quot;+n.cn.scrollbarCaptureZone).data(o.repeat,o.keyFun);f.enter().append(&quot;line&quot;).classed(n.cn.scrollbarCaptureZone,!0).attr(&quot;stroke&quot;,&quot;white&quot;).attr(&quot;stroke-opacity&quot;,.01).attr(&quot;stroke-width&quot;,n.scrollbarCaptureWidth).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;).attr(&quot;y1&quot;,0).on(&quot;mousedown&quot;,(function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY&lt;=s&amp;&amp;s&lt;=o.bottomY||L(e,t,null,l(s-o.barLength/2))(r)})).call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t})).on(&quot;drag&quot;,L(e,t)).on(&quot;dragend&quot;,(function(){}))),f.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.scrollableAreaHeight})),e._context.staticPlot&amp;&amp;(c.remove(),f.remove())}function b(t,e,r,a){var l=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCell).data(p.splitToCells,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCells).data(o.repeat,o.keyFun);return e.enter().append(&quot;g&quot;).classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each((function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:T(r.size,n,e),color:T(r.color,n,e),family:T(r.family,n,e)};t.rowNumber=t.key,t.align=T(t.calcdata.cells.align,n,e),t.cellBorderWidth=T(t.calcdata.cells.line.width,n,e),t.font=i}))}(l),function(t){t.attr(&quot;width&quot;,(function(t){return t.column.columnWidth})).attr(&quot;stroke-width&quot;,(function(t){return t.cellBorderWidth})).each((function(t){var e=i.select(this);d.stroke(e,T(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),d.fill(e,T(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))}))}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellRect).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;rect&quot;).classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellText).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;text&quot;).classed(n.cn.cellText,!0).style(&quot;cursor&quot;,(function(){return&quot;auto&quot;})).on(&quot;mousedown&quot;,(function(){i.event.stopPropagation()})),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellTextHolder).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.cellTextHolder,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),e}(l));!function(t){t.each((function(t){s.font(i.select(this),t.font)}))}(c),_(c,e,a,t),z(l)}function _(t,e,r,o){t.text((function(t){var e=t.column.specIndex,r=t.rowNumber,i=t.value,o=&quot;string&quot;==typeof i,s=o&amp;&amp;i.match(/&lt;br&gt;/i),l=!o||s;t.mayHaveMarkup=o&amp;&amp;i.match(/[&lt;&amp;&gt;]/);var c,u=&quot;string&quot;==typeof(c=i)&amp;&amp;c.match(n.latexCheck);t.latex=u;var f,h,p=u?&quot;&quot;:T(t.calcdata.cells.prefix,e,r)||&quot;&quot;,d=u?&quot;&quot;:T(t.calcdata.cells.suffix,e,r)||&quot;&quot;,g=u?null:T(t.calcdata.cells.format,e,r)||null,m=p+(g?a(g)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&amp;&amp;!l&amp;&amp;!u&amp;&amp;(f=w(m)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?w(m):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var v=(&quot; &quot;===n.wrapSplitCharacter?m.replace(/&lt;a href=/gi,&quot;&lt;a_href=&quot;):m).split(n.wrapSplitCharacter),y=&quot; &quot;===n.wrapSplitCharacter?v.map((function(t){return t.replace(/&lt;a_href=/gi,&quot;&lt;a href=&quot;)})):v;t.fragments=y.map((function(t){return{text:t,width:null}})),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=m;return h})).attr(&quot;dy&quot;,(function(t){return t.needsConvertToTspans?0:&quot;0.75em&quot;})).each((function(t){var a=i.select(this),s=t.wrappingNeeded?P:I;t.needsConvertToTspans?l.convertToTspans(a,o,s(r,this,e,o,t)):i.select(this.parentNode).attr(&quot;transform&quot;,(function(t){return u(O(t),n.cellPad)})).attr(&quot;text-anchor&quot;,(function(t){return{left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;}[t.align]}))}))}function w(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function T(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function k(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(&quot;transform&quot;,u(e.x,r))}function A(t){return&quot;cells&quot;===t.type}function M(t){return&quot;header&quot;===t.type}function S(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce((function(t,e){return t+R(e,1/0)}),0)}function E(t,e,r){var n=y(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=D(i,i.length),s=n.calcdata.groupHeight-S(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),c=function(t,e,r){for(var n=[],i=0,a=0;a&lt;t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c&lt;s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l;e&lt;i+l&amp;&amp;e+r&gt;i&amp;&amp;n.push(a),i+=l}return n}(i,l,s);1===c.length&amp;&amp;(c[0]===i.length-1?c.unshift(c[0]-1):c.push(c[0]+1)),c[0]%2&amp;&amp;c.reverse(),e.each((function(t,e){t.page=c[e],t.scrollY=l})),e.attr(&quot;transform&quot;,(function(t){var e=D(t.rowBlocks,t.page)-t.scrollY;return u(0,e)})),t&amp;&amp;(C(t,r,e,c,n.prevPages,n,0),C(t,r,e,c,n.prevPages,n,1),x(r,t))}}function L(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll(&quot;.&quot;+n.cn.yColumn).selectAll(&quot;.&quot;+n.cn.columnBlock).filter(A);return E(t,f,l),s.scrollY===u}}function C(t,e,r,n,i,a,o){n[o]!==i[o]&amp;&amp;(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&amp;&amp;n[e]!==i[e]}));b(t,e,a,r),i[o]=n[o]})))}function P(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll(&quot;tspan.line&quot;).each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=&quot;&quot;;s.length;)c+(i=(r=s.shift()).width+a)&gt;u&amp;&amp;(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&amp;&amp;(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll(&quot;tspan.line&quot;).remove(),_(o.select(&quot;.&quot;+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(z)}}function I(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=B(o),c=o.key-l.firstRowIndex,f=l.rows[c].rowHeight,h=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,p=Math.max(h,f);p-l.rows[c].rowHeight&amp;&amp;(l.rows[c].rowHeight=p,t.selectAll(&quot;.&quot;+n.cn.columnCell).call(z),E(null,t.filter(A),0),x(r,a,!0)),s.attr(&quot;transform&quot;,(function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return u(O(o,i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellTextHolder).node().getBoundingClientRect().width),a)})),o.settledY=!0}}}function O(t,e){switch(t.align){case&quot;left&quot;:return n.cellPad;case&quot;right&quot;:return t.column.columnWidth-(e||0)-n.cellPad;case&quot;center&quot;:return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function z(t){t.attr(&quot;transform&quot;,(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+R(e,1/0)}),0),r=R(B(t),t.key);return u(0,r+e)})).selectAll(&quot;.&quot;+n.cn.cellRect).attr(&quot;height&quot;,(function(t){return(e=B(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r}))}function D(t,e){for(var r=0,n=e-1;n&gt;=0;n--)r+=F(t[n]);return r}function R(t,e){for(var r=0,n=0;n&lt;t.rows.length&amp;&amp;t.rows[n].rowIndex&lt;e;n++)r+=t.rows[n].rowHeight;return r}function F(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n&lt;t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function B(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=!t._context.staticPlot,a=t._fullLayout._paper.selectAll(&quot;.&quot;+n.cn.table).data(e.map((function(e){var r=o.unwrap(e).trace;return h(t,r)})),o.keyFun);a.exit().remove(),a.enter().append(&quot;g&quot;).classed(n.cn.table,!0).attr(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;),a.attr(&quot;width&quot;,(function(t){return t.width+t.size.l+t.size.r})).attr(&quot;height&quot;,(function(t){return t.height+t.size.t+t.size.b})).attr(&quot;transform&quot;,(function(t){return u(t.translateX,t.translateY)}));var l=a.selectAll(&quot;.&quot;+n.cn.tableControlView).data(o.repeat,o.keyFun),d=l.enter().append(&quot;g&quot;).classed(n.cn.tableControlView,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;);if(r){var _=&quot;onwheel&quot;in document?&quot;wheel&quot;:&quot;mousewheel&quot;;d.on(&quot;mousemove&quot;,(function(e){l.filter((function(t){return e===t})).call(x,t)})).on(_,(function(e){if(!e.scrollbarState.wheeling){e.scrollbarState.wheeling=!0;var r=e.scrollY+i.event.deltaY;L(t,l,null,r)(e)||(i.event.stopPropagation(),i.event.preventDefault()),e.scrollbarState.wheeling=!1}})).call(x,t,!0)}l.attr(&quot;transform&quot;,(function(t){return u(t.size.l,t.size.t)}));var w=l.selectAll(&quot;.&quot;+n.cn.scrollBackground).data(o.repeat,o.keyFun);w.enter().append(&quot;rect&quot;).classed(n.cn.scrollBackground,!0).attr(&quot;fill&quot;,&quot;none&quot;),w.attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),l.each((function(e){s.setClipUrl(i.select(this),m(t,e),t)}));var T=l.selectAll(&quot;.&quot;+n.cn.yColumn).data((function(t){return t.columns}),o.keyFun);T.enter().append(&quot;g&quot;).classed(n.cn.yColumn,!0),T.exit().remove(),T.attr(&quot;transform&quot;,(function(t){return u(t.x,0)})),r&amp;&amp;T.call(i.behavior.drag().origin((function(e){return k(i.select(this),e,-n.uplift),c(this),e.calcdata.columnDragInProgress=!0,x(l.filter((function(t){return e.calcdata.key===t.key})),t),e})).on(&quot;drag&quot;,(function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),y(T).filter((function(e){return e.calcdata.key===t.calcdata.key})).sort((function(t,e){return r(t)-r(e)})).forEach((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)})),T.filter((function(e){return t!==e})).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(&quot;transform&quot;,(function(t){return u(t.x,0)})),e.call(f).attr(&quot;transform&quot;,u(t.x,-n.uplift))})).on(&quot;dragend&quot;,(function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,k(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort((function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]})),e.columnorder=r,t.emit(&quot;plotly_restyle&quot;)}(t,n,n.columns.map((function(t){return t.xIndex})))}))),T.each((function(e){s.setClipUrl(i.select(this),v(t,e),t)}));var S=T.selectAll(&quot;.&quot;+n.cn.columnBlock).data(p.splitToPanels,o.keyFun);S.enter().append(&quot;g&quot;).classed(n.cn.columnBlock,!0).attr(&quot;id&quot;,(function(t){return t.key})),S.style(&quot;cursor&quot;,(function(t){return t.dragHandle?&quot;ew-resize&quot;:t.calcdata.scrollbarState.barWiggleRoom?&quot;ns-resize&quot;:&quot;default&quot;}));var C=S.filter(M),P=S.filter(A);r&amp;&amp;P.call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t})).on(&quot;drag&quot;,L(t,l,-1)).on(&quot;dragend&quot;,(function(){}))),b(t,l,C,S),b(t,l,P,S);var I=l.selectAll(&quot;.&quot;+n.cn.scrollAreaClip).data(o.repeat,o.keyFun);I.enter().append(&quot;clipPath&quot;).classed(n.cn.scrollAreaClip,!0).attr(&quot;id&quot;,(function(e){return m(t,e)}));var O=I.selectAll(&quot;.&quot;+n.cn.scrollAreaClipRect).data(o.repeat,o.keyFun);O.enter().append(&quot;rect&quot;).classed(n.cn.scrollAreaClipRect,!0).attr(&quot;x&quot;,-n.overdrag).attr(&quot;y&quot;,-n.uplift).attr(&quot;fill&quot;,&quot;none&quot;),O.attr(&quot;width&quot;,(function(t){return t.width+2*n.overdrag})).attr(&quot;height&quot;,(function(t){return t.height+n.uplift})),T.selectAll(&quot;.&quot;+n.cn.columnBoundary).data(o.repeat,o.keyFun).enter().append(&quot;g&quot;).classed(n.cn.columnBoundary,!0);var z=T.selectAll(&quot;.&quot;+n.cn.columnBoundaryClippath).data(o.repeat,o.keyFun);z.enter().append(&quot;clipPath&quot;).classed(n.cn.columnBoundaryClippath,!0),z.attr(&quot;id&quot;,(function(e){return v(t,e)}));var D=z.selectAll(&quot;.&quot;+n.cn.columnBoundaryRect).data(o.repeat,o.keyFun);D.enter().append(&quot;rect&quot;).classed(n.cn.columnBoundaryRect,!0).attr(&quot;fill&quot;,&quot;none&quot;),D.attr(&quot;width&quot;,(function(t){return t.columnWidth+2*g(t)})).attr(&quot;height&quot;,(function(t){return t.calcdata.height+2*g(t)+n.uplift})).attr(&quot;x&quot;,(function(t){return-g(t)})).attr(&quot;y&quot;,(function(t){return-g(t)})),E(null,P,l)}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/gup&quot;:800,&quot;../../lib/svg_text_utils&quot;:829,&quot;./constants&quot;:1350,&quot;./data_preparation_helper&quot;:1351,&quot;./data_split_helpers&quot;:1352,&quot;@plotly/d3&quot;:58}],1356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:&quot;enumerated&quot;,values:[&quot;squarify&quot;,&quot;binary&quot;,&quot;dice&quot;,&quot;slice&quot;,&quot;slice-dice&quot;,&quot;dice-slice&quot;],dflt:&quot;squarify&quot;,editType:&quot;plot&quot;},squarifyratio:{valType:&quot;number&quot;,min:1,dflt:1,editType:&quot;plot&quot;},flip:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;],dflt:&quot;&quot;,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:3,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:u({pad:{t:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},l:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},colors:l.marker.colors,depthfade:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],editType:&quot;style&quot;},line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),pathbar:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},edgeshape:{valType:&quot;enumerated&quot;,values:[&quot;&gt;&quot;,&quot;&lt;&quot;,&quot;|&quot;,&quot;/&quot;,&quot;\\&quot;],dflt:&quot;&gt;&quot;,editType:&quot;plot&quot;},thickness:{valType:&quot;number&quot;,min:12,editType:&quot;plot&quot;},textfont:u({},s.textfont,{}),editType:&quot;calc&quot;},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;top left&quot;,editType:&quot;plot&quot;},sort:s.sort,root:l.root,domain:o({name:&quot;treemap&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plots/domain&quot;:882,&quot;../../plots/template_attributes&quot;:926,&quot;../pie/attributes&quot;:1192,&quot;../sunburst/attributes&quot;:1330,&quot;./constants&quot;:1359}],1357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;treemap&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:917}],1358:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;treemap&quot;,t)}},{&quot;../sunburst/calc&quot;:1332}],1359:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;poly&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;],gapWithPathbar:1}},{}],1360:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var g=h(&quot;values&quot;);g&amp;&amp;g.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),&quot;squarify&quot;===h(&quot;tiling.packing&quot;)&amp;&amp;h(&quot;tiling.squarifyratio&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var m=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;);var y=-1!==e.textposition.indexOf(&quot;bottom&quot;);h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor);var x=h(&quot;marker.colors&quot;);(e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis)?f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}):h(&quot;marker.depthfade&quot;,!(x||[]).length);var b=2*e.textfont.size;h(&quot;marker.pad.t&quot;,y?b/4:b),h(&quot;marker.pad.l&quot;,b/4),h(&quot;marker.pad.r&quot;,b/4),h(&quot;marker.pad.b&quot;,y?b:b/4),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:666,&quot;../../components/colorscale&quot;:678,&quot;../../lib&quot;:803,&quot;../../plots/domain&quot;:882,&quot;../bar/constants&quot;:943,&quot;../bar/defaults&quot;:945,&quot;./attributes&quot;:1356}],1361:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../sunburst/helpers&quot;),a=t(&quot;../bar/uniform_text&quot;).clearMinTextSize,o=t(&quot;../bar/style&quot;).resizeText,s=t(&quot;./plot_one&quot;);e.exports=function(t,e,r,l,c){var u,f,h=c.type,p=c.drawDescendants,d=t._fullLayout,g=d[&quot;_&quot;+h+&quot;layer&quot;],m=!r;(a(h,d),(u=g.selectAll(&quot;g.trace.&quot;+h).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(h,!0),u.order(),!d.uniformtext.mode&amp;&amp;i.hasTransition(r))?(l&amp;&amp;(f=l()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){f&amp;&amp;f()})).each(&quot;interrupt&quot;,(function(){f&amp;&amp;f()})).each((function(){g.selectAll(&quot;g.trace&quot;).each((function(e){s(t,e,this,r,p)}))}))):(u.each((function(e){s(t,e,this,r,p)})),d.uniformtext.mode&amp;&amp;o(t,g.selectAll(&quot;.trace&quot;),h));m&amp;&amp;u.exit().remove()}},{&quot;../bar/style&quot;:955,&quot;../bar/uniform_text&quot;:957,&quot;../sunburst/helpers&quot;:1336,&quot;./plot_one&quot;:1370,&quot;@plotly/d3&quot;:58}],1362:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;);e.exports=function(t,e,r,h,p){var d=p.barDifY,g=p.width,m=p.height,v=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,T=p.handleSlicesExit,k=p.makeUpdateSliceInterpolator,A=p.makeUpdateTextInterpolator,M={},S=t._fullLayout,E=e[0],L=E.trace,C=E.hierarchy,P=g/L._entryDepth,I=u.listPath(r.data,&quot;id&quot;),O=s(C.copy(),[g,m],{packing:&quot;dice&quot;,pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(O=O.filter((function(t){var e=I.indexOf(t.data.id);return-1!==e&amp;&amp;(t.x0=P*e,t.x1=P*(e+1),t.y0=d,t.y1=d+m,t.onPathbar=!0,!0)}))).reverse(),(h=h.data(O,u.getPtId)).enter().append(&quot;g&quot;).classed(&quot;pathbar&quot;,!0),T(h,!0,M,[g,m],x),h.order();var z=h;w&amp;&amp;(z=z.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),z.each((function(s){s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-Math.min(g,m)/2),s._hoverY=y(s.y1-m/2);var h=n.select(this),p=i.ensureSingle(h,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?p.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!0,M,[g,m]);return function(t){return x(e(t))}})):p.attr(&quot;d&quot;,x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),p.call(l,s,L,{hovered:!1}),s._text=(u.getPtLabel(s)||&quot;&quot;).split(&quot;&lt;br&gt;&quot;).join(&quot; &quot;)||&quot;&quot;;var d=i.ensureSingle(h,&quot;g&quot;,&quot;slicetext&quot;),T=i.ensureSingle(d,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(L,s,S.font,{onPathbar:!0}));T.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;start&quot;).call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=b(s,{fontSize:E.size,onPathbar:!0}),s.transform.fontSize=E.size,w?T.transition().attrTween(&quot;transform&quot;,(function(t){var e=A(t,!0,M,[g,m]);return function(t){return _(e(t))}})):T.attr(&quot;transform&quot;,_(s))}))}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../sunburst/fx&quot;:1335,&quot;../sunburst/helpers&quot;:1336,&quot;./constants&quot;:1359,&quot;./partition&quot;:1368,&quot;./style&quot;:1371,&quot;@plotly/d3&quot;:58}],1363:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var g=d.width,m=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,A=d.makeUpdateTextInterpolator,M=d.prevEntry,S=t._fullLayout,E=e[0].trace,L=-1!==E.textposition.indexOf(&quot;left&quot;),C=-1!==E.textposition.indexOf(&quot;right&quot;),P=-1!==E.textposition.indexOf(&quot;bottom&quot;),I=!P&amp;&amp;!E.marker.pad.t||P&amp;&amp;!E.marker.pad.b,O=s(r,[g,m],{packing:E.tiling.packing,squarifyratio:E.tiling.squarifyratio,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,pad:{inner:E.tiling.pad,top:E.marker.pad.t,left:E.marker.pad.l,right:E.marker.pad.r,bottom:E.marker.pad.b}}).descendants(),z=1/0,D=-1/0;O.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(z=Math.min(z,e),D=Math.max(D,e))})),p=p.data(O,u.getPtId),E._maxVisibleLayers=isFinite(D)?D-z+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[g,m],x),p.order();var R=null;if(w&amp;&amp;M){var F=u.getPtId(M);p.each((function(t){null===R&amp;&amp;u.getPtId(t)===F&amp;&amp;(R={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var B=function(){return R||{x0:0,x1:g,y0:0,y1:m}},N=p;return w&amp;&amp;(N=N.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){var p=u.isHeader(s,E);s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-E.marker.pad.r),s._hoverY=y(P?s.y1-E.marker.pad.b/2:s.y0+E.marker.pad.t/2);var d=n.select(this),T=i.ensureSingle(d,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?T.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,B(),[g,m]);return function(t){return x(e(t))}})):T.attr(&quot;d&quot;,x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=p?I?&quot;&quot;:u.getPtLabel(s)||&quot;&quot;:h(s,r,E,e,S)||&quot;&quot;;var M=i.ensureSingle(d,&quot;g&quot;,&quot;slicetext&quot;),O=i.ensureSingle(M,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),z=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));O.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,C?&quot;end&quot;:L||p?&quot;start&quot;:&quot;middle&quot;).call(a.font,z).call(o.convertToTspans,t),s.textBB=a.bBox(O.node()),s.transform=b(s,{fontSize:z.size,isHeader:p}),s.transform.fontSize=z.size,w?O.transition().attrTween(&quot;transform&quot;,(function(t){var e=A(t,!1,B(),[g,m]);return function(t){return _(e(t))}})):O.attr(&quot;transform&quot;,_(s))})),R}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../../lib/svg_text_utils&quot;:829,&quot;../sunburst/fx&quot;:1335,&quot;../sunburst/helpers&quot;:1336,&quot;../sunburst/plot&quot;:1340,&quot;./constants&quot;:1359,&quot;./partition&quot;:1368,&quot;./style&quot;:1371,&quot;@plotly/d3&quot;:58}],1364:[function(t,e,r){&quot;use strict&quot;;e.exports=function t(e,r,n){var i;n.swapXY&amp;&amp;(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i),n.flipX&amp;&amp;(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i),n.flipY&amp;&amp;(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o&lt;a.length;o++)t(a[o],r,n)}},{}],1365:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;treemap&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1236,&quot;./attributes&quot;:1356,&quot;./base_plot&quot;:1357,&quot;./calc&quot;:1358,&quot;./defaults&quot;:1360,&quot;./layout_attributes&quot;:1366,&quot;./layout_defaults&quot;:1367,&quot;./plot&quot;:1369,&quot;./style&quot;:1371}],1366:[function(t,e,r){&quot;use strict&quot;;e.exports={treemapcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendtreemapcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1367:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;treemapcolorway&quot;,e.colorway),r(&quot;extendtreemapcolors&quot;)}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1366}],1368:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;./flip_tree&quot;);e.exports=function(t,e,r){var a,o=r.flipX,s=r.flipY,l=&quot;dice-slice&quot;===r.packing,c=r.pad[s?&quot;bottom&quot;:&quot;top&quot;],u=r.pad[o?&quot;right&quot;:&quot;left&quot;],f=r.pad[o?&quot;left&quot;:&quot;right&quot;],h=r.pad[s?&quot;top&quot;:&quot;bottom&quot;];l&amp;&amp;(a=u,u=c,c=a,a=f,f=h,h=a);var p=n.treemap().tile(function(t,e){switch(t){case&quot;squarify&quot;:return n.treemapSquarify.ratio(e);case&quot;binary&quot;:return n.treemapBinary;case&quot;dice&quot;:return n.treemapDice;case&quot;slice&quot;:return n.treemapSlice;default:return n.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(u).paddingRight(f).paddingTop(c).paddingBottom(h).size(l?[e[1],e[0]]:e)(t);return(l||o||s)&amp;&amp;i(p,e,{swapXY:l,flipX:o,flipY:s}),p}},{&quot;./flip_tree&quot;:1364,&quot;d3-hierarchy&quot;:170}],1369:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./draw_descendants&quot;);e.exports=function(t,e,r,a){return n(t,e,r,a,{type:&quot;treemap&quot;,drawDescendants:i})}},{&quot;./draw&quot;:1361,&quot;./draw_descendants&quot;:1363}],1370:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-interpolate&quot;).interpolate,a=t(&quot;../sunburst/helpers&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../bar/constants&quot;).TEXTPAD,l=t(&quot;../bar/plot&quot;).toMoveInsideBar,c=t(&quot;../bar/uniform_text&quot;).recordMinTextSize,u=t(&quot;./constants&quot;),f=t(&quot;./draw_ancestors&quot;);function h(t){return a.isHierarchyRoot(t)?&quot;&quot;:a.getPtId(t)}e.exports=function(t,e,r,p,d){var g=t._fullLayout,m=e[0],v=m.trace,y=&quot;icicle&quot;===v.type,x=m.hierarchy,b=a.findEntryWithLevel(x,v.level),_=n.select(r),w=_.selectAll(&quot;g.pathbar&quot;),T=_.selectAll(&quot;g.slice&quot;);if(!b)return w.remove(),void T.remove();var k=a.isHierarchyRoot(b),A=!g.uniformtext.mode&amp;&amp;a.hasTransition(p),M=a.getMaxDepth(v),S=g._size,E=v.domain,L=S.w*(E.x[1]-E.x[0]),C=S.h*(E.y[1]-E.y[0]),P=L,I=v.pathbar.thickness,O=v.marker.line.width+u.gapWithPathbar,z=v.pathbar.visible?v.pathbar.side.indexOf(&quot;bottom&quot;)&gt;-1?C+O:-(I+O):0,D={x0:P,x1:P,y0:z,y1:z+I},R=function(t,e,r){var n=v.tiling.pad,i=function(t){return t-n&lt;=e.x0},a=function(t){return t+n&gt;=e.x1},o=function(t){return t-n&lt;=e.y0},s=function(t){return t+n&gt;=e.y1};return t.x0===e.x0&amp;&amp;t.x1===e.x1&amp;&amp;t.y0===e.y0&amp;&amp;t.y1===e.y1?{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}:{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},F=null,B={},N={},j=null,U=function(t,e){return e?B[h(t)]:N[h(t)]},V=function(t,e,r,n){if(e)return B[h(x)]||D;var i=N[v.level]||r;return function(t){return t.data.depth-b.data.depth&lt;M}(t)?R(t,i,n):{}};m.hasMultipleRoots&amp;&amp;k&amp;&amp;M++,v._maxDepth=M,v._backgroundColor=g.paper_bgcolor,v._entryDepth=b.data.depth,v._atRootLevel=k;var q=-L/2+S.l+S.w*(E.x[1]+E.x[0])/2,H=-C/2+S.t+S.h*(1-(E.y[1]+E.y[0])/2),G=function(t){return q+t},Y=function(t){return H+t},W=Y(0),X=G(0),Z=function(t){return X+t},J=function(t){return W+t};function K(t,e){return t+&quot;,&quot;+e}var Q=Z(0),$=function(t){t.x=Math.max(Q,t.x)},tt=v.pathbar.edgeshape,et=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,o=t.textBB,u=function(t){return-1!==v.textposition.indexOf(t)},f=u(&quot;bottom&quot;),h=u(&quot;top&quot;)||e.isHeader&amp;&amp;!f?&quot;start&quot;:f?&quot;end&quot;:&quot;middle&quot;,p=u(&quot;right&quot;),d=u(&quot;left&quot;)||e.onPathbar?-1:p?1:0,m=v[y?&quot;tiling&quot;:&quot;marker&quot;].pad;if(e.isHeader){if((r+=(y?m:m.l)-s)&gt;=(n-=(y?m:m.r)-s)){var x=(r+n)/2;r=x,n=x}var b;f?i&lt;(b=a-(y?m:m.b))&amp;&amp;b&lt;a&amp;&amp;(i=b):i&lt;(b=i+(y?m:m.t))&amp;&amp;b&lt;a&amp;&amp;(a=b)}var _=l(r,n,i,a,o,{isHorizontal:!1,constrained:!0,angle:0,anchor:h,leftToRight:d});return _.fontSize=e.fontSize,_.targetX=G(_.targetX),_.targetY=Y(_.targetY),isNaN(_.targetX)||isNaN(_.targetY)?{}:(r!==n&amp;&amp;i!==a&amp;&amp;c(v.type,_,g),{scale:_.scale,rotate:_.rotate,textX:_.textX,textY:_.textY,anchorX:_.anchorX,anchorY:_.anchorY,targetX:_.targetX,targetY:_.targetY})},rt=function(t,e){for(var r,n=0,i=t;!r&amp;&amp;n&lt;M;)n++,(i=i.parent)?r=U(i,e):n=M;return r||{}},nt=function(t,e,r,n,a){var s,l=U(t,e);if(l)s=l;else if(e)s=D;else if(F)if(t.parent){var c=j||r;c&amp;&amp;!e?s=R(t,c,n):(s={},o.extendFlat(s,rt(t,e)))}else s=o.extendFlat({},t),y&amp;&amp;(&quot;h&quot;===a.orientation?a.flipX?s.x0=t.x1:s.x1=0:a.flipY?s.y0=t.y1:s.y1=0);else s={};return i(s,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})},it=function(t,e,r,n){var s=U(t,e),l={},u=V(t,e,r,n);o.extendFlat(l,{transform:et({x0:u.x0,x1:u.x1,y0:u.y0,y1:u.y1,textBB:t.textBB,_text:t._text},{isHeader:a.isHeader(t,v)})}),s?l=s:t.parent&amp;&amp;o.extendFlat(l,rt(t,e));var f=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(v.type,f,g),i(l,{transform:{scale:f.scale,rotate:f.rotate,textX:f.textX,textY:f.textY,anchorX:f.anchorX,anchorY:f.anchorY,targetX:f.targetX,targetY:f.targetY}})},at=function(t,e,r,a,o){var s=a[0],l=a[1];A?t.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var r=function(t,e,r,n){var a,o=U(t,e);if(e)a=D;else{var s=U(b,e);a=s?R(t,s,n):{}}return i(o,a)}(t,e,0,[s,l]);return function(t){return o(r(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():t.exit().remove()},ot=function(t){var e=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(v.type,e,g),o.getTextTransform({textX:e.textX,textY:e.textY,anchorX:e.anchorX,anchorY:e.anchorY,targetX:e.targetX,targetY:e.targetY,scale:e.scale,rotate:e.rotate})};A&amp;&amp;(w.each((function(t){B[h(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(B[h(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate})})),T.each((function(t){N[h(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(N[h(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate}),!F&amp;&amp;a.isEntry(t)&amp;&amp;(F=t)}))),j=d(t,e,b,T,{width:L,height:C,viewX:G,viewY:Y,pathSlice:function(t){var e=G(t.x0),r=G(t.x1),n=Y(t.y0),i=Y(t.y1),a=r-e,o=i-n;if(!a||!o)return&quot;&quot;;return&quot;M&quot;+K(e,n+0)+&quot;L&quot;+K(r-0,n)+&quot;L&quot;+K(r,i-0)+&quot;L&quot;+K(e+0,i)+&quot;Z&quot;},toMoveInsideSlice:et,prevEntry:F,makeUpdateSliceInterpolator:nt,makeUpdateTextInterpolator:it,handleSlicesExit:at,hasTransition:A,strTransform:ot}),v.pathbar.visible?f(t,e,b,w,{barDifY:z,width:P,height:I,viewX:Z,viewY:J,pathSlice:function(t){var e=Z(Math.max(Math.min(t.x0,t.x0),0)),r=Z(Math.min(Math.max(t.x1,t.x1),P)),n=J(t.y0),i=J(t.y1),a=I/2,o={},s={};o.x=e,s.x=r,o.y=s.y=(n+i)/2;var l={x:e,y:n},c={x:r,y:n},u={x:r,y:i},f={x:e,y:i};return&quot;&gt;&quot;===tt?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):&quot;/&quot;===tt?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):&quot;\\&quot;===tt?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):&quot;&lt;&quot;===tt&amp;&amp;(o.x-=a,s.x-=a),$(l),$(f),$(o),$(c),$(u),$(s),&quot;M&quot;+K(l.x,l.y)+&quot;L&quot;+K(c.x,c.y)+&quot;L&quot;+K(s.x,s.y)+&quot;L&quot;+K(u.x,u.y)+&quot;L&quot;+K(f.x,f.y)+&quot;L&quot;+K(o.x,o.y)+&quot;Z&quot;},toMoveInsideSlice:et,makeUpdateSliceInterpolator:nt,makeUpdateTextInterpolator:it,handleSlicesExit:at,hasTransition:A,strTransform:ot}):w.remove()}},{&quot;../../lib&quot;:803,&quot;../bar/constants&quot;:943,&quot;../bar/plot&quot;:952,&quot;../bar/uniform_text&quot;:957,&quot;../sunburst/helpers&quot;:1336,&quot;./constants&quot;:1359,&quot;./draw_ancestors&quot;:1362,&quot;@plotly/d3&quot;:58,&quot;d3-interpolate&quot;:171}],1371:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../sunburst/helpers&quot;),s=t(&quot;../bar/uniform_text&quot;).resizeText;function l(t,e,r,n){var s,l,c=(n||{}).hovered,u=e.data.data,f=u.i,h=u.color,p=o.isHierarchyRoot(e),d=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(p&amp;&amp;h===r.root.color)d=100,s=&quot;rgba(0,0,0,0)&quot;,l=0;else if(s=a.castOption(r,f,&quot;marker.line.color&quot;)||i.defaultLine,l=a.castOption(r,f,&quot;marker.line.width&quot;)||0,!r._hasColorscale&amp;&amp;!e.onPathbar){var g=r.marker.depthfade;if(g){var m,v=i.combine(i.addOpacity(r._backgroundColor,.75),h);if(!0===g){var y=o.getMaxDepth(r);m=isFinite(y)?o.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else m=e.data.depth-r._entryDepth,r._atRootLevel||m++;if(m&gt;0)for(var x=0;x&lt;m;x++){var b=.5*x/m;h=i.combine(i.addOpacity(v,b),h)}}}t.style(&quot;stroke-width&quot;,l).call(i.fill,h).call(i.stroke,s).style(&quot;opacity&quot;,d)}e.exports={style:function(t){var e=t._fullLayout._treemaplayer.selectAll(&quot;.trace&quot;);s(t,e,&quot;treemap&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(l,t,r,{hovered:!1})}))}))},styleOne:l}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../bar/uniform_text&quot;:957,&quot;../sunburst/helpers&quot;:1336,&quot;@plotly/d3&quot;:58}],1372:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),name:i({},n.name,{}),orientation:i({},n.orientation,{}),bandwidth:{valType:&quot;number&quot;,min:0,editType:&quot;calc&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},scalemode:{valType:&quot;enumerated&quot;,values:[&quot;width&quot;,&quot;count&quot;],dflt:&quot;width&quot;,editType:&quot;calc&quot;},spanmode:{valType:&quot;enumerated&quot;,values:[&quot;soft&quot;,&quot;hard&quot;,&quot;manual&quot;],dflt:&quot;soft&quot;,editType:&quot;calc&quot;},span:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),width:i({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,max:1,dflt:.25,editType:&quot;plot&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},meanline:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;both&quot;,&quot;positive&quot;,&quot;negative&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;violins&quot;,&quot;points&quot;,&quot;kde&quot;],dflt:&quot;violins+points+kde&quot;,extras:[&quot;all&quot;],editType:&quot;style&quot;}}},{&quot;../../lib/extend&quot;:793,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../box/attributes&quot;:966}],1373:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/calc&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return t.bandwidth?t.bandwidth:0;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=&quot;multicategory&quot;===r.type?r.r2c(i):r.d2c(i,0,t[e.valLetter+&quot;calendar&quot;]);return a===s?u[n]:a}var h={type:&quot;linear&quot;,range:a=&quot;soft&quot;===o?u:&quot;hard&quot;===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;for(var s=t._fullLayout,u=i.getFromId(t,e[&quot;h&quot;===e.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]),f=1/0,h=-1/0,p=0,d=0,g=0;g&lt;r.length;g++){var m=r[g],v=m.pts.map(o.extractVal),y=m.bandwidth=l(e,m,v),x=m.span=c(e,m,u,y);if(m.min===m.max&amp;&amp;0===y)x=m.span=[m.min,m.max],m.density=[{v:1,t:x[0]}],m.bandwidth=y,p=Math.max(p,1);else{var b=x[1]-x[0],_=Math.ceil(b/(y/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return n.error(&quot;Something went wrong with computing the violin span&quot;),r[0].t.empty=!0,r;var T=o.makeKDE(m,e,v);m.density=new Array(_);for(var k=0,A=x[0];A&lt;x[1]+w/2;k++,A+=w){var M=T(A);m.density[k]={v:M,t:A},p=Math.max(p,M)}}d=Math.max(d,v.length),f=Math.min(f,x[0]),h=Math.max(h,x[1])}var S=i.findExtremes(u,[f,h],{padded:!0});if(e._extremes[u._id]=S,e.width)r[0].t.maxKDE=p;else{var E=s._violinScaleGroupStats,L=e.scalegroup,C=E[L];C?(C.maxKDE=Math.max(C.maxKDE,p),C.maxCount=Math.max(C.maxCount,d)):E[L]={maxKDE:p,maxCount:d}}return r[0].t.labels.kde=n._(t,&quot;kde:&quot;),r}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../box/calc&quot;:967,&quot;./helpers&quot;:1376}],1374:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/cross_trace_calc&quot;).setPositionOffset,i=[&quot;v&quot;,&quot;h&quot;];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s&lt;i.length;s++){for(var l=i[s],c=&quot;h&quot;===l?o:a,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;violin&quot;!==d.type||p.empty||d.orientation!==l||d.xaxis!==a._id||d.yaxis!==o._id||u.push(f)}n(&quot;violin&quot;,t,u,c)}}},{&quot;../box/cross_trace_calc&quot;:968}],1375:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../box/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(&quot;bandwidth&quot;),l(&quot;side&quot;),l(&quot;width&quot;)||(l(&quot;scalegroup&quot;,e.name),l(&quot;scalemode&quot;));var u,f=l(&quot;span&quot;);Array.isArray(f)&amp;&amp;(u=&quot;manual&quot;),l(&quot;spanmode&quot;,u);var h=l(&quot;line.color&quot;,(t.marker||{}).color||r),p=l(&quot;line.width&quot;),d=l(&quot;fillcolor&quot;,i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:&quot;&quot;});var g=c(&quot;box.width&quot;),m=c(&quot;box.fillcolor&quot;,d),v=c(&quot;box.line.color&quot;,h),y=c(&quot;box.line.width&quot;,p);l(&quot;box.visible&quot;,Boolean(g||m||v||y))||(e.box={visible:!1});var x=c(&quot;meanline.color&quot;,h),b=c(&quot;meanline.width&quot;,p);l(&quot;meanline.visible&quot;,Boolean(x||b))||(e.meanline={visible:!1})}}},{&quot;../../components/color&quot;:666,&quot;../../lib&quot;:803,&quot;../box/defaults&quot;:969,&quot;./attributes&quot;:1372}],1376:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i&lt;n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;&quot;h&quot;===e.orientation?(i=&quot;y&quot;,a=&quot;x&quot;):(i=&quot;x&quot;,a=&quot;y&quot;);var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,&quot;both&quot;===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{&quot;../../lib&quot;:803}],1377:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/hover&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e,r,s,l){l||(l={});var c,u,f=l.hoverLayer,h=t.cd,p=h[0].trace,d=p.hoveron,g=-1!==d.indexOf(&quot;violins&quot;),m=-1!==d.indexOf(&quot;kde&quot;),v=[];if(g||m){var y=a.hoverOnBoxes(t,e,r,s);if(m&amp;&amp;y.length&gt;0){var x,b,_,w,T,k=t.xa,A=t.ya;&quot;h&quot;===p.orientation?(T=e,x=&quot;y&quot;,_=A,b=&quot;x&quot;,w=k):(T=r,x=&quot;x&quot;,_=k,b=&quot;y&quot;,w=A);var M=h[t.index];if(T&gt;=M.span[0]&amp;&amp;T&lt;=M.span[1]){var S=n.extendFlat({},t),E=w.c2p(T,!0),L=o.getKdeValue(M,p,T),C=o.getPositionOnKdePath(M,p,E),P=_._offset,I=_._length;S[x+&quot;0&quot;]=C[0],S[x+&quot;1&quot;]=C[1],S[b+&quot;0&quot;]=S[b+&quot;1&quot;]=E,S[b+&quot;Label&quot;]=b+&quot;: &quot;+i.hoverLabelText(w,T,p[b+&quot;hoverformat&quot;])+&quot;, &quot;+h[0].t.labels.kde+&quot; &quot;+L.toFixed(3),S.spikeDistance=y[0].spikeDistance;var O=x+&quot;Spike&quot;;S[O]=y[0][O],y[0].spikeDistance=void 0,y[0][O]=void 0,S.hovertemplate=!1,v.push(S),(u={stroke:t.color})[x+&quot;1&quot;]=n.constrain(P+C[0],P,P+I),u[x+&quot;2&quot;]=n.constrain(P+C[1],P,P+I),u[b+&quot;1&quot;]=u[b+&quot;2&quot;]=w._offset+E}}g&amp;&amp;(v=v.concat(y))}-1!==d.indexOf(&quot;points&quot;)&amp;&amp;(c=a.hoverOnPoints(t,e,r));var z=f.selectAll(&quot;.violinline-&quot;+p.uid).data(u?[0]:[]);return z.enter().append(&quot;line&quot;).classed(&quot;violinline-&quot;+p.uid,!0).attr(&quot;stroke-width&quot;,1.5),z.exit().remove(),z.attr(u),&quot;closest&quot;===s?c?[c]:v:c?(v.push(c),v):v}},{&quot;../../lib&quot;:803,&quot;../../plots/cartesian/axes&quot;:854,&quot;../box/hover&quot;:971,&quot;./helpers&quot;:1376}],1378:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../box/defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../box/select&quot;),moduleType:&quot;trace&quot;,name:&quot;violin&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;violinLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../box/defaults&quot;:969,&quot;../box/select&quot;:976,&quot;../scatter/style&quot;:1242,&quot;./attributes&quot;:1372,&quot;./calc&quot;:1373,&quot;./cross_trace_calc&quot;:1374,&quot;./defaults&quot;:1375,&quot;./hover&quot;:1377,&quot;./layout_attributes&quot;:1379,&quot;./layout_defaults&quot;:1380,&quot;./plot&quot;:1381,&quot;./style&quot;:1382}],1379:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/layout_attributes&quot;),i=t(&quot;../../lib&quot;).extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{&quot;../../lib&quot;:803,&quot;../box/layout_attributes&quot;:973}],1380:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;../box/layout_defaults&quot;);e.exports=function(t,e,r){a._supply(t,e,r,(function(r,a){return n.coerce(t,e,i,r,a)}),&quot;violin&quot;)}},{&quot;../../lib&quot;:803,&quot;../box/layout_defaults&quot;:974,&quot;./layout_attributes&quot;:1379}],1381:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../box/plot&quot;),s=t(&quot;../scatter/line_points&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:&quot;spline&quot;,simplify:!0,linearized:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,&quot;trace violins&quot;).each((function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var d=s.bPos,g=s.bdPos,m=e[s.valLetter+&quot;axis&quot;],v=e[s.posLetter+&quot;axis&quot;],y=&quot;both&quot;===c.side,x=y||&quot;positive&quot;===c.side,b=y||&quot;negative&quot;===c.side,_=r.selectAll(&quot;path.violin&quot;).data(i.identity);_.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;violin&quot;),_.exit().remove(),_.each((function(t){var e,r,i,a,o,l,f,h,_=n.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+d,!0),A=v.l2p(k);if(c.width)e=s.maxKDE/g;else{var M=u._violinScaleGroupStats[c.scalegroup];e=&quot;count&quot;===c.scalemode?M.maxKDE/g*(M.maxCount/t.pts.length):M.maxKDE/g}if(x){for(f=new Array(T),o=0;o&lt;T;o++)(h=f[o]={})[s.posLetter]=k+w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);r=p(f)}if(b){for(f=new Array(T),l=0,o=T-1;l&lt;T;l++,o--)(h=f[l]={})[s.posLetter]=k-w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);i=p(f)}if(y)a=r+&quot;L&quot;+i.substr(1)+&quot;Z&quot;;else{var S=[A,m.c2p(w[0].t)],E=[A,m.c2p(w[T-1].t)];&quot;h&quot;===c.orientation&amp;&amp;(S.reverse(),E.reverse()),a=x?&quot;M&quot;+S+&quot;L&quot;+r.substr(1)+&quot;L&quot;+E:&quot;M&quot;+E+&quot;L&quot;+i.substr(1)+&quot;L&quot;+S}_.attr(&quot;d&quot;,a),t.posCenterPx=A,t.posDensityScale=e*g,t.path=_.node(),t.pathLength=t.path.getTotalLength()/(y?2:1)}));var w,T,k,A=c.box,M=A.width,S=(A.line||{}).width;y?(w=g*M,T=0):x?(w=[0,g*M/2],T=S*{x:1,y:-1}[s.posLetter]):(w=[g*M/2,0],T=S*{x:-1,y:1}[s.posLetter]),o.plotBoxAndWhiskers(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),o.plotBoxMean(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),!c.box.visible&amp;&amp;c.meanline.visible&amp;&amp;(k=i.identity);var E=r.selectAll(&quot;path.meanline&quot;).data(k||[]);E.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;meanline&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),E.exit().remove(),E.each((function(t){var e=m.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(&quot;d&quot;,&quot;h&quot;===c.orientation?&quot;M&quot;+e+&quot;,&quot;+r[0]+&quot;V&quot;+r[1]:&quot;M&quot;+r[0]+&quot;,&quot;+e+&quot;H&quot;+r[1])})),o.plotPoints(r,{x:f,y:h},c,s)}}))}},{&quot;../../components/drawing&quot;:688,&quot;../../lib&quot;:803,&quot;../box/plot&quot;:975,&quot;../scatter/line_points&quot;:1232,&quot;./helpers&quot;:1376,&quot;@plotly/d3&quot;:58}],1382:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../scatter/style&quot;).stylePoints;e.exports=function(t){var e=n.select(t).selectAll(&quot;g.trace.violins&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(&quot;path.violin&quot;).style(&quot;stroke-width&quot;,r.line.width+&quot;px&quot;).call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(&quot;path.box&quot;).style(&quot;stroke-width&quot;,l.width+&quot;px&quot;).call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={&quot;stroke-width&quot;:u+&quot;px&quot;,&quot;stroke-dasharray&quot;:2*u+&quot;px,&quot;+u+&quot;px&quot;};o.selectAll(&quot;path.mean&quot;).style(f).call(i.stroke,c.color),o.selectAll(&quot;path.meanline&quot;).style(f).call(i.stroke,c.color),a(o,r,t)}))}},{&quot;../../components/color&quot;:666,&quot;../scatter/style&quot;:1242,&quot;@plotly/d3&quot;:58}],1383:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../isosurface/attributes&quot;),a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=e.exports=l(s({x:i.x,y:i.y,z:i.z,value:i.value,isomin:i.isomin,isomax:i.isomax,surface:i.surface,spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},slices:i.slices,caps:i.caps,text:i.text,hovertext:i.hovertext,xhoverformat:i.xhoverformat,yhoverformat:i.yhoverformat,zhoverformat:i.zhoverformat,valuehoverformat:i.valuehoverformat,hovertemplate:i.hovertemplate},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{colorbar:i.colorbar,opacity:i.opacity,opacityscale:a.opacityscale,lightposition:i.lightposition,lighting:i.lighting,flatshading:i.flatshading,contour:i.contour,hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:673,&quot;../../lib/extend&quot;:793,&quot;../../plot_api/edit_types&quot;:836,&quot;../../plots/attributes&quot;:850,&quot;../isosurface/attributes&quot;:1154,&quot;../surface/attributes&quot;:1342}],1384:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=t(&quot;../isosurface/convert&quot;).findNearestOnAxis,c=t(&quot;../isosurface/convert&quot;).generateIsoMeshes;function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var f=u.prototype;f.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=c(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,opacityscale:t.opacityscale,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},u=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[u.min,u.max],l.colormap=i(t),this.mesh.update(l)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:678,&quot;../../lib/gl_format_color&quot;:799,&quot;../../lib/str2rgbarray&quot;:828,&quot;../../plots/gl3d/zip3&quot;:907,&quot;../isosurface/convert&quot;:1156,&quot;gl-mesh3d&quot;:315}],1385:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../isosurface/defaults&quot;).supplyIsoDefaults,o=t(&quot;../surface/defaults&quot;).opacityscaleDefaults;e.exports=function(t,e,r,s){function l(r,a){return n.coerce(t,e,i,r,a)}a(t,e,r,s,l),o(t,e,s,l)}},{&quot;../../lib&quot;:803,&quot;../isosurface/defaults&quot;:1157,&quot;../surface/defaults&quot;:1345,&quot;./attributes&quot;:1383}],1386:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../isosurface/calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;volume&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:896,&quot;../isosurface/calc&quot;:1155,&quot;./attributes&quot;:1383,&quot;./convert&quot;:1384,&quot;./defaults&quot;:1385}],1387:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../components/color&quot;);function h(t){return{marker:{color:u({},n.marker.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:u({},n.marker.line.color,{arrayOk:!1,editType:&quot;style&quot;}),width:u({},n.marker.line.width,{arrayOk:!1,editType:&quot;style&quot;}),editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={measure:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},base:{valType:&quot;number&quot;,dflt:null,arrayOk:!1,editType:&quot;calc&quot;},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),hovertext:n.hovertext,hovertemplate:s({},{keys:c.eventDataKeys}),hoverinfo:u({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:l({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;])}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:h(),decreasing:h(),totals:h(),connector:{line:{color:u({},i.color,{dflt:f.defaultLine}),width:u({},i.width,{editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;plot&quot;},mode:{valType:&quot;enumerated&quot;,values:[&quot;spanning&quot;,&quot;between&quot;],dflt:&quot;between&quot;,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:666,&quot;../../lib/extend&quot;:793,&quot;../../plots/attributes&quot;:850,&quot;../../plots/cartesian/axis_format_attributes&quot;:857,&quot;../../plots/template_attributes&quot;:926,&quot;../bar/attributes&quot;:941,&quot;../scatter/attributes&quot;:1218,&quot;./constants&quot;:1389}],1388:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../lib&quot;).mergeArray,o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return&quot;a&quot;===t||&quot;absolute&quot;===t}function c(t){return&quot;t&quot;===t||&quot;total&quot;===t}e.exports=function(t,e){var r,u,f,h,p,d,g=n.getFromId(t,e.xaxis||&quot;x&quot;),m=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=g.makeCalcdata(e,&quot;x&quot;),f=m.makeCalcdata(e,&quot;y&quot;),h=i(e,m,&quot;y&quot;,f),p=!!e.yperiodalignment,d=&quot;y&quot;):(r=m.makeCalcdata(e,&quot;y&quot;),f=g.makeCalcdata(e,&quot;x&quot;),h=i(e,g,&quot;x&quot;,f),p=!!e.xperiodalignment,d=&quot;x&quot;),u=h.vals;for(var v,y=Math.min(u.length,r.length),x=new Array(y),b=0,_=!1,w=0;w&lt;y;w++){var T=r[w]||0,k=!1;(r[w]!==s||c(e.measure[w])||l(e.measure[w]))&amp;&amp;w+1&lt;y&amp;&amp;(r[w+1]!==s||c(e.measure[w+1])||l(e.measure[w+1]))&amp;&amp;(k=!0);var A=x[w]={i:w,p:u[w],s:T,rawS:T,cNext:k};l(e.measure[w])?(b=A.s,A.isSum=!0,A.dir=&quot;totals&quot;,A.s=b):c(e.measure[w])?(A.isSum=!0,A.dir=&quot;totals&quot;,A.s=b):(A.isSum=!1,A.dir=A.rawS&lt;0?&quot;decreasing&quot;:&quot;increasing&quot;,v=A.s,A.s=b+v,b+=v),&quot;totals&quot;===A.dir&amp;&amp;(_=!0),p&amp;&amp;(x[w].orig_p=f[w],x[w][d+&quot;End&quot;]=h.ends[w],x[w][d+&quot;Start&quot;]=h.starts[w]),e.ids&amp;&amp;(A.id=String(e.ids[w])),A.v=(e.base||0)+b}return x.length&amp;&amp;(x[0].hasTotals=_),a(e.text,x,&quot;tx&quot;),a(e.hovertext,x,&quot;htx&quot;),o(x,e),x}},{&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../../plots/cartesian/align_period&quot;:851,&quot;../../plots/cartesian/axes&quot;:854,&quot;../scatter/calc_selection&quot;:1220}],1389:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}},{}],1390:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i];!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;waterfall&quot;===p.type&amp;&amp;(r=s[i],&quot;h&quot;===p.orientation?h.push(r):f.push(r),u.push(r))}var d={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(n(t,l,c,f,d),n(t,c,l,h,d),i=0;i&lt;u.length;i++){r=u[i];for(var g=0;g&lt;r.length;g++){var m=r[g];!1===m.isSum&amp;&amp;(m.s0+=0===g?0:r[g-1].s),g+1&lt;r.length&amp;&amp;(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0)}}}},{&quot;../bar/cross_trace_calc&quot;:944}],1391:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;),u=t(&quot;../../constants/delta.js&quot;),f=u.INCREASING.COLOR,h=u.DECREASING.COLOR;function p(t,e,r){t(e+&quot;.marker.color&quot;,r),t(e+&quot;.marker.line.color&quot;,c.defaultLine),t(e+&quot;.marker.line.width&quot;)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,c)){s(t,e,i,c),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;),c(&quot;measure&quot;),c(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),c(&quot;base&quot;),c(&quot;offset&quot;),c(&quot;width&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var u=c(&quot;textposition&quot;);if(a(t,e,i,c,u,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;!==e.textposition&amp;&amp;(c(&quot;texttemplate&quot;),e.texttemplate||c(&quot;textinfo&quot;)),p(c,&quot;increasing&quot;,f),p(c,&quot;decreasing&quot;,h),p(c,&quot;totals&quot;,&quot;#4499FF&quot;),c(&quot;connector.visible&quot;))c(&quot;connector.mode&quot;),c(&quot;connector.line.width&quot;)&amp;&amp;(c(&quot;connector.line.color&quot;),c(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.waterfallmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:666,&quot;../../constants/delta.js&quot;:773,&quot;../../lib&quot;:803,&quot;../bar/defaults&quot;:945,&quot;../scatter/period_defaults&quot;:1238,&quot;../scatter/xy_defaults&quot;:1245,&quot;./attributes&quot;:1387}],1392:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;initial&quot;in e&amp;&amp;(t.initial=e.initial),&quot;delta&quot;in e&amp;&amp;(t.delta=e.delta),&quot;final&quot;in e&amp;&amp;(t.final=e.final),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1393:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,i=t(&quot;../../components/color&quot;).opacity,a=t(&quot;../bar/hover&quot;).hoverOnBars,o=t(&quot;../../constants/delta.js&quot;),s=o.INCREASING.SYMBOL,l=o.DECREASING.SYMBOL;e.exports=function(t,e,r,o,c){var u=a(t,e,r,o,c);if(u){var f=u.cd,h=f[0].trace,p=&quot;h&quot;===h.orientation,d=p?&quot;x&quot;:&quot;y&quot;,g=p?t.xa:t.ya,m=f[u.index],v=m.isSum?m.b+m.s:m.rawS;if(!m.isSum){u.initial=m.b+m.s-v,u.delta=v,u.final=u.initial+u.delta;var y=k(Math.abs(u.delta));u.deltaLabel=v&lt;0?&quot;(&quot;+y+&quot;)&quot;:y,u.finalLabel=k(u.final),u.initialLabel=k(u.initial)}var x=m.hi||h.hoverinfo,b=[];if(x&amp;&amp;&quot;none&quot;!==x&amp;&amp;&quot;skip&quot;!==x){var _=&quot;all&quot;===x,w=x.split(&quot;+&quot;),T=function(t){return _||-1!==w.indexOf(t)};m.isSum||(!T(&quot;final&quot;)||T(p?&quot;x&quot;:&quot;y&quot;)||b.push(u.finalLabel),T(&quot;delta&quot;)&amp;&amp;(v&lt;0?b.push(u.deltaLabel+&quot; &quot;+l):b.push(u.deltaLabel+&quot; &quot;+s)),T(&quot;initial&quot;)&amp;&amp;b.push(&quot;Initial: &quot;+u.initialLabel))}return b.length&amp;&amp;(u.extraText=b.join(&quot;&lt;br&gt;&quot;)),u.color=function(t,e){var r=t[e.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&amp;&amp;o)return a}(h,m),[u]}function k(t){return n(g,t,h[d+&quot;hoverformat&quot;])}}},{&quot;../../components/color&quot;:666,&quot;../../constants/delta.js&quot;:773,&quot;../../plots/cartesian/axes&quot;:854,&quot;../bar/hover&quot;:948}],1394:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;waterfall&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:868,&quot;../bar/select&quot;:953,&quot;./attributes&quot;:1387,&quot;./calc&quot;:1388,&quot;./cross_trace_calc&quot;:1390,&quot;./defaults&quot;:1391,&quot;./event_data&quot;:1392,&quot;./hover&quot;:1393,&quot;./layout_attributes&quot;:1395,&quot;./layout_defaults&quot;:1396,&quot;./plot&quot;:1397,&quot;./style&quot;:1398}],1395:[function(t,e,r){&quot;use strict&quot;;e.exports={waterfallmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},waterfallgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},waterfallgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1396:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;waterfall&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;waterfallmode&quot;),o(&quot;waterfallgap&quot;,.2),o(&quot;waterfallgroupgap&quot;))}},{&quot;../../lib&quot;:803,&quot;./layout_attributes&quot;:1395}],1397:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;e.exports=function(t,e,r,c){var u=t._fullLayout;l(&quot;waterfall&quot;,u),s.plot(t,e,r,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(t,e,r,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),u=r[0].trace,f=i.ensureSingle(s,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible){var h=&quot;h&quot;===u.orientation,p=u.connector.mode,d=f.selectAll(&quot;g.line&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var u=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),n?[i,a]:[a,i]}(r,l,c,h),f=u[0],d=u[1],m=&quot;&quot;;f[0]!==o&amp;&amp;d[0]!==o&amp;&amp;f[1]!==o&amp;&amp;d[1]!==o&amp;&amp;(&quot;spanning&quot;===p&amp;&amp;!r.isSum&amp;&amp;s&gt;0&amp;&amp;(m+=h?&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;V&quot;+d[0]:&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;H&quot;+f[0]),&quot;between&quot;!==p&amp;&amp;(r.isSum||s&lt;g-1)&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;V&quot;+d[1]:&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;H&quot;+f[1]),f[2]!==o&amp;&amp;d[2]!==o&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;V&quot;+d[2]:&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;H&quot;+f[2])),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,c)}},{&quot;../../components/drawing&quot;:688,&quot;../../constants/numerical&quot;:779,&quot;../../lib&quot;:803,&quot;../bar/plot&quot;:952,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1398:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.waterfalllayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;waterfall&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:666,&quot;../../components/drawing&quot;:688,&quot;../../constants/interactions&quot;:778,&quot;../bar/style&quot;:955,&quot;../bar/uniform_text&quot;:957,&quot;@plotly/d3&quot;:58}],1399:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plots/cartesian/axes&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plot_api/plot_schema&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;aggregate&quot;;var l=r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},aggregations:{_isLinkedToArray:&quot;aggregation&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},func:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;median&quot;,&quot;mode&quot;,&quot;rms&quot;,&quot;stddev&quot;,&quot;min&quot;,&quot;max&quot;,&quot;first&quot;,&quot;last&quot;,&quot;change&quot;,&quot;range&quot;],dflt:&quot;first&quot;,editType:&quot;calc&quot;},funcmode:{valType:&quot;enumerated&quot;,values:[&quot;sample&quot;,&quot;population&quot;],dflt:&quot;sample&quot;,editType:&quot;calc&quot;},enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,a=e.c2d;switch(r){case&quot;count&quot;:return f;case&quot;first&quot;:return h;case&quot;last&quot;:return p;case&quot;sum&quot;:return function(t,e){for(var r=0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r+=o)}return a(r)};case&quot;avg&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l,i++)}return i?a(r/i):s};case&quot;min&quot;:return function(t,e){for(var r=1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.min(r,o))}return r===1/0?s:a(r)};case&quot;max&quot;:return function(t,e){for(var r=-1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.max(r,o))}return r===-1/0?s:a(r)};case&quot;range&quot;:return function(t,e){for(var r=1/0,i=-1/0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r=Math.min(r,l),i=Math.max(i,l))}return i===-1/0||r===1/0?s:a(i-r)};case&quot;change&quot;:return function(t,e){var r=n(t[e[0]]),i=n(t[e[e.length-1]]);return r===s||i===s?s:a(i-r)};case&quot;median&quot;:return function(t,e){for(var r=[],o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;r.push(l)}if(!r.length)return s;r.sort(i.sorterAsc);var c=(r.length-1)/2;return a((r[Math.floor(c)]+r[Math.ceil(c)])/2)};case&quot;mode&quot;:return function(t,e){for(var r={},i=0,o=s,l=0;l&lt;e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u&gt;i&amp;&amp;(i=u,o=c)}}return i?a(o):s};case&quot;rms&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l*l,i++)}return i?a(Math.sqrt(r/i)):s};case&quot;stddev&quot;:return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i&lt;r.length&amp;&amp;c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i&lt;r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=&quot;sample&quot;===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),g=0;g&lt;r.length;g++)d[g]=u(c,r[g]);l.set(d),&quot;count&quot;===a.func&amp;&amp;i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(&quot;enabled&quot;))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r&lt;s.length;r++)u[s[r]]=1;var f=o(&quot;groups&quot;);if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function g(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r&lt;p.length;r++){h={_index:r};var m=g(&quot;target&quot;),v=g(&quot;func&quot;);g(&quot;enabled&quot;)&amp;&amp;m&amp;&amp;(u[m]||&quot;count&quot;===v&amp;&amp;void 0===u[m])?(&quot;stddev&quot;===v&amp;&amp;g(&quot;funcmode&quot;),u[m]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r&lt;s.length;r++)u[s[r]]&amp;&amp;d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],g=o(e.transforms,r),m=a.length;for(e._length&amp;&amp;(m=Math.min(m,e._length)),s=0;s&lt;m;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=g(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(g(s)));r._indexToPoints=p;var v=r.aggregations;for(s=0;s&lt;v.length;s++)u(t,e,d,v[s]);&quot;string&quot;==typeof n&amp;&amp;u(t,e,d,{target:n,func:&quot;first&quot;,enabled:!0}),e._length=d.length}}}},{&quot;../constants/numerical&quot;:779,&quot;../lib&quot;:803,&quot;../plot_api/plot_schema&quot;:842,&quot;../plots/cartesian/axes&quot;:854,&quot;./helpers&quot;:1402}],1400:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/cartesian/axes&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/filter_ops&quot;),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=&quot;transform&quot;,r.name=&quot;filter&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(l).concat(c).concat(u),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},preservegaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(&quot;enabled&quot;)){var o=a(&quot;target&quot;);if(n.isArrayOrTypedArray(o)&amp;&amp;0===o.length)return e.enabled=!1,e;a(&quot;preservegaps&quot;),a(&quot;operation&quot;),a(&quot;value&quot;);var s=i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;);s(t,e,&quot;valuecalendar&quot;,null),s(t,e,&quot;targetcalendar&quot;,null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&amp;&amp;(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(&quot;string&quot;==typeof s){var g=n.nestedProperty(e,s+&quot;calendar&quot;).get();g&amp;&amp;(h=g)}var m,v,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&amp;&amp;(s=a?i.map(f):[f(i)]);switch(n){case&quot;=&quot;:return function(t){return h(t)===s};case&quot;!=&quot;:return function(t){return h(t)!==s};case&quot;&lt;&quot;:return function(t){return h(t)&lt;s};case&quot;&lt;=&quot;:return function(t){return h(t)&lt;=s};case&quot;&gt;&quot;:return function(t){return h(t)&gt;s};case&quot;&gt;=&quot;:return function(t){return h(t)&gt;=s};case&quot;[]&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;=s[1]};case&quot;()&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;s[1]};case&quot;[)&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;s[1]};case&quot;(]&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;=s[1]};case&quot;][&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;=s[1]};case&quot;)(&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;s[1]};case&quot;](&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;s[1]};case&quot;)[&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;=s[1]};case&quot;{}&quot;:return function(t){return-1!==s.indexOf(h(t))};case&quot;}{&quot;:return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},v=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},v=function(t,e){var r=x[t.astr][e];t.get().push(r)}),k(m);for(var w=o(e.transforms,r),T=0;T&lt;f;T++){y(i[T])?(k(v,T),b[_++]=w(T)):d&amp;&amp;_++}r._indexToPoints=b,e._length=_}}function k(t,r){for(var i=0;i&lt;p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{&quot;../constants/filter_ops&quot;:775,&quot;../lib&quot;:803,&quot;../plots/cartesian/axes&quot;:854,&quot;../registry&quot;:931,&quot;./helpers&quot;:1402}],1401:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_schema&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction;function s(t,e){var r,s,l,c,u,f,h,p,d,g,m=e.transform,v=e.transformIndex,y=t.transforms[v].groups,x=o(t.transforms,m);if(!n.isArrayOrTypedArray(y)||0===y.length)return[t];var b=n.filterUnique(y),_=new Array(b.length),w=y.length,T=i.findArrayAttributes(t),k=m.styles||[],A={};for(r=0;r&lt;k.length;r++)A[k[r].target]=k[r].value;m.styles&amp;&amp;(g=n.keyedContainer(m,&quot;styles&quot;,&quot;target&quot;,&quot;value.name&quot;));var M={},S={};for(r=0;r&lt;b.length;r++){M[f=b[r]]=r,S[f]=0,(h=_[r]=n.extendDeepNoArrays({},t))._group=f,h.transforms[v]._indexToPoints={};var E=null;for(g&amp;&amp;(E=g.get(f)),h.name=E||&quot;&quot;===E?E:n.templateString(m.nameformat,{trace:t.name,group:f}),p=h.transforms,h.transforms=[],s=0;s&lt;p.length;s++)h.transforms[s]=n.extendDeepNoArrays({},p[s]);for(s=0;s&lt;T.length;s++)n.nestedProperty(h,T[s]).set([])}for(l=0;l&lt;T.length;l++){for(c=T[l],s=0,d=[];s&lt;b.length;s++)d[s]=n.nestedProperty(_[s],c).get();for(u=n.nestedProperty(t,c).get(),s=0;s&lt;w;s++)d[M[y[s]]].push(u[s])}for(s=0;s&lt;w;s++){(h=_[M[y[s]]]).transforms[v]._indexToPoints[S[y[s]]]=x(s),S[y[s]]++}for(r=0;r&lt;b.length;r++)f=b[r],h=_[r],a.clearExpandedTraceDefaultColors(h),h=n.extendDeepNoArrays(h,A[f]||{});return _}r.moduleType=&quot;transform&quot;,r.name=&quot;groupby&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},nameformat:{valType:&quot;string&quot;,editType:&quot;calc&quot;},styles:{_isLinkedToArray:&quot;style&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:{},editType:&quot;calc&quot;,_compareAsJSON:!0},editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(&quot;enabled&quot;))return o;s(&quot;groups&quot;),s(&quot;nameformat&quot;,i._dataLength&gt;1?&quot;%{group} (%{trace})&quot;:&quot;%{group}&quot;);var l=t.styles,c=o.styles=[];if(l)for(a=0;a&lt;l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,&quot;target&quot;);var f=n.coerce(l[a],c[a],r.attributes.styles,&quot;value&quot;);n.isPlainObject(f)?u.value=n.extendDeep({},f):f&amp;&amp;delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n&lt;t.length;n++)for(r=s(t[n],e),i=0;i&lt;r.length;i++)a.push(r[i]);return a}},{&quot;../lib&quot;:803,&quot;../plot_api/plot_schema&quot;:842,&quot;../plots/plots&quot;:917,&quot;./helpers&quot;:1402}],1402:[function(t,e,r){&quot;use strict&quot;;r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i&lt;t.length&amp;&amp;(r=t[i])!==e;i++)r._indexToPoints&amp;&amp;!1!==r.enabled&amp;&amp;(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1403:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/cartesian/axes&quot;),a=t(&quot;./helpers&quot;).pointsAccessorFunction,o=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;sort&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},order:{valType:&quot;enumerated&quot;,values:[&quot;ascending&quot;,&quot;descending&quot;],dflt:&quot;ascending&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(&quot;enabled&quot;)&amp;&amp;(i(&quot;target&quot;),i(&quot;order&quot;)),e},r.calcTransform=function(t,e,r){if(r.enabled){var s=n.getTargetArray(e,r);if(s){var l=r.target,c=s.length;e._length&amp;&amp;(c=Math.min(c,e._length));var u,f,h=e._arrayAttrs,p=function(t,e,r,n){var i,a=new Array(n),s=new Array(n);for(i=0;i&lt;n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case&quot;ascending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:n-i};case&quot;descending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:i-n}}}(t,r)),i=0;i&lt;n;i++)s[i]=a[i].i;return s}(r,s,i.getDataToCoordFunc(t,e,l,s),c),d=a(e.transforms,r),g={};for(u=0;u&lt;h.length;u++){var m=n.nestedProperty(e,h[u]),v=m.get(),y=new Array(c);for(f=0;f&lt;c;f++)y[f]=v[p[f]];m.set(y)}for(f=0;f&lt;c;f++)g[f]=d(p[f]);r._indexToPoints=g,e._length=c}}}},{&quot;../constants/numerical&quot;:779,&quot;../lib&quot;:803,&quot;../plots/cartesian/axes&quot;:854,&quot;./helpers&quot;:1402}],1404:[function(t,e,r){&quot;use strict&quot;;r.version=&quot;2.4.2&quot;},{}]},{},[27])(27)}));&lt;/script&gt;                &lt;div id=&quot;da1f3fac-1edc-4388-a01a-b22a03b6d4fb&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:900px; width:800px;&quot;&gt;&lt;/div&gt;            &lt;script type=&quot;text/javascript&quot;&gt;                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById(&quot;da1f3fac-1edc-4388-a01a-b22a03b6d4fb&quot;)) {                    Plotly.newPlot(                        &quot;da1f3fac-1edc-4388-a01a-b22a03b6d4fb&quot;,                        [{&quot;colorscale&quot;:[[0.0,&quot;#440154&quot;],[0.1111111111111111,&quot;#482878&quot;],[0.2222222222222222,&quot;#3e4989&quot;],[0.3333333333333333,&quot;#31688e&quot;],[0.4444444444444444,&quot;#26828e&quot;],[0.5555555555555556,&quot;#1f9e89&quot;],[0.6666666666666666,&quot;#35b779&quot;],[0.7777777777777778,&quot;#6ece58&quot;],[0.8888888888888888,&quot;#b5de2b&quot;],[1.0,&quot;#fde725&quot;]],&quot;type&quot;:&quot;surface&quot;,&quot;z&quot;:[[100,100,101,101,101,101,101,100,100,100,101,101,102,102,102,102,103,104,103,102,101,101,102,103,104,104,105,107,107,107,108,108,110,110,110,110,110,110,110,110,108,108,108,107,107,108,108,108,108,108,107,107,107,107,106,106,105,105,104,104,103],[101,101,102,102,102,102,102,101,101,101,102,102,103,103,103,103,104,105,104,103,102,102,103,105,106,106,107,109,110,110,110,110,111,112,113,114,116,115,114,112,110,110,110,109,108,109,109,109,109,108,108,108,108,107,107,106,106,105,105,104,104],[102,102,103,103,103,103,103,102,102,102,103,103,104,104,104,104,105,106,105,104,104,105,106,107,108,110,111,113,114,115,114,115,116,118,119,119,121,121,120,118,116,114,112,111,110,110,110,110,109,109,109,109,108,108,107,107,106,106,105,105,104],[103,103,104,104,104,104,104,103,103,103,103,104,104,104,105,105,106,107,106,106,106,107,108,110,111,114,117,118,117,119,120,121,122,124,125,126,127,127,126,124,122,120,117,116,113,111,110,110,110,109,109,109,109,108,108,107,107,106,106,105,105],[104,104,105,105,105,105,105,104,104,103,104,104,105,105,105,106,107,108,108,108,109,110,112,114,115,118,121,122,121,123,128,131,129,130,131,131,132,132,131,130,128,126,122,119,115,114,112,110,110,110,110,110,109,109,108,107,107,107,106,106,105],[105,105,105,106,106,106,106,105,105,104,104,105,105,106,106,107,109,110,110,112,113,115,116,118,119,121,124,126,126,129,134,137,137,136,136,135,136,136,136,135,133,129,126,122,118,116,115,113,111,110,110,110,110,109,108,108,108,107,107,106,106],[105,106,106,107,107,107,107,106,106,105,105,106,106,107,108,109,111,113,114,116,118,120,121,122,123,125,127,129,130,135,140,142,142,142,141,140,140,140,140,139,137,134,129,125,121,118,116,114,112,110,110,110,111,110,109,109,108,108,107,107,106],[106,107,107,108,108,108,108,107,107,106,106,107,108,108,110,113,115,117,118,120,122,124,125,127,128,129,131,134,135,141,146,147,146,146,145,144,144,144,143,142,141,139,135,130,126,122,118,116,114,112,112,113,112,110,110,109,109,108,108,107,106],[107,108,108,109,109,109,109,108,108,107,108,108,110,111,113,116,118,120,123,125,127,129,130,132,134,135,137,139,142,146,152,152,151,151,150,149,148,148,146,145,143,142,139,135,131,127,122,119,117,115,115,115,114,112,110,110,109,109,108,107,107],[108,109,109,110,110,110,110,109,109,108,110,110,113,116,118,120,122,125,127,129,133,136,138,140,141,142,148,150,151,156,158,159,158,157,158,158,154,151,149,148,146,144,141,137,134,130,125,122,120,118,117,117,115,113,111,110,110,109,108,107,107],[109,110,110,111,111,111,111,110,110,110,112,114,118,121,123,125,127,129,133,137,141,143,145,146,148,150,154,156,159,161,162,163,164,163,164,164,160,157,154,151,149,146,144,140,137,133,129,126,124,121,119,118,116,114,112,111,110,109,108,107,106],[110,110,111,113,112,111,113,112,112,114,116,119,121,124,127,129,133,138,143,146,149,149,151,153,154,157,159,160,163,165,166,167,168,168,168,168,166,162,159,157,154,152,149,144,140,136,133,131,128,125,122,119,117,115,113,111,110,109,108,107,106],[110,111,113,115,114,113,114,114,115,117,119,121,124,126,129,133,140,145,150,154,155,155,157,159,161,162,164,165,167,168,169,170,172,174,172,172,171,169,166,163,161,158,153,148,143,140,137,134,131,128,125,120,118,116,114,112,110,109,108,107,105],[111,113,115,117,116,115,116,117,117,119,121,124,126,128,132,137,143,151,156,161,161,162,163,165,166,167,168,170,171,173,175,177,179,178,177,176,176,174,171,169,165,161,156,152,148,144,140,138,135,131,127,123,119,117,115,113,111,110,108,106,105],[114,115,117,117,117,118,119,119,120,121,124,126,128,131,137,143,150,156,160,163,165,168,170,171,172,173,174,175,177,179,180,182,183,183,183,183,180,178,177,172,168,164,160,156,152,148,144,141,138,134,130,126,121,117,114,112,110,110,108,106,104],[116,118,118,118,120,121,121,122,122,123,125,128,130,134,141,147,152,156,160,165,168,170,174,176,179,180,181,181,182,182,183,184,186,187,187,184,184,181,180,176,172,168,165,161,157,153,149,145,142,138,133,129,125,120,115,111,110,110,108,106,104],[118,120,120,121,122,123,124,124,125,126,127,129,132,135,142,149,153,157,161,166,170,174,178,180,182,183,184,184,185,186,186,187,189,189,189,189,189,186,182,179,175,171,168,165,162,157,152,149,145,141,137,131,125,120,116,111,110,110,108,106,104],[120,121,122,123,124,125,126,127,127,128,130,132,134,137,142,151,155,158,162,169,172,176,181,183,184,186,187,188,189,189,189,189,190,190,191,190,190,188,186,183,180,175,171,168,165,161,157,152,149,145,141,134,127,121,116,112,110,110,108,106,104],[120,122,125,126,126,127,128,129,130,130,132,134,136,139,145,152,157,160,167,172,175,178,181,185,186,188,190,191,192,193,193,192,192,191,192,191,191,190,190,187,184,181,177,172,169,165,161,156,152,147,143,139,131,123,119,115,111,110,108,106,105],[121,124,126,128,129,129,130,131,132,133,135,137,139,143,150,154,159,164,170,173,176,179,184,186,189,190,191,192,193,194,195,194,193,192,191,191,191,191,190,190,188,184,181,177,173,169,165,160,155,149,145,142,136,129,123,118,114,110,108,108,107],[122,125,127,130,130,131,133,134,135,136,137,140,143,147,154,158,162,166,171,174,177,181,186,189,190,190,191,192,191,191,190,189,188,189,190,190,191,190,190,190,189,186,184,181,177,173,169,164,158,152,148,144,140,134,125,118,115,111,110,108,107],[122,125,128,130,132,133,135,136,137,139,140,143,147,152,157,161,164,168,172,175,179,182,186,190,190,190,190,189,187,184,184,183,182,182,183,183,183,184,185,186,187,186,185,184,181,177,173,169,163,157,149,145,141,136,130,119,116,112,110,108,106],[123,126,129,131,133,135,137,138,139,141,143,147,150,156,161,164,167,170,173,177,181,184,187,188,190,189,187,185,183,179,176,174,174,174,174,174,176,177,179,180,182,183,182,181,181,180,176,171,166,160,152,147,142,138,133,126,121,115,110,106,105],[124,127,130,132,135,137,138,140,142,144,147,149,154,157,161,165,168,171,175,178,181,184,186,187,187,184,184,181,179,175,171,169,168,168,168,169,170,172,174,177,178,179,180,181,181,180,179,174,167,161,155,148,144,139,134,128,121,115,110,106,105],[123,128,131,133,136,138,140,142,144,146,149,151,154,157,160,164,168,172,175,178,181,183,184,184,185,183,180,177,174,170,167,165,164,164,164,165,166,168,171,175,176,178,180,181,180,180,179,177,170,163,157,150,144,139,134,128,121,115,110,108,107],[123,127,131,134,136,138,140,142,144,147,149,151,154,157,160,164,168,171,174,178,180,181,181,182,183,181,178,173,169,166,163,161,161,160,160,161,163,165,168,173,176,178,179,180,181,180,180,175,173,166,159,152,145,139,134,127,121,115,110,109,108],[120,124,128,131,134,137,139,142,144,146,149,151,153,156,160,163,167,171,174,178,180,180,180,180,180,180,175,171,167,162,160,158,157,157,157,158,159,162,166,170,175,177,178,180,181,181,180,178,175,169,160,154,148,140,134,128,121,115,110,110,109],[118,121,125,129,132,134,137,140,142,145,147,149,151,155,159,163,166,169,173,177,179,180,180,180,180,179,174,169,166,161,158,156,154,153,153,154,156,159,163,169,173,175,178,180,181,180,180,179,175,170,160,154,149,142,135,128,122,116,111,110,110],[117,120,121,125,129,132,135,138,140,143,145,147,149,153,157,160,163,166,171,174,177,179,180,180,180,179,172,168,164,160,157,154,151,149,150,150,154,158,164,169,174,178,180,180,180,180,178,177,175,170,161,153,148,142,135,129,123,116,113,112,110],[115,118,120,122,126,130,133,136,138,141,143,145,148,151,154,157,160,163,168,171,174,177,179,179,179,176,171,167,164,160,156,153,149,148,149,151,155,158,163,170,173,177,179,180,180,180,178,175,173,171,162,154,147,141,136,130,124,117,115,112,110],[114,116,118,120,122,127,131,133,136,138,141,143,146,148,151,154,157,160,164,168,171,174,178,178,179,177,173,169,165,161,157,154,151,149,150,152,155,159,166,171,175,177,179,180,180,179,176,174,171,168,159,151,146,141,135,129,124,119,116,113,110],[115,114,116,118,120,122,127,129,132,136,139,141,143,146,148,151,153,156,160,164,167,172,174,176,177,176,173,170,166,162,159,157,154,153,154,155,158,161,169,172,174,176,178,178,178,178,175,172,169,162,156,149,144,140,134,128,123,118,115,112,110],[113,113,114,116,118,120,122,125,129,133,136,138,141,143,146,149,150,153,156,160,165,170,173,176,176,176,173,172,169,165,163,160,158,157,158,159,161,166,170,170,173,175,176,178,176,173,171,168,164,158,153,146,140,137,132,127,121,117,113,111,110],[111,112,113,114,116,118,120,122,126,130,133,136,139,142,145,147,148,151,155,158,163,168,173,176,177,177,176,174,171,169,166,164,161,161,162,164,165,167,170,170,171,173,173,173,170,168,165,163,160,155,149,143,138,134,130,125,119,116,112,110,109],[110,112,113,113,114,116,118,120,123,127,131,134,137,141,143,145,148,150,154,157,161,166,171,176,178,178,178,176,174,172,170,167,167,167,166,168,170,169,168,167,168,168,168,168,167,165,163,160,156,152,146,140,136,131,128,122,118,114,110,110,109],[109,110,111,112,114,116,118,119,120,124,128,131,136,140,142,145,147,150,153,157,160,165,170,174,178,179,179,178,178,176,174,171,170,170,170,168,167,166,164,163,161,162,163,163,163,161,160,157,153,148,142,136,130,127,124,120,117,113,110,110,109],[108,109,111,112,114,116,117,118,120,121,125,128,132,138,142,144,147,149,153,156,160,164,170,174,178,180,180,179,179,178,176,172,170,170,170,168,166,164,162,160,157,156,157,158,158,156,153,151,149,144,139,130,127,124,121,118,115,112,110,110,109],[108,109,111,113,114,116,117,118,119,120,122,126,130,135,139,143,147,149,152,156,160,164,169,173,177,180,180,180,180,179,178,174,170,170,168,167,165,163,161,157,154,153,152,152,152,149,148,147,144,140,134,128,125,122,119,117,114,110,110,109,109],[107,108,111,112,114,115,116,117,119,120,121,124,128,133,137,141,145,149,152,156,160,164,168,172,176,179,180,180,180,179,178,174,170,168,166,165,163,161,158,154,150,149,148,146,145,143,143,143,140,136,130,126,123,120,118,115,112,110,110,109,109],[107,108,110,112,113,113,115,116,118,120,122,125,128,132,136,140,145,148,150,155,160,164,167,170,174,177,179,179,178,176,176,173,169,166,164,163,161,159,155,152,148,145,143,141,140,139,139,138,136,132,128,124,121,118,116,114,111,110,110,109,108],[107,108,109,111,113,114,116,117,119,120,122,125,128,132,137,141,144,146,149,152,157,162,166,168,171,173,175,175,173,172,172,171,168,165,162,160,158,156,153,149,145,142,139,138,137,136,135,133,131,129,126,122,119,117,114,112,110,110,109,108,107],[108,109,110,112,114,115,116,117,119,120,122,126,129,133,137,141,143,146,148,151,155,160,164,167,168,169,170,170,169,168,167,168,166,163,160,158,155,153,150,147,143,140,137,136,134,133,132,130,129,127,125,121,118,115,112,110,110,110,108,107,107],[109,110,111,113,115,116,117,118,120,121,123,126,129,133,138,141,143,146,148,150,155,159,163,165,166,167,168,168,166,165,164,161,160,159,158,155,152,149,147,144,141,138,135,134,132,130,129,128,126,124,122,120,117,113,111,110,110,110,108,107,107],[110,111,112,113,116,117,118,119,120,122,125,127,130,133,138,141,143,146,148,150,154,159,162,163,164,166,166,166,165,163,161,159,157,156,155,153,150,146,143,140,138,136,133,132,130,129,128,125,124,122,120,119,117,114,111,110,110,109,108,107,107],[111,112,113,114,116,117,118,119,120,123,125,128,130,134,139,141,144,146,148,151,154,158,161,164,166,167,168,166,165,163,161,158,156,154,152,150,146,142,139,137,135,133,131,130,129,128,127,125,123,121,120,118,116,113,111,110,110,109,108,107,106],[111,112,113,115,117,118,118,120,121,124,126,128,131,135,139,142,144,146,148,151,155,160,164,165,168,169,169,168,166,163,160,158,156,153,151,148,145,142,139,137,135,132,130,129,127,126,125,124,123,120,120,117,116,114,112,110,110,108,107,106,106],[112,113,114,116,117,118,119,120,122,124,127,129,132,135,139,142,144,146,149,152,157,162,167,169,170,170,170,168,165,163,161,159,157,155,151,148,145,141,139,136,134,132,130,128,127,126,124,123,122,120,119,117,116,114,112,111,109,107,106,106,105],[113,114,115,116,117,119,119,120,122,125,127,129,132,135,139,142,144,147,149,154,159,164,169,170,170,170,170,170,168,165,163,161,158,155,151,148,145,142,139,137,135,132,131,128,126,125,124,122,121,120,119,117,115,113,111,110,109,106,105,105,104],[113,114,115,117,118,119,120,121,123,125,127,130,132,135,139,142,145,148,150,156,161,166,170,170,170,170,170,170,169,166,163,161,159,155,151,148,146,143,140,138,135,134,132,130,127,125,123,121,120,120,119,116,114,112,110,110,108,106,105,104,104],[114,115,116,117,118,119,120,121,123,126,128,130,133,136,139,142,145,148,152,157,161,166,168,170,170,170,170,168,166,164,163,160,159,155,151,148,146,143,141,138,136,134,132,130,128,125,123,121,120,120,118,116,113,111,110,110,109,106,105,104,104],[115,116,117,118,119,120,121,121,123,126,128,131,134,136,139,142,145,149,152,157,161,163,164,166,168,167,166,164,163,161,160,158,156,152,149,147,144,143,141,139,136,134,132,130,128,125,122,120,120,119,117,115,113,110,110,109,107,106,105,104,104],[115,116,117,118,119,120,121,122,123,125,128,131,134,137,139,142,145,149,152,156,159,159,160,162,162,161,161,160,159,158,157,155,153,150,148,146,145,143,142,140,137,134,131,129,126,124,122,120,119,117,115,113,111,110,109,109,107,106,105,104,104],[114,115,116,116,118,119,120,121,122,126,129,132,135,137,140,143,146,149,152,155,156,157,158,159,159,159,158,158,157,155,153,151,150,149,147,146,145,144,142,141,138,135,132,128,125,122,120,118,117,115,113,112,110,109,108,108,106,105,105,104,104],[113,114,115,116,117,118,119,120,123,126,129,132,135,138,140,143,146,148,151,153,154,156,157,157,157,157,156,155,154,152,150,149,148,147,146,145,144,142,141,140,139,136,132,129,125,121,118,116,115,113,111,110,109,108,108,107,106,105,104,104,104],[112,113,114,115,116,117,119,120,122,126,130,133,136,138,141,143,146,148,150,152,154,155,155,155,155,155,154,152,152,150,148,147,146,145,145,143,142,141,140,140,140,137,133,129,125,120,117,115,111,110,110,109,108,107,107,106,105,105,104,104,103],[111,112,114,115,116,117,118,120,122,125,131,134,137,139,142,144,146,148,150,152,153,153,153,153,153,153,153,151,149,147,146,144,144,143,143,142,141,140,140,140,140,138,134,130,123,120,118,111,110,110,110,108,107,106,108,105,105,104,104,103,103],[111,112,113,115,115,116,117,119,121,126,131,135,138,140,142,144,146,148,150,151,151,151,151,151,151,151,151,150,148,146,144,142,141,141,142,141,140,140,140,140,140,140,136,132,126,120,115,110,110,110,109,107,106,105,107,105,104,104,104,103,103],[112,113,113,114,115,116,117,119,122,127,132,135,139,141,143,145,147,149,150,150,150,150,150,150,150,150,150,149,147,144,142,141,140,140,140,140,140,140,140,140,140,140,137,133,128,120,117,110,110,110,108,106,105,105,106,105,104,104,103,103,103],[112,113,114,114,116,117,118,120,122,128,132,136,139,141,144,146,147,149,150,150,150,150,150,150,150,150,150,149,146,143,141,140,140,139,139,139,140,140,140,140,140,140,137,133,129,121,118,110,110,109,107,106,105,105,105,104,104,103,103,103,102],[112,114,114,115,116,117,119,120,122,128,133,136,140,142,144,146,148,150,150,150,150,150,150,150,150,150,150,148,145,142,140,138,138,138,137,138,140,140,140,140,140,140,137,134,130,122,118,110,110,108,106,105,103,104,104,104,104,103,103,102,102],[113,114,115,116,116,117,118,120,123,129,133,137,140,142,144,146,149,150,150,150,150,150,150,150,150,150,150,147,143,141,139,137,136,136,135,136,138,140,140,140,140,139,136,134,130,123,119,113,109,108,106,104,103,104,104,104,103,103,102,102,101],[114,115,115,116,117,118,118,120,123,129,133,137,140,143,145,147,150,150,150,150,150,150,150,150,150,150,148,145,142,139,138,136,135,134,134,134,136,138,137,138,139,137,134,132,125,122,117,114,109,107,105,103,102,104,104,103,103,102,102,101,101],[114,115,116,117,117,119,118,120,123,128,132,136,139,142,145,148,150,150,150,150,150,150,150,150,150,150,147,144,141,139,136,135,134,133,132,132,134,134,134,134,135,133,131,128,124,120,116,113,110,107,104,102,102,103,103,103,102,102,102,101,100],[115,116,116,117,118,119,119,120,124,128,132,136,139,142,145,148,150,150,150,150,150,150,150,150,150,149,146,143,140,138,135,134,133,131,131,131,131,131,131,131,130,127,124,122,119,117,115,112,109,106,104,101,102,103,103,102,102,102,101,100,100],[115,116,117,118,118,119,120,123,125,128,131,135,138,141,145,148,150,150,150,150,150,150,150,150,150,147,145,142,139,137,134,132,131,130,129,128,128,128,128,128,126,123,121,119,116,114,112,110,108,105,103,101,103,103,103,102,102,101,100,100,100],[116,117,118,118,119,120,122,123,125,128,131,134,137,141,145,148,149,150,150,150,150,150,150,150,148,145,143,141,138,135,133,130,129,128,127,126,125,125,125,124,123,120,118,116,114,111,109,107,106,104,102,100,101,101,102,102,101,100,100,100,100],[116,117,118,119,120,121,123,124,126,128,130,133,137,140,144,145,147,148,149,150,149,149,147,146,144,141,139,136,133,131,129,128,127,126,125,124,123,123,122,121,120,118,116,114,112,108,107,105,103,102,100,100,100,100,101,101,100,100,100,100,100],[117,118,119,119,120,121,123,124,126,128,129,131,135,139,142,143,145,146,147,147,147,146,144,142,140,138,135,133,130,128,127,126,125,124,123,122,121,120,119,118,117,115,114,112,110,106,105,102,101,100,100,100,100,100,100,100,100,99,99,99,99],[117,118,119,120,120,121,123,124,125,126,128,129,132,137,140,142,143,143,144,144,144,143,141,139,137,135,133,130,128,127,126,125,123,122,121,120,119,117,116,115,114,112,111,108,107,105,100,100,100,100,100,100,100,99,99,99,99,99,99,99,98],[116,117,118,120,120,121,122,123,124,125,126,128,130,134,139,140,141,141,141,141,141,140,138,136,134,133,131,129,127,125,124,123,122,120,119,118,117,116,114,112,111,108,109,106,106,100,100,100,100,100,99,99,99,99,99,99,99,98,98,98,97],[114,115,116,117,119,119,120,121,122,123,125,127,129,133,136,134,134,136,138,138,137,137,135,133,132,130,129,127,125,124,122,121,120,119,117,116,115,114,112,110,109,108,107,105,105,100,100,100,100,99,99,99,98,98,98,98,98,97,97,97,97],[112,113,114,115,116,116,117,119,120,122,124,126,127,129,129,128,127,129,132,133,133,133,133,131,129,127,126,125,124,122,121,119,118,117,116,114,113,112,110,109,108,106,106,105,100,100,100,98,98,98,98,98,98,97,97,97,97,97,97,97,96],[109,111,112,112,113,113,113,114,116,119,121,123,124,125,124,123,123,123,125,127,129,129,128,128,127,125,124,123,122,121,119,118,117,116,114,113,112,110,109,108,107,106,105,100,100,100,97,97,97,97,97,97,97,96,96,96,96,96,96,96,96],[106,107,108,108,109,110,110,112,113,114,117,119,120,121,119,117,117,117,118,120,123,124,125,125,125,123,121,120,120,119,118,117,116,115,114,113,111,109,109,107,106,105,100,100,100,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96],[104,105,105,106,106,107,108,108,109,109,111,115,116,114,113,112,111,110,111,113,116,119,122,122,122,121,120,119,118,118,117,116,115,114,113,112,111,108,108,106,105,100,100,100,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96],[102,103,103,104,104,105,106,106,107,108,109,111,112,110,109,108,108,108,108,109,110,112,116,117,117,118,118,118,117,116,116,115,114,113,112,111,110,107,107,105,100,100,100,97,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96],[101,102,103,103,104,105,105,106,106,107,108,109,109,107,106,106,105,105,105,106,107,108,109,110,111,113,114,115,115,115,114,113,112,111,110,108,108,106,105,100,100,100,97,97,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96],[100,101,102,102,103,103,104,104,105,106,106,107,106,106,106,105,105,104,103,103,104,105,107,108,110,111,111,112,112,113,113,112,111,110,108,107,106,105,100,100,100,98,97,97,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96],[100,101,101,102,102,103,103,104,104,105,105,105,105,106,105,105,104,103,102,101,102,103,104,106,107,110,111,111,111,112,112,112,110,107,107,106,105,102,100,100,99,98,97,97,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,95],[99,100,101,102,102,103,103,103,104,104,104,104,103,104,104,104,104,102,101,101,102,103,104,105,107,110,111,111,111,111,111,111,108,106,105,105,102,101,100,99,99,98,97,97,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,95,95],[99,100,100,101,101,102,102,102,103,103,103,103,102,103,103,104,103,102,101,101,101,102,103,104,106,109,110,111,111,111,110,110,107,105,103,104,100,100,99,99,98,98,97,97,96,96,96,96,96,96,96,96,96,96,95,95,95,95,95,95,95],[99,100,100,100,101,101,101,102,102,103,102,102,101,102,102,103,103,101,101,100,101,101,102,103,105,109,110,110,111,110,110,109,106,105,100,102,100,99,99,99,98,98,97,97,96,96,96,96,96,96,95,95,95,95,95,95,95,95,95,95,94],[99,99,99,99,100,100,101,101,102,102,101,101,101,101,101,102,102,101,100,100,101,101,101,103,104,107,109,109,110,110,109,108,105,102,100,100,99,99,99,98,98,98,97,96,96,96,96,96,95,95,95,95,95,95,95,94,94,94,94,94,94],[98,99,99,99,99,100,100,101,101,102,101,100,100,100,101,101,101,100,100,100,100,101,101,101,103,106,107,109,109,109,109,107,104,101,100,99,99,99,98,98,98,97,96,96,96,96,95,95,95,95,95,95,95,94,94,94,94,94,94,94,94],[98,98,98,99,99,99,100,100,101,101,100,100,99,99,100,100,100,100,100,100,100,101,101,101,102,105,106,109,108,109,107,105,102,100,100,99,99,98,98,98,97,96,96,96,96,95,95,95,95,95,95,94,94,94,94,94,94,94,94,94,94],[97,98,98,98,99,99,99,100,100,100,100,100,99,99,99,100,100,100,100,100,100,100,101,101,101,103,104,105,106,105,104,101,100,100,99,99,98,98,97,97,97,96,96,96,95,95,95,95,95,94,94,94,94,94,94,94,94,94,94,94,94],[97,97,97,98,98,99,99,99,100,100,100,99,99,99,99,99,100,100,100,100,100,100,101,101,100,100,100,100,100,100,100,100,100,100,99,99,98,97,97,97,96,96,96,95,95,95,95,94,94,94,94,94,94,94,94,94,94,94,94,94,94]]}],                        {&quot;annotations&quot;:[{&quot;align&quot;:&quot;left&quot;,&quot;showarrow&quot;:false,&quot;text&quot;:&quot;Trace type:&quot;,&quot;x&quot;:0,&quot;y&quot;:1.085,&quot;yref&quot;:&quot;paper&quot;}],&quot;autosize&quot;:false,&quot;height&quot;:900,&quot;margin&quot;:{&quot;b&quot;:0,&quot;l&quot;:0,&quot;r&quot;:0,&quot;t&quot;:0},&quot;scene&quot;:{&quot;aspectmode&quot;:&quot;manual&quot;,&quot;aspectratio&quot;:{&quot;x&quot;:1,&quot;y&quot;:1,&quot;z&quot;:0.7}},&quot;template&quot;:{&quot;data&quot;:{&quot;bar&quot;:[{&quot;error_x&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;error_y&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;bar&quot;}],&quot;barpolar&quot;:[{&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;barpolar&quot;}],&quot;carpet&quot;:[{&quot;aaxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;#C8D4E3&quot;,&quot;linecolor&quot;:&quot;#C8D4E3&quot;,&quot;minorgridcolor&quot;:&quot;#C8D4E3&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;baxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;#C8D4E3&quot;,&quot;linecolor&quot;:&quot;#C8D4E3&quot;,&quot;minorgridcolor&quot;:&quot;#C8D4E3&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;type&quot;:&quot;carpet&quot;}],&quot;choropleth&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;type&quot;:&quot;choropleth&quot;}],&quot;contour&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;contour&quot;}],&quot;contourcarpet&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;type&quot;:&quot;contourcarpet&quot;}],&quot;heatmap&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;heatmap&quot;}],&quot;heatmapgl&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;heatmapgl&quot;}],&quot;histogram&quot;:[{&quot;marker&quot;:{&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;histogram&quot;}],&quot;histogram2d&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;histogram2d&quot;}],&quot;histogram2dcontour&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;histogram2dcontour&quot;}],&quot;mesh3d&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;type&quot;:&quot;mesh3d&quot;}],&quot;parcoords&quot;:[{&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;parcoords&quot;}],&quot;pie&quot;:[{&quot;automargin&quot;:true,&quot;type&quot;:&quot;pie&quot;}],&quot;scatter&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatter&quot;}],&quot;scatter3d&quot;:[{&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatter3d&quot;}],&quot;scattercarpet&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattercarpet&quot;}],&quot;scattergeo&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattergeo&quot;}],&quot;scattergl&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattergl&quot;}],&quot;scattermapbox&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattermapbox&quot;}],&quot;scatterpolar&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatterpolar&quot;}],&quot;scatterpolargl&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatterpolargl&quot;}],&quot;scatterternary&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatterternary&quot;}],&quot;surface&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;surface&quot;}],&quot;table&quot;:[{&quot;cells&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#EBF0F8&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;header&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#C8D4E3&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;type&quot;:&quot;table&quot;}]},&quot;layout&quot;:{&quot;annotationdefaults&quot;:{&quot;arrowcolor&quot;:&quot;#2a3f5f&quot;,&quot;arrowhead&quot;:0,&quot;arrowwidth&quot;:1},&quot;autotypenumbers&quot;:&quot;strict&quot;,&quot;coloraxis&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;colorscale&quot;:{&quot;diverging&quot;:[[0,&quot;#8e0152&quot;],[0.1,&quot;#c51b7d&quot;],[0.2,&quot;#de77ae&quot;],[0.3,&quot;#f1b6da&quot;],[0.4,&quot;#fde0ef&quot;],[0.5,&quot;#f7f7f7&quot;],[0.6,&quot;#e6f5d0&quot;],[0.7,&quot;#b8e186&quot;],[0.8,&quot;#7fbc41&quot;],[0.9,&quot;#4d9221&quot;],[1,&quot;#276419&quot;]],&quot;sequential&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;sequentialminus&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]},&quot;colorway&quot;:[&quot;#636efa&quot;,&quot;#EF553B&quot;,&quot;#00cc96&quot;,&quot;#ab63fa&quot;,&quot;#FFA15A&quot;,&quot;#19d3f3&quot;,&quot;#FF6692&quot;,&quot;#B6E880&quot;,&quot;#FF97FF&quot;,&quot;#FECB52&quot;],&quot;font&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;geo&quot;:{&quot;bgcolor&quot;:&quot;white&quot;,&quot;lakecolor&quot;:&quot;white&quot;,&quot;landcolor&quot;:&quot;white&quot;,&quot;showlakes&quot;:true,&quot;showland&quot;:true,&quot;subunitcolor&quot;:&quot;#C8D4E3&quot;},&quot;hoverlabel&quot;:{&quot;align&quot;:&quot;left&quot;},&quot;hovermode&quot;:&quot;closest&quot;,&quot;mapbox&quot;:{&quot;style&quot;:&quot;light&quot;},&quot;paper_bgcolor&quot;:&quot;white&quot;,&quot;plot_bgcolor&quot;:&quot;white&quot;,&quot;polar&quot;:{&quot;angularaxis&quot;:{&quot;gridcolor&quot;:&quot;#EBF0F8&quot;,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;bgcolor&quot;:&quot;white&quot;,&quot;radialaxis&quot;:{&quot;gridcolor&quot;:&quot;#EBF0F8&quot;,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;scene&quot;:{&quot;xaxis&quot;:{&quot;backgroundcolor&quot;:&quot;white&quot;,&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;gridwidth&quot;:2,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;#EBF0F8&quot;},&quot;yaxis&quot;:{&quot;backgroundcolor&quot;:&quot;white&quot;,&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;gridwidth&quot;:2,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;#EBF0F8&quot;},&quot;zaxis&quot;:{&quot;backgroundcolor&quot;:&quot;white&quot;,&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;gridwidth&quot;:2,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;#EBF0F8&quot;}},&quot;shapedefaults&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;}},&quot;ternary&quot;:{&quot;aaxis&quot;:{&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;linecolor&quot;:&quot;#A2B1C6&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;baxis&quot;:{&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;linecolor&quot;:&quot;#A2B1C6&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;bgcolor&quot;:&quot;white&quot;,&quot;caxis&quot;:{&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;linecolor&quot;:&quot;#A2B1C6&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;title&quot;:{&quot;x&quot;:0.05},&quot;xaxis&quot;:{&quot;automargin&quot;:true,&quot;gridcolor&quot;:&quot;#EBF0F8&quot;,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;#EBF0F8&quot;,&quot;zerolinewidth&quot;:2},&quot;yaxis&quot;:{&quot;automargin&quot;:true,&quot;gridcolor&quot;:&quot;#EBF0F8&quot;,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;#EBF0F8&quot;,&quot;zerolinewidth&quot;:2}}},&quot;updatemenus&quot;:[{&quot;buttons&quot;:[{&quot;args&quot;:[&quot;type&quot;,&quot;surface&quot;],&quot;label&quot;:&quot;3D Surface&quot;,&quot;method&quot;:&quot;restyle&quot;},{&quot;args&quot;:[&quot;type&quot;,&quot;heatmap&quot;],&quot;label&quot;:&quot;Heatmap&quot;,&quot;method&quot;:&quot;restyle&quot;}],&quot;direction&quot;:&quot;down&quot;,&quot;pad&quot;:{&quot;r&quot;:10,&quot;t&quot;:10},&quot;showactive&quot;:true,&quot;x&quot;:0.1,&quot;xanchor&quot;:&quot;left&quot;,&quot;y&quot;:1.1,&quot;yanchor&quot;:&quot;top&quot;}],&quot;width&quot;:800},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;h2 id=&quot;latex&quot;&gt;$\LaTeX$&lt;/h2&gt;

&lt;h3 id=&quot;inline&quot;&gt;Inline&lt;/h3&gt;

&lt;p&gt;To add inline math, you can use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$ &amp;lt;math&amp;gt; $&lt;/code&gt;. Here is an example:&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$ \sum_{i=0}^j \frac{1}{2^n} \times i $&lt;/code&gt; becomes
$ \sum_{i=0}^j \frac{1}{2^n} \times i $&lt;/p&gt;

&lt;h3 id=&quot;block&quot;&gt;Block&lt;/h3&gt;

&lt;p&gt;To add block math, you &lt;em&gt;must&lt;/em&gt; use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$$&amp;lt;math&amp;gt;$$&lt;/code&gt;. Here are some examples:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$$\begin{equation}
a \times b \times c = 0 \\
j=1 \\
k=2 \\
\end{equation}$$
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;…becomes…&lt;/p&gt;

\[\begin{equation}
a \times b \times c = 0 \\
j=1 \\
k=2 \\
\end{equation}\]

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$$\begin{align}
i2 \times b \times c =0 \\
j=1 \\
k=2 \\
\end{align}$$
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;…becomes…&lt;/p&gt;

\[\begin{align}
i2 \times b \times c =0 \\
j=1 \\
k=2 \\
\end{align}\]

&lt;p&gt;Don’t forget the enclosing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;$$&lt;/code&gt;! Otherwise, your newlines won’t work:&lt;/p&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;\begin{equation}
i2=0 \\
j=1 \\
k=2 \\
\end{equation}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;…becomes…&lt;/p&gt;

&lt;p&gt;\begin{equation}
i2=0 &lt;br /&gt;
j=1 &lt;br /&gt;
k=2 &lt;br /&gt;
\end{equation}&lt;/p&gt;

&lt;h2 id=&quot;references&quot;&gt;References&lt;/h2&gt;

&lt;p&gt;You’ll notice that at the bottom of every post, a BibTeX entry is automatically generated for
you from the header you added at the beginning.
For example,&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nn&quot;&gt;---&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;layout&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;post&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;ICLR Blog Post Sample Submission&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;authors&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Bubeck, Sebastien (Microsoft); Dobre, David (Mila); Gauthier, Charlie (Mila); Gidel, Gauthier (Mila); Vernade, Claire (DeepMind)&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;tags&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;sample&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;template&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;nn&quot;&gt;---&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;gets rendered to what you see below this.&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>MODALS: Data augmentation that works for everyone</title>
   <link href="https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/2021/09/01/BlogTitle/"/>
   <updated>2021-09-01T00:00:00-05:00</updated>
   <id>https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/2021/09/01/BlogTitle</id>
   <content type="html">&lt;p&gt;&lt;br /&gt;
In this blog we discuss the paper “MODALS: Modality- agnostic Automated Data Augmentation in the Latent Space”[1]
&lt;br /&gt;
&lt;br /&gt;
Data augmentation is important for all types of deep learning tasks: unsupervised, supervised and self-supervised. Data augmentation has almost become a prerequisite for deep learning. In fact many self-supervised learning tasks [2] use data augmentation as a core component of the learning algorithm. It is also heavily used in image models and has consistently produced good results. By perturbing the data during training we are able to train more robust models, especially when there is limited data. Data augmentation is also very useful in incorporating known priors or domain knowledge into the model. For example the random flip transform applied to image data implicitly encodes the prior knowledge we have that the data is invariant to changes in orientation.
&lt;br /&gt;
&lt;br /&gt;
The usefulness of data augmentation has led to the development of specific techniques of augmentation unique to each modality of data. The techniques developed for one modality usually suit the type of data in that particular modality. For image data some commonly used augmentation techniques are rotation, cropping, applying affine transforms, random flips, contrast and color augmentations and adding Gaussian blur. More recent techniques like CutMix[3] and MixUp[4] apply data augmentation on both the image and label space. Many robust data augmentation techniques for image data already exist and are used widely. However modalities like tables and graph data don’t have as many robust augmentation techniques. Since the techniques developed for images were made taking into consideration the nature of image data, they usually cannot be applied to other modalities. If a generalized, modality agnostic framework for augmentation could be developed then standard, robust augmentation techniques can be applied across many modalities. This is exactly what the authors of the paper propose.
&lt;br /&gt;
&lt;br /&gt;
In order to be independent of modality, such a framework would have to convert data from different modalities to a common representation on which label preserving transforms can be applied. The authors point out that there exist techniques of data augmentation that use auto encoders to learn a latent space representation [5]. This is then used to generate augmentation data for the downstream task. In the framework proposed by the paper the learning of the latent space is integrated with the downstream task. A model is trained for the downstream task and an intermediate layer encodes the representations of the input data in the latent space. The framework uses interpolation and extrapolation of existing data points to produce augmented data. This requires that the latent space learned must be smooth (the representations cannot vary abruptly for a minute change in input features) for transformations to be label preserving and produce valid data. The smoothness ensures that the augmented data is inside the data manifold (ensuring it is valid data) and has the same label as the points used to generate it. To ensure this property the authors add two additional losses to the encoder used to learn the latent space. These are the adversarial loss and the triplet loss.
&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;
&lt;h3&gt;Adversarial Loss&lt;/h3&gt;
&lt;p&gt;To achieve a smooth latent space data manifold we use a discriminator network and add an adversarial loss to the model. The discriminator, given a data point, tries to predict if it is from the latent space or is a randomly sampled point from a Gaussian distribution. To keep the adversarial loss low (to “fool” the discriminator network) the model must also learn a smooth data representation so as to be indistinguishable from a smooth Gaussian distribution.
&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;
&lt;h3&gt;Triplet Loss&lt;/h3&gt;
&lt;p&gt;The aim is to have the representations of all the data points of a class to be close to each other and far away from data points from other classes. To learn the latent space in this way we add the triplet loss to the model. The Triplet loss pulls together samples from the same class and pushes away samples from other classes.
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;
&lt;br /&gt;
&lt;img src=&quot;https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/public/images/BlogTitle/PaperFig2.png&quot; alt=&quot;Figure 2 from the paper&quot; width=&quot;800&quot; /&gt;
&lt;/p&gt;
&lt;h3 align=&quot;center&quot;&gt;
Figure: The MODALS framework (figure from paper)
&lt;/h3&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h2&gt;Transformations in the latent space&lt;/h2&gt;
&lt;p&gt;Once the representations of points have been found, the authors propose the following transforms in the latent space for data augmentation:
&lt;br /&gt;&lt;/p&gt;
&lt;h3&gt;Hard example interpolation&lt;/h3&gt;
&lt;p&gt;For each sample in the training set, the $q$ nearest hard examples of that class are found. Then the data point is interpolated towards the nearest hard example to get a new augmented data point.
&lt;br /&gt;
In the figure below, the data point being considered is represented by $\vec{\,a}$. $q1$ through $q5$ are 5 hard examples of the same class as $\vec{\,a}$ and $q3$ (represented by $\vec{\,b}$) is selected as it is the nearest to $\vec{\,a}$ among the five. $\vec{\,a}$ is interpolated towards $\vec{\,b}$ with a scaling factor $\lambda$ applied.
&lt;br /&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;
&lt;img src=&quot;https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/public/images/BlogTitle/HardInterFig.png&quot; alt=&quot;Illustration of hard example interpolation&quot; width=&quot;800&quot; /&gt;
&lt;/p&gt;
&lt;h3 align=&quot;center&quot;&gt;
Figure: Illustration of hard example interpolation
&lt;/h3&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h3&gt;Hard example extrapolation&lt;/h3&gt;
&lt;p&gt;Similar to interpolation, each sample in the training set is considered and then shifted away from the class center to get the augmented data point.
&lt;br /&gt;
In the figure, the data point being considered is represented by $\vec{\,a}$. The class center of $\vec{\,a}$ is represented by $\vec{\,b}$. $\vec{\,a}$ is extrapolated away from $\vec{\,b}$ by a factor $\lambda$.
&lt;br /&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;
&lt;img src=&quot;https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/public/images/BlogTitle/HardExtraFig.png&quot; alt=&quot;Illustration of hard example extrapolation&quot; width=&quot;800&quot; /&gt;
&lt;/p&gt;
&lt;h3 align=&quot;center&quot;&gt;
Figure: Illustration of hard example extrapolation
&lt;/h3&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h3&gt;Gaussian Noise&lt;/h3&gt;
&lt;p&gt;Gaussian noise is added to data points to get augmented data. The mean of the Gaussian noise is zero and the standard deviation is calculated on a per class basis.
&lt;br /&gt;
In the figure below, $\vec{\,a}$ is the data point being considered and $\vec{\,b}$, $\vec{\,c}$ and $\vec{\,d}$ are three points to which a may be transformed after adding Gaussian noise. The Gaussian noise which is scaled by a factor $\lambda$ and added is shown as a circle.
&lt;br /&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;
&lt;img src=&quot;https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/public/images/BlogTitle/GaussianFig.png&quot; alt=&quot;Illustration of addition of Gaussian noise&quot; width=&quot;800&quot; /&gt;
&lt;/p&gt;
&lt;h3 align=&quot;center&quot;&gt;
Figure: Illustration of addition of Gaussian noise
&lt;/h3&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h3&gt;Difference Transform&lt;/h3&gt;
&lt;p&gt;The rationale behind the difference transform is that labels should be independent of differences in features within a class. The difference between two samples from the same class is added to a data point to get an augmented instance of data. Adding the difference in features to the point should not change its label.
&lt;br /&gt;
The figure shows $\vec{\,a}$ as the data point being considered and $\vec{\,b}$ and $\vec{\,c}$ are two randomly sampled points from the same class as $\vec{\,a}$. The difference of $\vec{\,b}$ and $\vec{\,c}$ is added to $\vec{\,a}$ to get the augmented point.
&lt;br /&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;
&lt;img src=&quot;https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/public/images/BlogTitle/DiffTransform.png&quot; alt=&quot;Illustration of the difference transform&quot; width=&quot;800&quot; /&gt;
&lt;/p&gt;
&lt;h3 align=&quot;center&quot;&gt;
Figure: Illustration of the difference transform
&lt;/h3&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;
&lt;h2&gt;Population Based Augmentation (PBA)&lt;/h2&gt;
&lt;p&gt;Instead of fixing the set of augmentations to be applied to latent representations at all stages of training, the authors use a technique called PBA[6] to find optimized sets of augmentations to be applied at different stages. A few terms that PBA uses are defined below.
&lt;br /&gt;
&lt;br /&gt;
An augmentation function is defined as a 3-tuple consisting of a transformation, the probability of its application and its magnitude. An example given in the paper is that (op: rotation, p = 0.4, lambda = 0.5) is an augmentation function that applies the rotation transformation with a probability of 0.4 and a magnitude of 0.5.
&lt;br /&gt;
A policy is defined as the set of all 3-tuples which are to be applied to the dataset. 0, 1 or 2 tuples are randomly sampled from the current policy and applied to each mini-batch.
&lt;br /&gt;
A policy schedule is the order of policies which will be applied at different stages of training.
&lt;br /&gt;
&lt;br /&gt;
PBA searches for a good policy schedule which will give us optimized augmentation hyperparameters to be applied at different stages of training. PBA exploits population based training which is a method in which multiple child models are trained simultaneously to learn an optimal policy schedule. At the beginning each child is assigned a randomly sampled policy from the set of all possible policies (corresponding to all possible values of probability and magnitude).The child models are initialized with random weights and are trained for a fixed number of steps following which they are evaluated using the validation set. The evaluation reveals the worst and best of the models being trained. The worst models copy the weights and policies learned by the best models. The parameters (probability and magnitude) of the copied policies are then perturbed slightly or resampled from the set of all possible values. This is done to avoid creating duplicate models. This sequence of steps are repeated until the child models are done training. At the end the best child model is selected and its policy schedule is used.
&lt;br /&gt;
There is reason to believe that this approach for finding a good policy schedule will work. The authors of [6] state that “… though the space of schedules is large, most good schedules are necessarily smooth and hence easily discoverable through evolutionary search algorithms such as PBT.”
&lt;br /&gt;&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;
&lt;img src=&quot;https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/public/images/BlogTitle/PBAFig.png&quot; alt=&quot;The sequence of steps of PBA&quot; width=&quot;800&quot; /&gt;
&lt;/p&gt;
&lt;h3 align=&quot;center&quot;&gt;
Figure: The sequence of steps of PBA
&lt;/h3&gt;
&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;
&lt;h2&gt;Closing Thoughts&lt;/h2&gt;
&lt;p&gt;In their experiments the authors applied the MODALS framework on text, tabular, time-series and image data. In general the framework works well across modalities except in the imaging modality where they found that using PBA with image specific data augmentation techniques performed better than MODALS. While MODALS is a powerful technique for data augmentation, domain specific augmentation techniques could still be used in certain contexts like image data. Domain knowledge and insights about the data can be incorporated through hand crafted augmentations but not in MODALS. As the authors themselves note, one possible approach is to use a combination of both, using hand crafted augmentations to incorporate domain knowledge and insights into the augmentation.
&lt;br /&gt;
&lt;br /&gt;
The framework proposed in the paper builds around classification tasks where each data point has a single label. There is potential for a technique like MODALS to be extended to other tasks like regression and multi label classification.
&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;
&lt;h2&gt;References&lt;/h2&gt;
&lt;p&gt;[1] Cheung, Tsz-Him, and Dit-Yan Yeung. “MODALS: Modality-agnostic Automated Data Augmentation in the Latent Space.” International Conference on Learning Representations. 2020.
&lt;br /&gt;
[2] He, Kaiming, et al. “Momentum contrast for unsupervised visual representation learning.” Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. 2020.
&lt;br /&gt;
[3] Yun, Sangdoo, et al. “Cutmix: Regularization strategy to train strong classifiers with localizable features.” Proceedings of the IEEE/CVF International Conference on Computer Vision. 2019.
&lt;br /&gt;
[4] Liu, Zicheng, et al. “AutoMix: Unveiling the Power of Mixup.” arXiv preprint arXiv:2103.13027 (2021).
&lt;br /&gt;
[5] DeVries, Terrance, and Graham W. Taylor. “Dataset augmentation in feature space.” arXiv preprint arXiv:1702.05538 (2017).
&lt;br /&gt;
[6] Ho, Daniel, et al. “Population based augmentation: Efficient learning of augmentation policy schedules.” International Conference on Machine Learning. PMLR, 2019.
&lt;br /&gt;
&lt;br /&gt;
Images created using: The Manim Community Developers. (2022). Manim – Mathematical Animation Framework (Version v0.14.0) [Computer software]. https://www.manim.community/&lt;/p&gt;
</content>
 </entry>
 
 <entry>
   <title>Example content (Basic Markdown)</title>
   <link href="https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/2020/04/02/example-content/"/>
   <updated>2020-04-02T00:00:00-05:00</updated>
   <id>https://iclr.iro.umontreal.ca/4d4c96ed-5fc6-4d4b-a563-9c1d5d768eb3_1642246748/2020/04/02/example-content</id>
   <content type="html">&lt;div class=&quot;message&quot;&gt;
  Howdy! This is an example blog post that shows several types of HTML content supported in this theme.
&lt;/div&gt;

&lt;p&gt;Cum sociis natoque penatibus et magnis &lt;a href=&quot;#&quot;&gt;dis parturient montes&lt;/a&gt;, nascetur ridiculus mus. &lt;em&gt;Aenean eu leo quam.&lt;/em&gt; Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Cras mattis consectetur purus sit amet fermentum.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Curabitur blandit tempus porttitor. Nullam quis risus eget urna mollis ornare vel eu leo. Nullam id dolor id nibh ultricies vehicula ut id elit.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Etiam porta &lt;strong&gt;sem malesuada magna&lt;/strong&gt; mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.&lt;/p&gt;

&lt;h2 id=&quot;inline-html-elements&quot;&gt;Inline HTML elements&lt;/h2&gt;

&lt;p&gt;HTML defines a long list of available inline tags, a complete list of which can be found on the &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element&quot;&gt;Mozilla Developer Network&lt;/a&gt;.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;strong&gt;To bold text&lt;/strong&gt;, use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;strong&amp;gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;em&gt;To italicize text&lt;/em&gt;, use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;em&amp;gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Abbreviations, like &lt;abbr title=&quot;HyperText Markup Langage&quot;&gt;HTML&lt;/abbr&gt; should use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;abbr&amp;gt;&lt;/code&gt;, with an optional &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;title&lt;/code&gt; attribute for the full phrase.&lt;/li&gt;
  &lt;li&gt;Citations, like &lt;cite&gt;— Mark otto&lt;/cite&gt;, should use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;cite&amp;gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;del&gt;Deleted&lt;/del&gt; text should use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;del&amp;gt;&lt;/code&gt; and &lt;ins&gt;inserted&lt;/ins&gt; text should use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;ins&amp;gt;&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Superscript &lt;sup&gt;text&lt;/sup&gt; uses &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;sup&amp;gt;&lt;/code&gt; and subscript &lt;sub&gt;text&lt;/sub&gt; uses &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;sub&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most of these elements are styled by browsers with few modifications on our part.&lt;/p&gt;

&lt;h2 id=&quot;heading&quot;&gt;Heading&lt;/h2&gt;

&lt;p&gt;Vivamus sagittis lacus vel augue rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.&lt;/p&gt;

&lt;h3 id=&quot;code&quot;&gt;Code&lt;/h3&gt;

&lt;p&gt;Cum sociis natoque penatibus et magnis dis &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;code element&lt;/code&gt; montes, nascetur ridiculus mus.&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-js&quot; data-lang=&quot;js&quot;&gt;&lt;span class=&quot;c1&quot;&gt;// Example can be run directly in your JavaScript console&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;// Create a function that takes two arguments and returns the sum of those arguments&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;adder&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Function&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;return a + b&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;// Call the function&lt;/span&gt;
&lt;span class=&quot;nx&quot;&gt;adder&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;// &amp;gt; 8&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa.&lt;/p&gt;

&lt;h3 id=&quot;lists&quot;&gt;Lists&lt;/h3&gt;

&lt;p&gt;Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Praesent commodo cursus magna, vel scelerisque nisl consectetur et.&lt;/li&gt;
  &lt;li&gt;Donec id elit non mi porta gravida at eget metus.&lt;/li&gt;
  &lt;li&gt;Nulla vitae elit libero, a pharetra augue.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a pharetra augue.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Vestibulum id ligula porta felis euismod semper.&lt;/li&gt;
  &lt;li&gt;Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.&lt;/li&gt;
  &lt;li&gt;Maecenas sed diam eget risus varius blandit sit amet non magna.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis.&lt;/p&gt;

&lt;dl&gt;
  &lt;dt&gt;HyperText Markup Language (HTML)&lt;/dt&gt;
  &lt;dd&gt;The language used to describe and define the content of a Web page&lt;/dd&gt;

  &lt;dt&gt;Cascading Style Sheets (CSS)&lt;/dt&gt;
  &lt;dd&gt;Used to describe the appearance of Web content&lt;/dd&gt;

  &lt;dt&gt;JavaScript (JS)&lt;/dt&gt;
  &lt;dd&gt;The programming language used to build advanced Web sites and applications&lt;/dd&gt;
&lt;/dl&gt;

&lt;p&gt;Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Nullam quis risus eget urna mollis ornare vel eu leo.&lt;/p&gt;

&lt;h3 id=&quot;tables&quot;&gt;Tables&lt;/h3&gt;

&lt;p&gt;Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Name&lt;/th&gt;
      &lt;th&gt;Upvotes&lt;/th&gt;
      &lt;th&gt;Downvotes&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tfoot&gt;
    &lt;tr&gt;
      &lt;td&gt;Totals&lt;/td&gt;
      &lt;td&gt;21&lt;/td&gt;
      &lt;td&gt;23&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tfoot&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Alice&lt;/td&gt;
      &lt;td&gt;10&lt;/td&gt;
      &lt;td&gt;11&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Bob&lt;/td&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Charlie&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
      &lt;td&gt;9&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Nullam id dolor id nibh ultricies vehicula ut id elit. Sed posuere consectetur est at lobortis. Nullam quis risus eget urna mollis ornare vel eu leo.&lt;/p&gt;

&lt;hr /&gt;

</content>
 </entry>
 

</feed>
